d7d1e2a072cb7ece83de989193e3bcb6afc001db
[fw/sdcc] / ChangeLog
1 2009-03-03 Borut Razem <borut.razem AT siol.net>
2
3         * device/lib/printf_large.c: fixed bug #2656821: bug in printf
4
5 2009-03-03 Raphael Neider <rneider AT web.de>
6
7         * device/lib/pic/libdev/Makefile.in: build device-specific
8           libraries for the correct processor, fixes #2654585
9
10 2009-03-01 Raphael Neider <rneider AT web.de>
11
12         * device/lib/Makefile.in: fixed parallel builds (i.e., make -jN, N>1)
13
14 2009-03-01 Borut Razem <borut.razem AT siol.net>
15
16         * src/z80/peep.c: fixed bug #2648964: --i-code-in-asm crashes sdcc
17         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
18           changed sdcc version to 2.9.0
19
20 2009-03-01 Maarten Brock <sourceforge.brock AT dse.nl>
21
22         * src/mcs51/ralloc.c (spillThis, spilSomething): fixed bug 2435941
23           (serialRegAssign): do not spil bit registers
24           throughout cosmetic changes
25         * support/regression/tests/bug2435941.c: new, added
26
27 2009-02-28 Raphael Neider <rneider AT web.de>
28
29         * src/regression/compare10.c,
30           src/regression/compare7.c,
31           src/regression/compare8.c,
32           src/regression/compare9.c: reset watchdog timer in time
33         * src/regression/configword.c: apply patch from #2488150
34         * src/pic/glue.c (pic14createInterruptVect): pin RESET vector
35           handler to 0x0000 as the linker no longer knows STARTUP sections
36         * src/pic/pcode.c (register_reassign, ReuseReg): applied modified
37           patch #2512926 to (mostly) fix #1762626, cosmetic changes
38         * src/pic/pcodepeep.c: remove reference to nonexisting function
39
40 2009-02-28 Raphael Neider <rneider AT web.de>
41
42         * device/include/pic16/signal.h: avoid multiline inline
43           assembler statements in macros, addresses #2644965
44
45 2009-02-27 Raphael Neider <rneider AT web.de>
46
47         * device/include/pic16/pic18f[24][3456]k20.h,
48           device/include/pic16/pic18f[68][567]j50.h,
49           device/include/pic16/pic18f[68]6j55.h,
50           device/lib/pic16/libdev/pic18f[24][3456]k20.c,
51           device/lib/pic16/libdev/pic18f[68][567]j50.c,
52           device/lib/pic16/libdev/pic18f[68]6j55.c,
53           device/include/pic16/pic18fregs.h,
54           device/include/pic16/pic16devices.txt,
55           device/lib/pic16/pics.all,
56           device/lib/pic16/libdev/Makefile.am,
57           device/lib/pic16/libio/Makefile.am: added/re-enabled many device
58           families (87j50 family contributed by Robert Wuest)
59
60         * device/include/pic16/adc.h,
61           device/lib/pic16/libio/adc/adcbusy.c,
62           device/lib/pic16/libio/adc/adcclose.c,
63           device/lib/pic16/libio/adc/adcconv.c,
64           device/lib/pic16/libio/adc/adcopen.c,
65           device/lib/pic16/libio/adc/adcsetch.c: added 65j50-style ADC
66
67         * doc/sdccman.lyx: updated list of supported devices, fixed typo
68         * device/lib/pic16/Makefile.common: do not suppress assembler warnings
69
70         * device/lib/pic16/Makefile.in,
71           device/lib/pic16/libm/Makefile.in,
72           device/lib/pic16/debug/Makefile.in,
73           device/lib/pic16/libio/Makefile.in,
74           device/lib/pic16/startup/Makefile.in,
75           device/lib/pic16/libsdcc/Makefile.in,
76           device/lib/pic16/libdev/Makefile.in,
77           device/lib/pic16/libc/Makefile.in: regenerated
78
79 2009-02-27 Borut Razem <borut.razem AT siol.net>
80
81         * as/z80/asexpr.c, as/z80/z80mch.c: re-fixed bugs
82           #1829678 and #1704376 in the way proposed by Alan Baldwin
83
84 2009-02-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
85
86         * device/include/mcs51/at89c51ed2.h: Fixed address of SFR P5. Thanks
87           to Steve Qu for the fix.
88
89 2009-02-23 Borut Razem <borut.razem AT siol.net>
90
91         * as/z80/asexpr.c: fixed bug #1829678: Z-80 CP A,<xxx> assembly
92           it is already fixed for mcs51 and hc08 targets
93         * as/z80/z80mch.c: fixed bug #1704376: missing as-z80 errors
94
95 2009-02-22 Borut Razem <borut.razem AT siol.net>
96
97         * device/lib/Makefile.in: fixed parenthesis error
98         * doc/sdccman.lyx: fixed webdocs bug #2071421: error in the manual,
99           fixed webdocs bug #1967920: --version
100
101 2009-02-18 Maarten Brock <sourceforge.brock AT dse.nl>
102
103         * device/include/mcs51/at89c51ed2.h: fixed bug #2071949 bitmask RBCK wrong
104
105 2009-02-17 Maarten Brock <sourceforge.brock AT dse.nl>
106
107         * as/link/mcs51/lkihx.c (hexRecord): bugfix do not insert extended address
108           when addresses are unsorted
109
110 2009-02-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
111
112         * device/include/mcs51/p89v66x.h: added ENBOOT thanks
113           Gudjon Gudjonsson <gudjon AT gudjon.org>
114         * device/include/mcs51/p89c66x.h: fixed some defines
115         * device/include/mcs51/p89v66x.h: fixed some sbit addresses
116         * doc/sdccman.lyx: added <NO FLOAT> to index, try to reanimate
117           svn keywords
118
119 2009-02-14 Borut Razem <borut.razem AT siol.net>
120
121         * doc/sdccman.lyx: corrected cpp info
122
123 2009-02-13 Borut Razem <borut.razem AT siol.net>
124
125         * as/Makefile.in: *.doc renamed to *.txt
126
127 2009-02-11 Borut Razem <borut.razem AT siol.net>
128
129         * as/doc/aslnk.doc, as/doc/abstra.doc: renamed to *.txt
130         * as/doc/aslnk.txt, as/doc/asxhtml.html: changed licens to GPLv3
131
132 2009-02-11 Borut Razem <borut.razem AT siol.net>
133
134         * doc/sdccman.lyx: documented ar format libraries
135
136 2009-02-10 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
137
138         * support/regression/tests/float_single.c: added regression
139           test. Some testpoints for probably rarely used functions
140           (acosf, sinhf, tanf, expf) disabled for some targets
141
142 2009-02-10 Raphael Neider <rneider AT web.de>
143
144         * src/pic16/gen.c (pic16_freeAsmop): avoid NULL pointer dereference,
145           (genAssign): fixed for operands on the stack
146
147         * device/lib/pic16/libc/stdio/vfprintf.c,
148           device/lib/pic16/configure.ac,
149           device/lib/pic16/Makefile.common: add configurable support for
150           printing floats via ./configure --enable-floats
151         * device/lib/pic16/configure,
152           device/lib/pic16/Makefile.in,
153           device/lib/pic16/libm/Makefile.in,
154           device/lib/pic16/debug/Makefile.in,
155           device/lib/pic16/libio/Makefile.in,
156           device/lib/pic16/startup/Makefile.in,
157           device/lib/pic16/libsdcc/Makefile.in,
158           device/lib/pic16/libdev/Makefile.in,
159           device/lib/pic16/libc/Makefile.in: regenerated
160         * doc/sdccman.lyx: documented float support and how to get it
161         * doc/Makefile.in: fixed race condition on parallel builds
162
163         * device/lib/pic16/libc/stdio/sprintf.c,
164           device/lib/pic16/libc/stdio/vsprintf.c: do not mess up the user's
165           pointer to the string buffer, enlarge buffer for x_ftoa()
166
167 2009-02-10 Borut Razem <borut.razem AT siol.net>
168
169         * device/lib/printf_tiny.c: replaced non-C89 comments '//' with '/* */'
170
171 2009-02-10 Raphael Neider <rneider AT web.de>
172
173         * device/include/pic16/pic18f*.h: add bit aliases in INTCONbits_t
174
175 2009-02-09 Raphael Neider <rneider AT web.de>
176
177         * src/pic16/pcode.c (assignToSameBank): add force argument to ignore
178           artificial bank size limits for compound data (structs, arrays),
179           avoids assert if --obanksel=N, N > 1, is given
180
181 2009-02-09 Borut Razem <borut.razem AT siol.net>
182
183         * as/asranlib/asranlib.c, link/lkar.c: don't check the padding bytes since
184           the openSUSE GNU ar (GNU Binutils; openSUSE 11.0) 2.18.50.20080409-11.1
185           uses '`' character instead '\n' for padding
186         * as/asranlib/asranlib.c: made it more robust
187
188 2009-02-08 Borut Razem <borut.razem AT siol.net>
189
190         * as/COPYING3: added
191         * support/scripts/sdcc.nsi: added COPYING3.txt to the package
192         * device/lib/Makefile.in: reenable floating point in model-xstack-auto
193           libraries
194
195 2009-02-07 Borut Razem <borut.razem AT siol.net>
196
197         * as/asranlib/asranlib.c: fixed BSD header length calculation
198         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.9
199           due sdcc asxxxx license change to GPLv3
200
201 2009-02-05 Borut Razem <borut.razem AT siol.net>
202
203         * as/asranlib/asranlib.c, link/lkar.h, link/lkar.c:
204           added support for BSD (Mac OS X) ar format
205         * as/asxxsrc/aslex.c, as/as/asxxsrc/asnoice.c, as/as/asxxsrc/assym.c,
206           as/as/hc08/asdata.c, as/hc08/asexpr.c, as/hc08/aslist.c,
207           as/hc08/asm.h, as/hc08/asmain.c, as/hc08/asout.c, as/hc08/assubr.c,
208           as/hc08/m08adr.c, as/hc08/m08ext.c, as/hc08/m08mch.c,
209           as/hc08/m08pst.c, as/hc08/m6808.h, as/link/aslink.h,
210           as/link/hc08/lkarea.c, as/link/hc08/lkelf.c, as/link/hc08/lkihx.c,
211           as/link/hc08/lkmain.c, as/link/hc08/lkmem.c, as/link/hc08/lkrloc.c,
212           as/link/hc08/lks19.c, as/link/lkaomf51.c, as/link/lkdata.c,
213           as/link/lkeval.c, as/link/lkhead.c, as/link/lklex.c, as/link/lklib.c,
214           as/link/lklibr.c, as/link/lklibr.h, as/link/lklist.c,
215           as/link/lknoice.c, as/link/lkrel.c, as/link/lkrel.h,
216           as/link/lksdcclib.c, as/link/lkstore.c, as/link/lksym.c,
217           as/link/mcs51/lkarea.c, as/link/mcs51/lkihx.c,
218           as/link/mcs51/lkmain.c, as/link/mcs51/lkmem.c,
219           as/link/mcs51/lkrloc.c, as/link/mcs51/lks19.c, as/link/z80/lkarea.c,
220           as/link/z80/lkgb.c, as/link/z80/lkgg.c, as/link/z80/lkihx.c,
221           as/link/z80/lkmain.c, as/link/z80/lkrloc.c, as/link/z80/lks19.c,
222           as/mcs51/asdata.c, as/mcs51/asexpr.c, as/mcs51/aslist.c,
223           as/mcs51/asm.h, as/mcs51/asmain.c, as/mcs51/asout.c,
224           as/mcs51/assubr.c, as/mcs51/i51adr.c, as/mcs51/i51ext.c,
225           as/mcs51/i51mch.c, as/mcs51/i51pst.c, as/mcs51/i8051.h,
226           as/xa51/xa_link.c, as/xa51/xa_main.c, as/xa51/xa_main.h,
227           as/xa51/xa_rasm.l, as/xa51/xa_rasm.y, as/xa51/xa_version.h,
228           as/z80/asdata.c, as/z80/asexpr.c, as/z80/aslist.c, as/z80/asm.h,
229           as/z80/asmain.c, as/z80/asout.c, as/z80/assubr.c, as/z80/z80.h,
230           as/z80/z80adr.c, as/z80/z80ext.c, as/z80/z80mch.c, as/z80/z80pst.c:
231           changed license to GPL either version 3, or (at your option) any
232           later version
233
234 2009-02-05 Borut Razem <borut.razem AT siol.net>
235
236         * as/asranlib/asranlib.c, link/lkar.h, link/lkar.c:
237           added support for BSD (Mac OS X) ar format
238
239 2009-02-02 Borut Razem <borut.razem AT siol.net>
240
241         * device/lib/gbz80/Makefile.in, device/lib/hc08/Makefile.in,
242           device/lib/z80/Makefile.in:
243           chose source files in the PORT directory if they are available
244
245 2009-02-01 Raphael Neider <rneider AT web.de>
246
247         * device/lib/pic16/libdev/pic18f1220.c,
248         * device/lib/pic16/libdev/pic18f4450.c:
249           define SSPBUF to allow use of printf
250
251 2009-02-01 Borut Razem <borut.razem AT siol.net>
252
253         * device/lib/Makefile.in, device/lib/gbz80/Makefile.in,
254           device/lib/hc08/Makefile.in, device/lib/incl.mk,
255           device/lib/z80/Makefile.in:
256           don't remake libraries
257         * support/regression/tests/snprintf.c:
258           reenable floating point in small-xstack-auto library
259
260 2009-01-26 Raphael Neider <rneider AT web.de>
261
262         * src/pic16/ralloc.c (packForPush): disabled to fix #2496919
263
264 2009-01-25 Raphael Neider <rneider AT web.de>
265
266         * src/pic16/main.c (_pic16_linkEdit): prepend -L paths to linker
267           search path instead of appending them
268
269 2009-01-24 Borut Razem <borut.razem AT siol.net>
270
271         * as/asranlib/asranlib.h: changed type of offset to unsigned int to
272           make it work on ppc Mac OS X (off_t is 64 bit and is not converted
273           to 32 bit unsigned int when calling sputl() since it is a macro
274         * as/link/lkar.c: changed the initialization of This->loaded
275
276 2009-01-23 Borut Razem <borut.razem AT siol.net>
277
278         * as/link/lkar.h: changed type of ar_size to size_t to make it work on
279           ppc Mac OS X (off_t is 64 bit and is not converted to 32 bit
280           unsigned int when calling new(), since asxxxx doesn't use function
281           prototypes)
282
283 2009-01-21 Borut Razem <borut.razem AT siol.net>
284
285         * as/link/lkar.h: sgetl and sputl are independent of endianness
286         * as/link/sdxxxx_config.h.in: removed endianness detection
287
288 2009-01-20 Borut Razem <borut.razem AT siol.net>
289
290         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.8
291           due creation of ar format libraries
292         * support/scripts/sdcc.nsi:
293           don't add nonexistent object files to the package
294
295 2009-01-19 Borut Razem <borut.razem AT siol.net>
296
297         * Makefile.in, configure.in, configure,
298           device/lib/Makefile.in, device/lib/ds390/Makefile.in,
299           device/lib/ds400/Makefile.in, device/lib/gbz80/Makefile.in,
300           device/lib/hc08/Makefile.in, device/lib/large/Makefile.in,
301           device/lib/mcs51/Makefile.in, device/lib/medium/Makefile.in,
302           device/lib/small/Makefile.in,
303           device/lib/z80/Makefile.in: create ar format libraries
304         * support/regression/ports/mcs51-xstack-auto/spec.mk:
305           use device/lib/Makefile to create library
306         * support/regression/tests/snprintf.c:
307           floating point is not enabled in small-xstack-auto library
308         * device/lib/libfloat.lib, device/lib/libint.lib,
309           device/lib/liblong.lib, device/lib/libsdcc.lib: removed
310
311 2009-01-18 Borut Razem <borut.razem AT siol.net>
312
313         * support/cpp/auto-host.h: fixed warning: "__STDC__" redefined,
314           warning: extra tokens at end of #endif directive
315
316 2009-01-11 Borut Razem <borut.razem AT siol.net>
317
318         * Makefile.in: added SDCC_ASRANLIB to PKGS
319
320 2009-01-10 Borut Razem <borut.razem AT siol.net>
321
322         * support/scripts/sdcc.nsi: added asranlib.exe to the install package
323         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.7
324           due added support for ar format libraries
325
326 2009-01-09 Borut Razem <borut.razem AT siol.net>
327
328         * as/asranlib/Makefile.in, as/asranlib/asranlib.dsp,
329           as/asranlib/asranlib.c: added asranlib
330         * as/link/lkar.c, as/link/lkar.h: added support for ar format libraries
331         * Makefile.in, as/link/hc08/Makefile.in,
332           as/link/hc08/link_hc08.dsp, as/link/lklib.c, as/link/lklibr.c,
333           as/link/lklibr.h, as/link/lkrel.c, as/link/lkrel.h,
334           as/link/lksdcclib.c, as/link/mcs51/Makefile.in,
335           as/link/mcs51/aslink.dsp, as/link/z80/Makefile.in,
336           as/link/z80/linkgbz80.dsp, as/link/z80/linkz80.dsp, configure,
337           configure.in, sdcc.dsw: modified to support ar format libraries
338
339 2009-01-08 Maarten Brock <sourceforge.brock AT dse.nl>
340
341         * src/SDCCast.c (decorateType RETURN): use RESULT_TYPE_GPTR for generic
342           pointer return
343
344 2009-01-05 Philipp Klaus Krause <pkk AT spth.de>
345
346         * sim/ucsim/z80.src/inst_ed.cc:
347           Fixed bug #2488074, which made regression tests fail.
348
349 2009-01-05 Philipp Klaus Krause <pkk AT spth.de>
350
351         * device/lib/z80/mod.s,
352           device/lib/z80/div.s,
353           device/lib/z80/mulchar.s,
354           device/lib/z80/mul.s,
355           device/lib/z80/divsigned.s,
356           device/lib/z80/Makefile.in:
357           Implemented RFE #1702376.
358
359 2009-01-05 Borut Razem <borut.razem AT siol.net>
360
361         * as/link/lksdcclib.c:
362           fixed linker hanging in INDEXLIB is not defined (hc08)
363
364 2009-01-04 Philipp Klaus Krause <pkk AT spth.de>
365
366         * src/z80/gen.c:
367           Implemented RFE #2485684, and some further improvements of HL caching
368           including a bugfix.
369         * src/z80/peeph-z80.def:
370           Fixed a bug exposed by implementing RFE #2485684.
371
372 2009-01-04 Philipp Klaus Krause <pkk AT spth.de>
373
374         * src/z80/peeph-z80.def:
375           Peephole improvements.
376         * src/z80/gen.c,
377           src/z80/main.c,
378           device/include/string.h,
379           device/lib/z80/memmove.s:
380           Minor code cleanup.
381         * device/lib/z80/Makefile.in,
382           device/lib/Makefile.in,
383           support/regression/tests/memory.c,
384           device/lib/z80/strlen.s:
385           Partially implemented RFE #2471534.
386
387 2009-01-04 Borut Razem <borut.razem AT siol.net>
388
389         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.6
390           due changes in sdcc asxxxx linkers - it sholud be done 2 days ago :(
391         * doc/README.txt: updated John Hartman's e-mail address
392         * as/link/lkrel.c, as/link/lksdcclib.c:
393           fixed bug #2484677: Linker hangs
394         * src/z80/peep.c: fixed msvc warning C4047:
395           'return' : 'int ' differs in levels of indirection from 'char *'
396         * config.dsp: as/lib corrected to as/link
397
398 2009-01-04 Philipp Klaus Krause <pkk AT spth.de>
399
400         * src/z80/peep.c:
401           Implemented RFE #2484693.
402         * src/z80/peeph-z80.def:
403           Some peephole improvements.
404
405 2009-01-03 Borut Razem <borut.razem AT siol.net>
406
407         * as/link/lklibr.c:
408           fixed warning: 'ret' may be used uninitialized in this function
409
410 2009-01-02 Borut Razem <borut.razem AT siol.net>
411
412         * as/link/lklib.c, as/link/lksdcclib.c, as/link/lklibr.h,
413           as/link/getline.[ch], as/link/lkrel.[ch]: added,
414           made support for differnet library formats more flexible,
415           preparation for support of ar format
416         * as/link/lklibr.c, as/link/z80/Makefile.in,
417           as/link/z80/linkgbz80.dsp, as/link/z80/linkz80.dsp,
418           as/link/hc08/link_hc08.dsp, as/link/hc08/Makefile.in,
419           as/link/mcs51/aslink.dsp, as/link/mcs51/Makefile.in,
420           as/link/hc08/lkelf.c, as/link/aslink.h:
421           made support for differnet library formats more flexible,
422           preparation for support of ar format
423
424 2009-01-01 Borut Razem <borut.razem AT siol.net>
425
426         * as/link/asxxxx_config.h.in:
427           fixed warning: extra tokens at end of #endif directive
428         * src/z80/peep.c:
429           fixed warning: suggest parentheses around && within ||
430         * device/lib/Makefile.in: allow whitespaces at the end of lines in
431           ports.build, in order to make it work on cygwin - it seems to be a
432           bug in cygwin grep: CR is not treated as part of end-of-line
433
434 2008-12-31 Borut Razem <borut.razem AT siol.net>
435
436         * configure, configure.in, config.dsp, config_vc.awk,
437           as/link/asxxxx_config.h.in, as/link/hc08/lkelf.c, as/link/aslink.h,
438           as/link/hc08/Makefile.in, as/link/mcs51/Makefile.in:
439           introduced asxxxx_config.h.in
440
441 2008-12-30 Philipp Klaus Krause <pkk AT spth.de>
442
443         * src/z80/gen.c,
444           src/z80/peeph-z80.def:
445           Minor addition improvement.
446
447 2008-12-30 Raphael Neider <rneider AT web.de>
448
449         * as/link/hc08/lkelf.c, as/link/lkaomf51.c, as/link/lklibr.c,
450           as/link/z80/lkgb.c, debugger/mcs51/cmd.c, sim/ucsim/utils.cc,
451           src/SDCCasm.c, support/Util/dbuf_string.c, support/cpp/c-ppoutput.c,
452           support/cpp/libcpp/lex.c, support/cpp/libcpp/macro.c,
453           support/librarian/sdcclib.c, support/makebin/makebin.c:
454           partially revert changes from r5293..r5295
455
456 2008-12-29 Philipp Klaus Krause <pkk AT spth.de>
457
458         * src/z80/peeph-z80.def:
459           Minor peephole improvement.
460
461 2008-12-29 Raphael Neider <rneider AT web.de>
462
463         * src/pic/pcode.c (insertBankSel, FixRegisterBanking): emit
464           incorrectly discarded BANKSELs
465
466 2008-12-29 Philipp Klaus Krause <pkk AT spth.de>
467
468         * support/regression/tests/memory.c:
469           Added simple test for memset(), memcpy() and memmove()
470
471 2008-12-29 Borut Razem <borut.razem AT siol.net>
472
473         * sdcc/support/scripts/sdcc.nsi: removed $INSTDIR\lib\src\z80\*.c
474
475 2008-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
476
477         * src/mcs51/peeph.def (177.e): replaced notVolatile(%3) with
478           operandsNotRelated(%1 %3), had to change (a)r%1 to (a)%1 for this to work
479           (177.j): added new rule
480         * src/SDCCsymt.h: added RESULT_TYPE_GPTR
481         * src/SDCCast.c (processParms): use RESULT_TYPE_GPTR for generic ptr parms,
482           (decorateType CAST): propagate storage class to generic pointer results
483
484 2008-12-27 Philipp Klaus Krause <pkk AT spth.de>
485
486         * device/lib/z80/string.c,
487           device/lib/z80/printf.c,
488           device/lib/z80/mul.s:
489           z80 library cleanup
490         * src/z80/gen.c:
491           Fixed code generation bug exposed by builtin memcpy().
492
493 2008-12-27 Philipp Klaus Krause <pkk AT spth.de>
494
495         * device/lib/_memcpy.c:
496           fixed conflict with builtin memcpy()
497
498 2008-12-26 Borut Razem <borut.razem AT siol.net>
499
500         * support/librarian/sdcclib.c:
501           fixed bug 2466950: "sdcclib broken"
502           by removing fgets return value check
503
504 2008-12-26 Philipp Klaus Krause <pkk AT spth.de>
505         * src/z80/main.c,
506           src/z80/gen.c,
507           device/include/string.h: Implemented RFE #1914254
508
509 2008-12-26 Philipp Klaus Krause <pkk AT spth.de>
510         * device/lib/z80/Makefile.in,
511           device/lib/Makefile.in,
512           device/lib/z80/memmove.s: Implemented RFE #1914256
513
514 2008-12-26 Philipp Klaus Krause <pkk AT spth.de>
515
516         * src/z80/peeph-z80.def: fixed a bug in peephole 0zf
517         * src/z80/peep.c: improved checks for unused data
518         * src/z80/gen.c,
519           src/z80/main.c: Implemented RFE #1899189
520
521 2008-12-25 Borut Razem <borut.razem AT siol.net>
522
523         * support/regression/Makefile.in:
524           add -I$(INC_DIR) to SDCCFLAGS only if INC_DIR is defined
525
526 2008-12-25 Philipp Klaus Krause <pkk AT spth.de>
527
528         * src/z80/peeph-z80.def: minor peephole improvements
529
530 2008-12-21 Borut Razem <borut.razem AT siol.net>
531
532         * support/librarian/sdcclib.c: fixed build failure on Mac OS X
533           due to redefinition of symbol __assert
534           sdcclib.c:53:1:warning: "__assert" redefined
535           /Xcode2.5/SDKs/MacOSX10.4u.sdk/usr/include/assert.h:80:1:
536           warning: this is the location of the previous definition
537
538 2008-12-20 Raphael Neider <rneider AT web.de>
539
540         * debugger/mcs51/break.c, debugger/mcs51/cmd.c,
541           debugger/mcs51/simi.c, debugger/mcs51/symtab.c,
542           support/cpp/libcpp/macro.c: fix format string errors
543
544         * sim/ucsim/s51.src/timer2.cc: add clarifying parens
545
546         * src/pic/device.c: partial rewrite using strtok,
547           quieten compiler warnings, adopt SDCC coding style
548
549         * as/link/hc08/lkelf.c, as/link/lkaomf51.c, as/link/lklibr.c,
550           as/link/z80/lkgb.c, as/z80/asout.c, debugger/mcs51/cmd.c,
551           sim/ucsim/utils.cc, src/SDCCasm.c, support/Util/dbuf_string.c,
552           support/cpp/c-ppoutput.c, support/cpp/libcpp/lex.c,
553           support/librarian/sdcclib.c, support/makebin/makebin.c:
554           quieten most compiler warnings
555
556         * sim/ucsim/avr.src/arith_inst.cc: quieten compiler warnings,
557           probably fix operator precedence bug
558
559         * doc/clean.mk: quieten rm if no .lyx is present
560
561 2008-12-19 Borut Razem <borut.razem AT siol.net>
562
563         * doc/sdccman.lyx, doc/random-notes.txt, doc/avr/avr_design.txt,
564           doc/TININative.txt, doc/macro-sys-design.txt, doc/libdoc.txt,
565           doc/README.txt, doc/test_suite_spec.lyx:
566           applied patch 2446381: Dcoumentation spelling correcitons
567           thanks to Steven Borley
568
569 2008-12-16 Raphael Neider <rneider AT web.de>
570
571         * device/include/pic/pic12f629.h,
572           device/include/pic/pic12f675.h,
573           device/lib/pic/libdev/pic12f629.c,
574           device/lib/pic/libdev/pic12f675.c: consolidated, added TRISIO bits
575
576 2008-12-14 Borut Razem <borut.razem AT siol.net>
577
578         * doc/sdccman.lyx, cdbfileformat.lyx, test_suite_spec.lyx:
579           converted to LyX 1.5.7 (\lyxformat 276) format
580
581 2008-12-07 Borut Razem <borut.razem AT siol.net>
582
583         * support/regression/tests/bitfields.c:
584           added test case for bug #2366757
585
586 2008-12-07 Raphael Neider <rneider AT web.de>
587
588         * src/pic16/glue.c (pic16_printIvalBitFields): prevent
589           NULL pointer dereference, closes #2366757
590
591 2008-11-25 Raphael Neider <rneider AT web.de>
592
593         * device/include/pic16/pic16devices.txt,
594           sdcc/src/pic16/device.c,
595           sdcc/src/pic16/device.h: implicitly disable XINST
596           whenever CONFIG4L is set via an additional optional
597           argument to the configword directive in pic16devices.txt
598
599 2008-11-24 Raphael Neider <rneider AT web.de>
600
601         * device/lib/pic16/configure.ac,
602           device/lib/pic16/Makefile.common: fixed quoting issues
603
604         * device/lib/pic16/configure,
605           device/lib/pic16/debug/Makefile.in,
606           device/lib/pic16/libc/Makefile.in,
607           device/lib/pic16/libdev/Makefile.in,
608           device/lib/pic16/libio/Makefile.in,
609           device/lib/pic16/libm/Makefile.in,
610           device/lib/pic16/libsdcc/Makefile.in,
611           device/lib/pic16/Makefile.in,
612           device/lib/pic16/startup/Makefile.in: regenerated
613
614         * src/pic16/main.c (_pic16_finaliseOptions): revert to
615           variant of r5216
616
617 2008-11-24 Raphael Neider <rneider AT web.de>
618
619         * src/pic16/main.c (_pic16_finaliseOptions): do not quote the
620           argument of --asm= or --link= to allow for
621           --asm="sh script --options", the user can double quote the
622           argument if needed: --asm="'c:/program files/gpasm' -q",
623           also fix some potential buffer overflows
624
625 2008-11-19 Borut Razem <borut.razem AT siol.net>
626
627         * doc/sdccman.lyx:
628           fixed 2314467: sdccman.lyx: fix "--" in command line parameters
629           thanks Mauro Giachero
630
631 2008-11-16 Borut Razem <borut.razem AT siol.net>
632
633         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.5
634         * doc/sdccman.lyx: documented fixed unnamed bit-field initialization
635
636 2008-11-15 Borut Razem <borut.razem AT siol.net>
637
638         * src/pic16/glue.c, src/SDCC.y, src/SDCCast.c, src/SDCCglue.c,
639           src/SDCCsymt.c, src/SDCCsymt.h:
640           fixed RFE #2291335 : Unnamed bit-field initialization
641         * support/regression/tests/bitfields.c:
642           added test case for RFE #2291335
643         * support/regression/tests/bug-1981238.c:
644           don't initialize unnamed bit-fields
645
646 2008-11-11 Raphael Neider <rneider AT web.de>
647
648         * device/include/pic16/pic18f25j10.h,
649           device/include/pic16/pic18f45j10.h: remove useless boilerplate
650
651         * device/include/pic16/adc.h,
652           device/lib/pic16/libio/adc/adcbusy.c,
653           device/lib/pic16/libio/adc/adcclose.c,
654           device/lib/pic16/libio/adc/adcconv.c,
655           device/lib/pic16/libio/adc/adcopen.c,
656           device/lib/pic16/libio/adc/adcread.c,
657           device/lib/pic16/libio/adc/adcsetch.c: generalized, documented,
658           and fixed ADC routines to work for more target devices,
659           incorporates patch #2036130 by Nick Materer
660
661 2008-11-10 Steven Borley <steven.borley AT partnerelectronics.com>
662
663         * device/include/ctype.h,
664         * device/include/ds400rom.h,
665         * device/include/ds80c390.h,
666         * device/include/float.h,
667         * device/include/math.h,
668         * device/include/serial.h,
669         * device/include/stdbool.h,
670         * device/include/tinibios.h: replaced non-C89 '//' with '/* */',
671           patch 2195343
672         * device/include/mcs51/C8051F336.h,
673         * device/include/mcs51/C8051T600.h,
674         * device/include/mcs51/C8051T610.h,
675         * device/include/mcs51/C8051T630.h: new, added, patch 2183334
676           (svn commit by Maarten Brock <sourceforge.brock AT dse.nl>)
677
678 2008-11-10 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
679
680         * device/include/mcs51/P89LPC922.h: fixed #2255989, thanks kubi57
681
682 2008-11-10 Raphael Neider <rneider AT web.de>
683
684         * device/lib/pic16/libdev/mkmk.sh: obey pics.all
685         * device/lib/pic16/libio/mkmk.sh: properly match whole lines in
686           .ignore files, fixes IO libs for 18f242, 18f252, 18f442, and 18f452
687           (patch by Nick Materer, #2253980)
688
689         * device/lib/pic16/libio/adc.ignore,
690           device/lib/pic16/libio/i2c.ignore,
691           device/lib/pic16/libio/usart.ignore,
692           device/lib/pic16/pics.all: updated to build more device libs
693
694         * device/lib/pic16/libdev/Makefile.am,
695           device/lib/pic16/libdev/Makefile.in,
696           device/lib/pic16/libio/Makefile.am,
697           device/lib/pic16/libio/Makefile.in: regenerated
698
699         * src/pic16/device.c (pic16_dump_usection): fixed output of multiple
700           names per memory location, applied SDCC style to more functions
701
702 2008-11-09 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
703
704         * device/include/mcs51/p89lpc933_4.h: new NXP header file
705         * device/include/mcs51/p89lpc935_6.h: new NXP header file
706         * device/include/mcs51/p89v66x.h: minor changes
707           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
708
709 2008-11-09 Raphael Neider <rneider AT web.de>
710
711         * device/include/pic/pic14devices.txt: fixed memory description for
712           12f629 and 12f675, closes #2236240
713
714 2008-11-06 Borut Razem <borut.razem AT siol.net>
715
716         * src/SDCCmain.c: fixed bug #2224960: sdcc -MM no working correctly
717           pass system include paths with -isystem to sdcpp
718         * src/SDCCglue.c, src/pic/glue.c, src/pic16/glue.c: removed unneeded
719           functions (closePipes), (closeTmpFiles) and (rmTmpFiles)
720
721 2008-11-02 Raphael Neider <rneider AT web.de>
722
723         * doc/sdccman.lyx: updated the sections on the library build process
724           and on how to add support for new devices, and documented known
725           problems with the extended instruction set including a workaround
726
727 2008-11-01 Raphael Neider <rneider AT web.de>
728
729         * device/include/pic16/adc.h,
730           device/include/pic16/pic16devices.txt,
731           device/include/pic16/pic18f2410.h,
732           device/include/pic16/pic18f2510.h,
733           device/include/pic16/pic18f2515.h,
734           device/include/pic16/pic18f2610.h,
735           device/include/pic16/pic18f4410.h,
736           device/include/pic16/pic18f4510.h,
737           device/include/pic16/pic18f4515.h,
738           device/include/pic16/pic18f4610.h,
739           device/include/pic16/pic18fregs.h,
740           device/lib/pic16/libdev/Makefile.am,
741           device/lib/pic16/libdev/Makefile.in,
742           device/lib/pic16/libdev/pic18f2410.c,
743           device/lib/pic16/libdev/pic18f2510.c,
744           device/lib/pic16/libdev/pic18f2515.c,
745           device/lib/pic16/libdev/pic18f2610.c,
746           device/lib/pic16/libdev/pic18f4410.c,
747           device/lib/pic16/libdev/pic18f4510.c,
748           device/lib/pic16/libdev/pic18f4515.c,
749           device/lib/pic16/libdev/pic18f4610.c,
750           device/lib/pic16/libio/Makefile.am,
751           device/lib/pic16/libio/Makefile.in,
752           device/lib/pic16/pics.all: added support for 18f[24][456]10
753           and 18f[24]515 devices
754         * doc/sdccman.lyx: updated list of supported PIC16 devices
755
756         * src/pic/glue.c, src/pic/pcode.c, src/pic/pcodeflow.c,
757           src/pic16/glue.c, src/pic16/pcode.c, src/pic16/pcodeflow.c,
758           src/xa51/gen.c: avoid compiler warnings
759         * support/scripts/inc2h-pic16.pl: removed trailing whitespace
760
761 2008-10-22 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
762
763         * device/include/mcs51/p89v66x.h: NXP header file
764         * device/include/mcs51/p89c66x.h: fixed an SBIT definition
765           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
766
767 2008-10-14 Raphael Neider <rneider AT web.de>
768
769         * device/lib/pic16/libdev/Makefile.am,
770           device/lib/pic16/libio/Makefile.am: enable building libraries for
771           18f2321, 18f4321, 18f2523, 18f4620, 18f66j60, 18f66j65, 18f67j60,
772           18f86j60, 18f86j65, 18f87j60, 18f96j60, 18f96j65, and 18f97j60
773         * device/lib/pic16/libdev/Makefile.in,
774           device/lib/pic16/libio/Makefile.in: regenerated
775
776 2008-10-14 Raphael Neider <rneider AT web.de>
777
778         * device/include/pic16/pic18f2450.h,
779           device/include/pic16/pic18f4450.h,
780           device/lib/pic16/libdev/pic18f2450.c,
781           device/lib/pic16/libdev/pic18f4450.c,
782           device/include/pic16/adc.h,
783           device/include/pic16/pic16devices.txt,
784           device/include/pic16/pic18fregs.h,
785           device/lib/pic16/libdev/Makefile.am,
786           device/lib/pic16/libdev/Makefile.in,
787           device/lib/pic16/libio/Makefile.am,
788           device/lib/pic16/libio/Makefile.in,
789           device/lib/pic16/pics.all: added 18f2450 and 18f4450, closes #1844525
790
791         * device/lib/pic16/libsdcc/stack/stack.S: there is no need to pin the
792           stack to a fixed location, relax it to automatically work with all
793           but the smallest devices (256 byte RAM devices need #pragma stack)
794
795 2008-10-09 Maarten Brock <sourceforge.brock AT dse.nl>
796
797         * debugger/mcs51/break.c: bugfix from patch 1989966, thanks Risto Huotari
798         * debugger/mcs51/simi.c: bugfix from patch 1989972, thanks Risto Huotari
799         * device/lib/_strcspn.c: fixed bug 2140931
800
801 2008-10-06 Raphael Neider <rneider AT web.de>
802
803         * device/include/pic16/stdio.h,
804           device/lib/pic16/libc/stdio/putchar.c: putchar should not be
805           declared __naked for convenience, named all arguments
806         * device/lib/pic16/libc/stdio/strmgpsim.c,
807           device/lib/pic16/libc/stdio/strmmssp.c,
808           device/lib/pic16/libc/stdio/strmusart.c: cosmetic changes
809
810         * src/pic16/pcode.c (createReachingDefinitions): avoid segfault on
811           empty __naked functions,
812         * (pCodeLabelDestruct, pic16_unlinkpCode, pic16_pCodeUnlink): fix
813           corner cases (unlink first/last pCode in list), reuse more code
814
815 2008-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
816
817         * src/ds390/main.c (_ds390_genInitStartup): added
818         * src/SDCCpeeph.c (getPatternVar): new, added,
819           (labelInRange): fixed bug 2115959
820         * src/mcs51/peeph.def (rules 193.x to 198.x): check for labelInRange
821         * src/SDCCicode.h: added newiTempOperand
822         * src/SDCCcse.c (algebraicOpts): fixed bug for x*-1,
823           added optimizations for 0/x and x/-1, see also patch 2142900
824         * support/regression/tests/onebyte.c (testMul): added test cases
825
826 2008-09-20 Borut Razem <borut.razem AT siol.net>
827
828         * src/pic16/glue.c:
829           definition of absolute address symbols without initial value,
830           fixed SDCC crash "do not know how to intialize symbol"
831
832 2008-09-16 Maarten Brock <sourceforge.brock AT dse.nl>
833
834         * device/lib/z80/mul.s (__mulsuchar_rrx_s, __muluschar_rrx_s),
835         * device/lib/z80/div.s (__divsuchar_rrx_s, __modsuchar_rrx_s,
836           __divuschar_rrx_s, __moduschar_rrx_s): added mixed signedness versions
837         * device/lib/z80/stubs.s: added stubs for above functions
838         * src/SDCCopt.c (convilong),
839         * src/SDCCsymt.c (initCSupport): fixed bug 1900961
840         * src/SDCCsymt.h (__muldiv): enlarged for mixed signedness
841         * src/z80/main.c (_hasNativeMulFor): fixed bug, I think
842         * support/regression/tests/onebyte.c: enabled all tests for z80
843
844 2008-09-15 Borut Razem <borut.razem AT siol.net>
845
846         * device/include/pic16/stdio.h, device/lib/pic16/libc/stdio/streams.c,
847           device/lib/pic16/libc/stdio/printf.c,
848           device/lib/pic16/libc/stdio/strmusart.c,
849           device/lib/pic16/libc/stdio/printf_tiny.c,
850           device/lib/pic16/libc/stdio/sprintf.c,
851           device/lib/pic16/libc/stdio/strmgpsim.c,
852           device/lib/pic16/libc/stdio/putchar.c,
853           device/lib/pic16/libc/stdio/fprintf.c,
854           device/lib/pic16/libc/stdio/strmmssp.c,
855           device/device/lib/pic16/libc/stdio/vprintf.c,
856           device/lib/pic16/libc/stdio/printf_small.c,
857           device/lib/pic16/libc/stdio/vsprintf.c,
858           device/lib/pic16/libc/stdio/strmputchar.c,
859           device/lib/pic16/libc/Makefile.am,
860           device/lib/pic16/libc/Makefile.in:
861           *printf now returns int, puchar.c moved from stdlib to stdio,
862           *printf format parameter type changed from char * to const char *,
863           added GNU link excetion text to library source files,
864           applyed GNU coding style, removed useless svn ids,
865           added BINARY_SPECIFIER macro re-enables the use of the removed 'b'
866           binary specifier: "%b", "%hb" and "%lb"
867         * device/lib/pic16/libc/stdio/vfprintf.c:
868           applied patch #2044424: PIC16: vfprintf
869           thanks Mauro Giachero
870         * support/regression/tests/bug1057979.c:
871           removed old pic16 sprintf specifics
872         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.4
873         * doc/sdccman.lyx: documented 'b' binary format specifier removal
874
875 2008-09-15 Raphael Neider <rneider AT web.de>
876
877         * src/pic16/device.c (pic16_dump_usection): force udata sections
878           into the addressable range (0..0xFFF), workaround for a gpsim
879           bug preventing simulation of regtest bug1750318
880         * src/pic16/ralloc.c (deassignLRs): cosmetic changes,
881           (serialRegAssign): fixed regtest bug-971834,
882           (pic16_packRegisters): avoid null-pointer dereference
883
884 2008-09-14 Raphael Neider <rneider AT web.de>
885
886         * src/pic16/gen.c, src/pic16/ralloc.c: use
887           SYM_SPIL_LOC/SPIL_LOC macros, no functional changes
888         * src/pic16/ralloc.c (rematStr): reimplemented, fixes #1818857
889
890 2008-09-12 Borut Razem <borut.razem AT siol.net>
891
892         * support/regression/fwk/testfwk.h:
893           define pdata as data for pic16 target
894           thanks Mauro Giachero
895
896 2008-09-11 Borut Razem <borut.razem AT siol.net>
897
898         * support/regression/tests/bug-221100.c, support/regression/shifts.c,
899           support/regression/absolute.c:
900           applied patch #2105615: Some PIC16 testcase fixlets
901           thanks Mauro Giachero
902
903 2008-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
904
905         * src/z80/gen.c (genCmpGt, genCmpLt): fixed bug 2094505
906         * support/regression/tests/bug2094505.c: new, added
907
908 2008-09-07 Borut Razem <borut.razem AT siol.net>
909
910         * src/SDCCglue.c, src/SDCCast.c:
911           fixed throw of "excess elements" warning for char arrays
912         * support/regression/tests/nullstring.c:
913           disable warning about excess elements in array of chars initializer
914
915 2008-09-07 Maarten Brock <sourceforge.brock AT dse.nl>
916
917         * as/z80/aslist.c (lstsym): changed old K&R to ANSI
918         * src/SDCCicode.c (geniCodeCritical): fixed bug for hc08
919         * src/z80/gen.c (genCritical, genEndCritical): fixed bug 2077267
920         * support/regression/tests/bug2077267.c: new, added
921
922 2008-09-05 Raphael Neider <rneider AT web.de>
923
924         * configure.in, Makefile.common.in: add support for ccache,
925           remove spurious $VERSION output, detect doc-tools even without
926           --enable-doc to facilitate later manual doc-builds, minor cleanup
927         * configure: regenerated
928
929         * doc/Makefile.in: quieten pdflatex, makeindex, and latex2html,
930           avoid races in parallel VPATH builds
931         * doc/clean.mk: remove .lyx files in the builddir for VPATH builds
932         * doc/sdccman.lyx: mention --without-ccache configure option
933
934 2008-09-01 Raphael Neider <rneider AT web.de>
935
936         * src/pic16/gen.c (pic16_derefPtr): handle CPOINTERs as well
937         * (genConstPointerGet): fix reading bitfields from __code space
938         * src/pic16/glue.c (pic16_printIvalBitFields): correctly mask
939           bitfield initializers (fix regression test bug1856409.c)
940         * (pic16_printIvalCharPtr,pic16_printIvalPtr): generalized to support
941           arbitrary sizes
942
943 2008-08-31 Raphael Neider <rneider AT web.de>
944
945         * src/pic16/gen.c (genAssign): removed useless compiler output
946         * (genPointerGet,genPointerSet,genCast),
947           src/pic16/glue.c (pic16_printGPointerType):
948           also handle PPOINTERs just to avoid spurious asserts
949         * (pic16_printIvalType,pic16_printIvalBitFields):
950           generalized to arbitrary type/bitfield sizes, allows compilation of
951           regression test bug-1981238.c
952         * (pic16_printIvalChar): fix regression test structflexarray.c
953         * (pic16_printIvalArray): avoid SIGSEGV on uninitialized strings
954           in initialized structs and fix #1843745
955         * (pic16_printIvalStruct): always output initializers for all fields,
956           even those not explicitly given, fixes zeropad.c regression test
957         * (pic16_printIvalUnion): fix union initializers (bug1426356.c,
958           #2073635, #1567098, and #1485812)
959         * src/pic16/main.c (_pic16_keywords): remove unsupported 'pdata'
960
961 2008-08-31 Borut Razem <borut.razem AT siol.net>
962
963         * support/regression/tests/bug-895992.c,
964           support/regression/tests/onebyte.c:
965           enabled pic16 regression testing since the bugs
966           1511794: pic16: regression test bug-895992.c fails
967           1444425: onebyte.c regression tes fails on pic16
968           are fixed, probably by fixing
969           2048464: PIC16: fix genUminus - addresses not.c regression test
970         * src/SDCCsymt.c, src/SDCCglue.c,
971           support/regression/tests/bug-1981238.c:
972           applied patch 2076664: fix #1981238 + SIGSEGV in SDCCGlue.c
973           thanks to RvS
974
975 2008-08-30 Borut Razem <borut.razem AT siol.net>
976
977         * support/cpp/libcpp/files.c: SDCPP synchronized with GCC CPP
978           release version 4.3.2
979
980 2008-08-24 Raphael Neider <rneider AT web.de>
981
982         * device/lib/pic16/configure, device/lib/pic16/configure.ac:
983           always use the sdcc from the current build tree (ignore $CC from
984           the environment, fixes compile farm builds)
985         * device/lib/Makefile.in: rename .a into .lib for compatibility,
986           remove more build products from install directory
987         * sdcc/src/pic16/main.c (_pic16_linkEdit,_pic16_finaliseOptions)
988         * sdcc/support/scripts/sdcc.nsi: revert to .lib extension for libs
989
990 2008-08-24 Borut Razem <borut.razem AT siol.net>
991
992         * src/SDCC.y: applied patch
993           2050245: Fix # 1963382
994           for bug
995           1963382: Listing File - C file comment is incorrect
996           thanks to RvS
997
998 2008-08-23 Borut Razem <borut.razem AT siol.net>
999
1000         * src/pic16/gen.c: applied patch
1001           2048464: PIC16: fix genUminus - addresses not.c regression test
1002           thanks Mauro Giachero
1003
1004 2008-08-22 Borut Razem <borut.razem AT siol.net>
1005
1006         * device/lib/pic16/configure, device/lib/pic16/configure.ac,
1007           src/pic16/main.c: allow spaces in gpasm and gplink paths
1008
1009 2008-08-15 Philipp Klaus Krause <pkk AT spth.de>
1010
1011         * src/z80/peep.c,
1012         * src/z80/peeph-z80.def: minor peephole improvement
1013
1014 2008-08-15 Raphael Neider <rneider AT web.de>
1015
1016         * src/z80/gen.c (_vemit2): suppress compiler warning
1017
1018         * src/pic/*.[ch]: make proper use of header files and avoid
1019           ad-hoc extern declarations, mark module-local helpers 'static',
1020           removed dead/replaced code, no functional changes
1021         * src/pic16/pcode.c: disentangled from pic14 backend
1022
1023 2008-08-14 Philipp Klaus Krause <pkk AT spth.de>
1024
1025         * src/z80/gen.c: fixed #2051348
1026         * support/regression/tests/bug-2051348.c: regression test for #2051348
1027
1028 2008-08-10 Raphael Neider <rneider AT web.de>
1029
1030         * configure.in,
1031         * Makefile.common.in: export PACKAGE for $docdir,
1032           fixes #1957036, avoid some "underquoted definition" warnings
1033         * configure: regenerated
1034
1035 2008-08-10 Raphael Neider <rneider AT web.de>
1036
1037         * device/lib/pic16/**: build pic16 library using autotools for
1038           improved dependency tracking
1039
1040         * device/lib/Makefile.in,
1041         * src/pic16/main.c,
1042         * support/scripts/sdcc.nsi: adapt to changes in filenames (s/.lib/.a/)
1043
1044 2008-08-10 Raphael Neider <rneider AT web.de>
1045
1046         * src/pic/pcode.c (ReuseReg): do not overlay the registers used for
1047           local variables if --nooverlay is given, workaround for #2023121
1048
1049 2008-08-08 Raphael Neider <rneider AT web.de>
1050
1051         * src/pic16/genarith.c (genAddLit): fix structure access (#1888004)
1052
1053 2008-08-08 Raphael Neider <rneider AT web.de>
1054
1055         * src/pic/pcoderegs.c,
1056         * src/pic/pcode.c,
1057         * src/pic16/pcode.c: replace own SAFE_snprintf with common SNPRINTF
1058
1059 2008-08-07 Borut Razem <borut.razem AT siol.net>
1060
1061         * src/SDCCval.c, src/SDCCmain.c, src/SDCC.lex,
1062           device/lib/pic/Makefile.rules, device/lib/ds390/Makefile.in,
1063           device/lib/ds400/Makefile.in, device/lib/hc08/Makefile.in,
1064           support/cpp/libcpp/lex.c,  doc/sdccman.lyx:
1065           applied modified patch 2038174: Add support for binary constants v2
1066           thanks Mauro Giachero
1067         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.3
1068
1069 2008-08-04 Raphael Neider <rneider AT web.de>
1070
1071         * doc/sdccman.lyx,
1072         * src/pic16/device.h,
1073         * src/pic16/glue.c,
1074         * src/pic16/main.c: enable --optimize-goto by default
1075
1076         * device/lib/pic16/Makefile.common.in: suppress removed option
1077
1078         * src/pic16/gen.c,
1079         * src/pic16/genutils.c: avoid too long relative branches (#2031890)
1080
1081 2008-07-30 Borut Razem <borut.razem AT siol.net>
1082
1083         * src/pic16/device.c, src/pic16/glue.c, src/pic16/pcode.c:
1084           applied patch 22032433: PIC16: fix constant strings,
1085           thanks Mauro Giachero
1086
1087 2008-07-29 Borut Razem <borut.razem AT siol.net>
1088
1089         * src/pic16/gen.c: applied patches:
1090           2030306: [1/3] PIC16: fix failing rotate.c tests on 16-bit variables,
1091           2030307: [2/3] PIC16: fix failing rotate.c tests for 32-bit var (1),
1092           2030310: [3/3] PIC16: fix failing rotate.c tests for 32-bit var (2),
1093           thanks Mauro Giachero
1094
1095 2008-07-13 Philipp Klaus Krause <pkk AT spth.de>
1096
1097         * src/port.h: Fixed typo in comment
1098
1099 2008-07-12 Philipp Klaus Krause <pkk AT spth.de>
1100
1101         * src/z80/mappings.i: Implemented RFE #1919415
1102         * src/z80/peeph-z80.def: Implemented RFE #1919415, #1861376,
1103           #1880202, #1914434, prepared for RFE #1703943
1104
1105 2008-07-12 Philipp Klaus Krause <pkk AT spth.de>
1106
1107         * src/z80/peeph.def,
1108         * src/z80/peeph-z80.def,
1109         * src/z80/peeph-gbz80.def: separate Z80 from GBZ80 peepholes in
1110           preparation for Z80 peephole improvements
1111
1112 2008-06-21 Raphael Neider <rneider AT web.de>
1113
1114         * device/include/pic16/pic18f66j60.h,
1115         * device/include/pic16/pic18f66j65.h,
1116         * device/include/pic16/pic18f67j60.h,
1117         * device/include/pic16/pic18f86j60.h,
1118         * device/include/pic16/pic18f86j65.h,
1119         * device/include/pic16/pic18f87j60.h,
1120         * device/include/pic16/pic18f96j60.h,
1121         * device/include/pic16/pic18f96j65.h,
1122         * device/include/pic16/pic18f97j60.h,
1123         * device/lib/pic16/libdev/pic18f66j60.c,
1124         * device/lib/pic16/libdev/pic18f66j65.c,
1125         * device/lib/pic16/libdev/pic18f67j60.c,
1126         * device/lib/pic16/libdev/pic18f86j60.c,
1127         * device/lib/pic16/libdev/pic18f86j65.c,
1128         * device/lib/pic16/libdev/pic18f87j60.c,
1129         * device/lib/pic16/libdev/pic18f96j60.c,
1130         * device/lib/pic16/libdev/pic18f96j65.c,
1131         * device/lib/pic16/libdev/pic18f97j60.c,
1132         * device/include/pic16/pic16devices.txt,
1133         * device/include/pic16/pic18fregs.h,
1134         * device/lib/pic16/pics.all: added new devices
1135
1136         * device/include/pic16/adc.h,
1137         * device/lib/pic16/libio/adc/adcbusy.c,
1138         * device/lib/pic16/libio/adc/adcopen.c,
1139         * device/lib/pic16/libio/adc/adcsetch.c,
1140         * device/lib/pic16/libio/i2c/i2copen.c,
1141         * device/lib/pic16/libio/usart/uopen.c: adapted to new devices,
1142           all changes from a patch by Anton Strobl
1143
1144 2008-06-12 Borut Razem <borut.razem AT siol.net>
1145
1146         * sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/bp.cc,
1147           sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
1148           sim/ucsim/z80.src/z80cl.h, sim/ucsim/z80.src/z80.cc,
1149           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
1150           sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
1151           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/uc390.cc,
1152           sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/uc390cl.h,
1153           sim/ucsim/avr.src/avrcl.h, sim/ucsim/avr.src/avr.cc:
1154           fixed bug 1990586: s51 simulator, uc::disass() unimplemented
1155           by applying the modified patch from Risto Huotari
1156
1157 2008-06-04 Maarten Brock <sourceforge.brock AT dse.nl>
1158
1159         * .version,
1160         * doc/sdccman.lyx: bumped sdcc version to 2.8.2
1161         * src/ds390/gen.c (aopPutUsesAcc, genAddrOf): fixed bug 1015185
1162         * src/mcs51/gen.c (genNearPointerGet, genNearPointerSet): fixed bug 1938300
1163         * support/regression/tests/bug1938300.c: new, added
1164
1165 2008-06-03 Maarten Brock <sourceforge.brock AT dse.nl>
1166
1167         * device/include/asm/ds390/features.h,
1168         * device/include/asm/mcs51/features.h,
1169         * device/include/mcs51/regc515c.h: inserted LGPL notice
1170
1171 2008-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
1172
1173         * device/lib/gbz80/div.s,
1174         * device/lib/z80/div.s: fixed bug 1904314 by applying a modified part of
1175           patch 1597883, Thanks Robert Ramey
1176
1177 2008-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
1178
1179         * src/SDCCast.c (createIvalType, createIvalStruct, createIvalArray,
1180           createIvalCharPtr, createIvalPtr, createIval),
1181         * src/SDCCval.h
1182         * src/SDCCval.c (convertIListToConstList, list2expr): handle incomplete
1183           initializers for local auto variables
1184         * support/regression/tests/zeropad.c: added testcase for auto initializers
1185
1186 2008-05-26 Raphael Neider <rneider AT web.de>
1187
1188         * device/lib/pic16/startup/crt0.c,
1189         * device/lib/pic16/startup/crt0i.c,
1190         * device/lib/pic16/startup/crt0iz.c: clean up, make use of access bank
1191           explicit, fixed curr_entry loop for >= 256 initializer records,
1192           removed debug code (write to 0xf7e)
1193
1194 2008-05-25 Raphael Neider <rneider AT web.de>
1195
1196         * device/include/pic/pic16f627a.h,
1197         * device/include/pic/pic16f628a.h,
1198         * device/include/pic/pic16f648a.h: added missing ports
1199
1200 2008-05-20 Maarten Brock <sourceforge.brock AT dse.nl>
1201
1202         * device/include/float.h: added __INFINITY
1203         * device/lib/_fsadd.c: handle overflows
1204         * device/lib/_fsmul.c,
1205         * device/lib/_fsdiv.c: use __INFINITY
1206         * device/lib/_fseq.c,
1207         * device/lib/_fsneq.c: handle -0.0
1208         * sim/ucsim/s51.src/uc89c51r.cc,
1209         * sim/ucsim/s51.src/uc89c51rcl.h: fixed bug 1385430
1210         * sim/ucsim/sim.src/hwcl.h: */* confuses VC
1211         * src/mcs51/gen.c (genSend): fixed bug with --xstack
1212         * support/regression/ports/mcs51-xstack-auto/spec.mk: print floats
1213         * support/regression/tests/snprintf.c: test bug with --xstack
1214
1215 2008-05-19  Philipp Klaus Krause <pkk AT spth.de>
1216
1217         * src/SDCCpeeph.c (callFuncByName):
1218           Support nested parenthesis in peephole function arguments (#1967300)
1219
1220 2008-05-19 Raphael Neider <rneider AT web.de>
1221
1222         * src/pic16/gen.c (pic16_emitpLabel,pic16_emitpLabelFORCE):
1223           fixed duplicate labels (#1911325)
1224
1225 2008-05-19 Raphael Neider <rneider AT web.de>
1226
1227         * src/regression/empty.c: suppress warning
1228         * src/regression/pointer1.c: enabled index_by_pointer()
1229         * src/regression/inline.c: now works for pic16 as well
1230
1231         * src/pic16/device.c: include dbuf declarations
1232         * src/pic16/device.h: removed obsolete prototypes
1233
1234         * src/pic16/gen.c, src/pic16/gen.h: moved generic pointer tags
1235         * src/pic16/glue.c: made purely local functions static,
1236           (pic16_printGPointerType, pic16_printIvalCharPtr,
1237           pic16_printIvalFuncPtr, pic16_printIvalPtr): fixed initialized
1238           generic pointers' tags (#1961866)
1239
1240         * src/pic16/pcode.c (assignValnums): optimize literal assignments
1241
1242 2008-05-19 Borut Razem <borut.razem AT siol.net>
1243
1244         * support/scripts/sdcc.nsi: remove uninstall.exe after uninstallation,
1245           fixed typo, uninstall include/pic16/pic16devices.txt
1246
1247 2008-05-18 Borut Razem <borut.razem AT siol.net>
1248
1249         * support/Utils/dbuf_string.[ch]: added dbuf_chomp(),
1250           the buffer is null terminated
1251         * src/device/pic16.c:
1252           applied modified patch 1965676: Patch for Win32 16 bit PIC
1253         * sdcc_vc_in.h: defined YY_NO_UNISTD_H
1254
1255 2008-05-16 Maarten Brock <sourceforge.brock AT dse.nl>
1256
1257         * src/SDCC.lex (check_type),
1258         * src/SDCC.y (type_specifier2 TYPE_NAME): fixed bug 1925942
1259         * as/hc08/clean.mk,
1260         * as/mcs51/clean.mk,
1261         * as/z80/clean.mk: also clean *.dep
1262         * device/lib/pic16/libsdcc/stack/Makefile,
1263         * sim/ucsim/libtool: removed as they are rebuild by configure
1264         * src/clean.mk: removed izt, so Makefile is not deleted for distclean
1265
1266 2008-05-13 Maarten Brock <sourceforge.brock AT dse.nl>
1267
1268         * src/SDCCast.c (fixupInline, createFunction): save currBlockno in
1269           fixupInline instead of createFunction to fix bug 1864577
1270           (inlineFindMaxBlockno): removed, use global blockNo
1271         * src/SDCCglobl.h: added blockNo
1272         * src/z80/peep.c,
1273         * src/z80/peep.h: modified properties
1274         * support/regression/tests/bug1864577.c: new, added
1275
1276 2008-05-07 Maarten Brock <sourceforge.brock AT dse.nl>
1277
1278         * as/mcs51/asdata.c,
1279         * as/mcs51/asm.h: added org_cnt
1280         * as/mcs51/asmain.c (main, asmbl): fixed bug 1957716, changed old K&R to ANSI
1281         * as/mcs51/asout.c: changed old K&R to ANSI
1282         * as/mcs51/Makefile.in: use common identifiers
1283         * as/hc08/asdata.c,
1284         * as/hc08/asexpr.c,
1285         * as/hc08/asm.h,
1286         * as/hc08/asmain.c,
1287         * as/hc08/asout.c,
1288         * as/hc08/Makefile.bcc,
1289         * as/hc08/Makefile.in: synchronized with as/mcs51/*
1290         * sdcc_vc_in.h: added define __func__
1291         * src/SDCCast.c (expandInlineFuncs): applied patch 1957148 to fix bug 1717305,
1292           Thanks Ruud van Silfhout
1293         * support/regression/tests/bug1717305.c: new, added
1294
1295 2008-05-05 Borut Razem <borut.razem AT siol.net>
1296
1297         * support/regression/Makefile.in,
1298           support/regression/ports/ds390/spec.mk,
1299           support/regression/ports/hc08/spec.mk,
1300           support/regression/ports/mcs51-common/spec.mk,
1301           support/regression/ports/pic14/spec.mk,
1302           support/regression/ports/pic16/spec.mk,
1303           support/regression/ports/ucz80/spec.mk,
1304           support/regression/ports/z80/spec.mk:
1305           added INC_DIR and LIBDIR paths
1306         * src/ds390/gen.c: removed duplicated selicolon
1307
1308 2008-05-04 Borut Razem <borut.razem AT siol.net>
1309
1310         * support/regression/Makefile.in,
1311           support/regression/fwk/lib/testfwk.c,
1312           support/regression/ports/ds390/spec.mk,
1313           support/regression/ports/hc08/spec.mk,
1314           support/regression/ports/mcs51-common/spec.mk,
1315           support/regression/ports/mcs51-large/spec.mk,
1316           support/regression/ports/mcs51-medium/spec.mk,
1317           support/regression/ports/mcs51-small/spec.mk,
1318           support/regression/ports/mcs51-stack-auto/spec.mk,
1319           support/regression/ports/mcs51-xstack-auto/spec.mk,
1320           support/regression/ports/pic14/spec.mk,
1321           support/regression/ports/pic16/spec.mk,
1322           support/regression/ports/ucz80/spec.mk:
1323           added possibility to define the sdcc binary directory SDCC_BIN_PATH
1324           used to run regeression tests
1325
1326 2008-05-01 Raphael Neider <rneider AT web.de>
1327
1328         * doc/sdccman.lyx, support/scripts/inc2h-pic16.pl: updated list of
1329           supported devices and instructions to add new ones
1330
1331 2008-05-01 Raphael Neider <rneider AT web.de>
1332
1333         * device/include/pic16/adc.h,
1334           device/lib/pic16/libio/adc/adcbusy.c,
1335           device/lib/pic16/libio/adc/adcopen.c,
1336           device/lib/pic16/libio/adc/adcsetch.c: support old 18f242 and new
1337           18f2455 style ADC devices, based on patch #1776197
1338         * device/lib/pic16/libio/adc/adcclose.c,
1339           device/lib/pic16/libio/adc/adcconv.c,
1340           device/lib/pic16/libio/adc/adcread.c: cosmetic changes
1341         * device/include/pic16/{pic18f2331.h,pic18f2431.h},
1342           device/lib/pic16/libdev/{pic18f2331.c,pic18f2431.c}: reuse 18f4331
1343         * device/include/pic16/pic18f4431.h,
1344           device/lib/pic16/libdev/pic18f4431.c: remove outdated comments
1345         * device/lib/pic16/libio/adc.ignore: forbid unhandled devices
1346
1347 2008-05-01 Raphael Neider <rneider AT web.de>
1348
1349         * src/pic16/device.h: removed unused field PIC16_device.sfrRange,
1350           moved xinst flag into pic16_options_t
1351         * src/pic16/device.c (default_device, pic16_list_devices,
1352           pic16_find_device): removed references to sfrrange
1353         * src/pic16/gen.c (genFunction),
1354           src/pic16/glue.c (pic16initialComments),
1355           src/pic16/main.c (pic16_optionsTable),
1356           src/pic16/ralloc.c (newReg, pic16_writeUsedRegs): updated references
1357           to xinst
1358         * device/include/pic16/pic16devices.txt: removed sfrrange lines
1359
1360 2008-04-29 Raphael Neider <rneider AT web.de>
1361
1362         * src/pic16/devices.inc,
1363           device/include/pic16/pic16devices.txt: replaced compiled-in list
1364           of devices with a variant parsed at runtime
1365         * src/pic16/device.c: added support for parsing pic16devices.txt,
1366           clean up
1367         * src/pic16/device.h: removed (now) unused fields from PIC_device
1368         * src/pic16/main.c: removed #pragma maxram,
1369           (_pic16_initPaths): removed bogus generation of search paths,
1370           setup the port proper only after the search paths (for
1371           pic16devices.txt) are set up,
1372           (_pic16_finaliseOptions): moved processor dependant code here
1373           from _pic16_initPaths(), clean up
1374         * src/pic16/ralloc.c (pic16_init_stack),
1375         * src/pic16/ralloc.h,
1376         * src/pic16/pcode.c: clean up
1377         * device/include/Makefile.in,
1378           support/scripts/sdcc.nsi: also install/package pic16devices.txt
1379         * support/scripts/inc2h-pic16.pl: updated instructions
1380
1381 2008-04-29 Raphael Neider <rneider AT web.de>
1382
1383         * device/include/pic16/{pic18f2480.h, pic18f2580.h, pic18f4423.h,
1384           pic18f4480.h, pic18f4523.h, pic18f4580.h, pic18f6585.h, pic18f8585.h},
1385           device/lib/pic16/libdev/{pic18f2480.c, pic18f2580.c, pic18f4423.c,
1386           pic18f4480.c, pic18f4523.c, pic18f4580.c, pic18f6585.c, pic18f8585.c}:
1387           added missing family members and 18f2480/2580/4480/4580 family
1388         * device/include/pic16/{pic18f2423.h, pic18f2523.h}: use 18f4523.h
1389         * device/include/pic16/pic18f2525.h: use 18f4620.h
1390         * device/include/pic16/pic18f6680.h: use 18f8680.h
1391         * device/include/pic16/pic18fregs.h,
1392           device/lib/pic16/pics.all,
1393           src/pic16/devices.inc: add new devices
1394         * device/lib/pic16/libdev/{pic18f2423.c, pic18f2523.c}: use 18f4523.c
1395         * device/lib/pic16/libdev/pic18f2525.c: use 18f4620.c
1396         * device/lib/pic16/libdev/pic18f6680.c: uso 18f8680.c
1397         * device/lib/pic16/libio/{adc.ignore, i2c.ignore, usart.ignore}:
1398           prevent attempting to build the libio for some new devices
1399
1400 2008-04-29 Raphael Neider <rneider AT web.de>
1401
1402         * debugger/mcs51/Makefile.in: fixed paths to sources
1403
1404 2008-04-25 Borut Razem <borut.razem AT siol.net>
1405
1406         * as/link/lklibr.c: moved from as/link/z80/lklibr.c
1407         * as/link/hc08/lklibr.c, as/link/mcs51/lklibr.c: deleted
1408         * as/link/hc08/Makefile.bcc, as/link/hc08/Makefile.in,
1409         * as/link/hc08/link_hc08.dsp, as/link/mcs51/Makefile.bcc,
1410           as/link/mcs51/Makefile.in, as/link/mcs51/aslink.dsp,
1411           as/link/z80/Makefile.in, as/link/z80/linkgbz80.dsp,
1412           as/link/z80/linkz80.dsp: lklibr.c moved
1413         * doc/INSTALL.txt: binary archives in bz2 format
1414         * support/cpp/auto-host_vc_in.h: CPP2 replaced with CPP
1415
1416 2008-04-23 Maarten Brock <sourceforge.brock AT dse.nl>
1417
1418         * src/SDCCglue.c (printIvalType, printIvalBitFields): fixed bug 1856409
1419         * support/regression/tests/bug1856409.c: new, added
1420
1421 2008-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
1422
1423         * src/z80/peep.c,
1424         * src/mcs51/peep.c: Use werror for error messages.
1425         * src/SDCCicode.c (geniCodeConditional),
1426         * src/SDCCsymt.c (structElemType): fixed bug 1839321
1427         * src/z80/Makefile.bcc,
1428         * src/z80/z80.dsp: added src/z80/peep.c/h
1429         * support/regression/tests/bug1839321.c: new, added
1430
1431 2008-04-20 Raphael Neider <rneider AT web.de>
1432
1433         * device/include/pic16/pic18f2455.h: added bitfields for port C
1434
1435 2008-04-20 Philipp Klaus Krause <pkk AT spth.de>
1436
1437         * src/z80/peep.c: Use werror for error messages.
1438
1439 2008-04-19 Philipp Klaus Krause <pkk AT spth.de>
1440
1441         * src/z80/peep.h (declaration of notUsed()),
1442         * src/z80/main.c (enabled notUsed() for z80 port, documented z80_port
1443           struct),
1444         * src/z80/z80.h (added dependency on peep.h),
1445         * src/z80/peep.c (definition of notUsed()): Implemented RFE #1880202
1446           for Z80.
1447
1448 2008-04-19 Philipp Klaus Krause <pkk AT spth.de>
1449
1450         * src/SDCCpeeph.c (added support for notUsed()),
1451         * src/mcs51/main.c (added dependency on peep.h, documented mcs51_port
1452           struct),
1453         * src/port.h (removed dependency on mcs51/peep.h, added declaration
1454           for notUsed()): Implemented generic (that is not port-specific) part
1455           of RFE #1880202.
1456
1457 2008-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
1458
1459         * as/link/mcs51/lkmem.c (summary2): fixed bug 1796077
1460         * device/lib/libsdcc.lib,
1461         * device/lib/Makefile.in,
1462         * support/regression/ports/mcs51-xstack-auto/spec.mk,
1463         * device/lib/calloc.c: renamed to _calloc.c
1464         * device/lib/free.c: renamed to _free.c
1465         * device/lib/malloc.c: renamed to _malloc.c
1466         * device/lib/realloc.c: renamed to _realloc.c
1467         * src/ds390/gen.c (aopGet, aopPut, genPlusBits, genDataPointerSet,
1468           genNearPointerSet, genPagedPointerSet): synchronized with mcs51/gen.c
1469         * src/ds390/gen.c (popForBranch, genIfxJump, genCmp, genCmpEq, ifxForOp,
1470           genAnd, genOr, genXor, genIfx, gen390Code): fixed bug 1509084
1471         * src/mcs51/gen.c (popForBranch, genIfxJump, genCmp, genCmpEq,
1472           ifxForOp, genAnd, genOr, genXor, genNearPointerGet,
1473           genPagedPointerGet, genFarPointerGet, genCodePointerGet,
1474           genGenPointerGet, genIfx, gen51Code): fixed bug 1509084
1475         * src/ds390/gen.c,
1476         * src/mcs51/gen.c: throughout cosmetic changes for syncing both
1477         * src/SDCCsymt.h: updated IS_OP_RUONLY, IS_OP_ACCUSE
1478         * support/regression/tests/bug1509084.c: new, added
1479
1480 2008-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
1481
1482         * device/include/mcs51/cc2510fx.h: added _XPAGE
1483         * device/include/mcs51/compiler.h: cosmetic changes
1484
1485 2008-03-31 Maarten Brock <sourceforge.brock AT dse.nl>
1486
1487         * sdcc.dsw: adapted for moved cpp2, added dependency for as_z80 on
1488           config
1489
1490 2008-03-31 Borut Razem <borut.razem AT siol.net>
1491
1492         * support/cpp2 renamed to support/cpp
1493         * support/cpp2/libiberty/filenames.h, support/cpp2/libiberty/hex.c,
1494           support/cpp2/libiberty/splay-tree.c,
1495           support/cpp2/libiberty/splay-tree.h, support/cpp2/libcpp/macro.c,
1496           support/cpp2/libcpp/directives.c,
1497           support/cpp2/libcpp/include/cpplib.h,
1498           support/cpp2/libcpp/include/symtab.h,
1499           support/cpp2/libcpp/include/line-map.h,
1500           support/cpp2/libcpp/line-map.c, support/cpp2/libcpp/files.c,
1501           support/cpp2/libcpp/init.c, support/cpp2/libcpp/traditional.c,
1502           support/cpp2/libcpp/expr.c, support/cpp2/libcpp/internal.h,
1503           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/system.h,
1504           support/cpp2/libcpp/charset.c: SDCPP synchronized with GCC CPP
1505           release version 4.3.0
1506         * configure.in, configure, Makefile.in, Makefile.bcc:
1507           adapted for moved cpp2
1508
1509 2008-03-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1510
1511         * device/include/hc08/mc68hc908jkjl.h: committed fix for bug #1929739,
1512           thanks Alejandro Pustowka <alejo_pustowka AT yahoo.com.mx>
1513
1514 2008-03-30 Maarten Brock <sourceforge.brock AT dse.nl>
1515
1516         * src/SDCCloop.c (loopInvariants): applied fix for bug 1717943, thanks
1517           Robert Larice
1518         * support/regression/tests/bug1717943.c: new, added
1519
1520 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
1521
1522         * src/z80/gen.c (assignResultValue): Reverted reversal of order of
1523           bytewise return value assignments introduced in last commit.
1524
1525 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
1526
1527         * src/z80/gen.c (emitDebug, assignResultValue, genPlus, genMinus,
1528           genMult, genJumpTab):
1529           Use 16-bit instructions for addition in some additional cases,
1530           implemented RFEs #1914251, #1914245, #1922090, #1921382, #1918323.
1531
1532 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
1533
1534         * src/z80/ralloc.c (serialRegAssign, allocReg, tryAllocatingRegPair):
1535           Implemented RFE #1921450, changed some debug messages.
1536
1537 2008-03-30 Borut Razem <borut.razem AT siol.net>
1538
1539         * Small Device C Compiler 2.8.0 released
1540         * .version, doc/sdccman.lyx: changed sdcc version to 2.8.1
1541         * support/scripts/sdcc.nsi: added finish page; this version
1542           was used for 2.8.0 release
1543         * doc/knownbugs.html: removed; magically generated by the build
1544           process using gen_known_bugs.pl from now on
1545
1546 2008-03-23 Borut Razem <borut.razem AT siol.net>
1547
1548         * src/pic/gen.h: Q&D solution for the bug, found by Jim Paris
1549           and reverted it, since it was already fixed by Raphael ;-)
1550         * doc/knownbugs.html: updated for RC2
1551
1552 2008-03-22 Raphael Neider <rneider AT web.de>
1553
1554         * src/SDCCicode.c (getPtrType): avoid unnecessary extra assignments
1555           for PIC16 targets
1556
1557 2008-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
1558
1559         * src/mcs51/gen.c (adjustArithmeticResult): fixed bug 1839299
1560         * support/regression/tests/bug1839277.c: added related testBug1839299
1561
1562 2008-03-21 Maarten Brock <sourceforge.brock AT dse.nl>
1563
1564         * src/ds390/gen.c (opIsGptr, adjustArithmeticResult, genAddrOf, genAssign),
1565         * src/mcs51/gen.c (opIsGptr, adjustArithmeticResult, genAddrOf, genAssign):
1566           fixed bug 1839277
1567         * src/mcs51/gen.c: throughout only output hex constants
1568         * src/SDCCicode.c (getPtrType, geniCodeCast): fixed code size regression
1569         * support/regression/tests/bug1839277.c: new, added
1570
1571 2008-03-21 Philipp Klaus Krause <pkk AT spth.de>
1572
1573         * src/z80/ralloc.c (callFuncByName): Used // instead of /**/ to fix
1574           compilation warning about nested comments.
1575
1576 2008-03-20 Maarten Brock <sourceforge.brock AT dse.nl>
1577
1578         * src/SDCCsymt.c (comparePtrType): fixed bug 1921073
1579         * support/regression/tests/bug1921073.c: new, added
1580
1581 2008-03-17 Philipp Klaus Krause <pkk AT spth.de>
1582
1583         * src/z80/SDCCpeeph.c.c (callFuncByName):
1584           Commented function parameters.
1585
1586 2008-03-17 Philipp Klaus Krause <pkk AT spth.de>
1587
1588         * src/z80/ralloc.c (packRegsForAccUse2):
1589           disabled a broken accumulator packing optimization (fixed #1292721).
1590         * support/regression/tests/bug-1292721: Regression test for #1292721.
1591
1592 2008-03-16 Raphael Neider <rneider AT web.de>
1593
1594         * src/pic/gen.c (SetIrp,genNearPointerGet,genNearPointerSet):
1595           fixed code bloat regression using a variant of patch #1915618
1596
1597 2008-03-16 Borut Razem <borut.razem AT siol.net>
1598
1599         * support/scripts/sdcc.nsi: added section debugging macros, added SDCC
1600           icon, changed startup menu for release distribution, code cleaning,
1601           create url files instead links in startup menu
1602
1603 2008-03-16 Maarten Brock <sourceforge.brock AT dse.nl>
1604
1605         * src/SDCCcse.c (algebraicOpts): fixed bug 1579949
1606         * support/regression/tests/bug1579949.c: new, added
1607
1608 2008-03-14 Paul Stoffregen <paul AT pjrc.com>
1609
1610         * device/lib/printf_fast.c: fixed bug 1255403
1611
1612 2008-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
1613
1614         * doc/sdccman.lyx: enhanced paragraph about bankswitching for mcs51
1615         * src/cdbFile.c (cdbWriteBasicSymbol): fixed bug 1909409 for locals
1616
1617 2008-03-14 Borut Razem <borut.razem AT siol.net>
1618
1619         * as/doc/asmlnk.doc, as/doc/asxhtm.html: updated link-xx and aslink
1620           command line options
1621         * as/link/hc08/lkmain.c: converted tabs to spaces so that the usage
1622           is correctly displayed
1623         * as/link/z80/lkmain.c: usage line commented out
1624
1625 2008-03-13 Borut Razem <borut.razem AT siol.net>
1626
1627         * doc/sdccman.lyx: corrected to be able to convert to PDF,
1628           updated the list pf supported pic14 devices
1629
1630 2008-03-12 Maarten Brock <sourceforge.brock AT dse.nl>
1631
1632         * doc/sdccman.lyx: added paragraph about bankswitching for mcs51
1633
1634 2008-03-12 Borut Razem <borut.razem AT siol.net>
1635
1636         * as/doc/asmlnk.doc, as/doc/asxhtm.html: updated command line options,
1637           fixed documentation request #1718191
1638         * as/hc80/asmain.c, as/mcs51/asmain.c: added option -c to usage
1639         * doc/sdccman.lyx: added description of --no-std-crt0 gbz80
1640           command line option
1641
1642 2008-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
1643
1644         * src/SDCCast.c (isConformingBody): fixed bug 1505811, thanks Robert Larice
1645         * support/regression/tests/bug1505811.c: new, added
1646
1647 2008-03-09 Raphael Neider <rneider AT web.de>
1648
1649         * device/include/pic16/pic18f2620.h,
1650         * device/include/pic16/pic18f4620.h,
1651         * device/lib/pic16/libdev/pic18f2620.c,
1652         * device/lib/pic16/libdev/pic18f4525.c,
1653         * device/lib/pic16/libdev/pic18f4620.c: merged 18f2525/2620/4525/4620
1654           family to consistently use pic18f4620.[ch], fixes #1832562
1655
1656 2008-03-09 Borut Razem <borut.razem AT siol.net>
1657
1658         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
1659           changed sdcc version to 2.8.0
1660         * knownbugs.html: regenerated
1661         * support/scripts/gen_known_bugs.pl: added number of open bugs
1662
1663 2008-03-09 Raphael Neider <rneider AT web.de>
1664
1665         * src/pic16/gen.c (pic16_mov2w_volatile): NEW, read volatile operands,
1666           (genOr): read volatile operand even if the result is known,
1667           closes #1511838
1668           (genOr,genXor): removed unused legacy code,
1669           (genDummyRead): use pic16_mov2w_volatile()
1670
1671 2008-03-08 Borut Razem <borut.razem AT siol.net>
1672
1673         * src/SDCCglue.c: fixed bug #1864582: multiple definition of char
1674           cons w. --model-large
1675         * support/regression/staticinit.c: added regression test for bug
1676           #1864582
1677
1678 2008-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
1679
1680         * src/ds390/gen.c (pushSide, genPcall),
1681         * src/hc08/gen.c (pushSide, genPcall): synchronized with mcs51
1682         * src/mcs51/gen.c: cosmetic changes
1683         * support/regression/fwk/include/testfwk.h: added macro reentrant
1684         * support/regression/tests/bug1908493.c: new, added
1685
1686 2008-03-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1687
1688         * src/SDCCdebug.c:, as/link/lkaomf51.c: Fixed bug 1909409: Pdata in OMF file
1689
1690 2008-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
1691
1692         * src/mcs51/gen.c (pushSide, genPcall): fixed bug 1908493
1693         * src/SDCCmain.c (preProcess): removed -DSDCC_PARMS_IN_BANK1 because it is
1694           already set in ds390/main.c and mcs51/main.c
1695
1696 2008-03-07 Raphael Neider <rneider AT web.de>
1697
1698         * src/regression/init0.c: new test for initialized arrays of function
1699           pointers
1700         * src/regression/Makefile: made a bit more flexible, added init0.c
1701         * src/pic/glue.c (emitIvals): hacky fix for initializing from function
1702           pointers, closes #1427663
1703
1704 2008-03-05 Borut Razem <borut.razem AT siol.net>
1705
1706         * dos/sdccman.lyx: docummented predefined macros SDCC_REVISION,
1707           SDCC_PARMS_IN_BANK1, SDCC_FLOAT_REENT and SDCC_INT_LONG_REENT
1708
1709 2008-03-05 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1710
1711         * support/librarian/sdcclib.c:Added feature request 1908061:
1712           Synchronise sdcclib commands with ar.
1713
1714 2008-03-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1715
1716         * src/SDCCmain.c: added predefined macros SDCC_REVISION (RFE #1907229),
1717           and (depending on corresponding compiler option) SDCC_PARMS_IN_BANK1,
1718           SDCC_FLOAT_REENT, SDCC_INT_LONG_REENT
1719         * device/include/mcs51/compiler.h: removed umlauts, added double
1720           underscore
1721
1722 2008-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
1723
1724         * src/SDCCptropt.c (ptrPseudoSymConvert): fixed bug 1536762
1725         * support/regression/tests/bug1536762.c: new, added
1726         * src/SDCCutil.c,
1727         * src/SDCCutil.h: added getBuildDate()
1728         * src/SDCCmain.c (printVersionInfo),
1729         * src/SDCCglue.c (initialComments): use getBuildDate() instead of
1730           __DATE__
1731         * src/*/ralloc.c: removed IS_OP_RUONLY macro
1732         * src/ds390/ralloc.c (packRegisters),
1733         * src/mcs51/ralloc.c (packRegisters),
1734         * src/z80/ralloc.c (packRegisters): applied fix for bug 1618050, thanks
1735           Robert Larice
1736         * support/regression/tests/bug1618050.c: new, added
1737         * src/SDCCsymt.h: fixed typo in DECLSPEC2TXT
1738         * support/regression/fwk/include/testfwk.h,
1739         * support/regression/tests/bug1838000.c: moved _AUTOMEM and _STATMEM to
1740           testfwk.h
1741
1742 2008-03-04 Raphael Neider <rneider AT web.de>
1743
1744         * src/pic/gen.c: removed unused prototypes, prevent internal errors
1745           on accessing OP_SYM_TYPE(op)
1746         * src/pic/gen.h: removed unused prototype of genMinusDec()
1747         * src/pic/genarith.c (genMinus): cosmetic changes, rewritten to
1748           fix #1876953 (invalid subtraction code), removed unused code
1749
1750 2008-03-03 Raphael Neider <rneider AT web.de>
1751
1752         * src/pic/gen.c,
1753         * src/pic/gen.h,
1754         * src/pic/genarith.c,
1755         * src/pic/ralloc.c,
1756         * src/pic/ralloc.h: removed AOP_R0, AOP_R1, AOP_DPTR, AOP_DPTR2,
1757           AOP_ACC, and *_IDX and adjusted code, removed unused legacy code
1758
1759 2008-03-03 Raphael Neider <rneider AT web.de>
1760
1761         * src/pic/device.c (find_device): search user-specified paths first
1762           for pic14devices.txt, fixes #1900827
1763
1764 2008-03-02 Borut Razem <borut.razem AT siol.net>
1765
1766         * support/scripts/sdcc.nsi: fixed bug in IsNT, LogicLib-isation of
1767           AddToPath and RemoveFromPath
1768
1769 2008-03-01 Borut Razem <borut.razem AT siol.net>
1770
1771         * support/scripts/sdcc.nsi: reverted MULTIUSER page since it didn't
1772           work correctly, added debugging support if -DSDCC.DEBUG command line
1773           option is defined
1774
1775 2008-02-28 Borut Razem <borut.razem AT siol.net>
1776
1777         * doc/sdccman.lyx: cosmetic changes
1778
1779 2008-02-28 Maarten Brock <sourceforge.brock AT dse.nl>
1780
1781         * src/mcs51/ralloc.c (fillGaps): fixed bug 1839671
1782         * doc/sdccman.lyx: fixed unmeant removal of spaces
1783
1784 2008-02-27 Borut Razem <borut.razem AT siol.net>
1785
1786         * support/scripts/sdcc.nsi: corrected installation directory for
1787           current user installation mode
1788         * doc/README.txt: added Philipp Klaus Krause to the developers list
1789
1790 2008-02-27 Maarten Brock <sourceforge.brock AT dse.nl>
1791
1792         * src/mcs51/gen.c (genUnpackBits): don't generate ifxJump, instead
1793           return ifx condition
1794           (genNearPointerGet, genPagedPointerGet, genFarPointerGet,
1795           genCodePointerGet, genGenPointerGet): cleanup aop before generating
1796             ifxJump to fix bug 1838000
1797         * src/SDCCsymt.c (aggregateToPointer): fix problem for xstack
1798         * support/regression/tests/bug1838000.c: new, added
1799         * device/include/mcs51/cc1110.h: new, added, thanks to Pravin Angolkar
1800
1801 2008-02-26 Borut Razem <borut.razem AT siol.net>
1802
1803         * src/SDCCast.c, doc/sdccman.lyx: fixed RFE #1901171: inerger promotion
1804           of casted varargs
1805         * support/scripts/sdcc.nsi: added MULTIUSER page,
1806           NSIS upgraded to version 2.35
1807
1808 2008-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
1809
1810         * src/mcs51/ralloc.c (isSpiltOnStack): fixed bug 1565152
1811         * support/regression/tests/bug1565152.c: new, added
1812
1813 2008-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
1814
1815         * src/mcs51/gen.c (genPagedPointerSet): fixed bug 1670148
1816         * support/regression/ports/mcs51-xstack-auto/spec.mk: added expf.c
1817         * support/regression/tests/bug1670148.c: new, added
1818
1819 2008-02-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1820
1821         * device/include/mcs51/at89c51ed2.h: fixed bug 1901469.
1822
1823 2008-02-24 Borut Razem <borut.razem AT siol.net>
1824
1825         * src/SDCCast.c, src/SDCCast.h: fixed bug #1874922: explicit typecast
1826           is ineffective for unsigned char parameter
1827
1828 2008-02-24 Maarten Brock <sourceforge.brock AT dse.nl>
1829
1830         * src/SDCCast.c (expandInlineFuncs): fixed bug 1875869
1831         * src/SDCCglue.c (printIvalBitFields): fixed bug 1806631
1832         * support/regression/tests/bitopcse.c: removed hc08 exception, see testfwk.h
1833         * support/Util/MySystem.c (my_system): output errorcode when verbose
1834
1835 2008-02-22 Philipp Klaus Krause <pkk AT spth.de>
1836
1837         * src/z80/gen.c (genMult): Rewrote 8-bit multiplication by constant,
1838           implements #1898231
1839
1840 2008-02-22 Philipp Klaus Krause <pkk AT spth.de>
1841
1842         * device/lib/z80/mul.s: Rewrote __muluchar_rrx_s, to improve 8-bit mult.,
1843           implements #1896290
1844
1845 2008-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
1846
1847         * src/SDCCast.c (createIvalStruct): fixed bug 1466761
1848
1849 2008-02-21 Borut Razem <borut.razem AT siol.net>
1850
1851         * support/regression/Makefile.in,
1852           support/regression/ports/ds390/spec.mk,
1853           support/regression/ports/hc08/spec.mk,
1854           support/regression/ports/mcs51-common/spec.mk,
1855           support/regression/ports/pic14/spec.mk,
1856           support/regression/ports/pic16/spec.mk,
1857           support/regression/ports/ucz80/spec.mk,
1858           support/regression/ports/xa51/spec.mk:
1859           added CFLAGS when compiling timeout
1860
1861 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
1862
1863         * support/regression/tests/bugs-1596270-1736867.c: Regression test for
1864           #1596270, #1736867
1865
1866 2008-02-20 Maarten Brock <sourceforge.brock AT dse.nl>
1867
1868         * src/SDCClrange.c (findPrevUse): fixed bug 1888147
1869         * support/regression/tests/bug1888147.c: new, added
1870
1871 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
1872
1873         * src/z80/gen.c: fixed bugs #1596270, #1736867
1874
1875 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
1876
1877         * src/z80/gen.c: fixed bug in register pair loading when swapping register
1878           contents, mostly fixes #1596270
1879
1880 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
1881
1882         * src/z80/peeph.def,
1883         * src/z80/peeph-z80.def: moved peephole that breaks gbz80 to z80-specific
1884           peepholes, fixes #1806565
1885
1886 2008-02-20 Maarten Brock <sourceforge.brock AT dse.nl>
1887
1888         * src/SDCCpeeph.c (operandBaseName): added check for @Ri
1889         * src/mcs51/peeph.def (rule 177.c): added operandsNotRelated(%1 %3)
1890           fixes bug 1739475, thanks Robert Larice
1891           (rule 271): new, added
1892
1893 2008-02-18 Borut Razem <borut.razem AT siol.net>
1894
1895         * sim/ucsim/s51.src/Makefile.in: fixed error made in previous commit
1896
1897 2008-02-17 Maarten Brock <sourceforge.brock AT dse.nl>
1898
1899         * src/SDCCmain.c (linkEdit): emit -z when using --debug for z80
1900
1901 2008-02-17 Raphael Neider <rneider AT web.de>
1902
1903         * src/pic16/genarith.c,
1904         * src/pic16/gen.c,
1905         * src/pic16/gen.h,
1906         * src/pic16/genutils.c: removed unused legacy code,
1907           removed unused fields from struct asmop and struct _G
1908
1909 2008-02-17 Raphael Neider <rneider AT web.de>
1910
1911         * src/pic16/gen.c (AccRsh): cosmetic changes,
1912           (shiftR1Left2ResultSigned,shiftR1Left2Result,shiftL1Left2Result,
1913           genRightShiftLiteral): fixed to work with SFRs as result by
1914           assigning only once to result,
1915           removed a lot of unused/excluded code fragments
1916
1917 2008-02-17 Raphael Neider <rneider AT web.de>
1918
1919         * device/include/pic/pic16f88.h,
1920         * device/include/pic/pic16f886.h,
1921         * device/include/pic/pic16f887.h: added TRISA6 and TRISA7
1922
1923 2008-02-17 Borut Razem <borut.razem AT siol.net>
1924
1925         * src/z80/peeph.def: applied patch
1926           #1893626: Optimize tail calls on Z80, thanks to Philipp Krause
1927         * src/z80/gen.c, src/z80/peeph.def: applied patch
1928           #1893510: Improve logical left shift on Z80, thanks to Philipp Krause
1929         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
1930           sim/ucsim/s51.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
1931           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
1932           sim/ucsim/main_in.mk: renamed libutil.a to libucsimutil.a in order to
1933           enable compilation on Mac OS X 10.5 (Leopard) and XCode v3.0
1934
1935 2008-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
1936
1937         * as/link/mcs51/aslink.dsp: removed SDK define
1938         * as/link/z80/clean.mk: brought in sync with other ports
1939         * as/link/z80/lklibr.c (SdccLib, fndsym): handle the dflag here too
1940         * as/hc08/Makefile.bcc,
1941         * as/mcs51/Makefile.bcc,
1942         * as/z80/Makefile.bcc: noice.c was moved to as/asxxsrc/
1943         * src/z80/main.c (_setValues): use the now capitalized -Z,
1944           (z80_port, gbz80_port): generate debug information when asked
1945
1946 2008-02-16 Borut Razem <borut.razem AT siol.net>
1947
1948         * as/z80/asmain.c, as/z80/asm.h, as/z80/asdata.c,
1949           as/link/z80/lkmain.c, as/z80/as_gbz80.dsp, as/z80/as_z80.dsp,
1950           as/z80/Makefile.in. as/z80/Makefile.bcc:
1951           applied patch #1893393: patch for as-z80 and link-z80 to generate
1952           cdb, thanks to Armin Diehl
1953         * as/*/asnoice.c, as/hc08/as_hc08.dsp, as/hc08/Makefile.in,
1954           as/mcs51/asx8051.dsp, as/mcs51/Makefile.in:
1955           asnoice.c moved to as/asxxsrc/asnoice.c
1956         * src/z80/peeph-gbz80.def: applied patch
1957           #1880235: Z80 return peephole, thanks to Philipp Krause
1958
1959 2008-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
1960
1961         * .version,
1962         * doc/sdccman.lyx: bumped version to 2.7.5
1963         * src/SDCCsymt.c (compareType, comparePtrType): fixed bug 1281583
1964
1965 2008-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
1966
1967         * device/include/pic16/stdlib.h,
1968         * device/lib/pic16/libc/stdlib/ltoa.c,
1969         * device/lib/pic16/libc/stdio/vfprintf.c: ascii strings are char*
1970
1971 2008-02-13 Borut Razem <borut.razem AT siol.net>
1972
1973         * src/SDCCmain.c, src/SDCCglue.c: fixed --c1mode
1974         * src/pic16/glue.c, src/SDCCast.c, src/SDCCast.h, src/SDCCBBlock.c,
1975           src/SDCCcse.c, src/SDCCglue.c, src/SDCCicode.c, src/SDCCloop.c,
1976           src/SDCCopt.c,  src/SDCCval.c:
1977           fixed bug #1890273: SDCC Warning 154 shows wrong filename
1978
1979 2008-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
1980
1981         * src/SDCCsymt.c (compareType): fixed bug 1309013
1982
1983 2008-02-09 Borut Razem <borut.razem AT siol.net>
1984
1985         * src/SDCCval.c, src/SDCCval.h:
1986           code cleaning, added function constChrVal()
1987         * src/SDCCglue.c, src/pic/glue.c, src/pic16/glue.c, src/SDCCast.c, src/SDCC.y:
1988           call constChrVal() instead constVal()
1989
1990 2008-02-01 Maarten Brock <sourceforge.brock AT dse.nl>
1991
1992         * src/SDCCast.c (resolveSymbols): added reentrancy check for parameters
1993           of function pointer
1994         * src/SDCCerr.h,
1995         * src/SDCCerr.c: changed warning W_NONRENT_ARGS to error E_NONRENT_ARGS
1996         * support/regression/tests/absolute.c: added TestStruct TestVar (see also
1997           bug 1859853)
1998
1999 2008-02-01 Raphael Neider <rneider AT web.de>
2000
2001         * device/include/pic/pic16f886.h,
2002         * device/include/pic/pic16f887.h: added RA6 and RA7
2003
2004 2008-01-24 Raphael Neider <rneider AT web.de>
2005
2006         * device/include/pic/pic16f88.h: added RA6 and RA7
2007         * device/lib/pic/libdev/disabled_pic16f886.c,
2008         * device/lib/pic/libdev/disabled_pic16f887.c: renamed and enabled
2009
2010         * src/pic16/devices.inc,
2011         * device/include/pic16/pic18f2423.h,
2012         * device/include/pic16/pic18f2523.h,
2013         * device/include/pic16/pic18fregs.h,
2014         * device/lib/pic16/pics.all
2015         * device/lib/pic16/libdev/pic18f2423.c,
2016         * device/lib/pic16/libdev/pic18f2523.c: added 18f2423 and 18f2523
2017         * device/lib/pic16/libio/i2c.ignore,
2018         * device/lib/pic16/libio/usart.ignore,
2019         * device/lib/pic16/libio/adc.ignore: ignore new devices
2020
2021 2008-01-23 Maarten Brock <sourceforge.brock AT dse.nl>
2022
2023         * src/SDCCast.c (createRMW): fixed bug 1582651
2024
2025 2008-01-20 Borut Razem <borut.razem AT siol.net>
2026
2027         * src/SDCCcse.c: partially fixed enhancement request
2028           #1793872 - multiply by -1 not collapsed
2029         * support/regression/tests/arithcsi.c: added regression test
2030
2031 2008-01-19 Maarten Brock <sourceforge.brock AT dse.nl>
2032
2033         * as/mcs51/asx8051.dsp: removed define SDK
2034         * as/mcs51/i51mch.c (machine): fixed bug 1865114
2035         * device/include/asm/ds390/features.h: fixed bug with ds390 & stack-auto
2036         * as/link/lklex.c,
2037         * as/link/mcs51/lkmain.c: used LKDIRSEP, LKDIRSEPSTR and LKOBJEXT,
2038           cosmetic changes, brought more in sync, changed old K&R to ANSI
2039
2040 2008-01-13 Borut Razem <borut.razem AT siol.net>
2041
2042         * support/scripts/sdcc.nsi: added Uninstall/reinstall page, ...
2043         * src/SDCCicode.c: fixed bug #1870216 - Error 122: dividing by zero
2044
2045 2007-12-30 Borut Razem <borut.razem AT siol.net>
2046
2047         * src/pic16/gen.c: fixed implementation of bitwise operations for
2048           pic16 target
2049         * support/regression/tests/bitwise.c: added test cases
2050
2051 2007-12-29 Borut Razem <borut.razem AT siol.net>
2052
2053         * src/SDCCasm.[ch]: renamed from asm[ch], use dbuf_getline(), ...
2054         * src/src.dsp, src/Makefile.bcc, src/Makefile.in, src/common.h,
2055           src/SDCCglue.c, src/xa51/main.c: asm.[ch] renamed to SDCCasm.[ch]
2056         * support/Util/dbuf_string.[ch]: added function dbuf_getline()
2057         * src/ds390/gen.c, src/hc08/gen.c, src/mcs51/gen.c, src/pic16/gen.c,
2058           src/pic/gen.c, src/z80/gen.c, src/xa51/gen.c, src/pic16/ralloc.c,
2059           src/pic16/pcode.[ch]: added const qualifier
2060         * as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
2061           as/mcs51/Makefile.bcc, as/mcs51/Makefile.in, as/mcs51/asx8051.dsp,
2062           as/z80/Makefile.bcc, as/z80/Makefile.in, as/z80/as_gbz80.dsp,
2063           as/z80/as_z80.dsp: added dbuf.[ch] and dbuf_string[ch] to project
2064         * as/asxxsrc/aslex.c: use dbuf_getline()
2065         * as/hc08/asdata.c, as/hc08/asexpr.c, as/hc08/asm.h, as/hc08/m08adr.c,
2066           as/mcs51/asdata.c, as/mcs51/asexpr.c, as/mcs51/asm.h,
2067           as/mcs51/i51adr.c, as/z80/asdata.c, as/z80/asexpr.c, as/z80/aslist.c,
2068           as/z80/asm.h, as/z80/z80adr.c:
2069           changed type of ib and ip to const char *
2070
2071 2007-12-28 Borut Razem <borut.razem AT siol.net>
2072
2073         * as/asxxsrc/aslex.c: moved from as/mcs51/aslex.c;
2074           introduced (readlin) - long lines are turuncated
2075         * as/hc08/as_hc08.dsp, as/mcs51/asx8051.dsp, as/z80/as_gbz80.dsp,
2076           as/z80/as_z80.dsp, as/hc08/Makefile.in, as/mcs51/Makefile.in,
2077           as/z80/Makefile.in: moved aslex.c to asxxsrc
2078         * as/hc08/aslex.c, as/z80/aslex.c: deleted
2079         * as/hc08/asmain.c, as/mcs51/asmain.c:
2080           added missing initialization of a_addr field
2081         * support/regression/tests/long_asm_line.c: added regtest for long
2082           assembler line
2083
2084 2007-12-22 Borut Razem <borut.razem AT siol.net>
2085
2086         * src/SDCC.lex: fixed bug #1852894: # character hangs the compiler
2087
2088 2007-12-20 Maarten Brock <sourceforge.brock AT dse.nl>
2089
2090         * src/SDCCsymt.c (computeType): fixed bug, thanks Fan Weiguang
2091
2092 2007-12-16 Borut Razem <borut.razem AT siol.net>
2093
2094         * device/include/pic16/stdbool.h: removed, since already exists in
2095          device/include/; this also fixes bitopcse.c regression test for pic16
2096          target
2097         * support/regression/fwk/inclusw/testfwk.h: added macro ASSERT_FAILED
2098         * src/pic16/glue.c: fixed bug #1851855: generic static pointer
2099           dereference doesn't work; covered by regression test bug1399290
2100
2101 2007-12-05 Borut Razem <borut.razem AT siol.net>
2102
2103         * doc/sdccman.lyx: fixed bug #1844509 - Correction to Manual 4.6.9
2104           Adding new PIC16
2105
2106 2007-12-01 Borut Razem <borut.razem AT siol.net>
2107
2108         * sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/mem.cc:
2109           corrected handling of the highest_valid_address
2110
2111 2007-11-17 Raphael Neider <rneider AT web.de>
2112
2113         * src/pic/main.c (_asmCmd): include debug arguments (-g as $3)
2114         * src/pic/glue.c (picglue): emit .file if --debug is given
2115
2116 2007-11-17 Raphael Neider <rneider AT web.de>
2117
2118         * src/pic16/genarith.c (pic16_genPlus, pic16_genMinus): take special
2119         care when left or right operand resides in result, fixes #1830220
2120
2121 2007-11-17 Borut Razem <borut.razem AT siol.net>
2122
2123         * src/SDCCglue.c, src/pic16/glue.c: reverted fix for bug
2124           #983491 - "Merge duplicate strings function is ineffective"
2125         * support/regression/tests/bug-983491.c: regtest disabled
2126         * as/asxxsrc: created
2127           as/asxxsrc/assym.c, as/asxxsrc/strcmpi.c: moved
2128           as/hc08/assym.c, as/mcs51/assym.c, as/strcmpi.c,
2129           as/z80/assym.c, as/hc08/asstore.c, as/mcs51/asstore.c: deleted
2130           as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
2131           as/hc08/asm.h, as/link/hc08/Makefile.bcc, as/link/hc08/Makefile.in,
2132           as/link/hc08/link_hc08.dsp, as/link/mcs51/Makefile.bcc,
2133           as/link/mcs51/Makefile.in, as/link/mcs51/aslink.dsp,
2134           as/link/z80/Makefile.in, as/link/z80/linkgbz80.dsp,
2135           as/link/z80/linkz80.dsp, as/mcs51/Makefile.bcc, as/mcs51/Makefile.in,
2136           as/mcs51/asm.h, as/mcs51/asx8051.dsp, as/z80/Makefile.bcc,
2137           as/z80/Makefile.in, as/z80/as_gbz80.dsp, as/z80/as_z80.dsp,
2138           as/z80/Makefile.as_hc08, as/mcs51/Makefile.asx8051: modified
2139           created as/asxxsrc directory, assym.c and strcpi.c moved into it
2140
2141 2007-11-15 Maarten Brock <sourceforge.brock AT dse.nl>
2142
2143         * device/include/stdarg.h: added and removed some casts
2144         * src/SDCCsymt.c (compareType): Fully check types between generic and
2145           non-generic pointers, also accept ptr-ptr to void-ptr assignments
2146
2147 2007-11-13 Borut Razem <borut.razem AT siol.net>
2148
2149         * support/regression/tests/bug-1817005.c:
2150           added regtest for bug #1817005 - as-z80 chokes on long labels
2151
2152 2007-11-12 Borut Razem <borut.razem AT siol.net>
2153
2154         * as/z80/asmain.c, as/z80/asm.h, as/z80/assym.c, as/z80/asdata.c,
2155           as/z80/asout.c, as/z80/aslist.c:
2156           fixed bug #1817005 - as-z80 chokes on long labels
2157
2158 2007-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
2159
2160         * as/hc08/asmain.c,
2161         * as/z80/asmain.c: cosmetic changes
2162         * as/hc08/alloc.h,
2163         * as/mcs51/alloc.h,
2164         * as/z80/alloc.h: removed
2165         * as/hc08/assym.c,
2166         * as/mcs51/assym.c: replaced alloc.h with stdlib.h
2167         * as/link/aslink.h: added LKDIRSEP and, LKDIRSEPSTR
2168         * as/link/hc08/Makefile.in,
2169         * as/link/mcs51/Makefile.in,
2170         * as/link/z80/Makefile.in: added -DUNIX to CFLAGS
2171         * as/link/lklex.c,
2172         * as/link/mcs51/lkarea.c,
2173         * as/link/mcs51/lkmain.c: cosmetic changes
2174         * as/link/hc08/lklibr.c,
2175         * as/link/z80/lklibr.c,
2176         * as/link/mcs51/lklibr.c: used LKDIRSEP, LKDIRSEPSTR and LKOBJEXT,
2177           used cygwin_conv_to_full_posix_path,
2178           added warnings, cosmetic changes, brought more in sync
2179           changed old K&R into ANSI function declarations
2180         * as/link/z80/lklibr.c (loadAdb): added
2181         * as/link/z80/lkmain.c: removed -- option from usage text
2182
2183 2007-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
2184
2185         * src/mcs51/gen.c (outBitC): optimized for no result
2186
2187 2007-10-31 Borut Razem <borut.razem AT siol.net>
2188
2189         * src/SDCCsymt.c: fixed (hopeful properly) bug
2190           #1805702 - order of extern matters
2191         * support/regression/tests/bug-1805702.c: enabled regtest for bug
2192           #1805702
2193
2194 2007-10-29 Borut Razem <borut.razem AT siol.net>
2195
2196         * src/SDCCsymt.c: reverted bad fixed of bug #1805702
2197           - order of extern matters
2198         * support/regression/tests/bug-1805702.c: disabled regtest for bug
2199           #1805702
2200
2201 2007-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
2202
2203         * src/ds390/peeph.def: replaced 24bitModeAndPortDS390 by
2204           24bitMode, portIsDS390
2205         * src/mcs51/gen.c (genOr): optimized for RFE 1750727
2206         * src/SDCCpeeph.c (flat24bitModeAndPortDS390): removed
2207           (notVolatileVariable): also check sloc names,
2208           (callFuncByName): moved ftab[] out of function and sorted it by use
2209
2210 2007-10-28 Maarten Brock <sourceforge.brock AT dse.nl>
2211
2212         * device/include/stdarg.h: fixed bug in va_start macro for --xstack
2213         * src/hc08/gen.c (aopForRemat): aop->aopu.aop_immd.from_cast_remat not set,
2214           aop->aopu.aop_immd.aop_immd2 not filled with (generic) pointer type
2215         * src/SDCCicode.c (geniCodeCast): fixed bug 880197
2216         * support/regression/tests/bug-880197.c: new, added
2217
2218 2007-10-28 Borut Razem <borut.razem AT siol.net>
2219
2220         * support/regression/Makefile.in,
2221           support/regression/ports/mcs51-large/spec.mk,
2222           support/regression/ports/mcs51-xstack-auto/spec.mk,
2223           support/regression/ports/mcs51-stack-auto/spec.mk,
2224           support/regression/ports/mcs51-medium/spec.mk,
2225           support/regression/ports/mcs51-common/spec.mk,
2226           support/regression/ports/mcs51-common/*,
2227           support/regression/ports/mcs51-small/*:
2228           mcs51 renamed to mcs51-common, created mcs51-small
2229         * src/SDCCsymt.c: fixed bug #1805702 - order of extern matters
2230         * support/regression/tests/bug-1805702.c: added regtest for bug
2231           #1805702
2232
2233 2007-10-26 Maarten Brock <sourceforge.brock AT dse.nl>
2234
2235         * src/mcs51/peeph.def: moved rules 257.x to 253.x and re-enabled 253.b,
2236           added new rules 265 - 270
2237         * support/regression/tests/bug1721024.c:new, added
2238         * support/regression/Makefile.in: renamed test-mcs51 to test-mcs51-small,
2239           introduced new test-mcs51 to run all mcs51 tests
2240
2241 2007-10-25 Maarten Brock <sourceforge.brock AT dse.nl>
2242
2243         * support/regression/tests/bug1816470.c: new, added
2244
2245 2007-10-21 Maarten Brock <sourceforge.brock AT dse.nl>
2246
2247         * src/SDCCast.c (resultTypePropagate): do propagate for LEFT_OP, do not
2248           propagate for *,+,- with float, fixed bug 1816470
2249           (decorateType): cast to resultTypeProp instead of resultType
2250
2251 2007-10-19 Borut Razem <borut.razem AT siol.net>
2252
2253         * src/pic16/glue.c: fixed bug #983491 - "Merge duplicate strings
2254           function is ineffective" for pic16 tareget
2255         * support/scripts/listerr.c: corrected include path
2256         * device/lib/_itoa.c: fixed bug #1806402 - _itoa and _uitoa leak to
2257           adjacent memory
2258
2259 2007-10-18 Maarten Brock <sourceforge.brock AT dse.nl>
2260
2261         * support/regression/tests/using.c: new, added
2262         * support/regression/tests/vaargs.c: fixed and enabled test
2263
2264 2007-10-18 Borut Razem <borut.razem AT siol.net>
2265
2266         * src/SDCCglue.c: fixed bug #983491 - Merge duplicate strings function
2267           is ineffective
2268         * support/regression/tests/bug-983491.c: added regtest for bug #983491
2269
2270 2007-10-18 Maarten Brock <sourceforge.brock AT dse.nl>
2271
2272         * doc/sdccman.lyx: documented option --Werror
2273         * src/SDCCsymt.c (checkFunction): fixed bug 1815418 by setting
2274           RegBankUsed[] earlier
2275
2276 2007-10-14 Maarten Brock <sourceforge.brock AT dse.nl>
2277
2278         * device/include/mcs51/p89lpc938.h: new, added, thanks Kyle Guinn
2279         * src/pic/glue.c,
2280         * src/SDCCval.c,
2281         * src/SDCCast.c,
2282         * src/SDCCast.h: replaced AST_LIT_VALUE with AST_FLOAT_VALUE and
2283           AST_ULONG_VALUE
2284         * src/SDCCast.c (decorateType): improved optimization of tri-op
2285         * src/SDCCerr.c (vwerror, setWError),
2286         * src/SDCCerr.h,
2287         * src/SDCCmain.c (parseCmdLine): added option --Werror to treat all
2288           warnings as errors, thanks Stas Sergeev for PATCH 1813211
2289
2290 2007-10-13 Maarten Brock <sourceforge.brock AT dse.nl>
2291
2292         * src/mcs51/gen.c (leftRightUseAcc): use macro IS_OP_ACCUSE
2293         * src/SDCCast.c (decorateType): optimize bit=cond?1:0, RFE 1738430
2294         * support/regression/tests/bug-223113.c,
2295         * support/regression/tests/bug-426632.c,
2296         * support/regression/tests/bug-468811.c,
2297         * support/regression/tests/bug-477835.c,
2298         * support/regression/tests/bug-478094.c,
2299         * support/regression/tests/bug-499644.c,
2300         * support/regression/tests/bug-524209.c,
2301         * support/regression/tests/bug-524211.c,
2302         * support/regression/tests/packcast.c,
2303         * support/regression/tests/structidx.c: added empty tests
2304         * support/regression/tests/bug-607243.c: enabled test
2305
2306 2007-10-06 Borut Razem <borut.razem AT siol.net>
2307
2308         * .version, doc/sdccman.lyx: bumped version to 2.7.4 to indicate the full
2309            support of universal binaries on Mac OS X
2310
2311 2007-10-02 Borut Razem <borut.razem AT siol.net>
2312
2313         * src/SDCCval.h: unified double2ul macro for all platforms
2314         * src/SDCCval.c: fixed bug #1777758 - applied Maarten's patch
2315         * support/regression/tests/bitwise.c: added regtest for bug #1777758
2316
2317 2007-09-30 Borut Razem <borut.razem AT siol.net>
2318
2319         * src/SDCCval.h: fixed bug #1739860 - sdcc does not work correctly on some
2320           platforms
2321         * sdcc_vc_in.h: enabled warnings
2322         * src/hc08/gen.c: fixed MSVC warning C4146: unary minus operator applied to
2323           unsigned type, result still unsigned
2324         * src/mcs51/peep.c: fixed gcc warning: suggest parentheses around && within ||
2325
2326 2007-09-28 Raphael Neider <rneider AT web.de>
2327
2328         * src/pic/device.c (find_device): prevent buffer underflow error
2329         * src/pic/pcoderegs.c (OptimizeRegUsage): avoid dereferencing
2330           the just destroyed list entry
2331
2332 2007-09-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2333
2334         * doc/sdccman.lyx: there's a dedicated wiki page for cmake and sdcc, thanks
2335           Alexander Neundorf
2336
2337 2007-09-18 Borut Razem <borut.razem AT siol.net>
2338
2339         * src/SDCCval.c: fixed MSVC warning C4146: unary minus operator
2340          applied to unsigned type, result still unsigned
2341
2342 2007-09-17 Borut Razem <borut.razem AT siol.net>
2343
2344         * src/SDCC.y, src/SDCCast.c, src/SDCCcse.c, src/SDCCglue.c,
2345           src/SDCCicode.c, src/SDCCopt.c, src/SDCCsymt.c, src/SDCCval.c,
2346           src/SDCCval.h, src/hc08/gen.c, src/avr/gen.c, src/ds390/gen.c,
2347           src/mcs51/gen.c, src/pic/gen.c, src/pic/genarith.c, src/pic/glue.c,
2348           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/genarith.c,
2349           src/pic16/genutils.c, src/pic16/glue.c, src/pic16/main.c,
2350           src/z80/gen.c, src/z80/ralloc.c:
2351           fixed bug #1739860 - sdcc does not work correctly on some platforms
2352           (not finished)
2353           introduced and used ulFromVal(), double2ul(), used strtod() instead sscanf()
2354
2355 2007-09-17 Raphael Neider <rneider AT web.de>
2356
2357         * src/pic16/device.c: reverted to previous version
2358         * device/lib/pic16/Makefile.common.in: quieten gpasm via -Wa,-q
2359
2360 2007-09-16 Raphael Neider <rneider AT web.de>
2361
2362         * src/pic16/device.c (pic16_dump_usection): do not reserve 0 bytes,
2363           as this raises a ton of gpasm warnings, just emit a second label
2364         * src/pic16/devices.inc,
2365         * device/lib/pic16/pics.all,
2366         * device/lib/pic16/libdev/pic18f2585.c,
2367         * device/lib/pic16/libdev/pic18f2680.c,
2368         * device/lib/pic16/libdev/pic18f2682.c,
2369         * device/lib/pic16/libdev/pic18f2685.c,
2370         * device/lib/pic16/libdev/pic18f4585.c,
2371         * device/lib/pic16/libdev/pic18f4680.c,
2372         * device/lib/pic16/libdev/pic18f4682.c,
2373         * device/lib/pic16/libdev/pic18f4685.c,
2374         * device/include/pic16/pic18f2585.h,
2375         * device/include/pic16/pic18f2680.h,
2376         * device/include/pic16/pic18f2682.h,
2377         * device/include/pic16/pic18f2685.h,
2378         * device/include/pic16/pic18f4585.h,
2379         * device/include/pic16/pic18f4680.h,
2380         * device/include/pic16/pic18f4682.h,
2381         * device/include/pic16/pic18f4685.h,
2382         * device/include/pic16/pic18fregs.h: added 18f2585, 18f2680,
2383           18f2682, 18f2685, 18f4585, 18f4680, 18f4682, 18f4685,
2384           patch contributed by Anton Strobl, applied with changes
2385
2386 2007-09-16 Raphael Neider <rneider AT web.de>
2387
2388         * device/include/pic16/pic18f2431.h,
2389         * device/include/pic16/pic18f25j10.h,
2390         * device/include/pic16/pic18f4431.h,
2391         * device/include/pic16/pic18f45j10.h: adopted common include style
2392         * device/include/pic16/pic18f1320.h,
2393         * device/include/pic16/pic18f2320.h,
2394         * device/include/pic16/pic18f2525.h,
2395         * device/include/pic16/pic18f4320.h,
2396         * device/include/pic16/pic18f4525.h: NEW, just include proper .h file
2397         * device/include/pic16/pic18fregs.h: prepared for automatic include
2398           file selection by having DEVICE.h for every DEVICE
2399         * device/lib/pic16/libdev/pic18f2320.c,
2400         * device/lib/pic16/libdev/pic18f4320.c: just include proper .c file
2401
2402         * device/lib/pic16/configure.in,
2403         * device/lib/pic16/configure: use rm -rf instead of rmdir
2404         * device/lib/pic16/Makefile.in: use RMDIR to remove build directories
2405         * device/lib/pic16/libc/stdlib/free.c: avoid warning on pointer cast
2406
2407 2007-09-09 Borut Razem <borut.razem AT siol.net>
2408
2409         * src/SDCCmain.c, src/SDCCutil.c: print newline after printVersionInfo(),
2410           distingush between i386 and ppc Mac OS X versions
2411
2412 2007-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
2413
2414         * src/mcs51/gen.c (genReceive): fixed bug 1788177
2415         * support/regression/tests/bug1788177.c: new, added
2416
2417 2007-09-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2418
2419         * doc/sdccman.lyx: mentioned d52 and cmake, customizing startup code
2420         * device/include/mcs51/lint.h added keyword __naked
2421
2422 2007-09-04 Maarten Brock <sourceforge.brock AT dse.nl>
2423
2424         * src/pic16/glue.c,
2425         * src/pic/glue.c,
2426         * src/SDCCmem.h: removed maxRegBank
2427         * src/SDCCmem.c (allocVariables): removed maxRegBank and moved setting
2428           RegBankUsed[] to checkFunction() in SDCCsymt.c to fix bug 1759839
2429         * src/SDCCsymt.c (checkFunction): set RegBankUsed[] here
2430         * src/mcs51/peep.c (isCallerSaveFunc, termScanAtFunc): changed function
2431           name and behaviour to handle banked functions
2432           (scan4op): and use it to fix bug 1786213
2433
2434 2007-09-03 Raphael Neider <rneider AT web.de>
2435
2436         * device/include/pic16/pic18f248.h,
2437         * device/include/pic16/pic18f258.h,
2438         * device/include/pic16/pic18f448.h,
2439         * device/lib/pic16/libdev/pic18f248.c,
2440         * device/lib/pic16/libdev/pic18f258.c,
2441         * device/lib/pic16/libdev/pic18f448.c: fixed TRISEbits,
2442           added T0CONbits, fixes #1786891
2443
2444 2007-08-29 Maarten Brock <sourceforge.brock AT dse.nl>
2445
2446         * src/ds390/gen.c (genFarPointerSet),
2447         * src/hc08/ralloc.c (packRegisters),
2448         * src/mcs51/ralloc.c (packRegisters),
2449         * src/SDCCcse.c (cseBBlock): check if result is a symbol first to fix
2450           bug 1750318
2451         * src/SDCCicode.h: POINTER_SET can be true for literals too
2452         * support/regression/tests/bug1750318.c: new, added
2453
2454 2007-08-23 Borut Razem <borut.razem AT siol.net>
2455
2456         * debugger/mcs51/sdcdb.c: fixed compilation with older readline
2457           library versions without the completition functionality
2458
2459 2007-08-22 Raphael Neider <rneider AT web.de>
2460
2461         * device/include/pic16/pic18f1220.h,
2462         * device/lib/pic16/libdev/pic18f1220.c: applied patch #1776191
2463
2464 2007-08-12 Borut Razem <borut.razem AT siol.net>
2465
2466         * debugger/mcs51/Makefile.in: support/Util/SDCCerr.[ch] moved to src
2467
2468 2007-08-11 Borut Razem <borut.razem AT siol.net>
2469
2470         * support/Util/SDCCerr.c, support/Util/SDCCerr.h, src/src.dsp,
2471           src/Makefile.in, src/Makefile.bcc, support/scripts/listerr.c:
2472           support/Util/SDCCerr.[ch] moved to src
2473         * as/hc08/as_hc08.dsp, as/link/hc08/link_hc08.dsp,
2474           as/link/z80/linkgbz80.dsp, as/link/z80/linkz80.dsp,
2475           device/examples/ds390/tinitalk/tinitalk.dsp,
2476           device/examples/serialcomm/windows/serialcomm.dsp,
2477           support/librarian/librarian.dsp:
2478           removed linking of unused odbc32.lib and odbccp32.lib
2479         * support/scripts/winres.h:
2480           added for compilation with Visual C++ 2005 Express Edition
2481
2482 2007-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2483
2484         * device/include/mcs51/at89c51ed.h: Fixed typo in declarations of CKCON0
2485           and CKCON1.
2486
2487 2007-08-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2488
2489         * sdccconf_in.h: update the endian test so that SPARC Solaris
2490           does not throw syntax errors
2491
2492 2007-08-06 Borut Razem <borut.razem AT siol.net>
2493
2494         * doc/sdccman.lyx: removed two index entries which prevented the
2495           generation of sdcc doc archive
2496
2497 2007-08-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2498
2499         * doc/sdccman.lyx: Same changes made 2007-07-28 but using lyx 1.4.4
2500           instead of lyx 1.5.0.
2501
2502 2007-07-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2503
2504         * device/include/hc08/mc68hc908apxx.h: new header contributed by
2505           Lucas Loizaga, with minor modifications. Thanks!
2506
2507 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2508
2509         * doc/sdccman.lyx: Documented --acall-ajmp and described new features
2510           in sdcclib.
2511
2512 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2513
2514         * src/SDCCglobl.h, src/SDCCpeeph.c, src/SDCCglue.c, src/mcs51/main.c,
2515           src/mcs51/peeph.def: Added option --acall-ajmp: replaces lcall/ljmp
2516           with acall/ajmp.
2517
2518 2007-07-22 Borut Razem <borut.razem AT siol.net>
2519
2520         * configure.in, configure: re-introduced .version
2521         * sdcc.spec, doc/INSTALL.txt: they are used only for releases;
2522           the version reverted to 2.7.0
2523
2524 2007-07-18 Maarten Brock <sourceforge.brock AT dse.nl>
2525
2526         * configure.in,
2527         * doc/sdccman.lyx: bumped version to 2.7.3
2528         * device/include/mcs51/compiler.h: fixed elif->else
2529         * src/mcs51/gen.c (genAnd, genOr): handle accuse for pure bit operands
2530         * src/mcs51/ralloc.c (createStackSpil): fixed SCLS bug with sloc for sbit,
2531           (operandUsesAcc, packRegsForAccUse): added parameter allowBitspace to
2532            enable accuse for bit operands
2533         * src/SDCCmain.c (printVersionInfo),
2534         * src/SDCCutil.c (getBuildEnvironment): factored out creation of build
2535           environment descriptor
2536         * src/SDCCutil.h: added getBuildEnvironment
2537         * src/SDCCglue.c (initialComments): use getBuildEnvironment
2538         * support/regression/tests/bug1464657.c: enabled test test_Peephole251
2539         * support/regression/tests/bug-408972.c: enabled test leftShiftLong
2540         * support/regression/tests/bug1348008.c,
2541         * support/regression/tests/bug1496419.c,
2542         * support/regression/tests/bug1503067.c,
2543         * support/regression/tests/preproc.c: added empty tests
2544
2545 2007-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
2546
2547         * support/regression/tests/bug1678803.c: new, added
2548
2549 2007-07-14 Maarten Brock <sourceforge.brock AT dse.nl>
2550
2551         * as/link/aslink.h,
2552         * as/link/hc08/lkihx.c,
2553         * as/link/hc08/lkrloc.c,
2554         * as/link/mcs51/lkihx.c,
2555         * as/link/mcs51/lkrloc.c: renamed ihxEntendedLinearAddress to
2556           ihxExtendedLinearAddress
2557         * as/link/mcs51/lkrloc.c (relr),
2558         * as/mcs51/asout.c (outr11, outr19): handle absolute destination for
2559           acall/ajmp, see bug 830513
2560
2561 2007-07-13 Maarten Brock <sourceforge.brock AT dse.nl>
2562
2563         * src/SDCCcse.c (replaceAllSymBySym): renamed siaddr to isaddr,
2564           (cseBBlock): remember aggr2ptr has been used
2565         * src/SDCCicode.c (operandSize): added function to handle aggr2ptr,
2566           (geniCodeAssign): fixed bug 868103
2567         * src/SDCCicode.h: made operand.aggr2ptr 2 bits wide,
2568           added operandSize prototype
2569         * src/mcs51/gen.c (aopOp): use operandSize to fix bug 868103,
2570           (genDataPointerSet): use max of size of right and result,
2571           (gencjne): added parameter useCarry for optimization,
2572           (genCmpEq): use carry if appropriate,
2573           (genXor): check if operand already in carry
2574         * support/regression/tests/bug-868103.c: enabled test
2575
2576 2007-07-12 Raphael Neider <rneider AT web.de>
2577
2578         * src/pic16/gen.c (genNearPointerSet): fixed handling of literals
2579
2580 2007-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
2581
2582         * src/SDCCsymt.c (compareType): fixed bugs 1738367 and 1745717 with patch
2583           from Robert Larice, thanks
2584         * support/regression/tests/bitopcse.c,
2585         * support/regression/tests/bitvars.c,
2586         * support/regression/tests/bug-908454.c: use <stdbool.h> for the bit types
2587         * support/regression/tests/bug-927659.c: enabled test for z80
2588         * support/regression/tests/bug1738367.c: added extra tests by Frieder
2589         * support/regression/tests/bug1745717.c: new, added
2590         * support/regression/tests/literalop.c,
2591         * support/regression/tests/nullstring.c: removed storage definitions that
2592           are now in testfwk.h
2593
2594 2007-07-10 Maarten Brock <sourceforge.brock AT dse.nl>
2595
2596         * device/include/stdbool.h: do not define __bool_true_false_are_defined
2597           and bool for targets that do not fully support it.
2598         * support/regression/tests/bug1546986.c,
2599         * support/regression/tests/bug1723128.c,
2600         * support/regression/tests/bug1734654.c,
2601         * support/regression/tests/bug1738367.c,
2602         * support/regression/tests/constantRange.c: only use bool if allowed
2603
2604 2007-07-09 Maarten Brock <sourceforge.brock AT dse.nl>
2605
2606         * src/mcs51/peep.c (isCallerSaveFunc): fixed bug 1749275, thanks Robert
2607           Larice, also handle function pointers
2608         * support/regression/tests/bug1749275.c: new, added
2609
2610 2007-07-03 Borut Razem <borut.razem AT siol.net>
2611
2612         * src/mcs51/gen.c, src/avr/gen.c, src/pic/gen.c, src/z80/gen.c,
2613           src/pic16/gen.c, src/hc08/gen.c, src/ds390/gen.c: fixed RFE
2614           #1746528: SDCC should ignore ':' in inline assembler comments
2615         * device/include/typeof.h: fixed bug #1747142: typeof.h needs fixing
2616
2617 2007-07-02 Maarten Brock <sourceforge.brock AT dse.nl>
2618
2619         * device/include/mcs51/C8051F360.h: fixed bug #1746410, thanks Chris Jones
2620         * device/lib/mcs51/crtxclear.asm: do not set __XPAGE unconditionally
2621
2622 2007-06-29 Borut Razem <borut.razem AT siol.net>
2623
2624         * src/SDCCmain.c: fixed bug
2625           #1744746: SDCC #4867: broken option --xram-size
2626
2627 2007-06-28 Borut Razem <borut.razem AT siol.net>
2628
2629         * sim/ucsim/configure.in, sim/ucsim/configure, sim/ucsim/ddconfig_in.h:
2630           find out the endianess of host machine for ucsim
2631
2632 2007-06-27 Borut Razem <borut.razem AT siol.net>
2633
2634         * support/regression/generate-cases.py: corrected the file name
2635           in warning
2636         * configure.in, configure, sdccconf_in.h: find out the endianess of
2637           host machine
2638         * src/SDCC.y: fixed bug #1744146: Crash when compiling array of
2639           negative size
2640
2641 2007-06-27 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
2642
2643         * device/include/mcs51/p89c66x.h: NXP header file, OK to change licence
2644
2645 2007-06-26 Borut Razem <borut.razem AT siol.net>
2646
2647         * support/regression/generate-cases.py: display warning if function
2648           list is empty; implemented more flexible rule for detection of
2649           testing functions, allowing return type 'void' in the same line as
2650           the function name in the function definition
2651         * support/regression/tests/bug-1654060.c: corrected test
2652         * support/librarian/sdcclib.c: fixed warning:
2653           format '%s' expects type 'char *', but argument 2 has type 'int'
2654
2655 2007-06-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2656
2657         * support/librarian/sdcclib.c: Added feature Requests [1510635]
2658           Multiple infiles for sdcclib.
2659
2660 2007-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2661
2662         * src/SDCCast.c (inlineFindMaxBlockno, createFunction): fixed
2663           bug 1731741
2664
2665 2007-06-18 Borut Razem <borut.razem AT siol.net>
2666
2667         * src/SDCCmain.c: removed option -C since SDCC compiler doesn't know
2668           how to handle comments, so they have to be removed by the
2669           preprocessor; fixed bug #1738926:SDCC #4852: broken option -V
2670         * src/SDCCmain.c, src/SDCCargs.h, src/ds390/main.c, src/mcs15/main.c,
2671           src/pic16/main.c, src/pic/main.c, src/z80/main.c,
2672           support/Util/SDCCerr.c, support/Util/SDCCerr.h:
2673           table driven option hadling
2674
2675 2007-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
2676
2677         * src/SDCCast.c (decorateType),
2678         * src/SDCCicode.c (geniCodeConditional): moved optimization for '?' from
2679           iCode to ast level to fix bug 1738367
2680         * support/regression/tests/bug1738367.c: new, added
2681
2682 2007-06-15 Raphael Neider <rneider AT web.de>
2683
2684         * src/pic16/devices.inc,
2685         * device/lib/pic16/pics.all,
2686         * device/include/pic16/pic18fregs.h,
2687         * device/include/pic16/pic18f[24][45]20.h,
2688         * device/lib/pic16/libdev/pic18f[24][45]20.c: added support for
2689           18f2420, 18f2520, and 18f4420 devices, updated 18f4520 definitions
2690         * device/lib/pic16/Makefile.in: faster cleanup
2691
2692 2007-06-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2693
2694         * src/mcs51/peeph.def: added 177.i (mov from a is slightly cheaper)
2695
2696 2007-06-13 Raphael Neider <rneider AT web.de>
2697
2698         * src/SDCCmain.c: prevent NULL pointer dereference, avoid warning
2699
2700 2007-06-12 Raphael Neider <rneider AT web.de>
2701
2702         * support/scripts/inc2h.pl: conditionally emit defines for SFR bits,
2703           suppress bit defines if NO_BIT_DEFINES is #define'd
2704         * device/include/pic/pic*.h: recreated all headers to include
2705           conditional bit defines
2706         * device/include/pic/pic16f886.h,
2707         * device/include/pic/pic16f887.h: fixed based on newer .inc file
2708         * device/include/pic/recreate.sh: script to recreate the complete
2709           device library files based on the currently supported devices
2710
2711 2007-06-12 Borut Razem <borut.razem AT siol.net>
2712
2713         * src/pic16/main.c, src/SDCCargs.h, SDCCmain.c,
2714           support/regression/Makefile.in, support/scripts/build.mak,
2715           support/scripts/Makefile.snapshot:
2716           use new svn URL scheme
2717         * doc/sdccman.lyx: SDCC Wiki moved to
2718           http://sdcc.wiki.sourceforge.net/
2719
2720 2007-06-10 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2721
2722         * src/mcs51/peeph.def: disabled rule 132.d to fix #1734654
2723         * support/regression/tests/bug1734654.c: added
2724
2725 2007-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
2726
2727         * src/SDCCast.c (decorateType): optimized '?' for equal operands
2728         * src/SDCCicode.c (geniCodeConditional): optimization for bit result
2729           with literal operands
2730
2731 2007-06-10 Borut Razem <borut.razem AT siol.net>
2732
2733         * as/link/z80/lklibr.c: fixed mingw build warning
2734           lklibr.c:575: warning: implicit declaration of function 'tolower'
2735         * src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c,
2736           src/z80/main.c: move target specific options from src/SDCCmain.c
2737           to src/<target>/main.c
2738
2739 2007-06-09 Borut Razem <borut.razem AT siol.net>
2740
2741         * src/z80/gen.c: fixed bug #1294691: nested ifs make compiler crash;
2742           removed unused swap_sense; removed outBitCLong, replaced with outBitC
2743         * support/regression/tests/bug-1294691.c: added
2744
2745 2007-06-09 Maarten Brock <sourceforge.brock AT dse.nl>
2746
2747         * src/SDCCmem.c (allocDefault): removed check sym->level==0 for SPEC_ABSA,
2748           can also be static, fixes bug 1733438
2749         * src/SDCCsymt.c (checkSClass): static local vars in reentrant funcs can
2750           have absolute address too
2751           (computeType): added optimization for 'cond ? true : false'
2752         * support/regression/tests/absolute.c: added test for static absolute var
2753
2754 2007-06-08 Raphael Neider <rneider AT web.de>
2755
2756         * src/regression/Makefile: suppress parallel builds, allow easy
2757           switching between pic14/pic16 ports
2758         * src/regression/picregs.h: added pic14/16 header file switch
2759         * src/regression/{compare7.c,compare8.c,compare9.c,compare10.c,
2760           inline.c,nestfor.c,string1.c}: include "picregs.h"
2761
2762 2007-06-07 Borut Razem <borut.razem AT siol.net>
2763
2764         * sim/ucsim/*.[ch], sim/ucsim/configure, sim/ucsim/configure.in:
2765           permanent solution to suppress GCC 4.2.0 c++ warning:
2766           deprecated conversion from string constant to `char *'
2767           use 'const char *' where ever required
2768         * support/regression/generate-cases.py: implemented more flexible rule
2769           for detection of testing functions, allowing white-spaces surrounding
2770           the function name and the 'void' parameter.
2771         * support/regression/tests/constantRange.c,
2772           support/regression/tests/scott-compare3.c: fixed failing regression
2773           tests, uncovered by implementation of more flexible rule for detection
2774           of testing functions
2775
2776 2007-06-04 Maarten Brock <sourceforge.brock AT dse.nl>
2777
2778         * src/SDCCast.c(decorateType): better optimize '!!' and comparisons
2779
2780 2007-06-04 Borut Razem <borut.razem AT siol.net>
2781
2782         * configure.in, configure, config_vc.awk: sdcc version number is now
2783           stored in configure.in; removed .version
2784         * configure.in, configure, sdcc.spec, doc/sdccman.lyx, doc/sdccman.lyx,
2785           doc/INSTALL.txt: version bumped to 2.7.2
2786         * sim/ucsim/configure.in, sim/ucsim/configure:
2787           use "read" to read from .version
2788
2789 2007-06-03 Borut Razem <borut.razem AT siol.net>
2790
2791         * */Makefile.in: removed annoying warning:
2792           Makefile:xx: Makefile.dep: No such file or directory
2793
2794 2007-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
2795
2796         * src/mcs51/gen.c (outBitC, genRet): used IS_OP_RUONLY,
2797           (genNot, genXor): used toCarry, also fixes a bug for c = bit ^ val
2798         * src/mcs51/ralloc.c: removed IS_OP_RUONLY + some cosmetic changes
2799         * src/SDCCast.c (resultTypePropagate): propagate for '!',
2800           (decorateType): also optimize comparisons with RESULT_TYPE_BIT,
2801           bugfix: only use newBoolLink for bit result type
2802         * src/SDCCicode.c (geniCodeLogic): added param tree,
2803           bugfix: use newBoolLink if tree is bit type, bug appears when ruonly,
2804           (geniCodeLogicAndOr): use IS_BIT,
2805           (geniCodeJumpTable, geniCodeSwitch): added NULL param to geniCodeLogic,
2806           (ast2iCode): added tree param to geniCodeLogic for comparisons
2807         * src/SDCCsymt.h: added IS_OP_RUONLY and IS_OP_ACCUSE
2808         * support/regression/tests/bug1723128.c: added test NotZero
2809
2810 2007-06-01 Borut Razem <borut.razem AT siol.net>
2811
2812         * SDCPP synchronized with GCC CPP release version 4.2.0,
2813           currently the latest release:
2814         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
2815           support/cpp2/c-ppoutput.c, support/cpp2/cppdefault.c,
2816           support/cpp2/cppdefault.h, support/cpp2/except.h,
2817           support/cpp2/libcpp/directives.c, support/cpp2/libcpp/expr.c,
2818           support/cpp2/libcpp/files.c, support/cpp2/libcpp/include/cpplib.h,
2819           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
2820           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/macro.c,
2821           support/cpp2/libcpp/mkdeps.c, support/cpp2/libiberty/getpwd.c,
2822           support/cpp2/libiberty/hashtab.c, support/cpp2/optc-gen.awk,
2823           support/cpp2/opth-gen.awk, support/cpp2/opts.c,
2824           support/cpp2/opts.h, support/cpp2/output.h,
2825           support/cpp2/prefix.c, support/cpp2/sdcpp-opts.c,
2826           support/cpp2/sdcpp.dsp, support/cpp2/sdcpp.opt,
2827           support/cpp2/system.h, support/cpp2/version.c,
2828           support/cpp2/Makefile.in: modified
2829         * support/cpp2/opts-common.c: added
2830         * device/lib/pic16/libdev/pic18f[24][45]j10.c: fixed svn atrributes
2831         * device/lib/pic16/libdev/pic18f[24]5j10.c:
2832           search for included source file in local directory
2833         * sim/ucsim/configure, sim/ucsim/configure.in:
2834           temporary solution to suppress GCC 4.2.0 c++ warning:
2835           deprecated conversion from string constant to `char *'
2836
2837 2007-06-01 Raphael Neider <rneider AT web.de>
2838
2839         * device/lib/pic/libdev/pic12f683.c,
2840         * device/include/pic/pic12f683.h: added GPIO bits
2841
2842 2007-06-01 Raphael Neider <rneider AT web.de>
2843
2844         * doc/sdccman.lyx: added --disable-pic16-port, fixed some `--' and
2845           quotation marks, clarified role of PIC14 vs. PIC16 ports
2846         * src/pic16/devices.inc,
2847         * device/include/pic16/pic18fregs.h,
2848         * device/include/pic16/pic18f[24][45]j10.h,
2849         * device/lib/pic16/pics.all,
2850         * device/lib/pic16/libdev/pic18f[24][45]j10.c: added support for
2851           18f24j10, 18f25j10, 18f44j10, and 18f45j10
2852         * device/lib/pic16/libio/{i2c,adc,usart}.ignore: do not build IO libs
2853           for new devices as they are not yet supported by gputils
2854
2855 2007-05-31 Borut Razem <borut.razem AT siol.net>
2856
2857         * Small Device C Compiler 2.7.0 released
2858         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
2859           changed sdcc version to 2.7.1
2860         * support/scripts/sdcc.nsi: added How to create WIN32 release
2861           setup.exe package
2862
2863 2007-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
2864
2865         * doc/sdccman.lyx: documented initialization and allocation of absolute
2866           variables, bit parameter passing, the need for function pointers to be
2867           reentrant and alpha quality support of inline and retrict
2868
2869 2007-05-26 Borut Razem <borut.razem AT siol.net>
2870
2871         * support/regression/tests/bug1057979.c, support/regression/tests/malloc.c,
2872           support/regression/fwk/include/testfwk.h: fixed compilation on Mac OS x
2873         * docs/knownbugs.html: updated
2874
2875 2007-05-25 Maarten Brock <sourceforge.brock AT dse.nl>
2876
2877         * doc/sdccman.lyx: inserted footnotes about inline assembler labels,
2878           thanks Jan Waclawek
2879         * src/mcs51/gen.c (aopPut): fixed part of bug 1723128 when result is
2880           AOP_CRY and ruonly
2881           (gencjneshort): optimized when left is AOP_DIR
2882         * src/SDCCglue.c (printIvalStruct): fixed other part of bug 1723128 for
2883           initializing unions in a struct/array
2884         * support/regression/fwk/include/testfwk.h: added defines for data, near
2885           and far for host and z80
2886         * support/regression/tests/bug1723128.c: new, added
2887
2888 2007-05-22 Borut Razem <borut.razem AT siol.net>
2889
2890         * doc/knownbugs.html: updated
2891
2892 2007-05-21 Raphael Neider <rneider AT web.de>
2893
2894         * src/pic16/glue.c (pic16_initPointer): avoid assertion, emit better
2895           error message instead
2896         * src/pic/pcoderegs.c (pCodeOptime2pCodes): keep register state intact
2897
2898 2007-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
2899
2900         * src/mcs51/peeph.def (257.b): disabled to fix bug 1721024
2901
2902 2007-05-21 Raphael Neider <rneider AT web.de>
2903
2904         * src/pic/pcoderegs.c (pCodeOptime2pCodes): fixed bogus optimization,
2905           closes #1722392
2906         * src/regression/gpsim_assert.h,
2907         * src/regression/Makefile,
2908         * src/regression/pcodeopt.c: regression test for the above fix
2909
2910 2007-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
2911
2912         * src/SDCCpeeph.c (labelIsUncondJump): ignore identical labels for
2913           jumps to self, fixed bug 1717281
2914
2915 2007-05-10 Borut Razem <borut.razem AT siol.net>
2916
2917         * support/scripts/gen_known_bugs.pl: cosmetic fix
2918         * doc/knownbugs.html: generated by gen_known_bugs.pl
2919
2920 2007-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2921
2922         * src/SDCCast.c (createFunction): also generate non-inlined version of
2923           function for functions declared as "static inline"
2924         * src/SDCCast.c (fixupInline, inlineAddDecl): reset symbol state so
2925           function can be inlined after non-inlined version generated.
2926
2927 2007-05-10 Borut Razem <borut.razem AT siol.net>
2928
2929         * support/scripts/gen_known_bugs.pl: added script
2930           which generates knownbugs.html
2931
2932 2007-05-09 Maarten Brock <sourceforge.brock AT dse.nl>
2933
2934         * doc/knownbugs.html: updated for release 2.7.0
2935
2936 2007-05-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2937
2938         * device/include/mcs51/uPSD33xx.h: Added patch by Jan Waclawek.
2939
2940 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
2941
2942         * src/ds390/gen.c (emitcode): don't change properties of previous lines,
2943           (throughout): updated generating comments
2944         * src/mcs51/gen.c (emitcode): don't change properties of previous lines,
2945           (throughout): updated generating comments
2946         * src/SDCCpeeph.c (peepHole): continue searching at the first replaced
2947           rule instead of at the second, or it might skip lines when removing the
2948           complete match
2949         * support/regression/tests/bug1714204.c: changed test to foo
2950
2951 2007-05-08 Borut Razem <borut.razem AT siol.net>
2952
2953         * doc/sdccman.lyx: changed sdcc version to 2.7.0,
2954           thanks to SDCC Distributed Compile Farm members,
2955           added Z80 and GBZ80 command line options
2956         * .version, doc/INSTALL.txt, sdcc.spec: changed sdcc version to 2.7.0
2957
2958 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
2959
2960         * device/lib/mcs51/crtxinit.asm: added disabled version for dual dptr
2961         * device/include/mcs51/uPSD33xx.h: added sfr DPS as alias for DPTC
2962         * support/regression/tests/longlit.c: modified to be tested at all and
2963           to pass the actual test
2964
2965 2007-05-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2966
2967         * device/include/mcs51/uPSD33xx.h: Added.
2968
2969 2007-05-07 Maarten Brock <sourceforge.brock AT dse.nl>
2970
2971         * device/lib/_gptrput.c,
2972         * device/lib/_gptrget.c: removed old code,
2973          (_gptrgetWord),
2974         * src/ds390/gen.c (genGenPointerGet): fixed bug 1714204
2975         * support/regression/tests/bug1714204.c: new, added
2976
2977 2007-05-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2978
2979         * support/regression/tests/regtrack.c: test was never executed
2980           because of the regression test being picky about white spaces.
2981         * device/lib/mcs51/crtclear.asm: added comment
2982
2983 2007-05-06 Raphael Neider <rneider AT web.de>
2984
2985         * device/lib/pic/Makefile.rules,
2986         * device/lib/pic16/Makefile.rules: make sure *.ignore file exists,
2987           made "&> /dev/null" redirection sh-safe ("> /dev/null 2>&1")
2988
2989 2007-05-06 Raphael Neider <rneider AT web.de>
2990
2991         * src/pic16/device.h,
2992         * src/pic16/main.h,
2993         * src/pic16/main.c (pic16_optionsTable,_pic16_parseOptions,
2994           _pic16_setDefaultOptions): removed/reordered command-line args
2995         * doc/sdccman.lyx: updated PIC14 and PIC16 documentation (supported
2996           devices, regrouped command line args, environment variables),
2997           clarified sone points, added sections on how to add devices to the
2998           PIC14/PIC16 ports
2999
3000 2007-05-06 Maarten Brock <sourceforge.brock AT dse.nl>
3001
3002         * src/z80/peeph.def: fixed bug in rule 2
3003
3004 2007-05-05 Maarten Brock <sourceforge.brock AT dse.nl>
3005
3006         * src/port.h: added TARGET_MCS51_LIKE
3007         * src/SDCCpeeph.c (labelIsUncondJump): new, added, other targets could
3008           take advantage of it too
3009         * src/z80/gen.c (genIpush): push b, d or h directly instead of using a,
3010           (shiftR2Left2Result): Optimized: don't check shifting by 0
3011         * src/z80/peeph-z80.def,
3012         * src/z80/peeph.def: whole set of new rules by Philipp Krause with some
3013           modifications, see patch 1700823
3014         * src/mcs51/peep.c (): fixed bug 1712928
3015         * support/regression/tests/bug1712928.c: new, added
3016
3017 2007-05-05 Borut Razem <borut.razem AT siol.net>
3018
3019         * device/lib/pic16/Makefile.common.in,
3020           device/lib/pic/Makefile.common.in, sim/ucsim/cmd.src/Makefile.in:
3021           removed bash dependencies
3022
3023 2007-05-01 Borut Razem <borut.razem AT siol.net>
3024
3025         * src/SDCCicode.c:
3026           fixed bug #1710507: --i-code-in-asm makes compile fail
3027           all iCode comments are now one liners
3028         * src/mcs51/gen.c: fixed memory leak
3029
3030 2007-05-01 Raphael Neider <rneider AT web.de>
3031
3032         * device/lib/pic/libdev/*.c
3033         * device/include/pic/*.h: regenerated all device libs from updated
3034           .inc files
3035         * support/scripts/inc2h.pl: documented usage, now uses strict to
3036           catch more bugs
3037
3038 2007-04-30 Borut Razem <borut.razem AT siol.net>
3039
3040         * doc/sdccman.lyx:
3041           fixed bug #1669175: Problem with space in output paths
3042           documented how to use paths with spaces for Windows users
3043
3044 2007-04-29 Borut Razem <borut.razem AT siol.net>
3045
3046         * Fixed svn:eol-style and svn:keywords properties
3047         * src/SDCCval.c: fixed bug
3048           #1592871: Segfault with "large" const arrays of characters
3049           replaced recursion with iteration
3050         * Removed svn:executable property from non-executable files
3051
3052 2007-04-29 Maarten Brock <sourceforge.brock AT dse.nl>
3053
3054         * src/mcs51/gen.c (genRet): fixed bug 1707003
3055
3056 2007-04-27 Raphael Neider <rneider AT web.de>
3057
3058         * src/pic16/pcode.c (pBlockRemoveUnusedLabels,pic16_pBlockAddInval,
3059           createReachingDefinitions,assignValnums,pic16_destructDF,
3060           pic16_createDF,pic16_vcg_dumpedges,pic16_vcg_dump_default):
3061           prevent NULL pointer dereferences
3062         * device/lib/pic/libdev/pic16f886.c,
3063         * device/lib/pic/libdev/pic16f887.c: svn mv'ed to disabled_* to
3064           prevent building them, gputils do not really support them yet
3065
3066 2007-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3067
3068         * device/lib/_ltoa.c: 36 bytes less __data mem. This really
3069           helps printf_small. 32 bytes more __idata mem.
3070
3071 2007-04-27 Raphael Neider <rneider AT web.de>
3072
3073         * src/pic/pcode.c (addpCode2pBlock,LinkFlow,pBlockRemoveUnusedLabels):
3074           return early when pb or pb->pcHead is NULL (patch #1708427)
3075         * src/regression/empty.c,
3076         * src/regression/Makefile: added test with empty functions
3077         * support/Util/SDCCerr.c: fixed typo in E_INIT_STRUCT message
3078
3079 2007-04-27 Borut Razem <borut.razem AT siol.net>
3080
3081         * src/SDCCast.c: fixed feature request
3082           #1547512: Redundant strings linked when using sizeof("abc")
3083
3084 2007-04-23 Borut Razem <borut.razem AT siol.net>
3085
3086         * doc/sdccman.lyx, src/SDCCmain.c:
3087           peep-hole comments are generated only if --fverbose-asm option is
3088           specified and --no-peep-comments is not, as proposed by Frieder.
3089         * support/regression/Makefile.in: compile regression tests with
3090           --fverbose-asm option so one can "grep" whether a new (or an old)
3091           peephole is (still) applied; requested by Frieder.
3092
3093 2007-04-23 Kevin Buettner <kevin AT buettner.to>
3094
3095         * device/include/pic/pic16f886.h,
3096         * device/include/pic/pic16f887.h,
3097         * device/lib/pic/libdev/pic16f886.c,
3098         * device/lib/pic/libdev/pic16f887.c,
3099         * device/include/pic/pic14devices.txt,
3100         * device/lib/pic/libdev/devices.txt: Add 16f886 and 16f887.
3101
3102 2007-04-23 Kevin Buettner <kevin AT buettner.to>
3103
3104         * device/lib/pic/libsdcc/idata.c: PAGESEL _main before going there,
3105           fixes #1704666
3106
3107 2007-04-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3108
3109         * device/lib/_memset.c: assembler version for mcs51
3110
3111 2007-04-22 Borut Razem <borut.razem AT siol.net>
3112
3113         * support/scripts/listerr.c: program to create the list of errors and
3114           warnings list from - added
3115         * doc/sdccman.lyx: removed the note
3116           "For list of warnings and corresponding codes, see err_warn.txt"
3117         * src/SDCCsymt.c: fixed bug #1699804:
3118           Bug with some uses of sizeof(static local array) (MCS51)
3119         * support/regression/tests/bug-1699804.c: added
3120
3121 2007-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
3122
3123         * as/mcs51/asmain.c (search_path_append, search_path_fopen): new, added,
3124           (main): added option -i,
3125           (asmbl, case S_INCL): use search_path_fopen,
3126           mostly from patch 1579668 by Peter Miller, thanks
3127         * src/z80/main.c: fixed typo --callee-saves-bc
3128         * device/include/mcs51/compiler.h: added sfrword for Tasking
3129
3130 2007-04-20 Borut Razem <borut.razem AT siol.net>
3131
3132         * src/z80/main.c: replaced reserved keyword asm with asmblr
3133
3134 2007-04-19 Borut Razem <borut.razem AT siol.net>
3135
3136         * src/port.h: use const pointers to strings
3137         * src/SDCCargs.h: declared getStringArg() and getIntArg()
3138         * src/pic16/main.c: include SDCCargs.h
3139         * src/SDCCglobl.h: code_seg and const_seg are not pointers to
3140           const char, since the strings are dynamically allocated
3141         * src/SDCCmain.c: options.code_seg and options.const_seg are
3142           dynamically allocated; check port specific command line options
3143           before the general ones
3144         * src/z80/main.c: fixed bug #1631895: codeseg/constseg #pragma fail
3145
3146 2007-04-18 Maarten Brock <sourceforge.brock AT dse.nl>
3147
3148         * device/include/ds400rom.h,
3149         * device/lib/ds390/lcd390.c,
3150         * device/lib/ds390/memcpyx.c,
3151         * device/lib/ds390/rtc390.c,
3152         * device/lib/ds400/ds400rom.c,
3153         * device/lib/ds400/memcpyx.c,
3154         * device/lib/hc08/_ret.c: more replacements of keywords with their
3155           double underscore equivalents
3156         * device/lib/ds390/Makefile.in,
3157         * device/lib/ds400/Makefile.in,
3158         * device/lib/gbz80/Makefile.in,
3159         * device/lib/hc08/Makefile.in,
3160         * device/lib/mcs51/Makefile.in,
3161         * device/lib/z80/Makefile.in: added --std-c89 to CFLAGS
3162
3163 2007-04-17 Borut Razem <borut.razem AT siol.net>
3164
3165         * doc/sdccman.lyx, src/SDCCmain.c, src/SDCCglobal.h, src/ds390/gen.c,
3166           src/hc08/gen.c, src/mcs51/gen.c, src/mcs51/rtrack.c:
3167           fixed #1493816: option --no-gen-comments: --no-gen-comments renamed
3168           to --fverbose-asm, to be gcc'ish
3169
3170 2007-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
3171
3172         * src/mcs51/gen.c (aopOp): set size to 1 for ruonly, fixes bug 1699455
3173
3174 2007-04-17 Borut Razem <borut.razem AT siol.net>
3175
3176         * doc/sdccman.lyx: fixed #1701874: Mac OSX references in SDCC manual
3177         * device/lib/ds400/tinibios.c, device/lib/hc08/_divuint.c,
3178           device/lib/hc08/_divulong.c: replaced _asm and _endasm keywords
3179           with their double underscore equivalent
3180
3181 2007-04-14 Borut Razem <borut.razem AT siol.net>
3182
3183         * doc/sdccman.lyx: some additional "freeware" replaced with "free open
3184           source"
3185
3186 2007-04-13 Borut Razem <borut.razem AT siol.net>
3187
3188         * doc/sdccman.lyx: -pedantic-parse-number is not in conformance with
3189           C99 standard
3190         * device/examples/serialcomm/windows/serial.[ch],
3191           device/examples/serialcomm/windows/test_serialcomm.cpp:
3192           updated by Bela Torok
3193         * device/examples/serialcomm/windows/serialcomm.dsw,
3194           device/examples/serialcomm/windows/serialcomm.dsp: added
3195
3196 2007-04-13 Jan Waclawek <wek AT efton.sk>
3197
3198         * doc/sdccman.lyx: additions and changes at various places
3199           (submitted as #1697136).
3200           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
3201
3202 2007-04-10 Borut Razem <borut.razem AT siol.net>
3203
3204         * doc/cdbfileformat.lyx, doc/sdccman.lyx, doc/test_suite_spec.lyx:
3205           LyX file format changed to 245
3206         * doc/sdccman.lyx, doc/README.txt, sdc/SDCC.lex, src/SDCCglue.c:
3207           "FreeWare" replaced with "free open source"
3208
3209 2007-04-10 Maarten Brock <sourceforge.brock AT dse.nl>
3210
3211         * device/include/mcs51/C8051F120.h: added some defines for bits in RSTSRC
3212
3213 2007-04-08 Maarten Brock <sourceforge.brock AT dse.nl>
3214
3215         * device/include/pic16/pic18fregs.h,
3216         * device/lib/_bp.c,
3217         * device/lib/_decdptr.c,
3218         * device/lib/_divsint.c,
3219         * device/lib/_divslong.c,
3220         * device/lib/_divuint.c,
3221         * device/lib/_divulong.c,
3222         * device/lib/_fs2schar.c,
3223         * device/lib/_fs2sint.c,
3224         * device/lib/_fs2slong.c,
3225         * device/lib/_fs2uchar.c,
3226         * device/lib/_fs2uint.c,
3227         * device/lib/_fs2ulong.c,
3228         * device/lib/_fsadd.c,
3229         * device/lib/_fscmp.c,
3230         * device/lib/_fsdiv.c,
3231         * device/lib/_fseq.c,
3232         * device/lib/_fsget1arg.c,
3233         * device/lib/_fsget2args.c,
3234         * device/lib/_fsgt.c,
3235         * device/lib/_fslt.c,
3236         * device/lib/_fsmul.c,
3237         * device/lib/_fsneq.c,
3238         * device/lib/_fsnormalize.c,
3239         * device/lib/_fsreturnval.c,
3240         * device/lib/_fsrshift.c,
3241         * device/lib/_fssub.c,
3242         * device/lib/_fsswapargs.c,
3243         * device/lib/_gptrget.c,
3244         * device/lib/_gptrgetc.c,
3245         * device/lib/_gptrput.c,
3246         * device/lib/_logexpf.c,
3247         * device/lib/_modsint.c,
3248         * device/lib/_modslong.c,
3249         * device/lib/_moduint.c,
3250         * device/lib/_modulong.c,
3251         * device/lib/_mulint.c,
3252         * device/lib/_mullong.c,
3253         * device/lib/_schar2fs.c,
3254         * device/lib/_ser.c,
3255         * device/lib/_setjmp.c,
3256         * device/lib/_sint2fs.c,
3257         * device/lib/_slong2fs.c,
3258         * device/lib/_spx.c,
3259         * device/lib/_uchar2fs.c,
3260         * device/lib/_uint2fs.c,
3261         * device/lib/_ulong2fs.c,
3262         * device/lib/asincosf.c,
3263         * device/lib/atanf.c,
3264         * device/lib/calloc.c,
3265         * device/lib/ds390/tinibios.c,
3266         * device/lib/ds400/tinibios.c,
3267         * device/lib/expf.c,
3268         * device/lib/free.c,
3269         * device/lib/hc08/_mulint.c,
3270         * device/lib/logf.c,
3271         * device/lib/malloc.c,
3272         * device/lib/printf_fast.c,
3273         * device/lib/printf_tiny.c,
3274         * device/lib/printfl.c,
3275         * device/lib/realloc.c,
3276         * device/lib/ser_ir.c,
3277         * device/lib/serial.c,
3278         * support/regression/tests/libmullong.c: replaced all special keywords
3279           with their double underscore equivalent
3280         * support/regression/ports/mcs51-xstack-auto/spec.mk,
3281         * device/lib/Makefile.in: compile libs with --std-c99 instead of
3282           --std-sdcc99
3283         * src/mcs51/gen.c (outBitC): don't store if result is return-use-only,
3284           (genRet): if the bit-symbol is ruonly it already is in the carry
3285         * src/mcs51/ralloc.c (regTypeNum): make regType REG_CND for ruonly bit
3286         * src/SDCCast.c (createFunction): applied patch 887171 by Stas Sergeev
3287         * src/SDCCicode.c (ast2iCode): '!', GETHBIT, GETABIT: only set operand
3288           type UCHAR if dest is not bit
3289
3290 2007-04-03 Maarten Brock <sourceforge.brock AT dse.nl>
3291
3292         * device/include/math.h,
3293         * device/lib/cotf.c,
3294         * device/lib/expf.c,
3295         * device/lib/sincoshf.c: changed XMAX to C99 HUGE_VALF
3296
3297 2007-04-01 Borut Razem <borut.razem AT siol.net>
3298
3299         * src/SDCC.lex, src/SDCCmain.c, support/cpp2/sdcpp.c:
3300           fixed bug #1692042: input buffer overflow...scanner uses REJECT
3301         * support/cpp2/sdcpp.c: fixed recursion bug - internal_error() called
3302           gcc_unreachable() called internal_error()...
3303
3304 2007-03-30 Raphael Neider <rneider AT web.de>
3305
3306         * src/pic/ralloc.c (isData): suppress garbage debug output
3307
3308 2007-03-28 Borut Razem <borut.razem AT siol.net>
3309
3310         * doc/sdccman.lyx:
3311           "Nightly Snapshots" replaced with "Snapshot Builds", since the SDCC
3312           is developed, built and used worldwide, and the word "night" doesn't
3313           make any sense.
3314
3315 2007-03-28 Maarten Brock <sourceforge.brock AT dse.nl>
3316
3317         * device/include/mcs51/C8051F360.h: new, added
3318         * device/include/mcs51/C8051F520.h: fixed buggy sbit addresses SPI0CN
3319
3320 2007-03-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3321
3322         * src/SDCC.y (declaration_specifiers, function_specifier),
3323         * support/Util/SDCCerr.c,
3324         * support/Util/SDCCerr.h,
3325         * src/SDCCsymt.h,
3326         * src/SDCCsymt.c (mergeSpec, checkFunction): Parse and validate the
3327           inline keyword
3328         * src/SDCCmem.c (deallocParms),
3329         * src/SDCCast.c: support for function inlining, not quite complete
3330         * src/SDCCsymt.c (printTypeChain, printTypeChainRaw): display
3331           'restrict' qualifier
3332
3333 2007-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
3334
3335         * src/mcs51/gen.c (saveRegisters, unsaveRegisters): free some bitVects,
3336           (saveRBank, unsaveRBank): don't save bits,
3337           (genFunction, genEndFunction): save bits exactly once, fix bug 1535242
3338         * support/regression/tests/bug1535242.c: new, added
3339         * device/include/assert.h: applied patch 1686533 to fix bug 1686528,
3340           thanks Alexey Shamrin <shamrin AT gmail.com>,
3341           made assert.h header ANSI compliant (added a check for NDEBUG macro,
3342           removed header guard)
3343         * .version,
3344         * sdcc.spec: bumped version to 2.6.5
3345         * src/SDCCmain.c(parseCmdLine): fixed bug 1677144
3346
3347 2007-03-22 Borut Razem <borut.razem AT siol.net>
3348
3349         * debugger/mcs51/cmd.c, debugger/mcs51/sdcdb.c:
3350           fixed bug #1653671: sdcdb integration into ddd is broken
3351
3352 2007-03-22 Raphael Neider <rneider AT web.de>
3353
3354         * src/pic/gen.c (popGetExternal): augmented to also create references
3355           to external variables (not only labels),
3356           (genCall): comment on plan to reduce PAGESEL overhead,
3357           (genFunction, genEndFunction): also save/restore FSR around interrupt
3358           handling code, removed lots of unused code
3359           (genDivOneByte): release acquired temp register
3360         * src/pic/glue.c (pic14createInterruptVect): adapt to new signature
3361           of popGetExternal
3362         * device/lib/pic/libsdcc/shadowregs.c: NEW, provide storage location
3363           for registers that need to be saved during interrupts (FSR, STATUS,
3364           PCLATH; W needs special handling), currently only FSR is used
3365
3366 2007-03-22 Raphael Neider <rneider AT web.de>
3367
3368         * device/include/pic/pic14devices.txt: 16f688 has only one config word
3369
3370 2007-03-19 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3371
3372         * /as/link/mcs51/aslink.dsp: Object extension for mcs51 is 'rel' not 'o'.
3373
3374 2007-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
3375
3376         * src/mcs51/peeph.def (263.x): fixed bug for volatile variables
3377
3378 2007-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
3379
3380         * as/link/aslink.h: added LKOBJEXT
3381         * as/link/hc08/link_hc08.dsp,
3382         * as/link/hc08/Makefile.bcc,
3383         * as/link/hc08/Makefile.in,
3384         * as/link/mcs51/aslink.dsp,
3385         * as/link/mcs51/Makefile.bcc,
3386         * as/link/mcs51/Makefile.in: moved lkamof51.c and lkdata.c
3387         * as/link/hc08/lkaomf51.c,      as/link/mcs51/lkaomf51.c,
3388         * as/link/lkaomf51.c: merged and moved
3389         * as/link/hc08/lkdata.c,        as/link/mcs51/lkdata.c,
3390         * as/link/z80/lkdata.c,
3391         * as/link/lkdata.c: merged and moved
3392         * as/link/hc08/lkmain.c,
3393         * as/link/mcs51/lkmain.c: cosmetic changes
3394         * as/link/z80/lkeval.c,         as/link/lkeval.c: merged
3395         * as/link/lklex.c: use LKOBJEXT
3396         * as/link/z80/lklist.c,         as/link/lklist.c: merged,
3397           ANSI-fied functions, removed bubble-sorts
3398         * as/link/z80/lksym.c           as/link/lksym.c: merged,
3399           ANSI-fied functions
3400         * as/link/z80/linkgbz80.dsp,
3401         * as/link/z80/linkz80.dsp,
3402         * as/link/z80/Makefile.in: added lkaomf51.c and lknoice.c,
3403           moved lkdata.c, lkeval.c, lkhead.c, lklex.x, lklist.c, lksym.c
3404         * as/link/z80/lkhead.c,
3405         * as/link/z80/lklex.c: deleted
3406         * as/link/z80/lklibr.c: moved LKOBJEXT to aslink.h
3407         * as/link/z80/lkmain.c: added copyfile()
3408
3409 2007-03-13 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3410
3411         * device/include/mcs51/P89LPC925.h: Added missing P1_6 and P1_7.
3412
3413 2007-03-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3414
3415         * device/lib/_strlen.c: assembler version for mcs51
3416
3417 2007-03-13 Raphael Neider <rneider AT web.de>
3418
3419         * device/include/pic16/pic18f2221.h,
3420         * device/include/pic16/pic18f2321.h,
3421         * device/include/pic16/pic18f2331.h,
3422         * device/include/pic16/pic18f4221.h,
3423         * device/include/pic16/pic18f4321.h,
3424         * device/include/pic16/pic18f4331.h: fixed config byte location names
3425         * support/scripts/inc2h-pic16.pl: removed debug output, emit
3426           consistently named config byte locations
3427
3428 2007-03-13 Borut Razem <borut.razem AT siol.net>
3429
3430         * src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
3431           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/s51.src/Makefile.in,
3432           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
3433           as/link/z80/Makefile.in, as/z80/Makefile.in:
3434           introduced LDFLAGS
3435
3436 2007-03-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3437
3438         * device/lib/printfl.c: 13 bytes less __data mem (12 more __idata)
3439         * device/lib/printf_large.c: pointer was converted to generic
3440         pointer for mcs51 models other than model-small (Maarten noticed)
3441
3442 2007-03-10 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3443
3444         * device/include/mcs51/ADuC84x.h: Added.
3445
3446 2007-03-10 Borut Razem <borut.razem AT siol.net>
3447
3448         * src/SDCC.lex, src/SDCCutil.[ch], src/SDCCval:
3449           fixed RFE #1624219: double backslashes in filenames;
3450           functions hexEscape(), octalEscape() and copyStr() moved from
3451           SDCCval.c to SDCCutil.c and made them glovbally available
3452
3453 2007-03-09 Borut Razem <borut.razem AT siol.net>
3454
3455         * src/SDCC.lex, src/SDCCast.c. src/SDCCglobl.c, src/SDCCsymt.c,
3456           src/SDCCval.c: fixed bugs #1676768: Wrong line number reported and
3457           1673361: Missaligned comments in output files
3458
3459 2007-03-09 Raphael Neider <rneider AT web.de>
3460
3461         * device/include/pic/pic14devices.txt: fixed confsiz of 16f91[3467]
3462
3463 2007-03-09 Raphael Neider <rneider AT web.de>
3464
3465         * src/pic/gen.c,
3466         * src/pic/glue.c,
3467         * src/pic/ralloc.c: suppress undesired debug output
3468         * src/SDCCmain.c (linkEdit): initialize c to quieten compiler
3469
3470 2007-03-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3471
3472         * device/lib/printf_large.c: 6 bytes less __data mem (6 more __idata)
3473
3474 2007-03-07 Borut Razem <borut.razem AT siol.net>
3475
3476         * device/lib/pic16/libdev/pic18f[24][34]31.c:
3477           search include files in the current directory
3478
3479 2007-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
3480
3481         * src/SDCCglue.c (emitMaps, glue),
3482         * src/SDCCmem.c (initMem, allocDefault): added x_abs for initialized
3483           absolute xdata
3484         * support/regression/tests/absolute.c: added xdata test
3485
3486 2007-03-03 Maarten Brock <sourceforge.brock AT dse.nl>
3487
3488         * src/SDCCmain.c (parseCmdLine): only set options.xstack_loc for mcs51,
3489           added condition to macro, fixes bug 1666080
3490
3491 2007-03-02 Raphael Neider <rneider AT web.de>
3492
3493         * src/pic/gen.c (genGenPointerSet): removed bogus assertion
3494
3495 2007-02-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3496
3497         * device/lib/mcs51/crtxclear.asm: pdata segment of 256 byte would not
3498         be cleared. Unconditionally set __XPAGE
3499         * src/hc08/gen.c: --no-gen-comments (RFE #1493816) for hc08
3500
3501 2007-02-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3502
3503         * src/SDCCglobl.h,
3504         * src/SDCCmain.c,
3505         * src/mcs51/gen.c,
3506         * src/mcs51/rtrack.c,
3507         * src/ds390/gen.c,
3508         * doc/sdccman.lyx: added --no-gen-comments
3509         * src/mcs51/peeph.def: added 192.b, disabled 185
3510
3511 2007-02-25 Raphael Neider <rneider AT web.de>
3512
3513         * src/pic16/gen.c (genCast): fixed typo
3514         * device/lib/pic16/Makefile.subdir: only install existing files
3515         * device/lib/pic16/libdev/Makefile.in: build serially, avoid races
3516
3517 2007-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
3518
3519         * device/lib/mcs51/crtcall.asm: new, added for indirect calls
3520         * device/lib/mcs51/crtclear.asm,
3521         * device/lib/mcs51/crtxclear.asm: renumbered labels
3522         * device/lib/mcs51/Makefile.in: added crtcall.asm
3523         * doc/sdccman.lyx: documented mcs51 crt* library startup code
3524         * src/mcs51/gen.c (movc): removed,
3525           (aopGet, genPlusBits): clear a after loading the carry (possibly from
3526             acc.x or psw.x),
3527           (toCarry, genSend, genRet): added function toCarry,
3528           (genPcall): use "lcall @a+dptr" for functions w/o parameters,
3529           (assignBit, genAssign, genCast): added function assignBit
3530         * src/mcs51/Makefile.bcc: added rtrack.c
3531         * src/mcs51/ralloc.h: made valueKnown a bitfield
3532         * src/mcs51/rtrack.c (getReg, rtrackUpdate): added getReg,
3533           fixed "jbc acc" and "cpl acc" bug, enhanced "cjne", "jnz" and "djnz",
3534           disabled InvalidateAllRx for lcall __gptrput, added "xch a,rn"
3535         * src/pic/pcode.c (FixRegisterBanking): fixed warning used uninitialized
3536         * src/z80/gen.c: added AOP_IS_PAIRPTR,
3537           (_pop): only pop valid pairs, see gencjneshort,
3538           (gencjneshort): return pair that still needs to be popped, restructured,
3539           (gencjne, genCmpEq): call _pop
3540
3541 2007-02-23 Raphael Neider <rneider AT web.de>
3542
3543         * device/include/pic/pic14devices.txt: 16f684 has only one config word
3544
3545 2007-02-22 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3546
3547         * device/include/mcs51/P89LPC925.h: Added.
3548
3549 2007-02-18 Raphael Neider <rneider AT web.de>
3550
3551         * src/pic/glue.c (emitInitVal): fixed #1659894 (SIGSEGV on arrays)
3552
3553 2007-02-17 Borut Razem <borut.razem AT siol.net>
3554
3555         * support/cpp2/directives.c, support/cpp2/version.c:
3556           synchronized with GCC CPP 4.1.2
3557
3558 2007-02-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3559
3560         * src/mcs51/rtrack.h,
3561         * src/mcs51/rtrack.c: added register tracking for the mcs51 port,
3562           by checking the strings passed by emitcode() to the assembler.
3563           Feel free to change. This in part addresses RFE #482179.
3564           Set environment variable SDCC_RTRACK to enable.
3565         * src/mcs51/gen.c: inserted hooks
3566         * src/mcs51/ralloc.h: added two members to struct regs
3567         * support/regression/tests/regtrack.c: added
3568
3569 2007-02-14 Borut Razem <borut.razem AT siol.net>
3570
3571         * src/SDCC.y: fixed bug #1291133: duplicate members across enum(s)
3572         * Makefile.in: applied patch from Makefile related part of
3573           #1469393: Compiler does not initialize static data
3574
3575 2007-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
3576
3577         * src/SDCCicode.c (geniCodeAssign): return (itemp) right instead of left
3578           for better fix of bug 1273984, compiles pic16 rand.c
3579
3580 2007-02-12 Borut Razem <borut.razem AT siol.net>
3581
3582         * src/pic16/main.c: fixed pic16 standard library directory bug
3583
3584 2007-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
3585
3586         * src/hc08/gen.c (genSwap): fix swap regression test
3587
3588 2007-02-10 Borut Razem <borut.razem AT siol.net>
3589
3590         * src/SDCCsymt.c: fixed bug #1159134: invalid duplicate declarations
3591           with same scope
3592         * support/regression/tests/bug-1654060.c: added regression test for
3593           #1654060
3594
3595 2007-02-09 Bernhard Held <bernhard AT bernhardheld.de>
3596
3597         * src/mcs51/gen.c (genRet): fixed RFE 1652561: added code for bit to
3598         bit moves in return statement
3599
3600 2007-02-09 Borut Razem <borut.razem AT siol.net>
3601
3602         * src/SDCC.y: fixed bug #1654060 typedef within function causes
3603           syntax error
3604
3605 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
3606
3607         * src/mcs51/gen.c (aopPut): use direct name for pushing registers
3608         * src/SDCCmain.c (parseCmdLine): dbuf_s path must be initialised
3609
3610 2007-02-07 Raphael Neider <rneider AT web.de>
3611
3612         * src/pic16/devices.inc,
3613         * device/include/pic16/pic18fregs.h,
3614         * device/include/pic16/pic18f[24][34]31.h,
3615         * device/lib/pic16/libdev/pic18f[24][34]31.c,
3616         * device/lib/pic16/pics.all: added 18f[24][34]31 family
3617         * device/lib/pic16/libio/i2c.ignore: do not build i2c
3618
3619 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
3620
3621         * device/lib/printf_large.c (_print_format): fixed compare/assign bug, how
3622           can this have lived here for so many years?
3623         * src/SDCCicode.c (ast2iCode): return left instead of right for assignment,
3624           fixes bug 1273984, see also patch 1645121, thanks Gnther Jehle
3625         * support/regression/tests/bug1273984.c: new, added, thanks Gnther Jehle
3626
3627 2007-02-06 Bernhard Held <bernhard AT bernhardheld.de>
3628
3629         * src/SDCCBlock.c (addiCodeToeBBlock): fixed bug 1652207: GOTO icodes
3630         appended by loop induction must be at the very end of the eBBlock
3631
3632 2007-02-05 Kevin Vigor
3633
3634         * src/ds390/gen.c, src/ds390/main.c: Address bug 1469393.
3635
3636 2007-02-05 Borut Razem <borut.razem AT siol.net>
3637
3638         * support/regression/fwk/lib/timeout.c: native WIN32 port,
3639           implemented #1651830 Reg. tests: rewrite timeout.c to use WIN32 API
3640
3641 2007-02-03 Borut Razem <borut.razem AT siol.net>
3642
3643         * src/SDCC.y, src/SDCCmain.c, src/SDCCglobl.h, doc/sdccman.lyx:
3644           applied patch #1646602 option to set default signedness of char to
3645           unsigned, added -funsigned-char command line option,
3646           thanks to Gunther Jehle
3647         * device/lib/Makefile.in: added the -f option to rm so it doesn't
3648           prompt for file deletion a few hundred times (especially the
3649           subversion files, which have ro permissions so it asks for
3650           confirmation), thanks to Simon McAuliffe;
3651           added {} + option to find in order to remove multiple files from a
3652           single rm commad
3653
3654 2007-02-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3655
3656         * device/include/mcs51/SST89x5xRDx.h: Added.
3657
3658 2007-02-02 Raphael Neider <rneider AT web.de>
3659
3660         * src/pic/glue.c (emitSymbolSet): check sym->etype before use
3661         * src/regression/Makefile: use --no-pcode-opt, ignore failing tests
3662
3663 2007-02-01 Raphael Neider <rneider AT web.de>
3664
3665         * src/pic/glue.c (picglue,emitSymbolSet,showAllMemmaps): emit the
3666           config words again
3667
3668 2007-01-31 Borut Razem <borut.razem AT siol.net>
3669
3670         * support/Util/dbuf_string.h: added ATTRIBUTE_PRINTF to dbuf_printf()
3671           if compiled with GCC. Thanks to Raphael Neider
3672
3673 2007-01-31 Raphael Neider <rneider AT web.de>
3674
3675         * src/pic/pcode.c (isValidIdChar,bankCompare): fuzzy matching of
3676             operand names, handles name and (name + n) for all n,
3677           (sameBank): restructured, also check bank allocation policy,
3678         * src/pic/glue.c (emitPseudoStack): fixed printf arguments,
3679           (pic14_operandsAllocatedInSameBank): check whether to operands
3680             will be allocated into the same bank (i.e., section) to reduce
3681             BANKSEL overhead, queried from pcode.c:sameBank,
3682           (pic14printLocals): reintroduced clustering registers into a single
3683             section: all compiler generated symbols will now reside in one
3684             bank (per file), reducing BANKSEL overhead and code size,
3685           (showAllMemmaps): use local dbuf where possible
3686
3687 2007-01-29 Raphael Neider <rneider AT web.de>
3688
3689         * src/pic/gen.c (popGetExternal): simplified, mark symbol as used,
3690           (call_libraryfunc): retrieve/create symbol and mark as used,
3691           (genFunction): mark defined functions as non-extern and add again
3692            to code memmap for later output
3693         * src/pic/glue.c (emitPseudoStack): put into own subroutine,
3694           (pic14printLocals): reworked for new symbol emission,
3695           (emitIfNew,pic14_constructAbsMap,emitIvalLabel,emitIvals,emitInitVal,
3696           showAllMemmaps): reworked symbol output using dbufs, added handling
3697             of string literals (still incomplete),
3698           (picglue): removed symbol emission, moved into showAllMemmaps,
3699           (emitSymbolSet): new workhorse for symbol output,
3700           (pic14emitMaps,pic14printPublics,pic14printExterns): commented out
3701
3702 2007-01-29 Borut Razem <borut.razem AT siol.net>
3703
3704         * src/SDCCmain.c, src/SDCCutil.c: dbuf_splitFile: file extension
3705           component contains the extension separator.
3706
3707 2007-01-28 Borut Razem <borut.razem AT siol.net>
3708
3709         * sim/ucsim/cmd.src/cmdutil.cc: NUL device is detected as CG_FILE type
3710           on WIN32
3711         * src/SDCCdwarf2.c, src/SDCCglobl.h, src/SDCCmain.c, src/SDCCutil.c,
3712           src/SDCCutil.h, src/avr/gen.c, src/ds390/gen.c, src/hc08/gen.c,
3713           src/mcs51/gen.c, src/pic/device.c, src/pic/gen.c, src/pic/pcode.c,
3714           src/pic/pcodepeep.c, src/pic/ralloc.c, src/pic16/device.h,
3715           src/pic16/gen.c, src/pic16/main.c, src/pic16/pcode.c,
3716           src/pic16/pcodepeep.c, src/pic16/ralloc.c, src/xa51/gen.c,
3717           src/z80/gen.c, support/Util/MySystem.c:
3718           accept slash and backslash as directory separator on WIN32 and
3719           Cygwin ports
3720
3721 2007-01-28 Raphael Neider <rneider AT web.de>
3722
3723         * src/pic16/devices.inc,
3724         * device/include/pic16/pic18f[24][23]21.h,
3725         * device/include/pic16/pic18fregs.h,
3726         * device/lib/pic16/libdev/pic18f[24][23]21.c,
3727         * device/lib/pic16/pics.all: added support for the 18f[24][23]21 family
3728         * device/lib/pic16/libio/adc.ignore,
3729         * device/lib/pic16/libio/i2c.ignore,
3730         * device/lib/pic16/libio/usart.ignore: do not build I/O lib for new
3731           family, as gputils do not yet support the devices
3732         * device/lib/pic16/Makefile.subdir: ignore errors on install
3733         * support/scripts/inc2h-pic16.pl: script to generate pic16 device
3734           headers and libraries from gputils .inc files
3735
3736 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
3737
3738         * doc/sdccman.lyx: add printf_fast_f precision limitation note
3739
3740 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
3741
3742         * doc/sdccman.lyx: add printf benchmarks
3743
3744 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
3745
3746         * device/lib/printf_fast.c: fix %c, char promoted to int
3747         * device/lib/printf_tiny.c: fix %c, char promoted to int
3748
3749 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
3750
3751         * device/lib/printf_fast.c: fix float overflow check, bug #1525093
3752
3753 2007-01-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3754
3755         * support/regression/tests/swap.c: 64 bit hosts failed
3756         * doc/sdccman.lyx: added preliminary mcs51 printf feature matrix
3757
3758 2007-01-25 Raphael Neider <rneider AT web.de>
3759
3760         * src/pic/pcode.c (sameBank,FixRegisterBanking): optimize banksels
3761           based on absolute register address, patch by Alex Blond
3762
3763 2007-01-22 Raphael Neider <rneider AT web.de>
3764
3765         * src/pic/glue.c (pic14emitRegularMap): mark initialized symbols as
3766           emitted, do not emit them again...
3767
3768 2007-01-22 Raphael Neider <rneider AT web.de>
3769
3770         * src/regression/bank1.c, src/regression/compare6.c,
3771           src/regression/add.c: cosmetic changes
3772         * src/pic/pcode.h: moved GPTRTAG_* here from gen.c
3773         * src/pic/gen.c: fixed global zero and one,
3774           (aopForSym): removed unued code,
3775           (aopGet): assert aop is defined, check and use `index' of
3776             pCodeImmd operands (fixes #1630908),
3777         * src/pic/pcode.c (get_op): added output of generic pointer tag,
3778           (register_reassign): prevent accidental register unification,
3779           (ReuseReg): cosmetic changes (also above)
3780         * src/pic/glue.c (pic14_constructAbsMap,pic14emitRegularMap,
3781           pic14emitStaticSeg): do not emit initialized data,
3782           (printIval*): replaced with working versions,
3783           (pic14createInterruptVect,picglue): use idata for initialized data,
3784             now init data should work in all modules (not only main()),
3785         * device/lib/pic/libsdcc/idata.c: NEW, handle initialized data
3786
3787 2007-01-21 Borut Razem <borut.razem AT siol.net>
3788
3789         * sim/ucsim/configure.in: introduced macro DD_COPT_NO_IGNORE,
3790           use -fPIC or -fpic if they are supported and not ignored
3791         * src/SDCCval.c: fixed bug introduced by me in rev. #4577
3792         * support/cpp2/libcpp/lex.c: fixed gcc 4.1.1 warnings
3793
3794 2007-01-20 Borut Razem <borut.razem AT siol.net>
3795
3796         * src/SDCC.lex, src/SDCCmain.c, sdc/SDCCglobl.h, doc/sdccman.lyx:
3797           implemented RFE #1470316: allow "$" in variable names
3798
3799 2007-01-20 Raphael Neider <rneider AT web.de>
3800
3801         * device/include/pic/pic14regs.h: reverted accidental wipe of the file
3802
3803 2007-01-20 Raphael Neider <rneider AT web.de>
3804
3805         * device/lib/pic/libdev/devices.txt: device list for mkall.sh
3806         * device/lib/pic/libdev/mkall.sh: script to rebuild all device libs
3807         * device/lib/pic/libdev/pic14ports.txt: device PORT specifications
3808         * support/scripts/inc2h.pl: fixed major .inc parsing bugs,
3809           applied patch from Robert Tate (#1629249) to add PORTs and TRISs
3810         * device/lib/pic/libdev/pic*.c,
3811         * device/include/pic/pic*.h: regenerated with enhanced inc2h.pl
3812         * device/lib/pic/libdev/Makefile.in: show progress
3813
3814 2007-01-19 Bernhard Held <bernhard AT bernhardheld.de>
3815
3816         * doc/sdccman.lyx: updated "configure options" for autoconf 2.6
3817         * support/scripts/sdcc_cygwin_mingw32,
3818         * support/scripts/sdcc_mingw32,
3819         * support/scripts/build.mak: replaced --datadir by --datarootdir for
3820         conformance with autoconf 2.6
3821
3822 2007-01-19 Raphael Neider <rneider AT web.de>
3823
3824         * src/pic/device.c (register_map): fixed list construction
3825         * src/pic/gen.c (genDivOneByte,genModOneByte): accept result > 1 byte,
3826           (genMod): removed case for genModbits,
3827           (genModbits): removed as now unused/unimplemented
3828         * src/pic/glue.c (picglue): prevent name clash with sources 'init.c'
3829
3830 2007-01-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3831
3832         * support/regression/tests/swap.c: added in response to #1638622
3833         * doc/sdccman.lyx: synced version, minor changes
3834
3835 2007-01-18 Borut Razem <borut.razem AT siol.net>
3836
3837         * SDCClabel.c: fixed bug #1638651: wrong linenumber presented in warning,
3838           thanks to Gunther Jehle
3839         * src/asm.c: don't die if the file drfined in #line couldn't be opened
3840         * src/SDCC.lex, src/SDCCglobal.h, src/SDCCicode.c, src/SDCCsymt.c,
3841           src/SDCCval.c: removed redundant definitions of currFname and mylineno;
3842           use filename in lineno instead.
3843         * SDCCast.c: removed MSVC warning C4018: '==' : signed/unsigned mismatch,
3844           print the file name in ast_print()
3845
3846 2007-01-18 Borut Razem <borut.razem AT siol.net>
3847
3848         * support/Util/dbuf_string.c: removed (PTR) cast since it is not
3849           defined in MSVC
3850         * src/SDCC.lex: stringLiteral() returns const char pointer,
3851           EOF detection in stringLiteral(), fixed asmbuf memory leak,
3852           fixed column counting
3853         * src/SDCCval.[ch]: constVal(), value *strVal() and charVal()
3854           accept const char pointer as parameter
3855         * src/SDCCdwarf2.c: corrected buffer size
3856
3857 2007-01-17 Borut Razem <borut.razem AT siol.net>
3858
3859         * support/Util/dbuf_string.c: fixed for amd64
3860
3861 2007-01-15 Borut Razem <borut.razem AT siol.net>
3862
3863         * src/pic16/ralloc.c, src/pic/ralloc.c, src/SDCC.y:
3864           removed terminal symbol ELIPSIS, since it was never generated by the
3865           lexer and it was wrongly used in parameter_identifier_list rule
3866
3867 2007-01-15 Raphael Neider <rneider AT web.de>
3868
3869         * doc/sdccman.lyx: updated PIC14/16 command line args, updated PIC14
3870             code page and data banking description
3871         * src/pic/genarith.c,
3872         * src/pic/gen.h: removed bit arithmetic functions,
3873             updated exit(1) to exit(EXIT_FAILURE)
3874         * device/lib/pic16/libsdcc/stack/stack.S: default to 256 byte stack
3875         * device/include/pic16/pic18f2455.h,
3876         * device/lib/pic16/libdev/pic18f2455.c: added PORTD, LATD, LATE,
3877             TRISD and TRISE, fixed/added some bit names
3878         * device/lib/pic16/libdev/pic18f{2550,4550,4455}.c,
3879         * device/include/pic16/pic18f{2550,4550,4455}.h: simply include
3880             updated pic18f2455.{c,h} instead of duplicating them
3881
3882 2007-01-14 Borut Razem <borut.razem AT siol.net>
3883
3884         * as/mcs51/asnoice.c, as/hc08/asnoice.c: fixed bug #1447412:
3885           Cannot debug files that contain spaces in the path name
3886           by converting spaces in asm file name to underscores
3887
3888 2007-01-13 Borut Razem <borut.razem AT siol.net>
3889
3890         * doc/sdccman.lyx: fixed format errors
3891
3892 2007-01-10 Borut Razem <borut.razem AT siol.net>
3893
3894         * src/SDCC.lex, src/SDCCmain.c: fixed bug #1631895:
3895           codeseg/constseg #pragma fail
3896         * suppoprt/cpp2/Makefile.bcc: reenable Borland C compilation
3897         * suppoprt/cpp2/configure.in, suppoprt/cpp2/libcpp/lex.c,
3898           suppoprt/cpp2/Makefile.in, suppoprt/cpp2/sdcpp-opts,
3899           suppoprt/cpp2/sdcpp.[ch]: house cleaning
3900
3901 2007-01-09 Borut Razem <borut.razem AT siol.net>
3902
3903         * get rid of diagnistic.[ch], pretty-print.[ch],
3904           c-pretty-print.[ch], ... used just for error, warning, ...
3905           message formatting
3906         * suppoprt/cpp2/pretty-print.[ch], suppoprt/cpp2/diagnostic.[ch],
3907           suppoprt/cpp2/diagnostic.def, suppoprt/cpp2/input.h,
3908           suppoprt/cpp2/pretty-print.[ch]:
3909           removed
3910         * suppoprt/cpp2/Makefile.in, suppoprt/cpp2/opts.c,
3911           suppoprt/cpp2/sdcpp-opts.c, suppoprt/cpp2/sdcpp.[ch],
3912           suppoprt/cpp2/sdcpp.dsp:
3913           changed
3914
3915 2007-01-08 Maarten Brock <sourceforge.brock AT dse.nl>
3916
3917         * device/lib/printf_large.c (output_float): removed recursion,
3918           use smaller buffer on stack for mcs51,
3919           fixed bug printing 1.96
3920         * support/regression/tests/snprintf.c: added test
3921
3922 2007-01-07 Borut Razem <borut.razem AT siol.net>
3923
3924         * use dynamic memory buffers instead temporary files
3925         * support/Util/dbuf_string.c, support/Util/dbuf_string.h:
3926           added
3927         * src/Makefile.in, src/SDCC.lex, src/SDCCast.c, src/SDCCast.h,
3928           src/SDCCcse.c, src/SDCCglobl.h, src/SDCCglue.c, src/SDCCglue.h,
3929           src/SDCCicode.c, src/SDCCicode.h, src/SDCCmain.c, src/SDCCmem.c,
3930           src/SDCCmem.h, src/SDCCpeeph.c, src/SDCCpeeph.h, src/SDCCsymt.c,
3931           src/SDCCsymt.h, src/SDCCutil.c, src/asm.c, src/asm.h, src/avr/gen.c,
3932           src/avr/main.c, src/ds390/gen.c, src/ds390/main.c, src/hc08/gen.c,
3933           src/hc08/main.c, src/izt/gen.c, src/mcs51/gen.c, src/mcs51/main.c,
3934           src/pic/device.c, src/pic/gen.c, src/pic/glue.c, src/pic/main.c,
3935           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/glue.c,
3936           src/pic16/main.c, src/pic16/ralloc.c, src/port.h, src/src.dsp,
3937           src/xa51/gen.c, src/xa51/main.c, src/z80/gen.c, src/z80/main.c,
3938           support/Util/dbuf.c, support/Util/dbuf.h:
3939           modified
3940         * .version, sdcc.spec: bumped version to 2.6.4
3941
3942 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
3943
3944         * src/port.h: added TARGET_Z80_LIKE macro
3945         * src/SDCCmain.c (linkEdit): use TARGET_Z80_LIKE,
3946           output PSEG location if --xram-loc or --xstack-loc was used
3947         * as/link/mcs51/lkarea.c (lnksect2): set segment address afterwards
3948
3949 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
3950
3951         * as/as_gbz80.dsp, as/z80/as_gbz80.dsp,
3952         * as/as_z80.dsp,   as/z80/as_z80.dsp,
3953         * as/asx8051.dsp,  as/mcs51/asx8051.dsp,
3954         * sdcc.dsw: moved project files into subdir
3955         * as/hc08/as_hc08.dsp,
3956         * as/hc08/Makefile.bcc,
3957         * as/hc08/Makefile.in,
3958         * as/mcs51/Makefile.bcc,
3959         * as/mcs51/Makefile.in,
3960         * as/z80/Makefile.bcc,
3961         * as/z80/Makefile.in,
3962         * as/link/mcs51/Makefile.bcc: use as/strcmpi.c
3963         * as/hc08/asm.h,
3964         * as/mcs51/asm.h,
3965         * as/z80/asm.h: added as_strcmpi() and as_strncmpi() prototypes
3966         * as/hc08/asmain.c,
3967         * as/hc08/assym.c,
3968         * as/mcs51/asmain.c,
3969         * as/mcs51/assym.c,
3970         * as/z80/assym.c: removed include "strcmpi.h"
3971         * as/hc08/strcmpi.c,
3972         * as/hc08/strcmpi.h,
3973         * as/mcs51/strcmpi.c,
3974         * as/mcs51/strcmpi.h,
3975         * support/Util/strcmpi.c,
3976         * support/Util/strcmpi.h: removed files
3977         * as/strcmpi.c: added as_strncmpi()
3978
3979 2007-01-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3980
3981         * sdcc.dsw: Added some dependencies on project config.dsp
3982
3983 2007-01-05 Maarten Brock <sourceforge.brock AT dse.nl>
3984
3985         * as/link/mcs51/lkarea.c (lnkarea2, lnksect2): replaced [di]seg_ap->a_addr
3986           with [di]ram_start to fix a regresion
3987
3988 2007-01-03 Bernhard Held <bernhard AT bernhardheld.de>
3989
3990         * configure.in: added missing mcs51 in status output
3991         * Makefile.in: add support/regression to SDCC_EXTRA to distclean this
3992         directory
3993         * debugger/mcs51/clean.mk (distclean): remove config.h
3994         * src/clean.mk (clean): remove SDCCy.c, SDCCy.h, SDCClex.c
3995         * support/cpp2/Makefile.in (clean): remove s-options, optionlist,
3996         options.h, s-options-h and options.c
3997         * support/cpp2/clean.mk: unused, removed
3998         * Makefile.common.in,
3999         * main_in.mk,
4000         * as/Makefile.in,
4001         * as/hc08/Makefile.in,
4002         * as/hc08/clean.mk,
4003         * as/mcs51/Makefile.in,
4004         * as/mcs51/clean.mk,
4005         * as/z80/clean.mk,
4006         * as/z80/conf.mk,
4007         * as/z80/Makefile.in,
4008         * as/z80/clean.mk,
4009         * as/link/Makefile.in,
4010         * as/link/hc08/Makefile.in,
4011         * as/link/hc08/clean.mk,
4012         * as/link/mcs51/Makefile.in,
4013         * as/link/mcs51/clean.mk,
4014         * as/link/z80/Makefile.in,
4015         * as/link/z80/clean.mk,
4016         * as/link/z80/conf.mk,
4017         * debugger/mcs51/Makefile.in,
4018         * debugger/mcs51/clean.mk,
4019         * device/include/Makefile.in,
4020         * device/lib/Makefile.in,
4021         * device/lib/mcs51/Makefile.in,
4022         * device/lib/pic/Makefile.in,
4023         * device/lib/pic/Makefile.common.in,
4024         * device/lib/pic/Makefile.subdir,
4025         * device/lib/pic/Makefile.rules,
4026         * device/lib/pic16/libio/Makefile.in,
4027         * device/lib/pic16/Makefile.subdir,
4028         * device/lib/pic16/libdev/Makefile.in,
4029         * device/lib/pic16/Makefile.rules,
4030         * device/lib/pic16/Makefile.common.in,
4031         * sim/ucsim/avr.src/Makefile.in,
4032         * sim/ucsim/main_in.mk,
4033         * sim/ucsim/cmd.src/Makefile.in,
4034         * sim/ucsim/doc/Makefile.in,
4035         * sim/ucsim/gui.src/Makefile.in,
4036         * sim/ucsim/gui.src/obsolete/portmon.src/Makefile.in,
4037         * sim/ucsim/gui.src/serio.src/Makefile.in,
4038         * sim/ucsim/hc08.src/Makefile.in,
4039         * sim/ucsim/libltdl/Makefile.in,
4040         * sim/ucsim/s51.src/Makefile.in,
4041         * sim/ucsim/sim.src/Makefile.in,
4042         * sim/ucsim/sim.src/conf.mk,
4043         * sim/ucsim/xa.src/Makefile.in,
4044         * sim/ucsim/z80.src/Makefile.in,
4045         * src/Makefile.in,
4046         * src/clean.mk,
4047         * src/port.mk,
4048         * support/cpp2/Makefile.in,
4049         * support/librarian/Makefile.in,
4050         * support/librarian/clean.mk,
4051         * support/makebin/Makefile.in,
4052         * support/makebin/clean.mk,
4053         * support/packihx/Makefile.in,
4054         * support/regression/Makefile.in,
4055         * support/regression/ports/ds390/spec.mk,
4056         * support/regression/ports/gbz80/spec.mk,
4057         * support/regression/ports/hc08/spec.mk,
4058         * support/regression/ports/mcs51/spec.mk,
4059         * support/regression/ports/mcs51-large/spec.mk,
4060         * support/regression/ports/mcs51-medium/spec.mk,
4061         * support/regression/ports/mcs51-xstack-auto/spec.mk,
4062         * support/regression/ports/pic14/spec.mk,
4063         * support/regression/ports/pic16/spec.mk,
4064         * support/regression/ports/mcs51-stack-auto/spec.mk,
4065         * support/regression/ports/ucz80/spec.mk,
4066         * support/regression/ports/xa51/spec.mk,
4067         * support/regression/ports/z80/spec.mk: fixed for autoconf 2.6x by
4068         adding a slash after $(top_builddir) and/or adding @datarootdir@
4069         * configure.in,
4070         * debugger/mcs51/configure.in,
4071         * device/lib/pic/configure.in,
4072         * device/lib/pic16/configure.in,
4073         * sim/ucsim/configure.in,
4074         * support/cpp2/configure.in,
4075         * support/packihx/configure.in: changed AC_PREREQ to 2.60
4076         * configure,
4077         * debugger/mcs51/configure,
4078         * device/lib/pic/configure,
4079         * device/lib/pic16/configure,
4080         * sim/ucsim/configure,
4081         * support/cpp2/configure,
4082         * support/packihx/configure: generated with autoconf 2.60
4083
4084 2007-01-02 Maarten Brock <sourceforge.brock AT dse.nl>
4085
4086         * as/link/hc08/lkihx.c (newArea),
4087         * as/link/hc08/lkrloc.c: renamed newArea() to ihxNewArea()
4088
4089 2007-01-02 Borut Razem <borut.razem AT siol.net>
4090
4091         * doc/sdccman.lyx: documented #pragma sdcc_hash
4092         * support/cpp2/sdcpp.c: allow_naked_hash (value of #pragma sdcc_hash)
4093           initialized to 0
4094         * support/cpp2/c-ppoutput.c: fixed warning: no newline at end of file
4095
4096 2007-01-01 Bernhard Held <bernhard AT bernhardheld.de>
4097
4098         * src/SDCCast.c (createDo): backPatchLabels() needs falseLabel in
4099         empty 'while'-loop to work correctly, see regression test 'while.c'
4100         * support/regression/tests/while.c: added
4101
4102 2007-01-01 Borut Razem <borut.razem AT siol.net>
4103
4104         * support/cpp2/libcpp/directives.c, support/cpp2/libcpp/identifiers.c,
4105           support/cpp2/libcpp/init.c, support/cpp2/libcpp/sdcpp-opts.c,
4106           support/cpp2/libcpp/sdcpp.c:
4107           sdcpp specific pragma/directive/option handling moved to sdcpp.c
4108         * doc/sdccman.lyx: reference to the GCC 4.1.1 CPP Manual
4109         * support/cpp2/libcpp/mkdeps.c: synchronized with GCC CPP 4.1.1
4110
4111 2006-12-31 Borut Razem <borut.razem AT siol.net>
4112
4113         * SDCPP synchronized with GCC CPP release version 4.1.1,
4114           currently the latest release:
4115         * support/cpp2/libcpp, support/cpp2/libcpp/include,
4116           support/cpp2/libcpp/include/cpp-id-data.h
4117           support/cpp2/libiberty/fopen_unlocked.c
4118           support/cpp2/libiberty/md5.c
4119           support/cpp2/md5.h
4120           support/cpp2/opt-functions.awk
4121           support/cpp2/opt-gather.awk
4122           support/cpp2/optc-gen.awk
4123           support/cpp2/opth-gen.awk:
4124           added
4125         * support/cpp2/Makefile.in, support/cpp2/auto-host_vc_in.h,
4126           support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
4127           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
4128           support/cpp2/c-pretty-print.h, support/cpp2/cppdefault.c,
4129           support/cpp2/cppdefault.h, support/cpp2/diagnostic.c,
4130           support/cpp2/diagnostic.h, support/cpp2/except.h,
4131           support/cpp2/hwint.h, support/cpp2/input.h,
4132           support/cpp2/intl.h, support/cpp2/move-if-change,
4133           support/cpp2/opts.c, support/cpp2/opts.h,
4134           support/cpp2/output.h, support/cpp2/prefix.c,
4135           support/cpp2/prefix.h, support/cpp2/pretty-print.c,
4136           support/cpp2/pretty-print.h, support/cpp2/sdcpp-opts.c,
4137           support/cpp2/sdcpp.c, support/cpp2/sdcpp.dsp,
4138           support/cpp2/sdcpp.h, support/cpp2/sdcpp.opt,
4139           support/cpp2/sdcppa.dsp, support/cpp2/symcat.h,
4140           support/cpp2/version.c:
4141           modified
4142         * support/cpp2/libcpp/charset.c, support/cpp2/libcpp/directives.c,
4143           support/cpp2/libcpp/errors.c, support/cpp2/libcpp/expr.c,
4144           support/cpp2/libcpp/files.c, support/cpp2/libcpp/identifiers.c,
4145           support/cpp2/libcpp/include/cpplib.h, support/cpp2/libcpp/include/line-map.h,
4146           support/cpp2/libcpp/include/mkdeps.h, support/cpp2/libcpp/include/symtab.h,
4147           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
4148           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/line-map.c,
4149           support/cpp2/libcpp/macro.c, support/cpp2/libcpp/mkdeps.c,
4150           support/cpp2/libcpp/symtab.c, support/cpp2/libcpp/system.h,
4151           support/cpp2/libcpp/traditional.c, support/cpp2/libcpp/ucnid.h,
4152           support/cpp2/libiberty/hashtab.c, support/cpp2/libiberty/hashtab.h:
4153           moved
4154         * support/cpp2/cppcharset.c, support/cpp2/cpperror.c,
4155           support/cpp2/cppexp.c, support/cpp2/cppfiles.c,
4156           support/cpp2/cpphash.c, support/cpp2/cpphash.h,
4157           support/cpp2/cppinit.c, support/cpp2/cpplex.c,
4158           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
4159           support/cpp2/cppmacro.c, support/cpp2/cpptrad.c,
4160           support/cpp2/cppucnid.h, support/cpp2/hashtab.c,
4161           support/cpp2/hashtab.h, support/cpp2/hashtable.c,
4162           support/cpp2/hashtable.h, support/cpp2/line-map.c,
4163           support/cpp2/line-map.h, support/cpp2/mkdeps.c,
4164           support/cpp2/mkdeps.h, support/cpp2/options_vc_in.c,
4165           support/cpp2/options_vc_in.h, support/cpp2/opts.sh,
4166           support/cpp2/system.h:
4167           deleted / moved
4168
4169 2006-12-31 Borut Razem <borut.razem AT siol.net>
4170
4171         * configure.in, configure: fixed bug #1538756: configure dies if bison
4172           and flex are not installed, 2nd try
4173
4174 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
4175
4176         * src/mcs51/peeph.def: renamed rule 400 to 500, moved rule 253.x to
4177         400.x for better code in RFE 899102
4178
4179 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
4180
4181         * src/SDCCpeeph.c (deadMove),
4182         * src/port.h,
4183         * src/mcs51/peep.h: renamed 'op' by 'reg'
4184         * src/mcs51/peep.c (isFunc, isCallerSaveFunc): added,
4185         (scan4op): small change for removeDeadMove(), added support for
4186         'callee saves' and/or PACLL function calls,
4187         (removeDeadMove): added, removes superflous 'mov r%1,%2',
4188         (removeDeadPopPush): renamed from mcs51DeadMove(), common parts
4189         left in new dispatcher mcs51DeadMove()
4190         (mcs51DeadMove): dispatcher for removeDeadPopPush() and new
4191         removeDeadMove()
4192         * src/mcs51/peeph.def: added rule 301 removing superflous 'mov r%1,%2'
4193
4194 2006-12-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4195
4196         * support/cpp2/options_vc_in.h, support/cpp2/options_vc_in.c,
4197           support/cpp2/sdcppa.dsp: create 'options.h' and 'options.c' under MSVC.
4198
4199 2006-12-30 Borut Razem <borut.razem AT siol.net>
4200
4201         * support/cpp2/spacs.h: deleted from svn
4202         * configure.in, configure: fixed bug #1538756: configure dies if bison
4203           and flex are not installed
4204
4205 2006-12-29 Maarten Brock <sourceforge.brock AT dse.nl>
4206
4207         * src/z80/gen.c (assignResultValue): fixed bug when registers overlap,
4208           with this z80 passes printf float test when enabled
4209         * support/regression/tests/bug1057979.c: typo disabled ds390 float test
4210
4211 2006-12-28 Borut Razem <borut.razem AT siol.net>
4212
4213         * support/cpp2/config.in, support/cpp2/configure.in,
4214           support/cpp2/configure, support/cpp2/Makefile.in:
4215           fix for the solaris build
4216
4217 2006-12-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4218
4219         * src/SDCC.y (type_specifier2, pointer),
4220         * src/SDCCsymt.h,
4221         * src/SDCCsymt.c (mergeSpec, checkSClass),
4222         * support/Util/SDCCerr.c,
4223         * support/Util/SDCCerr.h: Parse and validate the restrict keyword
4224         * support/valdiag/valdiag.py: Allow test cases to specify
4225           required language standard
4226         * support/valdiag/tests/restrict.c: New file to test restrict keyword
4227         * support/valdiag/tests/tentdecl.c: Supress empty source file error
4228
4229 2006-12-27 Borut Razem <borut.razem AT siol.net>
4230
4231         * support/cpp2/cppmain.c, support/cpp2/mbchar.[ch]: removed
4232         * support/cpp2/libiberty/Makefile.in, support/cpp2/libiberty/sdcpp.dsp:
4233           mbchar removed
4234         * support/cpp2/libiberty/getpwd.c, support/cpp2/sdcpp.h:
4235           fixed for borland C
4236         * support/cpp2/libiberty/Makefile.bcc: updated
4237         * src/pic16/main.c: fixed #pragma udata handling
4238         * src/mcs51/mcs51.dsp: added peep.[ch] to the project
4239
4240 2006-12-26 Bernhard Held <bernhard AT bernhardheld.de>
4241
4242         * src/SDCCpeeph.c: made labelHashEntry global,
4243         made pcDistance, FBYNAME static,
4244         (pcDistance): made static, use isComment and isLabel,
4245         (deadMove): added,
4246         (getLabelRef): added, extracted from labelRefCount(),
4247         (labelRefCount): use new getLabelRef(),
4248         (callFuncByName): made static, added deadMove,
4249         use isComment and isLabel,
4250         (newPeepRule): made static, set isLabel,
4251         (isLabelDefinition): added parameter isPeepRule to allow '%' in
4252         labels from peephole rules,
4253         (buildLabelRefCountHash): speed up by running isLabelDefinition() only
4254         when isComment or isLabel is set
4255         * src/SDCCpeeph.h: added "isLabel" and "visited" to struct lineNode,
4256         added labelHashEntry, isLabelDefinition, labelHash and getLabelRef
4257         to make them global
4258         * src/mcs51/peep.h: added
4259         * src/mcs51/peep.c: added, implements mcs51DeadMove()
4260         * src/port.h: added peep->deadMove to port structure
4261         * src/mcs51/main.c: initialize peep->deadMove with mcs51DeadMove
4262         * src/mcs51/peeph.def: renumbered rule 300 to 400, added new rule 300
4263         deadMove, finally removed no. 1 and 2
4264         * src/mcs51/gen.c,
4265         * src/pic/gen.c,
4266         * src/z80/gen.c,
4267         * src/z80/ralloc.c,
4268         * src/pic16/gen.c,
4269         * src/ds390/gen.c,
4270         * src/hc08/gen.c: mark lines with isComment or isLabel
4271         * sim/ucsim/s51.src/uc390hw.cc: don't waist 65535 ticks before CKRDY
4272         * .version,
4273         * sdcc.spec: bumped version to 2.6.3
4274
4275 2006-12-26 Borut Razem <borut.razem AT siol.net>
4276
4277         * support/cpp2/Makefile.in: added dependency on options.h
4278         * configure: regenerated
4279         * support/cpp2/sdcpp.opt, support/cpp2/move-if-change: svn:eol-style native
4280         * support/cpp2/Makefile.in: added vasprintf.c
4281
4282 2006-12-25 Borut Razem <borut.razem AT siol.net>
4283
4284         * SDCPP synchronized with GCC CPP release version 3.4.6,
4285           the latest release before 4.x:
4286         * support/cpp2/Makefile.in, support/cpp2/config.h,
4287           support/cpp2/configure, support/cpp2/configure.in,
4288           support/cpp2/cppdefault.c, support/cpp2/cppdefault.h,
4289           support/cpp2/cpperror.c, support/cpp2/cppexp.c,
4290           support/cpp2/cppfiles.c, support/cpp2/cpphash.c,
4291           support/cpp2/cpphash.h, support/cpp2/cppinit.c,
4292           support/cpp2/cpplex.c, support/cpp2/cpplib.c,
4293           support/cpp2/cpplib.h, support/cpp2/cppmacro.c,
4294           support/cpp2/cpptrad.c, support/cpp2/except.h,
4295           support/cpp2/hashtable.c, support/cpp2/hashtable.h,
4296           support/cpp2/hwint.h, support/cpp2/intl.h,
4297           support/cpp2/line-map.c, support/cpp2/line-map.h,
4298           support/cpp2/mkdeps.c, support/cpp2/mkdeps.h,
4299           support/cpp2/output.h, support/cpp2/prefix.c,
4300           support/cpp2/prefix.h, support/cpp2/sdcpp.dsp,
4301           support/cpp2/system.h, support/cpp2/version.c:
4302           modified
4303         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
4304           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
4305           support/cpp2/c-pretty-print.h, support/cpp2/cppcharset.c,
4306           support/cpp2/cppucnid.h, support/cpp2/diagnostic.c,
4307           support/cpp2/diagnostic.def, support/cpp2/diagnostic.h,
4308           support/cpp2/hashtab.c, support/cpp2/hashtab.h,
4309           support/cpp2/input.h, support/cpp2/libiberty/getpwd.c,
4310           support/cpp2/libiberty/vasprintf.c, support/cpp2/libiberty/xmemdup.c,
4311           support/cpp2/move-if-change, support/cpp2/opts.c,
4312           support/cpp2/opts.h, support/cpp2/opts.sh,
4313           support/cpp2/pretty-print.c, support/cpp2/pretty-print.h,
4314           support/cpp2/sdcpp.opt, support/cpp2/sdcpp-opts.c,
4315           support/cpp2/win32, support/cpp2/win32/dirent.c,
4316           support/cpp2/win32/dirent.h:
4317           added
4318         * support/cpp2/sdcpp.c: renamed from sdcppmain.c
4319         * support/cpp2/sdcpp.h: renamed from sdcc.h
4320         * sdcppinit.c: deleted
4321
4322 2006-12-23 Borut Razem <borut.razem AT siol.net>
4323
4324         * support/cpp2/cpphash.h, support/cpp2/cpplex.c,
4325           support/cpp2/cpplib.[ch], support/cpp2/sdcppinit.c, doc/sdccman.lyx,
4326           preproc.c: an other try to fix bug #982435: introduced
4327           -pedantic-parse-number command line option and pedantic_parse_number
4328           pragma
4329
4330 2006-12-21 Maarten Brock <sourceforge.brock AT dse.nl>
4331
4332         * as/link/mcs51/lkarea.c (lnkarea2): handle absolute areas, restructured
4333            BSEG handling,
4334           (lnksect2): use --data-loc and --idata-loc as lower bound for ramstart,
4335            corrected overlayed areax addresses, warn about memory overlaps
4336         * as/mcs51/asmain.c (asmbl): create a new area for every .org directive
4337         * src/avr/main.c,
4338         * src/ds390/main.c,
4339         * src/hc08/main.c,
4340         * src/mcs51/main.c,
4341         * src/pic16/main.c,
4342         * src/pic/main.c,
4343         * src/xa51/main.c,
4344         * src/z80/main.c,
4345         * src/port.h: added xabs_name and iabs_name
4346         * src/SDCCglue.c (emitRegularMap): allocate for absolutes with initializer
4347           (glue, emitMaps): create and emit maps d_abs and i_abs
4348         * src/SDCCglue.h: cosmetic changes
4349         * src/SDCCmain.c (setDefaultOptions): idata can start below 0x80
4350         * src/SDCCmem.h,
4351         * src/SDCCmem.c (initMem): added x_abs, i_abs and d_abs
4352           (allocDefault): put absolute, initialized globals in them
4353         * support/regression/tests/absolute.c: added absolute bdata test
4354         * device/lib/printf_large.c (output_float): moved fpBuffer to stack/xdata
4355
4356 2006-12-20 Borut Razem <borut.razem AT siol.net>
4357
4358         * support/cpp2/cpphash.h, support/cpp2/cpplex.c: fixed bug #982435
4359         * support/regression/tests/preproc.c: renamed from bug-1351710.c,
4360           added regression test for bug #982435
4361
4362 2006-12-18 Borut Razem <borut.razem AT siol.net>
4363
4364         * src/SDCCutil.c: fixed a bug in (get_pragma_token)
4365         * src/pic16/main.c, src/SDCC.lex, src/z80/main.c:
4366           small cosmetic changes
4367         * src/SDCC.lex: (stringLiteral) fixed bug #1351710
4368         * support/regression/tests/bug-1351710.c: added regression test
4369
4370 2006-12-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4371
4372         * doc/sdccman.lyx: added the long missed iCode table
4373           "<where is figure II?>", added links to wiki
4374
4375 2006-12-17 Borut Razem <borut.razem AT siol.net>
4376
4377         * doc/sdccman.lyx, src/pic16/main.c, src/pic/main.c, src/port.h,
4378           src/SDCC.lex, src/SDCCutil.[ch], src/z80/main.c,
4379           support/Util/SDCCerr.[ch]: removed deprecated pragmas,
4380           unified table driven pragma handling, pragma argument type checking
4381         * support/Util/dbuf.c: (dbuf_set_size) allow to set size equal to the
4382           current one - version 1.1.3
4383         * src/SDCCmain.c: (setParseWithComma) substituted brain damaged strtok
4384
4385 2006-12-13 Raphael Neider <rneider AT web.de>
4386
4387         * src/pic/device.h: removed AssignedMemory structure and macros
4388         * src/pic/device.c: removed global finalMapping (linker assigns
4389             memory locations),
4390           (register_map): add SFRs to remembered memRanges
4391           (addMemRange,isSFR,dump_map,dump_sfr,mapRegister,assignRegister,
4392           assignFixedRegisters,assignRelocatableRegisters): removed,
4393           (setMaxRAM,validAddress): adapted accordingly,
4394           (pic14_hasSharebank,pic14_getSharedStack): only report and use
4395             reasonably sized sharebanks,
4396         * src/pic/ralloc.c (writeUsedRegs): stripped down (remove?),
4397           (allDefsOutOfRange): removed unused code,
4398         * src/pic/main.c (_process_pragma): removed memmap/maxram pragma
4399             handling
4400         * src/pic/pcode.c (register_reassign): removed recursion warning,
4401             fired far too often,
4402         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap): modified
4403             to use existing pic14_stringInSet() to avoid duplicate symbols,
4404             tidied up the code a bit,
4405           (pic14printLocals): added in symmetry to printExterns, replaces
4406             writeUsedRegs more or less,
4407           (picglue): call new pic14_printLocals(),
4408         * device/include/pic/pic*.h: removed #pragma memmap directives,
4409             information gathered from include/pic/pic14devices.txt
4410         * support/scripts/inc2h.pl: do not emit #pragma memmap lines
4411
4412 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
4413
4414         * device/include/mcs51/C8051F520.h: fixed buggy CPT0MX
4415
4416 2006-12-11 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4417
4418         * device/include/mcs51/cc2430.h: fixed missing ';'
4419
4420 2006-12-10 Raphael Neider <rneider AT web.de>
4421
4422         * device/lib/pic16/libc/stdio/vfprintf.c,
4423         * device/lib/pic16/libc/stdio/printf_small.c,
4424         * device/lib/pic16/libc/stdio/printf_timy.c: pop int from stack for
4425           char arguments, as char varargs are cast to int by the caller,
4426           hopefully fixes #1604915 (other device libraries are still affected)
4427
4428 2006-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4429
4430         * src/mcs51/ralloc.c (packRegsForAssign),
4431         * src/hc08/ralloc.c (packRegsForAssign): fixed bug #1605880
4432
4433 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
4434
4435         * device/include/malloc.h: removed init_dynamic_memory
4436         * device/lib/malloc.c: made init_dynamic_memory static and automatically
4437           call it once from malloc. Also use _sdcc_heap[] from _heap.c
4438         * device/lib/_heap.c: new, added, contains _sdcc_heap[]
4439         * device/lib/libsdcc.lib,
4440         * device/lib/Makefile.in,
4441         * support/regression/ports/mcs51-xstack-auto/spec.mk: added _heap.c
4442         * doc/sdccman.lyx: documented use of new _heap.c
4443         * support/regression/tests/malloc.c: removed init_dynamic_memory
4444         * src/cdbFile.c(spacesToUnderscores): new function,
4445           (cdbWriteEndFunction, cdbWriteCLine): use spacesToUnderscores, fixes bug
4446           1068030
4447         * device/include/tinibios.h: removed defines for putchar and getchar
4448         * device/lib/ds390/Makefile.in: added putchar.c
4449         * device/lib/ds390/putchar.c: new, added, fixes bug 1465671
4450
4451 2006-12-09 Borut Razem <borut.razem AT siol.net>
4452
4453         * support/cpp2/sdcc.h: prevent multiple inclusion
4454         * support/cpp2/options.h: deleted
4455
4456 2006-12-08 Borut Razem <borut.razem AT siol.net>
4457
4458         * support/cpp2/sdcc.h: removed x*alloc() macros
4459         * support/cpp2/libiberty.h: uncommented out x*alloc() declarations
4460         * support/cpp2/Makefile.bcc, support/cpp2/Makefile.in,
4461           support/cpp2/sdcpp.sdc: x*alloc files added to the project
4462         * support/cpp2/system.h: moved #include "sdcc.h"
4463         * support/cpp2/libiberty/xexit.c, support/cpp2/libiberty/xmalloc.c,
4464           support/cpp2/libiberty/xstrdup.c, support/cpp2/libiberty/xstrerror.c:
4465           added
4466         * support/cpp2/sdcppinit.c: added -isysroot, -fsigned-char,
4467           -funsigned-char options
4468         * support/cpp2/sdcppmain.c: fixed bug 1611411
4469
4470 2006-12-07 Borut Razem <borut.razem AT siol.net>
4471
4472         * support/cpp2/cpplib.c: reverted sdcpp special handling of _Pragma()
4473           directive
4474
4475 2006-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
4476
4477         * src/SDCCsymt.c (addDecl): fixed bug 1609244
4478         * src/SDCCmain.c (linkEdit): fixed bug 1609279
4479         * doc/sdccman.lyx,
4480         * .version: bumped to 2.6.2 because a) it's been a while
4481           b) the linker sources have moved c) the preprocessor is upgraded
4482
4483 2006-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4484
4485         * support/regression/tests/snprintf.c: some checks
4486         * lib/src/printf_large.c: %bc: read char instead of int from stack
4487
4488 2006-12-03 Maarten Brock <sourceforge.brock AT dse.nl>
4489
4490         * device/include/mcs51/cc2430.h: inserted _XPAGE
4491
4492 2006-12-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4493
4494         * device/include/mcs51/cc2430.h: added
4495
4496 2006-12-02 Maarten Brock <sourceforge.brock AT dse.nl>
4497
4498         * device/include/asm/default/features.h,
4499         * device/include/asm/ds390/features.h,
4500         * device/include/mcs51/at89s53.h,
4501         * device/include/ser.h,
4502         * device/include/ser_ir.h,
4503         * device/include/serial.h: changed keywords to double underscore variants,
4504           fixes bug 1590261 some more, thanks Steven Borley
4505
4506 2006-12-01 Raphael Neider <rneider AT web.de>
4507
4508         * src/pic/pcode.c (register_reassign): do not crash on recursive code
4509           but emit warning (recursion is not supported for pic14)
4510
4511 2006-11-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4512
4513         * src/mcs51/peeph.def: added 101.a,b (moves to int/long xdata)
4514         * doc/sdccman.lyx: various small changes, acknowledged Sourceforge
4515
4516 2006-11-30 Raphael Neider <rneider AT web.de>
4517
4518         * src/pic/device.c (dump_sfr): always emit symbols
4519         * src/pic/glue.c (pic14printPublics): fixed typo
4520
4521 2006-11-30 Raphael Neider <rneider AT web.de>
4522
4523         * src/pic/device.c (create_pic,ram_map): add memRange entries to PIC
4524           (pic14_getSharebankSize, pic14_getSharebankAddress): replaced with
4525           (pic14_hasSharebank,pic14_isShared,pic14_allRAMShared,
4526            pic14_getSharedStack): NEW, evaluate the memRange entries to locate
4527            a sharebank, use a non-shared bank for the stack if none available
4528         * src/pic/device.h (struct memRange): added linked list next field,
4529           added prototypes for above functions
4530         * src/pic/ralloc.c (initStack): handle shared and banked stacks,
4531           (typeRegWithIdx): accept fixed and unfixed stack registers
4532         * src/pic/pcode.c (pCodeInitRegisters): use new functions to create
4533           the stack, handle shared and banked stack (except for WSAVE),
4534           (insertBankSel): removed useless optimization (will never fire),
4535           (FixRegisterBanking): added optimization for devices with only one
4536           possibly aliased bank of memory, like 16f84
4537         * src/pic/glue.c (pic14_constructAbsMap): back to udata_ovr, as some
4538           devices have no SHAREBANK in the linker script
4539         * device/include/pic/pic14devices.txt: documented memmap
4540         * device/lib/pic/libdev/Makefile.in: removed --stack-loc again
4541
4542 2006-11-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4543
4544         * src/hc08/gen.c (transferRegReg, loadRegFromAop, forceStackedAop,
4545           storeRegToAop, freeAsmop, genPlusIncr, genPlus, genPointerGetSetOfs,
4546           genAnd, genOr, genXor, genLeftShiftLiteral, genRightShiftLiteral,
4547           genhc08Code): switched most of the D (debug) macros to DD (detailed
4548           debug) macros to better control clutter in the generated .asm file.
4549         * src/hc08/gen.c: (forceStackedAop, genUminus, genLeftShift,
4550           genRightShift): fixed bug with non-constant bit shift stored to
4551           a volatile result (SF Open Discussion forum thread #1616749).
4552           Single byte case is not yet optimized.
4553
4554 2006-11-28 Maarten Brock <sourceforge.brock AT dse.nl>
4555
4556         * device/include/asm/mcs51/features.h,
4557         * device/include/malloc.h,
4558         * device/include/stdio.h: changed keywords to double underscore variants,
4559           fixes bug 1590261
4560
4561 2006-11-27 Borut Razem <borut.razem AT siol.net>
4562
4563         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
4564           support/cpp2/Makefile.in, support/cpp2/cppfiles.c,
4565           support/cpp2/output.h, support/cpp2/cppinit.c,
4566           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
4567           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
4568           support/cpp2/cppdefault.c, support/cpp2/system.h,
4569           support/cpp2/cpphash.h, support/cpp2/cpplex.c,
4570           support/cpp2/cppdefault.h, support/cpp2/mbchar.c,
4571           support/cpp2/prefix.c, support/cpp2/except.h,
4572           support/cpp2/hwint.h, support/cpp2/cppmacro.c,
4573           support/cpp2/line-map.h, support/cpp2/sdcpp.dsp,
4574           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
4575           support/cpp2/version.c, support/cpp2/cppmain.c,
4576           support/cpp2/version.h, support/cpp2/hashtable.c,
4577           support/cpp2/cpperror.c:
4578           synchronized with GCC CPP release version 3.3.6,
4579           the latest where cppmain.c still exists.
4580         * support/cpp2/cpptrad.c, support/cpp2/sdcppmain.c,
4581           support/cpp2/sdcppinit.c: added
4582
4583 2006-11-27 Borut Razem <borut.razem AT siol.net>
4584
4585         * support/cpp2/cpplex.c:
4586           fixed _asm ... _endasm handling bug, introduce with GCC CPP
4587           synchronization
4588         * support/cpp2/cpplib.c: removed definitions of unused variables
4589
4590 2006-11-26 Borut Razem <borut.razem AT siol.net>
4591
4592         * support/cpp2/libiberty.h: commented out x*alloc() declarations
4593           since they are redefined by macros in support/cpp2/sdcc.h
4594         * support/cpp2/sdcc.h: x*alloc macro redefinition
4595
4596 2006-11-25 Borut Razem <borut.razem AT siol.net>
4597
4598         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
4599           support/cpp2/configure, support/cpp2/Makefile.in,
4600           support/cpp2/cppfiles.c, support/cpp2/output.h,
4601           support/cpp2/cppinit.c, support/cpp2/cpplib.c,
4602           support/cpp2/config.h, support/cpp2/cpplib.h,
4603           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
4604           support/cpp2/cppdefault.c, support/cpp2/config.in,
4605           support/cpp2/system.h, support/cpp2/cpplex.c,
4606           support/cpp2/cpphash.h, support/cpp2/mbchar.c,
4607           support/cpp2/cppdefault.h, support/cpp2/prefix.c
4608           support/cpp2/hwint.h, support/cpp2/mbchar.h,
4609           support/cpp2/prefix.h, support/cpp2/cppmacro.c,
4610           support/cpp2/configure.in, support/cpp2/intl.h,
4611           support/cpp2/sdcpp.dsp, support/cpp2/acconfig.h,
4612           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
4613           support/cpp2/version.c, support/cpp2/cppmain.c,
4614           support/cpp2/ansidecl.h, support/cpp2/libiberty.h,
4615           support/cpp2/hashtable.c, support/cpp2/aclocal.m4,
4616           support/cpp2/cpperror.c,
4617           support/cpp2/libiberty/safe-ctype.c,
4618           support/cpp2/libiberty/safe-ctype.h,
4619           support/cpp2/libiberty/splay-tree.c,
4620           support/cpp2/libiberty/obstack.c,
4621           support/cpp2/libiberty/lbasename.c,
4622           support/cpp2/libiberty/splay-tree.h,
4623           support/cpp2/libiberty/obstack.h:
4624           synchronized with GCC CPP release version 3.2.3,
4625           the latest before integration of cpp into gcc
4626         * support/cpp2/except.h, support/cpp2/line-map.c,
4627           support/cpp2/line-map.h,
4628           support/cpp2/libiberty/hex.c,
4629           support/cpp2/libiberty/concat.c,
4630           support/cpp2/libiberty/filenames.h: added
4631         * support/cpp2/intl.c: deleted
4632
4633 2006-11-24 Borut Razem <borut.razem AT siol.net>
4634
4635         * src/SDCC.y: enabled compilation of empty source file
4636         * support/Util/SDCCerr.[ch]: added sdcc warning 190 -
4637           "ISO C forbids an empty source file"
4638         * device/lib/_startup.c, device/lib/printf_tiny.c: disable warning 190
4639           if all the code is ifdefed out.
4640
4641 2006-11-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4642
4643         * src/hc08/gen.c (genPcall): fix for bug #1601032
4644
4645 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
4646
4647         * device/include/mcs51/c8051f000.h, device/include/mcs51/C8051F000.h,
4648         * device/include/mcs51/c8051f018.h, device/include/mcs51/C8051F018.h,
4649         * device/include/mcs51/c8051f020.h, device/include/mcs51/C8051F020.h,
4650         * device/include/mcs51/c8051f040.h, device/include/mcs51/C8051F040.h,
4651         * device/include/mcs51/c8051f060.h, device/include/mcs51/C8051F060.h,
4652         * device/include/mcs51/c8051f120.h, device/include/mcs51/C8051F120.h,
4653         * device/include/mcs51/c8051f200.h, device/include/mcs51/C8051F200.h,
4654         * device/include/mcs51/c8051f300.h, device/include/mcs51/C8051F300.h,
4655         * device/include/mcs51/c8051f310.h, device/include/mcs51/C8051F310.h,
4656         * device/include/mcs51/c8051f320.h, device/include/mcs51/C8051F320.h,
4657         * device/include/mcs51/c8051f326.h, device/include/mcs51/C8051F326.h,
4658         * device/include/mcs51/c8051f330.h, device/include/mcs51/C8051F330.h,
4659         * device/include/mcs51/c8051f340.h, device/include/mcs51/C8051F340.h,
4660         * device/include/mcs51/c8051f350.h, device/include/mcs51/C8051F350.h,
4661         * device/include/mcs51/c8051f410.h, device/include/mcs51/C8051F410.h:
4662           Renamed to all upper case as per the standard set by SiLabs
4663
4664 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
4665
4666         * device/include/mcs51/C8051F520.h: new, added
4667         * device/include/mcs51/compiler.h: added link about predefined macros
4668
4669 2006-11-23 Raphael Neider <rneider AT web.de>
4670
4671         * src/regression/Makefile: add -L path to fresh library
4672         * src/regression/simulate: emphasize FAILED output
4673         * src/regression/create_stc: output _failures from gpsim
4674         * src/regression/compare4.c,
4675         * src/regression/rotate6.c: fixed char literals,
4676           all compile, all run =8-D
4677
4678         * src/pic/pcode.h: added isPCASMDIR macro
4679         * src/pic/gen.c (genAnd): fixed bit offset
4680         * src/pic/ralloc.c (allocNewDirReg,allocDirReg,allocRegByName,
4681           packBits): unified register numbering schemes,
4682           (newReg): do not insert stack registers into hash table,
4683           (initStack): unpinned pseudo stack, simplified,
4684           (typeRegWithIdx): fixed retrieval of stack registers,
4685         * src/pic/pcode.c (addpCodeComment,sameBank): added,
4686           (pCodeReplace): removed invalid assertion,
4687           (insertPCodeInstruction): fixed newly added labels,
4688           (insertBankSwitch,BankSelect,IsBankChange,DoBankSelect,
4689           FixRegisterBankingInFlow,compareBankFlow,FixBankFlow,
4690           DumpFlow): removed unsed (broken?) code,
4691           (insertBankSel): prevent STATUS from being BANKSELed,
4692           (FixRegisterBanking): rewritten from scratch, implemented generic
4693             optimizations (suppress BANKSELs to same register and to registers
4694             present in all banks),
4695           (AnalyzeBanking): update flow after BANKSELection
4696
4697         * src/pic/glue.c (pic14_constructAbsMap): emit pseudo stack in
4698             sharebank, let linker place it, mark STKxx symbols as emitted
4699
4700 2006-11-21 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4701
4702         * src/regression/arrays.c,
4703         * src/regression/bank1.c,
4704         * src/regression/bool2.c,
4705         * src/regression/compare7.c,
4706         * src/regression/compare8.c,
4707         * src/regression/compare9.c,
4708         * src/regression/compare10.c,
4709         * src/regression/configword.c,
4710         * src/regression/for.c,
4711         * src/regression/mult1.c,
4712         * src/regression/pointer1.c,
4713         * src/regression/rotate6.c,
4714         * src/regression/string1.c,
4715         * src/regression/struct1.c,
4716         * src/regression/Makefile: make PIC14 regression tests run again
4717           (3 fail, 6 won't compile)
4718
4719 2006-11-21 Raphael Neider <rneider AT web.de>
4720
4721         * device/include/pic16/pic18f4550.h,
4722         * device/include/pic16/pic18f4455.h,
4723         * device/lib/pic16/libdev/pic18f4550.c,
4724         * device/lib/pic16/libdev/pic18f4455.c: fixed #1578591 and #1595144
4725         * configure.in: removed superfluous closing bracket
4726
4727 2006-11-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4728
4729         * device/lib/expf.c: Fixed bug 1599523: result of expf(x) is
4730           always positive.
4731
4732 2006-11-21 Raphael Neider <rneider AT web.de>
4733
4734         * src/pic/device.{c,h}: added pic14_getPIC()
4735         * src/pic/gen.c (continueIfTrue,jumpIfTrue): added PIC code,
4736           (genAnd): added PIC code for one case, fixes #1597044
4737         * src/pic/pcode.c (BankSelect): Ohoh, added generic optimization for
4738           SFRs that are present in all banks (e.g., STATUS)
4739
4740 2006-11-20 Raphael Neider <rneider AT web.de>
4741
4742         * src/pic/pcode.c: changed inverted ops for DECFSZ/DECFSZW and
4743           INCFSZ/INCFSZW and declared them as changing Z bit,
4744           (insertPCodeInstruction): correctly invert the above instructions,
4745           fixes #1599333,
4746           (DoBankSelect): don't panic on po_immediates
4747
4748 2006-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
4749
4750         * as/link/aslink.h,
4751         * as/link/mcs51/lkihx.c (newArea),
4752         * as/link/mcs51/lkrloc.c: renamed newArea() to ihxNewArea()
4753         * as/link/mcs51/lkihx.c (ihx): output reset vector as start address
4754
4755 2006-11-11 Raphael Neider <rneider AT web.de>
4756
4757         * src/pic/pcode.c (newpCodeOpBit): search SymbolTab for referenced
4758           bitfield symbols, fixes #1579535 (once more...).
4759
4760 2006-11-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4761
4762         * support/regression/generate-cases.py,
4763         * support/regression/fwk/include/testfwk.h,
4764         * support/regression/fwk/lib/testfwk.c: used code pointers,
4765           (about 50kByte less code generated for mcs51)
4766
4767 2006-11-06 Borut Razem <borut.razem AT siol.net>
4768
4769         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
4770           debugger/mcs51/configure: fixed failed check because the function
4771           rl_function_of_keyseq isn't in Readline 5.2. Thanks to Ilya Goldberg
4772           who submitted the patch for gpsim.
4773         * debugger/mcs51/configure.in: removed the result message
4774         * debugger/mcs51/Makefile.in: fixed the config.status warning
4775           "... seems to ignore the --datarootdir setting"
4776
4777 2006-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
4778
4779         * device/include/mcs51/c8051f020.h,
4780         * device/include/mcs51/c8051f040.h,
4781         * device/include/mcs51/c8051f060.h,
4782         * device/include/mcs51/c8051f120.h: added PS0, fixed bug 1589279
4783         * src/z80/gen.c (gencjneshort),
4784         * src/z80/peeph.def: applied patch 1571373, thanks Philipp Krause
4785
4786 2006-10-31 Borut Razem <borut.razem AT siol.net>
4787
4788         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
4789           debugger/mcs51/configure: get readline version
4790
4791 2006-10-30 Borut Razem <borut.razem AT siol.net>
4792
4793         * debugger/mcs51/sdcdb.c: replaced hardcoded "/" with DIR_SEPARATOR_STRING
4794         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
4795           debugger/mcs51/configure: locate readline even when cross compiling
4796         * support/scripts/sdcc.nsi: include readline5.dll into the setup package
4797
4798 2006-10-29 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4799
4800         * device/include/mcs51/serial_IO.h: putchar() and getchar() using
4801           serial port.
4802
4803 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
4804
4805         * device/include/malloc.h,
4806         * device/lib/calloc.c,
4807         * device/lib/free.c,
4808         * device/lib/malloc.c,
4809         * device/lib/realloc.c: moved definition of struct into sources
4810         * support/regression/tests/malloc.c: use void* for init_dynamic_memory()
4811
4812 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
4813
4814         * as/asx8051.dsp: corrected output directories
4815         * as/link/hc08: new directory for hc08 linker
4816         * as/hc08/aslink.h,             as/link/aslink.h,
4817         * as/hc08/aslink.mak,           as/link/hc08/aslink.mak,
4818         * as/hc08/clean.mk,             as/link/hc08/clean.mk,
4819         * as/hc08/link_hc08.dsp,        as/link/hc08/link_hc08.dsp,
4820         * as/hc08/lkaomf51.c,           as/link/hc08/lkaomf51.c,
4821         * as/hc08/lkarea.c,             as/link/hc08/lkarea.c,
4822         * as/hc08/lkdata.c,             as/link/hc08/lkdata.c,
4823         * as/hc08/lkelf.c,              as/link/hc08/lkelf.c,
4824         * as/hc08/lkihx.c,              as/link/hc08/lkihx.c,
4825         * as/hc08/lklibr.c,             as/link/hc08/lklibr.c,
4826         * as/hc08/lkmain.c,             as/link/hc08/lkmain.c,
4827         * as/hc08/lkmem.c,              as/link/hc08/lkmem.c,
4828         * as/hc08/lkrloc.c,             as/link/hc08/lkrloc.c,
4829         * as/hc08/lks19.c,              as/link/hc08/lks19.c,
4830         * as/hc08/Makefile.aslink,      as/link/hc08/Makefile.aslink,
4831         * as/hc08/Makefile.bcc,         as/link/hc08/Makefile.bcc,
4832         * as/hc08/Makefile.in,          as/link/hc08/Makefile.in,
4833         * as/link/hc08/conf.mk,
4834         * configure,
4835         * configure.in,
4836         * Makefile.in,
4837         * sdcc.dsw: moved hc08 linker to as/link/hc08
4838         * as/hc08/lkeval.c,     as/link/mcs51/lkeval.c,     as/link/lkeval.c,
4839         * as/hc08/lkhead.c,     as/link/mcs51/lkhead.c,     as/link/lkhead.c,
4840         * as/hc08/lklex.c,      as/link/mcs51/lklex.c,      as/link/lklex.c,
4841         * as/hc08/lklist.c,     as/link/mcs51/lklist.c,     as/link/lklist.c,
4842         * as/hc08/lknoice.c,    as/link/mcs51/lknoice.c,    as/link/lknoice.c,
4843         * as/hc08/lksym.c,      as/link/mcs51/lksym.c,      as/link/lksym.c,
4844         * as/link/mcs51/aslink.dsp,
4845         * as/link/mcs51/Makefile.in: factored out the common files
4846         * as/hc08/lkstore.c: deleted, use the one already in as/link/
4847         * as/clean.mk: extra cleaning common files
4848         * as/link/mcs51/strcmpi.c,      as/strcmpi.c: moved
4849         * as/link/mcs51/strcmpi.h: deleted, moved protoype to aslink.h
4850         * as/mcs51/asm.h: include sdccconf.h or sdcc_vc.h
4851
4852 2006-10-29 Raphael Neider <rneider AT web.de>
4853
4854         * src/pic/ralloc.c (newReg): create aliases for registers with
4855           multiple names to fix #1579535 and #1584001,
4856           (regWithIdx,dirregWithName): resolve aliases on lookup
4857         * src/pic/pcode.c (DoBankSelect): die with error message on failing
4858           bankselect
4859         * device/lib/pic/libdev/Makefile.in: move pseudo stack down to 0x4f
4860           to prevent build errors on small devices
4861
4862 2006-10-28 Raphael Neider <rneider AT web.de>
4863
4864         * src/pic/gen.c (genFunction,genCall): drop "same code page"
4865           assumption within interrupt handlers, fixes #1584940
4866         * src/pic/glue.c (pic14_constructAbsMap): mark absolute symbols as
4867           "emitted" to avoid emitting them again in udata
4868
4869 2006-10-27 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4870
4871         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
4872         Removed.
4873
4874 2006-10-26 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4875
4876         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
4877         Initialize uart only if SM0 and SM1 are zero.  Also, use flag to turn
4878         on/off CR to CRLF conversion.
4879
4880 2006-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4881
4882         * doc/sdccman.lyx: updated IRQ section
4883
4884 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4885
4886         * device/lib/serial_io.c: removed
4887         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c
4888         replacements for serial_io.c
4889
4890 2006-10-24 Maarten Brock <sourceforge.brock AT dse.nl>
4891
4892         * src/z80/main.c (_process_pragma, _parseOptions): fixed bug 1583318
4893
4894 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4895
4896         * device/lib/serial_io.c: Default putchar() and getchar() for
4897           mcs51 uses serial port.
4898
4899 2006-10-23 Maarten Brock <sourceforge.brock AT dse.nl>
4900
4901         * src/mcs51/gen.c (movc): improved check for 0 and 1, see RFE 1582704
4902
4903 2006-10-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4904
4905         * support/regression/ports/mcs51/support.c: smaller
4906         _sdcc_external_startup()
4907         * device/lib/mcs51/crtxclear.asm: don't check high byte of l_PSEG
4908
4909 2006-10-20 Maarten Brock <sourceforge.brock AT dse.nl>
4910
4911         * device/lib/gbz80/crt0.s,
4912         * device/lib/gbz80/crt0_rle.s,
4913         * device/lib/gbz80/div.s,
4914         * device/lib/gbz80/fstubs.s,
4915         * device/lib/gbz80/heap.s,
4916         * device/lib/gbz80/mul.s,
4917         * device/lib/gbz80/putchar.s,
4918         * device/lib/gbz80/stubs.s,
4919         * device/lib/z80/crt0.s,
4920         * device/lib/z80/crt0_rle.s,
4921         * device/lib/z80/div.s,
4922         * device/lib/z80/fstubs.s,
4923         * device/lib/z80/heap.s,
4924         * device/lib/z80/mul.s,
4925         * device/lib/z80/putchar.s,
4926         * device/lib/z80/stubs.s: reverted, I was mistaken
4927
4928 2006-10-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4929
4930         * src/mcs51/peeph.def: peephole 238.x added check for notvolatile
4931         * support/regression/ports/mcs51/support.c: removed race
4932         condition on TI in _putchar allowing to use serial port mode 0
4933
4934 2006-10-20 Borut Razem <borut.razem AT siol.net>
4935
4936         * debugger/mcs51/sdcdb.c: replaced isblank() with isspace()
4937
4938 2006-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
4939
4940         * device/lib/gbz80/crt0.s,
4941         * device/lib/gbz80/crt0_rle.s,
4942         * device/lib/gbz80/div.s,
4943         * device/lib/gbz80/fstubs.s,
4944         * device/lib/gbz80/heap.s,
4945         * device/lib/gbz80/mul.s,
4946         * device/lib/gbz80/putchar.s,
4947         * device/lib/gbz80/stubs.s,
4948         * device/lib/z80/crt0.s,
4949         * device/lib/z80/crt0_rle.s,
4950         * device/lib/z80/div.s,
4951         * device/lib/z80/fstubs.s,
4952         * device/lib/z80/heap.s,
4953         * device/lib/z80/mul.s,
4954         * device/lib/z80/putchar.s,
4955         * device/lib/z80/stubs.s: removed all leading underscores from area names
4956
4957 2006-10-17 Maarten Brock <sourceforge.brock AT dse.nl>
4958
4959         * support/regression/ports/mcs51/support.c: use highest baudrate so the
4960           regression tests are not waiting in the simulator for simulated
4961           transmission of debug output
4962
4963 2006-10-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4964
4965         * device/lib/printf_large.c: slightly smaller
4966         * doc/sdccman.lyx: do not use spaces within html links
4967
4968 2006-10-16 Borut Razem <borut.razem AT siol.net>
4969
4970         * configure.in, configure, sdccconf_in.h, src/SDCCglobal,
4971           debugger/mcs51/Makefile.in, debugger/mcs51/sdcdb.[ch],
4972           debugger/mcs51/aclocal.m4, debugger/mcs51/acinclide.m4,
4973           debugger/mcs51/config.h.in, debugger/mcs51/configure.in,
4974           debugger/mcs51/configure:
4975           [ 1185668 ] add gnu readline support to sdcdb - enabled
4976
4977 2006-10-16 Raphael Neider <rneider AT web.de>
4978
4979         * src/pic/pcode.c (BankSelect): another fix on (partial) BANKSELs,
4980           fixes #1577882, removes close to all banking optimizations
4981
4982 2006-10-15 Maarten Brock <sourceforge.brock AT dse.nl>
4983
4984         * src/SDCCsymt.c (checkSClass): no error for uninitialised absolute
4985           variables in code memory
4986         * support/regression/tests/absolute.c: added test for this
4987
4988 2006-10-15 Raphael Neider <rneider AT web.de>
4989
4990         * src/pic/pcode.c (InsertBankSel): suppress BANKSELs for one bank
4991           devices,
4992           (BankSelect): emit BANKSEL before touching linker-placed regs,
4993           fixes #1570934
4994
4995 2006-10-10 Raphael Neider <rneider AT web.de>
4996
4997         * src/SDCCmain.c (optionsTable): accept --stack-size for PICs,
4998         * src/pic/device.c (pic14_getSharebankSize,pic14_getSharebankAddress),
4999         * src/pic/main.c (_pic14_parseOptions),
5000         * src/pic/main.h: mostly reverted to previous state, now use results
5001             from SDCCmain.c's argument parsing
5002
5003 2006-10-10 Borut Razem <borut.razem AT siol.net>
5004
5005         * debugger/mcs51/break.[ch], debugger/mcs51/cmd.c,
5006           debugger/mcs51/sdcdb.[ch], debugger/mcs51/simi.c:
5007           [ 1185668 ] add gnu readline support to sdcdb -
5008           prepared for READLINE, not enabled yet,
5009           thanks to <tal.bav AT gmail.com>
5010
5011 2006-10-10 Raphael Neider <rneider AT web.de>
5012
5013         * src/pic16/pcode.c (pic16_pCode2str): use isACCESS_BANK macro
5014         * src/pic16/devices.inc,
5015         * device/include/pic16 (pic18f[24]620.h),
5016         * device/include/pic18fregs.h,
5017         * device/lib/pic16/pics.all,
5018         * device/lib/pic16/libdev/pic18f[24]{620,525}.c): added support for
5019             18f2620, 18f4620, 18f2525, and 18f4525 devices, thanks to
5020             Gary Plumbridge and Anton Strobl
5021
5022 2006-10-10 Raphael Neider <rneider AT web.de>
5023
5024         * src/pic/main.c (_pic14_parseOptions): added --stack-loc=NUM and
5025           --stack-siz=NUM options to configure the argument passing stack
5026         * src/pic/main.h: added stackLocation and stackSize to pic14_options_t
5027         * src/pic/device.c (mapRegister): catch out-of-memory SIGSEGVs,
5028           (pic14_getSharebankSize): obey --stack-siz=NUM,
5029           (pic14_getSharebankAddress): obey --stack-loc=NUM
5030
5031 2006-10-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5032
5033         * doc/sdccman.lyx: added to the manual
5034         * doc/figures/ddd_example.png: added (neither pdflatex nor
5035         most browsers seem to like the .eps file)
5036
5037 2006-10-06 Bernhard Held <bernhard AT bernhardheld.de>
5038
5039         * src/SDCCglue.c (tempfileandname): changed un*x tmp search paths
5040         to /tmp and /var/tmp acc. LSB
5041         * src/SDCCast.c (addCast): Fixed bug 1571231: promote in case of
5042         RESULT_TYPE_IFX
5043         * support/regression/tests/onebyte.c: added test
5044
5045 2006-10-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5046
5047         * src/mcs51/gen.c: emitcode for "add a,0x%02x" requires only 8 bits.
5048
5049 2006-10-05 Borut Razem <borut.razem AT siol.net>
5050
5051         * partially fixed [ 1570701 ] peephole - not replacing code from multiline macros,
5052           thanks to dfulab:
5053           - sdcc.dsw: changed property eol-style to CRLF
5054           - support/scripts/resource.rc: replaced references to "afxres.h" with "winres.h"
5055
5056 2006-10-04 Raphael Neider <rneider AT web.de>
5057
5058         * device/include/pic/{pic16f84.h,pic16f84a.h},
5059         * device/lib/pic/libdev/{pic16f84.c,pic16f84a.c}: added PORT[AB]_bits
5060           from patch #1522504, thanks to Robas Teodor
5061
5062 2006-10-02 Maarten Brock <sourceforge.brock AT dse.nl>
5063
5064         * as/link/z80/lkarea.c: essentially reverted lnksect() to #4380 which
5065           fixes bug 1566015
5066
5067 2006-10-01 Maarten Brock <sourceforge.brock AT dse.nl>
5068
5069         * src/pic16/glue.c (pic16emitMaps),
5070         * src/pic/glue.c (pic14emitMaps): hopefully fixed bug 1568779
5071         * device/lib/gets.c: fixed bug 1568829,thanks Philipp Krause
5072         * device/lib/pic16/libc/string/memcpypgm2ram.c,
5073         * device/lib/pic16/libc/string/memcpyram2ram.c: fixed bug 1568836, thanks
5074           Philipp Krause
5075         * as/mcs51/asmain.c (asmbl, newdot): fixed problems with absolute areas
5076         * as/link/mcs51/lkmem.c (summary2): reverted, do do count abs segments
5077
5078 2006-09-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5079
5080         * support/librarian/sdcclib.c: Added option -l.
5081         * as/link/mcs51/lkmem.c: don't use absolute segments to compute memory
5082           usage totals.
5083         * device/lib/make51lib.bat: added.  Allows building mcs51 libraries easily
5084           using Windows command prompt.
5085
5086 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
5087
5088         * device/lib/libsdcc.lib: added module rand
5089         * src/ds390/ralloc.c (rematStr),
5090         * src/hc08/ralloc.c (rematStr),
5091         * src/mcs51/ralloc.c (rematStr),
5092         * src/z80/ralloc.c (rematStr): made output more consistent
5093         * src/mcs51/gen.c: cosmetic changes
5094
5095 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
5096
5097         * src/port.h: added mem.cabs_name to PORT
5098         * src/ds390/main.c,
5099         * src/hc08/main.c,
5100         * src/mcs51/main.c,
5101         * src/pic16/main.c,
5102         * src/pic/main.c,
5103         * src/xa51/main.c,
5104         * src/z80/main.c: added cabs_name initializers
5105         * src/SDCCglue.c (emitStaticSeg): allocate and initialize absolute
5106           constants
5107           (emitMaps): emit absolutes in code memory into cabs_name
5108         * src/SDCCmem.c,
5109         * src/SDCCmem.h: added memory map c_abs and defined CABS_NAME
5110         * src/ds390/gen.c (genCodePointerGet): fixed bug if left is a literal
5111         * support/regression/fwk/include/testfwk.h: added define for at
5112         * support/regression/tests/absolute.c: added, new
5113
5114 2006-09-29 Maarten Brock <sourceforge.brock AT dse.nl>
5115
5116         * src/mcs51/gen.c (genPlusIncr, genMinusDec, genAddrOf): small
5117           optimizations, see also patch 887161 by Stas Sergeev
5118         * src/mcs51/peeph.def(104, 207, 209, 212): disabled as they do not seem
5119           to be necessary anymore,
5120           (102, 103, 104, 127): renamed all occurances of bp to _bp
5121
5122 2006-09-27 Maarten Brock <sourceforge.brock AT dse.nl>
5123
5124         * device/include/mcs51/at89c51snd1c.h: fixed MSK_SREQ definition
5125           thanks Weston T. Schmidt for patch 1555221
5126         * src/mcs51/peeph.def: renamed rule 257 to 257.a, added 257.b
5127         * src/SDCCicode.c(geniCodeMultiply): small optimization
5128
5129 2006-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
5130
5131         * device/include/stdlib.h: added rand prototypes
5132         * device/lib/rand.c: new, added
5133         * device/lib/Makefile.in: added rand.c
5134         * src/z80/peeph.def,
5135         * src/z80/peeph-gbz80.def,
5136         * src/z80/peeph-z80.def: updated conditonals, fixed bug 1565908
5137
5138 2006-09-20 Raphael Neider <rneider AT web.de>
5139
5140         * device/lib/pic16/libio/i2c/i2cnack.c (i2c_nack): fixed ACKDT bit
5141
5142 2006-09-19 Maarten Brock <sourceforge.brock AT dse.nl>
5143
5144         * as/link/aslink.h: cosmetic changes
5145         * as/link/mcs51/Makefile.in,
5146         * as/link/z80/Makefile.in: fixed build on CF where VPATH is used
5147
5148 2006-09-17 Maarten Brock <sourceforge.brock AT dse.nl>
5149
5150         * as/link/aslink.h,
5151         * as/link/mcs51/aslink.h,
5152         * as/link/z80/aslink.h: merged and moved to as/link/
5153         * as/link/lkstore.c,
5154         * as/link/mcs51/lkstore.c: moved to as/link/
5155         * as/link/clean.mk: remove *.o
5156         * as/link/mcs51/alloc.h: deleted
5157         * as/link/mcs51/lkarea.c: added lnksect prototype
5158         * as/link/mcs51/lkdata.c,
5159         * as/link/mcs51/lklex.c,
5160         * as/link/mcs51/lkmain.c: renamed as_getline to lk_getline
5161         * as/link/mcs51/lkmem.c,
5162         * as/link/mcs51/lknoice.c: removed include strcmpi.h
5163         * as/link/mcs51/lksym.c: include stdlib.h instead of malloc.h or alloc.h
5164         * as/link/mcs51/aslink.dsp,
5165         * as/link/mcs51/Makefile.aslink,
5166         * as/link/mcs51/Makefile.bcc,
5167         * as/link/mcs51/Makefile.in: updated for moved files
5168         * as/link/z80/lkarea.c,
5169         * as/link/z80/lkhead.c,
5170         * as/link/z80/lklex.c,
5171         * as/link/z80/lklibr.c,
5172         * as/link/z80/lklist.c,
5173         * as/link/z80/lkmain.c,
5174         * as/link/z80/lkrloc.c,
5175         * as/link/z80/lksym.c: synced with mcs51
5176         * as/link/z80/lkdata.c,
5177         * as/link/z80/lkeval.c,
5178         * as/link/z80/lkihx.c,
5179         * as/link/z80/lks19.c: cosmetic changes
5180         * as/link/z80/Makefile.in,
5181         * as/link/z80/linkgbz80.dsp,
5182         * as/link/z80/linkz80.dsp: updated for moved files
5183
5184 2006-09-16 Borut Razem <borut.razem AT siol.net>
5185
5186         * debugger/mcs51/sdcdb.c: partially fixed
5187           [ 1203664 ] sdcdb fails to open files w. two "." periods
5188         * debugger/mcs51/simi.c, debugger/mcs51/symtab.c,
5189           debugger/mcs51/symtab.h: fixed indenting
5190         * configure.in, configure: up to date with latest Maarten's changes
5191
5192 2006-09-15 Maarten Brock <sourceforge.brock AT dse.nl>
5193
5194         as/link/mcs51
5195         as/aslink.dsp,                  as/link/mcs51/aslink.dsp,
5196         as/link/mcs51/aslink.h,         as/mcs51/aslink.h,
5197         as/link/mcs51/aslink.mak,       as/mcs51/aslink.mak,
5198         as/link/mcs51/lkaomf51.c,       as/mcs51/lkaomf51.c,
5199         as/link/mcs51/lkarea.c,         as/mcs51/lkarea.c,
5200         as/link/mcs51/lkdata.c,         as/mcs51/lkdata.c,
5201         as/link/mcs51/lkeval.c,         as/mcs51/lkeval.c,
5202         as/link/mcs51/lkhead.c,         as/mcs51/lkhead.c,
5203         as/link/mcs51/lkihx.c,          as/mcs51/lkihx.c,
5204         as/link/mcs51/lklex.c,          as/mcs51/lklex.c,
5205         as/link/mcs51/lklibr.c,         as/mcs51/lklibr.c,
5206         as/link/mcs51/lklist.c,         as/mcs51/lklist.c,
5207         as/link/mcs51/lkmain.c,         as/mcs51/lkmain.c,
5208         as/link/mcs51/lkmem.c,          as/mcs51/lkmem.c,
5209         as/link/mcs51/lknoice.c,        as/mcs51/lknoice.c,
5210         as/link/mcs51/lkrloc.c,         as/mcs51/lkrloc.c,
5211         as/link/mcs51/lks19.c,          as/mcs51/lks19.c,
5212         as/link/mcs51/lkstore.c,        as/mcs51/lkstore.c,
5213         as/link/mcs51/lksym.c,          as/mcs51/lksym.c,
5214         as/link/mcs51/Makefile.aslink,  as/mcs51/Makefile.aslink,
5215         as/link/mcs51/alloc.h,
5216         as/link/mcs51/clean.mk,
5217         as/link/mcs51/conf.mk,
5218         as/link/mcs51/Makefile.bcc,
5219         as/link/mcs51/Makefile.in,
5220         as/link/mcs51/readme.390,
5221         as/link/mcs51/strcmpi.c,
5222         as/link/mcs51/strcmpi.h,
5223         as/mcs51/clean.mk,
5224         as/mcs51/Makefile.bcc,
5225         as/mcs51/Makefile.in,
5226         configure,
5227         Makefile.in,
5228         sdcc.dsw: moved mcs51 linker to as/link/mcs51
5229
5230 2006-09-14 Maarten Brock <sourceforge.brock AT dse.nl>
5231
5232         * as/link,
5233         * as/link/Makefile.in,
5234         * as/link/z80/linkgbz80.dsp,
5235         * as/link/z80/linkz80.dsp,
5236         * configure,
5237         * link,
5238         * link/clean.mk,
5239         * link/Makefile.in,
5240         * link/README,
5241         * link/z80,
5242         * link/z80/aslink.h,
5243         * link/z80/clean.mk,
5244         * link/z80/conf.mk,
5245         * link/z80/linkgbz80.dsp,
5246         * link/z80/linkz80.dsp,
5247         * link/z80/lkarea.c,
5248         * link/z80/lkdata.c,
5249         * link/z80/lkeval.c,
5250         * link/z80/lkgb.c,
5251         * link/z80/lkgg.c,
5252         * link/z80/lkhead.c,
5253         * link/z80/lkihx.c,
5254         * link/z80/lklex.c,
5255         * link/z80/lklibr.c,
5256         * link/z80/lklist.c,
5257         * link/z80/lkmain.c,
5258         * link/z80/lkrloc.c,
5259         * link/z80/lks19.c,
5260         * link/z80/lksym.c,
5261         * link/z80/Makefile.in,
5262         * Makefile.in,
5263         * sdcc.dsw: moved link/ to as/link/
5264
5265 2006-09-11 Maarten Brock <sourceforge.brock AT dse.nl>
5266
5267         * as/mcs51/i51mch.c (machine): fixed warning
5268
5269 2006-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
5270
5271         * as/mcs51/i51mch.c (machine): S_DJNZ fixed bug 1554318
5272
5273 2006-09-09 Borut Razem <borut.razem AT siol.net>
5274
5275         * debugger/mcs51/sdcdb.c, debugger/mcs51/simi.c:
5276           sdcdb WIN32 native port
5277         * src/clean.mk: fixed
5278
5279 2006-09-08 Borut Razem <borut.razem AT siol.net>
5280
5281         * doc/sdccman.lyx: SDCDB and ucSim are available on Win32 platforms.
5282
5283 2006-09-08 Raphael Neider <rneider AT web.de>
5284
5285         * src/pic16/main.c (_pic16_linkEdit,pic16_linkCmd),
5286         * src/pic/main.c(_pic14_do_link, linkCmd): pass "-w" and "-r"
5287             to gplink to disable processor mismatch warning and to allow
5288             the use of devices with only aliased (shared) memory banks,
5289           (_pic16_genAssemblerPreamble): include pXXX.inc on --mplab-comp
5290
5291 2006-09-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5292
5293         * doc/sdccman.lyx: Some re-formating plus example on using
5294           #pragma preproc_asm +/-
5295
5296 2006-09-07 Borut Razem <borut.razem AT siol.net>
5297
5298         * support/scripts/sdcc.nsi: added SDCDB executables in a separate
5299           section
5300
5301 2006-09-06 Borut Razem <borut.razem AT siol.net>
5302
5303         * support/scripts/sdcc.nsi: fixed Error: unterminated string parsing
5304           line at sdcc.nsi:153
5305         * sdcc/debugger/mcs51/simi.c: argsToCmdLine() fixes
5306
5307 2006-09-05 Borut Razem <borut.razem AT siol.net>
5308
5309         * configure.in, configure: support for winsock2
5310         * debugger/mcs51/break.h, debugger/mcs51/cmd.c,
5311           debugger/mcs51/cmd.h, debugger/mcs51/sdcdb.c,
5312           debugger/mcs51/sdcdb.h, debugger/mcs51/simi.c,
5313           debugger/mcs51/simi.h, debugger/mcs51/symtab.c,
5314           debugger/mcs51/symtab.h: sdcdb WIN32 native port
5315
5316 2006-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
5317
5318         * src/SDCCopt.c (cnvToFcall): fixed bug 1551947 by updating OP_USES
5319           and OP_DEFS
5320         * support/regression/tests/bug1551947.c: new, added
5321         * src/SDCCsymt.h: strings are char* not byte*
5322
5323 2006-09-05 Raphael Neider <rneider AT web.de>
5324
5325         * device/lib/pic16/libdev/pic18f4550.c,
5326           device/include/pic16/pic18f4550.h: added PORTD/TRISD
5327             declarations/definitions from patch #1520949
5328
5329 2006-09-05 Raphael Neider <rneider AT web.de>
5330
5331         * src/pic16/gen.c (genPackBits): fix assignment to 8-bit,
5332           byte-aligned bitfields, fixes #1539278
5333
5334 2006-09-05 Raphael Neider <rneider AT web.de>
5335
5336         * src/pic/gen.c (genReceive): skip unreferenced arguments,
5337           fixes #1544120
5338
5339 2006-09-04 Borut Razem <borut.razem AT siol.net>
5340
5341         * support/scripts/sdcc.nsi: move ucSim executables to a separate section
5342         * support/scripts/sdcc_cygwin_mingw32: don't disable ucsim,
5343           -mno-cygwin is a part of the compiler name
5344         * support/scripts/sdcc_mingw32: don't disable ucsim
5345
5346 2006-09-03 Borut Razem <borut.razem AT siol.net>
5347
5348         * sdcc.spec: corrected for 2.6.0. Thanks to Christer Weinigel.
5349         * device/lib/Makefile.in device/lib/clean.mk: small but essential corrections
5350
5351 2006-09-03 Raphael Neider <rneider AT web.de>
5352
5353         * src/pic/ralloc.c,
5354         * src/pic/pcode.c (InitReuseRegs): allocate registers with pseudo
5355           indices >= 0x1000 to disambiguate them from fixed regs __at(addr),
5356           fixes #1550049
5357
5358 2006-09-01 Borut Razem <borut.razem AT siol.net>
5359
5360         * sim/ucsim/cmd.src/cmdutil.cc: #include <sys/time.h> and <unistd.h>
5361           to make ppc-osx happy
5362
5363 2006-08-31 Borut Razem <borut.razem AT siol.net>
5364
5365         * sim/ucsim/cmd.src/newcmdposix.cc: #include <assert.h>
5366         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
5367         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
5368         * support/regression/ports/ds390/spec.mk,
5369           support/regression/ports/mcs51/spec.mk,
5370           support/regression/ports/xa51/spec.mk: introduced DEV_NULL variable.
5371           To run regression tests in mingw environment:
5372           make DEV_NULL=NUL CC=gcc
5373
5374 2006-08-30 Borut Razem <borut.razem AT siol.net>
5375
5376         * sim/ucsim/cmd.src/newcmdposix.cc, sim/ucsim/cmd.src/newcmdposixcl.h,
5377           sim/ucsim/cmd.src/newcmdwin32.cc, sim/ucsim/cmd.src/newcmdwin32cl.h,
5378           sim/ucsim/app.cc, sim/ucsim/appcl.h, sim/ucsim/configure,
5379           sim/ucsim/configure.in, sim/ucsim/ddconfig_in.h, sim/ucsim/error.cc,
5380           sim/ucsim/errorcl.h, sim/ucsim/option.cc, sim/ucsim/optioncl.h,
5381           sim/ucsim/utils.cc, sim/ucsim/utils.h, sim/ucsim/cmd.src/Makefile.in,
5382           sim/ucsim/avr.src/avr.cc, sim/ucsim/avr.src/avrcl.h,
5383           sim/ucsim/cmd.src/bp.cc, sim/ucsim/cmd.src/bpcl.h,
5384           sim/ucsim/cmd.src/cmdconf.cc, sim/ucsim/cmd.src/cmdgui.cc,
5385           sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/cmdset.cc,
5386           sim/ucsim/cmd.src/cmdsetcl.h, sim/ucsim/cmd.src/cmdstat.cc,
5387           sim/ucsim/cmd.src/cmduc.cc, sim/ucsim/cmd.src/cmduccl.h,
5388           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
5389           sim/ucsim/cmd.src/command.cc, sim/ucsim/cmd.src/commandcl.h,
5390           sim/ucsim/cmd.src/get.cc, sim/ucsim/cmd.src/getcl.h,
5391           sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/newcmd.cc,
5392           sim/ucsim/cmd.src/newcmdcl.h, sim/ucsim/cmd.src/set.cc,
5393           sim/ucsim/cmd.src/show.cc, sim/ucsim/cmd.src/timer.cc,
5394           sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
5395           sim/ucsim/s51.src/Makefile.in, sim/ucsim/s51.src/interrupt.cc,
5396           sim/ucsim/s51.src/interruptcl.h, sim/ucsim/s51.src/pca.cc,
5397           sim/ucsim/s51.src/pcacl.h, sim/ucsim/s51.src/port.cc,
5398           sim/ucsim/s51.src/portcl.h, sim/ucsim/s51.src/serial.cc,
5399           sim/ucsim/s51.src/serialcl.h, sim/ucsim/s51.src/timer0.cc,
5400           sim/ucsim/s51.src/timer0cl.h, sim/ucsim/s51.src/timer1.cc,
5401           sim/ucsim/s51.src/timer1cl.h, sim/ucsim/s51.src/timer2.cc,
5402           sim/ucsim/s51.src/timer2cl.h, sim/ucsim/s51.src/uc390.cc,
5403           sim/ucsim/s51.src/uc390cl.h, sim/ucsim/s51.src/uc390hw.cc,
5404           sim/ucsim/s51.src/uc390hwcl.h, sim/ucsim/s51.src/uc51.cc,
5405           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/wdt.cc,
5406           sim/ucsim/s51.src/wdtcl.h, sim/ucsim/sim.src/hw.cc,
5407           sim/ucsim/sim.src/hwcl.h, sim/ucsim/sim.src/mem.cc,
5408           sim/ucsim/sim.src/memcl.h, sim/ucsim/sim.src/obsolete.cc,
5409           sim/ucsim/sim.src/obsolete.h, sim/ucsim/sim.src/sim.cc,
5410           sim/ucsim/sim.src/simcl.h, sim/ucsim/sim.src/stack.cc,
5411           sim/ucsim/sim.src/stackcl.h, sim/ucsim/sim.src/test_mem_speed.cc,
5412           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
5413           sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
5414           sim/ucsim/z80.src/z80.cc, sim/ucsim/z80.src/z80cl.h:
5415           ucsim WIN32 native port
5416
5417 2006-08-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5418
5419         * doc/sdccman.lyx: added note on dynamic memory heap initialization
5420
5421 2006-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
5422
5423         * src/mcs51/gen.c (genAnd, genOr, genXor): fixed bug 1546986
5424         * src/ds390/gen.c (aopGetUsesAcc): handle AOP_DPTR2 and AOP_DPTRn too
5425
5426 2006-08-26 Maarten Brock <sourceforge.brock AT dse.nl>
5427
5428         * src/ds390/gen.c (genAnd, genOr, genXor): fixed bug 1546986
5429         * support/regression/tests/bug1546986.c: new, added
5430         * as/mcs51/.cvsignore,
5431         * debugger/mcs51/.cvsignore,
5432         * src/.cvsignore: deleted
5433
5434 2006-08-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5435
5436         * device/include/mcs51/P89c51RD2.h: fixed bug 1546936 (error in sbit
5437           definitions)
5438
5439 2006-08-20 Borut Razem <borut.razem AT siol.net>
5440
5441         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h:
5442           removed cl_listen_console::match(), cl_console::match(),
5443           restructured cl_commander::proc_input()
5444
5445 2006-08-16 Borut Razem <borut.razem AT siol.net>
5446
5447         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h,
5448           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
5449           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/uc.cc: code cleaning
5450
5451 2006-08-14 Borut Razem <borut.razem AT siol.net>
5452
5453         * support/regression/Makefile.in,
5454           support/regression/ports/pic14/gpsim.cmd,
5455           support/regression/ports/pic14/spec.mk,
5456           support/regression/ports/pic14/support.c:
5457           added pic14 regression test
5458
5459 2006-08-14 Maarten Brock <sourceforge.brock AT dse.nl>
5460
5461         * as/doc/asxhtm.html: documented changed ABS behaviour
5462         * as/doc/README: fixed some typos
5463
5464 2006-08-13 Maarten Brock <sourceforge.brock AT dse.nl>
5465
5466         * support/regression/tests/float_trans.c: disabled test if __STDC_IEC_559__
5467           not defined on host
5468
5469 2006-08-12 Borut Razem <borut.razem AT siol.net>
5470
5471         * support/regression/fwk/include/testfwk.h,
5472           support/regression/fwk/lib/testfwk.c,
5473           support/regression/generate-cases.py,
5474           support/regression/Makefile.in:
5475           regression test framework does not depend on function pointers and
5476           variable arguments
5477
5478 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
5479
5480         * device/include/stddef.h: c temporary hack to fix bug 1518273
5481
5482 2006-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5483
5484         * device/include/mcs51/cc2510fx.h: added
5485         * src/z80/z80.dsp, src/gbz80/gbz80.dsp: added support/Util/strcmpi.ch
5486           to projects.
5487
5488 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
5489
5490         * as/z80/assym.c (mlookup): ignore case when looking up mnemonics
5491         * as/z80/Makefile.in: added strcmpi.c
5492         * as/z80/z80adr.c: added upper case registers and lower case conditionals
5493         * support/Util/strcmpi.ch: added with intention to remove from mcs51/hc08
5494
5495 2006-08-08 Maarten Brock <sourceforge.brock AT dse.nl>
5496
5497         * device/lib/gbz80/asm_strings.s,
5498         * device/lib/gbz80/crt0_rle.s,
5499         * device/lib/gbz80/div.s,
5500         * device/lib/gbz80/mul.s,
5501         * device/lib/gbz80/shift.s,
5502         * device/lib/z80/asm_strings.s,
5503         * device/lib/z80/crt0_rle.s,
5504         * device/lib/z80/div.s,
5505         * device/lib/z80/mul.s,
5506         * device/lib/z80/shift.s: changed to all lower case menmonics except the
5507           flags which are all upper case
5508
5509 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
5510
5511         * as/z80/asm.h: made CASE_SENSITIVE 1
5512         * link/z80/aslink.h: made CASE_SENSITIVE 1
5513         * src/z80/gen.c (throughout): made all conditionals upper case
5514         * support/regression/tests/bug1503067.c: new
5515
5516 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
5517
5518         * src/z80/gen.c (aopPut): fixed bug !*ixy should be !*iyx,
5519           (shiftIntoPair): added case 2 for PAIR_IY,
5520           (setupToPreserveCarry): replaced parameters with iCode and check if
5521            PAIR_DE is in use to fix bug 1399290,
5522           (genPlus, genMinus): updated call to setupToPreserveCarry
5523         * support/regression/tests/bug1399290.c: new
5524
5525 2006-08-06 Maarten Brock <sourceforge.brock AT dse.nl>
5526
5527         * device/lib/Makefile.in (Z80SOURCES): enabled float support
5528         * sim/ucsim/z80.src/inst.cc (inst_rst): generate breakpoint on RST8,ACC==0
5529         * src/ds390/gen.c (shiftRLong),
5530         * src/hc08/gen.c (shiftLLong, shiftRLong): fixed bug 1533966
5531         * src/mcs51/gen.c (sameReg): changed to sameByte,
5532           (xch_a_aopGet): new,
5533           (shiftL2Left2Result, shiftR2Left2Result, shiftRLeftOrResult, shiftLLong,
5534            shiftRLong): fixed bug 1533966
5535         * src/z80/gen.c (shiftR2Left2Result, shiftL2Left2Result, genlshTwo,
5536           genLeftShiftLiteral, genrshTwo, genRightShiftLiteral): fixed bug 1533966
5537         * support/regression/Makefile.in: disabled z80, enabled ucz80
5538         * support/regression/tests/float_trans.c: enabled test for z80 and host
5539         * support/regression/tests/shifts2.c: new, for testing bug 1533966
5540
5541 2006-08-01 Borut Razem <borut.razem AT siol.net>
5542
5543         * src/mcs51/gen.c, src/dc390/gen.c: fixed warning:
5544           comparison is always false due to limited range of data type
5545           on PPC64 machine (openpower-linux1) where "char = unsigned char"
5546
5547 2006-08-01 Maarten Brock <sourceforge.brock AT dse.nl>
5548
5549         * sim/ucsim/hc08.src/hc08mac.h: removed faulty and unused add_u16_disp
5550         * sim/ucsim/hc08.src/hc08.cc: removed faulty and unused int8
5551         * sim/ucsim/z80.src/z80mac.h (add_u16_disp): use explicit signed char cast
5552         * sim/ucsim/z80.src/z80.cc: removed faulty and unused int8
5553
5554 2006-07-31 Borut Razem <borut.razem AT siol.net>
5555
5556         * sim/ucsim/configure, sim/ucsim/cmd.src/newcmdcl.h,
5557           sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/cmdutil.cc,
5558           sim/ucsim/z80.src/Makefile.in, sim/ucsim/configure.in,
5559           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/hc08.src/hc08.cc,
5560           sim/ucsim/ddconfig_in.h, sim/ucsim/s51.src/Makefile.in,
5561           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/serialcl.h,
5562           sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/serial.cc,
5563           sim/ucsim/app.cc, sim/ucsim/avr.src/Makefile.in:
5564           enable ucsim mingw compilation. Serial port is disabled,
5565           since it uses termios.h API, which is not available on native
5566           WIN32
5567
5568 2006-07-31 Borut Razem <borut.razem AT siol.net>
5569
5570         * Small Device C Compiler 2.6.0 released
5571         * support/scripts/sdcc.nsi: added FULL_DOC option
5572         * .version, doc/sdccman.lyx: changed sdcc version to 2.6.1
5573
5574 2006-07-28 Borut Razem <borut.razem AT siol.net>
5575
5576         * support/scripts/sdcc.nsi: remove $INSTDIR/include/asm/pic16/*.h
5577         * doc/INSTALL.txt: updated
5578
5579 2006-07-27 Borut Razem <borut.razem AT siol.net>
5580
5581         * device/lib/pic/Makefile.in, device/lib/pic/Makefile.subdir,
5582           device/lib/pic/libdev/Makefile.in: fixed bug
5583           [ 1438354 ] pic libsdcc: distclean doesn't work
5584         * device/lib/pic16/Makefile.in, device/lib/pic16/Makefile.subdir,
5585           device/lib/pic16/libio/Makefile.in: fixed bug
5586           [ 1438344 ] pic16 lib: clean doesn't work properly
5587         * doc/knownbugs.html removed [ 1438354 ] and [ 1438344 ] from the list
5588
5589 2006-07-26 Maarten Brock <sourceforge.brock AT dse.nl>
5590
5591         * device/lib/pic/libsdcc/fsdiv.c,
5592         * device/lib/pic/libsdcc/fsmul.c,
5593         * device/lib/pic16/libsdcc/float/fsdiv.c,
5594         * device/lib/pic16/libsdcc/float/fsmul.c,
5595         * device/lib/_fsdiv.c,
5596         * device/lib/_fsmul.c: bugfix, handle too large and too small numbers
5597         * support/regression/tests/bug1520966.c: added
5598         * doc/knownbugs.html: removed [ 1520966 ] from the list
5599
5600 2006-07-25 Borut Razem <borut.razem AT siol.net>
5601
5602         * configure.in, configure, sdccconf_in.h: fixed bug
5603           [ 1519095 ] regression test onebyte.c fails on ppc64 host
5604         * doc/knownbugs.html: removed [ 1519095 ] from the list
5605
5606 2006-07-25 Maarten Brock <sourceforge.brock AT dse.nl>
5607
5608         * doc/knownbugs.html: added, contains list of known bugs at release
5609         * device/include/mcs51/compiler.h: fixed SFR32 for SDCC
5610
5611 2006-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
5612
5613         * device/include/mcs51/compiler.h: added SFRX for xdata based special
5614           function registers and corrected defaults with additional warning
5615         * device/lib/malloc.c: cosmetic changes
5616         * device/lib/realloc.c: bugfix for bug #1496907, Thanks Efim Monyak
5617         * src/ds390/ralloc.c (getRegBitNoSpil): reenabled,
5618           (fillGaps): and used it
5619
5620 2006-07-20 Raphael Neider <rneider AT web.de>
5621
5622         * src/pic/device.c (addMemRange,assignRegister): suppress verbose
5623           output unless SDCCPICDEBUG is set
5624         * device/lib/pic16/Makefile.rules (%.lib target): suppress verbose
5625           output if SILENT is set
5626
5627 2006-07-11 Borut Razem <borut.razem AT siol.net>
5628
5629         * doc/README.txt: updated
5630
5631 2006-07-10 Borut Razem <borut.razem AT siol.net>
5632
5633         * support/scripts/sdcc.nsi: added device/include/asm/pic/features.h and
5634           device/lib/src/pic/libm/*.c and device/lib/src/pic16/libsdcc/stack/*.S
5635           in WIN32 installation
5636         * .version, sdcc.spec, doc/sdccman.lyx: changed sdcc version to 2.6.0 -
5637           release candidate 1
5638
5639 2006-07-08 Maarten Brock <sourceforge.brock AT dse.nl>
5640
5641         * device/include/mcs51/XC866.h: added sbit definitions for Px_x, P1_x, P2_x
5642         * src/pic16/glue.c (initPointer): fixed bug 1496419 for pic16
5643
5644 2006-07-06 Maarten Brock <sourceforge.brock AT dse.nl>
5645
5646         * src/hc08/gen.c (genAddrOf): fixed bug when offset on stack is >127
5647
5648 2006-07-06 Borut Razem <borut.razem AT siol.net>
5649
5650         * support/regression/tests/bitfields.c:
5651           fixed bug [ 1518322 ] regression test bitfields fails on ppc hosts
5652         * support/regression/tests/constantRange.c:
5653           fixed bug [ 1518317 ] regression test constantRange fails on alpha host
5654
5655 2006-07-04 Borut Razem <borut.razem AT siol.net>
5656
5657         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in,
5658           src/port.mk,
5659           src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
5660           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
5661           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
5662           reverted changes from 2006-07-03
5663         * Makefile.common.in: added @CPPFLAGS@ to CPPFLAGS
5664         * support/regression/Makefile.in, support/regression/ports/host/spec.mk:
5665           added CPPFLAGS, used by the host port
5666
5667 2006-07-03 Bernhard Held <bernhard AT bernhardheld.de>
5668
5669         * support/regression/valdiag/tests/switch.c,
5670         * support/regression/valdiag/tests/constantRange.c: adapted to gcc 4
5671         * support/regression/tests/libmullong.c: fixed for host
5672         * support/regression/ports/host/spec.mk: disable all warnings for host,
5673         SDCC runs with --less-pedantic too
5674
5675 2006-07-03 Borut Razem <borut.razem AT siol.net>
5676
5677         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in:
5678           defined CPPFLAGS
5679         * src/port.mk: defined CPPFLAGS, renamed to src/port.mk.in
5680         * src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
5681           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
5682           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
5683           include ../port.mk
5684         * sim/ucsim/main_in.mk, sim/ucsim/avr.src/Makefile.in,
5685           sim/ucsim/gui.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
5686           sim/ucsim/s52.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
5687           sim/ucsim/xa.src/Makefile.in: ignore header files for dependencies
5688
5689 2006-07-02 Raphael Neider <rneider AT web.de>
5690
5691         * src/pic16/devices.inc,
5692         * device/include/pic16/pic18fregs.h,
5693         * device/include/pic16/pic18f4550.h,
5694         * device/lib/pic16/pics.all,
5695         * device/lib/pic16/libdev/pic18f4550.c: added support for 18f4550
5696
5697 2006-07-01 Bernhard Held <bernhard AT bernhardheld.de>
5698
5699         * as/hc08/lkaomf51.c (OutputName),
5700         * as/mcs51/lkaomf51.c (OutputName),
5701         * as/z80/asmain.c (asmbl),
5702         * src/ds390/main.c (asmLineNodeFromLineNode),
5703         * src/hc08/ralloc.c (hc08_assignRegisters),
5704         * src/mcs51/main.c (asmLineNodeFromLineNode),
5705         * src/xa51/ralloc.c (checkRegMask),
5706         * src/xa51/gen.c (emitcode),
5707         * src/z80/gen.c (_emit2),
5708         * src/SDCCast.c (searchLitOp),
5709         * src/SDCCglobl.h,
5710         * support/packihx/packihx.c,
5711         * support/Util/MySystem.c (split_command): fix gcc 4 warnings
5712         * src/ds390/gen.c (aopPutUsesAcc),
5713         * src/ds390/ralloc.c (getRegBitNoSpil): unused, therefore disabled
5714         * support/regression/tests/libmullong.c (mullong_wrapper),
5715         * src/SDCCsymt.c (powof2),
5716         * src/SDCCast.c,
5717         * src/SDCCicode.c: renamed TYPE_WORD by TYPE_TARGET_INT and so on
5718         * src/SDCCsymt.h: added TYPE_TARGET_*
5719         * src/SDCCutil.c (doubleFromFixed16x16, fixed16x16FromDouble),
5720         * src/SDCCutil.h (doubleFromFixed16x16, fixed16x16FromDouble): moved to
5721         SDCCast because 1) header problems 2) this is the right place
5722         * src/SDCCast.c (doubleFromFixed16x16, fixed16x16FromDouble): added
5723         * src/SDCCval.h (doubleFromFixed16x16, fixed16x16FromDouble): added
5724         prototype
5725
5726 2006-06-29 Bernhard Held <bernhard AT bernhardheld.de>
5727
5728         * src/SDCCicode.h: removed buggy semicolon in unused macro
5729         * src/SDCClrange.c (findPrevUseSym, rlivePoint): fixed bug #1486853,
5730         search for previous definiton of auto symbols too,
5731         (findPrevUse): fixed logic of emitWarnings
5732
5733 2006-06-26 Raphael Neider <rneider AT web.de>
5734
5735         * src/pic16/gen.c (genFunction, genEndFunction): also preserve
5736           PCLATH and PCLATU on interrupts, potentially fixes #1505141
5737
5738 2006-06-25 Raphael Neider <rneider AT web.de>
5739
5740         * device/lib/pic/libm: NEW, added math library functions
5741         * device/lib/pic/libsdcc: NEW; added float support functions
5742         * device/lib/pic/{Makefile.in,configure.in,configure}: added libm/
5743         * device/include/pic/{limits.h,errno.h,sdcc-lib.h,float.h,math.h}:
5744           NEW, added math related headers
5745         * device/include/asm/pic/features.h: NEW
5746         * src/pic/gen.c (emitpcode_real): emit warning on NULL pCodeOp,
5747           (popGet): allow larger offsets for AOP_PCODE,
5748           (genDataPointerSet): handle literals explicitly, more debug output,
5749           (genAssign): fixed for float using aopLiteral ;-)
5750         * src/pic/glue.c (pic14createInterruptVect): inserted pagesel before
5751           GOTO initialisation routine
5752         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): set wasUsed
5753           flag on registers, fixes #1469043 (local variables do not work)
5754         * src/pic/main.c (_pic14_do_link),
5755         * src/pic16/main.c (_pic16_linkEdit): use fullDstFileName if
5756           available
5757
5758 2006-06-25 Borut Razem <borut.razem AT siol.net>
5759
5760         * device/lib/pic16/libc/stdio/sprintf.c: return the number of
5761           characters printed (not including the trailing '\0' used to end
5762           output to strings). Problem detected in regression test bug-927659.c.
5763           NOTE: printf() family functions should return int instead
5764           unsigned int!
5765         * device/lib/pic16/libc/stdio/vfprintf.c: "%%" prints "%", unknown
5766           specifier are printed as themselves
5767         * sdcc/support/regression/tests/bug1057979.c: pic16 printf doesn't
5768           support flags, width and precision specifiers
5769
5770 2006-06-24 Borut Razem <borut.razem AT siol.net>
5771
5772         * sdcc/support/regression/tests/bitvars.c: added gbz80, pic16 and pic16
5773           to the list of sdcc tagrets not supporting bit type
5774         * sdcc/support/regression/tests/bug-905992.c.c: excluded regression
5775           testfor pic16 due to bug:
5776           [ 1511794 ] pic16: regression test bug-895992.c fails
5777
5778 2006-06-24 Maarten Brock <sourceforge.brock AT dse.nl>
5779
5780         * src/mcs51/gen.c (genCmp): optimization for RFE 1162453
5781         * src/SDCCglue.c (initPointer), fixed bug 1496419
5782         * support/regression/tests/bug1496419.c: new, added
5783
5784 2006-06-22 Borut Razem <borut.razem AT siol.net>
5785
5786         * support/regression/ports/pic16/support.c: use gpsim usart module from
5787           libgpsim_modules library
5788
5789 2006-06-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5790
5791         * device/include/mcs51/at89c51ed2.h: Fixed bug 1510144 changed
5792         IP0H to IPH0.
5793
5794 2006-06-19 Raphael Neider <rneider AT web.de>
5795
5796         * src/pic/glue.h,src/pic16/glue.h: added prototypes
5797         * src/pic/glue.c,src/pic16/glue.c (pic1x_stringInSet,
5798           pic1x_emitSymbolIfNew): NEW, check for a string in a set,
5799           (pic14printExterns,pic14printPublics,pic16printPublics,
5800           pic16_printExterns): use new functions to emit symbols
5801           (picglue,pic16glue): emit publics before emitting externs
5802         * src/pic/gen.c,src/pic16/gen.c (genFunction): remember the names of
5803           locally defined functions to avoid bug #1443651
5804         * support/regression/tests/bug-716242.c: removed pic16 workaround
5805         * support/regression/ports/pic16/spec.mk: ignore errors during build
5806
5807 2006-06-19 Raphael Neider <rneider AT web.de>
5808
5809         * src/pic/glue.h: added pic14aopLiteral prototype
5810         * src/pic/glue.c (pic14aopLiteral): return unsigned int
5811         * src/pic/gen.c: removed stdint.h dependency
5812           (aopGet): use Safe_strdup()
5813           (bitpatternFromVal): removed, replaced use with pic14aopLiteral
5814           (genDataPointerSet): use pic14aopLiteral()
5815         * src/pic16/glue.h, src/pic16/glue.c, src/pic16/gen.c: similar changes
5816           for pic16; thanks to Bernhard and Maarten
5817
5818 2006-06-18 Borut Razem <borut.razem AT siol.net>
5819
5820         * support/regression/tests/structflexarray.c: flexible array members
5821           not supported by gcc < 3
5822         * sim/ucsim/configure, sim/ucsim/configure.in: do not compile serio
5823           GUI tool by default
5824         * src/pic/gen.c: don't include [p]strdin.h on solaris
5825         * support/Util/pstdint.h: addad svn attributes
5826         * support/regression/tests/constantRange.c,
5827           support/regression/tests/rotate.c: include inttypes.h instead
5828           stdint.h on solaris, addad svn attributes
5829
5830 2006-06-18 Raphael Neider <rneider AT web.de>
5831
5832         * src/SDCCsymt.c (initCSupport): change return type of divschar to
5833           int for PIC16
5834         * src/pic16/genarith.c (genAddLit): sign-extend via standard routine
5835           (pic16_genMinusBits): simplified sign-extension
5836           (pic16_genUMult8XLit_8,pic16_genUMult8X8_8): renamed to
5837             pic16_genMult8XLit_n resp. pic16_genMult8X8_n, fixed and
5838             adjusted to correctly handle mixed-signed operands, disabled
5839             now unused multiplciation routines
5840         * src/pic16/gen.c (pic16_pushpCodeOp): fixed to handle literals
5841           (assignResultValue): added argument denoting the size of the result
5842             as returned by the function (fixes upcasts in assigning from
5843             function calls: char foo(); int i = foo();)
5844           (genCall,genPcall,genGenPointerGet,genReceive): pass size of
5845             function result to assignResultValue
5846           (genMult): disabled inlined multiplication code
5847           (genDiv): augmented to also handle the modulus operator, fixed to
5848             handle mixed-signed operands correctly
5849           (genMod): simply call genDiv, disabled unused code
5850           (genAssign): fixed missing (sign-)extension on result
5851         * src/pic16/main.c (_hasNativeMulFor): accept literals [-128..256) as
5852             valid char operands, allow signed operands for native code, added
5853             division and modulo operator handling
5854         * device/lib/pic16/libsdcc/char/divschar.c: divschar returns an int
5855
5856         As a consequence, onebyte.c (if split into two files) and muldiv.c
5857         pass regression tests.
5858
5859 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5860
5861         * doc/Makefile.in: two runs of makeindex seem needed to get
5862         correct page references in the index of sdccman.pdf
5863         * doc/sdccman.lyx: mentioned cmon51, added links, small changes
5864
5865 2006-06-17 Borut Razem <borut.razem AT siol.net>
5866
5867         * sdcc/device/lib/Makefile.in: corrected PORTINCDIR path
5868
5869 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5870
5871         * doc/sdccman.lyx: updated, added (porting source code, debugging),
5872         mentioned ec2drv and paulmon
5873
5874 2006-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
5875
5876         * as/mcs51/lkarea.c (lnkarea2): clear new xdatamap, bugfix for two
5877           consecutive abs areas
5878           (find_empty_space, allocate_space): added map to handle codemap or
5879            xdatamap,
5880           (lnksect2): renamed rloc to locIndex, fixed bug 960060 by handling
5881            absolute idata and xdata
5882         * as/mcs51/lkmem.c (summary2): updated legend
5883
5884 2006-06-16 Raphael Neider <rneider AT web.de>
5885
5886         * src/pic16/gen.c (shiftR2Left2Result): fixed bug #1507127
5887
5888 2006-06-13 Maarten Brock <sourceforge.brock AT dse.nl>
5889
5890         * debugger/mcs51/cmd.c (cmdListFunctions): fixed bugs 1181163 and
5891           1208515
5892         * src/SDCClrange.c (findPrevUse): fixed bug 1294475
5893
5894 2006-06-13 Vangelis Rokas <vrokas AT users.sourceforge.net>
5895
5896         * src/port.h (struct PORT): added field gp_tags, to hold the tag
5897         value of generic pointers,
5898         * src/avr/main.c,
5899           src/ds390/main.c,
5900           src/hc08/main.c,
5901           src/izt/i186.c,
5902           src/izt/tlcs900h.c,
5903           src/mcs51/main.c,
5904           src/pic/main.c,
5905           src/pic16/main.c,
5906           src/xa51/main.c,
5907           src/z80/main.c: PORT structure, added elements for gp_tags field,
5908         * src/SDCCsymt.h: replaced hardwired values of GPTYPE_* macros with
5909         fields in the PORT structure of each port,
5910         * src/SDCCast.c (decorateType): allow processing of generic pointers
5911         for PIC16 port (FPTRSIZE equals GPTRSIZE), also set GPTYPE_NEAR for
5912         S_FIXED symbols
5913
5914 2006-06-12 Maarten Brock <sourceforge.brock AT dse.nl>
5915
5916         * link/z80/lkgb.c,
5917         * link/z80/lkgg.c,
5918         * src/pic16/gen.c,
5919         * src/pic16/main.c,
5920         * src/pic16/pcode.c,
5921         * src/pic/main.c,
5922         * src/pic/pcoderegs.c,
5923         * src/SDCCicode.c,
5924         * src/SDCCmain.c,
5925         * src/SDCCsymt.c: replaced all exit(-1) by exit(EXIT_FAILURE) to fix
5926           bug 1504689 on minGW
5927
5928 2006-06-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5929
5930         * device/lib/printf_tiny.c: fixed bug #1465675 (%x format specifier)
5931
5932 2006-06-12 Bernhard Held <bernhard AT bernhardheld.de>
5933
5934         * src/SDCCast.c (backPatchLabels): fixed bug #1504636
5935
5936 2006-06-11 Maarten Brock <sourceforge.brock AT dse.nl>
5937
5938         * device/lib/printf_large.c (OUTPUT_CHAR, _output_char): added and used
5939           for optimization
5940
5941 2006-06-11 Vangelis Rokas <vrokas AT users.sourceforge.net>
5942
5943         * src/pic16/gen.c (genCast): fixed bug with assignment of a pointer
5944         to a char variable. Fixed bug #1504211
5945         * device/include/pic16/adc.h,
5946         device/include/lib/pic16/libio/adc/adcopen.c: applied patch #1364387
5947         and fixed bug #1364390
5948
5949 2006-06-10 Borut Razem <borut.razem AT siol.net>
5950
5951         * CVSROOT: removed the CVS left-over
5952
5953 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
5954
5955         * as/hc08/asmain.c (asexit),
5956         * as/hc08/lkmain.c (lkexit),
5957         * as/mcs51/asmain.c (asexit),
5958         * as/mcs51/lkmain.c (lkexit),
5959         * src/SDCCglue.c (DEFSETFUNC),
5960         * src/SDCCmain.c (linkEdit, assemble),
5961         * support/librarian/sdcclib.c (AddRel),
5962           replaced unlink() by standard C remove()
5963         * src/SDCC.y: replaced removePostIncDecOps() by createRMW()
5964         * src/SDCCast.c (replaceAstWithTemporary, createRMW,
5965           gatherImplicitVariables): new, added to fix bug 608752,
5966           (createFunction): added gatherImplicitVariables()
5967         * src/SDCCast.h: added createRMW prototype
5968         * src/SDCCsymt.h (struct symbol): added infertype
5969         * support/regression/tests/bug608752.c: new, added
5970
5971 2006-06-10 Raphael Neider <rneider AT web.de>
5972
5973         * src/pic16/gen.c (pic16_aopOp): use WREG as destination even for
5974           multibyte dummy reads (fixes #1503234)
5975
5976 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
5977
5978         * device/include/mcs51/compiler.h: new, added header file to enable
5979           creating common sfr definition header files for different compilers
5980
5981 2006-06-05 Raphael Neider <rneider AT web.de>
5982
5983         * src/pic16/{pcode.h,genarith.c}:
5984           introduced pCodeOp combining any two pCodeOps (previously only
5985           two register operands could be combined), removed pcop2 from
5986           pCodepReg, replaced pCodeOpReg2 with pCodeOp2, fixes #1492366
5987         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): added case for PO_TWO_OPS
5988         * src/pic16/gen.c (pic16_popGet2,pic16_popGet2p,pic16_popCombine2):
5989           rewritten to use new PO_TWO_OPS
5990         * src/pic16/main.c (_hasNativeMulFor): cover more cases natively,
5991         * src/pic16/pcode.c (pic16_newpCodeOpImmd): initialize rIdx field,
5992           (pic16_newpCodeOp): catch invalid attempts on PO_TWO_OPS,
5993           (pic16_newpCodeOp2): NEW, create combined pCodeOp,
5994           (pic16_get_op): embraced return arg to allow #define return(x),
5995             added new case for combined opcodes
5996           (pic16_get_op2): reduced to use pic16_get_op() on second pCodeOp,
5997           (pic16_pCode2str,pic16_getRegFrompCodeOp,
5998            pic16_getRegFromInstruction2): fixed/added handling of new pCodeOp
5999
6000 2006-06-04 Bernhard Held <bernhard AT bernhardheld.de>
6001
6002         * src/SDCCval.c (checkConstantRange): added
6003         * src/SDCCval.h: added checkConstantRange
6004         * support/Util/SDCCerr.c,
6005         * support/Util/SDCCerr.h: replaced unused W_IF_NEVER_TRUE and
6006         W_IF_ALWAYS_TRUE by W_COMP_RANGE and W_LIT_OVERFLOW
6007         * src/SDCC.y: moved early 'condition transformations' to SDCCast.c
6008         * src/SDCCast.c (decorateType): added checkConstantRange,
6009         added 'condition transformations' from SDCC.y so that now W_COMP_RANGE
6010         can be emitted with the correct always true/false warning,
6011         added optimization for double '!';
6012         result of decorateType() must be assigned back to the tree, because
6013         decorateType() can change the tree
6014         * src/SDCCicode.c (geniCodeLogic),
6015         (geniCodeAssign): replaced new checkConstantRange, added warnings,
6016         (checkConstantRange): removed, it was only a fragment which never
6017         emitted a warning
6018         * src/SDCCsymt.c (computeType): fixed promotion for
6019         "-1 < (unsigned bit) b"
6020         * src/pic/ralloc.c (packRegsForAssign),
6021         * src/pic16/ralloc.c (packRegsForAssign),
6022         * src/hc08/ralloc.c (packRegsForAssign),
6023         * src/z80/ralloc.c (packRegsForAssign): ported fix for bug #930931
6024         from mcs51
6025         * src/mcs51/ralloc.c (packRegsForAssign): removed outcommented source
6026         * support/regression/tests/constantRange.c: added
6027         * support/valdiag/tests/constantRange.c: added
6028         * support/valdiag/valdiag.py: added -DPORT_HOST=1
6029
6030 2006-06-02 Borut Razem <borut.razem AT siol.net>
6031
6032         * support/regression/ports/pic16/support.c: increase stack size
6033           to 255 bytes
6034         * support/regression/Makefile.in: sort tests by name so that the
6035           resutlts can be compared on different machines / platforms
6036
6037 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
6038
6039         * device/lib/printf_large.c (output_digit): optimized further, Tnx Frieder
6040         * src/ds390/gen.c (emitLabel): new, added,
6041           (genDjnz): fixed stack overflow bug,
6042           (throughout): cosmetic changes to sync with mcs51/gen.c,
6043           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl)
6044         * src/mcs51/gen.c (genEndFunction): small optimization,
6045           (throughout): cosmetic changes to sync with ds390/gen.c
6046
6047 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
6048
6049         * device/lib/printf_large.c (output_digit, calculate_digit): optimized,
6050           (_print_format): fixed printing pointers
6051         * src/mcs51/gen.c (emitLabel, movb): new, added,
6052           (genAssign): small optimization,
6053           (genDjnz): fixed stack overflow bug,
6054           (throughout): replaced sprintf with SNPRINTF,
6055           replaced mcs51_regWithIdx with REG_WITH_INDEX,
6056           replaced emitcode("mov", "b,...") with MOVB(...),
6057           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl),
6058           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
6059         * src/mcs51/peeph.def: added rules 140 and 264
6060         * src/SDCCmem.c (allocLocal): store register declared locals in DSEG/OSEG
6061           so they may get optimized into registers
6062
6063 2006-05-30 Maarten Brock <sourceforge.brock AT dse.nl>
6064
6065         * src/SDCCmain.c (optionsTable, parseCmdLine): handle --use-stdout
6066           immediately when encountered,
6067           (printUsage): always use stderr even on windows
6068
6069 2006-05-30 Bernhard Held <bernhard AT bernhardheld.de>
6070
6071         * src/SDCCast.c (isLoopCountable): fixed bug #1478316
6072         (processParms): fixed bug #1247551
6073         * src/SDCCmain.c (printVersionInfo, printOptions, printUsage,
6074         parseCmdLine, main): print '--version' to stdout,
6075         print 'help' to stdout if --help is given,
6076         print 'help' to stderr and exit with EXIT_FAILURE if no or bad
6077         arguments are given; fixed --help
6078
6079 2006-05-27 Bernhard Held <bernhard AT bernhardheld.de>
6080
6081         * src/SDCCcse.c (findPointerSet): fixed bug #1493710
6082         * support/regression/tests/bug-1493710.c: added
6083
6084 2006-05-27 Borut Razem <borut.razem AT siol.net>
6085
6086         * support/regression/fwk/lib/testfwk.c: define array in _printn() as
6087           static instead auto
6088         * support/regression/ports/pic16/support.c: increase stack size
6089           from default 64 bytes to 128 bytes
6090         * support/regression/tests/staticinit.c,
6091           support/regression/tests/float.c: regression tests fully enabled
6092           for pic16 port by putting the initialized data arrays into the code
6093           section
6094         * support/regression/ports/pic16/spec.mk: don't link default libraries.
6095           This was changed by mistake in the previous version.
6096
6097 2006-05-28 Vangelis Rokas <vrokas AT users.sourceforge.net>
6098
6099         * src/pic16/gen.c (genFunction, genEndFunction): some
6100         beautifications, fixed bug with falsely restoring FSR2 in large
6101         stack model, thanks to Beau E. Cox for reporting the bug
6102
6103 2006-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
6104
6105         * debugger/mcs51/break.c,
6106         * debugger/mcs51/cmd.c (throughout): removed unused variables and labels,
6107           use %p to print pointers, made address variables unsigned
6108         * debugger/mcs51/cmd.c (infoSymbols): added missing parameter to printf
6109         * debugger/mcs51/symtab.c (parseSymbol): must return something
6110         * src/mcs51/gen.c (aopForSym): small optimization,
6111            moved declarations mcs51_ptrRegReq and mcs51_nRegs to ralloc.h,
6112           (freeAsmop): added missing break,
6113           (aopPut): removed parameter bvolatile, determine it inside the function,
6114           (saveRegisters, unsaveRegisters): small optimization,
6115           (genIpush): removed pointless check,
6116           (throughout): replaced Safe_calloc, strcpy with Safe_strdup,
6117           replaced sprintf with SNPRINTF,
6118           replaced strcpy with strncpyz,
6119           updated aopPut calls,
6120           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
6121         * src/mcs51/ralloc.h:  added declarations mcs51_ptrRegReq and mcs51_nRegs
6122
6123 2006-05-24 Borut Razem <borut.razem AT siol.net>
6124
6125         * support/regression/tests/bug-221100.c: fixed xdata problem caused by
6126           modification of test for the pic16 port, put the array to the code
6127           memory for pic16port; thanks to Maarten Brock and Frieder Ferlemann
6128
6129 2006-05-23 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
6130
6131         * src/pic/gen.c: MSC 6 does not have <stdint.h>.  Use pstdint.h instead.
6132         * support/Util/pstdint.h: added
6133
6134 2006-05-22 Borut Razem <borut.razem AT siol.net>
6135
6136         * src/regression/Makefile: removed bool2.c test, added -q linker option
6137         * src/regression/add2.c, src/regression/add3.c, src/regression/bool1.c,
6138           src/regression/bool3.c, src/regression/nestfor.c, src/regression/ptrfunc.c,
6139           src/regression/compare.c, src/regression/or1.c, src/regression/compare2.c,
6140           src/regression/while.c, src/regression/compare3.c, src/regression/compare4.c,
6141           src/regression/compare5.c, src/regression/sub2.c, src/regression/rotate1.c,
6142           src/regression/rotate2.c, src/regression/rotate3.c, src/regression/rotate4.c,
6143           src/regression/switch1.c, src/regression/rotate5.c, src/regression/for.c,
6144           src/regression/add.c, src/regression/sub.c, src/regression/call1.c:
6145           define SUPPORT_BIT_TYPES 0, removed unused bit variables
6146
6147 2006-05-22 Raphael Neider <rneider AT web.de>
6148
6149         * src/pic16/gen.c (pic16_storeForReturn): fragile fix for
6150           bug #1492360 (problematic due to generic pointers, see code)
6151
6152 2006-05-22 Borut Razem <borut.razem AT siol.net>
6153
6154         * support/regression/ports/pic16/specs.mk: removed stack size linker
6155           directive
6156         * support/regression/tests/array.c,
6157           support/regression/tests/bitopcse.c,
6158           support/regression/tests/bug-908454.c,
6159           support/regression/tests/malloc.c: modified for pic16 regression test
6160         * support/regression/tests/bitfields.c:
6161           pic16 - excluded bitfileds of size > 8
6162         * support/regression/tests/bp.c: pic16 - reduced data size
6163         * support/regression/tests/bug-221100.c: pic16 - reduced data size
6164         * support/regression/tests/bug-460010.c:
6165           pic16 - used the absolute address the fits in memory
6166         * support/regression/tests/bug-716242.c:
6167           bug [ 1443651 ] pic 16: redefining symbol that cannot be redefined.
6168         * support/regression/tests/float.c:
6169           pic16 - excluded - data size too big
6170         * support/regression/tests/onebyte.c:
6171           pic16 - bug [ 1444425 ] onebyte.c regression tes fails on pic16
6172         * support/regression/tests/shifts.c:
6173           pic16 - function names probably have to differ in first X characters
6174           (gpasm limitation?)
6175         * support/regression/tests/staticinit.c:
6176           pic16 - excluded some tests due error: no target memory available for
6177           section ".idata"
6178
6179 2006-05-22 Borut Razem <borut.razem AT siol.net>
6180
6181         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
6182           second try. Thanks Stas Sergeev once more.
6183
6184 2006-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
6185
6186         * src/hc08/gen.c (transferAopAop): aop forced to stack was not restored,
6187           (genLeftShift, genRightShift): fixed bug 1491627
6188         * src/hc08/peeph.def (rules 7, 8.x): added
6189         * support/regression/tests/shifts.c (ShiftLeftByParam,
6190           ShiftRightByParam, testShiftByParam): added to test variable shifting
6191
6192 2006-05-20 Raphael Neider <rneider AT web.de>
6193
6194         * src/pic/gen.c (bitpatternFromVal): fixed for 64-bit machines
6195         * src/pic16/ralloc.c (newReg): use correct name in hashtable,
6196           (allocReg): add only new registers to dynAllocRegs,
6197           (pic16_assignRegisters): do not reset dynrIdx, fixes bugs
6198             #1489055, #1445850, and probably #1483693
6199
6200 2006-05-19 Vangelis Rokas <vrokas AT users.sourceforge.net>
6201
6202         * src/pic16/glue.c (pic16_emitConfigRegs, pic16_emitIDRegs): fixed
6203         bug in for-loop that didn't emit the last of CONFIG and ID registers
6204
6205 2006-05-18 Maarten Brock <sourceforge.brock AT dse.nl>
6206
6207         * src/mcs51/gen.c (genCodePointerGet): inc dptr instead of loading acc
6208           with offset
6209         * src/mcs51/peeph.def (186.x): updated and reenabled to fix bugs
6210           1489016, 1434401 and 1490124
6211         * src/ds390/peeph.def (186.x, 227.x): updated and reenabled to fix bugs
6212           1489016, 1434401 and 1490124
6213
6214 2006-05-17 Borut Razem <borut.razem AT siol.net>
6215
6216         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
6217           thanks Stas Sergeev
6218
6219 2006-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
6220
6221         * device/include/mcs51/P89c51RD2.h,
6222         * device/include/mcs51/P89LPC901.h,
6223         * device/include/mcs51/P89LPC922.h,
6224         * device/include/mcs51/P89LPC932.h: added, thanks Omar Espinosa
6225
6226 2006-05-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
6227
6228         * device/lib/pic16/libsdcc/stack/{stack.S, Makefile.in}: add workaround
6229         to fix missing stack pragma in compiled binary object file,
6230
6231 2006-05-14 Bernhard Held <bernhard AT bernhardheld.de>
6232
6233         * support/packihx/configure.in,
6234         * support/packihx/configure: removed warning, autoconf >= 2.5x can
6235         determine sizeof basic types even while cross compiling
6236
6237 2006-05-13 Bernhard Held <bernhard AT bernhardheld.de>
6238
6239         * src/avr/gen.c (aopop),
6240         * src/ds390/gen.c (aopOp),
6241         * src/hc08/gen.c (aopOp),
6242         * src/mcs51/gen.c (aopop),
6243         * src/pic16/gen.c (pic16_aopOp),
6244         * src/pic/gen.c (aopOp),
6245         * src/z80/gen.c (aopop): fix for bug #1479882; use new, exclusive asmop
6246         if size of operand is smaller than spill location
6247
6248 2006-05-12 Borut Razem <borut.razem AT siol.net>
6249
6250         * *.dsw, *.dsp: changed property svn:eol-style to CRLF since they
6251           have to have CR/LF line endings even if they are checked out on *nix
6252           or on WIN32 in cygwin binmode
6253
6254 2006-05-12 Maarten Brock <sourceforge.brock AT dse.nl>
6255
6256         * doc/sdccman.lyx: documented numeric ranges, WEBDOC #1442369
6257         * device/include/ds80c390.h: added sfr16 definitions
6258         * src/ds390/gen.c,
6259         * src/ds390/gen.h,
6260         * src/ds390/main.c,
6261         * src/ds390/ralloc.c,
6262         * src/ds390/ralloc.h: changes all over the place to sync with mcs51
6263           fixing several bugs and adding sfr16/sfr32, reentrant bit params,
6264           bit returning functions
6265         * support/regression/tests/sfr16.c: enabled test on ds390
6266
6267 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6268
6269         * src/hc08/gen.c (asmopToBool, genIfx): fix for bug #1429722
6270         * src/hc08/gen.c (storeRegToAop): fix for bug #1439894
6271
6272 2006-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
6273
6274         * sim/ucsim/sim.src/memcl.h: added get_decoder() to cl_address_space
6275         * sim/ucsim/sim.src/mem.cc: implemented cl_address_space::get_decoder,
6276           (cl_address_space constructor): removed expensive initialization,
6277           (cl_address_space::get_cell): extended for late initialization,
6278           (cl_address_space::*): use late initialization,
6279           (cl_address_decoder::activate): removed expensive initialization,
6280           This reduced regression test running time by 25%
6281
6282 2006-05-11 Bernhard Held <bernhard AT bernhardheld.de>
6283
6284         * packihx/,
6285         * configure.in,
6286         * configure,
6287         * sdcc.dsw,
6288         * Makefile.bcc,
6289         * Makefile.in,
6290         * support/packihx/Makefile.in,
6291         * support/packihx/clean.mk,
6292         * support/packihx/Makefile.bcc,
6293         * support/packihx/PackIhx.dsp: moved packihx to support/packihx
6294
6295 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6296
6297         * src/SDCCval.c (valNot): fix for regression test failure
6298           of not.c on big endian hosts
6299
6300 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
6301
6302         * device/inlcude/mcs51/msc1210.h: new, added, thanks Philippe Latu
6303
6304 2006-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6305
6306         * device/lib/mcs51/Makefile.in: changed string comparison operator
6307           to = for POSIX compliance; == is bash extension
6308
6309 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
6310
6311         * device/lib/hc08/_mulint.c: applied patch 1485428, thanks
6312           kosmonaut_pirx
6313
6314 2006-05-09 Vangelis Rokas <vrokas AT users.sourceforge.net>
6315
6316         * src/pic16/gen.c (pic16_freeAsmop): release any temp registers
6317         allocated by aopForSym thus fixing bug #1478657 about failed testfwk.c
6318         * src/pic16/main.c (_pic16_keywords): added 'sfr16' keyword,
6319         * src/pic16/ralloc.c (pic16_allocWithIdx): also a fix for bug exposed by
6320         bug report #1478657,
6321
6322 2006-05-05 Borut Razem <borut.razem AT siol.net>
6323
6324         * doc/Makefile.in: remove of WARNINGS and labels.pl immediately after
6325           making the html
6326
6327 2006-05-02 Borut Razem <borut.razem AT siol.net>
6328
6329         * doc/Makefile.in: removed *.ind dependency since there is no rule to
6330           create *.ind, which made make to fail if invoked with -j 2
6331
6332 2006-05-01 Maarten Brock <sourceforge.brock AT dse.nl>
6333
6334         * src/SDCCglue.c (emitRegularMap): partial fix for bug 1477149, thanks
6335           Hubert Sack for patch 1479782
6336
6337 2006-05-01 Vangelis Rokas <vrokas AT users.sourceforge.net>
6338
6339         * src/pic16/glue.c (pic16_printIvalStruct): fixed bug #1445929
6340
6341 2006-05-01 Raphael Neider <rneider AT web.de>
6342
6343         * src/pic/device.c (sanitise_processor_name): only remove p(ic) prefix,
6344           (create_pic): store only prefix-free device name,
6345           (init_pic): check for device names with "16" prefix,
6346           (list_valid_pics),
6347         * src/pic/device.h (struct PIC_device),
6348         * src/pic/main.c (_pic14_genAssemblerPreamble): adapted to single
6349             stored device name,
6350         * device/include/pic/pic12f{635,675,629,683}.h,
6351         * device/lib/pic/libdev/pic12f{635,675,629,683}.c: NEW device libraries
6352         * device/lib/pic/libdev/Makefile.in: allow pic12* devices,
6353         * device/include/pic/pic16f505.h,
6354         * device/lib/pic/libdev/pic16f505.c: removed
6355         * device/include/pic/pic14devices.txt: added support for pic12f
6356             devices, removed unsupported non 16-bit devices
6357             [above changes provided by patch from Zik Saleeba]
6358         * src/pic/*, src/pic16/*, device/include/pic16/*,
6359           device/lib/pic/**, device/lib/pic16/**: obfuscated email address
6360
6361 2006-05-01 Borut Razem <borut.razem AT siol.net>
6362
6363         * configure.in, configure, doc/Makefile.in:
6364           sync with nightly build makefile - latex, dvipdf and dvips
6365           not needed any more
6366
6367 2006-04-30 Bernhard Held <bernhard AT bernhardheld.de>
6368
6369         * support/scripts/sdcc.nsi: removed all Readmes and Makefiles
6370         in the library source
6371
6372 2006-04-30 Maarten Brock <sourceforge.brock AT dse.nl>
6373
6374         * support/regression/ports/hc08/spec.mk: fixed bug 1478892
6375
6376 2006-04-28 Raphael Neider <rneider AT web.de>
6377
6378         * src/pic16/pcode.c (pic16_newpCodeOpLit12),
6379         * src/pic16/gen.c (pic16_popGetLit12): NEW, create 12 bit literal,
6380           (pic16_loadFSR0): handle 12 bit literals correctly, fixes #1440527
6381         * src/pic16/pcode.h: added prototype for pic16_newpCodeOpLit12()
6382
6383 2006-04-28 Bernhard Held <bernhard AT bernhardheld.de>
6384
6385         * device/lib/pic/libdev/Makefile.in,
6386         * device/lib/hc08/Makefile.in,
6387         * device/lib/gbz80/Makefile.in,
6388         * device/lib/z80/Makefile.in,
6389         * device/lib/ds390/Makefile.in,
6390         * device/lib/ds400/Makefile.in: added srcdir to include search path,
6391         thanks to Borut for the bug report
6392         * configure.in,
6393         * configure: always create doc/Makefile independent from --enable-doc
6394         * Makefile.in: always install from directory doc independent from
6395         --enable-doc
6396         * device/lib/pic/Makefile.in: added libdev again, it was erroneously
6397         removed
6398         * device/lib/pic/libdev/Makefile.in: fixed VPATH build
6399         * doc/Makefile.in: install *.txt if present
6400         * device/include/Makefile.in (install): added installation of pic/*.inc
6401         and pic/*.txt files again, they were erroneously removed
6402
6403 2006-04-28 Raphael Neider <rneider AT web.de>
6404
6405         * src/pic/{gen.c,main.h,pcode.c},
6406         * src/pic16/{gen.c,pcode.c}: quietened compiler warnings
6407             concerning signedness with casts
6408
6409 2006-04-28 Raphael Neider <rneider AT web.de>
6410
6411         * src/pic/gen.c (genFunction): set global pic14_hasInterrupt on
6412             definition of an interrupt handler,
6413         * src/pic/glue.c (pic14_emitInterruptHandler): moved output of
6414             interrupt handler stuff from picglue() to separate routine,
6415           (picglue): enabled definition of intr handlers in files w/o main()
6416
6417 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
6418
6419         * support/librarian/sdcclib.c: moved include <limits.h> up to enable
6420           compilation with MSVC 2005 Express Edition (VC8)
6421
6422 2006-04-26 Bernhard Held <bernhard AT bernhardheld.de>
6423
6424         * device/lib/Makefile: fixed build of gbz80 lib
6425
6426 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
6427
6428         * support/regression/tests/bug-460010.c,
6429         * support/regression/tests/bug-524691.c,
6430         * support/regression/tests/bug-716242.c: removed conditional defines
6431           that are already in testfwk.h
6432
6433 2006-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
6434
6435         * src/ds390/gen.c (AccAXRrl1, AccAXLrl1): changed to real rotate by 1,
6436           (AccAXRsh1): added, shift right by 1,
6437           (AccAXLsh, AccAXRsh, AccAXRshS): updated for AccAXRrl1, AccAXRsh1 and
6438            AccAXLrl1
6439         * support/regression/tests/rotate.c: use <stdint.h> and enabled ds390
6440
6441 2006-04-25 Bernhard Held <bernhard AT bernhardheld.de>
6442
6443         * src/SDCCast.c (decorateType): partial fix for RFE 1475769,
6444         remove cast to same type
6445         * src/SDCCast.c (decorateType): fix for RFE 1475742,
6446         optimize 'ifx (op == 0)' resp. 'ifx (op != 0)'
6447         * as/z80/Makefile,
6448         * link/z80/Makefile: removed, they have moved to
6449         Makefile.in files
6450         * configure,
6451         * configure.in: replaced duplicate message about ucsim by missing sdcpp
6452         * install-sh: fix bug #1204398 by setting umask 0022
6453         * device/lib/Makefile: separate build of z80 and gbz80 lib
6454
6455 2006-04-24 Bernhard Held <bernhard AT bernhardheld.de>
6456
6457         Enabled VPATH feature: changed nearly all Makefiles (149 files).
6458         See sdccman.lyx '2.4.10 VPATH feature' about how to use it.
6459
6460         One basic decision: e.g. src/clean.mk includes further files. In order
6461         to make this work there are two solutions:
6462         - rename another dozen clean.mk to clean_in.mk, add srcdir to them and
6463           run configure on them. This way they can use
6464           'include $(srcdir)/port-clean.mk'
6465         - always include clean.mk by the Makefile at the same level. To avoid
6466           that `make clean` tries to include and build Makefile.dep the
6467           MAKECMDGOALS are examined (see e.g. src/Makefile.in). This has been
6468           implemented, because now even `make uninstall` doesn't create
6469           Makefile.in. clean.mk could be eliminated by pasting it in
6470           Makefile.in.
6471
6472         * debugger/mcs51/Makefile.in: build own objects from library sources
6473         (SLIB, SDCC) in current directory
6474
6475         * configure, configure.in: renamed --disable-device-lib-build in
6476         --disable-device-lib; added --enable-doc, the required tools are
6477         searched by configure; added result message; the toolchain for the
6478         belonging ports are now only built, if the port is enabled.
6479
6480         * support/regression/*: all output is written in directory gen, because
6481         the fwk and ports directories don't livet in the build tree using vpath
6482
6483         * doc/sdccman.lyx: renamed --disable-device-lib-build to
6484         --disable-device-lib, added --enable-doc, added section VPATH
6485
6486         * sim/ucsim/configure.in,
6487         * sim/ucsim/configure.in: hc08 couldn't be disabled, now hc08 and
6488         z80 are enabled by default
6489
6490 2006-04-24 Raphael Neider <rneider AT web.de>
6491
6492         * src/pic/device.c (pic14_assignConfigWordValue): remember assignments
6493             to config word, "pic14_"-prefixed some extern functions
6494           (pic14_emitConfigWord): emit __config directive(s) if assignment to
6495             config word has been found
6496         * src/pic/device.h: added prototypes
6497         * src/pic/pcode.c: added "pic14_"-prefix where needed
6498         * src/pic/ralloc.c (IS_CONFIG_ADDRESS,pic14_assignRegisters): cosmetic
6499             fixup
6500         * src/pic/glue.c (pic14_constructAbsMap): handle assignments to config
6501             words,
6502           (pic14emitRegularMap): ignore config words,
6503           (pic14createInterruptVect): moved generating __config directives away
6504           (picglue): have __config directives emitted
6505
6506 2006-04-24 Borut Razem <borut.razem AT siol.net>
6507
6508         * doc/Makefile: sync with nightly build makefile
6509
6510 2006-04-24 Raphael Neider <rneider AT web.de>
6511
6512         * src/pic/pcoderegs.c (OptimizeRegUsage): do not optimize
6513             registers that have not been assigned proper liveranges,
6514             fixes #1469504 and #1474602,
6515           (pCodeRegOptimizeRegUsage): fixed typo in comment
6516
6517 2006-04-24 Borut Razem <borut.razem AT siol.net>
6518
6519         * device/examples/main8051.c: deleted - it was removed from CVS
6520           24.mar.2000 and after that modified 18.feb.2001, so it reappered
6521           after the transition to Subversion
6522         * src/SDCCalloc.h: deleted - it was removed  from CVS
6523           3.feb.2001 and after that modified 18.feb.2001, so it reappered
6524           after the transition to Subversion
6525         * sim/ucsim/cpu.gif, sim/ucsim/interrupt.gif, sim/ucsim/new.gif,
6526           sim/ucsim/serial1.gif, sim/ucsim/serial2.gif,
6527           sim/ucsim/term_cpuopt.gif, sim/ucsim/timers.gif, sim/ucsim/wins.gif,
6528           sim/ucsim/post.jpg, sim/ucsim/UCsim.jpg: corrected
6529
6530 2006-04-22 Maarten Brock <sourceforge.brock AT dse.nl>
6531
6532         * as/asx8051.dsp: added mcs51/strcmpi.h
6533         * as/hc08/as_hc08.dsp: added asm.h, m6808.h, strcmpi.h
6534         * as/hc08/aslink.h: updated lnksect prototype
6535         * as/hc08/asm.h,
6536         * as/mcs51/asm.h: added a_addr to struct area and s_org to struct sym
6537         * as/hc08/asmain.c,
6538         * as/mcs51/asmain.c (asmbl): init dot.s_org for S_ORG,
6539           (newdot): handle A_ABS
6540         * as/hc08/asout.c,
6541         * as/mcs51/asout.c (outarea): output address
6542         * as/hc08/lkaomf51.c,
6543         * as/mcs51/lkaomf51.c: disabled unused array UsageType
6544         * as/hc08/m08pst.c,
6545         * as/mcs51/i51pst.c,
6546         * as/z80/z80pst.c: "ABS" is not A_OVR
6547         * as/hc08/lkarea.c (newarea): read a_addr,
6548           (lnkarea): added codemap array, sort absolute areas to the front,
6549            combine all GSINITx/GSFINAL,
6550           (find_empty_space, allocate_space): new functions,
6551           (lnksect): return next address, handle absolute sections
6552         * as/mcs51/lkarea.c (newarea): read a_addr,
6553           lnksect2 prototype changed,
6554           (lnkarea2): define codemap unsigned, combine all GSINITx/GSFINAL,
6555           (find_empty_space, allocate_space): new, factored out of lnksect2,
6556           (lnksect2): return next address, handle absolute sections
6557         * as/hc08/lkhead.c,
6558         * as/mcs51/lkhead.c (newhead): head is absolute but not overlay
6559         * as/hc08/lklibr.c (addfile, fndsym),
6560         * as/mcs51/lklibr.c (addfile, buildlibraryindex, fndsym): prevent
6561           index out of range and detect both '\' and '/'
6562         * device/include/mcs51/c8051f200.h: added _XPAGE, removed bad comment
6563         * device/include/stdbool.h: removed SDCC_ds390 from check to pass
6564           regression tests (ds390 cannot return bool yet)
6565         * doc/sdccman.lyx: changed version number, document changed --no-peep,
6566           document critical interrupts on z80, document changed SDCC define
6567         * src/asm.c (_asxxxx_mapping): fixed .org directive,
6568           (_a390_mapping): added .org directive
6569         * src/hc08/gen.c (transferAopAop): made bytemask log to fix warning,
6570           (genMultOneByte): fixed warnings
6571         * src/hc08/hc08.dsp: lowered warning level to 2 to suppress pedantic
6572           ones
6573         * src/pic16/device.c: removed newReg prototype, removed BYTE_IN_LONG
6574         * src/pic16/gen.c (pic16_popGetLabel): made parameter key signed,
6575           (pic16_genLeftShiftLiteral, genRightShiftLiteral): fixed warnings
6576         * src/pic16/gen.h: changed prototype for pic16_popGetLabel
6577         * src/pic16/main.c: removed newReg prototype
6578         * src/pic16/pcode.c,
6579         * src/pic16/pcode.h (pic16_emitDB): changed parameter c to int to fix
6580           warnings
6581         * src/pic16/pic16.dsp: lowered warning level to 2 to suppress pedantic
6582           ones
6583         * src/pic16/ralloc.c
6584         * src/pic16/ralloc.h (newReg): changed type to int and size to unsigned
6585           to fix warnings
6586         * src/pic/pcode.c (allocInternalRegister): changed parameter optype
6587           from short to PIC_OPTYPE
6588         * src/pic/pic.dsp: lowered warning level to 2 to suppress pedantic ones
6589         * src/pic/ralloc.c (newReg, allocInternalRegister): changed parameter
6590           optype from short to PIC_OPTYPE
6591         * src/port.h: made int_size unsigned to fix warnings
6592         * src/SDCC.y: fixed warning on MSVC
6593         * src/SDCCicode.c (getArraySizePtr): return unsigned int
6594         * src/SDCCopt.c (convertToFcall): fixed warnings
6595         * src/SDCCsymt.h: removed double prototype for genSymName
6596         * src/xa51/ralloc.c (allocReg): made size unsigned int, type int and
6597           offset int to fix warnings
6598
6599 2006-04-22 Borut Razem <borut.razem AT siol.net>
6600
6601         * doc/sdccman.lyx, */Makefile, */Makefile.in:
6602           references to CVS replaced with Subversion
6603
6604 2006-04-21 Borut Razem <borut.razem AT siol.net>
6605
6606         * doc/sdccman.lyx, */Makefile, */Makefile.in:
6607           references to CVS replaced with Subversion
6608
6609 2006-04-19 Borut Razem <borut.razem AT siol.net>
6610
6611         * src/version.awk: adapted for svn
6612         * /asxxxx/asxhtml/*.gif: set property svn:mime-type to image/gif
6613           sim/ucsim/doc/*.gif: set property svn:mime-type to image/gif
6614           sim/ucsim/doc/*.jpg: set property svn:mime-type to image/jpeg
6615           /binutils-avr/etc/*.vi, *.jin: removed all properties
6616           support/scripts/sdcc.ico: set property svn:mime-type to image/x-icon
6617
6618 2006-04-19 Borut Razem <borut.razem AT siol.net>
6619
6620         * CVS to Subversion migration completed
6621
6622 2006-04-18 Borut Razem <borut.razem AT siol.net>
6623
6624         * support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}/lib/pic/*.o,
6625           ${DEV_ROOT}/lib/src/pic/libdev/*.S, ${DEV_ROOT}/lib/src/pic/libdev/*.inc
6626
6627 2006-04-17 Borut Razem <borut.razem AT siol.net>
6628
6629         * device/include/Makefile.in: added pic/*.inc to the installation
6630
6631 2006-04-15 Bernhard Held <bernhard AT bernhardheld.de>
6632
6633         * support/regression/collate-results.py: fixed output in case of
6634         a valdiag error
6635         * support/regression/generate-cases.py: fixed splitting of pathnames
6636         with dots
6637         * as/hc08/lklibr.c (addfile),
6638         * as/mcs51/lklibr.c (addfile): fixed off-by-one bug
6639
6640 2006-04-11 Raphael Neider <rneider AT web.de>
6641
6642         * src/pic16/gen.c (getFreePtr, pic16_popRegFromString),
6643         * src/pic16/ralloc.c (pic16_allocregWithName): removed debug output
6644         * src/pic16/pcode.c (assignValnums): fixed #1460578
6645
6646 2006-04-11 Raphael Neider <rneider AT web.de>
6647
6648         * device/lib/pic/libdev/*.c,
6649         * device/include/pic/*.h: replaced sfr and data with __sfr and __data,
6650           fixes #1468739, enables compilation in --std-c99 mode
6651         * support/scripts/inc2h.pl: emit __sfr/__data instead of sfr/data
6652
6653 2006-04-11 Raphael Neider <rneider AT web.de>
6654
6655         * src/pic/device.c (find_device): removed debug output
6656           (list_valid_pics): enabled verbose listing of supported devices
6657         * device/include/stdbool.h: define bool as char for pic14/16 as well
6658
6659 2006-04-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6660
6661         * src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)"
6662
6663 2006-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
6664
6665         * .version: bumped version to 2.5.6
6666         * src/pic/ralloc.c (newReg): MSVC doesn't support __builtin_return_address
6667
6668 2006-04-06 Raphael Neider <rneider AT web.de>
6669
6670         * .version: bumped version to 2.5.6 (pic14 ABI changed)
6671         * src/SDCCmain.c: add -DSDCC_PROCESSOR=<id> for pic14 port
6672         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap,
6673           pic14emitRegularMap,pic14emitMaps): moved output for absolute symbols to
6674             pic14_constructAbsMap
6675           (pic14printPublics): declare absolute global symbols as global
6676           (pic14createInterruptVect),
6677         * src/pic/ralloc.c (IS_CONFIG_ADDRESS): support second config word,
6678           (newReg): assume new registers unused, use correct name in
6679             hashtable (reg->name instead of name), more debugLog output
6680         * src/pic/device.h (PIC_device): added fields for verbose output
6681         * src/pic/device.c: moved device definition to pic14devices.txt,
6682             added routines for runtime parsing of pic14devices.txt,
6683             added support for second config word
6684         * src/pic/main.c (_process_pragma): removed #pragma maxram,
6685           (_pic14_keywords): no longer accept "bit" and "sbit" keywords
6686           (_pic14_initPaths): add search paths with "pic" suffix (not "pic14")
6687           (_pic14_parseOptions): moved pCodeInitRegisters here
6688           (_pic14_do_link): add "pic$(ARCH).lib" to linker arguments
6689         * src/pic/pcode.c (AnalyzeBanking): bail out on unset processor,
6690           (pCodeInitRegisters): rewrapped comments, perpared new approach to
6691             handling the pseudo stack
6692         * device/lib/Makefile.in: ignore failures in objects-pic16,
6693         * device/lib/pic/{configure,configure.in,Makefile}: added libdev/
6694         * device/lib/pic/NEWS: document new dependency on picXXX.lib
6695         * device/lib/pic/Makefile.subdir,
6696         * device/lib/pic16/Makefile.subdir: improved clean rules
6697         * device/lib/pic/libdev/: NEW, pic14 device libraries
6698         * device/lib/pic/libsdcc/_gptr{get,put}{1,2,3,4}.S: use _X not X
6699         * device/lib/pic/libsdcc/macros.inc: use _X not X, declare default SFRs
6700         * device/include/Makefile.in: create subdir and install pic14 headers
6701         * device/include/pic/p16f_common.inc: removed unused declarations
6702         * device/include/pic/pic16*.h: added header files for 100+ 14 bit
6703             PICs from inc2h.pl v1.6,
6704             replaced BIT_AT macros with struct declarations
6705         * device/include/pic/pic14devices.txt: definition of supported devices,
6706             all above improvements contributed by Zik Saleeba, thanks
6707         * support/scripts/inc2h.pl: removed BIT_AT, replaced with structs
6708         * support/scripts/sdcc.nsi: also install pic14 device libraries and
6709             headers
6710
6711 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
6712
6713         * device/include/mcs51/c8051f410.h: added interrupt numbers,
6714         * device/include/mcs51/c8051f200.h: old SiLabs mcu completes the list,
6715           thanks to Charles Olds
6716
6717 2006-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6718
6719         * debugger/mcs51/cmd.c (infoRegisters): show return address on stack
6720
6721 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
6722
6723         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug 1464657
6724         * src/mcs51/gen.c (genJumpTab): fixed bug in medium model
6725         * support/regression/bug1464657.c: added, new test
6726
6727 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
6728
6729         * src/SDCCmain.c (preProcess): implemented RFE 1449908, define SDCC as the
6730           version number
6731
6732 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
6733
6734         * src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
6735           --no-peep and --peep-file <file> are used don't use default rules but
6736           do use the <file>
6737
6738 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
6739
6740         * src/mcs51/gen.c (genCall): fixed bug 1457608
6741
6742 2006-03-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6743
6744         * doc/sdccman.lyx: reverted to version 1.129 of december as my latest
6745         changes seem to cause (trigger?) problems with the build system.
6746
6747 2006-03-29 Maarten Brock <sourceforge.brock AT dse.nl>
6748
6749         * src/SDCCpeeph.c (operandsLiteral): new, added,
6750           (callFuncByName): inserted operandsLiteral
6751         * src/mcs51/peeph.def: reenabled 132.e, added extra check to 132.x
6752
6753 2006-03-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6754
6755         * doc/sdccman.lyx: added paragraph "Use of SDCC in Education"
6756         * src/mcs51/peeph.def: disabled rule 132.e fixing bug #1453093
6757
6758 2006-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
6759
6760         * src/z80/gen.c (genFunction, genEndFunction): fixed bug 1160666,
6761           implemented patch 1120823 Thanks to Willy De la Court (normal
6762           interrupts need an interrupt number now if they are made critical),
6763           and enabled nesting of critical functions though not for gbz80
6764           (genCritical, genEndCritical): added functions
6765           (genZ80Code): added cases for CRITICAL and ENDCRITICAL
6766         * src/z80/mappings.i: added "ei" to all mappings
6767
6768 2006-03-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6769
6770         * sim/ucsim/cmd.src/newcmdcl.h: applied patch fixing GCC 4.1 build
6771         submitted by the Debian SDCC maintainer Aurelien Jarno:
6772         "Credits goes to Martin Michlmayr, who rebuilt the whole Debian
6773         archive with gcc 4.1 on mips and wrote the patch"
6774
6775 2006-03-16 Raphael Neider <rneider AT web.de>
6776
6777         * src/pic16/genarith.c (genAddLit): simplified and fixed case where
6778           the left operand is shorter than the result (c* = lit-c* + int),
6779           fixes bug #1450796
6780         * src/pic16/gen.c (genRightShift): check IS_SYMOP before accessing
6781           OP_SYMBOL
6782
6783 2006-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
6784
6785         * src/.version: increased version number to 2.5.5
6786         * src/SDCCmain.c (linkEdit): do not test for PIC16 target since, PIC16
6787         linking is done manually in pic16 port's _linkEdit,
6788         * src/SDCCsymt.c (compStructSize): for target PIC16 and shell variable
6789         PIC16_PACKED_BITFIELDS, compact bitfield structures as much as possible,
6790         * src/pic16/gen.c (aopForSym): when direct register name is WREG then
6791         allocate asmop as AOP_ACC,
6792         (aopForRemat): added parameter 'bool result' in function declaration,
6793         (pic16_aopGet): return AOP_ACC when accessing WREG,
6794         (pic16_popGetTempReg): minor modification,
6795         (pic16_popRegFromIdx): first try with 'pic16_regWithIdx' then with
6796         'pic16_allocWithIdx',
6797         (genPcall): removed ftype, usage of OP_SYM_TYPE asserted error when
6798         calling function in absolute addresses,
6799         (genAssign): take into account AOP_ACC asmop,
6800         * src/pic16/pcode.c (pic16_newpCodeOpReg): minor modifications,
6801         * src/pic16/pcoderegs.c: some debug functions and lines added,
6802         * src/pic16/ralloc.c (decodeRegType): added but commented out,
6803         * (pic16_typeRegWithIdx): search 'pic16_dynInternalRegs' for given
6804         register too,
6805         * (pic16_findFreeReg, pic16_findFreeRegNext): allocate new register via
6806         call to allocReg, not by manually allocating a new one,
6807         (pic16_assignRegisters): now before going through the register
6808         allocating functions mark all registers as free. This eliminates some
6809         side effects resulting from peephole parser done earlier in the backbone
6810
6811 2006-03-13 Maarten Brock <sourceforge.brock AT dse.nl>
6812
6813         * src/SDCCicode.c (geniCodeLogic),
6814         * src/SDCCast.c (decorateType): applied patch by Bernhard for rfe 1422617
6815
6816 2006-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
6817
6818         * src/mcs51/gen.c (sameReg): new, checks if two aop regs are the same,
6819           (genSend): bugfix, do not allocate and free twice,
6820           (shiftRLong): handle partially overlapping aops
6821         * support/regression/tests/bitopcse.c: fixed warning redefined idata
6822
6823 2006-03-08 Borut Razem <borut.razem AT siol.net>
6824
6825         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata
6826           for pic16
6827
6828 2006-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
6829
6830         * support/regression/tests/bug1409955.c: new, added
6831         * src/mcs51/gen.h: changed asmop.freed:1 to asmop.allocated for tracking
6832         * src/mcs51/gen.c (newAsmop): set asmop.allocated to 1,
6833           (aopForSym, aopOp): increment asmop.allocated if reused,
6834           (freeAsmop): decrement asmop.allocated and check for zero instead of
6835           using asmop.freed,
6836           (freeForBranchAsmop): use asmop.allocated instead of asmop.freed,
6837           (genNot, genCpl, genUminus, genMinus, genMult, genDiv, genMod, genCmpGt,
6838            genCmpLt, genAndOp, genOrOp, genAnd, genOr, genXor, genRRC, genRLC,
6839            genGetHbit, genGetAbit, genGetByte, genGetWord, genSwap,
6840            genLeftShiftLiteral, genLeftShift, genRightShiftLiteral,
6841            genSignedRightShift, genRightShift, genDataPointerGet,
6842            genPagedPointerGet, genFarPointerGet, genCodePointerGet,
6843            genGenPointerGet, genDataPointerSet, genAssign, genCast): free asmop's
6844             in reverse order from allocation,
6845           (genPlus, genCmpEq): free asmop's in reverse order from allocation and
6846             added swappedLR to keep track
6847         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata,
6848           pdata & code for GCC, z80, gbz80 & hc08
6849         * support/regression/tests/zeropad.c: moved defines to testfwk.h
6850
6851 2006-03-08 Raphael Neider <rneider AT web.de>
6852
6853         * src/pic16/main.c (_hasNativeMulFor): fixed bug #1444425
6854
6855 2006-03-07 Maarten Brock <sourceforge.brock AT dse.nl>
6856
6857         * device/include/mcs51/c8051f410.h: new SiLabs mcu
6858         * src/ds390/peeph.def: disabled 186.d and 227.a as fix for #1434401
6859         * support/regression/tests/array.c: added parenthesis, made arrays unsigned
6860
6861 2006-03-06 Borut Razem <borut.razem AT siol.net>
6862
6863         * support/regression/ports/pic16/spec.mk: link with libm18f.lib,
6864           made the linker quiet
6865
6866 2006-03-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
6867
6868         * src/pic16/gen.c (genPcall): fixed bug #1443644
6869         * src/pic16/device.h (struct pic16_options_t): added 'int CATregs' flag
6870         which dumps before the function entry point a data byte which represents
6871         the number of the local variables used by the specified function, added
6872         'xinst' for initial support for Extended Instruction Support,
6873         * src/pic16/gen.c (aopForSym, pic16_aopGet): beautifications,
6874         (pic16_testStackOverflow): do not prefix GSTACK_TEST_NAME with
6875         port->fun_prefix anymore (may change later),
6876         (genFunction, genEndFunction): do not store/restore local registers for
6877         _main (this should take care the --main-return command line option in
6878         the future),
6879         (genOr): removed some legacy pic-port instructions,
6880         * src/pic16/genarith.c (genAddLit): re-enabled old code because
6881         performing operations with SFR's causes data to be written more than
6882         once to each SFR. Perhaps SFRs should be handled in special cases...
6883         * src/pic16/glue.c: macros BIG_ENDIAN and BYTE_IN_LONG are moved to
6884         pcode.h
6885         * src/pic16/main.c (_process_pragma): stack bound checking did not take
6886         into account for stack starting position,
6887         (struct OPTIONS pic16_optionsTable): added command line argument
6888         --extended or -y for Extended Instruction Support,
6889         * src/pic16/ralloc.c (pic16_decodeOp): added case for FUNCTION,
6890         (deassignLRs): *** perhaps the most important change, old 'for' code
6891         (commented out for reference), didn't account for some registers which
6892         were left marked 'not free' after a pointer operation. The change
6893         reduces register usage a lot in some cases
6894
6895 2006-03-04 Borut Razem <borut.razem AT siol.net>
6896
6897         * support/regression/ports/hc08/spec.mk: remove *.asm in traget
6898           _clean
6899         * support/regression/tests/bug-524697.c: decreased array size for
6900           mcs51 to fit into the internal RAM
6901         * support/regression/Makefile.in: a little bit more verbose
6902
6903 2006-03-03 Borut Razem <borut.razem AT siol.net>
6904
6905         * support/regression/fwk/lib/testfwk.c,
6906           support/regression/fwk/include/testfwk.h: introduced function
6907           _prints(), nonrecursive _printn(), call _initEmu() from main()
6908         * support/regression/ports/gbz80/support.asm,
6909           support/regression/ports/ucz80/support.asm,
6910           support/regression/ports/z80/support.asm,
6911           support/regression/ports/ds390/support.c,
6912           support/regression/ports/hc08/support.c,
6913           support/regression/ports/host/support.c,
6914           support/regression/ports/mcs51/support.c,
6915           support/regression/ports/xa51/support.c: added empty _initEmu()
6916           function
6917         * support/regression/ports/pic16/gpsim.cmd,
6918           support/regression/ports/pic16/spec.mk,
6919           support/regression/ports/pic16/support.c,
6920           support/regression/Makefile.in: added pic16 regression test
6921
6922 2006-03-01 Raphael Neider <rneider AT web.de>
6923
6924         * src/pic16/gen.c (genPcall,pic16_derefPtr,genGenPointerGet,
6925           genConstPointerGet): use safe way of generating MOVFF to cover
6926             literals as well as registers, fixes bug #1440527
6927         * src/pic16/glue.c (pic16_printIvalBitFields): prevent NULL pointer
6928             dereference
6929           (pic16_printIvalUnion,pic16_isUnion): NEW, handle initialized unions
6930             more correctly, fixes bug #1232186
6931           (pic16_printIval): use pic16_printIvalUnion() for initialized unions
6932         * src/pic16/main.c (_pic16_linkEdit): reorder linker arguments to make
6933             gplink guess the correct processor in more cases, applied patch
6934             from Till Riedel attached to and fixing bug #1436552
6935
6936 2006-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6937
6938         * support/regression/tests/array.c: added, contains check for #1434401
6939         * src/mcs51/peeph.def: disabled 186.d as temporary fix for #1434401
6940
6941 2006-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
6942
6943         * device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
6944         * device/include/mcs51/at89S8252.h: fixed, thanks to Krzysztof Polomka
6945         * device/include/mcs51/c8051f326.h,
6946         * device/include/mcs51/c8051f340.h: new SiLabs mcu's
6947         * device/include/mcs51/c8051f000.h,
6948         * device/include/mcs51/c8051f018.h,
6949         * device/include/mcs51/c8051f020.h: used () with __at, renamed IDLE,STOP to
6950           PCON_IDLE,PCON_STOP and added sfr16 definitions
6951
6952 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
6953
6954         * src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
6955           genGetWord): fixed bug 1409955
6956
6957 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
6958
6959         * device/include/hc08/mc68hc908gp32.h,
6960         * device/include/hc08/mc68hc908jb8.h: removed AWUL, added PTA6 & PTA7
6961
6962 2006-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
6963
6964         * src/SDCCast.c (constExprValue): return NULL if not a value
6965         * src/SDCCglue.c (printIvalArray): fixed bug 1225568
6966         * src/hc08/gen.c(genUnpackBits, genUnpackBitsImmed): fixed bug 1019480
6967         * support/regression/tests/bitfields.c: enabled signed bitfield for all
6968
6969 2006-02-13 Borut Razem <borut.razem AT siol.net>
6970
6971         * src/regression/ptrarg.c: added, fails due to bug #1430967
6972         * src/regression/Makefile: ptrarg.c added, ...
6973
6974 2006-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
6975
6976         * src/z80/gen.c (genUnpackBits): fixed bug 1019480
6977         * support/regression/tests/bitfields.c: enabled signed bitfield for z80
6978
6979 2006-02-11 Borut Razem <borut.razem AT siol.net>
6980
6981         * src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
6982           print "Processor: xxx" message to stdout only if --verbose
6983
6984 2006-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
6985
6986         * src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
6987         * support/regression/tests/bug1426356.c: added
6988         * support/regression/tests/bitfields.c: removed 2 tests
6989
6990 2006-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
6991
6992         * device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
6993         * device/include/mcs51/c8051f330.h,
6994         * device/include/mcs51/c8051f350.h: used () with __at, renamed IDLE,STOP to
6995           PCON_IDLE,PCON_STOP and added sfr16 definitions
6996         * device/lib/_divsint.c,
6997         * device/lib/_divuint.c,
6998         * device/lib/_divulong.c,
6999         * device/lib/_divulong.c: renamed a,b to x,y to avoid confusion, fixed
7000           register bank bug for small stackauto
7001
7002 2006-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
7003
7004         * support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()
7005
7006 2006-02-08 Maarten Brock <sourceforge.brock AT dse.nl>
7007
7008         * support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
7009         * all.dsp: corrected several bin paths
7010         * device/include/mcs51/c8051f120.h,
7011         * device/include/mcs51/c8051f300.h,
7012         * device/include/mcs51/c8051f310.h: used () with __at and renamed IDLE,STOP
7013           to PCON_IDLE,PCON_STOP
7014         * device/include/mcs51/c8051f320.h: see above, also added sfr16 definitions
7015         * device/lib/printf_large.c (output_float): fixed bug 1388703
7016         * support/regression/tests/bug1057979.c: added test for bug 1388703
7017
7018 2006-02-08 Raphael Neider <rneider AT web.de>
7019
7020         * src/pic/pcode.c (pciTRIS): fixed typo,
7021           (BuildFlow,LinkFlow_pCode): added (disabled) debug output,
7022           (LinkFlow): fixed handling of flows that end in a call,
7023           (ReuseReg): perform safety check earlier
7024         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed
7025             to work with flows at the beginning of a pBlock,
7026             fixes #1426557 (Symbol not previously defined),
7027           (pic14_ReMapLiveRanges): NEW, destroy and rebuild register
7028             usage information
7029           (RemoveUnusedRegisters): update register usage info
7030         * src/pic/ralloc.c (newReg): prevent duplicate registers from being
7031             created, reuse existing ones instead
7032         * src/pic/gen.c (genPcall): fixed #1424719
7033
7034 2006-02-07 Bernhard Held <bernhard AT bernhardheld.de>
7035
7036         * link/z80/lkmain.c,
7037         * link/z80/lklex.c,
7038         * link/z80/lkdata.c,
7039         * link/z80/aslink.h: fixed build on current cygwin:
7040         replaced getline() by lk_getline()
7041
7042 2006-02-01 Borut Razem <borut.razem AT siol.net>
7043
7044         * src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
7045           src/regression/add4.c, src/regression/and1.c, src/regression/and2.c,
7046           src/regression/arrays.c, src/regression/b.c, src/regression/bank1.c,
7047           src/regression/bool1.c, src/regression/bool2.c,
7048           src/regression/bool3.c, src/regression/call1.c,
7049           src/regression/compare.c, src/regression/compare10.c,
7050           src/regression/compare2.c, src/regression/compare3.c,
7051           src/regression/compare4.c, src/regression/compare5.c,
7052           src/regression/compare6.c, src/regression/compare7.c,
7053           src/regression/compare8.c, src/regression/compare9.c,
7054           src/regression/configword.c, src/regression/for.c,
7055           src/regression/inline.c, src/regression/mult1.c,
7056           src/regression/nestfor.c, src/regression/or1.c,
7057           src/regression/pointer1.c, src/regression/ptrfunc.c,
7058           src/regression/rotate1.c, src/regression/rotate2.c,
7059           src/regression/rotate3.c, src/regression/rotate4.c,
7060           src/regression/rotate5.c, src/regression/rotate6.c,
7061           src/regression/rotate7.c, src/regression/string1.c,
7062           src/regression/struct1.c, src/regression/sub.c,
7063           src/regression/sub2.c, src/regression/switch1.c,
7064           src/regression/while.c, src/regression/xor.c,
7065           src/regression/create_stc, src/regression/simulate,
7066           src/regression/rt.sh, src/regression/Makefile: reenabled Scott's PIC14
7067           regression tests
7068         * src/regression/gpsim_assert.h: added
7069
7070 2006-01-28 Bernhard Held <bernhard AT bernhardheld.de>
7071
7072         * src/ds390/gen.c (unsaveRegisters): fixed literal function pointer
7073         ((void (code *) (void)) 0) ();
7074         * as/hc08/aslex.c,
7075         * as/hc08/aslink.h,
7076         * as/hc08/asm.h,
7077         * as/hc08/asmain.c,
7078         * as/hc08/lkdata.c,
7079         * as/hc08/lklex.c,
7080         * as/hc08/lkmain.c,
7081         * as/mcs51/aslex.c,
7082         * as/mcs51/aslink.h,
7083         * as/mcs51/asm.h,
7084         * as/mcs51/asmain.c,
7085         * as/mcs51/lkdata.c,
7086         * as/mcs51/lklex.c,
7087         * as/mcs51/lkmain.c,
7088         * as/z80/aslex.c,
7089         * as/z80/asm.h,
7090         * as/z80/asmain.c: fixed build on current cygwin:
7091         replaced getline() by as_getline()
7092
7093 2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
7094
7095         * src/SDCC.y: fixed bug #716242, exchanged pointer and function
7096         declarator in the symbol chain
7097         * src/SDCCsymt.h,
7098         * src/SDCCsymt.c (processFuncPtrArgs): added, removes "(void)"
7099         parameter list for function pointers
7100         * src/SDCCast.c (decorateType): added call of processFuncPtrArgs()
7101         * support/regression/tests/bug-716242.c: added
7102
7103 2006-01-20 Bernhard Held <bernhard AT bernhardheld.de>
7104
7105         * src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array
7106         offset if possible
7107         * src/SDCCast.c (getLeftResultType): 255 fits in char, not 256
7108
7109 2006-01-18 Bernhard Held <bernhard AT bernhardheld.de>
7110
7111         * src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it
7112         inifinitely recurseable, added static
7113         * support/regression/tests/bug-1408066.c: added
7114
7115 2006-01-17 Bernhard Held <bernhard AT bernhardheld.de>
7116
7117         * src/SDCCicode.h,
7118         * src/SDCCicode.c (newiTempPreheaderLabel, newiTempLoopHeaderLabel):
7119         renamed, added possibility to create "postLoopLbl"-labels
7120         * src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to
7121         newiTempLoopHeaderLabel
7122         * src/SDCCloop.c (newInduction, newRegion, backEdges, insertIntoLoop,
7123         isNotInBlocks, addToExitsMarkDepth, createLoop, dominatedBy,
7124         addDefInExprs, assignmentsToSym, isOperandInvariant, pointerAssigned,
7125         hasNonPtrUse, loopInvariants, addressTaken, findInduction,
7126         findDefInRegion, mergeRegions, ifMerged, mergeInnerLoops): made static,
7127         (pinduction, pregion, hasIncomingDefs, findLoopEndSeq): disabled,
7128         (basicInduction): fixed bug #136564, made static,
7129         (loopInduction): changed parameter of basicInduction, made static,
7130         (addPostLoopBlock): added
7131         * src/SDCCloop.h: removed backEdges, pregion, pinduction,
7132         loopOptimizations, addressTaken, findDefInRegion, hasIncomingDefs,
7133         findLoopEndSeq
7134         * support/regression/tests/bug-136564.c: added
7135         * support/regression/ports/mcs51-xstack-auto/spec.mk: added
7136         --std-sdcc99 to LIBSDCCFLAGS
7137
7138 2006-01-16 Bernhard Held <bernhard AT bernhardheld.de>
7139
7140         * src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false
7141         while loop
7142         * support/regression/tests/bug-1406131.c: added
7143
7144 2005-12-31 Bernhard Held <bernhard AT bernhardheld.de>
7145
7146         * src/SDCCast.c (decorateType): fix promotion of unary minus
7147         * src/SDCCsymt.c (computeType): beautified
7148         * src/SDCCval.c (cheapestVal): beautified, old non-Ansi version removed,
7149         (valUnaryPM, valComplement): fix sign and promotion,
7150         (valNot): ANSI: result type is int (SDCC: unsigned char)
7151         * support/regression/tests/uminus.c: speedup by removing superflous
7152         test case 'int'
7153         * support/regression/tests/onebyte.c: added promotion and signedness
7154         tests for unary minus
7155         * support/regressions/tests/bug-477927.c: disable warning about
7156         uninitialized variables
7157         * support/regression/tests/not.c: added
7158
7159 2005-12-28 Bernhard Held <bernhard AT bernhardheld.de>
7160
7161         * device/lib/Makefile.in: added --std-sdcc99 to CFLAGS
7162         * src/mcs51/gen.c (gen51Code): show final register usage after
7163         fillGaps in asm with --i-code-in-asm
7164         * src/SDCClrange.c (sequenceiCode, setLiveFrom, setLiveTo,
7165         markLiveRanges, markAlive, findNextUseSym, findNextUse, unvisitBlocks,
7166         incUsed, rliveClear, adjustIChain): made static,
7167         (setFromRange): excluded because it's unused,
7168         (findPrevUseSym, markWholeLoop): added,
7169         (findPrevUse): rewritten; fixes bug 895992; now a complete search
7170         through all branches of predecessors enables sdcc to emit the warning
7171         W_LOCAL_NOINIT, marking of outermost loop was incomplete,
7172         (rlivePoint): made static, added parameter emitWarnings which is only
7173         true during the first run out of two,
7174         (findRecursiveSucc, findRecursivePred): removed,
7175         (computeLiveRanges): made static, added parameter emitWarnings,
7176         (dumpIcRlive): added for debugging only
7177         * src/SDCClrange.h: added boolean parameter to computeLiveRanges(),
7178         removed prototype of setFromRange()
7179         * src/SDCCopt.c (eBBlockFromiCode): added new parameter emitWarnings
7180         in call of computeLiveRanges()
7181         * support/regression/tests/bug-895992.c: added
7182         * support/regression/tests/bug-971834.c: added
7183         * support/valdiag/tests/bug-895992.c: added
7184         * support/valdiag/tests/bug-971834.c: added
7185
7186 2005-12-18 Raphael Neider <rneider AT web.de>
7187
7188         * src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
7189           (genUnpackBits): improved code for direct operands,
7190           (genPackBits): improved code for literal assignment to bitfields
7191             and for direct destination operands (no FSR indirection),
7192             prevented redundant AND, fixes #1362800,
7193           (AccLsh): added parameter to disable masking of the result
7194         * src/pic16/pcode.c (pic16_safepCodeUnlink): fixed to work with
7195           skip instructions with side-effects (like incfsz),
7196           (pic16_pCodeIsAlive): suppress verbose output unless pcode_verbose,
7197         * src/pic16/pcoderegs.c (RemoveRegsFromSet): removed annoying warning
7198         * device/lib/pic16/Makefile.common.in: added --asm=@GPASM@ to CC,
7199           fixes #1375263
7200
7201 2005-12-11 Bernhard Held <bernhard AT bernhardheld.de>
7202
7203         * src/SDCCicode.c (geniCodeAssign): fixed bug 11369874, don't use
7204         volatile variables as spill location
7205
7206 2005-12-10 Bernhard Held <bernhard AT bernhardheld.de>
7207
7208         * src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to
7209         replacing literals
7210         * support/regression/tests/bug-1376320.c: added
7211
7212 2005-12-08 Raphael Neider <rneider AT web.de>
7213
7214         * src/pic/device.c: renamed is_shared to pic14_is_shared
7215         * src/pic/gen.c (genIfx): re-enabled handling of sbits
7216         * src/pic/glue.c (emitSymbolToFile): added workaround for sbits,
7217           (is_valid_identifier): added for above workaround
7218
7219 2005-12-07 Maarten Brock <sourceforge.brock AT dse.nl>
7220
7221         * device/lib/Makefile.in: fixed to enable port-specific-objects
7222         * device/lib/ds390/i2c390.c (BitOutI2C): optimized by making bout unsigned
7223           char, thanks Hubert Sack
7224         * doc/sdccman.lyx: documented --xstack-loc,
7225           elaborated a bit more on interrupts and pitfalls,
7226           removed "setjmp/longjmp unsupported",
7227           documented some unsupported C99 features
7228         * src/SDCCmain.c (linkEdit): adapted default lib path for --stack-auto
7229         * src/SDCCpeeph.c (readRules): inserted patch 1367130 for finding missing
7230           if, thanks Hubert Sack
7231         * src/mcs51/gen.c (genEndFunction): enabled "pop psw" for regbank 0 isr
7232         * support/regression/Makefile.in: test-mcs51-stack-auto no longer needs to
7233           make make_library
7234         * support/regression/get_ticks.py: new, get cpu cycles and code size, so
7235           regression tests can report resource usage (rfe 700441)
7236         * support/regression/collate-results.py: report resource usage
7237         * support/regression/ports/ds390/spec.mk,
7238         * support/regression/ports/hc08/spec.mk,
7239         * support/regression/ports/mcs51/spec.mk,
7240         * support/regression/ports/ucz80/spec.mk: run sim output through get_ticks
7241         * support/regression/ports/ds390/uCsim.cmd,
7242         * support/regression/ports/hc08/uCsim.cmd,
7243         * support/regression/ports/mcs51/uCsim.cmd,
7244         * support/regression/ports/ucz80/uCsim.cmd: inserted "state" to report time
7245         * support/regression/ports/mcs51-stack-auto/spec.mk: no need to build the
7246           library, use the default one
7247         * support/regression/ports/mcs51-xstack-auto/spec.mk: inserted rules for
7248           building the library
7249
7250 2005-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
7251
7252         * config.dsp: added dependency on .version and configure_vc.awk
7253         * device/include/setjmp.h: updated for --stack-auto and --xstack
7254         * device/include/mcs51/at89c51snd1c.h: corrected line endings
7255         * device/include/mcs51/XC866.h: added, thanks Llewellyn van Zyl
7256         * device/lib/_setjmp.c: updated for --stack-auto and --xstack
7257         * device/lib/libsdcc.lib: added _setjmp
7258         * src/SDCCast.c (createIvalCharPtr): fixed warnings,
7259           (decorateType): fixed bug 1372851,
7260           (optimizeGetHbit): fixed warning
7261         * src/SDCCglue.c (printIvalChar, printIvalArray): adapted for flexible
7262           array initialisation
7263         * support/regression/tests/bug1057979.c: added test for bug 1358192
7264         * support/regression/tests/setjmp.c: added, test for setjmp/longjmp
7265
7266 2005-12-03 Borut Razem <borut.razem AT siol.net>
7267
7268         * support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
7269           command since the NSIS was upgraded to version 2.11 on CF x86-linux2
7270
7271 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
7272
7273         * src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr,
7274         createIval): implement symbol independant "flexible array member",
7275         (createIvalCharPtr): implemented flexible array initialisation with a
7276         string
7277         * src/SDCCsymt.c (copyStruct): removed,
7278         (getSize): fixed misleading comment,
7279         (getAllocSize): removed, the additional allocation size is now in
7280         sym->flexArrayLength,
7281         (checkStructFlexArray): new, syntax checks for flexible array members,
7282         (compStructSize): added syntax checks for "flexible array members"
7283         (copyStruct): removed,
7284         (copyLinkChain): removed inefficient fix for bug 770487
7285         * src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
7286         * src/SDCCsymt.h: added structdef.b_flexArrayMember and
7287         symbol->flexArrayLength
7288         * src/SDCCerr.c,
7289         * src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY,
7290         E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
7291         * support/regression/tests/structflexarray.c: added
7292         * support/valdiag/tests/structflexiblearray.c: added
7293
7294 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
7295
7296         * src/SDCCast.c (decorateType): fixed bug 1368489
7297         * support/Util/SDCCerr.c,
7298         * support/Util/SDCCerr.h: added warning W_CMP_SU_CHAR
7299
7300 2005-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7301
7302         * device/include/mcs51/at89c51snd1c.h: added file submitted by
7303           Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001
7304
7305 2005-11-27 Borut Razem <borut.razem AT siol.net>
7306
7307         * support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
7308           support/cpp2/mkdeps.h: added command line option
7309           -obj-ext=<extension> to SDCPP to define object file externion, used
7310           for generation of make dependencies (-M)
7311         * src/SDCCmain.c: pass -obj-ext=<extension> to SDCPP
7312
7313 2005-11-26 Borut Razem <borut.razem AT siol.net>
7314
7315         * support/scripts/sdcc.nsi: added small-stack-auto libraries,
7316           added missing device/lib/mcs51/crt*.asm, pic and pic16 sources,
7317           added pic and pic16 libraries
7318
7319 2005-11-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7320
7321         * device/include/float.h: Corrected typo in prototype of __fsgt
7322
7323 2005-11-25 Borut Razem <borut.razem AT siol.net>
7324
7325         * sdcc/device/lib/Makefile.in, sdcc/device/lib/incl.mk:
7326           added creation of model-mcs51-stack-auto libraries
7327
7328 2005-11-24 Bernhard Held <bernhard AT bernhardheld.de>
7329
7330         * src/SDCCsymt.c (copyLinkChain): fixed bug 770487, copy structdef
7331         and fields-list too
7332         * src/SDCCast.c (createIvalArray): removed obsolete comment
7333
7334 2005-11-24 Borut Razem <borut.razem AT siol.net>
7335
7336         * sdcc/device/lib/Makefile.in: remove all unnecessary files, 2nd try...,
7337           added missing device/lib/mcs51/crt*.asm sources
7338
7339 2005-11-23 Bernhard Held <bernhard AT bernhardheld.de>
7340
7341         * src/SDCCast.c (createIvalCharPtr): fixed bug 1348271
7342
7343 2005-11-22 Maarten Brock <sourceforge.brock AT dse.nl>
7344
7345         * device/lib/_fs2schar.c,
7346         * device/lib/_fs2sint.c,
7347         * device/lib/_fs2slong.c: optimized inline asm
7348
7349 2005-11-21 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7350
7351         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
7352           Better handling of floats between -1.0 and 0.0.
7353
7354 2005-11-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7355
7356         * src/mcs51/peeph.def: added missing "if"s as noted by Hubert Sack.
7357           (the missing "if"s prohibited removal of redundant labels)
7358
7359 2005-11-19 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7360
7361         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
7362           Properly convert floats between -1.0 and 0.0 to long, int, and char
7363           types (max integer value of negative floats tends to zero).
7364         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
7365           Removed changes made so to work properly with floats between
7366           -1.0 and 0.0, as the problem is fixed in _fs2slong.c, _fs2sint.c,
7367           and _fs2char.c
7368
7369 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
7370
7371         * src/SDCCcse.c (ReplaceOpWithCheaperOp): minor fix for debugging only
7372         * src/mcs51/gen.c (genUnpackBits): better code and a fix,
7373         (genCast) cosmetic change
7374         * src/ds390/gen.c (genUnpackBits, ): ported from mcs51
7375         * src/ds390/ralloc.c (packRegsForAssign): ported fix for bitfields
7376         from mcs51
7377         * support/regression/tests/bitfields (testSignedBitfields): added
7378
7379 2005-11-18 Borut Razem <borut.razem AT siol.net>
7380
7381         * sdcc/device/lib/Makefile.in: remove all unnecessary files
7382         * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
7383           introduced SILENT option to make building of pic16 libraries less
7384
7385 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7386
7387         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
7388           Now they work properly with floats between -1.0 and 0.0
7389         * device/lib/printf_large.c: Removed temporary patch for bug 1358192
7390
7391 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
7392
7393         * src/SDCCicode.c (printOperand): added missing else
7394
7395 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
7396
7397         * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
7398         reformatted for better readability
7399         * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
7400         signed bitfields
7401
7402 2005-11-17 Borut Razem <borut.razem AT siol.net>
7403
7404         * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
7405           introduced SILENT option to make building of pic16 libraries less
7406           verbose - used for nightly snapshot build
7407         * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
7408           available on Win32 platforms.
7409         * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
7410           medium, large, pic and pic16
7411
7412 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7413
7414         * device/lib/printf_large.c: Temporary patch for bug 1358192:
7415           printf("%f"...) sets fraction to zero.
7416
7417 2005-11-16 Raphael Neider <rneider AT web.de>
7418
7419         * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
7420           fixes #1357221
7421         * src/pic/gen.c (genIfx): implemented for CARRY bit
7422         * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
7423           to generic pointers, fixes #1357332,
7424           (pic16_movLit2f): NEW,
7425           (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
7426
7427 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
7428
7429         * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
7430
7431 2005-11-11 Raphael Neider <rneider AT web.de>
7432
7433         * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
7434         * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
7435           compute pointer's type from operand,
7436           (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
7437           improved single bit reads, fixes bug #1353379
7438
7439 2005-11-09 Borut Razem <borut.razem AT siol.net>
7440
7441         * support/scripts/sdcc.nsi: added lib/pic to the package
7442
7443 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
7444
7445         * src/SDCCval.c (valUnaryPM): fixed bug 1350699
7446
7447 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
7448
7449         * support/regression/tests/bug1348008.c: added
7450         * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
7451         * support/regression/tests/bug1337835.c: updated comment
7452
7453 2005-11-06 Borut Razem <borut.razem AT siol.net>
7454
7455         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
7456           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
7457           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
7458           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
7459           sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
7460           dynamic construction of cl_error_class and derivates - 2.nd try
7461
7462 2005-11-05 Borut Razem <borut.razem AT siol.net>
7463
7464         * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
7465           bug, which caused Bus Errors on sparc solaris
7466
7467 2005-11-04 Borut Razem <borut.razem AT siol.net>
7468
7469         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
7470           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
7471           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
7472           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
7473           sim/ucsim/cmd.src/cmdconf.cc: dynamic construction of cl_error_class
7474           and derivates to resolve the initialization problem on OSX
7475
7476 2005-11-02 Borut Razem <borut.razem AT siol.net>
7477
7478         * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
7479           corrected typo - #include <winsock2.h>
7480
7481 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
7482
7483         * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
7484           (_asxxxx_mapping): added org directive for future enhancements
7485
7486 2005-11-01 Borut Razem <borut.razem AT siol.net>
7487
7488         * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
7489           enabled sockets on WIN32
7490         * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
7491
7492 2005-10-31 Borut Razem <borut.razem AT siol.net>
7493
7494         * support/regression/generate-cases.py: escape backslashes in {testcase}:
7495           WIN32 backslash path delimiters should be escaped when used in C strings
7496         * support/regression/tests/bitfields.c: exclude failing assertions for
7497           __CYGWIN32__ and __MINGW32__ hosts
7498
7499 2005-10-30 Borut Razem <borut.razem AT siol.net>
7500
7501         * src/SDCCutil.c: corrected double comparison typo
7502
7503 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
7504
7505         * device/lib/medium/Makefile: added for new memory model medium
7506         * device/include/asm/mcs51/features.h: updated for medium/pdata
7507         * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
7508           added Multiply & Accumulate sbit's and MAC0_PAGE define
7509         * device/include/mcs51/c8051f300.h: added sfr16 definitions
7510         * device/include/mcs51/c8051f310.h: added sfr16 definitions
7511         * device/lib/_mullong.c: update for medium model
7512         * device/lib/incl.mk: added medium model
7513         * doc/sdccman.lyx: documented medium model
7514         * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
7515         * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
7516         * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
7517         * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
7518           (allocParms): set SCLS and OCLS to pdata for medium model
7519         * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
7520           for pdata,
7521           (powof2): return <0 if not power of 2
7522         * src/avr/gen.c (genBitWise): use updated powof2
7523         * src/mcs51/gen.c (genMinusDec): use acc if necessary,
7524           (shiftR2Left2Result): small optimization in setup, save acc when storing,
7525           (shiftLLeftOrResult): use B if necessary
7526         * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
7527         * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
7528         * src/pic/main.c (_pic14_do_link): made void parameter list explicit
7529         * support/regression/Makefile.in: added test-mcs51-medium
7530         * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
7531
7532 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
7533
7534         * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
7535         specifier unsigned
7536         * device/lib/time.c (mktime): fixed bug 1334315
7537
7538 2005-10-28 Raphael Neider <rneider AT web.de>
7539
7540         * device/include/pic/p16f_common.inc: added common declarations
7541         * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
7542
7543 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
7544
7545         * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
7546           (aopPutUsesAcc): added to predict accumulator use,
7547           (assignResultValue): save acc if necessary,
7548           (genMinusDec): store result if indirectly addressed,
7549           (genDivOneByte):  save acc if necessary,
7550           (movLeft2Result): bugfix if left already in acc,
7551           (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
7552             attention to accumulator use (esp. pdata),
7553           (genReceive): receive pdata correctly
7554         * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
7555         * src/SDCCicode.h: added isOperandInPagedSpace prototype
7556
7557 2005-10-27 Raphael Neider <rneider AT web.de>
7558
7559         * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
7560
7561 2005-10-27 Raphael Neider <rneider AT web.de>
7562
7563         * .version: changed version to 2.5.4
7564         * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
7565         * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
7566           (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
7567             arithmetics support routines
7568         * device/lib/pic/Makefile.rules: have assembler sources preprocessed
7569         * device/lib/Makefile.in: also create installdir for pic
7570
7571         * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
7572           pic14 port as well
7573         * src/pic/device.c (dump_sfr): rewritten to delegate register
7574           placement to the linker (use `extern sym' rather than sym EQU addr),
7575           (validAddress): fixed to check last specified address
7576         * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
7577           (popGetLit): truncate literal value to 8 bit,
7578           (popGet): moved assert to more appropriate place
7579           (popGetExternal): create pCode operand from and mark the according
7580             symbol as being `extern'
7581           (popGetAddr): added sanity check on immediate's offset, provide
7582             GPOINTER tag on demand
7583           (aopPut): fixed for immediates,
7584           (mov2w_op): move operand's address or contents to WREG (depending on
7585             operand type), safer variant of mov2w,
7586           (movwf,call_libraryfunc): NEW, handy abbreviations,
7587           (get_argument_pcop,get_return_val_pcop,pass_argument,
7588           get_returnvalue): interface for accessing function parameters and
7589             return values,
7590           (assignResultValuei,genRet): use new parameter/return value interface
7591           (pic14_getDataSize): back to old version handling generic pointers,
7592           (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
7593             provided implementation and/or fixed old one,
7594           (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
7595             calls, removed legacy 8051 reference code
7596           (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
7597           (loadSignToC): NEW, move the operands sign bit to CARRY,
7598           (genGenericShift): NEW, replaces genLeftShift, genRightShift and
7599             genRightShiftSigned, accepts negative shift counts,
7600           (setup_fsr): load FSR and adjust IRP (indirect memory access),
7601           (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
7602             generic pointers, __data pointers and __code pointers,
7603           (genUnpackBits,genPackBits): rewritten to work with generic pointers
7604             and signed bitfields, limit bitfields to 8 bit,
7605           (genDataPointerGet): fixed number of bytes read,
7606           (genGenPointerGet,genConstPointerGet): fixed bitfield access,
7607           (genPointerGet,genPointerSet): fixed handling of __code pointers,
7608             pointers to constant data are no longer assumed to point to __code
7609             space, removed invalid pointer types,
7610           (bitpatternFromVal): retrieve the PICs representation of an integer
7611             or float literal,
7612           (genDataPointerSet): fixed assigning to po_immediate operands,
7613           (genGenPointerSet): implemented as library call,
7614           (genIfx): fixed incorrect condition,
7615           (genAddrOf): limit generic pointers' addresses to 2 bytes,
7616             provide GPOINTER tag according to destination's storage class,
7617           (genCast): added code to handle casting to generic pointers, added
7618             sign-/zero extension of the result
7619           (aop_isLitLike,op_isLitLike): fixed handling of immediates
7620         * src/pic/gen.h: added macros to access IRP bit in STATUS register
7621         * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
7622           extend the result
7623         * src/pic/glue.c (is_shared_address,is_shared): check whether a given
7624           address/register resides in the shared banks
7625           (emitSymbolToFile): improved to handle global and `pinned' symbols,
7626             put all variables into separate sections (have the linker arrange
7627             them)
7628           (picglue): put init code and interrupt handlers in separate sections
7629         * src/pic/main.c: added port specific options table, modified to PORT
7630           structure to make GPOINTERs 3 byte, added pic14_options
7631           (_pic14_do_link): private linking routine (update paths to libraries,
7632             add libsdcc.lib by default)
7633         * src/pic/main.h: declare pic14_options
7634         * src/pic/pcode.c: fixed instructions i/o relations,
7635           (RegCond): reverted to correct version,
7636           (newpCodeOpLit): truncate literals to 8 bit,
7637           (genericPrint): added debug output,
7638           (getRegFromInstruction): fixed for various operand types, simplified
7639           (BuildFlow): fixed broken handling of isntructions with labels
7640           (LinkFlow): start at last instruction in flow (skip trailing comments),
7641             pass the flow on to the next instruction after CALL
7642           (pCodeReplace): NEW, replace a pCode and move meta data to the new one
7643           (insertPCodeInstruction): fixed inserting after a skip instruction,
7644           (DoBankSelect): fixed for labeled instructions
7645           (OptimizepBlock): honor --nopeep switch
7646           (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
7647         * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
7648         * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
7649           (pCodeOptime2pCodes): allow disabling this optimization via
7650             --no-pcode-opt due seldomly occuring bugs, fixed some conditions
7651             but is still buggy), started implementation of a dataflow based
7652             pCode optimization (CSE + dead code elimination)
7653           (pCodeRegMapLiveRangesInFlow): removed bogus inCond
7654         * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
7655           names are independant of the stack location and therefore portable across
7656           devices
7657
7658 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
7659
7660         * src/mcs51/ralloc.c (bitType): added to detect bit variables,
7661           (selectSpil): fixed bug 1337835 by not spilling bit variables
7662         * support/regression/tests/bug1337835.c: added test for this bug
7663         * src/mcs51/peeph.def: restart after rule 3.c,
7664           addded rules 263.x to optimize loading constants
7665
7666 2005-10-26 Raphael Neider <rneider AT web.de>
7667
7668         * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
7669         * src/pic16/gen.c (genUnpackBits): support signed bitfields,
7670           (genAssign): emit warning when casting literals to generic pointer
7671             type, also applies when taking the address of a fixed variable,
7672           (genCast): improved casting to generic pointers
7673         * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
7674           extern variables, added verbose error message
7675         * device/include/pic16/{string.h,errno.h}: added #pragma library c
7676
7677 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
7678
7679         * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
7680         carry must be complemented too
7681         * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
7682         could be emitted by genMinus
7683         * src/SDCCval.c (constVal): fixed bug 1305065
7684
7685 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
7686
7687         * src/SDCCast.c (addCast): added promotion for bit variables
7688         (decorateType): emit W_COMPLEMENT before the problem vanishes behind
7689         promotion casts + optimisation
7690         (optimizeGetWord): fix warning 'i' might be used uninitialized
7691         * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
7692         * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
7693
7694 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
7695
7696         * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
7697         all chars are promoted to int; promotion should be handled in SDCCast.c
7698
7699 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7700
7701         * device/lib/_strcmp.c: Fixed bug 1326457
7702
7703 2005-10-11 Raphael Neider <rneider AT web.de>
7704
7705         * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
7706         * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
7707
7708 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
7709
7710         * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
7711         * support/regression/tests/sfr16.c: added test for the sfr32 bug
7712
7713 2005-10-04 Raphael Neider <rneider AT web.de>
7714
7715         * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
7716           device/lib/pic16/pics.all: added pic18f1320
7717         * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
7718
7719 2005-09-30 Raphael Neider <rneider AT web.de>
7720
7721         * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
7722         * src/pic16/devices.inc: NEW, provides device descriptions
7723         * src/pic16/gen.c (genInline): fixed handling of ';'-comments
7724
7725 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
7726
7727         * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
7728           GETHBIT
7729
7730 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
7731
7732         * doc/sdccman.lyx: updated Highest Order Bit documentation,
7733           documented Any Order Bit, Higher Order Byte and Higher Order Word
7734         * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
7735         * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
7736           (optimizeGetAbit): new, to get any bit, not only the high bit,
7737           (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
7738           (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
7739           (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
7740           (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
7741             RIGHT_OP: also try GETBYTE, GETWORD optimization,
7742             GETABIT, GETBYTE, GETWORD: decorate them,
7743           (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
7744           (ast_print): added GETABIT, GETBYTE, GETWORD
7745         * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
7746         * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
7747           (geniCodeBinary): new generic binary icode,
7748           (ast2iCode): added GETABIT, GETBYTE, GETWORD
7749         * src/port.h: updated comment for PORT.hasExtBitOp
7750         * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
7751           (genGetByte): new, to get a single byte,
7752           (genGetWord): new, to get a word from a long,
7753           (gen51Code): added GETABIT, GETBYTE, GETWORD
7754         * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
7755
7756 2005-09-23 Raphael Neider <rneider AT web.de>
7757
7758         * configure.in, configure: have device/lib/pic configured
7759         * device/lib/Makefile.in: added model-pic14
7760         * device/lib/clean.mk: added pic/ to clean rule
7761         * device/lib/pic: added rudimentary pic14 library providing support
7762           functions for multiplication/division/generic pointer access
7763         * src/SDCCopt.c (convilong): mark support functions as extern
7764           for pic14 port as well
7765         * src/pic/gen.c (genMult): added assertions,
7766           (genpic14Code): emit warning on unhandled iCodes
7767         * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
7768         * src/pic/pcode.c (pCodeOpCopy),
7769         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
7770           pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
7771           SFR_REGISTER}), made safe for future extensions
7772         * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
7773           instructions even if preceeded by SKIP instructions (also remove
7774           them); removed unused code
7775         * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
7776           prevents leaving parts of the structure uninitialized after copying
7777
7778 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
7779
7780         * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
7781           ago by me
7782         * support/regression/tests/addsub.c: added test for the bug
7783
7784 2005-09-21 Raphael Neider <rneider AT web.de>
7785
7786         * device/include/pic16/pic18f1220.h,
7787           device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
7788         * device/lib/pic16/Makefile.rules: added missing opening paren
7789         * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
7790           are provided in genutils.c,
7791           (genUminusFloat,genUminus,genCmpEq): added asserts on different
7792           operand/result sizes,
7793           (genCmp): assert on NULL pointers first, then check deref'ed values
7794         * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
7795           result size
7796
7797 2005-09-18 Raphael Neider <rneider AT web.de>
7798
7799         * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
7800           as these are now unused,
7801           (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
7802         * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
7803           local, avoids uninitialized pointer dereference on r->name
7804         * src/pic16/ralloc.c (newReg): fixed indentation
7805
7806 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
7807
7808         * src/SDCCval.c (constVal): fixed bug 730366
7809         * support/Util/SDCCerr.c,
7810         * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
7811
7812 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
7813
7814         * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
7815
7816 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
7817
7818         * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
7819
7820 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
7821
7822         * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
7823           (hex2dec): made hex_digit unsigned char, removed ascii dependance
7824         * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
7825           (hex2dec): made hex_digit unsigned char, removed ascii dependance
7826         * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
7827         * packihx/packihx.c (hexDigit): made c unsigned char
7828         * as/mcs51/lklibr.c (fndsym),
7829         * link/z80/lkgb.c (gb),
7830         * link/z80/lklibr.c (fndsym),
7831         * link/z80/lkrloc.c (relr),
7832         * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
7833         * src/SDCC.lex (checkCurrFile, process_pragma),
7834         * src/SDCCglue.c (spacesToUnderscores),
7835         * src/SDCCmain.c (setParseWithComma, processFile),
7836         * src/asm.c (tvsprintf, printCLine),
7837         * src/avr/gen.c (emitcode, aopPut),
7838         * src/ds390/gen.c (emitcode),
7839         * src/hc08/gen.c (emitcode, emitinline),
7840         * src/mcs51/gen.c (emitcode, genInline),
7841         * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
7842           tokenizeLineNode),
7843         * src/pic/ralloc.c (debugLog),
7844         * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
7845           tokenizeLineNode),
7846         * src/pic16/ralloc.c (debugLog),
7847         * src/z80/main.c (_process_pragma):
7848            made all ctype.h function calls safe
7849         * src/SDCCopt.c: include math.h for fabs
7850         * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
7851           and used them throughout the code to make ctype.h function calls safe
7852         * src/ds390/main.c (asmLineNodeFromLineNode),
7853         * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
7854         * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
7855            unsigned char*
7856         * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
7857           (newpCodeAsmDir): made ctype.h function calls safe
7858         * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
7859           pic16_emitcode):  made lbp unsigned char*
7860         * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
7861           (pic16_newpCodeAsmDir): made ctype.h function calls safe
7862         * src/xa51/gen.c (emitcode),
7863         * src/z80/gen.c (_emit2): made lbp unsigned char*
7864         * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
7865            char*
7866
7867 2005-09-05 Raphael Neider <rneider AT web.de>
7868
7869         * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
7870           access bank splitpoint
7871
7872 2005-09-05 Raphael Neider <rneider AT web.de>
7873
7874         * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
7875
7876 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
7877
7878         * .version: changed to version 2.5.3
7879         * doc/sdccman.lyx: changed version to 2.5.3,
7880           documented --codeseg and --constseg and pragma codeseg and constseg,
7881           documented bit parameters (reentrant) and bit returning
7882         * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
7883            currFunc->recvSize, but is this ok for all ports?
7884           (ast2iCode): result of ~ on unsigned char must be cast to int for
7885            bool to work
7886         * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
7887           function pointers in bit space
7888         * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
7889           (processFuncArgs): call port.reg_parm() with reentrancy info
7890         * src/port.h,
7891         * src/avr/main.c,
7892         * src/ds390/main.c,
7893         * src/hc08/main.c,
7894         * src/pic/main.c,
7895         * src/pic16/main.c,
7896         * src/xa51/main.c,
7897         * src/z80/main.c: port.reg_parm prototype extended with
7898           "bool reentrant" parameter
7899         * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
7900           options.stackAuto for allocating bit register parameters
7901         * src/mcs51/gen.c (genNot): optimized complementing direct bit,
7902           (genSend): set BitBankUsed if it is,
7903           (selectRegBank): factored out of genCall for use in genPcall,
7904           (genCall): removed redundant dtype assignmen, use selectRegBank,
7905           (genPcall): handle returning in Carry properly, save in F0 if needed,
7906           (genReceive): handle bit register parameters
7907         * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
7908           (mcs51_assignRegisters): enable bit registers for all reentrant
7909            functions and don't set BitBankUsed unconditionally
7910         * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
7911         * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
7912         * support/regression/tests/funptrs.c: added tests for BOOL and for return
7913
7914 2005-08-27 Borut Razem <borut.razem AT siol.net>
7915
7916         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
7917         ppc-osx (Darwin) does not support -u option. It seems that it is
7918         supported only on Linux - GNU cp
7919
7920 2005-08-25 Borut Razem <borut.razem AT siol.net>
7921
7922         * sim/ucsim/gui.src/serio.src/Makefile.in,
7923           sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
7924           sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
7925           sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
7926           install and strip, since the strip at /usr/ccs/bin should be used
7927           on solaris
7928
7929 2005-08-24 Borut Razem <borut.razem AT siol.net>
7930
7931         * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
7932
7933 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
7934
7935         * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
7936         ffffffffu
7937
7938 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
7939
7940         * as/mcs51/aslink.h: completed lkrloc.c prototypes
7941         * as/mcs51/lkmain.c (link_main): fixed warning
7942         * device/include/stdbool.h: ds390 has no advanced bit support yet
7943         * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
7944         * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
7945         * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
7946           and updated their macros
7947         * src/SDCCval.c (constVal): updated comment for renamed b_long
7948
7949 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
7950
7951         * as/mcs51/asdata.c: changed ctype['['] to BINOP
7952         * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
7953           (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
7954           (oprio): set priority for '['
7955         * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
7956            and adb_24_bit
7957         * as/mcs51/asm.h: added defines R_BIT and S_BIT
7958         * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
7959         * as/mcs51/lkdata.c: changed ctype['['] to BINOP
7960         * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
7961           added overlayable BIT_BANK area
7962         * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
7963           (summary2): explain 'T' in legenda
7964         * as/mcs51/lkrloc.c: replaced old K&R style,
7965           (relr): added R_BIT processing,
7966           (errmsg): added "Bit-addressable relocation error",
7967           (adb_bit): added for converting from byte- to bit-addressable space,
7968           (adb_24_bit): added for converting from byte- to bit-addressable space
7969         * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
7970            used in reentrant functions now even as return value
7971         * device/lib/_gptrput.c (_gptrput): removed obsolete code
7972         * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
7973           (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
7974         * src/SDCCglobl.h: added indicator BitBankUsed
7975         * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
7976            the bit registers b0-b7
7977         * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
7978           (geniCodeCast): fixed bug 1263853,
7979           (geniCodeLogicAndOr): put result in bool or char,
7980           (geniCodeReceive): added parameter func for accessing the return type,
7981           (geniCodeFunctionBody): pass func to geniCodeReceive
7982         * src/SDCCmain.c: added indicator BitBankUsed
7983         * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
7984         * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
7985           (checkSClass): don't put automatic bool/bit on stack,
7986           (checkFunction): removed check on function cannot return bit
7987         * src/SDCCsymt.h: added newBoolLink prototype
7988         * src/mcs51/gen.c (rb1regs): added bit registers,
7989           (movc): created for assigning to carry,
7990           (pushReg, popReg): created for pushing registers,
7991           (sameRegs): check both AOP_REG and AOP_CRY types,
7992           (aopOp): handle bit registers,
7993           (aopPut): optimization no self-assign,
7994           (saveRegisters): push reg->base (bits) only once for bit registers,
7995            and use pushReg,
7996           (unsaveRegisters): pop reg->base only once and use popReg,
7997           (assignResultValue): added parameter func and return in carry for bits,
7998           (genIpush): optimization no reload in A if not changed,
7999           (genSend): bit parameters in reentrant functions are passed in bit
8000            registers by first assigning to bits in B, then save registers and
8001            copy B to bits,
8002           (genCall): handle returning in Carry properly, save it in F0 if needed,
8003           (genPcall): updated assignResultValue call, this is not safe yet for bit
8004            returning function !!!
8005           (genFunction): don't generate equ's for bit registers and use pushReg,
8006           (genEndFunction): take care of bit returning functions and use popReg,
8007           (genRet): return bit in Carry,
8008           (genIfx): optimize bit registers and other directly addressable bits,
8009           (genReceive): updated assignResultValue call
8010         * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
8011           (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
8012            registers when using stack-auto
8013         * src/mcs51/ralloc.c (_G): added allBitregs,
8014           (regs8051): added the bit registers,
8015           (createStackSpil): use macro IS_BIT,
8016           (getRegBit): added to allocate a bit register, else spill,
8017           (getRegBitNoSpil): added to allocate a bit register, else a gpr,
8018           (updateRegUsage): factored out to ease stepping while debugging,
8019           (serialRegAssign): use updateRegUsage, only spill bits if necessary,
8020            also allocate bit registers,
8021           (fillGaps): handle bit registers,
8022           (findAllBitregs): added to create bit vector with all bit registers,
8023           (mcs51_allBitregs): returns this bit vector,
8024           (mcs51_assignRegisters): when using stack-auto use bit registers for
8025            passing parameters and creating local variables
8026         * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
8027
8028 2005-08-22 Borut Razem <borut.razem AT siol.net>
8029
8030         * device/lib/Makefile.in: replaced find option -or with -o
8031           to make it run on solaris
8032
8033 2005-08-22 Raphael Neider <rneider AT web.de>
8034
8035         * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
8036           fixes #1265442 (crash on Solaris)
8037
8038 2005-08-20 Borut Razem <borut.razem AT siol.net>
8039
8040         * configure, configure.in: added tests for libsocket and libnsl libraries,
8041           requred by sdcdb on sparc-solaris; generate support/regression/Makefile
8042           from support/regression/Makefile.in
8043         * support/regression/Makefile.in: added
8044         * device/lib/pic16/Makefile.common.in: force make to use bash shell
8045         * sim/ucsim/libtool: regenerated on sparc-solaris
8046         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
8047           sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
8048           sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
8049           -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
8050           sparc-solaris, which doesn't use GNU ld linker
8051         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
8052         * as/Makefile: find on sparc-solaris does not support -maxdepth option
8053
8054 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
8055
8056         * src/mcs51/peeph.def: updated comments
8057
8058 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8059
8060         * device/lib/_gptrget.c,
8061         * device/lib/_gptrput.c: slightly shorter
8062         * doc/sdccman.lyx: incremented version
8063         * src/mcs51/peeph.def: moved peephole comments to the line of first
8064           change to better keep line correlation, reanimated 186.e
8065         * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
8066
8067 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
8068
8069         * src/pic/pcode.c : Pasted ".line" assembly directives patch from
8070           David Saxton with quotes around file name.
8071
8072 2005-08-15 Borut Razem <borut.razem AT siol.net>
8073
8074         * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
8075           support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
8076           support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
8077           make tests run on x86_64 platform
8078
8079 2005-08-13 Raphael Neider <rneider AT web.de>
8080
8081         * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
8082           as it might be executed DURING a build (parallel make is wonderful)
8083
8084 2005-08-13 Raphael Neider <rneider AT web.de>
8085
8086         * device/lib/Makefile.in (port-specific-objects-pic16):
8087           revert to cp $(PORT)/bin/*.* $(PORTDIR)
8088         * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
8089           dependency
8090         * device/lib/pic16/Makefile.rules: build subdirs before creating
8091           the library, removed builddir rule, create $(builddir) early in
8092           recurse rule, use empty recurse rule for leaf directories
8093         * device/lib/pic16/Makefile.subdir: added phony targets, ignore
8094           mkdir errors (race condition), removed duplicate suffix "hex"
8095           from clean rules
8096         * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
8097         * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
8098           prevents mkdir -p from aborting on Alpha
8099
8100 2005-08-12 Raphael Neider <rneider AT web.de>
8101
8102         * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
8103           db-statements in order to allow for arrays of pointers in code
8104           sections to be placed without interspersed 0-padding, fixes
8105           bug #1256215
8106         * (emitStatistics): fixed division by zero for pic18f1220
8107         * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
8108           unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
8109         * (pic16_emitDS): respect DB_ITEMS_PER_LINE
8110         * (pic16_pCodeConstString): keep track of already emitted string
8111           literals to prevent "duplicate definitions of symbol _str_NR"
8112         * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
8113           debug message
8114         * device/lib/Makefile.in: ignore failing PIC16 library builds
8115         * device/lib/pic16/Makefile: do not build if gputils are missing
8116         * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
8117
8118 2005-08-10 Raphael Neider <rneider AT web.de>
8119
8120         * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
8121           my last commit)
8122
8123 2005-08-10 Raphael Neider <rneider AT web.de>
8124
8125         * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
8126           Rokas' patch to add the new fixed point type "__fixed16x16"
8127         * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
8128           functions for __fixed16x16 arithmetics
8129         * device/lib/pic16: reimplemented the build system to support
8130           a separate build directory, better handling of libio (create
8131           the library in a separate subdir for each architecture) and
8132           easier configuration (centralized in Makefile.common)
8133
8134 2005-08-07 Raphael Neider <rneider AT web.de>
8135
8136         * src/pic16/gen.c (genrshTwo): fixed sign extension
8137         * src/pic16/device.c: added pic18f2320, 4220 and 4320
8138         * device/include/pic16/pic18f2220.h: changed some bit definitions,
8139           added T0CONbits
8140         * device/include/pic16/pic18f4220.h: NEW, header for
8141           pic18f4220 and pic18f4320
8142         * device/include/pic16/pic18fregs.h: added new devices,
8143           embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
8144         * device/include/pic16/signal.h: resolved name clashes
8145           on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
8146           to also allow testing for interrupt enable bits, added
8147           comments on how to use the macros
8148         * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
8149         * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
8150           register definitions for the devices
8151         * device/lib/pic16/pics.all: added new devices
8152         * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
8153           allocated memory
8154         * device/lib/pic16/libc/stdlib/memfree: do not count
8155           the block header as free memory
8156         * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
8157           simplified and added missing end-of-blocklist-marker
8158           (reported by Peter Onion, fixes #1252814)
8159         * (_mergeHeapBlock): fixed loop condition
8160         * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
8161           len==0, restructured code
8162         * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
8163           up a bit, reduced bitfield accesses, prevent endless loops
8164           in case of heap corruption
8165         * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
8166           "unreferenced arguments/must return a value" warnings
8167         * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
8168           replaced BAUDREG with SPBRG
8169         * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
8170           device/lib/pic16/debug/gstack/gstack.c: replaced
8171           _naked, _asm, _endasm with __naked, __asm, __endasm
8172
8173 2005-08-05 Raphael Neider <rneider AT web.de>
8174
8175         * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
8176           AOP_PCODE operands, fixes multibyte union-bitfield-accesses
8177
8178 2005-08-05 Borut Razem <borut.razem AT siol.net>
8179
8180         * device/lib/Makefile.in: added missing ';'
8181         * configure: removed ^M characters
8182
8183 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8184
8185         * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
8186           device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
8187           License
8188
8189 2005-08-04 Borut Razem <borut.razem AT siol.net>
8190
8191         * configure.in: pic16 libraries build 2nd try - enable running
8192           configure in device/lib/pic16
8193         * configure: regenerated from configure.in
8194         * device/lib/Makefile.in: create $(PORT)/bin directory
8195
8196 2005-08-03 Raphael Neider <rneider AT web.de>
8197
8198         * src/pic16/gen.c (pic16_derefPtr): NEW, single place
8199           to get/set values via pointers
8200         * (genUnpackBits,genPackBits): changed detection of
8201           ptr->bitfield vs. sym.bitfield, fixed access via generic
8202           pointers, removed dead (wrong) code for multibyte bitfields
8203         * (genNearPointerGet, genGenPointerGet): removed useless code,
8204           fixed bitfield detection, fixes #1250594
8205         * (genNearPointerSet): removed useless code
8206         * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
8207           and introduced macro pic16_emitpcode that conditionally emits
8208           the origin of the following pCode (useful for debugging SDCC)
8209         * src/pic16/pcode.c: changed (and disabled) some debug outputs
8210         * (createDefmap): fixed handling of LFSR for --optimize-df
8211
8212 2005-08-02 Borut Razem <borut.razem AT siol.net>
8213
8214         * device/lib/Makefile.in: pic16 libraries build enabled since
8215           gputils-0.13.2 are now localy installed at sourceforge's compile farm
8216
8217 2005-08-02 Raphael Neider <rneider AT web.de>
8218
8219         * src/pic16/gen.c (genPackBits): removed deprecated warning
8220         * (genGenPointerSet): fixed bitfield detection
8221
8222 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8223
8224         * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
8225
8226 2005-07-31 Raphael Neider <rneider AT web.de>
8227
8228         * device/lib/pic16/libdev/pic18f458.c,
8229           device/include/pic16/pic18f458.h: added missing T0CONbits
8230
8231 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
8232
8233         * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
8234
8235 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
8236
8237         * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
8238
8239 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8240
8241         * device/include/mcs51/at89c51ed2.h: added.
8242
8243 2005-07-23 Raphael Neider <rneider AT web.de>
8244
8245         * src/pic/gen.h: added emitpcode macro for debugging
8246         * src/pic/gen.c (emitpcode): renamed to emitpcode_real
8247           and replace by macro adding debug information on demand
8248         * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
8249         * (gencjne): tried to fix; replaced with correct (slower) code
8250         * (gen{Unp,P}ackBits): fixed single bit access
8251         * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
8252         * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
8253           previous instruction
8254         * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
8255           register has to be handled with care (forbidding movement
8256           of assignments/uses, removing assignments completely, ...)
8257         * (pCodeOptime2pCodes): make use of regIsSpecial
8258         * added lots of debugging output (commented out)
8259         * src/pic/rallloc.c (deassignLRs): prevent operand registers
8260           from being reused as result UNLESS it is known to work
8261
8262 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
8263
8264         * support/Util/dbuf.h: include <stddef.h> for size_t
8265         * .version: changed to version 2.5.2
8266
8267 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8268
8269         * src/SDCCloop.c (loopInvariants): fixed bug #1234048
8270
8271 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8272
8273         * src/hc08/gen.c (genMinus): fixed bug #1241835,
8274           (genModOneByte): removed needless psha/pula
8275
8276 2005-07-22 Raphael Neider <rneider AT web.de>
8277
8278         * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
8279           have PIC14 handled like PIC16, fixes broken pic14 linker calls
8280         * src/pic/gen.c (resolveIfx): do not "invent" labels
8281         * (genSkipc): changed to positive logic
8282         * (genSkipCond): removed as no longer needed
8283         * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
8284           backport from PIC16
8285         * (genLeftShift): check operands are in different registers
8286         * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
8287           INCF does not update CARRY...
8288         * src/pic/main.c: fixed _linkCmd
8289         * src/pic/pcode.c (unlinkpCode): added inactive code
8290         * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
8291           alive (do not assign result and operand overlapping registers)
8292
8293 2005-07-22 Raphael Neider <rneider AT web.de>
8294
8295         * src/pic/device.c (dump_sfr): replaced register declaration with
8296           call to emitSymbolToFile() to avoid duplicate symbols
8297         * (assignRelocatableRegisters): do not declare external symbols
8298         * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
8299           right (take size of type, not etype)
8300         * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
8301         * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
8302         * (packRegsForAccUse): disabled assignment of WREG as
8303           the result reg to prevent occurence of just fixed #1235003,
8304           fixes #1242954
8305         * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
8306           symbols (avoids duplicate symbols in .asm file)
8307         * (pic14emitRegularMap): use emitSymbolToFile()
8308         * src/pic/gen.c (aopOp): fixed spillLocation handling
8309         * (gen{Unp,P}ackBits): fixed acquiring bit-operands
8310         * (genDataPointerSet): removed unneccessary variables/output
8311
8312 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
8313
8314         * as/mcs51/lkarea.c: enlarged codemap for banked memory
8315         * device/lib/mcs51/crtbank.asm: added # to 0x0F
8316
8317 2005-07-21 Raphael Neider <rneider AT web.de>
8318
8319         * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
8320           architecture cannot handle them efficiently, fixes bug #1235003
8321         * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
8322           check for empty sets before using them (fixes bug #1232190)
8323
8324 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
8325
8326         * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
8327           (lnksect2): generate warnings for memory overlap
8328         * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
8329           constseg to set the name of these segments so you can instruct the linker
8330           to place them in banks
8331         * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
8332         * src/SDCCglobl.h: added MODEL_HUGE to enum,
8333           added code_seg and const_seg to options
8334         * src/SDCCglue.c (emitMaps): use options.const_seg,
8335           (createInterruptVect): put interrupt vectors in segment HOME,
8336           (glue): put HOME before static segment and put the main glue in HOME,
8337           (glue): use options.code_seg
8338         * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
8339         * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
8340           these segments so you can instruct the linker to place them in banks
8341           (linkEdit): use code_loc for HOME segment which should be the first
8342           segment in code memory now
8343         * src/SDCCmem.c: fixed more stuff like bug 1238386
8344         * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
8345           (changePointer): don't change function pointers to code pointers for
8346           banked functions,
8347           (compareType): added exceptional check for banked function pointers
8348         * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
8349         * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
8350           after static in code memory
8351         * src/mcs51/gen.c: added aopLiteralLong prototype,
8352           (aopForSym): use getSize for functions,
8353           (genCall): generate banked calls over one trampoline __sdcc_banked_call
8354           in HOME with lsb of address in r0, msb in r1 and bank in r2, use
8355           -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
8356           the segment,
8357           (genPcall): use call for literal function pointers and generate banked
8358           calls over the one trampoline so there's only one place for the user to
8359           modify according to his/hers hardware,
8360           (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
8361           (genPlusIncr): moved check icount>4 beyond inc dptr optimization
8362         * src/mcs51/main.c: added keyword banked,
8363           (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
8364         * support/Util/SDCCerr.c,
8365         * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
8366           needed for passing the bank and address to the trampoline
8367         * device/lib/mcs51/crtbank.asm: added for bankswitching
8368         * device/lib/mcs51/Makefile: added crtbank
8369
8370 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8371
8372         * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
8373           for fields at offset 0 of a struct or union as reported
8374           on 2005-07-07 in the developer mailing list.
8375
8376 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
8377
8378         * src/SDCCmem.c: fixed bug 1238386
8379
8380 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8381
8382         * src/mcs51/peeph.def: added labelrefcounting for peepholes
8383           (patch #1144962), added peephole 300, enabled 259.x
8384         * doc/sdccman.lyx: removed screenshot and provided link instead
8385
8386 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8387
8388         * doc/sdccman.lyx: added section about debugging with ddd
8389         * doc/figures/ddd_example.eps: screenshot of debugging session
8390
8391 2005-07-04 Raphael Neider <rneider AT web.de>
8392
8393         * src/pic/gen.c (genPointerGet): handle pointers to CONST values
8394           like CODE pointers, fixes #1115683
8395         * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
8396           call, fixes bugs #1232211, #1228110,
8397           fixed wrong casts to pCodeFlow from pCodeInstructions
8398
8399 2005-07-04 Raphael Neider <rneider AT web.de>
8400
8401         * src/pic/gen.c (popGet): changed assert to allow for
8402           bit operands
8403         * (popGetAddr): changed signature to provide
8404           an additional index, patched all call sites
8405         * (genCmpEq): handle literal-like operands correctly
8406         * (genAddrOf): added sanity checks on __code/__data pointers
8407         * (genAssign): added handling of symbols from __code section
8408         * (gencjne): do not generate code for comparisons whose result
8409           is neither stored nor used, fixes bug #1171114
8410         * (AccLsh, AccRsh): operate on operand instead of WREG
8411         * (shift{Left,Right}_Left2ResultLit): NEW, size independant
8412           replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
8413           by known count
8414         * rewrote complete shift-by-literal logic, commented unused
8415           functions out
8416         * (genConstPointerGet): get multiple bytes (if result size > 1),
8417           fixed handling of non-immediate addresses
8418         * (genPointerGet): handle CODE pointers like CONST pointers
8419         * (genpic14Code): insert C-SRC lines as Cource-pCodes
8420         * ({aop,op}_isLitLike): NEW, single place to decide whether an
8421           operand is to be treated as a literal or not
8422         * (mov2w,genPcall,genCmpEq),
8423           src/pic/genarith.c: use aop_isLitLike() to decide between
8424           literal/register contents
8425         * (addSign): added missing offset
8426         * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
8427           only emit comment in debug-mode,
8428           use {aop,op}_isLitLike throughout the file
8429         * src/pic/glue.c: fix initializers for pointers (work in progress)
8430         * src/pic/pcode.c (get_op): honor index on _const symbols
8431         * ({reset,dump}pCodeStatistics): NEW, estimate code size
8432         * (dumppBlock): added pCode size estimation
8433         * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
8434           check for IS_SYMOP before OP_SYMBOL'ing
8435         * fixed indentation, compacted switch-statements
8436         * (allocReg): find free register and allocate it instead of
8437           allocating new registers all the time
8438         * (deassignLRs): prevent POINTER_GET's from being assigned the same
8439           registers as its operands (necessary only for multibyte GETs)
8440
8441 2005-07-01 Raphael Neider <rneider AT web.de>
8442
8443         * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
8444           debugging .asm-output macros FENTRY + FEXIT
8445         * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
8446           way... I wonder...
8447         * (emitpComment): NEW, printf to pCode
8448         * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
8449           offset handling
8450         * (popGetAddr): NEW, variant of popGet to access an immediates
8451           high(er) bytes instead of the n'th byte of memory they reference,
8452           replaced popGet with popGetAddr where neccessary
8453         * (genDataPointerGet): reactivated and fixed implementation
8454         * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
8455           accesses
8456         * (genDataPointerSet): fixed multibyte assignments
8457         * (genpic14Code): fixed --i-code-in-asm handling
8458         * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
8459         * (genPlus): fixed index-out-of-bounds error
8460         * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
8461         * src/pic/ralloc.c: added debugging output macro FENTRY2
8462         * (spillThis): fixed indentation, enbraced for-body for clarity
8463         * (rematStr): commented out as now unused
8464         * (regTypeNum): commented out special spill case (overwrites
8465           arbitrary values)
8466         * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
8467
8468 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
8469
8470         * doc/sdccman.lyx: documented sfr16/sfr32,
8471           added example for using storage class with function pointers
8472         * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
8473
8474 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
8475
8476         * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
8477         * device/lib/_itoa.c,
8478         * device/lib/_ltoa.c: optimized codesize
8479         * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
8480           but don't know how to suppress the double warning.
8481         * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
8482         * support/Util/SDCCerr.c,
8483         * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
8484
8485 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
8486
8487         * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
8488           fixed old K&R prototypes
8489         * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
8490         * device/lib/_gptrget.c,
8491         * device/lib/_gptrgetc.c,
8492         * device/lib/_gptrput.c: changed versions for new memory indicator values,
8493           also new versions for small generic pointers and banked generic pointers
8494         * src/port.h: added const_name
8495         * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
8496         * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
8497         * src/SDCCcse.c (findPrevIc): check all associative operators
8498         * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
8499         * src/SDCCicode.h: added macro IS_ASSOCIATIVE
8500         * src/SDCCmem.c: updated comments,
8501           set far-space to 0 for pdata, results in optimized code
8502         * src/SDCCmem.h: added macro CONST_NAME
8503         * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
8504           moving the info into the highest bits, see also gptrget/gptrput
8505         * src/src.dsp: added sdcc.ico to project files
8506         * src/avr/gen.c (genCast): fixed bug 0x%d
8507         * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
8508         * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
8509           relation between ptr_type and DCL_TYPE,
8510           (genCast): fixed bug 0x%d
8511         * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
8512           (CODE)" for const_name
8513         * src/hc08/gen.c (genCast): fixed bug 0x%d
8514         * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
8515           (hc08_port): added "CONST (CODE)" for const_name
8516         * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
8517           (aopForRemat, adjustArithmeticResult): disconnected direct relation
8518           between ptr_type and DCL_TYPE,
8519           (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
8520           operand* and took AOP() inside function so sfr-ness can be checked,
8521           (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
8522           new prototype,
8523           (genFunction, genEndFunction): optimized stack setup,
8524           (genMinus): optimized for literals with ending zeroes (in bytes),
8525           (genCast): fixed bug 0x%d
8526         * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
8527           (mcs51_port): added "CONST (CODE)" for const_name
8528         * src/mcs51/peeph.def: made rule 226 more generic
8529         * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
8530         * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
8531         * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
8532         * src/z80/main.c (z80_port): added NULL for const_name,
8533           (gbz80_port): added NULL for const_name
8534         * support/regression/tests/bug663539.c,
8535         * support/regression/tests/sfr16.c: new tests
8536
8537 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8538
8539         * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
8540
8541 2005-06-24 Raphael Neider <rneider AT web.de>
8542
8543         * device/lib/pic16/libdev/pic18f[68][567]20.c:
8544           corrected typos...
8545         * device/include/pic16/signal.h: added USBIF
8546           and SIG_USB
8547
8548 2005-06-24 Raphael Neider <rneider AT web.de>
8549
8550         * device/lib/pic16/libdev/pic18f2455.c,
8551           device/include/pic16/pic18f2455.h: NEW
8552         * device/include/pic16/pic18fregs.h,
8553           device/lib/pic16/pics.all,
8554           src/pic16/device.c: added 18f2455
8555         * device/lib/pic16/libdev/pic18f[68][567]20.c,
8556           device/include/pic16/{pic18f[68][567].h,usart.h}:
8557           replaced MULTIPLE_USARTS define with more relaible
8558           compatibility sfrs (for USART access)
8559
8560 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
8561
8562         * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
8563           and the output asm file line is printed on two lines.
8564
8565 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8566
8567         * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
8568           BGT, BLE, BHI, and BLS instructions
8569         * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
8570           genCmpEq): removed
8571         * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
8572           negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
8573           fixes bug #1216342
8574         * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
8575
8576 2005-06-15 Raphael Neider <rneider AT web.de>
8577
8578         * src/pic16/NOTES: moved Vangelis from active developers to people to contact
8579         * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
8580         * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
8581           fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
8582           OP_SYM_TYPE() instead of OP_SYM_ETYPE()
8583
8584 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8585
8586         * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
8587           Marcel Telka in bug #1215704
8588
8589 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
8590
8591         * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
8592           located in shared memory bank.
8593
8594 2005-05-31 Raphael Neider <rneider AT web.de>
8595
8596         * src/pic16/{gen.c,genarith.c}: replaced sign-extension
8597           "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
8598           "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
8599
8600 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
8601
8602         * device/lib/_strncpy.c: fixed the fix
8603
8604 2005-05-26 Raphael Neider <rneider AT web.de>
8605
8606         * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
8607           initializers with \0, bug #1208187
8608         * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
8609           intializers with \0, bug #1208187
8610
8611 2005-05-26 Raphael Neider <rneider AT web.de>
8612
8613         * src/pic16/glue.c (pic16_printIvalChar): fixed string
8614           initializers with \0, bug #1208187
8615         * src/pic16/main.c (_process_pragma): added sanity checks
8616           for stack position and size, emit warnings when appropriate
8617
8618 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
8619
8620         * device/lib/_strncpy.c: fixed not filling with \0
8621
8622 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8623
8624         * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
8625           createFunction),
8626         * src/SDCC.y (external_definition, enumerator, parameter_declaration,
8627           compound_statement),
8628         * src/SDCCsymt.h,
8629         * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
8630
8631 2005-05-24 Raphael Neider <rneider AT web.de>
8632
8633         * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
8634
8635 2005-05-24 Raphael Neider <rneider AT web.de>
8636
8637         * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
8638           TRISE definitions, closes bug #1162453
8639
8640 2005-05-22 Raphael Neider <rneider AT web.de>
8641
8642         * src/pic16/main.c (_process_pragma): check for missing
8643           arguments to pragmas code and udata
8644         * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
8645           consistency fixes to match other headers (thanks to Jim Paris)
8646         * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
8647
8648 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
8649
8650         * src/SDCCicode.c (isOperandEqual): fixed missing ;
8651
8652 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
8653
8654         * support/regression/tests/bug1198642.c: new test
8655         * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
8656         * src/SDCCcse.c (findPrevIc): added comment, please have a look
8657         * support/scripts/resource.h,
8658         * support/scripts/resource.rc,
8659         * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
8660         * support/scripts/sdcc.ico: added 32x32 icon
8661
8662 2005-05-18 Raphael Neider <rneider AT web.de>
8663
8664         * device/lib/pic16/libdev/pic18f*.c,
8665         * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
8666           keywords to "__sfr" and "__at (X)"
8667         * device/include/pic16/pic18fregs.h: added pic18f4520
8668         * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
8669           #1203088 (MPLAB compatibility)
8670
8671 2005-05-17 Raphael Neider <rneider AT web.de>
8672
8673         * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
8674         * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
8675         * device/lib/pic16/pics.all: added new devices
8676         * src/pic16/device.c: added support for pic18f4520
8677
8678 2005-05-16 Raphael Neider <rneider AT web.de>
8679         * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
8680         * src/pic16/genarith.c (genAddLit): fixed bug 1202480
8681         * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
8682           convenience function for bit access
8683
8684 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
8685
8686         * device/lib/printf_large.c: fixed bug 1193299
8687         * support/regression/tests/bug1057979.c: added test %3.3s
8688
8689 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8690
8691         * device/include/mcs51/8051.h,
8692         * device/include/mcs51/8052.h: made parseable with lint
8693         * device/include/mcs51/lint.h: added include file for (sp)lint
8694         * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
8695         * doc/cdbfileformat.lyx,
8696         * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
8697
8698 2005-05-14 Raphael Neider <rneider AT web.de>
8699
8700         * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
8701         * device/lib/pic16/libc/stdlib/itoa.c (new)
8702         * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
8703         * device/lib/pic16/libio/Makefile: exclude subdir according to
8704           ${subdir}.ignore for certain PICs (lacking e.g. i2c)
8705         * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
8706         * src/pic16/gen.c (genFunction): prevent annoying warning
8707         * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
8708           nameclashes on BeOS
8709         * support/cpp2/cppmain.c (cpp_output_string): new
8710         * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
8711           fixes bug 1116802
8712
8713 2005-05-13 Borut Razem <borut.razem AT siol.net>
8714
8715         * src/SDCCmain.c (linkEdit): fixed bug 1195202
8716
8717 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8718
8719         * .version: changed to version 2.5.1; back to bleeding edge development
8720
8721 2005-05-11 Borut Razem <borut.razem AT siol.net>
8722
8723         * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
8724           generate PDF version 1.3 documents
8725
8726 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8727
8728         * .version: changed to version 2.5.0
8729
8730 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8731
8732         * doc/sdccman.lyx: updated weblinks, index and smaller updates
8733
8734 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8735
8736         * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
8737         --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
8738         well as many smaller updates.
8739         * .version: changed to version 2.5.0-pre1
8740
8741 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8742
8743         * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
8744
8745 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
8746
8747         * support/regression/tests/bug1185672.c: added
8748         * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
8749           bug 1185672
8750         * src/mcs51/gen.c (genCall): added comments, made it look safer
8751         * src/mcs51/gen.c (genEndFunction): simplified
8752
8753 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
8754
8755         * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
8756
8757 2005-04-14 Borut Razem <borut.razem AT siol.net>
8758
8759         * fixed bug 1045046 - SIGSEGV with really simple code?:
8760           src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
8761           src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
8762
8763 2005-04-14 Borut Razem <borut.razem AT siol.net>
8764
8765         * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
8766           src/pic16/device.h: temporarily disabled experimental #inline pragma
8767           for 2.5.0 release
8768
8769 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
8770
8771         * device/include/z80/stdio.h,
8772         * device/include/z80/string.h: removed these highly incomplete files so
8773           SDCC can use the default ones in device/include/
8774
8775 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8776
8777         * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
8778         gcc warning.
8779         * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
8780         fix sdcpp warnings.
8781
8782 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
8783
8784         * device/include/malloc.h: removed redundant __reentrant prototypes
8785         * device/lib/_mullong.c: added working xstack variant in asm (C version
8786           doesn't pass regression tests)
8787         * device/lib/bpx.c: used __data and made bpx char for mcs51
8788         * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
8789           (createFunction): fixed bug with xstackPtr
8790         * src/SDCCcse.c: corrected comments
8791         * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
8792           (killDeadCode, eBBlockFromiCode): removed unused code
8793         * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
8794           corrected comments
8795         * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
8796           assignResultValue, genCall, genFunction, genEndFunction, genAnd,
8797           genOr, genXor, genAddrOf): fixed several bugs concerning xstack
8798           (genModOneByte): fixed warning in MSVC
8799         * src/mcs51/main.c (): added comments
8800         * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
8801
8802 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
8803
8804         * src/SDCCmain.c (linkEdit): oops, changed one line too many
8805
8806 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
8807
8808         * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
8809
8810 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
8811
8812         * src/pic16/glue.c (printIvalChar): fixed bug when emitting
8813         characters arrays of larger size than the declared one.
8814
8815 2005-04-10 Borut Razem <borut.razem AT siol.net>
8816
8817         * src/pic/gen.c (genInline),
8818           src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
8819           (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
8820           (findNextInstruction), (findPrevInstruction),
8821           (findInstructionUsingLabel),
8822           src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
8823         * src/pic/pcode.c (findLabel): added missing '\n'
8824         * src/src.dsp: added SDCCdwarf2.c to the project
8825
8826 2005-04-09 Borut Razem <borut.razem AT siol.net>
8827
8828         * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
8829
8830 2005-04-08 Raphael Neider <rneider AT web.de>
8831
8832         * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
8833           into the chain after a given one) and mergeDefmapSymbols (combine
8834           defmap entries for each symbol per pcode)
8835         * (createDefmap): have defmap entries merged in the end
8836         * (defmapReplaceSymRef): split defmap entries covering two accesses to
8837           a symbol before replacing one access type's symbol, merge symbols in
8838           the end (replacement symbol might already have an entry)
8839         * (assignValnums): keep reference to written WREG intact
8840
8841 2005-04-08 Raphael Neider <rneider AT web.de>
8842
8843         * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
8844           Alpha)
8845
8846 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
8847
8848         * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
8849         bytes
8850
8851 2005-04-07 Raphael Neider <rneider AT web.de>
8852
8853         * device/include/pic16/usart.h: added compatibility defines for
8854           devices with more than one USART
8855         * device/include/pic16/pic18f[68][567]20.h: activated above defines
8856
8857 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
8858
8859         * device/lib/Makefile.in: updated for port specific include
8860
8861 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
8862
8863         * support/regression/ports/mcs51/spec.mk: added mcs51 include
8864
8865 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
8866
8867         * device/include/8051.h,
8868         * device/include/8052.h,
8869         * device/include/at89S8252.h,
8870         * device/include/at89c55.h,
8871         * device/include/at89x051.h,
8872         * device/include/at89x51.h,
8873         * device/include/at89x52.h,
8874         * device/include/mcs51reg.h,
8875         * device/include/reg51.h,
8876         * device/include/reg764.h,
8877         * device/include/regc515c.h,
8878         * device/include/sab80515.h: (re)moved these 12 files
8879         * device/include/mcs51/8051.h,
8880         * device/include/mcs51/8052.h,
8881         * device/include/mcs51/at89S8252.h,
8882         * device/include/mcs51/at89c55.h,
8883         * device/include/mcs51/at89x051.h,
8884         * device/include/mcs51/at89x51.h,
8885         * device/include/mcs51/at89x52.h,
8886         * device/include/mcs51/mcs51reg.h,
8887         * device/include/mcs51/reg51.h,
8888         * device/include/mcs51/reg764.h,
8889         * device/include/mcs51/regc515c.h,
8890         * device/include/mcs51/sab80515.h: and added them here
8891
8892 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
8893
8894         * device/include/stdarg.h: changed SDCC specific keywords to double
8895           underlined form.
8896         * device/include/stdint.h: changed intptr_t and uintptr_t for others than
8897           mcs51 and ds390.
8898         * device/include/hc08/mc68hc908gp32.h,
8899         * device/include/hc08/mc68hc908jb8.h,
8900         * device/include/hc08/mc68hc908jkjl.h,
8901         * device/include/hc08/mc68hc908qy.h: fixed comments
8902         * device/include/mcs51/README: updated
8903         * device/include/mcs51/c8051f120.h: added PINRSF
8904         * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
8905         * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
8906           amidst code. Also inline is not supported.
8907
8908 2005-04-06 Raphael Neider <rneider AT web.de>
8909
8910         * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
8911         * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
8912           callers stack/frame pointers
8913
8914 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
8915
8916         * device/include/pic16/usart.h: added, missing in previous commit,
8917         * device/include/pic16/adc.h: fixed typo,
8918         * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
8919         commit,
8920         * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
8921         <p18fxxx.inc>
8922         * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
8923         uninitialized because a bug appears with gplink
8924         * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
8925         COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
8926         complains for unrecognised option
8927
8928 2005-04-05 Raphael Neider <rneider AT web.de>
8929
8930         * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
8931           structs as well (using memcpy)
8932         * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
8933           on ISRs (GOTO has no label)
8934         * src/pic16/device.h: added OF_OPTIMIZE_DF
8935         * src/pic16/main.c: added compiler switch --optimize-df to enable the
8936           new data flow analysis/optimization
8937         * src/pic16/pcode.c: added (prototypes for and implementation of)
8938           dataflow analysis functions, fixed pCodeInstructions' inCond and
8939           outCond values, made RCALL a branch instruction
8940         * (pic16_unlinkpCode): keep C line if possible
8941         * (pic16_pCodeUnlink): removed cast on left side of assignment, have
8942           C line moved if possible
8943         * (pic16_getRegFrompCodeOp): NEW, improved version of...
8944         * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
8945           to use new pic16_getRegFrompCodeOp (works for more SFRs)
8946         * (pic16_BuildFlow): fixed skip instructions with label (did not start
8947           new flow)
8948         * (pic16_getJumptabpCode): NEW, needed in...
8949         * (LinkFlow): fixed handling of jumptables, calls and conditional
8950           branches
8951         * (pic16_InsertCommentAfter): NEW
8952         * (pic16_pCodeReplace): made verbose and flow preserving
8953         * (AnalyzeFlow): added call to data flow analysis
8954         * src/pic16/pcode.h: added defmaps to pCodeFlow struct
8955         * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
8956         * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
8957
8958 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8959
8960         * src/SDCCast.c (decorateType): fixed bug #1105626
8961
8962 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
8963
8964         * device/include/asm/pic16/features.h,
8965         * pic18f*.h headers,
8966         * device/include/pic16/adc.h,
8967         * device/include/pic16/delay.h,
8968         * device/include/pic16/i2c.h,
8969         * device/include/pic16/malloc.h,
8970         * device/include/pic16/stdio.h,
8971         * device/include/pic16/stdlib.h,
8972         * device/include/pic16/string.h,
8973         * device/lib/pic16/libc/stdio/printf_tiny.c,
8974         * device/lib/pic16/libc/stdio/printf_small.c,
8975         * device/lib/pic16/libc/stdio/strmgpsim.c,
8976         * device/lib/pic16/libc/stdio/strmmssp.c,
8977         * device/lib/pic16/libc/stdio/strmusart.c,
8978         * device/lib/pic16/libc/stdio/vfprintf.c,
8979         * device/lib/pic16/libc/stdlib/ltoa.c,
8980         * device/lib/pic16/libc/stdlib/putchar.c,
8981         * device/lib/pic16/libc/stdlib/x_ftoa.c,
8982         * device/lib/pic16/libc/stdlib/memchrpgm.c,
8983         * device/lib/pic16/libc/stdlib/memchrram.c,
8984         * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
8985         * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
8986         * device/lib/pic16/libio/adc/adcbusy.c,
8987         * device/lib/pic16/libio/adc/adcread.c,
8988         * device/lib/pic16/libio/adc/adcsetch.c,
8989         * device/lib/pic16/libio/usart/ubaud.c,
8990         * device/lib/pic16/libio/usart/ubusy.c,
8991         * device/lib/pic16/libio/usart/udrdy.c,
8992         * device/lib/pic16/libio/usart/uopen.c,
8993         * device/lib/pic16/libio/usart/uputc.c,
8994         * device/lib/pic16/libsdcc/gptr/gptrget1.c,
8995         * device/lib/pic16/libsdcc/gptr/gptrget2.c,
8996         * device/lib/pic16/libsdcc/gptr/gptrget3.c,
8997         * device/lib/pic16/libsdcc/gptr/gptrget4.c,
8998         * device/lib/pic16/libsdcc/gptr/gptrput1.c,
8999         * device/lib/pic16/libsdcc/gptr/gptrput2.c,
9000         * device/lib/pic16/libsdcc/gptr/gptrput3.c,
9001         * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
9002         specific keywords to double underlined form,
9003         * device/lib/pic16/libc/Makefile.rules,
9004         * device/lib/pic16/libsdcc/Makefile.rules,
9005         * device/lib/pic16/libm/Makefile,
9006         * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
9007         to compile with C standard set in Makefile.common
9008         * device/lib/pic16/libc/stdlib/Makefile: added new C sources
9009         rand.c and crc.c in compilation process,
9010         * device/lib/pic16/libsdcc/int/divuint.c,
9011         * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
9012         `c' from signed to unsigned,
9013         * device/lib/pic16/startup/crt0.c,
9014         * device/lib/pic16/startup/crt0i.c,
9015         * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
9016         keywords to double underlined form, bug fixes in _do_cinit function
9017         which prevented the correct initialization of the .idata segment,
9018         * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
9019         core to enter a infinite loop
9020         * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
9021
9022 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9023
9024         * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
9025
9026 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9027
9028         * device/include/Makefile.in: add support for hc08 subdirectory
9029         * device/include/hc08/: new subdirectory
9030         * device/include/hc08/mc68hc908jkjl.h: new header contributed by
9031         Lucas Loizaga, thanks!
9032         * device/include/hc08/mc68hc908qy.h,
9033         * device/include/hc08/mc68hc908gp32.h,
9034         * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
9035         their own directory. Changed internal macro names to use the compiler
9036         reserved namespace. Changed SDCC specific keywords to double
9037         underlined form.
9038         * device/include/math.h,
9039         * device/include/malloc.h,
9040         * device/include/stdarg.h,
9041         * device/include/stdbool.h
9042         * device/include/string.h,
9043         * device/include/tinibios.h,
9044         * device/include/ds400rom.h,
9045         * device/include/8051.h,
9046         * device/include/8052.h,
9047         * device/include/80c51xa.h,
9048         * device/include/at89c55.h,
9049         * device/include/at89S8252.h,
9050         * device/include/at89x51.h,
9051         * device/include/at89x52.h,
9052         * device/include/ds80c390.h,
9053         * device/include/reg764.h,
9054         * device/include/regc515c.h,
9055         * device/include/sab80515.h,
9056         * device/include/mcs51/c8051f000.h,
9057         * device/include/mcs51/c8051f018.h,
9058         * device/include/mcs51/c8051f020.h,
9059         * device/include/mcs51/c8051f040.h,
9060         * device/include/mcs51/c8051f060.h,
9061         * device/include/mcs51/c8051f120.h,
9062         * device/include/mcs51/c8051f300.h,
9063         * device/include/mcs51/c8051f310.h,
9064         * device/include/mcs51/c8051f320.h,
9065         * device/include/mcs51/c8051f330.h,
9066         * device/include/mcs51/c8051f350.h,
9067         * device/include/z180.h: Changed SDCC specific keywords to double
9068         underlined form.
9069
9070 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
9071
9072         * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
9073         18F4455,
9074         * (pic16_assignConfigWordValue): disable testing of configuration
9075         register value with config mask,
9076         * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
9077         function with port->fun_prefix,
9078         * (genFunction): when generating a naked interrupt function never
9079         create an absolute segment placed in interrupt vector address, place
9080         the actual interrupt function at IVA instead, when an interrupt
9081         function is generated with unspecified interrupt then do not create
9082         the absolute section,
9083         * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
9084         code for generating a call to generic pointer get/put function with
9085         a call to function pic16_callGenericPointer(),
9086         * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
9087         the call to the generic pointer get/put functions with prefixing the
9088         function name with port->fun_prefix,
9089         * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
9090         * src/pic16/main.c (_process_pragma): prefix function with
9091         port->fun_prefix,
9092         * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
9093         calling assembler, old 18Fxxxx macro is deprecated,
9094         * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
9095         PC_ASMDIR in while condition,
9096         * (findInstruction): add PC_ASMDIR in while condition,
9097         * (buildCallTree): prefix main with port->fun_prefix,
9098         * (pic16_pCode2str): fixed bug that didn't emit the memory access
9099         identifier for variable with banked access in instructions BTFSS,
9100         BTFSC, BCF, BSF, BTG
9101         * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
9102         * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
9103         * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
9104         perform optimization when enviroment variable NO_REG_OPT is set,
9105         * (insideLRBlock): NEW, return 1 if register is inside an
9106         INF_LOCALREGS block,
9107         * (RemoveRegFromLRBlock): remove a register that is completely
9108         eliminated by register optimization, but it is still left in local
9109         register store/restore in/from stack block,
9110         * (Remove2pcodes): after removing register, check to see if it
9111         should be removed from local register store/restore in/from stack
9112         block,
9113         * src/pic16/ralloc.c (pic16_decodeOp): added decode for
9114         DUMMY_READ_VOLATILE,
9115
9116         * device/include/pic16/adc.h: minor prototype modifications and
9117         update,
9118         * device/include/pic16/malloc.h: added GPL notice various
9119         modifications,
9120         * device/include/pic16/stdint.h: NEW, standard header for ints
9121         * device/include/pic16/delay.h: NEW, header for delay functions,
9122         delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
9123         delay1mtcy,
9124         * device/include/pic16/signal.h: NEW, header providing helper macros
9125         for implementing signal handlers,
9126         * device/include/pic16/stdio.h: added prototypes for functions,
9127         printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
9128         prototypes for stdin and stdout, added macro PUTCHAR to
9129         automatically implement putchar function prototype,
9130         * device/include/pic16/usart.h: modified and updated USART library,
9131         * device/lib/pic16/libio/adc/,
9132         * device/lib/pic16/libio/i2c: some modifications to improve library
9133         performance,
9134         * device/lib/pic16/libc/stdio/: modifications for the new printf*
9135         family of functions,
9136         * device/lib/pic16/libc/stdlib/: various modifications in the malloc
9137         family of functions and other sources,
9138         * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
9139         of the PIC18Fxx[28] devices,
9140         * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
9141         * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
9142         * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
9143         _do_cinit function, because the previous failed when local variables
9144         where not placed in the same memory bank,
9145         * device/lib/pic16/libsdcc/char/: various modifications to improve
9146         library performance,
9147         * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
9148         information on the new functions of the c library and more...
9149
9150 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9151
9152         * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
9153
9154 2005-03-26 Raphael Neider <rneider AT web.de>
9155
9156         * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
9157           if condition == CARRY)
9158         * (genCmp): adapted to new genSkipc semantics
9159         * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
9160           on rIfx (genCmp was broken)
9161
9162 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9163
9164         * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
9165         * src/z80/main.c (_keywords[]),
9166         * src/SDCCglobal.h (struct options),
9167         * src/SDCC.y,
9168         * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
9169         to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
9170         std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
9171         --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
9172         always available in leading double underscore form. The C99 support is
9173         mostly missing, but it's a start.
9174         * support/regression/tests/bug-227710.c: fixed nonconforming use of
9175         reserved identifier "__data".
9176
9177 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
9178
9179         * src/mcs51/peeph.def: fixed bug 1170013
9180
9181 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
9182
9183         * device/include/mcs51reg.h: fixed bug 842007
9184
9185 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9186
9187         * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
9188         last time.
9189
9190 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9191
9192         * src/port.h (struct PORT),
9193         * src/avr/ralloc.c (avr_assignRegisters),
9194         * src/avr/main.c,
9195         * src/ds390/ralloc.c (ds390_assignRegisters),
9196         * src/ds390/main.c,
9197         * src/hc08/ralloc.c (hc08_assignRegisters),
9198         * src/hc08/main.c,
9199         * src/mcs51/ralloc.c (mcs51_assignRegisters),
9200         * src/mcs51/main.c,
9201         * src/pic/ralloc.c (pic14_assignRegisters),
9202         * src/pic/main.c,
9203         * src/pic16/ralloc.c (pic16_assignRegisters),
9204         * src/pic16/main.c,
9205         * src/xa51/ralloc.c (xa51_assignRegisters),
9206         * src/xa51/main.c,
9207         * src/z80/ralloc.c (z80_assignRegisters),
9208         * src/z80/ralloc.h,
9209         * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
9210         * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
9211         * src/SDCCcse.h,
9212         * src/SDCCdflow.c (computeDataFlow),
9213         * src/SDCCdflow.h,
9214         * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
9215         * src/SDCCloop.h,
9216         * src/SDCCcflow.c (*),
9217         * src/SDCCcflow.h,
9218         * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
9219         * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
9220         of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
9221         immedDom() returning wrong block; probably fixes bug #1160833)
9222
9223 2005-03-20 Borut Razem <borut.razem AT siol.net>
9224
9225         * support/scripts/inc2h.pl: WIN32 port
9226
9227 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
9228
9229         * device/lib/makefile.in: added abs.c and labs.c
9230
9231 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
9232
9233         * device/include/stdint.h: added
9234         * device/lib/abs.c: added
9235         * device/lib/labs.c: added
9236         * device/include/stdlib.h: added abs() and labs() prototypes
9237         * device/lib/libsdcc.lib: added abs and labs
9238         * device/include/float.h,
9239         * device/lib/_fsmul.c,
9240         * device/lib/printf_fast.c,
9241         * device/lib/printf_tiny.c: updated comments
9242
9243 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9244
9245         * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
9246         bug #1164313
9247
9248 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9249
9250         * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
9251         * src/SDCCast.c (isLoopCountable): fixed bug #1161985
9252
9253 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
9254
9255         * device/lib/printf_large.c: removed inline assembly for portability and
9256           readability. Use printf_fast if speed or size are more important.
9257         * src/pic16/gen.c: removed conditions around use of DEBUGpc
9258         * src/pic16/genutils.h: added define for DEBUGpc for MSVC
9259
9260 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
9261
9262         * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
9263         prevent compiler warning
9264
9265 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
9266
9267         * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
9268         moved to level 0 and declared as static. Also they are explicit
9269         placed in access bank. This was necessery because some times they
9270         might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
9271         * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
9272         optimizations. Currently only compare to unsigned char is implemented,
9273         * src/pic16/gen.c: added fReturnIdx array,
9274         * (struct resolvedIfx) is moved to gen.h and made public,
9275         * (struct _G): added sregsAlloc and sregsAllocSet fields,
9276         * (aopForSym): added an optimization to directly store in stack of
9277         the operand of a SEND iCode,
9278         * (pic16_aopOp): don't return return registers as strings (AOP_STR)
9279         but as registers instead (AOP_REG) using the fReturnIdx array,
9280         * (pic16_freeAsmop): remove the freed register from the
9281         _G.sregsAlloc field,
9282         * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
9283         a compare of 'WREG',
9284         * (pic16_popGetTempRegCond): changed function prototype, now
9285         function takes also a bitVector argument v which holds the current
9286         set of registers that are allocated for stack access by aopForSym,
9287         registers allocated in aopForSym for accessing stack symbols are not
9288         any more part of the functions usedRegs field,
9289         * (genCall): some times aopOp is called for a stack variable to be
9290         send, aopForSym might perform the push, if this is true make sure
9291         that genCall doesn't push the variable twice by testing _G.resDirect,
9292         * (genFunction): changed testing for unspecified interrupt number
9293         from 256 to INTNO_UNSPEC,
9294         * modified selection scheme of frame pointer generation. Previously
9295         if function did use local registers a frame pointer was generated,
9296         now a frame pointer is generated only if function has arguments
9297         (that need PLUSW2 register access), or has stack arguments, or the
9298         compiler is not instructed to omit the frame pointer,
9299         * (genEndFunction): before restoring local registers that were saved
9300         in the function preamble, also restore the registers that *might*
9301         have been allocated for stack access,
9302         * (genRet): removed some old comments,
9303         * (genCmp, the active (RN's) version): added a call to the
9304         pic16_genCmp_special function to perform the compare with a more
9305         robust and optimized way,
9306         * (genInline): a feature has been added in inline code generation,
9307         which allows a wildcard variable substitution when writing inline
9308         assembly. Code is incomplete and experimental therefore undocumented,
9309         * (genCast): changed order of aopOp for result and right to allow
9310         aopForSym to directly load the result if possible,
9311         * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
9312         perform an optimized compare on some selected special occasions,
9313         * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
9314         * src/pic16/glue.c (pic16createInterrupVect): make sure we never
9315         generate an IVT any more,
9316         * src/pic16/main.c (pic16_optionsTable): added command line option
9317         --optimize-cmp,
9318         * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
9319         macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
9320         macros,
9321         * src/pic16/NOTES: Raphael Neider added in list of active developers
9322         * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
9323         jumptable_end to prevent bug #,
9324         * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
9325         inCond and outCond fields,
9326         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
9327         * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
9328         turn off register spilling,
9329         * (packRegsForOneUse): synced with other ports' versions although it
9330         is not used currently,
9331         * (pic16_packRegisters): added an optimization while reading
9332         structure bitfields, some registers may be saved (malloc code is
9333         decreased by 80 bytes)
9334
9335 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
9336
9337         * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
9338         left is a bitfield, if yes, then don't optimize assignment. Perhaps
9339         this can be optimized more?
9340
9341 2005-03-10 Raphael Neider <rneider AT web.de>
9342
9343         * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
9344           genNearPointerGet): (hopefully) fixed access to bitfields via
9345           pointers (p->bitN = x; and x = p->bitN; failed)
9346
9347 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
9348
9349         * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
9350
9351 2005-03-09 Raphael Neider <rneider AT web.de>
9352
9353         * src/SDCCopt.c (killDeadCode): fixed bug #1156016
9354
9355 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
9356
9357         * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
9358         * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
9359           (regTypeNum): set REG_BIT type if necessary
9360         * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
9361         * support/regression/tests/critical.c: check bug 1144613
9362
9363 2005-03-02 Raphael Neider <rneider AT web.de>
9364
9365         * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
9366
9367 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9368
9369         * src/avr/ralloc.c (serialRegAssign),
9370         * src/ds390/ralloc.c (serialRegAssign),
9371         * src/hc08/ralloc.c (serialRegAssign),
9372         * src/mcs51/ralloc.c (serialRegAssign),
9373         * src/pic/ralloc.c (serialRegAssign),
9374         * src/pic16/ralloc.c (serialRegAssign),
9375         * src/xa51/ralloc.c (serialRegAssign),
9376         * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
9377
9378 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
9379
9380         * src/SDCCast.c (decorateType): fixed bug 1124787
9381
9382 2005-02-20 Hubert Sack <sack AT digiplan.de>
9383         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9384
9385         * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
9386         patch #1121755
9387
9388 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9389
9390         * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
9391         to keep the correct label reference count when adding/removing references
9392         to labels. A peephole file using this is appended to patch #1144962.
9393
9394 2005-02-14 Raphael Neider <rneider AT web.de>
9395
9396         * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
9397         * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
9398         * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
9399           retrievals of result operand's value on assignment
9400
9401 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
9402
9403         * device/include/pic16/string.h: modified prototype for memccpy()
9404         to memccpy(void *, void *, char, size_t)
9405         * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
9406         check whether to omit frame pointer or not,
9407         * (genInline): convert all occurences of "\n" to LF in inline
9408         assembler blocks, this helps formatting the inline text,
9409         * (pic16_loadFSR0): modified prototype,
9410         * (genNearPointerGet, genNearPointerSet): reorganization of code,
9411         removed some 8051 legacy code,
9412         * (genPackBits): enabled handling bitfields exceeding one byte in size,
9413         * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
9414         before allocating temporary registers in functions,
9415
9416 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
9417
9418         * support/regression/tests/bitvars.c: corrected the "fix"
9419
9420 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
9421
9422         * support/regression/tests/bitvars.c,
9423         * support/regression/tests/bitwise.c,
9424         * support/regression/tests/rotate.c: "fixed" problems on Alpha
9425
9426 2005-02-10 Raphael Neider <rneider AT web.de>
9427
9428         * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
9429           different size for Alpha
9430         * src/pic16/gen.c (genCmpEq) : improved compare with 0
9431
9432 2005-02-09 Raphael Neider <rneider AT web.de>
9433
9434         * src/SDCC.lex(doPragma) : save and restore warning options as well
9435           (also added new stack plus clone- and copyAndFreeSDCCERRG())
9436         * have #pragma less_pedantic set the errorlevel to WARNING
9437           (fixes #1117001)
9438         * (cloneOptimize) : fixed wrong malloc's size
9439         * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
9440           facilitate correct handling of #pragma (save|restore)
9441
9442 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
9443
9444         * src/mcs51/gen.c: removed non-standard C nameless struct/union
9445
9446 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
9447
9448         * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
9449
9450 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
9451
9452         * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
9453
9454 2005-02-02 Raphael Neider <rneider AT web.de>
9455
9456         * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
9457         * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
9458         * (pic16_storeForReturn): fixed to allow returning function pointers
9459         * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
9460         * device/include/pic16/{stddef.h,stdbool.h}: added
9461
9462 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
9463
9464         * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
9465
9466 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
9467
9468         * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
9469         * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
9470          appeared to be required
9471
9472 2005-01-31 Borut Razem <borut.razem AT siol.net>
9473
9474         * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
9475           include/mcs51 and include/z80 directories to the package
9476
9477 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9478
9479         * src/hc08/gen.c (genFunction): fixed bug #1112752
9480
9481 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9482
9483         * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
9484
9485 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9486
9487         * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
9488
9489 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
9490
9491         * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
9492
9493 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
9494
9495         * device/include/c8051fxxx.h: removed these 6 files
9496         * device/include/mcs51/c8051fxxx.h: added these 11 new files
9497
9498 2005-01-26 Raphael Neider <rneider AT web.de>
9499
9500         * src/pic16/gen.c (genAssign): fixed assignment from longs
9501           in codespace (were cut to three bytes)
9502         * (genDummyRead): implemented (except for CODESPACE...),
9503           fixed bug #1108575
9504         * src/pic16/glue.c (emitStatistics): beautified
9505         * device/lib/pic16/libm/Makefile: added include path
9506
9507 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9508
9509         * src/z80/gen.c (aopPut): fixed bug #1103902
9510
9511 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9512
9513         * device/lib/expf.c: fixed bug #1095792
9514
9515 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
9516
9517         * device/lib/pic16/libm: added Math library sources
9518
9519 2005-01-24 Raphael Neider <rneider AT web.de>
9520
9521         * src/pic16/pcode.h: added second memory operand to pCodeOpReg
9522           to enable upcast to pCodeOpReg2 (there is no type tag to
9523           differenciate the two and pic16_popGet2p cast into PCOR2)
9524         * src/pic16/main.c (_process_pragma): fixed another malloc bug
9525           (sizeof(sectNames) changed to sizeof(sectName))
9526           Both patches fix segfaults under MinGW.
9527
9528 2005-01-23 Raphael Neider <rneider AT web.de>
9529
9530         * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
9531           Safe_[mc]?alloc()'ed variables
9532         * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
9533           of (byte sized) temporaries (assign them to WREG for now)
9534         * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
9535           (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
9536           this might fix SIGSEGVs on MinGW...
9537         * src/SDCCopt.c (killDeadCode): restored original behaviour
9538           (volatile operands might get thrown away though)
9539
9540 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
9541
9542         * src/pic16/gen.c: fixed bug #1106975,
9543         * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
9544         pointer update, INTCON is saved, global interrupts are disabled and
9545         restored after updateing TOS.
9546         * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
9547         * added function attribute 'shadowregs' to take advantage of shadow
9548         registers,
9549         * added function attribute 'wparam' as an alternative to the wparam
9550         pragma,
9551         * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
9552         user declares a non-ISR function as 'shadowregs',
9553         * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
9554
9555 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
9556
9557         * .version: bumped version number to 2.4.8
9558         * device/lib/pic16/pics.all: list of PIC18F devices supported by
9559         pic16 port,
9560         * device/lib/pic16/libio/i2c/: I2C module support library,
9561         * device/include/pic16/i2c.h: I2C support library header,
9562         * device/lib/pic16/libc/stdio/: standard IO support sources,
9563         * (printf_small.c): printf_small() source, supports float print,
9564         * (printf_tiny.c): printf_tiny() source, does not support floats,
9565         * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
9566         enable global optimizations for entire library source, other
9567         Makefiles in the source tree are also modified to reflect this,
9568         * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
9569         function,
9570         * doc/sdccman.lyx: updated to reflect new changes,
9571         * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
9572         sym->onStack if-case,
9573         * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
9574         sbit, idata, _idata, xdata, _xdata,
9575         * added pragma library, to link an external library, (see doc),
9576         * removed command line options, --pomit-config-words, --pomit-ivt,
9577         --pleave-reset-vector,
9578         * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
9579         when calling assembler to reflect memory model used, also define
9580         macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
9581         reflect stack model used,
9582         * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
9583         on stack return NULL,
9584
9585 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
9586
9587         * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
9588           of the operands is volatile. Fixes #1020220
9589
9590 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
9591
9592         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
9593         * (OptimizeRegUsage): make sure that there is really no other flow where
9594           the first pCode is used
9595
9596 2005-01-22 Raphael Neider <rneider AT web.de>
9597
9598         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
9599           to fix #1106967 (pCode->seq are not set up correctly)
9600
9601 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9602
9603         * src/SDCCglue.c (glue): make sure code area is declared before the
9604         static initialization area.
9605
9606 2005-01-21 Raphael Neider <rneider AT web.de>
9607
9608         * device/lib/Makefile.in: fixed test for pic16 install dir
9609         * device/lib/pic16/*/Makefile*: modified compile flags to enable
9610           optimizations
9611         * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
9612           added --optimize-goto compiler switch and pragma wparam documentation
9613         * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
9614         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
9615           and PRODH closing bug #1071770 (peephole optimizer)
9616
9617 2005-01-19 Raphael Neider <rneider AT web.de>
9618
9619         * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
9620           cmdLine buffers (used when calling sdcpp...) are large enough
9621           (MAX_PATH=256 truncates arguments leading to system halts when
9622           used in MinGW...)
9623         * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
9624         * (genUminus): rewritten to for efficiency
9625         * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
9626           used uninitialized in some cases)
9627         * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
9628           copy the third byte from the int -- now assumes 0x80 (data memory)
9629         * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
9630           operands (genAddLit expects the iCode's operands to swapped as
9631           well), fixed leftover bytes (crashed for short left operands)
9632         * (pic16_genMinusDec): performance improvements, removed false
9633           PIC14 emitSKPNCs
9634         * (pic16_genMinus): fixed to cope with differently sized operands
9635         * src/pic16/glue.c (pic16_glue): added new banksel optimization
9636           for --obanksel > 1
9637         * src/pic16/pcode.c: implemented (first phase of) banksel optimization
9638         * src/pic16/graph.[ch]: implementation of directed graphs, used by
9639           new banksel optimization
9640         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
9641           analysis for temporary registers (segfaults...)
9642         * src/pic16/peeph.def: added rule
9643
9644 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
9645
9646         * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
9647         which converts a float number to its ASCII representation
9648         * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
9649         functions to convert the fractional and integer part of a float to ASCII,
9650         * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
9651         realloc.c): added _MALLOC_SPEC to explicit place variables in data
9652         ram
9653         * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
9654         _STATMEM macros,
9655         * device/include/pic16/adc.h: added GPL info,
9656         * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
9657         a pCodeOp as tested operand,
9658         * (genNearPointerGet): optimized bit testing, does not use
9659         intermediate register for bit value, test directly instead with
9660         BTFSS, BTFSC, works only for single bits,
9661         * (genpic16Code): dump the name of the iCode in the asm,
9662         * src/pic16/ralloc.c (decodeOp): removed static declaration and
9663         renamed to pic16_decodeOp,
9664         * (serialRegAssign): do not allocate a temporary register for iCode
9665         sequences that test a single bit for 1/0
9666
9667 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
9668
9669         * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
9670         pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
9671         access stack and frame pointers. They are initially assigned to
9672         point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
9673         accessing SFRs. Updated all occurences of modification of stack or
9674         frame pointer in gen.c and pcode.c,
9675         * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
9676         assigning of a literal value to pointers,
9677         * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
9678         flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
9679         selected
9680
9681 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
9682
9683         * doc/sdccman.lyx: update documentation about stack pragma, added
9684         some info for stack memory models
9685
9686 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9687
9688         * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
9689
9690 2005-01-08 Raphael Neider <rneider AT web.de>
9691
9692         * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
9693           udata sections to fix bug #1097823
9694
9695 2005-01-05 Raphael Neider <rneider AT web.de>
9696
9697         * src/pic16/gen.c (genGenericShift): added handling of differently
9698           sized left operand and result
9699
9700 2005-01-04 Raphael Neider <rneider AT web.de>
9701
9702         * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
9703         * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
9704           to hold the condition bit)
9705         * added new version of genCmp (old code available via #define)
9706         * added new version of genShiftLeft/genShiftRight in a generic
9707           way, now supports shifting by negative values
9708         * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
9709           shiftCount (expected by genGenericShift)
9710         * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
9711         * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
9712           dump
9713         * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
9714           is an invalid literal too...)
9715
9716 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
9717
9718         * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
9719         from Raphael Neider,
9720         * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
9721         for 8-bit literals. This fixes some literal operands which are sign
9722         extended to 16-bits ints when instruction needs only 8-bits.
9723
9724 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
9725
9726         * device/lib/logf.c: added mcs51 assembly version
9727         * device/lib/expf.c: added mcs51 assembly version
9728         * device/lib/_logexpf.c: new shared asm code for expf and logf
9729         * device/include/math.h: add defines for assembly math library
9730         * device/lib/Makefile.in: build new _logexpf.c
9731         * device/lib/libfloat.lib: use new _logexpf.c
9732
9733 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
9734
9735         * src/pic/device.c
9736         * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
9737           device types which have less than 0x7f registers.
9738
9739 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
9740
9741         * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
9742
9743 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
9744
9745         * device/lib/printf_fast.c: only build on supported arch.
9746         * device/lib/printf_tiny.c: only build on supported arch.
9747         * device/lib/printf_fast_f.c: only build if asm float lib
9748         * device/lib/_fsget1arg.c: only build if asm float lib
9749         * device/lib/_fsget2args.c: only build if asm float lib
9750         * device/lib/_fsnormalize.c: only build if asm float lib
9751         * device/lib/_fsreturnval.c: only build if asm float lib
9752         * device/lib/_fsrshift.c: only build if asm float lib
9753         * device/lib/_fsswapargs.c: only build if asm float lib
9754         * device/include/stdio.h: don't provide print_fast,
9755           print_fast_f, print_tiny prototypes if --xstack used
9756
9757 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
9758
9759         * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
9760         * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
9761           to the SOURCES
9762
9763 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
9764
9765         * device/lib/printf_fast_f.c: same as printf_fast, but
9766           with floating point enabled
9767         * device/lib/printf_fast.c: minor tweaks
9768         * device/include/stdio.h: add printf_fast_f
9769
9770 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
9771
9772         * src/SDCCmain.c: make --float-reent default for mcs51
9773         * device/lib/_fsadd.c: added mcs51 assembly version
9774         * device/lib/_fssub.c: added mcs51 assembly version
9775         * device/lib/_fsmul.c: added mcs51 assembly version
9776         * device/lib/_fsdiv.c: added mcs51 assembly version
9777         * device/lib/_fseq.c: added mcs51 assembly version
9778         * device/lib/_fsneq.c: added mcs51 assembly version
9779         * device/lib/_fsgt.c: added mcs51 assembly version
9780         * device/lib/_fslt.c: added mcs51 assembly version
9781         * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
9782         * device/lib/Makefile.in: add _fscmp to build
9783         * device/lib/libfloat.lib: add _fscmp to build
9784
9785 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
9786
9787         * device/lib/_fs2slong.c: added mcs51 assembly version
9788         * device/lib/_fs2sint.c: added mcs51 assembly version
9789         * device/lib/_fs2schar.c: added mcs51 assembly version
9790         * device/lib/_fs2ulong.c: added mcs51 assembly version
9791         * device/lib/_fs2uint.c: added mcs51 assembly version
9792         * device/lib/_fs2uchar.c: added mcs51 assembly version
9793         * device/lib/_slong2fs.c: added mcs51 assembly version
9794         * device/lib/_sint2fs.c: added mcs51 assembly version
9795         * device/lib/_schar2fs.c: added mcs51 assembly version
9796         * device/lib/_ulong2fs.c: added mcs51 assembly version
9797         * device/lib/_uint2fs.c: added mcs51 assembly version
9798         * device/lib/_uchar2fs.c: added mcs51 assembly version
9799         * device/include/float.h: added #define to select asm vs c
9800
9801 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
9802
9803         * device/lib/printf_fast.c: improvements to float output
9804         * device/include/float.h: add defines for assembly float library
9805         * device/lib/_fsget1arg.c: receive 1 float arg
9806         * device/lib/_fsget2args.c: receive 2 float args (reentrant)
9807         * device/lib/_fsnormalize.c: normalize a float
9808         * device/lib/_fsreturnval.c: return float, various helper routines
9809         * device/lib/_fsrshift.c: right shift a float's mantissa
9810         * device/lib/_fsswapargs.c: swap 2 floats
9811         * device/lib/Makefile.in: build these 6 new files for mcs51
9812         * device/lib/libfloat.lib: add these 6 files to the library
9813
9814 2004-12-26 Borut Razem <borut.razem AT siol.net>
9815
9816         * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
9817           built by gcc 3.4.2
9818
9819 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
9820
9821         * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
9822           and fully reentrant and register bank neutral.
9823         * device/lib/printf_fast.c: added float (not enabled by default),
9824           added compact/slower integer (also not enabled by default),
9825           improved size/speed of fast integer code, other minor changes
9826         * device/include/stdio.h, device/lib/Makefile.in,
9827           device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
9828
9829 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
9830
9831         * src/pic16/pcode.c: declaring variables other than at the start of a
9832           block is not supported in C by VC6.
9833
9834 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
9835
9836         * applied a previous patch from Raphael Neider that wasn't included
9837         in the previous commits, which fixes infinite loops within jumptable
9838         improvements,
9839         * made some fixes that previous patches introduced
9840
9841 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
9842
9843         * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
9844         that fixes an issue with AOP_PCODE asmop's offset,
9845         * (pic16_popCopyReg): update instance field too,
9846         * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
9847         function of pic port,
9848         * (genCmp, genAnd, genAssign),
9849         * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
9850
9851 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
9852
9853         * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
9854         variables initial values to idata section,
9855         * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
9856         variables in some functions. This utilizes parmBytes field of iCode
9857         structure to hold the offset of the variable in stack. (might be
9858         able to use the stack field too?)
9859         * applied patch from Raphael Neider # ### , # ###
9860         * src/pic16/glue.c (pic16emitRegularMap): fix to print static
9861         variable initial values in idata section,
9862         * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
9863         for static variables with initial value
9864         * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
9865         applied fix in while loop from Raphael Neider.
9866
9867 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
9868
9869         * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
9870         * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
9871         * src/ds390/ralloc.c (serialRegAssign): spill bits
9872         * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
9873         * support/Util/SDCCerr.c,
9874         * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
9875         * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
9876         * support/regression/tests/bitwise.c: added test for bitwise complement(~)
9877
9878 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
9879
9880         * device/include/sdcc-lib.h: inserted LGPL, added includes
9881           asm/ds390/features.h and asm/mcs51/features.h
9882         * device/include/asm/default/features.h,
9883         * device/include/asm/gbz80/features.h,
9884         * device/include/asm/z80/features.h: added empty _AUTOMEM
9885           and _STATMEM
9886         * device/include/asm/ds390/features.h,
9887         * device/include/asm/mcs51/features.h: added files with defines for
9888           _AUTOMEM and _STATMEM indicating automatic and static storage class
9889         * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
9890         * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
9891         * src/SDCCicode.c (geniCodeCast),
9892         * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
9893         * src/SDCCloop.c (loopInduction): removed unused variable lr
9894         * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
9895           to convertToFcall to include char modulo (RFE 1065037), added check
9896           if left operand is unsigned and use abs of literal value
9897         * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
9898           as it doesn't work after conversion from peephole.def to peephole.rul
9899         * src/mcs51/gen.c (toBoolean): added check for size,
9900           (genModOneByte): optimized code for signed char modulo a literal
9901           power of 2 (thanks to Hubert Sack),
9902           (genRRC): removed unnecessary "clr c",
9903           (genRLC): replaced "add a,acc" with cheaper "rlc a"
9904         * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
9905           jump optimization,
9906           swapped rules 256.c and 256.d,
9907           extended 256.d by using new multiple checks (thanks Erik),
9908           added rules 256.e and 256.f,
9909           updated rule 261.a and 261.b to new generated code
9910         * support/regression/tests/muldiv.c: added test div/mod by a power of 2
9911
9912 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9913
9914         * src/SDCCloop.c (basicInduction, loopInduction): fixed several
9915           induction related bugs, including first part of bug #1074377
9916
9917 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
9918
9919         * applied patch from bug-report #1076292,
9920         * applied patches for genAnd and Goto-optimizations for Raphael
9921         Neider,
9922         * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
9923         dump a less iCode information,
9924         * src/pic16/device.h (pic16_options_t): added field debgen,
9925         * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
9926         DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
9927         * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
9928         puclic,
9929         * (various functions): added macros FENTRY and FENTRY2 to functions,
9930         to emit function prologue,
9931         * (various functions): fixed indentation,
9932         * (genNearPointerGet): fixed loading of FSR0,
9933         * (genPackBits): applied patch from Raphael Neider to fix updating
9934         of FSR0 and touching only the modified bits,
9935         * src/pic16/genarith.c (various functions): added macros FENTRY to
9936         emit function prologue in comments,
9937         * src/pic16/pcode.h: added functions debugf2, debugf3,
9938         * src/pic16/ralloc.c: partial fix for packForPush caused
9939         segmentation fault,
9940
9941 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9942
9943         * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
9944           <stsp AT users.sourceforge.net> with reversed byte order
9945         * support/regression/tests/rotate.c: added (ds390 skips some tests)
9946
9947 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9948
9949         * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
9950           bug #1074377
9951         * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
9952         * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
9953
9954 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
9955
9956         * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
9957
9958 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9959
9960         * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
9961           conditions,
9962           (setFromConditionArgs): friendly operand parser for peephole rules,
9963           (operandBaseName, operandsNotRelated): new peephole condition
9964           "operandsNotRelated" -- similar to "operandsNotSame", but takes
9965           architecture specific register naming into account, handles n-way
9966           comparisons, and supports quoted literals
9967         * src/mcs51/peeph.def: restored rule 177.d with an extra condition
9968
9969 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9970
9971         * src/mcs51/peeph.def: fixed bug #1076940
9972
9973 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
9974
9975         * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
9976
9977 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9978
9979         Adding support for replacing ljmps with sjmps in jumptables
9980         generated for switch statements. For now you need to set the
9981         environment variable SDCC_SJMP_JUMPTABLE to enable this.
9982         Now 4 algorithms for mcs51 jumptable generation are used:
9983         ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
9984         addresses loaded pc-relative for up to 112 cases and stack-pushing
9985         target addresses loaded with offset from dptr for up to 256 cases.
9986
9987         * src/SDCCpeeph.c: added peephole conditional labelJTInRange
9988         * src/mcs51/main.c: adapted constants for switch table generation
9989         * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
9990
9991 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
9992
9993         * device/lib/printf_large.c (_print_format): fixed bug 1073386
9994         * support/regression/tests/bug1057979.c: added test for bug 1073386
9995
9996 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
9997
9998         * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
9999         compilers
10000
10001 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
10002
10003         * src/pic16/device.h,
10004         * src/pic16/genarith.c,
10005         * src/pic16/glue.c,
10006         * src/pic16/main.c,
10007         * src/pic16/pcode.c: applied patches #1068154 and #1070213
10008
10009 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
10010
10011         Large cummulative patch for pic16 port.
10012         * device/lib/pic16/gstack.h: NEW, user can specify its own handler
10013         to call when a stack overflow occurs,
10014         * (malloc.h): added CVS Id tag,
10015         * (pic18f{242,252,442,452}.h): added T0CONbits structure and
10016         variable,
10017         * added libc directory. The current version of LibC contains string
10018         functions, ctype functions and macros and some functions of the
10019         stdlib set (like malloc/free/atof/atoi etc...). All functions are to
10020         be extensively tested in the future. Standard disclaimer here.
10021         Library is not automatically build yet. But one can build it by
10022         invoking 'make' inside the libc directory.
10023         * added ADC library under libio. Preliminary version yet.
10024
10025         * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
10026         * src/pic16/gen.c (aopForRemat): asmop size is filled by
10027         aopForRemat() now and not by pic16_aopOp(),
10028         * (pic16_popGetTempReg): removed warning messgae when allocating
10029         temporary registers, its a buggy feature and will be removed,
10030         * (pic16_popGet): set register instance field in AOP_CRY,
10031         * (pic16_outBitC): fixed for results in size greater than 1,
10032         * (genUminusFloat): fixed for pic16, ported code from mcs51,
10033         * (pic16_storeForReturn): optimized return of 0,
10034         * (genCmp): experimental code for new genCmp which uses PIC18's
10035         special compare&skip instructions. Initial tests fail some times
10036         with variables grater than 1 byte in size, so new code is disabled,
10037         * (genUnpackBits, genPackBits): more optimizations in reading/writing,
10038         a single bit,
10039         * (genCast): began a fix to optimize the casting of a bit to another
10040         bit, now assigning a bitfield to another bitfield will fail, sorry,
10041         * src/pic16/main.c: disabled the use of lr-support feature,
10042         * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
10043         * added some function prototypes, added function _debugf prototype,
10044         * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
10045         bits with offset (case PO_GPR_BIT),
10046         * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
10047         command line,
10048         * (isBankInstruction): modified to return 0 for no banking instruction,
10049         and 1 for banking instruction,
10050         * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
10051         caused stop processing pCodes after a inline assembly block,
10052         * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
10053         * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
10054         registers when it shouldn't,
10055         * src/pic16/ralloc.c (allocReg): add preliminary support for
10056         supporting a limited set of temporary registers,
10057
10058 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10059
10060         * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
10061           genDataPointerSet): ensure assignments always copy in MSB to LSB
10062           order,
10063           (loadRegFromAop): recognize CLRH optimization,
10064           (genFunction): optimize RECEIVE iCodes in reentrant functions
10065
10066 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10067
10068         * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
10069           --out-fmt-s19 turning into --out-fmt-elf if s19 was already
10070           selected.
10071         * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
10072         * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
10073           contiguous with data
10074
10075 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10076
10077         * device/lib/_gptrget.c (_gptrget),
10078         * device/lib/_gptrgetc.c (_gptrgetc),
10079         * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
10080           instead of sjmp to ret
10081         * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
10082           by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
10083
10084 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
10085
10086         * .version: bumped version to 2.4.7
10087         * device/lib/_gptrget.c (_gptrget): is now _naked
10088         * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
10089         * device/lib/_gptrput.c (_gptrput): is now _naked
10090         * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
10091           (createFunction): fixed xstack
10092         * src/SDCCglue.c (emitMaps): set allocation required for bit area
10093         * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
10094           or bit either,
10095           (geniCodeCritical): store original interrupt state in an iTemp bit
10096           var unless stack-auto
10097         * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
10098         * src/SDCCmain.c (setIncludePath): added include/target to search path
10099         * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
10100         * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
10101           prototype,
10102           (processFuncArgs): put bit vars in bit area
10103         * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
10104           unsaveRBank): fixed xstack,
10105           (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
10106           (genFunction, genEndFunction): fixed xstack,
10107           (genAssign): optimization don't walk backwards through mem
10108         * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
10109         * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
10110         * support/regression/Makefile: also make library (for stack-auto) when
10111           making "all" and added "test-mcs51-xstack-auto"
10112         * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
10113         * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
10114         * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
10115         * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
10116         * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
10117           make-library by MAKE_LIBRARY
10118         * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
10119           regression tests for xstack
10120         * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
10121         * support/regression/tests/critical.c: test for critical on mcs51
10122
10123 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10124
10125         * support/regression/ports/ucz80/spec.mk: use include and lib files from
10126           built version of sdcc instead of installed version
10127
10128 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
10129
10130         * src/mcs51/gen.c (toBoolean): fixed bug 1065458
10131         * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
10132           vprintf.c now
10133         * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
10134         * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
10135           WARNING: remove device/lib/build/z80/printf.o by hand when
10136           updating from previous build!
10137         * device/lib/z80/printf.c: updated comment
10138         * support/regression/tests/bug1057979.c: test all ports now
10139         * support/regression/tests/bug1065458.c: file added
10140
10141 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10142
10143         * src/z80/gen.c (genFunction, genEndFunction): avoided generating
10144           *_start and *_end symbols for static functions
10145
10146 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
10147
10148         * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
10149           and search crt0.o in all library paths,
10150           (setIncludePath): proper handling of --nostdinc,
10151           (setLibPath): proper handling of --nostdlib
10152         * support/regression/Makefile,
10153         * support/regression/ports/ds390/spec.mk,
10154         * support/regression/ports/gbz80/spec.mk,
10155         * support/regression/ports/hc08/spec.mk,
10156         * support/regression/ports/mcs51/spec.mk,
10157         * support/regression/ports/mcs51-large/spec.mk,
10158         * support/regression/ports/mcs51-stack-auto/spec.mk,
10159         * support/regression/ports/z80/spec.mk: use include and lib files from
10160           built version of sdcc instead of installed version
10161         * doc/sdccman.lyx: fixed typo in --nostdinc
10162
10163 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
10164
10165         * src/pic/pcode.c,
10166         * src/pic/device.c,
10167         * src/pic/ralloc.c,
10168         * src/pic/gen.c : added support to generate code for struct bit fields.
10169
10170 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
10171
10172         * as/xa51/xa_version.h,
10173         * device/include/errno.h,
10174         * device/include/regc515c.h,
10175         * device/lib/_itoa.c,
10176         * device/lib/_ltoa.c,
10177         * device/lib/ser_ir_cts_rts.c,
10178         * sim/ucsim/xa.src/glob.cc,
10179         * sim/ucsim/xa.src/inst_gen.cc,
10180         * sim/ucsim/xa.src/xa_bit.cc,
10181         * sim/ucsim/xa.src/xa_sfr.cc,
10182         * sim/ucsim/z80.src/inst_dd.cc,
10183         * sim/ucsim/z80.src/inst_fdcb.cc,
10184         * support/scripts/keil2sdcc.pl,
10185         * src/pic16/pic16.dsp,
10186         * src/pic16/pic16a.dsp: corrected cvs line endings
10187         * device/lib/printf_large.c: fixed bug 1057979
10188         * src/pic16/gen.c: fixed non-C standard code
10189         * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
10190         * src/SDCCglobl.h: changed pack_iram to no_pack_iram
10191         * support/regression/ports/mcs51/support.c: reload T1 asap
10192         * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
10193           pdata use and clear idata startup behaviour
10194         * support/regression/tests/bug1057979.c: added
10195
10196 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
10197
10198         * device/examples/ds390/ow390/ad26.h,
10199         * device/examples/ds390/ow390/cnt1d.h,
10200         * device/examples/ds390/ow390/crcutil.c,
10201         * device/examples/ds390/ow390/ownet.h,
10202         * device/examples/ds390/ow390/owsesu.c,
10203         * device/examples/ds390/ow390/swt12.h,
10204         * device/examples/ds390/ow390/swtoper.c,
10205         * device/examples/ds390/ow390/temp10.h,
10206         * device/examples/ds390/ow390/thermodl.c,
10207         * device/examples/ds390/tinitalk/tinitalk.dsp,
10208         * device/examples/ds390/tinitalk/tinitalk.dsw,
10209         * device/examples/mcs51/clock/hw.h,
10210         * device/examples/mcs51/simple2/go.bat,
10211         * device/examples/serialcomm/windows/serial.h,
10212         * device/examples/xa51/dummy.c,
10213         * device/examples/xa51/hello.c,
10214         * device/include/80c51xa.h,
10215         * device/include/at89x051.h: corrected cvs line endings
10216
10217 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
10218
10219         * src/pic16/main.c (options): added command line --gstack, to trace
10220         stack over/under flows,
10221         * added pragma 'wparam' to allow passing first byte of function
10222         parameters via WREG, syntax is #pragma wparam my_function[, func2...]
10223         * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
10224         call to __gstack_test function and sets up the symbol as extern,
10225         * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
10226         * popaop): added call to pic16_testStackOverflow,
10227         * (wParamCmp, inWparamList): NEW, test existence of a symbol in
10228         wparamList list,
10229         * (genCall, genPcall): now all parameters are passed via stack
10230         except in functions that are pass to wparam pragma in which WREG is
10231         used too,
10232         * (genPcall): REENTRANT flag is checked to see if variable prototype
10233         contains reentrant keyword, don't call a non-reentrant function, via
10234         a reentrant function pointer or vice versa, functions are never
10235         passed via WREG,
10236         * (genJumpTab): applied patch from bug #1057478 by R.Neider and
10237         D.Winkler,
10238         * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
10239         SIGSEGV when accessing a NULL register stucture,
10240         * (pic16_printGPointerType): modified to handle UPPER modifier for
10241         function initializers, changed prototype of function to simpler one,
10242         * (pic16_printIvalFuncPtr): check to see if function is already
10243         added in externs list,
10244         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
10245         optimized a move from W to SFR with a move to the same register
10246         later after a CALL,
10247         * device/lib/pic16/debug: NEW directory, contains debug features
10248         which are enabled when linking with libdebug.lib, currently command
10249         line option --gstack enables stack pointer tracing for over/under
10250         flow, corresponding sources are in debug/gstack
10251
10252 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
10253
10254         * doc/sdccman.lyx: updated SDCC version,
10255         * (PIC16 port): update list of command line options,
10256         * src/pic16/device.h (structure pic16_options_t): added field gstack
10257         to enable stack overflow tracing on push/pops,
10258         * src/pic16/device.c (statistics structure): added statistics
10259         structure,
10260         * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
10261         pic16_dump_int_registers): increase statistics counters for each
10262         * variable which is encountered
10263         * (pic16_dump_usection): emit each .udata variable to its own udata
10264         section,
10265         * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
10266         when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
10267         parameters via stack, otherwise use old scheme,
10268         * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
10269         assembler output file,
10270         * src/pic16/main.c: added command line options --gstack to enable
10271         push/pop tracing for stack overflow,
10272         * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
10273         instructions): added size of each instruction,
10274         * (pic16_countInstruction): estimate size of instructions in
10275         the_pFile list, inline assembly blocks are not counted,
10276         * (pic16_FixRegisterBanking): trace previous register usage, when
10277         banksel optimizations is greater than 0, don't emit a redudant
10278         banksel directive,
10279
10280 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
10281
10282         * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
10283         * src/pic16/ralloc.c : applied same fix for pic16.
10284         * src/pic/gen.c : tidied it up a little.
10285
10286 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10287
10288         * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
10289         thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
10290
10291 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10292
10293         * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
10294
10295 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10296
10297         * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
10298         non-reentrant function __modsint in the interrupt function (thus
10299         corrupting math operations during serial I/O)
10300         * device/lib/ser_ir.c: as above, changed buffersize
10301         * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
10302         256.c,d for zeroing
10303         * doc/Makefile: added option -t for rsync
10304
10305 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10306
10307         * src/SDCCast.h (struct ast),
10308         * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
10309
10310 2004-10-20 Borut Razem <borut.razem AT siol.net>
10311
10312         * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
10313         package
10314
10315 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
10316
10317         * device/lib/pic16/libsdcc/Makefile: added lregs directory in
10318         makefile targets,
10319         * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
10320         support functions to replace long sequences of MOVFF's from access
10321         bank registers to stack and vice versa,
10322         * src/pic16/device.h: added new field opt_flags, where optimization
10323         flags can be set to enable certain features,
10324         * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
10325         * pBlock, (genFunction, genEndFunction): surroung loop for
10326         saving/loading used registers in stack with PC_INFO pCodes,
10327         INF_LREGS. Code in between can then be optimized by pCode optimizer
10328         to support function calls,
10329         * (genDataPointerSet): fixed bug which loaded float fields in
10330         structures with corrupt data,
10331         * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
10332         in a standard way debug info on stderr. Feature used for developing
10333         and debugging only,
10334         * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
10335         obsolete chunks of code,
10336         * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
10337         * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
10338         * pic16/src/pcode.c (pic16_newpCodeInfo,
10339         * (pic16_newpCodeOpLocalRegs),
10340         * (pic16_convertLocalRegs2Support): NEW, to support new optimization
10341         feature,
10342         * (pic16_pCodeConstString): printing of the initial value of a
10343         symbol as a comment is inhibited since parsing was already done by
10344         copyStr and output is corrupt,
10345         * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
10346
10347 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10348
10349         * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
10350
10351 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
10352
10353         * as/mcs51/lkarea.c: removed old K&R style,
10354           (lnksect): changed check on boundary error,
10355           (lnksect2): changed check on boundary error,
10356           (lnksect2): extend XSTK to end of page if size = 1
10357         * as/mcs51/lkmain.c: removed old K&R style,
10358           (Areas51): create l_IRAM symbol
10359         * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
10360         * device/lib/Makefile.in: renamed model-mcs51-reentrant to
10361           model-mcs51-stack-auto, added model-mcs51-xstack-auto
10362         * device/lib/_mullong.c: added version to be compiled with xstack
10363         * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
10364         * device/lib/mcs51/crtxclear.asm: clear pdata as well
10365         * device/lib/mcs51/crtxstack.asm: fixed comment
10366         * src/SDCCglue.c: maxInterrupts defaults to 0,
10367           (emitMaps): added pdata,
10368           (createInterruptVect): (re)moved default,
10369           (glue): added pdata,
10370           (glue): moved __start__xstack to XSTK with default size 1
10371         * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
10372           and options.float_rent when options.stackAuto is set,
10373           (linkEdit): only write XDATA_NAME if provided on command line
10374         * src/SDCCmem.h,
10375         * src/SDCCmem.c: added pdata
10376         * src/port.h: added pdata_name to PORT
10377         * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
10378           (saveRegisters, unsaveRegisters): removed usage of B,
10379           (genMinus): fixed accumulator clash,
10380           (genJumpTab): added comment, this needs another look
10381         * src/mcs51/gen.c: added check for "B in use" paranoia,
10382           added pushB() and popB()
10383         * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
10384           chance
10385         * src/avr/main.c,
10386         * src/ds390/main.c,
10387         * src/hc08/main.c,
10388         * src/mcs51/main.c,
10389         * src/pic/main.c,
10390         * src/pic16/main.c,
10391         * src/xa51/main.c,
10392         * src/z80/main.c: (reset_regparms) made void parameter explicit and
10393           added PSEG (PAG,XDATA) or NULL to port specifier
10394         * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
10395         * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
10396           (_mcs51_genInitStartup): removed __start__xstack equ,
10397           (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
10398         * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
10399         * src/z80/gen.c (_rleAppend): fixed warnings
10400         * support/regression/tests/zeropad.c: added pdata test
10401         * .version: bumped to 2.4.6
10402
10403 2004-10-17 Borut Razem <borut.razem AT siol.net>
10404
10405         * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
10406         as a part of nightly build
10407
10408 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
10409
10410         * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
10411         WREG holds the first byte function parameters,
10412         * (aopForSym): take special case for symbols which are in FARSPACE
10413         but in CODESPACE too,
10414         * (assignResultValue): modified to take into account _G.useWreg,
10415         * (genCall): don't use wreg for parameter passing when function is
10416         declared as reentrant, too, added optimization INCF to stack
10417         pointer when stack parameter count is 1,
10418         * (genFunction, genEndFunction): refurnished and fixed to not using
10419         wreg for passing parameters when function has varargs or is
10420         reentrant, fixed bug with symbol name compare for generating
10421         functions in absolute address,
10422         * (pic16_storeForReturn): refurnished,
10423         * (genCmp): began writing a new version of the function, not ready
10424         yet, therefore it is disabled,
10425         * (genAssign): do not read code memory when assigning a function to
10426         a pointer function,
10427         * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
10428         array of characters, not pointer,
10429         * (pic16initialComments): in debug mode emit an .ident directive for
10430         the assembler,
10431         * (_process_pragma): emit a new warning type (internal to pic16)
10432         when setting stack to default length, emit a similar warning when
10433         placing a function at absolute address and address is not word aligned
10434         * (_pic16_parseOptions): added 'return TRUE' statement,
10435         * (_pic16_linkEdit): if compiling a source, then add the source's
10436         file object, first in the list of objects to link,
10437
10438 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
10439
10440         * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
10441         * src/pic/main.c : removed VC warning.
10442         * src/pic/gen.c : changed comment.
10443
10444 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
10445
10446         * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
10447         reference to a deprecated symbol _GPTRREG was causing failure to
10448         link. Thanks G. M. Gallant for the info.
10449
10450 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
10451
10452         * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
10453         comments for Bugs item #954788.
10454
10455 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
10456
10457         * src/pic16/device.c (pic16_dump_gsection,
10458         * pic16_groupRegistersInSection): handle symbols declared to be in
10459         access bank differently,
10460         * src/pic16/gen.c (struct _G): added field resDirect,
10461         * (aopForSym): if symbol on stack and iCode is '=' and result exists,
10462         send values read from stack directly to result and don't allocate
10463         temporary values,
10464         * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
10465         same registers,
10466         * (pic16_sameRegsOfs): NEW,
10467         * (freeAsmop): if _G.resDirect is set then do not mark registers as
10468         free because they were not allocated from temporary pool,
10469         * pic16_popRegFromString): workaround to fix a problem with
10470         allocating variables twice or never,
10471         * (genGenPointerGet): using PRODL instead of FSR0H,
10472         * (genGenPointerSet): using POSTDEC1 (that is a stack location)
10473         instead of FSR0H,
10474         * (genAssign): take advantage of the _G.resDirect flag,
10475         * (genCast): around line 11844, use mov2f instead of directly
10476         MOVFF'ing between operands to account for literal values,
10477         * src/pic16/genutils.c: some new debug functions for gpsim have been
10478         added,
10479         * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
10480         float with integer part only,
10481         * src/pic16/main.c (_process_pragma): handle pragma udata access to
10482         place variables in access bank
10483         * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
10484         updated sources to reflect recent changes in gen.c
10485
10486 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
10487
10488         * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
10489         sources that searched for headers in installation path, now the
10490         device/include/pic16 is used,
10491         * src/pic16/glue.c (pic16glue),
10492         * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
10493         .line directives if not in debug mode, this suppresses assembler's
10494         warnings for ignored directives
10495
10496 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
10497
10498         * src/port.h: made reset_regparms prototype void parameter explicit.
10499         * src/SDCCsymt.c (processFuncArgs): removed argument "func".
10500         * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
10501         * doc/sdccman.lyx: documented warning disabling and how to use
10502           printf_large to make it print floats.
10503         * device/include/stdbool.h: NEW
10504         * device/lib/_atof.c,
10505         * device/lib/_divuint.c,
10506         * device/lib/_divulong.c,
10507         * device/lib/expf.c,
10508         * device/lib/printf_large.c,
10509         * device/lib/sincosf.c,
10510         * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
10511         * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
10512           a completely reentrant lib.
10513
10514 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
10515
10516         * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
10517         * device/include/pic16/stdio.h: fixed bug with colon
10518
10519 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
10520
10521         * device/include/pic16/stdio.h,
10522         * device/include/pic16/stdlib.h,
10523         * device/include/pic16/math.h: NEW
10524         * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
10525         declared as _naked to reduce overhead
10526         * device/lib/Makefile.in (target port-specific-objects-pic16):
10527         changed * to *.* so to ignore the CVS directory,
10528         * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
10529         stacked variables back in stack,
10530         * (genEndFunction): fixed bug reported by G.M. Gallant with stack
10531         corruption
10532
10533 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
10534
10535         * .version: bumped version number to 2.4.5
10536         * support/Util/SDCCerr.h: added warning W_POSSBUG2.
10537         * support/Util/SDCCerr.c (messages structure): added entry for
10538         W_POSSBUG2
10539
10540         Large cumulative patch for pic16 port and libraries.
10541         * device/include/pic16/sdcc-lib.h,
10542         * device/include/pic16/stdarg.h,
10543         * device/include/asm/pic16/features.h,
10544         * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
10545         * device/include/pic16/float.h: changes reentrant keyword with
10546         _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
10547         * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
10548         updated target build-libraries to include objects from gptr,
10549         * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
10550         _IL_REENTRANT to all function headings, included sdcc-lib.h header,
10551         * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
10552         all function headings,
10553         * src/SDCCmain.c: added global parameter userIncDirsSet,
10554         * (parseCmdLine): when option -I is encountered add directory to
10555         userIncDirsSet too,
10556         * src/version.awk: added space between control and long,
10557         * src/pic16/NOTES: added some notes for the port,
10558         * src/pic16/gen.c: added prototype for mov2fp function,
10559         * (fReturnpic16[]): properly named return value registers,
10560         * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
10561         * (aopForSym): added code to handle symbols with onStack flag set,
10562         symbols onStack are allocated PTRSIZE bytes,
10563         * (aopFreeAsmop): handles special case where asmops are stack objects,
10564         * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
10565         * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
10566         added argument lock to trace flaws in allocating temporary registers
10567         when developing port,
10568         * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
10569         * (pic16_popRegFromString): reenabled allocating a direct register
10570         from string,
10571         * (assignResultValue): various beautifications,
10572         * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
10573         referenced function argument,
10574         * (genIpush): reenabled to allow stacked arguments, handles only
10575         ic->parmPush iCodes,
10576         * (genCall, genPcall): major changes to allow for variable argument
10577         functions, fixed a bug with falsely restoring stack pointer after
10578         returning from call,
10579         * (genFunction): pending code for critical function,
10580         * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
10581         * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
10582         * (genNearPointerGet): fixed bug with indirect reading, was always
10583         reading from INDF0
10584         * (genGenPointerGet, genGenPointerSet): rewrote to support generic
10585         pointers,
10586         * (genAddrOf): rewrote code to take address of a stacked function parameter
10587         * (genCast): fixed casting to generic pointer type,
10588         * src/pic16/gen.h: added AOP_STA,
10589         * (struct asmop): added field stk,
10590         * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
10591         * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
10592         * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
10593         * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
10594         * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
10595         * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
10596         generic pointers,
10597         * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
10598         and library paths,
10599         * (pic16_port structure): generic pointer size is set to 3,
10600         * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
10601         * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
10602         compiler warning,
10603         * src/pic16/ralloc.c (allocReg): prevent allocating register when
10604         operand is an iTemp,
10605
10606 2004-09-24 Martin Helmling <mh AT octo-soft.de>
10607
10608         * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
10609         * debugger/mcs51/simi.c: addapt new syntax of s51
10610
10611 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
10612
10613         * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
10614         * src/pic16/pcode.c: commented out some calls to free() in order to
10615         fix bug #989576,
10616
10617 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10618
10619         * src/SDCCicode.h,
10620         * src/SDCCicode.c (isiCodeInFunctionCall),
10621         * src/avr/ralloc.c (selectSpil),
10622         * src/pic/ralloc.c (selectSpil),
10623         * src/pic16/ralloc.c (selectSpil),
10624         * src/ds390/ralloc.c (selectSpil),
10625         * src/hc08/ralloc.c (selectSpil),
10626         * src/xa51/ralloc.c (selectSpil),
10627         * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
10628         stack in the middle of a function call sequence (fixes bug #1020268)
10629         * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
10630         costs associated with the minimum switch case.
10631
10632 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10633
10634         * src/SDCC.lex: fixed bug #1030549
10635
10636 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10637
10638         * src/SDCCcse.h (struct cseDef),
10639         * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
10640         over a function call if the CSE is derived from a symbol whose
10641         address has been taken (fixes bug #1029883)
10642         * support/regression/tests/bug-1029883: a new regression test for
10643         this bug
10644
10645 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10646
10647         * src/hc08/gen.c (emitinline): fixed bug #1029778
10648         * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
10649         to a cast object is no longer a syntax error ("fixes" bug #1030006,
10650         and starts toward RFE #905167)
10651
10652 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
10653
10654         * src/pic16/gen.c (mov2f): New function to move an operand to
10655         another without considering if it is a literal or a register,
10656         * (pic16_sameRegs): don't check if they are both AOP_REG,
10657         * (AccRsh): removed andmask=0 lines,
10658         * (genLeftShift): duplicated to be improved in future versions,
10659         * src/pic16/main.c (_process_pragma): emit stack default size in hex,
10660         * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
10661         in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
10662         * (pic16initMnemonics): added initialization for POC_INFSNZW,
10663         * (insertBankSwitch): fixed inserting banksel directives algorithm
10664         for instructions that follow a skip instruction, this fixes a report
10665         for broken subtraction code generation,
10666         * src/pic16/ralloc.c (deassignLRs): do not free register if current
10667         iCode is a left op, just in case result and right share the same
10668         registers
10669
10670 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10671
10672         * src/hc08/main.c,
10673         * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
10674         preservation of HX
10675         * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
10676         * src/mcs51/ralloc.c (packRegisters): removed the patch applied
10677         on 2004-09-12; it was buggy
10678
10679 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
10680
10681         * src/SDCCsymt.h: removed RESULT_CHECK
10682         * src/SDCCast.c,
10683         * src/SDCCglue.c,
10684         * src/SDCCval.c,
10685         * src/pic/glue.c,
10686         * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
10687
10688 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
10689
10690         * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
10691         * src/pic16/device.c (pic16_assignConfigWordValues): wrong
10692         configuration values no more rejected by compiler, they are assigned
10693         to configuration registers with a warning message instead,
10694         * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
10695         the for-loop so last conf register is emitted too,
10696         * (_pic16_initPaths): link library libsdcc.lib by default,
10697         * (_hasNativeMulFor): modified test for multiplication according to
10698         Raphael Neider's remarks. Integer multiplication is also done with
10699         support functions,
10700         * device/include/pic16/pic18fregs.h: corrected type error in while
10701         testing and including 18f6720 header file
10702
10703 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
10704
10705         * src/pic16/device.h (pic16_options): removed field use_crt,
10706         * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
10707         until an optimization to handle single bits is added,
10708         * (pic16_loadFSR0): moved before genUnpackBits,
10709         * (genAnd): some white lines removed,
10710         * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
10711         leave_reset flags in pic16_options when using crt modules,
10712
10713 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
10714
10715         * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
10716           for bugs 898889 & 979599. Also used some safer print instructions.
10717
10718 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
10719
10720         * src/pic16/device.h (pic16_options_t): added field use_crt,
10721         crt_name, no_crt,
10722         * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
10723         catch a probable future bug,
10724         * src/pic16/gen.c: aopIdx function commented out,
10725         * (genAssign): commented out old code which used aopIdx,
10726         * src/pic16/glue.c (pic16glue): removed some legacy fragments of
10727         code, added if conditionals to take into account the --use-crt
10728         command line options,
10729         * src/pic16/main.c (pic16_optionsTable): added new command line
10730         options, --use-crt= and --no-crt,
10731         * (_pic16_linkEdit): now the proper crt object is added in the
10732         linker command line except than when --no-crt is specified,
10733         * src/pic16/pcode.c,
10734         * src/pic16/pcode.h: added some structures and functions for a new
10735         optimization scheme to compansate for instruction overhead between
10736         same iCodes, this scheme is currently under development and is not
10737         working in any way,
10738         * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
10739         to && operator,
10740         * device/lib/pic16/startup/crt0i.c,
10741         * device/lib/pic16/startup/crt0iz.c: added global char variable
10742         __uflags to force the generation of an idata section
10743
10744 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
10745
10746         * doc/Makefile,
10747         * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
10748         * doc/sdccman.lyx: updated sdcc version to 2.4.4
10749
10750 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10751
10752         * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
10753         Frieder) and clarified the default code optimization mode
10754
10755 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10756
10757         * src/SDCC.lex (doPragma, process_pragma),
10758         * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
10759         "opt_code_size", and "opt_code_balanced"
10760         * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
10761         regrouped options by category, added support for category headers
10762         * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
10763         and "--opt-code-size"
10764         * doc/sdccman.lyx: documented these new options and pragmas
10765         * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
10766         preference into account
10767
10768 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
10769
10770         * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
10771           geniCodePreDec): Fixed bug 904237 by generating a warning
10772         * src/SDCCerr.h,
10773         * src/SDCCerr.c: added warning W_SIZEOF_VOID
10774
10775 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
10776
10777         * src/pic/device.c : When no max ram set validate full memory range.
10778         * src/pic/pcode.c,
10779         * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
10780
10781 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
10782
10783         * device/lib/_gptrget.c,
10784         * device/lib/_gptrput.c: updated comment
10785         * device/lib/calloc.c,
10786         * device/lib/free.c,
10787         * device/lib/malloc.c,
10788         * device/lib/realloc.c: added LGPL, made them reentrant-safe
10789         * src/SDCCcse.c (cseBBlock),
10790         * src/SDCCicode.c (printOperand, geniCodeArray),
10791         * src/SDCCicode.h (struct operand): fixed bug 868103
10792         * support/regression/tests/bug-868103.c: added
10793         * src/SDCCast.c (searchLitOp),
10794         * src/SDCCcse.h (struct cseDef),
10795         * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
10796         * src/SDCCicode.h (struct operand),
10797         * src/SDCCsymt.h (struct sym_link),
10798         * src/avr/gen.c (hasInc),
10799         * src/ds390/gen.c (hasInc),
10800         * src/hc08/gen.c (genPlusIncr, hasInc),
10801         * src/mcs51/gen.c (hasInc),
10802         * src/pic16/glue.c (pic16_printIvalChar),
10803         * src/pic16/ralloc.c (regWithIdx),
10804         * src/xa51/gen.c (hasInc) : removed warnings
10805         * src/SDCCast.c (createBlock): added comment ???
10806         * src/hc08/ralloc.c: updated comments
10807
10808 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10809
10810         * doc/sdccman.lyx: updated section on switch statements, added
10811         section about semaphore locking
10812         * doc/Makefile: added option -info for latex2html
10813         * device/lib/_gptrget.c,
10814         * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
10815
10816 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
10817
10818         * src/pic/device.h,
10819         * src/pic/device.c,
10820         * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
10821          maxram is less than 0x100.
10822
10823 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
10824
10825         * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
10826
10827 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10828
10829         * src/port.h,
10830         * src/mcs51/main.c,
10831         * src/ds390/main.c,
10832         * src/z80/main.c,
10833         * src/hc08/main.c,
10834         * src/pic/main.c,
10835         * src/pic16/main.c,
10836         * src/avr/main.c,
10837         * src/xa51/main.c
10838         * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
10839         a jump table is the best form for a switch statement, including
10840         automatic insertion of missing cases to make the case range
10841         continuous. Developed in collaboration with Frieder Ferlemann.
10842
10843 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10844
10845         * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
10846         accumulator result if it needs sign extension
10847
10848 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
10849
10850         * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
10851
10852 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
10853
10854         * device/lib/gbz80/printf.c,
10855         * device/lib/z80/printf.c: removed define for NULL
10856
10857 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
10858
10859         * as/xa51/xa_link.c,
10860         * device/examples/ds390/ow390/ad26.c,
10861         * device/examples/ds390/ow390/cnt1d.c,
10862         * device/examples/ds390/ow390/counter.c,
10863         * device/examples/ds390/ow390/ds2480.h,
10864         * device/examples/ds390/ow390/ds2480ut.c,
10865         * device/examples/ds390/ow390/findtype.c,
10866         * device/examples/ds390/ow390/gethumd.c,
10867         * device/examples/ds390/ow390/owllu.c,
10868         * device/examples/ds390/ow390/ownetu.c,
10869         * device/examples/ds390/ow390/swt12.c,
10870         * device/examples/ds390/ow390/swtloop.c,
10871         * device/examples/ds390/ow390/temp.c,
10872         * device/examples/ds390/ow390/temp10.c,
10873         * device/examples/ds390/ow390/thermo21.c,
10874         * device/examples/ds390/ow390/tinilnk.c,
10875         * device/examples/ds390/ow390/tstfind.c,
10876         * device/examples/serialcomm/windows/serial.cpp,
10877         * device/examples/serialcomm/windows/test_serialcomm.cpp,
10878         * device/include/reg51.h: fixed line endings for cvs
10879
10880 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10881
10882         * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
10883         packRegsForAccUse, packRegisters): new accumulator register
10884         packing algorithm
10885         * support/regression/ports/hc08/support.c (_putchar): suppress
10886         warning of unused variable
10887         * src/SDCCicode.c: added SWAP entry to codeTable
10888
10889 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
10890
10891         * device/lib/sprintf.c: forgot to add this file before previous commit
10892
10893 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
10894
10895         * src/pic16/gen.c (genPackBits): added operand right in function
10896         parameters, load result directly if p_type is POINTER (that is
10897         called by genNearPointerSet)
10898         * (genUnPackBits): added operand left in function parameters,
10899         * (genNearPointerGet, genNearPointerSet): prevent the loading of
10900         FSR0 if accessing bitfields,
10901
10902 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
10903
10904         * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
10905           _print_format; updated printf, sprintf, vsprintf
10906         * device/include/asm/default/features.h: corrected comment/define
10907         * device/lib/Makefile.in: added sprintf.c
10908         * device/lib/libsdcc.lib: added sprintf module
10909         * device/lib/printf_large.c,
10910         * device/lib/vprintf.c,
10911         * device/lib/sprintf.c: totally refactored printf_large and vprintf
10912           into these 3 files
10913         * support/regression/Makefile: changed ALL_PORTS into a usefull default
10914         * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
10915         * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
10916           hc08 test
10917         * support/regression/tests/zeropad.c: define idata as data for hc08
10918
10919 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10920
10921         * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
10922         * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
10923         labels are referenced at least once (even if a reference is not found)
10924         * src/hc08/gen.c (emitcode): set isComment flag for comments
10925         * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
10926         loads), rules 6a..6b (optimize jumps to return)
10927
10928 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10929
10930         * device/lib/acosf.c (acosf),
10931         * device/lib/asinf.c (asinf),
10932         * device/lib/atanf.c (atanf),
10933         * device/lib/ceilf.c (ceilf),
10934         * device/lib/cosf.c (cosf),
10935         * device/lib/coshf.c (coshf),
10936         * device/lib/cotf.c (cotf),
10937         * device/lib/fabsf.c (fabsf),
10938         * device/lib/floorf.c (floorf),
10939         * device/lib/log10f.c (log10f),
10940         * device/lib/logf.c (logf),
10941         * device/lib/sinf.c (sinf),
10942         * device/lib/sinhf.c (sinhf),
10943         * device/lib/sqrtf.c (sqrtf),
10944         * device/lib/tanf.c (tanf),
10945         * device/lib/tanhf.c (tanhf),
10946         * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
10947         replaced all instances of "reentrant" in the library functions
10948         defined in math.h with this macro.
10949         * support/regression/tests/float_trans.c: reenabled test for hc08
10950
10951 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
10952
10953         * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
10954         erroneously deleted
10955
10956 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10957
10958         * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
10959         * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
10960         multi-byte volatile operands are used
10961         * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
10962         * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
10963         initialization to area GSINIT0 so that it would always precede
10964         any static initializers in GSINIT
10965         * support/regression/tests/zeropad.c: fixed idata define for hc08
10966         * support/regression/tests/bug-927659.c,
10967         * support/regression/tests/float_trans.c: disabled tests for hc08
10968         pending missing library routines
10969         * .version: increased version number to 2.4.4 - hc08 port now passes
10970         regression tests
10971
10972
10973 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
10974
10975         * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
10976         * Makefile.common.in,
10977         * as/Makefile,
10978         * as/hc08/Makefile.in,
10979         * as/mcs51/Makefile.in,
10980         * as/z80/Makefile.in,
10981         * debugger/mcs51/Makefile.in,
10982         * device/include/Makefile.in,
10983         * device/lib/Makefile.in,
10984         * doc/Makefile,
10985         * link/Makefile,
10986         * link/z80/Makefile.in,
10987         * packihx/Makefile.in,
10988         * sim/ucsim/main_in.mk,
10989         * sim/ucsim/avr.src/Makefile.in,
10990         * sim/ucsim/doc/Makefile.in,
10991         * sim/ucsim/gui.src/serio.src/Makefile.in,
10992         * sim/ucsim/hc08.src/Makefile.in,
10993         * sim/ucsim/s51.src/Makefile.in,
10994         * sim/ucsim/xa.src/Makefile.in,
10995         * sim/ucsim/z80.src/Makefile.in,
10996         * src/Makefile.in,
10997         * support/cpp2/Makefile.in,
10998         * support/librarian/Makefile,
10999         * support/makebin/Makefile: added DESTDIR to the install path proposed
11000         by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
11001         * doc/sdccman.lyx: added DESTDIR documentation
11002
11003 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
11004
11005         * src/pic16/gen.c (genFunction, genEndFunction): fixed return
11006         instruction for interrupt handlers, use fast returns when returning
11007         from high priority interrupts
11008
11009 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11010
11011         * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
11012         code generation
11013         * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
11014         * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
11015         bugs, ported much of Bernhard's code from mcs51
11016         * src/mcs51/gen.c (genSend),
11017         * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
11018         than one when calling a reentrant function
11019         * device/lib/_mullong.c: defined an alternate struct layout for big
11020         endian ports (hc08)
11021
11022 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11023
11024         * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
11025         test
11026
11027 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11028
11029         * src/SDCCsymt.c (processFuncArgs): make sure parameter types
11030         are sane and complete before asking the port its prefered parameter
11031         passing method (fixes bug #1017633)
11032         * device/lib/hc08/_ret.c: added "data" storage class to _ret2
11033         and _ret3
11034
11035 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11036
11037         * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
11038         problem in bitfields >= 8 bits.
11039
11040 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
11041
11042         * src/SDCCsymt.c: undid changes that were not meant to be committed
11043
11044 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
11045
11046         * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
11047
11048 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
11049
11050         * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
11051           copied and wrong bit got inverted
11052
11053 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11054
11055         * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
11056         genFarPointerSet into genPointerSet; eliminated genFarPointerSet
11057         * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
11058         genFarPointerGet into genPointerGet; eliminated genFarPointerGet
11059         * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
11060         assignments to bitfields at known addresses
11061         * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
11062         reads from bitfields at known addresses
11063         * src/hc08/ralloc.c (packRegisters),
11064         * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
11065         genhc08Code): optimize pointer get values used as conditionals
11066         * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
11067         and branch
11068
11069 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11070
11071         * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
11072         genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
11073         * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
11074         as conditionals
11075
11076 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11077
11078         * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
11079
11080 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11081
11082         * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
11083         related problems
11084
11085 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
11086
11087         * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
11088
11089 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11090
11091         * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
11092         mcs51 port
11093
11094 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
11095
11096         * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
11097
11098 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11099
11100         * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
11101         cases use more compact code.
11102
11103 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
11104
11105         * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
11106
11107 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11108
11109         * src/SDCClrange.c (findPrevUse): fixed bug #1007371
11110
11111 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11112
11113         * src/SDCCsymt.h,
11114         * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
11115         parameter of changePointer() from symbol* to sym_link*
11116         * src/SDCCast.c (decorateType): call changePointer() for CAST op
11117         * src/SDCCsymt.c (compareType): void* type is castable to other
11118         pointers, but not necesarily an exact match.
11119         * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
11120         is no longer blindly treated as an exact match.
11121         * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
11122
11123 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
11124
11125         * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
11126
11127 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
11128
11129         * src/pic/gen.c,
11130         * src/pic/pcode.c,
11131         * src/pic/ralloc.h,
11132         * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
11133
11134 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
11135
11136         * src/pic/device.c,
11137         * src/pic/device.h,
11138         * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
11139
11140 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11141
11142         * src/mcs51/gen.c (emitcode): fixed bug #992819
11143
11144 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
11145
11146         * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
11147           there's no need to make it worse
11148
11149 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11150
11151         * src/mcs51/ralloc.c (deassignLR),
11152         * src/ds390/ralloc.c (deassignLR),
11153         * src/hc08/ralloc.c (deassignLR),
11154         * src/z80/ralloc.c (deassignLR),
11155         * src/pic/ralloc.c (deassignLR),
11156         * src/pic16/ralloc.c (deassignLR),
11157         * src/avr/ralloc.c (deassignLR),
11158         * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
11159         rlivePoint): fixed another part of bug #971834
11160
11161 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11162
11163         * src/z80/main.c: enabled "critical" keyword
11164         * src/z80/mappings.i,
11165         * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
11166         functions (fixes bug #979646)
11167         * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
11168
11169 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11170
11171         * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
11172           such as c:\mydir.
11173
11174 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
11175
11176         * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
11177           doesn't disable too much optimizations
11178
11179 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
11180
11181         * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
11182
11183 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
11184
11185         * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
11186
11187 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
11188
11189         * src/pic/gen.c tidied up tabs
11190         * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
11191         * src/pic/main.c tidied up tabs
11192         * src/pic/pcode.c tidied up tabs and disabled verbose code generation
11193         * src/pic/pcoderegs.c tidied up tabs
11194         * src/pic/ralloc.c tidied up tabs
11195
11196 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
11197
11198         * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
11199         to S_FIXED for pic16 port and when symbol is not in level 0,
11200         allocate for S_REGISTER storage class and pic16 port, too,
11201         * src/pic16/device.h: prototype for checkSym,
11202         * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
11203         * (pic16_assignConfigWordValue): test the value and the mask to
11204         validate that the value is suitable for the configuration word,
11205         * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
11206         collect extern declared symbols, don't emit symbol twice, check
11207         first if symbol is in publics set first,
11208         * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
11209         * added command line '--fstack' which enables an experimental
11210         feature for stack access, too buggy to be used yet...
11211         * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
11212         * (pic16_allocDirReg): when register has storage class S_REGISTER
11213         allocate in pic16_dynAccessRegs,
11214         * device/include/pic16/pic18f????.h: modified configuration word
11215         naming convention, words started as CONFIG0H but should be CONFIG1H
11216
11217 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
11218
11219         * device/include/mcs51reg.h: fixed bug 970993
11220
11221 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
11222
11223         * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
11224         * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
11225         * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
11226         * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
11227         * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
11228         * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
11229           error/warning numbers,
11230           added function setWarningDisabled()
11231         * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
11232         * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
11233           _memcmp.c _memmove.c calloc.c realloc.c free.c
11234         * support/regression/tests/malloc.c: added tests for new functionality
11235         * support/regression/tests/zeropad.c: added tests for truncated initializers
11236           and initialized char arrays starting with '\x0'
11237         * src/mcs51/peeph.def: fixed regression, added peephole 177.f
11238
11239 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
11240
11241         * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
11242
11243 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11244
11245         * doc/sdccman.lyx: updated example in section "Absolute Addressing"
11246         * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
11247         peephole 177.e. Thanks to anonymous
11248
11249 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
11250
11251         * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
11252         function isn't used in the source but referenced as a
11253         variable initializer then declare it as extern in .asm file
11254
11255 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
11256
11257         * .version: increased version number to 2.4.3
11258
11259         Adding version extension according to ChangeLog CVS revision
11260         * src/Makefile.in (target all): added dependency 'version.h'
11261         * (rule version.h): added rule to create version.h from ChangeLog,
11262         * (rule dep): added dependency version.h,
11263         * src/version.awk: AWK script to create version.h
11264         * src/SDCCdwarf2.c (dwWriteModule),
11265         * src/SDCCglue.c (initialComments),
11266         * src/SDCCmain.c (printVersionInfo): modified to write after
11267         version string the version extension number,
11268         * src/SDCCutil.c: included "version.h"
11269         * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
11270         number,
11271         * src/SDCCutil.h: added prototype for getBuildNumber
11272
11273         * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
11274         includeDirsSet, too,
11275         * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
11276         const char [] is found in function prototype...
11277
11278         * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
11279         moving to WREG with source is already in WREG,
11280         * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
11281         * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
11282         * (aopForSym): stack'ed symbols are partially supported, added
11283         if-clause to support symbols in FARSPACE,
11284         * (sameRegs): added test for AOP_ACC to see if registers are same,
11285         * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
11286         * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
11287         * (pic16_popRegFromString): will not allocate a new register if it
11288         doesn't find one by name, bug may have introduced...
11289         * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
11290         * (genIpush): revived to use pic16 port's stack,
11291         * (genAddrOf): added incomplete case for stack'ed operand,
11292         * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
11293         * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
11294         can handle multibyte operands,
11295         * src/pic16/glue.c (pic16_printIval*): some debug info added,
11296         * (pic16initialComments): added message for MPLAB compatibility
11297         mode enabled,
11298         * src/pic16/main.h: prototype for pic16_mplab_comp,
11299         * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
11300         which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
11301         * (_pic16_linkEdit): NEW, handles link stage, transferred here
11302         because of increased complexity of procedure,
11303         * (_process_pragma): stack pragma changed to format 'stack pos len',
11304         emit symbol '_stack_end' to conform with gplink,
11305         * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
11306         to search for register,
11307         * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
11308         PO_GPR_REGISTER,
11309         * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
11310         #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
11311         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
11312         case for PO_GPR_REGISTER,
11313         * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
11314         dies, the new era is ahead !...
11315         * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
11316         pic16_dynInternalRegs,
11317         * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
11318         * (pic16_allocDirReg): minor optimizations and bug fixes,
11319         * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
11320
11321         * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
11322         load stack and frame pointer with address of 'stack_end' symbol
11323
11324 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
11325
11326         * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
11327         without source code but only variable initializers
11328
11329 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
11330
11331         * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
11332         external are not declared as extern to reduce overhead while linking
11333
11334 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
11335
11336         * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
11337
11338 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
11339
11340         * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
11341           Yee Keat for the patch
11342         * src/SDCCast.c (decorateType): fixed bug #979599
11343         * src/ds390/gen.h: removed local fReturnSizeDS390
11344         * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
11345         * src/ds390/gen.c (genAnd, genOr, genXor),
11346         * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
11347
11348 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
11349
11350         * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
11351         add relFilesSet to $3, manipulate $2 to handle linking of object
11352         files without source files in command line,
11353         * device/include/pic16 (all headers): added ID location macros,
11354         * src/pic16/device.c (struct PIC16_device Pics16[]): added field
11355         entries for ID location bytes,
11356         * (pic16_assignIdByteValue): NEW,
11357         * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
11358         added field dumpcalltree to pic16_options_t,
11359         * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
11360         is used instead of pic16_Gstack_base_addr, check if (ifx) before
11361         emitting rFalseIfx label after check_carry label,
11362         * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
11363         pic16_emitDIRegs), NEW
11364         * (pic16glue): dump .calltree file when option --calltree found,
11365         * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
11366         * (_pic16_genAssemblerPreamble): emit ID locations after
11367         configuration registers,
11368         * (pic16_linkCmd): modifications of the link command,
11369         * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
11370         * (pic16_pCodeInitRegisters): don't init stack registers,
11371         * (pic16_findPrevInstruction): fixed bug,
11372         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
11373         bug with immediate registers,
11374         * (buildCallTree): traces stack push and pop,
11375         * (pct2): dump also stack usage for each function,
11376         * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
11377         * (pic16_allocDirReg): various modifications,
11378         * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
11379         fixed to 1,
11380
11381 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
11382
11383         * src/pic16/pcode.c: removed buggy double colon
11384
11385 2004-07-01 Borut Razem <borut.razem AT siol.net>
11386
11387         * support/scripts/sdcc.nsi: added include/pic16 to setup
11388
11389 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
11390
11391         * device/lib/Makefile.in: fixed bug in target objects-pic16,
11392         * device/lib/pic16/Makefile: prefixed with dash (-) command under
11393         target 'clean',
11394         * doc/sdccman.lyx: changed version to 2.4.2 and added some port
11395         specific command line arguments. Also added sample lkr script
11396         for placing a variable at a specific memory bank.
11397         * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
11398         at a specific memory bank,
11399         * (pic16_dump_isection): fixed bug which caused string literals to
11400         be omitted when dumping idata section,
11401         * (pic16_groupRegistersInSection): added code to handle registers
11402         in specific memory banks,
11403         * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
11404         public, all references are renamed too,
11405         * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
11406         AOP_DPTR2,
11407         * (pic16_storeForReturn): added case to handle when dest is WREG,
11408         * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
11409         * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
11410         pic16_rel_udata, check to see if that register is marked as being
11411         a member of a specific memory bank,
11412         * (pic16_printIvalCharPtr): added code to add string literals either
11413         to code or the idata sections,
11414         * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
11415         also accept the 'udata' pragma,
11416         * src/pic16/main.h: new structure types sectName and sectSym
11417         * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
11418         * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
11419         * (pic16_findPrevInstruction): fixed, it returned nothing,
11420         * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
11421         instruction combinations,
11422         * (pic16_FixRegisterBanking): heavily reorganised,
11423         * (pic16_AnalyzeBanking): if generating banksel directives is
11424         disabled, then don't call FixRegisterBanking at all,
11425         * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
11426         completely removed,
11427         * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
11428
11429 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
11430
11431         * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
11432         Phuah Yee Keat <yk.phuah AT nestac.com>
11433
11434 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
11435
11436         * src/pic16/glue.c (pic16createInterruptVect): function now emits
11437         correctly the IVT even if it is relocated to some other location
11438
11439 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
11440
11441         * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
11442         * device/include/pic16/pic18f2220.h: NEW,
11443         * device/lib/pic16/libdev/pic18f2220.c: NEW,
11444         * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
11445         * src/pic16/device.c (struct Pics16): added info for 18f2220,
11446         * src/pic16/device.h (struct pic16_options): added ivt_loc and
11447         nodefaultlibs, ivt_loc is the location of the interrupt vector
11448         table, and nodefaultlibs signs that default libraries should not be
11449         linked in link stage,
11450         * src/pic16/gen.c (genFunction): relocate interrupt vector functions
11451         according to --ivt-loc argument,
11452         * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
11453         when pragma stack is found,
11454
11455 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11456
11457         * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
11458         256 (range check), 257 (do while), 258.a-f (bit banging
11459         f.e. on 3-wire SPI bus)
11460
11461 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11462
11463         * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
11464         variables used exclusively within a loop
11465
11466 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
11467
11468         * src/mcs51/gen.c (genCpl): quick fix for bug #974835
11469
11470 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11471
11472         * src/SDCClrange.c (computeClash): fixed bug #971834
11473
11474 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11475
11476         * src/mcs51/gen.c (genCmp): fixed bug #975903
11477         * src/hc08/gen.c (operandsEqu),
11478         * src/ds390/gen.c (operandsEqu),
11479         * src/z80/gen.c (operandsEqu),
11480         * src/pic/gen.c (operandsEqu),
11481         * src/pic16/gen.c (operandsEqu),
11482         * src/mcs51/gen.c (operandsEqu): fixed bug #976283
11483         * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
11484
11485 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11486
11487         * src/SDCCcse.c (cseBBlock): fixed bug #966963
11488
11489 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
11490
11491         * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
11492         default case in switch statement,
11493         * glue.c (pic16_initPointer): expr is initialised via decoarteType
11494         to eliminate problem with initialisation of pointers, but problem
11495         still exists,
11496         * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
11497         * (emitStaticSegment): removed various lines emitting debug info,
11498         * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
11499         added processor registers for utilizing EEPROM,
11500         * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
11501         configurable and set 8
11502
11503 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
11504
11505         * .version: increased version number to 2.4.2,
11506
11507         Cumulative patch for pic16 port
11508         * src/pic16/device.c: changed scheme to dump initial values for
11509         variables in idata segment, all print_idata* functions were removed,
11510         now the pic16_printIval* will be called,
11511         * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
11512         * _pic16_printPointerType, pic16_printPointerType,
11513         * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
11514         * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
11515         NEW, similar to the respective functions in SDCCglue.c,
11516         * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
11517         way, emitting hex bytes,
11518         * (pic16_emitDS): NEW, emits a string for pointer initialisation,
11519
11520 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11521
11522         * src/avr/ralloc.c (serialRegAssign),
11523         * src/xa51/ralloc.c (serialRegAssign),
11524         * src/pic/ralloc.c (serialRegAssign),
11525         * src/pic16/ralloc.c (serialRegAssign),
11526         * src/hc08/ralloc.c (serialRegAssign),
11527         * src/z80/ralloc.c (serialRegAssign),
11528         * src/ds390/ralloc.c (serialRegAssign),
11529         * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
11530
11531 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11532
11533         * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
11534         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
11535
11536 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
11537
11538         Cumulative patch for pic16 port:
11539         * src/pic16/device.h (typedef PIC16_device) modified fields for
11540         defining microcontrollers,
11541         * src/pic16/device.c: added new info for all devices in Pics16 array,
11542         * src/pic16/gen.c (genPcall): fixed bug that caused the return label
11543         to be optimised out by the pCode optimiser,
11544         * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
11545         specially, bug reported by G.M. Gallant,
11546         * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
11547         as force'd so that cannot be optimised out by pCode optimiser,
11548         * src/pic16/pcode.c,
11549         * src/pic16/pcodepeeph.c,
11550         * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
11551         they are disabled by default, but can be enabled explicit with
11552         command argument --denable-peeps, for testing,
11553         * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
11554         --pomit-ivt in COMPILE_FLAGS
11555
11556 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
11557
11558         * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
11559           compilation on MSVC
11560
11561 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
11562
11563         * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
11564
11565 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11566
11567         device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
11568         0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
11569
11570 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
11571
11572         * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
11573         would only assign 0x300001 register.
11574
11575 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
11576
11577         * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
11578         in COMPILE_FLAGS. Thanks to G. Gallant for report.
11579
11580 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11581
11582         * doc/sdccman.lyx: minor changes, mentioned beta vendor support
11583         for ds80c400
11584         * src/mcs51/peeph.def: ran unexpand -a over peeph.def
11585         * src/mcs51/peeph.def: removed obsolete peephole 100.a,
11586         added peephole 254 (left shift), 255 (jump table)
11587
11588 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
11589
11590         * device/lib/Makefile.in: removed comment line with model-pic16,
11591         * (target port-specific-objects-pic16): the libraries and objects
11592         are copied to the build directory form the device/lib/pic16/bin
11593         directory
11594
11595         Cumulative patch concerning pic16 port:
11596         * library directory has been re-organized,
11597         * added support for PIC18F1220,
11598         * added headers and library sources for chips 18f1220,18f6520,
11599         18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
11600
11601         * configuration registers setting has changed, now each supported
11602         device has a complete description of the registers it uses,
11603         * all initialisations are moved to idata sections, these section
11604         can be absolute or relocatable,
11605         * fixed initialisation of codespace variables,
11606         * fixed warning about PCLATU and gpsim,
11607         * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
11608         * (genAssign): use table reads when assigning from variables in codespace,
11609         * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
11610         char/int variables placed in codespace,
11611         * (pic16_emitConfigRegs): NEW, emits a list with configuration
11612         registers set in .asm file, no need for --pomit-config-words anymore,
11613         * (pic16glue): some 8051 legacy segments are commented out
11614         (to be removed completely),
11615         * added support for alternative assembler and linker with --asm=
11616         and --link= command line arguments,
11617         * peepholes are disabled automatically in the port, no need to
11618         specify on command line,
11619         * port supports natively char/int/long multiplication, but converts
11620         all divisions to support functions,
11621         * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
11622         to the file set in variable $2,
11623         * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
11624         strings in ASCII format and not in hex,
11625         * ralloc.c (serialRegAssign): added a triplet of conditional calls
11626         to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
11627         allocate proper register if iCodes aren't temporary,
11628
11629 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
11630
11631         * support/regression/tests/zeropad.c: added TEST_G macro for alpha
11632
11633 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
11634
11635         * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
11636         is commented out
11637
11638 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11639
11640         * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
11641         computed address is reused
11642         * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
11643         multi-byte bitfields
11644
11645 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
11646
11647         * src/z80/gen.c: (genArrayInit): must check for pointers too
11648
11649 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
11650
11651         * support/regression/tests/zeropad.c: never meant to commit the
11652           nestedstruct test: removed, added check for GCC version
11653
11654 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
11655
11656         * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
11657         * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
11658         * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
11659           printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
11660           bugs 928906 and 954082 half-empty initializers
11661         * src/SDCCsymt.h,
11662         * src/SDCCsymt.c (getAllocSize): added for above fix
11663         * src/z80/gen.c (genArrayInit): fixed bug 741044
11664         * support/regression/tests/zeropad.c: added tests
11665
11666 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
11667
11668         * src/pic16/device.c (pic16_dump_section): corrected bug which
11669         caused some symbols of the libraries to be misplaced
11670
11671 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
11672
11673         * src/pic16/glue.c,
11674         * src/pic16/ralloc.h,
11675         * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
11676         to fix conflict with pic port
11677
11678 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
11679
11680         * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
11681         externs configuration variables,
11682         * src/pic16/ralloc.h,
11683         * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
11684         prototype in header, commented out some debug messages
11685
11686 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
11687
11688         * src/pic16/glue.c,
11689         * src/pic16/main.c,
11690         * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
11691         for gpasm COFF object generation. Thanks to D. Hawkins for
11692         his patch info
11693
11694 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11695
11696         * src/ds390/main.c,
11697         * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
11698         Brock for spotting this)
11699         * src/ds390/gen.c (genEndFunction),
11700         * src/mcs51/gen.c (genEndFunction): always save psw if function is an
11701         interrupt handler and critical. Disable push/pop optimizations when
11702         peephole optimizations disabled.
11703
11704 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
11705
11706         Updated pic16 library sources and headers.
11707         * device/lib/pic16/pic18f*/ ,
11708         * device/include/pic16/*.h: modified to handle structured SFR
11709         definitions
11710
11711 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
11712
11713         * src/port.h (PORT structure): added hook initPaths, now each
11714         port can declare its own default search paths,
11715         which can been seen with the --print-search-dirs option,
11716         see pic16 port for example,
11717         * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
11718         setDataPaths): test to options.printSearchDirs is ifdef'ed out,
11719         * (doPrintSearchDirs): NEW, replaces in a central manner the
11720         printing of search dirs which was split in set*Paths functions,
11721         * (main): added call to port->initPaths and doPrintSearchDirs,
11722         * src/avr/main.c,
11723         * src/ds390/main.c,
11724         * src/hc08/main.c,
11725         * src/izt/i186.c,
11726         * src/izt/tlcs900h.c,
11727         * src/mcs51/main.c,
11728         * src/pic/main.c,
11729         * src/pic16/main.c: modified port structures to reflect addition of
11730         initPaths hook,
11731
11732         * src/pic16/device.c (regCompare): registers are finally sorted by name,
11733         * (pic16_dump_section): for registers in same address reserve memory once,
11734         * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
11735         to no_banksel,
11736         * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
11737         result is greater in size than right or left,
11738         * (pic16_genUMult8X8_8): there are some cases where the result can
11739         be 16 bits size, so handle these,
11740         * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
11741         * (pic16_outBitC): modified to emit pcodes,
11742         * (pic16_storeForReturn): using is_LitOp to see if operand is literal
11743         or not,
11744         * (genDivOneByte): implemented algorithm to divide 8-bits,
11745         * (genCmp): uncommented goto, but issues still exist,
11746         * (genAnd): fixed a bug with variables >8bits,
11747         * (genPackBits): optimization added that uses BCF/BSF to change a
11748         single bit,
11749         * (genAssign): fixed bug when assigning floating point literals,
11750         * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
11751         __sdcc_gsinit_startup label,
11752         * src/pic16/main.c (_pic16_init): removed search directory
11753         initialisations,
11754         * (_pic16_initPaths): NEW, used to initialise search directories,
11755         * (_hasNativeMulFor): support functions for all except char/int
11756         multiplication, and char division,
11757         * (PIC16_port struct): modified entry for native mul support,
11758         * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
11759         no_banksel option,
11760         * (buildCallTree): call to register_usage is ifdef'ed out,
11761
11762 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11763
11764         * device/include/string.h: applied Stas Sergeev's patch to make this
11765         header file compatible with the preprocessor -Wundef option
11766         * src/SDCCmain.c (main): abort compilation if preprocessor reports
11767         failure (fixes bug #941458)
11768
11769 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11770
11771         * src/SDCCopt.c (killDeadCode): fixed bug #907733
11772         * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
11773         that the variable, not the function, should be static
11774         * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
11775         to be consistent with non-literal case
11776
11777 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11778
11779         * src/SDCCast.c (isConformingBody): fixed bug #949967
11780         * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
11781         convilong): fixed bug #952086
11782
11783 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11784
11785         * src/SDCCmem.c (allocVariables): fixed bug #955321
11786
11787 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11788
11789         * src/hc08/main.c (_hc08_genAssemblerEnd),
11790         * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
11791         dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
11792         completely eliminated the use of a temporary file
11793         * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
11794         when more than one file linked
11795         * src/SDCCloop.c (pointerAssigned): fixed bug #954163
11796
11797 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11798
11799         * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
11800         which fixes bug #543481
11801         * support/regression/tests/bug-751703.c: fixed comments left from a
11802         cut and paste error
11803         * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
11804         * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
11805         * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
11806         scopes
11807         * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
11808         * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
11809         are now changed to underscores in moduleName
11810
11811 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11812
11813         * as/mcs51/lkmem.c: better fix for bug #954173
11814
11815 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
11816         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11817
11818         * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
11819         * device/include/c8051f000.h,
11820         * device/include/c8051f120.h,
11821         * device/include/c8051f300.h,
11822         * device/include/c8051f310.h,
11823         * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
11824         PWM16) and detab'ed
11825
11826 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11827
11828         * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
11829         and mailing lists, doc'ed --no-peep-comments, removed reference
11830         to knoppix (newest version has no LyX/LaTeX), other minor changes
11831         * src/SDCCglue.c (glue): save 2 bytes stack space with
11832         option --main-return. The ljmp could probably be avoided too
11833
11834 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11835
11836         * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
11837
11838 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11839
11840         * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
11841         * src/SDCCopt.c (isLocalWithoutDef),
11842         * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
11843         which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
11844         (credit to Maarten Brock for patch #949363, on which this is based)
11845         * support/regression/tests/bug-751703.c: some test cases of extern used
11846         within inner scopes.
11847
11848 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11849
11850         * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
11851         SPEC_STRUCT
11852         * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
11853         struct definitions
11854         * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
11855         dwWriteLabel): fix to create valid debugger symbols even when
11856         the module name has non-alphanumeric symbols in it
11857         * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
11858         when a variable's allocation has been optimized away
11859
11860
11861 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11862
11863         * src/hc08/gen.c (hc08_emitDebuggerSymbol),
11864         * src/hc08/main.c,
11865         * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
11866         * src/mcs51/main.c,
11867         * src/ds390/gen.c (ds390_emitDebuggerSymbol),
11868         * src/ds390/main.c,
11869         * src/z80/gen.c (z80_emitDebuggerSymbol),
11870         * src/z80/main.c,
11871         * src/pic/gen.c (pic14_emitDebuggerSymbol),
11872         * src/pic/main.c,
11873         * src/pic16/gen.c (pic14_emitDebuggerSymbol),
11874         * src/pic16/main.c,
11875         * src/avr/gen.c (avr_emitDebuggerSymbol),
11876         * src/avr/main.c,
11877         * src/xa51/gen.c (xa51_emitDebuggerSymbol),
11878         * src/xa51/main.c,
11879         * src/SDCCdebug.c (emitDebuggerSymbol),
11880         * src/SDCCdebug.h,
11881         * src/port.h: added a debugger struct to the port struct. Added a
11882         callback for defining debugger symbols
11883
11884         * src/SDCCast.c (createLabel),
11885         * src/SDCC.y (labeled_statement): mark all compiler generated labels
11886         with isitmp = 1
11887         * src/SDCCicode.h,
11888         * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
11889         iCode back to the ast for the function
11890
11891         * src/hc08/ralloc.c (hc08_assignRegisters),
11892         * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
11893         unneeded fields from the regs struct.
11894         * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
11895         pushReg() & pullReg() functions instead of emitcode()
11896
11897         * src/hc08/gen.c (genLabel, genhc08Code),
11898         * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
11899
11900         * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
11901         debugger hooks
11902
11903         * src/hc08/gen.c (genEndFunction, genhc08Code),
11904         * src/hc08/gen.h,
11905         * src/mcs51/gen.c (genEndFunction, gen51Code),
11906         * src/mcs51/gen.h,
11907         * src/ds390/gen.c (genEndFunction, gen390Code),
11908         * src/ds390/gen.h,
11909         * src/z80/gen.c (genEndFunction, genZ80Code),
11910         * src/z80/gen.h,
11911         * src/z80/z80.h,
11912         * src/pic/gen.c (genEndFunction, genpic14Code),
11913         * src/pic/gen.h,
11914         * src/pic16/gen.c (genEndFunction, genpic16Code),
11915         * src/pic16/gen.h,
11916         * src/avr/gen.c (genEndFunction, genAVRCode),
11917         * src/avr/gen.h,
11918         * src/xa51/gen.c (genEndFunction, genXA51Code),
11919         * src/xa51/gen.h,
11920         * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
11921         specific code to cdbFile.c and out of the backend code generators
11922
11923         * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
11924         * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
11925         starting address is now 0
11926
11927         * as/hc08/asm.h,
11928         * as/hc08/m08pst.c,
11929         * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
11930         assembler directive for DWARF support
11931         * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
11932
11933         * src/src.dsp,
11934         * src/Makefile.in,
11935         * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
11936
11937 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11938
11939         * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
11940         and inappropriate peephole optimization in jump tables
11941
11942 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11943
11944         * as/hc08/m08pst.c,
11945         * src/SDCCglue.c: sdccopt works for the hc08 port now
11946
11947 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
11948
11949         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
11950
11951 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11952
11953         * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
11954
11955 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11956
11957         * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
11958         rules
11959         * src/SDCCmain.c,
11960         * src/SDCCglobl.h,
11961         * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
11962         comments from the peephole optimizer replacement rules
11963         * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
11964         symbols
11965         * src/SDCCcse.c (updateSpillLocation),
11966         * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
11967         equivalents
11968         * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
11969         * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
11970         objects far pointers
11971
11972 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11973
11974         * src/SDCCsymt.h: a missing part of my last change
11975         * src/pic/ralloc.c (regTypeNum),
11976         * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
11977
11978 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11979
11980         * src/SDCCicode.h,
11981         * src/SDCCicode.c (aggrToPtrDclType),
11982         * src/SDCCptropt.h,
11983         * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
11984         ptrPseudoSymConvert),
11985         * src/pic/ralloc.c (regTypeNum),
11986         * src/pic16/ralloc.c (regTypeNum),
11987         * src/hc08/ralloc.c (regTypeNum),
11988         * src/ds390/ralloc.c (regTypeNum),
11989         * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
11990         creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
11991
11992 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11993
11994         * link/z80/lkmain.c (afile),
11995         * as/hc08/lkmain.c (afile),
11996         * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
11997         prevent a pointer problem when a filename has no directory and
11998         no extension specified.
11999
12000 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12001
12002         * link/z80/lkmain.c (afile): allow periods in directory names
12003         * link/z80/lkmain.c (afile),
12004         * as/mcs51/lkmain.c (afile),
12005         * as/hc08/lkmain.c (afile): allow linker script file to have an
12006         extension other than ".lnk"
12007         * link/z80/lklex.c (getfid),
12008         * link/z80/lkmain.c (parse),
12009         * as/mcs51/lklex.c (getfid),
12010         * as/mcs51/lkmain.c (parse),
12011         * as/hc08/lklex.c (getfid),
12012         * as/hc08/lkmain.c (parse): Support comments in the linker script
12013         file on lines by themselves and after filenames
12014
12015 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12016
12017         * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
12018
12019 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12020
12021         * src/z80/peeph-z80.def: removed some peephole rules that don't
12022         work with multibyte arithmetic (fixed bug #937126)
12023         * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
12024         to registers and not global variables
12025         * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
12026         geniCodePreInc, geniCodePostDec, geniCodePreDec,
12027         geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
12028         checking for assignments not internally generated (fixed bug #931895)
12029         * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
12030         structure member (fixed bug #930072)
12031
12032 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12033
12034         * src/SDCCmain.c (linkEdit),
12035         * src/hc08/main.c (_hc08_parseOptions),
12036         * as/hc08/Makefile.in,
12037         * as/hc08/aslink.h,
12038         * as/hc08/asm.h,
12039         * as/hc08/m08pst.c,
12040         * as/hc08/lkrloc.c (relr, rele),
12041         * as/hc08/lkarea.c (lnkarea)
12042         * as/hc08/lkmain.c (afile, parse),
12043         * as/hc08/lkelf.c: support for ELF output
12044         * as/hc08/lks19.c (s19),
12045         * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
12046
12047 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12048
12049         * as/mcs51/lkihx.c: Fixed bug #899105.
12050
12051 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12052
12053         * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
12054         .dsp files from Unix to DOS.
12055
12056 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12057
12058         * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
12059         function pointers; we have been compliant for several months now.
12060         * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
12061         change that was accidently commented out
12062         * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
12063         genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
12064         bug #922319
12065
12066 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12067
12068         * src/hc08/gen.c: output of all of the internal debugging information
12069         is now controlled by the D() macro; it is disabled by default
12070
12071 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12072
12073         * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
12074         harder to keep the same registers during a CAST iCode
12075         * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
12076         long via int can be done in a single cast, if the signedness is
12077         correct.
12078         * support/regression/tests/bug-927659.c: fixed to avoid conflict with
12079         putchar() in tinibios.c in ds390's library
12080
12081 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
12082
12083         * src/SDCCast.c (decorateType): fixed bug #898889,
12084         cast result of a literal complement too
12085         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
12086         fixed check for bitfields
12087
12088 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
12089
12090         * src/SDCCicode.c (geniCodeLogic): made it static,
12091         (geniCodeLogicAndOr): added in order to fix bug #905492,
12092         (ast2iCode): fixed bug #905492
12093         * support/regression/tests/bug-905492.c: added
12094         * src/SDCCast.c (decorateType): don't decorate/process parms twice,
12095         (processParms): fixed bug #927659: don't copy parms, this will clear
12096         decorated flag
12097         * support/regression/tests/bug-927659.c: added
12098
12099 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
12100
12101         * src/SDCCast.c (addCast): don't cast float to char
12102         * device/lib/libsdcc.lib: added _memmove
12103
12104 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
12105
12106         * device/lib/large/Makefile: fixed parallel execution by
12107         replacing `make` by `$(MAKE)`
12108
12109 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12110
12111         * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
12112         offsets (fixes bug #923936)
12113
12114 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
12115
12116         * device/lib/small/Makefile: fixed parallel execution by
12117         replacing `make` by `$(MAKE)`
12118
12119 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
12120
12121         * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
12122
12123 2004-03-23  Scott Dattalo  <scott AT dattalo.com>
12124
12125         * src/pic/gen.c (genCpl): multi-byte complements were not working.
12126         * src/regression/Makefile: Regression test was not running.
12127
12128 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
12129
12130         * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
12131         complement if possible
12132         * src/SDCCval.c (valComplement),
12133         * src/SDCCicode.c (operandOperation): fixed complement of literal
12134         * support/regression/tests/onebyte.c (testComplement): added
12135
12136 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
12137
12138         * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
12139         return an optimized tree; actually replace actParm with the new tree
12140         * src/SDCCast.h: added some parantheses to remove side effects
12141         * support/regression/tests/bug-920866.c
12142
12143 2004-03-21  Scott Dattalo  <scott AT dattalo.com>
12144         * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
12145         Bit operands were not being handled properly in the pic14 port.
12146         (now src/regression/add.c passes again).
12147
12148 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12149
12150         * src/SDCC.y (labeled_statement): case and default no longer require
12151         a following statement (RFE #893037)
12152
12153 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12154
12155         * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
12156         use MOVA macro to avoid "mov a,acc" when peephole optimizer is
12157         disabled (fixes bug #916294)
12158         * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
12159         "mov a,acc"; patch provided by Lenny Story
12160         * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
12161
12162 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12163
12164         * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
12165         functions
12166         * src/ds390/gen.c (genFunction, genEndFunction),
12167         * src/ds390/ralloc.c (ds390_assignRegisters),
12168         * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
12169         * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
12170         pushed if there are parameters passed on the stack. Also, a cleaner
12171         way to decide if r0/r1 should be pushed/popped. (Together they fix
12172         bug #918693)
12173
12174 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12175
12176         * doc/sdccman.lyx,
12177         * device/lib/mcs51/crtpagesfr.asm,
12178         * device/lib/mcs51/crtxinit.asm,
12179         * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
12180         to avoid confusion with Si Lab's SFRPAGE register.
12181
12182 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12183
12184         * src/SDCCglue.c (emitMaps): allow public sfr variables
12185         * src/SDCCglue.c (initialComments): include compiler build date
12186         with compiler version and put the timestamp of the generated
12187         assembly file on a serperate line to be less confusing.
12188         * src/port.h: added genInitStartup hook
12189         * src/avr/main.c,
12190         * src/ds390/main.c,
12191         * src/hc08/main.c,
12192         * src/pic/main.c,
12193         * src/pic16/main.c,
12194         * src/xa51/main.c,
12195         * src/z80/main.c: genInitStartup initialize as NULL (default to
12196         historical behaviour)
12197         * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
12198         * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
12199         _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
12200         library instead of hard coding it into the compiler.
12201         * support/regression/ports/mcs51-stack-auto/spec.mk,
12202         * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
12203         * device/lib/mcs51/Makefile,
12204         * device/lib/small/Makefile,
12205         * device/lib/large/Makefile,
12206         * device/lib/mcs51/crtpagesfr.asm,
12207         * device/lib/mcs51/crtstart.asm,
12208         * device/lib/mcs51/crtxclear.asm,
12209         * device/lib/mcs51/crtxinit.asm,
12210         * device/lib/mcs51/crtclear.asm,
12211         * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
12212         startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
12213         and into user configurable files.
12214         * device/lib/clean.mk: clean mcs51 directory too
12215         * support/regression/tests/longlit.c: added static to T1 declaration
12216         * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
12217         accesses in the initialization code
12218
12219 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12220
12221         * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
12222         OSCTRIMVAL as noted in bug #916008
12223
12224 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12225
12226         * src/SDCCloop.c (basicInduction): fixed bug with loop induction
12227         in loops with multiple exits (reported as incorrect registers
12228         used by Martin Helmling in Sdcc-user list)
12229
12230 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12231
12232         * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
12233         made ds390 register extensions look less like error messages
12234
12235 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12236
12237         * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
12238         reported by Adam Wozniak in Sdcc-user list
12239
12240 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
12241
12242         * src/SDCCast.c (decorateType): fixed with bug and promotion in
12243         arithmetic optimizations, added debug output
12244
12245 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
12246
12247         * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
12248         * sdcc.spec: updated and split sdcc into 3 rpms
12249         * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
12250         needed for literals of LEFT_OP and '+'
12251         * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
12252         introduced RESULT_TYPE_NOPROM
12253         (geniCodeMultiply): fixed logic for decision if mul is optimized to
12254         left shift
12255         * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
12256         limited promotion to int only for '*'
12257         * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
12258
12259 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
12260
12261         * src/pic16/gen.c (genSkip),
12262         (genc16bit2lit), (gencjneshort): commented out
12263         (is_LitOp): new helper function, checks operand type
12264         (genCmpEq): rewritten
12265
12266 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
12267
12268         * support/regression/tests/bug-908454.c: added
12269
12270 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
12271
12272         * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
12273         * src/SDCCicode.c (usualBinaryConversions): op needs int type
12274         (geniCodeCast): cosmetic, don't preserve bit storage class
12275         (geniCodeLeftShift): added promotion
12276         (geniCodeLogic): fixed regression
12277         * src/SDCCsymt.c (computeTypeOr): accept bits too
12278         (compareType): 2nd part of fix for bug #908454, needed for bitfields
12279
12280 2004-03-07  Borut Razem <borut.razem AT siol.net>
12281
12282         * support/Util/findme.c: alloca() replaced with malloc()/free() pair
12283
12284 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
12285
12286         * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
12287         version of pic16_genPackRegisters which does not check if ic is a
12288         CAST operator,
12289         * src/pic16/gen.c (ifxForOp): disabled new and untested code in
12290         function cause string1.c regression test fails
12291
12292 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
12293
12294         * sim/ucsim/configure.in,
12295         * sim/ucsim/configure,
12296         * sim/ucsim/doc/Makefile.in: use docdir
12297         * src/SDCC.y: fixed sbit atrributes
12298         * src/SDCCast.c (getResultTypeFromType): added support for bitfields
12299         * src/SDCCast.c (decorateType): |^& need special promotion handling
12300         * src/SDCCast.h,
12301         * src/SDCCsymt.h: moved definition of RESULT_TYPE
12302         * src/SDCCsymt.h (computeType),
12303         * src/SDCCicode.c: computeType() needs op
12304         * src/SDCCsymt.c (checkTypeSanity),
12305         * doc/sddman.lyx: "plain" bitfields are unsigned
12306         * src/SDCCsymt.c (computeTypeOr): added
12307         * src/SDCCsymt.c (computeType): added support for bitfields, fixed
12308         |^& ops
12309         * src/SDCCval.c (val*): computeType() needs op
12310         * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
12311         * support/regression/tests/onebyte.c: added tests for |^&
12312
12313 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
12314
12315         * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
12316         for writing icode into asm output.
12317
12318 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
12319
12320         * src/pic16/device.c: added some debug lines enabled
12321         with macro DEBUG_CHECK,
12322         * src/pic16/genarith.c: more debug in genPlus,
12323         * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
12324         * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
12325         * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
12326         * (aopForSym): onStack symbols are re-placed in data memspace,
12327         and onStack flag is cleared,
12328         * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
12329         copy temporary pcodeop,
12330         * (genPcall): added warning for not updating PCLATU,
12331         * (genFunction): removed test with IFFUNC_CALLEESAVES, its
12332         always true for pic16 port,
12333         * (genMultOneWord): NEW, supports integer multiplication,
12334         * (genMult): modified to call genMultOneWord,
12335         * (ifxForOp): added warning when return NULL,
12336         * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
12337         flag is set before call to operandFromSymbol for implicit
12338         added structures,
12339         * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
12340         options.intlong_rent are set by default,
12341         * (_hasNativeMulFor): modified to allow port generation of integer
12342         multiplication,
12343         * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
12344         set regtype to REG_SFR for all registers, restricting seting the
12345         accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
12346
12347 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12348
12349         * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
12350         more than 500 times in the regression tests
12351
12352 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12353
12354         * support/Util/SDCCerr.h,
12355         * support/Util/SDCCerr.c,
12356         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
12357         enumerator_list),
12358         * src/SDCCsymt.c (addSymChain): show location of oriignal definition
12359         for symbol conflicts.
12360         * support/valdiags/tests/enum.c,
12361         * support/valdiags/tests/tentdecl.c,
12362         * support/valdiags/tests/struct.c: expect possible error messages
12363         referring to original symbol definitions.
12364         * src/SDCC.y (struct_or_union_specifier, struct_declarator),
12365         * src/SDCCsymt.h,
12366         * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
12367
12368 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
12369
12370         * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
12371
12372 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
12373
12374         * src/pic16/ralloc.c (newReg): fixed bug #908929
12375
12376 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12377
12378         * src/ds390/gen.c: added missing #include "main.h"
12379
12380 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
12381
12382         * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
12383         checking if symbol is already in set,
12384         * src/pic16/device.h: prototype for checkAddSym,
12385         * src/pic16/gen.c: (_G): added entry interruptvector,
12386         * (assignResultValue): removed some commented out lines,
12387         * (genFunction): check for ISR via sym->type, absolute section for
12388         interrupt code is created via a new pBlock, the goto instruction is
12389         placed now correctly at the interrupt vector position, changed all
12390         references from ivec to _G.interruptvector,
12391         * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
12392         is the interrupt is a high priority one, same for return from ISR,
12393         * src/pic16/glue.c: changed all calls of addSetHead for publics and
12394         externs to calls of checkAddSym,
12395         * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
12396         pic16_pcode_verbose flag is set,
12397         * src/pic16/pcode.h: extern to pic16_pcode_verbose,
12398         * src/pic16/pcoderegs.c: message about how many registers are saved
12399         will only be emitted if pic16_pcode_verbose flag is set,
12400
12401 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12402
12403         * src/ds390/ralloc.h,
12404         * src/ds390/ralloc.c (ds390_regWithIdx),
12405         * src/ds390/gen.c (emitcode),
12406         * src/ds390/main.h,
12407         * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
12408         ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
12409         ds390operandCompare, getRegsRead, getRegsWritten,
12410         initializeAsmLineNode): customized instruction size calculation for
12411         ds390, started basis for some register optimizations
12412         * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
12413         corresponding assembly output
12414         * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
12415         missing push/pop of r0/r1. Optimized push/pops
12416
12417 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12418
12419         * src/mcs51/main.c (instructionSize): fixed ACALL size
12420         * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
12421
12422 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
12423
12424         * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
12425         the sorting of rlist with NULL elements
12426         * (print_idataType, print_idata): NEW to create idata sections
12427         * src/pic16/device.h: idataSymSet new variable
12428         * src/pic16/gen.c (genFunction): fixed some bugs in string
12429         comparing, improved the absolute section creation for ISRs,
12430         added FSR0L/FSR0H in registers that are saved in an ISR,
12431         * (genInline): fixed the processing of inline snippets,
12432         now they undergo no process by the peephole optimizer
12433         * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
12434         are placed in idataSymSet,
12435         * (pic16emitStaticSeg): extern symbols are added in externs,
12436         * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
12437         switching when aboslute variables are placed in access bank memory
12438         * (pic16_writeUsedRegs): added call to pic16_dump_idata,
12439         * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
12440         commented out with #if,
12441         * (pic16_packRegisters): reintroduce the check for CAST because some
12442         symbols are not correctly handled,
12443         * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
12444         pCodeInstruction instead of pCode,
12445         * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
12446         pCodeAsmDir definition,
12447         * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
12448         directive, then the argument directive is emitted without the leading
12449         tab, hack for inline labels which must be in the first column,
12450         * (compareLabel,pic16_findNextInstruction),
12451         * (pic16_findPrevInstruction): added case for PO_ASMDIR,
12452         * (insertBankSwitch): modified for the new pCodeAsmDir,
12453
12454 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
12455         patch applied by Vangelis Rokas <vrokas AT otenet.gr>
12456
12457         * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
12458         instance,
12459         * (pushSide): commented out with #if,
12460         * (assignResultValue): fixed some typos in saving
12461         registers,
12462         * (genPcall): FIXED and sync'ed with genCall,
12463         * (genDataPointerGet,genDataPointerSet): using offset not leoffset
12464         * (genNearPointerGet): fixed to handle some more cases,
12465         implementation scheme via table reads,
12466         * (genConstPointerGet): modified to access code memory correct,
12467         * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
12468         and improved to handle some cases
12469         * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
12470         instead of "RETLW" for init data
12471         * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
12472         not IN_DIRSPACE, work around to reduce bank switching when aboslute
12473         variables are placed in access bank memory (<0x80 and >=0xf80),
12474         * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
12475         TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
12476         TBLWT_POSTDEC,TBLWT_PREINC
12477         * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
12478         * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
12479         directives
12480         * (pic16_pCodeConstString): use "DB" instead of "RETLW"
12481         * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
12482         pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
12483         * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
12484
12485 2004-02-29  Borut Razem <borut.razem AT siol.net>
12486
12487         * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
12488         support/Util/findme.h, support/Util/system.h: enhance binary relative
12489         search for lib and include by using findProgramPath()
12490
12491 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12492
12493         * src/SDCCpeeph.h,
12494         * src/SDCCpeeph.c (pcDistance),
12495         * src/port.h,
12496         * src/mcs51/ralloc.h,
12497         * src/mcs51/ralloc.c (mcs51_regWithIdx),
12498         * src/mcs51/main.h,
12499         * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
12500         mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
12501         mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
12502         size calculation port specific, started basis for some register
12503         optimizations
12504         * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
12505         missing push/pop of r0/r1. Optimized push/pops
12506         * src/mcs51/ralloc.c (packregisters): fixed bug #727095
12507         * device/lib/_modsint.c (_modsint),
12508         * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
12509         and stack version so regression tests pass
12510
12511 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
12512
12513         * src/Makefile.in (dep): include SLIBOBJS in dependency check
12514         * src/SDCCast.c (decorateType): catch another small optimization
12515         with '?' operator
12516         * src/SDCCsymt.c (computeType): added comments and cosmetic changes
12517         * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
12518         modified to finally use computeType() all over SDCC,
12519         see Feature Request #877103
12520         * src/SDCCval.h: cosmetic
12521         * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
12522         valCompare(); regression tested in muldiv.c
12523         * support/regression/tests/muldiv.c (testMod): mod sign follows
12524         dividend only
12525
12526 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
12527
12528         * src/SDCCast.c (decorateType): fixed bug #902362
12529         * doc/INSTALL.txt: fixed install instructions for win32
12530
12531 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
12532
12533         * device/include/Makefile.in (install): fixed by replacing spaces
12534         by tabs
12535         * doc/README.txt,
12536         * doc/INSTALL.txt: updated for release
12537         * doc/sdccman.lyx: added warning for --xstack being buggy
12538
12539 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
12540
12541         * src/pic16/ralloc.c (packRegsForAccUse):  disabled functions with #if
12542         to eliminate build warnings.
12543         * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
12544
12545 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
12546            Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
12547
12548         * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
12549         removed -penable-stack, added comment for stack pragma, added
12550         warning for not initializing the stack/frame registers, removed
12551         comment at interrupts section
12552
12553         Stack is made permanent, there is no ability to disable stack usage.
12554         * src/pic16/device.h,
12555         * src/pic16/device.c: removed all references to USE_STACK macro,
12556         * src/pic16/device.c (pic16_dump_section): when no elements in
12557         rlist, free rlist before return,
12558         * (pic16_dump_int_registers): NEW, internal registers are a new set
12559         of general purpose registers reused by each function,
12560         * (checkAddReg): returns 1 if registers is added to set,
12561         * (pic16_groupRegistersInSection): when a registers is of type
12562         PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
12563         * src/pic16/device.h: memRange and Assigned Memory are deleted,
12564         SRCASECMP macro is moved here from device.c
12565         * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
12566         PO_PCLATU, PO_PRODL, PO_PRODH,
12567         * (pic16_pCodeOpType, genMinus,
12568         changed compares to "a" register, with AOP_ACC,
12569         * (pic16_genPlus): fixed some bugs and indented properly,
12570         * (pic16_addSign): changed size to size+offset in the MOVWF
12571         instruction,
12572         * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
12573         multiply 8-bit operand by literal, result is 8-bit,
12574         * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
12575         multiply 2 8-bit operand, result is 8-bit,
12576         * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
12577         genUMult8X*_16,
12578         * src/pic16/gen.c: changed accUse to contain WREG only,
12579         * (pic16_emitcomment): renamed to pic16_emitpcomment,
12580         * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
12581         true, do not use immediate addressing any more unless sym is a
12582         pointer in codespace,
12583         * (aopForRemat): do not use immediate addressing when symbol not in
12584         codespace and when symbol's address is requested,
12585         * (aopOp): for-loop in if(sym->accUse) is modified for the new
12586         accUse size (= 1),
12587         * (aopGet): added case for AOP_ACC and don't return "accumulator
12588         bug" but WREG instead,
12589         * (popGetTempReg): pushes contents of temporary register in stack,
12590         * (popReleaseTempReg): pops contents of temporary register from
12591         stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
12592         * (pic16_popGet): separated case AOP_ACC to return register WREG
12593         from processor registers, AOP_PCODE not checks if pcop is PO_DIR
12594         or PO_IMMEDIATE and initializes their instance/offset appropriately,
12595         * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
12596         the use of immediate pointers to certain cases only.
12597
12598         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
12599         * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
12600         * (assignResultValue, genCall, genRet): modified to use the new
12601         function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
12602         genPcall is still broken,
12603         * (genFunction): added code to create 'A' type pBlocks when
12604         interrupt functions are generated, code not extensively tested yet,
12605         ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
12606         * (genEndFunction): modified so ISRs pop stored registers from stack,
12607         * (genMultOneByte): cleanup,
12608         * (AccRsh): added flag andmask, to and result with appropriate mask,
12609         * (genUnpackBits,genPackBits): fixed and can handle bit fields,
12610         * (genDataPointerGet): fixed and reenabled its use,
12611         * (genNearDataPointerGet): bugs fixed,
12612         * (genDataPointerSet): bugs fixed,
12613         * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
12614         pic16_DumpSymbol, pic16_DumpOp,
12615         * src/pic16/genutils.h: function prototypes for the above functions,
12616         * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
12617         pointers,
12618         * (pic16emitRegularMap): many many many improvements, but needs a
12619         major cleanup,
12620         * src/pic16/main.c: enable_stack in pic16_options is removed,
12621         * (_pic16_parseOptions): removed command line options -penable-stack,
12622         * (_process_pragma): emit stack symbol only when stack pragma is
12623         processed,
12624         * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
12625         redirected to FSR0L/FSR0H pair,
12626         * (pic16_get_op, pic16_get_op2): modifications and improvements,
12627         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
12628         cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
12629         for immediates,
12630         * (insertBankSwitch): modified to handle cases like: (alfa + 1)
12631         * (dumpPicOptype): NEW,
12632         * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
12633         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
12634         with movff instruction,
12635         * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
12636         added pic16_int_regs, some packRegsFor* functions are commented out,
12637         because produce errors,
12638         * src/pic16/NOTES: minor modifications
12639
12640 2004-02-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12641
12642         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
12643         as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
12644         --pack-iram.
12645         * doc/sdccman.lyx: described options --stack-size and --pack-iram.
12646         * as/mcs51/lkaomf51.c: fixed bug #895763
12647
12648 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
12649
12650         * device/include/c8051f320.h: added. Contributed by Maarten Brock.
12651
12652 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12653
12654         * doc/sdccman.lyx: added details about the HC08 storage classes and
12655         interrupts, fixed the register usage info for z80 & gbz80
12656
12657 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
12658
12659         * doc/sdccman.lyx: added more pic16 port documentation
12660         * device/include/pic16/: added header pic18fregs.h
12661
12662 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
12663
12664         * doc/sdccman.lyx: added Vangelis' contribution
12665
12666 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12667
12668         * src/SDCClrange.c (rlivePoint): live range of SEND operand should
12669         extend to the next CALL or PCALL, not just to the next CALL.
12670
12671 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
12672
12673         * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
12674
12675 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12676
12677         * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
12678         bug #895752 and a better fix for bug #716790
12679
12680 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12681
12682         * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
12683
12684 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12685
12686         * doc/sdccman.lyx: minor changes, minor changed
12687
12688 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
12689
12690         * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
12691         which can't handle SDCC_NEWONEBYTEOPS,
12692         (geniCodeMultiply): removed conversion from mult to shift for pic14
12693         and pic16
12694
12695 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12696
12697         * src/hc08/gen.h,
12698         * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
12699         rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
12700         thus fixing bug #895406
12701
12702 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
12703
12704         * device/lib/_modsint.c,
12705         * device/lib/_modslong.c: sign follows divisor only
12706         * src/hc08/gen.c (genMultOneByte): if result size is 1,
12707         signs or signedness can be ignored
12708         * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
12709         * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
12710         added optimization for IFX,
12711         (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
12712         arguments;
12713         reenabled optimization for IFX, which was removed on 2004-01-11
12714         * src/SDCCast.h: added return type IFX
12715         * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
12716         arguments with 8 or 16 bit results; pic14 and pic16 ports use old
12717         promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
12718         SDCC_OLDONEBYTEOPS selects the old behaviour
12719         * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
12720         changed again and commented promotion rule
12721         * src/SDCCval.c (valDiv): promotion no longer necessary
12722         * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
12723         * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
12724         rewritten
12725         * support/regression/tests/onebyte.c: added
12726
12727 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
12728
12729         * gen.c (genInline): reverted to old code for assemnling inline
12730         code because of bug reported James Chadd
12731
12732 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
12733
12734         * ralloc.h: missing declarations from previous patch,
12735         seems that patch for ralloc.h was never applied, fixed
12736
12737 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
12738            patch committed by Vangelis Rokas <vrokas AT otenet.gr>
12739
12740         * pcode.c,
12741         * pcode.h,
12742         * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
12743         indirect addressing. Marked FSR0 as deprecated
12744         * gen.c (pointerCode): commented out, not needed now
12745         (pic16_popGet2p): new MOVFF helper function
12746         (genGenPointerGet),
12747         (genGenPointerSet): reimplemented with MOVFF and POSTINC0
12748         (shiftRLong): removed duplicate debugging info
12749
12750 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12751
12752         * src/ds390/gen.c (genNearPointerGet),
12753         * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
12754         optimization with bits, but not bitfields.
12755         * src/ds390/ralloc.c (packRegisters),
12756         * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
12757
12758 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
12759
12760         * src/SDCCcse.c (algebraicOpts): copy operands before modification
12761
12762 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12763
12764         * src/SDCCsymt.h,
12765         * src/SDCCicode.c (operandFromSymbol),
12766         * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
12767         * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
12768         * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
12769         * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
12770         * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
12771         * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
12772         bug #892038
12773         * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
12774         * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
12775         printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
12776         * src/SDCCsymt.c (newSymbol),
12777         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
12778         enumerator_list),
12779         * src/SDCCval.h,
12780         * src/SDCCval.c (newiList): fixed bug #885705
12781
12782 2004-02-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12783
12784         * doc/sdccman.lyx: added section 3.1.4: sdcclib.
12785         * as/mcs51/lkmem.c: report the size of the stack in .mem file.
12786
12787 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12788
12789         * device/include/c8051f120.h,
12790         * device/include/c8051f300.h,
12791         * device/include/c8051f310.h: added/updated header files for Silicon
12792         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
12793         * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
12794         in new section Submitting patches
12795
12796 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12797
12798         * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
12799         genFarPointerGet, genCodePointerGet, genGenPointerGet,
12800         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
12801         genGenPointerSet),
12802         * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
12803         genFarPointerGet, genCodePointerGet, genGenPointerGet,
12804         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
12805         genGenPointerSet),
12806         * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
12807         genFarPointerGet, genCodePointerGet, genGenPointerGet,
12808         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
12809         genGenPointerSet),
12810         * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
12811         genFarPointerGet, genCodePointerGet, genGenPointerGet,
12812         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
12813         genGenPointerSet): fixed bug #892400
12814         * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
12815         to eliminate build warnings.
12816         * src/SDCCast.c (processParms),
12817         * src/SDCC.y (function_declarator2, declarator2_function_attributes):
12818         fixed bug 751859
12819         * support/valdiag/valdiag.py: added GCC to the list of defines active
12820         when compiling with gcc
12821
12822 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12823
12824         * support/Util/SDCCerr.h,
12825         * support/Util/SDCCerr.c,
12826         * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
12827         with an incomplete type (fixed bug #883734)
12828         * src/SDCCicode.c (geniCodeCast): fixed bug #890510
12829
12830 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12831
12832         * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
12833
12834 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12835
12836         * src/SDCCast.c (decorateType),
12837         * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
12838         function pointer implementation
12839         * support/regression/tests/funptrs.c: added tests to verify both forms
12840         of function pointers work correctly. Added tests to verify parameters
12841         are passed in the correct order.
12842
12843 2004-02-06  Vangelis Rokas <vrokas AT otenet.gr>
12844
12845         * device.c (regCompare): registers are sorted by ascending
12846         address and increasing size,
12847         * main.c (_pic16_finaliseOptions): removed the declaration
12848         of compiler macro MCU. Now a macro of the format pic18fxxxx
12849         will be defined from the command line
12850
12851 2004-02-06  Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
12852             patch committed by Vangelis Rokas <vrokas AT otenet.gr>
12853
12854         * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
12855         PCOP_RLCF was overwritten!
12856         * gen.c (genSkip): commented out calls to pic16_emitcode,
12857         * (genCmpEQ): fixed "long" compares, only high word did get compared,
12858         * (genlshTwo),
12859         * (genRRC): added debugging info,
12860         * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
12861         overwritten while shifting,
12862         * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
12863         overwritten while shifting,
12864         * (AccLsh),
12865         * (AccRsh),
12866         * (shiftLLeftOrResult),
12867         * (shiftRLeftOrResult),
12868         * (shiftRLong),
12869         * (shiftLLong): Implemented with pic16_emitpcode
12870         * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
12871         * (genLeftShift): Fixed bug, operand for shift by variable always
12872         was "and"ed with 0x0f,
12873         * (genLeftShiftLiteral),
12874         * (genrshTwo),
12875         * (genRightShiftLiteral): added debugging info,
12876         * (genrshFour): added comment,
12877         * (genRightShift): determined signedness from operand "left"
12878         instead of "result"
12879
12880 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12881
12882         * src/SDCCicode.c (geniCodeParms),
12883         * src/SDCCast.c (decorateType, processParms): support for ANSI-style
12884         function pointers, fixed function pointer bugs #861242 and #861896
12885
12886 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12887
12888         * device/include/c8051f000.h,
12889         * device/include/c8051f120.h,
12890         * device/include/c8051f300.h: added header files for Silicon
12891         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
12892
12893 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
12894
12895         * src/SDCCast.c (processParams): added new type flow and restructured
12896         (gatherAutoInit): added new type flow
12897         (addCast): cosmetic changes
12898         (getLeftResultType): added new type flow for array indices, patch
12899         provided by Stas, see FR #877103
12900         (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
12901         array index patch by Stas
12902         * src/SDCCast.h: added prototype getResultTypeFromType()
12903         * src/SDCCval.h,
12904         * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
12905         * src/pic/glue.c (pic14emitStaticSeg),
12906         * src/pic16/glue.c (pic16emitStaticSeg),
12907         * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
12908         for initialization of symbols
12909         * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
12910         * support/Util/SDCCerr.h:
12911         * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
12912         * .version: bumped version number to 2.3.8
12913         * device/include/Makefile.in (install),
12914         * doc/Makefile (install): changed to 'rm `find ...`' construct to
12915         avoid warnings
12916
12917 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
12918
12919         * support/regression/tests/libmullong.c: fixed for 64 bit hosts
12920         Slade Rich fixed an optimization bug
12921         * src/pic/pcodepeep.c,
12922         * src/pic/pcoderegs.c
12923         * doc/Makefile (install): added test for directory
12924
12925 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12926
12927         * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
12928         * src/ds390/ralloc.c (getRegPtr, getRegGpr),
12929         * src/pic/ralloc.c (getRegPtr, getRegGpr),
12930         * src/pic16/ralloc.c (getRegPtr, getRegGpr),
12931         * src/z80/ralloc.c (getRegGpr): fixed bug #883361
12932         * as/mcs51/asexpr.c (term),
12933         * as/hc08/asexpr.c (term): fixed bug #887146
12934
12935 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12936
12937         * src/z80/gen.c (genMult): handle single byte result product
12938         * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
12939         DUMMY_READ_VOLATILE (fixed bug #886367)
12940
12941 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
12942
12943         * support/regression/tests/libmullong.c: fixed logic, on little endian
12944         hosts we ended without a mullong_wrapper()
12945
12946 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12947
12948         * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
12949         virus/worm forged address usage.
12950
12951 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
12952
12953         Fixed promotion, it should be done on AST level:
12954         * src/SDCCast.c (addCast): added promotion to int
12955         (decorateType): updated call to upCast()
12956         * src/SDCCicode.c (geniCodeLeftShift): removed call to
12957         usualUnaryConversions()
12958
12959 2004-01-26  Michael Hope  <michaelh AT juju.net.nz>
12960
12961         * support/regression/tests/literalop.c (mulWrapper): Added a
12962         wrapper to remove integer overflow warnings.
12963
12964         * support/regression/tests/float_trans.c: Made work on host.
12965
12966         * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
12967         location of sz80.
12968
12969         * support/regression/generate-cases.py (main): Changed from inline
12970         to a main method.
12971
12972         * doc/Makefile (install): Changed to depth first to get rid of
12973         missing directory install warning.
12974
12975         * as/Makefile (install-doc): Made work on Mac.
12976
12977 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
12978
12979         * src/SDCCast.c: added an additional type flow in decorateType() of
12980         opposite direction, see feature request #860006; it's enabled at runtime
12981         by setting the environment variable SDCC_NEWTYPEFLOW
12982         * src/SDCCast.h: changed prototype of decorateType()
12983         * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
12984         * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
12985         'char' to 'int' can be omitted, if both operands are 'unsigned char';
12986         see feature request #877103
12987         * src/SDCCval.c: updated call of decorateType()
12988         (valBitwise): fixed bug #882876
12989         (valMinus): added promotion
12990         (valLogicAndOr): result is unsigned
12991         (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
12992         * src/SDCCsymt.c (computeType),
12993         * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
12994         must not cause an unsigned operation
12995         * src/pic/glue (pic14emitRegularMap),
12996         * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
12997
12998 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
12999
13000         * src/pic/pcode.c (PCodeID): commented out left over debug code
13001
13002 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
13003
13004         * support/valdiag/tests/overflow.c: added shift tests
13005         * src/pic/device.c,
13006         * src/pic/gen.c,
13007         * src/pic/gen.h,
13008         * src/pic/glue.c,
13009         * src/pic/main.c,
13010         * src/pic/pcode.c,
13011         * src/pic/pcode.h,
13012         * src/pic/pcodepeep.c,
13013         * src/pic/pcoderegs.c,
13014         * src/pic/ralloc.c,
13015         * src/pic/ralloc.h: applied patch from Slade Rich;
13016         added support for multiple code pages and multiple RAM banks on the
13017         PIC 14 port. The ASM files now no longer simply assume all the
13018         code / RAM are in the same page / bank. This means the linker can
13019         safely allocate code/RAM of separate ASM files to different pages/banks.
13020         * doc/sdccman.lyx: added Slade's tips
13021         * src/mcs51/peeph.def: fixed bug #880768
13022
13023 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13024
13025         * src/hc08/ralloc.c (rematStr): fixed bug #879282
13026         * src/SDCCast.c (decorateType): fixed bug #880197
13027
13028 2004-01-20  Michael Hope  <michaelh AT juju.net.nz>
13029
13030         * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
13031         getopt.h.
13032
13033         * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
13034         strtof is not part of C89 and isn't included with Mac OS X.
13035
13036 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13037
13038         * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
13039         shiftL2Left2Result): fixed bug #879326
13040         (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
13041         (genMultOneByte): fixed bug in signed vs unsigned multiplication
13042         * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
13043         address fetch for clr instruction
13044         * device/lib/hc08/_mulint.c: created optimized assembly version
13045         * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
13046
13047 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
13048
13049         * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
13050         proposed in FR #877103
13051
13052 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
13053
13054         * src/SDCCval.c (cheapestVal): added missing checks
13055         * src/SDCCicode.c (usualBinaryConversions): fixed condition
13056         * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
13057
13058 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
13059
13060         * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
13061         equal operands
13062
13063 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
13064
13065         * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
13066         loaded with the linker search paths (-L arguments) and the libraries
13067         to be linked with the current source (-l arguments). Changes
13068         currently will affect only the pic16 port.
13069         * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
13070         include path the port specific paths and port specific libraries,
13071         * gplink command now contains the $3 argument,
13072         * src/pic16/device.h,
13073         * src/pic16/device.c,: structure PIC_device is made public and
13074         renamed to PIC16_device, the same for variable Pics which is renamed
13075         to Pics16. Updated all references to them.
13076         * src/pic16/glue.c (pic16glue): corrected bug with code
13077         initialization which bypassed the variable initializations block.
13078
13079         * device/lib/pic16/Makefile.rules: removed --penable-stack from
13080         COMPILE_FLAGS and added the --nostdinc option
13081
13082 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13083
13084         * device/include/mc68hc908jb8.h: Register defs for another member
13085         of the hc08 family. Contributed by Bjorn Bringert - thanks!
13086
13087 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
13088
13089         Documenting changes from previous commits.
13090         * configure.in (version 1.56),
13091         * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
13092         when generating output files to configure the pic16 library,
13093         but now I've commented it out, since gputils aren't installed in the
13094         SF compile farm, so library won't compile
13095
13096         * device/lib/Makefile.in (version 1.56): initially I've added in
13097         target 'all' the prerequestive 'model-pic16' so it compiled the
13098         pic16 library, but now I've commented it out for the same reasons
13099         above,
13100         * added targets 'model-pic16' and 'objects-pic16' to compile the
13101         library
13102         * added target 'port-specific-objects-pic16' to handle the
13103         generated libraries and copy them into the build/ directory
13104         * added target 'clean-intermediate-pic16' to clean intermediate
13105         files into pic16 directory
13106         * in target 'installdirs' added line to create directory pic16 in
13107         the installation path
13108
13109         * device/include/Makefile.in (version 1.11): in target 'install'
13110         added lines to copy all header files to installation path,
13111         * in target 'installdirs' added line create directory for pic16
13112         headers in the installation path
13113
13114 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
13115
13116         * src/ds390/gen.c (genCall): fixed a double use of acc and b after
13117          a function call
13118
13119 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
13120
13121         * configure,
13122         * device/lib/configure.in,
13123         * device/lib/configure: fixed for autoconf 2.57
13124
13125 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13126
13127         * src/z80/main.c (_parseOptions): fixed the portmode= command line
13128         option so that it actually works. Made it specific to the z80, since
13129         the gbz80 doesn't have these kinds of I/O ports.
13130
13131 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13132
13133         * device/include/z180.h,
13134         * device/lib/_memcpy.c,
13135         * device/lib/_memmove.c,
13136         * device/lib/_mulint.c,
13137         * device/lib/ser_ir.c,
13138         * device/lib/ser_ir_cts_rts.c,
13139         * device/lib/_strcmp.c,
13140         * device/lib/_strtok.c: fixed pragmas to non-deprecated form
13141         * src/z80/main.c (_process_pragma): add support for pragmas bank and
13142         portmode; added deprecation warning for bank= and protmode= forms.
13143         Also, guard against buffer overflow.
13144         * src/z80/gen.c (aopGet): generate better code for sfr banked read
13145
13146 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13147
13148         * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
13149         changed interrupt vector table generation to only emit declared vectors.
13150         * device/include/Makefile.in: added missing backslash
13151         * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
13152
13153 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
13154
13155         Mainly changes to support compilation of the device libraries
13156         * src/pic16/device.c: stack is allocated via symbol and not
13157         via literal number. The symbol is placed in the corresponding
13158         position of the data ram
13159         * (pic16_dump_section): relocatable and absolute uninitialized
13160         data are now emitted in sorted order to reduce section naming,
13161         * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
13162         weren't marked as being in the access bank,
13163
13164 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
13165
13166         Added portion of GNU PIC Library under the directory
13167         device/include/pic16 and device/lib/pic16. These files
13168         contain the declarations of SFRs for the PIC18Fxx2 devices.
13169         The directory is initialized via configure from toplevel.
13170
13171 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
13172
13173         * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
13174         the spilllocations to be compared correctly
13175
13176 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
13177
13178         * src/SDCCast.c (decorateType): fixed bug introduced today
13179
13180 2004-01-12  Borut Razem <borut.razem AT siol.net>
13181
13182         * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
13183         doc/sdccman.lyx: upper case pragmas are deprecated
13184
13185 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
13186
13187         * src/SDCCast.c (decorateType): replacing 'ul > 0' by  '!ul' results
13188         in simpler and even better code
13189
13190 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
13191
13192         * src/SDCCicode.c (operandOperation): fixed bug #874819
13193         * src/SDCCast.c (decorateType): fixed
13194         char foo (unsigned long ul) { return ul > 0; }
13195
13196 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13197
13198         * doc/sdccman.lyx: Moved and added some sections, small changes
13199         all over. Telling LaTeX to be less strict with word spacing
13200         to better keep the right margin. Changed some notes about
13201         maintainance of the ports in section 3.2.1 - is it OK like this?
13202
13203 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
13204
13205         SDCC source changes:
13206         * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
13207         convilong): modified to inform the pic16 port that builtin functions
13208         are external
13209
13210         PIC16 PORT specific changes:
13211         * src/pic16/device.c pic16_dump_equates() added,
13212         processor registers declared internally by the port are emitted in
13213         the translation as equates,
13214         * src/pic16/gen.c: inline code is passed unprocessed to the
13215         translation,
13216         * (pic16_popGetLit2): fnuction modified to take second operand as
13217         pCodeOp pointer and not as literal,
13218         * (popRegFromIdx): prefixed with pic16_,
13219         * (pic16_popCombine2): modified to receive already allocated pCode
13220         operands,
13221         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
13222         * (genFunction): initializes local stack frame and pushes on stack
13223         all the registers used by this function,
13224         * (genEndFunction): restores all registers from stack and restores
13225         stack frame,
13226         * src/pic16/glue.c (pic16emitRegularMap): various changes and
13227         improvements,
13228         * (pic16glue): changed the program startup sequence,
13229         * added new dbName code 'A' for functions placed in absolute section
13230         * src/pic16/main.c: added function attribute _naked,
13231         * added pragma 'code' to place a fnuction at an absolute address,
13232         * added command line arguments --debug-ralloc and --pcode-verbose,
13233         * (_pic16_finiliseOptions): options.all_callee_saves is set by default
13234         * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
13235         * (pic16_newpCodeOpLit2): modified to take the second operand as
13236         pCodeOp pointer,
13237         * (pic16_printpBlock): modified to emit each function in a separate
13238         section,
13239         * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
13240         UPPER for immediate operands,
13241         * src/pic16/pcodepeeph.c: added peephole support for the LFSR
13242         instruction,
13243         * src/pic16/peeph.def: all peepholes with movff are commented out,
13244         because there is a problem in the pcode peep optimizer,
13245         * src/pic16/ralloc.c: the register allocator can now reuse local
13246         function symbols for another function. This saves register usage.
13247         * src/pic16/ralloc.h: added flag isLocal in structure regs,
13248
13249         Added file src/pic16/NOTES with information about program writing on
13250         the current port version.
13251
13252 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13253
13254         * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
13255         and peephole 252 (array access)
13256
13257 2004-01-09  Borut Razem <borut.razem AT siol.net>
13258
13259         * src/SDCCmain.c : fixed #872250: -l command line defined library
13260           files are scanned before standard library files
13261
13262 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13263
13264         * src/SDCCast.c (decorateType): fixed bug #874046
13265
13266 2004-01-09  Borut Razem <borut.razem AT siol.net>
13267
13268         * support/scripts/sdcc.nsi: remove previous installation
13269
13270 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13271
13272         * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
13273         bytes for last interrupt vector (mcs51)
13274         * sdcc.spec: fixed typo
13275
13276 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13277
13278         * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
13279         gen51Code): more efficient parameter receive for --model-large
13280         ("bug" #845294)
13281
13282 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13283
13284         * src/ds390/main.c,
13285         * src/z80/main.c: added missed needLinkerScript flags (more than
13286         one port structure defined in these file)
13287         * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
13288         bug #795325
13289
13290 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
13291
13292         * src/SDCCmain.c: removed various references to DEFAULT_PORT
13293         * src/port.h: added flag needLinkerScript in port->linker
13294         structure to inform whether to create a .lnk file or not,
13295         * src/avr/main.c,
13296         * src/ds390/main.c,
13297         * src/hc08/main.c,
13298         * src/mcs51/main.c,
13299         * src/pic/main.c,
13300         * src/pic16/main.c,
13301         * src/xa51/main.c,
13302         * src/z80/main.c: changed appropriately to configure
13303         needLinkerScript flag
13304         * src/pic/gen.c,
13305         * src/pic16/gen.c (genAddrOf): fixed bug #863624
13306         * src/pic/glue.c: added variable udata_section_name to
13307         override default uninitialized data segment definition for
13308         devices only with SHAREBANK memory (reported from Erik Epetrich)
13309         * (pic14emitOverlay): modified to emit a commented overlay segment
13310         directive when no overlay data exist
13311         * (picglue): modified to emit uninitialized data segment
13312         according to udata_section_name
13313         * src/pic/main.c (_pic14_parseOptions): added command line
13314         options --udata-section-name=[name] to override default
13315         udata definition name
13316         * modified _linkCmd and _asmCmd to include compiler passed
13317         arguments via -W option
13318         * src/pic16/main.c: added $l in _asmCmd, changed extension for
13319         object file from '.rel' to '.o' in port->linker structure,
13320         changed size of fptr from 2 to 3 in port structure
13321
13322 2004-01-07  Borut Razem <borut.razem AT siol.net>
13323
13324         * support/scripts/sdcc.nsi: update PATH
13325         * support/scripts/sdcc.ico: craeted
13326
13327 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
13328
13329         * device/include/Makefile.in: fix install
13330         * doc/Makefile: fix install
13331
13332 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13333
13334         * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
13335         in bug #860505
13336         * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
13337         how the function variable allocation summary is displayed; also
13338         include information about variables allocated to the overlay
13339         segment
13340
13341 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13342
13343         * as/mcs51/lkmain.c: Help about -Y option
13344         * as/mcs51/lkarea.c: Fixed gcc warnings
13345
13346 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
13347
13348         * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
13349         fixed warning
13350         * support/valdiag/tests/overflow.c: added
13351         * src/SDCCast.c (decorateType),
13352         * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
13353         LEFT_OP (left shift)
13354
13355 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13356
13357         * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
13358         (default behaviour).
13359
13360 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13361
13362         A python script to validate compiler diagnostic messages. It can be
13363         used to verify that sdcc complains about bad c source code and
13364         gives a good location of the error.
13365         * support/valdiag/Makefile,
13366         * support/valdiag/valdiag.py,
13367         * support/valdiag/tests/*
13368
13369 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13370
13371         * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
13372         * src/SDCCsymt.c (newEnumType),
13373         * src/SDCCsymt.h
13374         * support/Util/SDCCerr.c,
13375         * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
13376         enum related bugs.
13377         * support/regression/tests/enum.c: added test for enum values that
13378         require at least 2 bytes of storage.
13379
13380 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
13381
13382         * src/common.h: added ifndef/define/endif macros
13383         around the header file.
13384         Bug reported from Jesus Calvino-Fraga
13385
13386 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
13387
13388         * sdcc.spec: updated
13389         * device/include/Makefile.in: don't install CVS directories
13390         * device/lib/Makefile.in: added removal of CVS directories after install
13391         * doc/Makefile: fixed install, added local_icons
13392         * sim/ucsim/gui.src/Makefile.in: fixed an old typo
13393         * src/mcs51/gen.c (genRightShift): fixed bug #870788
13394         * src/ds390/gen.c (genRightShift): fixed bug #870788
13395         * src/SDCCast.c (decorateType): fixed bug #870781
13396
13397 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
13398
13399         PIC16 port related changes:
13400         * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
13401         added variable stackPos,
13402
13403         * gen.c: genCall, assignResultValue: added support for
13404         pushing/retrieving function parameters to/from stack,
13405         genFunction,genEndFunction: setup stack frame for the
13406         generated function,
13407         genAddrOf: will be changed according to bug 863624
13408
13409         * added files genutils.c and genutils.h which contain gen*
13410         debugged and optimised functions extracted from gen.c
13411
13412         * glue.c: added variable 'externs' which holds extern symbols,
13413         pic16emitRegularMap: is modified to properly handle relocatable
13414          symbols under the new scheme,
13415         pic16createInterruptVect: is modified
13416         pic16printPublics: is modified to emit 'global' assembler directives,
13417         added pic16_printExterns to print extern symbols,
13418         pic16glue: initializes stack/frame pointer in the beginning of
13419         the assembly output. Temporary hack, will be corrected later,
13420         because gplink yet does not support stack and SDCC does not
13421         yet support a type of crt0.o object to create the final binary.
13422
13423         * Removed many lines that contain 8051 legacy code.
13424         * The code is finally placed under a 'code' directive.
13425         * Added port specific options.
13426
13427         * _process_pragma: simplified since now we do not need *special*
13428         include file to define SFR registers. But a separate header
13429         will be needed. This will be developed later.
13430         * _pic16_parseOptions: added, parses port specific options:
13431         --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
13432         --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
13433         --preplace-udata-with=
13434
13435         * _pic16_setDefaultOptions: modified to initialize section names,
13436         but hack is temporarly out of order since it needs improvement.
13437         * _pic16_genAssemblerPreamble: configuration words are emitted by
13438         their address instead of their name. This part is incomplete and
13439         supports only the 18Fxx2 devices. Other devices will emit an error
13440         during assembly since they do not contain the same set of config
13441         registers
13442         * _pic16_genIVT: is modified,
13443
13444         * pcode.c: added definitions for some hardware registers that are needed
13445         for stack support
13446         * added flag is2LitOp and variable pci_magic in pCodeInstruction.
13447         All PCI entries are updated. Now LFSR is supported.
13448         * Removed pic16_pciTRIS is mentioned by mdubuc in source
13449         * added pic16_newpCodeOpLit2 to support instructions with
13450         two literal arguments
13451         * pic16_pCode2str: corrected code that emits assembler instructions
13452         with two literal operands and those that have an access bit modifier
13453         * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
13454         this fixes a bug which caused some labels to be lost, when an
13455         assembler directive was added, i.e. banksel,
13456         * pic16_FixRegisterBanking: improved logic that causes the insertion
13457         of bank switching,
13458         * InlineFunction: functions that are called once, are not any more
13459         inlined. This can be a port option in the future,
13460
13461         * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
13462
13463         * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
13464         hold the corresponding uninitialized symbols,
13465         * pic16_allocProcessorRegister: registers have explicit marked the
13466         accessBank field,
13467         * pic16_allocInternalRegister: registers are explicit marked as
13468         not used,
13469         * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
13470         processing list, so bit registers were lost,
13471         *
13472
13473         * ralloc.h: added field 'accessBank' and original symbol operand
13474         in register definition,
13475         * removed the field isMapped from register definition,
13476
13477         ** Several functions have been removed from various sources:
13478         BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
13479         pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
13480         isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
13481         pic16_assignRelocatableRegisters
13482
13483         ** others have been introduced:
13484         pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
13485         pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
13486
13487 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
13488
13489         * support/scripts/inc2h.pl: changed definition of BIT_AT
13490         to emit 'sbit at' instead of 'bit at'. This was a request.
13491
13492         PIC16 port related preliminary changes:
13493         * gen.c: prefixed function popRegFromString with
13494         pic16_ and all references to it corrected
13495         * pcode.c: all pic16_pc_* hardware registers prefixed
13496         with underscore (_),
13497         pic16_popCopyGPR2Bit(): function sets register wasUsed=1
13498         * ralloc.c: newReg(): when register is REG_SFR then
13499         set address to rIdx,
13500         pic16_allocProcessorRegister(): marks register wasUsed=0
13501         pic16_writeUsedRegs(): added a call to assign processor
13502         registers via pic16_assignFixedRegisters
13503
13504 2004-01-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13505
13506         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
13507         as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
13508         variables in unused register banks.  Also the SSEG is placed
13509         wherever there is enough space for it, and IDATA can be anywhere
13510         in internal RAM.  For now compile using -Wl-Y[stack_size].
13511         The mem file is different for this option as well, since it
13512         makes no sense of talking about DSEG lenght.
13513
13514 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
13515
13516         * src/SDCClrange.c: fixed bug 869095 that caused segfault
13517         in certain cases, e.g. when ROM assignment, patch provided
13518         from Albert den Haan.
13519
13520 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
13521
13522         Many signedness and type propagation fixes:
13523         * src/SDCCicode.c: made geniCodeCast() static
13524         replaced SPEC_ by IS_ (cosmetic)
13525         (operandOperation): fixed div and mod operation
13526         (usualBinaryConversions): added support for promotion of char
13527         (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
13528         (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
13529         (geniCodeAdd): an array index will stay unsigned, even if promoted
13530         from char to int
13531         (geniCodeArray): ditto
13532         * src/SDCCicode.h: made geniCodeCast() static: removed prototype
13533         * src/SDCCsymt.c (computeType): added more support for char;
13534         promotion of char is selectable by promoteCharToInt, fixed signedness
13535         for all cases
13536         (powof2): replaced (unsigned long) by (TYPE_UDWORD)
13537         * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
13538         * src/SDCCval (val*): replaced signedness calculation by
13539         computeType()
13540         rearranged if-branches (cosmetic)
13541         (valShift): added warning W_SHIFT_CHANGED
13542         (valCompare): fixed problem with different types
13543         * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
13544         * support/regression/tests/literalop.c: added many cases
13545         * support/regression/tests/ast_constant_folding.c: changed finally to
13546         'unsigned int'
13547         * .version: new year, new version: 2.3.7
13548         * src/SDCCmain.c (main): applied patch #866468
13549         * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
13550         provided by Scott Bronson
13551         * doc/sdccman.lyx: updated documentation for sdcdb
13552         updated and added chapter tips
13553
13554 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13555
13556         * src/SDCCsymt.h: missing from yesterday's commits
13557
13558 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13559
13560         * src/SDCC.y (struct_or_union_specifier),
13561         * support/Util/SDCCerr.c,
13562         * support/Util/SDCCerr.h: verify that struct & union tags are used
13563         as declared.
13564
13565 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13566
13567         * src/SDCCglobl.h: missing from yesterday's commits
13568
13569 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13570
13571         * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
13572         sft_attributes, struct_declaration, parameter_declaration,
13573         type_name, start_block, declaration_list),
13574         * src/SDCC.lex (check_type): support redefinition of typedef names
13575
13576 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13577
13578         * src/mcs51/gen.c (genPlus): added special handling for 256 byte
13579         aligned xdata arrays. Erik helped me with the if clause.
13580
13581 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13582
13583         * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
13584         warning
13585
13586 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13587
13588         * src/SDCCast.h,
13589         * src/SDCCast.c (newAst_),
13590         * src/SDCCicode.h,
13591         * src/SDCCicode.c (ast2iCode, newiCode),
13592         * src/SDCCglobl.h,
13593         * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
13594         expr, statement, expression_statement, selection_statement,
13595         iteration_statement, expr_opt, jump_statement): foundation for tracking
13596         sequence points
13597         * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
13598         point code too)
13599
13600 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13601
13602         * support/Util/SDCCerr.c,
13603         * src/SDCCast.h,
13604         * src/SDCCast.c (createCase, createDefault, decorateType),
13605         * src/SDCClabel.c (labelUnreach),
13606         * src/SDCC.y (labeled_statement, jump_statement): More improvements
13607         to error messages.
13608         * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
13609         (with thanks to Stas Sergeev)
13610         * device/include/time.h,
13611         * device/lib/time.c (CheckTime): suppress unreachable code warning
13612
13613 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13614
13615         * src/SDCCast.c (createIvalCharPtr),
13616         * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
13617         bug #753752)
13618         * support/regression/tests/nullstring.c: tests for these two bugs
13619
13620 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13621
13622         * support/Util/SDCCerr.h,
13623         * support/Util/SDCCerr.c (E_NOT_ALLOWED),
13624         * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
13625         about storage class and 'at' used inside struct or union
13626         * src/SDCCBBlock.c (iCodeFromeBBlock),
13627         * src/SDCCcse.c (ifxOptimize),
13628         * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
13629         printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
13630         printIval, emitStaticSeg, emitOverlay),
13631         * src/SDCClabel.c (deleteIfx),
13632         * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
13633         * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
13634         gatherAutoInit, processParms),
13635         * support/Util/SDCCerr.h,
13636         * support/Util/SDCCerr.c (werrorfl): Support for better error location
13637         reporting for post-parse errors.
13638
13639 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13640
13641         * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
13642         implicit casts via union; they don't work on big endian systems
13643         (possible fix for bug #861138)
13644
13645 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13646
13647         (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
13648         * src/mcs51/main.c: fixed the fix for bug #737001
13649
13650 2003-12-15  Borut Razem <borut.razem AT siol.net>
13651
13652         * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
13653
13654 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13655
13656         * support/makebin/makebin.c: put output in binary mode
13657
13658 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13659
13660         * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
13661         xdata and data memory on startup. Set the environment variable
13662         SDCC_NOGENRAMCLEAR to disable this.
13663         * src/mcs51/peephole.def,
13664         * src/ds390/peephole.def: using the atomic test and clear instruction jbc
13665         (allows non-interrupt and interrupt code to safely compete for a resource
13666         without the non-interrupt code having to disable interrupts)
13667
13668 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13669
13670         * src/SDCCicode.c (geniCodeAdd),
13671         * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
13672         with valFromType if type might be a pointer and host is big endian).
13673         * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
13674         types, not just integer types.
13675         * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
13676         multiply defined with mismatching "at" address.
13677
13678 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13679
13680         * src/ds390/main.c (PORT tininative_port): fixed bug #858416
13681         * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
13682         * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
13683         with embedded nulls (fixed bug #753752)
13684
13685 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13686
13687         * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
13688         Apparently this did not see much testing (endless loop)
13689
13690 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13691
13692         * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
13693
13694 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13695
13696         * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
13697         gracefully handle NULL memmap pointers
13698
13699 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13700
13701         * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
13702         instead of deleting the iCode when an operand is volatile
13703         * src/z80/gen.c (genDummyRead),
13704         * src/mcs51/gen.c (genDummyRead),
13705         * src/ds390/gen.c (genDummyRead),
13706         * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
13707         not just IC_RIGHT
13708         * src/SDCCicode.c (geniCodeCall): fixed bug #851607
13709         * src/SDCC.y: fixed bug #850420
13710
13711 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13712
13713         Applied z80 i/o port patch from Peter Townson and fixed some operators
13714         to better handle operands in A register.
13715         * device/include/z180.h
13716         * src/SDCC.y
13717         * src/SDCCglue.c
13718         * src/z80/gen.c
13719         * src/z80/gen.h
13720         * src/z80/main.c
13721         * src/z80/peeph-z80.def
13722         * src/z80/peeph.def
13723         * src/z80/z80.h
13724
13725 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13726
13727         * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
13728
13729 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13730
13731         * device/lib/hc08/_mullong.c: Removed extra #endif
13732
13733 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13734
13735         * sim/ucsim/hc08.src/inst.cc,
13736         * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
13737         carries from x to h
13738         * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
13739         * src/hc08/gen.c (XAccRsh): fixed problem with right shift
13740         * device/include/stdarg.h: fixed varargs for hc08
13741         * device/lib/Makefile.in,
13742         * device/lib/hc08/Makefile,
13743         * device/lib/hc08/_mulint.c,
13744         * device/lib/hc08/_mullong.c: fixed some endian problems
13745
13746 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13747
13748         * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
13749         * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
13750         * device/lib/_gptrget.c,
13751         * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
13752
13753 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13754
13755         * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
13756         * src/SDCCast.c (astErrors): fixed bug #846007
13757         * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
13758
13759 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13760
13761         * src/SDCCast.c (decorateType): disabled a transformation I added in
13762         revision 1.188 (access to fields of a structure at an absolute address);
13763         it breaks with bitfields, extern declarations, and gcse analysis.
13764         * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
13765         could be assigned through a pointer, so don't complain.
13766         * src/SDCCast.c (astErrors),
13767         * src/SDCCast.h,
13768         * src/SDCCglue.c (emitRegularMap): fixed bug #847813
13769
13770 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
13771
13772         * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
13773         * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
13774         output of __config directives, since gpasm now supports them
13775         * src/pic16/main.c (_pic16_finaliseOptions): define MCU
13776         pre-processor macro, i.e. -DMCU=p18f452
13777         * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
13778         and modified to handle 'cast' icode similarly to '=' icode
13779         * src/pic16/device.h (typedef struct PIC_device): added field
13780         'extMIface' to indicate that chip has external memory interface
13781         * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
13782         18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
13783         18F8720
13784
13785 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13786
13787         * src/SDCC.y (pointer): fixed bug #846006
13788         * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
13789         * src/SDCCast.c (decorateType): fixed bug #846009
13790         * src/ds390/peeph.def,
13791         * src/ds390/gen.c (genAnd, genOr),
13792         * src/mcs51/peeph.def,
13793         * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
13794
13795 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13796
13797         Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
13798         * src/SDCCdflow.c
13799         * src/SDCCcse.c
13800         * src/SDCCcse.h
13801         * src/SDCCBBlock.h
13802         * src/SDCCBBlock.c
13803
13804 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
13805
13806         fixed bug #845089
13807         * src/SDCCbitv.h,
13808         * src/SDCCbitv.c: added function to free a bitvector
13809         * src/SDCClrange.h,
13810         * src/SDCClrange.c: added function to recompute the liveranges
13811         * src/avr/ralloc.c,
13812         * src/ds390/ralloc.c,
13813         * src/hc08/ralloc.c,
13814         * src/mcs51/ralloc.c,
13815         * src/pic/ralloc.c,
13816         * src/pic16/ralloc.c,
13817         * src/xa51/ralloc.c,
13818         * src/z80/ralloc.c: recompute the liveranges after register packing
13819
13820 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
13821
13822         * src/SDCCloop.c (newInduction): fixed bug #845630
13823
13824 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13825
13826         * src/SDCCsymt.c (compareTypesExact): disabled debugging output
13827         inadvertantly left behind from my 2003-11-12 change
13828
13829 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13830
13831         Updated headers I neglected to commit yesterday.
13832         * src/SDCClrange.h,
13833         * src/SDCCicode.h
13834
13835 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13836
13837         * src/SDCCcse.c (algebraicOpts): fixed bug #773153
13838         * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
13839         * src/SDCCopt.c (eBBlockFromiCode),
13840         * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
13841         the creation of the key hash table from the sequencing so it can be used
13842         earlier (for some GCSE bug fixes still pending)
13843
13844 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13845
13846         * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
13847         * support/regression/tests/addsub.c: testing genPlus shortcut
13848
13849 2003-11-15  Borut Razem <borut.razem AT siol.net>
13850
13851         * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
13852
13853 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13854
13855         * src/SDCCcse.c (cseBBlock): fixed bug #527779
13856         * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
13857         ordering is immaterial.
13858         * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
13859
13860 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13861
13862         * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
13863         * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
13864         (SIGSEV) of bug #840381
13865         * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
13866         unlink new file before rename if new and old filenames are the same)
13867
13868 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13869
13870         * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
13871         uninitialized variables) for the mcs51. Set environment variable
13872         SDCC_GENRAMCLEAR to test.
13873         xdata initialization slightly shorter
13874
13875 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13876
13877         * src/SDCCsymt.h,
13878         * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
13879         #838241 & 780691 (basicly the same bug)
13880         * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
13881         * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
13882
13883 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
13884
13885         * src/SDCCmain.c (linkEdit): "fix" #834252
13886
13887 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13888
13889         * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
13890         * src/SDCCast.h,
13891         * src/SDCC.y: fixed bug #819403
13892
13893 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13894
13895         * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
13896         the reentrant attribute.
13897         * src/hc08/gen.c (genPackBits): added missing stack readjustment
13898         * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
13899         simulation
13900         * src/SDCCast.c (decorateType): fixed bug with storage class not being
13901         updated during pointer dereference; f.e. ~(((char *)1)*) was being
13902         erroneously reduced to a literal.
13903         * src/hc08/ralloc.c (packRegisters, rematStr),
13904         * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
13905         some cases
13906
13907 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13908
13909         * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
13910         * doc/sdccman.lyx: changed from 'article' to 'book'
13911         * doc/Makefile: readded test_suite_spec and cdbfileformat
13912
13913 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
13914
13915         * device/include/stdlib.h: include malloc.h to comply with ANSI
13916         * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
13917
13918 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13919
13920         * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
13921         * doc/clean.mk: also remove *.out files
13922         * doc/sdccman.lyx: some additions, larger top/bottom margins
13923
13924 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13925
13926         * src/SDCC.y: fixed bug #837365
13927         * support/regression/tests/bitopcse.c
13928         * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
13929         a symbol (might be valop instead)
13930         * device/lib/Makefile.in: added errno.c to HC08SOURCES
13931         * device/lib/clean.mk: added hc08 to the cleaning list
13932
13933 2003-11-04  Borut Razem <borut.razem AT siol.net>
13934
13935         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
13936           made 2003-11-04
13937         * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
13938           as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
13939           malloc is declared in standard stdlib.h
13940
13941 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13942
13943         * device/lib/hc08/Makefile: need to clean .rel not .o files
13944         * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
13945
13946 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13947
13948         * src/port.h,
13949         * src/hc08/main.c,
13950         * src/mcs51/main.c,
13951         * src/ds390/main.c,
13952         * src/z80/main.c,
13953         * src/avr/main.c,
13954         * src/pic/main.c,
13955         * src/pic16/main.c,
13956         * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
13957         * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
13958         tests (which uses the port's oclsExpense function)
13959         * src/SDCC.y,
13960         * src/SDCCast.c,
13961         * src/SDCCicode.c,
13962         * src/hc08/gen.c,
13963         * src/ds390/gen.c,
13964         * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
13965
13966 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13967
13968         * src/SDCCcse.c (ifxOptimize),
13969         * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
13970         an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
13971         deleting the IFX iCode.
13972         * src/hc08/ralloc.c: reduced unneeded slocs
13973         * src/hc08/gen.c: fixed bug in asmopToBoolean
13974
13975 2003-11-04  Borut Razem <borut.razem AT siol.net>
13976
13977         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
13978           support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
13979           as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
13980           transferred to configure
13981
13982 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
13983
13984         Use headers defined in the C[++] standards:
13985         * sim/ucsim/gui.src/serio.src/fileio.cc
13986         * sim/ucsim/gui.src/serio.src/frontend.cc
13987         * sim/ucsim/gui.src/serio.src/main.cc
13988         * sim/ucsim/gui.src/serio.src/posix_signal.cc
13989         * support/Util/NewAlloc.c
13990         * as/hc08/lklibr.c
13991         * as/mcs51/lklibr.c
13992         * as/z80/aslist.c
13993         * as/z80/assym.c
13994
13995 2003-11-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13996
13997         * Added MSVC projects for hc08 assembler and linker:
13998         all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
13999         /as/hc08/link_hc08.dsp
14000
14001 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
14002
14003         * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
14004
14005 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
14006
14007         * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
14008
14009 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14010
14011         * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
14012
14013 2003-10-31  Borut Razem <borut.razem AT siol.net>
14014
14015         * support/cpp2/cpplib.h,
14016           support/cpp2/cpplib.c,
14017           support/cpp2/cpplex.c,
14018           support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
14019           to switch _asm block preprocessing on / off. Default is
14020           #pragma preproc_asm +
14021
14022 2003-10-31  Borut Razem <borut.razem AT siol.net>
14023
14024         * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
14025           when outputting comment blocks (when executed with -C option) and
14026           _asm (SDCPP specific) blocks
14027
14028 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14029
14030         * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
14031
14032 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
14033
14034         * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
14035
14036 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
14037
14038         * src/SDCCmain.c (linkEdit): "fixed" bug #833605
14039         * src/SDCCast.c (decorateType): fixed bug #832664
14040
14041 2003-10-31  Borut Razem <borut.razem AT siol.net>
14042
14043         * support/cpp2/cpplex.c: fixed for SDCPP:
14044           comments(when executed with -C option) and _asm blocks
14045           were included even if they where in skipped #if block.
14046           Applied solution from GCC cpp 3.3.2
14047
14048 2003-10-31  Borut Razem <borut.razem AT siol.net>
14049
14050         * src/SDCC.lex: sdcc now understands both formats:
14051           '# <line_number> <file_name>' and
14052           '#line <line_number> <file_name>'
14053         * support/cpp2/cppmain.c: sdcpp now generates the standard
14054           '# <line_number> <file_name>' instead of former
14055           '#line <line_number> <file_name>'
14056
14057 2003-10-30  Borut Razem <borut.razem AT siol.net>
14058
14059         * support/cpp2/cpphash.h,
14060         * support/cpp2/cpplib.h
14061         * support/cpp2/cpplex.c,
14062         * support/cpp2/cppmain.c,
14063         * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
14064
14065 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14066
14067         Fixed a number of problems revealed by bug #827883.
14068         * src/SDCCloop.c (loopInvariants): Spill location of the
14069         result operand should be recomputed if extracted from
14070         a loop. Also, don't extract assignments of an iTemp
14071         from a literal.
14072         * src/SDCCast.c (isConformingBody): loop reversal should
14073         not occur if the control variable is involved with a
14074         relational operator.
14075
14076 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
14077
14078         * .version: bumped to 2.3.6 to reflect the big improvements
14079         made by Erik and Klaus. Thanks!
14080
14081 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
14082
14083         Replaced the livrange code.
14084         * src/SDCClrange.c: added new LR code
14085         * src/SDCCloop.c,
14086         * src/SDCCBBlock.h: removed remainig parts from old LR code
14087         * src/ds390/ralloc.c,
14088         * src/ds390/gen.c: minor fixes to make it work with new code
14089
14090 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14091
14092         * as/hc08/asm.h,
14093         * as/hc08/lkrloc.c,
14094         * src/hc08/gen.c,
14095         * src/hc08/ralloc.c: Fix various warnings related to the hc08
14096         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
14097         (tweaked fix for bug #818696)
14098
14099 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14100
14101         * src/z80/ralloc.c (joinPushes): Fixed bug #828742
14102
14103 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14104
14105         * src/SDCCmain.c,
14106         * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
14107         * src/mcs51/gen.c (gencjneshort),
14108         * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
14109         more efficient (per Scott Bronson's suggestion)
14110
14111 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14112
14113         Extended the semantics of the critical keyword to include
14114         individual statements. See RFE #827755 and #799831
14115         * src/SDCC.y
14116         * src/SDCCicode.c
14117         * src/SDCCopt.c
14118         * src/SDCCast.c
14119         * support/Util/SDCCerr.c
14120         * support/Util/SDCCerr.h
14121         * src/mcs51/gen.c
14122         * src/ds390/gen.c
14123         * src/hc08/gen.c
14124
14125 2003-10-19  Borut Razem <borut.razem AT siol.net>
14126
14127         * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
14128
14129 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14130
14131         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
14132         Fixed bug #818696
14133         * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
14134         and predecrement operand is displayed
14135
14136 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
14137
14138         * src/SDCCval.c (valMinus): fixed bug #826041
14139
14140 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14141
14142         Some hc08 related updates that I missed earlier
14143         * sim/ucsim/stypes.h
14144         * support/regression/ports/hc08/spec.mk
14145
14146 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14147
14148         New target "hc08" for the Motorola 68hc08 family of micros
14149
14150         * configure
14151         * configure.in
14152         * Makefile
14153         * src/hc08/*
14154         * src/SDCCmain.c
14155         * src/port.h
14156         * sim/ucsim/hc08.src/*
14157         * sim/ucsim/configure.in
14158         * src/ucsim/configure
14159         * sim/ucsim/packages_in.mk
14160         * as/hc08/*
14161         * as/Makefile
14162         * device/include/mc68hc908qy.h
14163         * device/lib/hc08/*
14164         * device/lib/Makefile.in
14165         * support/regression/ports/hc08/*
14166         * support/regression/Makefile
14167
14168 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14169
14170         * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
14171         regression test
14172         * src/ds390/gen.c (genCast): fixed bug #821957
14173
14174 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
14175
14176         * device/lib/logf.c: "fixed" overlay bug
14177         * support/regression/ports/host/spec.mk: added m library
14178         * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
14179         * support/regression/tests/float_trans: added (for Eric)
14180
14181 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
14182
14183         * src/mcs51/gen.c (genCpl): fixed bug
14184         http://sf.net/mailarchive/message.php?msg_id=6263915
14185
14186 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
14187
14188         * src/SDCCast.c (decorateType): added extended constant folding
14189         * src/SDCCsymt.c (computeType): cleanup
14190         * src/SDCCval.c (valShift): minor optimization
14191         * support/regression/tests/ast_constant_folding.c: added
14192
14193 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14194
14195         * src/SDCCmain.c: removed some unintended changes
14196
14197 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14198
14199         * src/SDCCmain.c (setParseWithComma): fixed bug #816685
14200         * src/z80/gen.c: fixed part of bug #817589
14201         * src/SDCCsymt.c (checkFunction): fixed bug #817895
14202
14203 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
14204
14205         Replaced cast (void **) with (void *) to avoid gcc 3 warning:
14206         * src/SDCCcflow.c
14207         * src/SDCCcse.c
14208         * src/SDCCdflow.c
14209         * src/SDCClabel.c
14210         * src/SDCClrange.c
14211         * src/SDCCmem.c
14212         * src/SDCCopt.c
14213         * src/SDCCpeeph.c
14214         * src/SDCCset.c
14215         * src/avr/ralloc.c
14216         * src/ds390/ralloc.c
14217         * src/izt/ralloc.c
14218         * src/mcs51/ralloc.c
14219         * src/pic/ralloc.c
14220         * src/pic16/ralloc.c
14221         * src/xa51/ralloc.c
14222         * src/z80/ralloc.c
14223         * src/z80/gen.c: removed unused label "release:"
14224
14225 2003-10-06  Borut Razem <borut.razem AT siol.net>
14226
14227         * src/SDCC.lex: removed definition of unused variables
14228           save_optimize and save_options
14229
14230 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
14231
14232         * clean.mk: removed '=' in "-maxdepth=1"
14233         * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
14234         * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
14235
14236 2003-10-06  Borut Razem <borut.razem AT siol.net>
14237
14238         * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
14239           my_unput() replaced by unput()
14240
14241 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
14242
14243         * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
14244         setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
14245         type-punned pointer will break strict-aliasing rules"
14246         Old LR behaviour is again default; Klaus' LR can be choosen by
14247         defining the environment variable LRKLAUS
14248         * src/SDCCBBlock.h
14249         * src/SDCCloop.c
14250         * src/SDCClrange.c
14251         * src/ds390/ralloc.c (spillThis): applied Klaus' patch
14252         * clean.mk: fixed removal of files in bin/CVS/
14253         * device/lib/clean.mk: fixed removal of directories small and large
14254         * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
14255         * src/SDCCicode.c,
14256         * src/SDCCval.c: removed superflous test for pedantic
14257
14258 2003-10-05  Borut Razem <borut.razem AT siol.net>
14259
14260         * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
14261           Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
14262           message "unmatched #pragma SAVE and #pragma RESTORE"
14263
14264 2003-10-04  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14265
14266         * doc/sdccman.lyx: various additions and updates (interrupts, inline
14267           assembly, critical functions, atomic, nojtbound)
14268
14269 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
14270
14271         Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
14272         * src/SDCCBBlock.h
14273         * src/SDCCloop.c
14274         * src/SDCCloop.h
14275         * src/SDCClrange.c
14276
14277 2003-10-03  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14278
14279         * src/z80/gen.h,
14280         * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
14281         * src/mcs51/gen.h
14282         * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
14283         * src/ds390/gen.h
14284         * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
14285         * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
14286         * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
14287
14288 2003-10-02  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14289
14290         * src/z80/gen.c (genRet): fixed bug #524753
14291         * src/z80/gen.c (genCast): fixed internal error on cast from
14292         pointer to long
14293         * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
14294         fix for bug #477835 to the z80
14295         * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
14296         for tracking iCodes in the peephole optimizer for z80
14297
14298 2003-10-01  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14299
14300         * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
14301         the other part of bug #814548
14302         * src/SDCCpeeph.c (labelInRange): fixed bug #814558
14303
14304 2003-09-30  Bernhard Held <bernhard AT bernhardheld.de>
14305
14306         * src/SDCCcse.c: fixed part of bug #814548
14307
14308 2003-09-28  Borut Razem <borut.razem AT siol.net>
14309
14310         * src/asm.c: rewrite of printILine() to use temporary file instead
14311           a pipe
14312         * src/xa51/main.c: commented out declaration of int rewinds
14313
14314 2003-09-27  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14315
14316         * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
14317
14318 2003-09-26  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14319
14320         * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
14321         * src/asm.c (printILine): Fixed bug #811015
14322
14323 2003-09-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14324
14325         *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
14326         freeing.
14327
14328 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14329
14330         * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
14331         * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
14332         to correctly handle general case of AOP_PAIRPTR
14333         * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
14334
14335 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14336
14337         * src/mcs51/ralloc.c (fillGaps),
14338         * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
14339         register positioning bug)
14340
14341 2003-09-21  Bernhard Held <bernhard AT bernhardheld.de>
14342
14343         * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
14344
14345 2003-09-19  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14346
14347         * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
14348         genCodePointerGet, genGenPointerGet, genFarPointerSet,
14349         genGenPointerSet): handle AOP_DPTR correctly when loading dptr
14350         (ralloc doesn't intentionally do this now, but perhaps later)
14351         * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
14352         * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
14353         register positioning bugs (Fixed bug #762602 and #795325)
14354         * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
14355         (Fixed bug #808779)
14356         * src/z80/gen.c: increased _vemit2's buffer[] to handle long
14357         lines that --i-code-in-asm generates
14358
14359 2003-09-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14360
14361         *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
14362         trying to fclose a FILE* that was already closed.
14363
14364 2003-09-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14365
14366         * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
14367         of const struct should be treated as if const themselves)
14368
14369 2003-09-18  Bernhard Held <bernhard AT bernhardheld.de>
14370
14371         * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
14372
14373 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14374
14375         * support/librarian/sdcclib.c: Generate correct offsets for libraries with
14376         Unix (/n) and DOS (/r/n) line terminations.
14377
14378 2003-09-17  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14379
14380         * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
14381         bug #613775
14382
14383 2003-09-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14384
14385         * src/mcs51/gen.c (genFunction, genEndFunction),
14386         * src/ds390/gen.c (genFunction, genEndFunction): Moved save
14387         and restore of EA so that stack offsets to parameters are
14388         correct when using both critical and reentrant/stack-auto.
14389         * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
14390         size (can be triggered in error if sloc is shared between
14391         different sized objects)
14392         * device/include/float.h: fixed macros to explicitly use
14393         unsigned long where needed
14394
14395 2003-09-15  Bernhard Held <bernhard AT bernhardheld.de>
14396
14397         Feature req. 799831: added code to allow nesting of critical functions
14398         * src/mcs51/gen.c (genFunction, genEndFunction)
14399         * src/ds390/gen.c (genFunction, genEndFunction)
14400
14401 2003-09-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14402
14403         * src/SDCCsymt.c (sclsFromPtr),
14404         * src/SDCCsymt.h,
14405         * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
14406         support for standard C idiom of memory mapped variables; for
14407         example, *((xdata int*)0x1234) = 1 is now internally equivalent
14408         to xdata int at 0x1234 tempvar = 1.
14409         * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
14410         provided by Akiya ISHIDA
14411
14412 2003-09-13  Bernhard Held <bernhard AT bernhardheld.de>
14413
14414         * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
14415         * src/SDCCval.c (constVal): added reduction from int to char
14416         * src/SDCCval.c (valMult, valDiv): fixed sign handling
14417         * src/SDCCval.c (valShift): fixed after change of cheapestVal()
14418         * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
14419         to ignore the sign
14420         * support/regression/tests/shifts.c: fixed
14421
14422 2003-09-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14423
14424         * src/z80/gen.c (genXor): Fixed bug #805445
14425
14426 2003-09-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14427
14428         Fixed bug #621531 (const & volatile confusion in the type chain).
14429         DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
14430         refer to the const or volatile state of the pointer itself.
14431
14432         * src/SDCCast.c
14433         * src/SDCCglue.c
14434         * src/SDCCicode.c
14435         * src/SDCCsymt.c
14436         * src/SDCCval.c
14437         * src/SDCC.y
14438         * src/SDCCsymt.h
14439         * src/pic/gen.c
14440         * src/pic/ralloc.c
14441         * src/pic16/gen.c
14442         * src/pic16/ralloc.c
14443         * support/regression/tests/const.c
14444
14445 2003-09-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14446
14447         When checking for duplicated modules, use absolute paths
14448         instead of relative paths.  Files changed:
14449
14450         * as/mcs51/lklib.c
14451         * link/z80/lklib.c
14452
14453 2003-09-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14454
14455         * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
14456
14457 2003-09-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14458
14459         * device/include/string.h: added size_t typedef, changed
14460         prototypes to use size_t, eliminated separate reentrant and
14461         non-reentrant declarations, added _memmove declaration
14462         * device/lib/_memcpy.c: changed to use size_t instead of int,
14463         changed /4 to >>2 to avoid division library call
14464         * device/lib/_memcmp.c,
14465         * device/lib/_memset.c,
14466         * device/lib/_strncat.c,
14467         * device/lib/_strncpy.c,
14468         * device/lib/_strncmp.c: changed to use size_t instead of int
14469         * device/lib/_memmove.c: new file (fixed bug #772294)
14470         * device/lib/Makefile.in: added _memmove.c
14471         * device/lib/z80/asm_strings.s: fixed bug #772290
14472         * support/regression/tests/bitfields.c: attempt to fix host assertion
14473         failure on amd64-unknown-linux2.2
14474
14475 2003-09-06  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14476
14477         * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
14478         * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
14479         * as/z80/asmain.c (main): fixed bug #801766
14480
14481 2003-09-06  Bernhard Held <bernhard AT bernhardheld.de>
14482
14483         * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
14484         compilers
14485
14486 2003-09-05  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14487
14488         * src/SDCCast.c (isConformingBody): fixed loop reversal bug
14489         reported in bug #800609
14490
14491 2003-09-04  Vangelis Rokas <vrokas AT otenet.gr>
14492
14493         * Top header beautifications in src/pic16 directory:
14494           device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
14495           pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
14496           pcoderegs.h, ralloc.c, ralloc.h
14497         * main.c: added top header and GPL license notice
14498         * pcode.c: fixed the if-conditional warning
14499
14500 2003-09-04  Bernhard Held <bernhard AT bernhardheld.de>
14501
14502         * device/lib/_mullong.c: replaced int by short for gcc
14503
14504 2003-08-31  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14505
14506         * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
14507         and JUMPTABLE iCodes properly now (worked by accident before)
14508         * src/mcs51/gen.c (leftRightUseAcc),
14509         * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
14510         iCode properly now. Use getSize instead of nRegs since a & b
14511         aren't part of the nRegs tally.
14512
14513 2003-08-31  Vangelis Rokas <vrokas AT otenet.gr>
14514
14515         * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
14516         * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
14517           before instructions that use the _STATUS register
14518
14519 2003-08-31  Bernhard Held <bernhard AT bernhardheld.de>
14520
14521         * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
14522         * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
14523         fetching of the pointer
14524         * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
14525         copied from genNearPointerSet()
14526         * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
14527         * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
14528         If they pop r0/r1 they must be called in the opposite order than aopOp().
14529         * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
14530         (resp. --stack-auto), prepared for --xstack
14531
14532 2003-08-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14533
14534         * doc/sdccman.lyx: reverted tables to those in cvs 1.64
14535
14536 2003-08-28  Bernhard Held <bernhard AT bernhardheld.de>
14537
14538         * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
14539         these ports have their own __sdcc_external_start()
14540
14541 2003-08-26  Bernhard Held <bernhard AT bernhardheld.de>
14542
14543         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
14544         * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
14545         type for bits was changed. It resulted in bit variables becoming
14546         global, which is not permitted in PIC 14 assembly output.
14547
14548 2003-08-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14549
14550         * doc/sdccman.lyx: various additions and updates. Rearranged sections
14551
14552 2003-08-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14553
14554         Z80 and MCS51 linkers complaint if a public symbol is defined
14555         in more than one library module:
14556
14557         * as/mcs51/lklib.c
14558         * link/z80/lklib.c
14559         * as/mcs51/Makefile.in
14560
14561 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14562
14563         A few small changes that speed up the peephole optimizer.
14564
14565         * src/SDCCpeeph.c
14566
14567 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14568
14569         Try to make the peephole optimizer smarter by maintaining
14570         an association between the assembly source code and the
14571         iCodes that originated them. Put this information to use
14572         with a new peephole rule condition "notVolatile" so that
14573         the rules can be aggressive yet still safe.
14574
14575         * src/SDCCpeeph.c
14576         * src/SDCCpeeph.h
14577         * src/mcs51/gen.c
14578         * src/mcs51/peeph.def
14579
14580 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14581
14582         Fixed bug #741761
14583
14584         * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
14585         * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
14586         if the left or right operand symbols have the accuse flag set.
14587
14588 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14589
14590         Changed the type of the result of the ! (NOT) operator to char;
14591         previously it returned the same type as the source. This allows
14592         us to eliminate all the genFloatNot functions (all of its target
14593         implementations were very buggy) since !float can use the same
14594         code as !long now.
14595
14596         * src/SDCCicode.c (ast2iCode): ! returns char
14597         * src/mcs51/gen.c (genNot, genNotFloat),
14598         * src/ds390/gen.c (genNot, genNotFloat),
14599         * src/z80/gen.c (genNot, genNotFloat),
14600         * src/pic/gen.c (genNot, genNotFloat),
14601         * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
14602
14603 2003-08-19  Bernhard Held <bernhard AT bernhardheld.de>
14604
14605         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
14606         1. Interrupt would not compile properly. Ensure PCLATH register is saved
14607            during interrupts. Ensure WSAVE is located at a shared bank address.
14608         2. Fixed page selection in some places
14609         3. Fixed BTFSS/C to where necessary use registers directly and not simply
14610            the registers name strings.
14611         4. Fixed "signed / unsigned compare" compiler warnings.
14612         5. The PIC port manages its own allocation of the general purpose
14613            registers, but makes no attempt to reuse them. As a result when
14614            compiling it soon runs out of general purpose registers. Some
14615            additional code was added to the files pcode.c and device.c to walk
14616            through the function call tree and rename the registers so that they
14617            get reused.
14618
14619         * src/pic/device.c
14620         * src/pic/gen.c
14621         * src/pic/glue.c
14622         * src/pic/pcode.c
14623         * src/pic/pcode.h
14624         * src/pic/ralloc.c
14625         * src/pic/ralloc.h
14626         * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
14627         genPlus() & genMinus() when the result is the same as left or right
14628
14629 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14630
14631         * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
14632
14633 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14634
14635         Made bitfield a distinct type from bit so that bitfields
14636         convert as per ANSI C and bits retain their traditional
14637         boolean style behaviour. Implemented bitfield support in
14638         the z80 port.
14639
14640         * src/SDCCsymt.h,
14641         * src/SDCCsymt.c,
14642         * src/SDCCast.c,
14643         * src/cdbFile.c,
14644         * src/mcs51/gen.c,
14645         * src/ds390/gen.c: bit v bitfield split
14646         * src/z80/gen.c: New support for bitfields
14647         * support/regression/tests/bitfields.c: reenabled z80,
14648         added more tests
14649
14650 2003-08-17  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14651
14652         Rules 246.x, 247.x relate to bitfields, the others speed up
14653         access to xdata mapped I/O devices.
14654
14655         * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
14656
14657 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14658
14659         Cleaned up genPackBits and genUnpackBits and added two helper
14660         functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
14661         for literal assignments in genPackBits (thanks to Frieder for
14662         reminding me).
14663
14664         * src/mcs51/gen.c
14665         * src/ds390/gen.c
14666
14667 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14668
14669         Fixed bug #748310 (pointer to function type mishandled when the
14670         function name is omitted). Also fixed a SIGSEGV when a function
14671         attribute (reentrant, etc) is used on a non-function or on a
14672         function but misplaced before the parameter list.
14673
14674         * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
14675         bug #748310
14676         * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
14677         * support/Util/SDCCerr.h,
14678         * support/Util/SDCCerr.c: Added func attr misuse error msg
14679
14680 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
14681
14682         Fixed bug #787649 by anonymous
14683         * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
14684         * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
14685
14686 2003-08-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14687
14688         Fixed numerous bitfield problems.
14689
14690         * src/SDCC.y: More bitfield related error checking
14691         * src/SDCCsymt.h,
14692         * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
14693         * support/Util/SDCCerr.h,
14694         * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
14695         * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
14696         * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
14697         * support/regression/tests/bitfields.c: tests added
14698
14699 2003-08-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14700
14701         Made the constant following the "interrupt" keyword optional. If
14702         omitted, the function will not automatically be given an entry
14703         in the interrupt vector table (similar to #pragma NOIV, but
14704         less syntacticly kludgy). The interrupt number is also now
14705         range checked. Also fixed a bug in the high order bit example
14706         in the manual.
14707
14708         * src/SDCC.y
14709         * src/SDCCmem.c
14710         * src/SDCCglue.c
14711         * src/SDCCsymt.h
14712         * support/Util/SDCCerr.c
14713         * support/Util/SDCCerr.h
14714         * doc/sdccman.lyx
14715
14716 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
14717
14718         * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
14719         * src/SDCCicode.c (operandOperation): rewritten some ops
14720         (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
14721         * src/SDCCsymt.c (computeType): literals are handled the same way as any
14722         other type
14723         * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
14724         be re-activated by defining REDUCE_LITERALS)
14725         * src/SDCCval.c (constVal): fixed; hex and octal constants can be
14726         unsigned, but are signed by default
14727         * src/SDCCval.c (constVal): rearranged
14728         * src/SDCCval.c (valMod): preliminary fix
14729         * src/SDCCval.c (valCastLiteral): use TYPE_* types
14730         * support/regression/literalop.c: added, work in progress
14731
14732 2003-08-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14733
14734         Generate warnings for useless declarations like "char data;"
14735         that don't do what new users expect.
14736
14737         * src/SDCC.y
14738         * support/Util/SDCCerr.h
14739         * support/Util/SDCCerr.c
14740
14741 2003-08-09  Bernhard Held <bernhard AT bernhardheld.de>
14742
14743         * src/SDCCval.c (valMult): fix overflow detection of negative int
14744
14745 2003-08-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14746
14747         * src/z80/ralloc.c (joinPushes): made compatible with new signedness
14748
14749         Changes to support big endian targets:
14750
14751         * src/ports.h
14752         * src/SDCCglue.c
14753         * src/avr/main.c
14754         * src/ds390/main.c
14755         * src/izt/i186.c
14756         * src/mcs51/main.c
14757         * src/pic/main.c
14758         * src/pic16/main.c
14759         * src/xa51/main.c
14760         * src/z80/main.c
14761
14762 2003-08-06  Bernhard Held <bernhard AT bernhardheld.de>
14763
14764         * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
14765         * device/lib/time.c: fixed warning "integer overflow in expression"
14766
14767 2003-08-05  Bernhard Held <bernhard AT bernhardheld.de>
14768
14769         * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
14770         * src/SDCCval.c (constVal): changed default to signed; hex and octal
14771         constants are unsigned; added recognition of "u" flag for unsigned
14772         * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
14773         * src/SDCCval.c (valDiv, valMod): fixed signdness
14774         * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
14775         signedness of modulo, left and right shift
14776         * support/Util/SDCCerr.c: added warning "integer overflow in expression"
14777         * support/Util/SDCCerr.h: added warning W_INT_OVL
14778         * src/SDCCast.c (decorateType): fixed gcc3.3 warning
14779         * src/SDCCast.c (ast_print): improved output of constants
14780
14781 2003-08-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14782
14783         Fixed some warnings when building with MSVC:
14784
14785         * as/mcs51/asdata.c
14786         * as/z80/asdata.c
14787         * as/mcs51/asm.h
14788         * as/z80/asm.h
14789         * link/z80/aslink.h
14790         * link/z80/lkdata.c
14791         * link/z80/lkeval.c
14792         * link/z80/lkgb.c
14793         * link/z80/lkihx.c
14794         * link/z80/lks19.c
14795         * link/z80/lksym.c
14796         * support/cpp2/cpplib.c
14797         * src/ds390/gen.c
14798         * src/mcs51/gen.c
14799
14800 2003-08-03  Bernhard Held <bernhard AT bernhardheld.de>
14801
14802         * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
14803
14804 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14805
14806         * support/librarian/clean.mk: Do not remove Makefile.
14807         * support/librarian/Makefile: added.
14808
14809 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14810
14811         Added librarian to MSVC build:
14812         * all.dsp
14813         * sdcc.dsw
14814         * support/librarian/librarian.dsp
14815
14816         'configure' not needed for librarian, removed:
14817         * support/librarian/configure
14818         * support/librarian/configure.in
14819         * support/librarian/config_in.h
14820         * support/librarian/Makefile.in
14821
14822         Hopefully these ones built the librarian and the rest of sdcc properly:
14823         * Makefile
14824         * Makefile.common.in
14825
14826         Messed up 'configure', so revert to previous version:
14827         * configure
14828         * configure.in
14829
14830 2003-07-31  Bernhard Held <bernhard AT bernhardheld.de>
14831
14832         * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
14833         there, while the mantissa of a double is "only" 53 bits wide.
14834
14835 2003-07-31  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14836
14837         Adding sdcclib to the build.  MSVC project coming soon.
14838         Files added/changed:
14839
14840         * support/librarian/clean.mk
14841         * support/librarian/configure
14842         * support/librarian/configure.in
14843         * support/librarian/config_in.h
14844         * support/librarian/Makefile.bcc
14845         * support/librarian/Makefile.in
14846         * support/librarian/sdcclib.c
14847         * Makefile.bcc
14848         * Makefile
14849         * Makefile.common.in
14850         * configure
14851         * configure.in
14852
14853 2003-07-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14854
14855         Linker now complaints if linked modules have conflicting options, for
14856         example, one compiled using --model-large and another one compiled with
14857         --model-small.  The following files were modified:
14858
14859         * as/mcs51/asdata.c
14860         * as/mcs51/aslink.h
14861         * as/mcs51/asm.h
14862         * as/mcs51/asmain.c
14863         * as/mcs51/asout.c
14864         * as/mcs51/i51pst.c
14865         * as/mcs51/lkdata.c
14866         * as/mcs51/lklibr.c
14867         * as/mcs51/lkmain.c
14868         * as/z80/asdata.c
14869         * as/z80/asm.h
14870         * as/z80/asmain.c
14871         * as/z80/asout.c
14872         * as/z80/z80pst.c
14873         * link/z80/aslink.h
14874         * link/z80/lkdata.c
14875         * link/z80/lklibr.c
14876         * link/z80/lkmain.c
14877         * src/SDCCglue.c
14878
14879 2003-07-28  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14880
14881         *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
14882         as/mcs51/lklibr.c: Generate a warning when a library is not found.
14883
14884 2003-07-28  Bernhard Held <bernhard AT bernhardheld.de>
14885
14886         * src/z80/mappings.i: fix _mul[us][int,long] entries
14887
14888 2003-07-26  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14889
14890         *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
14891
14892 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
14893
14894         * src/SDCCicode.c (operandOperation): really fixed problem with bitops
14895         * support/regression/tests/bitopcse.c: added
14896         fixed warning:
14897         * src/avr/gen.c:
14898         * src/pic/gen.c:
14899         * src/pic16/gen.c:
14900         * src/z80/gen.c:
14901         * src/xa51/gen.c:
14902
14903 2003-07-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14904
14905         added support for new library format to z80, gbz80 linkers:
14906         *link/z80/aslink.h
14907         *link/z80/lklex.c
14908         *link/z80/lklib.c
14909         *link/z80/lklist.c
14910
14911 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
14912
14913         * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
14914         after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
14915
14916 2003-07-23  Bernhard Held <bernhard AT bernhardheld.de>
14917
14918         added DUMMY_READ_VOLATILE:
14919         * src/SDCC.y:
14920         * src/avr/gen.c:
14921         * src/xa51/gen.c:
14922         * src/z80/gen.c:
14923         * src/pic/gen.c:
14924         * src/pic16/gen.c:
14925         * src/mcs51/gen.c:
14926         * src/ds390/gen.c:
14927         * src/SDCCcse.c (algebraicOpts): many improvements
14928         * src/SDCCcse.h: removed algebraicOpts()
14929         * src/SDCCicode.c (picDummyRead): added
14930
14931 2003-07-23  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14932
14933         * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
14934         "Insufficient space in data memory".
14935
14936 2003-07-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14937
14938         * src/mcs51/gen.c: fixed bug #771358
14939         * src/z80/gen.c: fixed bug #759087
14940
14941 2003-07-20  Bernhard Held <bernhard AT bernhardheld.de>
14942
14943         * src/pic16/glue.c: minor cleanup by Vangelis
14944
14945 2003-07-19  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14946
14947         * device/include/regc515c.h: fixed #758477
14948         * device/lib/_gptrget.c: saving some cycles in generic pointer get
14949         * device/lib/_gptrput.c: saved a few bytes
14950         * my tab spacing is 8, yours too?)
14951         * device/lib/_ser.c: process RX bytes earlier than TX bytes
14952         * device/lib/serial.c: process RX bytes earlier than TX bytes
14953         * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
14954
14955 2003-07-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14956
14957         * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
14958
14959 2003-07-17  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14960
14961         * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
14962
14963 2003-07-17  Bernhard Held <bernhard AT bernhardheld.de>
14964
14965         * device/lib/Makefile.in: bad fix, reverted to 1.43
14966
14967 2003-07-16  Bernhard Held <bernhard AT bernhardheld.de>
14968
14969         * device/lib/Makefile.in: added missing z80 object files
14970
14971 2003-07-14  Bernhard Held <bernhard AT bernhardheld.de>
14972
14973         * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
14974         pic16 progress by Vangelis:
14975         * src/SDCCglobl.h:
14976         * src/SDCCmain.c:
14977         * src/pic/Makefile:
14978         * src/pic:
14979         * pic/Makefile:
14980         * pic16/device.c:
14981         * pic16/device.h:
14982         * pic16/gen.c:
14983         * pic16/gen.h:
14984         * pic16/genarith.c:
14985         * pic16/glue.c:
14986         * pic16/main.c:
14987         * pic16/pcode.c:
14988         * pic16/pcode.h:
14989         * pic16/pcodepeep.c:
14990         * pic16/peeph.def:
14991
14992 2003-07-13  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14993
14994         * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
14995
14996 2003-07-12  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14997
14998         * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
14999         added gbz80 build to MSVC project.
15000         * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
15001         link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
15002         from 8051 stuff and setup so it links using a .lnk file.
15003
15004 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15005
15006         * support/librarian/sdcclib.c: sdcc librarian.
15007         * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
15008         with sdcclib.
15009
15010 2003-07-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15011
15012         * as/mcs51/lkmain.c: properly handle extensions in function afile.
15013
15014 2003-07-02  Borut Razem <borut.razem AT siol.net>
15015
15016         * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
15017         src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
15018         src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
15019         src/xa51/main.c, src/z80/main.c:
15020         virtualization of glue() function: each port has it's own glue function,
15021         which is accessed by do_glue function pointer in PORT.general structure
15022
15023 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
15024
15025         * DS800C400 fun, improved ROM interface and tinibios.
15026
15027 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
15028
15029         * More support for DS80C400. Now includes beginning of interface to ROM.
15030
15031 2003-06-25  Bernhard Held <bernhard AT bernhardheld.de>
15032
15033         * src/mcs51/gen.c (gencjneshort): fixed bug #760345
15034
15035 2003-06-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15036
15037         * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
15038
15039 2003-06-19  Borut Razem <borut.razem AT siol.net>
15040
15041         * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
15042
15043 2003-06-19  Borut Razem <borut.razem AT siol.net>
15044
15045         * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
15046         fixed Z80 port - crt0.o: cannot open.
15047
15048 2003-06-19  Bernhard Held <bernhard AT bernhardheld.de>
15049
15050         * support/Util/MySystem.c (merge_command): revert bad fix
15051
15052 2003-06-18  Borut Razem <borut.razem AT siol.net>
15053
15054         * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
15055
15056 2003-06-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15057
15058         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
15059         option --use-stdout sends errors to stdout instead of stderr.
15060
15061 2003-06-18  Bernhard Held <bernhard AT bernhardheld.de>
15062
15063         * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
15064
15065 2003-06-15  Borut Razem <borut.razem AT siol.net>
15066
15067         * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
15068         * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
15069         * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
15070         fixed width array of pointers replaced with sets;
15071         multiple include and lib paths ared transferred to preprocessor and linker
15072         * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
15073         * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
15074         fixed width array of pointers
15075         * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
15076         removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
15077         fixupPath(), getPathDifference()
15078         * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function  inExcludeList() by using sets instead
15079         fixed width array of pointers
15080
15081 2003-06-11  Bernhard Held <bernhard AT bernhardheld.de>
15082
15083         * src/pic16/ralloc.c: fix warnings
15084         * src/pic16/pcode.c: fix warning
15085
15086 2003-06-10  Scott Dattalo  <scott AT dattalo.com>
15087
15088          Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
15089         know all the details, but essentially this set of changes enable
15090         the pic16 port to generate movff instructions and generate assembler
15091         directives,
15092         * src/SDCCmain.c:
15093         * src/pic16/gen.c:
15094         * src/pic16/glue.c:
15095         * src/pic16/pcode.c:
15096         * src/pic16/device.c:
15097         * src/pic16/main.c:
15098         * src/pic16/pcode.h:
15099         * src/pic16/pcoderegs.c:
15100         * src/pic16/ralloc.c:
15101         * src/pic16/ralloc.h:
15102
15103 2003-06-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15104
15105         * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
15106         added option --vc, so sdcc errors and warnings are compatible with
15107         Microsoft Visual Studio.
15108
15109 2003-06-07  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15110
15111         * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
15112           device/lib/libfloat.lib: added atof function.
15113
15114 2003-06-04  Bernhard Held <bernhard AT bernhardheld.de>
15115
15116         * doc/sdccman.lyx: updated to Lyx 1.3
15117         * doc/cdbfileformat.lyx: updated to Lyx 1.3
15118         * doc/test_suite_spec.lyx: updated to Lyx 1.3
15119         * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
15120
15121 2003-06-03  Bernhard Held <bernhard AT bernhardheld.de>
15122
15123         * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
15124
15125 2003-06-02  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15126
15127         * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
15128           additions to the "related tools/documentation" section
15129
15130 2003-06-02  Bernhard Held <bernhard AT bernhardheld.de>
15131
15132         * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
15133
15134 2003-05-29  Bernhard Held <bernhard AT bernhardheld.de>
15135
15136         * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
15137         * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
15138
15139 2003-05-28  Bernhard Held <bernhard AT bernhardheld.de>
15140
15141         * doc/sdccman.lyx: fix double dash and other minor things
15142         * doc/Makefile: fix double dash
15143
15144 2003-05-28  Karl Bongers(patches from Martin Helmling)
15145         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
15146           condition and ignore commands.
15147
15148 2003-05-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15149
15150         * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
15151           is in parts still quite out of date, I did changes as far as I felt makes sense
15152           for a non-native english speaker.
15153           Please feel free to add to the manual or to correct my changes.
15154         * doc/Makefile: undid touching the date of intermediate tex files.
15155
15156 2003-05-26  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15157
15158         * doc/sdccman.lyx: Manual has an index now
15159
15160 2003-05-25  Bernhard Held <bernhard AT bernhardheld.de>
15161
15162         Finalize muluint/mulsint and mululong/mulslong merging:
15163         * device/lib/_mulint.c
15164         * device/lib/_mullong.c
15165         * device/lib/gbz80/mul.s
15166         * device/lib/gbz80/stubs.s
15167         * device/lib/z80/mul.s
15168         * device/lib/z80/stubs.s
15169         * src/SDCCsymt.c (initCSupport)
15170
15171 2003-05-25  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15172
15173         * as/mcs51/lkaomf51.c: Address space 'z' was missing.
15174         * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
15175           src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
15176           src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
15177           instead of /Zm500.
15178
15179 2003-05-25  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15180
15181         * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
15182           the regression tests I'm not brave enough to enable 245.b, 245.c
15183         * doc/sdccman.lyx: added latex preamble for hyperref package.
15184           Using pdflatex this will give you a hyperlinked pdf file with
15185           bookmarks. (prepend '%' before /usepackage if this breaks something)
15186
15187 2003-05-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15188
15189          * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
15190
15191 2003-05-22  Bernhard Held <bernhard AT bernhardheld.de>
15192
15193         * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
15194
15195 2003-05-21    <johan AT balder>
15196
15197         * src/SDCCglue.c (printIval): fixed bug #739934
15198
15199 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
15200
15201         Applied patch from bug 737905 (renamed yylineo to mylineno):
15202         * src/altlex.c
15203         * src/SDCCast.c
15204         * src/SDCglobl.h
15205         * src/SDCC.lex
15206         * src/SDCCsymt.c
15207         * src/SDCCval.c
15208         * src/pic16/pcode.c: Cleaned warnings
15209         * src/pic16/pcodeflow.c: Cleaned warnings
15210         * src/pic16/pcoderegs.c: Cleaned warnings
15211
15212 2003-05-19  Scott Dattalo  <scott AT dattalo.com>
15213
15214         * src/pic16/pcode.c: Cleaned warnings
15215         * src/pic16/pcodepeep.c: Cleaned warnings
15216         * src/pic16/ralloc.c: Cleaned warnings
15217
15218 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
15219
15220         * doc/sdccman.lyx: fixed bug 739745
15221         * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
15222
15223 2003-05-18  Bernhard Held <bernhard AT bernhardheld.de>
15224
15225         * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
15226         it can be defined with CFLAGS when running configure
15227         * src/SDCCmain.c: fixed compiling + linking with object files
15228
15229 2003-05-18  Vangelis Rokas (vrokas AT otenet.gr)
15230
15231         * configure.in: configure for pic16 port,
15232             added --disable-pic16-port
15233         * sdccconf_in.h: added macro OPT_DISABLE_PIC16
15234         * src/SDCCmain.c: linkOptions is changed to set *,
15235             added if/endif conditional macros to remove options help
15236             messages from optionsTable when a port is not configured, added
15237             support for the PIc16 port in the ports table, when executing
15238             the compiler with no port specified on command line, a default
15239             port is selected with the new macro DEFAULT_PORT which is
15240             defined in port.h, in setDefaultOptions() linkOptions is removed
15241             from initialization assignment, since now it is a set,
15242             parseCmdLine uses setParseWithComma for linkOptions, in
15243             linkEdit() linkOptions are accessed with new function indexSet()
15244             which returns the i'th item of a set variable. See SDCCset.c, in
15245             linkEdit() when calling buildCmdLine(), added linkOptions as
15246             last argument. Now users can pass arguments to gplink via the
15247             -Wl option, main() uses pic16glue() to glue up pic16 programs
15248         * src/SDCCpeeph.c: various changes to support pic16
15249         * src/SDCCset.c: added function  void *indexSet(set *, int)  to
15250             return the i'th item of the set
15251         * src/SDCCset.h: added function prototype for indexSet()
15252         * src/SDCCsymt.c: in checkSClass(), added support for PIC16
15253         * src/clean.mk: added pic16 in CLEANALLPORTS variable
15254         * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
15255             added macro DEFAULT_PORT
15256         * src/pic/main.c: corrected arguments of gplnk in _linkCmd
15257         * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
15258             generated
15259         * src/pic16/glue.c: commented out some error producing lines
15260         * src/pic16/main.c: __config directives are commented out to stop
15261             gpasm complaining and test the linkage with gplink, _linkCmd and
15262             _asmCmd changed to be more gplink and gpasm friendly
15263         * src/pic16/peeph.def: peep rule 3 is commented out, since it
15264             produced an error when parsed, peep rule 12 is added to utilize
15265             movff, but it is commented out since the pCode does not support
15266             yet a command with 2 address arguments
15267
15268 2003-05-18    <johan AT balder>
15269
15270         * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
15271         * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
15272 2003-05-17  Karl Bongers(apply patches from Martin Helmling)
15273
15274         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
15275         Added feature to script commands from file.
15276
15277 2003-05-14  Bernhard Held <bernhard AT bernhardheld.de>
15278
15279         * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
15280         * src/SDCCutil.c: include ctype.h for win32
15281
15282 2003-05-13  Bernhard Held <bernhard AT bernhardheld.de>
15283
15284         * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
15285
15286 2003-05-12  Karl Bongers(apply development patches from Martin Helmling)
15287
15288         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
15289         Fixed so you can set breakpoints prior to run, run does not stop
15290         on entry now.  Add tbreak.  Other enhancements and fixes for use
15291         with ddd.
15292
15293 2003-05-12  Borut Razem <borut.razem AT siol.net>
15294
15295         * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
15296
15297 2003-05-11  Borut Razem <borut.razem AT siol.net>
15298
15299         * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
15300         the path of bin directory, so that PATH is the only env. variable, which has to be set
15301         in case of standard installation.
15302         * src/ds390/ds390.dsp: increased value of /Zm option to 1000
15303         * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
15304         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
15305
15306 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
15307
15308         * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
15309         * support/regression/Makefile: inter-port-clean is no longer nesessary, the
15310         temp files are in the port dir; clean the gen/test directory when
15311         generating new test.c
15312         * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
15313         * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
15314         * support/regression/tests/zeropad.c: added
15315
15316 2003-05-09    <johan AT balder>
15317
15318         * src/SDCCglue.c: fixed bug #597940
15319
15320 2003-05-05  Karl Bongers(apply patches from Martin Helmling)
15321
15322         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
15323         cache sfr, optimize next,step, fix off by one sourceline,
15324         support ddd list function.
15325         * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
15326
15327 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
15328
15329         * support/regression/HTMLgen.py: added compare_s2f()
15330         * support/regression/Makefile: redo 1.27
15331         * support/regression/generate-cases.py: redo 1.5
15332
15333 2003-04-30  Bernhard Held <bernhard AT bernhardheld.de>
15334
15335         * support/regression/tests/float.c: workaround 33 bit hex constant
15336         * support/regression/tests/simplefloat.c: fix division for host
15337
15338 2003-04-29  Scott Dattalo  <scott AT dattalo.com>
15339
15340         * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
15341         that tame's the PIC's over-aggressive optimizer.
15342
15343 2003-04-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15344
15345          * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
15346          support for MSVC.
15347
15348 2003-04-29  Kevin Vigor <kevin AT vigor.nu>
15349
15350         Initial support for DS80C400. "Hello world" runs on TINIm400
15351         (with polled I/O).
15352
15353 2003-04-28  Karl Bongers(apply patches for Martin Helmling)
15354
15355          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
15356          * Some notes on ddd usage added in debugger/README
15357          Martin Helmling adding more features and fixes for ddd GUI debugger.
15358          Code added for nexti, stepi, up, down, and other adjustments.
15359
15360 2003-04-28  Scott Dattalo  <scott AT DATTALO.COM>
15361
15362         * src/pic/pCodepeep.c non-wildcard asmops are now handled
15363         * src/pic/peeph.def Added two rules to optimize carry manipulation
15364         * src/pic/* removed debug printfs
15365
15366 2003-04-28  Bernhard Held <bernhard AT bernhardheld.de>
15367
15368         * debugger/mcs51/cmd.c: added header newalloc.h
15369
15370 2003-04-26  Bernhard Held <bernhard AT bernhardheld.de>
15371
15372         * as/Makefile: new EXEEXT
15373         * as/z80/Makefile: remove trailing slash of BUILDIR
15374         * as/z80/clean.mk: new EXEEXT
15375         * Makefile.common.in: add to CFLAGS (and others), don't replace it
15376         * support/cpp2/Makefile.in: new EXEEXT
15377         * src/pic/glue.c (pic14emitRegularMap): fixed warning
15378
15379 2003-04-24  Bernhard Held <bernhard AT bernhardheld.de>
15380
15381         Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
15382         EXEEXT was introduced to fix all related problems with targets
15383         "clean", "install" and "uninstall"; a couple of further flaws
15384         especially with "clean" have been fixed too
15385         * as/mcs51/Makefile.in
15386         * as/mcs51/clean.mk
15387         * as/z80/Makefile
15388         * Makefile
15389         * clean.mk
15390         * debugger/mcs51/Makefile.in
15391         * debugger/mcs51/clean.mk
15392         * link/z80/Makefile
15393         * link/z80/Makefile.in
15394         * link/z80/clean.mk
15395         * link/Makefile
15396         * packihx/Makefile.in
15397         * packihx/clean.mk
15398         * sim/ucsim/Makefile
15399         * sim/ucsim/clean.mk
15400         * sim/ucsim/avr.src/Makefile.in
15401         * sim/ucsim/avr.src/clean.mk
15402         * sim/ucsim/s51.src/Makefile.in
15403         * sim/ucsim/s51.src/clean.mk
15404         * sim/ucsim/xa.src/Makefile.in
15405         * sim/ucsim/xa.src/clean.mk
15406         * sim/ucsim/z80.src/Makefile.in
15407         * sim/ucsim/z80.src/clean.mk
15408         * sim/ucsim/main_in.mk
15409         * sim/ucsim/packages_in.mk
15410         * sim/ucsim/gui.src/Makefile.in
15411         * sim/ucsim/gui.src/serio.src/Makefile.in
15412         * sim/ucsim/gui.src/serio.src/clean.mk
15413         * src/Makefile.in
15414         * src/clean.mk
15415         * support/cpp2/Makefile.in
15416         * support/cpp2/clean.mk
15417         * support/makebin/Makefile
15418         * support/makebin/clean.mk
15419         * support/scripts/sdcc_mingw32: --program-suffix no longer needed
15420         * doc/sdccman.lyx: --program-suffix no longer needed
15421
15422 2003-04-23  Karl Bongers(apply patches for Martin Helmling)
15423
15424          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
15425          Martin Helmling added support for ddd GUI debugger.
15426          Code added to display assembly, set variables, and other commands
15427          to interface to ddd.
15428
15429 2003-04-23  Bernhard Held <bernhard AT bernhardheld.de>
15430
15431         * as/Makefile: fix target clean
15432         * as/clean.mk: fix target clean
15433         * as/z80/clean.mk: fix target clean
15434
15435 2003-04-22  Bernhard Held <bernhard AT bernhardheld.de>
15436
15437         * Makefile.common.in: added  AT EXEEXT AT
15438         * configure.in: removed all mingw32 stuff
15439         * configure: rebuilt from configure.in
15440         * doc/sdccman.lyx: updated section "installation"
15441         * support/scripts/sdcc_mingw32: adapted to configure
15442         * support/scripts/sdcc_cygwin_mingw32: added
15443
15444 2003-04-22  Scott Dattalo  <scott AT dattalo.com>
15445
15446         * src/pic Added object file support for the PIC port
15447         * src/pic Applied patch from Craig Franklin (this started the object file support)
15448         * src/regression Updated the PIC regression tests for object files
15449
15450 2003-04-20  Borut Razem <borut.razem AT siol.net>
15451
15452         * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
15453           lklex.c: In function `getfid':
15454           lklex.c:203: warning: array subscript has type `char'
15455         * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
15456           with MSVC with global optimization enabled (probably an cl compiler bug ;-)
15457         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
15458           stack handling macros
15459
15460 2003-04-19  Borut Razem <borut.razem AT siol.net>
15461
15462         * "handling space characters in file path" task:
15463         * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
15464         * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
15465         * support/Util/MySystem.h: make it self-sufficient
15466         * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
15467           src/z80/main.c, sdcc/as/mcs51/lklex.c:
15468           handling space characters in file path
15469         * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
15470           (it will be used by assemblers, which have their own includes, e.g. gpasm)
15471         * support/Util/MySystem.c: handling space characters in executable's path
15472
15473 2003-04-19  Bernhard Held <bernhard AT bernhardheld.de>
15474
15475         * as/z80/Makefile: fix permanent rebuild of z80
15476         * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
15477         * support/regression/tests/bitfields.c: added Johan's bitfields.c
15478
15479 2003-04-18      Kevin Vigor <kevin AT vigor.nu>
15480
15481         * src/SDCCopt.c: add special case optimization to replace modulo by
15482           a power of two with a bitwise AND.
15483
15484 2003-04-18    <johan AT balder>
15485
15486         * src/mcs51/gen.c (getFreePtr): fixed bug #635354
15487
15488 2003-04-17    <johan AT balder>
15489
15490         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
15491         * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
15492
15493 2003-04-13  Borut Razem <borut.razem AT siol.net>
15494
15495         * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
15496         * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
15497           fixed mingw problem in adl_NORMALIZE_PATH
15498
15499 2003-04-12  Borut Razem <borut.razem AT siol.net>
15500
15501         * fixed "#pragma SAVE/RESTORE can not be nested":
15502         * src/SDCC.lex: reworked pragma handling functions
15503         * sdcc/src/SDCCglobl.h: reworked stack handling macros
15504         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
15505
15506 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
15507
15508         * src/SDCCutil.c (pathEquivalent): defined but not used
15509         * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
15510         * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
15511         * configure: rebuilt from configure.in
15512         * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
15513         * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
15514         * device/include/Makefile.in: replace sdcc_datadir
15515         * device/lib/Makefile.in: replace sdcc_datadir
15516         * Makefile.common.in: add LDFLAGS from configure
15517         * packihx/Makefile.in: use LDFLAGS
15518         * src/Makefile.in: use LDFLAGS
15519         * support/cpp2/Makefile.in: add LDFLAGS from configure
15520         * support/makebin/Makefile: use LDFLAGS
15521         * .version: bumped version number to 2.3.5
15522
15523 2003-04-12  Borut Razem <borut.razem AT siol.net>
15524
15525         * completed "different paths" task:
15526         * src/SDCCmacro.c: fixed bug in handling quotes
15527         * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
15528         * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
15529
15530 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
15531
15532         * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
15533
15534 2003-04-11 kevin Vigor <kevin AT vigor.nu>
15535
15536         * ds390/gen.c ds390/peeph.def: fix bug 706781
15537
15538 2003-04-11  Borut Razem <borut.razem AT siol.net>
15539
15540         * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
15541
15542 2003-04-10  Scott Dattalo  <scott AT dattalo.com>
15543
15544         * src/pic/* Applied the pointer-to-function patch from Steve Tell.
15545         * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
15546          set - this bit used to not be set...).
15547         * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
15548           bad code in PIC Port
15549         * src/regression/and2.c added to test bug 609268
15550         * src/regression/Makefile added and2.c to regression test
15551
15552
15553 2003-04-08    <johan AT CP255758-A>
15554
15555         * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
15556         * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
15557         * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
15558
15559 2003-04-07  Bernhard Held <bernhard AT bernhardheld.de>
15560
15561         * configure.in: fully support prefix, exec_prefix, datadir, docdir;
15562         fix bug #487815
15563         * support/cpp2/Makefile.in: fix bug #487815
15564         * configure: rebuilt from configure.in
15565         * Makefile.common.in: docdir changed, new path suffixes
15566         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
15567         * sdcc_vc_in.h: reflect changes from sdccconf.h
15568         * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
15569         * src/SDCCutil.h: remove BINDIR hack
15570         * doc/sdccman.lyx: update new path hierarchy
15571
15572 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
15573
15574         * src/SDCCpeeph.c: added okToRemoveSLOC test
15575
15576 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
15577
15578         * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
15579
15580 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
15581
15582         * src/SDCCpeeph.c: added labelIsReturnOnly test
15583         * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
15584
15585 2003-04-05    <johan AT balder>
15586
15587         * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
15588         * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
15589         * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
15590         * src/SDCCast.c: fixed a warning
15591         * src/SDCCast.h: fixed a warning
15592         * src/SDCCicode.c (operandFromAst): fixed a warning
15593
15594 2003-04-04    <johan AT balder>
15595
15596         * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
15597         * src/SDCCast.c (decorateType): fixed bug #715076
15598         * src/SDCC.y: fixed bug #702907
15599
15600 2003-04-03    <johan AT balder>
15601
15602         * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
15603         * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
15604         * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
15605         * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
15606         * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
15607
15608 2003-04-03  Bernhard Held <bernhard AT bernhardheld.de>
15609
15610         * _decdptr.c: fix return values
15611         * _gptrget.c: fix return values
15612         * _gptrgetc.c: fix return values
15613         * _gptrput.c: fix return values
15614         * _mulint.c: fix return values
15615         * as/z80/Makefile: fix 'make -j' problem
15616
15617 2003-04-02  Bernhard Held <bernhard AT bernhardheld.de>
15618
15619         * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
15620         * configure.in: big cleanup, updated to autoconf 2.5x
15621         * configure: rebuilt from configure.in
15622         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
15623         * sdcc_vc_in.h: reflect changes from sdccconf.h
15624         * doc/Makefile: fixed a flaw in "make install"
15625
15626 2003-04-02    <johan AT balder>
15627
15628         * src/ds390/gen.c (genCmp): no comments
15629         * src/mcs51/gen.c (genCmp): no comments
15630         * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
15631         * src/SDCCast.c (ast_print): fixed the function type in --dumptree
15632
15633 2003-04-01  Bernhard Held <bernhard AT bernhardheld.de>
15634
15635         * support/regression/generate-cases.py: place generated file in given sub directory
15636         * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
15637         * support/regression/Makefile: improvements for 'make -j';
15638         side effect: it's simpler and faster now
15639
15640 2003-03-31  Borut Razem <borut.razem AT siol.net>
15641
15642         * src/z80/main.c: link-{port} and as-{port} defined without path
15643         * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
15644
15645 2003-03-31  Bernhard Held <bernhard AT bernhardheld.de>
15646
15647         * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
15648
15649 2003-03-30  Borut Razem <borut.razem AT siol.net>
15650
15651         * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
15652           changed type of list parameter to set
15653         * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
15654         * src/port.h: changed type of do_assemble() parameter to set
15655         * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
15656           sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
15657           definition of "cppoutfilename" macro with NULL value in preProcess()
15658         * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
15659         * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
15660         * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
15661           replaced with set *binPathSet
15662         * shash_add() deallocates the item, if allready exsists, before adding the new one
15663         * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
15664
15665 2003-03-30  Scott Dattalo  <scott AT dattalo.com>
15666
15667         * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
15668           a nested for loop bug in the PIC port
15669         * src/regression/nestfor.c: new regression test file Steve wrote to test nested
15670           for loops
15671
15672 2003-03-29  Bernhard Held <bernhard AT bernhardheld.de>
15673
15674         * support/Util/dbuf.h: remove C++ stuff to make it portable
15675
15676 2003-03-28  Borut Razem <borut.razem AT siol.net>
15677
15678         * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
15679           literal strings in stringLiteral()
15680         * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
15681         * src/Makefile.bcc, src/Makefile.in, src/src.dsp: added support/Util/dbuf.c
15682           to the project
15683
15684 2003-03-27  Paul Stoffregen <paul AT pjrc.com>
15685
15686         * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
15687
15688 2003-03-26    <johan AT balder>
15689
15690         * src/mcs51/gen.c (saveRegisters): catched symbol abuse
15691         * src/ds390/gen.c (saveRegisters): catched symbol abuse
15692         * src/SDCCast.c (decorateType): fixed " -v < 3"
15693
15694 2003-03-23  Bernhard Held <bernhard AT bernhardheld.de>
15695
15696         * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
15697         Added Lenny Story's debug infrastructure changes:
15698         * src/Makefile.in:  added new files cdbFile.c and SDCCdebug.c
15699         * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
15700         * src/cdbFile.c: added
15701         * src/SDCCdebug.c: added
15702         * src/SDCCdebug.h: added
15703         * src/SDCCast.c (createFunction)
15704         * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
15705         * src/SDCCmain.c (parseCmdLine, main)
15706         * src/SDCCmem.c (redoStackOffsets)
15707         * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
15708         * src/SDCCsymt.h
15709         * src/common.h
15710         * src/avr/gen.c (genAVRCode)
15711         * src/ds390/gen.c (gen390Code)
15712         * src/mcs51/gen.c (gen51Code)
15713         * src/pic/gen.c (genpic14Code)
15714         * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
15715         * src/xa51/gen.c (genXA51Code)
15716         * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
15717
15718 2003-03-22  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15719
15720         * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
15721         * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
15722
15723 2003-03-22    <johan AT balder>
15724
15725         * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
15726
15727 2003-03-21  Bernhard Held <bernhard AT bernhardheld.de>
15728
15729         * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
15730         * doc/cdbfileformat.lyx: added, written by Lenny Story
15731         * doc/Makefile: added cdbfileformat.lyx
15732         * doc/clean.mk: added cdbfileformat.lyx
15733
15734 2003-03-20  Bernhard Held <bernhard AT bernhardheld.de>
15735
15736         * src/mcs51/peeph.def: fix bug #705773
15737
15738 2003-03-20    <johan AT balder>
15739
15740         An sfr/sbit can have an "at #" AND an initializer
15741         * src/SDCCsymt.c (checkSClass):
15742         * src/SDCCmem.c (allocGlobal):
15743         * src/SDCCmem.c (allocLocal):
15744         * src/SDCCast.c (createBlock):
15745
15746 2003-03-17  Bernhard Held <bernhard AT bernhardheld.de>
15747
15748         * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
15749
15750 2003-03-16    <johan AT balder>
15751
15752         Undid the hackup of const and volatile, the problem is much bigger
15753         * src/SDCC.y:1.65
15754         * src/SDCCast.c:1.171
15755         * src/SDCCglue.c:1.138
15756         * src/SDCCicode.c:1.146
15757         * src/SDCCsymt.c:1.150
15758         * src/SDCCval.c:1.65
15759
15760 2003-03-15  Bernhard Held <bernhard AT bernhardheld.de>
15761
15762         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
15763         * src/ds390/gen.c (genAddrOf): fixed bug #704087
15764
15765 2003-03-13    <johan AT balder>
15766
15767         Hackup const and volatile modifiers in type chains a bit:
15768         * src/SDCC.y:1.63
15769         * src/SDCCast.c:1.169
15770         * src/SDCCglue.c:1.136
15771         * src/SDCCicode.c:1.143
15772         * src/SDCCsymt.c1.146
15773         * src/SDCCsymt.h1.59
15774         * src/SDCCval.c:1.63
15775
15776 2003-03-12    <johan AT balder>
15777
15778         * src/SDCCBBlock.h: more LRH debugging junk
15779         * src/SDCCcflow.h: more LRH debugging junk
15780         * src/SDCCloop.c: more LRH debugging junk
15781         * src/SDCC.y (struct_declaration): fixed bug #697590
15782         * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
15783         * src/ds390/gen.c (aopForRemat): fixed bug #700031
15784         * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
15785
15786 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
15787         * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
15788         test function names must now match exactly).
15789         * src/SDCCcse.c: added special case in findCheaperOp to allow
15790         extending a short integer. Makes less awful code for bug 700121 test case.
15791
15792 2003-03-11  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15793
15794         * as/mcs51/lkmain.c: Added ASlink-Warning to messages
15795         * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
15796
15797 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
15798
15799         * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
15800         actually called (operandsNotEqual() was called for all
15801         operandsNotEqualX tests).
15802
15803 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
15804
15805         * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
15806         with shorter literals. Fixes bug 700121.
15807
15808 2003-03-11    <johan AT balder>
15809
15810         * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
15811
15812 2003-03-11  Bernhard Held <bernhard AT bernhardheld.de>
15813
15814         * src/SDCCloop.c (mergeRegions): an evil beast is dead
15815         * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
15816
15817 2003-03-10  Borut Razem <borut.razem AT siol.net>
15818
15819         * src/SDCCmain.c: pipe preprocessor's output
15820         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
15821         * sdcc_vc_in.h: define pclose as _pclose for WIN32
15822         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
15823         which closes all pipes in pipeSet set
15824         * src/SDCCset.c: free deleted item in function deleteSetItem()
15825         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
15826         moved from z80 to src subproject
15827         * .version: increased version number to 2.3.4
15828
15829 2003-03-10  Bernhard Held <bernhard AT bernhardheld.de>
15830
15831         * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
15832         * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
15833         * support/regression/ports/xa51/spec.mk: fix typo
15834
15835 2003-03-09  Bernhard Held <bernhard AT bernhardheld.de>
15836
15837         * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
15838
15839 2003-03-09  Borut Razem <borut.razem AT siol.net>
15840
15841         * src/SDCCmain.c: pipe preprocessor's output
15842         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
15843         * sdcc_vc_in.h: define pclose as _pclose for WIN32
15844         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
15845         which closes all pipes in pipeSet set
15846         * src/SDCCset.c: free deleted item in function deleteSetItem()
15847         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
15848         moved from z80 to src subproject
15849
15850 2003-03-09  Borut Razem <borut.razem AT siol.net>
15851
15852         * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
15853         * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
15854         * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
15855         * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
15856         * src/SDCCglobl.h: unification of WIN32 native definitions
15857
15858 2003-03-09  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15859
15860         * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
15861
15862 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
15863
15864         * src/configure.in:   check for endianess (even while cross-compiling)
15865         * src/configure:      check for endianess (even while cross-compiling)
15866         * src/configure_in.h: check for endianess (even while cross-compiling)
15867         * src/avr/gen.c:        remove old endianess stuff
15868         * src/mcs51/gen.c:      remove old endianess stuff
15869         * src/ds390/gen.c:      remove old endianess stuff
15870         * src/pic/gen.c:        remove old endianess stuff
15871         * src/pic/genarith.c:   remove old endianess stuff
15872         * src/pic/glue.c:       fix endianess check
15873         * src/pic16/gen.c:      remove old endianess stuff
15874         * src/pic16/genarith.c: remove old endianess stuff
15875         * src/pic16/glue.c:     fix endianess check
15876         * src/xa51/gen.c:       remove old endianess stuff
15877         * src/z80/gen.c:        fix endianess check
15878         * src/SDCCglue.c:       fix endianess check
15879         * src/ds390/peeph.def: fix bug 700036
15880
15881 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
15882
15883         * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
15884         * src/configure: find appropriate data-types on host for SDCC's int and long
15885         * src/configure.in: find appropriate data-types on host for SDCC's int and long
15886         * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
15887         * src/xa51/gen.c: use %d, not %ld for 4 byte variables
15888
15889 2003-03-07    <johan AT balder>
15890
15891         Just a big NOOP:
15892                 some minor cleanups before the big shot
15893                 OP_DEFS and OP_USES now use Kevin's protection
15894                 new option --nolabelopt
15895
15896         * src/SDCCBBlock.c:
15897         * src/SDCCast.c,:
15898         * src/SDCCcflow.c:
15899         * src/SDCCcse.c:
15900         * src/SDCCicode.c:
15901         * src/SDCCicode.h:
15902         * src/SDCClabel.c:
15903         * src/SDCCloop.c:
15904         * src/SDCCmain.c:
15905         * src/ds390/ralloc.c:
15906         * src/mcs51/ralloc.c:
15907         * src/pic/ralloc.c:
15908         * src/xa51/ralloc.c:
15909         * src/z80/ralloc.c:
15910
15911 2003-03-06  Bernhard Held <bernhard AT bernhardheld.de>
15912
15913         * src/pic/pcode.c (get_op): fix 64 bit warnings
15914         * src/pic/pcode.c (pCode2str): fix 64 bit warnings
15915         * src/SDCChasht.c (newHashTable): fix 64 bit warnings
15916         * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
15917         * support/regression/tests/malloc.c: fix 64 bit warnings
15918
15919 2003-03-04  Bernhard Held <bernhard AT bernhardheld.de>
15920
15921         * src/mcs51/gen.c (genMinus): fixed bug 696436
15922
15923 2003-03-02  Borut Razem <borut.razem AT siol.net>
15924
15925         * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
15926
15927 2003-02-26  Bernhard Held <bernhard AT bernhardheld.de>
15928
15929         * configure.in: test for mkstemp
15930         * sdccconf_in.h: add HAVE_MKSTEMP
15931
15932 2003-02-24  Bernhard Held <bernhard AT bernhardheld.de>
15933
15934         * device/include/ctype.h: removed warning while using --stack-auto
15935         * device/include/malloc.h: removed warning while using --stack-auto
15936         * device/include/string.h: removed warning while using --stack-auto
15937
15938 2003-02-23  Borut Razem <borut.razem AT siol.net>
15939
15940         * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
15941         because NDEBUG is defined (see man assert)
15942         * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
15943
15944 2003-02-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15945
15946         * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
15947         * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
15948
15949 2003-02-18  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15950
15951         * src/SDCCpeeph.c: added peephole conditions testing for same arguments
15952         * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
15953
15954 2003-02-18    <johan AT balder>
15955
15956         * as/mcs51/asmain.c (asmbl): module can start with a digit
15957         * as/z80/asmain.c (asmbl): module can start with a digit
15958
15959 2003-02-16  Bernhard Held <bernhard AT bernhardheld.de>
15960
15961         * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
15962         * src/asm.c: fix pipe() for Mingw32
15963
15964 2003-02-15  Bernhard Held <bernhard AT bernhardheld.de>
15965
15966         * src/SDCCglue.h: make tmpfileNameSet available for preOutName
15967         * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
15968         make -V work again; --c1mode reads now from stdin
15969         * doc/sdccman.lyx: added --c1mode
15970         * support/Util/SDCCerr.c: new messages for c1 mode
15971         * support/Util/SDCCerr.h: new messages for c1 mode
15972         * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
15973
15974 2003-02-15    <johan AT balder>
15975
15976         * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
15977
15978 2003-02-14  Bernhard Held <bernhard AT bernhardheld.de>
15979
15980         * doc/sdccman.lyx: Environment variables, -o and other minor things
15981
15982 2003-02-14    <johan AT balder>
15983
15984         * src/xa51/main.c: before anyone really tries to use it :)
15985
15986         * Install doc's in share/sdcc/doc
15987         * removed some obsolete files
15988         * Do a proper make distclean and uninstall
15989         M Makefile.common.in
15990         R sdccbuild.sh
15991         M as/Makefile
15992         M device/include/Makefile.in
15993         M device/lib/Makefile.in
15994         M doc/sdccman.lyx
15995         M link/Makefile
15996         M sim/ucsim/doc/Makefile.in
15997         M src/clean.mk
15998         R src/avr/peeph.rul
15999         R src/xa51/peeph.rul
16000         M support/cpp2/Makefile.in
16001         M support/makebin/Makefile
16002
16003
16004 2003-02-13  Bernhard Held <bernhard AT bernhardheld.de>
16005
16006         * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
16007
16008 2003-02-10  Borut Razem <borut.razem AT siol.net>
16009
16010         * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
16011         support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
16012         * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
16013         device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
16014         support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
16015         src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
16016         src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
16017         src/z80/Makefile.bcc: Borland Makefile cleanup
16018         * as/z80/Makefile.bcc: Added Borland Makefile
16019         * support/cpp2/borland.h: Removed
16020
16021 2003-02-10  Bernhard Held <bernhard AT bernhardheld.de>
16022
16023         * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
16024         * src/SDCC.lex: new pragma NOIV
16025         * src/SDCCglobl.h: new pragma NOIV
16026         * src/SDCCmem.c: new pragma NOIV
16027
16028 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
16029
16030         * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
16031
16032 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
16033
16034         * src/SDCCmain.c: signal handling is switched off by --debug
16035         * doc/Makefile: small fix for install; use clean.mk again
16036         * doc/clean.mk: clean *.pdf and *.html too
16037
16038 2003-02-08  Bernhard Held <bernhard AT bernhardheld.de>
16039
16040         * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
16041         * device/lib/printfl.c: fix a ds390 bug by making it portable
16042         * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
16043         * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
16044         * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
16045         * debugger/mcs51/cmd.c: converted multi-line string literals
16046         * sim/ucsim/globals.cc: converted multi-line string literals
16047         * src/SDCCmain.c: introduced signal handler to remove temp files
16048         * doc/Makefile: small tweaks, implement clean
16049         * doc: removed generated files
16050
16051 2003-02-05  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16052
16053         * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
16054         patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
16055         Address Record is not correctly generated for DS390."
16056
16057 2003-02-02  Borut Razem <borut.razem AT siol.net>
16058
16059         * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
16060         * as/mcs51/asm.h: fixed compilation with Borland C
16061         * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
16062         * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
16063         * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
16064         * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
16065         src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
16066         src/z80/Makefile.bcc: delete $(LIB) only if exist
16067         * src/Makefile.bcc, src/pic/Makefile.bcc:  fixed compilation with Borland C
16068
16069 2003-02-02  Bernhard Held <bernhard AT bernhardheld.de>
16070
16071         * device/include/malloc.h: introduced NULL
16072         * device/include/string.h: introduced NULL
16073         * device/include/stdlib.h: introduced NULL
16074         * device/lib/_memcpy.c: removed NULL
16075         * device/lib/_strcat.c: removed NULL
16076         * device/lib/_strchr.c: removed NULL
16077         * device/lib/_strcmp.c: removed NULL
16078         * device/lib/_strcpy.c: removed NULL
16079         * device/lib/_strcspn.c: removed NULL
16080         * device/lib/_strlen.c: removed NULL
16081         * device/lib/_strncat.c: removed NULL
16082         * device/lib/_strncmp.c: removed NULL
16083         * device/lib/_strncpy.c: removed NULL
16084         * device/lib/_strpbrk.c: removed NULL
16085         * device/lib/_strrchr.c: removed NULL
16086         * device/lib/_strspn.c: removed NULL
16087         * device/lib/_strstr.c: removed NULL
16088         * device/lib/_strtok.c: removed NULL
16089         * device/lib/malloc.c: removed NULL, include own header
16090
16091 2003-02-02    <johan AT balder>
16092
16093         * 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
16094         * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
16095         * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
16096         * src/z80/gen.c (genZ80Code): added c-lines in asm comments
16097         * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
16098         * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
16099
16100 2003-02-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16101
16102         * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
16103         area 'DATA'"
16104
16105 2003-02-01    <johan AT balder>
16106
16107         * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
16108
16109 2003-01-31    <johan AT CP255758-A>
16110
16111         * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
16112
16113 2003-01-30    <johan AT balder>
16114
16115         * src/SDCCBBlock.c: automatic bug detection
16116         * src/SDCCicode.c: automatic bug detection
16117
16118 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16119
16120         * src/SDCCglobl.h:   now --xram-size 0 works
16121         * src/SDCCmain.c:    now --xram-size 0 works
16122
16123 2003-01-29    <johan AT balder>
16124
16125         * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
16126
16127 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16128
16129         * as/mcs51/aslink.h: Added options --xram-size and --code-size
16130         * as/mcs51/lkdata.c: Added options --xram-size and --code-size
16131         * as/mcs51/lkmain.c: Added options --xram-size and --code-size
16132         * as/mcs51/lkmem.c:  Added options --xram-size and --code-size
16133         * src/SDCCglobl.h:   Added options --xram-size and --code-size
16134         * src/SDCCmain.c:    Added options --xram-size and --code-size
16135
16136 2003-01-28  Bernhard Held <bernhard AT bernhardheld.de>
16137
16138         * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
16139         * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
16140
16141 2003-01-27    <johan AT balder>
16142
16143         * src/SDCC.y: fixed bug #613764
16144
16145 2003-01-26    <johan AT balder>
16146
16147         * src/SDCClrange.c:  fixed Bernhard's "char * code ptr = &c"
16148         * src/SDCCsymt.h: fixed bug #673374
16149         * src/SDCCglue.c: fixed bug #661910
16150         * src/SDCCast.c: fixed bug #458099 and 673374
16151
16152 2003-01-26  Bernhard Held <bernhard AT bernhardheld.de>
16153
16154         * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
16155         * as/mcs51/strcmpi.h: added
16156         * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
16157         * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
16158         * as/mcs51/asmain.c: strcmpi -> as_strcmpi
16159         * as/mcs51/assym.c: strcmpi -> as_strcmpi
16160         * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
16161         * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
16162         * as/mcs51/lksym.c: strcmpi -> as_strcmpi
16163         * as/mcs51/Makefile.aslink: new module strcmpi
16164         * as/mcs51/Makefile.asx8051: new module strcmpi
16165         * as/mcs51/Makefil.bcc: new module strcmpi
16166         * as/mcs51/Makefile.in: new module strcmpi
16167         * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
16168
16169 2003-01-26    <johan AT balder>
16170
16171         * src/SDCCglue.c: reverted back to 1.124
16172         * src/SDCCast.c: reverted back to 1.156
16173         * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
16174
16175 2003-01-25    <johan AT balder>
16176
16177         * src/SDCCglue.c: A better fix for bug #661910
16178         * src/SDCCast.c: A better fix for bug #661910
16179         * src/SDCCglue.c (emitRegularMap): That was a little too efficient
16180
16181 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
16182
16183         * src/Makefile.in: remove spawn.o
16184         * src/SDCCmain.c: remove spawn.h
16185         * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
16186         * src/spawn.c: removed
16187         * src/spawn.h: removed
16188         * support/regression/ports/ds390/spec.mk: link with -r
16189
16190 2003-01-24    <johan AT CP255758-A>
16191
16192         * src/ds390/gen.c (aopOp): fixed bug #667458
16193         * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
16194         * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
16195         (createIvalCharPtr): an ival doesn't always have a storage class anymore
16196
16197 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
16198
16199         * src/mcs51/peeph.def: better assembler identation by Frieder
16200         * src/mcs51/gen.c: better assembler identation by Frieder
16201
16202 2003-01-22  Bernhard Held <bernhard AT bernhardheld.de>
16203
16204         * as/z80/string.h: removed for gcc 3.2
16205         * support/makebin/makebin.c: #include <string.h> for gcc 3.2
16206         * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
16207
16208 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
16209
16210         * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
16211         * src/SDCCpeeph.c (replaceRule): fix bug #663503
16212         * support/regression/Makefile: separate temp files for ports
16213         * support/regression/generate-cases.py: separate temp files for ports
16214         * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
16215         * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
16216
16217 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
16218
16219         * moved tinitalk to device/examples/ds390
16220
16221 2003-01-14  Bernhard Held <bernhard AT bernhardheld.de>
16222
16223         * as/mcs51/lkmem.c: rflag is for DS390
16224         * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
16225         * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
16226                          (linkEdit): move mem- and map-files the same way as ihx-files
16227         * src/z80/main.c (_setDefaultOptions): removed --generic
16228         * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
16229         * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
16230         * src/pic/glue.c (picglue): --c1mode works again
16231         * src/pic16/glue.c (pic16glue): --c1mode works again
16232         * src/asm.c (printCLine): fix #660034
16233
16234 2003-01-13  Bernhard Held <bernhard AT bernhardheld.de>
16235
16236         * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
16237         * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
16238         * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
16239         * as/mcs51/lkmem (summary): better fix for sp problem
16240         * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
16241         * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
16242         * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
16243                                               remove --stack-after-data
16244
16245 2003-01-12  Bernhard Held <bernhard AT bernhardheld.de>
16246
16247         * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
16248         * src/SDCCutil.c (join): ugly bug: missing '\0'
16249         * as/mcs51/lkmem.c (summary): sp on address 7 is safe
16250
16251 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
16252
16253         * src/SDCCmain.c (assemble, linkEdit): preparations for -o
16254         * src/port.h: typo
16255         * src/pic/main.c (_asmCmd): gpasm supports -o
16256         * src/z80/main.c: more general macros
16257         * device/lib/Makefile.in: remove intermediate files
16258
16259 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
16260
16261         * .version: Bumped version number to 2.3.3
16262         * src/SDCCBBlock.c: new option -o
16263         * src/SDCCglobl.h: new option -o
16264         * src/SDCCglue.c: new option -o
16265         * src/SDCCmain.c: new option -o
16266         * src/asm.c: new option -o
16267         * src/ds390/main.c: new option -o
16268         * src/pic/glue.c: new option -o
16269         * src/pic/pcode.c: new option -o
16270         * src/pic/ralloc.c: new option -o
16271         * src/pic16/glue.c: new option -o
16272         * src/pic16/pcode.c: new option -o
16273         * src/pic16/ralloc.c: new option -o
16274         * src/z80/main.c: new option -o
16275         * device/lib/Makefile.in: use -o
16276         * support/regression/ports/ds390/spec.mk: use -o
16277         * support/regression/ports/gbz80/spec.mk: use -o
16278         * support/regression/ports/mcs51/spec.mk: use -o
16279         * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
16280         * support/regression/ports/z80/spec.mk: use -o
16281         * support/regression/ports/ucz80/spec.mk: use -o
16282         * support/regression/ports/xa51/spec.mk: use -o
16283         * support/regression/fwk/lib/timeout.c: fix usage string
16284
16285 2003-01-09  Bernhard Held <bernhard AT bernhardheld.de>
16286         * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
16287
16288 2003-01-07    <johan AT balder>
16289
16290         * src/SDCCast.c (decorateType): fixed bug #600035
16291
16292 2003-01-07  Bernhard Held <bernhard AT bernhardheld.de>
16293         * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
16294         * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
16295         * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
16296         * src/pic/pcode.c: outcommented unused variable to remove warnings
16297         * src/pic/ralloc.c: outcommented unused variable to remove warnings
16298
16299 2003-01-06    <karl AT turbobit.com>
16300         * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
16301         regression tests.
16302
16303 2003-01-06    <johan AT balder>
16304
16305         * src/SDCCicode.c: fixed array add
16306
16307 2002-01-05  Bernhard Held <bernhard AT bernhardheld.de>
16308         * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
16309         * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
16310
16311 2003-01-04    <johan AT balder>
16312
16313         * src/SDCCval.c (getNelements): fixed the initialized array of structures
16314
16315 2002-12-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16316         * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
16317
16318 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
16319         * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
16320         * support/regression/tests/bug-524697.c: fit mem usage into 8032
16321
16322 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
16323         * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
16324
16325 2002-12-27  Bernhard Held <bernhard AT bernhardheld.de>
16326         * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
16327
16328 2002-12-26  Bernhard Held <bernhard AT bernhardheld.de>
16329         * src/mcs51/main.c: removed {bindir}{sep} from aslink
16330
16331 2002-12-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16332
16333         * in /sdcc/as/mcs51/ changed these files in order to create an
16334         aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
16335         lkmain.c.  Also added: lkmem.c and lkaomf51.c.  Changed the
16336         following files to include the previous two files: aslink.dsp,
16337         Makefile.aslink, Makefile.bcc, and Makefile.in.
16338
16339         * Changed /sdcc/src/SDCCmain.c so it creates files with extension
16340         .adb instead of .cdb
16341
16342 2002-11-09  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16343
16344         * /sdcc/as/mcs51/lklist.c: Now reports memory usage using the
16345         value from option --iram-size.
16346
16347 2002-09-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16348
16349         * /sdcc/as/mcs51/lklist.c: added boundary check before using
16350         dram[] array.
16351
16352 2002-09-18    <wiml AT hhhh.org>
16353
16354         * SDCClrange.h: exposed setFromRange() and setToRange()
16355         * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
16356           packRegsForAccUse() (bug 542397)
16357         * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
16358           multiple times and emitting the fetch operations more than once
16359           added aopGetUsesAcc() function to allow binary operators to
16360           fetch their operands in the correct order; made genMinus() emit
16361           compact code for X = LITERAL - Y
16362
16363 2002-09-00  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16364         * /sdcc/as/mcs51/lklist.c: Fixed incorrect number of parameters to
16365         sprintf() in line 1267.
16366
16367 2002-09-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16368         * /sdcc/src/SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
16369         like ports.
16370
16371 2002-09-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16372         Changes to aslink (All the changes are marked with 'JCF'):
16373
16374         * /sdcc/as/mcs51/aslink.h: External definition of sflag and
16375         summary().
16376
16377         * /sdcc/as/mcs51/lkarea.c: Computes the size of area BSEG_BYTES from
16378         area BSEG.  Also moves, if possible, the DATA area down into the internal
16379         ram so more space is available.
16380
16381         * /sdcc/as/mcs51/lkdata.c: Definition of memory summary output flag
16382         sflag.
16383
16384         * /sdcc/as/mcs51/lklist.c: For the BSEG area report the size in bits,
16385         not bytes.  Function summary() which creates a memory usage summary
16386         file with extension .mem.  Reports of overlaping stack and small stack
16387         size.  If the space for the stack is less than 16 bytes aslink trows a
16388         warning.
16389
16390         * /sdcc/as/mcs51/lkmain.c: Creation of some of the default areas for
16391         the 8051.  Option 'y' for memory summary output file.
16392
16393         Changes to sdcc (All the changes are marked with 'JCF'):
16394
16395         * /sdcc/src/SDCCglobl.h: External definition of RegBankUsed[4].
16396
16397         * /sdcc/src/SDCCglue.c:  If a register bank is used, creates an
16398         overlaying area for it (uses RegBankUsed[4]).
16399
16400         * /sdcc/src/SDCCmain.c: Definition RegBankUsed[4]; marks register
16401         bank zero as used by default.  By default aslink locates the stack
16402         (equivalent to --stack-after-data).  Pass option 'y' to aslink for
16403         the creation of the .mem file.  Delegates the allocation of data area
16404         to aslink (it is not longer 0x30 by default).  If --stack-loc passes
16405         the begining of the stack area to aslink.
16406
16407         * /sdcc/src/SDCCmem.c:  If a register bank is used, marks it so
16408         glue() in SDCCglue.c creates an area for it.
16409
16410 2002-09-03  Borut Razem <borut.razem AT siol.net>
16411         * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
16412         sdcc/src/pic/glue.c:
16413         introduced atexit() handler for teporay files removal in case of
16414         errors, assertions, ...
16415
16416 2002-08-29  Borut Razem <borut.razem AT siol.net>
16417         * sdcc/support/cpp2/auto-host_vc_in.h:
16418         re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
16419         with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
16420         Maybe there is a similar problem with BORLANDC? It should be checked!
16421
16422         * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
16423         corrected improper use of assert: the assignment to clr variable was done inside the assert.
16424         In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
16425         was not executed, and the compiler (cl) launched a warning:
16426         ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
16427
16428 2002-08-28  Bernhard Held <bernhard AT bernhardheld.de>
16429         * src/SDCCglue.c (printIvalArray): iterative calculation of array length
16430
16431 2002-08-28  Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
16432         * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
16433
16434         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
16435           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
16436           sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
16437           sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
16438           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
16439           sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
16440           sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
16441         - added Release configuration in VS projects
16442         - review of compiler an linker options
16443         - VC .exe files are generated in bin_vc directory, not to interfere
16444           with binaries generated from other projects (cygwin, mingw, bcc ...)
16445
16446         * sdcc/src/yacc.dsp: added
16447
16448         * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
16449         added - genarate sdcc_vc.h using sdcc_vc_in.h as template
16450         and insert the version number definitions from .version
16451
16452         * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
16453
16454         * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
16455         added - genarate auto-host.h using auto-host_vc_in.h as template
16456
16457         * sdcc/sdcc_vc.h,
16458         removed from CVS, generated automatically
16459
16460 2002-08-25  Bernhard Held <bernhard AT bernhardheld.de>
16461         * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
16462
16463 2002-08-11  Borut Razem <borut.razem AT siol.net>
16464         * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
16465
16466 2002-08-10  Borut Razem <borut.razem AT siol.net>
16467         * src/SDCCmain.c (main):
16468         file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
16469         platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
16470         The consequence was that some temporary files were not removed.
16471
16472         * src/SDCCglue.c:
16473         unification of code in functions tempfilename() and tempfile():
16474         function tempnam() is defined in Visual Studio 6.0 and .NET
16475
16476         * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
16477
16478         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
16479           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
16480         - removed compiler command line option /WX: Treats all warnings as errors
16481         - update a list of source files, included into the project
16482
16483         * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
16484           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
16485         changed project type to Generic Project so that can be correcly converted to VS.NET project
16486
16487         * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
16488
16489         * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
16490
16491         * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
16492
16493         * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
16494         added return 0 statements after assert() to make compiler happy
16495
16496         * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
16497         added newline in the def file to keep MSC compiler satisfied
16498
16499         * sdcc/src/z80/gen.c:
16500         - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
16501           so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
16502         - solved MSC error in function aopDump()
16503
16504         * sdcc_vc.h: define PREFIX as "\\sdcc"
16505
16506 2002-07-18  Bernhard Held <bernhard AT bernhardheld.de>
16507         * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
16508
16509 2002-06-22  Scott Dattalo <scott AT dattalo.com>
16510         * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
16511         - Rewrote the register banking algorithm.
16512         - Added pCode live-range analysis to registers (for now, only non-used and
16513         singly-used registers optimized away)
16514
16515         * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
16516
16517         * 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.
16518
16519 2002-05-10  Scott Dattalo <scott AT dattalo.com>
16520         * src/pic/*: Added support for multiplication. Fixed many,many bugs.
16521
16522 2002-04-22  Michael Hope  <michaelh AT vroom>
16523
16524         * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
16525
16526         * configure.in (DD_COPT): Added include support required for gbdk.
16527
16528         * .version: Bumped version number just to increase it.
16529
16530         * src/SDCCmain.c: Added -nostdinc to the default options.
16531
16532 2002-04-15  Michael Hope  <michaelh AT vroom>
16533
16534         * device/lib/z80/printf.c (sprintf): Added.
16535
16536         * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
16537
16538         * src/z80/peeph.def: Added transpose redundent load rule.
16539
16540         * src/z80/main.c: Added force callee saves for jaune.
16541
16542         * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
16543
16544         * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
16545
16546 2002-03-28  Johan Knol  <johan AT balder>
16547
16548         * src/SDCCval.c: fixed bug #532436
16549
16550 2002-03-14  Scott Dattalo <scott AT dattalo.com>
16551         * /src/port.h:
16552         Added "char *Processor" field to the port structure.
16553
16554         * /src/SDCCmain.c:
16555         Added -p option. Allows port dependent processor to be specified.
16556
16557         * all ports:
16558         Initialized the new field char *Processor field to NULL in all ports
16559
16560         * /src/pic/*:
16561         Compiler generated registers for interrupt context saving
16562         were not getting allocated.
16563
16564 2002-03-16  Sandeep Dutta  <sandeep AT ddi.com>
16565
16566         * /src/SDCCast.c:
16567         Fixed left shift. Will promote the left side of a left shift
16568         if a) left shifting more than size of operand or b) when assigned
16569         to something size > size of left side
16570
16571 2002-03-14  Scott Dattalo <scott AT dattalo.com>
16572         * src/pic/*
16573         tons of changes. Register allocation has been
16574         rewritten. Added customization for the various PICs. Flow
16575         analysis is restructured. ...
16576
16577         * src/pic/device.h:
16578         Added
16579
16580         * src/pic/device.c:
16581         Added. device.c is a PIC port hack to accomodate variations
16582         in PIC devices.
16583
16584 2002-03-13  Michael Hope  <michaelh AT vroom>
16585
16586         * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled.  Yeah.
16587
16588 2002-03-04  johanknol  <johanknol AT manik>
16589
16590         * /src/SDCCval.c: fixed
16591
16592         const unsigned char arr[][2] = { { 0, 1 } };
16593         t18.c:1: error: Initializer element is not constant
16594
16595 2002-03-04  bela  <bela AT manik>
16596
16597         * /device/include/mcs51reg.h:
16598         ds89c420 register definition update
16599
16600 2002-03-03    <johan AT FRIJA>
16601
16602         * support/Util/SDCCerr.c: did something, but don't no why anymore
16603
16604         * support/regression/tests/bug-524691.c: made it a little less shy
16605
16606         * src/SDCCast.c (decorateType): fixed bug #524697
16607
16608         * src/SDCCast.c: made some lineno improvements
16609
16610         * src/SDCCval.c (getNelements): changed warning to error
16611
16612         * src/SDCCglue.c (printIvalArray): changed warning to error
16613
16614         * src/SDCCicode.c: fixed a warning for mingw
16615
16616         * src/SDCCast.c (decorateType): fixed the << promotion for ops
16617
16618         * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
16619
16620 2002-03-02  Sandeep Dutta  <sandeep AT ddi.com>
16621
16622         * src/ds390/peeph.def:
16623         Added some more peephole rules
16624
16625         * src/ds390/gen.c: Various fixes & enhancements
16626
16627         * src/SDCClrange.c, src/SDCClrange.h:
16628         functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
16629
16630         * src/ds390/ralloc.c:
16631         various fixes & enhancements (ds390) specific
16632
16633         * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
16634         Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
16635         from rallocs.
16636
16637         * sdcc/src/SDCCcse.c: Better fix for bug # 514308
16638
16639 2002-03-02    <johan AT FRIJA>
16640
16641         * src/SDCCast.c (decorateType): fixed bug #524708
16642
16643         * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
16644
16645         * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
16646
16647 2002-03-01  Michael Hope  <michaelh AT vroom>
16648
16649         * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
16650
16651         * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
16652
16653 2002-03-01    <johan AT FRIJA>
16654
16655         * src/SDCCglue.c (printIvalPtr): fixed bug #524211
16656
16657         * src/SDCCast.c (decorateType): fixed bug #524209
16658
16659         * src/SDCCval.c (valNot): fixed bug #524195
16660
16661 2002-02-26    <johan AT balder>
16662
16663         * src/xa51/gen.c: fixed a warning
16664
16665         * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
16666
16667         * src/SDCCast.c (decorateType): fixed bug #522534
16668
16669 2002-02-23    <johan AT balder>
16670
16671         * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
16672
16673 2002-02-22    <johan AT balder>
16674
16675         * src/SDCCast.c: fixed bug #514865
16676
16677         * src/SDCCy.c ("SDCC.y"): fixed bug #516625
16678
16679 2002-02-21  Sandeep Dutta  <sandeep AT ddi.com>
16680
16681         * sdcc/src/SDCCloop.c:
16682         Previous fix was not good. basic blocks that have "break" or "return" are
16683         not really partof a loop , but live ranges used in these blocks should
16684         be live thru the entire loop, so set partOfLoop but don't add them to
16685         loop region
16686
16687 2002-02-21    <johan AT FRIJA>
16688
16689         * src/SDCCcse.c: fixed bug #514308
16690
16691 2002-02-20  Sandeep Dutta  <sandeep AT ddi.com>
16692
16693         * src/SDCCloop.c:
16694         Fixed BUG #519583. If a conditional block ended in a return/break
16695         statement inside a loop, it was not being considered part of the loop.
16696
16697         * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
16698
16699 2002-02-10  Karl Bongers <karl AT turbobit.com>
16700
16701         * debugger/*:
16702         Fixed up SDCDB debugger somewhat.  Updated debugger/README
16703         with lots of comments and notes.
16704
16705         * device/examples/test2.c:
16706         Fix bug, "red" variable not being initialized(compiler complained).
16707
16708         * device/examples/Makefile, examples/test3.c:
16709         Add Makefile in device/examples folder, compiles test3.c
16710         for use as a multiple module SDCDB test case.
16711
16712         * sim/ucsim/cmd.src/cmdset.cc:
16713         Took out debug printfs in ucsim "next" command.
16714
16715         * sim/ucsim/xa.src:
16716         Karl and Johan start ucsim XA support.  Most dissassembly working,
16717         about 75% emulation done(plenty of work remaining).
16718
16719         * sim/ucsim/z80.src:
16720         Add Z80 support to ucsim, add test-ucz80 regression test,
16721         notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
16722         Notice z80 compiler fails on examples/test3.c/crc code.
16723
16724 2002-01-30  Sandeep Dutta  <sandeep AT ddi.com>
16725
16726         * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
16727         Added support for --parms-in-bank1
16728
16729         * src/ds390/peeph.def:
16730         added a few more peephole optimzations
16731
16732         * src/ds390/main.c:
16733         1) added __builtin_inp & __builtin_outp used to read in data of given length
16734            from a memory mapped port
16735         2) added __builtin_memcmp
16736         3) added __builtin_swapw swap bytes of a short
16737
16738         * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
16739         1) handle multiple send & receives from register bank1
16740         2) ralloc can now allocate DPTR1 to some liveRanges
16741
16742         * src/SDCCsymt.c, src/SDCCsymt.h:
16743         changes to handle multiple sends & receives
16744
16745         * src/SDCCptropt.h:
16746         added some pointer arithmetic optimization
16747
16748         * src/SDCCptropt.c:
16749         added some pointer arithmetic optimizations but not stable yet so not
16750         called from anywhere (will get this working shortly)
16751
16752         * src/SDCCopt.c: fixed for multiple sends & receives
16753
16754         * src/SDCCmain.c:
16755         1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
16756         2) preprocessing done AFTER port->finalizeoptions . This allows ports to
16757            set preprocessor defines (depending on options)
16758
16759         * src/SDCCicode.c, src/SDCCicode.h:
16760         changes made to handle multiple sends & receives
16761
16762         * src/SDCCglobl.h:
16763         Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
16764
16765         * src/SDCCcse.c, src/SDCCcse.h:
16766         added function findbackward def (to be used in upcoming optimization)
16767
16768         * src/SDCCcflow.c, src/SDCCcflow.h:
16769         added function returnAtEnd - to determine if a basic block terminates with
16770         a RETURN iCode
16771
16772         * src/SDCCast.c, src/SDCCast.h:
16773         added option parms-in-bank1
16774
16775         * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
16776         * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
16777         * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
16778         adjusted for --parms-in-bank1 option
16779
16780         * device/include/string.h:
16781         donot redefine "reentrant" keyword
16782
16783         * device/include/ds80c390.h: Added some more SFRs
16784
16785 2002-01-28  Bernhard Held  <bernhard AT bernhardheld.de>
16786
16787         * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
16788
16789 2002-01-26  Bernhard Held  <bernhard AT bernhardheld.de>
16790
16791         * src/SDCCast.c (funcOfType): fix usage of double --float-reent
16792
16793 2002-01-22  Bernhard Held  <bernhard AT bernhardheld.de>
16794
16795         * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
16796
16797 2002-01-18  Paul Stoffregen  <paul AT pjrc.com>
16798
16799         * Added --xram-movc option
16800
16801 2002-01-13  Bernhard Held  <bernhard AT bernhardheld.de>
16802
16803         * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
16804
16805 2002-01-11  Johan Knol
16806
16807         * Added math lib of Jesus Calvino-Fraga
16808
16809 2002-01-08  Bernhard Held  <bernhard AT bernhardheld.de>
16810
16811         * src/SDCCmain.c (processFile): fix processing of ../../src.c
16812         * support/regression/Makefile: new target test-mcs51-stack-auto
16813         * support/regression/ports/mcs51-stack-auto/spec.mk: added
16814
16815 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
16816
16817         * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
16818
16819 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
16820
16821         * support/regression/ports/mcs51/support.c: correct setup of timer / UART
16822
16823 2002-01-03  Bernhard Held  <bernhard AT bernhardheld.de>
16824
16825         * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
16826
16827         * src/SDCCglue.h: add definition for printIvalChar()
16828
16829 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
16830
16831         * src/SDCCast.c: fix #498138 by Johan
16832
16833         * src/SDCCglue.c: fix #498138 by Johan
16834
16835 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
16836
16837         * support/regression/Makefile: fix clean
16838
16839         * support/regression/ports/ds390/support.c: fix transmission of last character
16840
16841 2001-12-29  Sandeep Dutta  <sandeep AT ddi.com>
16842
16843         * /sdcc/src/ds390/gen.c:
16844         a) improved computing address of stack variable
16845         b) took out some #if 0 code
16846         c) improved parmBytes adjustment
16847         d) improved genPlusIncr & genMinusIncr
16848         e) genCmp could generate bad code (when left assigned to DPTR)
16849         f) Fixed bug in hasInc
16850
16851         * /sdcc/src/ds390/ralloc.c:
16852         a) packRegsForSupport could mess up live information (Fixed)
16853         b) packRegsDPTRuse could be incorrect for left & right shift
16854
16855         * /sdcc/src/mcs51/ralloc.c:
16856         packRegsForSupport could mess up the live information (Fixed)
16857
16858         * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
16859
16860         * /sdcc/src/SDCCast.c:
16861         can reverse a loop even if function call is present as long
16862         as the loop control variable is local & is not passed as parameter
16863
16864 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
16865
16866         * /sdcc/ChangeLog: *** empty log message ***
16867
16868         * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
16869         More builtin function additions for TININative
16870
16871         * /sdcc/src/ds390/ralloc.c:
16872         Had broken the regression testsuite
16873
16874         * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
16875
16876         * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
16877         Added funcattr hasStackParms will be set for reentrant functions when there
16878         are paramteres on the stack, this helps in minimizing frame pointer generation
16879         typeFromStr can handle function pointers now
16880
16881         * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
16882         *** empty log message ***
16883
16884 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
16885
16886         * /src/ds390/gen.c, /src/ds390/main.c:
16887         More builtin function additions for TININative
16888
16889         * /src/ds390/ralloc.c:
16890         Had broken the regression testsuite
16891
16892         * /src/SDCCast.c: Fixed a bug in dumptree
16893
16894         * /src/SDCCsymt.c, /src/SDCCsymt.h:
16895         Added funcattr hasStackParms will be set for reentrant functions when there
16896         are paramteres on the stack, this helps in minimizing frame pointer generation
16897         typeFromStr can handle function pointers now
16898
16899         * /doc/builtins.txt, /doc/TININative.txt:
16900         *** empty log message ***
16901
16902
16903 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
16904
16905         * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
16906         ALPHA version for -mTININative
16907
16908         * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
16909         updated to reflect changes in the port structure
16910
16911         * /src/port.h:
16912         added function do_assemble (similar to do_link) if non-null this function
16913         will be called to do assembly (-mTININative) requires a multi command
16914         assembly
16915         added function genAssemblerEnd will be called to generate assembler Epilogue
16916
16917         * /src/SDCCsymt.c:
16918         added _JavaNative to debug info printing
16919
16920         * /src/SDCCmain.c: added option --tini-libid
16921         added port->do_assemble function (-mTININative) has a multi command assemble
16922
16923         * /src/SDCCglue.c: Disabled "constExpr" check
16924         added port->genAssemblerEnd function
16925
16926         * /src/SDCCglobl.h: Added option --tini-libid value
16927
16928         * /src/SDCCast.h:
16929         tookout optimizeCompare from the header (has no external references)
16930
16931         * /src/SDCCast.c: made one more function "static"
16932
16933 2001-12-23  Michael Hope  <michaelh AT juju.net.nz>
16934
16935         * src/z80/mappings.i: Added z80asm support.
16936
16937         * src/z80/main.c: Added z80asm support on --asm=z80asm
16938
16939         * src/z80/gen.c: Fixed asm portability issues.
16940
16941         * src/asm.c (tvsprintf): Removed old code, added 'N' for function name.  For extern support.
16942
16943         * src/SDCCglue.c (printExterns): Added global/extern split.
16944
16945 2001-12-17  Bernhard Held  <bernhard AT bernhardheld.de>
16946
16947         * support/regression/Makefile: added test for mcs51 model large
16948
16949         * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
16950
16951         * support/regression/ports/gbz80/spec.mk: added -mgbz80
16952
16953 2001-12-05  Michael Hope  <michaelh AT juju.net.nz>
16954
16955         * src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.
16956
16957 1904-01-06  Michael Hope  <michaelh AT juju.net.nz>
16958
16959         * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
16960
16961         * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
16962
16963 2001-12-02  Bernhard Held  <bernhard AT bernhardheld.de>
16964
16965         * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
16966
16967         * support/regression/tests/simplefloat.c: Port to mcs51.
16968
16969 2001-11-25  Michael Hope  <michaelh AT juju.net.nz>
16970         * support/regression/tests/bug-485362.c: Added.
16971
16972         * support/regression/tests/simplefloat.c (testDivNearOne): Added.
16973
16974         * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
16975
16976         * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
16977
16978         * src/z80/gen.c (aopDump): Added a dump function.
16979
16980 2001-11-25  Bernhard Held  <bernhard AT bernhardheld.de>
16981         * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
16982
16983         * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
16984
16985         * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
16986
16987         * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
16988
16989         * sim/ucsim/s51.src/uc390cl.h: Work in progress.
16990
16991         * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
16992
16993         * support/regression/fwk/lib/testfwk.c: Run with tinibios.
16994
16995         * support/regression/ports/mcs51/spec.mk: Fine tuninig.
16996
16997         * support/regression/ports/ds390/support.c: Use tinibios.
16998
16999         * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
17000
17001 2001-11-23  Michael Hope  <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
17002
17003         * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
17004         (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
17005
17006         * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
17007
17008         * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
17009
17010 2001-11-18  Michael Hope  <michaelh AT juju.net.nz>
17011
17012         * src/z80/gen.c (genCmp): Fixed compare on unsigned.
17013
17014         * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
17015         (packRegsForIYUse): Created and optimised.
17016
17017 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
17018
17019         * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
17020 2001-11-18  Bernhard Held  <bernhard AT bernhardheld.de>
17021
17022         * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
17023
17024         * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
17025
17026         * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
17027
17028 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
17029
17030         * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
17031
17032         * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
17033
17034 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
17035
17036         * sdcc/sim/ucsim/globals.cc: New: IXRAM.
17037
17038         * sdcc/sim/ucsim/stypes.h: New: IXRAM.
17039
17040         * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
17041
17042 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
17043
17044         * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
17045         (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
17046         (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
17047
17048         * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
17049
17050         * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
17051         (genNotFloat): Added.
17052         (genUminusFloat): Added.
17053
17054         * device/lib/z80/Makefile: Added floating pt stubs.
17055
17056         * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
17057
17058         * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
17059
17060         * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
17061
17062 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
17063
17064         * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
17065
17066         * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
17067
17068         * sdcc/support/regression/Makefile: Add port ds390.
17069
17070         * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
17071
17072         * sdcc/support/regression/ports/z80/spec.mk: Minor change.
17073
17074         * sdcc/support/regression/ports/ds390/spec.mk: Added.
17075
17076         * sdcc/support/regression/ports/ds390/support.c: Added.
17077
17078         * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
17079
17080         * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
17081
17082         * sdcc/support/regression/fwk/lib/timeout.c: Paste.
17083
17084 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
17085
17086         * device/include/malloc.h: Added z80 and gbz80 support.
17087
17088         * device/lib/gbz80/heap.s: Added.
17089
17090         * device/lib/z80/heap.s: Added.
17091
17092         * device/lib/malloc.c: Added z80 and gbz80 support.
17093
17094         * support/regression/tests/malloc.c (testMalloc): Added.
17095
17096         * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
17097
17098         * support/regression/tests/bug-478094.c: Added.
17099
17100         * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
17101
17102 2001-11-04  Bernhard Held  <bernhard AT bernhardheld.de>
17103
17104         * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
17105
17106         * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
17107
17108         * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
17109
17110         * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
17111
17112         * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
17113
17114 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
17115
17116         * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
17117
17118 2001-11-03  Michael Hope  <michaelh AT juju.net.nz>
17119
17120         * support/regression/tests/bug-477927.c: Added.
17121
17122         * src/z80/peeph.def: Added minor rules.
17123
17124         * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
17125
17126         * src/z80/peeph.def: Added jump optimisation modification.
17127
17128 2001-11-01  Michael Hope  <michaelh AT juju.net.nz>
17129
17130         * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
17131
17132 2001-10-30  Michael Hope  <michaelh AT juju.net.nz>
17133
17134         * support/regression/tests/funptrs.c: Added.
17135
17136 2001-10-29  Michael Hope  <michaelh AT juju.net.nz>
17137
17138         * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
17139
17140 2001-10-28  Michael Hope  <michaelh AT juju.net.nz>
17141
17142         * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
17143
17144         * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
17145
17146         * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
17147         (movLeft2ResultLong): Created.
17148
17149         * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
17150         (joinPushes): Added.  Joins two char pushes into a word push.
17151
17152 2001-10-27  Michael Hope  <michaelh AT juju.net.nz>
17153
17154         * support/cpp2/Makefile.in (install): Added creation of dest dir.
17155
17156         * support/makebin/Makefile (install): Added creation of dest dir.
17157
17158 2001-10-24 Karl Bongers <karl AT turbobit.com>
17159
17160         * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
17161
17162 2001-10-21  Michael Hope  <michaelh AT juju.net.nz>
17163
17164         * src/z80/ralloc.c: Turned off faulty pack for one use.
17165
17166         * src/z80/peeph-gbz80.def: Removed redundent restart options.
17167
17168         * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
17169
17170 2001-10-21  Bernhard Held  <bernhard AT bernhardheld.de>
17171
17172         * support/regression/Makefile: Improved clean
17173
17174         * support/regression/ports/gbz80/spec.mk: Added clean
17175
17176         * support/regression/ports/host/spec.mk: Added clean
17177
17178         * support/regression/ports/z80/spec.mk: Added clean
17179
17180         * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
17181
17182         * support/regression/ports/mcs51/timeout.c: little improvements
17183
17184 2001-10-17  Michael Hope  <michaelh AT juju.net.nz>
17185
17186         * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
17187
17188         * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
17189
17190         * support/regression/generate-cases.py: Fixed up to use function pts correctly.
17191
17192 2001-10-16  Bernhard Held  <bernhard AT bernhardheld.de>
17193
17194         * support/regression/port/mcs51/spec.mk: add timeout for uCsim
17195
17196         * support/regression/port/mcs51/timeout.c: add timeout for uCsim
17197
17198 2001-10-13  Michael Hope  <michaelh AT juju.net.nz>
17199         * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
17200
17201         * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
17202
17203         * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
17204
17205         * src/mcs51/main.c (_linkCmd): Added bin path to command.
17206
17207         * src/SDCCmain.c (initValues): Added support for when it it called just to link.
17208
17209         * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
17210
17211         * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
17212
17213         * support/regression/tests/longor.c: Added.
17214
17215 2001-10-11  Bernhard Held  <bernhard AT bernhardheld.de>
17216
17217         * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
17218
17219         * as/mcs51/aslink.h: define PATH_MAX
17220
17221         * as/mcs51/asm.h: define PATH_MAX
17222
17223         * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
17224
17225         * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
17226
17227         * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
17228
17229         * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
17230
17231         * src/SDCCglobl.h: define PATH_MAX
17232
17233         * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
17234
17235         * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
17236
17237 2001-10-11  Michael Hope  <michaelh AT juju.net.nz>
17238
17239         * src/z80/gen.c (gencjneshort): Fixed
17240
17241         * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
17242
17243 2001-10-09  Michael Hope  <michaelh AT juju.net.nz>
17244
17245         * support/regression/tests/bug-469671.c: Added.
17246
17247         * src/z80/gen.c (shiftIntoPair): Fixed up warning.
17248
17249 2001-10-08  Michael Hope  <michaelh AT juju.net.nz>
17250
17251         * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
17252
17253         * src/z80/gen.c (genPlus): Fixed to work with extended stack.  Also fixed genMinus, genCmp.  genUMinus is still left.
17254
17255 2001-10-08  Bernhar Held  <bernhard AT bernhardheld.de>
17256
17257         * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
17258
17259         * src/device/lib/_mulint.c  : removed hint: nooverlay bug
17260
17261         * src/device/lib/_mullong.c : removed hint: nooverlay bug
17262
17263         * src/device/lib/_divuint.c : removed hint: nooverlay bug
17264
17265         * src/device/lib/_divulong.c: removed hint: nooverlay bug
17266
17267         * src/device/lib/_moduint.c : removed hint: nooverlay bug
17268
17269         * src/device/lib/_modulong.c: removed hint: nooverlay bug
17270
17271 2001-10-07  Michael Hope  <michaelh AT juju.net.nz>
17272
17273         * 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.
17274
17275         * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.
17276
17277         * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
17278
17279 2001-10-07    <johan AT FRIJA>
17280
17281         * device/lib/gets.c (gets): fixed the return value.
17282
17283 2001-10-06  Michael Hope  <michaelh AT juju.net.nz>
17284         * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
17285
17286         * 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.
17287
17288         * 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.
17289
17290         * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
17291
17292         * src/pic/gen.c: Removed Safe_strdup.
17293
17294         * configure.in: Added option to enable libgc support.
17295
17296         * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
17297         (bitVectUnion): Optimised.
17298         (bitVectIntersect): Optimised.
17299         (bitVectBitsInCommon): Optimised.
17300         (bitVectCplAnd): Optimised.
17301
17302         * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.
17303
17304 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
17305
17306         * src/SDCCmain.c: distinguish between assembler debug and plain options
17307
17308         * src/avr/main.c:   remove standard assembler options
17309
17310         * src/ds390/main.c: remove standard assembler options
17311
17312         * src/mcs51/main.c: remove standard assembler options
17313
17314         * src/port.h: removed "PENDING" comment
17315
17316 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
17317
17318         * src/device/lib/_mulint.c  : new, with assember functions
17319
17320         * src/device/lib/_mullong.c : new, with assember functions
17321
17322         * src/device/lib/_divuint.c : with assember functions
17323
17324         * src/device/lib/_divsint.c : with assember functions
17325
17326         * src/device/lib/_divulong.c: with assember functions
17327
17328         * src/device/lib/_divslong.c: with assember functions
17329
17330         * src/device/lib/_moduint.c : with assember functions
17331
17332         * src/device/lib/_modsint.c : with assember functions
17333
17334         * src/device/lib/_modulong.c: with assember functions
17335
17336         * src/device/lib/_modslong.c: with assember functions
17337
17338         * src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c
17339
17340         * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
17341
17342         * src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
17343                                       replaced _mululong.c and _mulslong.c by _mullong.c
17344
17345 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
17346
17347         * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
17348
17349 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
17350
17351         * src/SDCCglue.c: test, if win32api is available for MINGW
17352
17353 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
17354
17355         * src/SDCCsymt.c: no more _modifier in printTypeChain()
17356         * support/regression/tests/driverstruct.c: REENTRANT for mcs51
17357         * support/regression/ports/gbz80/spec.mk: removed GENERIC
17358         * support/regression/ports/host/spec.mk: removed GENERIC
17359         * support/regression/ports/mcs51/spec.mk: removed GENERIC
17360         * support/regression/ports/z80/spec.mk: removed GENERIC
17361
17362 2001-10-01  Michael Hope  <michaelh AT juju.net.nz>
17363
17364         * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
17365
17366         * support/regression/tests/bug-467035.c: Created.
17367
17368 2001-10-01    <johan AT FRIJA>
17369
17370         * src/SDCC.y: fixed bug #466586 part 1
17371
17372 2001-10-01  Johan Knol <johan.knol AT iduna.nl>
17373
17374         * SDCCicode.c: z80 has no generic pointers
17375         * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
17376
17377 2001-09-30  Michael Hope  <michaelh AT juju.net.nz>
17378
17379         * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
17380
17381 2001-09-29  Michael Hope  <michaelh AT juju.net.nz>
17382
17383         * Makefile (sdcc-libs): Added makebin to the list of standard targets.
17384
17385         * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
17386
17387 2001-09-25  Michael Hope  <michaelh AT juju.net.nz>
17388
17389         * configure.in: Fixed up so that ucsim is only configured once.
17390
17391         * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
17392
17393         * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
17394         (getPathDifference): As above.
17395
17396         * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.
17397
17398         * src/SDCCglue.c (tempfilename): Added function for pre-processor.
17399
17400 2001-09-23  Michael Hope  <michaelh AT juju.net.nz>
17401         * .version: Updated to 2.3.1
17402
17403         * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
17404         Added copyright header.
17405
17406         * src/SDCCmain.c: Shifted various functions into SDCCutil.c
17407         (assemble): Added support for macro based assembler commands.
17408         (linkEdit): Added support for macro based linker commands.
17409         (preProcess): Changed the pre-processor to use macros.
17410         (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
17411         (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
17412
17413         * device/lib/z80/crt0.s: Added module name for debugging.
17414
17415 2001-09-20  Michael Hope  <michaelh AT juju.net.nz>
17416
17417         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
17418
17419         * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
17420
17421         * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
17422
17423         * src/Makefile.in: Added SDCCmacro and SDCCutil
17424
17425 2001-09-19  Michael Hope  <michaelh AT juju.net.nz>
17426
17427         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
17428
17429 2001-09-16    <johan AT FRIJA>
17430
17431         * 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.
17432
17433 2001-09-15    <johan AT FRIJA>
17434
17435         * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
17436         * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
17437
17438 2001-09-11    <johan AT FRIJA>
17439
17440         * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
17441
17442 2001-09-10  Michael Hope  <michaelh AT juju.net.nz>
17443
17444         * support/regression/tests/bug-460444.c: Added test case.
17445
17446         * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
17447         (genCast): Added justification for all of the asserts.
17448
17449 2001-09-10  Bernhard Held <bernhard AT bernhardheld.de>
17450
17451         * support/regression/support.c: _xdata replaced by xdata
17452
17453         * support/regression/spec.mk: removed _generic
17454
17455 2001-09-09  Michael Hope  <michaelh AT juju.net.nz>
17456
17457         * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
17458
17459         * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
17460         (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
17461
17462         * src/z80/peeph.def: Added a rule to optimise shift then compare.
17463
17464         * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
17465
17466         * support/regression/tests/bug-460010.c: Added test case.
17467
17468         * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
17469
17470 2001-09-09  Bernhard Held <bernhard AT bernhardheld.de>
17471
17472         * support/regression/Makefile: inter-port-clean adjusted for mcs51
17473
17474         * support/regression/testfwk.c: removed workaround for bug #436344
17475
17476         * support/regression/tests/bp.c: use less memory with mcs51
17477
17478         * support/regression/tests/bug-441448.c: use less memory
17479
17480         * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
17481
17482         * support/regression/collate-results.py: typo
17483
17484 2001-09-08  Michael Hope  <michaelh AT juju.net.nz>
17485
17486         * support/regression/tests/fetchoverlap.c: Added new test case.
17487
17488         * support/regression/tests/bp.c: Added new test case.
17489
17490         * support/regression/tests/bug-448984.c: Added new test case.
17491
17492         * support/regression/tests/pow2shifts.c: Added new test case.
17493
17494         * src/z80/gen.c: Turned off the noise it normally generates for the release.
17495         (genlshTwo): Fixed right shift for count > 8.
17496
17497         * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
17498
17499 2001-09-08    <johan AT FRIJA>
17500
17501         * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
17502
17503 2001-09-07    <johan AT FRIJA>
17504
17505         * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
17506
17507         * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
17508
17509 2001-09-06    <johan AT FRIJA>
17510
17511         * src/SDCC.y: this could be a fix for bug #458744 (1.37)
17512         * bernhard noted me at this: "() equals to (void)" (1.38)
17513
17514 2001-09-05    <johan AT FRIJA>
17515
17516         * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
17517
17518 2001-09-04    <johan AT FRIJA>
17519
17520         * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
17521
17522
17523 2001-09-04  Paul Stoffregen  <paul AT pjrc.com>
17524
17525         * pragma noinduction broke memcpy on mcs51 large model.  Moved it inside z80 optimization
17526
17527 2001-09-03  Michael Hope  <michaelh AT juju.net.nz>
17528
17529         * link/z80/aslink.h: Fixed path for PATH_MAX
17530
17531 2001-09-02  Michael Hope  <michaelh AT juju.net.nz>
17532
17533         * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
17534
17535         * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
17536
17537         * support/regression/tests/uminus.c: Added a test for the unary minus operator.
17538
17539         * 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.
17540
17541 2001-09-01  Michael Hope  <michaelh AT juju.net.nz>
17542
17543         * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
17544         (genCmp): Fixed up genCmp for the GB with longs.
17545
17546         * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
17547
17548         * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
17549
17550         * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
17551
17552         * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
17553
17554 2001-08-30  Paul Stoffregen  <paul AT pjrc.com>
17555
17556         * added peepholes 223 to 231 to mcs51 port.  These improve code when using large model.
17557
17558 2001-08-30  Michael Hope  <michaelh AT juju.net.nz>
17559
17560         * 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.
17561
17562         * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
17563
17564 2001-08-29  Michael Hope  <michaelh AT juju.net.nz>
17565
17566         * link/z80/aslink.h: Fixed long file name support.  Is now based off PATH_MAX instead of a constant.
17567
17568         * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
17569
17570 2001-08-30 Bernhard Held   <bernhard AT bernhardheld.de>
17571
17572         * sim/ucsim/configure:    little improvement of Cygwin-detection
17573         * sim/ucsim/configure.in: little improvement of Cygwin-detection
17574         * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
17575         * support/regression/tests/bug-221100.c: small changes for mcs51
17576         * support/regression/tests/bug-221168.c: small changes for mcs51
17577         * support/regression/tests/bug-227710.c: small changes for mcs51
17578         * support/regression/tests/staticinit.c: small changes for mcs51
17579         * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
17580         * as/mcs51/lklex.c:  accept everything as symbol name in rel-files, bug fix ID 452601
17581         * as/mcs51/lksym.c:  accept everything as symbol name in rel-files, bug fix ID 452601
17582
17583 $Revision$