2a561471fe58c8e97a765eb9d43d8368dc96645f
[fw/sdcc] / ChangeLog
1 2009-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2
3         * src/SDCCglue.c,
4           support/regression/tests/bug2655200.c:
5           applied modified patch from Robert Larice <larice AT vidisys.de>
6           fixing original report of bug #2655200: pointer to pdata memory
7           not correctly initialized
8
9 2009-03-11 Borut Razem <borut.razem AT siol.net>
10
11         * as/asranlib/asranlib.c: retain the original file mode
12
13 2009-03-10 Borut Razem <borut.razem AT siol.net>
14
15         * src/mcs51/gen.c, src/z80/gen.c, src/hc08/gen.c, src/ds390/gen.c,
16           support/regression/tests/bug1875933.c:
17           fixed bug #1875933: Evelyn jumps into the void
18           thanks to Robert Larice
19
20 2009-03-10 Raphael Neider <rneider AT web.de>
21
22         * src/pic16/pcode.c (LinkFlow): fix invalid cast from pCodeLabel
23           to pCodeInstruction to avoid a segmentation fault
24
25 2009-03-03 Borut Razem <borut.razem AT siol.net>
26
27         * device/lib/printf_large.c: fixed bug #2656821: bug in printf
28
29 2009-03-03 Raphael Neider <rneider AT web.de>
30
31         * device/lib/pic/libdev/Makefile.in: build device-specific
32           libraries for the correct processor, fixes #2654585
33
34 2009-03-01 Raphael Neider <rneider AT web.de>
35
36         * device/lib/Makefile.in: fixed parallel builds (i.e., make -jN, N>1)
37
38 2009-03-01 Borut Razem <borut.razem AT siol.net>
39
40         * src/z80/peep.c: fixed bug #2648964: --i-code-in-asm crashes sdcc
41         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
42           changed sdcc version to 2.9.0
43
44 2009-03-01 Maarten Brock <sourceforge.brock AT dse.nl>
45
46         * src/mcs51/ralloc.c (spillThis, spilSomething): fixed bug 2435941
47           (serialRegAssign): do not spil bit registers
48           throughout cosmetic changes
49         * support/regression/tests/bug2435941.c: new, added
50
51 2009-02-28 Raphael Neider <rneider AT web.de>
52
53         * src/regression/compare10.c,
54           src/regression/compare7.c,
55           src/regression/compare8.c,
56           src/regression/compare9.c: reset watchdog timer in time
57         * src/regression/configword.c: apply patch from #2488150
58         * src/pic/glue.c (pic14createInterruptVect): pin RESET vector
59           handler to 0x0000 as the linker no longer knows STARTUP sections
60         * src/pic/pcode.c (register_reassign, ReuseReg): applied modified
61           patch #2512926 to (mostly) fix #1762626, cosmetic changes
62         * src/pic/pcodepeep.c: remove reference to nonexisting function
63
64 2009-02-28 Raphael Neider <rneider AT web.de>
65
66         * device/include/pic16/signal.h: avoid multiline inline
67           assembler statements in macros, addresses #2644965
68
69 2009-02-27 Raphael Neider <rneider AT web.de>
70
71         * device/include/pic16/pic18f[24][3456]k20.h,
72           device/include/pic16/pic18f[68][567]j50.h,
73           device/include/pic16/pic18f[68]6j55.h,
74           device/lib/pic16/libdev/pic18f[24][3456]k20.c,
75           device/lib/pic16/libdev/pic18f[68][567]j50.c,
76           device/lib/pic16/libdev/pic18f[68]6j55.c,
77           device/include/pic16/pic18fregs.h,
78           device/include/pic16/pic16devices.txt,
79           device/lib/pic16/pics.all,
80           device/lib/pic16/libdev/Makefile.am,
81           device/lib/pic16/libio/Makefile.am: added/re-enabled many device
82           families (87j50 family contributed by Robert Wuest)
83
84         * device/include/pic16/adc.h,
85           device/lib/pic16/libio/adc/adcbusy.c,
86           device/lib/pic16/libio/adc/adcclose.c,
87           device/lib/pic16/libio/adc/adcconv.c,
88           device/lib/pic16/libio/adc/adcopen.c,
89           device/lib/pic16/libio/adc/adcsetch.c: added 65j50-style ADC
90
91         * doc/sdccman.lyx: updated list of supported devices, fixed typo
92         * device/lib/pic16/Makefile.common: do not suppress assembler warnings
93
94         * device/lib/pic16/Makefile.in,
95           device/lib/pic16/libm/Makefile.in,
96           device/lib/pic16/debug/Makefile.in,
97           device/lib/pic16/libio/Makefile.in,
98           device/lib/pic16/startup/Makefile.in,
99           device/lib/pic16/libsdcc/Makefile.in,
100           device/lib/pic16/libdev/Makefile.in,
101           device/lib/pic16/libc/Makefile.in: regenerated
102
103 2009-02-27 Borut Razem <borut.razem AT siol.net>
104
105         * as/z80/asexpr.c, as/z80/z80mch.c: re-fixed bugs
106           #1829678 and #1704376 in the way proposed by Alan Baldwin
107
108 2009-02-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
109
110         * device/include/mcs51/at89c51ed2.h: Fixed address of SFR P5. Thanks
111           to Steve Qu for the fix.
112
113 2009-02-23 Borut Razem <borut.razem AT siol.net>
114
115         * as/z80/asexpr.c: fixed bug #1829678: Z-80 CP A,<xxx> assembly
116           it is already fixed for mcs51 and hc08 targets
117         * as/z80/z80mch.c: fixed bug #1704376: missing as-z80 errors
118
119 2009-02-22 Borut Razem <borut.razem AT siol.net>
120
121         * device/lib/Makefile.in: fixed parenthesis error
122         * doc/sdccman.lyx: fixed webdocs bug #2071421: error in the manual,
123           fixed webdocs bug #1967920: --version
124
125 2009-02-18 Maarten Brock <sourceforge.brock AT dse.nl>
126
127         * device/include/mcs51/at89c51ed2.h: fixed bug #2071949 bitmask RBCK wrong
128
129 2009-02-17 Maarten Brock <sourceforge.brock AT dse.nl>
130
131         * as/link/mcs51/lkihx.c (hexRecord): bugfix do not insert extended address
132           when addresses are unsorted
133
134 2009-02-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
135
136         * device/include/mcs51/p89v66x.h: added ENBOOT thanks
137           Gudjon Gudjonsson <gudjon AT gudjon.org>
138         * device/include/mcs51/p89c66x.h: fixed some defines
139         * device/include/mcs51/p89v66x.h: fixed some sbit addresses
140         * doc/sdccman.lyx: added <NO FLOAT> to index, try to reanimate
141           svn keywords
142
143 2009-02-14 Borut Razem <borut.razem AT siol.net>
144
145         * doc/sdccman.lyx: corrected cpp info
146
147 2009-02-13 Borut Razem <borut.razem AT siol.net>
148
149         * as/Makefile.in: *.doc renamed to *.txt
150
151 2009-02-11 Borut Razem <borut.razem AT siol.net>
152
153         * as/doc/aslnk.doc, as/doc/abstra.doc: renamed to *.txt
154         * as/doc/aslnk.txt, as/doc/asxhtml.html: changed licens to GPLv3
155
156 2009-02-11 Borut Razem <borut.razem AT siol.net>
157
158         * doc/sdccman.lyx: documented ar format libraries
159
160 2009-02-10 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
161
162         * support/regression/tests/float_single.c: added regression
163           test. Some testpoints for probably rarely used functions
164           (acosf, sinhf, tanf, expf) disabled for some targets
165
166 2009-02-10 Raphael Neider <rneider AT web.de>
167
168         * src/pic16/gen.c (pic16_freeAsmop): avoid NULL pointer dereference,
169           (genAssign): fixed for operands on the stack
170
171         * device/lib/pic16/libc/stdio/vfprintf.c,
172           device/lib/pic16/configure.ac,
173           device/lib/pic16/Makefile.common: add configurable support for
174           printing floats via ./configure --enable-floats
175         * device/lib/pic16/configure,
176           device/lib/pic16/Makefile.in,
177           device/lib/pic16/libm/Makefile.in,
178           device/lib/pic16/debug/Makefile.in,
179           device/lib/pic16/libio/Makefile.in,
180           device/lib/pic16/startup/Makefile.in,
181           device/lib/pic16/libsdcc/Makefile.in,
182           device/lib/pic16/libdev/Makefile.in,
183           device/lib/pic16/libc/Makefile.in: regenerated
184         * doc/sdccman.lyx: documented float support and how to get it
185         * doc/Makefile.in: fixed race condition on parallel builds
186
187         * device/lib/pic16/libc/stdio/sprintf.c,
188           device/lib/pic16/libc/stdio/vsprintf.c: do not mess up the user's
189           pointer to the string buffer, enlarge buffer for x_ftoa()
190
191 2009-02-10 Borut Razem <borut.razem AT siol.net>
192
193         * device/lib/printf_tiny.c: replaced non-C89 comments '//' with '/* */'
194
195 2009-02-10 Raphael Neider <rneider AT web.de>
196
197         * device/include/pic16/pic18f*.h: add bit aliases in INTCONbits_t
198
199 2009-02-09 Raphael Neider <rneider AT web.de>
200
201         * src/pic16/pcode.c (assignToSameBank): add force argument to ignore
202           artificial bank size limits for compound data (structs, arrays),
203           avoids assert if --obanksel=N, N > 1, is given
204
205 2009-02-09 Borut Razem <borut.razem AT siol.net>
206
207         * as/asranlib/asranlib.c, link/lkar.c: don't check the padding bytes since
208           the openSUSE GNU ar (GNU Binutils; openSUSE 11.0) 2.18.50.20080409-11.1
209           uses '`' character instead '\n' for padding
210         * as/asranlib/asranlib.c: made it more robust
211
212 2009-02-08 Borut Razem <borut.razem AT siol.net>
213
214         * as/COPYING3: added
215         * support/scripts/sdcc.nsi: added COPYING3.txt to the package
216         * device/lib/Makefile.in: reenable floating point in model-xstack-auto
217           libraries
218
219 2009-02-07 Borut Razem <borut.razem AT siol.net>
220
221         * as/asranlib/asranlib.c: fixed BSD header length calculation
222         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.9
223           due sdcc asxxxx license change to GPLv3
224
225 2009-02-05 Borut Razem <borut.razem AT siol.net>
226
227         * as/asranlib/asranlib.c, link/lkar.h, link/lkar.c:
228           added support for BSD (Mac OS X) ar format
229         * as/asxxsrc/aslex.c, as/as/asxxsrc/asnoice.c, as/as/asxxsrc/assym.c,
230           as/as/hc08/asdata.c, as/hc08/asexpr.c, as/hc08/aslist.c,
231           as/hc08/asm.h, as/hc08/asmain.c, as/hc08/asout.c, as/hc08/assubr.c,
232           as/hc08/m08adr.c, as/hc08/m08ext.c, as/hc08/m08mch.c,
233           as/hc08/m08pst.c, as/hc08/m6808.h, as/link/aslink.h,
234           as/link/hc08/lkarea.c, as/link/hc08/lkelf.c, as/link/hc08/lkihx.c,
235           as/link/hc08/lkmain.c, as/link/hc08/lkmem.c, as/link/hc08/lkrloc.c,
236           as/link/hc08/lks19.c, as/link/lkaomf51.c, as/link/lkdata.c,
237           as/link/lkeval.c, as/link/lkhead.c, as/link/lklex.c, as/link/lklib.c,
238           as/link/lklibr.c, as/link/lklibr.h, as/link/lklist.c,
239           as/link/lknoice.c, as/link/lkrel.c, as/link/lkrel.h,
240           as/link/lksdcclib.c, as/link/lkstore.c, as/link/lksym.c,
241           as/link/mcs51/lkarea.c, as/link/mcs51/lkihx.c,
242           as/link/mcs51/lkmain.c, as/link/mcs51/lkmem.c,
243           as/link/mcs51/lkrloc.c, as/link/mcs51/lks19.c, as/link/z80/lkarea.c,
244           as/link/z80/lkgb.c, as/link/z80/lkgg.c, as/link/z80/lkihx.c,
245           as/link/z80/lkmain.c, as/link/z80/lkrloc.c, as/link/z80/lks19.c,
246           as/mcs51/asdata.c, as/mcs51/asexpr.c, as/mcs51/aslist.c,
247           as/mcs51/asm.h, as/mcs51/asmain.c, as/mcs51/asout.c,
248           as/mcs51/assubr.c, as/mcs51/i51adr.c, as/mcs51/i51ext.c,
249           as/mcs51/i51mch.c, as/mcs51/i51pst.c, as/mcs51/i8051.h,
250           as/xa51/xa_link.c, as/xa51/xa_main.c, as/xa51/xa_main.h,
251           as/xa51/xa_rasm.l, as/xa51/xa_rasm.y, as/xa51/xa_version.h,
252           as/z80/asdata.c, as/z80/asexpr.c, as/z80/aslist.c, as/z80/asm.h,
253           as/z80/asmain.c, as/z80/asout.c, as/z80/assubr.c, as/z80/z80.h,
254           as/z80/z80adr.c, as/z80/z80ext.c, as/z80/z80mch.c, as/z80/z80pst.c:
255           changed license to GPL either version 3, or (at your option) any
256           later version
257
258 2009-02-05 Borut Razem <borut.razem AT siol.net>
259
260         * as/asranlib/asranlib.c, link/lkar.h, link/lkar.c:
261           added support for BSD (Mac OS X) ar format
262
263 2009-02-02 Borut Razem <borut.razem AT siol.net>
264
265         * device/lib/gbz80/Makefile.in, device/lib/hc08/Makefile.in,
266           device/lib/z80/Makefile.in:
267           chose source files in the PORT directory if they are available
268
269 2009-02-01 Raphael Neider <rneider AT web.de>
270
271         * device/lib/pic16/libdev/pic18f1220.c,
272         * device/lib/pic16/libdev/pic18f4450.c:
273           define SSPBUF to allow use of printf
274
275 2009-02-01 Borut Razem <borut.razem AT siol.net>
276
277         * device/lib/Makefile.in, device/lib/gbz80/Makefile.in,
278           device/lib/hc08/Makefile.in, device/lib/incl.mk,
279           device/lib/z80/Makefile.in:
280           don't remake libraries
281         * support/regression/tests/snprintf.c:
282           reenable floating point in small-xstack-auto library
283
284 2009-01-26 Raphael Neider <rneider AT web.de>
285
286         * src/pic16/ralloc.c (packForPush): disabled to fix #2496919
287
288 2009-01-25 Raphael Neider <rneider AT web.de>
289
290         * src/pic16/main.c (_pic16_linkEdit): prepend -L paths to linker
291           search path instead of appending them
292
293 2009-01-24 Borut Razem <borut.razem AT siol.net>
294
295         * as/asranlib/asranlib.h: changed type of offset to unsigned int to
296           make it work on ppc Mac OS X (off_t is 64 bit and is not converted
297           to 32 bit unsigned int when calling sputl() since it is a macro
298         * as/link/lkar.c: changed the initialization of This->loaded
299
300 2009-01-23 Borut Razem <borut.razem AT siol.net>
301
302         * as/link/lkar.h: changed type of ar_size to size_t to make it work on
303           ppc Mac OS X (off_t is 64 bit and is not converted to 32 bit
304           unsigned int when calling new(), since asxxxx doesn't use function
305           prototypes)
306
307 2009-01-21 Borut Razem <borut.razem AT siol.net>
308
309         * as/link/lkar.h: sgetl and sputl are independent of endianness
310         * as/link/sdxxxx_config.h.in: removed endianness detection
311
312 2009-01-20 Borut Razem <borut.razem AT siol.net>
313
314         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.8
315           due creation of ar format libraries
316         * support/scripts/sdcc.nsi:
317           don't add nonexistent object files to the package
318
319 2009-01-19 Borut Razem <borut.razem AT siol.net>
320
321         * Makefile.in, configure.in, configure,
322           device/lib/Makefile.in, device/lib/ds390/Makefile.in,
323           device/lib/ds400/Makefile.in, device/lib/gbz80/Makefile.in,
324           device/lib/hc08/Makefile.in, device/lib/large/Makefile.in,
325           device/lib/mcs51/Makefile.in, device/lib/medium/Makefile.in,
326           device/lib/small/Makefile.in,
327           device/lib/z80/Makefile.in: create ar format libraries
328         * support/regression/ports/mcs51-xstack-auto/spec.mk:
329           use device/lib/Makefile to create library
330         * support/regression/tests/snprintf.c:
331           floating point is not enabled in small-xstack-auto library
332         * device/lib/libfloat.lib, device/lib/libint.lib,
333           device/lib/liblong.lib, device/lib/libsdcc.lib: removed
334
335 2009-01-18 Borut Razem <borut.razem AT siol.net>
336
337         * support/cpp/auto-host.h: fixed warning: "__STDC__" redefined,
338           warning: extra tokens at end of #endif directive
339
340 2009-01-11 Borut Razem <borut.razem AT siol.net>
341
342         * Makefile.in: added SDCC_ASRANLIB to PKGS
343
344 2009-01-10 Borut Razem <borut.razem AT siol.net>
345
346         * support/scripts/sdcc.nsi: added asranlib.exe to the install package
347         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.7
348           due added support for ar format libraries
349
350 2009-01-09 Borut Razem <borut.razem AT siol.net>
351
352         * as/asranlib/Makefile.in, as/asranlib/asranlib.dsp,
353           as/asranlib/asranlib.c: added asranlib
354         * as/link/lkar.c, as/link/lkar.h: added support for ar format libraries
355         * Makefile.in, as/link/hc08/Makefile.in,
356           as/link/hc08/link_hc08.dsp, as/link/lklib.c, as/link/lklibr.c,
357           as/link/lklibr.h, as/link/lkrel.c, as/link/lkrel.h,
358           as/link/lksdcclib.c, as/link/mcs51/Makefile.in,
359           as/link/mcs51/aslink.dsp, as/link/z80/Makefile.in,
360           as/link/z80/linkgbz80.dsp, as/link/z80/linkz80.dsp, configure,
361           configure.in, sdcc.dsw: modified to support ar format libraries
362
363 2009-01-08 Maarten Brock <sourceforge.brock AT dse.nl>
364
365         * src/SDCCast.c (decorateType RETURN): use RESULT_TYPE_GPTR for generic
366           pointer return
367
368 2009-01-05 Philipp Klaus Krause <pkk AT spth.de>
369
370         * sim/ucsim/z80.src/inst_ed.cc:
371           Fixed bug #2488074, which made regression tests fail.
372
373 2009-01-05 Philipp Klaus Krause <pkk AT spth.de>
374
375         * device/lib/z80/mod.s,
376           device/lib/z80/div.s,
377           device/lib/z80/mulchar.s,
378           device/lib/z80/mul.s,
379           device/lib/z80/divsigned.s,
380           device/lib/z80/Makefile.in:
381           Implemented RFE #1702376.
382
383 2009-01-05 Borut Razem <borut.razem AT siol.net>
384
385         * as/link/lksdcclib.c:
386           fixed linker hanging in INDEXLIB is not defined (hc08)
387
388 2009-01-04 Philipp Klaus Krause <pkk AT spth.de>
389
390         * src/z80/gen.c:
391           Implemented RFE #2485684, and some further improvements of HL caching
392           including a bugfix.
393         * src/z80/peeph-z80.def:
394           Fixed a bug exposed by implementing RFE #2485684.
395
396 2009-01-04 Philipp Klaus Krause <pkk AT spth.de>
397
398         * src/z80/peeph-z80.def:
399           Peephole improvements.
400         * src/z80/gen.c,
401           src/z80/main.c,
402           device/include/string.h,
403           device/lib/z80/memmove.s:
404           Minor code cleanup.
405         * device/lib/z80/Makefile.in,
406           device/lib/Makefile.in,
407           support/regression/tests/memory.c,
408           device/lib/z80/strlen.s:
409           Partially implemented RFE #2471534.
410
411 2009-01-04 Borut Razem <borut.razem AT siol.net>
412
413         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.6
414           due changes in sdcc asxxxx linkers - it sholud be done 2 days ago :(
415         * doc/README.txt: updated John Hartman's e-mail address
416         * as/link/lkrel.c, as/link/lksdcclib.c:
417           fixed bug #2484677: Linker hangs
418         * src/z80/peep.c: fixed msvc warning C4047:
419           'return' : 'int ' differs in levels of indirection from 'char *'
420         * config.dsp: as/lib corrected to as/link
421
422 2009-01-04 Philipp Klaus Krause <pkk AT spth.de>
423
424         * src/z80/peep.c:
425           Implemented RFE #2484693.
426         * src/z80/peeph-z80.def:
427           Some peephole improvements.
428
429 2009-01-03 Borut Razem <borut.razem AT siol.net>
430
431         * as/link/lklibr.c:
432           fixed warning: 'ret' may be used uninitialized in this function
433
434 2009-01-02 Borut Razem <borut.razem AT siol.net>
435
436         * as/link/lklib.c, as/link/lksdcclib.c, as/link/lklibr.h,
437           as/link/getline.[ch], as/link/lkrel.[ch]: added,
438           made support for differnet library formats more flexible,
439           preparation for support of ar format
440         * as/link/lklibr.c, as/link/z80/Makefile.in,
441           as/link/z80/linkgbz80.dsp, as/link/z80/linkz80.dsp,
442           as/link/hc08/link_hc08.dsp, as/link/hc08/Makefile.in,
443           as/link/mcs51/aslink.dsp, as/link/mcs51/Makefile.in,
444           as/link/hc08/lkelf.c, as/link/aslink.h:
445           made support for differnet library formats more flexible,
446           preparation for support of ar format
447
448 2009-01-01 Borut Razem <borut.razem AT siol.net>
449
450         * as/link/asxxxx_config.h.in:
451           fixed warning: extra tokens at end of #endif directive
452         * src/z80/peep.c:
453           fixed warning: suggest parentheses around && within ||
454         * device/lib/Makefile.in: allow whitespaces at the end of lines in
455           ports.build, in order to make it work on cygwin - it seems to be a
456           bug in cygwin grep: CR is not treated as part of end-of-line
457
458 2008-12-31 Borut Razem <borut.razem AT siol.net>
459
460         * configure, configure.in, config.dsp, config_vc.awk,
461           as/link/asxxxx_config.h.in, as/link/hc08/lkelf.c, as/link/aslink.h,
462           as/link/hc08/Makefile.in, as/link/mcs51/Makefile.in:
463           introduced asxxxx_config.h.in
464
465 2008-12-30 Philipp Klaus Krause <pkk AT spth.de>
466
467         * src/z80/gen.c,
468           src/z80/peeph-z80.def:
469           Minor addition improvement.
470
471 2008-12-30 Raphael Neider <rneider AT web.de>
472
473         * as/link/hc08/lkelf.c, as/link/lkaomf51.c, as/link/lklibr.c,
474           as/link/z80/lkgb.c, debugger/mcs51/cmd.c, sim/ucsim/utils.cc,
475           src/SDCCasm.c, support/Util/dbuf_string.c, support/cpp/c-ppoutput.c,
476           support/cpp/libcpp/lex.c, support/cpp/libcpp/macro.c,
477           support/librarian/sdcclib.c, support/makebin/makebin.c:
478           partially revert changes from r5293..r5295
479
480 2008-12-29 Philipp Klaus Krause <pkk AT spth.de>
481
482         * src/z80/peeph-z80.def:
483           Minor peephole improvement.
484
485 2008-12-29 Raphael Neider <rneider AT web.de>
486
487         * src/pic/pcode.c (insertBankSel, FixRegisterBanking): emit
488           incorrectly discarded BANKSELs
489
490 2008-12-29 Philipp Klaus Krause <pkk AT spth.de>
491
492         * support/regression/tests/memory.c:
493           Added simple test for memset(), memcpy() and memmove()
494
495 2008-12-29 Borut Razem <borut.razem AT siol.net>
496
497         * sdcc/support/scripts/sdcc.nsi: removed $INSTDIR\lib\src\z80\*.c
498
499 2008-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
500
501         * src/mcs51/peeph.def (177.e): replaced notVolatile(%3) with
502           operandsNotRelated(%1 %3), had to change (a)r%1 to (a)%1 for this to work
503           (177.j): added new rule
504         * src/SDCCsymt.h: added RESULT_TYPE_GPTR
505         * src/SDCCast.c (processParms): use RESULT_TYPE_GPTR for generic ptr parms,
506           (decorateType CAST): propagate storage class to generic pointer results
507
508 2008-12-27 Philipp Klaus Krause <pkk AT spth.de>
509
510         * device/lib/z80/string.c,
511           device/lib/z80/printf.c,
512           device/lib/z80/mul.s:
513           z80 library cleanup
514         * src/z80/gen.c:
515           Fixed code generation bug exposed by builtin memcpy().
516
517 2008-12-27 Philipp Klaus Krause <pkk AT spth.de>
518
519         * device/lib/_memcpy.c:
520           fixed conflict with builtin memcpy()
521
522 2008-12-26 Borut Razem <borut.razem AT siol.net>
523
524         * support/librarian/sdcclib.c:
525           fixed bug 2466950: "sdcclib broken"
526           by removing fgets return value check
527
528 2008-12-26 Philipp Klaus Krause <pkk AT spth.de>
529         * src/z80/main.c,
530           src/z80/gen.c,
531           device/include/string.h: Implemented RFE #1914254
532
533 2008-12-26 Philipp Klaus Krause <pkk AT spth.de>
534         * device/lib/z80/Makefile.in,
535           device/lib/Makefile.in,
536           device/lib/z80/memmove.s: Implemented RFE #1914256
537
538 2008-12-26 Philipp Klaus Krause <pkk AT spth.de>
539
540         * src/z80/peeph-z80.def: fixed a bug in peephole 0zf
541         * src/z80/peep.c: improved checks for unused data
542         * src/z80/gen.c,
543           src/z80/main.c: Implemented RFE #1899189
544
545 2008-12-25 Borut Razem <borut.razem AT siol.net>
546
547         * support/regression/Makefile.in:
548           add -I$(INC_DIR) to SDCCFLAGS only if INC_DIR is defined
549
550 2008-12-25 Philipp Klaus Krause <pkk AT spth.de>
551
552         * src/z80/peeph-z80.def: minor peephole improvements
553
554 2008-12-21 Borut Razem <borut.razem AT siol.net>
555
556         * support/librarian/sdcclib.c: fixed build failure on Mac OS X
557           due to redefinition of symbol __assert
558           sdcclib.c:53:1:warning: "__assert" redefined
559           /Xcode2.5/SDKs/MacOSX10.4u.sdk/usr/include/assert.h:80:1:
560           warning: this is the location of the previous definition
561
562 2008-12-20 Raphael Neider <rneider AT web.de>
563
564         * debugger/mcs51/break.c, debugger/mcs51/cmd.c,
565           debugger/mcs51/simi.c, debugger/mcs51/symtab.c,
566           support/cpp/libcpp/macro.c: fix format string errors
567
568         * sim/ucsim/s51.src/timer2.cc: add clarifying parens
569
570         * src/pic/device.c: partial rewrite using strtok,
571           quieten compiler warnings, adopt SDCC coding style
572
573         * as/link/hc08/lkelf.c, as/link/lkaomf51.c, as/link/lklibr.c,
574           as/link/z80/lkgb.c, as/z80/asout.c, debugger/mcs51/cmd.c,
575           sim/ucsim/utils.cc, src/SDCCasm.c, support/Util/dbuf_string.c,
576           support/cpp/c-ppoutput.c, support/cpp/libcpp/lex.c,
577           support/librarian/sdcclib.c, support/makebin/makebin.c:
578           quieten most compiler warnings
579
580         * sim/ucsim/avr.src/arith_inst.cc: quieten compiler warnings,
581           probably fix operator precedence bug
582
583         * doc/clean.mk: quieten rm if no .lyx is present
584
585 2008-12-19 Borut Razem <borut.razem AT siol.net>
586
587         * doc/sdccman.lyx, doc/random-notes.txt, doc/avr/avr_design.txt,
588           doc/TININative.txt, doc/macro-sys-design.txt, doc/libdoc.txt,
589           doc/README.txt, doc/test_suite_spec.lyx:
590           applied patch 2446381: Dcoumentation spelling correcitons
591           thanks to Steven Borley
592
593 2008-12-16 Raphael Neider <rneider AT web.de>
594
595         * device/include/pic/pic12f629.h,
596           device/include/pic/pic12f675.h,
597           device/lib/pic/libdev/pic12f629.c,
598           device/lib/pic/libdev/pic12f675.c: consolidated, added TRISIO bits
599
600 2008-12-14 Borut Razem <borut.razem AT siol.net>
601
602         * doc/sdccman.lyx, cdbfileformat.lyx, test_suite_spec.lyx:
603           converted to LyX 1.5.7 (\lyxformat 276) format
604
605 2008-12-07 Borut Razem <borut.razem AT siol.net>
606
607         * support/regression/tests/bitfields.c:
608           added test case for bug #2366757
609
610 2008-12-07 Raphael Neider <rneider AT web.de>
611
612         * src/pic16/glue.c (pic16_printIvalBitFields): prevent
613           NULL pointer dereference, closes #2366757
614
615 2008-11-25 Raphael Neider <rneider AT web.de>
616
617         * device/include/pic16/pic16devices.txt,
618           sdcc/src/pic16/device.c,
619           sdcc/src/pic16/device.h: implicitly disable XINST
620           whenever CONFIG4L is set via an additional optional
621           argument to the configword directive in pic16devices.txt
622
623 2008-11-24 Raphael Neider <rneider AT web.de>
624
625         * device/lib/pic16/configure.ac,
626           device/lib/pic16/Makefile.common: fixed quoting issues
627
628         * device/lib/pic16/configure,
629           device/lib/pic16/debug/Makefile.in,
630           device/lib/pic16/libc/Makefile.in,
631           device/lib/pic16/libdev/Makefile.in,
632           device/lib/pic16/libio/Makefile.in,
633           device/lib/pic16/libm/Makefile.in,
634           device/lib/pic16/libsdcc/Makefile.in,
635           device/lib/pic16/Makefile.in,
636           device/lib/pic16/startup/Makefile.in: regenerated
637
638         * src/pic16/main.c (_pic16_finaliseOptions): revert to
639           variant of r5216
640
641 2008-11-24 Raphael Neider <rneider AT web.de>
642
643         * src/pic16/main.c (_pic16_finaliseOptions): do not quote the
644           argument of --asm= or --link= to allow for
645           --asm="sh script --options", the user can double quote the
646           argument if needed: --asm="'c:/program files/gpasm' -q",
647           also fix some potential buffer overflows
648
649 2008-11-19 Borut Razem <borut.razem AT siol.net>
650
651         * doc/sdccman.lyx:
652           fixed 2314467: sdccman.lyx: fix "--" in command line parameters
653           thanks Mauro Giachero
654
655 2008-11-16 Borut Razem <borut.razem AT siol.net>
656
657         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.5
658         * doc/sdccman.lyx: documented fixed unnamed bit-field initialization
659
660 2008-11-15 Borut Razem <borut.razem AT siol.net>
661
662         * src/pic16/glue.c, src/SDCC.y, src/SDCCast.c, src/SDCCglue.c,
663           src/SDCCsymt.c, src/SDCCsymt.h:
664           fixed RFE #2291335 : Unnamed bit-field initialization
665         * support/regression/tests/bitfields.c:
666           added test case for RFE #2291335
667         * support/regression/tests/bug-1981238.c:
668           don't initialize unnamed bit-fields
669
670 2008-11-11 Raphael Neider <rneider AT web.de>
671
672         * device/include/pic16/pic18f25j10.h,
673           device/include/pic16/pic18f45j10.h: remove useless boilerplate
674
675         * device/include/pic16/adc.h,
676           device/lib/pic16/libio/adc/adcbusy.c,
677           device/lib/pic16/libio/adc/adcclose.c,
678           device/lib/pic16/libio/adc/adcconv.c,
679           device/lib/pic16/libio/adc/adcopen.c,
680           device/lib/pic16/libio/adc/adcread.c,
681           device/lib/pic16/libio/adc/adcsetch.c: generalized, documented,
682           and fixed ADC routines to work for more target devices,
683           incorporates patch #2036130 by Nick Materer
684
685 2008-11-10 Steven Borley <steven.borley AT partnerelectronics.com>
686
687         * device/include/ctype.h,
688         * device/include/ds400rom.h,
689         * device/include/ds80c390.h,
690         * device/include/float.h,
691         * device/include/math.h,
692         * device/include/serial.h,
693         * device/include/stdbool.h,
694         * device/include/tinibios.h: replaced non-C89 '//' with '/* */',
695           patch 2195343
696         * device/include/mcs51/C8051F336.h,
697         * device/include/mcs51/C8051T600.h,
698         * device/include/mcs51/C8051T610.h,
699         * device/include/mcs51/C8051T630.h: new, added, patch 2183334
700           (svn commit by Maarten Brock <sourceforge.brock AT dse.nl>)
701
702 2008-11-10 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
703
704         * device/include/mcs51/P89LPC922.h: fixed #2255989, thanks kubi57
705
706 2008-11-10 Raphael Neider <rneider AT web.de>
707
708         * device/lib/pic16/libdev/mkmk.sh: obey pics.all
709         * device/lib/pic16/libio/mkmk.sh: properly match whole lines in
710           .ignore files, fixes IO libs for 18f242, 18f252, 18f442, and 18f452
711           (patch by Nick Materer, #2253980)
712
713         * device/lib/pic16/libio/adc.ignore,
714           device/lib/pic16/libio/i2c.ignore,
715           device/lib/pic16/libio/usart.ignore,
716           device/lib/pic16/pics.all: updated to build more device libs
717
718         * device/lib/pic16/libdev/Makefile.am,
719           device/lib/pic16/libdev/Makefile.in,
720           device/lib/pic16/libio/Makefile.am,
721           device/lib/pic16/libio/Makefile.in: regenerated
722
723         * src/pic16/device.c (pic16_dump_usection): fixed output of multiple
724           names per memory location, applied SDCC style to more functions
725
726 2008-11-09 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
727
728         * device/include/mcs51/p89lpc933_4.h: new NXP header file
729         * device/include/mcs51/p89lpc935_6.h: new NXP header file
730         * device/include/mcs51/p89v66x.h: minor changes
731           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
732
733 2008-11-09 Raphael Neider <rneider AT web.de>
734
735         * device/include/pic/pic14devices.txt: fixed memory description for
736           12f629 and 12f675, closes #2236240
737
738 2008-11-06 Borut Razem <borut.razem AT siol.net>
739
740         * src/SDCCmain.c: fixed bug #2224960: sdcc -MM no working correctly
741           pass system include paths with -isystem to sdcpp
742         * src/SDCCglue.c, src/pic/glue.c, src/pic16/glue.c: removed unneeded
743           functions (closePipes), (closeTmpFiles) and (rmTmpFiles)
744
745 2008-11-02 Raphael Neider <rneider AT web.de>
746
747         * doc/sdccman.lyx: updated the sections on the library build process
748           and on how to add support for new devices, and documented known
749           problems with the extended instruction set including a workaround
750
751 2008-11-01 Raphael Neider <rneider AT web.de>
752
753         * device/include/pic16/adc.h,
754           device/include/pic16/pic16devices.txt,
755           device/include/pic16/pic18f2410.h,
756           device/include/pic16/pic18f2510.h,
757           device/include/pic16/pic18f2515.h,
758           device/include/pic16/pic18f2610.h,
759           device/include/pic16/pic18f4410.h,
760           device/include/pic16/pic18f4510.h,
761           device/include/pic16/pic18f4515.h,
762           device/include/pic16/pic18f4610.h,
763           device/include/pic16/pic18fregs.h,
764           device/lib/pic16/libdev/Makefile.am,
765           device/lib/pic16/libdev/Makefile.in,
766           device/lib/pic16/libdev/pic18f2410.c,
767           device/lib/pic16/libdev/pic18f2510.c,
768           device/lib/pic16/libdev/pic18f2515.c,
769           device/lib/pic16/libdev/pic18f2610.c,
770           device/lib/pic16/libdev/pic18f4410.c,
771           device/lib/pic16/libdev/pic18f4510.c,
772           device/lib/pic16/libdev/pic18f4515.c,
773           device/lib/pic16/libdev/pic18f4610.c,
774           device/lib/pic16/libio/Makefile.am,
775           device/lib/pic16/libio/Makefile.in,
776           device/lib/pic16/pics.all: added support for 18f[24][456]10
777           and 18f[24]515 devices
778         * doc/sdccman.lyx: updated list of supported PIC16 devices
779
780         * src/pic/glue.c, src/pic/pcode.c, src/pic/pcodeflow.c,
781           src/pic16/glue.c, src/pic16/pcode.c, src/pic16/pcodeflow.c,
782           src/xa51/gen.c: avoid compiler warnings
783         * support/scripts/inc2h-pic16.pl: removed trailing whitespace
784
785 2008-10-22 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
786
787         * device/include/mcs51/p89v66x.h: NXP header file
788         * device/include/mcs51/p89c66x.h: fixed an SBIT definition
789           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
790
791 2008-10-14 Raphael Neider <rneider AT web.de>
792
793         * device/lib/pic16/libdev/Makefile.am,
794           device/lib/pic16/libio/Makefile.am: enable building libraries for
795           18f2321, 18f4321, 18f2523, 18f4620, 18f66j60, 18f66j65, 18f67j60,
796           18f86j60, 18f86j65, 18f87j60, 18f96j60, 18f96j65, and 18f97j60
797         * device/lib/pic16/libdev/Makefile.in,
798           device/lib/pic16/libio/Makefile.in: regenerated
799
800 2008-10-14 Raphael Neider <rneider AT web.de>
801
802         * device/include/pic16/pic18f2450.h,
803           device/include/pic16/pic18f4450.h,
804           device/lib/pic16/libdev/pic18f2450.c,
805           device/lib/pic16/libdev/pic18f4450.c,
806           device/include/pic16/adc.h,
807           device/include/pic16/pic16devices.txt,
808           device/include/pic16/pic18fregs.h,
809           device/lib/pic16/libdev/Makefile.am,
810           device/lib/pic16/libdev/Makefile.in,
811           device/lib/pic16/libio/Makefile.am,
812           device/lib/pic16/libio/Makefile.in,
813           device/lib/pic16/pics.all: added 18f2450 and 18f4450, closes #1844525
814
815         * device/lib/pic16/libsdcc/stack/stack.S: there is no need to pin the
816           stack to a fixed location, relax it to automatically work with all
817           but the smallest devices (256 byte RAM devices need #pragma stack)
818
819 2008-10-09 Maarten Brock <sourceforge.brock AT dse.nl>
820
821         * debugger/mcs51/break.c: bugfix from patch 1989966, thanks Risto Huotari
822         * debugger/mcs51/simi.c: bugfix from patch 1989972, thanks Risto Huotari
823         * device/lib/_strcspn.c: fixed bug 2140931
824
825 2008-10-06 Raphael Neider <rneider AT web.de>
826
827         * device/include/pic16/stdio.h,
828           device/lib/pic16/libc/stdio/putchar.c: putchar should not be
829           declared __naked for convenience, named all arguments
830         * device/lib/pic16/libc/stdio/strmgpsim.c,
831           device/lib/pic16/libc/stdio/strmmssp.c,
832           device/lib/pic16/libc/stdio/strmusart.c: cosmetic changes
833
834         * src/pic16/pcode.c (createReachingDefinitions): avoid segfault on
835           empty __naked functions,
836         * (pCodeLabelDestruct, pic16_unlinkpCode, pic16_pCodeUnlink): fix
837           corner cases (unlink first/last pCode in list), reuse more code
838
839 2008-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
840
841         * src/ds390/main.c (_ds390_genInitStartup): added
842         * src/SDCCpeeph.c (getPatternVar): new, added,
843           (labelInRange): fixed bug 2115959
844         * src/mcs51/peeph.def (rules 193.x to 198.x): check for labelInRange
845         * src/SDCCicode.h: added newiTempOperand
846         * src/SDCCcse.c (algebraicOpts): fixed bug for x*-1,
847           added optimizations for 0/x and x/-1, see also patch 2142900
848         * support/regression/tests/onebyte.c (testMul): added test cases
849
850 2008-09-20 Borut Razem <borut.razem AT siol.net>
851
852         * src/pic16/glue.c:
853           definition of absolute address symbols without initial value,
854           fixed SDCC crash "do not know how to intialize symbol"
855
856 2008-09-16 Maarten Brock <sourceforge.brock AT dse.nl>
857
858         * device/lib/z80/mul.s (__mulsuchar_rrx_s, __muluschar_rrx_s),
859         * device/lib/z80/div.s (__divsuchar_rrx_s, __modsuchar_rrx_s,
860           __divuschar_rrx_s, __moduschar_rrx_s): added mixed signedness versions
861         * device/lib/z80/stubs.s: added stubs for above functions
862         * src/SDCCopt.c (convilong),
863         * src/SDCCsymt.c (initCSupport): fixed bug 1900961
864         * src/SDCCsymt.h (__muldiv): enlarged for mixed signedness
865         * src/z80/main.c (_hasNativeMulFor): fixed bug, I think
866         * support/regression/tests/onebyte.c: enabled all tests for z80
867
868 2008-09-15 Borut Razem <borut.razem AT siol.net>
869
870         * device/include/pic16/stdio.h, device/lib/pic16/libc/stdio/streams.c,
871           device/lib/pic16/libc/stdio/printf.c,
872           device/lib/pic16/libc/stdio/strmusart.c,
873           device/lib/pic16/libc/stdio/printf_tiny.c,
874           device/lib/pic16/libc/stdio/sprintf.c,
875           device/lib/pic16/libc/stdio/strmgpsim.c,
876           device/lib/pic16/libc/stdio/putchar.c,
877           device/lib/pic16/libc/stdio/fprintf.c,
878           device/lib/pic16/libc/stdio/strmmssp.c,
879           device/device/lib/pic16/libc/stdio/vprintf.c,
880           device/lib/pic16/libc/stdio/printf_small.c,
881           device/lib/pic16/libc/stdio/vsprintf.c,
882           device/lib/pic16/libc/stdio/strmputchar.c,
883           device/lib/pic16/libc/Makefile.am,
884           device/lib/pic16/libc/Makefile.in:
885           *printf now returns int, puchar.c moved from stdlib to stdio,
886           *printf format parameter type changed from char * to const char *,
887           added GNU link excetion text to library source files,
888           applyed GNU coding style, removed useless svn ids,
889           added BINARY_SPECIFIER macro re-enables the use of the removed 'b'
890           binary specifier: "%b", "%hb" and "%lb"
891         * device/lib/pic16/libc/stdio/vfprintf.c:
892           applied patch #2044424: PIC16: vfprintf
893           thanks Mauro Giachero
894         * support/regression/tests/bug1057979.c:
895           removed old pic16 sprintf specifics
896         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.4
897         * doc/sdccman.lyx: documented 'b' binary format specifier removal
898
899 2008-09-15 Raphael Neider <rneider AT web.de>
900
901         * src/pic16/device.c (pic16_dump_usection): force udata sections
902           into the addressable range (0..0xFFF), workaround for a gpsim
903           bug preventing simulation of regtest bug1750318
904         * src/pic16/ralloc.c (deassignLRs): cosmetic changes,
905           (serialRegAssign): fixed regtest bug-971834,
906           (pic16_packRegisters): avoid null-pointer dereference
907
908 2008-09-14 Raphael Neider <rneider AT web.de>
909
910         * src/pic16/gen.c, src/pic16/ralloc.c: use
911           SYM_SPIL_LOC/SPIL_LOC macros, no functional changes
912         * src/pic16/ralloc.c (rematStr): reimplemented, fixes #1818857
913
914 2008-09-12 Borut Razem <borut.razem AT siol.net>
915
916         * support/regression/fwk/testfwk.h:
917           define pdata as data for pic16 target
918           thanks Mauro Giachero
919
920 2008-09-11 Borut Razem <borut.razem AT siol.net>
921
922         * support/regression/tests/bug-221100.c, support/regression/shifts.c,
923           support/regression/absolute.c:
924           applied patch #2105615: Some PIC16 testcase fixlets
925           thanks Mauro Giachero
926
927 2008-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
928
929         * src/z80/gen.c (genCmpGt, genCmpLt): fixed bug 2094505
930         * support/regression/tests/bug2094505.c: new, added
931
932 2008-09-07 Borut Razem <borut.razem AT siol.net>
933
934         * src/SDCCglue.c, src/SDCCast.c:
935           fixed throw of "excess elements" warning for char arrays
936         * support/regression/tests/nullstring.c:
937           disable warning about excess elements in array of chars initializer
938
939 2008-09-07 Maarten Brock <sourceforge.brock AT dse.nl>
940
941         * as/z80/aslist.c (lstsym): changed old K&R to ANSI
942         * src/SDCCicode.c (geniCodeCritical): fixed bug for hc08
943         * src/z80/gen.c (genCritical, genEndCritical): fixed bug 2077267
944         * support/regression/tests/bug2077267.c: new, added
945
946 2008-09-05 Raphael Neider <rneider AT web.de>
947
948         * configure.in, Makefile.common.in: add support for ccache,
949           remove spurious $VERSION output, detect doc-tools even without
950           --enable-doc to facilitate later manual doc-builds, minor cleanup
951         * configure: regenerated
952
953         * doc/Makefile.in: quieten pdflatex, makeindex, and latex2html,
954           avoid races in parallel VPATH builds
955         * doc/clean.mk: remove .lyx files in the builddir for VPATH builds
956         * doc/sdccman.lyx: mention --without-ccache configure option
957
958 2008-09-01 Raphael Neider <rneider AT web.de>
959
960         * src/pic16/gen.c (pic16_derefPtr): handle CPOINTERs as well
961         * (genConstPointerGet): fix reading bitfields from __code space
962         * src/pic16/glue.c (pic16_printIvalBitFields): correctly mask
963           bitfield initializers (fix regression test bug1856409.c)
964         * (pic16_printIvalCharPtr,pic16_printIvalPtr): generalized to support
965           arbitrary sizes
966
967 2008-08-31 Raphael Neider <rneider AT web.de>
968
969         * src/pic16/gen.c (genAssign): removed useless compiler output
970         * (genPointerGet,genPointerSet,genCast),
971           src/pic16/glue.c (pic16_printGPointerType):
972           also handle PPOINTERs just to avoid spurious asserts
973         * (pic16_printIvalType,pic16_printIvalBitFields):
974           generalized to arbitrary type/bitfield sizes, allows compilation of
975           regression test bug-1981238.c
976         * (pic16_printIvalChar): fix regression test structflexarray.c
977         * (pic16_printIvalArray): avoid SIGSEGV on uninitialized strings
978           in initialized structs and fix #1843745
979         * (pic16_printIvalStruct): always output initializers for all fields,
980           even those not explicitly given, fixes zeropad.c regression test
981         * (pic16_printIvalUnion): fix union initializers (bug1426356.c,
982           #2073635, #1567098, and #1485812)
983         * src/pic16/main.c (_pic16_keywords): remove unsupported 'pdata'
984
985 2008-08-31 Borut Razem <borut.razem AT siol.net>
986
987         * support/regression/tests/bug-895992.c,
988           support/regression/tests/onebyte.c:
989           enabled pic16 regression testing since the bugs
990           1511794: pic16: regression test bug-895992.c fails
991           1444425: onebyte.c regression tes fails on pic16
992           are fixed, probably by fixing
993           2048464: PIC16: fix genUminus - addresses not.c regression test
994         * src/SDCCsymt.c, src/SDCCglue.c,
995           support/regression/tests/bug-1981238.c:
996           applied patch 2076664: fix #1981238 + SIGSEGV in SDCCGlue.c
997           thanks to RvS
998
999 2008-08-30 Borut Razem <borut.razem AT siol.net>
1000
1001         * support/cpp/libcpp/files.c: SDCPP synchronized with GCC CPP
1002           release version 4.3.2
1003
1004 2008-08-24 Raphael Neider <rneider AT web.de>
1005
1006         * device/lib/pic16/configure, device/lib/pic16/configure.ac:
1007           always use the sdcc from the current build tree (ignore $CC from
1008           the environment, fixes compile farm builds)
1009         * device/lib/Makefile.in: rename .a into .lib for compatibility,
1010           remove more build products from install directory
1011         * sdcc/src/pic16/main.c (_pic16_linkEdit,_pic16_finaliseOptions)
1012         * sdcc/support/scripts/sdcc.nsi: revert to .lib extension for libs
1013
1014 2008-08-24 Borut Razem <borut.razem AT siol.net>
1015
1016         * src/SDCC.y: applied patch
1017           2050245: Fix # 1963382
1018           for bug
1019           1963382: Listing File - C file comment is incorrect
1020           thanks to RvS
1021
1022 2008-08-23 Borut Razem <borut.razem AT siol.net>
1023
1024         * src/pic16/gen.c: applied patch
1025           2048464: PIC16: fix genUminus - addresses not.c regression test
1026           thanks Mauro Giachero
1027
1028 2008-08-22 Borut Razem <borut.razem AT siol.net>
1029
1030         * device/lib/pic16/configure, device/lib/pic16/configure.ac,
1031           src/pic16/main.c: allow spaces in gpasm and gplink paths
1032
1033 2008-08-15 Philipp Klaus Krause <pkk AT spth.de>
1034
1035         * src/z80/peep.c,
1036         * src/z80/peeph-z80.def: minor peephole improvement
1037
1038 2008-08-15 Raphael Neider <rneider AT web.de>
1039
1040         * src/z80/gen.c (_vemit2): suppress compiler warning
1041
1042         * src/pic/*.[ch]: make proper use of header files and avoid
1043           ad-hoc extern declarations, mark module-local helpers 'static',
1044           removed dead/replaced code, no functional changes
1045         * src/pic16/pcode.c: disentangled from pic14 backend
1046
1047 2008-08-14 Philipp Klaus Krause <pkk AT spth.de>
1048
1049         * src/z80/gen.c: fixed #2051348
1050         * support/regression/tests/bug-2051348.c: regression test for #2051348
1051
1052 2008-08-10 Raphael Neider <rneider AT web.de>
1053
1054         * configure.in,
1055         * Makefile.common.in: export PACKAGE for $docdir,
1056           fixes #1957036, avoid some "underquoted definition" warnings
1057         * configure: regenerated
1058
1059 2008-08-10 Raphael Neider <rneider AT web.de>
1060
1061         * device/lib/pic16/**: build pic16 library using autotools for
1062           improved dependency tracking
1063
1064         * device/lib/Makefile.in,
1065         * src/pic16/main.c,
1066         * support/scripts/sdcc.nsi: adapt to changes in filenames (s/.lib/.a/)
1067
1068 2008-08-10 Raphael Neider <rneider AT web.de>
1069
1070         * src/pic/pcode.c (ReuseReg): do not overlay the registers used for
1071           local variables if --nooverlay is given, workaround for #2023121
1072
1073 2008-08-08 Raphael Neider <rneider AT web.de>
1074
1075         * src/pic16/genarith.c (genAddLit): fix structure access (#1888004)
1076
1077 2008-08-08 Raphael Neider <rneider AT web.de>
1078
1079         * src/pic/pcoderegs.c,
1080         * src/pic/pcode.c,
1081         * src/pic16/pcode.c: replace own SAFE_snprintf with common SNPRINTF
1082
1083 2008-08-07 Borut Razem <borut.razem AT siol.net>
1084
1085         * src/SDCCval.c, src/SDCCmain.c, src/SDCC.lex,
1086           device/lib/pic/Makefile.rules, device/lib/ds390/Makefile.in,
1087           device/lib/ds400/Makefile.in, device/lib/hc08/Makefile.in,
1088           support/cpp/libcpp/lex.c,  doc/sdccman.lyx:
1089           applied modified patch 2038174: Add support for binary constants v2
1090           thanks Mauro Giachero
1091         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.3
1092
1093 2008-08-04 Raphael Neider <rneider AT web.de>
1094
1095         * doc/sdccman.lyx,
1096         * src/pic16/device.h,
1097         * src/pic16/glue.c,
1098         * src/pic16/main.c: enable --optimize-goto by default
1099
1100         * device/lib/pic16/Makefile.common.in: suppress removed option
1101
1102         * src/pic16/gen.c,
1103         * src/pic16/genutils.c: avoid too long relative branches (#2031890)
1104
1105 2008-07-30 Borut Razem <borut.razem AT siol.net>
1106
1107         * src/pic16/device.c, src/pic16/glue.c, src/pic16/pcode.c:
1108           applied patch 22032433: PIC16: fix constant strings,
1109           thanks Mauro Giachero
1110
1111 2008-07-29 Borut Razem <borut.razem AT siol.net>
1112
1113         * src/pic16/gen.c: applied patches:
1114           2030306: [1/3] PIC16: fix failing rotate.c tests on 16-bit variables,
1115           2030307: [2/3] PIC16: fix failing rotate.c tests for 32-bit var (1),
1116           2030310: [3/3] PIC16: fix failing rotate.c tests for 32-bit var (2),
1117           thanks Mauro Giachero
1118
1119 2008-07-13 Philipp Klaus Krause <pkk AT spth.de>
1120
1121         * src/port.h: Fixed typo in comment
1122
1123 2008-07-12 Philipp Klaus Krause <pkk AT spth.de>
1124
1125         * src/z80/mappings.i: Implemented RFE #1919415
1126         * src/z80/peeph-z80.def: Implemented RFE #1919415, #1861376,
1127           #1880202, #1914434, prepared for RFE #1703943
1128
1129 2008-07-12 Philipp Klaus Krause <pkk AT spth.de>
1130
1131         * src/z80/peeph.def,
1132         * src/z80/peeph-z80.def,
1133         * src/z80/peeph-gbz80.def: separate Z80 from GBZ80 peepholes in
1134           preparation for Z80 peephole improvements
1135
1136 2008-06-21 Raphael Neider <rneider AT web.de>
1137
1138         * device/include/pic16/pic18f66j60.h,
1139         * device/include/pic16/pic18f66j65.h,
1140         * device/include/pic16/pic18f67j60.h,
1141         * device/include/pic16/pic18f86j60.h,
1142         * device/include/pic16/pic18f86j65.h,
1143         * device/include/pic16/pic18f87j60.h,
1144         * device/include/pic16/pic18f96j60.h,
1145         * device/include/pic16/pic18f96j65.h,
1146         * device/include/pic16/pic18f97j60.h,
1147         * device/lib/pic16/libdev/pic18f66j60.c,
1148         * device/lib/pic16/libdev/pic18f66j65.c,
1149         * device/lib/pic16/libdev/pic18f67j60.c,
1150         * device/lib/pic16/libdev/pic18f86j60.c,
1151         * device/lib/pic16/libdev/pic18f86j65.c,
1152         * device/lib/pic16/libdev/pic18f87j60.c,
1153         * device/lib/pic16/libdev/pic18f96j60.c,
1154         * device/lib/pic16/libdev/pic18f96j65.c,
1155         * device/lib/pic16/libdev/pic18f97j60.c,
1156         * device/include/pic16/pic16devices.txt,
1157         * device/include/pic16/pic18fregs.h,
1158         * device/lib/pic16/pics.all: added new devices
1159
1160         * device/include/pic16/adc.h,
1161         * device/lib/pic16/libio/adc/adcbusy.c,
1162         * device/lib/pic16/libio/adc/adcopen.c,
1163         * device/lib/pic16/libio/adc/adcsetch.c,
1164         * device/lib/pic16/libio/i2c/i2copen.c,
1165         * device/lib/pic16/libio/usart/uopen.c: adapted to new devices,
1166           all changes from a patch by Anton Strobl
1167
1168 2008-06-12 Borut Razem <borut.razem AT siol.net>
1169
1170         * sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/bp.cc,
1171           sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
1172           sim/ucsim/z80.src/z80cl.h, sim/ucsim/z80.src/z80.cc,
1173           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
1174           sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
1175           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/uc390.cc,
1176           sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/uc390cl.h,
1177           sim/ucsim/avr.src/avrcl.h, sim/ucsim/avr.src/avr.cc:
1178           fixed bug 1990586: s51 simulator, uc::disass() unimplemented
1179           by applying the modified patch from Risto Huotari
1180
1181 2008-06-04 Maarten Brock <sourceforge.brock AT dse.nl>
1182
1183         * .version,
1184         * doc/sdccman.lyx: bumped sdcc version to 2.8.2
1185         * src/ds390/gen.c (aopPutUsesAcc, genAddrOf): fixed bug 1015185
1186         * src/mcs51/gen.c (genNearPointerGet, genNearPointerSet): fixed bug 1938300
1187         * support/regression/tests/bug1938300.c: new, added
1188
1189 2008-06-03 Maarten Brock <sourceforge.brock AT dse.nl>
1190
1191         * device/include/asm/ds390/features.h,
1192         * device/include/asm/mcs51/features.h,
1193         * device/include/mcs51/regc515c.h: inserted LGPL notice
1194
1195 2008-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
1196
1197         * device/lib/gbz80/div.s,
1198         * device/lib/z80/div.s: fixed bug 1904314 by applying a modified part of
1199           patch 1597883, Thanks Robert Ramey
1200
1201 2008-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
1202
1203         * src/SDCCast.c (createIvalType, createIvalStruct, createIvalArray,
1204           createIvalCharPtr, createIvalPtr, createIval),
1205         * src/SDCCval.h
1206         * src/SDCCval.c (convertIListToConstList, list2expr): handle incomplete
1207           initializers for local auto variables
1208         * support/regression/tests/zeropad.c: added testcase for auto initializers
1209
1210 2008-05-26 Raphael Neider <rneider AT web.de>
1211
1212         * device/lib/pic16/startup/crt0.c,
1213         * device/lib/pic16/startup/crt0i.c,
1214         * device/lib/pic16/startup/crt0iz.c: clean up, make use of access bank
1215           explicit, fixed curr_entry loop for >= 256 initializer records,
1216           removed debug code (write to 0xf7e)
1217
1218 2008-05-25 Raphael Neider <rneider AT web.de>
1219
1220         * device/include/pic/pic16f627a.h,
1221         * device/include/pic/pic16f628a.h,
1222         * device/include/pic/pic16f648a.h: added missing ports
1223
1224 2008-05-20 Maarten Brock <sourceforge.brock AT dse.nl>
1225
1226         * device/include/float.h: added __INFINITY
1227         * device/lib/_fsadd.c: handle overflows
1228         * device/lib/_fsmul.c,
1229         * device/lib/_fsdiv.c: use __INFINITY
1230         * device/lib/_fseq.c,
1231         * device/lib/_fsneq.c: handle -0.0
1232         * sim/ucsim/s51.src/uc89c51r.cc,
1233         * sim/ucsim/s51.src/uc89c51rcl.h: fixed bug 1385430
1234         * sim/ucsim/sim.src/hwcl.h: */* confuses VC
1235         * src/mcs51/gen.c (genSend): fixed bug with --xstack
1236         * support/regression/ports/mcs51-xstack-auto/spec.mk: print floats
1237         * support/regression/tests/snprintf.c: test bug with --xstack
1238
1239 2008-05-19  Philipp Klaus Krause <pkk AT spth.de>
1240
1241         * src/SDCCpeeph.c (callFuncByName):
1242           Support nested parenthesis in peephole function arguments (#1967300)
1243
1244 2008-05-19 Raphael Neider <rneider AT web.de>
1245
1246         * src/pic16/gen.c (pic16_emitpLabel,pic16_emitpLabelFORCE):
1247           fixed duplicate labels (#1911325)
1248
1249 2008-05-19 Raphael Neider <rneider AT web.de>
1250
1251         * src/regression/empty.c: suppress warning
1252         * src/regression/pointer1.c: enabled index_by_pointer()
1253         * src/regression/inline.c: now works for pic16 as well
1254
1255         * src/pic16/device.c: include dbuf declarations
1256         * src/pic16/device.h: removed obsolete prototypes
1257
1258         * src/pic16/gen.c, src/pic16/gen.h: moved generic pointer tags
1259         * src/pic16/glue.c: made purely local functions static,
1260           (pic16_printGPointerType, pic16_printIvalCharPtr,
1261           pic16_printIvalFuncPtr, pic16_printIvalPtr): fixed initialized
1262           generic pointers' tags (#1961866)
1263
1264         * src/pic16/pcode.c (assignValnums): optimize literal assignments
1265
1266 2008-05-19 Borut Razem <borut.razem AT siol.net>
1267
1268         * support/scripts/sdcc.nsi: remove uninstall.exe after uninstallation,
1269           fixed typo, uninstall include/pic16/pic16devices.txt
1270
1271 2008-05-18 Borut Razem <borut.razem AT siol.net>
1272
1273         * support/Utils/dbuf_string.[ch]: added dbuf_chomp(),
1274           the buffer is null terminated
1275         * src/device/pic16.c:
1276           applied modified patch 1965676: Patch for Win32 16 bit PIC
1277         * sdcc_vc_in.h: defined YY_NO_UNISTD_H
1278
1279 2008-05-16 Maarten Brock <sourceforge.brock AT dse.nl>
1280
1281         * src/SDCC.lex (check_type),
1282         * src/SDCC.y (type_specifier2 TYPE_NAME): fixed bug 1925942
1283         * as/hc08/clean.mk,
1284         * as/mcs51/clean.mk,
1285         * as/z80/clean.mk: also clean *.dep
1286         * device/lib/pic16/libsdcc/stack/Makefile,
1287         * sim/ucsim/libtool: removed as they are rebuild by configure
1288         * src/clean.mk: removed izt, so Makefile is not deleted for distclean
1289
1290 2008-05-13 Maarten Brock <sourceforge.brock AT dse.nl>
1291
1292         * src/SDCCast.c (fixupInline, createFunction): save currBlockno in
1293           fixupInline instead of createFunction to fix bug 1864577
1294           (inlineFindMaxBlockno): removed, use global blockNo
1295         * src/SDCCglobl.h: added blockNo
1296         * src/z80/peep.c,
1297         * src/z80/peep.h: modified properties
1298         * support/regression/tests/bug1864577.c: new, added
1299
1300 2008-05-07 Maarten Brock <sourceforge.brock AT dse.nl>
1301
1302         * as/mcs51/asdata.c,
1303         * as/mcs51/asm.h: added org_cnt
1304         * as/mcs51/asmain.c (main, asmbl): fixed bug 1957716, changed old K&R to ANSI
1305         * as/mcs51/asout.c: changed old K&R to ANSI
1306         * as/mcs51/Makefile.in: use common identifiers
1307         * as/hc08/asdata.c,
1308         * as/hc08/asexpr.c,
1309         * as/hc08/asm.h,
1310         * as/hc08/asmain.c,
1311         * as/hc08/asout.c,
1312         * as/hc08/Makefile.bcc,
1313         * as/hc08/Makefile.in: synchronized with as/mcs51/*
1314         * sdcc_vc_in.h: added define __func__
1315         * src/SDCCast.c (expandInlineFuncs): applied patch 1957148 to fix bug 1717305,
1316           Thanks Ruud van Silfhout
1317         * support/regression/tests/bug1717305.c: new, added
1318
1319 2008-05-05 Borut Razem <borut.razem AT siol.net>
1320
1321         * support/regression/Makefile.in,
1322           support/regression/ports/ds390/spec.mk,
1323           support/regression/ports/hc08/spec.mk,
1324           support/regression/ports/mcs51-common/spec.mk,
1325           support/regression/ports/pic14/spec.mk,
1326           support/regression/ports/pic16/spec.mk,
1327           support/regression/ports/ucz80/spec.mk,
1328           support/regression/ports/z80/spec.mk:
1329           added INC_DIR and LIBDIR paths
1330         * src/ds390/gen.c: removed duplicated selicolon
1331
1332 2008-05-04 Borut Razem <borut.razem AT siol.net>
1333
1334         * support/regression/Makefile.in,
1335           support/regression/fwk/lib/testfwk.c,
1336           support/regression/ports/ds390/spec.mk,
1337           support/regression/ports/hc08/spec.mk,
1338           support/regression/ports/mcs51-common/spec.mk,
1339           support/regression/ports/mcs51-large/spec.mk,
1340           support/regression/ports/mcs51-medium/spec.mk,
1341           support/regression/ports/mcs51-small/spec.mk,
1342           support/regression/ports/mcs51-stack-auto/spec.mk,
1343           support/regression/ports/mcs51-xstack-auto/spec.mk,
1344           support/regression/ports/pic14/spec.mk,
1345           support/regression/ports/pic16/spec.mk,
1346           support/regression/ports/ucz80/spec.mk:
1347           added possibility to define the sdcc binary directory SDCC_BIN_PATH
1348           used to run regeression tests
1349
1350 2008-05-01 Raphael Neider <rneider AT web.de>
1351
1352         * doc/sdccman.lyx, support/scripts/inc2h-pic16.pl: updated list of
1353           supported devices and instructions to add new ones
1354
1355 2008-05-01 Raphael Neider <rneider AT web.de>
1356
1357         * device/include/pic16/adc.h,
1358           device/lib/pic16/libio/adc/adcbusy.c,
1359           device/lib/pic16/libio/adc/adcopen.c,
1360           device/lib/pic16/libio/adc/adcsetch.c: support old 18f242 and new
1361           18f2455 style ADC devices, based on patch #1776197
1362         * device/lib/pic16/libio/adc/adcclose.c,
1363           device/lib/pic16/libio/adc/adcconv.c,
1364           device/lib/pic16/libio/adc/adcread.c: cosmetic changes
1365         * device/include/pic16/{pic18f2331.h,pic18f2431.h},
1366           device/lib/pic16/libdev/{pic18f2331.c,pic18f2431.c}: reuse 18f4331
1367         * device/include/pic16/pic18f4431.h,
1368           device/lib/pic16/libdev/pic18f4431.c: remove outdated comments
1369         * device/lib/pic16/libio/adc.ignore: forbid unhandled devices
1370
1371 2008-05-01 Raphael Neider <rneider AT web.de>
1372
1373         * src/pic16/device.h: removed unused field PIC16_device.sfrRange,
1374           moved xinst flag into pic16_options_t
1375         * src/pic16/device.c (default_device, pic16_list_devices,
1376           pic16_find_device): removed references to sfrrange
1377         * src/pic16/gen.c (genFunction),
1378           src/pic16/glue.c (pic16initialComments),
1379           src/pic16/main.c (pic16_optionsTable),
1380           src/pic16/ralloc.c (newReg, pic16_writeUsedRegs): updated references
1381           to xinst
1382         * device/include/pic16/pic16devices.txt: removed sfrrange lines
1383
1384 2008-04-29 Raphael Neider <rneider AT web.de>
1385
1386         * src/pic16/devices.inc,
1387           device/include/pic16/pic16devices.txt: replaced compiled-in list
1388           of devices with a variant parsed at runtime
1389         * src/pic16/device.c: added support for parsing pic16devices.txt,
1390           clean up
1391         * src/pic16/device.h: removed (now) unused fields from PIC_device
1392         * src/pic16/main.c: removed #pragma maxram,
1393           (_pic16_initPaths): removed bogus generation of search paths,
1394           setup the port proper only after the search paths (for
1395           pic16devices.txt) are set up,
1396           (_pic16_finaliseOptions): moved processor dependant code here
1397           from _pic16_initPaths(), clean up
1398         * src/pic16/ralloc.c (pic16_init_stack),
1399         * src/pic16/ralloc.h,
1400         * src/pic16/pcode.c: clean up
1401         * device/include/Makefile.in,
1402           support/scripts/sdcc.nsi: also install/package pic16devices.txt
1403         * support/scripts/inc2h-pic16.pl: updated instructions
1404
1405 2008-04-29 Raphael Neider <rneider AT web.de>
1406
1407         * device/include/pic16/{pic18f2480.h, pic18f2580.h, pic18f4423.h,
1408           pic18f4480.h, pic18f4523.h, pic18f4580.h, pic18f6585.h, pic18f8585.h},
1409           device/lib/pic16/libdev/{pic18f2480.c, pic18f2580.c, pic18f4423.c,
1410           pic18f4480.c, pic18f4523.c, pic18f4580.c, pic18f6585.c, pic18f8585.c}:
1411           added missing family members and 18f2480/2580/4480/4580 family
1412         * device/include/pic16/{pic18f2423.h, pic18f2523.h}: use 18f4523.h
1413         * device/include/pic16/pic18f2525.h: use 18f4620.h
1414         * device/include/pic16/pic18f6680.h: use 18f8680.h
1415         * device/include/pic16/pic18fregs.h,
1416           device/lib/pic16/pics.all,
1417           src/pic16/devices.inc: add new devices
1418         * device/lib/pic16/libdev/{pic18f2423.c, pic18f2523.c}: use 18f4523.c
1419         * device/lib/pic16/libdev/pic18f2525.c: use 18f4620.c
1420         * device/lib/pic16/libdev/pic18f6680.c: uso 18f8680.c
1421         * device/lib/pic16/libio/{adc.ignore, i2c.ignore, usart.ignore}:
1422           prevent attempting to build the libio for some new devices
1423
1424 2008-04-29 Raphael Neider <rneider AT web.de>
1425
1426         * debugger/mcs51/Makefile.in: fixed paths to sources
1427
1428 2008-04-25 Borut Razem <borut.razem AT siol.net>
1429
1430         * as/link/lklibr.c: moved from as/link/z80/lklibr.c
1431         * as/link/hc08/lklibr.c, as/link/mcs51/lklibr.c: deleted
1432         * as/link/hc08/Makefile.bcc, as/link/hc08/Makefile.in,
1433         * as/link/hc08/link_hc08.dsp, as/link/mcs51/Makefile.bcc,
1434           as/link/mcs51/Makefile.in, as/link/mcs51/aslink.dsp,
1435           as/link/z80/Makefile.in, as/link/z80/linkgbz80.dsp,
1436           as/link/z80/linkz80.dsp: lklibr.c moved
1437         * doc/INSTALL.txt: binary archives in bz2 format
1438         * support/cpp/auto-host_vc_in.h: CPP2 replaced with CPP
1439
1440 2008-04-23 Maarten Brock <sourceforge.brock AT dse.nl>
1441
1442         * src/SDCCglue.c (printIvalType, printIvalBitFields): fixed bug 1856409
1443         * support/regression/tests/bug1856409.c: new, added
1444
1445 2008-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
1446
1447         * src/z80/peep.c,
1448         * src/mcs51/peep.c: Use werror for error messages.
1449         * src/SDCCicode.c (geniCodeConditional),
1450         * src/SDCCsymt.c (structElemType): fixed bug 1839321
1451         * src/z80/Makefile.bcc,
1452         * src/z80/z80.dsp: added src/z80/peep.c/h
1453         * support/regression/tests/bug1839321.c: new, added
1454
1455 2008-04-20 Raphael Neider <rneider AT web.de>
1456
1457         * device/include/pic16/pic18f2455.h: added bitfields for port C
1458
1459 2008-04-20 Philipp Klaus Krause <pkk AT spth.de>
1460
1461         * src/z80/peep.c: Use werror for error messages.
1462
1463 2008-04-19 Philipp Klaus Krause <pkk AT spth.de>
1464
1465         * src/z80/peep.h (declaration of notUsed()),
1466         * src/z80/main.c (enabled notUsed() for z80 port, documented z80_port
1467           struct),
1468         * src/z80/z80.h (added dependency on peep.h),
1469         * src/z80/peep.c (definition of notUsed()): Implemented RFE #1880202
1470           for Z80.
1471
1472 2008-04-19 Philipp Klaus Krause <pkk AT spth.de>
1473
1474         * src/SDCCpeeph.c (added support for notUsed()),
1475         * src/mcs51/main.c (added dependency on peep.h, documented mcs51_port
1476           struct),
1477         * src/port.h (removed dependency on mcs51/peep.h, added declaration
1478           for notUsed()): Implemented generic (that is not port-specific) part
1479           of RFE #1880202.
1480
1481 2008-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
1482
1483         * as/link/mcs51/lkmem.c (summary2): fixed bug 1796077
1484         * device/lib/libsdcc.lib,
1485         * device/lib/Makefile.in,
1486         * support/regression/ports/mcs51-xstack-auto/spec.mk,
1487         * device/lib/calloc.c: renamed to _calloc.c
1488         * device/lib/free.c: renamed to _free.c
1489         * device/lib/malloc.c: renamed to _malloc.c
1490         * device/lib/realloc.c: renamed to _realloc.c
1491         * src/ds390/gen.c (aopGet, aopPut, genPlusBits, genDataPointerSet,
1492           genNearPointerSet, genPagedPointerSet): synchronized with mcs51/gen.c
1493         * src/ds390/gen.c (popForBranch, genIfxJump, genCmp, genCmpEq, ifxForOp,
1494           genAnd, genOr, genXor, genIfx, gen390Code): fixed bug 1509084
1495         * src/mcs51/gen.c (popForBranch, genIfxJump, genCmp, genCmpEq,
1496           ifxForOp, genAnd, genOr, genXor, genNearPointerGet,
1497           genPagedPointerGet, genFarPointerGet, genCodePointerGet,
1498           genGenPointerGet, genIfx, gen51Code): fixed bug 1509084
1499         * src/ds390/gen.c,
1500         * src/mcs51/gen.c: throughout cosmetic changes for syncing both
1501         * src/SDCCsymt.h: updated IS_OP_RUONLY, IS_OP_ACCUSE
1502         * support/regression/tests/bug1509084.c: new, added
1503
1504 2008-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
1505
1506         * device/include/mcs51/cc2510fx.h: added _XPAGE
1507         * device/include/mcs51/compiler.h: cosmetic changes
1508
1509 2008-03-31 Maarten Brock <sourceforge.brock AT dse.nl>
1510
1511         * sdcc.dsw: adapted for moved cpp2, added dependency for as_z80 on
1512           config
1513
1514 2008-03-31 Borut Razem <borut.razem AT siol.net>
1515
1516         * support/cpp2 renamed to support/cpp
1517         * support/cpp2/libiberty/filenames.h, support/cpp2/libiberty/hex.c,
1518           support/cpp2/libiberty/splay-tree.c,
1519           support/cpp2/libiberty/splay-tree.h, support/cpp2/libcpp/macro.c,
1520           support/cpp2/libcpp/directives.c,
1521           support/cpp2/libcpp/include/cpplib.h,
1522           support/cpp2/libcpp/include/symtab.h,
1523           support/cpp2/libcpp/include/line-map.h,
1524           support/cpp2/libcpp/line-map.c, support/cpp2/libcpp/files.c,
1525           support/cpp2/libcpp/init.c, support/cpp2/libcpp/traditional.c,
1526           support/cpp2/libcpp/expr.c, support/cpp2/libcpp/internal.h,
1527           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/system.h,
1528           support/cpp2/libcpp/charset.c: SDCPP synchronized with GCC CPP
1529           release version 4.3.0
1530         * configure.in, configure, Makefile.in, Makefile.bcc:
1531           adapted for moved cpp2
1532
1533 2008-03-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1534
1535         * device/include/hc08/mc68hc908jkjl.h: committed fix for bug #1929739,
1536           thanks Alejandro Pustowka <alejo_pustowka AT yahoo.com.mx>
1537
1538 2008-03-30 Maarten Brock <sourceforge.brock AT dse.nl>
1539
1540         * src/SDCCloop.c (loopInvariants): applied fix for bug 1717943, thanks
1541           Robert Larice
1542         * support/regression/tests/bug1717943.c: new, added
1543
1544 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
1545
1546         * src/z80/gen.c (assignResultValue): Reverted reversal of order of
1547           bytewise return value assignments introduced in last commit.
1548
1549 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
1550
1551         * src/z80/gen.c (emitDebug, assignResultValue, genPlus, genMinus,
1552           genMult, genJumpTab):
1553           Use 16-bit instructions for addition in some additional cases,
1554           implemented RFEs #1914251, #1914245, #1922090, #1921382, #1918323.
1555
1556 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
1557
1558         * src/z80/ralloc.c (serialRegAssign, allocReg, tryAllocatingRegPair):
1559           Implemented RFE #1921450, changed some debug messages.
1560
1561 2008-03-30 Borut Razem <borut.razem AT siol.net>
1562
1563         * Small Device C Compiler 2.8.0 released
1564         * .version, doc/sdccman.lyx: changed sdcc version to 2.8.1
1565         * support/scripts/sdcc.nsi: added finish page; this version
1566           was used for 2.8.0 release
1567         * doc/knownbugs.html: removed; magically generated by the build
1568           process using gen_known_bugs.pl from now on
1569
1570 2008-03-23 Borut Razem <borut.razem AT siol.net>
1571
1572         * src/pic/gen.h: Q&D solution for the bug, found by Jim Paris
1573           and reverted it, since it was already fixed by Raphael ;-)
1574         * doc/knownbugs.html: updated for RC2
1575
1576 2008-03-22 Raphael Neider <rneider AT web.de>
1577
1578         * src/SDCCicode.c (getPtrType): avoid unnecessary extra assignments
1579           for PIC16 targets
1580
1581 2008-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
1582
1583         * src/mcs51/gen.c (adjustArithmeticResult): fixed bug 1839299
1584         * support/regression/tests/bug1839277.c: added related testBug1839299
1585
1586 2008-03-21 Maarten Brock <sourceforge.brock AT dse.nl>
1587
1588         * src/ds390/gen.c (opIsGptr, adjustArithmeticResult, genAddrOf, genAssign),
1589         * src/mcs51/gen.c (opIsGptr, adjustArithmeticResult, genAddrOf, genAssign):
1590           fixed bug 1839277
1591         * src/mcs51/gen.c: throughout only output hex constants
1592         * src/SDCCicode.c (getPtrType, geniCodeCast): fixed code size regression
1593         * support/regression/tests/bug1839277.c: new, added
1594
1595 2008-03-21 Philipp Klaus Krause <pkk AT spth.de>
1596
1597         * src/z80/ralloc.c (callFuncByName): Used // instead of /**/ to fix
1598           compilation warning about nested comments.
1599
1600 2008-03-20 Maarten Brock <sourceforge.brock AT dse.nl>
1601
1602         * src/SDCCsymt.c (comparePtrType): fixed bug 1921073
1603         * support/regression/tests/bug1921073.c: new, added
1604
1605 2008-03-17 Philipp Klaus Krause <pkk AT spth.de>
1606
1607         * src/z80/SDCCpeeph.c.c (callFuncByName):
1608           Commented function parameters.
1609
1610 2008-03-17 Philipp Klaus Krause <pkk AT spth.de>
1611
1612         * src/z80/ralloc.c (packRegsForAccUse2):
1613           disabled a broken accumulator packing optimization (fixed #1292721).
1614         * support/regression/tests/bug-1292721: Regression test for #1292721.
1615
1616 2008-03-16 Raphael Neider <rneider AT web.de>
1617
1618         * src/pic/gen.c (SetIrp,genNearPointerGet,genNearPointerSet):
1619           fixed code bloat regression using a variant of patch #1915618
1620
1621 2008-03-16 Borut Razem <borut.razem AT siol.net>
1622
1623         * support/scripts/sdcc.nsi: added section debugging macros, added SDCC
1624           icon, changed startup menu for release distribution, code cleaning,
1625           create url files instead links in startup menu
1626
1627 2008-03-16 Maarten Brock <sourceforge.brock AT dse.nl>
1628
1629         * src/SDCCcse.c (algebraicOpts): fixed bug 1579949
1630         * support/regression/tests/bug1579949.c: new, added
1631
1632 2008-03-14 Paul Stoffregen <paul AT pjrc.com>
1633
1634         * device/lib/printf_fast.c: fixed bug 1255403
1635
1636 2008-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
1637
1638         * doc/sdccman.lyx: enhanced paragraph about bankswitching for mcs51
1639         * src/cdbFile.c (cdbWriteBasicSymbol): fixed bug 1909409 for locals
1640
1641 2008-03-14 Borut Razem <borut.razem AT siol.net>
1642
1643         * as/doc/asmlnk.doc, as/doc/asxhtm.html: updated link-xx and aslink
1644           command line options
1645         * as/link/hc08/lkmain.c: converted tabs to spaces so that the usage
1646           is correctly displayed
1647         * as/link/z80/lkmain.c: usage line commented out
1648
1649 2008-03-13 Borut Razem <borut.razem AT siol.net>
1650
1651         * doc/sdccman.lyx: corrected to be able to convert to PDF,
1652           updated the list pf supported pic14 devices
1653
1654 2008-03-12 Maarten Brock <sourceforge.brock AT dse.nl>
1655
1656         * doc/sdccman.lyx: added paragraph about bankswitching for mcs51
1657
1658 2008-03-12 Borut Razem <borut.razem AT siol.net>
1659
1660         * as/doc/asmlnk.doc, as/doc/asxhtm.html: updated command line options,
1661           fixed documentation request #1718191
1662         * as/hc80/asmain.c, as/mcs51/asmain.c: added option -c to usage
1663         * doc/sdccman.lyx: added description of --no-std-crt0 gbz80
1664           command line option
1665
1666 2008-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
1667
1668         * src/SDCCast.c (isConformingBody): fixed bug 1505811, thanks Robert Larice
1669         * support/regression/tests/bug1505811.c: new, added
1670
1671 2008-03-09 Raphael Neider <rneider AT web.de>
1672
1673         * device/include/pic16/pic18f2620.h,
1674         * device/include/pic16/pic18f4620.h,
1675         * device/lib/pic16/libdev/pic18f2620.c,
1676         * device/lib/pic16/libdev/pic18f4525.c,
1677         * device/lib/pic16/libdev/pic18f4620.c: merged 18f2525/2620/4525/4620
1678           family to consistently use pic18f4620.[ch], fixes #1832562
1679
1680 2008-03-09 Borut Razem <borut.razem AT siol.net>
1681
1682         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
1683           changed sdcc version to 2.8.0
1684         * knownbugs.html: regenerated
1685         * support/scripts/gen_known_bugs.pl: added number of open bugs
1686
1687 2008-03-09 Raphael Neider <rneider AT web.de>
1688
1689         * src/pic16/gen.c (pic16_mov2w_volatile): NEW, read volatile operands,
1690           (genOr): read volatile operand even if the result is known,
1691           closes #1511838
1692           (genOr,genXor): removed unused legacy code,
1693           (genDummyRead): use pic16_mov2w_volatile()
1694
1695 2008-03-08 Borut Razem <borut.razem AT siol.net>
1696
1697         * src/SDCCglue.c: fixed bug #1864582: multiple definition of char
1698           cons w. --model-large
1699         * support/regression/staticinit.c: added regression test for bug
1700           #1864582
1701
1702 2008-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
1703
1704         * src/ds390/gen.c (pushSide, genPcall),
1705         * src/hc08/gen.c (pushSide, genPcall): synchronized with mcs51
1706         * src/mcs51/gen.c: cosmetic changes
1707         * support/regression/fwk/include/testfwk.h: added macro reentrant
1708         * support/regression/tests/bug1908493.c: new, added
1709
1710 2008-03-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1711
1712         * src/SDCCdebug.c:, as/link/lkaomf51.c: Fixed bug 1909409: Pdata in OMF file
1713
1714 2008-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
1715
1716         * src/mcs51/gen.c (pushSide, genPcall): fixed bug 1908493
1717         * src/SDCCmain.c (preProcess): removed -DSDCC_PARMS_IN_BANK1 because it is
1718           already set in ds390/main.c and mcs51/main.c
1719
1720 2008-03-07 Raphael Neider <rneider AT web.de>
1721
1722         * src/regression/init0.c: new test for initialized arrays of function
1723           pointers
1724         * src/regression/Makefile: made a bit more flexible, added init0.c
1725         * src/pic/glue.c (emitIvals): hacky fix for initializing from function
1726           pointers, closes #1427663
1727
1728 2008-03-05 Borut Razem <borut.razem AT siol.net>
1729
1730         * dos/sdccman.lyx: docummented predefined macros SDCC_REVISION,
1731           SDCC_PARMS_IN_BANK1, SDCC_FLOAT_REENT and SDCC_INT_LONG_REENT
1732
1733 2008-03-05 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1734
1735         * support/librarian/sdcclib.c:Added feature request 1908061:
1736           Synchronise sdcclib commands with ar.
1737
1738 2008-03-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1739
1740         * src/SDCCmain.c: added predefined macros SDCC_REVISION (RFE #1907229),
1741           and (depending on corresponding compiler option) SDCC_PARMS_IN_BANK1,
1742           SDCC_FLOAT_REENT, SDCC_INT_LONG_REENT
1743         * device/include/mcs51/compiler.h: removed umlauts, added double
1744           underscore
1745
1746 2008-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
1747
1748         * src/SDCCptropt.c (ptrPseudoSymConvert): fixed bug 1536762
1749         * support/regression/tests/bug1536762.c: new, added
1750         * src/SDCCutil.c,
1751         * src/SDCCutil.h: added getBuildDate()
1752         * src/SDCCmain.c (printVersionInfo),
1753         * src/SDCCglue.c (initialComments): use getBuildDate() instead of
1754           __DATE__
1755         * src/*/ralloc.c: removed IS_OP_RUONLY macro
1756         * src/ds390/ralloc.c (packRegisters),
1757         * src/mcs51/ralloc.c (packRegisters),
1758         * src/z80/ralloc.c (packRegisters): applied fix for bug 1618050, thanks
1759           Robert Larice
1760         * support/regression/tests/bug1618050.c: new, added
1761         * src/SDCCsymt.h: fixed typo in DECLSPEC2TXT
1762         * support/regression/fwk/include/testfwk.h,
1763         * support/regression/tests/bug1838000.c: moved _AUTOMEM and _STATMEM to
1764           testfwk.h
1765
1766 2008-03-04 Raphael Neider <rneider AT web.de>
1767
1768         * src/pic/gen.c: removed unused prototypes, prevent internal errors
1769           on accessing OP_SYM_TYPE(op)
1770         * src/pic/gen.h: removed unused prototype of genMinusDec()
1771         * src/pic/genarith.c (genMinus): cosmetic changes, rewritten to
1772           fix #1876953 (invalid subtraction code), removed unused code
1773
1774 2008-03-03 Raphael Neider <rneider AT web.de>
1775
1776         * src/pic/gen.c,
1777         * src/pic/gen.h,
1778         * src/pic/genarith.c,
1779         * src/pic/ralloc.c,
1780         * src/pic/ralloc.h: removed AOP_R0, AOP_R1, AOP_DPTR, AOP_DPTR2,
1781           AOP_ACC, and *_IDX and adjusted code, removed unused legacy code
1782
1783 2008-03-03 Raphael Neider <rneider AT web.de>
1784
1785         * src/pic/device.c (find_device): search user-specified paths first
1786           for pic14devices.txt, fixes #1900827
1787
1788 2008-03-02 Borut Razem <borut.razem AT siol.net>
1789
1790         * support/scripts/sdcc.nsi: fixed bug in IsNT, LogicLib-isation of
1791           AddToPath and RemoveFromPath
1792
1793 2008-03-01 Borut Razem <borut.razem AT siol.net>
1794
1795         * support/scripts/sdcc.nsi: reverted MULTIUSER page since it didn't
1796           work correctly, added debugging support if -DSDCC.DEBUG command line
1797           option is defined
1798
1799 2008-02-28 Borut Razem <borut.razem AT siol.net>
1800
1801         * doc/sdccman.lyx: cosmetic changes
1802
1803 2008-02-28 Maarten Brock <sourceforge.brock AT dse.nl>
1804
1805         * src/mcs51/ralloc.c (fillGaps): fixed bug 1839671
1806         * doc/sdccman.lyx: fixed unmeant removal of spaces
1807
1808 2008-02-27 Borut Razem <borut.razem AT siol.net>
1809
1810         * support/scripts/sdcc.nsi: corrected installation directory for
1811           current user installation mode
1812         * doc/README.txt: added Philipp Klaus Krause to the developers list
1813
1814 2008-02-27 Maarten Brock <sourceforge.brock AT dse.nl>
1815
1816         * src/mcs51/gen.c (genUnpackBits): don't generate ifxJump, instead
1817           return ifx condition
1818           (genNearPointerGet, genPagedPointerGet, genFarPointerGet,
1819           genCodePointerGet, genGenPointerGet): cleanup aop before generating
1820             ifxJump to fix bug 1838000
1821         * src/SDCCsymt.c (aggregateToPointer): fix problem for xstack
1822         * support/regression/tests/bug1838000.c: new, added
1823         * device/include/mcs51/cc1110.h: new, added, thanks to Pravin Angolkar
1824
1825 2008-02-26 Borut Razem <borut.razem AT siol.net>
1826
1827         * src/SDCCast.c, doc/sdccman.lyx: fixed RFE #1901171: inerger promotion
1828           of casted varargs
1829         * support/scripts/sdcc.nsi: added MULTIUSER page,
1830           NSIS upgraded to version 2.35
1831
1832 2008-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
1833
1834         * src/mcs51/ralloc.c (isSpiltOnStack): fixed bug 1565152
1835         * support/regression/tests/bug1565152.c: new, added
1836
1837 2008-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
1838
1839         * src/mcs51/gen.c (genPagedPointerSet): fixed bug 1670148
1840         * support/regression/ports/mcs51-xstack-auto/spec.mk: added expf.c
1841         * support/regression/tests/bug1670148.c: new, added
1842
1843 2008-02-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1844
1845         * device/include/mcs51/at89c51ed2.h: fixed bug 1901469.
1846
1847 2008-02-24 Borut Razem <borut.razem AT siol.net>
1848
1849         * src/SDCCast.c, src/SDCCast.h: fixed bug #1874922: explicit typecast
1850           is ineffective for unsigned char parameter
1851
1852 2008-02-24 Maarten Brock <sourceforge.brock AT dse.nl>
1853
1854         * src/SDCCast.c (expandInlineFuncs): fixed bug 1875869
1855         * src/SDCCglue.c (printIvalBitFields): fixed bug 1806631
1856         * support/regression/tests/bitopcse.c: removed hc08 exception, see testfwk.h
1857         * support/Util/MySystem.c (my_system): output errorcode when verbose
1858
1859 2008-02-22 Philipp Klaus Krause <pkk AT spth.de>
1860
1861         * src/z80/gen.c (genMult): Rewrote 8-bit multiplication by constant,
1862           implements #1898231
1863
1864 2008-02-22 Philipp Klaus Krause <pkk AT spth.de>
1865
1866         * device/lib/z80/mul.s: Rewrote __muluchar_rrx_s, to improve 8-bit mult.,
1867           implements #1896290
1868
1869 2008-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
1870
1871         * src/SDCCast.c (createIvalStruct): fixed bug 1466761
1872
1873 2008-02-21 Borut Razem <borut.razem AT siol.net>
1874
1875         * support/regression/Makefile.in,
1876           support/regression/ports/ds390/spec.mk,
1877           support/regression/ports/hc08/spec.mk,
1878           support/regression/ports/mcs51-common/spec.mk,
1879           support/regression/ports/pic14/spec.mk,
1880           support/regression/ports/pic16/spec.mk,
1881           support/regression/ports/ucz80/spec.mk,
1882           support/regression/ports/xa51/spec.mk:
1883           added CFLAGS when compiling timeout
1884
1885 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
1886
1887         * support/regression/tests/bugs-1596270-1736867.c: Regression test for
1888           #1596270, #1736867
1889
1890 2008-02-20 Maarten Brock <sourceforge.brock AT dse.nl>
1891
1892         * src/SDCClrange.c (findPrevUse): fixed bug 1888147
1893         * support/regression/tests/bug1888147.c: new, added
1894
1895 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
1896
1897         * src/z80/gen.c: fixed bugs #1596270, #1736867
1898
1899 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
1900
1901         * src/z80/gen.c: fixed bug in register pair loading when swapping register
1902           contents, mostly fixes #1596270
1903
1904 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
1905
1906         * src/z80/peeph.def,
1907         * src/z80/peeph-z80.def: moved peephole that breaks gbz80 to z80-specific
1908           peepholes, fixes #1806565
1909
1910 2008-02-20 Maarten Brock <sourceforge.brock AT dse.nl>
1911
1912         * src/SDCCpeeph.c (operandBaseName): added check for @Ri
1913         * src/mcs51/peeph.def (rule 177.c): added operandsNotRelated(%1 %3)
1914           fixes bug 1739475, thanks Robert Larice
1915           (rule 271): new, added
1916
1917 2008-02-18 Borut Razem <borut.razem AT siol.net>
1918
1919         * sim/ucsim/s51.src/Makefile.in: fixed error made in previous commit
1920
1921 2008-02-17 Maarten Brock <sourceforge.brock AT dse.nl>
1922
1923         * src/SDCCmain.c (linkEdit): emit -z when using --debug for z80
1924
1925 2008-02-17 Raphael Neider <rneider AT web.de>
1926
1927         * src/pic16/genarith.c,
1928         * src/pic16/gen.c,
1929         * src/pic16/gen.h,
1930         * src/pic16/genutils.c: removed unused legacy code,
1931           removed unused fields from struct asmop and struct _G
1932
1933 2008-02-17 Raphael Neider <rneider AT web.de>
1934
1935         * src/pic16/gen.c (AccRsh): cosmetic changes,
1936           (shiftR1Left2ResultSigned,shiftR1Left2Result,shiftL1Left2Result,
1937           genRightShiftLiteral): fixed to work with SFRs as result by
1938           assigning only once to result,
1939           removed a lot of unused/excluded code fragments
1940
1941 2008-02-17 Raphael Neider <rneider AT web.de>
1942
1943         * device/include/pic/pic16f88.h,
1944         * device/include/pic/pic16f886.h,
1945         * device/include/pic/pic16f887.h: added TRISA6 and TRISA7
1946
1947 2008-02-17 Borut Razem <borut.razem AT siol.net>
1948
1949         * src/z80/peeph.def: applied patch
1950           #1893626: Optimize tail calls on Z80, thanks to Philipp Krause
1951         * src/z80/gen.c, src/z80/peeph.def: applied patch
1952           #1893510: Improve logical left shift on Z80, thanks to Philipp Krause
1953         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
1954           sim/ucsim/s51.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
1955           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
1956           sim/ucsim/main_in.mk: renamed libutil.a to libucsimutil.a in order to
1957           enable compilation on Mac OS X 10.5 (Leopard) and XCode v3.0
1958
1959 2008-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
1960
1961         * as/link/mcs51/aslink.dsp: removed SDK define
1962         * as/link/z80/clean.mk: brought in sync with other ports
1963         * as/link/z80/lklibr.c (SdccLib, fndsym): handle the dflag here too
1964         * as/hc08/Makefile.bcc,
1965         * as/mcs51/Makefile.bcc,
1966         * as/z80/Makefile.bcc: noice.c was moved to as/asxxsrc/
1967         * src/z80/main.c (_setValues): use the now capitalized -Z,
1968           (z80_port, gbz80_port): generate debug information when asked
1969
1970 2008-02-16 Borut Razem <borut.razem AT siol.net>
1971
1972         * as/z80/asmain.c, as/z80/asm.h, as/z80/asdata.c,
1973           as/link/z80/lkmain.c, as/z80/as_gbz80.dsp, as/z80/as_z80.dsp,
1974           as/z80/Makefile.in. as/z80/Makefile.bcc:
1975           applied patch #1893393: patch for as-z80 and link-z80 to generate
1976           cdb, thanks to Armin Diehl
1977         * as/*/asnoice.c, as/hc08/as_hc08.dsp, as/hc08/Makefile.in,
1978           as/mcs51/asx8051.dsp, as/mcs51/Makefile.in:
1979           asnoice.c moved to as/asxxsrc/asnoice.c
1980         * src/z80/peeph-gbz80.def: applied patch
1981           #1880235: Z80 return peephole, thanks to Philipp Krause
1982
1983 2008-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
1984
1985         * .version,
1986         * doc/sdccman.lyx: bumped version to 2.7.5
1987         * src/SDCCsymt.c (compareType, comparePtrType): fixed bug 1281583
1988
1989 2008-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
1990
1991         * device/include/pic16/stdlib.h,
1992         * device/lib/pic16/libc/stdlib/ltoa.c,
1993         * device/lib/pic16/libc/stdio/vfprintf.c: ascii strings are char*
1994
1995 2008-02-13 Borut Razem <borut.razem AT siol.net>
1996
1997         * src/SDCCmain.c, src/SDCCglue.c: fixed --c1mode
1998         * src/pic16/glue.c, src/SDCCast.c, src/SDCCast.h, src/SDCCBBlock.c,
1999           src/SDCCcse.c, src/SDCCglue.c, src/SDCCicode.c, src/SDCCloop.c,
2000           src/SDCCopt.c,  src/SDCCval.c:
2001           fixed bug #1890273: SDCC Warning 154 shows wrong filename
2002
2003 2008-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
2004
2005         * src/SDCCsymt.c (compareType): fixed bug 1309013
2006
2007 2008-02-09 Borut Razem <borut.razem AT siol.net>
2008
2009         * src/SDCCval.c, src/SDCCval.h:
2010           code cleaning, added function constChrVal()
2011         * src/SDCCglue.c, src/pic/glue.c, src/pic16/glue.c, src/SDCCast.c, src/SDCC.y:
2012           call constChrVal() instead constVal()
2013
2014 2008-02-01 Maarten Brock <sourceforge.brock AT dse.nl>
2015
2016         * src/SDCCast.c (resolveSymbols): added reentrancy check for parameters
2017           of function pointer
2018         * src/SDCCerr.h,
2019         * src/SDCCerr.c: changed warning W_NONRENT_ARGS to error E_NONRENT_ARGS
2020         * support/regression/tests/absolute.c: added TestStruct TestVar (see also
2021           bug 1859853)
2022
2023 2008-02-01 Raphael Neider <rneider AT web.de>
2024
2025         * device/include/pic/pic16f886.h,
2026         * device/include/pic/pic16f887.h: added RA6 and RA7
2027
2028 2008-01-24 Raphael Neider <rneider AT web.de>
2029
2030         * device/include/pic/pic16f88.h: added RA6 and RA7
2031         * device/lib/pic/libdev/disabled_pic16f886.c,
2032         * device/lib/pic/libdev/disabled_pic16f887.c: renamed and enabled
2033
2034         * src/pic16/devices.inc,
2035         * device/include/pic16/pic18f2423.h,
2036         * device/include/pic16/pic18f2523.h,
2037         * device/include/pic16/pic18fregs.h,
2038         * device/lib/pic16/pics.all
2039         * device/lib/pic16/libdev/pic18f2423.c,
2040         * device/lib/pic16/libdev/pic18f2523.c: added 18f2423 and 18f2523
2041         * device/lib/pic16/libio/i2c.ignore,
2042         * device/lib/pic16/libio/usart.ignore,
2043         * device/lib/pic16/libio/adc.ignore: ignore new devices
2044
2045 2008-01-23 Maarten Brock <sourceforge.brock AT dse.nl>
2046
2047         * src/SDCCast.c (createRMW): fixed bug 1582651
2048
2049 2008-01-20 Borut Razem <borut.razem AT siol.net>
2050
2051         * src/SDCCcse.c: partially fixed enhancement request
2052           #1793872 - multiply by -1 not collapsed
2053         * support/regression/tests/arithcsi.c: added regression test
2054
2055 2008-01-19 Maarten Brock <sourceforge.brock AT dse.nl>
2056
2057         * as/mcs51/asx8051.dsp: removed define SDK
2058         * as/mcs51/i51mch.c (machine): fixed bug 1865114
2059         * device/include/asm/ds390/features.h: fixed bug with ds390 & stack-auto
2060         * as/link/lklex.c,
2061         * as/link/mcs51/lkmain.c: used LKDIRSEP, LKDIRSEPSTR and LKOBJEXT,
2062           cosmetic changes, brought more in sync, changed old K&R to ANSI
2063
2064 2008-01-13 Borut Razem <borut.razem AT siol.net>
2065
2066         * support/scripts/sdcc.nsi: added Uninstall/reinstall page, ...
2067         * src/SDCCicode.c: fixed bug #1870216 - Error 122: dividing by zero
2068
2069 2007-12-30 Borut Razem <borut.razem AT siol.net>
2070
2071         * src/pic16/gen.c: fixed implementation of bitwise operations for
2072           pic16 target
2073         * support/regression/tests/bitwise.c: added test cases
2074
2075 2007-12-29 Borut Razem <borut.razem AT siol.net>
2076
2077         * src/SDCCasm.[ch]: renamed from asm[ch], use dbuf_getline(), ...
2078         * src/src.dsp, src/Makefile.bcc, src/Makefile.in, src/common.h,
2079           src/SDCCglue.c, src/xa51/main.c: asm.[ch] renamed to SDCCasm.[ch]
2080         * support/Util/dbuf_string.[ch]: added function dbuf_getline()
2081         * src/ds390/gen.c, src/hc08/gen.c, src/mcs51/gen.c, src/pic16/gen.c,
2082           src/pic/gen.c, src/z80/gen.c, src/xa51/gen.c, src/pic16/ralloc.c,
2083           src/pic16/pcode.[ch]: added const qualifier
2084         * as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
2085           as/mcs51/Makefile.bcc, as/mcs51/Makefile.in, as/mcs51/asx8051.dsp,
2086           as/z80/Makefile.bcc, as/z80/Makefile.in, as/z80/as_gbz80.dsp,
2087           as/z80/as_z80.dsp: added dbuf.[ch] and dbuf_string[ch] to project
2088         * as/asxxsrc/aslex.c: use dbuf_getline()
2089         * as/hc08/asdata.c, as/hc08/asexpr.c, as/hc08/asm.h, as/hc08/m08adr.c,
2090           as/mcs51/asdata.c, as/mcs51/asexpr.c, as/mcs51/asm.h,
2091           as/mcs51/i51adr.c, as/z80/asdata.c, as/z80/asexpr.c, as/z80/aslist.c,
2092           as/z80/asm.h, as/z80/z80adr.c:
2093           changed type of ib and ip to const char *
2094
2095 2007-12-28 Borut Razem <borut.razem AT siol.net>
2096
2097         * as/asxxsrc/aslex.c: moved from as/mcs51/aslex.c;
2098           introduced (readlin) - long lines are turuncated
2099         * as/hc08/as_hc08.dsp, as/mcs51/asx8051.dsp, as/z80/as_gbz80.dsp,
2100           as/z80/as_z80.dsp, as/hc08/Makefile.in, as/mcs51/Makefile.in,
2101           as/z80/Makefile.in: moved aslex.c to asxxsrc
2102         * as/hc08/aslex.c, as/z80/aslex.c: deleted
2103         * as/hc08/asmain.c, as/mcs51/asmain.c:
2104           added missing initialization of a_addr field
2105         * support/regression/tests/long_asm_line.c: added regtest for long
2106           assembler line
2107
2108 2007-12-22 Borut Razem <borut.razem AT siol.net>
2109
2110         * src/SDCC.lex: fixed bug #1852894: # character hangs the compiler
2111
2112 2007-12-20 Maarten Brock <sourceforge.brock AT dse.nl>
2113
2114         * src/SDCCsymt.c (computeType): fixed bug, thanks Fan Weiguang
2115
2116 2007-12-16 Borut Razem <borut.razem AT siol.net>
2117
2118         * device/include/pic16/stdbool.h: removed, since already exists in
2119          device/include/; this also fixes bitopcse.c regression test for pic16
2120          target
2121         * support/regression/fwk/inclusw/testfwk.h: added macro ASSERT_FAILED
2122         * src/pic16/glue.c: fixed bug #1851855: generic static pointer
2123           dereference doesn't work; covered by regression test bug1399290
2124
2125 2007-12-05 Borut Razem <borut.razem AT siol.net>
2126
2127         * doc/sdccman.lyx: fixed bug #1844509 - Correction to Manual 4.6.9
2128           Adding new PIC16
2129
2130 2007-12-01 Borut Razem <borut.razem AT siol.net>
2131
2132         * sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/mem.cc:
2133           corrected handling of the highest_valid_address
2134
2135 2007-11-17 Raphael Neider <rneider AT web.de>
2136
2137         * src/pic/main.c (_asmCmd): include debug arguments (-g as $3)
2138         * src/pic/glue.c (picglue): emit .file if --debug is given
2139
2140 2007-11-17 Raphael Neider <rneider AT web.de>
2141
2142         * src/pic16/genarith.c (pic16_genPlus, pic16_genMinus): take special
2143         care when left or right operand resides in result, fixes #1830220
2144
2145 2007-11-17 Borut Razem <borut.razem AT siol.net>
2146
2147         * src/SDCCglue.c, src/pic16/glue.c: reverted fix for bug
2148           #983491 - "Merge duplicate strings function is ineffective"
2149         * support/regression/tests/bug-983491.c: regtest disabled
2150         * as/asxxsrc: created
2151           as/asxxsrc/assym.c, as/asxxsrc/strcmpi.c: moved
2152           as/hc08/assym.c, as/mcs51/assym.c, as/strcmpi.c,
2153           as/z80/assym.c, as/hc08/asstore.c, as/mcs51/asstore.c: deleted
2154           as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
2155           as/hc08/asm.h, as/link/hc08/Makefile.bcc, as/link/hc08/Makefile.in,
2156           as/link/hc08/link_hc08.dsp, as/link/mcs51/Makefile.bcc,
2157           as/link/mcs51/Makefile.in, as/link/mcs51/aslink.dsp,
2158           as/link/z80/Makefile.in, as/link/z80/linkgbz80.dsp,
2159           as/link/z80/linkz80.dsp, as/mcs51/Makefile.bcc, as/mcs51/Makefile.in,
2160           as/mcs51/asm.h, as/mcs51/asx8051.dsp, as/z80/Makefile.bcc,
2161           as/z80/Makefile.in, as/z80/as_gbz80.dsp, as/z80/as_z80.dsp,
2162           as/z80/Makefile.as_hc08, as/mcs51/Makefile.asx8051: modified
2163           created as/asxxsrc directory, assym.c and strcpi.c moved into it
2164
2165 2007-11-15 Maarten Brock <sourceforge.brock AT dse.nl>
2166
2167         * device/include/stdarg.h: added and removed some casts
2168         * src/SDCCsymt.c (compareType): Fully check types between generic and
2169           non-generic pointers, also accept ptr-ptr to void-ptr assignments
2170
2171 2007-11-13 Borut Razem <borut.razem AT siol.net>
2172
2173         * support/regression/tests/bug-1817005.c:
2174           added regtest for bug #1817005 - as-z80 chokes on long labels
2175
2176 2007-11-12 Borut Razem <borut.razem AT siol.net>
2177
2178         * as/z80/asmain.c, as/z80/asm.h, as/z80/assym.c, as/z80/asdata.c,
2179           as/z80/asout.c, as/z80/aslist.c:
2180           fixed bug #1817005 - as-z80 chokes on long labels
2181
2182 2007-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
2183
2184         * as/hc08/asmain.c,
2185         * as/z80/asmain.c: cosmetic changes
2186         * as/hc08/alloc.h,
2187         * as/mcs51/alloc.h,
2188         * as/z80/alloc.h: removed
2189         * as/hc08/assym.c,
2190         * as/mcs51/assym.c: replaced alloc.h with stdlib.h
2191         * as/link/aslink.h: added LKDIRSEP and, LKDIRSEPSTR
2192         * as/link/hc08/Makefile.in,
2193         * as/link/mcs51/Makefile.in,
2194         * as/link/z80/Makefile.in: added -DUNIX to CFLAGS
2195         * as/link/lklex.c,
2196         * as/link/mcs51/lkarea.c,
2197         * as/link/mcs51/lkmain.c: cosmetic changes
2198         * as/link/hc08/lklibr.c,
2199         * as/link/z80/lklibr.c,
2200         * as/link/mcs51/lklibr.c: used LKDIRSEP, LKDIRSEPSTR and LKOBJEXT,
2201           used cygwin_conv_to_full_posix_path,
2202           added warnings, cosmetic changes, brought more in sync
2203           changed old K&R into ANSI function declarations
2204         * as/link/z80/lklibr.c (loadAdb): added
2205         * as/link/z80/lkmain.c: removed -- option from usage text
2206
2207 2007-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
2208
2209         * src/mcs51/gen.c (outBitC): optimized for no result
2210
2211 2007-10-31 Borut Razem <borut.razem AT siol.net>
2212
2213         * src/SDCCsymt.c: fixed (hopeful properly) bug
2214           #1805702 - order of extern matters
2215         * support/regression/tests/bug-1805702.c: enabled regtest for bug
2216           #1805702
2217
2218 2007-10-29 Borut Razem <borut.razem AT siol.net>
2219
2220         * src/SDCCsymt.c: reverted bad fixed of bug #1805702
2221           - order of extern matters
2222         * support/regression/tests/bug-1805702.c: disabled regtest for bug
2223           #1805702
2224
2225 2007-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
2226
2227         * src/ds390/peeph.def: replaced 24bitModeAndPortDS390 by
2228           24bitMode, portIsDS390
2229         * src/mcs51/gen.c (genOr): optimized for RFE 1750727
2230         * src/SDCCpeeph.c (flat24bitModeAndPortDS390): removed
2231           (notVolatileVariable): also check sloc names,
2232           (callFuncByName): moved ftab[] out of function and sorted it by use
2233
2234 2007-10-28 Maarten Brock <sourceforge.brock AT dse.nl>
2235
2236         * device/include/stdarg.h: fixed bug in va_start macro for --xstack
2237         * src/hc08/gen.c (aopForRemat): aop->aopu.aop_immd.from_cast_remat not set,
2238           aop->aopu.aop_immd.aop_immd2 not filled with (generic) pointer type
2239         * src/SDCCicode.c (geniCodeCast): fixed bug 880197
2240         * support/regression/tests/bug-880197.c: new, added
2241
2242 2007-10-28 Borut Razem <borut.razem AT siol.net>
2243
2244         * support/regression/Makefile.in,
2245           support/regression/ports/mcs51-large/spec.mk,
2246           support/regression/ports/mcs51-xstack-auto/spec.mk,
2247           support/regression/ports/mcs51-stack-auto/spec.mk,
2248           support/regression/ports/mcs51-medium/spec.mk,
2249           support/regression/ports/mcs51-common/spec.mk,
2250           support/regression/ports/mcs51-common/*,
2251           support/regression/ports/mcs51-small/*:
2252           mcs51 renamed to mcs51-common, created mcs51-small
2253         * src/SDCCsymt.c: fixed bug #1805702 - order of extern matters
2254         * support/regression/tests/bug-1805702.c: added regtest for bug
2255           #1805702
2256
2257 2007-10-26 Maarten Brock <sourceforge.brock AT dse.nl>
2258
2259         * src/mcs51/peeph.def: moved rules 257.x to 253.x and re-enabled 253.b,
2260           added new rules 265 - 270
2261         * support/regression/tests/bug1721024.c:new, added
2262         * support/regression/Makefile.in: renamed test-mcs51 to test-mcs51-small,
2263           introduced new test-mcs51 to run all mcs51 tests
2264
2265 2007-10-25 Maarten Brock <sourceforge.brock AT dse.nl>
2266
2267         * support/regression/tests/bug1816470.c: new, added
2268
2269 2007-10-21 Maarten Brock <sourceforge.brock AT dse.nl>
2270
2271         * src/SDCCast.c (resultTypePropagate): do propagate for LEFT_OP, do not
2272           propagate for *,+,- with float, fixed bug 1816470
2273           (decorateType): cast to resultTypeProp instead of resultType
2274
2275 2007-10-19 Borut Razem <borut.razem AT siol.net>
2276
2277         * src/pic16/glue.c: fixed bug #983491 - "Merge duplicate strings
2278           function is ineffective" for pic16 tareget
2279         * support/scripts/listerr.c: corrected include path
2280         * device/lib/_itoa.c: fixed bug #1806402 - _itoa and _uitoa leak to
2281           adjacent memory
2282
2283 2007-10-18 Maarten Brock <sourceforge.brock AT dse.nl>
2284
2285         * support/regression/tests/using.c: new, added
2286         * support/regression/tests/vaargs.c: fixed and enabled test
2287
2288 2007-10-18 Borut Razem <borut.razem AT siol.net>
2289
2290         * src/SDCCglue.c: fixed bug #983491 - Merge duplicate strings function
2291           is ineffective
2292         * support/regression/tests/bug-983491.c: added regtest for bug #983491
2293
2294 2007-10-18 Maarten Brock <sourceforge.brock AT dse.nl>
2295
2296         * doc/sdccman.lyx: documented option --Werror
2297         * src/SDCCsymt.c (checkFunction): fixed bug 1815418 by setting
2298           RegBankUsed[] earlier
2299
2300 2007-10-14 Maarten Brock <sourceforge.brock AT dse.nl>
2301
2302         * device/include/mcs51/p89lpc938.h: new, added, thanks Kyle Guinn
2303         * src/pic/glue.c,
2304         * src/SDCCval.c,
2305         * src/SDCCast.c,
2306         * src/SDCCast.h: replaced AST_LIT_VALUE with AST_FLOAT_VALUE and
2307           AST_ULONG_VALUE
2308         * src/SDCCast.c (decorateType): improved optimization of tri-op
2309         * src/SDCCerr.c (vwerror, setWError),
2310         * src/SDCCerr.h,
2311         * src/SDCCmain.c (parseCmdLine): added option --Werror to treat all
2312           warnings as errors, thanks Stas Sergeev for PATCH 1813211
2313
2314 2007-10-13 Maarten Brock <sourceforge.brock AT dse.nl>
2315
2316         * src/mcs51/gen.c (leftRightUseAcc): use macro IS_OP_ACCUSE
2317         * src/SDCCast.c (decorateType): optimize bit=cond?1:0, RFE 1738430
2318         * support/regression/tests/bug-223113.c,
2319         * support/regression/tests/bug-426632.c,
2320         * support/regression/tests/bug-468811.c,
2321         * support/regression/tests/bug-477835.c,
2322         * support/regression/tests/bug-478094.c,
2323         * support/regression/tests/bug-499644.c,
2324         * support/regression/tests/bug-524209.c,
2325         * support/regression/tests/bug-524211.c,
2326         * support/regression/tests/packcast.c,
2327         * support/regression/tests/structidx.c: added empty tests
2328         * support/regression/tests/bug-607243.c: enabled test
2329
2330 2007-10-06 Borut Razem <borut.razem AT siol.net>
2331
2332         * .version, doc/sdccman.lyx: bumped version to 2.7.4 to indicate the full
2333            support of universal binaries on Mac OS X
2334
2335 2007-10-02 Borut Razem <borut.razem AT siol.net>
2336
2337         * src/SDCCval.h: unified double2ul macro for all platforms
2338         * src/SDCCval.c: fixed bug #1777758 - applied Maarten's patch
2339         * support/regression/tests/bitwise.c: added regtest for bug #1777758
2340
2341 2007-09-30 Borut Razem <borut.razem AT siol.net>
2342
2343         * src/SDCCval.h: fixed bug #1739860 - sdcc does not work correctly on some
2344           platforms
2345         * sdcc_vc_in.h: enabled warnings
2346         * src/hc08/gen.c: fixed MSVC warning C4146: unary minus operator applied to
2347           unsigned type, result still unsigned
2348         * src/mcs51/peep.c: fixed gcc warning: suggest parentheses around && within ||
2349
2350 2007-09-28 Raphael Neider <rneider AT web.de>
2351
2352         * src/pic/device.c (find_device): prevent buffer underflow error
2353         * src/pic/pcoderegs.c (OptimizeRegUsage): avoid dereferencing
2354           the just destroyed list entry
2355
2356 2007-09-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2357
2358         * doc/sdccman.lyx: there's a dedicated wiki page for cmake and sdcc, thanks
2359           Alexander Neundorf
2360
2361 2007-09-18 Borut Razem <borut.razem AT siol.net>
2362
2363         * src/SDCCval.c: fixed MSVC warning C4146: unary minus operator
2364          applied to unsigned type, result still unsigned
2365
2366 2007-09-17 Borut Razem <borut.razem AT siol.net>
2367
2368         * src/SDCC.y, src/SDCCast.c, src/SDCCcse.c, src/SDCCglue.c,
2369           src/SDCCicode.c, src/SDCCopt.c, src/SDCCsymt.c, src/SDCCval.c,
2370           src/SDCCval.h, src/hc08/gen.c, src/avr/gen.c, src/ds390/gen.c,
2371           src/mcs51/gen.c, src/pic/gen.c, src/pic/genarith.c, src/pic/glue.c,
2372           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/genarith.c,
2373           src/pic16/genutils.c, src/pic16/glue.c, src/pic16/main.c,
2374           src/z80/gen.c, src/z80/ralloc.c:
2375           fixed bug #1739860 - sdcc does not work correctly on some platforms
2376           (not finished)
2377           introduced and used ulFromVal(), double2ul(), used strtod() instead sscanf()
2378
2379 2007-09-17 Raphael Neider <rneider AT web.de>
2380
2381         * src/pic16/device.c: reverted to previous version
2382         * device/lib/pic16/Makefile.common.in: quieten gpasm via -Wa,-q
2383
2384 2007-09-16 Raphael Neider <rneider AT web.de>
2385
2386         * src/pic16/device.c (pic16_dump_usection): do not reserve 0 bytes,
2387           as this raises a ton of gpasm warnings, just emit a second label
2388         * src/pic16/devices.inc,
2389         * device/lib/pic16/pics.all,
2390         * device/lib/pic16/libdev/pic18f2585.c,
2391         * device/lib/pic16/libdev/pic18f2680.c,
2392         * device/lib/pic16/libdev/pic18f2682.c,
2393         * device/lib/pic16/libdev/pic18f2685.c,
2394         * device/lib/pic16/libdev/pic18f4585.c,
2395         * device/lib/pic16/libdev/pic18f4680.c,
2396         * device/lib/pic16/libdev/pic18f4682.c,
2397         * device/lib/pic16/libdev/pic18f4685.c,
2398         * device/include/pic16/pic18f2585.h,
2399         * device/include/pic16/pic18f2680.h,
2400         * device/include/pic16/pic18f2682.h,
2401         * device/include/pic16/pic18f2685.h,
2402         * device/include/pic16/pic18f4585.h,
2403         * device/include/pic16/pic18f4680.h,
2404         * device/include/pic16/pic18f4682.h,
2405         * device/include/pic16/pic18f4685.h,
2406         * device/include/pic16/pic18fregs.h: added 18f2585, 18f2680,
2407           18f2682, 18f2685, 18f4585, 18f4680, 18f4682, 18f4685,
2408           patch contributed by Anton Strobl, applied with changes
2409
2410 2007-09-16 Raphael Neider <rneider AT web.de>
2411
2412         * device/include/pic16/pic18f2431.h,
2413         * device/include/pic16/pic18f25j10.h,
2414         * device/include/pic16/pic18f4431.h,
2415         * device/include/pic16/pic18f45j10.h: adopted common include style
2416         * device/include/pic16/pic18f1320.h,
2417         * device/include/pic16/pic18f2320.h,
2418         * device/include/pic16/pic18f2525.h,
2419         * device/include/pic16/pic18f4320.h,
2420         * device/include/pic16/pic18f4525.h: NEW, just include proper .h file
2421         * device/include/pic16/pic18fregs.h: prepared for automatic include
2422           file selection by having DEVICE.h for every DEVICE
2423         * device/lib/pic16/libdev/pic18f2320.c,
2424         * device/lib/pic16/libdev/pic18f4320.c: just include proper .c file
2425
2426         * device/lib/pic16/configure.in,
2427         * device/lib/pic16/configure: use rm -rf instead of rmdir
2428         * device/lib/pic16/Makefile.in: use RMDIR to remove build directories
2429         * device/lib/pic16/libc/stdlib/free.c: avoid warning on pointer cast
2430
2431 2007-09-09 Borut Razem <borut.razem AT siol.net>
2432
2433         * src/SDCCmain.c, src/SDCCutil.c: print newline after printVersionInfo(),
2434           distingush between i386 and ppc Mac OS X versions
2435
2436 2007-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
2437
2438         * src/mcs51/gen.c (genReceive): fixed bug 1788177
2439         * support/regression/tests/bug1788177.c: new, added
2440
2441 2007-09-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2442
2443         * doc/sdccman.lyx: mentioned d52 and cmake, customizing startup code
2444         * device/include/mcs51/lint.h added keyword __naked
2445
2446 2007-09-04 Maarten Brock <sourceforge.brock AT dse.nl>
2447
2448         * src/pic16/glue.c,
2449         * src/pic/glue.c,
2450         * src/SDCCmem.h: removed maxRegBank
2451         * src/SDCCmem.c (allocVariables): removed maxRegBank and moved setting
2452           RegBankUsed[] to checkFunction() in SDCCsymt.c to fix bug 1759839
2453         * src/SDCCsymt.c (checkFunction): set RegBankUsed[] here
2454         * src/mcs51/peep.c (isCallerSaveFunc, termScanAtFunc): changed function
2455           name and behaviour to handle banked functions
2456           (scan4op): and use it to fix bug 1786213
2457
2458 2007-09-03 Raphael Neider <rneider AT web.de>
2459
2460         * device/include/pic16/pic18f248.h,
2461         * device/include/pic16/pic18f258.h,
2462         * device/include/pic16/pic18f448.h,
2463         * device/lib/pic16/libdev/pic18f248.c,
2464         * device/lib/pic16/libdev/pic18f258.c,
2465         * device/lib/pic16/libdev/pic18f448.c: fixed TRISEbits,
2466           added T0CONbits, fixes #1786891
2467
2468 2007-08-29 Maarten Brock <sourceforge.brock AT dse.nl>
2469
2470         * src/ds390/gen.c (genFarPointerSet),
2471         * src/hc08/ralloc.c (packRegisters),
2472         * src/mcs51/ralloc.c (packRegisters),
2473         * src/SDCCcse.c (cseBBlock): check if result is a symbol first to fix
2474           bug 1750318
2475         * src/SDCCicode.h: POINTER_SET can be true for literals too
2476         * support/regression/tests/bug1750318.c: new, added
2477
2478 2007-08-23 Borut Razem <borut.razem AT siol.net>
2479
2480         * debugger/mcs51/sdcdb.c: fixed compilation with older readline
2481           library versions without the completition functionality
2482
2483 2007-08-22 Raphael Neider <rneider AT web.de>
2484
2485         * device/include/pic16/pic18f1220.h,
2486         * device/lib/pic16/libdev/pic18f1220.c: applied patch #1776191
2487
2488 2007-08-12 Borut Razem <borut.razem AT siol.net>
2489
2490         * debugger/mcs51/Makefile.in: support/Util/SDCCerr.[ch] moved to src
2491
2492 2007-08-11 Borut Razem <borut.razem AT siol.net>
2493
2494         * support/Util/SDCCerr.c, support/Util/SDCCerr.h, src/src.dsp,
2495           src/Makefile.in, src/Makefile.bcc, support/scripts/listerr.c:
2496           support/Util/SDCCerr.[ch] moved to src
2497         * as/hc08/as_hc08.dsp, as/link/hc08/link_hc08.dsp,
2498           as/link/z80/linkgbz80.dsp, as/link/z80/linkz80.dsp,
2499           device/examples/ds390/tinitalk/tinitalk.dsp,
2500           device/examples/serialcomm/windows/serialcomm.dsp,
2501           support/librarian/librarian.dsp:
2502           removed linking of unused odbc32.lib and odbccp32.lib
2503         * support/scripts/winres.h:
2504           added for compilation with Visual C++ 2005 Express Edition
2505
2506 2007-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2507
2508         * device/include/mcs51/at89c51ed.h: Fixed typo in declarations of CKCON0
2509           and CKCON1.
2510
2511 2007-08-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2512
2513         * sdccconf_in.h: update the endian test so that SPARC Solaris
2514           does not throw syntax errors
2515
2516 2007-08-06 Borut Razem <borut.razem AT siol.net>
2517
2518         * doc/sdccman.lyx: removed two index entries which prevented the
2519           generation of sdcc doc archive
2520
2521 2007-08-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2522
2523         * doc/sdccman.lyx: Same changes made 2007-07-28 but using lyx 1.4.4
2524           instead of lyx 1.5.0.
2525
2526 2007-07-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2527
2528         * device/include/hc08/mc68hc908apxx.h: new header contributed by
2529           Lucas Loizaga, with minor modifications. Thanks!
2530
2531 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2532
2533         * doc/sdccman.lyx: Documented --acall-ajmp and described new features
2534           in sdcclib.
2535
2536 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2537
2538         * src/SDCCglobl.h, src/SDCCpeeph.c, src/SDCCglue.c, src/mcs51/main.c,
2539           src/mcs51/peeph.def: Added option --acall-ajmp: replaces lcall/ljmp
2540           with acall/ajmp.
2541
2542 2007-07-22 Borut Razem <borut.razem AT siol.net>
2543
2544         * configure.in, configure: re-introduced .version
2545         * sdcc.spec, doc/INSTALL.txt: they are used only for releases;
2546           the version reverted to 2.7.0
2547
2548 2007-07-18 Maarten Brock <sourceforge.brock AT dse.nl>
2549
2550         * configure.in,
2551         * doc/sdccman.lyx: bumped version to 2.7.3
2552         * device/include/mcs51/compiler.h: fixed elif->else
2553         * src/mcs51/gen.c (genAnd, genOr): handle accuse for pure bit operands
2554         * src/mcs51/ralloc.c (createStackSpil): fixed SCLS bug with sloc for sbit,
2555           (operandUsesAcc, packRegsForAccUse): added parameter allowBitspace to
2556            enable accuse for bit operands
2557         * src/SDCCmain.c (printVersionInfo),
2558         * src/SDCCutil.c (getBuildEnvironment): factored out creation of build
2559           environment descriptor
2560         * src/SDCCutil.h: added getBuildEnvironment
2561         * src/SDCCglue.c (initialComments): use getBuildEnvironment
2562         * support/regression/tests/bug1464657.c: enabled test test_Peephole251
2563         * support/regression/tests/bug-408972.c: enabled test leftShiftLong
2564         * support/regression/tests/bug1348008.c,
2565         * support/regression/tests/bug1496419.c,
2566         * support/regression/tests/bug1503067.c,
2567         * support/regression/tests/preproc.c: added empty tests
2568
2569 2007-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
2570
2571         * support/regression/tests/bug1678803.c: new, added
2572
2573 2007-07-14 Maarten Brock <sourceforge.brock AT dse.nl>
2574
2575         * as/link/aslink.h,
2576         * as/link/hc08/lkihx.c,
2577         * as/link/hc08/lkrloc.c,
2578         * as/link/mcs51/lkihx.c,
2579         * as/link/mcs51/lkrloc.c: renamed ihxEntendedLinearAddress to
2580           ihxExtendedLinearAddress
2581         * as/link/mcs51/lkrloc.c (relr),
2582         * as/mcs51/asout.c (outr11, outr19): handle absolute destination for
2583           acall/ajmp, see bug 830513
2584
2585 2007-07-13 Maarten Brock <sourceforge.brock AT dse.nl>
2586
2587         * src/SDCCcse.c (replaceAllSymBySym): renamed siaddr to isaddr,
2588           (cseBBlock): remember aggr2ptr has been used
2589         * src/SDCCicode.c (operandSize): added function to handle aggr2ptr,
2590           (geniCodeAssign): fixed bug 868103
2591         * src/SDCCicode.h: made operand.aggr2ptr 2 bits wide,
2592           added operandSize prototype
2593         * src/mcs51/gen.c (aopOp): use operandSize to fix bug 868103,
2594           (genDataPointerSet): use max of size of right and result,
2595           (gencjne): added parameter useCarry for optimization,
2596           (genCmpEq): use carry if appropriate,
2597           (genXor): check if operand already in carry
2598         * support/regression/tests/bug-868103.c: enabled test
2599
2600 2007-07-12 Raphael Neider <rneider AT web.de>
2601
2602         * src/pic16/gen.c (genNearPointerSet): fixed handling of literals
2603
2604 2007-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
2605
2606         * src/SDCCsymt.c (compareType): fixed bugs 1738367 and 1745717 with patch
2607           from Robert Larice, thanks
2608         * support/regression/tests/bitopcse.c,
2609         * support/regression/tests/bitvars.c,
2610         * support/regression/tests/bug-908454.c: use <stdbool.h> for the bit types
2611         * support/regression/tests/bug-927659.c: enabled test for z80
2612         * support/regression/tests/bug1738367.c: added extra tests by Frieder
2613         * support/regression/tests/bug1745717.c: new, added
2614         * support/regression/tests/literalop.c,
2615         * support/regression/tests/nullstring.c: removed storage definitions that
2616           are now in testfwk.h
2617
2618 2007-07-10 Maarten Brock <sourceforge.brock AT dse.nl>
2619
2620         * device/include/stdbool.h: do not define __bool_true_false_are_defined
2621           and bool for targets that do not fully support it.
2622         * support/regression/tests/bug1546986.c,
2623         * support/regression/tests/bug1723128.c,
2624         * support/regression/tests/bug1734654.c,
2625         * support/regression/tests/bug1738367.c,
2626         * support/regression/tests/constantRange.c: only use bool if allowed
2627
2628 2007-07-09 Maarten Brock <sourceforge.brock AT dse.nl>
2629
2630         * src/mcs51/peep.c (isCallerSaveFunc): fixed bug 1749275, thanks Robert
2631           Larice, also handle function pointers
2632         * support/regression/tests/bug1749275.c: new, added
2633
2634 2007-07-03 Borut Razem <borut.razem AT siol.net>
2635
2636         * src/mcs51/gen.c, src/avr/gen.c, src/pic/gen.c, src/z80/gen.c,
2637           src/pic16/gen.c, src/hc08/gen.c, src/ds390/gen.c: fixed RFE
2638           #1746528: SDCC should ignore ':' in inline assembler comments
2639         * device/include/typeof.h: fixed bug #1747142: typeof.h needs fixing
2640
2641 2007-07-02 Maarten Brock <sourceforge.brock AT dse.nl>
2642
2643         * device/include/mcs51/C8051F360.h: fixed bug #1746410, thanks Chris Jones
2644         * device/lib/mcs51/crtxclear.asm: do not set __XPAGE unconditionally
2645
2646 2007-06-29 Borut Razem <borut.razem AT siol.net>
2647
2648         * src/SDCCmain.c: fixed bug
2649           #1744746: SDCC #4867: broken option --xram-size
2650
2651 2007-06-28 Borut Razem <borut.razem AT siol.net>
2652
2653         * sim/ucsim/configure.in, sim/ucsim/configure, sim/ucsim/ddconfig_in.h:
2654           find out the endianess of host machine for ucsim
2655
2656 2007-06-27 Borut Razem <borut.razem AT siol.net>
2657
2658         * support/regression/generate-cases.py: corrected the file name
2659           in warning
2660         * configure.in, configure, sdccconf_in.h: find out the endianess of
2661           host machine
2662         * src/SDCC.y: fixed bug #1744146: Crash when compiling array of
2663           negative size
2664
2665 2007-06-27 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
2666
2667         * device/include/mcs51/p89c66x.h: NXP header file, OK to change licence
2668
2669 2007-06-26 Borut Razem <borut.razem AT siol.net>
2670
2671         * support/regression/generate-cases.py: display warning if function
2672           list is empty; implemented more flexible rule for detection of
2673           testing functions, allowing return type 'void' in the same line as
2674           the function name in the function definition
2675         * support/regression/tests/bug-1654060.c: corrected test
2676         * support/librarian/sdcclib.c: fixed warning:
2677           format '%s' expects type 'char *', but argument 2 has type 'int'
2678
2679 2007-06-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2680
2681         * support/librarian/sdcclib.c: Added feature Requests [1510635]
2682           Multiple infiles for sdcclib.
2683
2684 2007-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2685
2686         * src/SDCCast.c (inlineFindMaxBlockno, createFunction): fixed
2687           bug 1731741
2688
2689 2007-06-18 Borut Razem <borut.razem AT siol.net>
2690
2691         * src/SDCCmain.c: removed option -C since SDCC compiler doesn't know
2692           how to handle comments, so they have to be removed by the
2693           preprocessor; fixed bug #1738926:SDCC #4852: broken option -V
2694         * src/SDCCmain.c, src/SDCCargs.h, src/ds390/main.c, src/mcs15/main.c,
2695           src/pic16/main.c, src/pic/main.c, src/z80/main.c,
2696           support/Util/SDCCerr.c, support/Util/SDCCerr.h:
2697           table driven option hadling
2698
2699 2007-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
2700
2701         * src/SDCCast.c (decorateType),
2702         * src/SDCCicode.c (geniCodeConditional): moved optimization for '?' from
2703           iCode to ast level to fix bug 1738367
2704         * support/regression/tests/bug1738367.c: new, added
2705
2706 2007-06-15 Raphael Neider <rneider AT web.de>
2707
2708         * src/pic16/devices.inc,
2709         * device/lib/pic16/pics.all,
2710         * device/include/pic16/pic18fregs.h,
2711         * device/include/pic16/pic18f[24][45]20.h,
2712         * device/lib/pic16/libdev/pic18f[24][45]20.c: added support for
2713           18f2420, 18f2520, and 18f4420 devices, updated 18f4520 definitions
2714         * device/lib/pic16/Makefile.in: faster cleanup
2715
2716 2007-06-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2717
2718         * src/mcs51/peeph.def: added 177.i (mov from a is slightly cheaper)
2719
2720 2007-06-13 Raphael Neider <rneider AT web.de>
2721
2722         * src/SDCCmain.c: prevent NULL pointer dereference, avoid warning
2723
2724 2007-06-12 Raphael Neider <rneider AT web.de>
2725
2726         * support/scripts/inc2h.pl: conditionally emit defines for SFR bits,
2727           suppress bit defines if NO_BIT_DEFINES is #define'd
2728         * device/include/pic/pic*.h: recreated all headers to include
2729           conditional bit defines
2730         * device/include/pic/pic16f886.h,
2731         * device/include/pic/pic16f887.h: fixed based on newer .inc file
2732         * device/include/pic/recreate.sh: script to recreate the complete
2733           device library files based on the currently supported devices
2734
2735 2007-06-12 Borut Razem <borut.razem AT siol.net>
2736
2737         * src/pic16/main.c, src/SDCCargs.h, SDCCmain.c,
2738           support/regression/Makefile.in, support/scripts/build.mak,
2739           support/scripts/Makefile.snapshot:
2740           use new svn URL scheme
2741         * doc/sdccman.lyx: SDCC Wiki moved to
2742           http://sdcc.wiki.sourceforge.net/
2743
2744 2007-06-10 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2745
2746         * src/mcs51/peeph.def: disabled rule 132.d to fix #1734654
2747         * support/regression/tests/bug1734654.c: added
2748
2749 2007-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
2750
2751         * src/SDCCast.c (decorateType): optimized '?' for equal operands
2752         * src/SDCCicode.c (geniCodeConditional): optimization for bit result
2753           with literal operands
2754
2755 2007-06-10 Borut Razem <borut.razem AT siol.net>
2756
2757         * as/link/z80/lklibr.c: fixed mingw build warning
2758           lklibr.c:575: warning: implicit declaration of function 'tolower'
2759         * src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c,
2760           src/z80/main.c: move target specific options from src/SDCCmain.c
2761           to src/<target>/main.c
2762
2763 2007-06-09 Borut Razem <borut.razem AT siol.net>
2764
2765         * src/z80/gen.c: fixed bug #1294691: nested ifs make compiler crash;
2766           removed unused swap_sense; removed outBitCLong, replaced with outBitC
2767         * support/regression/tests/bug-1294691.c: added
2768
2769 2007-06-09 Maarten Brock <sourceforge.brock AT dse.nl>
2770
2771         * src/SDCCmem.c (allocDefault): removed check sym->level==0 for SPEC_ABSA,
2772           can also be static, fixes bug 1733438
2773         * src/SDCCsymt.c (checkSClass): static local vars in reentrant funcs can
2774           have absolute address too
2775           (computeType): added optimization for 'cond ? true : false'
2776         * support/regression/tests/absolute.c: added test for static absolute var
2777
2778 2007-06-08 Raphael Neider <rneider AT web.de>
2779
2780         * src/regression/Makefile: suppress parallel builds, allow easy
2781           switching between pic14/pic16 ports
2782         * src/regression/picregs.h: added pic14/16 header file switch
2783         * src/regression/{compare7.c,compare8.c,compare9.c,compare10.c,
2784           inline.c,nestfor.c,string1.c}: include "picregs.h"
2785
2786 2007-06-07 Borut Razem <borut.razem AT siol.net>
2787
2788         * sim/ucsim/*.[ch], sim/ucsim/configure, sim/ucsim/configure.in:
2789           permanent solution to suppress GCC 4.2.0 c++ warning:
2790           deprecated conversion from string constant to `char *'
2791           use 'const char *' where ever required
2792         * support/regression/generate-cases.py: implemented more flexible rule
2793           for detection of testing functions, allowing white-spaces surrounding
2794           the function name and the 'void' parameter.
2795         * support/regression/tests/constantRange.c,
2796           support/regression/tests/scott-compare3.c: fixed failing regression
2797           tests, uncovered by implementation of more flexible rule for detection
2798           of testing functions
2799
2800 2007-06-04 Maarten Brock <sourceforge.brock AT dse.nl>
2801
2802         * src/SDCCast.c(decorateType): better optimize '!!' and comparisons
2803
2804 2007-06-04 Borut Razem <borut.razem AT siol.net>
2805
2806         * configure.in, configure, config_vc.awk: sdcc version number is now
2807           stored in configure.in; removed .version
2808         * configure.in, configure, sdcc.spec, doc/sdccman.lyx, doc/sdccman.lyx,
2809           doc/INSTALL.txt: version bumped to 2.7.2
2810         * sim/ucsim/configure.in, sim/ucsim/configure:
2811           use "read" to read from .version
2812
2813 2007-06-03 Borut Razem <borut.razem AT siol.net>
2814
2815         * */Makefile.in: removed annoying warning:
2816           Makefile:xx: Makefile.dep: No such file or directory
2817
2818 2007-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
2819
2820         * src/mcs51/gen.c (outBitC, genRet): used IS_OP_RUONLY,
2821           (genNot, genXor): used toCarry, also fixes a bug for c = bit ^ val
2822         * src/mcs51/ralloc.c: removed IS_OP_RUONLY + some cosmetic changes
2823         * src/SDCCast.c (resultTypePropagate): propagate for '!',
2824           (decorateType): also optimize comparisons with RESULT_TYPE_BIT,
2825           bugfix: only use newBoolLink for bit result type
2826         * src/SDCCicode.c (geniCodeLogic): added param tree,
2827           bugfix: use newBoolLink if tree is bit type, bug appears when ruonly,
2828           (geniCodeLogicAndOr): use IS_BIT,
2829           (geniCodeJumpTable, geniCodeSwitch): added NULL param to geniCodeLogic,
2830           (ast2iCode): added tree param to geniCodeLogic for comparisons
2831         * src/SDCCsymt.h: added IS_OP_RUONLY and IS_OP_ACCUSE
2832         * support/regression/tests/bug1723128.c: added test NotZero
2833
2834 2007-06-01 Borut Razem <borut.razem AT siol.net>
2835
2836         * SDCPP synchronized with GCC CPP release version 4.2.0,
2837           currently the latest release:
2838         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
2839           support/cpp2/c-ppoutput.c, support/cpp2/cppdefault.c,
2840           support/cpp2/cppdefault.h, support/cpp2/except.h,
2841           support/cpp2/libcpp/directives.c, support/cpp2/libcpp/expr.c,
2842           support/cpp2/libcpp/files.c, support/cpp2/libcpp/include/cpplib.h,
2843           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
2844           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/macro.c,
2845           support/cpp2/libcpp/mkdeps.c, support/cpp2/libiberty/getpwd.c,
2846           support/cpp2/libiberty/hashtab.c, support/cpp2/optc-gen.awk,
2847           support/cpp2/opth-gen.awk, support/cpp2/opts.c,
2848           support/cpp2/opts.h, support/cpp2/output.h,
2849           support/cpp2/prefix.c, support/cpp2/sdcpp-opts.c,
2850           support/cpp2/sdcpp.dsp, support/cpp2/sdcpp.opt,
2851           support/cpp2/system.h, support/cpp2/version.c,
2852           support/cpp2/Makefile.in: modified
2853         * support/cpp2/opts-common.c: added
2854         * device/lib/pic16/libdev/pic18f[24][45]j10.c: fixed svn atrributes
2855         * device/lib/pic16/libdev/pic18f[24]5j10.c:
2856           search for included source file in local directory
2857         * sim/ucsim/configure, sim/ucsim/configure.in:
2858           temporary solution to suppress GCC 4.2.0 c++ warning:
2859           deprecated conversion from string constant to `char *'
2860
2861 2007-06-01 Raphael Neider <rneider AT web.de>
2862
2863         * device/lib/pic/libdev/pic12f683.c,
2864         * device/include/pic/pic12f683.h: added GPIO bits
2865
2866 2007-06-01 Raphael Neider <rneider AT web.de>
2867
2868         * doc/sdccman.lyx: added --disable-pic16-port, fixed some `--' and
2869           quotation marks, clarified role of PIC14 vs. PIC16 ports
2870         * src/pic16/devices.inc,
2871         * device/include/pic16/pic18fregs.h,
2872         * device/include/pic16/pic18f[24][45]j10.h,
2873         * device/lib/pic16/pics.all,
2874         * device/lib/pic16/libdev/pic18f[24][45]j10.c: added support for
2875           18f24j10, 18f25j10, 18f44j10, and 18f45j10
2876         * device/lib/pic16/libio/{i2c,adc,usart}.ignore: do not build IO libs
2877           for new devices as they are not yet supported by gputils
2878
2879 2007-05-31 Borut Razem <borut.razem AT siol.net>
2880
2881         * Small Device C Compiler 2.7.0 released
2882         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
2883           changed sdcc version to 2.7.1
2884         * support/scripts/sdcc.nsi: added How to create WIN32 release
2885           setup.exe package
2886
2887 2007-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
2888
2889         * doc/sdccman.lyx: documented initialization and allocation of absolute
2890           variables, bit parameter passing, the need for function pointers to be
2891           reentrant and alpha quality support of inline and retrict
2892
2893 2007-05-26 Borut Razem <borut.razem AT siol.net>
2894
2895         * support/regression/tests/bug1057979.c, support/regression/tests/malloc.c,
2896           support/regression/fwk/include/testfwk.h: fixed compilation on Mac OS x
2897         * docs/knownbugs.html: updated
2898
2899 2007-05-25 Maarten Brock <sourceforge.brock AT dse.nl>
2900
2901         * doc/sdccman.lyx: inserted footnotes about inline assembler labels,
2902           thanks Jan Waclawek
2903         * src/mcs51/gen.c (aopPut): fixed part of bug 1723128 when result is
2904           AOP_CRY and ruonly
2905           (gencjneshort): optimized when left is AOP_DIR
2906         * src/SDCCglue.c (printIvalStruct): fixed other part of bug 1723128 for
2907           initializing unions in a struct/array
2908         * support/regression/fwk/include/testfwk.h: added defines for data, near
2909           and far for host and z80
2910         * support/regression/tests/bug1723128.c: new, added
2911
2912 2007-05-22 Borut Razem <borut.razem AT siol.net>
2913
2914         * doc/knownbugs.html: updated
2915
2916 2007-05-21 Raphael Neider <rneider AT web.de>
2917
2918         * src/pic16/glue.c (pic16_initPointer): avoid assertion, emit better
2919           error message instead
2920         * src/pic/pcoderegs.c (pCodeOptime2pCodes): keep register state intact
2921
2922 2007-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
2923
2924         * src/mcs51/peeph.def (257.b): disabled to fix bug 1721024
2925
2926 2007-05-21 Raphael Neider <rneider AT web.de>
2927
2928         * src/pic/pcoderegs.c (pCodeOptime2pCodes): fixed bogus optimization,
2929           closes #1722392
2930         * src/regression/gpsim_assert.h,
2931         * src/regression/Makefile,
2932         * src/regression/pcodeopt.c: regression test for the above fix
2933
2934 2007-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
2935
2936         * src/SDCCpeeph.c (labelIsUncondJump): ignore identical labels for
2937           jumps to self, fixed bug 1717281
2938
2939 2007-05-10 Borut Razem <borut.razem AT siol.net>
2940
2941         * support/scripts/gen_known_bugs.pl: cosmetic fix
2942         * doc/knownbugs.html: generated by gen_known_bugs.pl
2943
2944 2007-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2945
2946         * src/SDCCast.c (createFunction): also generate non-inlined version of
2947           function for functions declared as "static inline"
2948         * src/SDCCast.c (fixupInline, inlineAddDecl): reset symbol state so
2949           function can be inlined after non-inlined version generated.
2950
2951 2007-05-10 Borut Razem <borut.razem AT siol.net>
2952
2953         * support/scripts/gen_known_bugs.pl: added script
2954           which generates knownbugs.html
2955
2956 2007-05-09 Maarten Brock <sourceforge.brock AT dse.nl>
2957
2958         * doc/knownbugs.html: updated for release 2.7.0
2959
2960 2007-05-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2961
2962         * device/include/mcs51/uPSD33xx.h: Added patch by Jan Waclawek.
2963
2964 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
2965
2966         * src/ds390/gen.c (emitcode): don't change properties of previous lines,
2967           (throughout): updated generating comments
2968         * src/mcs51/gen.c (emitcode): don't change properties of previous lines,
2969           (throughout): updated generating comments
2970         * src/SDCCpeeph.c (peepHole): continue searching at the first replaced
2971           rule instead of at the second, or it might skip lines when removing the
2972           complete match
2973         * support/regression/tests/bug1714204.c: changed test to foo
2974
2975 2007-05-08 Borut Razem <borut.razem AT siol.net>
2976
2977         * doc/sdccman.lyx: changed sdcc version to 2.7.0,
2978           thanks to SDCC Distributed Compile Farm members,
2979           added Z80 and GBZ80 command line options
2980         * .version, doc/INSTALL.txt, sdcc.spec: changed sdcc version to 2.7.0
2981
2982 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
2983
2984         * device/lib/mcs51/crtxinit.asm: added disabled version for dual dptr
2985         * device/include/mcs51/uPSD33xx.h: added sfr DPS as alias for DPTC
2986         * support/regression/tests/longlit.c: modified to be tested at all and
2987           to pass the actual test
2988
2989 2007-05-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2990
2991         * device/include/mcs51/uPSD33xx.h: Added.
2992
2993 2007-05-07 Maarten Brock <sourceforge.brock AT dse.nl>
2994
2995         * device/lib/_gptrput.c,
2996         * device/lib/_gptrget.c: removed old code,
2997          (_gptrgetWord),
2998         * src/ds390/gen.c (genGenPointerGet): fixed bug 1714204
2999         * support/regression/tests/bug1714204.c: new, added
3000
3001 2007-05-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3002
3003         * support/regression/tests/regtrack.c: test was never executed
3004           because of the regression test being picky about white spaces.
3005         * device/lib/mcs51/crtclear.asm: added comment
3006
3007 2007-05-06 Raphael Neider <rneider AT web.de>
3008
3009         * device/lib/pic/Makefile.rules,
3010         * device/lib/pic16/Makefile.rules: make sure *.ignore file exists,
3011           made "&> /dev/null" redirection sh-safe ("> /dev/null 2>&1")
3012
3013 2007-05-06 Raphael Neider <rneider AT web.de>
3014
3015         * src/pic16/device.h,
3016         * src/pic16/main.h,
3017         * src/pic16/main.c (pic16_optionsTable,_pic16_parseOptions,
3018           _pic16_setDefaultOptions): removed/reordered command-line args
3019         * doc/sdccman.lyx: updated PIC14 and PIC16 documentation (supported
3020           devices, regrouped command line args, environment variables),
3021           clarified sone points, added sections on how to add devices to the
3022           PIC14/PIC16 ports
3023
3024 2007-05-06 Maarten Brock <sourceforge.brock AT dse.nl>
3025
3026         * src/z80/peeph.def: fixed bug in rule 2
3027
3028 2007-05-05 Maarten Brock <sourceforge.brock AT dse.nl>
3029
3030         * src/port.h: added TARGET_MCS51_LIKE
3031         * src/SDCCpeeph.c (labelIsUncondJump): new, added, other targets could
3032           take advantage of it too
3033         * src/z80/gen.c (genIpush): push b, d or h directly instead of using a,
3034           (shiftR2Left2Result): Optimized: don't check shifting by 0
3035         * src/z80/peeph-z80.def,
3036         * src/z80/peeph.def: whole set of new rules by Philipp Krause with some
3037           modifications, see patch 1700823
3038         * src/mcs51/peep.c (): fixed bug 1712928
3039         * support/regression/tests/bug1712928.c: new, added
3040
3041 2007-05-05 Borut Razem <borut.razem AT siol.net>
3042
3043         * device/lib/pic16/Makefile.common.in,
3044           device/lib/pic/Makefile.common.in, sim/ucsim/cmd.src/Makefile.in:
3045           removed bash dependencies
3046
3047 2007-05-01 Borut Razem <borut.razem AT siol.net>
3048
3049         * src/SDCCicode.c:
3050           fixed bug #1710507: --i-code-in-asm makes compile fail
3051           all iCode comments are now one liners
3052         * src/mcs51/gen.c: fixed memory leak
3053
3054 2007-05-01 Raphael Neider <rneider AT web.de>
3055
3056         * device/lib/pic/libdev/*.c
3057         * device/include/pic/*.h: regenerated all device libs from updated
3058           .inc files
3059         * support/scripts/inc2h.pl: documented usage, now uses strict to
3060           catch more bugs
3061
3062 2007-04-30 Borut Razem <borut.razem AT siol.net>
3063
3064         * doc/sdccman.lyx:
3065           fixed bug #1669175: Problem with space in output paths
3066           documented how to use paths with spaces for Windows users
3067
3068 2007-04-29 Borut Razem <borut.razem AT siol.net>
3069
3070         * Fixed svn:eol-style and svn:keywords properties
3071         * src/SDCCval.c: fixed bug
3072           #1592871: Segfault with "large" const arrays of characters
3073           replaced recursion with iteration
3074         * Removed svn:executable property from non-executable files
3075
3076 2007-04-29 Maarten Brock <sourceforge.brock AT dse.nl>
3077
3078         * src/mcs51/gen.c (genRet): fixed bug 1707003
3079
3080 2007-04-27 Raphael Neider <rneider AT web.de>
3081
3082         * src/pic16/pcode.c (pBlockRemoveUnusedLabels,pic16_pBlockAddInval,
3083           createReachingDefinitions,assignValnums,pic16_destructDF,
3084           pic16_createDF,pic16_vcg_dumpedges,pic16_vcg_dump_default):
3085           prevent NULL pointer dereferences
3086         * device/lib/pic/libdev/pic16f886.c,
3087         * device/lib/pic/libdev/pic16f887.c: svn mv'ed to disabled_* to
3088           prevent building them, gputils do not really support them yet
3089
3090 2007-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3091
3092         * device/lib/_ltoa.c: 36 bytes less __data mem. This really
3093           helps printf_small. 32 bytes more __idata mem.
3094
3095 2007-04-27 Raphael Neider <rneider AT web.de>
3096
3097         * src/pic/pcode.c (addpCode2pBlock,LinkFlow,pBlockRemoveUnusedLabels):
3098           return early when pb or pb->pcHead is NULL (patch #1708427)
3099         * src/regression/empty.c,
3100         * src/regression/Makefile: added test with empty functions
3101         * support/Util/SDCCerr.c: fixed typo in E_INIT_STRUCT message
3102
3103 2007-04-27 Borut Razem <borut.razem AT siol.net>
3104
3105         * src/SDCCast.c: fixed feature request
3106           #1547512: Redundant strings linked when using sizeof("abc")
3107
3108 2007-04-23 Borut Razem <borut.razem AT siol.net>
3109
3110         * doc/sdccman.lyx, src/SDCCmain.c:
3111           peep-hole comments are generated only if --fverbose-asm option is
3112           specified and --no-peep-comments is not, as proposed by Frieder.
3113         * support/regression/Makefile.in: compile regression tests with
3114           --fverbose-asm option so one can "grep" whether a new (or an old)
3115           peephole is (still) applied; requested by Frieder.
3116
3117 2007-04-23 Kevin Buettner <kevin AT buettner.to>
3118
3119         * device/include/pic/pic16f886.h,
3120         * device/include/pic/pic16f887.h,
3121         * device/lib/pic/libdev/pic16f886.c,
3122         * device/lib/pic/libdev/pic16f887.c,
3123         * device/include/pic/pic14devices.txt,
3124         * device/lib/pic/libdev/devices.txt: Add 16f886 and 16f887.
3125
3126 2007-04-23 Kevin Buettner <kevin AT buettner.to>
3127
3128         * device/lib/pic/libsdcc/idata.c: PAGESEL _main before going there,
3129           fixes #1704666
3130
3131 2007-04-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3132
3133         * device/lib/_memset.c: assembler version for mcs51
3134
3135 2007-04-22 Borut Razem <borut.razem AT siol.net>
3136
3137         * support/scripts/listerr.c: program to create the list of errors and
3138           warnings list from - added
3139         * doc/sdccman.lyx: removed the note
3140           "For list of warnings and corresponding codes, see err_warn.txt"
3141         * src/SDCCsymt.c: fixed bug #1699804:
3142           Bug with some uses of sizeof(static local array) (MCS51)
3143         * support/regression/tests/bug-1699804.c: added
3144
3145 2007-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
3146
3147         * as/mcs51/asmain.c (search_path_append, search_path_fopen): new, added,
3148           (main): added option -i,
3149           (asmbl, case S_INCL): use search_path_fopen,
3150           mostly from patch 1579668 by Peter Miller, thanks
3151         * src/z80/main.c: fixed typo --callee-saves-bc
3152         * device/include/mcs51/compiler.h: added sfrword for Tasking
3153
3154 2007-04-20 Borut Razem <borut.razem AT siol.net>
3155
3156         * src/z80/main.c: replaced reserved keyword asm with asmblr
3157
3158 2007-04-19 Borut Razem <borut.razem AT siol.net>
3159
3160         * src/port.h: use const pointers to strings
3161         * src/SDCCargs.h: declared getStringArg() and getIntArg()
3162         * src/pic16/main.c: include SDCCargs.h
3163         * src/SDCCglobl.h: code_seg and const_seg are not pointers to
3164           const char, since the strings are dynamically allocated
3165         * src/SDCCmain.c: options.code_seg and options.const_seg are
3166           dynamically allocated; check port specific command line options
3167           before the general ones
3168         * src/z80/main.c: fixed bug #1631895: codeseg/constseg #pragma fail
3169
3170 2007-04-18 Maarten Brock <sourceforge.brock AT dse.nl>
3171
3172         * device/include/ds400rom.h,
3173         * device/lib/ds390/lcd390.c,
3174         * device/lib/ds390/memcpyx.c,
3175         * device/lib/ds390/rtc390.c,
3176         * device/lib/ds400/ds400rom.c,
3177         * device/lib/ds400/memcpyx.c,
3178         * device/lib/hc08/_ret.c: more replacements of keywords with their
3179           double underscore equivalents
3180         * device/lib/ds390/Makefile.in,
3181         * device/lib/ds400/Makefile.in,
3182         * device/lib/gbz80/Makefile.in,
3183         * device/lib/hc08/Makefile.in,
3184         * device/lib/mcs51/Makefile.in,
3185         * device/lib/z80/Makefile.in: added --std-c89 to CFLAGS
3186
3187 2007-04-17 Borut Razem <borut.razem AT siol.net>
3188
3189         * doc/sdccman.lyx, src/SDCCmain.c, src/SDCCglobal.h, src/ds390/gen.c,
3190           src/hc08/gen.c, src/mcs51/gen.c, src/mcs51/rtrack.c:
3191           fixed #1493816: option --no-gen-comments: --no-gen-comments renamed
3192           to --fverbose-asm, to be gcc'ish
3193
3194 2007-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
3195
3196         * src/mcs51/gen.c (aopOp): set size to 1 for ruonly, fixes bug 1699455
3197
3198 2007-04-17 Borut Razem <borut.razem AT siol.net>
3199
3200         * doc/sdccman.lyx: fixed #1701874: Mac OSX references in SDCC manual
3201         * device/lib/ds400/tinibios.c, device/lib/hc08/_divuint.c,
3202           device/lib/hc08/_divulong.c: replaced _asm and _endasm keywords
3203           with their double underscore equivalent
3204
3205 2007-04-14 Borut Razem <borut.razem AT siol.net>
3206
3207         * doc/sdccman.lyx: some additional "freeware" replaced with "free open
3208           source"
3209
3210 2007-04-13 Borut Razem <borut.razem AT siol.net>
3211
3212         * doc/sdccman.lyx: -pedantic-parse-number is not in conformance with
3213           C99 standard
3214         * device/examples/serialcomm/windows/serial.[ch],
3215           device/examples/serialcomm/windows/test_serialcomm.cpp:
3216           updated by Bela Torok
3217         * device/examples/serialcomm/windows/serialcomm.dsw,
3218           device/examples/serialcomm/windows/serialcomm.dsp: added
3219
3220 2007-04-13 Jan Waclawek <wek AT efton.sk>
3221
3222         * doc/sdccman.lyx: additions and changes at various places
3223           (submitted as #1697136).
3224           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
3225
3226 2007-04-10 Borut Razem <borut.razem AT siol.net>
3227
3228         * doc/cdbfileformat.lyx, doc/sdccman.lyx, doc/test_suite_spec.lyx:
3229           LyX file format changed to 245
3230         * doc/sdccman.lyx, doc/README.txt, sdc/SDCC.lex, src/SDCCglue.c:
3231           "FreeWare" replaced with "free open source"
3232
3233 2007-04-10 Maarten Brock <sourceforge.brock AT dse.nl>
3234
3235         * device/include/mcs51/C8051F120.h: added some defines for bits in RSTSRC
3236
3237 2007-04-08 Maarten Brock <sourceforge.brock AT dse.nl>
3238
3239         * device/include/pic16/pic18fregs.h,
3240         * device/lib/_bp.c,
3241         * device/lib/_decdptr.c,
3242         * device/lib/_divsint.c,
3243         * device/lib/_divslong.c,
3244         * device/lib/_divuint.c,
3245         * device/lib/_divulong.c,
3246         * device/lib/_fs2schar.c,
3247         * device/lib/_fs2sint.c,
3248         * device/lib/_fs2slong.c,
3249         * device/lib/_fs2uchar.c,
3250         * device/lib/_fs2uint.c,
3251         * device/lib/_fs2ulong.c,
3252         * device/lib/_fsadd.c,
3253         * device/lib/_fscmp.c,
3254         * device/lib/_fsdiv.c,
3255         * device/lib/_fseq.c,
3256         * device/lib/_fsget1arg.c,
3257         * device/lib/_fsget2args.c,
3258         * device/lib/_fsgt.c,
3259         * device/lib/_fslt.c,
3260         * device/lib/_fsmul.c,
3261         * device/lib/_fsneq.c,
3262         * device/lib/_fsnormalize.c,
3263         * device/lib/_fsreturnval.c,
3264         * device/lib/_fsrshift.c,
3265         * device/lib/_fssub.c,
3266         * device/lib/_fsswapargs.c,
3267         * device/lib/_gptrget.c,
3268         * device/lib/_gptrgetc.c,
3269         * device/lib/_gptrput.c,
3270         * device/lib/_logexpf.c,
3271         * device/lib/_modsint.c,
3272         * device/lib/_modslong.c,
3273         * device/lib/_moduint.c,
3274         * device/lib/_modulong.c,
3275         * device/lib/_mulint.c,
3276         * device/lib/_mullong.c,
3277         * device/lib/_schar2fs.c,
3278         * device/lib/_ser.c,
3279         * device/lib/_setjmp.c,
3280         * device/lib/_sint2fs.c,
3281         * device/lib/_slong2fs.c,
3282         * device/lib/_spx.c,
3283         * device/lib/_uchar2fs.c,
3284         * device/lib/_uint2fs.c,
3285         * device/lib/_ulong2fs.c,
3286         * device/lib/asincosf.c,
3287         * device/lib/atanf.c,
3288         * device/lib/calloc.c,
3289         * device/lib/ds390/tinibios.c,
3290         * device/lib/ds400/tinibios.c,
3291         * device/lib/expf.c,
3292         * device/lib/free.c,
3293         * device/lib/hc08/_mulint.c,
3294         * device/lib/logf.c,
3295         * device/lib/malloc.c,
3296         * device/lib/printf_fast.c,
3297         * device/lib/printf_tiny.c,
3298         * device/lib/printfl.c,
3299         * device/lib/realloc.c,
3300         * device/lib/ser_ir.c,
3301         * device/lib/serial.c,
3302         * support/regression/tests/libmullong.c: replaced all special keywords
3303           with their double underscore equivalent
3304         * support/regression/ports/mcs51-xstack-auto/spec.mk,
3305         * device/lib/Makefile.in: compile libs with --std-c99 instead of
3306           --std-sdcc99
3307         * src/mcs51/gen.c (outBitC): don't store if result is return-use-only,
3308           (genRet): if the bit-symbol is ruonly it already is in the carry
3309         * src/mcs51/ralloc.c (regTypeNum): make regType REG_CND for ruonly bit
3310         * src/SDCCast.c (createFunction): applied patch 887171 by Stas Sergeev
3311         * src/SDCCicode.c (ast2iCode): '!', GETHBIT, GETABIT: only set operand
3312           type UCHAR if dest is not bit
3313
3314 2007-04-03 Maarten Brock <sourceforge.brock AT dse.nl>
3315
3316         * device/include/math.h,
3317         * device/lib/cotf.c,
3318         * device/lib/expf.c,
3319         * device/lib/sincoshf.c: changed XMAX to C99 HUGE_VALF
3320
3321 2007-04-01 Borut Razem <borut.razem AT siol.net>
3322
3323         * src/SDCC.lex, src/SDCCmain.c, support/cpp2/sdcpp.c:
3324           fixed bug #1692042: input buffer overflow...scanner uses REJECT
3325         * support/cpp2/sdcpp.c: fixed recursion bug - internal_error() called
3326           gcc_unreachable() called internal_error()...
3327
3328 2007-03-30 Raphael Neider <rneider AT web.de>
3329
3330         * src/pic/ralloc.c (isData): suppress garbage debug output
3331
3332 2007-03-28 Borut Razem <borut.razem AT siol.net>
3333
3334         * doc/sdccman.lyx:
3335           "Nightly Snapshots" replaced with "Snapshot Builds", since the SDCC
3336           is developed, built and used worldwide, and the word "night" doesn't
3337           make any sense.
3338
3339 2007-03-28 Maarten Brock <sourceforge.brock AT dse.nl>
3340
3341         * device/include/mcs51/C8051F360.h: new, added
3342         * device/include/mcs51/C8051F520.h: fixed buggy sbit addresses SPI0CN
3343
3344 2007-03-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3345
3346         * src/SDCC.y (declaration_specifiers, function_specifier),
3347         * support/Util/SDCCerr.c,
3348         * support/Util/SDCCerr.h,
3349         * src/SDCCsymt.h,
3350         * src/SDCCsymt.c (mergeSpec, checkFunction): Parse and validate the
3351           inline keyword
3352         * src/SDCCmem.c (deallocParms),
3353         * src/SDCCast.c: support for function inlining, not quite complete
3354         * src/SDCCsymt.c (printTypeChain, printTypeChainRaw): display
3355           'restrict' qualifier
3356
3357 2007-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
3358
3359         * src/mcs51/gen.c (saveRegisters, unsaveRegisters): free some bitVects,
3360           (saveRBank, unsaveRBank): don't save bits,
3361           (genFunction, genEndFunction): save bits exactly once, fix bug 1535242
3362         * support/regression/tests/bug1535242.c: new, added
3363         * device/include/assert.h: applied patch 1686533 to fix bug 1686528,
3364           thanks Alexey Shamrin <shamrin AT gmail.com>,
3365           made assert.h header ANSI compliant (added a check for NDEBUG macro,
3366           removed header guard)
3367         * .version,
3368         * sdcc.spec: bumped version to 2.6.5
3369         * src/SDCCmain.c(parseCmdLine): fixed bug 1677144
3370
3371 2007-03-22 Borut Razem <borut.razem AT siol.net>
3372
3373         * debugger/mcs51/cmd.c, debugger/mcs51/sdcdb.c:
3374           fixed bug #1653671: sdcdb integration into ddd is broken
3375
3376 2007-03-22 Raphael Neider <rneider AT web.de>
3377
3378         * src/pic/gen.c (popGetExternal): augmented to also create references
3379           to external variables (not only labels),
3380           (genCall): comment on plan to reduce PAGESEL overhead,
3381           (genFunction, genEndFunction): also save/restore FSR around interrupt
3382           handling code, removed lots of unused code
3383           (genDivOneByte): release acquired temp register
3384         * src/pic/glue.c (pic14createInterruptVect): adapt to new signature
3385           of popGetExternal
3386         * device/lib/pic/libsdcc/shadowregs.c: NEW, provide storage location
3387           for registers that need to be saved during interrupts (FSR, STATUS,
3388           PCLATH; W needs special handling), currently only FSR is used
3389
3390 2007-03-22 Raphael Neider <rneider AT web.de>
3391
3392         * device/include/pic/pic14devices.txt: 16f688 has only one config word
3393
3394 2007-03-19 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3395
3396         * /as/link/mcs51/aslink.dsp: Object extension for mcs51 is 'rel' not 'o'.
3397
3398 2007-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
3399
3400         * src/mcs51/peeph.def (263.x): fixed bug for volatile variables
3401
3402 2007-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
3403
3404         * as/link/aslink.h: added LKOBJEXT
3405         * as/link/hc08/link_hc08.dsp,
3406         * as/link/hc08/Makefile.bcc,
3407         * as/link/hc08/Makefile.in,
3408         * as/link/mcs51/aslink.dsp,
3409         * as/link/mcs51/Makefile.bcc,
3410         * as/link/mcs51/Makefile.in: moved lkamof51.c and lkdata.c
3411         * as/link/hc08/lkaomf51.c,      as/link/mcs51/lkaomf51.c,
3412         * as/link/lkaomf51.c: merged and moved
3413         * as/link/hc08/lkdata.c,        as/link/mcs51/lkdata.c,
3414         * as/link/z80/lkdata.c,
3415         * as/link/lkdata.c: merged and moved
3416         * as/link/hc08/lkmain.c,
3417         * as/link/mcs51/lkmain.c: cosmetic changes
3418         * as/link/z80/lkeval.c,         as/link/lkeval.c: merged
3419         * as/link/lklex.c: use LKOBJEXT
3420         * as/link/z80/lklist.c,         as/link/lklist.c: merged,
3421           ANSI-fied functions, removed bubble-sorts
3422         * as/link/z80/lksym.c           as/link/lksym.c: merged,
3423           ANSI-fied functions
3424         * as/link/z80/linkgbz80.dsp,
3425         * as/link/z80/linkz80.dsp,
3426         * as/link/z80/Makefile.in: added lkaomf51.c and lknoice.c,
3427           moved lkdata.c, lkeval.c, lkhead.c, lklex.x, lklist.c, lksym.c
3428         * as/link/z80/lkhead.c,
3429         * as/link/z80/lklex.c: deleted
3430         * as/link/z80/lklibr.c: moved LKOBJEXT to aslink.h
3431         * as/link/z80/lkmain.c: added copyfile()
3432
3433 2007-03-13 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3434
3435         * device/include/mcs51/P89LPC925.h: Added missing P1_6 and P1_7.
3436
3437 2007-03-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3438
3439         * device/lib/_strlen.c: assembler version for mcs51
3440
3441 2007-03-13 Raphael Neider <rneider AT web.de>
3442
3443         * device/include/pic16/pic18f2221.h,
3444         * device/include/pic16/pic18f2321.h,
3445         * device/include/pic16/pic18f2331.h,
3446         * device/include/pic16/pic18f4221.h,
3447         * device/include/pic16/pic18f4321.h,
3448         * device/include/pic16/pic18f4331.h: fixed config byte location names
3449         * support/scripts/inc2h-pic16.pl: removed debug output, emit
3450           consistently named config byte locations
3451
3452 2007-03-13 Borut Razem <borut.razem AT siol.net>
3453
3454         * src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
3455           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/s51.src/Makefile.in,
3456           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
3457           as/link/z80/Makefile.in, as/z80/Makefile.in:
3458           introduced LDFLAGS
3459
3460 2007-03-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3461
3462         * device/lib/printfl.c: 13 bytes less __data mem (12 more __idata)
3463         * device/lib/printf_large.c: pointer was converted to generic
3464         pointer for mcs51 models other than model-small (Maarten noticed)
3465
3466 2007-03-10 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3467
3468         * device/include/mcs51/ADuC84x.h: Added.
3469
3470 2007-03-10 Borut Razem <borut.razem AT siol.net>
3471
3472         * src/SDCC.lex, src/SDCCutil.[ch], src/SDCCval:
3473           fixed RFE #1624219: double backslashes in filenames;
3474           functions hexEscape(), octalEscape() and copyStr() moved from
3475           SDCCval.c to SDCCutil.c and made them glovbally available
3476
3477 2007-03-09 Borut Razem <borut.razem AT siol.net>
3478
3479         * src/SDCC.lex, src/SDCCast.c. src/SDCCglobl.c, src/SDCCsymt.c,
3480           src/SDCCval.c: fixed bugs #1676768: Wrong line number reported and
3481           1673361: Missaligned comments in output files
3482
3483 2007-03-09 Raphael Neider <rneider AT web.de>
3484
3485         * device/include/pic/pic14devices.txt: fixed confsiz of 16f91[3467]
3486
3487 2007-03-09 Raphael Neider <rneider AT web.de>
3488
3489         * src/pic/gen.c,
3490         * src/pic/glue.c,
3491         * src/pic/ralloc.c: suppress undesired debug output
3492         * src/SDCCmain.c (linkEdit): initialize c to quieten compiler
3493
3494 2007-03-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3495
3496         * device/lib/printf_large.c: 6 bytes less __data mem (6 more __idata)
3497
3498 2007-03-07 Borut Razem <borut.razem AT siol.net>
3499
3500         * device/lib/pic16/libdev/pic18f[24][34]31.c:
3501           search include files in the current directory
3502
3503 2007-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
3504
3505         * src/SDCCglue.c (emitMaps, glue),
3506         * src/SDCCmem.c (initMem, allocDefault): added x_abs for initialized
3507           absolute xdata
3508         * support/regression/tests/absolute.c: added xdata test
3509
3510 2007-03-03 Maarten Brock <sourceforge.brock AT dse.nl>
3511
3512         * src/SDCCmain.c (parseCmdLine): only set options.xstack_loc for mcs51,
3513           added condition to macro, fixes bug 1666080
3514
3515 2007-03-02 Raphael Neider <rneider AT web.de>
3516
3517         * src/pic/gen.c (genGenPointerSet): removed bogus assertion
3518
3519 2007-02-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3520
3521         * device/lib/mcs51/crtxclear.asm: pdata segment of 256 byte would not
3522         be cleared. Unconditionally set __XPAGE
3523         * src/hc08/gen.c: --no-gen-comments (RFE #1493816) for hc08
3524
3525 2007-02-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3526
3527         * src/SDCCglobl.h,
3528         * src/SDCCmain.c,
3529         * src/mcs51/gen.c,
3530         * src/mcs51/rtrack.c,
3531         * src/ds390/gen.c,
3532         * doc/sdccman.lyx: added --no-gen-comments
3533         * src/mcs51/peeph.def: added 192.b, disabled 185
3534
3535 2007-02-25 Raphael Neider <rneider AT web.de>
3536
3537         * src/pic16/gen.c (genCast): fixed typo
3538         * device/lib/pic16/Makefile.subdir: only install existing files
3539         * device/lib/pic16/libdev/Makefile.in: build serially, avoid races
3540
3541 2007-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
3542
3543         * device/lib/mcs51/crtcall.asm: new, added for indirect calls
3544         * device/lib/mcs51/crtclear.asm,
3545         * device/lib/mcs51/crtxclear.asm: renumbered labels
3546         * device/lib/mcs51/Makefile.in: added crtcall.asm
3547         * doc/sdccman.lyx: documented mcs51 crt* library startup code
3548         * src/mcs51/gen.c (movc): removed,
3549           (aopGet, genPlusBits): clear a after loading the carry (possibly from
3550             acc.x or psw.x),
3551           (toCarry, genSend, genRet): added function toCarry,
3552           (genPcall): use "lcall @a+dptr" for functions w/o parameters,
3553           (assignBit, genAssign, genCast): added function assignBit
3554         * src/mcs51/Makefile.bcc: added rtrack.c
3555         * src/mcs51/ralloc.h: made valueKnown a bitfield
3556         * src/mcs51/rtrack.c (getReg, rtrackUpdate): added getReg,
3557           fixed "jbc acc" and "cpl acc" bug, enhanced "cjne", "jnz" and "djnz",
3558           disabled InvalidateAllRx for lcall __gptrput, added "xch a,rn"
3559         * src/pic/pcode.c (FixRegisterBanking): fixed warning used uninitialized
3560         * src/z80/gen.c: added AOP_IS_PAIRPTR,
3561           (_pop): only pop valid pairs, see gencjneshort,
3562           (gencjneshort): return pair that still needs to be popped, restructured,
3563           (gencjne, genCmpEq): call _pop
3564
3565 2007-02-23 Raphael Neider <rneider AT web.de>
3566
3567         * device/include/pic/pic14devices.txt: 16f684 has only one config word
3568
3569 2007-02-22 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3570
3571         * device/include/mcs51/P89LPC925.h: Added.
3572
3573 2007-02-18 Raphael Neider <rneider AT web.de>
3574
3575         * src/pic/glue.c (emitInitVal): fixed #1659894 (SIGSEGV on arrays)
3576
3577 2007-02-17 Borut Razem <borut.razem AT siol.net>
3578
3579         * support/cpp2/directives.c, support/cpp2/version.c:
3580           synchronized with GCC CPP 4.1.2
3581
3582 2007-02-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3583
3584         * src/mcs51/rtrack.h,
3585         * src/mcs51/rtrack.c: added register tracking for the mcs51 port,
3586           by checking the strings passed by emitcode() to the assembler.
3587           Feel free to change. This in part addresses RFE #482179.
3588           Set environment variable SDCC_RTRACK to enable.
3589         * src/mcs51/gen.c: inserted hooks
3590         * src/mcs51/ralloc.h: added two members to struct regs
3591         * support/regression/tests/regtrack.c: added
3592
3593 2007-02-14 Borut Razem <borut.razem AT siol.net>
3594
3595         * src/SDCC.y: fixed bug #1291133: duplicate members across enum(s)
3596         * Makefile.in: applied patch from Makefile related part of
3597           #1469393: Compiler does not initialize static data
3598
3599 2007-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
3600
3601         * src/SDCCicode.c (geniCodeAssign): return (itemp) right instead of left
3602           for better fix of bug 1273984, compiles pic16 rand.c
3603
3604 2007-02-12 Borut Razem <borut.razem AT siol.net>
3605
3606         * src/pic16/main.c: fixed pic16 standard library directory bug
3607
3608 2007-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
3609
3610         * src/hc08/gen.c (genSwap): fix swap regression test
3611
3612 2007-02-10 Borut Razem <borut.razem AT siol.net>
3613
3614         * src/SDCCsymt.c: fixed bug #1159134: invalid duplicate declarations
3615           with same scope
3616         * support/regression/tests/bug-1654060.c: added regression test for
3617           #1654060
3618
3619 2007-02-09 Bernhard Held <bernhard AT bernhardheld.de>
3620
3621         * src/mcs51/gen.c (genRet): fixed RFE 1652561: added code for bit to
3622         bit moves in return statement
3623
3624 2007-02-09 Borut Razem <borut.razem AT siol.net>
3625
3626         * src/SDCC.y: fixed bug #1654060 typedef within function causes
3627           syntax error
3628
3629 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
3630
3631         * src/mcs51/gen.c (aopPut): use direct name for pushing registers
3632         * src/SDCCmain.c (parseCmdLine): dbuf_s path must be initialised
3633
3634 2007-02-07 Raphael Neider <rneider AT web.de>
3635
3636         * src/pic16/devices.inc,
3637         * device/include/pic16/pic18fregs.h,
3638         * device/include/pic16/pic18f[24][34]31.h,
3639         * device/lib/pic16/libdev/pic18f[24][34]31.c,
3640         * device/lib/pic16/pics.all: added 18f[24][34]31 family
3641         * device/lib/pic16/libio/i2c.ignore: do not build i2c
3642
3643 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
3644
3645         * device/lib/printf_large.c (_print_format): fixed compare/assign bug, how
3646           can this have lived here for so many years?
3647         * src/SDCCicode.c (ast2iCode): return left instead of right for assignment,
3648           fixes bug 1273984, see also patch 1645121, thanks Gnther Jehle
3649         * support/regression/tests/bug1273984.c: new, added, thanks Gnther Jehle
3650
3651 2007-02-06 Bernhard Held <bernhard AT bernhardheld.de>
3652
3653         * src/SDCCBlock.c (addiCodeToeBBlock): fixed bug 1652207: GOTO icodes
3654         appended by loop induction must be at the very end of the eBBlock
3655
3656 2007-02-05 Kevin Vigor
3657
3658         * src/ds390/gen.c, src/ds390/main.c: Address bug 1469393.
3659
3660 2007-02-05 Borut Razem <borut.razem AT siol.net>
3661
3662         * support/regression/fwk/lib/timeout.c: native WIN32 port,
3663           implemented #1651830 Reg. tests: rewrite timeout.c to use WIN32 API
3664
3665 2007-02-03 Borut Razem <borut.razem AT siol.net>
3666
3667         * src/SDCC.y, src/SDCCmain.c, src/SDCCglobl.h, doc/sdccman.lyx:
3668           applied patch #1646602 option to set default signedness of char to
3669           unsigned, added -funsigned-char command line option,
3670           thanks to Gunther Jehle
3671         * device/lib/Makefile.in: added the -f option to rm so it doesn't
3672           prompt for file deletion a few hundred times (especially the
3673           subversion files, which have ro permissions so it asks for
3674           confirmation), thanks to Simon McAuliffe;
3675           added {} + option to find in order to remove multiple files from a
3676           single rm commad
3677
3678 2007-02-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3679
3680         * device/include/mcs51/SST89x5xRDx.h: Added.
3681
3682 2007-02-02 Raphael Neider <rneider AT web.de>
3683
3684         * src/pic/glue.c (emitSymbolSet): check sym->etype before use
3685         * src/regression/Makefile: use --no-pcode-opt, ignore failing tests
3686
3687 2007-02-01 Raphael Neider <rneider AT web.de>
3688
3689         * src/pic/glue.c (picglue,emitSymbolSet,showAllMemmaps): emit the
3690           config words again
3691
3692 2007-01-31 Borut Razem <borut.razem AT siol.net>
3693
3694         * support/Util/dbuf_string.h: added ATTRIBUTE_PRINTF to dbuf_printf()
3695           if compiled with GCC. Thanks to Raphael Neider
3696
3697 2007-01-31 Raphael Neider <rneider AT web.de>
3698
3699         * src/pic/pcode.c (isValidIdChar,bankCompare): fuzzy matching of
3700             operand names, handles name and (name + n) for all n,
3701           (sameBank): restructured, also check bank allocation policy,
3702         * src/pic/glue.c (emitPseudoStack): fixed printf arguments,
3703           (pic14_operandsAllocatedInSameBank): check whether to operands
3704             will be allocated into the same bank (i.e., section) to reduce
3705             BANKSEL overhead, queried from pcode.c:sameBank,
3706           (pic14printLocals): reintroduced clustering registers into a single
3707             section: all compiler generated symbols will now reside in one
3708             bank (per file), reducing BANKSEL overhead and code size,
3709           (showAllMemmaps): use local dbuf where possible
3710
3711 2007-01-29 Raphael Neider <rneider AT web.de>
3712
3713         * src/pic/gen.c (popGetExternal): simplified, mark symbol as used,
3714           (call_libraryfunc): retrieve/create symbol and mark as used,
3715           (genFunction): mark defined functions as non-extern and add again
3716            to code memmap for later output
3717         * src/pic/glue.c (emitPseudoStack): put into own subroutine,
3718           (pic14printLocals): reworked for new symbol emission,
3719           (emitIfNew,pic14_constructAbsMap,emitIvalLabel,emitIvals,emitInitVal,
3720           showAllMemmaps): reworked symbol output using dbufs, added handling
3721             of string literals (still incomplete),
3722           (picglue): removed symbol emission, moved into showAllMemmaps,
3723           (emitSymbolSet): new workhorse for symbol output,
3724           (pic14emitMaps,pic14printPublics,pic14printExterns): commented out
3725
3726 2007-01-29 Borut Razem <borut.razem AT siol.net>
3727
3728         * src/SDCCmain.c, src/SDCCutil.c: dbuf_splitFile: file extension
3729           component contains the extension separator.
3730
3731 2007-01-28 Borut Razem <borut.razem AT siol.net>
3732
3733         * sim/ucsim/cmd.src/cmdutil.cc: NUL device is detected as CG_FILE type
3734           on WIN32
3735         * src/SDCCdwarf2.c, src/SDCCglobl.h, src/SDCCmain.c, src/SDCCutil.c,
3736           src/SDCCutil.h, src/avr/gen.c, src/ds390/gen.c, src/hc08/gen.c,
3737           src/mcs51/gen.c, src/pic/device.c, src/pic/gen.c, src/pic/pcode.c,
3738           src/pic/pcodepeep.c, src/pic/ralloc.c, src/pic16/device.h,
3739           src/pic16/gen.c, src/pic16/main.c, src/pic16/pcode.c,
3740           src/pic16/pcodepeep.c, src/pic16/ralloc.c, src/xa51/gen.c,
3741           src/z80/gen.c, support/Util/MySystem.c:
3742           accept slash and backslash as directory separator on WIN32 and
3743           Cygwin ports
3744
3745 2007-01-28 Raphael Neider <rneider AT web.de>
3746
3747         * src/pic16/devices.inc,
3748         * device/include/pic16/pic18f[24][23]21.h,
3749         * device/include/pic16/pic18fregs.h,
3750         * device/lib/pic16/libdev/pic18f[24][23]21.c,
3751         * device/lib/pic16/pics.all: added support for the 18f[24][23]21 family
3752         * device/lib/pic16/libio/adc.ignore,
3753         * device/lib/pic16/libio/i2c.ignore,
3754         * device/lib/pic16/libio/usart.ignore: do not build I/O lib for new
3755           family, as gputils do not yet support the devices
3756         * device/lib/pic16/Makefile.subdir: ignore errors on install
3757         * support/scripts/inc2h-pic16.pl: script to generate pic16 device
3758           headers and libraries from gputils .inc files
3759
3760 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
3761
3762         * doc/sdccman.lyx: add printf_fast_f precision limitation note
3763
3764 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
3765
3766         * doc/sdccman.lyx: add printf benchmarks
3767
3768 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
3769
3770         * device/lib/printf_fast.c: fix %c, char promoted to int
3771         * device/lib/printf_tiny.c: fix %c, char promoted to int
3772
3773 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
3774
3775         * device/lib/printf_fast.c: fix float overflow check, bug #1525093
3776
3777 2007-01-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3778
3779         * support/regression/tests/swap.c: 64 bit hosts failed
3780         * doc/sdccman.lyx: added preliminary mcs51 printf feature matrix
3781
3782 2007-01-25 Raphael Neider <rneider AT web.de>
3783
3784         * src/pic/pcode.c (sameBank,FixRegisterBanking): optimize banksels
3785           based on absolute register address, patch by Alex Blond
3786
3787 2007-01-22 Raphael Neider <rneider AT web.de>
3788
3789         * src/pic/glue.c (pic14emitRegularMap): mark initialized symbols as
3790           emitted, do not emit them again...
3791
3792 2007-01-22 Raphael Neider <rneider AT web.de>
3793
3794         * src/regression/bank1.c, src/regression/compare6.c,
3795           src/regression/add.c: cosmetic changes
3796         * src/pic/pcode.h: moved GPTRTAG_* here from gen.c
3797         * src/pic/gen.c: fixed global zero and one,
3798           (aopForSym): removed unued code,
3799           (aopGet): assert aop is defined, check and use `index' of
3800             pCodeImmd operands (fixes #1630908),
3801         * src/pic/pcode.c (get_op): added output of generic pointer tag,
3802           (register_reassign): prevent accidental register unification,
3803           (ReuseReg): cosmetic changes (also above)
3804         * src/pic/glue.c (pic14_constructAbsMap,pic14emitRegularMap,
3805           pic14emitStaticSeg): do not emit initialized data,
3806           (printIval*): replaced with working versions,
3807           (pic14createInterruptVect,picglue): use idata for initialized data,
3808             now init data should work in all modules (not only main()),
3809         * device/lib/pic/libsdcc/idata.c: NEW, handle initialized data
3810
3811 2007-01-21 Borut Razem <borut.razem AT siol.net>
3812
3813         * sim/ucsim/configure.in: introduced macro DD_COPT_NO_IGNORE,
3814           use -fPIC or -fpic if they are supported and not ignored
3815         * src/SDCCval.c: fixed bug introduced by me in rev. #4577
3816         * support/cpp2/libcpp/lex.c: fixed gcc 4.1.1 warnings
3817
3818 2007-01-20 Borut Razem <borut.razem AT siol.net>
3819
3820         * src/SDCC.lex, src/SDCCmain.c, sdc/SDCCglobl.h, doc/sdccman.lyx:
3821           implemented RFE #1470316: allow "$" in variable names
3822
3823 2007-01-20 Raphael Neider <rneider AT web.de>
3824
3825         * device/include/pic/pic14regs.h: reverted accidental wipe of the file
3826
3827 2007-01-20 Raphael Neider <rneider AT web.de>
3828
3829         * device/lib/pic/libdev/devices.txt: device list for mkall.sh
3830         * device/lib/pic/libdev/mkall.sh: script to rebuild all device libs
3831         * device/lib/pic/libdev/pic14ports.txt: device PORT specifications
3832         * support/scripts/inc2h.pl: fixed major .inc parsing bugs,
3833           applied patch from Robert Tate (#1629249) to add PORTs and TRISs
3834         * device/lib/pic/libdev/pic*.c,
3835         * device/include/pic/pic*.h: regenerated with enhanced inc2h.pl
3836         * device/lib/pic/libdev/Makefile.in: show progress
3837
3838 2007-01-19 Bernhard Held <bernhard AT bernhardheld.de>
3839
3840         * doc/sdccman.lyx: updated "configure options" for autoconf 2.6
3841         * support/scripts/sdcc_cygwin_mingw32,
3842         * support/scripts/sdcc_mingw32,
3843         * support/scripts/build.mak: replaced --datadir by --datarootdir for
3844         conformance with autoconf 2.6
3845
3846 2007-01-19 Raphael Neider <rneider AT web.de>
3847
3848         * src/pic/device.c (register_map): fixed list construction
3849         * src/pic/gen.c (genDivOneByte,genModOneByte): accept result > 1 byte,
3850           (genMod): removed case for genModbits,
3851           (genModbits): removed as now unused/unimplemented
3852         * src/pic/glue.c (picglue): prevent name clash with sources 'init.c'
3853
3854 2007-01-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3855
3856         * support/regression/tests/swap.c: added in response to #1638622
3857         * doc/sdccman.lyx: synced version, minor changes
3858
3859 2007-01-18 Borut Razem <borut.razem AT siol.net>
3860
3861         * SDCClabel.c: fixed bug #1638651: wrong linenumber presented in warning,
3862           thanks to Gunther Jehle
3863         * src/asm.c: don't die if the file drfined in #line couldn't be opened
3864         * src/SDCC.lex, src/SDCCglobal.h, src/SDCCicode.c, src/SDCCsymt.c,
3865           src/SDCCval.c: removed redundant definitions of currFname and mylineno;
3866           use filename in lineno instead.
3867         * SDCCast.c: removed MSVC warning C4018: '==' : signed/unsigned mismatch,
3868           print the file name in ast_print()
3869
3870 2007-01-18 Borut Razem <borut.razem AT siol.net>
3871
3872         * support/Util/dbuf_string.c: removed (PTR) cast since it is not
3873           defined in MSVC
3874         * src/SDCC.lex: stringLiteral() returns const char pointer,
3875           EOF detection in stringLiteral(), fixed asmbuf memory leak,
3876           fixed column counting
3877         * src/SDCCval.[ch]: constVal(), value *strVal() and charVal()
3878           accept const char pointer as parameter
3879         * src/SDCCdwarf2.c: corrected buffer size
3880
3881 2007-01-17 Borut Razem <borut.razem AT siol.net>
3882
3883         * support/Util/dbuf_string.c: fixed for amd64
3884
3885 2007-01-15 Borut Razem <borut.razem AT siol.net>
3886
3887         * src/pic16/ralloc.c, src/pic/ralloc.c, src/SDCC.y:
3888           removed terminal symbol ELIPSIS, since it was never generated by the
3889           lexer and it was wrongly used in parameter_identifier_list rule
3890
3891 2007-01-15 Raphael Neider <rneider AT web.de>
3892
3893         * doc/sdccman.lyx: updated PIC14/16 command line args, updated PIC14
3894             code page and data banking description
3895         * src/pic/genarith.c,
3896         * src/pic/gen.h: removed bit arithmetic functions,
3897             updated exit(1) to exit(EXIT_FAILURE)
3898         * device/lib/pic16/libsdcc/stack/stack.S: default to 256 byte stack
3899         * device/include/pic16/pic18f2455.h,
3900         * device/lib/pic16/libdev/pic18f2455.c: added PORTD, LATD, LATE,
3901             TRISD and TRISE, fixed/added some bit names
3902         * device/lib/pic16/libdev/pic18f{2550,4550,4455}.c,
3903         * device/include/pic16/pic18f{2550,4550,4455}.h: simply include
3904             updated pic18f2455.{c,h} instead of duplicating them
3905
3906 2007-01-14 Borut Razem <borut.razem AT siol.net>
3907
3908         * as/mcs51/asnoice.c, as/hc08/asnoice.c: fixed bug #1447412:
3909           Cannot debug files that contain spaces in the path name
3910           by converting spaces in asm file name to underscores
3911
3912 2007-01-13 Borut Razem <borut.razem AT siol.net>
3913
3914         * doc/sdccman.lyx: fixed format errors
3915
3916 2007-01-10 Borut Razem <borut.razem AT siol.net>
3917
3918         * src/SDCC.lex, src/SDCCmain.c: fixed bug #1631895:
3919           codeseg/constseg #pragma fail
3920         * suppoprt/cpp2/Makefile.bcc: reenable Borland C compilation
3921         * suppoprt/cpp2/configure.in, suppoprt/cpp2/libcpp/lex.c,
3922           suppoprt/cpp2/Makefile.in, suppoprt/cpp2/sdcpp-opts,
3923           suppoprt/cpp2/sdcpp.[ch]: house cleaning
3924
3925 2007-01-09 Borut Razem <borut.razem AT siol.net>
3926
3927         * get rid of diagnistic.[ch], pretty-print.[ch],
3928           c-pretty-print.[ch], ... used just for error, warning, ...
3929           message formatting
3930         * suppoprt/cpp2/pretty-print.[ch], suppoprt/cpp2/diagnostic.[ch],
3931           suppoprt/cpp2/diagnostic.def, suppoprt/cpp2/input.h,
3932           suppoprt/cpp2/pretty-print.[ch]:
3933           removed
3934         * suppoprt/cpp2/Makefile.in, suppoprt/cpp2/opts.c,
3935           suppoprt/cpp2/sdcpp-opts.c, suppoprt/cpp2/sdcpp.[ch],
3936           suppoprt/cpp2/sdcpp.dsp:
3937           changed
3938
3939 2007-01-08 Maarten Brock <sourceforge.brock AT dse.nl>
3940
3941         * device/lib/printf_large.c (output_float): removed recursion,
3942           use smaller buffer on stack for mcs51,
3943           fixed bug printing 1.96
3944         * support/regression/tests/snprintf.c: added test
3945
3946 2007-01-07 Borut Razem <borut.razem AT siol.net>
3947
3948         * use dynamic memory buffers instead temporary files
3949         * support/Util/dbuf_string.c, support/Util/dbuf_string.h:
3950           added
3951         * src/Makefile.in, src/SDCC.lex, src/SDCCast.c, src/SDCCast.h,
3952           src/SDCCcse.c, src/SDCCglobl.h, src/SDCCglue.c, src/SDCCglue.h,
3953           src/SDCCicode.c, src/SDCCicode.h, src/SDCCmain.c, src/SDCCmem.c,
3954           src/SDCCmem.h, src/SDCCpeeph.c, src/SDCCpeeph.h, src/SDCCsymt.c,
3955           src/SDCCsymt.h, src/SDCCutil.c, src/asm.c, src/asm.h, src/avr/gen.c,
3956           src/avr/main.c, src/ds390/gen.c, src/ds390/main.c, src/hc08/gen.c,
3957           src/hc08/main.c, src/izt/gen.c, src/mcs51/gen.c, src/mcs51/main.c,
3958           src/pic/device.c, src/pic/gen.c, src/pic/glue.c, src/pic/main.c,
3959           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/glue.c,
3960           src/pic16/main.c, src/pic16/ralloc.c, src/port.h, src/src.dsp,
3961           src/xa51/gen.c, src/xa51/main.c, src/z80/gen.c, src/z80/main.c,
3962           support/Util/dbuf.c, support/Util/dbuf.h:
3963           modified
3964         * .version, sdcc.spec: bumped version to 2.6.4
3965
3966 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
3967
3968         * src/port.h: added TARGET_Z80_LIKE macro
3969         * src/SDCCmain.c (linkEdit): use TARGET_Z80_LIKE,
3970           output PSEG location if --xram-loc or --xstack-loc was used
3971         * as/link/mcs51/lkarea.c (lnksect2): set segment address afterwards
3972
3973 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
3974
3975         * as/as_gbz80.dsp, as/z80/as_gbz80.dsp,
3976         * as/as_z80.dsp,   as/z80/as_z80.dsp,
3977         * as/asx8051.dsp,  as/mcs51/asx8051.dsp,
3978         * sdcc.dsw: moved project files into subdir
3979         * as/hc08/as_hc08.dsp,
3980         * as/hc08/Makefile.bcc,
3981         * as/hc08/Makefile.in,
3982         * as/mcs51/Makefile.bcc,
3983         * as/mcs51/Makefile.in,
3984         * as/z80/Makefile.bcc,
3985         * as/z80/Makefile.in,
3986         * as/link/mcs51/Makefile.bcc: use as/strcmpi.c
3987         * as/hc08/asm.h,
3988         * as/mcs51/asm.h,
3989         * as/z80/asm.h: added as_strcmpi() and as_strncmpi() prototypes
3990         * as/hc08/asmain.c,
3991         * as/hc08/assym.c,
3992         * as/mcs51/asmain.c,
3993         * as/mcs51/assym.c,
3994         * as/z80/assym.c: removed include "strcmpi.h"
3995         * as/hc08/strcmpi.c,
3996         * as/hc08/strcmpi.h,
3997         * as/mcs51/strcmpi.c,
3998         * as/mcs51/strcmpi.h,
3999         * support/Util/strcmpi.c,
4000         * support/Util/strcmpi.h: removed files
4001         * as/strcmpi.c: added as_strncmpi()
4002
4003 2007-01-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4004
4005         * sdcc.dsw: Added some dependencies on project config.dsp
4006
4007 2007-01-05 Maarten Brock <sourceforge.brock AT dse.nl>
4008
4009         * as/link/mcs51/lkarea.c (lnkarea2, lnksect2): replaced [di]seg_ap->a_addr
4010           with [di]ram_start to fix a regresion
4011
4012 2007-01-03 Bernhard Held <bernhard AT bernhardheld.de>
4013
4014         * configure.in: added missing mcs51 in status output
4015         * Makefile.in: add support/regression to SDCC_EXTRA to distclean this
4016         directory
4017         * debugger/mcs51/clean.mk (distclean): remove config.h
4018         * src/clean.mk (clean): remove SDCCy.c, SDCCy.h, SDCClex.c
4019         * support/cpp2/Makefile.in (clean): remove s-options, optionlist,
4020         options.h, s-options-h and options.c
4021         * support/cpp2/clean.mk: unused, removed
4022         * Makefile.common.in,
4023         * main_in.mk,
4024         * as/Makefile.in,
4025         * as/hc08/Makefile.in,
4026         * as/hc08/clean.mk,
4027         * as/mcs51/Makefile.in,
4028         * as/mcs51/clean.mk,
4029         * as/z80/clean.mk,
4030         * as/z80/conf.mk,
4031         * as/z80/Makefile.in,
4032         * as/z80/clean.mk,
4033         * as/link/Makefile.in,
4034         * as/link/hc08/Makefile.in,
4035         * as/link/hc08/clean.mk,
4036         * as/link/mcs51/Makefile.in,
4037         * as/link/mcs51/clean.mk,
4038         * as/link/z80/Makefile.in,
4039         * as/link/z80/clean.mk,
4040         * as/link/z80/conf.mk,
4041         * debugger/mcs51/Makefile.in,
4042         * debugger/mcs51/clean.mk,
4043         * device/include/Makefile.in,
4044         * device/lib/Makefile.in,
4045         * device/lib/mcs51/Makefile.in,
4046         * device/lib/pic/Makefile.in,
4047         * device/lib/pic/Makefile.common.in,
4048         * device/lib/pic/Makefile.subdir,
4049         * device/lib/pic/Makefile.rules,
4050         * device/lib/pic16/libio/Makefile.in,
4051         * device/lib/pic16/Makefile.subdir,
4052         * device/lib/pic16/libdev/Makefile.in,
4053         * device/lib/pic16/Makefile.rules,
4054         * device/lib/pic16/Makefile.common.in,
4055         * sim/ucsim/avr.src/Makefile.in,
4056         * sim/ucsim/main_in.mk,
4057         * sim/ucsim/cmd.src/Makefile.in,
4058         * sim/ucsim/doc/Makefile.in,
4059         * sim/ucsim/gui.src/Makefile.in,
4060         * sim/ucsim/gui.src/obsolete/portmon.src/Makefile.in,
4061         * sim/ucsim/gui.src/serio.src/Makefile.in,
4062         * sim/ucsim/hc08.src/Makefile.in,
4063         * sim/ucsim/libltdl/Makefile.in,
4064         * sim/ucsim/s51.src/Makefile.in,
4065         * sim/ucsim/sim.src/Makefile.in,
4066         * sim/ucsim/sim.src/conf.mk,
4067         * sim/ucsim/xa.src/Makefile.in,
4068         * sim/ucsim/z80.src/Makefile.in,
4069         * src/Makefile.in,
4070         * src/clean.mk,
4071         * src/port.mk,
4072         * support/cpp2/Makefile.in,
4073         * support/librarian/Makefile.in,
4074         * support/librarian/clean.mk,
4075         * support/makebin/Makefile.in,
4076         * support/makebin/clean.mk,
4077         * support/packihx/Makefile.in,
4078         * support/regression/Makefile.in,
4079         * support/regression/ports/ds390/spec.mk,
4080         * support/regression/ports/gbz80/spec.mk,
4081         * support/regression/ports/hc08/spec.mk,
4082         * support/regression/ports/mcs51/spec.mk,
4083         * support/regression/ports/mcs51-large/spec.mk,
4084         * support/regression/ports/mcs51-medium/spec.mk,
4085         * support/regression/ports/mcs51-xstack-auto/spec.mk,
4086         * support/regression/ports/pic14/spec.mk,
4087         * support/regression/ports/pic16/spec.mk,
4088         * support/regression/ports/mcs51-stack-auto/spec.mk,
4089         * support/regression/ports/ucz80/spec.mk,
4090         * support/regression/ports/xa51/spec.mk,
4091         * support/regression/ports/z80/spec.mk: fixed for autoconf 2.6x by
4092         adding a slash after $(top_builddir) and/or adding @datarootdir@
4093         * configure.in,
4094         * debugger/mcs51/configure.in,
4095         * device/lib/pic/configure.in,
4096         * device/lib/pic16/configure.in,
4097         * sim/ucsim/configure.in,
4098         * support/cpp2/configure.in,
4099         * support/packihx/configure.in: changed AC_PREREQ to 2.60
4100         * configure,
4101         * debugger/mcs51/configure,
4102         * device/lib/pic/configure,
4103         * device/lib/pic16/configure,
4104         * sim/ucsim/configure,
4105         * support/cpp2/configure,
4106         * support/packihx/configure: generated with autoconf 2.60
4107
4108 2007-01-02 Maarten Brock <sourceforge.brock AT dse.nl>
4109
4110         * as/link/hc08/lkihx.c (newArea),
4111         * as/link/hc08/lkrloc.c: renamed newArea() to ihxNewArea()
4112
4113 2007-01-02 Borut Razem <borut.razem AT siol.net>
4114
4115         * doc/sdccman.lyx: documented #pragma sdcc_hash
4116         * support/cpp2/sdcpp.c: allow_naked_hash (value of #pragma sdcc_hash)
4117           initialized to 0
4118         * support/cpp2/c-ppoutput.c: fixed warning: no newline at end of file
4119
4120 2007-01-01 Bernhard Held <bernhard AT bernhardheld.de>
4121
4122         * src/SDCCast.c (createDo): backPatchLabels() needs falseLabel in
4123         empty 'while'-loop to work correctly, see regression test 'while.c'
4124         * support/regression/tests/while.c: added
4125
4126 2007-01-01 Borut Razem <borut.razem AT siol.net>
4127
4128         * support/cpp2/libcpp/directives.c, support/cpp2/libcpp/identifiers.c,
4129           support/cpp2/libcpp/init.c, support/cpp2/libcpp/sdcpp-opts.c,
4130           support/cpp2/libcpp/sdcpp.c:
4131           sdcpp specific pragma/directive/option handling moved to sdcpp.c
4132         * doc/sdccman.lyx: reference to the GCC 4.1.1 CPP Manual
4133         * support/cpp2/libcpp/mkdeps.c: synchronized with GCC CPP 4.1.1
4134
4135 2006-12-31 Borut Razem <borut.razem AT siol.net>
4136
4137         * SDCPP synchronized with GCC CPP release version 4.1.1,
4138           currently the latest release:
4139         * support/cpp2/libcpp, support/cpp2/libcpp/include,
4140           support/cpp2/libcpp/include/cpp-id-data.h
4141           support/cpp2/libiberty/fopen_unlocked.c
4142           support/cpp2/libiberty/md5.c
4143           support/cpp2/md5.h
4144           support/cpp2/opt-functions.awk
4145           support/cpp2/opt-gather.awk
4146           support/cpp2/optc-gen.awk
4147           support/cpp2/opth-gen.awk:
4148           added
4149         * support/cpp2/Makefile.in, support/cpp2/auto-host_vc_in.h,
4150           support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
4151           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
4152           support/cpp2/c-pretty-print.h, support/cpp2/cppdefault.c,
4153           support/cpp2/cppdefault.h, support/cpp2/diagnostic.c,
4154           support/cpp2/diagnostic.h, support/cpp2/except.h,
4155           support/cpp2/hwint.h, support/cpp2/input.h,
4156           support/cpp2/intl.h, support/cpp2/move-if-change,
4157           support/cpp2/opts.c, support/cpp2/opts.h,
4158           support/cpp2/output.h, support/cpp2/prefix.c,
4159           support/cpp2/prefix.h, support/cpp2/pretty-print.c,
4160           support/cpp2/pretty-print.h, support/cpp2/sdcpp-opts.c,
4161           support/cpp2/sdcpp.c, support/cpp2/sdcpp.dsp,
4162           support/cpp2/sdcpp.h, support/cpp2/sdcpp.opt,
4163           support/cpp2/sdcppa.dsp, support/cpp2/symcat.h,
4164           support/cpp2/version.c:
4165           modified
4166         * support/cpp2/libcpp/charset.c, support/cpp2/libcpp/directives.c,
4167           support/cpp2/libcpp/errors.c, support/cpp2/libcpp/expr.c,
4168           support/cpp2/libcpp/files.c, support/cpp2/libcpp/identifiers.c,
4169           support/cpp2/libcpp/include/cpplib.h, support/cpp2/libcpp/include/line-map.h,
4170           support/cpp2/libcpp/include/mkdeps.h, support/cpp2/libcpp/include/symtab.h,
4171           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
4172           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/line-map.c,
4173           support/cpp2/libcpp/macro.c, support/cpp2/libcpp/mkdeps.c,
4174           support/cpp2/libcpp/symtab.c, support/cpp2/libcpp/system.h,
4175           support/cpp2/libcpp/traditional.c, support/cpp2/libcpp/ucnid.h,
4176           support/cpp2/libiberty/hashtab.c, support/cpp2/libiberty/hashtab.h:
4177           moved
4178         * support/cpp2/cppcharset.c, support/cpp2/cpperror.c,
4179           support/cpp2/cppexp.c, support/cpp2/cppfiles.c,
4180           support/cpp2/cpphash.c, support/cpp2/cpphash.h,
4181           support/cpp2/cppinit.c, support/cpp2/cpplex.c,
4182           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
4183           support/cpp2/cppmacro.c, support/cpp2/cpptrad.c,
4184           support/cpp2/cppucnid.h, support/cpp2/hashtab.c,
4185           support/cpp2/hashtab.h, support/cpp2/hashtable.c,
4186           support/cpp2/hashtable.h, support/cpp2/line-map.c,
4187           support/cpp2/line-map.h, support/cpp2/mkdeps.c,
4188           support/cpp2/mkdeps.h, support/cpp2/options_vc_in.c,
4189           support/cpp2/options_vc_in.h, support/cpp2/opts.sh,
4190           support/cpp2/system.h:
4191           deleted / moved
4192
4193 2006-12-31 Borut Razem <borut.razem AT siol.net>
4194
4195         * configure.in, configure: fixed bug #1538756: configure dies if bison
4196           and flex are not installed, 2nd try
4197
4198 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
4199
4200         * src/mcs51/peeph.def: renamed rule 400 to 500, moved rule 253.x to
4201         400.x for better code in RFE 899102
4202
4203 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
4204
4205         * src/SDCCpeeph.c (deadMove),
4206         * src/port.h,
4207         * src/mcs51/peep.h: renamed 'op' by 'reg'
4208         * src/mcs51/peep.c (isFunc, isCallerSaveFunc): added,
4209         (scan4op): small change for removeDeadMove(), added support for
4210         'callee saves' and/or PACLL function calls,
4211         (removeDeadMove): added, removes superflous 'mov r%1,%2',
4212         (removeDeadPopPush): renamed from mcs51DeadMove(), common parts
4213         left in new dispatcher mcs51DeadMove()
4214         (mcs51DeadMove): dispatcher for removeDeadPopPush() and new
4215         removeDeadMove()
4216         * src/mcs51/peeph.def: added rule 301 removing superflous 'mov r%1,%2'
4217
4218 2006-12-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4219
4220         * support/cpp2/options_vc_in.h, support/cpp2/options_vc_in.c,
4221           support/cpp2/sdcppa.dsp: create 'options.h' and 'options.c' under MSVC.
4222
4223 2006-12-30 Borut Razem <borut.razem AT siol.net>
4224
4225         * support/cpp2/spacs.h: deleted from svn
4226         * configure.in, configure: fixed bug #1538756: configure dies if bison
4227           and flex are not installed
4228
4229 2006-12-29 Maarten Brock <sourceforge.brock AT dse.nl>
4230
4231         * src/z80/gen.c (assignResultValue): fixed bug when registers overlap,
4232           with this z80 passes printf float test when enabled
4233         * support/regression/tests/bug1057979.c: typo disabled ds390 float test
4234
4235 2006-12-28 Borut Razem <borut.razem AT siol.net>
4236
4237         * support/cpp2/config.in, support/cpp2/configure.in,
4238           support/cpp2/configure, support/cpp2/Makefile.in:
4239           fix for the solaris build
4240
4241 2006-12-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4242
4243         * src/SDCC.y (type_specifier2, pointer),
4244         * src/SDCCsymt.h,
4245         * src/SDCCsymt.c (mergeSpec, checkSClass),
4246         * support/Util/SDCCerr.c,
4247         * support/Util/SDCCerr.h: Parse and validate the restrict keyword
4248         * support/valdiag/valdiag.py: Allow test cases to specify
4249           required language standard
4250         * support/valdiag/tests/restrict.c: New file to test restrict keyword
4251         * support/valdiag/tests/tentdecl.c: Supress empty source file error
4252
4253 2006-12-27 Borut Razem <borut.razem AT siol.net>
4254
4255         * support/cpp2/cppmain.c, support/cpp2/mbchar.[ch]: removed
4256         * support/cpp2/libiberty/Makefile.in, support/cpp2/libiberty/sdcpp.dsp:
4257           mbchar removed
4258         * support/cpp2/libiberty/getpwd.c, support/cpp2/sdcpp.h:
4259           fixed for borland C
4260         * support/cpp2/libiberty/Makefile.bcc: updated
4261         * src/pic16/main.c: fixed #pragma udata handling
4262         * src/mcs51/mcs51.dsp: added peep.[ch] to the project
4263
4264 2006-12-26 Bernhard Held <bernhard AT bernhardheld.de>
4265
4266         * src/SDCCpeeph.c: made labelHashEntry global,
4267         made pcDistance, FBYNAME static,
4268         (pcDistance): made static, use isComment and isLabel,
4269         (deadMove): added,
4270         (getLabelRef): added, extracted from labelRefCount(),
4271         (labelRefCount): use new getLabelRef(),
4272         (callFuncByName): made static, added deadMove,
4273         use isComment and isLabel,
4274         (newPeepRule): made static, set isLabel,
4275         (isLabelDefinition): added parameter isPeepRule to allow '%' in
4276         labels from peephole rules,
4277         (buildLabelRefCountHash): speed up by running isLabelDefinition() only
4278         when isComment or isLabel is set
4279         * src/SDCCpeeph.h: added "isLabel" and "visited" to struct lineNode,
4280         added labelHashEntry, isLabelDefinition, labelHash and getLabelRef
4281         to make them global
4282         * src/mcs51/peep.h: added
4283         * src/mcs51/peep.c: added, implements mcs51DeadMove()
4284         * src/port.h: added peep->deadMove to port structure
4285         * src/mcs51/main.c: initialize peep->deadMove with mcs51DeadMove
4286         * src/mcs51/peeph.def: renumbered rule 300 to 400, added new rule 300
4287         deadMove, finally removed no. 1 and 2
4288         * src/mcs51/gen.c,
4289         * src/pic/gen.c,
4290         * src/z80/gen.c,
4291         * src/z80/ralloc.c,
4292         * src/pic16/gen.c,
4293         * src/ds390/gen.c,
4294         * src/hc08/gen.c: mark lines with isComment or isLabel
4295         * sim/ucsim/s51.src/uc390hw.cc: don't waist 65535 ticks before CKRDY
4296         * .version,
4297         * sdcc.spec: bumped version to 2.6.3
4298
4299 2006-12-26 Borut Razem <borut.razem AT siol.net>
4300
4301         * support/cpp2/Makefile.in: added dependency on options.h
4302         * configure: regenerated
4303         * support/cpp2/sdcpp.opt, support/cpp2/move-if-change: svn:eol-style native
4304         * support/cpp2/Makefile.in: added vasprintf.c
4305
4306 2006-12-25 Borut Razem <borut.razem AT siol.net>
4307
4308         * SDCPP synchronized with GCC CPP release version 3.4.6,
4309           the latest release before 4.x:
4310         * support/cpp2/Makefile.in, support/cpp2/config.h,
4311           support/cpp2/configure, support/cpp2/configure.in,
4312           support/cpp2/cppdefault.c, support/cpp2/cppdefault.h,
4313           support/cpp2/cpperror.c, support/cpp2/cppexp.c,
4314           support/cpp2/cppfiles.c, support/cpp2/cpphash.c,
4315           support/cpp2/cpphash.h, support/cpp2/cppinit.c,
4316           support/cpp2/cpplex.c, support/cpp2/cpplib.c,
4317           support/cpp2/cpplib.h, support/cpp2/cppmacro.c,
4318           support/cpp2/cpptrad.c, support/cpp2/except.h,
4319           support/cpp2/hashtable.c, support/cpp2/hashtable.h,
4320           support/cpp2/hwint.h, support/cpp2/intl.h,
4321           support/cpp2/line-map.c, support/cpp2/line-map.h,
4322           support/cpp2/mkdeps.c, support/cpp2/mkdeps.h,
4323           support/cpp2/output.h, support/cpp2/prefix.c,
4324           support/cpp2/prefix.h, support/cpp2/sdcpp.dsp,
4325           support/cpp2/system.h, support/cpp2/version.c:
4326           modified
4327         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
4328           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
4329           support/cpp2/c-pretty-print.h, support/cpp2/cppcharset.c,
4330           support/cpp2/cppucnid.h, support/cpp2/diagnostic.c,
4331           support/cpp2/diagnostic.def, support/cpp2/diagnostic.h,
4332           support/cpp2/hashtab.c, support/cpp2/hashtab.h,
4333           support/cpp2/input.h, support/cpp2/libiberty/getpwd.c,
4334           support/cpp2/libiberty/vasprintf.c, support/cpp2/libiberty/xmemdup.c,
4335           support/cpp2/move-if-change, support/cpp2/opts.c,
4336           support/cpp2/opts.h, support/cpp2/opts.sh,
4337           support/cpp2/pretty-print.c, support/cpp2/pretty-print.h,
4338           support/cpp2/sdcpp.opt, support/cpp2/sdcpp-opts.c,
4339           support/cpp2/win32, support/cpp2/win32/dirent.c,
4340           support/cpp2/win32/dirent.h:
4341           added
4342         * support/cpp2/sdcpp.c: renamed from sdcppmain.c
4343         * support/cpp2/sdcpp.h: renamed from sdcc.h
4344         * sdcppinit.c: deleted
4345
4346 2006-12-23 Borut Razem <borut.razem AT siol.net>
4347
4348         * support/cpp2/cpphash.h, support/cpp2/cpplex.c,
4349           support/cpp2/cpplib.[ch], support/cpp2/sdcppinit.c, doc/sdccman.lyx,
4350           preproc.c: an other try to fix bug #982435: introduced
4351           -pedantic-parse-number command line option and pedantic_parse_number
4352           pragma
4353
4354 2006-12-21 Maarten Brock <sourceforge.brock AT dse.nl>
4355
4356         * as/link/mcs51/lkarea.c (lnkarea2): handle absolute areas, restructured
4357            BSEG handling,
4358           (lnksect2): use --data-loc and --idata-loc as lower bound for ramstart,
4359            corrected overlayed areax addresses, warn about memory overlaps
4360         * as/mcs51/asmain.c (asmbl): create a new area for every .org directive
4361         * src/avr/main.c,
4362         * src/ds390/main.c,
4363         * src/hc08/main.c,
4364         * src/mcs51/main.c,
4365         * src/pic16/main.c,
4366         * src/pic/main.c,
4367         * src/xa51/main.c,
4368         * src/z80/main.c,
4369         * src/port.h: added xabs_name and iabs_name
4370         * src/SDCCglue.c (emitRegularMap): allocate for absolutes with initializer
4371           (glue, emitMaps): create and emit maps d_abs and i_abs
4372         * src/SDCCglue.h: cosmetic changes
4373         * src/SDCCmain.c (setDefaultOptions): idata can start below 0x80
4374         * src/SDCCmem.h,
4375         * src/SDCCmem.c (initMem): added x_abs, i_abs and d_abs
4376           (allocDefault): put absolute, initialized globals in them
4377         * support/regression/tests/absolute.c: added absolute bdata test
4378         * device/lib/printf_large.c (output_float): moved fpBuffer to stack/xdata
4379
4380 2006-12-20 Borut Razem <borut.razem AT siol.net>
4381
4382         * support/cpp2/cpphash.h, support/cpp2/cpplex.c: fixed bug #982435
4383         * support/regression/tests/preproc.c: renamed from bug-1351710.c,
4384           added regression test for bug #982435
4385
4386 2006-12-18 Borut Razem <borut.razem AT siol.net>
4387
4388         * src/SDCCutil.c: fixed a bug in (get_pragma_token)
4389         * src/pic16/main.c, src/SDCC.lex, src/z80/main.c:
4390           small cosmetic changes
4391         * src/SDCC.lex: (stringLiteral) fixed bug #1351710
4392         * support/regression/tests/bug-1351710.c: added regression test
4393
4394 2006-12-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4395
4396         * doc/sdccman.lyx: added the long missed iCode table
4397           "<where is figure II?>", added links to wiki
4398
4399 2006-12-17 Borut Razem <borut.razem AT siol.net>
4400
4401         * doc/sdccman.lyx, src/pic16/main.c, src/pic/main.c, src/port.h,
4402           src/SDCC.lex, src/SDCCutil.[ch], src/z80/main.c,
4403           support/Util/SDCCerr.[ch]: removed deprecated pragmas,
4404           unified table driven pragma handling, pragma argument type checking
4405         * support/Util/dbuf.c: (dbuf_set_size) allow to set size equal to the
4406           current one - version 1.1.3
4407         * src/SDCCmain.c: (setParseWithComma) substituted brain damaged strtok
4408
4409 2006-12-13 Raphael Neider <rneider AT web.de>
4410
4411         * src/pic/device.h: removed AssignedMemory structure and macros
4412         * src/pic/device.c: removed global finalMapping (linker assigns
4413             memory locations),
4414           (register_map): add SFRs to remembered memRanges
4415           (addMemRange,isSFR,dump_map,dump_sfr,mapRegister,assignRegister,
4416           assignFixedRegisters,assignRelocatableRegisters): removed,
4417           (setMaxRAM,validAddress): adapted accordingly,
4418           (pic14_hasSharebank,pic14_getSharedStack): only report and use
4419             reasonably sized sharebanks,
4420         * src/pic/ralloc.c (writeUsedRegs): stripped down (remove?),
4421           (allDefsOutOfRange): removed unused code,
4422         * src/pic/main.c (_process_pragma): removed memmap/maxram pragma
4423             handling
4424         * src/pic/pcode.c (register_reassign): removed recursion warning,
4425             fired far too often,
4426         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap): modified
4427             to use existing pic14_stringInSet() to avoid duplicate symbols,
4428             tidied up the code a bit,
4429           (pic14printLocals): added in symmetry to printExterns, replaces
4430             writeUsedRegs more or less,
4431           (picglue): call new pic14_printLocals(),
4432         * device/include/pic/pic*.h: removed #pragma memmap directives,
4433             information gathered from include/pic/pic14devices.txt
4434         * support/scripts/inc2h.pl: do not emit #pragma memmap lines
4435
4436 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
4437
4438         * device/include/mcs51/C8051F520.h: fixed buggy CPT0MX
4439
4440 2006-12-11 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4441
4442         * device/include/mcs51/cc2430.h: fixed missing ';'
4443
4444 2006-12-10 Raphael Neider <rneider AT web.de>
4445
4446         * device/lib/pic16/libc/stdio/vfprintf.c,
4447         * device/lib/pic16/libc/stdio/printf_small.c,
4448         * device/lib/pic16/libc/stdio/printf_timy.c: pop int from stack for
4449           char arguments, as char varargs are cast to int by the caller,
4450           hopefully fixes #1604915 (other device libraries are still affected)
4451
4452 2006-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4453
4454         * src/mcs51/ralloc.c (packRegsForAssign),
4455         * src/hc08/ralloc.c (packRegsForAssign): fixed bug #1605880
4456
4457 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
4458
4459         * device/include/malloc.h: removed init_dynamic_memory
4460         * device/lib/malloc.c: made init_dynamic_memory static and automatically
4461           call it once from malloc. Also use _sdcc_heap[] from _heap.c
4462         * device/lib/_heap.c: new, added, contains _sdcc_heap[]
4463         * device/lib/libsdcc.lib,
4464         * device/lib/Makefile.in,
4465         * support/regression/ports/mcs51-xstack-auto/spec.mk: added _heap.c
4466         * doc/sdccman.lyx: documented use of new _heap.c
4467         * support/regression/tests/malloc.c: removed init_dynamic_memory
4468         * src/cdbFile.c(spacesToUnderscores): new function,
4469           (cdbWriteEndFunction, cdbWriteCLine): use spacesToUnderscores, fixes bug
4470           1068030
4471         * device/include/tinibios.h: removed defines for putchar and getchar
4472         * device/lib/ds390/Makefile.in: added putchar.c
4473         * device/lib/ds390/putchar.c: new, added, fixes bug 1465671
4474
4475 2006-12-09 Borut Razem <borut.razem AT siol.net>
4476
4477         * support/cpp2/sdcc.h: prevent multiple inclusion
4478         * support/cpp2/options.h: deleted
4479
4480 2006-12-08 Borut Razem <borut.razem AT siol.net>
4481
4482         * support/cpp2/sdcc.h: removed x*alloc() macros
4483         * support/cpp2/libiberty.h: uncommented out x*alloc() declarations
4484         * support/cpp2/Makefile.bcc, support/cpp2/Makefile.in,
4485           support/cpp2/sdcpp.sdc: x*alloc files added to the project
4486         * support/cpp2/system.h: moved #include "sdcc.h"
4487         * support/cpp2/libiberty/xexit.c, support/cpp2/libiberty/xmalloc.c,
4488           support/cpp2/libiberty/xstrdup.c, support/cpp2/libiberty/xstrerror.c:
4489           added
4490         * support/cpp2/sdcppinit.c: added -isysroot, -fsigned-char,
4491           -funsigned-char options
4492         * support/cpp2/sdcppmain.c: fixed bug 1611411
4493
4494 2006-12-07 Borut Razem <borut.razem AT siol.net>
4495
4496         * support/cpp2/cpplib.c: reverted sdcpp special handling of _Pragma()
4497           directive
4498
4499 2006-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
4500
4501         * src/SDCCsymt.c (addDecl): fixed bug 1609244
4502         * src/SDCCmain.c (linkEdit): fixed bug 1609279
4503         * doc/sdccman.lyx,
4504         * .version: bumped to 2.6.2 because a) it's been a while
4505           b) the linker sources have moved c) the preprocessor is upgraded
4506
4507 2006-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4508
4509         * support/regression/tests/snprintf.c: some checks
4510         * lib/src/printf_large.c: %bc: read char instead of int from stack
4511
4512 2006-12-03 Maarten Brock <sourceforge.brock AT dse.nl>
4513
4514         * device/include/mcs51/cc2430.h: inserted _XPAGE
4515
4516 2006-12-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4517
4518         * device/include/mcs51/cc2430.h: added
4519
4520 2006-12-02 Maarten Brock <sourceforge.brock AT dse.nl>
4521
4522         * device/include/asm/default/features.h,
4523         * device/include/asm/ds390/features.h,
4524         * device/include/mcs51/at89s53.h,
4525         * device/include/ser.h,
4526         * device/include/ser_ir.h,
4527         * device/include/serial.h: changed keywords to double underscore variants,
4528           fixes bug 1590261 some more, thanks Steven Borley
4529
4530 2006-12-01 Raphael Neider <rneider AT web.de>
4531
4532         * src/pic/pcode.c (register_reassign): do not crash on recursive code
4533           but emit warning (recursion is not supported for pic14)
4534
4535 2006-11-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4536
4537         * src/mcs51/peeph.def: added 101.a,b (moves to int/long xdata)
4538         * doc/sdccman.lyx: various small changes, acknowledged Sourceforge
4539
4540 2006-11-30 Raphael Neider <rneider AT web.de>
4541
4542         * src/pic/device.c (dump_sfr): always emit symbols
4543         * src/pic/glue.c (pic14printPublics): fixed typo
4544
4545 2006-11-30 Raphael Neider <rneider AT web.de>
4546
4547         * src/pic/device.c (create_pic,ram_map): add memRange entries to PIC
4548           (pic14_getSharebankSize, pic14_getSharebankAddress): replaced with
4549           (pic14_hasSharebank,pic14_isShared,pic14_allRAMShared,
4550            pic14_getSharedStack): NEW, evaluate the memRange entries to locate
4551            a sharebank, use a non-shared bank for the stack if none available
4552         * src/pic/device.h (struct memRange): added linked list next field,
4553           added prototypes for above functions
4554         * src/pic/ralloc.c (initStack): handle shared and banked stacks,
4555           (typeRegWithIdx): accept fixed and unfixed stack registers
4556         * src/pic/pcode.c (pCodeInitRegisters): use new functions to create
4557           the stack, handle shared and banked stack (except for WSAVE),
4558           (insertBankSel): removed useless optimization (will never fire),
4559           (FixRegisterBanking): added optimization for devices with only one
4560           possibly aliased bank of memory, like 16f84
4561         * src/pic/glue.c (pic14_constructAbsMap): back to udata_ovr, as some
4562           devices have no SHAREBANK in the linker script
4563         * device/include/pic/pic14devices.txt: documented memmap
4564         * device/lib/pic/libdev/Makefile.in: removed --stack-loc again
4565
4566 2006-11-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4567
4568         * src/hc08/gen.c (transferRegReg, loadRegFromAop, forceStackedAop,
4569           storeRegToAop, freeAsmop, genPlusIncr, genPlus, genPointerGetSetOfs,
4570           genAnd, genOr, genXor, genLeftShiftLiteral, genRightShiftLiteral,
4571           genhc08Code): switched most of the D (debug) macros to DD (detailed
4572           debug) macros to better control clutter in the generated .asm file.
4573         * src/hc08/gen.c: (forceStackedAop, genUminus, genLeftShift,
4574           genRightShift): fixed bug with non-constant bit shift stored to
4575           a volatile result (SF Open Discussion forum thread #1616749).
4576           Single byte case is not yet optimized.
4577
4578 2006-11-28 Maarten Brock <sourceforge.brock AT dse.nl>
4579
4580         * device/include/asm/mcs51/features.h,
4581         * device/include/malloc.h,
4582         * device/include/stdio.h: changed keywords to double underscore variants,
4583           fixes bug 1590261
4584
4585 2006-11-27 Borut Razem <borut.razem AT siol.net>
4586
4587         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
4588           support/cpp2/Makefile.in, support/cpp2/cppfiles.c,
4589           support/cpp2/output.h, support/cpp2/cppinit.c,
4590           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
4591           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
4592           support/cpp2/cppdefault.c, support/cpp2/system.h,
4593           support/cpp2/cpphash.h, support/cpp2/cpplex.c,
4594           support/cpp2/cppdefault.h, support/cpp2/mbchar.c,
4595           support/cpp2/prefix.c, support/cpp2/except.h,
4596           support/cpp2/hwint.h, support/cpp2/cppmacro.c,
4597           support/cpp2/line-map.h, support/cpp2/sdcpp.dsp,
4598           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
4599           support/cpp2/version.c, support/cpp2/cppmain.c,
4600           support/cpp2/version.h, support/cpp2/hashtable.c,
4601           support/cpp2/cpperror.c:
4602           synchronized with GCC CPP release version 3.3.6,
4603           the latest where cppmain.c still exists.
4604         * support/cpp2/cpptrad.c, support/cpp2/sdcppmain.c,
4605           support/cpp2/sdcppinit.c: added
4606
4607 2006-11-27 Borut Razem <borut.razem AT siol.net>
4608
4609         * support/cpp2/cpplex.c:
4610           fixed _asm ... _endasm handling bug, introduce with GCC CPP
4611           synchronization
4612         * support/cpp2/cpplib.c: removed definitions of unused variables
4613
4614 2006-11-26 Borut Razem <borut.razem AT siol.net>
4615
4616         * support/cpp2/libiberty.h: commented out x*alloc() declarations
4617           since they are redefined by macros in support/cpp2/sdcc.h
4618         * support/cpp2/sdcc.h: x*alloc macro redefinition
4619
4620 2006-11-25 Borut Razem <borut.razem AT siol.net>
4621
4622         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
4623           support/cpp2/configure, support/cpp2/Makefile.in,
4624           support/cpp2/cppfiles.c, support/cpp2/output.h,
4625           support/cpp2/cppinit.c, support/cpp2/cpplib.c,
4626           support/cpp2/config.h, support/cpp2/cpplib.h,
4627           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
4628           support/cpp2/cppdefault.c, support/cpp2/config.in,
4629           support/cpp2/system.h, support/cpp2/cpplex.c,
4630           support/cpp2/cpphash.h, support/cpp2/mbchar.c,
4631           support/cpp2/cppdefault.h, support/cpp2/prefix.c
4632           support/cpp2/hwint.h, support/cpp2/mbchar.h,
4633           support/cpp2/prefix.h, support/cpp2/cppmacro.c,
4634           support/cpp2/configure.in, support/cpp2/intl.h,
4635           support/cpp2/sdcpp.dsp, support/cpp2/acconfig.h,
4636           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
4637           support/cpp2/version.c, support/cpp2/cppmain.c,
4638           support/cpp2/ansidecl.h, support/cpp2/libiberty.h,
4639           support/cpp2/hashtable.c, support/cpp2/aclocal.m4,
4640           support/cpp2/cpperror.c,
4641           support/cpp2/libiberty/safe-ctype.c,
4642           support/cpp2/libiberty/safe-ctype.h,
4643           support/cpp2/libiberty/splay-tree.c,
4644           support/cpp2/libiberty/obstack.c,
4645           support/cpp2/libiberty/lbasename.c,
4646           support/cpp2/libiberty/splay-tree.h,
4647           support/cpp2/libiberty/obstack.h:
4648           synchronized with GCC CPP release version 3.2.3,
4649           the latest before integration of cpp into gcc
4650         * support/cpp2/except.h, support/cpp2/line-map.c,
4651           support/cpp2/line-map.h,
4652           support/cpp2/libiberty/hex.c,
4653           support/cpp2/libiberty/concat.c,
4654           support/cpp2/libiberty/filenames.h: added
4655         * support/cpp2/intl.c: deleted
4656
4657 2006-11-24 Borut Razem <borut.razem AT siol.net>
4658
4659         * src/SDCC.y: enabled compilation of empty source file
4660         * support/Util/SDCCerr.[ch]: added sdcc warning 190 -
4661           "ISO C forbids an empty source file"
4662         * device/lib/_startup.c, device/lib/printf_tiny.c: disable warning 190
4663           if all the code is ifdefed out.
4664
4665 2006-11-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4666
4667         * src/hc08/gen.c (genPcall): fix for bug #1601032
4668
4669 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
4670
4671         * device/include/mcs51/c8051f000.h, device/include/mcs51/C8051F000.h,
4672         * device/include/mcs51/c8051f018.h, device/include/mcs51/C8051F018.h,
4673         * device/include/mcs51/c8051f020.h, device/include/mcs51/C8051F020.h,
4674         * device/include/mcs51/c8051f040.h, device/include/mcs51/C8051F040.h,
4675         * device/include/mcs51/c8051f060.h, device/include/mcs51/C8051F060.h,
4676         * device/include/mcs51/c8051f120.h, device/include/mcs51/C8051F120.h,
4677         * device/include/mcs51/c8051f200.h, device/include/mcs51/C8051F200.h,
4678         * device/include/mcs51/c8051f300.h, device/include/mcs51/C8051F300.h,
4679         * device/include/mcs51/c8051f310.h, device/include/mcs51/C8051F310.h,
4680         * device/include/mcs51/c8051f320.h, device/include/mcs51/C8051F320.h,
4681         * device/include/mcs51/c8051f326.h, device/include/mcs51/C8051F326.h,
4682         * device/include/mcs51/c8051f330.h, device/include/mcs51/C8051F330.h,
4683         * device/include/mcs51/c8051f340.h, device/include/mcs51/C8051F340.h,
4684         * device/include/mcs51/c8051f350.h, device/include/mcs51/C8051F350.h,
4685         * device/include/mcs51/c8051f410.h, device/include/mcs51/C8051F410.h:
4686           Renamed to all upper case as per the standard set by SiLabs
4687
4688 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
4689
4690         * device/include/mcs51/C8051F520.h: new, added
4691         * device/include/mcs51/compiler.h: added link about predefined macros
4692
4693 2006-11-23 Raphael Neider <rneider AT web.de>
4694
4695         * src/regression/Makefile: add -L path to fresh library
4696         * src/regression/simulate: emphasize FAILED output
4697         * src/regression/create_stc: output _failures from gpsim
4698         * src/regression/compare4.c,
4699         * src/regression/rotate6.c: fixed char literals,
4700           all compile, all run =8-D
4701
4702         * src/pic/pcode.h: added isPCASMDIR macro
4703         * src/pic/gen.c (genAnd): fixed bit offset
4704         * src/pic/ralloc.c (allocNewDirReg,allocDirReg,allocRegByName,
4705           packBits): unified register numbering schemes,
4706           (newReg): do not insert stack registers into hash table,
4707           (initStack): unpinned pseudo stack, simplified,
4708           (typeRegWithIdx): fixed retrieval of stack registers,
4709         * src/pic/pcode.c (addpCodeComment,sameBank): added,
4710           (pCodeReplace): removed invalid assertion,
4711           (insertPCodeInstruction): fixed newly added labels,
4712           (insertBankSwitch,BankSelect,IsBankChange,DoBankSelect,
4713           FixRegisterBankingInFlow,compareBankFlow,FixBankFlow,
4714           DumpFlow): removed unsed (broken?) code,
4715           (insertBankSel): prevent STATUS from being BANKSELed,
4716           (FixRegisterBanking): rewritten from scratch, implemented generic
4717             optimizations (suppress BANKSELs to same register and to registers
4718             present in all banks),
4719           (AnalyzeBanking): update flow after BANKSELection
4720
4721         * src/pic/glue.c (pic14_constructAbsMap): emit pseudo stack in
4722             sharebank, let linker place it, mark STKxx symbols as emitted
4723
4724 2006-11-21 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4725
4726         * src/regression/arrays.c,
4727         * src/regression/bank1.c,
4728         * src/regression/bool2.c,
4729         * src/regression/compare7.c,
4730         * src/regression/compare8.c,
4731         * src/regression/compare9.c,
4732         * src/regression/compare10.c,
4733         * src/regression/configword.c,
4734         * src/regression/for.c,
4735         * src/regression/mult1.c,
4736         * src/regression/pointer1.c,
4737         * src/regression/rotate6.c,
4738         * src/regression/string1.c,
4739         * src/regression/struct1.c,
4740         * src/regression/Makefile: make PIC14 regression tests run again
4741           (3 fail, 6 won't compile)
4742
4743 2006-11-21 Raphael Neider <rneider AT web.de>
4744
4745         * device/include/pic16/pic18f4550.h,
4746         * device/include/pic16/pic18f4455.h,
4747         * device/lib/pic16/libdev/pic18f4550.c,
4748         * device/lib/pic16/libdev/pic18f4455.c: fixed #1578591 and #1595144
4749         * configure.in: removed superfluous closing bracket
4750
4751 2006-11-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4752
4753         * device/lib/expf.c: Fixed bug 1599523: result of expf(x) is
4754           always positive.
4755
4756 2006-11-21 Raphael Neider <rneider AT web.de>
4757
4758         * src/pic/device.{c,h}: added pic14_getPIC()
4759         * src/pic/gen.c (continueIfTrue,jumpIfTrue): added PIC code,
4760           (genAnd): added PIC code for one case, fixes #1597044
4761         * src/pic/pcode.c (BankSelect): Ohoh, added generic optimization for
4762           SFRs that are present in all banks (e.g., STATUS)
4763
4764 2006-11-20 Raphael Neider <rneider AT web.de>
4765
4766         * src/pic/pcode.c: changed inverted ops for DECFSZ/DECFSZW and
4767           INCFSZ/INCFSZW and declared them as changing Z bit,
4768           (insertPCodeInstruction): correctly invert the above instructions,
4769           fixes #1599333,
4770           (DoBankSelect): don't panic on po_immediates
4771
4772 2006-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
4773
4774         * as/link/aslink.h,
4775         * as/link/mcs51/lkihx.c (newArea),
4776         * as/link/mcs51/lkrloc.c: renamed newArea() to ihxNewArea()
4777         * as/link/mcs51/lkihx.c (ihx): output reset vector as start address
4778
4779 2006-11-11 Raphael Neider <rneider AT web.de>
4780
4781         * src/pic/pcode.c (newpCodeOpBit): search SymbolTab for referenced
4782           bitfield symbols, fixes #1579535 (once more...).
4783
4784 2006-11-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4785
4786         * support/regression/generate-cases.py,
4787         * support/regression/fwk/include/testfwk.h,
4788         * support/regression/fwk/lib/testfwk.c: used code pointers,
4789           (about 50kByte less code generated for mcs51)
4790
4791 2006-11-06 Borut Razem <borut.razem AT siol.net>
4792
4793         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
4794           debugger/mcs51/configure: fixed failed check because the function
4795           rl_function_of_keyseq isn't in Readline 5.2. Thanks to Ilya Goldberg
4796           who submitted the patch for gpsim.
4797         * debugger/mcs51/configure.in: removed the result message
4798         * debugger/mcs51/Makefile.in: fixed the config.status warning
4799           "... seems to ignore the --datarootdir setting"
4800
4801 2006-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
4802
4803         * device/include/mcs51/c8051f020.h,
4804         * device/include/mcs51/c8051f040.h,
4805         * device/include/mcs51/c8051f060.h,
4806         * device/include/mcs51/c8051f120.h: added PS0, fixed bug 1589279
4807         * src/z80/gen.c (gencjneshort),
4808         * src/z80/peeph.def: applied patch 1571373, thanks Philipp Krause
4809
4810 2006-10-31 Borut Razem <borut.razem AT siol.net>
4811
4812         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
4813           debugger/mcs51/configure: get readline version
4814
4815 2006-10-30 Borut Razem <borut.razem AT siol.net>
4816
4817         * debugger/mcs51/sdcdb.c: replaced hardcoded "/" with DIR_SEPARATOR_STRING
4818         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
4819           debugger/mcs51/configure: locate readline even when cross compiling
4820         * support/scripts/sdcc.nsi: include readline5.dll into the setup package
4821
4822 2006-10-29 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4823
4824         * device/include/mcs51/serial_IO.h: putchar() and getchar() using
4825           serial port.
4826
4827 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
4828
4829         * device/include/malloc.h,
4830         * device/lib/calloc.c,
4831         * device/lib/free.c,
4832         * device/lib/malloc.c,
4833         * device/lib/realloc.c: moved definition of struct into sources
4834         * support/regression/tests/malloc.c: use void* for init_dynamic_memory()
4835
4836 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
4837
4838         * as/asx8051.dsp: corrected output directories
4839         * as/link/hc08: new directory for hc08 linker
4840         * as/hc08/aslink.h,             as/link/aslink.h,
4841         * as/hc08/aslink.mak,           as/link/hc08/aslink.mak,
4842         * as/hc08/clean.mk,             as/link/hc08/clean.mk,
4843         * as/hc08/link_hc08.dsp,        as/link/hc08/link_hc08.dsp,
4844         * as/hc08/lkaomf51.c,           as/link/hc08/lkaomf51.c,
4845         * as/hc08/lkarea.c,             as/link/hc08/lkarea.c,
4846         * as/hc08/lkdata.c,             as/link/hc08/lkdata.c,
4847         * as/hc08/lkelf.c,              as/link/hc08/lkelf.c,
4848         * as/hc08/lkihx.c,              as/link/hc08/lkihx.c,
4849         * as/hc08/lklibr.c,             as/link/hc08/lklibr.c,
4850         * as/hc08/lkmain.c,             as/link/hc08/lkmain.c,
4851         * as/hc08/lkmem.c,              as/link/hc08/lkmem.c,
4852         * as/hc08/lkrloc.c,             as/link/hc08/lkrloc.c,
4853         * as/hc08/lks19.c,              as/link/hc08/lks19.c,
4854         * as/hc08/Makefile.aslink,      as/link/hc08/Makefile.aslink,
4855         * as/hc08/Makefile.bcc,         as/link/hc08/Makefile.bcc,
4856         * as/hc08/Makefile.in,          as/link/hc08/Makefile.in,
4857         * as/link/hc08/conf.mk,
4858         * configure,
4859         * configure.in,
4860         * Makefile.in,
4861         * sdcc.dsw: moved hc08 linker to as/link/hc08
4862         * as/hc08/lkeval.c,     as/link/mcs51/lkeval.c,     as/link/lkeval.c,
4863         * as/hc08/lkhead.c,     as/link/mcs51/lkhead.c,     as/link/lkhead.c,
4864         * as/hc08/lklex.c,      as/link/mcs51/lklex.c,      as/link/lklex.c,
4865         * as/hc08/lklist.c,     as/link/mcs51/lklist.c,     as/link/lklist.c,
4866         * as/hc08/lknoice.c,    as/link/mcs51/lknoice.c,    as/link/lknoice.c,
4867         * as/hc08/lksym.c,      as/link/mcs51/lksym.c,      as/link/lksym.c,
4868         * as/link/mcs51/aslink.dsp,
4869         * as/link/mcs51/Makefile.in: factored out the common files
4870         * as/hc08/lkstore.c: deleted, use the one already in as/link/
4871         * as/clean.mk: extra cleaning common files
4872         * as/link/mcs51/strcmpi.c,      as/strcmpi.c: moved
4873         * as/link/mcs51/strcmpi.h: deleted, moved protoype to aslink.h
4874         * as/mcs51/asm.h: include sdccconf.h or sdcc_vc.h
4875
4876 2006-10-29 Raphael Neider <rneider AT web.de>
4877
4878         * src/pic/ralloc.c (newReg): create aliases for registers with
4879           multiple names to fix #1579535 and #1584001,
4880           (regWithIdx,dirregWithName): resolve aliases on lookup
4881         * src/pic/pcode.c (DoBankSelect): die with error message on failing
4882           bankselect
4883         * device/lib/pic/libdev/Makefile.in: move pseudo stack down to 0x4f
4884           to prevent build errors on small devices
4885
4886 2006-10-28 Raphael Neider <rneider AT web.de>
4887
4888         * src/pic/gen.c (genFunction,genCall): drop "same code page"
4889           assumption within interrupt handlers, fixes #1584940
4890         * src/pic/glue.c (pic14_constructAbsMap): mark absolute symbols as
4891           "emitted" to avoid emitting them again in udata
4892
4893 2006-10-27 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4894
4895         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
4896         Removed.
4897
4898 2006-10-26 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4899
4900         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
4901         Initialize uart only if SM0 and SM1 are zero.  Also, use flag to turn
4902         on/off CR to CRLF conversion.
4903
4904 2006-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4905
4906         * doc/sdccman.lyx: updated IRQ section
4907
4908 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4909
4910         * device/lib/serial_io.c: removed
4911         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c
4912         replacements for serial_io.c
4913
4914 2006-10-24 Maarten Brock <sourceforge.brock AT dse.nl>
4915
4916         * src/z80/main.c (_process_pragma, _parseOptions): fixed bug 1583318
4917
4918 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4919
4920         * device/lib/serial_io.c: Default putchar() and getchar() for
4921           mcs51 uses serial port.
4922
4923 2006-10-23 Maarten Brock <sourceforge.brock AT dse.nl>
4924
4925         * src/mcs51/gen.c (movc): improved check for 0 and 1, see RFE 1582704
4926
4927 2006-10-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4928
4929         * support/regression/ports/mcs51/support.c: smaller
4930         _sdcc_external_startup()
4931         * device/lib/mcs51/crtxclear.asm: don't check high byte of l_PSEG
4932
4933 2006-10-20 Maarten Brock <sourceforge.brock AT dse.nl>
4934
4935         * device/lib/gbz80/crt0.s,
4936         * device/lib/gbz80/crt0_rle.s,
4937         * device/lib/gbz80/div.s,
4938         * device/lib/gbz80/fstubs.s,
4939         * device/lib/gbz80/heap.s,
4940         * device/lib/gbz80/mul.s,
4941         * device/lib/gbz80/putchar.s,
4942         * device/lib/gbz80/stubs.s,
4943         * device/lib/z80/crt0.s,
4944         * device/lib/z80/crt0_rle.s,
4945         * device/lib/z80/div.s,
4946         * device/lib/z80/fstubs.s,
4947         * device/lib/z80/heap.s,
4948         * device/lib/z80/mul.s,
4949         * device/lib/z80/putchar.s,
4950         * device/lib/z80/stubs.s: reverted, I was mistaken
4951
4952 2006-10-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4953
4954         * src/mcs51/peeph.def: peephole 238.x added check for notvolatile
4955         * support/regression/ports/mcs51/support.c: removed race
4956         condition on TI in _putchar allowing to use serial port mode 0
4957
4958 2006-10-20 Borut Razem <borut.razem AT siol.net>
4959
4960         * debugger/mcs51/sdcdb.c: replaced isblank() with isspace()
4961
4962 2006-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
4963
4964         * device/lib/gbz80/crt0.s,
4965         * device/lib/gbz80/crt0_rle.s,
4966         * device/lib/gbz80/div.s,
4967         * device/lib/gbz80/fstubs.s,
4968         * device/lib/gbz80/heap.s,
4969         * device/lib/gbz80/mul.s,
4970         * device/lib/gbz80/putchar.s,
4971         * device/lib/gbz80/stubs.s,
4972         * device/lib/z80/crt0.s,
4973         * device/lib/z80/crt0_rle.s,
4974         * device/lib/z80/div.s,
4975         * device/lib/z80/fstubs.s,
4976         * device/lib/z80/heap.s,
4977         * device/lib/z80/mul.s,
4978         * device/lib/z80/putchar.s,
4979         * device/lib/z80/stubs.s: removed all leading underscores from area names
4980
4981 2006-10-17 Maarten Brock <sourceforge.brock AT dse.nl>
4982
4983         * support/regression/ports/mcs51/support.c: use highest baudrate so the
4984           regression tests are not waiting in the simulator for simulated
4985           transmission of debug output
4986
4987 2006-10-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4988
4989         * device/lib/printf_large.c: slightly smaller
4990         * doc/sdccman.lyx: do not use spaces within html links
4991
4992 2006-10-16 Borut Razem <borut.razem AT siol.net>
4993
4994         * configure.in, configure, sdccconf_in.h, src/SDCCglobal,
4995           debugger/mcs51/Makefile.in, debugger/mcs51/sdcdb.[ch],
4996           debugger/mcs51/aclocal.m4, debugger/mcs51/acinclide.m4,
4997           debugger/mcs51/config.h.in, debugger/mcs51/configure.in,
4998           debugger/mcs51/configure:
4999           [ 1185668 ] add gnu readline support to sdcdb - enabled
5000
5001 2006-10-16 Raphael Neider <rneider AT web.de>
5002
5003         * src/pic/pcode.c (BankSelect): another fix on (partial) BANKSELs,
5004           fixes #1577882, removes close to all banking optimizations
5005
5006 2006-10-15 Maarten Brock <sourceforge.brock AT dse.nl>
5007
5008         * src/SDCCsymt.c (checkSClass): no error for uninitialised absolute
5009           variables in code memory
5010         * support/regression/tests/absolute.c: added test for this
5011
5012 2006-10-15 Raphael Neider <rneider AT web.de>
5013
5014         * src/pic/pcode.c (InsertBankSel): suppress BANKSELs for one bank
5015           devices,
5016           (BankSelect): emit BANKSEL before touching linker-placed regs,
5017           fixes #1570934
5018
5019 2006-10-10 Raphael Neider <rneider AT web.de>
5020
5021         * src/SDCCmain.c (optionsTable): accept --stack-size for PICs,
5022         * src/pic/device.c (pic14_getSharebankSize,pic14_getSharebankAddress),
5023         * src/pic/main.c (_pic14_parseOptions),
5024         * src/pic/main.h: mostly reverted to previous state, now use results
5025             from SDCCmain.c's argument parsing
5026
5027 2006-10-10 Borut Razem <borut.razem AT siol.net>
5028
5029         * debugger/mcs51/break.[ch], debugger/mcs51/cmd.c,
5030           debugger/mcs51/sdcdb.[ch], debugger/mcs51/simi.c:
5031           [ 1185668 ] add gnu readline support to sdcdb -
5032           prepared for READLINE, not enabled yet,
5033           thanks to <tal.bav AT gmail.com>
5034
5035 2006-10-10 Raphael Neider <rneider AT web.de>
5036
5037         * src/pic16/pcode.c (pic16_pCode2str): use isACCESS_BANK macro
5038         * src/pic16/devices.inc,
5039         * device/include/pic16 (pic18f[24]620.h),
5040         * device/include/pic18fregs.h,
5041         * device/lib/pic16/pics.all,
5042         * device/lib/pic16/libdev/pic18f[24]{620,525}.c): added support for
5043             18f2620, 18f4620, 18f2525, and 18f4525 devices, thanks to
5044             Gary Plumbridge and Anton Strobl
5045
5046 2006-10-10 Raphael Neider <rneider AT web.de>
5047
5048         * src/pic/main.c (_pic14_parseOptions): added --stack-loc=NUM and
5049           --stack-siz=NUM options to configure the argument passing stack
5050         * src/pic/main.h: added stackLocation and stackSize to pic14_options_t
5051         * src/pic/device.c (mapRegister): catch out-of-memory SIGSEGVs,
5052           (pic14_getSharebankSize): obey --stack-siz=NUM,
5053           (pic14_getSharebankAddress): obey --stack-loc=NUM
5054
5055 2006-10-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5056
5057         * doc/sdccman.lyx: added to the manual
5058         * doc/figures/ddd_example.png: added (neither pdflatex nor
5059         most browsers seem to like the .eps file)
5060
5061 2006-10-06 Bernhard Held <bernhard AT bernhardheld.de>
5062
5063         * src/SDCCglue.c (tempfileandname): changed un*x tmp search paths
5064         to /tmp and /var/tmp acc. LSB
5065         * src/SDCCast.c (addCast): Fixed bug 1571231: promote in case of
5066         RESULT_TYPE_IFX
5067         * support/regression/tests/onebyte.c: added test
5068
5069 2006-10-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5070
5071         * src/mcs51/gen.c: emitcode for "add a,0x%02x" requires only 8 bits.
5072
5073 2006-10-05 Borut Razem <borut.razem AT siol.net>
5074
5075         * partially fixed [ 1570701 ] peephole - not replacing code from multiline macros,
5076           thanks to dfulab:
5077           - sdcc.dsw: changed property eol-style to CRLF
5078           - support/scripts/resource.rc: replaced references to "afxres.h" with "winres.h"
5079
5080 2006-10-04 Raphael Neider <rneider AT web.de>
5081
5082         * device/include/pic/{pic16f84.h,pic16f84a.h},
5083         * device/lib/pic/libdev/{pic16f84.c,pic16f84a.c}: added PORT[AB]_bits
5084           from patch #1522504, thanks to Robas Teodor
5085
5086 2006-10-02 Maarten Brock <sourceforge.brock AT dse.nl>
5087
5088         * as/link/z80/lkarea.c: essentially reverted lnksect() to #4380 which
5089           fixes bug 1566015
5090
5091 2006-10-01 Maarten Brock <sourceforge.brock AT dse.nl>
5092
5093         * src/pic16/glue.c (pic16emitMaps),
5094         * src/pic/glue.c (pic14emitMaps): hopefully fixed bug 1568779
5095         * device/lib/gets.c: fixed bug 1568829,thanks Philipp Krause
5096         * device/lib/pic16/libc/string/memcpypgm2ram.c,
5097         * device/lib/pic16/libc/string/memcpyram2ram.c: fixed bug 1568836, thanks
5098           Philipp Krause
5099         * as/mcs51/asmain.c (asmbl, newdot): fixed problems with absolute areas
5100         * as/link/mcs51/lkmem.c (summary2): reverted, do do count abs segments
5101
5102 2006-09-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5103
5104         * support/librarian/sdcclib.c: Added option -l.
5105         * as/link/mcs51/lkmem.c: don't use absolute segments to compute memory
5106           usage totals.
5107         * device/lib/make51lib.bat: added.  Allows building mcs51 libraries easily
5108           using Windows command prompt.
5109
5110 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
5111
5112         * device/lib/libsdcc.lib: added module rand
5113         * src/ds390/ralloc.c (rematStr),
5114         * src/hc08/ralloc.c (rematStr),
5115         * src/mcs51/ralloc.c (rematStr),
5116         * src/z80/ralloc.c (rematStr): made output more consistent
5117         * src/mcs51/gen.c: cosmetic changes
5118
5119 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
5120
5121         * src/port.h: added mem.cabs_name to PORT
5122         * src/ds390/main.c,
5123         * src/hc08/main.c,
5124         * src/mcs51/main.c,
5125         * src/pic16/main.c,
5126         * src/pic/main.c,
5127         * src/xa51/main.c,
5128         * src/z80/main.c: added cabs_name initializers
5129         * src/SDCCglue.c (emitStaticSeg): allocate and initialize absolute
5130           constants
5131           (emitMaps): emit absolutes in code memory into cabs_name
5132         * src/SDCCmem.c,
5133         * src/SDCCmem.h: added memory map c_abs and defined CABS_NAME
5134         * src/ds390/gen.c (genCodePointerGet): fixed bug if left is a literal
5135         * support/regression/fwk/include/testfwk.h: added define for at
5136         * support/regression/tests/absolute.c: added, new
5137
5138 2006-09-29 Maarten Brock <sourceforge.brock AT dse.nl>
5139
5140         * src/mcs51/gen.c (genPlusIncr, genMinusDec, genAddrOf): small
5141           optimizations, see also patch 887161 by Stas Sergeev
5142         * src/mcs51/peeph.def(104, 207, 209, 212): disabled as they do not seem
5143           to be necessary anymore,
5144           (102, 103, 104, 127): renamed all occurances of bp to _bp
5145
5146 2006-09-27 Maarten Brock <sourceforge.brock AT dse.nl>
5147
5148         * device/include/mcs51/at89c51snd1c.h: fixed MSK_SREQ definition
5149           thanks Weston T. Schmidt for patch 1555221
5150         * src/mcs51/peeph.def: renamed rule 257 to 257.a, added 257.b
5151         * src/SDCCicode.c(geniCodeMultiply): small optimization
5152
5153 2006-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
5154
5155         * device/include/stdlib.h: added rand prototypes
5156         * device/lib/rand.c: new, added
5157         * device/lib/Makefile.in: added rand.c
5158         * src/z80/peeph.def,
5159         * src/z80/peeph-gbz80.def,
5160         * src/z80/peeph-z80.def: updated conditonals, fixed bug 1565908
5161
5162 2006-09-20 Raphael Neider <rneider AT web.de>
5163
5164         * device/lib/pic16/libio/i2c/i2cnack.c (i2c_nack): fixed ACKDT bit
5165
5166 2006-09-19 Maarten Brock <sourceforge.brock AT dse.nl>
5167
5168         * as/link/aslink.h: cosmetic changes
5169         * as/link/mcs51/Makefile.in,
5170         * as/link/z80/Makefile.in: fixed build on CF where VPATH is used
5171
5172 2006-09-17 Maarten Brock <sourceforge.brock AT dse.nl>
5173
5174         * as/link/aslink.h,
5175         * as/link/mcs51/aslink.h,
5176         * as/link/z80/aslink.h: merged and moved to as/link/
5177         * as/link/lkstore.c,
5178         * as/link/mcs51/lkstore.c: moved to as/link/
5179         * as/link/clean.mk: remove *.o
5180         * as/link/mcs51/alloc.h: deleted
5181         * as/link/mcs51/lkarea.c: added lnksect prototype
5182         * as/link/mcs51/lkdata.c,
5183         * as/link/mcs51/lklex.c,
5184         * as/link/mcs51/lkmain.c: renamed as_getline to lk_getline
5185         * as/link/mcs51/lkmem.c,
5186         * as/link/mcs51/lknoice.c: removed include strcmpi.h
5187         * as/link/mcs51/lksym.c: include stdlib.h instead of malloc.h or alloc.h
5188         * as/link/mcs51/aslink.dsp,
5189         * as/link/mcs51/Makefile.aslink,
5190         * as/link/mcs51/Makefile.bcc,
5191         * as/link/mcs51/Makefile.in: updated for moved files
5192         * as/link/z80/lkarea.c,
5193         * as/link/z80/lkhead.c,
5194         * as/link/z80/lklex.c,
5195         * as/link/z80/lklibr.c,
5196         * as/link/z80/lklist.c,
5197         * as/link/z80/lkmain.c,
5198         * as/link/z80/lkrloc.c,
5199         * as/link/z80/lksym.c: synced with mcs51
5200         * as/link/z80/lkdata.c,
5201         * as/link/z80/lkeval.c,
5202         * as/link/z80/lkihx.c,
5203         * as/link/z80/lks19.c: cosmetic changes
5204         * as/link/z80/Makefile.in,
5205         * as/link/z80/linkgbz80.dsp,
5206         * as/link/z80/linkz80.dsp: updated for moved files
5207
5208 2006-09-16 Borut Razem <borut.razem AT siol.net>
5209
5210         * debugger/mcs51/sdcdb.c: partially fixed
5211           [ 1203664 ] sdcdb fails to open files w. two "." periods
5212         * debugger/mcs51/simi.c, debugger/mcs51/symtab.c,
5213           debugger/mcs51/symtab.h: fixed indenting
5214         * configure.in, configure: up to date with latest Maarten's changes
5215
5216 2006-09-15 Maarten Brock <sourceforge.brock AT dse.nl>
5217
5218         as/link/mcs51
5219         as/aslink.dsp,                  as/link/mcs51/aslink.dsp,
5220         as/link/mcs51/aslink.h,         as/mcs51/aslink.h,
5221         as/link/mcs51/aslink.mak,       as/mcs51/aslink.mak,
5222         as/link/mcs51/lkaomf51.c,       as/mcs51/lkaomf51.c,
5223         as/link/mcs51/lkarea.c,         as/mcs51/lkarea.c,
5224         as/link/mcs51/lkdata.c,         as/mcs51/lkdata.c,
5225         as/link/mcs51/lkeval.c,         as/mcs51/lkeval.c,
5226         as/link/mcs51/lkhead.c,         as/mcs51/lkhead.c,
5227         as/link/mcs51/lkihx.c,          as/mcs51/lkihx.c,
5228         as/link/mcs51/lklex.c,          as/mcs51/lklex.c,
5229         as/link/mcs51/lklibr.c,         as/mcs51/lklibr.c,
5230         as/link/mcs51/lklist.c,         as/mcs51/lklist.c,
5231         as/link/mcs51/lkmain.c,         as/mcs51/lkmain.c,
5232         as/link/mcs51/lkmem.c,          as/mcs51/lkmem.c,
5233         as/link/mcs51/lknoice.c,        as/mcs51/lknoice.c,
5234         as/link/mcs51/lkrloc.c,         as/mcs51/lkrloc.c,
5235         as/link/mcs51/lks19.c,          as/mcs51/lks19.c,
5236         as/link/mcs51/lkstore.c,        as/mcs51/lkstore.c,
5237         as/link/mcs51/lksym.c,          as/mcs51/lksym.c,
5238         as/link/mcs51/Makefile.aslink,  as/mcs51/Makefile.aslink,
5239         as/link/mcs51/alloc.h,
5240         as/link/mcs51/clean.mk,
5241         as/link/mcs51/conf.mk,
5242         as/link/mcs51/Makefile.bcc,
5243         as/link/mcs51/Makefile.in,
5244         as/link/mcs51/readme.390,
5245         as/link/mcs51/strcmpi.c,
5246         as/link/mcs51/strcmpi.h,
5247         as/mcs51/clean.mk,
5248         as/mcs51/Makefile.bcc,
5249         as/mcs51/Makefile.in,
5250         configure,
5251         Makefile.in,
5252         sdcc.dsw: moved mcs51 linker to as/link/mcs51
5253
5254 2006-09-14 Maarten Brock <sourceforge.brock AT dse.nl>
5255
5256         * as/link,
5257         * as/link/Makefile.in,
5258         * as/link/z80/linkgbz80.dsp,
5259         * as/link/z80/linkz80.dsp,
5260         * configure,
5261         * link,
5262         * link/clean.mk,
5263         * link/Makefile.in,
5264         * link/README,
5265         * link/z80,
5266         * link/z80/aslink.h,
5267         * link/z80/clean.mk,
5268         * link/z80/conf.mk,
5269         * link/z80/linkgbz80.dsp,
5270         * link/z80/linkz80.dsp,
5271         * link/z80/lkarea.c,
5272         * link/z80/lkdata.c,
5273         * link/z80/lkeval.c,
5274         * link/z80/lkgb.c,
5275         * link/z80/lkgg.c,
5276         * link/z80/lkhead.c,
5277         * link/z80/lkihx.c,
5278         * link/z80/lklex.c,
5279         * link/z80/lklibr.c,
5280         * link/z80/lklist.c,
5281         * link/z80/lkmain.c,
5282         * link/z80/lkrloc.c,
5283         * link/z80/lks19.c,
5284         * link/z80/lksym.c,
5285         * link/z80/Makefile.in,
5286         * Makefile.in,
5287         * sdcc.dsw: moved link/ to as/link/
5288
5289 2006-09-11 Maarten Brock <sourceforge.brock AT dse.nl>
5290
5291         * as/mcs51/i51mch.c (machine): fixed warning
5292
5293 2006-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
5294
5295         * as/mcs51/i51mch.c (machine): S_DJNZ fixed bug 1554318
5296
5297 2006-09-09 Borut Razem <borut.razem AT siol.net>
5298
5299         * debugger/mcs51/sdcdb.c, debugger/mcs51/simi.c:
5300           sdcdb WIN32 native port
5301         * src/clean.mk: fixed
5302
5303 2006-09-08 Borut Razem <borut.razem AT siol.net>
5304
5305         * doc/sdccman.lyx: SDCDB and ucSim are available on Win32 platforms.
5306
5307 2006-09-08 Raphael Neider <rneider AT web.de>
5308
5309         * src/pic16/main.c (_pic16_linkEdit,pic16_linkCmd),
5310         * src/pic/main.c(_pic14_do_link, linkCmd): pass "-w" and "-r"
5311             to gplink to disable processor mismatch warning and to allow
5312             the use of devices with only aliased (shared) memory banks,
5313           (_pic16_genAssemblerPreamble): include pXXX.inc on --mplab-comp
5314
5315 2006-09-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5316
5317         * doc/sdccman.lyx: Some re-formating plus example on using
5318           #pragma preproc_asm +/-
5319
5320 2006-09-07 Borut Razem <borut.razem AT siol.net>
5321
5322         * support/scripts/sdcc.nsi: added SDCDB executables in a separate
5323           section
5324
5325 2006-09-06 Borut Razem <borut.razem AT siol.net>
5326
5327         * support/scripts/sdcc.nsi: fixed Error: unterminated string parsing
5328           line at sdcc.nsi:153
5329         * sdcc/debugger/mcs51/simi.c: argsToCmdLine() fixes
5330
5331 2006-09-05 Borut Razem <borut.razem AT siol.net>
5332
5333         * configure.in, configure: support for winsock2
5334         * debugger/mcs51/break.h, debugger/mcs51/cmd.c,
5335           debugger/mcs51/cmd.h, debugger/mcs51/sdcdb.c,
5336           debugger/mcs51/sdcdb.h, debugger/mcs51/simi.c,
5337           debugger/mcs51/simi.h, debugger/mcs51/symtab.c,
5338           debugger/mcs51/symtab.h: sdcdb WIN32 native port
5339
5340 2006-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
5341
5342         * src/SDCCopt.c (cnvToFcall): fixed bug 1551947 by updating OP_USES
5343           and OP_DEFS
5344         * support/regression/tests/bug1551947.c: new, added
5345         * src/SDCCsymt.h: strings are char* not byte*
5346
5347 2006-09-05 Raphael Neider <rneider AT web.de>
5348
5349         * device/lib/pic16/libdev/pic18f4550.c,
5350           device/include/pic16/pic18f4550.h: added PORTD/TRISD
5351             declarations/definitions from patch #1520949
5352
5353 2006-09-05 Raphael Neider <rneider AT web.de>
5354
5355         * src/pic16/gen.c (genPackBits): fix assignment to 8-bit,
5356           byte-aligned bitfields, fixes #1539278
5357
5358 2006-09-05 Raphael Neider <rneider AT web.de>
5359
5360         * src/pic/gen.c (genReceive): skip unreferenced arguments,
5361           fixes #1544120
5362
5363 2006-09-04 Borut Razem <borut.razem AT siol.net>
5364
5365         * support/scripts/sdcc.nsi: move ucSim executables to a separate section
5366         * support/scripts/sdcc_cygwin_mingw32: don't disable ucsim,
5367           -mno-cygwin is a part of the compiler name
5368         * support/scripts/sdcc_mingw32: don't disable ucsim
5369
5370 2006-09-03 Borut Razem <borut.razem AT siol.net>
5371
5372         * sdcc.spec: corrected for 2.6.0. Thanks to Christer Weinigel.
5373         * device/lib/Makefile.in device/lib/clean.mk: small but essential corrections
5374
5375 2006-09-03 Raphael Neider <rneider AT web.de>
5376
5377         * src/pic/ralloc.c,
5378         * src/pic/pcode.c (InitReuseRegs): allocate registers with pseudo
5379           indices >= 0x1000 to disambiguate them from fixed regs __at(addr),
5380           fixes #1550049
5381
5382 2006-09-01 Borut Razem <borut.razem AT siol.net>
5383
5384         * sim/ucsim/cmd.src/cmdutil.cc: #include <sys/time.h> and <unistd.h>
5385           to make ppc-osx happy
5386
5387 2006-08-31 Borut Razem <borut.razem AT siol.net>
5388
5389         * sim/ucsim/cmd.src/newcmdposix.cc: #include <assert.h>
5390         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
5391         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
5392         * support/regression/ports/ds390/spec.mk,
5393           support/regression/ports/mcs51/spec.mk,
5394           support/regression/ports/xa51/spec.mk: introduced DEV_NULL variable.
5395           To run regression tests in mingw environment:
5396           make DEV_NULL=NUL CC=gcc
5397
5398 2006-08-30 Borut Razem <borut.razem AT siol.net>
5399
5400         * sim/ucsim/cmd.src/newcmdposix.cc, sim/ucsim/cmd.src/newcmdposixcl.h,
5401           sim/ucsim/cmd.src/newcmdwin32.cc, sim/ucsim/cmd.src/newcmdwin32cl.h,
5402           sim/ucsim/app.cc, sim/ucsim/appcl.h, sim/ucsim/configure,
5403           sim/ucsim/configure.in, sim/ucsim/ddconfig_in.h, sim/ucsim/error.cc,
5404           sim/ucsim/errorcl.h, sim/ucsim/option.cc, sim/ucsim/optioncl.h,
5405           sim/ucsim/utils.cc, sim/ucsim/utils.h, sim/ucsim/cmd.src/Makefile.in,
5406           sim/ucsim/avr.src/avr.cc, sim/ucsim/avr.src/avrcl.h,
5407           sim/ucsim/cmd.src/bp.cc, sim/ucsim/cmd.src/bpcl.h,
5408           sim/ucsim/cmd.src/cmdconf.cc, sim/ucsim/cmd.src/cmdgui.cc,
5409           sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/cmdset.cc,
5410           sim/ucsim/cmd.src/cmdsetcl.h, sim/ucsim/cmd.src/cmdstat.cc,
5411           sim/ucsim/cmd.src/cmduc.cc, sim/ucsim/cmd.src/cmduccl.h,
5412           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
5413           sim/ucsim/cmd.src/command.cc, sim/ucsim/cmd.src/commandcl.h,
5414           sim/ucsim/cmd.src/get.cc, sim/ucsim/cmd.src/getcl.h,
5415           sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/newcmd.cc,
5416           sim/ucsim/cmd.src/newcmdcl.h, sim/ucsim/cmd.src/set.cc,
5417           sim/ucsim/cmd.src/show.cc, sim/ucsim/cmd.src/timer.cc,
5418           sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
5419           sim/ucsim/s51.src/Makefile.in, sim/ucsim/s51.src/interrupt.cc,
5420           sim/ucsim/s51.src/interruptcl.h, sim/ucsim/s51.src/pca.cc,
5421           sim/ucsim/s51.src/pcacl.h, sim/ucsim/s51.src/port.cc,
5422           sim/ucsim/s51.src/portcl.h, sim/ucsim/s51.src/serial.cc,
5423           sim/ucsim/s51.src/serialcl.h, sim/ucsim/s51.src/timer0.cc,
5424           sim/ucsim/s51.src/timer0cl.h, sim/ucsim/s51.src/timer1.cc,
5425           sim/ucsim/s51.src/timer1cl.h, sim/ucsim/s51.src/timer2.cc,
5426           sim/ucsim/s51.src/timer2cl.h, sim/ucsim/s51.src/uc390.cc,
5427           sim/ucsim/s51.src/uc390cl.h, sim/ucsim/s51.src/uc390hw.cc,
5428           sim/ucsim/s51.src/uc390hwcl.h, sim/ucsim/s51.src/uc51.cc,
5429           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/wdt.cc,
5430           sim/ucsim/s51.src/wdtcl.h, sim/ucsim/sim.src/hw.cc,
5431           sim/ucsim/sim.src/hwcl.h, sim/ucsim/sim.src/mem.cc,
5432           sim/ucsim/sim.src/memcl.h, sim/ucsim/sim.src/obsolete.cc,
5433           sim/ucsim/sim.src/obsolete.h, sim/ucsim/sim.src/sim.cc,
5434           sim/ucsim/sim.src/simcl.h, sim/ucsim/sim.src/stack.cc,
5435           sim/ucsim/sim.src/stackcl.h, sim/ucsim/sim.src/test_mem_speed.cc,
5436           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
5437           sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
5438           sim/ucsim/z80.src/z80.cc, sim/ucsim/z80.src/z80cl.h:
5439           ucsim WIN32 native port
5440
5441 2006-08-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5442
5443         * doc/sdccman.lyx: added note on dynamic memory heap initialization
5444
5445 2006-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
5446
5447         * src/mcs51/gen.c (genAnd, genOr, genXor): fixed bug 1546986
5448         * src/ds390/gen.c (aopGetUsesAcc): handle AOP_DPTR2 and AOP_DPTRn too
5449
5450 2006-08-26 Maarten Brock <sourceforge.brock AT dse.nl>
5451
5452         * src/ds390/gen.c (genAnd, genOr, genXor): fixed bug 1546986
5453         * support/regression/tests/bug1546986.c: new, added
5454         * as/mcs51/.cvsignore,
5455         * debugger/mcs51/.cvsignore,
5456         * src/.cvsignore: deleted
5457
5458 2006-08-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5459
5460         * device/include/mcs51/P89c51RD2.h: fixed bug 1546936 (error in sbit
5461           definitions)
5462
5463 2006-08-20 Borut Razem <borut.razem AT siol.net>
5464
5465         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h:
5466           removed cl_listen_console::match(), cl_console::match(),
5467           restructured cl_commander::proc_input()
5468
5469 2006-08-16 Borut Razem <borut.razem AT siol.net>
5470
5471         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h,
5472           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
5473           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/uc.cc: code cleaning
5474
5475 2006-08-14 Borut Razem <borut.razem AT siol.net>
5476
5477         * support/regression/Makefile.in,
5478           support/regression/ports/pic14/gpsim.cmd,
5479           support/regression/ports/pic14/spec.mk,
5480           support/regression/ports/pic14/support.c:
5481           added pic14 regression test
5482
5483 2006-08-14 Maarten Brock <sourceforge.brock AT dse.nl>
5484
5485         * as/doc/asxhtm.html: documented changed ABS behaviour
5486         * as/doc/README: fixed some typos
5487
5488 2006-08-13 Maarten Brock <sourceforge.brock AT dse.nl>
5489
5490         * support/regression/tests/float_trans.c: disabled test if __STDC_IEC_559__
5491           not defined on host
5492
5493 2006-08-12 Borut Razem <borut.razem AT siol.net>
5494
5495         * support/regression/fwk/include/testfwk.h,
5496           support/regression/fwk/lib/testfwk.c,
5497           support/regression/generate-cases.py,
5498           support/regression/Makefile.in:
5499           regression test framework does not depend on function pointers and
5500           variable arguments
5501
5502 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
5503
5504         * device/include/stddef.h: c temporary hack to fix bug 1518273
5505
5506 2006-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5507
5508         * device/include/mcs51/cc2510fx.h: added
5509         * src/z80/z80.dsp, src/gbz80/gbz80.dsp: added support/Util/strcmpi.ch
5510           to projects.
5511
5512 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
5513
5514         * as/z80/assym.c (mlookup): ignore case when looking up mnemonics
5515         * as/z80/Makefile.in: added strcmpi.c
5516         * as/z80/z80adr.c: added upper case registers and lower case conditionals
5517         * support/Util/strcmpi.ch: added with intention to remove from mcs51/hc08
5518
5519 2006-08-08 Maarten Brock <sourceforge.brock AT dse.nl>
5520
5521         * device/lib/gbz80/asm_strings.s,
5522         * device/lib/gbz80/crt0_rle.s,
5523         * device/lib/gbz80/div.s,
5524         * device/lib/gbz80/mul.s,
5525         * device/lib/gbz80/shift.s,
5526         * device/lib/z80/asm_strings.s,
5527         * device/lib/z80/crt0_rle.s,
5528         * device/lib/z80/div.s,
5529         * device/lib/z80/mul.s,
5530         * device/lib/z80/shift.s: changed to all lower case menmonics except the
5531           flags which are all upper case
5532
5533 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
5534
5535         * as/z80/asm.h: made CASE_SENSITIVE 1
5536         * link/z80/aslink.h: made CASE_SENSITIVE 1
5537         * src/z80/gen.c (throughout): made all conditionals upper case
5538         * support/regression/tests/bug1503067.c: new
5539
5540 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
5541
5542         * src/z80/gen.c (aopPut): fixed bug !*ixy should be !*iyx,
5543           (shiftIntoPair): added case 2 for PAIR_IY,
5544           (setupToPreserveCarry): replaced parameters with iCode and check if
5545            PAIR_DE is in use to fix bug 1399290,
5546           (genPlus, genMinus): updated call to setupToPreserveCarry
5547         * support/regression/tests/bug1399290.c: new
5548
5549 2006-08-06 Maarten Brock <sourceforge.brock AT dse.nl>
5550
5551         * device/lib/Makefile.in (Z80SOURCES): enabled float support
5552         * sim/ucsim/z80.src/inst.cc (inst_rst): generate breakpoint on RST8,ACC==0
5553         * src/ds390/gen.c (shiftRLong),
5554         * src/hc08/gen.c (shiftLLong, shiftRLong): fixed bug 1533966
5555         * src/mcs51/gen.c (sameReg): changed to sameByte,
5556           (xch_a_aopGet): new,
5557           (shiftL2Left2Result, shiftR2Left2Result, shiftRLeftOrResult, shiftLLong,
5558            shiftRLong): fixed bug 1533966
5559         * src/z80/gen.c (shiftR2Left2Result, shiftL2Left2Result, genlshTwo,
5560           genLeftShiftLiteral, genrshTwo, genRightShiftLiteral): fixed bug 1533966
5561         * support/regression/Makefile.in: disabled z80, enabled ucz80
5562         * support/regression/tests/float_trans.c: enabled test for z80 and host
5563         * support/regression/tests/shifts2.c: new, for testing bug 1533966
5564
5565 2006-08-01 Borut Razem <borut.razem AT siol.net>
5566
5567         * src/mcs51/gen.c, src/dc390/gen.c: fixed warning:
5568           comparison is always false due to limited range of data type
5569           on PPC64 machine (openpower-linux1) where "char = unsigned char"
5570
5571 2006-08-01 Maarten Brock <sourceforge.brock AT dse.nl>
5572
5573         * sim/ucsim/hc08.src/hc08mac.h: removed faulty and unused add_u16_disp
5574         * sim/ucsim/hc08.src/hc08.cc: removed faulty and unused int8
5575         * sim/ucsim/z80.src/z80mac.h (add_u16_disp): use explicit signed char cast
5576         * sim/ucsim/z80.src/z80.cc: removed faulty and unused int8
5577
5578 2006-07-31 Borut Razem <borut.razem AT siol.net>
5579
5580         * sim/ucsim/configure, sim/ucsim/cmd.src/newcmdcl.h,
5581           sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/cmdutil.cc,
5582           sim/ucsim/z80.src/Makefile.in, sim/ucsim/configure.in,
5583           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/hc08.src/hc08.cc,
5584           sim/ucsim/ddconfig_in.h, sim/ucsim/s51.src/Makefile.in,
5585           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/serialcl.h,
5586           sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/serial.cc,
5587           sim/ucsim/app.cc, sim/ucsim/avr.src/Makefile.in:
5588           enable ucsim mingw compilation. Serial port is disabled,
5589           since it uses termios.h API, which is not available on native
5590           WIN32
5591
5592 2006-07-31 Borut Razem <borut.razem AT siol.net>
5593
5594         * Small Device C Compiler 2.6.0 released
5595         * support/scripts/sdcc.nsi: added FULL_DOC option
5596         * .version, doc/sdccman.lyx: changed sdcc version to 2.6.1
5597
5598 2006-07-28 Borut Razem <borut.razem AT siol.net>
5599
5600         * support/scripts/sdcc.nsi: remove $INSTDIR/include/asm/pic16/*.h
5601         * doc/INSTALL.txt: updated
5602
5603 2006-07-27 Borut Razem <borut.razem AT siol.net>
5604
5605         * device/lib/pic/Makefile.in, device/lib/pic/Makefile.subdir,
5606           device/lib/pic/libdev/Makefile.in: fixed bug
5607           [ 1438354 ] pic libsdcc: distclean doesn't work
5608         * device/lib/pic16/Makefile.in, device/lib/pic16/Makefile.subdir,
5609           device/lib/pic16/libio/Makefile.in: fixed bug
5610           [ 1438344 ] pic16 lib: clean doesn't work properly
5611         * doc/knownbugs.html removed [ 1438354 ] and [ 1438344 ] from the list
5612
5613 2006-07-26 Maarten Brock <sourceforge.brock AT dse.nl>
5614
5615         * device/lib/pic/libsdcc/fsdiv.c,
5616         * device/lib/pic/libsdcc/fsmul.c,
5617         * device/lib/pic16/libsdcc/float/fsdiv.c,
5618         * device/lib/pic16/libsdcc/float/fsmul.c,
5619         * device/lib/_fsdiv.c,
5620         * device/lib/_fsmul.c: bugfix, handle too large and too small numbers
5621         * support/regression/tests/bug1520966.c: added
5622         * doc/knownbugs.html: removed [ 1520966 ] from the list
5623
5624 2006-07-25 Borut Razem <borut.razem AT siol.net>
5625
5626         * configure.in, configure, sdccconf_in.h: fixed bug
5627           [ 1519095 ] regression test onebyte.c fails on ppc64 host
5628         * doc/knownbugs.html: removed [ 1519095 ] from the list
5629
5630 2006-07-25 Maarten Brock <sourceforge.brock AT dse.nl>
5631
5632         * doc/knownbugs.html: added, contains list of known bugs at release
5633         * device/include/mcs51/compiler.h: fixed SFR32 for SDCC
5634
5635 2006-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
5636
5637         * device/include/mcs51/compiler.h: added SFRX for xdata based special
5638           function registers and corrected defaults with additional warning
5639         * device/lib/malloc.c: cosmetic changes
5640         * device/lib/realloc.c: bugfix for bug #1496907, Thanks Efim Monyak
5641         * src/ds390/ralloc.c (getRegBitNoSpil): reenabled,
5642           (fillGaps): and used it
5643
5644 2006-07-20 Raphael Neider <rneider AT web.de>
5645
5646         * src/pic/device.c (addMemRange,assignRegister): suppress verbose
5647           output unless SDCCPICDEBUG is set
5648         * device/lib/pic16/Makefile.rules (%.lib target): suppress verbose
5649           output if SILENT is set
5650
5651 2006-07-11 Borut Razem <borut.razem AT siol.net>
5652
5653         * doc/README.txt: updated
5654
5655 2006-07-10 Borut Razem <borut.razem AT siol.net>
5656
5657         * support/scripts/sdcc.nsi: added device/include/asm/pic/features.h and
5658           device/lib/src/pic/libm/*.c and device/lib/src/pic16/libsdcc/stack/*.S
5659           in WIN32 installation
5660         * .version, sdcc.spec, doc/sdccman.lyx: changed sdcc version to 2.6.0 -
5661           release candidate 1
5662
5663 2006-07-08 Maarten Brock <sourceforge.brock AT dse.nl>
5664
5665         * device/include/mcs51/XC866.h: added sbit definitions for Px_x, P1_x, P2_x
5666         * src/pic16/glue.c (initPointer): fixed bug 1496419 for pic16
5667
5668 2006-07-06 Maarten Brock <sourceforge.brock AT dse.nl>
5669
5670         * src/hc08/gen.c (genAddrOf): fixed bug when offset on stack is >127
5671
5672 2006-07-06 Borut Razem <borut.razem AT siol.net>
5673
5674         * support/regression/tests/bitfields.c:
5675           fixed bug [ 1518322 ] regression test bitfields fails on ppc hosts
5676         * support/regression/tests/constantRange.c:
5677           fixed bug [ 1518317 ] regression test constantRange fails on alpha host
5678
5679 2006-07-04 Borut Razem <borut.razem AT siol.net>
5680
5681         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in,
5682           src/port.mk,
5683           src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
5684           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
5685           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
5686           reverted changes from 2006-07-03
5687         * Makefile.common.in: added @CPPFLAGS@ to CPPFLAGS
5688         * support/regression/Makefile.in, support/regression/ports/host/spec.mk:
5689           added CPPFLAGS, used by the host port
5690
5691 2006-07-03 Bernhard Held <bernhard AT bernhardheld.de>
5692
5693         * support/regression/valdiag/tests/switch.c,
5694         * support/regression/valdiag/tests/constantRange.c: adapted to gcc 4
5695         * support/regression/tests/libmullong.c: fixed for host
5696         * support/regression/ports/host/spec.mk: disable all warnings for host,
5697         SDCC runs with --less-pedantic too
5698
5699 2006-07-03 Borut Razem <borut.razem AT siol.net>
5700
5701         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in:
5702           defined CPPFLAGS
5703         * src/port.mk: defined CPPFLAGS, renamed to src/port.mk.in
5704         * src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
5705           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
5706           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
5707           include ../port.mk
5708         * sim/ucsim/main_in.mk, sim/ucsim/avr.src/Makefile.in,
5709           sim/ucsim/gui.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
5710           sim/ucsim/s52.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
5711           sim/ucsim/xa.src/Makefile.in: ignore header files for dependencies
5712
5713 2006-07-02 Raphael Neider <rneider AT web.de>
5714
5715         * src/pic16/devices.inc,
5716         * device/include/pic16/pic18fregs.h,
5717         * device/include/pic16/pic18f4550.h,
5718         * device/lib/pic16/pics.all,
5719         * device/lib/pic16/libdev/pic18f4550.c: added support for 18f4550
5720
5721 2006-07-01 Bernhard Held <bernhard AT bernhardheld.de>
5722
5723         * as/hc08/lkaomf51.c (OutputName),
5724         * as/mcs51/lkaomf51.c (OutputName),
5725         * as/z80/asmain.c (asmbl),
5726         * src/ds390/main.c (asmLineNodeFromLineNode),
5727         * src/hc08/ralloc.c (hc08_assignRegisters),
5728         * src/mcs51/main.c (asmLineNodeFromLineNode),
5729         * src/xa51/ralloc.c (checkRegMask),
5730         * src/xa51/gen.c (emitcode),
5731         * src/z80/gen.c (_emit2),
5732         * src/SDCCast.c (searchLitOp),
5733         * src/SDCCglobl.h,
5734         * support/packihx/packihx.c,
5735         * support/Util/MySystem.c (split_command): fix gcc 4 warnings
5736         * src/ds390/gen.c (aopPutUsesAcc),
5737         * src/ds390/ralloc.c (getRegBitNoSpil): unused, therefore disabled
5738         * support/regression/tests/libmullong.c (mullong_wrapper),
5739         * src/SDCCsymt.c (powof2),
5740         * src/SDCCast.c,
5741         * src/SDCCicode.c: renamed TYPE_WORD by TYPE_TARGET_INT and so on
5742         * src/SDCCsymt.h: added TYPE_TARGET_*
5743         * src/SDCCutil.c (doubleFromFixed16x16, fixed16x16FromDouble),
5744         * src/SDCCutil.h (doubleFromFixed16x16, fixed16x16FromDouble): moved to
5745         SDCCast because 1) header problems 2) this is the right place
5746         * src/SDCCast.c (doubleFromFixed16x16, fixed16x16FromDouble): added
5747         * src/SDCCval.h (doubleFromFixed16x16, fixed16x16FromDouble): added
5748         prototype
5749
5750 2006-06-29 Bernhard Held <bernhard AT bernhardheld.de>
5751
5752         * src/SDCCicode.h: removed buggy semicolon in unused macro
5753         * src/SDCClrange.c (findPrevUseSym, rlivePoint): fixed bug #1486853,
5754         search for previous definiton of auto symbols too,
5755         (findPrevUse): fixed logic of emitWarnings
5756
5757 2006-06-26 Raphael Neider <rneider AT web.de>
5758
5759         * src/pic16/gen.c (genFunction, genEndFunction): also preserve
5760           PCLATH and PCLATU on interrupts, potentially fixes #1505141
5761
5762 2006-06-25 Raphael Neider <rneider AT web.de>
5763
5764         * device/lib/pic/libm: NEW, added math library functions
5765         * device/lib/pic/libsdcc: NEW; added float support functions
5766         * device/lib/pic/{Makefile.in,configure.in,configure}: added libm/
5767         * device/include/pic/{limits.h,errno.h,sdcc-lib.h,float.h,math.h}:
5768           NEW, added math related headers
5769         * device/include/asm/pic/features.h: NEW
5770         * src/pic/gen.c (emitpcode_real): emit warning on NULL pCodeOp,
5771           (popGet): allow larger offsets for AOP_PCODE,
5772           (genDataPointerSet): handle literals explicitly, more debug output,
5773           (genAssign): fixed for float using aopLiteral ;-)
5774         * src/pic/glue.c (pic14createInterruptVect): inserted pagesel before
5775           GOTO initialisation routine
5776         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): set wasUsed
5777           flag on registers, fixes #1469043 (local variables do not work)
5778         * src/pic/main.c (_pic14_do_link),
5779         * src/pic16/main.c (_pic16_linkEdit): use fullDstFileName if
5780           available
5781
5782 2006-06-25 Borut Razem <borut.razem AT siol.net>
5783
5784         * device/lib/pic16/libc/stdio/sprintf.c: return the number of
5785           characters printed (not including the trailing '\0' used to end
5786           output to strings). Problem detected in regression test bug-927659.c.
5787           NOTE: printf() family functions should return int instead
5788           unsigned int!
5789         * device/lib/pic16/libc/stdio/vfprintf.c: "%%" prints "%", unknown
5790           specifier are printed as themselves
5791         * sdcc/support/regression/tests/bug1057979.c: pic16 printf doesn't
5792           support flags, width and precision specifiers
5793
5794 2006-06-24 Borut Razem <borut.razem AT siol.net>
5795
5796         * sdcc/support/regression/tests/bitvars.c: added gbz80, pic16 and pic16
5797           to the list of sdcc tagrets not supporting bit type
5798         * sdcc/support/regression/tests/bug-905992.c.c: excluded regression
5799           testfor pic16 due to bug:
5800           [ 1511794 ] pic16: regression test bug-895992.c fails
5801
5802 2006-06-24 Maarten Brock <sourceforge.brock AT dse.nl>
5803
5804         * src/mcs51/gen.c (genCmp): optimization for RFE 1162453
5805         * src/SDCCglue.c (initPointer), fixed bug 1496419
5806         * support/regression/tests/bug1496419.c: new, added
5807
5808 2006-06-22 Borut Razem <borut.razem AT siol.net>
5809
5810         * support/regression/ports/pic16/support.c: use gpsim usart module from
5811           libgpsim_modules library
5812
5813 2006-06-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5814
5815         * device/include/mcs51/at89c51ed2.h: Fixed bug 1510144 changed
5816         IP0H to IPH0.
5817
5818 2006-06-19 Raphael Neider <rneider AT web.de>
5819
5820         * src/pic/glue.h,src/pic16/glue.h: added prototypes
5821         * src/pic/glue.c,src/pic16/glue.c (pic1x_stringInSet,
5822           pic1x_emitSymbolIfNew): NEW, check for a string in a set,
5823           (pic14printExterns,pic14printPublics,pic16printPublics,
5824           pic16_printExterns): use new functions to emit symbols
5825           (picglue,pic16glue): emit publics before emitting externs
5826         * src/pic/gen.c,src/pic16/gen.c (genFunction): remember the names of
5827           locally defined functions to avoid bug #1443651
5828         * support/regression/tests/bug-716242.c: removed pic16 workaround
5829         * support/regression/ports/pic16/spec.mk: ignore errors during build
5830
5831 2006-06-19 Raphael Neider <rneider AT web.de>
5832
5833         * src/pic/glue.h: added pic14aopLiteral prototype
5834         * src/pic/glue.c (pic14aopLiteral): return unsigned int
5835         * src/pic/gen.c: removed stdint.h dependency
5836           (aopGet): use Safe_strdup()
5837           (bitpatternFromVal): removed, replaced use with pic14aopLiteral
5838           (genDataPointerSet): use pic14aopLiteral()
5839         * src/pic16/glue.h, src/pic16/glue.c, src/pic16/gen.c: similar changes
5840           for pic16; thanks to Bernhard and Maarten
5841
5842 2006-06-18 Borut Razem <borut.razem AT siol.net>
5843
5844         * support/regression/tests/structflexarray.c: flexible array members
5845           not supported by gcc < 3
5846         * sim/ucsim/configure, sim/ucsim/configure.in: do not compile serio
5847           GUI tool by default
5848         * src/pic/gen.c: don't include [p]strdin.h on solaris
5849         * support/Util/pstdint.h: addad svn attributes
5850         * support/regression/tests/constantRange.c,
5851           support/regression/tests/rotate.c: include inttypes.h instead
5852           stdint.h on solaris, addad svn attributes
5853
5854 2006-06-18 Raphael Neider <rneider AT web.de>
5855
5856         * src/SDCCsymt.c (initCSupport): change return type of divschar to
5857           int for PIC16
5858         * src/pic16/genarith.c (genAddLit): sign-extend via standard routine
5859           (pic16_genMinusBits): simplified sign-extension
5860           (pic16_genUMult8XLit_8,pic16_genUMult8X8_8): renamed to
5861             pic16_genMult8XLit_n resp. pic16_genMult8X8_n, fixed and
5862             adjusted to correctly handle mixed-signed operands, disabled
5863             now unused multiplciation routines
5864         * src/pic16/gen.c (pic16_pushpCodeOp): fixed to handle literals
5865           (assignResultValue): added argument denoting the size of the result
5866             as returned by the function (fixes upcasts in assigning from
5867             function calls: char foo(); int i = foo();)
5868           (genCall,genPcall,genGenPointerGet,genReceive): pass size of
5869             function result to assignResultValue
5870           (genMult): disabled inlined multiplication code
5871           (genDiv): augmented to also handle the modulus operator, fixed to
5872             handle mixed-signed operands correctly
5873           (genMod): simply call genDiv, disabled unused code
5874           (genAssign): fixed missing (sign-)extension on result
5875         * src/pic16/main.c (_hasNativeMulFor): accept literals [-128..256) as
5876             valid char operands, allow signed operands for native code, added
5877             division and modulo operator handling
5878         * device/lib/pic16/libsdcc/char/divschar.c: divschar returns an int
5879
5880         As a consequence, onebyte.c (if split into two files) and muldiv.c
5881         pass regression tests.
5882
5883 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5884
5885         * doc/Makefile.in: two runs of makeindex seem needed to get
5886         correct page references in the index of sdccman.pdf
5887         * doc/sdccman.lyx: mentioned cmon51, added links, small changes
5888
5889 2006-06-17 Borut Razem <borut.razem AT siol.net>
5890
5891         * sdcc/device/lib/Makefile.in: corrected PORTINCDIR path
5892
5893 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5894
5895         * doc/sdccman.lyx: updated, added (porting source code, debugging),
5896         mentioned ec2drv and paulmon
5897
5898 2006-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
5899
5900         * as/mcs51/lkarea.c (lnkarea2): clear new xdatamap, bugfix for two
5901           consecutive abs areas
5902           (find_empty_space, allocate_space): added map to handle codemap or
5903            xdatamap,
5904           (lnksect2): renamed rloc to locIndex, fixed bug 960060 by handling
5905            absolute idata and xdata
5906         * as/mcs51/lkmem.c (summary2): updated legend
5907
5908 2006-06-16 Raphael Neider <rneider AT web.de>
5909
5910         * src/pic16/gen.c (shiftR2Left2Result): fixed bug #1507127
5911
5912 2006-06-13 Maarten Brock <sourceforge.brock AT dse.nl>
5913
5914         * debugger/mcs51/cmd.c (cmdListFunctions): fixed bugs 1181163 and
5915           1208515
5916         * src/SDCClrange.c (findPrevUse): fixed bug 1294475
5917
5918 2006-06-13 Vangelis Rokas <vrokas AT users.sourceforge.net>
5919
5920         * src/port.h (struct PORT): added field gp_tags, to hold the tag
5921         value of generic pointers,
5922         * src/avr/main.c,
5923           src/ds390/main.c,
5924           src/hc08/main.c,
5925           src/izt/i186.c,
5926           src/izt/tlcs900h.c,
5927           src/mcs51/main.c,
5928           src/pic/main.c,
5929           src/pic16/main.c,
5930           src/xa51/main.c,
5931           src/z80/main.c: PORT structure, added elements for gp_tags field,
5932         * src/SDCCsymt.h: replaced hardwired values of GPTYPE_* macros with
5933         fields in the PORT structure of each port,
5934         * src/SDCCast.c (decorateType): allow processing of generic pointers
5935         for PIC16 port (FPTRSIZE equals GPTRSIZE), also set GPTYPE_NEAR for
5936         S_FIXED symbols
5937
5938 2006-06-12 Maarten Brock <sourceforge.brock AT dse.nl>
5939
5940         * link/z80/lkgb.c,
5941         * link/z80/lkgg.c,
5942         * src/pic16/gen.c,
5943         * src/pic16/main.c,
5944         * src/pic16/pcode.c,
5945         * src/pic/main.c,
5946         * src/pic/pcoderegs.c,
5947         * src/SDCCicode.c,
5948         * src/SDCCmain.c,
5949         * src/SDCCsymt.c: replaced all exit(-1) by exit(EXIT_FAILURE) to fix
5950           bug 1504689 on minGW
5951
5952 2006-06-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5953
5954         * device/lib/printf_tiny.c: fixed bug #1465675 (%x format specifier)
5955
5956 2006-06-12 Bernhard Held <bernhard AT bernhardheld.de>
5957
5958         * src/SDCCast.c (backPatchLabels): fixed bug #1504636
5959
5960 2006-06-11 Maarten Brock <sourceforge.brock AT dse.nl>
5961
5962         * device/lib/printf_large.c (OUTPUT_CHAR, _output_char): added and used
5963           for optimization
5964
5965 2006-06-11 Vangelis Rokas <vrokas AT users.sourceforge.net>
5966
5967         * src/pic16/gen.c (genCast): fixed bug with assignment of a pointer
5968         to a char variable. Fixed bug #1504211
5969         * device/include/pic16/adc.h,
5970         device/include/lib/pic16/libio/adc/adcopen.c: applied patch #1364387
5971         and fixed bug #1364390
5972
5973 2006-06-10 Borut Razem <borut.razem AT siol.net>
5974
5975         * CVSROOT: removed the CVS left-over
5976
5977 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
5978
5979         * as/hc08/asmain.c (asexit),
5980         * as/hc08/lkmain.c (lkexit),
5981         * as/mcs51/asmain.c (asexit),
5982         * as/mcs51/lkmain.c (lkexit),
5983         * src/SDCCglue.c (DEFSETFUNC),
5984         * src/SDCCmain.c (linkEdit, assemble),
5985         * support/librarian/sdcclib.c (AddRel),
5986           replaced unlink() by standard C remove()
5987         * src/SDCC.y: replaced removePostIncDecOps() by createRMW()
5988         * src/SDCCast.c (replaceAstWithTemporary, createRMW,
5989           gatherImplicitVariables): new, added to fix bug 608752,
5990           (createFunction): added gatherImplicitVariables()
5991         * src/SDCCast.h: added createRMW prototype
5992         * src/SDCCsymt.h (struct symbol): added infertype
5993         * support/regression/tests/bug608752.c: new, added
5994
5995 2006-06-10 Raphael Neider <rneider AT web.de>
5996
5997         * src/pic16/gen.c (pic16_aopOp): use WREG as destination even for
5998           multibyte dummy reads (fixes #1503234)
5999
6000 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
6001
6002         * device/include/mcs51/compiler.h: new, added header file to enable
6003           creating common sfr definition header files for different compilers
6004
6005 2006-06-05 Raphael Neider <rneider AT web.de>
6006
6007         * src/pic16/{pcode.h,genarith.c}:
6008           introduced pCodeOp combining any two pCodeOps (previously only
6009           two register operands could be combined), removed pcop2 from
6010           pCodepReg, replaced pCodeOpReg2 with pCodeOp2, fixes #1492366
6011         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): added case for PO_TWO_OPS
6012         * src/pic16/gen.c (pic16_popGet2,pic16_popGet2p,pic16_popCombine2):
6013           rewritten to use new PO_TWO_OPS
6014         * src/pic16/main.c (_hasNativeMulFor): cover more cases natively,
6015         * src/pic16/pcode.c (pic16_newpCodeOpImmd): initialize rIdx field,
6016           (pic16_newpCodeOp): catch invalid attempts on PO_TWO_OPS,
6017           (pic16_newpCodeOp2): NEW, create combined pCodeOp,
6018           (pic16_get_op): embraced return arg to allow #define return(x),
6019             added new case for combined opcodes
6020           (pic16_get_op2): reduced to use pic16_get_op() on second pCodeOp,
6021           (pic16_pCode2str,pic16_getRegFrompCodeOp,
6022            pic16_getRegFromInstruction2): fixed/added handling of new pCodeOp
6023
6024 2006-06-04 Bernhard Held <bernhard AT bernhardheld.de>
6025
6026         * src/SDCCval.c (checkConstantRange): added
6027         * src/SDCCval.h: added checkConstantRange
6028         * support/Util/SDCCerr.c,
6029         * support/Util/SDCCerr.h: replaced unused W_IF_NEVER_TRUE and
6030         W_IF_ALWAYS_TRUE by W_COMP_RANGE and W_LIT_OVERFLOW
6031         * src/SDCC.y: moved early 'condition transformations' to SDCCast.c
6032         * src/SDCCast.c (decorateType): added checkConstantRange,
6033         added 'condition transformations' from SDCC.y so that now W_COMP_RANGE
6034         can be emitted with the correct always true/false warning,
6035         added optimization for double '!';
6036         result of decorateType() must be assigned back to the tree, because
6037         decorateType() can change the tree
6038         * src/SDCCicode.c (geniCodeLogic),
6039         (geniCodeAssign): replaced new checkConstantRange, added warnings,
6040         (checkConstantRange): removed, it was only a fragment which never
6041         emitted a warning
6042         * src/SDCCsymt.c (computeType): fixed promotion for
6043         "-1 < (unsigned bit) b"
6044         * src/pic/ralloc.c (packRegsForAssign),
6045         * src/pic16/ralloc.c (packRegsForAssign),
6046         * src/hc08/ralloc.c (packRegsForAssign),
6047         * src/z80/ralloc.c (packRegsForAssign): ported fix for bug #930931
6048         from mcs51
6049         * src/mcs51/ralloc.c (packRegsForAssign): removed outcommented source
6050         * support/regression/tests/constantRange.c: added
6051         * support/valdiag/tests/constantRange.c: added
6052         * support/valdiag/valdiag.py: added -DPORT_HOST=1
6053
6054 2006-06-02 Borut Razem <borut.razem AT siol.net>
6055
6056         * support/regression/ports/pic16/support.c: increase stack size
6057           to 255 bytes
6058         * support/regression/Makefile.in: sort tests by name so that the
6059           resutlts can be compared on different machines / platforms
6060
6061 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
6062
6063         * device/lib/printf_large.c (output_digit): optimized further, Tnx Frieder
6064         * src/ds390/gen.c (emitLabel): new, added,
6065           (genDjnz): fixed stack overflow bug,
6066           (throughout): cosmetic changes to sync with mcs51/gen.c,
6067           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl)
6068         * src/mcs51/gen.c (genEndFunction): small optimization,
6069           (throughout): cosmetic changes to sync with ds390/gen.c
6070
6071 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
6072
6073         * device/lib/printf_large.c (output_digit, calculate_digit): optimized,
6074           (_print_format): fixed printing pointers
6075         * src/mcs51/gen.c (emitLabel, movb): new, added,
6076           (genAssign): small optimization,
6077           (genDjnz): fixed stack overflow bug,
6078           (throughout): replaced sprintf with SNPRINTF,
6079           replaced mcs51_regWithIdx with REG_WITH_INDEX,
6080           replaced emitcode("mov", "b,...") with MOVB(...),
6081           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl),
6082           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
6083         * src/mcs51/peeph.def: added rules 140 and 264
6084         * src/SDCCmem.c (allocLocal): store register declared locals in DSEG/OSEG
6085           so they may get optimized into registers
6086
6087 2006-05-30 Maarten Brock <sourceforge.brock AT dse.nl>
6088
6089         * src/SDCCmain.c (optionsTable, parseCmdLine): handle --use-stdout
6090           immediately when encountered,
6091           (printUsage): always use stderr even on windows
6092
6093 2006-05-30 Bernhard Held <bernhard AT bernhardheld.de>
6094
6095         * src/SDCCast.c (isLoopCountable): fixed bug #1478316
6096         (processParms): fixed bug #1247551
6097         * src/SDCCmain.c (printVersionInfo, printOptions, printUsage,
6098         parseCmdLine, main): print '--version' to stdout,
6099         print 'help' to stdout if --help is given,
6100         print 'help' to stderr and exit with EXIT_FAILURE if no or bad
6101         arguments are given; fixed --help
6102
6103 2006-05-27 Bernhard Held <bernhard AT bernhardheld.de>
6104
6105         * src/SDCCcse.c (findPointerSet): fixed bug #1493710
6106         * support/regression/tests/bug-1493710.c: added
6107
6108 2006-05-27 Borut Razem <borut.razem AT siol.net>
6109
6110         * support/regression/fwk/lib/testfwk.c: define array in _printn() as
6111           static instead auto
6112         * support/regression/ports/pic16/support.c: increase stack size
6113           from default 64 bytes to 128 bytes
6114         * support/regression/tests/staticinit.c,
6115           support/regression/tests/float.c: regression tests fully enabled
6116           for pic16 port by putting the initialized data arrays into the code
6117           section
6118         * support/regression/ports/pic16/spec.mk: don't link default libraries.
6119           This was changed by mistake in the previous version.
6120
6121 2006-05-28 Vangelis Rokas <vrokas AT users.sourceforge.net>
6122
6123         * src/pic16/gen.c (genFunction, genEndFunction): some
6124         beautifications, fixed bug with falsely restoring FSR2 in large
6125         stack model, thanks to Beau E. Cox for reporting the bug
6126
6127 2006-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
6128
6129         * debugger/mcs51/break.c,
6130         * debugger/mcs51/cmd.c (throughout): removed unused variables and labels,
6131           use %p to print pointers, made address variables unsigned
6132         * debugger/mcs51/cmd.c (infoSymbols): added missing parameter to printf
6133         * debugger/mcs51/symtab.c (parseSymbol): must return something
6134         * src/mcs51/gen.c (aopForSym): small optimization,
6135            moved declarations mcs51_ptrRegReq and mcs51_nRegs to ralloc.h,
6136           (freeAsmop): added missing break,
6137           (aopPut): removed parameter bvolatile, determine it inside the function,
6138           (saveRegisters, unsaveRegisters): small optimization,
6139           (genIpush): removed pointless check,
6140           (throughout): replaced Safe_calloc, strcpy with Safe_strdup,
6141           replaced sprintf with SNPRINTF,
6142           replaced strcpy with strncpyz,
6143           updated aopPut calls,
6144           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
6145         * src/mcs51/ralloc.h:  added declarations mcs51_ptrRegReq and mcs51_nRegs
6146
6147 2006-05-24 Borut Razem <borut.razem AT siol.net>
6148
6149         * support/regression/tests/bug-221100.c: fixed xdata problem caused by
6150           modification of test for the pic16 port, put the array to the code
6151           memory for pic16port; thanks to Maarten Brock and Frieder Ferlemann
6152
6153 2006-05-23 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
6154
6155         * src/pic/gen.c: MSC 6 does not have <stdint.h>.  Use pstdint.h instead.
6156         * support/Util/pstdint.h: added
6157
6158 2006-05-22 Borut Razem <borut.razem AT siol.net>
6159
6160         * src/regression/Makefile: removed bool2.c test, added -q linker option
6161         * src/regression/add2.c, src/regression/add3.c, src/regression/bool1.c,
6162           src/regression/bool3.c, src/regression/nestfor.c, src/regression/ptrfunc.c,
6163           src/regression/compare.c, src/regression/or1.c, src/regression/compare2.c,
6164           src/regression/while.c, src/regression/compare3.c, src/regression/compare4.c,
6165           src/regression/compare5.c, src/regression/sub2.c, src/regression/rotate1.c,
6166           src/regression/rotate2.c, src/regression/rotate3.c, src/regression/rotate4.c,
6167           src/regression/switch1.c, src/regression/rotate5.c, src/regression/for.c,
6168           src/regression/add.c, src/regression/sub.c, src/regression/call1.c:
6169           define SUPPORT_BIT_TYPES 0, removed unused bit variables
6170
6171 2006-05-22 Raphael Neider <rneider AT web.de>
6172
6173         * src/pic16/gen.c (pic16_storeForReturn): fragile fix for
6174           bug #1492360 (problematic due to generic pointers, see code)
6175
6176 2006-05-22 Borut Razem <borut.razem AT siol.net>
6177
6178         * support/regression/ports/pic16/specs.mk: removed stack size linker
6179           directive
6180         * support/regression/tests/array.c,
6181           support/regression/tests/bitopcse.c,
6182           support/regression/tests/bug-908454.c,
6183           support/regression/tests/malloc.c: modified for pic16 regression test
6184         * support/regression/tests/bitfields.c:
6185           pic16 - excluded bitfileds of size > 8
6186         * support/regression/tests/bp.c: pic16 - reduced data size
6187         * support/regression/tests/bug-221100.c: pic16 - reduced data size
6188         * support/regression/tests/bug-460010.c:
6189           pic16 - used the absolute address the fits in memory
6190         * support/regression/tests/bug-716242.c:
6191           bug [ 1443651 ] pic 16: redefining symbol that cannot be redefined.
6192         * support/regression/tests/float.c:
6193           pic16 - excluded - data size too big
6194         * support/regression/tests/onebyte.c:
6195           pic16 - bug [ 1444425 ] onebyte.c regression tes fails on pic16
6196         * support/regression/tests/shifts.c:
6197           pic16 - function names probably have to differ in first X characters
6198           (gpasm limitation?)
6199         * support/regression/tests/staticinit.c:
6200           pic16 - excluded some tests due error: no target memory available for
6201           section ".idata"
6202
6203 2006-05-22 Borut Razem <borut.razem AT siol.net>
6204
6205         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
6206           second try. Thanks Stas Sergeev once more.
6207
6208 2006-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
6209
6210         * src/hc08/gen.c (transferAopAop): aop forced to stack was not restored,
6211           (genLeftShift, genRightShift): fixed bug 1491627
6212         * src/hc08/peeph.def (rules 7, 8.x): added
6213         * support/regression/tests/shifts.c (ShiftLeftByParam,
6214           ShiftRightByParam, testShiftByParam): added to test variable shifting
6215
6216 2006-05-20 Raphael Neider <rneider AT web.de>
6217
6218         * src/pic/gen.c (bitpatternFromVal): fixed for 64-bit machines
6219         * src/pic16/ralloc.c (newReg): use correct name in hashtable,
6220           (allocReg): add only new registers to dynAllocRegs,
6221           (pic16_assignRegisters): do not reset dynrIdx, fixes bugs
6222             #1489055, #1445850, and probably #1483693
6223
6224 2006-05-19 Vangelis Rokas <vrokas AT users.sourceforge.net>
6225
6226         * src/pic16/glue.c (pic16_emitConfigRegs, pic16_emitIDRegs): fixed
6227         bug in for-loop that didn't emit the last of CONFIG and ID registers
6228
6229 2006-05-18 Maarten Brock <sourceforge.brock AT dse.nl>
6230
6231         * src/mcs51/gen.c (genCodePointerGet): inc dptr instead of loading acc
6232           with offset
6233         * src/mcs51/peeph.def (186.x): updated and reenabled to fix bugs
6234           1489016, 1434401 and 1490124
6235         * src/ds390/peeph.def (186.x, 227.x): updated and reenabled to fix bugs
6236           1489016, 1434401 and 1490124
6237
6238 2006-05-17 Borut Razem <borut.razem AT siol.net>
6239
6240         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
6241           thanks Stas Sergeev
6242
6243 2006-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
6244
6245         * device/include/mcs51/P89c51RD2.h,
6246         * device/include/mcs51/P89LPC901.h,
6247         * device/include/mcs51/P89LPC922.h,
6248         * device/include/mcs51/P89LPC932.h: added, thanks Omar Espinosa
6249
6250 2006-05-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
6251
6252         * device/lib/pic16/libsdcc/stack/{stack.S, Makefile.in}: add workaround
6253         to fix missing stack pragma in compiled binary object file,
6254
6255 2006-05-14 Bernhard Held <bernhard AT bernhardheld.de>
6256
6257         * support/packihx/configure.in,
6258         * support/packihx/configure: removed warning, autoconf >= 2.5x can
6259         determine sizeof basic types even while cross compiling
6260
6261 2006-05-13 Bernhard Held <bernhard AT bernhardheld.de>
6262
6263         * src/avr/gen.c (aopop),
6264         * src/ds390/gen.c (aopOp),
6265         * src/hc08/gen.c (aopOp),
6266         * src/mcs51/gen.c (aopop),
6267         * src/pic16/gen.c (pic16_aopOp),
6268         * src/pic/gen.c (aopOp),
6269         * src/z80/gen.c (aopop): fix for bug #1479882; use new, exclusive asmop
6270         if size of operand is smaller than spill location
6271
6272 2006-05-12 Borut Razem <borut.razem AT siol.net>
6273
6274         * *.dsw, *.dsp: changed property svn:eol-style to CRLF since they
6275           have to have CR/LF line endings even if they are checked out on *nix
6276           or on WIN32 in cygwin binmode
6277
6278 2006-05-12 Maarten Brock <sourceforge.brock AT dse.nl>
6279
6280         * doc/sdccman.lyx: documented numeric ranges, WEBDOC #1442369
6281         * device/include/ds80c390.h: added sfr16 definitions
6282         * src/ds390/gen.c,
6283         * src/ds390/gen.h,
6284         * src/ds390/main.c,
6285         * src/ds390/ralloc.c,
6286         * src/ds390/ralloc.h: changes all over the place to sync with mcs51
6287           fixing several bugs and adding sfr16/sfr32, reentrant bit params,
6288           bit returning functions
6289         * support/regression/tests/sfr16.c: enabled test on ds390
6290
6291 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6292
6293         * src/hc08/gen.c (asmopToBool, genIfx): fix for bug #1429722
6294         * src/hc08/gen.c (storeRegToAop): fix for bug #1439894
6295
6296 2006-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
6297
6298         * sim/ucsim/sim.src/memcl.h: added get_decoder() to cl_address_space
6299         * sim/ucsim/sim.src/mem.cc: implemented cl_address_space::get_decoder,
6300           (cl_address_space constructor): removed expensive initialization,
6301           (cl_address_space::get_cell): extended for late initialization,
6302           (cl_address_space::*): use late initialization,
6303           (cl_address_decoder::activate): removed expensive initialization,
6304           This reduced regression test running time by 25%
6305
6306 2006-05-11 Bernhard Held <bernhard AT bernhardheld.de>
6307
6308         * packihx/,
6309         * configure.in,
6310         * configure,
6311         * sdcc.dsw,
6312         * Makefile.bcc,
6313         * Makefile.in,
6314         * support/packihx/Makefile.in,
6315         * support/packihx/clean.mk,
6316         * support/packihx/Makefile.bcc,
6317         * support/packihx/PackIhx.dsp: moved packihx to support/packihx
6318
6319 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6320
6321         * src/SDCCval.c (valNot): fix for regression test failure
6322           of not.c on big endian hosts
6323
6324 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
6325
6326         * device/inlcude/mcs51/msc1210.h: new, added, thanks Philippe Latu
6327
6328 2006-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6329
6330         * device/lib/mcs51/Makefile.in: changed string comparison operator
6331           to = for POSIX compliance; == is bash extension
6332
6333 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
6334
6335         * device/lib/hc08/_mulint.c: applied patch 1485428, thanks
6336           kosmonaut_pirx
6337
6338 2006-05-09 Vangelis Rokas <vrokas AT users.sourceforge.net>
6339
6340         * src/pic16/gen.c (pic16_freeAsmop): release any temp registers
6341         allocated by aopForSym thus fixing bug #1478657 about failed testfwk.c
6342         * src/pic16/main.c (_pic16_keywords): added 'sfr16' keyword,
6343         * src/pic16/ralloc.c (pic16_allocWithIdx): also a fix for bug exposed by
6344         bug report #1478657,
6345
6346 2006-05-05 Borut Razem <borut.razem AT siol.net>
6347
6348         * doc/Makefile.in: remove of WARNINGS and labels.pl immediately after
6349           making the html
6350
6351 2006-05-02 Borut Razem <borut.razem AT siol.net>
6352
6353         * doc/Makefile.in: removed *.ind dependency since there is no rule to
6354           create *.ind, which made make to fail if invoked with -j 2
6355
6356 2006-05-01 Maarten Brock <sourceforge.brock AT dse.nl>
6357
6358         * src/SDCCglue.c (emitRegularMap): partial fix for bug 1477149, thanks
6359           Hubert Sack for patch 1479782
6360
6361 2006-05-01 Vangelis Rokas <vrokas AT users.sourceforge.net>
6362
6363         * src/pic16/glue.c (pic16_printIvalStruct): fixed bug #1445929
6364
6365 2006-05-01 Raphael Neider <rneider AT web.de>
6366
6367         * src/pic/device.c (sanitise_processor_name): only remove p(ic) prefix,
6368           (create_pic): store only prefix-free device name,
6369           (init_pic): check for device names with "16" prefix,
6370           (list_valid_pics),
6371         * src/pic/device.h (struct PIC_device),
6372         * src/pic/main.c (_pic14_genAssemblerPreamble): adapted to single
6373             stored device name,
6374         * device/include/pic/pic12f{635,675,629,683}.h,
6375         * device/lib/pic/libdev/pic12f{635,675,629,683}.c: NEW device libraries
6376         * device/lib/pic/libdev/Makefile.in: allow pic12* devices,
6377         * device/include/pic/pic16f505.h,
6378         * device/lib/pic/libdev/pic16f505.c: removed
6379         * device/include/pic/pic14devices.txt: added support for pic12f
6380             devices, removed unsupported non 16-bit devices
6381             [above changes provided by patch from Zik Saleeba]
6382         * src/pic/*, src/pic16/*, device/include/pic16/*,
6383           device/lib/pic/**, device/lib/pic16/**: obfuscated email address
6384
6385 2006-05-01 Borut Razem <borut.razem AT siol.net>
6386
6387         * configure.in, configure, doc/Makefile.in:
6388           sync with nightly build makefile - latex, dvipdf and dvips
6389           not needed any more
6390
6391 2006-04-30 Bernhard Held <bernhard AT bernhardheld.de>
6392
6393         * support/scripts/sdcc.nsi: removed all Readmes and Makefiles
6394         in the library source
6395
6396 2006-04-30 Maarten Brock <sourceforge.brock AT dse.nl>
6397
6398         * support/regression/ports/hc08/spec.mk: fixed bug 1478892
6399
6400 2006-04-28 Raphael Neider <rneider AT web.de>
6401
6402         * src/pic16/pcode.c (pic16_newpCodeOpLit12),
6403         * src/pic16/gen.c (pic16_popGetLit12): NEW, create 12 bit literal,
6404           (pic16_loadFSR0): handle 12 bit literals correctly, fixes #1440527
6405         * src/pic16/pcode.h: added prototype for pic16_newpCodeOpLit12()
6406
6407 2006-04-28 Bernhard Held <bernhard AT bernhardheld.de>
6408
6409         * device/lib/pic/libdev/Makefile.in,
6410         * device/lib/hc08/Makefile.in,
6411         * device/lib/gbz80/Makefile.in,
6412         * device/lib/z80/Makefile.in,
6413         * device/lib/ds390/Makefile.in,
6414         * device/lib/ds400/Makefile.in: added srcdir to include search path,
6415         thanks to Borut for the bug report
6416         * configure.in,
6417         * configure: always create doc/Makefile independent from --enable-doc
6418         * Makefile.in: always install from directory doc independent from
6419         --enable-doc
6420         * device/lib/pic/Makefile.in: added libdev again, it was erroneously
6421         removed
6422         * device/lib/pic/libdev/Makefile.in: fixed VPATH build
6423         * doc/Makefile.in: install *.txt if present
6424         * device/include/Makefile.in (install): added installation of pic/*.inc
6425         and pic/*.txt files again, they were erroneously removed
6426
6427 2006-04-28 Raphael Neider <rneider AT web.de>
6428
6429         * src/pic/{gen.c,main.h,pcode.c},
6430         * src/pic16/{gen.c,pcode.c}: quietened compiler warnings
6431             concerning signedness with casts
6432
6433 2006-04-28 Raphael Neider <rneider AT web.de>
6434
6435         * src/pic/gen.c (genFunction): set global pic14_hasInterrupt on
6436             definition of an interrupt handler,
6437         * src/pic/glue.c (pic14_emitInterruptHandler): moved output of
6438             interrupt handler stuff from picglue() to separate routine,
6439           (picglue): enabled definition of intr handlers in files w/o main()
6440
6441 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
6442
6443         * support/librarian/sdcclib.c: moved include <limits.h> up to enable
6444           compilation with MSVC 2005 Express Edition (VC8)
6445
6446 2006-04-26 Bernhard Held <bernhard AT bernhardheld.de>
6447
6448         * device/lib/Makefile: fixed build of gbz80 lib
6449
6450 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
6451
6452         * support/regression/tests/bug-460010.c,
6453         * support/regression/tests/bug-524691.c,
6454         * support/regression/tests/bug-716242.c: removed conditional defines
6455           that are already in testfwk.h
6456
6457 2006-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
6458
6459         * src/ds390/gen.c (AccAXRrl1, AccAXLrl1): changed to real rotate by 1,
6460           (AccAXRsh1): added, shift right by 1,
6461           (AccAXLsh, AccAXRsh, AccAXRshS): updated for AccAXRrl1, AccAXRsh1 and
6462            AccAXLrl1
6463         * support/regression/tests/rotate.c: use <stdint.h> and enabled ds390
6464
6465 2006-04-25 Bernhard Held <bernhard AT bernhardheld.de>
6466
6467         * src/SDCCast.c (decorateType): partial fix for RFE 1475769,
6468         remove cast to same type
6469         * src/SDCCast.c (decorateType): fix for RFE 1475742,
6470         optimize 'ifx (op == 0)' resp. 'ifx (op != 0)'
6471         * as/z80/Makefile,
6472         * link/z80/Makefile: removed, they have moved to
6473         Makefile.in files
6474         * configure,
6475         * configure.in: replaced duplicate message about ucsim by missing sdcpp
6476         * install-sh: fix bug #1204398 by setting umask 0022
6477         * device/lib/Makefile: separate build of z80 and gbz80 lib
6478
6479 2006-04-24 Bernhard Held <bernhard AT bernhardheld.de>
6480
6481         Enabled VPATH feature: changed nearly all Makefiles (149 files).
6482         See sdccman.lyx '2.4.10 VPATH feature' about how to use it.
6483
6484         One basic decision: e.g. src/clean.mk includes further files. In order
6485         to make this work there are two solutions:
6486         - rename another dozen clean.mk to clean_in.mk, add srcdir to them and
6487           run configure on them. This way they can use
6488           'include $(srcdir)/port-clean.mk'
6489         - always include clean.mk by the Makefile at the same level. To avoid
6490           that `make clean` tries to include and build Makefile.dep the
6491           MAKECMDGOALS are examined (see e.g. src/Makefile.in). This has been
6492           implemented, because now even `make uninstall` doesn't create
6493           Makefile.in. clean.mk could be eliminated by pasting it in
6494           Makefile.in.
6495
6496         * debugger/mcs51/Makefile.in: build own objects from library sources
6497         (SLIB, SDCC) in current directory
6498
6499         * configure, configure.in: renamed --disable-device-lib-build in
6500         --disable-device-lib; added --enable-doc, the required tools are
6501         searched by configure; added result message; the toolchain for the
6502         belonging ports are now only built, if the port is enabled.
6503
6504         * support/regression/*: all output is written in directory gen, because
6505         the fwk and ports directories don't livet in the build tree using vpath
6506
6507         * doc/sdccman.lyx: renamed --disable-device-lib-build to
6508         --disable-device-lib, added --enable-doc, added section VPATH
6509
6510         * sim/ucsim/configure.in,
6511         * sim/ucsim/configure.in: hc08 couldn't be disabled, now hc08 and
6512         z80 are enabled by default
6513
6514 2006-04-24 Raphael Neider <rneider AT web.de>
6515
6516         * src/pic/device.c (pic14_assignConfigWordValue): remember assignments
6517             to config word, "pic14_"-prefixed some extern functions
6518           (pic14_emitConfigWord): emit __config directive(s) if assignment to
6519             config word has been found
6520         * src/pic/device.h: added prototypes
6521         * src/pic/pcode.c: added "pic14_"-prefix where needed
6522         * src/pic/ralloc.c (IS_CONFIG_ADDRESS,pic14_assignRegisters): cosmetic
6523             fixup
6524         * src/pic/glue.c (pic14_constructAbsMap): handle assignments to config
6525             words,
6526           (pic14emitRegularMap): ignore config words,
6527           (pic14createInterruptVect): moved generating __config directives away
6528           (picglue): have __config directives emitted
6529
6530 2006-04-24 Borut Razem <borut.razem AT siol.net>
6531
6532         * doc/Makefile: sync with nightly build makefile
6533
6534 2006-04-24 Raphael Neider <rneider AT web.de>
6535
6536         * src/pic/pcoderegs.c (OptimizeRegUsage): do not optimize
6537             registers that have not been assigned proper liveranges,
6538             fixes #1469504 and #1474602,
6539           (pCodeRegOptimizeRegUsage): fixed typo in comment
6540
6541 2006-04-24 Borut Razem <borut.razem AT siol.net>
6542
6543         * device/examples/main8051.c: deleted - it was removed from CVS
6544           24.mar.2000 and after that modified 18.feb.2001, so it reappered
6545           after the transition to Subversion
6546         * src/SDCCalloc.h: deleted - it was removed  from CVS
6547           3.feb.2001 and after that modified 18.feb.2001, so it reappered
6548           after the transition to Subversion
6549         * sim/ucsim/cpu.gif, sim/ucsim/interrupt.gif, sim/ucsim/new.gif,
6550           sim/ucsim/serial1.gif, sim/ucsim/serial2.gif,
6551           sim/ucsim/term_cpuopt.gif, sim/ucsim/timers.gif, sim/ucsim/wins.gif,
6552           sim/ucsim/post.jpg, sim/ucsim/UCsim.jpg: corrected
6553
6554 2006-04-22 Maarten Brock <sourceforge.brock AT dse.nl>
6555
6556         * as/asx8051.dsp: added mcs51/strcmpi.h
6557         * as/hc08/as_hc08.dsp: added asm.h, m6808.h, strcmpi.h
6558         * as/hc08/aslink.h: updated lnksect prototype
6559         * as/hc08/asm.h,
6560         * as/mcs51/asm.h: added a_addr to struct area and s_org to struct sym
6561         * as/hc08/asmain.c,
6562         * as/mcs51/asmain.c (asmbl): init dot.s_org for S_ORG,
6563           (newdot): handle A_ABS
6564         * as/hc08/asout.c,
6565         * as/mcs51/asout.c (outarea): output address
6566         * as/hc08/lkaomf51.c,
6567         * as/mcs51/lkaomf51.c: disabled unused array UsageType
6568         * as/hc08/m08pst.c,
6569         * as/mcs51/i51pst.c,
6570         * as/z80/z80pst.c: "ABS" is not A_OVR
6571         * as/hc08/lkarea.c (newarea): read a_addr,
6572           (lnkarea): added codemap array, sort absolute areas to the front,
6573            combine all GSINITx/GSFINAL,
6574           (find_empty_space, allocate_space): new functions,
6575           (lnksect): return next address, handle absolute sections
6576         * as/mcs51/lkarea.c (newarea): read a_addr,
6577           lnksect2 prototype changed,
6578           (lnkarea2): define codemap unsigned, combine all GSINITx/GSFINAL,
6579           (find_empty_space, allocate_space): new, factored out of lnksect2,
6580           (lnksect2): return next address, handle absolute sections
6581         * as/hc08/lkhead.c,
6582         * as/mcs51/lkhead.c (newhead): head is absolute but not overlay
6583         * as/hc08/lklibr.c (addfile, fndsym),
6584         * as/mcs51/lklibr.c (addfile, buildlibraryindex, fndsym): prevent
6585           index out of range and detect both '\' and '/'
6586         * device/include/mcs51/c8051f200.h: added _XPAGE, removed bad comment
6587         * device/include/stdbool.h: removed SDCC_ds390 from check to pass
6588           regression tests (ds390 cannot return bool yet)
6589         * doc/sdccman.lyx: changed version number, document changed --no-peep,
6590           document critical interrupts on z80, document changed SDCC define
6591         * src/asm.c (_asxxxx_mapping): fixed .org directive,
6592           (_a390_mapping): added .org directive
6593         * src/hc08/gen.c (transferAopAop): made bytemask log to fix warning,
6594           (genMultOneByte): fixed warnings
6595         * src/hc08/hc08.dsp: lowered warning level to 2 to suppress pedantic
6596           ones
6597         * src/pic16/device.c: removed newReg prototype, removed BYTE_IN_LONG
6598         * src/pic16/gen.c (pic16_popGetLabel): made parameter key signed,
6599           (pic16_genLeftShiftLiteral, genRightShiftLiteral): fixed warnings
6600         * src/pic16/gen.h: changed prototype for pic16_popGetLabel
6601         * src/pic16/main.c: removed newReg prototype
6602         * src/pic16/pcode.c,
6603         * src/pic16/pcode.h (pic16_emitDB): changed parameter c to int to fix
6604           warnings
6605         * src/pic16/pic16.dsp: lowered warning level to 2 to suppress pedantic
6606           ones
6607         * src/pic16/ralloc.c
6608         * src/pic16/ralloc.h (newReg): changed type to int and size to unsigned
6609           to fix warnings
6610         * src/pic/pcode.c (allocInternalRegister): changed parameter optype
6611           from short to PIC_OPTYPE
6612         * src/pic/pic.dsp: lowered warning level to 2 to suppress pedantic ones
6613         * src/pic/ralloc.c (newReg, allocInternalRegister): changed parameter
6614           optype from short to PIC_OPTYPE
6615         * src/port.h: made int_size unsigned to fix warnings
6616         * src/SDCC.y: fixed warning on MSVC
6617         * src/SDCCicode.c (getArraySizePtr): return unsigned int
6618         * src/SDCCopt.c (convertToFcall): fixed warnings
6619         * src/SDCCsymt.h: removed double prototype for genSymName
6620         * src/xa51/ralloc.c (allocReg): made size unsigned int, type int and
6621           offset int to fix warnings
6622
6623 2006-04-22 Borut Razem <borut.razem AT siol.net>
6624
6625         * doc/sdccman.lyx, */Makefile, */Makefile.in:
6626           references to CVS replaced with Subversion
6627
6628 2006-04-21 Borut Razem <borut.razem AT siol.net>
6629
6630         * doc/sdccman.lyx, */Makefile, */Makefile.in:
6631           references to CVS replaced with Subversion
6632
6633 2006-04-19 Borut Razem <borut.razem AT siol.net>
6634
6635         * src/version.awk: adapted for svn
6636         * /asxxxx/asxhtml/*.gif: set property svn:mime-type to image/gif
6637           sim/ucsim/doc/*.gif: set property svn:mime-type to image/gif
6638           sim/ucsim/doc/*.jpg: set property svn:mime-type to image/jpeg
6639           /binutils-avr/etc/*.vi, *.jin: removed all properties
6640           support/scripts/sdcc.ico: set property svn:mime-type to image/x-icon
6641
6642 2006-04-19 Borut Razem <borut.razem AT siol.net>
6643
6644         * CVS to Subversion migration completed
6645
6646 2006-04-18 Borut Razem <borut.razem AT siol.net>
6647
6648         * support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}/lib/pic/*.o,
6649           ${DEV_ROOT}/lib/src/pic/libdev/*.S, ${DEV_ROOT}/lib/src/pic/libdev/*.inc
6650
6651 2006-04-17 Borut Razem <borut.razem AT siol.net>
6652
6653         * device/include/Makefile.in: added pic/*.inc to the installation
6654
6655 2006-04-15 Bernhard Held <bernhard AT bernhardheld.de>
6656
6657         * support/regression/collate-results.py: fixed output in case of
6658         a valdiag error
6659         * support/regression/generate-cases.py: fixed splitting of pathnames
6660         with dots
6661         * as/hc08/lklibr.c (addfile),
6662         * as/mcs51/lklibr.c (addfile): fixed off-by-one bug
6663
6664 2006-04-11 Raphael Neider <rneider AT web.de>
6665
6666         * src/pic16/gen.c (getFreePtr, pic16_popRegFromString),
6667         * src/pic16/ralloc.c (pic16_allocregWithName): removed debug output
6668         * src/pic16/pcode.c (assignValnums): fixed #1460578
6669
6670 2006-04-11 Raphael Neider <rneider AT web.de>
6671
6672         * device/lib/pic/libdev/*.c,
6673         * device/include/pic/*.h: replaced sfr and data with __sfr and __data,
6674           fixes #1468739, enables compilation in --std-c99 mode
6675         * support/scripts/inc2h.pl: emit __sfr/__data instead of sfr/data
6676
6677 2006-04-11 Raphael Neider <rneider AT web.de>
6678
6679         * src/pic/device.c (find_device): removed debug output
6680           (list_valid_pics): enabled verbose listing of supported devices
6681         * device/include/stdbool.h: define bool as char for pic14/16 as well
6682
6683 2006-04-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6684
6685         * src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)"
6686
6687 2006-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
6688
6689         * .version: bumped version to 2.5.6
6690         * src/pic/ralloc.c (newReg): MSVC doesn't support __builtin_return_address
6691
6692 2006-04-06 Raphael Neider <rneider AT web.de>
6693
6694         * .version: bumped version to 2.5.6 (pic14 ABI changed)
6695         * src/SDCCmain.c: add -DSDCC_PROCESSOR=<id> for pic14 port
6696         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap,
6697           pic14emitRegularMap,pic14emitMaps): moved output for absolute symbols to
6698             pic14_constructAbsMap
6699           (pic14printPublics): declare absolute global symbols as global
6700           (pic14createInterruptVect),
6701         * src/pic/ralloc.c (IS_CONFIG_ADDRESS): support second config word,
6702           (newReg): assume new registers unused, use correct name in
6703             hashtable (reg->name instead of name), more debugLog output
6704         * src/pic/device.h (PIC_device): added fields for verbose output
6705         * src/pic/device.c: moved device definition to pic14devices.txt,
6706             added routines for runtime parsing of pic14devices.txt,
6707             added support for second config word
6708         * src/pic/main.c (_process_pragma): removed #pragma maxram,
6709           (_pic14_keywords): no longer accept "bit" and "sbit" keywords
6710           (_pic14_initPaths): add search paths with "pic" suffix (not "pic14")
6711           (_pic14_parseOptions): moved pCodeInitRegisters here
6712           (_pic14_do_link): add "pic$(ARCH).lib" to linker arguments
6713         * src/pic/pcode.c (AnalyzeBanking): bail out on unset processor,
6714           (pCodeInitRegisters): rewrapped comments, perpared new approach to
6715             handling the pseudo stack
6716         * device/lib/Makefile.in: ignore failures in objects-pic16,
6717         * device/lib/pic/{configure,configure.in,Makefile}: added libdev/
6718         * device/lib/pic/NEWS: document new dependency on picXXX.lib
6719         * device/lib/pic/Makefile.subdir,
6720         * device/lib/pic16/Makefile.subdir: improved clean rules
6721         * device/lib/pic/libdev/: NEW, pic14 device libraries
6722         * device/lib/pic/libsdcc/_gptr{get,put}{1,2,3,4}.S: use _X not X
6723         * device/lib/pic/libsdcc/macros.inc: use _X not X, declare default SFRs
6724         * device/include/Makefile.in: create subdir and install pic14 headers
6725         * device/include/pic/p16f_common.inc: removed unused declarations
6726         * device/include/pic/pic16*.h: added header files for 100+ 14 bit
6727             PICs from inc2h.pl v1.6,
6728             replaced BIT_AT macros with struct declarations
6729         * device/include/pic/pic14devices.txt: definition of supported devices,
6730             all above improvements contributed by Zik Saleeba, thanks
6731         * support/scripts/inc2h.pl: removed BIT_AT, replaced with structs
6732         * support/scripts/sdcc.nsi: also install pic14 device libraries and
6733             headers
6734
6735 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
6736
6737         * device/include/mcs51/c8051f410.h: added interrupt numbers,
6738         * device/include/mcs51/c8051f200.h: old SiLabs mcu completes the list,
6739           thanks to Charles Olds
6740
6741 2006-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6742
6743         * debugger/mcs51/cmd.c (infoRegisters): show return address on stack
6744
6745 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
6746
6747         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug 1464657
6748         * src/mcs51/gen.c (genJumpTab): fixed bug in medium model
6749         * support/regression/bug1464657.c: added, new test
6750
6751 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
6752
6753         * src/SDCCmain.c (preProcess): implemented RFE 1449908, define SDCC as the
6754           version number
6755
6756 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
6757
6758         * src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
6759           --no-peep and --peep-file <file> are used don't use default rules but
6760           do use the <file>
6761
6762 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
6763
6764         * src/mcs51/gen.c (genCall): fixed bug 1457608
6765
6766 2006-03-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6767
6768         * doc/sdccman.lyx: reverted to version 1.129 of december as my latest
6769         changes seem to cause (trigger?) problems with the build system.
6770
6771 2006-03-29 Maarten Brock <sourceforge.brock AT dse.nl>
6772
6773         * src/SDCCpeeph.c (operandsLiteral): new, added,
6774           (callFuncByName): inserted operandsLiteral
6775         * src/mcs51/peeph.def: reenabled 132.e, added extra check to 132.x
6776
6777 2006-03-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6778
6779         * doc/sdccman.lyx: added paragraph "Use of SDCC in Education"
6780         * src/mcs51/peeph.def: disabled rule 132.e fixing bug #1453093
6781
6782 2006-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
6783
6784         * src/z80/gen.c (genFunction, genEndFunction): fixed bug 1160666,
6785           implemented patch 1120823 Thanks to Willy De la Court (normal
6786           interrupts need an interrupt number now if they are made critical),
6787           and enabled nesting of critical functions though not for gbz80
6788           (genCritical, genEndCritical): added functions
6789           (genZ80Code): added cases for CRITICAL and ENDCRITICAL
6790         * src/z80/mappings.i: added "ei" to all mappings
6791
6792 2006-03-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6793
6794         * sim/ucsim/cmd.src/newcmdcl.h: applied patch fixing GCC 4.1 build
6795         submitted by the Debian SDCC maintainer Aurelien Jarno:
6796         "Credits goes to Martin Michlmayr, who rebuilt the whole Debian
6797         archive with gcc 4.1 on mips and wrote the patch"
6798
6799 2006-03-16 Raphael Neider <rneider AT web.de>
6800
6801         * src/pic16/genarith.c (genAddLit): simplified and fixed case where
6802           the left operand is shorter than the result (c* = lit-c* + int),
6803           fixes bug #1450796
6804         * src/pic16/gen.c (genRightShift): check IS_SYMOP before accessing
6805           OP_SYMBOL
6806
6807 2006-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
6808
6809         * src/.version: increased version number to 2.5.5
6810         * src/SDCCmain.c (linkEdit): do not test for PIC16 target since, PIC16
6811         linking is done manually in pic16 port's _linkEdit,
6812         * src/SDCCsymt.c (compStructSize): for target PIC16 and shell variable
6813         PIC16_PACKED_BITFIELDS, compact bitfield structures as much as possible,
6814         * src/pic16/gen.c (aopForSym): when direct register name is WREG then
6815         allocate asmop as AOP_ACC,
6816         (aopForRemat): added parameter 'bool result' in function declaration,
6817         (pic16_aopGet): return AOP_ACC when accessing WREG,
6818         (pic16_popGetTempReg): minor modification,
6819         (pic16_popRegFromIdx): first try with 'pic16_regWithIdx' then with
6820         'pic16_allocWithIdx',
6821         (genPcall): removed ftype, usage of OP_SYM_TYPE asserted error when
6822         calling function in absolute addresses,
6823         (genAssign): take into account AOP_ACC asmop,
6824         * src/pic16/pcode.c (pic16_newpCodeOpReg): minor modifications,
6825         * src/pic16/pcoderegs.c: some debug functions and lines added,
6826         * src/pic16/ralloc.c (decodeRegType): added but commented out,
6827         * (pic16_typeRegWithIdx): search 'pic16_dynInternalRegs' for given
6828         register too,
6829         * (pic16_findFreeReg, pic16_findFreeRegNext): allocate new register via
6830         call to allocReg, not by manually allocating a new one,
6831         (pic16_assignRegisters): now before going through the register
6832         allocating functions mark all registers as free. This eliminates some
6833         side effects resulting from peephole parser done earlier in the backbone
6834
6835 2006-03-13 Maarten Brock <sourceforge.brock AT dse.nl>
6836
6837         * src/SDCCicode.c (geniCodeLogic),
6838         * src/SDCCast.c (decorateType): applied patch by Bernhard for rfe 1422617
6839
6840 2006-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
6841
6842         * src/mcs51/gen.c (sameReg): new, checks if two aop regs are the same,
6843           (genSend): bugfix, do not allocate and free twice,
6844           (shiftRLong): handle partially overlapping aops
6845         * support/regression/tests/bitopcse.c: fixed warning redefined idata
6846
6847 2006-03-08 Borut Razem <borut.razem AT siol.net>
6848
6849         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata
6850           for pic16
6851
6852 2006-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
6853
6854         * support/regression/tests/bug1409955.c: new, added
6855         * src/mcs51/gen.h: changed asmop.freed:1 to asmop.allocated for tracking
6856         * src/mcs51/gen.c (newAsmop): set asmop.allocated to 1,
6857           (aopForSym, aopOp): increment asmop.allocated if reused,
6858           (freeAsmop): decrement asmop.allocated and check for zero instead of
6859           using asmop.freed,
6860           (freeForBranchAsmop): use asmop.allocated instead of asmop.freed,
6861           (genNot, genCpl, genUminus, genMinus, genMult, genDiv, genMod, genCmpGt,
6862            genCmpLt, genAndOp, genOrOp, genAnd, genOr, genXor, genRRC, genRLC,
6863            genGetHbit, genGetAbit, genGetByte, genGetWord, genSwap,
6864            genLeftShiftLiteral, genLeftShift, genRightShiftLiteral,
6865            genSignedRightShift, genRightShift, genDataPointerGet,
6866            genPagedPointerGet, genFarPointerGet, genCodePointerGet,
6867            genGenPointerGet, genDataPointerSet, genAssign, genCast): free asmop's
6868             in reverse order from allocation,
6869           (genPlus, genCmpEq): free asmop's in reverse order from allocation and
6870             added swappedLR to keep track
6871         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata,
6872           pdata & code for GCC, z80, gbz80 & hc08
6873         * support/regression/tests/zeropad.c: moved defines to testfwk.h
6874
6875 2006-03-08 Raphael Neider <rneider AT web.de>
6876
6877         * src/pic16/main.c (_hasNativeMulFor): fixed bug #1444425
6878
6879 2006-03-07 Maarten Brock <sourceforge.brock AT dse.nl>
6880
6881         * device/include/mcs51/c8051f410.h: new SiLabs mcu
6882         * src/ds390/peeph.def: disabled 186.d and 227.a as fix for #1434401
6883         * support/regression/tests/array.c: added parenthesis, made arrays unsigned
6884
6885 2006-03-06 Borut Razem <borut.razem AT siol.net>
6886
6887         * support/regression/ports/pic16/spec.mk: link with libm18f.lib,
6888           made the linker quiet
6889
6890 2006-03-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
6891
6892         * src/pic16/gen.c (genPcall): fixed bug #1443644
6893         * src/pic16/device.h (struct pic16_options_t): added 'int CATregs' flag
6894         which dumps before the function entry point a data byte which represents
6895         the number of the local variables used by the specified function, added
6896         'xinst' for initial support for Extended Instruction Support,
6897         * src/pic16/gen.c (aopForSym, pic16_aopGet): beautifications,
6898         (pic16_testStackOverflow): do not prefix GSTACK_TEST_NAME with
6899         port->fun_prefix anymore (may change later),
6900         (genFunction, genEndFunction): do not store/restore local registers for
6901         _main (this should take care the --main-return command line option in
6902         the future),
6903         (genOr): removed some legacy pic-port instructions,
6904         * src/pic16/genarith.c (genAddLit): re-enabled old code because
6905         performing operations with SFR's causes data to be written more than
6906         once to each SFR. Perhaps SFRs should be handled in special cases...
6907         * src/pic16/glue.c: macros BIG_ENDIAN and BYTE_IN_LONG are moved to
6908         pcode.h
6909         * src/pic16/main.c (_process_pragma): stack bound checking did not take
6910         into account for stack starting position,
6911         (struct OPTIONS pic16_optionsTable): added command line argument
6912         --extended or -y for Extended Instruction Support,
6913         * src/pic16/ralloc.c (pic16_decodeOp): added case for FUNCTION,
6914         (deassignLRs): *** perhaps the most important change, old 'for' code
6915         (commented out for reference), didn't account for some registers which
6916         were left marked 'not free' after a pointer operation. The change
6917         reduces register usage a lot in some cases
6918
6919 2006-03-04 Borut Razem <borut.razem AT siol.net>
6920
6921         * support/regression/ports/hc08/spec.mk: remove *.asm in traget
6922           _clean
6923         * support/regression/tests/bug-524697.c: decreased array size for
6924           mcs51 to fit into the internal RAM
6925         * support/regression/Makefile.in: a little bit more verbose
6926
6927 2006-03-03 Borut Razem <borut.razem AT siol.net>
6928
6929         * support/regression/fwk/lib/testfwk.c,
6930           support/regression/fwk/include/testfwk.h: introduced function
6931           _prints(), nonrecursive _printn(), call _initEmu() from main()
6932         * support/regression/ports/gbz80/support.asm,
6933           support/regression/ports/ucz80/support.asm,
6934           support/regression/ports/z80/support.asm,
6935           support/regression/ports/ds390/support.c,
6936           support/regression/ports/hc08/support.c,
6937           support/regression/ports/host/support.c,
6938           support/regression/ports/mcs51/support.c,
6939           support/regression/ports/xa51/support.c: added empty _initEmu()
6940           function
6941         * support/regression/ports/pic16/gpsim.cmd,
6942           support/regression/ports/pic16/spec.mk,
6943           support/regression/ports/pic16/support.c,
6944           support/regression/Makefile.in: added pic16 regression test
6945
6946 2006-03-01 Raphael Neider <rneider AT web.de>
6947
6948         * src/pic16/gen.c (genPcall,pic16_derefPtr,genGenPointerGet,
6949           genConstPointerGet): use safe way of generating MOVFF to cover
6950             literals as well as registers, fixes bug #1440527
6951         * src/pic16/glue.c (pic16_printIvalBitFields): prevent NULL pointer
6952             dereference
6953           (pic16_printIvalUnion,pic16_isUnion): NEW, handle initialized unions
6954             more correctly, fixes bug #1232186
6955           (pic16_printIval): use pic16_printIvalUnion() for initialized unions
6956         * src/pic16/main.c (_pic16_linkEdit): reorder linker arguments to make
6957             gplink guess the correct processor in more cases, applied patch
6958             from Till Riedel attached to and fixing bug #1436552
6959
6960 2006-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6961
6962         * support/regression/tests/array.c: added, contains check for #1434401
6963         * src/mcs51/peeph.def: disabled 186.d as temporary fix for #1434401
6964
6965 2006-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
6966
6967         * device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
6968         * device/include/mcs51/at89S8252.h: fixed, thanks to Krzysztof Polomka
6969         * device/include/mcs51/c8051f326.h,
6970         * device/include/mcs51/c8051f340.h: new SiLabs mcu's
6971         * device/include/mcs51/c8051f000.h,
6972         * device/include/mcs51/c8051f018.h,
6973         * device/include/mcs51/c8051f020.h: used () with __at, renamed IDLE,STOP to
6974           PCON_IDLE,PCON_STOP and added sfr16 definitions
6975
6976 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
6977
6978         * src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
6979           genGetWord): fixed bug 1409955
6980
6981 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
6982
6983         * device/include/hc08/mc68hc908gp32.h,
6984         * device/include/hc08/mc68hc908jb8.h: removed AWUL, added PTA6 & PTA7
6985
6986 2006-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
6987
6988         * src/SDCCast.c (constExprValue): return NULL if not a value
6989         * src/SDCCglue.c (printIvalArray): fixed bug 1225568
6990         * src/hc08/gen.c(genUnpackBits, genUnpackBitsImmed): fixed bug 1019480
6991         * support/regression/tests/bitfields.c: enabled signed bitfield for all
6992
6993 2006-02-13 Borut Razem <borut.razem AT siol.net>
6994
6995         * src/regression/ptrarg.c: added, fails due to bug #1430967
6996         * src/regression/Makefile: ptrarg.c added, ...
6997
6998 2006-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
6999
7000         * src/z80/gen.c (genUnpackBits): fixed bug 1019480
7001         * support/regression/tests/bitfields.c: enabled signed bitfield for z80
7002
7003 2006-02-11 Borut Razem <borut.razem AT siol.net>
7004
7005         * src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
7006           print "Processor: xxx" message to stdout only if --verbose
7007
7008 2006-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
7009
7010         * src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
7011         * support/regression/tests/bug1426356.c: added
7012         * support/regression/tests/bitfields.c: removed 2 tests
7013
7014 2006-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
7015
7016         * device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
7017         * device/include/mcs51/c8051f330.h,
7018         * device/include/mcs51/c8051f350.h: used () with __at, renamed IDLE,STOP to
7019           PCON_IDLE,PCON_STOP and added sfr16 definitions
7020         * device/lib/_divsint.c,
7021         * device/lib/_divuint.c,
7022         * device/lib/_divulong.c,
7023         * device/lib/_divulong.c: renamed a,b to x,y to avoid confusion, fixed
7024           register bank bug for small stackauto
7025
7026 2006-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
7027
7028         * support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()
7029
7030 2006-02-08 Maarten Brock <sourceforge.brock AT dse.nl>
7031
7032         * support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
7033         * all.dsp: corrected several bin paths
7034         * device/include/mcs51/c8051f120.h,
7035         * device/include/mcs51/c8051f300.h,
7036         * device/include/mcs51/c8051f310.h: used () with __at and renamed IDLE,STOP
7037           to PCON_IDLE,PCON_STOP
7038         * device/include/mcs51/c8051f320.h: see above, also added sfr16 definitions
7039         * device/lib/printf_large.c (output_float): fixed bug 1388703
7040         * support/regression/tests/bug1057979.c: added test for bug 1388703
7041
7042 2006-02-08 Raphael Neider <rneider AT web.de>
7043
7044         * src/pic/pcode.c (pciTRIS): fixed typo,
7045           (BuildFlow,LinkFlow_pCode): added (disabled) debug output,
7046           (LinkFlow): fixed handling of flows that end in a call,
7047           (ReuseReg): perform safety check earlier
7048         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed
7049             to work with flows at the beginning of a pBlock,
7050             fixes #1426557 (Symbol not previously defined),
7051           (pic14_ReMapLiveRanges): NEW, destroy and rebuild register
7052             usage information
7053           (RemoveUnusedRegisters): update register usage info
7054         * src/pic/ralloc.c (newReg): prevent duplicate registers from being
7055             created, reuse existing ones instead
7056         * src/pic/gen.c (genPcall): fixed #1424719
7057
7058 2006-02-07 Bernhard Held <bernhard AT bernhardheld.de>
7059
7060         * link/z80/lkmain.c,
7061         * link/z80/lklex.c,
7062         * link/z80/lkdata.c,
7063         * link/z80/aslink.h: fixed build on current cygwin:
7064         replaced getline() by lk_getline()
7065
7066 2006-02-01 Borut Razem <borut.razem AT siol.net>
7067
7068         * src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
7069           src/regression/add4.c, src/regression/and1.c, src/regression/and2.c,
7070           src/regression/arrays.c, src/regression/b.c, src/regression/bank1.c,
7071           src/regression/bool1.c, src/regression/bool2.c,
7072           src/regression/bool3.c, src/regression/call1.c,
7073           src/regression/compare.c, src/regression/compare10.c,
7074           src/regression/compare2.c, src/regression/compare3.c,
7075           src/regression/compare4.c, src/regression/compare5.c,
7076           src/regression/compare6.c, src/regression/compare7.c,
7077           src/regression/compare8.c, src/regression/compare9.c,
7078           src/regression/configword.c, src/regression/for.c,
7079           src/regression/inline.c, src/regression/mult1.c,
7080           src/regression/nestfor.c, src/regression/or1.c,
7081           src/regression/pointer1.c, src/regression/ptrfunc.c,
7082           src/regression/rotate1.c, src/regression/rotate2.c,
7083           src/regression/rotate3.c, src/regression/rotate4.c,
7084           src/regression/rotate5.c, src/regression/rotate6.c,
7085           src/regression/rotate7.c, src/regression/string1.c,
7086           src/regression/struct1.c, src/regression/sub.c,
7087           src/regression/sub2.c, src/regression/switch1.c,
7088           src/regression/while.c, src/regression/xor.c,
7089           src/regression/create_stc, src/regression/simulate,
7090           src/regression/rt.sh, src/regression/Makefile: reenabled Scott's PIC14
7091           regression tests
7092         * src/regression/gpsim_assert.h: added
7093
7094 2006-01-28 Bernhard Held <bernhard AT bernhardheld.de>
7095
7096         * src/ds390/gen.c (unsaveRegisters): fixed literal function pointer
7097         ((void (code *) (void)) 0) ();
7098         * as/hc08/aslex.c,
7099         * as/hc08/aslink.h,
7100         * as/hc08/asm.h,
7101         * as/hc08/asmain.c,
7102         * as/hc08/lkdata.c,
7103         * as/hc08/lklex.c,
7104         * as/hc08/lkmain.c,
7105         * as/mcs51/aslex.c,
7106         * as/mcs51/aslink.h,
7107         * as/mcs51/asm.h,
7108         * as/mcs51/asmain.c,
7109         * as/mcs51/lkdata.c,
7110         * as/mcs51/lklex.c,
7111         * as/mcs51/lkmain.c,
7112         * as/z80/aslex.c,
7113         * as/z80/asm.h,
7114         * as/z80/asmain.c: fixed build on current cygwin:
7115         replaced getline() by as_getline()
7116
7117 2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
7118
7119         * src/SDCC.y: fixed bug #716242, exchanged pointer and function
7120         declarator in the symbol chain
7121         * src/SDCCsymt.h,
7122         * src/SDCCsymt.c (processFuncPtrArgs): added, removes "(void)"
7123         parameter list for function pointers
7124         * src/SDCCast.c (decorateType): added call of processFuncPtrArgs()
7125         * support/regression/tests/bug-716242.c: added
7126
7127 2006-01-20 Bernhard Held <bernhard AT bernhardheld.de>
7128
7129         * src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array
7130         offset if possible
7131         * src/SDCCast.c (getLeftResultType): 255 fits in char, not 256
7132
7133 2006-01-18 Bernhard Held <bernhard AT bernhardheld.de>
7134
7135         * src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it
7136         inifinitely recurseable, added static
7137         * support/regression/tests/bug-1408066.c: added
7138
7139 2006-01-17 Bernhard Held <bernhard AT bernhardheld.de>
7140
7141         * src/SDCCicode.h,
7142         * src/SDCCicode.c (newiTempPreheaderLabel, newiTempLoopHeaderLabel):
7143         renamed, added possibility to create "postLoopLbl"-labels
7144         * src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to
7145         newiTempLoopHeaderLabel
7146         * src/SDCCloop.c (newInduction, newRegion, backEdges, insertIntoLoop,
7147         isNotInBlocks, addToExitsMarkDepth, createLoop, dominatedBy,
7148         addDefInExprs, assignmentsToSym, isOperandInvariant, pointerAssigned,
7149         hasNonPtrUse, loopInvariants, addressTaken, findInduction,
7150         findDefInRegion, mergeRegions, ifMerged, mergeInnerLoops): made static,
7151         (pinduction, pregion, hasIncomingDefs, findLoopEndSeq): disabled,
7152         (basicInduction): fixed bug #136564, made static,
7153         (loopInduction): changed parameter of basicInduction, made static,
7154         (addPostLoopBlock): added
7155         * src/SDCCloop.h: removed backEdges, pregion, pinduction,
7156         loopOptimizations, addressTaken, findDefInRegion, hasIncomingDefs,
7157         findLoopEndSeq
7158         * support/regression/tests/bug-136564.c: added
7159         * support/regression/ports/mcs51-xstack-auto/spec.mk: added
7160         --std-sdcc99 to LIBSDCCFLAGS
7161
7162 2006-01-16 Bernhard Held <bernhard AT bernhardheld.de>
7163
7164         * src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false
7165         while loop
7166         * support/regression/tests/bug-1406131.c: added
7167
7168 2005-12-31 Bernhard Held <bernhard AT bernhardheld.de>
7169
7170         * src/SDCCast.c (decorateType): fix promotion of unary minus
7171         * src/SDCCsymt.c (computeType): beautified
7172         * src/SDCCval.c (cheapestVal): beautified, old non-Ansi version removed,
7173         (valUnaryPM, valComplement): fix sign and promotion,
7174         (valNot): ANSI: result type is int (SDCC: unsigned char)
7175         * support/regression/tests/uminus.c: speedup by removing superflous
7176         test case 'int'
7177         * support/regression/tests/onebyte.c: added promotion and signedness
7178         tests for unary minus
7179         * support/regressions/tests/bug-477927.c: disable warning about
7180         uninitialized variables
7181         * support/regression/tests/not.c: added
7182
7183 2005-12-28 Bernhard Held <bernhard AT bernhardheld.de>
7184
7185         * device/lib/Makefile.in: added --std-sdcc99 to CFLAGS
7186         * src/mcs51/gen.c (gen51Code): show final register usage after
7187         fillGaps in asm with --i-code-in-asm
7188         * src/SDCClrange.c (sequenceiCode, setLiveFrom, setLiveTo,
7189         markLiveRanges, markAlive, findNextUseSym, findNextUse, unvisitBlocks,
7190         incUsed, rliveClear, adjustIChain): made static,
7191         (setFromRange): excluded because it's unused,
7192         (findPrevUseSym, markWholeLoop): added,
7193         (findPrevUse): rewritten; fixes bug 895992; now a complete search
7194         through all branches of predecessors enables sdcc to emit the warning
7195         W_LOCAL_NOINIT, marking of outermost loop was incomplete,
7196         (rlivePoint): made static, added parameter emitWarnings which is only
7197         true during the first run out of two,
7198         (findRecursiveSucc, findRecursivePred): removed,
7199         (computeLiveRanges): made static, added parameter emitWarnings,
7200         (dumpIcRlive): added for debugging only
7201         * src/SDCClrange.h: added boolean parameter to computeLiveRanges(),
7202         removed prototype of setFromRange()
7203         * src/SDCCopt.c (eBBlockFromiCode): added new parameter emitWarnings
7204         in call of computeLiveRanges()
7205         * support/regression/tests/bug-895992.c: added
7206         * support/regression/tests/bug-971834.c: added
7207         * support/valdiag/tests/bug-895992.c: added
7208         * support/valdiag/tests/bug-971834.c: added
7209
7210 2005-12-18 Raphael Neider <rneider AT web.de>
7211
7212         * src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
7213           (genUnpackBits): improved code for direct operands,
7214           (genPackBits): improved code for literal assignment to bitfields
7215             and for direct destination operands (no FSR indirection),
7216             prevented redundant AND, fixes #1362800,
7217           (AccLsh): added parameter to disable masking of the result
7218         * src/pic16/pcode.c (pic16_safepCodeUnlink): fixed to work with
7219           skip instructions with side-effects (like incfsz),
7220           (pic16_pCodeIsAlive): suppress verbose output unless pcode_verbose,
7221         * src/pic16/pcoderegs.c (RemoveRegsFromSet): removed annoying warning
7222         * device/lib/pic16/Makefile.common.in: added --asm=@GPASM@ to CC,
7223           fixes #1375263
7224
7225 2005-12-11 Bernhard Held <bernhard AT bernhardheld.de>
7226
7227         * src/SDCCicode.c (geniCodeAssign): fixed bug 11369874, don't use
7228         volatile variables as spill location
7229
7230 2005-12-10 Bernhard Held <bernhard AT bernhardheld.de>
7231
7232         * src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to
7233         replacing literals
7234         * support/regression/tests/bug-1376320.c: added
7235
7236 2005-12-08 Raphael Neider <rneider AT web.de>
7237
7238         * src/pic/device.c: renamed is_shared to pic14_is_shared
7239         * src/pic/gen.c (genIfx): re-enabled handling of sbits
7240         * src/pic/glue.c (emitSymbolToFile): added workaround for sbits,
7241           (is_valid_identifier): added for above workaround
7242
7243 2005-12-07 Maarten Brock <sourceforge.brock AT dse.nl>
7244
7245         * device/lib/Makefile.in: fixed to enable port-specific-objects
7246         * device/lib/ds390/i2c390.c (BitOutI2C): optimized by making bout unsigned
7247           char, thanks Hubert Sack
7248         * doc/sdccman.lyx: documented --xstack-loc,
7249           elaborated a bit more on interrupts and pitfalls,
7250           removed "setjmp/longjmp unsupported",
7251           documented some unsupported C99 features
7252         * src/SDCCmain.c (linkEdit): adapted default lib path for --stack-auto
7253         * src/SDCCpeeph.c (readRules): inserted patch 1367130 for finding missing
7254           if, thanks Hubert Sack
7255         * src/mcs51/gen.c (genEndFunction): enabled "pop psw" for regbank 0 isr
7256         * support/regression/Makefile.in: test-mcs51-stack-auto no longer needs to
7257           make make_library
7258         * support/regression/get_ticks.py: new, get cpu cycles and code size, so
7259           regression tests can report resource usage (rfe 700441)
7260         * support/regression/collate-results.py: report resource usage
7261         * support/regression/ports/ds390/spec.mk,
7262         * support/regression/ports/hc08/spec.mk,
7263         * support/regression/ports/mcs51/spec.mk,
7264         * support/regression/ports/ucz80/spec.mk: run sim output through get_ticks
7265         * support/regression/ports/ds390/uCsim.cmd,
7266         * support/regression/ports/hc08/uCsim.cmd,
7267         * support/regression/ports/mcs51/uCsim.cmd,
7268         * support/regression/ports/ucz80/uCsim.cmd: inserted "state" to report time
7269         * support/regression/ports/mcs51-stack-auto/spec.mk: no need to build the
7270           library, use the default one
7271         * support/regression/ports/mcs51-xstack-auto/spec.mk: inserted rules for
7272           building the library
7273
7274 2005-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
7275
7276         * config.dsp: added dependency on .version and configure_vc.awk
7277         * device/include/setjmp.h: updated for --stack-auto and --xstack
7278         * device/include/mcs51/at89c51snd1c.h: corrected line endings
7279         * device/include/mcs51/XC866.h: added, thanks Llewellyn van Zyl
7280         * device/lib/_setjmp.c: updated for --stack-auto and --xstack
7281         * device/lib/libsdcc.lib: added _setjmp
7282         * src/SDCCast.c (createIvalCharPtr): fixed warnings,
7283           (decorateType): fixed bug 1372851,
7284           (optimizeGetHbit): fixed warning
7285         * src/SDCCglue.c (printIvalChar, printIvalArray): adapted for flexible
7286           array initialisation
7287         * support/regression/tests/bug1057979.c: added test for bug 1358192
7288         * support/regression/tests/setjmp.c: added, test for setjmp/longjmp
7289
7290 2005-12-03 Borut Razem <borut.razem AT siol.net>
7291
7292         * support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
7293           command since the NSIS was upgraded to version 2.11 on CF x86-linux2
7294
7295 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
7296
7297         * src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr,
7298         createIval): implement symbol independant "flexible array member",
7299         (createIvalCharPtr): implemented flexible array initialisation with a
7300         string
7301         * src/SDCCsymt.c (copyStruct): removed,
7302         (getSize): fixed misleading comment,
7303         (getAllocSize): removed, the additional allocation size is now in
7304         sym->flexArrayLength,
7305         (checkStructFlexArray): new, syntax checks for flexible array members,
7306         (compStructSize): added syntax checks for "flexible array members"
7307         (copyStruct): removed,
7308         (copyLinkChain): removed inefficient fix for bug 770487
7309         * src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
7310         * src/SDCCsymt.h: added structdef.b_flexArrayMember and
7311         symbol->flexArrayLength
7312         * src/SDCCerr.c,
7313         * src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY,
7314         E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
7315         * support/regression/tests/structflexarray.c: added
7316         * support/valdiag/tests/structflexiblearray.c: added
7317
7318 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
7319
7320         * src/SDCCast.c (decorateType): fixed bug 1368489
7321         * support/Util/SDCCerr.c,
7322         * support/Util/SDCCerr.h: added warning W_CMP_SU_CHAR
7323
7324 2005-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7325
7326         * device/include/mcs51/at89c51snd1c.h: added file submitted by
7327           Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001
7328
7329 2005-11-27 Borut Razem <borut.razem AT siol.net>
7330
7331         * support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
7332           support/cpp2/mkdeps.h: added command line option
7333           -obj-ext=<extension> to SDCPP to define object file externion, used
7334           for generation of make dependencies (-M)
7335         * src/SDCCmain.c: pass -obj-ext=<extension> to SDCPP
7336
7337 2005-11-26 Borut Razem <borut.razem AT siol.net>
7338
7339         * support/scripts/sdcc.nsi: added small-stack-auto libraries,
7340           added missing device/lib/mcs51/crt*.asm, pic and pic16 sources,
7341           added pic and pic16 libraries
7342
7343 2005-11-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7344
7345         * device/include/float.h: Corrected typo in prototype of __fsgt
7346
7347 2005-11-25 Borut Razem <borut.razem AT siol.net>
7348
7349         * sdcc/device/lib/Makefile.in, sdcc/device/lib/incl.mk:
7350           added creation of model-mcs51-stack-auto libraries
7351
7352 2005-11-24 Bernhard Held <bernhard AT bernhardheld.de>
7353
7354         * src/SDCCsymt.c (copyLinkChain): fixed bug 770487, copy structdef
7355         and fields-list too
7356         * src/SDCCast.c (createIvalArray): removed obsolete comment
7357
7358 2005-11-24 Borut Razem <borut.razem AT siol.net>
7359
7360         * sdcc/device/lib/Makefile.in: remove all unnecessary files, 2nd try...,
7361           added missing device/lib/mcs51/crt*.asm sources
7362
7363 2005-11-23 Bernhard Held <bernhard AT bernhardheld.de>
7364
7365         * src/SDCCast.c (createIvalCharPtr): fixed bug 1348271
7366
7367 2005-11-22 Maarten Brock <sourceforge.brock AT dse.nl>
7368
7369         * device/lib/_fs2schar.c,
7370         * device/lib/_fs2sint.c,
7371         * device/lib/_fs2slong.c: optimized inline asm
7372
7373 2005-11-21 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7374
7375         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
7376           Better handling of floats between -1.0 and 0.0.
7377
7378 2005-11-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7379
7380         * src/mcs51/peeph.def: added missing "if"s as noted by Hubert Sack.
7381           (the missing "if"s prohibited removal of redundant labels)
7382
7383 2005-11-19 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7384
7385         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
7386           Properly convert floats between -1.0 and 0.0 to long, int, and char
7387           types (max integer value of negative floats tends to zero).
7388         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
7389           Removed changes made so to work properly with floats between
7390           -1.0 and 0.0, as the problem is fixed in _fs2slong.c, _fs2sint.c,
7391           and _fs2char.c
7392
7393 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
7394
7395         * src/SDCCcse.c (ReplaceOpWithCheaperOp): minor fix for debugging only
7396         * src/mcs51/gen.c (genUnpackBits): better code and a fix,
7397         (genCast) cosmetic change
7398         * src/ds390/gen.c (genUnpackBits, ): ported from mcs51
7399         * src/ds390/ralloc.c (packRegsForAssign): ported fix for bitfields
7400         from mcs51
7401         * support/regression/tests/bitfields (testSignedBitfields): added
7402
7403 2005-11-18 Borut Razem <borut.razem AT siol.net>
7404
7405         * sdcc/device/lib/Makefile.in: remove all unnecessary files
7406         * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
7407           introduced SILENT option to make building of pic16 libraries less
7408
7409 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7410
7411         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
7412           Now they work properly with floats between -1.0 and 0.0
7413         * device/lib/printf_large.c: Removed temporary patch for bug 1358192
7414
7415 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
7416
7417         * src/SDCCicode.c (printOperand): added missing else
7418
7419 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
7420
7421         * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
7422         reformatted for better readability
7423         * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
7424         signed bitfields
7425
7426 2005-11-17 Borut Razem <borut.razem AT siol.net>
7427
7428         * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
7429           introduced SILENT option to make building of pic16 libraries less
7430           verbose - used for nightly snapshot build
7431         * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
7432           available on Win32 platforms.
7433         * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
7434           medium, large, pic and pic16
7435
7436 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7437
7438         * device/lib/printf_large.c: Temporary patch for bug 1358192:
7439           printf("%f"...) sets fraction to zero.
7440
7441 2005-11-16 Raphael Neider <rneider AT web.de>
7442
7443         * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
7444           fixes #1357221
7445         * src/pic/gen.c (genIfx): implemented for CARRY bit
7446         * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
7447           to generic pointers, fixes #1357332,
7448           (pic16_movLit2f): NEW,
7449           (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
7450
7451 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
7452
7453         * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
7454
7455 2005-11-11 Raphael Neider <rneider AT web.de>
7456
7457         * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
7458         * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
7459           compute pointer's type from operand,
7460           (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
7461           improved single bit reads, fixes bug #1353379
7462
7463 2005-11-09 Borut Razem <borut.razem AT siol.net>
7464
7465         * support/scripts/sdcc.nsi: added lib/pic to the package
7466
7467 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
7468
7469         * src/SDCCval.c (valUnaryPM): fixed bug 1350699
7470
7471 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
7472
7473         * support/regression/tests/bug1348008.c: added
7474         * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
7475         * support/regression/tests/bug1337835.c: updated comment
7476
7477 2005-11-06 Borut Razem <borut.razem AT siol.net>
7478
7479         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
7480           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
7481           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
7482           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
7483           sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
7484           dynamic construction of cl_error_class and derivates - 2.nd try
7485
7486 2005-11-05 Borut Razem <borut.razem AT siol.net>
7487
7488         * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
7489           bug, which caused Bus Errors on sparc solaris
7490
7491 2005-11-04 Borut Razem <borut.razem AT siol.net>
7492
7493         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
7494           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
7495           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
7496           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
7497           sim/ucsim/cmd.src/cmdconf.cc: dynamic construction of cl_error_class
7498           and derivates to resolve the initialization problem on OSX
7499
7500 2005-11-02 Borut Razem <borut.razem AT siol.net>
7501
7502         * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
7503           corrected typo - #include <winsock2.h>
7504
7505 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
7506
7507         * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
7508           (_asxxxx_mapping): added org directive for future enhancements
7509
7510 2005-11-01 Borut Razem <borut.razem AT siol.net>
7511
7512         * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
7513           enabled sockets on WIN32
7514         * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
7515
7516 2005-10-31 Borut Razem <borut.razem AT siol.net>
7517
7518         * support/regression/generate-cases.py: escape backslashes in {testcase}:
7519           WIN32 backslash path delimiters should be escaped when used in C strings
7520         * support/regression/tests/bitfields.c: exclude failing assertions for
7521           __CYGWIN32__ and __MINGW32__ hosts
7522
7523 2005-10-30 Borut Razem <borut.razem AT siol.net>
7524
7525         * src/SDCCutil.c: corrected double comparison typo
7526
7527 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
7528
7529         * device/lib/medium/Makefile: added for new memory model medium
7530         * device/include/asm/mcs51/features.h: updated for medium/pdata
7531         * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
7532           added Multiply & Accumulate sbit's and MAC0_PAGE define
7533         * device/include/mcs51/c8051f300.h: added sfr16 definitions
7534         * device/include/mcs51/c8051f310.h: added sfr16 definitions
7535         * device/lib/_mullong.c: update for medium model
7536         * device/lib/incl.mk: added medium model
7537         * doc/sdccman.lyx: documented medium model
7538         * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
7539         * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
7540         * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
7541         * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
7542           (allocParms): set SCLS and OCLS to pdata for medium model
7543         * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
7544           for pdata,
7545           (powof2): return <0 if not power of 2
7546         * src/avr/gen.c (genBitWise): use updated powof2
7547         * src/mcs51/gen.c (genMinusDec): use acc if necessary,
7548           (shiftR2Left2Result): small optimization in setup, save acc when storing,
7549           (shiftLLeftOrResult): use B if necessary
7550         * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
7551         * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
7552         * src/pic/main.c (_pic14_do_link): made void parameter list explicit
7553         * support/regression/Makefile.in: added test-mcs51-medium
7554         * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
7555
7556 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
7557
7558         * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
7559         specifier unsigned
7560         * device/lib/time.c (mktime): fixed bug 1334315
7561
7562 2005-10-28 Raphael Neider <rneider AT web.de>
7563
7564         * device/include/pic/p16f_common.inc: added common declarations
7565         * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
7566
7567 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
7568
7569         * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
7570           (aopPutUsesAcc): added to predict accumulator use,
7571           (assignResultValue): save acc if necessary,
7572           (genMinusDec): store result if indirectly addressed,
7573           (genDivOneByte):  save acc if necessary,
7574           (movLeft2Result): bugfix if left already in acc,
7575           (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
7576             attention to accumulator use (esp. pdata),
7577           (genReceive): receive pdata correctly
7578         * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
7579         * src/SDCCicode.h: added isOperandInPagedSpace prototype
7580
7581 2005-10-27 Raphael Neider <rneider AT web.de>
7582
7583         * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
7584
7585 2005-10-27 Raphael Neider <rneider AT web.de>
7586
7587         * .version: changed version to 2.5.4
7588         * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
7589         * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
7590           (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
7591             arithmetics support routines
7592         * device/lib/pic/Makefile.rules: have assembler sources preprocessed
7593         * device/lib/Makefile.in: also create installdir for pic
7594
7595         * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
7596           pic14 port as well
7597         * src/pic/device.c (dump_sfr): rewritten to delegate register
7598           placement to the linker (use `extern sym' rather than sym EQU addr),
7599           (validAddress): fixed to check last specified address
7600         * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
7601           (popGetLit): truncate literal value to 8 bit,
7602           (popGet): moved assert to more appropriate place
7603           (popGetExternal): create pCode operand from and mark the according
7604             symbol as being `extern'
7605           (popGetAddr): added sanity check on immediate's offset, provide
7606             GPOINTER tag on demand
7607           (aopPut): fixed for immediates,
7608           (mov2w_op): move operand's address or contents to WREG (depending on
7609             operand type), safer variant of mov2w,
7610           (movwf,call_libraryfunc): NEW, handy abbreviations,
7611           (get_argument_pcop,get_return_val_pcop,pass_argument,
7612           get_returnvalue): interface for accessing function parameters and
7613             return values,
7614           (assignResultValuei,genRet): use new parameter/return value interface
7615           (pic14_getDataSize): back to old version handling generic pointers,
7616           (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
7617             provided implementation and/or fixed old one,
7618           (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
7619             calls, removed legacy 8051 reference code
7620           (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
7621           (loadSignToC): NEW, move the operands sign bit to CARRY,
7622           (genGenericShift): NEW, replaces genLeftShift, genRightShift and
7623             genRightShiftSigned, accepts negative shift counts,
7624           (setup_fsr): load FSR and adjust IRP (indirect memory access),
7625           (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
7626             generic pointers, __data pointers and __code pointers,
7627           (genUnpackBits,genPackBits): rewritten to work with generic pointers
7628             and signed bitfields, limit bitfields to 8 bit,
7629           (genDataPointerGet): fixed number of bytes read,
7630           (genGenPointerGet,genConstPointerGet): fixed bitfield access,
7631           (genPointerGet,genPointerSet): fixed handling of __code pointers,
7632             pointers to constant data are no longer assumed to point to __code
7633             space, removed invalid pointer types,
7634           (bitpatternFromVal): retrieve the PICs representation of an integer
7635             or float literal,
7636           (genDataPointerSet): fixed assigning to po_immediate operands,
7637           (genGenPointerSet): implemented as library call,
7638           (genIfx): fixed incorrect condition,
7639           (genAddrOf): limit generic pointers' addresses to 2 bytes,
7640             provide GPOINTER tag according to destination's storage class,
7641           (genCast): added code to handle casting to generic pointers, added
7642             sign-/zero extension of the result
7643           (aop_isLitLike,op_isLitLike): fixed handling of immediates
7644         * src/pic/gen.h: added macros to access IRP bit in STATUS register
7645         * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
7646           extend the result
7647         * src/pic/glue.c (is_shared_address,is_shared): check whether a given
7648           address/register resides in the shared banks
7649           (emitSymbolToFile): improved to handle global and `pinned' symbols,
7650             put all variables into separate sections (have the linker arrange
7651             them)
7652           (picglue): put init code and interrupt handlers in separate sections
7653         * src/pic/main.c: added port specific options table, modified to PORT
7654           structure to make GPOINTERs 3 byte, added pic14_options
7655           (_pic14_do_link): private linking routine (update paths to libraries,
7656             add libsdcc.lib by default)
7657         * src/pic/main.h: declare pic14_options
7658         * src/pic/pcode.c: fixed instructions i/o relations,
7659           (RegCond): reverted to correct version,
7660           (newpCodeOpLit): truncate literals to 8 bit,
7661           (genericPrint): added debug output,
7662           (getRegFromInstruction): fixed for various operand types, simplified
7663           (BuildFlow): fixed broken handling of isntructions with labels
7664           (LinkFlow): start at last instruction in flow (skip trailing comments),
7665             pass the flow on to the next instruction after CALL
7666           (pCodeReplace): NEW, replace a pCode and move meta data to the new one
7667           (insertPCodeInstruction): fixed inserting after a skip instruction,
7668           (DoBankSelect): fixed for labeled instructions
7669           (OptimizepBlock): honor --nopeep switch
7670           (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
7671         * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
7672         * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
7673           (pCodeOptime2pCodes): allow disabling this optimization via
7674             --no-pcode-opt due seldomly occuring bugs, fixed some conditions
7675             but is still buggy), started implementation of a dataflow based
7676             pCode optimization (CSE + dead code elimination)
7677           (pCodeRegMapLiveRangesInFlow): removed bogus inCond
7678         * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
7679           names are independant of the stack location and therefore portable across
7680           devices
7681
7682 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
7683
7684         * src/mcs51/ralloc.c (bitType): added to detect bit variables,
7685           (selectSpil): fixed bug 1337835 by not spilling bit variables
7686         * support/regression/tests/bug1337835.c: added test for this bug
7687         * src/mcs51/peeph.def: restart after rule 3.c,
7688           addded rules 263.x to optimize loading constants
7689
7690 2005-10-26 Raphael Neider <rneider AT web.de>
7691
7692         * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
7693         * src/pic16/gen.c (genUnpackBits): support signed bitfields,
7694           (genAssign): emit warning when casting literals to generic pointer
7695             type, also applies when taking the address of a fixed variable,
7696           (genCast): improved casting to generic pointers
7697         * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
7698           extern variables, added verbose error message
7699         * device/include/pic16/{string.h,errno.h}: added #pragma library c
7700
7701 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
7702
7703         * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
7704         carry must be complemented too
7705         * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
7706         could be emitted by genMinus
7707         * src/SDCCval.c (constVal): fixed bug 1305065
7708
7709 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
7710
7711         * src/SDCCast.c (addCast): added promotion for bit variables
7712         (decorateType): emit W_COMPLEMENT before the problem vanishes behind
7713         promotion casts + optimisation
7714         (optimizeGetWord): fix warning 'i' might be used uninitialized
7715         * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
7716         * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
7717
7718 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
7719
7720         * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
7721         all chars are promoted to int; promotion should be handled in SDCCast.c
7722
7723 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7724
7725         * device/lib/_strcmp.c: Fixed bug 1326457
7726
7727 2005-10-11 Raphael Neider <rneider AT web.de>
7728
7729         * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
7730         * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
7731
7732 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
7733
7734         * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
7735         * support/regression/tests/sfr16.c: added test for the sfr32 bug
7736
7737 2005-10-04 Raphael Neider <rneider AT web.de>
7738
7739         * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
7740           device/lib/pic16/pics.all: added pic18f1320
7741         * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
7742
7743 2005-09-30 Raphael Neider <rneider AT web.de>
7744
7745         * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
7746         * src/pic16/devices.inc: NEW, provides device descriptions
7747         * src/pic16/gen.c (genInline): fixed handling of ';'-comments
7748
7749 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
7750
7751         * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
7752           GETHBIT
7753
7754 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
7755
7756         * doc/sdccman.lyx: updated Highest Order Bit documentation,
7757           documented Any Order Bit, Higher Order Byte and Higher Order Word
7758         * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
7759         * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
7760           (optimizeGetAbit): new, to get any bit, not only the high bit,
7761           (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
7762           (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
7763           (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
7764           (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
7765             RIGHT_OP: also try GETBYTE, GETWORD optimization,
7766             GETABIT, GETBYTE, GETWORD: decorate them,
7767           (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
7768           (ast_print): added GETABIT, GETBYTE, GETWORD
7769         * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
7770         * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
7771           (geniCodeBinary): new generic binary icode,
7772           (ast2iCode): added GETABIT, GETBYTE, GETWORD
7773         * src/port.h: updated comment for PORT.hasExtBitOp
7774         * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
7775           (genGetByte): new, to get a single byte,
7776           (genGetWord): new, to get a word from a long,
7777           (gen51Code): added GETABIT, GETBYTE, GETWORD
7778         * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
7779
7780 2005-09-23 Raphael Neider <rneider AT web.de>
7781
7782         * configure.in, configure: have device/lib/pic configured
7783         * device/lib/Makefile.in: added model-pic14
7784         * device/lib/clean.mk: added pic/ to clean rule
7785         * device/lib/pic: added rudimentary pic14 library providing support
7786           functions for multiplication/division/generic pointer access
7787         * src/SDCCopt.c (convilong): mark support functions as extern
7788           for pic14 port as well
7789         * src/pic/gen.c (genMult): added assertions,
7790           (genpic14Code): emit warning on unhandled iCodes
7791         * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
7792         * src/pic/pcode.c (pCodeOpCopy),
7793         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
7794           pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
7795           SFR_REGISTER}), made safe for future extensions
7796         * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
7797           instructions even if preceeded by SKIP instructions (also remove
7798           them); removed unused code
7799         * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
7800           prevents leaving parts of the structure uninitialized after copying
7801
7802 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
7803
7804         * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
7805           ago by me
7806         * support/regression/tests/addsub.c: added test for the bug
7807
7808 2005-09-21 Raphael Neider <rneider AT web.de>
7809
7810         * device/include/pic16/pic18f1220.h,
7811           device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
7812         * device/lib/pic16/Makefile.rules: added missing opening paren
7813         * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
7814           are provided in genutils.c,
7815           (genUminusFloat,genUminus,genCmpEq): added asserts on different
7816           operand/result sizes,
7817           (genCmp): assert on NULL pointers first, then check deref'ed values
7818         * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
7819           result size
7820
7821 2005-09-18 Raphael Neider <rneider AT web.de>
7822
7823         * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
7824           as these are now unused,
7825           (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
7826         * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
7827           local, avoids uninitialized pointer dereference on r->name
7828         * src/pic16/ralloc.c (newReg): fixed indentation
7829
7830 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
7831
7832         * src/SDCCval.c (constVal): fixed bug 730366
7833         * support/Util/SDCCerr.c,
7834         * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
7835
7836 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
7837
7838         * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
7839
7840 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
7841
7842         * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
7843
7844 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
7845
7846         * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
7847           (hex2dec): made hex_digit unsigned char, removed ascii dependance
7848         * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
7849           (hex2dec): made hex_digit unsigned char, removed ascii dependance
7850         * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
7851         * packihx/packihx.c (hexDigit): made c unsigned char
7852         * as/mcs51/lklibr.c (fndsym),
7853         * link/z80/lkgb.c (gb),
7854         * link/z80/lklibr.c (fndsym),
7855         * link/z80/lkrloc.c (relr),
7856         * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
7857         * src/SDCC.lex (checkCurrFile, process_pragma),
7858         * src/SDCCglue.c (spacesToUnderscores),
7859         * src/SDCCmain.c (setParseWithComma, processFile),
7860         * src/asm.c (tvsprintf, printCLine),
7861         * src/avr/gen.c (emitcode, aopPut),
7862         * src/ds390/gen.c (emitcode),
7863         * src/hc08/gen.c (emitcode, emitinline),
7864         * src/mcs51/gen.c (emitcode, genInline),
7865         * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
7866           tokenizeLineNode),
7867         * src/pic/ralloc.c (debugLog),
7868         * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
7869           tokenizeLineNode),
7870         * src/pic16/ralloc.c (debugLog),
7871         * src/z80/main.c (_process_pragma):
7872            made all ctype.h function calls safe
7873         * src/SDCCopt.c: include math.h for fabs
7874         * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
7875           and used them throughout the code to make ctype.h function calls safe
7876         * src/ds390/main.c (asmLineNodeFromLineNode),
7877         * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
7878         * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
7879            unsigned char*
7880         * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
7881           (newpCodeAsmDir): made ctype.h function calls safe
7882         * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
7883           pic16_emitcode):  made lbp unsigned char*
7884         * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
7885           (pic16_newpCodeAsmDir): made ctype.h function calls safe
7886         * src/xa51/gen.c (emitcode),
7887         * src/z80/gen.c (_emit2): made lbp unsigned char*
7888         * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
7889            char*
7890
7891 2005-09-05 Raphael Neider <rneider AT web.de>
7892
7893         * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
7894           access bank splitpoint
7895
7896 2005-09-05 Raphael Neider <rneider AT web.de>
7897
7898         * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
7899
7900 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
7901
7902         * .version: changed to version 2.5.3
7903         * doc/sdccman.lyx: changed version to 2.5.3,
7904           documented --codeseg and --constseg and pragma codeseg and constseg,
7905           documented bit parameters (reentrant) and bit returning
7906         * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
7907            currFunc->recvSize, but is this ok for all ports?
7908           (ast2iCode): result of ~ on unsigned char must be cast to int for
7909            bool to work
7910         * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
7911           function pointers in bit space
7912         * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
7913           (processFuncArgs): call port.reg_parm() with reentrancy info
7914         * src/port.h,
7915         * src/avr/main.c,
7916         * src/ds390/main.c,
7917         * src/hc08/main.c,
7918         * src/pic/main.c,
7919         * src/pic16/main.c,
7920         * src/xa51/main.c,
7921         * src/z80/main.c: port.reg_parm prototype extended with
7922           "bool reentrant" parameter
7923         * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
7924           options.stackAuto for allocating bit register parameters
7925         * src/mcs51/gen.c (genNot): optimized complementing direct bit,
7926           (genSend): set BitBankUsed if it is,
7927           (selectRegBank): factored out of genCall for use in genPcall,
7928           (genCall): removed redundant dtype assignmen, use selectRegBank,
7929           (genPcall): handle returning in Carry properly, save in F0 if needed,
7930           (genReceive): handle bit register parameters
7931         * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
7932           (mcs51_assignRegisters): enable bit registers for all reentrant
7933            functions and don't set BitBankUsed unconditionally
7934         * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
7935         * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
7936         * support/regression/tests/funptrs.c: added tests for BOOL and for return
7937
7938 2005-08-27 Borut Razem <borut.razem AT siol.net>
7939
7940         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
7941         ppc-osx (Darwin) does not support -u option. It seems that it is
7942         supported only on Linux - GNU cp
7943
7944 2005-08-25 Borut Razem <borut.razem AT siol.net>
7945
7946         * sim/ucsim/gui.src/serio.src/Makefile.in,
7947           sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
7948           sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
7949           sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
7950           install and strip, since the strip at /usr/ccs/bin should be used
7951           on solaris
7952
7953 2005-08-24 Borut Razem <borut.razem AT siol.net>
7954
7955         * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
7956
7957 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
7958
7959         * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
7960         ffffffffu
7961
7962 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
7963
7964         * as/mcs51/aslink.h: completed lkrloc.c prototypes
7965         * as/mcs51/lkmain.c (link_main): fixed warning
7966         * device/include/stdbool.h: ds390 has no advanced bit support yet
7967         * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
7968         * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
7969         * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
7970           and updated their macros
7971         * src/SDCCval.c (constVal): updated comment for renamed b_long
7972
7973 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
7974
7975         * as/mcs51/asdata.c: changed ctype['['] to BINOP
7976         * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
7977           (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
7978           (oprio): set priority for '['
7979         * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
7980            and adb_24_bit
7981         * as/mcs51/asm.h: added defines R_BIT and S_BIT
7982         * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
7983         * as/mcs51/lkdata.c: changed ctype['['] to BINOP
7984         * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
7985           added overlayable BIT_BANK area
7986         * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
7987           (summary2): explain 'T' in legenda
7988         * as/mcs51/lkrloc.c: replaced old K&R style,
7989           (relr): added R_BIT processing,
7990           (errmsg): added "Bit-addressable relocation error",
7991           (adb_bit): added for converting from byte- to bit-addressable space,
7992           (adb_24_bit): added for converting from byte- to bit-addressable space
7993         * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
7994            used in reentrant functions now even as return value
7995         * device/lib/_gptrput.c (_gptrput): removed obsolete code
7996         * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
7997           (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
7998         * src/SDCCglobl.h: added indicator BitBankUsed
7999         * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
8000            the bit registers b0-b7
8001         * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
8002           (geniCodeCast): fixed bug 1263853,
8003           (geniCodeLogicAndOr): put result in bool or char,
8004           (geniCodeReceive): added parameter func for accessing the return type,
8005           (geniCodeFunctionBody): pass func to geniCodeReceive
8006         * src/SDCCmain.c: added indicator BitBankUsed
8007         * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
8008         * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
8009           (checkSClass): don't put automatic bool/bit on stack,
8010           (checkFunction): removed check on function cannot return bit
8011         * src/SDCCsymt.h: added newBoolLink prototype
8012         * src/mcs51/gen.c (rb1regs): added bit registers,
8013           (movc): created for assigning to carry,
8014           (pushReg, popReg): created for pushing registers,
8015           (sameRegs): check both AOP_REG and AOP_CRY types,
8016           (aopOp): handle bit registers,
8017           (aopPut): optimization no self-assign,
8018           (saveRegisters): push reg->base (bits) only once for bit registers,
8019            and use pushReg,
8020           (unsaveRegisters): pop reg->base only once and use popReg,
8021           (assignResultValue): added parameter func and return in carry for bits,
8022           (genIpush): optimization no reload in A if not changed,
8023           (genSend): bit parameters in reentrant functions are passed in bit
8024            registers by first assigning to bits in B, then save registers and
8025            copy B to bits,
8026           (genCall): handle returning in Carry properly, save it in F0 if needed,
8027           (genPcall): updated assignResultValue call, this is not safe yet for bit
8028            returning function !!!
8029           (genFunction): don't generate equ's for bit registers and use pushReg,
8030           (genEndFunction): take care of bit returning functions and use popReg,
8031           (genRet): return bit in Carry,
8032           (genIfx): optimize bit registers and other directly addressable bits,
8033           (genReceive): updated assignResultValue call
8034         * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
8035           (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
8036            registers when using stack-auto
8037         * src/mcs51/ralloc.c (_G): added allBitregs,
8038           (regs8051): added the bit registers,
8039           (createStackSpil): use macro IS_BIT,
8040           (getRegBit): added to allocate a bit register, else spill,
8041           (getRegBitNoSpil): added to allocate a bit register, else a gpr,
8042           (updateRegUsage): factored out to ease stepping while debugging,
8043           (serialRegAssign): use updateRegUsage, only spill bits if necessary,
8044            also allocate bit registers,
8045           (fillGaps): handle bit registers,
8046           (findAllBitregs): added to create bit vector with all bit registers,
8047           (mcs51_allBitregs): returns this bit vector,
8048           (mcs51_assignRegisters): when using stack-auto use bit registers for
8049            passing parameters and creating local variables
8050         * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
8051
8052 2005-08-22 Borut Razem <borut.razem AT siol.net>
8053
8054         * device/lib/Makefile.in: replaced find option -or with -o
8055           to make it run on solaris
8056
8057 2005-08-22 Raphael Neider <rneider AT web.de>
8058
8059         * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
8060           fixes #1265442 (crash on Solaris)
8061
8062 2005-08-20 Borut Razem <borut.razem AT siol.net>
8063
8064         * configure, configure.in: added tests for libsocket and libnsl libraries,
8065           requred by sdcdb on sparc-solaris; generate support/regression/Makefile
8066           from support/regression/Makefile.in
8067         * support/regression/Makefile.in: added
8068         * device/lib/pic16/Makefile.common.in: force make to use bash shell
8069         * sim/ucsim/libtool: regenerated on sparc-solaris
8070         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
8071           sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
8072           sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
8073           -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
8074           sparc-solaris, which doesn't use GNU ld linker
8075         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
8076         * as/Makefile: find on sparc-solaris does not support -maxdepth option
8077
8078 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
8079
8080         * src/mcs51/peeph.def: updated comments
8081
8082 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8083
8084         * device/lib/_gptrget.c,
8085         * device/lib/_gptrput.c: slightly shorter
8086         * doc/sdccman.lyx: incremented version
8087         * src/mcs51/peeph.def: moved peephole comments to the line of first
8088           change to better keep line correlation, reanimated 186.e
8089         * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
8090
8091 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
8092
8093         * src/pic/pcode.c : Pasted ".line" assembly directives patch from
8094           David Saxton with quotes around file name.
8095
8096 2005-08-15 Borut Razem <borut.razem AT siol.net>
8097
8098         * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
8099           support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
8100           support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
8101           make tests run on x86_64 platform
8102
8103 2005-08-13 Raphael Neider <rneider AT web.de>
8104
8105         * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
8106           as it might be executed DURING a build (parallel make is wonderful)
8107
8108 2005-08-13 Raphael Neider <rneider AT web.de>
8109
8110         * device/lib/Makefile.in (port-specific-objects-pic16):
8111           revert to cp $(PORT)/bin/*.* $(PORTDIR)
8112         * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
8113           dependency
8114         * device/lib/pic16/Makefile.rules: build subdirs before creating
8115           the library, removed builddir rule, create $(builddir) early in
8116           recurse rule, use empty recurse rule for leaf directories
8117         * device/lib/pic16/Makefile.subdir: added phony targets, ignore
8118           mkdir errors (race condition), removed duplicate suffix "hex"
8119           from clean rules
8120         * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
8121         * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
8122           prevents mkdir -p from aborting on Alpha
8123
8124 2005-08-12 Raphael Neider <rneider AT web.de>
8125
8126         * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
8127           db-statements in order to allow for arrays of pointers in code
8128           sections to be placed without interspersed 0-padding, fixes
8129           bug #1256215
8130         * (emitStatistics): fixed division by zero for pic18f1220
8131         * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
8132           unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
8133         * (pic16_emitDS): respect DB_ITEMS_PER_LINE
8134         * (pic16_pCodeConstString): keep track of already emitted string
8135           literals to prevent "duplicate definitions of symbol _str_NR"
8136         * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
8137           debug message
8138         * device/lib/Makefile.in: ignore failing PIC16 library builds
8139         * device/lib/pic16/Makefile: do not build if gputils are missing
8140         * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
8141
8142 2005-08-10 Raphael Neider <rneider AT web.de>
8143
8144         * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
8145           my last commit)
8146
8147 2005-08-10 Raphael Neider <rneider AT web.de>
8148
8149         * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
8150           Rokas' patch to add the new fixed point type "__fixed16x16"
8151         * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
8152           functions for __fixed16x16 arithmetics
8153         * device/lib/pic16: reimplemented the build system to support
8154           a separate build directory, better handling of libio (create
8155           the library in a separate subdir for each architecture) and
8156           easier configuration (centralized in Makefile.common)
8157
8158 2005-08-07 Raphael Neider <rneider AT web.de>
8159
8160         * src/pic16/gen.c (genrshTwo): fixed sign extension
8161         * src/pic16/device.c: added pic18f2320, 4220 and 4320
8162         * device/include/pic16/pic18f2220.h: changed some bit definitions,
8163           added T0CONbits
8164         * device/include/pic16/pic18f4220.h: NEW, header for
8165           pic18f4220 and pic18f4320
8166         * device/include/pic16/pic18fregs.h: added new devices,
8167           embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
8168         * device/include/pic16/signal.h: resolved name clashes
8169           on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
8170           to also allow testing for interrupt enable bits, added
8171           comments on how to use the macros
8172         * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
8173         * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
8174           register definitions for the devices
8175         * device/lib/pic16/pics.all: added new devices
8176         * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
8177           allocated memory
8178         * device/lib/pic16/libc/stdlib/memfree: do not count
8179           the block header as free memory
8180         * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
8181           simplified and added missing end-of-blocklist-marker
8182           (reported by Peter Onion, fixes #1252814)
8183         * (_mergeHeapBlock): fixed loop condition
8184         * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
8185           len==0, restructured code
8186         * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
8187           up a bit, reduced bitfield accesses, prevent endless loops
8188           in case of heap corruption
8189         * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
8190           "unreferenced arguments/must return a value" warnings
8191         * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
8192           replaced BAUDREG with SPBRG
8193         * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
8194           device/lib/pic16/debug/gstack/gstack.c: replaced
8195           _naked, _asm, _endasm with __naked, __asm, __endasm
8196
8197 2005-08-05 Raphael Neider <rneider AT web.de>
8198
8199         * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
8200           AOP_PCODE operands, fixes multibyte union-bitfield-accesses
8201
8202 2005-08-05 Borut Razem <borut.razem AT siol.net>
8203
8204         * device/lib/Makefile.in: added missing ';'
8205         * configure: removed ^M characters
8206
8207 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8208
8209         * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
8210           device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
8211           License
8212
8213 2005-08-04 Borut Razem <borut.razem AT siol.net>
8214
8215         * configure.in: pic16 libraries build 2nd try - enable running
8216           configure in device/lib/pic16
8217         * configure: regenerated from configure.in
8218         * device/lib/Makefile.in: create $(PORT)/bin directory
8219
8220 2005-08-03 Raphael Neider <rneider AT web.de>
8221
8222         * src/pic16/gen.c (pic16_derefPtr): NEW, single place
8223           to get/set values via pointers
8224         * (genUnpackBits,genPackBits): changed detection of
8225           ptr->bitfield vs. sym.bitfield, fixed access via generic
8226           pointers, removed dead (wrong) code for multibyte bitfields
8227         * (genNearPointerGet, genGenPointerGet): removed useless code,
8228           fixed bitfield detection, fixes #1250594
8229         * (genNearPointerSet): removed useless code
8230         * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
8231           and introduced macro pic16_emitpcode that conditionally emits
8232           the origin of the following pCode (useful for debugging SDCC)
8233         * src/pic16/pcode.c: changed (and disabled) some debug outputs
8234         * (createDefmap): fixed handling of LFSR for --optimize-df
8235
8236 2005-08-02 Borut Razem <borut.razem AT siol.net>
8237
8238         * device/lib/Makefile.in: pic16 libraries build enabled since
8239           gputils-0.13.2 are now localy installed at sourceforge's compile farm
8240
8241 2005-08-02 Raphael Neider <rneider AT web.de>
8242
8243         * src/pic16/gen.c (genPackBits): removed deprecated warning
8244         * (genGenPointerSet): fixed bitfield detection
8245
8246 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8247
8248         * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
8249
8250 2005-07-31 Raphael Neider <rneider AT web.de>
8251
8252         * device/lib/pic16/libdev/pic18f458.c,
8253           device/include/pic16/pic18f458.h: added missing T0CONbits
8254
8255 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
8256
8257         * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
8258
8259 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
8260
8261         * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
8262
8263 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8264
8265         * device/include/mcs51/at89c51ed2.h: added.
8266
8267 2005-07-23 Raphael Neider <rneider AT web.de>
8268
8269         * src/pic/gen.h: added emitpcode macro for debugging
8270         * src/pic/gen.c (emitpcode): renamed to emitpcode_real
8271           and replace by macro adding debug information on demand
8272         * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
8273         * (gencjne): tried to fix; replaced with correct (slower) code
8274         * (gen{Unp,P}ackBits): fixed single bit access
8275         * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
8276         * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
8277           previous instruction
8278         * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
8279           register has to be handled with care (forbidding movement
8280           of assignments/uses, removing assignments completely, ...)
8281         * (pCodeOptime2pCodes): make use of regIsSpecial
8282         * added lots of debugging output (commented out)
8283         * src/pic/rallloc.c (deassignLRs): prevent operand registers
8284           from being reused as result UNLESS it is known to work
8285
8286 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
8287
8288         * support/Util/dbuf.h: include <stddef.h> for size_t
8289         * .version: changed to version 2.5.2
8290
8291 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8292
8293         * src/SDCCloop.c (loopInvariants): fixed bug #1234048
8294
8295 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8296
8297         * src/hc08/gen.c (genMinus): fixed bug #1241835,
8298           (genModOneByte): removed needless psha/pula
8299
8300 2005-07-22 Raphael Neider <rneider AT web.de>
8301
8302         * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
8303           have PIC14 handled like PIC16, fixes broken pic14 linker calls
8304         * src/pic/gen.c (resolveIfx): do not "invent" labels
8305         * (genSkipc): changed to positive logic
8306         * (genSkipCond): removed as no longer needed
8307         * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
8308           backport from PIC16
8309         * (genLeftShift): check operands are in different registers
8310         * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
8311           INCF does not update CARRY...
8312         * src/pic/main.c: fixed _linkCmd
8313         * src/pic/pcode.c (unlinkpCode): added inactive code
8314         * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
8315           alive (do not assign result and operand overlapping registers)
8316
8317 2005-07-22 Raphael Neider <rneider AT web.de>
8318
8319         * src/pic/device.c (dump_sfr): replaced register declaration with
8320           call to emitSymbolToFile() to avoid duplicate symbols
8321         * (assignRelocatableRegisters): do not declare external symbols
8322         * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
8323           right (take size of type, not etype)
8324         * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
8325         * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
8326         * (packRegsForAccUse): disabled assignment of WREG as
8327           the result reg to prevent occurence of just fixed #1235003,
8328           fixes #1242954
8329         * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
8330           symbols (avoids duplicate symbols in .asm file)
8331         * (pic14emitRegularMap): use emitSymbolToFile()
8332         * src/pic/gen.c (aopOp): fixed spillLocation handling
8333         * (gen{Unp,P}ackBits): fixed acquiring bit-operands
8334         * (genDataPointerSet): removed unneccessary variables/output
8335
8336 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
8337
8338         * as/mcs51/lkarea.c: enlarged codemap for banked memory
8339         * device/lib/mcs51/crtbank.asm: added # to 0x0F
8340
8341 2005-07-21 Raphael Neider <rneider AT web.de>
8342
8343         * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
8344           architecture cannot handle them efficiently, fixes bug #1235003
8345         * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
8346           check for empty sets before using them (fixes bug #1232190)
8347
8348 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
8349
8350         * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
8351           (lnksect2): generate warnings for memory overlap
8352         * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
8353           constseg to set the name of these segments so you can instruct the linker
8354           to place them in banks
8355         * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
8356         * src/SDCCglobl.h: added MODEL_HUGE to enum,
8357           added code_seg and const_seg to options
8358         * src/SDCCglue.c (emitMaps): use options.const_seg,
8359           (createInterruptVect): put interrupt vectors in segment HOME,
8360           (glue): put HOME before static segment and put the main glue in HOME,
8361           (glue): use options.code_seg
8362         * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
8363         * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
8364           these segments so you can instruct the linker to place them in banks
8365           (linkEdit): use code_loc for HOME segment which should be the first
8366           segment in code memory now
8367         * src/SDCCmem.c: fixed more stuff like bug 1238386
8368         * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
8369           (changePointer): don't change function pointers to code pointers for
8370           banked functions,
8371           (compareType): added exceptional check for banked function pointers
8372         * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
8373         * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
8374           after static in code memory
8375         * src/mcs51/gen.c: added aopLiteralLong prototype,
8376           (aopForSym): use getSize for functions,
8377           (genCall): generate banked calls over one trampoline __sdcc_banked_call
8378           in HOME with lsb of address in r0, msb in r1 and bank in r2, use
8379           -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
8380           the segment,
8381           (genPcall): use call for literal function pointers and generate banked
8382           calls over the one trampoline so there's only one place for the user to
8383           modify according to his/hers hardware,
8384           (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
8385           (genPlusIncr): moved check icount>4 beyond inc dptr optimization
8386         * src/mcs51/main.c: added keyword banked,
8387           (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
8388         * support/Util/SDCCerr.c,
8389         * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
8390           needed for passing the bank and address to the trampoline
8391         * device/lib/mcs51/crtbank.asm: added for bankswitching
8392         * device/lib/mcs51/Makefile: added crtbank
8393
8394 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8395
8396         * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
8397           for fields at offset 0 of a struct or union as reported
8398           on 2005-07-07 in the developer mailing list.
8399
8400 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
8401
8402         * src/SDCCmem.c: fixed bug 1238386
8403
8404 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8405
8406         * src/mcs51/peeph.def: added labelrefcounting for peepholes
8407           (patch #1144962), added peephole 300, enabled 259.x
8408         * doc/sdccman.lyx: removed screenshot and provided link instead
8409
8410 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8411
8412         * doc/sdccman.lyx: added section about debugging with ddd
8413         * doc/figures/ddd_example.eps: screenshot of debugging session
8414
8415 2005-07-04 Raphael Neider <rneider AT web.de>
8416
8417         * src/pic/gen.c (genPointerGet): handle pointers to CONST values
8418           like CODE pointers, fixes #1115683
8419         * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
8420           call, fixes bugs #1232211, #1228110,
8421           fixed wrong casts to pCodeFlow from pCodeInstructions
8422
8423 2005-07-04 Raphael Neider <rneider AT web.de>
8424
8425         * src/pic/gen.c (popGet): changed assert to allow for
8426           bit operands
8427         * (popGetAddr): changed signature to provide
8428           an additional index, patched all call sites
8429         * (genCmpEq): handle literal-like operands correctly
8430         * (genAddrOf): added sanity checks on __code/__data pointers
8431         * (genAssign): added handling of symbols from __code section
8432         * (gencjne): do not generate code for comparisons whose result
8433           is neither stored nor used, fixes bug #1171114
8434         * (AccLsh, AccRsh): operate on operand instead of WREG
8435         * (shift{Left,Right}_Left2ResultLit): NEW, size independant
8436           replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
8437           by known count
8438         * rewrote complete shift-by-literal logic, commented unused
8439           functions out
8440         * (genConstPointerGet): get multiple bytes (if result size > 1),
8441           fixed handling of non-immediate addresses
8442         * (genPointerGet): handle CODE pointers like CONST pointers
8443         * (genpic14Code): insert C-SRC lines as Cource-pCodes
8444         * ({aop,op}_isLitLike): NEW, single place to decide whether an
8445           operand is to be treated as a literal or not
8446         * (mov2w,genPcall,genCmpEq),
8447           src/pic/genarith.c: use aop_isLitLike() to decide between
8448           literal/register contents
8449         * (addSign): added missing offset
8450         * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
8451           only emit comment in debug-mode,
8452           use {aop,op}_isLitLike throughout the file
8453         * src/pic/glue.c: fix initializers for pointers (work in progress)
8454         * src/pic/pcode.c (get_op): honor index on _const symbols
8455         * ({reset,dump}pCodeStatistics): NEW, estimate code size
8456         * (dumppBlock): added pCode size estimation
8457         * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
8458           check for IS_SYMOP before OP_SYMBOL'ing
8459         * fixed indentation, compacted switch-statements
8460         * (allocReg): find free register and allocate it instead of
8461           allocating new registers all the time
8462         * (deassignLRs): prevent POINTER_GET's from being assigned the same
8463           registers as its operands (necessary only for multibyte GETs)
8464
8465 2005-07-01 Raphael Neider <rneider AT web.de>
8466
8467         * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
8468           debugging .asm-output macros FENTRY + FEXIT
8469         * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
8470           way... I wonder...
8471         * (emitpComment): NEW, printf to pCode
8472         * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
8473           offset handling
8474         * (popGetAddr): NEW, variant of popGet to access an immediates
8475           high(er) bytes instead of the n'th byte of memory they reference,
8476           replaced popGet with popGetAddr where neccessary
8477         * (genDataPointerGet): reactivated and fixed implementation
8478         * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
8479           accesses
8480         * (genDataPointerSet): fixed multibyte assignments
8481         * (genpic14Code): fixed --i-code-in-asm handling
8482         * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
8483         * (genPlus): fixed index-out-of-bounds error
8484         * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
8485         * src/pic/ralloc.c: added debugging output macro FENTRY2
8486         * (spillThis): fixed indentation, enbraced for-body for clarity
8487         * (rematStr): commented out as now unused
8488         * (regTypeNum): commented out special spill case (overwrites
8489           arbitrary values)
8490         * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
8491
8492 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
8493
8494         * doc/sdccman.lyx: documented sfr16/sfr32,
8495           added example for using storage class with function pointers
8496         * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
8497
8498 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
8499
8500         * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
8501         * device/lib/_itoa.c,
8502         * device/lib/_ltoa.c: optimized codesize
8503         * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
8504           but don't know how to suppress the double warning.
8505         * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
8506         * support/Util/SDCCerr.c,
8507         * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
8508
8509 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
8510
8511         * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
8512           fixed old K&R prototypes
8513         * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
8514         * device/lib/_gptrget.c,
8515         * device/lib/_gptrgetc.c,
8516         * device/lib/_gptrput.c: changed versions for new memory indicator values,
8517           also new versions for small generic pointers and banked generic pointers
8518         * src/port.h: added const_name
8519         * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
8520         * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
8521         * src/SDCCcse.c (findPrevIc): check all associative operators
8522         * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
8523         * src/SDCCicode.h: added macro IS_ASSOCIATIVE
8524         * src/SDCCmem.c: updated comments,
8525           set far-space to 0 for pdata, results in optimized code
8526         * src/SDCCmem.h: added macro CONST_NAME
8527         * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
8528           moving the info into the highest bits, see also gptrget/gptrput
8529         * src/src.dsp: added sdcc.ico to project files
8530         * src/avr/gen.c (genCast): fixed bug 0x%d
8531         * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
8532         * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
8533           relation between ptr_type and DCL_TYPE,
8534           (genCast): fixed bug 0x%d
8535         * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
8536           (CODE)" for const_name
8537         * src/hc08/gen.c (genCast): fixed bug 0x%d
8538         * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
8539           (hc08_port): added "CONST (CODE)" for const_name
8540         * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
8541           (aopForRemat, adjustArithmeticResult): disconnected direct relation
8542           between ptr_type and DCL_TYPE,
8543           (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
8544           operand* and took AOP() inside function so sfr-ness can be checked,
8545           (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
8546           new prototype,
8547           (genFunction, genEndFunction): optimized stack setup,
8548           (genMinus): optimized for literals with ending zeroes (in bytes),
8549           (genCast): fixed bug 0x%d
8550         * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
8551           (mcs51_port): added "CONST (CODE)" for const_name
8552         * src/mcs51/peeph.def: made rule 226 more generic
8553         * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
8554         * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
8555         * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
8556         * src/z80/main.c (z80_port): added NULL for const_name,
8557           (gbz80_port): added NULL for const_name
8558         * support/regression/tests/bug663539.c,
8559         * support/regression/tests/sfr16.c: new tests
8560
8561 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8562
8563         * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
8564
8565 2005-06-24 Raphael Neider <rneider AT web.de>
8566
8567         * device/lib/pic16/libdev/pic18f[68][567]20.c:
8568           corrected typos...
8569         * device/include/pic16/signal.h: added USBIF
8570           and SIG_USB
8571
8572 2005-06-24 Raphael Neider <rneider AT web.de>
8573
8574         * device/lib/pic16/libdev/pic18f2455.c,
8575           device/include/pic16/pic18f2455.h: NEW
8576         * device/include/pic16/pic18fregs.h,
8577           device/lib/pic16/pics.all,
8578           src/pic16/device.c: added 18f2455
8579         * device/lib/pic16/libdev/pic18f[68][567]20.c,
8580           device/include/pic16/{pic18f[68][567].h,usart.h}:
8581           replaced MULTIPLE_USARTS define with more relaible
8582           compatibility sfrs (for USART access)
8583
8584 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
8585
8586         * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
8587           and the output asm file line is printed on two lines.
8588
8589 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8590
8591         * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
8592           BGT, BLE, BHI, and BLS instructions
8593         * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
8594           genCmpEq): removed
8595         * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
8596           negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
8597           fixes bug #1216342
8598         * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
8599
8600 2005-06-15 Raphael Neider <rneider AT web.de>
8601
8602         * src/pic16/NOTES: moved Vangelis from active developers to people to contact
8603         * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
8604         * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
8605           fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
8606           OP_SYM_TYPE() instead of OP_SYM_ETYPE()
8607
8608 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8609
8610         * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
8611           Marcel Telka in bug #1215704
8612
8613 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
8614
8615         * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
8616           located in shared memory bank.
8617
8618 2005-05-31 Raphael Neider <rneider AT web.de>
8619
8620         * src/pic16/{gen.c,genarith.c}: replaced sign-extension
8621           "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
8622           "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
8623
8624 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
8625
8626         * device/lib/_strncpy.c: fixed the fix
8627
8628 2005-05-26 Raphael Neider <rneider AT web.de>
8629
8630         * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
8631           initializers with \0, bug #1208187
8632         * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
8633           intializers with \0, bug #1208187
8634
8635 2005-05-26 Raphael Neider <rneider AT web.de>
8636
8637         * src/pic16/glue.c (pic16_printIvalChar): fixed string
8638           initializers with \0, bug #1208187
8639         * src/pic16/main.c (_process_pragma): added sanity checks
8640           for stack position and size, emit warnings when appropriate
8641
8642 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
8643
8644         * device/lib/_strncpy.c: fixed not filling with \0
8645
8646 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8647
8648         * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
8649           createFunction),
8650         * src/SDCC.y (external_definition, enumerator, parameter_declaration,
8651           compound_statement),
8652         * src/SDCCsymt.h,
8653         * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
8654
8655 2005-05-24 Raphael Neider <rneider AT web.de>
8656
8657         * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
8658
8659 2005-05-24 Raphael Neider <rneider AT web.de>
8660
8661         * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
8662           TRISE definitions, closes bug #1162453
8663
8664 2005-05-22 Raphael Neider <rneider AT web.de>
8665
8666         * src/pic16/main.c (_process_pragma): check for missing
8667           arguments to pragmas code and udata
8668         * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
8669           consistency fixes to match other headers (thanks to Jim Paris)
8670         * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
8671
8672 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
8673
8674         * src/SDCCicode.c (isOperandEqual): fixed missing ;
8675
8676 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
8677
8678         * support/regression/tests/bug1198642.c: new test
8679         * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
8680         * src/SDCCcse.c (findPrevIc): added comment, please have a look
8681         * support/scripts/resource.h,
8682         * support/scripts/resource.rc,
8683         * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
8684         * support/scripts/sdcc.ico: added 32x32 icon
8685
8686 2005-05-18 Raphael Neider <rneider AT web.de>
8687
8688         * device/lib/pic16/libdev/pic18f*.c,
8689         * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
8690           keywords to "__sfr" and "__at (X)"
8691         * device/include/pic16/pic18fregs.h: added pic18f4520
8692         * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
8693           #1203088 (MPLAB compatibility)
8694
8695 2005-05-17 Raphael Neider <rneider AT web.de>
8696
8697         * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
8698         * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
8699         * device/lib/pic16/pics.all: added new devices
8700         * src/pic16/device.c: added support for pic18f4520
8701
8702 2005-05-16 Raphael Neider <rneider AT web.de>
8703         * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
8704         * src/pic16/genarith.c (genAddLit): fixed bug 1202480
8705         * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
8706           convenience function for bit access
8707
8708 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
8709
8710         * device/lib/printf_large.c: fixed bug 1193299
8711         * support/regression/tests/bug1057979.c: added test %3.3s
8712
8713 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8714
8715         * device/include/mcs51/8051.h,
8716         * device/include/mcs51/8052.h: made parseable with lint
8717         * device/include/mcs51/lint.h: added include file for (sp)lint
8718         * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
8719         * doc/cdbfileformat.lyx,
8720         * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
8721
8722 2005-05-14 Raphael Neider <rneider AT web.de>
8723
8724         * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
8725         * device/lib/pic16/libc/stdlib/itoa.c (new)
8726         * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
8727         * device/lib/pic16/libio/Makefile: exclude subdir according to
8728           ${subdir}.ignore for certain PICs (lacking e.g. i2c)
8729         * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
8730         * src/pic16/gen.c (genFunction): prevent annoying warning
8731         * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
8732           nameclashes on BeOS
8733         * support/cpp2/cppmain.c (cpp_output_string): new
8734         * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
8735           fixes bug 1116802
8736
8737 2005-05-13 Borut Razem <borut.razem AT siol.net>
8738
8739         * src/SDCCmain.c (linkEdit): fixed bug 1195202
8740
8741 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8742
8743         * .version: changed to version 2.5.1; back to bleeding edge development
8744
8745 2005-05-11 Borut Razem <borut.razem AT siol.net>
8746
8747         * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
8748           generate PDF version 1.3 documents
8749
8750 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8751
8752         * .version: changed to version 2.5.0
8753
8754 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8755
8756         * doc/sdccman.lyx: updated weblinks, index and smaller updates
8757
8758 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8759
8760         * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
8761         --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
8762         well as many smaller updates.
8763         * .version: changed to version 2.5.0-pre1
8764
8765 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8766
8767         * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
8768
8769 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
8770
8771         * support/regression/tests/bug1185672.c: added
8772         * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
8773           bug 1185672
8774         * src/mcs51/gen.c (genCall): added comments, made it look safer
8775         * src/mcs51/gen.c (genEndFunction): simplified
8776
8777 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
8778
8779         * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
8780
8781 2005-04-14 Borut Razem <borut.razem AT siol.net>
8782
8783         * fixed bug 1045046 - SIGSEGV with really simple code?:
8784           src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
8785           src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
8786
8787 2005-04-14 Borut Razem <borut.razem AT siol.net>
8788
8789         * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
8790           src/pic16/device.h: temporarily disabled experimental #inline pragma
8791           for 2.5.0 release
8792
8793 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
8794
8795         * device/include/z80/stdio.h,
8796         * device/include/z80/string.h: removed these highly incomplete files so
8797           SDCC can use the default ones in device/include/
8798
8799 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8800
8801         * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
8802         gcc warning.
8803         * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
8804         fix sdcpp warnings.
8805
8806 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
8807
8808         * device/include/malloc.h: removed redundant __reentrant prototypes
8809         * device/lib/_mullong.c: added working xstack variant in asm (C version
8810           doesn't pass regression tests)
8811         * device/lib/bpx.c: used __data and made bpx char for mcs51
8812         * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
8813           (createFunction): fixed bug with xstackPtr
8814         * src/SDCCcse.c: corrected comments
8815         * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
8816           (killDeadCode, eBBlockFromiCode): removed unused code
8817         * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
8818           corrected comments
8819         * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
8820           assignResultValue, genCall, genFunction, genEndFunction, genAnd,
8821           genOr, genXor, genAddrOf): fixed several bugs concerning xstack
8822           (genModOneByte): fixed warning in MSVC
8823         * src/mcs51/main.c (): added comments
8824         * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
8825
8826 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
8827
8828         * src/SDCCmain.c (linkEdit): oops, changed one line too many
8829
8830 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
8831
8832         * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
8833
8834 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
8835
8836         * src/pic16/glue.c (printIvalChar): fixed bug when emitting
8837         characters arrays of larger size than the declared one.
8838
8839 2005-04-10 Borut Razem <borut.razem AT siol.net>
8840
8841         * src/pic/gen.c (genInline),
8842           src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
8843           (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
8844           (findNextInstruction), (findPrevInstruction),
8845           (findInstructionUsingLabel),
8846           src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
8847         * src/pic/pcode.c (findLabel): added missing '\n'
8848         * src/src.dsp: added SDCCdwarf2.c to the project
8849
8850 2005-04-09 Borut Razem <borut.razem AT siol.net>
8851
8852         * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
8853
8854 2005-04-08 Raphael Neider <rneider AT web.de>
8855
8856         * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
8857           into the chain after a given one) and mergeDefmapSymbols (combine
8858           defmap entries for each symbol per pcode)
8859         * (createDefmap): have defmap entries merged in the end
8860         * (defmapReplaceSymRef): split defmap entries covering two accesses to
8861           a symbol before replacing one access type's symbol, merge symbols in
8862           the end (replacement symbol might already have an entry)
8863         * (assignValnums): keep reference to written WREG intact
8864
8865 2005-04-08 Raphael Neider <rneider AT web.de>
8866
8867         * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
8868           Alpha)
8869
8870 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
8871
8872         * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
8873         bytes
8874
8875 2005-04-07 Raphael Neider <rneider AT web.de>
8876
8877         * device/include/pic16/usart.h: added compatibility defines for
8878           devices with more than one USART
8879         * device/include/pic16/pic18f[68][567]20.h: activated above defines
8880
8881 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
8882
8883         * device/lib/Makefile.in: updated for port specific include
8884
8885 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
8886
8887         * support/regression/ports/mcs51/spec.mk: added mcs51 include
8888
8889 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
8890
8891         * device/include/8051.h,
8892         * device/include/8052.h,
8893         * device/include/at89S8252.h,
8894         * device/include/at89c55.h,
8895         * device/include/at89x051.h,
8896         * device/include/at89x51.h,
8897         * device/include/at89x52.h,
8898         * device/include/mcs51reg.h,
8899         * device/include/reg51.h,
8900         * device/include/reg764.h,
8901         * device/include/regc515c.h,
8902         * device/include/sab80515.h: (re)moved these 12 files
8903         * device/include/mcs51/8051.h,
8904         * device/include/mcs51/8052.h,
8905         * device/include/mcs51/at89S8252.h,
8906         * device/include/mcs51/at89c55.h,
8907         * device/include/mcs51/at89x051.h,
8908         * device/include/mcs51/at89x51.h,
8909         * device/include/mcs51/at89x52.h,
8910         * device/include/mcs51/mcs51reg.h,
8911         * device/include/mcs51/reg51.h,
8912         * device/include/mcs51/reg764.h,
8913         * device/include/mcs51/regc515c.h,
8914         * device/include/mcs51/sab80515.h: and added them here
8915
8916 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
8917
8918         * device/include/stdarg.h: changed SDCC specific keywords to double
8919           underlined form.
8920         * device/include/stdint.h: changed intptr_t and uintptr_t for others than
8921           mcs51 and ds390.
8922         * device/include/hc08/mc68hc908gp32.h,
8923         * device/include/hc08/mc68hc908jb8.h,
8924         * device/include/hc08/mc68hc908jkjl.h,
8925         * device/include/hc08/mc68hc908qy.h: fixed comments
8926         * device/include/mcs51/README: updated
8927         * device/include/mcs51/c8051f120.h: added PINRSF
8928         * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
8929         * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
8930           amidst code. Also inline is not supported.
8931
8932 2005-04-06 Raphael Neider <rneider AT web.de>
8933
8934         * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
8935         * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
8936           callers stack/frame pointers
8937
8938 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
8939
8940         * device/include/pic16/usart.h: added, missing in previous commit,
8941         * device/include/pic16/adc.h: fixed typo,
8942         * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
8943         commit,
8944         * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
8945         <p18fxxx.inc>
8946         * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
8947         uninitialized because a bug appears with gplink
8948         * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
8949         COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
8950         complains for unrecognised option
8951
8952 2005-04-05 Raphael Neider <rneider AT web.de>
8953
8954         * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
8955           structs as well (using memcpy)
8956         * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
8957           on ISRs (GOTO has no label)
8958         * src/pic16/device.h: added OF_OPTIMIZE_DF
8959         * src/pic16/main.c: added compiler switch --optimize-df to enable the
8960           new data flow analysis/optimization
8961         * src/pic16/pcode.c: added (prototypes for and implementation of)
8962           dataflow analysis functions, fixed pCodeInstructions' inCond and
8963           outCond values, made RCALL a branch instruction
8964         * (pic16_unlinkpCode): keep C line if possible
8965         * (pic16_pCodeUnlink): removed cast on left side of assignment, have
8966           C line moved if possible
8967         * (pic16_getRegFrompCodeOp): NEW, improved version of...
8968         * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
8969           to use new pic16_getRegFrompCodeOp (works for more SFRs)
8970         * (pic16_BuildFlow): fixed skip instructions with label (did not start
8971           new flow)
8972         * (pic16_getJumptabpCode): NEW, needed in...
8973         * (LinkFlow): fixed handling of jumptables, calls and conditional
8974           branches
8975         * (pic16_InsertCommentAfter): NEW
8976         * (pic16_pCodeReplace): made verbose and flow preserving
8977         * (AnalyzeFlow): added call to data flow analysis
8978         * src/pic16/pcode.h: added defmaps to pCodeFlow struct
8979         * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
8980         * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
8981
8982 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8983
8984         * src/SDCCast.c (decorateType): fixed bug #1105626
8985
8986 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
8987
8988         * device/include/asm/pic16/features.h,
8989         * pic18f*.h headers,
8990         * device/include/pic16/adc.h,
8991         * device/include/pic16/delay.h,
8992         * device/include/pic16/i2c.h,
8993         * device/include/pic16/malloc.h,
8994         * device/include/pic16/stdio.h,
8995         * device/include/pic16/stdlib.h,
8996         * device/include/pic16/string.h,
8997         * device/lib/pic16/libc/stdio/printf_tiny.c,
8998         * device/lib/pic16/libc/stdio/printf_small.c,
8999         * device/lib/pic16/libc/stdio/strmgpsim.c,
9000         * device/lib/pic16/libc/stdio/strmmssp.c,
9001         * device/lib/pic16/libc/stdio/strmusart.c,
9002         * device/lib/pic16/libc/stdio/vfprintf.c,
9003         * device/lib/pic16/libc/stdlib/ltoa.c,
9004         * device/lib/pic16/libc/stdlib/putchar.c,
9005         * device/lib/pic16/libc/stdlib/x_ftoa.c,
9006         * device/lib/pic16/libc/stdlib/memchrpgm.c,
9007         * device/lib/pic16/libc/stdlib/memchrram.c,
9008         * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
9009         * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
9010         * device/lib/pic16/libio/adc/adcbusy.c,
9011         * device/lib/pic16/libio/adc/adcread.c,
9012         * device/lib/pic16/libio/adc/adcsetch.c,
9013         * device/lib/pic16/libio/usart/ubaud.c,
9014         * device/lib/pic16/libio/usart/ubusy.c,
9015         * device/lib/pic16/libio/usart/udrdy.c,
9016         * device/lib/pic16/libio/usart/uopen.c,
9017         * device/lib/pic16/libio/usart/uputc.c,
9018         * device/lib/pic16/libsdcc/gptr/gptrget1.c,
9019         * device/lib/pic16/libsdcc/gptr/gptrget2.c,
9020         * device/lib/pic16/libsdcc/gptr/gptrget3.c,
9021         * device/lib/pic16/libsdcc/gptr/gptrget4.c,
9022         * device/lib/pic16/libsdcc/gptr/gptrput1.c,
9023         * device/lib/pic16/libsdcc/gptr/gptrput2.c,
9024         * device/lib/pic16/libsdcc/gptr/gptrput3.c,
9025         * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
9026         specific keywords to double underlined form,
9027         * device/lib/pic16/libc/Makefile.rules,
9028         * device/lib/pic16/libsdcc/Makefile.rules,
9029         * device/lib/pic16/libm/Makefile,
9030         * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
9031         to compile with C standard set in Makefile.common
9032         * device/lib/pic16/libc/stdlib/Makefile: added new C sources
9033         rand.c and crc.c in compilation process,
9034         * device/lib/pic16/libsdcc/int/divuint.c,
9035         * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
9036         `c' from signed to unsigned,
9037         * device/lib/pic16/startup/crt0.c,
9038         * device/lib/pic16/startup/crt0i.c,
9039         * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
9040         keywords to double underlined form, bug fixes in _do_cinit function
9041         which prevented the correct initialization of the .idata segment,
9042         * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
9043         core to enter a infinite loop
9044         * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
9045
9046 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9047
9048         * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
9049
9050 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9051
9052         * device/include/Makefile.in: add support for hc08 subdirectory
9053         * device/include/hc08/: new subdirectory
9054         * device/include/hc08/mc68hc908jkjl.h: new header contributed by
9055         Lucas Loizaga, thanks!
9056         * device/include/hc08/mc68hc908qy.h,
9057         * device/include/hc08/mc68hc908gp32.h,
9058         * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
9059         their own directory. Changed internal macro names to use the compiler
9060         reserved namespace. Changed SDCC specific keywords to double
9061         underlined form.
9062         * device/include/math.h,
9063         * device/include/malloc.h,
9064         * device/include/stdarg.h,
9065         * device/include/stdbool.h
9066         * device/include/string.h,
9067         * device/include/tinibios.h,
9068         * device/include/ds400rom.h,
9069         * device/include/8051.h,
9070         * device/include/8052.h,
9071         * device/include/80c51xa.h,
9072         * device/include/at89c55.h,
9073         * device/include/at89S8252.h,
9074         * device/include/at89x51.h,
9075         * device/include/at89x52.h,
9076         * device/include/ds80c390.h,
9077         * device/include/reg764.h,
9078         * device/include/regc515c.h,
9079         * device/include/sab80515.h,
9080         * device/include/mcs51/c8051f000.h,
9081         * device/include/mcs51/c8051f018.h,
9082         * device/include/mcs51/c8051f020.h,
9083         * device/include/mcs51/c8051f040.h,
9084         * device/include/mcs51/c8051f060.h,
9085         * device/include/mcs51/c8051f120.h,
9086         * device/include/mcs51/c8051f300.h,
9087         * device/include/mcs51/c8051f310.h,
9088         * device/include/mcs51/c8051f320.h,
9089         * device/include/mcs51/c8051f330.h,
9090         * device/include/mcs51/c8051f350.h,
9091         * device/include/z180.h: Changed SDCC specific keywords to double
9092         underlined form.
9093
9094 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
9095
9096         * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
9097         18F4455,
9098         * (pic16_assignConfigWordValue): disable testing of configuration
9099         register value with config mask,
9100         * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
9101         function with port->fun_prefix,
9102         * (genFunction): when generating a naked interrupt function never
9103         create an absolute segment placed in interrupt vector address, place
9104         the actual interrupt function at IVA instead, when an interrupt
9105         function is generated with unspecified interrupt then do not create
9106         the absolute section,
9107         * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
9108         code for generating a call to generic pointer get/put function with
9109         a call to function pic16_callGenericPointer(),
9110         * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
9111         the call to the generic pointer get/put functions with prefixing the
9112         function name with port->fun_prefix,
9113         * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
9114         * src/pic16/main.c (_process_pragma): prefix function with
9115         port->fun_prefix,
9116         * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
9117         calling assembler, old 18Fxxxx macro is deprecated,
9118         * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
9119         PC_ASMDIR in while condition,
9120         * (findInstruction): add PC_ASMDIR in while condition,
9121         * (buildCallTree): prefix main with port->fun_prefix,
9122         * (pic16_pCode2str): fixed bug that didn't emit the memory access
9123         identifier for variable with banked access in instructions BTFSS,
9124         BTFSC, BCF, BSF, BTG
9125         * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
9126         * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
9127         * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
9128         perform optimization when enviroment variable NO_REG_OPT is set,
9129         * (insideLRBlock): NEW, return 1 if register is inside an
9130         INF_LOCALREGS block,
9131         * (RemoveRegFromLRBlock): remove a register that is completely
9132         eliminated by register optimization, but it is still left in local
9133         register store/restore in/from stack block,
9134         * (Remove2pcodes): after removing register, check to see if it
9135         should be removed from local register store/restore in/from stack
9136         block,
9137         * src/pic16/ralloc.c (pic16_decodeOp): added decode for
9138         DUMMY_READ_VOLATILE,
9139
9140         * device/include/pic16/adc.h: minor prototype modifications and
9141         update,
9142         * device/include/pic16/malloc.h: added GPL notice various
9143         modifications,
9144         * device/include/pic16/stdint.h: NEW, standard header for ints
9145         * device/include/pic16/delay.h: NEW, header for delay functions,
9146         delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
9147         delay1mtcy,
9148         * device/include/pic16/signal.h: NEW, header providing helper macros
9149         for implementing signal handlers,
9150         * device/include/pic16/stdio.h: added prototypes for functions,
9151         printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
9152         prototypes for stdin and stdout, added macro PUTCHAR to
9153         automatically implement putchar function prototype,
9154         * device/include/pic16/usart.h: modified and updated USART library,
9155         * device/lib/pic16/libio/adc/,
9156         * device/lib/pic16/libio/i2c: some modifications to improve library
9157         performance,
9158         * device/lib/pic16/libc/stdio/: modifications for the new printf*
9159         family of functions,
9160         * device/lib/pic16/libc/stdlib/: various modifications in the malloc
9161         family of functions and other sources,
9162         * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
9163         of the PIC18Fxx[28] devices,
9164         * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
9165         * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
9166         * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
9167         _do_cinit function, because the previous failed when local variables
9168         where not placed in the same memory bank,
9169         * device/lib/pic16/libsdcc/char/: various modifications to improve
9170         library performance,
9171         * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
9172         information on the new functions of the c library and more...
9173
9174 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9175
9176         * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
9177
9178 2005-03-26 Raphael Neider <rneider AT web.de>
9179
9180         * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
9181           if condition == CARRY)
9182         * (genCmp): adapted to new genSkipc semantics
9183         * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
9184           on rIfx (genCmp was broken)
9185
9186 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9187
9188         * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
9189         * src/z80/main.c (_keywords[]),
9190         * src/SDCCglobal.h (struct options),
9191         * src/SDCC.y,
9192         * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
9193         to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
9194         std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
9195         --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
9196         always available in leading double underscore form. The C99 support is
9197         mostly missing, but it's a start.
9198         * support/regression/tests/bug-227710.c: fixed nonconforming use of
9199         reserved identifier "__data".
9200
9201 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
9202
9203         * src/mcs51/peeph.def: fixed bug 1170013
9204
9205 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
9206
9207         * device/include/mcs51reg.h: fixed bug 842007
9208
9209 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9210
9211         * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
9212         last time.
9213
9214 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9215
9216         * src/port.h (struct PORT),
9217         * src/avr/ralloc.c (avr_assignRegisters),
9218         * src/avr/main.c,
9219         * src/ds390/ralloc.c (ds390_assignRegisters),
9220         * src/ds390/main.c,
9221         * src/hc08/ralloc.c (hc08_assignRegisters),
9222         * src/hc08/main.c,
9223         * src/mcs51/ralloc.c (mcs51_assignRegisters),
9224         * src/mcs51/main.c,
9225         * src/pic/ralloc.c (pic14_assignRegisters),
9226         * src/pic/main.c,
9227         * src/pic16/ralloc.c (pic16_assignRegisters),
9228         * src/pic16/main.c,
9229         * src/xa51/ralloc.c (xa51_assignRegisters),
9230         * src/xa51/main.c,
9231         * src/z80/ralloc.c (z80_assignRegisters),
9232         * src/z80/ralloc.h,
9233         * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
9234         * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
9235         * src/SDCCcse.h,
9236         * src/SDCCdflow.c (computeDataFlow),
9237         * src/SDCCdflow.h,
9238         * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
9239         * src/SDCCloop.h,
9240         * src/SDCCcflow.c (*),
9241         * src/SDCCcflow.h,
9242         * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
9243         * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
9244         of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
9245         immedDom() returning wrong block; probably fixes bug #1160833)
9246
9247 2005-03-20 Borut Razem <borut.razem AT siol.net>
9248
9249         * support/scripts/inc2h.pl: WIN32 port
9250
9251 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
9252
9253         * device/lib/makefile.in: added abs.c and labs.c
9254
9255 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
9256
9257         * device/include/stdint.h: added
9258         * device/lib/abs.c: added
9259         * device/lib/labs.c: added
9260         * device/include/stdlib.h: added abs() and labs() prototypes
9261         * device/lib/libsdcc.lib: added abs and labs
9262         * device/include/float.h,
9263         * device/lib/_fsmul.c,
9264         * device/lib/printf_fast.c,
9265         * device/lib/printf_tiny.c: updated comments
9266
9267 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9268
9269         * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
9270         bug #1164313
9271
9272 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9273
9274         * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
9275         * src/SDCCast.c (isLoopCountable): fixed bug #1161985
9276
9277 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
9278
9279         * device/lib/printf_large.c: removed inline assembly for portability and
9280           readability. Use printf_fast if speed or size are more important.
9281         * src/pic16/gen.c: removed conditions around use of DEBUGpc
9282         * src/pic16/genutils.h: added define for DEBUGpc for MSVC
9283
9284 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
9285
9286         * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
9287         prevent compiler warning
9288
9289 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
9290
9291         * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
9292         moved to level 0 and declared as static. Also they are explicit
9293         placed in access bank. This was necessery because some times they
9294         might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
9295         * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
9296         optimizations. Currently only compare to unsigned char is implemented,
9297         * src/pic16/gen.c: added fReturnIdx array,
9298         * (struct resolvedIfx) is moved to gen.h and made public,
9299         * (struct _G): added sregsAlloc and sregsAllocSet fields,
9300         * (aopForSym): added an optimization to directly store in stack of
9301         the operand of a SEND iCode,
9302         * (pic16_aopOp): don't return return registers as strings (AOP_STR)
9303         but as registers instead (AOP_REG) using the fReturnIdx array,
9304         * (pic16_freeAsmop): remove the freed register from the
9305         _G.sregsAlloc field,
9306         * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
9307         a compare of 'WREG',
9308         * (pic16_popGetTempRegCond): changed function prototype, now
9309         function takes also a bitVector argument v which holds the current
9310         set of registers that are allocated for stack access by aopForSym,
9311         registers allocated in aopForSym for accessing stack symbols are not
9312         any more part of the functions usedRegs field,
9313         * (genCall): some times aopOp is called for a stack variable to be
9314         send, aopForSym might perform the push, if this is true make sure
9315         that genCall doesn't push the variable twice by testing _G.resDirect,
9316         * (genFunction): changed testing for unspecified interrupt number
9317         from 256 to INTNO_UNSPEC,
9318         * modified selection scheme of frame pointer generation. Previously
9319         if function did use local registers a frame pointer was generated,
9320         now a frame pointer is generated only if function has arguments
9321         (that need PLUSW2 register access), or has stack arguments, or the
9322         compiler is not instructed to omit the frame pointer,
9323         * (genEndFunction): before restoring local registers that were saved
9324         in the function preamble, also restore the registers that *might*
9325         have been allocated for stack access,
9326         * (genRet): removed some old comments,
9327         * (genCmp, the active (RN's) version): added a call to the
9328         pic16_genCmp_special function to perform the compare with a more
9329         robust and optimized way,
9330         * (genInline): a feature has been added in inline code generation,
9331         which allows a wildcard variable substitution when writing inline
9332         assembly. Code is incomplete and experimental therefore undocumented,
9333         * (genCast): changed order of aopOp for result and right to allow
9334         aopForSym to directly load the result if possible,
9335         * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
9336         perform an optimized compare on some selected special occasions,
9337         * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
9338         * src/pic16/glue.c (pic16createInterrupVect): make sure we never
9339         generate an IVT any more,
9340         * src/pic16/main.c (pic16_optionsTable): added command line option
9341         --optimize-cmp,
9342         * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
9343         macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
9344         macros,
9345         * src/pic16/NOTES: Raphael Neider added in list of active developers
9346         * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
9347         jumptable_end to prevent bug #,
9348         * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
9349         inCond and outCond fields,
9350         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
9351         * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
9352         turn off register spilling,
9353         * (packRegsForOneUse): synced with other ports' versions although it
9354         is not used currently,
9355         * (pic16_packRegisters): added an optimization while reading
9356         structure bitfields, some registers may be saved (malloc code is
9357         decreased by 80 bytes)
9358
9359 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
9360
9361         * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
9362         left is a bitfield, if yes, then don't optimize assignment. Perhaps
9363         this can be optimized more?
9364
9365 2005-03-10 Raphael Neider <rneider AT web.de>
9366
9367         * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
9368           genNearPointerGet): (hopefully) fixed access to bitfields via
9369           pointers (p->bitN = x; and x = p->bitN; failed)
9370
9371 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
9372
9373         * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
9374
9375 2005-03-09 Raphael Neider <rneider AT web.de>
9376
9377         * src/SDCCopt.c (killDeadCode): fixed bug #1156016
9378
9379 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
9380
9381         * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
9382         * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
9383           (regTypeNum): set REG_BIT type if necessary
9384         * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
9385         * support/regression/tests/critical.c: check bug 1144613
9386
9387 2005-03-02 Raphael Neider <rneider AT web.de>
9388
9389         * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
9390
9391 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9392
9393         * src/avr/ralloc.c (serialRegAssign),
9394         * src/ds390/ralloc.c (serialRegAssign),
9395         * src/hc08/ralloc.c (serialRegAssign),
9396         * src/mcs51/ralloc.c (serialRegAssign),
9397         * src/pic/ralloc.c (serialRegAssign),
9398         * src/pic16/ralloc.c (serialRegAssign),
9399         * src/xa51/ralloc.c (serialRegAssign),
9400         * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
9401
9402 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
9403
9404         * src/SDCCast.c (decorateType): fixed bug 1124787
9405
9406 2005-02-20 Hubert Sack <sack AT digiplan.de>
9407         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9408
9409         * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
9410         patch #1121755
9411
9412 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9413
9414         * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
9415         to keep the correct label reference count when adding/removing references
9416         to labels. A peephole file using this is appended to patch #1144962.
9417
9418 2005-02-14 Raphael Neider <rneider AT web.de>
9419
9420         * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
9421         * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
9422         * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
9423           retrievals of result operand's value on assignment
9424
9425 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
9426
9427         * device/include/pic16/string.h: modified prototype for memccpy()
9428         to memccpy(void *, void *, char, size_t)
9429         * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
9430         check whether to omit frame pointer or not,
9431         * (genInline): convert all occurences of "\n" to LF in inline
9432         assembler blocks, this helps formatting the inline text,
9433         * (pic16_loadFSR0): modified prototype,
9434         * (genNearPointerGet, genNearPointerSet): reorganization of code,
9435         removed some 8051 legacy code,
9436         * (genPackBits): enabled handling bitfields exceeding one byte in size,
9437         * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
9438         before allocating temporary registers in functions,
9439
9440 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
9441
9442         * support/regression/tests/bitvars.c: corrected the "fix"
9443
9444 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
9445
9446         * support/regression/tests/bitvars.c,
9447         * support/regression/tests/bitwise.c,
9448         * support/regression/tests/rotate.c: "fixed" problems on Alpha
9449
9450 2005-02-10 Raphael Neider <rneider AT web.de>
9451
9452         * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
9453           different size for Alpha
9454         * src/pic16/gen.c (genCmpEq) : improved compare with 0
9455
9456 2005-02-09 Raphael Neider <rneider AT web.de>
9457
9458         * src/SDCC.lex(doPragma) : save and restore warning options as well
9459           (also added new stack plus clone- and copyAndFreeSDCCERRG())
9460         * have #pragma less_pedantic set the errorlevel to WARNING
9461           (fixes #1117001)
9462         * (cloneOptimize) : fixed wrong malloc's size
9463         * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
9464           facilitate correct handling of #pragma (save|restore)
9465
9466 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
9467
9468         * src/mcs51/gen.c: removed non-standard C nameless struct/union
9469
9470 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
9471
9472         * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
9473
9474 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
9475
9476         * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
9477
9478 2005-02-02 Raphael Neider <rneider AT web.de>
9479
9480         * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
9481         * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
9482         * (pic16_storeForReturn): fixed to allow returning function pointers
9483         * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
9484         * device/include/pic16/{stddef.h,stdbool.h}: added
9485
9486 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
9487
9488         * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
9489
9490 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
9491
9492         * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
9493         * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
9494          appeared to be required
9495
9496 2005-01-31 Borut Razem <borut.razem AT siol.net>
9497
9498         * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
9499           include/mcs51 and include/z80 directories to the package
9500
9501 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9502
9503         * src/hc08/gen.c (genFunction): fixed bug #1112752
9504
9505 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9506
9507         * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
9508
9509 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9510
9511         * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
9512
9513 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
9514
9515         * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
9516
9517 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
9518
9519         * device/include/c8051fxxx.h: removed these 6 files
9520         * device/include/mcs51/c8051fxxx.h: added these 11 new files
9521
9522 2005-01-26 Raphael Neider <rneider AT web.de>
9523
9524         * src/pic16/gen.c (genAssign): fixed assignment from longs
9525           in codespace (were cut to three bytes)
9526         * (genDummyRead): implemented (except for CODESPACE...),
9527           fixed bug #1108575
9528         * src/pic16/glue.c (emitStatistics): beautified
9529         * device/lib/pic16/libm/Makefile: added include path
9530
9531 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9532
9533         * src/z80/gen.c (aopPut): fixed bug #1103902
9534
9535 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9536
9537         * device/lib/expf.c: fixed bug #1095792
9538
9539 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
9540
9541         * device/lib/pic16/libm: added Math library sources
9542
9543 2005-01-24 Raphael Neider <rneider AT web.de>
9544
9545         * src/pic16/pcode.h: added second memory operand to pCodeOpReg
9546           to enable upcast to pCodeOpReg2 (there is no type tag to
9547           differenciate the two and pic16_popGet2p cast into PCOR2)
9548         * src/pic16/main.c (_process_pragma): fixed another malloc bug
9549           (sizeof(sectNames) changed to sizeof(sectName))
9550           Both patches fix segfaults under MinGW.
9551
9552 2005-01-23 Raphael Neider <rneider AT web.de>
9553
9554         * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
9555           Safe_[mc]?alloc()'ed variables
9556         * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
9557           of (byte sized) temporaries (assign them to WREG for now)
9558         * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
9559           (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
9560           this might fix SIGSEGVs on MinGW...
9561         * src/SDCCopt.c (killDeadCode): restored original behaviour
9562           (volatile operands might get thrown away though)
9563
9564 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
9565
9566         * src/pic16/gen.c: fixed bug #1106975,
9567         * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
9568         pointer update, INTCON is saved, global interrupts are disabled and
9569         restored after updateing TOS.
9570         * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
9571         * added function attribute 'shadowregs' to take advantage of shadow
9572         registers,
9573         * added function attribute 'wparam' as an alternative to the wparam
9574         pragma,
9575         * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
9576         user declares a non-ISR function as 'shadowregs',
9577         * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
9578
9579 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
9580
9581         * .version: bumped version number to 2.4.8
9582         * device/lib/pic16/pics.all: list of PIC18F devices supported by
9583         pic16 port,
9584         * device/lib/pic16/libio/i2c/: I2C module support library,
9585         * device/include/pic16/i2c.h: I2C support library header,
9586         * device/lib/pic16/libc/stdio/: standard IO support sources,
9587         * (printf_small.c): printf_small() source, supports float print,
9588         * (printf_tiny.c): printf_tiny() source, does not support floats,
9589         * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
9590         enable global optimizations for entire library source, other
9591         Makefiles in the source tree are also modified to reflect this,
9592         * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
9593         function,
9594         * doc/sdccman.lyx: updated to reflect new changes,
9595         * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
9596         sym->onStack if-case,
9597         * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
9598         sbit, idata, _idata, xdata, _xdata,
9599         * added pragma library, to link an external library, (see doc),
9600         * removed command line options, --pomit-config-words, --pomit-ivt,
9601         --pleave-reset-vector,
9602         * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
9603         when calling assembler to reflect memory model used, also define
9604         macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
9605         reflect stack model used,
9606         * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
9607         on stack return NULL,
9608
9609 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
9610
9611         * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
9612           of the operands is volatile. Fixes #1020220
9613
9614 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
9615
9616         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
9617         * (OptimizeRegUsage): make sure that there is really no other flow where
9618           the first pCode is used
9619
9620 2005-01-22 Raphael Neider <rneider AT web.de>
9621
9622         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
9623           to fix #1106967 (pCode->seq are not set up correctly)
9624
9625 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9626
9627         * src/SDCCglue.c (glue): make sure code area is declared before the
9628         static initialization area.
9629
9630 2005-01-21 Raphael Neider <rneider AT web.de>
9631
9632         * device/lib/Makefile.in: fixed test for pic16 install dir
9633         * device/lib/pic16/*/Makefile*: modified compile flags to enable
9634           optimizations
9635         * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
9636           added --optimize-goto compiler switch and pragma wparam documentation
9637         * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
9638         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
9639           and PRODH closing bug #1071770 (peephole optimizer)
9640
9641 2005-01-19 Raphael Neider <rneider AT web.de>
9642
9643         * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
9644           cmdLine buffers (used when calling sdcpp...) are large enough
9645           (MAX_PATH=256 truncates arguments leading to system halts when
9646           used in MinGW...)
9647         * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
9648         * (genUminus): rewritten to for efficiency
9649         * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
9650           used uninitialized in some cases)
9651         * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
9652           copy the third byte from the int -- now assumes 0x80 (data memory)
9653         * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
9654           operands (genAddLit expects the iCode's operands to swapped as
9655           well), fixed leftover bytes (crashed for short left operands)
9656         * (pic16_genMinusDec): performance improvements, removed false
9657           PIC14 emitSKPNCs
9658         * (pic16_genMinus): fixed to cope with differently sized operands
9659         * src/pic16/glue.c (pic16_glue): added new banksel optimization
9660           for --obanksel > 1
9661         * src/pic16/pcode.c: implemented (first phase of) banksel optimization
9662         * src/pic16/graph.[ch]: implementation of directed graphs, used by
9663           new banksel optimization
9664         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
9665           analysis for temporary registers (segfaults...)
9666         * src/pic16/peeph.def: added rule
9667
9668 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
9669
9670         * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
9671         which converts a float number to its ASCII representation
9672         * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
9673         functions to convert the fractional and integer part of a float to ASCII,
9674         * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
9675         realloc.c): added _MALLOC_SPEC to explicit place variables in data
9676         ram
9677         * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
9678         _STATMEM macros,
9679         * device/include/pic16/adc.h: added GPL info,
9680         * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
9681         a pCodeOp as tested operand,
9682         * (genNearPointerGet): optimized bit testing, does not use
9683         intermediate register for bit value, test directly instead with
9684         BTFSS, BTFSC, works only for single bits,
9685         * (genpic16Code): dump the name of the iCode in the asm,
9686         * src/pic16/ralloc.c (decodeOp): removed static declaration and
9687         renamed to pic16_decodeOp,
9688         * (serialRegAssign): do not allocate a temporary register for iCode
9689         sequences that test a single bit for 1/0
9690
9691 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
9692
9693         * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
9694         pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
9695         access stack and frame pointers. They are initially assigned to
9696         point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
9697         accessing SFRs. Updated all occurences of modification of stack or
9698         frame pointer in gen.c and pcode.c,
9699         * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
9700         assigning of a literal value to pointers,
9701         * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
9702         flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
9703         selected
9704
9705 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
9706
9707         * doc/sdccman.lyx: update documentation about stack pragma, added
9708         some info for stack memory models
9709
9710 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9711
9712         * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
9713
9714 2005-01-08 Raphael Neider <rneider AT web.de>
9715
9716         * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
9717           udata sections to fix bug #1097823
9718
9719 2005-01-05 Raphael Neider <rneider AT web.de>
9720
9721         * src/pic16/gen.c (genGenericShift): added handling of differently
9722           sized left operand and result
9723
9724 2005-01-04 Raphael Neider <rneider AT web.de>
9725
9726         * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
9727         * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
9728           to hold the condition bit)
9729         * added new version of genCmp (old code available via #define)
9730         * added new version of genShiftLeft/genShiftRight in a generic
9731           way, now supports shifting by negative values
9732         * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
9733           shiftCount (expected by genGenericShift)
9734         * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
9735         * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
9736           dump
9737         * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
9738           is an invalid literal too...)
9739
9740 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
9741
9742         * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
9743         from Raphael Neider,
9744         * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
9745         for 8-bit literals. This fixes some literal operands which are sign
9746         extended to 16-bits ints when instruction needs only 8-bits.
9747
9748 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
9749
9750         * device/lib/logf.c: added mcs51 assembly version
9751         * device/lib/expf.c: added mcs51 assembly version
9752         * device/lib/_logexpf.c: new shared asm code for expf and logf
9753         * device/include/math.h: add defines for assembly math library
9754         * device/lib/Makefile.in: build new _logexpf.c
9755         * device/lib/libfloat.lib: use new _logexpf.c
9756
9757 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
9758
9759         * src/pic/device.c
9760         * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
9761           device types which have less than 0x7f registers.
9762
9763 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
9764
9765         * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
9766
9767 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
9768
9769         * device/lib/printf_fast.c: only build on supported arch.
9770         * device/lib/printf_tiny.c: only build on supported arch.
9771         * device/lib/printf_fast_f.c: only build if asm float lib
9772         * device/lib/_fsget1arg.c: only build if asm float lib
9773         * device/lib/_fsget2args.c: only build if asm float lib
9774         * device/lib/_fsnormalize.c: only build if asm float lib
9775         * device/lib/_fsreturnval.c: only build if asm float lib
9776         * device/lib/_fsrshift.c: only build if asm float lib
9777         * device/lib/_fsswapargs.c: only build if asm float lib
9778         * device/include/stdio.h: don't provide print_fast,
9779           print_fast_f, print_tiny prototypes if --xstack used
9780
9781 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
9782
9783         * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
9784         * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
9785           to the SOURCES
9786
9787 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
9788
9789         * device/lib/printf_fast_f.c: same as printf_fast, but
9790           with floating point enabled
9791         * device/lib/printf_fast.c: minor tweaks
9792         * device/include/stdio.h: add printf_fast_f
9793
9794 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
9795
9796         * src/SDCCmain.c: make --float-reent default for mcs51
9797         * device/lib/_fsadd.c: added mcs51 assembly version
9798         * device/lib/_fssub.c: added mcs51 assembly version
9799         * device/lib/_fsmul.c: added mcs51 assembly version
9800         * device/lib/_fsdiv.c: added mcs51 assembly version
9801         * device/lib/_fseq.c: added mcs51 assembly version
9802         * device/lib/_fsneq.c: added mcs51 assembly version
9803         * device/lib/_fsgt.c: added mcs51 assembly version
9804         * device/lib/_fslt.c: added mcs51 assembly version
9805         * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
9806         * device/lib/Makefile.in: add _fscmp to build
9807         * device/lib/libfloat.lib: add _fscmp to build
9808
9809 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
9810
9811         * device/lib/_fs2slong.c: added mcs51 assembly version
9812         * device/lib/_fs2sint.c: added mcs51 assembly version
9813         * device/lib/_fs2schar.c: added mcs51 assembly version
9814         * device/lib/_fs2ulong.c: added mcs51 assembly version
9815         * device/lib/_fs2uint.c: added mcs51 assembly version
9816         * device/lib/_fs2uchar.c: added mcs51 assembly version
9817         * device/lib/_slong2fs.c: added mcs51 assembly version
9818         * device/lib/_sint2fs.c: added mcs51 assembly version
9819         * device/lib/_schar2fs.c: added mcs51 assembly version
9820         * device/lib/_ulong2fs.c: added mcs51 assembly version
9821         * device/lib/_uint2fs.c: added mcs51 assembly version
9822         * device/lib/_uchar2fs.c: added mcs51 assembly version
9823         * device/include/float.h: added #define to select asm vs c
9824
9825 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
9826
9827         * device/lib/printf_fast.c: improvements to float output
9828         * device/include/float.h: add defines for assembly float library
9829         * device/lib/_fsget1arg.c: receive 1 float arg
9830         * device/lib/_fsget2args.c: receive 2 float args (reentrant)
9831         * device/lib/_fsnormalize.c: normalize a float
9832         * device/lib/_fsreturnval.c: return float, various helper routines
9833         * device/lib/_fsrshift.c: right shift a float's mantissa
9834         * device/lib/_fsswapargs.c: swap 2 floats
9835         * device/lib/Makefile.in: build these 6 new files for mcs51
9836         * device/lib/libfloat.lib: add these 6 files to the library
9837
9838 2004-12-26 Borut Razem <borut.razem AT siol.net>
9839
9840         * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
9841           built by gcc 3.4.2
9842
9843 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
9844
9845         * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
9846           and fully reentrant and register bank neutral.
9847         * device/lib/printf_fast.c: added float (not enabled by default),
9848           added compact/slower integer (also not enabled by default),
9849           improved size/speed of fast integer code, other minor changes
9850         * device/include/stdio.h, device/lib/Makefile.in,
9851           device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
9852
9853 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
9854
9855         * src/pic16/pcode.c: declaring variables other than at the start of a
9856           block is not supported in C by VC6.
9857
9858 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
9859
9860         * applied a previous patch from Raphael Neider that wasn't included
9861         in the previous commits, which fixes infinite loops within jumptable
9862         improvements,
9863         * made some fixes that previous patches introduced
9864
9865 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
9866
9867         * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
9868         that fixes an issue with AOP_PCODE asmop's offset,
9869         * (pic16_popCopyReg): update instance field too,
9870         * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
9871         function of pic port,
9872         * (genCmp, genAnd, genAssign),
9873         * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
9874
9875 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
9876
9877         * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
9878         variables initial values to idata section,
9879         * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
9880         variables in some functions. This utilizes parmBytes field of iCode
9881         structure to hold the offset of the variable in stack. (might be
9882         able to use the stack field too?)
9883         * applied patch from Raphael Neider # ### , # ###
9884         * src/pic16/glue.c (pic16emitRegularMap): fix to print static
9885         variable initial values in idata section,
9886         * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
9887         for static variables with initial value
9888         * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
9889         applied fix in while loop from Raphael Neider.
9890
9891 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
9892
9893         * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
9894         * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
9895         * src/ds390/ralloc.c (serialRegAssign): spill bits
9896         * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
9897         * support/Util/SDCCerr.c,
9898         * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
9899         * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
9900         * support/regression/tests/bitwise.c: added test for bitwise complement(~)
9901
9902 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
9903
9904         * device/include/sdcc-lib.h: inserted LGPL, added includes
9905           asm/ds390/features.h and asm/mcs51/features.h
9906         * device/include/asm/default/features.h,
9907         * device/include/asm/gbz80/features.h,
9908         * device/include/asm/z80/features.h: added empty _AUTOMEM
9909           and _STATMEM
9910         * device/include/asm/ds390/features.h,
9911         * device/include/asm/mcs51/features.h: added files with defines for
9912           _AUTOMEM and _STATMEM indicating automatic and static storage class
9913         * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
9914         * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
9915         * src/SDCCicode.c (geniCodeCast),
9916         * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
9917         * src/SDCCloop.c (loopInduction): removed unused variable lr
9918         * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
9919           to convertToFcall to include char modulo (RFE 1065037), added check
9920           if left operand is unsigned and use abs of literal value
9921         * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
9922           as it doesn't work after conversion from peephole.def to peephole.rul
9923         * src/mcs51/gen.c (toBoolean): added check for size,
9924           (genModOneByte): optimized code for signed char modulo a literal
9925           power of 2 (thanks to Hubert Sack),
9926           (genRRC): removed unnecessary "clr c",
9927           (genRLC): replaced "add a,acc" with cheaper "rlc a"
9928         * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
9929           jump optimization,
9930           swapped rules 256.c and 256.d,
9931           extended 256.d by using new multiple checks (thanks Erik),
9932           added rules 256.e and 256.f,
9933           updated rule 261.a and 261.b to new generated code
9934         * support/regression/tests/muldiv.c: added test div/mod by a power of 2
9935
9936 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9937
9938         * src/SDCCloop.c (basicInduction, loopInduction): fixed several
9939           induction related bugs, including first part of bug #1074377
9940
9941 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
9942
9943         * applied patch from bug-report #1076292,
9944         * applied patches for genAnd and Goto-optimizations for Raphael
9945         Neider,
9946         * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
9947         dump a less iCode information,
9948         * src/pic16/device.h (pic16_options_t): added field debgen,
9949         * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
9950         DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
9951         * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
9952         puclic,
9953         * (various functions): added macros FENTRY and FENTRY2 to functions,
9954         to emit function prologue,
9955         * (various functions): fixed indentation,
9956         * (genNearPointerGet): fixed loading of FSR0,
9957         * (genPackBits): applied patch from Raphael Neider to fix updating
9958         of FSR0 and touching only the modified bits,
9959         * src/pic16/genarith.c (various functions): added macros FENTRY to
9960         emit function prologue in comments,
9961         * src/pic16/pcode.h: added functions debugf2, debugf3,
9962         * src/pic16/ralloc.c: partial fix for packForPush caused
9963         segmentation fault,
9964
9965 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9966
9967         * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
9968           <stsp AT users.sourceforge.net> with reversed byte order
9969         * support/regression/tests/rotate.c: added (ds390 skips some tests)
9970
9971 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9972
9973         * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
9974           bug #1074377
9975         * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
9976         * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
9977
9978 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
9979
9980         * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
9981
9982 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9983
9984         * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
9985           conditions,
9986           (setFromConditionArgs): friendly operand parser for peephole rules,
9987           (operandBaseName, operandsNotRelated): new peephole condition
9988           "operandsNotRelated" -- similar to "operandsNotSame", but takes
9989           architecture specific register naming into account, handles n-way
9990           comparisons, and supports quoted literals
9991         * src/mcs51/peeph.def: restored rule 177.d with an extra condition
9992
9993 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9994
9995         * src/mcs51/peeph.def: fixed bug #1076940
9996
9997 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
9998
9999         * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
10000
10001 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10002
10003         Adding support for replacing ljmps with sjmps in jumptables
10004         generated for switch statements. For now you need to set the
10005         environment variable SDCC_SJMP_JUMPTABLE to enable this.
10006         Now 4 algorithms for mcs51 jumptable generation are used:
10007         ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
10008         addresses loaded pc-relative for up to 112 cases and stack-pushing
10009         target addresses loaded with offset from dptr for up to 256 cases.
10010
10011         * src/SDCCpeeph.c: added peephole conditional labelJTInRange
10012         * src/mcs51/main.c: adapted constants for switch table generation
10013         * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
10014
10015 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
10016
10017         * device/lib/printf_large.c (_print_format): fixed bug 1073386
10018         * support/regression/tests/bug1057979.c: added test for bug 1073386
10019
10020 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
10021
10022         * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
10023         compilers
10024
10025 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
10026
10027         * src/pic16/device.h,
10028         * src/pic16/genarith.c,
10029         * src/pic16/glue.c,
10030         * src/pic16/main.c,
10031         * src/pic16/pcode.c: applied patches #1068154 and #1070213
10032
10033 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
10034
10035         Large cummulative patch for pic16 port.
10036         * device/lib/pic16/gstack.h: NEW, user can specify its own handler
10037         to call when a stack overflow occurs,
10038         * (malloc.h): added CVS Id tag,
10039         * (pic18f{242,252,442,452}.h): added T0CONbits structure and
10040         variable,
10041         * added libc directory. The current version of LibC contains string
10042         functions, ctype functions and macros and some functions of the
10043         stdlib set (like malloc/free/atof/atoi etc...). All functions are to
10044         be extensively tested in the future. Standard disclaimer here.
10045         Library is not automatically build yet. But one can build it by
10046         invoking 'make' inside the libc directory.
10047         * added ADC library under libio. Preliminary version yet.
10048
10049         * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
10050         * src/pic16/gen.c (aopForRemat): asmop size is filled by
10051         aopForRemat() now and not by pic16_aopOp(),
10052         * (pic16_popGetTempReg): removed warning messgae when allocating
10053         temporary registers, its a buggy feature and will be removed,
10054         * (pic16_popGet): set register instance field in AOP_CRY,
10055         * (pic16_outBitC): fixed for results in size greater than 1,
10056         * (genUminusFloat): fixed for pic16, ported code from mcs51,
10057         * (pic16_storeForReturn): optimized return of 0,
10058         * (genCmp): experimental code for new genCmp which uses PIC18's
10059         special compare&skip instructions. Initial tests fail some times
10060         with variables grater than 1 byte in size, so new code is disabled,
10061         * (genUnpackBits, genPackBits): more optimizations in reading/writing,
10062         a single bit,
10063         * (genCast): began a fix to optimize the casting of a bit to another
10064         bit, now assigning a bitfield to another bitfield will fail, sorry,
10065         * src/pic16/main.c: disabled the use of lr-support feature,
10066         * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
10067         * added some function prototypes, added function _debugf prototype,
10068         * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
10069         bits with offset (case PO_GPR_BIT),
10070         * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
10071         command line,
10072         * (isBankInstruction): modified to return 0 for no banking instruction,
10073         and 1 for banking instruction,
10074         * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
10075         caused stop processing pCodes after a inline assembly block,
10076         * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
10077         * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
10078         registers when it shouldn't,
10079         * src/pic16/ralloc.c (allocReg): add preliminary support for
10080         supporting a limited set of temporary registers,
10081
10082 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10083
10084         * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
10085           genDataPointerSet): ensure assignments always copy in MSB to LSB
10086           order,
10087           (loadRegFromAop): recognize CLRH optimization,
10088           (genFunction): optimize RECEIVE iCodes in reentrant functions
10089
10090 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10091
10092         * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
10093           --out-fmt-s19 turning into --out-fmt-elf if s19 was already
10094           selected.
10095         * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
10096         * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
10097           contiguous with data
10098
10099 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10100
10101         * device/lib/_gptrget.c (_gptrget),
10102         * device/lib/_gptrgetc.c (_gptrgetc),
10103         * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
10104           instead of sjmp to ret
10105         * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
10106           by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
10107
10108 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
10109
10110         * .version: bumped version to 2.4.7
10111         * device/lib/_gptrget.c (_gptrget): is now _naked
10112         * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
10113         * device/lib/_gptrput.c (_gptrput): is now _naked
10114         * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
10115           (createFunction): fixed xstack
10116         * src/SDCCglue.c (emitMaps): set allocation required for bit area
10117         * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
10118           or bit either,
10119           (geniCodeCritical): store original interrupt state in an iTemp bit
10120           var unless stack-auto
10121         * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
10122         * src/SDCCmain.c (setIncludePath): added include/target to search path
10123         * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
10124         * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
10125           prototype,
10126           (processFuncArgs): put bit vars in bit area
10127         * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
10128           unsaveRBank): fixed xstack,
10129           (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
10130           (genFunction, genEndFunction): fixed xstack,
10131           (genAssign): optimization don't walk backwards through mem
10132         * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
10133         * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
10134         * support/regression/Makefile: also make library (for stack-auto) when
10135           making "all" and added "test-mcs51-xstack-auto"
10136         * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
10137         * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
10138         * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
10139         * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
10140         * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
10141           make-library by MAKE_LIBRARY
10142         * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
10143           regression tests for xstack
10144         * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
10145         * support/regression/tests/critical.c: test for critical on mcs51
10146
10147 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10148
10149         * support/regression/ports/ucz80/spec.mk: use include and lib files from
10150           built version of sdcc instead of installed version
10151
10152 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
10153
10154         * src/mcs51/gen.c (toBoolean): fixed bug 1065458
10155         * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
10156           vprintf.c now
10157         * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
10158         * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
10159           WARNING: remove device/lib/build/z80/printf.o by hand when
10160           updating from previous build!
10161         * device/lib/z80/printf.c: updated comment
10162         * support/regression/tests/bug1057979.c: test all ports now
10163         * support/regression/tests/bug1065458.c: file added
10164
10165 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10166
10167         * src/z80/gen.c (genFunction, genEndFunction): avoided generating
10168           *_start and *_end symbols for static functions
10169
10170 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
10171
10172         * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
10173           and search crt0.o in all library paths,
10174           (setIncludePath): proper handling of --nostdinc,
10175           (setLibPath): proper handling of --nostdlib
10176         * support/regression/Makefile,
10177         * support/regression/ports/ds390/spec.mk,
10178         * support/regression/ports/gbz80/spec.mk,
10179         * support/regression/ports/hc08/spec.mk,
10180         * support/regression/ports/mcs51/spec.mk,
10181         * support/regression/ports/mcs51-large/spec.mk,
10182         * support/regression/ports/mcs51-stack-auto/spec.mk,
10183         * support/regression/ports/z80/spec.mk: use include and lib files from
10184           built version of sdcc instead of installed version
10185         * doc/sdccman.lyx: fixed typo in --nostdinc
10186
10187 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
10188
10189         * src/pic/pcode.c,
10190         * src/pic/device.c,
10191         * src/pic/ralloc.c,
10192         * src/pic/gen.c : added support to generate code for struct bit fields.
10193
10194 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
10195
10196         * as/xa51/xa_version.h,
10197         * device/include/errno.h,
10198         * device/include/regc515c.h,
10199         * device/lib/_itoa.c,
10200         * device/lib/_ltoa.c,
10201         * device/lib/ser_ir_cts_rts.c,
10202         * sim/ucsim/xa.src/glob.cc,
10203         * sim/ucsim/xa.src/inst_gen.cc,
10204         * sim/ucsim/xa.src/xa_bit.cc,
10205         * sim/ucsim/xa.src/xa_sfr.cc,
10206         * sim/ucsim/z80.src/inst_dd.cc,
10207         * sim/ucsim/z80.src/inst_fdcb.cc,
10208         * support/scripts/keil2sdcc.pl,
10209         * src/pic16/pic16.dsp,
10210         * src/pic16/pic16a.dsp: corrected cvs line endings
10211         * device/lib/printf_large.c: fixed bug 1057979
10212         * src/pic16/gen.c: fixed non-C standard code
10213         * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
10214         * src/SDCCglobl.h: changed pack_iram to no_pack_iram
10215         * support/regression/ports/mcs51/support.c: reload T1 asap
10216         * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
10217           pdata use and clear idata startup behaviour
10218         * support/regression/tests/bug1057979.c: added
10219
10220 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
10221
10222         * device/examples/ds390/ow390/ad26.h,
10223         * device/examples/ds390/ow390/cnt1d.h,
10224         * device/examples/ds390/ow390/crcutil.c,
10225         * device/examples/ds390/ow390/ownet.h,
10226         * device/examples/ds390/ow390/owsesu.c,
10227         * device/examples/ds390/ow390/swt12.h,
10228         * device/examples/ds390/ow390/swtoper.c,
10229         * device/examples/ds390/ow390/temp10.h,
10230         * device/examples/ds390/ow390/thermodl.c,
10231         * device/examples/ds390/tinitalk/tinitalk.dsp,
10232         * device/examples/ds390/tinitalk/tinitalk.dsw,
10233         * device/examples/mcs51/clock/hw.h,
10234         * device/examples/mcs51/simple2/go.bat,
10235         * device/examples/serialcomm/windows/serial.h,
10236         * device/examples/xa51/dummy.c,
10237         * device/examples/xa51/hello.c,
10238         * device/include/80c51xa.h,
10239         * device/include/at89x051.h: corrected cvs line endings
10240
10241 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
10242
10243         * src/pic16/main.c (options): added command line --gstack, to trace
10244         stack over/under flows,
10245         * added pragma 'wparam' to allow passing first byte of function
10246         parameters via WREG, syntax is #pragma wparam my_function[, func2...]
10247         * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
10248         call to __gstack_test function and sets up the symbol as extern,
10249         * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
10250         * popaop): added call to pic16_testStackOverflow,
10251         * (wParamCmp, inWparamList): NEW, test existence of a symbol in
10252         wparamList list,
10253         * (genCall, genPcall): now all parameters are passed via stack
10254         except in functions that are pass to wparam pragma in which WREG is
10255         used too,
10256         * (genPcall): REENTRANT flag is checked to see if variable prototype
10257         contains reentrant keyword, don't call a non-reentrant function, via
10258         a reentrant function pointer or vice versa, functions are never
10259         passed via WREG,
10260         * (genJumpTab): applied patch from bug #1057478 by R.Neider and
10261         D.Winkler,
10262         * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
10263         SIGSEGV when accessing a NULL register stucture,
10264         * (pic16_printGPointerType): modified to handle UPPER modifier for
10265         function initializers, changed prototype of function to simpler one,
10266         * (pic16_printIvalFuncPtr): check to see if function is already
10267         added in externs list,
10268         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
10269         optimized a move from W to SFR with a move to the same register
10270         later after a CALL,
10271         * device/lib/pic16/debug: NEW directory, contains debug features
10272         which are enabled when linking with libdebug.lib, currently command
10273         line option --gstack enables stack pointer tracing for over/under
10274         flow, corresponding sources are in debug/gstack
10275
10276 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
10277
10278         * doc/sdccman.lyx: updated SDCC version,
10279         * (PIC16 port): update list of command line options,
10280         * src/pic16/device.h (structure pic16_options_t): added field gstack
10281         to enable stack overflow tracing on push/pops,
10282         * src/pic16/device.c (statistics structure): added statistics
10283         structure,
10284         * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
10285         pic16_dump_int_registers): increase statistics counters for each
10286         * variable which is encountered
10287         * (pic16_dump_usection): emit each .udata variable to its own udata
10288         section,
10289         * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
10290         when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
10291         parameters via stack, otherwise use old scheme,
10292         * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
10293         assembler output file,
10294         * src/pic16/main.c: added command line options --gstack to enable
10295         push/pop tracing for stack overflow,
10296         * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
10297         instructions): added size of each instruction,
10298         * (pic16_countInstruction): estimate size of instructions in
10299         the_pFile list, inline assembly blocks are not counted,
10300         * (pic16_FixRegisterBanking): trace previous register usage, when
10301         banksel optimizations is greater than 0, don't emit a redudant
10302         banksel directive,
10303
10304 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
10305
10306         * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
10307         * src/pic16/ralloc.c : applied same fix for pic16.
10308         * src/pic/gen.c : tidied it up a little.
10309
10310 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10311
10312         * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
10313         thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
10314
10315 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10316
10317         * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
10318
10319 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10320
10321         * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
10322         non-reentrant function __modsint in the interrupt function (thus
10323         corrupting math operations during serial I/O)
10324         * device/lib/ser_ir.c: as above, changed buffersize
10325         * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
10326         256.c,d for zeroing
10327         * doc/Makefile: added option -t for rsync
10328
10329 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10330
10331         * src/SDCCast.h (struct ast),
10332         * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
10333
10334 2004-10-20 Borut Razem <borut.razem AT siol.net>
10335
10336         * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
10337         package
10338
10339 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
10340
10341         * device/lib/pic16/libsdcc/Makefile: added lregs directory in
10342         makefile targets,
10343         * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
10344         support functions to replace long sequences of MOVFF's from access
10345         bank registers to stack and vice versa,
10346         * src/pic16/device.h: added new field opt_flags, where optimization
10347         flags can be set to enable certain features,
10348         * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
10349         * pBlock, (genFunction, genEndFunction): surroung loop for
10350         saving/loading used registers in stack with PC_INFO pCodes,
10351         INF_LREGS. Code in between can then be optimized by pCode optimizer
10352         to support function calls,
10353         * (genDataPointerSet): fixed bug which loaded float fields in
10354         structures with corrupt data,
10355         * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
10356         in a standard way debug info on stderr. Feature used for developing
10357         and debugging only,
10358         * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
10359         obsolete chunks of code,
10360         * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
10361         * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
10362         * pic16/src/pcode.c (pic16_newpCodeInfo,
10363         * (pic16_newpCodeOpLocalRegs),
10364         * (pic16_convertLocalRegs2Support): NEW, to support new optimization
10365         feature,
10366         * (pic16_pCodeConstString): printing of the initial value of a
10367         symbol as a comment is inhibited since parsing was already done by
10368         copyStr and output is corrupt,
10369         * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
10370
10371 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10372
10373         * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
10374
10375 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
10376
10377         * as/mcs51/lkarea.c: removed old K&R style,
10378           (lnksect): changed check on boundary error,
10379           (lnksect2): changed check on boundary error,
10380           (lnksect2): extend XSTK to end of page if size = 1
10381         * as/mcs51/lkmain.c: removed old K&R style,
10382           (Areas51): create l_IRAM symbol
10383         * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
10384         * device/lib/Makefile.in: renamed model-mcs51-reentrant to
10385           model-mcs51-stack-auto, added model-mcs51-xstack-auto
10386         * device/lib/_mullong.c: added version to be compiled with xstack
10387         * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
10388         * device/lib/mcs51/crtxclear.asm: clear pdata as well
10389         * device/lib/mcs51/crtxstack.asm: fixed comment
10390         * src/SDCCglue.c: maxInterrupts defaults to 0,
10391           (emitMaps): added pdata,
10392           (createInterruptVect): (re)moved default,
10393           (glue): added pdata,
10394           (glue): moved __start__xstack to XSTK with default size 1
10395         * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
10396           and options.float_rent when options.stackAuto is set,
10397           (linkEdit): only write XDATA_NAME if provided on command line
10398         * src/SDCCmem.h,
10399         * src/SDCCmem.c: added pdata
10400         * src/port.h: added pdata_name to PORT
10401         * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
10402           (saveRegisters, unsaveRegisters): removed usage of B,
10403           (genMinus): fixed accumulator clash,
10404           (genJumpTab): added comment, this needs another look
10405         * src/mcs51/gen.c: added check for "B in use" paranoia,
10406           added pushB() and popB()
10407         * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
10408           chance
10409         * src/avr/main.c,
10410         * src/ds390/main.c,
10411         * src/hc08/main.c,
10412         * src/mcs51/main.c,
10413         * src/pic/main.c,
10414         * src/pic16/main.c,
10415         * src/xa51/main.c,
10416         * src/z80/main.c: (reset_regparms) made void parameter explicit and
10417           added PSEG (PAG,XDATA) or NULL to port specifier
10418         * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
10419         * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
10420           (_mcs51_genInitStartup): removed __start__xstack equ,
10421           (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
10422         * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
10423         * src/z80/gen.c (_rleAppend): fixed warnings
10424         * support/regression/tests/zeropad.c: added pdata test
10425         * .version: bumped to 2.4.6
10426
10427 2004-10-17 Borut Razem <borut.razem AT siol.net>
10428
10429         * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
10430         as a part of nightly build
10431
10432 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
10433
10434         * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
10435         WREG holds the first byte function parameters,
10436         * (aopForSym): take special case for symbols which are in FARSPACE
10437         but in CODESPACE too,
10438         * (assignResultValue): modified to take into account _G.useWreg,
10439         * (genCall): don't use wreg for parameter passing when function is
10440         declared as reentrant, too, added optimization INCF to stack
10441         pointer when stack parameter count is 1,
10442         * (genFunction, genEndFunction): refurnished and fixed to not using
10443         wreg for passing parameters when function has varargs or is
10444         reentrant, fixed bug with symbol name compare for generating
10445         functions in absolute address,
10446         * (pic16_storeForReturn): refurnished,
10447         * (genCmp): began writing a new version of the function, not ready
10448         yet, therefore it is disabled,
10449         * (genAssign): do not read code memory when assigning a function to
10450         a pointer function,
10451         * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
10452         array of characters, not pointer,
10453         * (pic16initialComments): in debug mode emit an .ident directive for
10454         the assembler,
10455         * (_process_pragma): emit a new warning type (internal to pic16)
10456         when setting stack to default length, emit a similar warning when
10457         placing a function at absolute address and address is not word aligned
10458         * (_pic16_parseOptions): added 'return TRUE' statement,
10459         * (_pic16_linkEdit): if compiling a source, then add the source's
10460         file object, first in the list of objects to link,
10461
10462 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
10463
10464         * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
10465         * src/pic/main.c : removed VC warning.
10466         * src/pic/gen.c : changed comment.
10467
10468 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
10469
10470         * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
10471         reference to a deprecated symbol _GPTRREG was causing failure to
10472         link. Thanks G. M. Gallant for the info.
10473
10474 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
10475
10476         * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
10477         comments for Bugs item #954788.
10478
10479 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
10480
10481         * src/pic16/device.c (pic16_dump_gsection,
10482         * pic16_groupRegistersInSection): handle symbols declared to be in
10483         access bank differently,
10484         * src/pic16/gen.c (struct _G): added field resDirect,
10485         * (aopForSym): if symbol on stack and iCode is '=' and result exists,
10486         send values read from stack directly to result and don't allocate
10487         temporary values,
10488         * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
10489         same registers,
10490         * (pic16_sameRegsOfs): NEW,
10491         * (freeAsmop): if _G.resDirect is set then do not mark registers as
10492         free because they were not allocated from temporary pool,
10493         * pic16_popRegFromString): workaround to fix a problem with
10494         allocating variables twice or never,
10495         * (genGenPointerGet): using PRODL instead of FSR0H,
10496         * (genGenPointerSet): using POSTDEC1 (that is a stack location)
10497         instead of FSR0H,
10498         * (genAssign): take advantage of the _G.resDirect flag,
10499         * (genCast): around line 11844, use mov2f instead of directly
10500         MOVFF'ing between operands to account for literal values,
10501         * src/pic16/genutils.c: some new debug functions for gpsim have been
10502         added,
10503         * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
10504         float with integer part only,
10505         * src/pic16/main.c (_process_pragma): handle pragma udata access to
10506         place variables in access bank
10507         * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
10508         updated sources to reflect recent changes in gen.c
10509
10510 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
10511
10512         * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
10513         sources that searched for headers in installation path, now the
10514         device/include/pic16 is used,
10515         * src/pic16/glue.c (pic16glue),
10516         * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
10517         .line directives if not in debug mode, this suppresses assembler's
10518         warnings for ignored directives
10519
10520 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
10521
10522         * src/port.h: made reset_regparms prototype void parameter explicit.
10523         * src/SDCCsymt.c (processFuncArgs): removed argument "func".
10524         * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
10525         * doc/sdccman.lyx: documented warning disabling and how to use
10526           printf_large to make it print floats.
10527         * device/include/stdbool.h: NEW
10528         * device/lib/_atof.c,
10529         * device/lib/_divuint.c,
10530         * device/lib/_divulong.c,
10531         * device/lib/expf.c,
10532         * device/lib/printf_large.c,
10533         * device/lib/sincosf.c,
10534         * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
10535         * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
10536           a completely reentrant lib.
10537
10538 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
10539
10540         * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
10541         * device/include/pic16/stdio.h: fixed bug with colon
10542
10543 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
10544
10545         * device/include/pic16/stdio.h,
10546         * device/include/pic16/stdlib.h,
10547         * device/include/pic16/math.h: NEW
10548         * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
10549         declared as _naked to reduce overhead
10550         * device/lib/Makefile.in (target port-specific-objects-pic16):
10551         changed * to *.* so to ignore the CVS directory,
10552         * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
10553         stacked variables back in stack,
10554         * (genEndFunction): fixed bug reported by G.M. Gallant with stack
10555         corruption
10556
10557 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
10558
10559         * .version: bumped version number to 2.4.5
10560         * support/Util/SDCCerr.h: added warning W_POSSBUG2.
10561         * support/Util/SDCCerr.c (messages structure): added entry for
10562         W_POSSBUG2
10563
10564         Large cumulative patch for pic16 port and libraries.
10565         * device/include/pic16/sdcc-lib.h,
10566         * device/include/pic16/stdarg.h,
10567         * device/include/asm/pic16/features.h,
10568         * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
10569         * device/include/pic16/float.h: changes reentrant keyword with
10570         _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
10571         * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
10572         updated target build-libraries to include objects from gptr,
10573         * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
10574         _IL_REENTRANT to all function headings, included sdcc-lib.h header,
10575         * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
10576         all function headings,
10577         * src/SDCCmain.c: added global parameter userIncDirsSet,
10578         * (parseCmdLine): when option -I is encountered add directory to
10579         userIncDirsSet too,
10580         * src/version.awk: added space between control and long,
10581         * src/pic16/NOTES: added some notes for the port,
10582         * src/pic16/gen.c: added prototype for mov2fp function,
10583         * (fReturnpic16[]): properly named return value registers,
10584         * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
10585         * (aopForSym): added code to handle symbols with onStack flag set,
10586         symbols onStack are allocated PTRSIZE bytes,
10587         * (aopFreeAsmop): handles special case where asmops are stack objects,
10588         * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
10589         * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
10590         added argument lock to trace flaws in allocating temporary registers
10591         when developing port,
10592         * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
10593         * (pic16_popRegFromString): reenabled allocating a direct register
10594         from string,
10595         * (assignResultValue): various beautifications,
10596         * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
10597         referenced function argument,
10598         * (genIpush): reenabled to allow stacked arguments, handles only
10599         ic->parmPush iCodes,
10600         * (genCall, genPcall): major changes to allow for variable argument
10601         functions, fixed a bug with falsely restoring stack pointer after
10602         returning from call,
10603         * (genFunction): pending code for critical function,
10604         * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
10605         * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
10606         * (genNearPointerGet): fixed bug with indirect reading, was always
10607         reading from INDF0
10608         * (genGenPointerGet, genGenPointerSet): rewrote to support generic
10609         pointers,
10610         * (genAddrOf): rewrote code to take address of a stacked function parameter
10611         * (genCast): fixed casting to generic pointer type,
10612         * src/pic16/gen.h: added AOP_STA,
10613         * (struct asmop): added field stk,
10614         * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
10615         * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
10616         * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
10617         * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
10618         * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
10619         * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
10620         generic pointers,
10621         * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
10622         and library paths,
10623         * (pic16_port structure): generic pointer size is set to 3,
10624         * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
10625         * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
10626         compiler warning,
10627         * src/pic16/ralloc.c (allocReg): prevent allocating register when
10628         operand is an iTemp,
10629
10630 2004-09-24 Martin Helmling <mh AT octo-soft.de>
10631
10632         * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
10633         * debugger/mcs51/simi.c: addapt new syntax of s51
10634
10635 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
10636
10637         * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
10638         * src/pic16/pcode.c: commented out some calls to free() in order to
10639         fix bug #989576,
10640
10641 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10642
10643         * src/SDCCicode.h,
10644         * src/SDCCicode.c (isiCodeInFunctionCall),
10645         * src/avr/ralloc.c (selectSpil),
10646         * src/pic/ralloc.c (selectSpil),
10647         * src/pic16/ralloc.c (selectSpil),
10648         * src/ds390/ralloc.c (selectSpil),
10649         * src/hc08/ralloc.c (selectSpil),
10650         * src/xa51/ralloc.c (selectSpil),
10651         * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
10652         stack in the middle of a function call sequence (fixes bug #1020268)
10653         * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
10654         costs associated with the minimum switch case.
10655
10656 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10657
10658         * src/SDCC.lex: fixed bug #1030549
10659
10660 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10661
10662         * src/SDCCcse.h (struct cseDef),
10663         * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
10664         over a function call if the CSE is derived from a symbol whose
10665         address has been taken (fixes bug #1029883)
10666         * support/regression/tests/bug-1029883: a new regression test for
10667         this bug
10668
10669 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10670
10671         * src/hc08/gen.c (emitinline): fixed bug #1029778
10672         * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
10673         to a cast object is no longer a syntax error ("fixes" bug #1030006,
10674         and starts toward RFE #905167)
10675
10676 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
10677
10678         * src/pic16/gen.c (mov2f): New function to move an operand to
10679         another without considering if it is a literal or a register,
10680         * (pic16_sameRegs): don't check if they are both AOP_REG,
10681         * (AccRsh): removed andmask=0 lines,
10682         * (genLeftShift): duplicated to be improved in future versions,
10683         * src/pic16/main.c (_process_pragma): emit stack default size in hex,
10684         * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
10685         in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
10686         * (pic16initMnemonics): added initialization for POC_INFSNZW,
10687         * (insertBankSwitch): fixed inserting banksel directives algorithm
10688         for instructions that follow a skip instruction, this fixes a report
10689         for broken subtraction code generation,
10690         * src/pic16/ralloc.c (deassignLRs): do not free register if current
10691         iCode is a left op, just in case result and right share the same
10692         registers
10693
10694 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10695
10696         * src/hc08/main.c,
10697         * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
10698         preservation of HX
10699         * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
10700         * src/mcs51/ralloc.c (packRegisters): removed the patch applied
10701         on 2004-09-12; it was buggy
10702
10703 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
10704
10705         * src/SDCCsymt.h: removed RESULT_CHECK
10706         * src/SDCCast.c,
10707         * src/SDCCglue.c,
10708         * src/SDCCval.c,
10709         * src/pic/glue.c,
10710         * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
10711
10712 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
10713
10714         * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
10715         * src/pic16/device.c (pic16_assignConfigWordValues): wrong
10716         configuration values no more rejected by compiler, they are assigned
10717         to configuration registers with a warning message instead,
10718         * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
10719         the for-loop so last conf register is emitted too,
10720         * (_pic16_initPaths): link library libsdcc.lib by default,
10721         * (_hasNativeMulFor): modified test for multiplication according to
10722         Raphael Neider's remarks. Integer multiplication is also done with
10723         support functions,
10724         * device/include/pic16/pic18fregs.h: corrected type error in while
10725         testing and including 18f6720 header file
10726
10727 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
10728
10729         * src/pic16/device.h (pic16_options): removed field use_crt,
10730         * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
10731         until an optimization to handle single bits is added,
10732         * (pic16_loadFSR0): moved before genUnpackBits,
10733         * (genAnd): some white lines removed,
10734         * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
10735         leave_reset flags in pic16_options when using crt modules,
10736
10737 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
10738
10739         * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
10740           for bugs 898889 & 979599. Also used some safer print instructions.
10741
10742 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
10743
10744         * src/pic16/device.h (pic16_options_t): added field use_crt,
10745         crt_name, no_crt,
10746         * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
10747         catch a probable future bug,
10748         * src/pic16/gen.c: aopIdx function commented out,
10749         * (genAssign): commented out old code which used aopIdx,
10750         * src/pic16/glue.c (pic16glue): removed some legacy fragments of
10751         code, added if conditionals to take into account the --use-crt
10752         command line options,
10753         * src/pic16/main.c (pic16_optionsTable): added new command line
10754         options, --use-crt= and --no-crt,
10755         * (_pic16_linkEdit): now the proper crt object is added in the
10756         linker command line except than when --no-crt is specified,
10757         * src/pic16/pcode.c,
10758         * src/pic16/pcode.h: added some structures and functions for a new
10759         optimization scheme to compansate for instruction overhead between
10760         same iCodes, this scheme is currently under development and is not
10761         working in any way,
10762         * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
10763         to && operator,
10764         * device/lib/pic16/startup/crt0i.c,
10765         * device/lib/pic16/startup/crt0iz.c: added global char variable
10766         __uflags to force the generation of an idata section
10767
10768 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
10769
10770         * doc/Makefile,
10771         * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
10772         * doc/sdccman.lyx: updated sdcc version to 2.4.4
10773
10774 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10775
10776         * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
10777         Frieder) and clarified the default code optimization mode
10778
10779 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10780
10781         * src/SDCC.lex (doPragma, process_pragma),
10782         * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
10783         "opt_code_size", and "opt_code_balanced"
10784         * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
10785         regrouped options by category, added support for category headers
10786         * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
10787         and "--opt-code-size"
10788         * doc/sdccman.lyx: documented these new options and pragmas
10789         * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
10790         preference into account
10791
10792 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
10793
10794         * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
10795           geniCodePreDec): Fixed bug 904237 by generating a warning
10796         * src/SDCCerr.h,
10797         * src/SDCCerr.c: added warning W_SIZEOF_VOID
10798
10799 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
10800
10801         * src/pic/device.c : When no max ram set validate full memory range.
10802         * src/pic/pcode.c,
10803         * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
10804
10805 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
10806
10807         * device/lib/_gptrget.c,
10808         * device/lib/_gptrput.c: updated comment
10809         * device/lib/calloc.c,
10810         * device/lib/free.c,
10811         * device/lib/malloc.c,
10812         * device/lib/realloc.c: added LGPL, made them reentrant-safe
10813         * src/SDCCcse.c (cseBBlock),
10814         * src/SDCCicode.c (printOperand, geniCodeArray),
10815         * src/SDCCicode.h (struct operand): fixed bug 868103
10816         * support/regression/tests/bug-868103.c: added
10817         * src/SDCCast.c (searchLitOp),
10818         * src/SDCCcse.h (struct cseDef),
10819         * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
10820         * src/SDCCicode.h (struct operand),
10821         * src/SDCCsymt.h (struct sym_link),
10822         * src/avr/gen.c (hasInc),
10823         * src/ds390/gen.c (hasInc),
10824         * src/hc08/gen.c (genPlusIncr, hasInc),
10825         * src/mcs51/gen.c (hasInc),
10826         * src/pic16/glue.c (pic16_printIvalChar),
10827         * src/pic16/ralloc.c (regWithIdx),
10828         * src/xa51/gen.c (hasInc) : removed warnings
10829         * src/SDCCast.c (createBlock): added comment ???
10830         * src/hc08/ralloc.c: updated comments
10831
10832 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10833
10834         * doc/sdccman.lyx: updated section on switch statements, added
10835         section about semaphore locking
10836         * doc/Makefile: added option -info for latex2html
10837         * device/lib/_gptrget.c,
10838         * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
10839
10840 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
10841
10842         * src/pic/device.h,
10843         * src/pic/device.c,
10844         * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
10845          maxram is less than 0x100.
10846
10847 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
10848
10849         * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
10850
10851 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10852
10853         * src/port.h,
10854         * src/mcs51/main.c,
10855         * src/ds390/main.c,
10856         * src/z80/main.c,
10857         * src/hc08/main.c,
10858         * src/pic/main.c,
10859         * src/pic16/main.c,
10860         * src/avr/main.c,
10861         * src/xa51/main.c
10862         * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
10863         a jump table is the best form for a switch statement, including
10864         automatic insertion of missing cases to make the case range
10865         continuous. Developed in collaboration with Frieder Ferlemann.
10866
10867 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10868
10869         * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
10870         accumulator result if it needs sign extension
10871
10872 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
10873
10874         * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
10875
10876 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
10877
10878         * device/lib/gbz80/printf.c,
10879         * device/lib/z80/printf.c: removed define for NULL
10880
10881 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
10882
10883         * as/xa51/xa_link.c,
10884         * device/examples/ds390/ow390/ad26.c,
10885         * device/examples/ds390/ow390/cnt1d.c,
10886         * device/examples/ds390/ow390/counter.c,
10887         * device/examples/ds390/ow390/ds2480.h,
10888         * device/examples/ds390/ow390/ds2480ut.c,
10889         * device/examples/ds390/ow390/findtype.c,
10890         * device/examples/ds390/ow390/gethumd.c,
10891         * device/examples/ds390/ow390/owllu.c,
10892         * device/examples/ds390/ow390/ownetu.c,
10893         * device/examples/ds390/ow390/swt12.c,
10894         * device/examples/ds390/ow390/swtloop.c,
10895         * device/examples/ds390/ow390/temp.c,
10896         * device/examples/ds390/ow390/temp10.c,
10897         * device/examples/ds390/ow390/thermo21.c,
10898         * device/examples/ds390/ow390/tinilnk.c,
10899         * device/examples/ds390/ow390/tstfind.c,
10900         * device/examples/serialcomm/windows/serial.cpp,
10901         * device/examples/serialcomm/windows/test_serialcomm.cpp,
10902         * device/include/reg51.h: fixed line endings for cvs
10903
10904 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10905
10906         * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
10907         packRegsForAccUse, packRegisters): new accumulator register
10908         packing algorithm
10909         * support/regression/ports/hc08/support.c (_putchar): suppress
10910         warning of unused variable
10911         * src/SDCCicode.c: added SWAP entry to codeTable
10912
10913 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
10914
10915         * device/lib/sprintf.c: forgot to add this file before previous commit
10916
10917 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
10918
10919         * src/pic16/gen.c (genPackBits): added operand right in function
10920         parameters, load result directly if p_type is POINTER (that is
10921         called by genNearPointerSet)
10922         * (genUnPackBits): added operand left in function parameters,
10923         * (genNearPointerGet, genNearPointerSet): prevent the loading of
10924         FSR0 if accessing bitfields,
10925
10926 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
10927
10928         * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
10929           _print_format; updated printf, sprintf, vsprintf
10930         * device/include/asm/default/features.h: corrected comment/define
10931         * device/lib/Makefile.in: added sprintf.c
10932         * device/lib/libsdcc.lib: added sprintf module
10933         * device/lib/printf_large.c,
10934         * device/lib/vprintf.c,
10935         * device/lib/sprintf.c: totally refactored printf_large and vprintf
10936           into these 3 files
10937         * support/regression/Makefile: changed ALL_PORTS into a usefull default
10938         * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
10939         * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
10940           hc08 test
10941         * support/regression/tests/zeropad.c: define idata as data for hc08
10942
10943 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10944
10945         * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
10946         * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
10947         labels are referenced at least once (even if a reference is not found)
10948         * src/hc08/gen.c (emitcode): set isComment flag for comments
10949         * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
10950         loads), rules 6a..6b (optimize jumps to return)
10951
10952 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10953
10954         * device/lib/acosf.c (acosf),
10955         * device/lib/asinf.c (asinf),
10956         * device/lib/atanf.c (atanf),
10957         * device/lib/ceilf.c (ceilf),
10958         * device/lib/cosf.c (cosf),
10959         * device/lib/coshf.c (coshf),
10960         * device/lib/cotf.c (cotf),
10961         * device/lib/fabsf.c (fabsf),
10962         * device/lib/floorf.c (floorf),
10963         * device/lib/log10f.c (log10f),
10964         * device/lib/logf.c (logf),
10965         * device/lib/sinf.c (sinf),
10966         * device/lib/sinhf.c (sinhf),
10967         * device/lib/sqrtf.c (sqrtf),
10968         * device/lib/tanf.c (tanf),
10969         * device/lib/tanhf.c (tanhf),
10970         * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
10971         replaced all instances of "reentrant" in the library functions
10972         defined in math.h with this macro.
10973         * support/regression/tests/float_trans.c: reenabled test for hc08
10974
10975 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
10976
10977         * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
10978         erroneously deleted
10979
10980 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10981
10982         * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
10983         * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
10984         multi-byte volatile operands are used
10985         * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
10986         * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
10987         initialization to area GSINIT0 so that it would always precede
10988         any static initializers in GSINIT
10989         * support/regression/tests/zeropad.c: fixed idata define for hc08
10990         * support/regression/tests/bug-927659.c,
10991         * support/regression/tests/float_trans.c: disabled tests for hc08
10992         pending missing library routines
10993         * .version: increased version number to 2.4.4 - hc08 port now passes
10994         regression tests
10995
10996
10997 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
10998
10999         * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
11000         * Makefile.common.in,
11001         * as/Makefile,
11002         * as/hc08/Makefile.in,
11003         * as/mcs51/Makefile.in,
11004         * as/z80/Makefile.in,
11005         * debugger/mcs51/Makefile.in,
11006         * device/include/Makefile.in,
11007         * device/lib/Makefile.in,
11008         * doc/Makefile,
11009         * link/Makefile,
11010         * link/z80/Makefile.in,
11011         * packihx/Makefile.in,
11012         * sim/ucsim/main_in.mk,
11013         * sim/ucsim/avr.src/Makefile.in,
11014         * sim/ucsim/doc/Makefile.in,
11015         * sim/ucsim/gui.src/serio.src/Makefile.in,
11016         * sim/ucsim/hc08.src/Makefile.in,
11017         * sim/ucsim/s51.src/Makefile.in,
11018         * sim/ucsim/xa.src/Makefile.in,
11019         * sim/ucsim/z80.src/Makefile.in,
11020         * src/Makefile.in,
11021         * support/cpp2/Makefile.in,
11022         * support/librarian/Makefile,
11023         * support/makebin/Makefile: added DESTDIR to the install path proposed
11024         by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
11025         * doc/sdccman.lyx: added DESTDIR documentation
11026
11027 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
11028
11029         * src/pic16/gen.c (genFunction, genEndFunction): fixed return
11030         instruction for interrupt handlers, use fast returns when returning
11031         from high priority interrupts
11032
11033 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11034
11035         * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
11036         code generation
11037         * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
11038         * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
11039         bugs, ported much of Bernhard's code from mcs51
11040         * src/mcs51/gen.c (genSend),
11041         * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
11042         than one when calling a reentrant function
11043         * device/lib/_mullong.c: defined an alternate struct layout for big
11044         endian ports (hc08)
11045
11046 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11047
11048         * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
11049         test
11050
11051 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11052
11053         * src/SDCCsymt.c (processFuncArgs): make sure parameter types
11054         are sane and complete before asking the port its prefered parameter
11055         passing method (fixes bug #1017633)
11056         * device/lib/hc08/_ret.c: added "data" storage class to _ret2
11057         and _ret3
11058
11059 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11060
11061         * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
11062         problem in bitfields >= 8 bits.
11063
11064 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
11065
11066         * src/SDCCsymt.c: undid changes that were not meant to be committed
11067
11068 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
11069
11070         * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
11071
11072 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
11073
11074         * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
11075           copied and wrong bit got inverted
11076
11077 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11078
11079         * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
11080         genFarPointerSet into genPointerSet; eliminated genFarPointerSet
11081         * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
11082         genFarPointerGet into genPointerGet; eliminated genFarPointerGet
11083         * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
11084         assignments to bitfields at known addresses
11085         * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
11086         reads from bitfields at known addresses
11087         * src/hc08/ralloc.c (packRegisters),
11088         * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
11089         genhc08Code): optimize pointer get values used as conditionals
11090         * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
11091         and branch
11092
11093 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11094
11095         * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
11096         genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
11097         * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
11098         as conditionals
11099
11100 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11101
11102         * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
11103
11104 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11105
11106         * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
11107         related problems
11108
11109 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
11110
11111         * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
11112
11113 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11114
11115         * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
11116         mcs51 port
11117
11118 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
11119
11120         * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
11121
11122 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11123
11124         * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
11125         cases use more compact code.
11126
11127 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
11128
11129         * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
11130
11131 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11132
11133         * src/SDCClrange.c (findPrevUse): fixed bug #1007371
11134
11135 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11136
11137         * src/SDCCsymt.h,
11138         * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
11139         parameter of changePointer() from symbol* to sym_link*
11140         * src/SDCCast.c (decorateType): call changePointer() for CAST op
11141         * src/SDCCsymt.c (compareType): void* type is castable to other
11142         pointers, but not necesarily an exact match.
11143         * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
11144         is no longer blindly treated as an exact match.
11145         * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
11146
11147 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
11148
11149         * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
11150
11151 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
11152
11153         * src/pic/gen.c,
11154         * src/pic/pcode.c,
11155         * src/pic/ralloc.h,
11156         * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
11157
11158 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
11159
11160         * src/pic/device.c,
11161         * src/pic/device.h,
11162         * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
11163
11164 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11165
11166         * src/mcs51/gen.c (emitcode): fixed bug #992819
11167
11168 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
11169
11170         * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
11171           there's no need to make it worse
11172
11173 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11174
11175         * src/mcs51/ralloc.c (deassignLR),
11176         * src/ds390/ralloc.c (deassignLR),
11177         * src/hc08/ralloc.c (deassignLR),
11178         * src/z80/ralloc.c (deassignLR),
11179         * src/pic/ralloc.c (deassignLR),
11180         * src/pic16/ralloc.c (deassignLR),
11181         * src/avr/ralloc.c (deassignLR),
11182         * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
11183         rlivePoint): fixed another part of bug #971834
11184
11185 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11186
11187         * src/z80/main.c: enabled "critical" keyword
11188         * src/z80/mappings.i,
11189         * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
11190         functions (fixes bug #979646)
11191         * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
11192
11193 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11194
11195         * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
11196           such as c:\mydir.
11197
11198 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
11199
11200         * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
11201           doesn't disable too much optimizations
11202
11203 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
11204
11205         * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
11206
11207 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
11208
11209         * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
11210
11211 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
11212
11213         * src/pic/gen.c tidied up tabs
11214         * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
11215         * src/pic/main.c tidied up tabs
11216         * src/pic/pcode.c tidied up tabs and disabled verbose code generation
11217         * src/pic/pcoderegs.c tidied up tabs
11218         * src/pic/ralloc.c tidied up tabs
11219
11220 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
11221
11222         * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
11223         to S_FIXED for pic16 port and when symbol is not in level 0,
11224         allocate for S_REGISTER storage class and pic16 port, too,
11225         * src/pic16/device.h: prototype for checkSym,
11226         * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
11227         * (pic16_assignConfigWordValue): test the value and the mask to
11228         validate that the value is suitable for the configuration word,
11229         * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
11230         collect extern declared symbols, don't emit symbol twice, check
11231         first if symbol is in publics set first,
11232         * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
11233         * added command line '--fstack' which enables an experimental
11234         feature for stack access, too buggy to be used yet...
11235         * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
11236         * (pic16_allocDirReg): when register has storage class S_REGISTER
11237         allocate in pic16_dynAccessRegs,
11238         * device/include/pic16/pic18f????.h: modified configuration word
11239         naming convention, words started as CONFIG0H but should be CONFIG1H
11240
11241 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
11242
11243         * device/include/mcs51reg.h: fixed bug 970993
11244
11245 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
11246
11247         * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
11248         * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
11249         * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
11250         * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
11251         * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
11252         * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
11253           error/warning numbers,
11254           added function setWarningDisabled()
11255         * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
11256         * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
11257           _memcmp.c _memmove.c calloc.c realloc.c free.c
11258         * support/regression/tests/malloc.c: added tests for new functionality
11259         * support/regression/tests/zeropad.c: added tests for truncated initializers
11260           and initialized char arrays starting with '\x0'
11261         * src/mcs51/peeph.def: fixed regression, added peephole 177.f
11262
11263 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
11264
11265         * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
11266
11267 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11268
11269         * doc/sdccman.lyx: updated example in section "Absolute Addressing"
11270         * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
11271         peephole 177.e. Thanks to anonymous
11272
11273 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
11274
11275         * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
11276         function isn't used in the source but referenced as a
11277         variable initializer then declare it as extern in .asm file
11278
11279 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
11280
11281         * .version: increased version number to 2.4.3
11282
11283         Adding version extension according to ChangeLog CVS revision
11284         * src/Makefile.in (target all): added dependency 'version.h'
11285         * (rule version.h): added rule to create version.h from ChangeLog,
11286         * (rule dep): added dependency version.h,
11287         * src/version.awk: AWK script to create version.h
11288         * src/SDCCdwarf2.c (dwWriteModule),
11289         * src/SDCCglue.c (initialComments),
11290         * src/SDCCmain.c (printVersionInfo): modified to write after
11291         version string the version extension number,
11292         * src/SDCCutil.c: included "version.h"
11293         * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
11294         number,
11295         * src/SDCCutil.h: added prototype for getBuildNumber
11296
11297         * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
11298         includeDirsSet, too,
11299         * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
11300         const char [] is found in function prototype...
11301
11302         * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
11303         moving to WREG with source is already in WREG,
11304         * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
11305         * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
11306         * (aopForSym): stack'ed symbols are partially supported, added
11307         if-clause to support symbols in FARSPACE,
11308         * (sameRegs): added test for AOP_ACC to see if registers are same,
11309         * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
11310         * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
11311         * (pic16_popRegFromString): will not allocate a new register if it
11312         doesn't find one by name, bug may have introduced...
11313         * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
11314         * (genIpush): revived to use pic16 port's stack,
11315         * (genAddrOf): added incomplete case for stack'ed operand,
11316         * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
11317         * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
11318         can handle multibyte operands,
11319         * src/pic16/glue.c (pic16_printIval*): some debug info added,
11320         * (pic16initialComments): added message for MPLAB compatibility
11321         mode enabled,
11322         * src/pic16/main.h: prototype for pic16_mplab_comp,
11323         * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
11324         which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
11325         * (_pic16_linkEdit): NEW, handles link stage, transferred here
11326         because of increased complexity of procedure,
11327         * (_process_pragma): stack pragma changed to format 'stack pos len',
11328         emit symbol '_stack_end' to conform with gplink,
11329         * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
11330         to search for register,
11331         * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
11332         PO_GPR_REGISTER,
11333         * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
11334         #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
11335         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
11336         case for PO_GPR_REGISTER,
11337         * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
11338         dies, the new era is ahead !...
11339         * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
11340         pic16_dynInternalRegs,
11341         * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
11342         * (pic16_allocDirReg): minor optimizations and bug fixes,
11343         * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
11344
11345         * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
11346         load stack and frame pointer with address of 'stack_end' symbol
11347
11348 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
11349
11350         * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
11351         without source code but only variable initializers
11352
11353 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
11354
11355         * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
11356         external are not declared as extern to reduce overhead while linking
11357
11358 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
11359
11360         * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
11361
11362 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
11363
11364         * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
11365           Yee Keat for the patch
11366         * src/SDCCast.c (decorateType): fixed bug #979599
11367         * src/ds390/gen.h: removed local fReturnSizeDS390
11368         * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
11369         * src/ds390/gen.c (genAnd, genOr, genXor),
11370         * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
11371
11372 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
11373
11374         * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
11375         add relFilesSet to $3, manipulate $2 to handle linking of object
11376         files without source files in command line,
11377         * device/include/pic16 (all headers): added ID location macros,
11378         * src/pic16/device.c (struct PIC16_device Pics16[]): added field
11379         entries for ID location bytes,
11380         * (pic16_assignIdByteValue): NEW,
11381         * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
11382         added field dumpcalltree to pic16_options_t,
11383         * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
11384         is used instead of pic16_Gstack_base_addr, check if (ifx) before
11385         emitting rFalseIfx label after check_carry label,
11386         * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
11387         pic16_emitDIRegs), NEW
11388         * (pic16glue): dump .calltree file when option --calltree found,
11389         * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
11390         * (_pic16_genAssemblerPreamble): emit ID locations after
11391         configuration registers,
11392         * (pic16_linkCmd): modifications of the link command,
11393         * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
11394         * (pic16_pCodeInitRegisters): don't init stack registers,
11395         * (pic16_findPrevInstruction): fixed bug,
11396         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
11397         bug with immediate registers,
11398         * (buildCallTree): traces stack push and pop,
11399         * (pct2): dump also stack usage for each function,
11400         * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
11401         * (pic16_allocDirReg): various modifications,
11402         * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
11403         fixed to 1,
11404
11405 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
11406
11407         * src/pic16/pcode.c: removed buggy double colon
11408
11409 2004-07-01 Borut Razem <borut.razem AT siol.net>
11410
11411         * support/scripts/sdcc.nsi: added include/pic16 to setup
11412
11413 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
11414
11415         * device/lib/Makefile.in: fixed bug in target objects-pic16,
11416         * device/lib/pic16/Makefile: prefixed with dash (-) command under
11417         target 'clean',
11418         * doc/sdccman.lyx: changed version to 2.4.2 and added some port
11419         specific command line arguments. Also added sample lkr script
11420         for placing a variable at a specific memory bank.
11421         * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
11422         at a specific memory bank,
11423         * (pic16_dump_isection): fixed bug which caused string literals to
11424         be omitted when dumping idata section,
11425         * (pic16_groupRegistersInSection): added code to handle registers
11426         in specific memory banks,
11427         * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
11428         public, all references are renamed too,
11429         * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
11430         AOP_DPTR2,
11431         * (pic16_storeForReturn): added case to handle when dest is WREG,
11432         * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
11433         * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
11434         pic16_rel_udata, check to see if that register is marked as being
11435         a member of a specific memory bank,
11436         * (pic16_printIvalCharPtr): added code to add string literals either
11437         to code or the idata sections,
11438         * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
11439         also accept the 'udata' pragma,
11440         * src/pic16/main.h: new structure types sectName and sectSym
11441         * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
11442         * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
11443         * (pic16_findPrevInstruction): fixed, it returned nothing,
11444         * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
11445         instruction combinations,
11446         * (pic16_FixRegisterBanking): heavily reorganised,
11447         * (pic16_AnalyzeBanking): if generating banksel directives is
11448         disabled, then don't call FixRegisterBanking at all,
11449         * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
11450         completely removed,
11451         * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
11452
11453 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
11454
11455         * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
11456         Phuah Yee Keat <yk.phuah AT nestac.com>
11457
11458 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
11459
11460         * src/pic16/glue.c (pic16createInterruptVect): function now emits
11461         correctly the IVT even if it is relocated to some other location
11462
11463 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
11464
11465         * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
11466         * device/include/pic16/pic18f2220.h: NEW,
11467         * device/lib/pic16/libdev/pic18f2220.c: NEW,
11468         * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
11469         * src/pic16/device.c (struct Pics16): added info for 18f2220,
11470         * src/pic16/device.h (struct pic16_options): added ivt_loc and
11471         nodefaultlibs, ivt_loc is the location of the interrupt vector
11472         table, and nodefaultlibs signs that default libraries should not be
11473         linked in link stage,
11474         * src/pic16/gen.c (genFunction): relocate interrupt vector functions
11475         according to --ivt-loc argument,
11476         * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
11477         when pragma stack is found,
11478
11479 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11480
11481         * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
11482         256 (range check), 257 (do while), 258.a-f (bit banging
11483         f.e. on 3-wire SPI bus)
11484
11485 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11486
11487         * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
11488         variables used exclusively within a loop
11489
11490 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
11491
11492         * src/mcs51/gen.c (genCpl): quick fix for bug #974835
11493
11494 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11495
11496         * src/SDCClrange.c (computeClash): fixed bug #971834
11497
11498 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11499
11500         * src/mcs51/gen.c (genCmp): fixed bug #975903
11501         * src/hc08/gen.c (operandsEqu),
11502         * src/ds390/gen.c (operandsEqu),
11503         * src/z80/gen.c (operandsEqu),
11504         * src/pic/gen.c (operandsEqu),
11505         * src/pic16/gen.c (operandsEqu),
11506         * src/mcs51/gen.c (operandsEqu): fixed bug #976283
11507         * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
11508
11509 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11510
11511         * src/SDCCcse.c (cseBBlock): fixed bug #966963
11512
11513 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
11514
11515         * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
11516         default case in switch statement,
11517         * glue.c (pic16_initPointer): expr is initialised via decoarteType
11518         to eliminate problem with initialisation of pointers, but problem
11519         still exists,
11520         * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
11521         * (emitStaticSegment): removed various lines emitting debug info,
11522         * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
11523         added processor registers for utilizing EEPROM,
11524         * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
11525         configurable and set 8
11526
11527 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
11528
11529         * .version: increased version number to 2.4.2,
11530
11531         Cumulative patch for pic16 port
11532         * src/pic16/device.c: changed scheme to dump initial values for
11533         variables in idata segment, all print_idata* functions were removed,
11534         now the pic16_printIval* will be called,
11535         * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
11536         * _pic16_printPointerType, pic16_printPointerType,
11537         * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
11538         * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
11539         NEW, similar to the respective functions in SDCCglue.c,
11540         * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
11541         way, emitting hex bytes,
11542         * (pic16_emitDS): NEW, emits a string for pointer initialisation,
11543
11544 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11545
11546         * src/avr/ralloc.c (serialRegAssign),
11547         * src/xa51/ralloc.c (serialRegAssign),
11548         * src/pic/ralloc.c (serialRegAssign),
11549         * src/pic16/ralloc.c (serialRegAssign),
11550         * src/hc08/ralloc.c (serialRegAssign),
11551         * src/z80/ralloc.c (serialRegAssign),
11552         * src/ds390/ralloc.c (serialRegAssign),
11553         * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
11554
11555 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11556
11557         * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
11558         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
11559
11560 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
11561
11562         Cumulative patch for pic16 port:
11563         * src/pic16/device.h (typedef PIC16_device) modified fields for
11564         defining microcontrollers,
11565         * src/pic16/device.c: added new info for all devices in Pics16 array,
11566         * src/pic16/gen.c (genPcall): fixed bug that caused the return label
11567         to be optimised out by the pCode optimiser,
11568         * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
11569         specially, bug reported by G.M. Gallant,
11570         * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
11571         as force'd so that cannot be optimised out by pCode optimiser,
11572         * src/pic16/pcode.c,
11573         * src/pic16/pcodepeeph.c,
11574         * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
11575         they are disabled by default, but can be enabled explicit with
11576         command argument --denable-peeps, for testing,
11577         * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
11578         --pomit-ivt in COMPILE_FLAGS
11579
11580 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
11581
11582         * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
11583           compilation on MSVC
11584
11585 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
11586
11587         * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
11588
11589 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11590
11591         device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
11592         0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
11593
11594 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
11595
11596         * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
11597         would only assign 0x300001 register.
11598
11599 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
11600
11601         * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
11602         in COMPILE_FLAGS. Thanks to G. Gallant for report.
11603
11604 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11605
11606         * doc/sdccman.lyx: minor changes, mentioned beta vendor support
11607         for ds80c400
11608         * src/mcs51/peeph.def: ran unexpand -a over peeph.def
11609         * src/mcs51/peeph.def: removed obsolete peephole 100.a,
11610         added peephole 254 (left shift), 255 (jump table)
11611
11612 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
11613
11614         * device/lib/Makefile.in: removed comment line with model-pic16,
11615         * (target port-specific-objects-pic16): the libraries and objects
11616         are copied to the build directory form the device/lib/pic16/bin
11617         directory
11618
11619         Cumulative patch concerning pic16 port:
11620         * library directory has been re-organized,
11621         * added support for PIC18F1220,
11622         * added headers and library sources for chips 18f1220,18f6520,
11623         18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
11624
11625         * configuration registers setting has changed, now each supported
11626         device has a complete description of the registers it uses,
11627         * all initialisations are moved to idata sections, these section
11628         can be absolute or relocatable,
11629         * fixed initialisation of codespace variables,
11630         * fixed warning about PCLATU and gpsim,
11631         * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
11632         * (genAssign): use table reads when assigning from variables in codespace,
11633         * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
11634         char/int variables placed in codespace,
11635         * (pic16_emitConfigRegs): NEW, emits a list with configuration
11636         registers set in .asm file, no need for --pomit-config-words anymore,
11637         * (pic16glue): some 8051 legacy segments are commented out
11638         (to be removed completely),
11639         * added support for alternative assembler and linker with --asm=
11640         and --link= command line arguments,
11641         * peepholes are disabled automatically in the port, no need to
11642         specify on command line,
11643         * port supports natively char/int/long multiplication, but converts
11644         all divisions to support functions,
11645         * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
11646         to the file set in variable $2,
11647         * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
11648         strings in ASCII format and not in hex,
11649         * ralloc.c (serialRegAssign): added a triplet of conditional calls
11650         to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
11651         allocate proper register if iCodes aren't temporary,
11652
11653 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
11654
11655         * support/regression/tests/zeropad.c: added TEST_G macro for alpha
11656
11657 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
11658
11659         * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
11660         is commented out
11661
11662 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11663
11664         * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
11665         computed address is reused
11666         * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
11667         multi-byte bitfields
11668
11669 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
11670
11671         * src/z80/gen.c: (genArrayInit): must check for pointers too
11672
11673 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
11674
11675         * support/regression/tests/zeropad.c: never meant to commit the
11676           nestedstruct test: removed, added check for GCC version
11677
11678 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
11679
11680         * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
11681         * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
11682         * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
11683           printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
11684           bugs 928906 and 954082 half-empty initializers
11685         * src/SDCCsymt.h,
11686         * src/SDCCsymt.c (getAllocSize): added for above fix
11687         * src/z80/gen.c (genArrayInit): fixed bug 741044
11688         * support/regression/tests/zeropad.c: added tests
11689
11690 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
11691
11692         * src/pic16/device.c (pic16_dump_section): corrected bug which
11693         caused some symbols of the libraries to be misplaced
11694
11695 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
11696
11697         * src/pic16/glue.c,
11698         * src/pic16/ralloc.h,
11699         * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
11700         to fix conflict with pic port
11701
11702 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
11703
11704         * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
11705         externs configuration variables,
11706         * src/pic16/ralloc.h,
11707         * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
11708         prototype in header, commented out some debug messages
11709
11710 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
11711
11712         * src/pic16/glue.c,
11713         * src/pic16/main.c,
11714         * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
11715         for gpasm COFF object generation. Thanks to D. Hawkins for
11716         his patch info
11717
11718 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11719
11720         * src/ds390/main.c,
11721         * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
11722         Brock for spotting this)
11723         * src/ds390/gen.c (genEndFunction),
11724         * src/mcs51/gen.c (genEndFunction): always save psw if function is an
11725         interrupt handler and critical. Disable push/pop optimizations when
11726         peephole optimizations disabled.
11727
11728 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
11729
11730         Updated pic16 library sources and headers.
11731         * device/lib/pic16/pic18f*/ ,
11732         * device/include/pic16/*.h: modified to handle structured SFR
11733         definitions
11734
11735 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
11736
11737         * src/port.h (PORT structure): added hook initPaths, now each
11738         port can declare its own default search paths,
11739         which can been seen with the --print-search-dirs option,
11740         see pic16 port for example,
11741         * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
11742         setDataPaths): test to options.printSearchDirs is ifdef'ed out,
11743         * (doPrintSearchDirs): NEW, replaces in a central manner the
11744         printing of search dirs which was split in set*Paths functions,
11745         * (main): added call to port->initPaths and doPrintSearchDirs,
11746         * src/avr/main.c,
11747         * src/ds390/main.c,
11748         * src/hc08/main.c,
11749         * src/izt/i186.c,
11750         * src/izt/tlcs900h.c,
11751         * src/mcs51/main.c,
11752         * src/pic/main.c,
11753         * src/pic16/main.c: modified port structures to reflect addition of
11754         initPaths hook,
11755
11756         * src/pic16/device.c (regCompare): registers are finally sorted by name,
11757         * (pic16_dump_section): for registers in same address reserve memory once,
11758         * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
11759         to no_banksel,
11760         * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
11761         result is greater in size than right or left,
11762         * (pic16_genUMult8X8_8): there are some cases where the result can
11763         be 16 bits size, so handle these,
11764         * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
11765         * (pic16_outBitC): modified to emit pcodes,
11766         * (pic16_storeForReturn): using is_LitOp to see if operand is literal
11767         or not,
11768         * (genDivOneByte): implemented algorithm to divide 8-bits,
11769         * (genCmp): uncommented goto, but issues still exist,
11770         * (genAnd): fixed a bug with variables >8bits,
11771         * (genPackBits): optimization added that uses BCF/BSF to change a
11772         single bit,
11773         * (genAssign): fixed bug when assigning floating point literals,
11774         * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
11775         __sdcc_gsinit_startup label,
11776         * src/pic16/main.c (_pic16_init): removed search directory
11777         initialisations,
11778         * (_pic16_initPaths): NEW, used to initialise search directories,
11779         * (_hasNativeMulFor): support functions for all except char/int
11780         multiplication, and char division,
11781         * (PIC16_port struct): modified entry for native mul support,
11782         * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
11783         no_banksel option,
11784         * (buildCallTree): call to register_usage is ifdef'ed out,
11785
11786 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11787
11788         * device/include/string.h: applied Stas Sergeev's patch to make this
11789         header file compatible with the preprocessor -Wundef option
11790         * src/SDCCmain.c (main): abort compilation if preprocessor reports
11791         failure (fixes bug #941458)
11792
11793 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11794
11795         * src/SDCCopt.c (killDeadCode): fixed bug #907733
11796         * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
11797         that the variable, not the function, should be static
11798         * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
11799         to be consistent with non-literal case
11800
11801 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11802
11803         * src/SDCCast.c (isConformingBody): fixed bug #949967
11804         * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
11805         convilong): fixed bug #952086
11806
11807 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11808
11809         * src/SDCCmem.c (allocVariables): fixed bug #955321
11810
11811 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11812
11813         * src/hc08/main.c (_hc08_genAssemblerEnd),
11814         * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
11815         dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
11816         completely eliminated the use of a temporary file
11817         * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
11818         when more than one file linked
11819         * src/SDCCloop.c (pointerAssigned): fixed bug #954163
11820
11821 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11822
11823         * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
11824         which fixes bug #543481
11825         * support/regression/tests/bug-751703.c: fixed comments left from a
11826         cut and paste error
11827         * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
11828         * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
11829         * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
11830         scopes
11831         * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
11832         * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
11833         are now changed to underscores in moduleName
11834
11835 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11836
11837         * as/mcs51/lkmem.c: better fix for bug #954173
11838
11839 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
11840         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11841
11842         * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
11843         * device/include/c8051f000.h,
11844         * device/include/c8051f120.h,
11845         * device/include/c8051f300.h,
11846         * device/include/c8051f310.h,
11847         * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
11848         PWM16) and detab'ed
11849
11850 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11851
11852         * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
11853         and mailing lists, doc'ed --no-peep-comments, removed reference
11854         to knoppix (newest version has no LyX/LaTeX), other minor changes
11855         * src/SDCCglue.c (glue): save 2 bytes stack space with
11856         option --main-return. The ljmp could probably be avoided too
11857
11858 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11859
11860         * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
11861
11862 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11863
11864         * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
11865         * src/SDCCopt.c (isLocalWithoutDef),
11866         * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
11867         which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
11868         (credit to Maarten Brock for patch #949363, on which this is based)
11869         * support/regression/tests/bug-751703.c: some test cases of extern used
11870         within inner scopes.
11871
11872 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11873
11874         * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
11875         SPEC_STRUCT
11876         * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
11877         struct definitions
11878         * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
11879         dwWriteLabel): fix to create valid debugger symbols even when
11880         the module name has non-alphanumeric symbols in it
11881         * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
11882         when a variable's allocation has been optimized away
11883
11884
11885 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11886
11887         * src/hc08/gen.c (hc08_emitDebuggerSymbol),
11888         * src/hc08/main.c,
11889         * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
11890         * src/mcs51/main.c,
11891         * src/ds390/gen.c (ds390_emitDebuggerSymbol),
11892         * src/ds390/main.c,
11893         * src/z80/gen.c (z80_emitDebuggerSymbol),
11894         * src/z80/main.c,
11895         * src/pic/gen.c (pic14_emitDebuggerSymbol),
11896         * src/pic/main.c,
11897         * src/pic16/gen.c (pic14_emitDebuggerSymbol),
11898         * src/pic16/main.c,
11899         * src/avr/gen.c (avr_emitDebuggerSymbol),
11900         * src/avr/main.c,
11901         * src/xa51/gen.c (xa51_emitDebuggerSymbol),
11902         * src/xa51/main.c,
11903         * src/SDCCdebug.c (emitDebuggerSymbol),
11904         * src/SDCCdebug.h,
11905         * src/port.h: added a debugger struct to the port struct. Added a
11906         callback for defining debugger symbols
11907
11908         * src/SDCCast.c (createLabel),
11909         * src/SDCC.y (labeled_statement): mark all compiler generated labels
11910         with isitmp = 1
11911         * src/SDCCicode.h,
11912         * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
11913         iCode back to the ast for the function
11914
11915         * src/hc08/ralloc.c (hc08_assignRegisters),
11916         * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
11917         unneeded fields from the regs struct.
11918         * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
11919         pushReg() & pullReg() functions instead of emitcode()
11920
11921         * src/hc08/gen.c (genLabel, genhc08Code),
11922         * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
11923
11924         * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
11925         debugger hooks
11926
11927         * src/hc08/gen.c (genEndFunction, genhc08Code),
11928         * src/hc08/gen.h,
11929         * src/mcs51/gen.c (genEndFunction, gen51Code),
11930         * src/mcs51/gen.h,
11931         * src/ds390/gen.c (genEndFunction, gen390Code),
11932         * src/ds390/gen.h,
11933         * src/z80/gen.c (genEndFunction, genZ80Code),
11934         * src/z80/gen.h,
11935         * src/z80/z80.h,
11936         * src/pic/gen.c (genEndFunction, genpic14Code),
11937         * src/pic/gen.h,
11938         * src/pic16/gen.c (genEndFunction, genpic16Code),
11939         * src/pic16/gen.h,
11940         * src/avr/gen.c (genEndFunction, genAVRCode),
11941         * src/avr/gen.h,
11942         * src/xa51/gen.c (genEndFunction, genXA51Code),
11943         * src/xa51/gen.h,
11944         * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
11945         specific code to cdbFile.c and out of the backend code generators
11946
11947         * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
11948         * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
11949         starting address is now 0
11950
11951         * as/hc08/asm.h,
11952         * as/hc08/m08pst.c,
11953         * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
11954         assembler directive for DWARF support
11955         * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
11956
11957         * src/src.dsp,
11958         * src/Makefile.in,
11959         * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
11960
11961 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11962
11963         * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
11964         and inappropriate peephole optimization in jump tables
11965
11966 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11967
11968         * as/hc08/m08pst.c,
11969         * src/SDCCglue.c: sdccopt works for the hc08 port now
11970
11971 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
11972
11973         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
11974
11975 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11976
11977         * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
11978
11979 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11980
11981         * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
11982         rules
11983         * src/SDCCmain.c,
11984         * src/SDCCglobl.h,
11985         * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
11986         comments from the peephole optimizer replacement rules
11987         * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
11988         symbols
11989         * src/SDCCcse.c (updateSpillLocation),
11990         * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
11991         equivalents
11992         * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
11993         * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
11994         objects far pointers
11995
11996 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11997
11998         * src/SDCCsymt.h: a missing part of my last change
11999         * src/pic/ralloc.c (regTypeNum),
12000         * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
12001
12002 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12003
12004         * src/SDCCicode.h,
12005         * src/SDCCicode.c (aggrToPtrDclType),
12006         * src/SDCCptropt.h,
12007         * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
12008         ptrPseudoSymConvert),
12009         * src/pic/ralloc.c (regTypeNum),
12010         * src/pic16/ralloc.c (regTypeNum),
12011         * src/hc08/ralloc.c (regTypeNum),
12012         * src/ds390/ralloc.c (regTypeNum),
12013         * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
12014         creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
12015
12016 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12017
12018         * link/z80/lkmain.c (afile),
12019         * as/hc08/lkmain.c (afile),
12020         * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
12021         prevent a pointer problem when a filename has no directory and
12022         no extension specified.
12023
12024 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12025
12026         * link/z80/lkmain.c (afile): allow periods in directory names
12027         * link/z80/lkmain.c (afile),
12028         * as/mcs51/lkmain.c (afile),
12029         * as/hc08/lkmain.c (afile): allow linker script file to have an
12030         extension other than ".lnk"
12031         * link/z80/lklex.c (getfid),
12032         * link/z80/lkmain.c (parse),
12033         * as/mcs51/lklex.c (getfid),
12034         * as/mcs51/lkmain.c (parse),
12035         * as/hc08/lklex.c (getfid),
12036         * as/hc08/lkmain.c (parse): Support comments in the linker script
12037         file on lines by themselves and after filenames
12038
12039 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12040
12041         * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
12042
12043 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12044
12045         * src/z80/peeph-z80.def: removed some peephole rules that don't
12046         work with multibyte arithmetic (fixed bug #937126)
12047         * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
12048         to registers and not global variables
12049         * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
12050         geniCodePreInc, geniCodePostDec, geniCodePreDec,
12051         geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
12052         checking for assignments not internally generated (fixed bug #931895)
12053         * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
12054         structure member (fixed bug #930072)
12055
12056 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12057
12058         * src/SDCCmain.c (linkEdit),
12059         * src/hc08/main.c (_hc08_parseOptions),
12060         * as/hc08/Makefile.in,
12061         * as/hc08/aslink.h,
12062         * as/hc08/asm.h,
12063         * as/hc08/m08pst.c,
12064         * as/hc08/lkrloc.c (relr, rele),
12065         * as/hc08/lkarea.c (lnkarea)
12066         * as/hc08/lkmain.c (afile, parse),
12067         * as/hc08/lkelf.c: support for ELF output
12068         * as/hc08/lks19.c (s19),
12069         * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
12070
12071 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12072
12073         * as/mcs51/lkihx.c: Fixed bug #899105.
12074
12075 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12076
12077         * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
12078         .dsp files from Unix to DOS.
12079
12080 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12081
12082         * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
12083         function pointers; we have been compliant for several months now.
12084         * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
12085         change that was accidently commented out
12086         * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
12087         genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
12088         bug #922319
12089
12090 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12091
12092         * src/hc08/gen.c: output of all of the internal debugging information
12093         is now controlled by the D() macro; it is disabled by default
12094
12095 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12096
12097         * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
12098         harder to keep the same registers during a CAST iCode
12099         * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
12100         long via int can be done in a single cast, if the signedness is
12101         correct.
12102         * support/regression/tests/bug-927659.c: fixed to avoid conflict with
12103         putchar() in tinibios.c in ds390's library
12104
12105 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
12106
12107         * src/SDCCast.c (decorateType): fixed bug #898889,
12108         cast result of a literal complement too
12109         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
12110         fixed check for bitfields
12111
12112 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
12113
12114         * src/SDCCicode.c (geniCodeLogic): made it static,
12115         (geniCodeLogicAndOr): added in order to fix bug #905492,
12116         (ast2iCode): fixed bug #905492
12117         * support/regression/tests/bug-905492.c: added
12118         * src/SDCCast.c (decorateType): don't decorate/process parms twice,
12119         (processParms): fixed bug #927659: don't copy parms, this will clear
12120         decorated flag
12121         * support/regression/tests/bug-927659.c: added
12122
12123 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
12124
12125         * src/SDCCast.c (addCast): don't cast float to char
12126         * device/lib/libsdcc.lib: added _memmove
12127
12128 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
12129
12130         * device/lib/large/Makefile: fixed parallel execution by
12131         replacing `make` by `$(MAKE)`
12132
12133 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12134
12135         * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
12136         offsets (fixes bug #923936)
12137
12138 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
12139
12140         * device/lib/small/Makefile: fixed parallel execution by
12141         replacing `make` by `$(MAKE)`
12142
12143 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
12144
12145         * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
12146
12147 2004-03-23  Scott Dattalo  <scott AT dattalo.com>
12148
12149         * src/pic/gen.c (genCpl): multi-byte complements were not working.
12150         * src/regression/Makefile: Regression test was not running.
12151
12152 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
12153
12154         * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
12155         complement if possible
12156         * src/SDCCval.c (valComplement),
12157         * src/SDCCicode.c (operandOperation): fixed complement of literal
12158         * support/regression/tests/onebyte.c (testComplement): added
12159
12160 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
12161
12162         * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
12163         return an optimized tree; actually replace actParm with the new tree
12164         * src/SDCCast.h: added some parantheses to remove side effects
12165         * support/regression/tests/bug-920866.c
12166
12167 2004-03-21  Scott Dattalo  <scott AT dattalo.com>
12168         * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
12169         Bit operands were not being handled properly in the pic14 port.
12170         (now src/regression/add.c passes again).
12171
12172 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12173
12174         * src/SDCC.y (labeled_statement): case and default no longer require
12175         a following statement (RFE #893037)
12176
12177 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12178
12179         * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
12180         use MOVA macro to avoid "mov a,acc" when peephole optimizer is
12181         disabled (fixes bug #916294)
12182         * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
12183         "mov a,acc"; patch provided by Lenny Story
12184         * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
12185
12186 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12187
12188         * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
12189         functions
12190         * src/ds390/gen.c (genFunction, genEndFunction),
12191         * src/ds390/ralloc.c (ds390_assignRegisters),
12192         * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
12193         * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
12194         pushed if there are parameters passed on the stack. Also, a cleaner
12195         way to decide if r0/r1 should be pushed/popped. (Together they fix
12196         bug #918693)
12197
12198 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12199
12200         * doc/sdccman.lyx,
12201         * device/lib/mcs51/crtpagesfr.asm,
12202         * device/lib/mcs51/crtxinit.asm,
12203         * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
12204         to avoid confusion with Si Lab's SFRPAGE register.
12205
12206 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12207
12208         * src/SDCCglue.c (emitMaps): allow public sfr variables
12209         * src/SDCCglue.c (initialComments): include compiler build date
12210         with compiler version and put the timestamp of the generated
12211         assembly file on a serperate line to be less confusing.
12212         * src/port.h: added genInitStartup hook
12213         * src/avr/main.c,
12214         * src/ds390/main.c,
12215         * src/hc08/main.c,
12216         * src/pic/main.c,
12217         * src/pic16/main.c,
12218         * src/xa51/main.c,
12219         * src/z80/main.c: genInitStartup initialize as NULL (default to
12220         historical behaviour)
12221         * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
12222         * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
12223         _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
12224         library instead of hard coding it into the compiler.
12225         * support/regression/ports/mcs51-stack-auto/spec.mk,
12226         * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
12227         * device/lib/mcs51/Makefile,
12228         * device/lib/small/Makefile,
12229         * device/lib/large/Makefile,
12230         * device/lib/mcs51/crtpagesfr.asm,
12231         * device/lib/mcs51/crtstart.asm,
12232         * device/lib/mcs51/crtxclear.asm,
12233         * device/lib/mcs51/crtxinit.asm,
12234         * device/lib/mcs51/crtclear.asm,
12235         * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
12236         startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
12237         and into user configurable files.
12238         * device/lib/clean.mk: clean mcs51 directory too
12239         * support/regression/tests/longlit.c: added static to T1 declaration
12240         * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
12241         accesses in the initialization code
12242
12243 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12244
12245         * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
12246         OSCTRIMVAL as noted in bug #916008
12247
12248 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12249
12250         * src/SDCCloop.c (basicInduction): fixed bug with loop induction
12251         in loops with multiple exits (reported as incorrect registers
12252         used by Martin Helmling in Sdcc-user list)
12253
12254 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12255
12256         * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
12257         made ds390 register extensions look less like error messages
12258
12259 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12260
12261         * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
12262         reported by Adam Wozniak in Sdcc-user list
12263
12264 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
12265
12266         * src/SDCCast.c (decorateType): fixed with bug and promotion in
12267         arithmetic optimizations, added debug output
12268
12269 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
12270
12271         * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
12272         * sdcc.spec: updated and split sdcc into 3 rpms
12273         * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
12274         needed for literals of LEFT_OP and '+'
12275         * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
12276         introduced RESULT_TYPE_NOPROM
12277         (geniCodeMultiply): fixed logic for decision if mul is optimized to
12278         left shift
12279         * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
12280         limited promotion to int only for '*'
12281         * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
12282
12283 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
12284
12285         * src/pic16/gen.c (genSkip),
12286         (genc16bit2lit), (gencjneshort): commented out
12287         (is_LitOp): new helper function, checks operand type
12288         (genCmpEq): rewritten
12289
12290 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
12291
12292         * support/regression/tests/bug-908454.c: added
12293
12294 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
12295
12296         * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
12297         * src/SDCCicode.c (usualBinaryConversions): op needs int type
12298         (geniCodeCast): cosmetic, don't preserve bit storage class
12299         (geniCodeLeftShift): added promotion
12300         (geniCodeLogic): fixed regression
12301         * src/SDCCsymt.c (computeTypeOr): accept bits too
12302         (compareType): 2nd part of fix for bug #908454, needed for bitfields
12303
12304 2004-03-07  Borut Razem <borut.razem AT siol.net>
12305
12306         * support/Util/findme.c: alloca() replaced with malloc()/free() pair
12307
12308 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
12309
12310         * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
12311         version of pic16_genPackRegisters which does not check if ic is a
12312         CAST operator,
12313         * src/pic16/gen.c (ifxForOp): disabled new and untested code in
12314         function cause string1.c regression test fails
12315
12316 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
12317
12318         * sim/ucsim/configure.in,
12319         * sim/ucsim/configure,
12320         * sim/ucsim/doc/Makefile.in: use docdir
12321         * src/SDCC.y: fixed sbit atrributes
12322         * src/SDCCast.c (getResultTypeFromType): added support for bitfields
12323         * src/SDCCast.c (decorateType): |^& need special promotion handling
12324         * src/SDCCast.h,
12325         * src/SDCCsymt.h: moved definition of RESULT_TYPE
12326         * src/SDCCsymt.h (computeType),
12327         * src/SDCCicode.c: computeType() needs op
12328         * src/SDCCsymt.c (checkTypeSanity),
12329         * doc/sddman.lyx: "plain" bitfields are unsigned
12330         * src/SDCCsymt.c (computeTypeOr): added
12331         * src/SDCCsymt.c (computeType): added support for bitfields, fixed
12332         |^& ops
12333         * src/SDCCval.c (val*): computeType() needs op
12334         * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
12335         * support/regression/tests/onebyte.c: added tests for |^&
12336
12337 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
12338
12339         * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
12340         for writing icode into asm output.
12341
12342 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
12343
12344         * src/pic16/device.c: added some debug lines enabled
12345         with macro DEBUG_CHECK,
12346         * src/pic16/genarith.c: more debug in genPlus,
12347         * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
12348         * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
12349         * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
12350         * (aopForSym): onStack symbols are re-placed in data memspace,
12351         and onStack flag is cleared,
12352         * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
12353         copy temporary pcodeop,
12354         * (genPcall): added warning for not updating PCLATU,
12355         * (genFunction): removed test with IFFUNC_CALLEESAVES, its
12356         always true for pic16 port,
12357         * (genMultOneWord): NEW, supports integer multiplication,
12358         * (genMult): modified to call genMultOneWord,
12359         * (ifxForOp): added warning when return NULL,
12360         * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
12361         flag is set before call to operandFromSymbol for implicit
12362         added structures,
12363         * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
12364         options.intlong_rent are set by default,
12365         * (_hasNativeMulFor): modified to allow port generation of integer
12366         multiplication,
12367         * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
12368         set regtype to REG_SFR for all registers, restricting seting the
12369         accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
12370
12371 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12372
12373         * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
12374         more than 500 times in the regression tests
12375
12376 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12377
12378         * support/Util/SDCCerr.h,
12379         * support/Util/SDCCerr.c,
12380         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
12381         enumerator_list),
12382         * src/SDCCsymt.c (addSymChain): show location of oriignal definition
12383         for symbol conflicts.
12384         * support/valdiags/tests/enum.c,
12385         * support/valdiags/tests/tentdecl.c,
12386         * support/valdiags/tests/struct.c: expect possible error messages
12387         referring to original symbol definitions.
12388         * src/SDCC.y (struct_or_union_specifier, struct_declarator),
12389         * src/SDCCsymt.h,
12390         * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
12391
12392 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
12393
12394         * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
12395
12396 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
12397
12398         * src/pic16/ralloc.c (newReg): fixed bug #908929
12399
12400 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12401
12402         * src/ds390/gen.c: added missing #include "main.h"
12403
12404 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
12405
12406         * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
12407         checking if symbol is already in set,
12408         * src/pic16/device.h: prototype for checkAddSym,
12409         * src/pic16/gen.c: (_G): added entry interruptvector,
12410         * (assignResultValue): removed some commented out lines,
12411         * (genFunction): check for ISR via sym->type, absolute section for
12412         interrupt code is created via a new pBlock, the goto instruction is
12413         placed now correctly at the interrupt vector position, changed all
12414         references from ivec to _G.interruptvector,
12415         * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
12416         is the interrupt is a high priority one, same for return from ISR,
12417         * src/pic16/glue.c: changed all calls of addSetHead for publics and
12418         externs to calls of checkAddSym,
12419         * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
12420         pic16_pcode_verbose flag is set,
12421         * src/pic16/pcode.h: extern to pic16_pcode_verbose,
12422         * src/pic16/pcoderegs.c: message about how many registers are saved
12423         will only be emitted if pic16_pcode_verbose flag is set,
12424
12425 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12426
12427         * src/ds390/ralloc.h,
12428         * src/ds390/ralloc.c (ds390_regWithIdx),
12429         * src/ds390/gen.c (emitcode),
12430         * src/ds390/main.h,
12431         * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
12432         ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
12433         ds390operandCompare, getRegsRead, getRegsWritten,
12434         initializeAsmLineNode): customized instruction size calculation for
12435         ds390, started basis for some register optimizations
12436         * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
12437         corresponding assembly output
12438         * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
12439         missing push/pop of r0/r1. Optimized push/pops
12440
12441 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12442
12443         * src/mcs51/main.c (instructionSize): fixed ACALL size
12444         * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
12445
12446 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
12447
12448         * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
12449         the sorting of rlist with NULL elements
12450         * (print_idataType, print_idata): NEW to create idata sections
12451         * src/pic16/device.h: idataSymSet new variable
12452         * src/pic16/gen.c (genFunction): fixed some bugs in string
12453         comparing, improved the absolute section creation for ISRs,
12454         added FSR0L/FSR0H in registers that are saved in an ISR,
12455         * (genInline): fixed the processing of inline snippets,
12456         now they undergo no process by the peephole optimizer
12457         * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
12458         are placed in idataSymSet,
12459         * (pic16emitStaticSeg): extern symbols are added in externs,
12460         * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
12461         switching when aboslute variables are placed in access bank memory
12462         * (pic16_writeUsedRegs): added call to pic16_dump_idata,
12463         * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
12464         commented out with #if,
12465         * (pic16_packRegisters): reintroduce the check for CAST because some
12466         symbols are not correctly handled,
12467         * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
12468         pCodeInstruction instead of pCode,
12469         * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
12470         pCodeAsmDir definition,
12471         * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
12472         directive, then the argument directive is emitted without the leading
12473         tab, hack for inline labels which must be in the first column,
12474         * (compareLabel,pic16_findNextInstruction),
12475         * (pic16_findPrevInstruction): added case for PO_ASMDIR,
12476         * (insertBankSwitch): modified for the new pCodeAsmDir,
12477
12478 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
12479         patch applied by Vangelis Rokas <vrokas AT otenet.gr>
12480
12481         * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
12482         instance,
12483         * (pushSide): commented out with #if,
12484         * (assignResultValue): fixed some typos in saving
12485         registers,
12486         * (genPcall): FIXED and sync'ed with genCall,
12487         * (genDataPointerGet,genDataPointerSet): using offset not leoffset
12488         * (genNearPointerGet): fixed to handle some more cases,
12489         implementation scheme via table reads,
12490         * (genConstPointerGet): modified to access code memory correct,
12491         * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
12492         and improved to handle some cases
12493         * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
12494         instead of "RETLW" for init data
12495         * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
12496         not IN_DIRSPACE, work around to reduce bank switching when aboslute
12497         variables are placed in access bank memory (<0x80 and >=0xf80),
12498         * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
12499         TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
12500         TBLWT_POSTDEC,TBLWT_PREINC
12501         * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
12502         * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
12503         directives
12504         * (pic16_pCodeConstString): use "DB" instead of "RETLW"
12505         * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
12506         pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
12507         * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
12508
12509 2004-02-29  Borut Razem <borut.razem AT siol.net>
12510
12511         * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
12512         support/Util/findme.h, support/Util/system.h: enhance binary relative
12513         search for lib and include by using findProgramPath()
12514
12515 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12516
12517         * src/SDCCpeeph.h,
12518         * src/SDCCpeeph.c (pcDistance),
12519         * src/port.h,
12520         * src/mcs51/ralloc.h,
12521         * src/mcs51/ralloc.c (mcs51_regWithIdx),
12522         * src/mcs51/main.h,
12523         * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
12524         mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
12525         mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
12526         size calculation port specific, started basis for some register
12527         optimizations
12528         * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
12529         missing push/pop of r0/r1. Optimized push/pops
12530         * src/mcs51/ralloc.c (packregisters): fixed bug #727095
12531         * device/lib/_modsint.c (_modsint),
12532         * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
12533         and stack version so regression tests pass
12534
12535 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
12536
12537         * src/Makefile.in (dep): include SLIBOBJS in dependency check
12538         * src/SDCCast.c (decorateType): catch another small optimization
12539         with '?' operator
12540         * src/SDCCsymt.c (computeType): added comments and cosmetic changes
12541         * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
12542         modified to finally use computeType() all over SDCC,
12543         see Feature Request #877103
12544         * src/SDCCval.h: cosmetic
12545         * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
12546         valCompare(); regression tested in muldiv.c
12547         * support/regression/tests/muldiv.c (testMod): mod sign follows
12548         dividend only
12549
12550 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
12551
12552         * src/SDCCast.c (decorateType): fixed bug #902362
12553         * doc/INSTALL.txt: fixed install instructions for win32
12554
12555 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
12556
12557         * device/include/Makefile.in (install): fixed by replacing spaces
12558         by tabs
12559         * doc/README.txt,
12560         * doc/INSTALL.txt: updated for release
12561         * doc/sdccman.lyx: added warning for --xstack being buggy
12562
12563 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
12564
12565         * src/pic16/ralloc.c (packRegsForAccUse):  disabled functions with #if
12566         to eliminate build warnings.
12567         * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
12568
12569 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
12570            Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
12571
12572         * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
12573         removed -penable-stack, added comment for stack pragma, added
12574         warning for not initializing the stack/frame registers, removed
12575         comment at interrupts section
12576
12577         Stack is made permanent, there is no ability to disable stack usage.
12578         * src/pic16/device.h,
12579         * src/pic16/device.c: removed all references to USE_STACK macro,
12580         * src/pic16/device.c (pic16_dump_section): when no elements in
12581         rlist, free rlist before return,
12582         * (pic16_dump_int_registers): NEW, internal registers are a new set
12583         of general purpose registers reused by each function,
12584         * (checkAddReg): returns 1 if registers is added to set,
12585         * (pic16_groupRegistersInSection): when a registers is of type
12586         PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
12587         * src/pic16/device.h: memRange and Assigned Memory are deleted,
12588         SRCASECMP macro is moved here from device.c
12589         * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
12590         PO_PCLATU, PO_PRODL, PO_PRODH,
12591         * (pic16_pCodeOpType, genMinus,
12592         changed compares to "a" register, with AOP_ACC,
12593         * (pic16_genPlus): fixed some bugs and indented properly,
12594         * (pic16_addSign): changed size to size+offset in the MOVWF
12595         instruction,
12596         * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
12597         multiply 8-bit operand by literal, result is 8-bit,
12598         * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
12599         multiply 2 8-bit operand, result is 8-bit,
12600         * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
12601         genUMult8X*_16,
12602         * src/pic16/gen.c: changed accUse to contain WREG only,
12603         * (pic16_emitcomment): renamed to pic16_emitpcomment,
12604         * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
12605         true, do not use immediate addressing any more unless sym is a
12606         pointer in codespace,
12607         * (aopForRemat): do not use immediate addressing when symbol not in
12608         codespace and when symbol's address is requested,
12609         * (aopOp): for-loop in if(sym->accUse) is modified for the new
12610         accUse size (= 1),
12611         * (aopGet): added case for AOP_ACC and don't return "accumulator
12612         bug" but WREG instead,
12613         * (popGetTempReg): pushes contents of temporary register in stack,
12614         * (popReleaseTempReg): pops contents of temporary register from
12615         stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
12616         * (pic16_popGet): separated case AOP_ACC to return register WREG
12617         from processor registers, AOP_PCODE not checks if pcop is PO_DIR
12618         or PO_IMMEDIATE and initializes their instance/offset appropriately,
12619         * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
12620         the use of immediate pointers to certain cases only.
12621
12622         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
12623         * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
12624         * (assignResultValue, genCall, genRet): modified to use the new
12625         function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
12626         genPcall is still broken,
12627         * (genFunction): added code to create 'A' type pBlocks when
12628         interrupt functions are generated, code not extensively tested yet,
12629         ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
12630         * (genEndFunction): modified so ISRs pop stored registers from stack,
12631         * (genMultOneByte): cleanup,
12632         * (AccRsh): added flag andmask, to and result with appropriate mask,
12633         * (genUnpackBits,genPackBits): fixed and can handle bit fields,
12634         * (genDataPointerGet): fixed and reenabled its use,
12635         * (genNearDataPointerGet): bugs fixed,
12636         * (genDataPointerSet): bugs fixed,
12637         * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
12638         pic16_DumpSymbol, pic16_DumpOp,
12639         * src/pic16/genutils.h: function prototypes for the above functions,
12640         * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
12641         pointers,
12642         * (pic16emitRegularMap): many many many improvements, but needs a
12643         major cleanup,
12644         * src/pic16/main.c: enable_stack in pic16_options is removed,
12645         * (_pic16_parseOptions): removed command line options -penable-stack,
12646         * (_process_pragma): emit stack symbol only when stack pragma is
12647         processed,
12648         * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
12649         redirected to FSR0L/FSR0H pair,
12650         * (pic16_get_op, pic16_get_op2): modifications and improvements,
12651         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
12652         cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
12653         for immediates,
12654         * (insertBankSwitch): modified to handle cases like: (alfa + 1)
12655         * (dumpPicOptype): NEW,
12656         * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
12657         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
12658         with movff instruction,
12659         * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
12660         added pic16_int_regs, some packRegsFor* functions are commented out,
12661         because produce errors,
12662         * src/pic16/NOTES: minor modifications
12663
12664 2004-02-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12665
12666         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
12667         as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
12668         --pack-iram.
12669         * doc/sdccman.lyx: described options --stack-size and --pack-iram.
12670         * as/mcs51/lkaomf51.c: fixed bug #895763
12671
12672 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
12673
12674         * device/include/c8051f320.h: added. Contributed by Maarten Brock.
12675
12676 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12677
12678         * doc/sdccman.lyx: added details about the HC08 storage classes and
12679         interrupts, fixed the register usage info for z80 & gbz80
12680
12681 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
12682
12683         * doc/sdccman.lyx: added more pic16 port documentation
12684         * device/include/pic16/: added header pic18fregs.h
12685
12686 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
12687
12688         * doc/sdccman.lyx: added Vangelis' contribution
12689
12690 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12691
12692         * src/SDCClrange.c (rlivePoint): live range of SEND operand should
12693         extend to the next CALL or PCALL, not just to the next CALL.
12694
12695 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
12696
12697         * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
12698
12699 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12700
12701         * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
12702         bug #895752 and a better fix for bug #716790
12703
12704 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12705
12706         * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
12707
12708 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12709
12710         * doc/sdccman.lyx: minor changes, minor changed
12711
12712 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
12713
12714         * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
12715         which can't handle SDCC_NEWONEBYTEOPS,
12716         (geniCodeMultiply): removed conversion from mult to shift for pic14
12717         and pic16
12718
12719 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12720
12721         * src/hc08/gen.h,
12722         * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
12723         rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
12724         thus fixing bug #895406
12725
12726 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
12727
12728         * device/lib/_modsint.c,
12729         * device/lib/_modslong.c: sign follows divisor only
12730         * src/hc08/gen.c (genMultOneByte): if result size is 1,
12731         signs or signedness can be ignored
12732         * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
12733         * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
12734         added optimization for IFX,
12735         (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
12736         arguments;
12737         reenabled optimization for IFX, which was removed on 2004-01-11
12738         * src/SDCCast.h: added return type IFX
12739         * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
12740         arguments with 8 or 16 bit results; pic14 and pic16 ports use old
12741         promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
12742         SDCC_OLDONEBYTEOPS selects the old behaviour
12743         * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
12744         changed again and commented promotion rule
12745         * src/SDCCval.c (valDiv): promotion no longer necessary
12746         * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
12747         * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
12748         rewritten
12749         * support/regression/tests/onebyte.c: added
12750
12751 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
12752
12753         * gen.c (genInline): reverted to old code for assemnling inline
12754         code because of bug reported James Chadd
12755
12756 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
12757
12758         * ralloc.h: missing declarations from previous patch,
12759         seems that patch for ralloc.h was never applied, fixed
12760
12761 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
12762            patch committed by Vangelis Rokas <vrokas AT otenet.gr>
12763
12764         * pcode.c,
12765         * pcode.h,
12766         * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
12767         indirect addressing. Marked FSR0 as deprecated
12768         * gen.c (pointerCode): commented out, not needed now
12769         (pic16_popGet2p): new MOVFF helper function
12770         (genGenPointerGet),
12771         (genGenPointerSet): reimplemented with MOVFF and POSTINC0
12772         (shiftRLong): removed duplicate debugging info
12773
12774 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12775
12776         * src/ds390/gen.c (genNearPointerGet),
12777         * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
12778         optimization with bits, but not bitfields.
12779         * src/ds390/ralloc.c (packRegisters),
12780         * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
12781
12782 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
12783
12784         * src/SDCCcse.c (algebraicOpts): copy operands before modification
12785
12786 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12787
12788         * src/SDCCsymt.h,
12789         * src/SDCCicode.c (operandFromSymbol),
12790         * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
12791         * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
12792         * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
12793         * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
12794         * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
12795         * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
12796         bug #892038
12797         * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
12798         * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
12799         printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
12800         * src/SDCCsymt.c (newSymbol),
12801         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
12802         enumerator_list),
12803         * src/SDCCval.h,
12804         * src/SDCCval.c (newiList): fixed bug #885705
12805
12806 2004-02-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12807
12808         * doc/sdccman.lyx: added section 3.1.4: sdcclib.
12809         * as/mcs51/lkmem.c: report the size of the stack in .mem file.
12810
12811 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12812
12813         * device/include/c8051f120.h,
12814         * device/include/c8051f300.h,
12815         * device/include/c8051f310.h: added/updated header files for Silicon
12816         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
12817         * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
12818         in new section Submitting patches
12819
12820 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12821
12822         * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
12823         genFarPointerGet, genCodePointerGet, genGenPointerGet,
12824         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
12825         genGenPointerSet),
12826         * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
12827         genFarPointerGet, genCodePointerGet, genGenPointerGet,
12828         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
12829         genGenPointerSet),
12830         * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
12831         genFarPointerGet, genCodePointerGet, genGenPointerGet,
12832         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
12833         genGenPointerSet),
12834         * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
12835         genFarPointerGet, genCodePointerGet, genGenPointerGet,
12836         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
12837         genGenPointerSet): fixed bug #892400
12838         * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
12839         to eliminate build warnings.
12840         * src/SDCCast.c (processParms),
12841         * src/SDCC.y (function_declarator2, declarator2_function_attributes):
12842         fixed bug 751859
12843         * support/valdiag/valdiag.py: added GCC to the list of defines active
12844         when compiling with gcc
12845
12846 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12847
12848         * support/Util/SDCCerr.h,
12849         * support/Util/SDCCerr.c,
12850         * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
12851         with an incomplete type (fixed bug #883734)
12852         * src/SDCCicode.c (geniCodeCast): fixed bug #890510
12853
12854 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12855
12856         * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
12857
12858 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12859
12860         * src/SDCCast.c (decorateType),
12861         * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
12862         function pointer implementation
12863         * support/regression/tests/funptrs.c: added tests to verify both forms
12864         of function pointers work correctly. Added tests to verify parameters
12865         are passed in the correct order.
12866
12867 2004-02-06  Vangelis Rokas <vrokas AT otenet.gr>
12868
12869         * device.c (regCompare): registers are sorted by ascending
12870         address and increasing size,
12871         * main.c (_pic16_finaliseOptions): removed the declaration
12872         of compiler macro MCU. Now a macro of the format pic18fxxxx
12873         will be defined from the command line
12874
12875 2004-02-06  Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
12876             patch committed by Vangelis Rokas <vrokas AT otenet.gr>
12877
12878         * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
12879         PCOP_RLCF was overwritten!
12880         * gen.c (genSkip): commented out calls to pic16_emitcode,
12881         * (genCmpEQ): fixed "long" compares, only high word did get compared,
12882         * (genlshTwo),
12883         * (genRRC): added debugging info,
12884         * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
12885         overwritten while shifting,
12886         * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
12887         overwritten while shifting,
12888         * (AccLsh),
12889         * (AccRsh),
12890         * (shiftLLeftOrResult),
12891         * (shiftRLeftOrResult),
12892         * (shiftRLong),
12893         * (shiftLLong): Implemented with pic16_emitpcode
12894         * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
12895         * (genLeftShift): Fixed bug, operand for shift by variable always
12896         was "and"ed with 0x0f,
12897         * (genLeftShiftLiteral),
12898         * (genrshTwo),
12899         * (genRightShiftLiteral): added debugging info,
12900         * (genrshFour): added comment,
12901         * (genRightShift): determined signedness from operand "left"
12902         instead of "result"
12903
12904 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12905
12906         * src/SDCCicode.c (geniCodeParms),
12907         * src/SDCCast.c (decorateType, processParms): support for ANSI-style
12908         function pointers, fixed function pointer bugs #861242 and #861896
12909
12910 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12911
12912         * device/include/c8051f000.h,
12913         * device/include/c8051f120.h,
12914         * device/include/c8051f300.h: added header files for Silicon
12915         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
12916
12917 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
12918
12919         * src/SDCCast.c (processParams): added new type flow and restructured
12920         (gatherAutoInit): added new type flow
12921         (addCast): cosmetic changes
12922         (getLeftResultType): added new type flow for array indices, patch
12923         provided by Stas, see FR #877103
12924         (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
12925         array index patch by Stas
12926         * src/SDCCast.h: added prototype getResultTypeFromType()
12927         * src/SDCCval.h,
12928         * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
12929         * src/pic/glue.c (pic14emitStaticSeg),
12930         * src/pic16/glue.c (pic16emitStaticSeg),
12931         * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
12932         for initialization of symbols
12933         * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
12934         * support/Util/SDCCerr.h:
12935         * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
12936         * .version: bumped version number to 2.3.8
12937         * device/include/Makefile.in (install),
12938         * doc/Makefile (install): changed to 'rm `find ...`' construct to
12939         avoid warnings
12940
12941 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
12942
12943         * support/regression/tests/libmullong.c: fixed for 64 bit hosts
12944         Slade Rich fixed an optimization bug
12945         * src/pic/pcodepeep.c,
12946         * src/pic/pcoderegs.c
12947         * doc/Makefile (install): added test for directory
12948
12949 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12950
12951         * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
12952         * src/ds390/ralloc.c (getRegPtr, getRegGpr),
12953         * src/pic/ralloc.c (getRegPtr, getRegGpr),
12954         * src/pic16/ralloc.c (getRegPtr, getRegGpr),
12955         * src/z80/ralloc.c (getRegGpr): fixed bug #883361
12956         * as/mcs51/asexpr.c (term),
12957         * as/hc08/asexpr.c (term): fixed bug #887146
12958
12959 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12960
12961         * src/z80/gen.c (genMult): handle single byte result product
12962         * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
12963         DUMMY_READ_VOLATILE (fixed bug #886367)
12964
12965 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
12966
12967         * support/regression/tests/libmullong.c: fixed logic, on little endian
12968         hosts we ended without a mullong_wrapper()
12969
12970 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12971
12972         * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
12973         virus/worm forged address usage.
12974
12975 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
12976
12977         Fixed promotion, it should be done on AST level:
12978         * src/SDCCast.c (addCast): added promotion to int
12979         (decorateType): updated call to upCast()
12980         * src/SDCCicode.c (geniCodeLeftShift): removed call to
12981         usualUnaryConversions()
12982
12983 2004-01-26  Michael Hope  <michaelh AT juju.net.nz>
12984
12985         * support/regression/tests/literalop.c (mulWrapper): Added a
12986         wrapper to remove integer overflow warnings.
12987
12988         * support/regression/tests/float_trans.c: Made work on host.
12989
12990         * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
12991         location of sz80.
12992
12993         * support/regression/generate-cases.py (main): Changed from inline
12994         to a main method.
12995
12996         * doc/Makefile (install): Changed to depth first to get rid of
12997         missing directory install warning.
12998
12999         * as/Makefile (install-doc): Made work on Mac.
13000
13001 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
13002
13003         * src/SDCCast.c: added an additional type flow in decorateType() of
13004         opposite direction, see feature request #860006; it's enabled at runtime
13005         by setting the environment variable SDCC_NEWTYPEFLOW
13006         * src/SDCCast.h: changed prototype of decorateType()
13007         * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
13008         * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
13009         'char' to 'int' can be omitted, if both operands are 'unsigned char';
13010         see feature request #877103
13011         * src/SDCCval.c: updated call of decorateType()
13012         (valBitwise): fixed bug #882876
13013         (valMinus): added promotion
13014         (valLogicAndOr): result is unsigned
13015         (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
13016         * src/SDCCsymt.c (computeType),
13017         * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
13018         must not cause an unsigned operation
13019         * src/pic/glue (pic14emitRegularMap),
13020         * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
13021
13022 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
13023
13024         * src/pic/pcode.c (PCodeID): commented out left over debug code
13025
13026 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
13027
13028         * support/valdiag/tests/overflow.c: added shift tests
13029         * src/pic/device.c,
13030         * src/pic/gen.c,
13031         * src/pic/gen.h,
13032         * src/pic/glue.c,
13033         * src/pic/main.c,
13034         * src/pic/pcode.c,
13035         * src/pic/pcode.h,
13036         * src/pic/pcodepeep.c,
13037         * src/pic/pcoderegs.c,
13038         * src/pic/ralloc.c,
13039         * src/pic/ralloc.h: applied patch from Slade Rich;
13040         added support for multiple code pages and multiple RAM banks on the
13041         PIC 14 port. The ASM files now no longer simply assume all the
13042         code / RAM are in the same page / bank. This means the linker can
13043         safely allocate code/RAM of separate ASM files to different pages/banks.
13044         * doc/sdccman.lyx: added Slade's tips
13045         * src/mcs51/peeph.def: fixed bug #880768
13046
13047 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13048
13049         * src/hc08/ralloc.c (rematStr): fixed bug #879282
13050         * src/SDCCast.c (decorateType): fixed bug #880197
13051
13052 2004-01-20  Michael Hope  <michaelh AT juju.net.nz>
13053
13054         * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
13055         getopt.h.
13056
13057         * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
13058         strtof is not part of C89 and isn't included with Mac OS X.
13059
13060 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13061
13062         * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
13063         shiftL2Left2Result): fixed bug #879326
13064         (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
13065         (genMultOneByte): fixed bug in signed vs unsigned multiplication
13066         * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
13067         address fetch for clr instruction
13068         * device/lib/hc08/_mulint.c: created optimized assembly version
13069         * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
13070
13071 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
13072
13073         * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
13074         proposed in FR #877103
13075
13076 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
13077
13078         * src/SDCCval.c (cheapestVal): added missing checks
13079         * src/SDCCicode.c (usualBinaryConversions): fixed condition
13080         * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
13081
13082 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
13083
13084         * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
13085         equal operands
13086
13087 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
13088
13089         * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
13090         loaded with the linker search paths (-L arguments) and the libraries
13091         to be linked with the current source (-l arguments). Changes
13092         currently will affect only the pic16 port.
13093         * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
13094         include path the port specific paths and port specific libraries,
13095         * gplink command now contains the $3 argument,
13096         * src/pic16/device.h,
13097         * src/pic16/device.c,: structure PIC_device is made public and
13098         renamed to PIC16_device, the same for variable Pics which is renamed
13099         to Pics16. Updated all references to them.
13100         * src/pic16/glue.c (pic16glue): corrected bug with code
13101         initialization which bypassed the variable initializations block.
13102
13103         * device/lib/pic16/Makefile.rules: removed --penable-stack from
13104         COMPILE_FLAGS and added the --nostdinc option
13105
13106 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13107
13108         * device/include/mc68hc908jb8.h: Register defs for another member
13109         of the hc08 family. Contributed by Bjorn Bringert - thanks!
13110
13111 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
13112
13113         Documenting changes from previous commits.
13114         * configure.in (version 1.56),
13115         * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
13116         when generating output files to configure the pic16 library,
13117         but now I've commented it out, since gputils aren't installed in the
13118         SF compile farm, so library won't compile
13119
13120         * device/lib/Makefile.in (version 1.56): initially I've added in
13121         target 'all' the prerequestive 'model-pic16' so it compiled the
13122         pic16 library, but now I've commented it out for the same reasons
13123         above,
13124         * added targets 'model-pic16' and 'objects-pic16' to compile the
13125         library
13126         * added target 'port-specific-objects-pic16' to handle the
13127         generated libraries and copy them into the build/ directory
13128         * added target 'clean-intermediate-pic16' to clean intermediate
13129         files into pic16 directory
13130         * in target 'installdirs' added line to create directory pic16 in
13131         the installation path
13132
13133         * device/include/Makefile.in (version 1.11): in target 'install'
13134         added lines to copy all header files to installation path,
13135         * in target 'installdirs' added line create directory for pic16
13136         headers in the installation path
13137
13138 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
13139
13140         * src/ds390/gen.c (genCall): fixed a double use of acc and b after
13141          a function call
13142
13143 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
13144
13145         * configure,
13146         * device/lib/configure.in,
13147         * device/lib/configure: fixed for autoconf 2.57
13148
13149 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13150
13151         * src/z80/main.c (_parseOptions): fixed the portmode= command line
13152         option so that it actually works. Made it specific to the z80, since
13153         the gbz80 doesn't have these kinds of I/O ports.
13154
13155 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13156
13157         * device/include/z180.h,
13158         * device/lib/_memcpy.c,
13159         * device/lib/_memmove.c,
13160         * device/lib/_mulint.c,
13161         * device/lib/ser_ir.c,
13162         * device/lib/ser_ir_cts_rts.c,
13163         * device/lib/_strcmp.c,
13164         * device/lib/_strtok.c: fixed pragmas to non-deprecated form
13165         * src/z80/main.c (_process_pragma): add support for pragmas bank and
13166         portmode; added deprecation warning for bank= and protmode= forms.
13167         Also, guard against buffer overflow.
13168         * src/z80/gen.c (aopGet): generate better code for sfr banked read
13169
13170 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13171
13172         * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
13173         changed interrupt vector table generation to only emit declared vectors.
13174         * device/include/Makefile.in: added missing backslash
13175         * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
13176
13177 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
13178
13179         Mainly changes to support compilation of the device libraries
13180         * src/pic16/device.c: stack is allocated via symbol and not
13181         via literal number. The symbol is placed in the corresponding
13182         position of the data ram
13183         * (pic16_dump_section): relocatable and absolute uninitialized
13184         data are now emitted in sorted order to reduce section naming,
13185         * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
13186         weren't marked as being in the access bank,
13187
13188 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
13189
13190         Added portion of GNU PIC Library under the directory
13191         device/include/pic16 and device/lib/pic16. These files
13192         contain the declarations of SFRs for the PIC18Fxx2 devices.
13193         The directory is initialized via configure from toplevel.
13194
13195 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
13196
13197         * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
13198         the spilllocations to be compared correctly
13199
13200 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
13201
13202         * src/SDCCast.c (decorateType): fixed bug introduced today
13203
13204 2004-01-12  Borut Razem <borut.razem AT siol.net>
13205
13206         * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
13207         doc/sdccman.lyx: upper case pragmas are deprecated
13208
13209 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
13210
13211         * src/SDCCast.c (decorateType): replacing 'ul > 0' by  '!ul' results
13212         in simpler and even better code
13213
13214 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
13215
13216         * src/SDCCicode.c (operandOperation): fixed bug #874819
13217         * src/SDCCast.c (decorateType): fixed
13218         char foo (unsigned long ul) { return ul > 0; }
13219
13220 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13221
13222         * doc/sdccman.lyx: Moved and added some sections, small changes
13223         all over. Telling LaTeX to be less strict with word spacing
13224         to better keep the right margin. Changed some notes about
13225         maintainance of the ports in section 3.2.1 - is it OK like this?
13226
13227 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
13228
13229         SDCC source changes:
13230         * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
13231         convilong): modified to inform the pic16 port that builtin functions
13232         are external
13233
13234         PIC16 PORT specific changes:
13235         * src/pic16/device.c pic16_dump_equates() added,
13236         processor registers declared internally by the port are emitted in
13237         the translation as equates,
13238         * src/pic16/gen.c: inline code is passed unprocessed to the
13239         translation,
13240         * (pic16_popGetLit2): fnuction modified to take second operand as
13241         pCodeOp pointer and not as literal,
13242         * (popRegFromIdx): prefixed with pic16_,
13243         * (pic16_popCombine2): modified to receive already allocated pCode
13244         operands,
13245         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
13246         * (genFunction): initializes local stack frame and pushes on stack
13247         all the registers used by this function,
13248         * (genEndFunction): restores all registers from stack and restores
13249         stack frame,
13250         * src/pic16/glue.c (pic16emitRegularMap): various changes and
13251         improvements,
13252         * (pic16glue): changed the program startup sequence,
13253         * added new dbName code 'A' for functions placed in absolute section
13254         * src/pic16/main.c: added function attribute _naked,
13255         * added pragma 'code' to place a fnuction at an absolute address,
13256         * added command line arguments --debug-ralloc and --pcode-verbose,
13257         * (_pic16_finiliseOptions): options.all_callee_saves is set by default
13258         * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
13259         * (pic16_newpCodeOpLit2): modified to take the second operand as
13260         pCodeOp pointer,
13261         * (pic16_printpBlock): modified to emit each function in a separate
13262         section,
13263         * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
13264         UPPER for immediate operands,
13265         * src/pic16/pcodepeeph.c: added peephole support for the LFSR
13266         instruction,
13267         * src/pic16/peeph.def: all peepholes with movff are commented out,
13268         because there is a problem in the pcode peep optimizer,
13269         * src/pic16/ralloc.c: the register allocator can now reuse local
13270         function symbols for another function. This saves register usage.
13271         * src/pic16/ralloc.h: added flag isLocal in structure regs,
13272
13273         Added file src/pic16/NOTES with information about program writing on
13274         the current port version.
13275
13276 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13277
13278         * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
13279         and peephole 252 (array access)
13280
13281 2004-01-09  Borut Razem <borut.razem AT siol.net>
13282
13283         * src/SDCCmain.c : fixed #872250: -l command line defined library
13284           files are scanned before standard library files
13285
13286 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13287
13288         * src/SDCCast.c (decorateType): fixed bug #874046
13289
13290 2004-01-09  Borut Razem <borut.razem AT siol.net>
13291
13292         * support/scripts/sdcc.nsi: remove previous installation
13293
13294 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13295
13296         * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
13297         bytes for last interrupt vector (mcs51)
13298         * sdcc.spec: fixed typo
13299
13300 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13301
13302         * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
13303         gen51Code): more efficient parameter receive for --model-large
13304         ("bug" #845294)
13305
13306 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13307
13308         * src/ds390/main.c,
13309         * src/z80/main.c: added missed needLinkerScript flags (more than
13310         one port structure defined in these file)
13311         * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
13312         bug #795325
13313
13314 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
13315
13316         * src/SDCCmain.c: removed various references to DEFAULT_PORT
13317         * src/port.h: added flag needLinkerScript in port->linker
13318         structure to inform whether to create a .lnk file or not,
13319         * src/avr/main.c,
13320         * src/ds390/main.c,
13321         * src/hc08/main.c,
13322         * src/mcs51/main.c,
13323         * src/pic/main.c,
13324         * src/pic16/main.c,
13325         * src/xa51/main.c,
13326         * src/z80/main.c: changed appropriately to configure
13327         needLinkerScript flag
13328         * src/pic/gen.c,
13329         * src/pic16/gen.c (genAddrOf): fixed bug #863624
13330         * src/pic/glue.c: added variable udata_section_name to
13331         override default uninitialized data segment definition for
13332         devices only with SHAREBANK memory (reported from Erik Epetrich)
13333         * (pic14emitOverlay): modified to emit a commented overlay segment
13334         directive when no overlay data exist
13335         * (picglue): modified to emit uninitialized data segment
13336         according to udata_section_name
13337         * src/pic/main.c (_pic14_parseOptions): added command line
13338         options --udata-section-name=[name] to override default
13339         udata definition name
13340         * modified _linkCmd and _asmCmd to include compiler passed
13341         arguments via -W option
13342         * src/pic16/main.c: added $l in _asmCmd, changed extension for
13343         object file from '.rel' to '.o' in port->linker structure,
13344         changed size of fptr from 2 to 3 in port structure
13345
13346 2004-01-07  Borut Razem <borut.razem AT siol.net>
13347
13348         * support/scripts/sdcc.nsi: update PATH
13349         * support/scripts/sdcc.ico: craeted
13350
13351 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
13352
13353         * device/include/Makefile.in: fix install
13354         * doc/Makefile: fix install
13355
13356 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13357
13358         * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
13359         in bug #860505
13360         * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
13361         how the function variable allocation summary is displayed; also
13362         include information about variables allocated to the overlay
13363         segment
13364
13365 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13366
13367         * as/mcs51/lkmain.c: Help about -Y option
13368         * as/mcs51/lkarea.c: Fixed gcc warnings
13369
13370 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
13371
13372         * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
13373         fixed warning
13374         * support/valdiag/tests/overflow.c: added
13375         * src/SDCCast.c (decorateType),
13376         * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
13377         LEFT_OP (left shift)
13378
13379 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13380
13381         * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
13382         (default behaviour).
13383
13384 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13385
13386         A python script to validate compiler diagnostic messages. It can be
13387         used to verify that sdcc complains about bad c source code and
13388         gives a good location of the error.
13389         * support/valdiag/Makefile,
13390         * support/valdiag/valdiag.py,
13391         * support/valdiag/tests/*
13392
13393 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13394
13395         * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
13396         * src/SDCCsymt.c (newEnumType),
13397         * src/SDCCsymt.h
13398         * support/Util/SDCCerr.c,
13399         * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
13400         enum related bugs.
13401         * support/regression/tests/enum.c: added test for enum values that
13402         require at least 2 bytes of storage.
13403
13404 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
13405
13406         * src/common.h: added ifndef/define/endif macros
13407         around the header file.
13408         Bug reported from Jesus Calvino-Fraga
13409
13410 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
13411
13412         * sdcc.spec: updated
13413         * device/include/Makefile.in: don't install CVS directories
13414         * device/lib/Makefile.in: added removal of CVS directories after install
13415         * doc/Makefile: fixed install, added local_icons
13416         * sim/ucsim/gui.src/Makefile.in: fixed an old typo
13417         * src/mcs51/gen.c (genRightShift): fixed bug #870788
13418         * src/ds390/gen.c (genRightShift): fixed bug #870788
13419         * src/SDCCast.c (decorateType): fixed bug #870781
13420
13421 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
13422
13423         PIC16 port related changes:
13424         * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
13425         added variable stackPos,
13426
13427         * gen.c: genCall, assignResultValue: added support for
13428         pushing/retrieving function parameters to/from stack,
13429         genFunction,genEndFunction: setup stack frame for the
13430         generated function,
13431         genAddrOf: will be changed according to bug 863624
13432
13433         * added files genutils.c and genutils.h which contain gen*
13434         debugged and optimised functions extracted from gen.c
13435
13436         * glue.c: added variable 'externs' which holds extern symbols,
13437         pic16emitRegularMap: is modified to properly handle relocatable
13438          symbols under the new scheme,
13439         pic16createInterruptVect: is modified
13440         pic16printPublics: is modified to emit 'global' assembler directives,
13441         added pic16_printExterns to print extern symbols,
13442         pic16glue: initializes stack/frame pointer in the beginning of
13443         the assembly output. Temporary hack, will be corrected later,
13444         because gplink yet does not support stack and SDCC does not
13445         yet support a type of crt0.o object to create the final binary.
13446
13447         * Removed many lines that contain 8051 legacy code.
13448         * The code is finally placed under a 'code' directive.
13449         * Added port specific options.
13450
13451         * _process_pragma: simplified since now we do not need *special*
13452         include file to define SFR registers. But a separate header
13453         will be needed. This will be developed later.
13454         * _pic16_parseOptions: added, parses port specific options:
13455         --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
13456         --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
13457         --preplace-udata-with=
13458
13459         * _pic16_setDefaultOptions: modified to initialize section names,
13460         but hack is temporarly out of order since it needs improvement.
13461         * _pic16_genAssemblerPreamble: configuration words are emitted by
13462         their address instead of their name. This part is incomplete and
13463         supports only the 18Fxx2 devices. Other devices will emit an error
13464         during assembly since they do not contain the same set of config
13465         registers
13466         * _pic16_genIVT: is modified,
13467
13468         * pcode.c: added definitions for some hardware registers that are needed
13469         for stack support
13470         * added flag is2LitOp and variable pci_magic in pCodeInstruction.
13471         All PCI entries are updated. Now LFSR is supported.
13472         * Removed pic16_pciTRIS is mentioned by mdubuc in source
13473         * added pic16_newpCodeOpLit2 to support instructions with
13474         two literal arguments
13475         * pic16_pCode2str: corrected code that emits assembler instructions
13476         with two literal operands and those that have an access bit modifier
13477         * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
13478         this fixes a bug which caused some labels to be lost, when an
13479         assembler directive was added, i.e. banksel,
13480         * pic16_FixRegisterBanking: improved logic that causes the insertion
13481         of bank switching,
13482         * InlineFunction: functions that are called once, are not any more
13483         inlined. This can be a port option in the future,
13484
13485         * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
13486
13487         * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
13488         hold the corresponding uninitialized symbols,
13489         * pic16_allocProcessorRegister: registers have explicit marked the
13490         accessBank field,
13491         * pic16_allocInternalRegister: registers are explicit marked as
13492         not used,
13493         * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
13494         processing list, so bit registers were lost,
13495         *
13496
13497         * ralloc.h: added field 'accessBank' and original symbol operand
13498         in register definition,
13499         * removed the field isMapped from register definition,
13500
13501         ** Several functions have been removed from various sources:
13502         BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
13503         pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
13504         isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
13505         pic16_assignRelocatableRegisters
13506
13507         ** others have been introduced:
13508         pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
13509         pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
13510
13511 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
13512
13513         * support/scripts/inc2h.pl: changed definition of BIT_AT
13514         to emit 'sbit at' instead of 'bit at'. This was a request.
13515
13516         PIC16 port related preliminary changes:
13517         * gen.c: prefixed function popRegFromString with
13518         pic16_ and all references to it corrected
13519         * pcode.c: all pic16_pc_* hardware registers prefixed
13520         with underscore (_),
13521         pic16_popCopyGPR2Bit(): function sets register wasUsed=1
13522         * ralloc.c: newReg(): when register is REG_SFR then
13523         set address to rIdx,
13524         pic16_allocProcessorRegister(): marks register wasUsed=0
13525         pic16_writeUsedRegs(): added a call to assign processor
13526         registers via pic16_assignFixedRegisters
13527
13528 2004-01-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13529
13530         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
13531         as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
13532         variables in unused register banks.  Also the SSEG is placed
13533         wherever there is enough space for it, and IDATA can be anywhere
13534         in internal RAM.  For now compile using -Wl-Y[stack_size].
13535         The mem file is different for this option as well, since it
13536         makes no sense of talking about DSEG lenght.
13537
13538 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
13539
13540         * src/SDCClrange.c: fixed bug 869095 that caused segfault
13541         in certain cases, e.g. when ROM assignment, patch provided
13542         from Albert den Haan.
13543
13544 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
13545
13546         Many signedness and type propagation fixes:
13547         * src/SDCCicode.c: made geniCodeCast() static
13548         replaced SPEC_ by IS_ (cosmetic)
13549         (operandOperation): fixed div and mod operation
13550         (usualBinaryConversions): added support for promotion of char
13551         (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
13552         (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
13553         (geniCodeAdd): an array index will stay unsigned, even if promoted
13554         from char to int
13555         (geniCodeArray): ditto
13556         * src/SDCCicode.h: made geniCodeCast() static: removed prototype
13557         * src/SDCCsymt.c (computeType): added more support for char;
13558         promotion of char is selectable by promoteCharToInt, fixed signedness
13559         for all cases
13560         (powof2): replaced (unsigned long) by (TYPE_UDWORD)
13561         * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
13562         * src/SDCCval (val*): replaced signedness calculation by
13563         computeType()
13564         rearranged if-branches (cosmetic)
13565         (valShift): added warning W_SHIFT_CHANGED
13566         (valCompare): fixed problem with different types
13567         * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
13568         * support/regression/tests/literalop.c: added many cases
13569         * support/regression/tests/ast_constant_folding.c: changed finally to
13570         'unsigned int'
13571         * .version: new year, new version: 2.3.7
13572         * src/SDCCmain.c (main): applied patch #866468
13573         * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
13574         provided by Scott Bronson
13575         * doc/sdccman.lyx: updated documentation for sdcdb
13576         updated and added chapter tips
13577
13578 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13579
13580         * src/SDCCsymt.h: missing from yesterday's commits
13581
13582 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13583
13584         * src/SDCC.y (struct_or_union_specifier),
13585         * support/Util/SDCCerr.c,
13586         * support/Util/SDCCerr.h: verify that struct & union tags are used
13587         as declared.
13588
13589 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13590
13591         * src/SDCCglobl.h: missing from yesterday's commits
13592
13593 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13594
13595         * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
13596         sft_attributes, struct_declaration, parameter_declaration,
13597         type_name, start_block, declaration_list),
13598         * src/SDCC.lex (check_type): support redefinition of typedef names
13599
13600 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13601
13602         * src/mcs51/gen.c (genPlus): added special handling for 256 byte
13603         aligned xdata arrays. Erik helped me with the if clause.
13604
13605 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13606
13607         * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
13608         warning
13609
13610 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13611
13612         * src/SDCCast.h,
13613         * src/SDCCast.c (newAst_),
13614         * src/SDCCicode.h,
13615         * src/SDCCicode.c (ast2iCode, newiCode),
13616         * src/SDCCglobl.h,
13617         * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
13618         expr, statement, expression_statement, selection_statement,
13619         iteration_statement, expr_opt, jump_statement): foundation for tracking
13620         sequence points
13621         * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
13622         point code too)
13623
13624 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13625
13626         * support/Util/SDCCerr.c,
13627         * src/SDCCast.h,
13628         * src/SDCCast.c (createCase, createDefault, decorateType),
13629         * src/SDCClabel.c (labelUnreach),
13630         * src/SDCC.y (labeled_statement, jump_statement): More improvements
13631         to error messages.
13632         * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
13633         (with thanks to Stas Sergeev)
13634         * device/include/time.h,
13635         * device/lib/time.c (CheckTime): suppress unreachable code warning
13636
13637 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13638
13639         * src/SDCCast.c (createIvalCharPtr),
13640         * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
13641         bug #753752)
13642         * support/regression/tests/nullstring.c: tests for these two bugs
13643
13644 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13645
13646         * support/Util/SDCCerr.h,
13647         * support/Util/SDCCerr.c (E_NOT_ALLOWED),
13648         * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
13649         about storage class and 'at' used inside struct or union
13650         * src/SDCCBBlock.c (iCodeFromeBBlock),
13651         * src/SDCCcse.c (ifxOptimize),
13652         * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
13653         printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
13654         printIval, emitStaticSeg, emitOverlay),
13655         * src/SDCClabel.c (deleteIfx),
13656         * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
13657         * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
13658         gatherAutoInit, processParms),
13659         * support/Util/SDCCerr.h,
13660         * support/Util/SDCCerr.c (werrorfl): Support for better error location
13661         reporting for post-parse errors.
13662
13663 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13664
13665         * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
13666         implicit casts via union; they don't work on big endian systems
13667         (possible fix for bug #861138)
13668
13669 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13670
13671         (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
13672         * src/mcs51/main.c: fixed the fix for bug #737001
13673
13674 2003-12-15  Borut Razem <borut.razem AT siol.net>
13675
13676         * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
13677
13678 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13679
13680         * support/makebin/makebin.c: put output in binary mode
13681
13682 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13683
13684         * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
13685         xdata and data memory on startup. Set the environment variable
13686         SDCC_NOGENRAMCLEAR to disable this.
13687         * src/mcs51/peephole.def,
13688         * src/ds390/peephole.def: using the atomic test and clear instruction jbc
13689         (allows non-interrupt and interrupt code to safely compete for a resource
13690         without the non-interrupt code having to disable interrupts)
13691
13692 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13693
13694         * src/SDCCicode.c (geniCodeAdd),
13695         * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
13696         with valFromType if type might be a pointer and host is big endian).
13697         * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
13698         types, not just integer types.
13699         * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
13700         multiply defined with mismatching "at" address.
13701
13702 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13703
13704         * src/ds390/main.c (PORT tininative_port): fixed bug #858416
13705         * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
13706         * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
13707         with embedded nulls (fixed bug #753752)
13708
13709 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13710
13711         * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
13712         Apparently this did not see much testing (endless loop)
13713
13714 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13715
13716         * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
13717
13718 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13719
13720         * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
13721         gracefully handle NULL memmap pointers
13722
13723 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13724
13725         * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
13726         instead of deleting the iCode when an operand is volatile
13727         * src/z80/gen.c (genDummyRead),
13728         * src/mcs51/gen.c (genDummyRead),
13729         * src/ds390/gen.c (genDummyRead),
13730         * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
13731         not just IC_RIGHT
13732         * src/SDCCicode.c (geniCodeCall): fixed bug #851607
13733         * src/SDCC.y: fixed bug #850420
13734
13735 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13736
13737         Applied z80 i/o port patch from Peter Townson and fixed some operators
13738         to better handle operands in A register.
13739         * device/include/z180.h
13740         * src/SDCC.y
13741         * src/SDCCglue.c
13742         * src/z80/gen.c
13743         * src/z80/gen.h
13744         * src/z80/main.c
13745         * src/z80/peeph-z80.def
13746         * src/z80/peeph.def
13747         * src/z80/z80.h
13748
13749 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13750
13751         * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
13752
13753 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13754
13755         * device/lib/hc08/_mullong.c: Removed extra #endif
13756
13757 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13758
13759         * sim/ucsim/hc08.src/inst.cc,
13760         * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
13761         carries from x to h
13762         * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
13763         * src/hc08/gen.c (XAccRsh): fixed problem with right shift
13764         * device/include/stdarg.h: fixed varargs for hc08
13765         * device/lib/Makefile.in,
13766         * device/lib/hc08/Makefile,
13767         * device/lib/hc08/_mulint.c,
13768         * device/lib/hc08/_mullong.c: fixed some endian problems
13769
13770 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13771
13772         * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
13773         * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
13774         * device/lib/_gptrget.c,
13775         * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
13776
13777 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13778
13779         * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
13780         * src/SDCCast.c (astErrors): fixed bug #846007
13781         * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
13782
13783 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13784
13785         * src/SDCCast.c (decorateType): disabled a transformation I added in
13786         revision 1.188 (access to fields of a structure at an absolute address);
13787         it breaks with bitfields, extern declarations, and gcse analysis.
13788         * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
13789         could be assigned through a pointer, so don't complain.
13790         * src/SDCCast.c (astErrors),
13791         * src/SDCCast.h,
13792         * src/SDCCglue.c (emitRegularMap): fixed bug #847813
13793
13794 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
13795
13796         * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
13797         * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
13798         output of __config directives, since gpasm now supports them
13799         * src/pic16/main.c (_pic16_finaliseOptions): define MCU
13800         pre-processor macro, i.e. -DMCU=p18f452
13801         * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
13802         and modified to handle 'cast' icode similarly to '=' icode
13803         * src/pic16/device.h (typedef struct PIC_device): added field
13804         'extMIface' to indicate that chip has external memory interface
13805         * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
13806         18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
13807         18F8720
13808
13809 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13810
13811         * src/SDCC.y (pointer): fixed bug #846006
13812         * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
13813         * src/SDCCast.c (decorateType): fixed bug #846009
13814         * src/ds390/peeph.def,
13815         * src/ds390/gen.c (genAnd, genOr),
13816         * src/mcs51/peeph.def,
13817         * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
13818
13819 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13820
13821         Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
13822         * src/SDCCdflow.c
13823         * src/SDCCcse.c
13824         * src/SDCCcse.h
13825         * src/SDCCBBlock.h
13826         * src/SDCCBBlock.c
13827
13828 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
13829
13830         fixed bug #845089
13831         * src/SDCCbitv.h,
13832         * src/SDCCbitv.c: added function to free a bitvector
13833         * src/SDCClrange.h,
13834         * src/SDCClrange.c: added function to recompute the liveranges
13835         * src/avr/ralloc.c,
13836         * src/ds390/ralloc.c,
13837         * src/hc08/ralloc.c,
13838         * src/mcs51/ralloc.c,
13839         * src/pic/ralloc.c,
13840         * src/pic16/ralloc.c,
13841         * src/xa51/ralloc.c,
13842         * src/z80/ralloc.c: recompute the liveranges after register packing
13843
13844 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
13845
13846         * src/SDCCloop.c (newInduction): fixed bug #845630
13847
13848 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13849
13850         * src/SDCCsymt.c (compareTypesExact): disabled debugging output
13851         inadvertantly left behind from my 2003-11-12 change
13852
13853 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13854
13855         Updated headers I neglected to commit yesterday.
13856         * src/SDCClrange.h,
13857         * src/SDCCicode.h
13858
13859 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13860
13861         * src/SDCCcse.c (algebraicOpts): fixed bug #773153
13862         * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
13863         * src/SDCCopt.c (eBBlockFromiCode),
13864         * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
13865         the creation of the key hash table from the sequencing so it can be used
13866         earlier (for some GCSE bug fixes still pending)
13867
13868 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13869
13870         * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
13871         * support/regression/tests/addsub.c: testing genPlus shortcut
13872
13873 2003-11-15  Borut Razem <borut.razem AT siol.net>
13874
13875         * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
13876
13877 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13878
13879         * src/SDCCcse.c (cseBBlock): fixed bug #527779
13880         * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
13881         ordering is immaterial.
13882         * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
13883
13884 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13885
13886         * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
13887         * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
13888         (SIGSEV) of bug #840381
13889         * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
13890         unlink new file before rename if new and old filenames are the same)
13891
13892 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13893
13894         * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
13895         uninitialized variables) for the mcs51. Set environment variable
13896         SDCC_GENRAMCLEAR to test.
13897         xdata initialization slightly shorter
13898
13899 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13900
13901         * src/SDCCsymt.h,
13902         * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
13903         #838241 & 780691 (basicly the same bug)
13904         * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
13905         * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
13906
13907 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
13908
13909         * src/SDCCmain.c (linkEdit): "fix" #834252
13910
13911 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13912
13913         * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
13914         * src/SDCCast.h,
13915         * src/SDCC.y: fixed bug #819403
13916
13917 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13918
13919         * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
13920         the reentrant attribute.
13921         * src/hc08/gen.c (genPackBits): added missing stack readjustment
13922         * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
13923         simulation
13924         * src/SDCCast.c (decorateType): fixed bug with storage class not being
13925         updated during pointer dereference; f.e. ~(((char *)1)*) was being
13926         erroneously reduced to a literal.
13927         * src/hc08/ralloc.c (packRegisters, rematStr),
13928         * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
13929         some cases
13930
13931 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13932
13933         * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
13934         * doc/sdccman.lyx: changed from 'article' to 'book'
13935         * doc/Makefile: readded test_suite_spec and cdbfileformat
13936
13937 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
13938
13939         * device/include/stdlib.h: include malloc.h to comply with ANSI
13940         * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
13941
13942 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13943
13944         * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
13945         * doc/clean.mk: also remove *.out files
13946         * doc/sdccman.lyx: some additions, larger top/bottom margins
13947
13948 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13949
13950         * src/SDCC.y: fixed bug #837365
13951         * support/regression/tests/bitopcse.c
13952         * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
13953         a symbol (might be valop instead)
13954         * device/lib/Makefile.in: added errno.c to HC08SOURCES
13955         * device/lib/clean.mk: added hc08 to the cleaning list
13956
13957 2003-11-04  Borut Razem <borut.razem AT siol.net>
13958
13959         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
13960           made 2003-11-04
13961         * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
13962           as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
13963           malloc is declared in standard stdlib.h
13964
13965 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13966
13967         * device/lib/hc08/Makefile: need to clean .rel not .o files
13968         * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
13969
13970 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13971
13972         * src/port.h,
13973         * src/hc08/main.c,
13974         * src/mcs51/main.c,
13975         * src/ds390/main.c,
13976         * src/z80/main.c,
13977         * src/avr/main.c,
13978         * src/pic/main.c,
13979         * src/pic16/main.c,
13980         * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
13981         * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
13982         tests (which uses the port's oclsExpense function)
13983         * src/SDCC.y,
13984         * src/SDCCast.c,
13985         * src/SDCCicode.c,
13986         * src/hc08/gen.c,
13987         * src/ds390/gen.c,
13988         * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
13989
13990 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13991
13992         * src/SDCCcse.c (ifxOptimize),
13993         * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
13994         an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
13995         deleting the IFX iCode.
13996         * src/hc08/ralloc.c: reduced unneeded slocs
13997         * src/hc08/gen.c: fixed bug in asmopToBoolean
13998
13999 2003-11-04  Borut Razem <borut.razem AT siol.net>
14000
14001         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
14002           support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
14003           as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
14004           transferred to configure
14005
14006 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
14007
14008         Use headers defined in the C[++] standards:
14009         * sim/ucsim/gui.src/serio.src/fileio.cc
14010         * sim/ucsim/gui.src/serio.src/frontend.cc
14011         * sim/ucsim/gui.src/serio.src/main.cc
14012         * sim/ucsim/gui.src/serio.src/posix_signal.cc
14013         * support/Util/NewAlloc.c
14014         * as/hc08/lklibr.c
14015         * as/mcs51/lklibr.c
14016         * as/z80/aslist.c
14017         * as/z80/assym.c
14018
14019 2003-11-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14020
14021         * Added MSVC projects for hc08 assembler and linker:
14022         all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
14023         /as/hc08/link_hc08.dsp
14024
14025 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
14026
14027         * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
14028
14029 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
14030
14031         * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
14032
14033 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14034
14035         * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
14036
14037 2003-10-31  Borut Razem <borut.razem AT siol.net>
14038
14039         * support/cpp2/cpplib.h,
14040           support/cpp2/cpplib.c,
14041           support/cpp2/cpplex.c,
14042           support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
14043           to switch _asm block preprocessing on / off. Default is
14044           #pragma preproc_asm +
14045
14046 2003-10-31  Borut Razem <borut.razem AT siol.net>
14047
14048         * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
14049           when outputting comment blocks (when executed with -C option) and
14050           _asm (SDCPP specific) blocks
14051
14052 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14053
14054         * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
14055
14056 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
14057
14058         * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
14059
14060 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
14061
14062         * src/SDCCmain.c (linkEdit): "fixed" bug #833605
14063         * src/SDCCast.c (decorateType): fixed bug #832664
14064
14065 2003-10-31  Borut Razem <borut.razem AT siol.net>
14066
14067         * support/cpp2/cpplex.c: fixed for SDCPP:
14068           comments(when executed with -C option) and _asm blocks
14069           were included even if they where in skipped #if block.
14070           Applied solution from GCC cpp 3.3.2
14071
14072 2003-10-31  Borut Razem <borut.razem AT siol.net>
14073
14074         * src/SDCC.lex: sdcc now understands both formats:
14075           '# <line_number> <file_name>' and
14076           '#line <line_number> <file_name>'
14077         * support/cpp2/cppmain.c: sdcpp now generates the standard
14078           '# <line_number> <file_name>' instead of former
14079           '#line <line_number> <file_name>'
14080
14081 2003-10-30  Borut Razem <borut.razem AT siol.net>
14082
14083         * support/cpp2/cpphash.h,
14084         * support/cpp2/cpplib.h
14085         * support/cpp2/cpplex.c,
14086         * support/cpp2/cppmain.c,
14087         * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
14088
14089 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14090
14091         Fixed a number of problems revealed by bug #827883.
14092         * src/SDCCloop.c (loopInvariants): Spill location of the
14093         result operand should be recomputed if extracted from
14094         a loop. Also, don't extract assignments of an iTemp
14095         from a literal.
14096         * src/SDCCast.c (isConformingBody): loop reversal should
14097         not occur if the control variable is involved with a
14098         relational operator.
14099
14100 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
14101
14102         * .version: bumped to 2.3.6 to reflect the big improvements
14103         made by Erik and Klaus. Thanks!
14104
14105 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
14106
14107         Replaced the livrange code.
14108         * src/SDCClrange.c: added new LR code
14109         * src/SDCCloop.c,
14110         * src/SDCCBBlock.h: removed remainig parts from old LR code
14111         * src/ds390/ralloc.c,
14112         * src/ds390/gen.c: minor fixes to make it work with new code
14113
14114 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14115
14116         * as/hc08/asm.h,
14117         * as/hc08/lkrloc.c,
14118         * src/hc08/gen.c,
14119         * src/hc08/ralloc.c: Fix various warnings related to the hc08
14120         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
14121         (tweaked fix for bug #818696)
14122
14123 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14124
14125         * src/z80/ralloc.c (joinPushes): Fixed bug #828742
14126
14127 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14128
14129         * src/SDCCmain.c,
14130         * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
14131         * src/mcs51/gen.c (gencjneshort),
14132         * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
14133         more efficient (per Scott Bronson's suggestion)
14134
14135 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14136
14137         Extended the semantics of the critical keyword to include
14138         individual statements. See RFE #827755 and #799831
14139         * src/SDCC.y
14140         * src/SDCCicode.c
14141         * src/SDCCopt.c
14142         * src/SDCCast.c
14143         * support/Util/SDCCerr.c
14144         * support/Util/SDCCerr.h
14145         * src/mcs51/gen.c
14146         * src/ds390/gen.c
14147         * src/hc08/gen.c
14148
14149 2003-10-19  Borut Razem <borut.razem AT siol.net>
14150
14151         * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
14152
14153 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14154
14155         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
14156         Fixed bug #818696
14157         * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
14158         and predecrement operand is displayed
14159
14160 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
14161
14162         * src/SDCCval.c (valMinus): fixed bug #826041
14163
14164 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14165
14166         Some hc08 related updates that I missed earlier
14167         * sim/ucsim/stypes.h
14168         * support/regression/ports/hc08/spec.mk
14169
14170 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14171
14172         New target "hc08" for the Motorola 68hc08 family of micros
14173
14174         * configure
14175         * configure.in
14176         * Makefile
14177         * src/hc08/*
14178         * src/SDCCmain.c
14179         * src/port.h
14180         * sim/ucsim/hc08.src/*
14181         * sim/ucsim/configure.in
14182         * src/ucsim/configure
14183         * sim/ucsim/packages_in.mk
14184         * as/hc08/*
14185         * as/Makefile
14186         * device/include/mc68hc908qy.h
14187         * device/lib/hc08/*
14188         * device/lib/Makefile.in
14189         * support/regression/ports/hc08/*
14190         * support/regression/Makefile
14191
14192 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14193
14194         * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
14195         regression test
14196         * src/ds390/gen.c (genCast): fixed bug #821957
14197
14198 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
14199
14200         * device/lib/logf.c: "fixed" overlay bug
14201         * support/regression/ports/host/spec.mk: added m library
14202         * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
14203         * support/regression/tests/float_trans: added (for Eric)
14204
14205 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
14206
14207         * src/mcs51/gen.c (genCpl): fixed bug
14208         http://sf.net/mailarchive/message.php?msg_id=6263915
14209
14210 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
14211
14212         * src/SDCCast.c (decorateType): added extended constant folding
14213         * src/SDCCsymt.c (computeType): cleanup
14214         * src/SDCCval.c (valShift): minor optimization
14215         * support/regression/tests/ast_constant_folding.c: added
14216
14217 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14218
14219         * src/SDCCmain.c: removed some unintended changes
14220
14221 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14222
14223         * src/SDCCmain.c (setParseWithComma): fixed bug #816685
14224         * src/z80/gen.c: fixed part of bug #817589
14225         * src/SDCCsymt.c (checkFunction): fixed bug #817895
14226
14227 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
14228
14229         Replaced cast (void **) with (void *) to avoid gcc 3 warning:
14230         * src/SDCCcflow.c
14231         * src/SDCCcse.c
14232         * src/SDCCdflow.c
14233         * src/SDCClabel.c
14234         * src/SDCClrange.c
14235         * src/SDCCmem.c
14236         * src/SDCCopt.c
14237         * src/SDCCpeeph.c
14238         * src/SDCCset.c
14239         * src/avr/ralloc.c
14240         * src/ds390/ralloc.c
14241         * src/izt/ralloc.c
14242         * src/mcs51/ralloc.c
14243         * src/pic/ralloc.c
14244         * src/pic16/ralloc.c
14245         * src/xa51/ralloc.c
14246         * src/z80/ralloc.c
14247         * src/z80/gen.c: removed unused label "release:"
14248
14249 2003-10-06  Borut Razem <borut.razem AT siol.net>
14250
14251         * src/SDCC.lex: removed definition of unused variables
14252           save_optimize and save_options
14253
14254 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
14255
14256         * clean.mk: removed '=' in "-maxdepth=1"
14257         * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
14258         * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
14259
14260 2003-10-06  Borut Razem <borut.razem AT siol.net>
14261
14262         * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
14263           my_unput() replaced by unput()
14264
14265 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
14266
14267         * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
14268         setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
14269         type-punned pointer will break strict-aliasing rules"
14270         Old LR behaviour is again default; Klaus' LR can be choosen by
14271         defining the environment variable LRKLAUS
14272         * src/SDCCBBlock.h
14273         * src/SDCCloop.c
14274         * src/SDCClrange.c
14275         * src/ds390/ralloc.c (spillThis): applied Klaus' patch
14276         * clean.mk: fixed removal of files in bin/CVS/
14277         * device/lib/clean.mk: fixed removal of directories small and large
14278         * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
14279         * src/SDCCicode.c,
14280         * src/SDCCval.c: removed superflous test for pedantic
14281
14282 2003-10-05  Borut Razem <borut.razem AT siol.net>
14283
14284         * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
14285           Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
14286           message "unmatched #pragma SAVE and #pragma RESTORE"
14287
14288 2003-10-04  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14289
14290         * doc/sdccman.lyx: various additions and updates (interrupts, inline
14291           assembly, critical functions, atomic, nojtbound)
14292
14293 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
14294
14295         Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
14296         * src/SDCCBBlock.h
14297         * src/SDCCloop.c
14298         * src/SDCCloop.h
14299         * src/SDCClrange.c
14300
14301 2003-10-03  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14302
14303         * src/z80/gen.h,
14304         * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
14305         * src/mcs51/gen.h
14306         * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
14307         * src/ds390/gen.h
14308         * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
14309         * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
14310         * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
14311
14312 2003-10-02  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14313
14314         * src/z80/gen.c (genRet): fixed bug #524753
14315         * src/z80/gen.c (genCast): fixed internal error on cast from
14316         pointer to long
14317         * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
14318         fix for bug #477835 to the z80
14319         * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
14320         for tracking iCodes in the peephole optimizer for z80
14321
14322 2003-10-01  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14323
14324         * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
14325         the other part of bug #814548
14326         * src/SDCCpeeph.c (labelInRange): fixed bug #814558
14327
14328 2003-09-30  Bernhard Held <bernhard AT bernhardheld.de>
14329
14330         * src/SDCCcse.c: fixed part of bug #814548
14331
14332 2003-09-28  Borut Razem <borut.razem AT siol.net>
14333
14334         * src/asm.c: rewrite of printILine() to use temporary file instead
14335           a pipe
14336         * src/xa51/main.c: commented out declaration of int rewinds
14337
14338 2003-09-27  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14339
14340         * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
14341
14342 2003-09-26  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14343
14344         * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
14345         * src/asm.c (printILine): Fixed bug #811015
14346
14347 2003-09-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14348
14349         *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
14350         freeing.
14351
14352 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14353
14354         * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
14355         * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
14356         to correctly handle general case of AOP_PAIRPTR
14357         * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
14358
14359 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14360
14361         * src/mcs51/ralloc.c (fillGaps),
14362         * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
14363         register positioning bug)
14364
14365 2003-09-21  Bernhard Held <bernhard AT bernhardheld.de>
14366
14367         * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
14368
14369 2003-09-19  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14370
14371         * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
14372         genCodePointerGet, genGenPointerGet, genFarPointerSet,
14373         genGenPointerSet): handle AOP_DPTR correctly when loading dptr
14374         (ralloc doesn't intentionally do this now, but perhaps later)
14375         * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
14376         * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
14377         register positioning bugs (Fixed bug #762602 and #795325)
14378         * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
14379         (Fixed bug #808779)
14380         * src/z80/gen.c: increased _vemit2's buffer[] to handle long
14381         lines that --i-code-in-asm generates
14382
14383 2003-09-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14384
14385         *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
14386         trying to fclose a FILE* that was already closed.
14387
14388 2003-09-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14389
14390         * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
14391         of const struct should be treated as if const themselves)
14392
14393 2003-09-18  Bernhard Held <bernhard AT bernhardheld.de>
14394
14395         * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
14396
14397 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14398
14399         * support/librarian/sdcclib.c: Generate correct offsets for libraries with
14400         Unix (/n) and DOS (/r/n) line terminations.
14401
14402 2003-09-17  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14403
14404         * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
14405         bug #613775
14406
14407 2003-09-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14408
14409         * src/mcs51/gen.c (genFunction, genEndFunction),
14410         * src/ds390/gen.c (genFunction, genEndFunction): Moved save
14411         and restore of EA so that stack offsets to parameters are
14412         correct when using both critical and reentrant/stack-auto.
14413         * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
14414         size (can be triggered in error if sloc is shared between
14415         different sized objects)
14416         * device/include/float.h: fixed macros to explicitly use
14417         unsigned long where needed
14418
14419 2003-09-15  Bernhard Held <bernhard AT bernhardheld.de>
14420
14421         Feature req. 799831: added code to allow nesting of critical functions
14422         * src/mcs51/gen.c (genFunction, genEndFunction)
14423         * src/ds390/gen.c (genFunction, genEndFunction)
14424
14425 2003-09-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14426
14427         * src/SDCCsymt.c (sclsFromPtr),
14428         * src/SDCCsymt.h,
14429         * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
14430         support for standard C idiom of memory mapped variables; for
14431         example, *((xdata int*)0x1234) = 1 is now internally equivalent
14432         to xdata int at 0x1234 tempvar = 1.
14433         * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
14434         provided by Akiya ISHIDA
14435
14436 2003-09-13  Bernhard Held <bernhard AT bernhardheld.de>
14437
14438         * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
14439         * src/SDCCval.c (constVal): added reduction from int to char
14440         * src/SDCCval.c (valMult, valDiv): fixed sign handling
14441         * src/SDCCval.c (valShift): fixed after change of cheapestVal()
14442         * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
14443         to ignore the sign
14444         * support/regression/tests/shifts.c: fixed
14445
14446 2003-09-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14447
14448         * src/z80/gen.c (genXor): Fixed bug #805445
14449
14450 2003-09-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14451
14452         Fixed bug #621531 (const & volatile confusion in the type chain).
14453         DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
14454         refer to the const or volatile state of the pointer itself.
14455
14456         * src/SDCCast.c
14457         * src/SDCCglue.c
14458         * src/SDCCicode.c
14459         * src/SDCCsymt.c
14460         * src/SDCCval.c
14461         * src/SDCC.y
14462         * src/SDCCsymt.h
14463         * src/pic/gen.c
14464         * src/pic/ralloc.c
14465         * src/pic16/gen.c
14466         * src/pic16/ralloc.c
14467         * support/regression/tests/const.c
14468
14469 2003-09-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14470
14471         When checking for duplicated modules, use absolute paths
14472         instead of relative paths.  Files changed:
14473
14474         * as/mcs51/lklib.c
14475         * link/z80/lklib.c
14476
14477 2003-09-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14478
14479         * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
14480
14481 2003-09-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14482
14483         * device/include/string.h: added size_t typedef, changed
14484         prototypes to use size_t, eliminated separate reentrant and
14485         non-reentrant declarations, added _memmove declaration
14486         * device/lib/_memcpy.c: changed to use size_t instead of int,
14487         changed /4 to >>2 to avoid division library call
14488         * device/lib/_memcmp.c,
14489         * device/lib/_memset.c,
14490         * device/lib/_strncat.c,
14491         * device/lib/_strncpy.c,
14492         * device/lib/_strncmp.c: changed to use size_t instead of int
14493         * device/lib/_memmove.c: new file (fixed bug #772294)
14494         * device/lib/Makefile.in: added _memmove.c
14495         * device/lib/z80/asm_strings.s: fixed bug #772290
14496         * support/regression/tests/bitfields.c: attempt to fix host assertion
14497         failure on amd64-unknown-linux2.2
14498
14499 2003-09-06  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14500
14501         * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
14502         * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
14503         * as/z80/asmain.c (main): fixed bug #801766
14504
14505 2003-09-06  Bernhard Held <bernhard AT bernhardheld.de>
14506
14507         * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
14508         compilers
14509
14510 2003-09-05  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14511
14512         * src/SDCCast.c (isConformingBody): fixed loop reversal bug
14513         reported in bug #800609
14514
14515 2003-09-04  Vangelis Rokas <vrokas AT otenet.gr>
14516
14517         * Top header beautifications in src/pic16 directory:
14518           device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
14519           pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
14520           pcoderegs.h, ralloc.c, ralloc.h
14521         * main.c: added top header and GPL license notice
14522         * pcode.c: fixed the if-conditional warning
14523
14524 2003-09-04  Bernhard Held <bernhard AT bernhardheld.de>
14525
14526         * device/lib/_mullong.c: replaced int by short for gcc
14527
14528 2003-08-31  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14529
14530         * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
14531         and JUMPTABLE iCodes properly now (worked by accident before)
14532         * src/mcs51/gen.c (leftRightUseAcc),
14533         * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
14534         iCode properly now. Use getSize instead of nRegs since a & b
14535         aren't part of the nRegs tally.
14536
14537 2003-08-31  Vangelis Rokas <vrokas AT otenet.gr>
14538
14539         * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
14540         * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
14541           before instructions that use the _STATUS register
14542
14543 2003-08-31  Bernhard Held <bernhard AT bernhardheld.de>
14544
14545         * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
14546         * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
14547         fetching of the pointer
14548         * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
14549         copied from genNearPointerSet()
14550         * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
14551         * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
14552         If they pop r0/r1 they must be called in the opposite order than aopOp().
14553         * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
14554         (resp. --stack-auto), prepared for --xstack
14555
14556 2003-08-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14557
14558         * doc/sdccman.lyx: reverted tables to those in cvs 1.64
14559
14560 2003-08-28  Bernhard Held <bernhard AT bernhardheld.de>
14561
14562         * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
14563         these ports have their own __sdcc_external_start()
14564
14565 2003-08-26  Bernhard Held <bernhard AT bernhardheld.de>
14566
14567         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
14568         * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
14569         type for bits was changed. It resulted in bit variables becoming
14570         global, which is not permitted in PIC 14 assembly output.
14571
14572 2003-08-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14573
14574         * doc/sdccman.lyx: various additions and updates. Rearranged sections
14575
14576 2003-08-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14577
14578         Z80 and MCS51 linkers complaint if a public symbol is defined
14579         in more than one library module:
14580
14581         * as/mcs51/lklib.c
14582         * link/z80/lklib.c
14583         * as/mcs51/Makefile.in
14584
14585 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14586
14587         A few small changes that speed up the peephole optimizer.
14588
14589         * src/SDCCpeeph.c
14590
14591 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14592
14593         Try to make the peephole optimizer smarter by maintaining
14594         an association between the assembly source code and the
14595         iCodes that originated them. Put this information to use
14596         with a new peephole rule condition "notVolatile" so that
14597         the rules can be aggressive yet still safe.
14598
14599         * src/SDCCpeeph.c
14600         * src/SDCCpeeph.h
14601         * src/mcs51/gen.c
14602         * src/mcs51/peeph.def
14603
14604 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14605
14606         Fixed bug #741761
14607
14608         * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
14609         * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
14610         if the left or right operand symbols have the accuse flag set.
14611
14612 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14613
14614         Changed the type of the result of the ! (NOT) operator to char;
14615         previously it returned the same type as the source. This allows
14616         us to eliminate all the genFloatNot functions (all of its target
14617         implementations were very buggy) since !float can use the same
14618         code as !long now.
14619
14620         * src/SDCCicode.c (ast2iCode): ! returns char
14621         * src/mcs51/gen.c (genNot, genNotFloat),
14622         * src/ds390/gen.c (genNot, genNotFloat),
14623         * src/z80/gen.c (genNot, genNotFloat),
14624         * src/pic/gen.c (genNot, genNotFloat),
14625         * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
14626
14627 2003-08-19  Bernhard Held <bernhard AT bernhardheld.de>
14628
14629         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
14630         1. Interrupt would not compile properly. Ensure PCLATH register is saved
14631            during interrupts. Ensure WSAVE is located at a shared bank address.
14632         2. Fixed page selection in some places
14633         3. Fixed BTFSS/C to where necessary use registers directly and not simply
14634            the registers name strings.
14635         4. Fixed "signed / unsigned compare" compiler warnings.
14636         5. The PIC port manages its own allocation of the general purpose
14637            registers, but makes no attempt to reuse them. As a result when
14638            compiling it soon runs out of general purpose registers. Some
14639            additional code was added to the files pcode.c and device.c to walk
14640            through the function call tree and rename the registers so that they
14641            get reused.
14642
14643         * src/pic/device.c
14644         * src/pic/gen.c
14645         * src/pic/glue.c
14646         * src/pic/pcode.c
14647         * src/pic/pcode.h
14648         * src/pic/ralloc.c
14649         * src/pic/ralloc.h
14650         * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
14651         genPlus() & genMinus() when the result is the same as left or right
14652
14653 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14654
14655         * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
14656
14657 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14658
14659         Made bitfield a distinct type from bit so that bitfields
14660         convert as per ANSI C and bits retain their traditional
14661         boolean style behaviour. Implemented bitfield support in
14662         the z80 port.
14663
14664         * src/SDCCsymt.h,
14665         * src/SDCCsymt.c,
14666         * src/SDCCast.c,
14667         * src/cdbFile.c,
14668         * src/mcs51/gen.c,
14669         * src/ds390/gen.c: bit v bitfield split
14670         * src/z80/gen.c: New support for bitfields
14671         * support/regression/tests/bitfields.c: reenabled z80,
14672         added more tests
14673
14674 2003-08-17  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14675
14676         Rules 246.x, 247.x relate to bitfields, the others speed up
14677         access to xdata mapped I/O devices.
14678
14679         * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
14680
14681 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14682
14683         Cleaned up genPackBits and genUnpackBits and added two helper
14684         functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
14685         for literal assignments in genPackBits (thanks to Frieder for
14686         reminding me).
14687
14688         * src/mcs51/gen.c
14689         * src/ds390/gen.c
14690
14691 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14692
14693         Fixed bug #748310 (pointer to function type mishandled when the
14694         function name is omitted). Also fixed a SIGSEGV when a function
14695         attribute (reentrant, etc) is used on a non-function or on a
14696         function but misplaced before the parameter list.
14697
14698         * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
14699         bug #748310
14700         * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
14701         * support/Util/SDCCerr.h,
14702         * support/Util/SDCCerr.c: Added func attr misuse error msg
14703
14704 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
14705
14706         Fixed bug #787649 by anonymous
14707         * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
14708         * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
14709
14710 2003-08-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14711
14712         Fixed numerous bitfield problems.
14713
14714         * src/SDCC.y: More bitfield related error checking
14715         * src/SDCCsymt.h,
14716         * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
14717         * support/Util/SDCCerr.h,
14718         * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
14719         * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
14720         * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
14721         * support/regression/tests/bitfields.c: tests added
14722
14723 2003-08-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14724
14725         Made the constant following the "interrupt" keyword optional. If
14726         omitted, the function will not automatically be given an entry
14727         in the interrupt vector table (similar to #pragma NOIV, but
14728         less syntacticly kludgy). The interrupt number is also now
14729         range checked. Also fixed a bug in the high order bit example
14730         in the manual.
14731
14732         * src/SDCC.y
14733         * src/SDCCmem.c
14734         * src/SDCCglue.c
14735         * src/SDCCsymt.h
14736         * support/Util/SDCCerr.c
14737         * support/Util/SDCCerr.h
14738         * doc/sdccman.lyx
14739
14740 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
14741
14742         * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
14743         * src/SDCCicode.c (operandOperation): rewritten some ops
14744         (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
14745         * src/SDCCsymt.c (computeType): literals are handled the same way as any
14746         other type
14747         * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
14748         be re-activated by defining REDUCE_LITERALS)
14749         * src/SDCCval.c (constVal): fixed; hex and octal constants can be
14750         unsigned, but are signed by default
14751         * src/SDCCval.c (constVal): rearranged
14752         * src/SDCCval.c (valMod): preliminary fix
14753         * src/SDCCval.c (valCastLiteral): use TYPE_* types
14754         * support/regression/literalop.c: added, work in progress
14755
14756 2003-08-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14757
14758         Generate warnings for useless declarations like "char data;"
14759         that don't do what new users expect.
14760
14761         * src/SDCC.y
14762         * support/Util/SDCCerr.h
14763         * support/Util/SDCCerr.c
14764
14765 2003-08-09  Bernhard Held <bernhard AT bernhardheld.de>
14766
14767         * src/SDCCval.c (valMult): fix overflow detection of negative int
14768
14769 2003-08-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14770
14771         * src/z80/ralloc.c (joinPushes): made compatible with new signedness
14772
14773         Changes to support big endian targets:
14774
14775         * src/ports.h
14776         * src/SDCCglue.c
14777         * src/avr/main.c
14778         * src/ds390/main.c
14779         * src/izt/i186.c
14780         * src/mcs51/main.c
14781         * src/pic/main.c
14782         * src/pic16/main.c
14783         * src/xa51/main.c
14784         * src/z80/main.c
14785
14786 2003-08-06  Bernhard Held <bernhard AT bernhardheld.de>
14787
14788         * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
14789         * device/lib/time.c: fixed warning "integer overflow in expression"
14790
14791 2003-08-05  Bernhard Held <bernhard AT bernhardheld.de>
14792
14793         * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
14794         * src/SDCCval.c (constVal): changed default to signed; hex and octal
14795         constants are unsigned; added recognition of "u" flag for unsigned
14796         * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
14797         * src/SDCCval.c (valDiv, valMod): fixed signdness
14798         * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
14799         signedness of modulo, left and right shift
14800         * support/Util/SDCCerr.c: added warning "integer overflow in expression"
14801         * support/Util/SDCCerr.h: added warning W_INT_OVL
14802         * src/SDCCast.c (decorateType): fixed gcc3.3 warning
14803         * src/SDCCast.c (ast_print): improved output of constants
14804
14805 2003-08-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14806
14807         Fixed some warnings when building with MSVC:
14808
14809         * as/mcs51/asdata.c
14810         * as/z80/asdata.c
14811         * as/mcs51/asm.h
14812         * as/z80/asm.h
14813         * link/z80/aslink.h
14814         * link/z80/lkdata.c
14815         * link/z80/lkeval.c
14816         * link/z80/lkgb.c
14817         * link/z80/lkihx.c
14818         * link/z80/lks19.c
14819         * link/z80/lksym.c
14820         * support/cpp2/cpplib.c
14821         * src/ds390/gen.c
14822         * src/mcs51/gen.c
14823
14824 2003-08-03  Bernhard Held <bernhard AT bernhardheld.de>
14825
14826         * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
14827
14828 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14829
14830         * support/librarian/clean.mk: Do not remove Makefile.
14831         * support/librarian/Makefile: added.
14832
14833 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14834
14835         Added librarian to MSVC build:
14836         * all.dsp
14837         * sdcc.dsw
14838         * support/librarian/librarian.dsp
14839
14840         'configure' not needed for librarian, removed:
14841         * support/librarian/configure
14842         * support/librarian/configure.in
14843         * support/librarian/config_in.h
14844         * support/librarian/Makefile.in
14845
14846         Hopefully these ones built the librarian and the rest of sdcc properly:
14847         * Makefile
14848         * Makefile.common.in
14849
14850         Messed up 'configure', so revert to previous version:
14851         * configure
14852         * configure.in
14853
14854 2003-07-31  Bernhard Held <bernhard AT bernhardheld.de>
14855
14856         * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
14857         there, while the mantissa of a double is "only" 53 bits wide.
14858
14859 2003-07-31  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14860
14861         Adding sdcclib to the build.  MSVC project coming soon.
14862         Files added/changed:
14863
14864         * support/librarian/clean.mk
14865         * support/librarian/configure
14866         * support/librarian/configure.in
14867         * support/librarian/config_in.h
14868         * support/librarian/Makefile.bcc
14869         * support/librarian/Makefile.in
14870         * support/librarian/sdcclib.c
14871         * Makefile.bcc
14872         * Makefile
14873         * Makefile.common.in
14874         * configure
14875         * configure.in
14876
14877 2003-07-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14878
14879         Linker now complaints if linked modules have conflicting options, for
14880         example, one compiled using --model-large and another one compiled with
14881         --model-small.  The following files were modified:
14882
14883         * as/mcs51/asdata.c
14884         * as/mcs51/aslink.h
14885         * as/mcs51/asm.h
14886         * as/mcs51/asmain.c
14887         * as/mcs51/asout.c
14888         * as/mcs51/i51pst.c
14889         * as/mcs51/lkdata.c
14890         * as/mcs51/lklibr.c
14891         * as/mcs51/lkmain.c
14892         * as/z80/asdata.c
14893         * as/z80/asm.h
14894         * as/z80/asmain.c
14895         * as/z80/asout.c
14896         * as/z80/z80pst.c
14897         * link/z80/aslink.h
14898         * link/z80/lkdata.c
14899         * link/z80/lklibr.c
14900         * link/z80/lkmain.c
14901         * src/SDCCglue.c
14902
14903 2003-07-28  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14904
14905         *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
14906         as/mcs51/lklibr.c: Generate a warning when a library is not found.
14907
14908 2003-07-28  Bernhard Held <bernhard AT bernhardheld.de>
14909
14910         * src/z80/mappings.i: fix _mul[us][int,long] entries
14911
14912 2003-07-26  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14913
14914         *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
14915
14916 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
14917
14918         * src/SDCCicode.c (operandOperation): really fixed problem with bitops
14919         * support/regression/tests/bitopcse.c: added
14920         fixed warning:
14921         * src/avr/gen.c:
14922         * src/pic/gen.c:
14923         * src/pic16/gen.c:
14924         * src/z80/gen.c:
14925         * src/xa51/gen.c:
14926
14927 2003-07-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14928
14929         added support for new library format to z80, gbz80 linkers:
14930         *link/z80/aslink.h
14931         *link/z80/lklex.c
14932         *link/z80/lklib.c
14933         *link/z80/lklist.c
14934
14935 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
14936
14937         * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
14938         after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
14939
14940 2003-07-23  Bernhard Held <bernhard AT bernhardheld.de>
14941
14942         added DUMMY_READ_VOLATILE:
14943         * src/SDCC.y:
14944         * src/avr/gen.c:
14945         * src/xa51/gen.c:
14946         * src/z80/gen.c:
14947         * src/pic/gen.c:
14948         * src/pic16/gen.c:
14949         * src/mcs51/gen.c:
14950         * src/ds390/gen.c:
14951         * src/SDCCcse.c (algebraicOpts): many improvements
14952         * src/SDCCcse.h: removed algebraicOpts()
14953         * src/SDCCicode.c (picDummyRead): added
14954
14955 2003-07-23  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14956
14957         * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
14958         "Insufficient space in data memory".
14959
14960 2003-07-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14961
14962         * src/mcs51/gen.c: fixed bug #771358
14963         * src/z80/gen.c: fixed bug #759087
14964
14965 2003-07-20  Bernhard Held <bernhard AT bernhardheld.de>
14966
14967         * src/pic16/glue.c: minor cleanup by Vangelis
14968
14969 2003-07-19  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14970
14971         * device/include/regc515c.h: fixed #758477
14972         * device/lib/_gptrget.c: saving some cycles in generic pointer get
14973         * device/lib/_gptrput.c: saved a few bytes
14974         * my tab spacing is 8, yours too?)
14975         * device/lib/_ser.c: process RX bytes earlier than TX bytes
14976         * device/lib/serial.c: process RX bytes earlier than TX bytes
14977         * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
14978
14979 2003-07-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14980
14981         * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
14982
14983 2003-07-17  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14984
14985         * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
14986
14987 2003-07-17  Bernhard Held <bernhard AT bernhardheld.de>
14988
14989         * device/lib/Makefile.in: bad fix, reverted to 1.43
14990
14991 2003-07-16  Bernhard Held <bernhard AT bernhardheld.de>
14992
14993         * device/lib/Makefile.in: added missing z80 object files
14994
14995 2003-07-14  Bernhard Held <bernhard AT bernhardheld.de>
14996
14997         * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
14998         pic16 progress by Vangelis:
14999         * src/SDCCglobl.h:
15000         * src/SDCCmain.c:
15001         * src/pic/Makefile:
15002         * src/pic:
15003         * pic/Makefile:
15004         * pic16/device.c:
15005         * pic16/device.h:
15006         * pic16/gen.c:
15007         * pic16/gen.h:
15008         * pic16/genarith.c:
15009         * pic16/glue.c:
15010         * pic16/main.c:
15011         * pic16/pcode.c:
15012         * pic16/pcode.h:
15013         * pic16/pcodepeep.c:
15014         * pic16/peeph.def:
15015
15016 2003-07-13  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15017
15018         * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
15019
15020 2003-07-12  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15021
15022         * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
15023         added gbz80 build to MSVC project.
15024         * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
15025         link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
15026         from 8051 stuff and setup so it links using a .lnk file.
15027
15028 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15029
15030         * support/librarian/sdcclib.c: sdcc librarian.
15031         * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
15032         with sdcclib.
15033
15034 2003-07-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15035
15036         * as/mcs51/lkmain.c: properly handle extensions in function afile.
15037
15038 2003-07-02  Borut Razem <borut.razem AT siol.net>
15039
15040         * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
15041         src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
15042         src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
15043         src/xa51/main.c, src/z80/main.c:
15044         virtualization of glue() function: each port has it's own glue function,
15045         which is accessed by do_glue function pointer in PORT.general structure
15046
15047 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
15048
15049         * DS800C400 fun, improved ROM interface and tinibios.
15050
15051 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
15052
15053         * More support for DS80C400. Now includes beginning of interface to ROM.
15054
15055 2003-06-25  Bernhard Held <bernhard AT bernhardheld.de>
15056
15057         * src/mcs51/gen.c (gencjneshort): fixed bug #760345
15058
15059 2003-06-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15060
15061         * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
15062
15063 2003-06-19  Borut Razem <borut.razem AT siol.net>
15064
15065         * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
15066
15067 2003-06-19  Borut Razem <borut.razem AT siol.net>
15068
15069         * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
15070         fixed Z80 port - crt0.o: cannot open.
15071
15072 2003-06-19  Bernhard Held <bernhard AT bernhardheld.de>
15073
15074         * support/Util/MySystem.c (merge_command): revert bad fix
15075
15076 2003-06-18  Borut Razem <borut.razem AT siol.net>
15077
15078         * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
15079
15080 2003-06-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15081
15082         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
15083         option --use-stdout sends errors to stdout instead of stderr.
15084
15085 2003-06-18  Bernhard Held <bernhard AT bernhardheld.de>
15086
15087         * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
15088
15089 2003-06-15  Borut Razem <borut.razem AT siol.net>
15090
15091         * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
15092         * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
15093         * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
15094         fixed width array of pointers replaced with sets;
15095         multiple include and lib paths ared transferred to preprocessor and linker
15096         * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
15097         * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
15098         fixed width array of pointers
15099         * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
15100         removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
15101         fixupPath(), getPathDifference()
15102         * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function  inExcludeList() by using sets instead
15103         fixed width array of pointers
15104
15105 2003-06-11  Bernhard Held <bernhard AT bernhardheld.de>
15106
15107         * src/pic16/ralloc.c: fix warnings
15108         * src/pic16/pcode.c: fix warning
15109
15110 2003-06-10  Scott Dattalo  <scott AT dattalo.com>
15111
15112          Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
15113         know all the details, but essentially this set of changes enable
15114         the pic16 port to generate movff instructions and generate assembler
15115         directives,
15116         * src/SDCCmain.c:
15117         * src/pic16/gen.c:
15118         * src/pic16/glue.c:
15119         * src/pic16/pcode.c:
15120         * src/pic16/device.c:
15121         * src/pic16/main.c:
15122         * src/pic16/pcode.h:
15123         * src/pic16/pcoderegs.c:
15124         * src/pic16/ralloc.c:
15125         * src/pic16/ralloc.h:
15126
15127 2003-06-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15128
15129         * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
15130         added option --vc, so sdcc errors and warnings are compatible with
15131         Microsoft Visual Studio.
15132
15133 2003-06-07  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15134
15135         * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
15136           device/lib/libfloat.lib: added atof function.
15137
15138 2003-06-04  Bernhard Held <bernhard AT bernhardheld.de>
15139
15140         * doc/sdccman.lyx: updated to Lyx 1.3
15141         * doc/cdbfileformat.lyx: updated to Lyx 1.3
15142         * doc/test_suite_spec.lyx: updated to Lyx 1.3
15143         * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
15144
15145 2003-06-03  Bernhard Held <bernhard AT bernhardheld.de>
15146
15147         * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
15148
15149 2003-06-02  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15150
15151         * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
15152           additions to the "related tools/documentation" section
15153
15154 2003-06-02  Bernhard Held <bernhard AT bernhardheld.de>
15155
15156         * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
15157
15158 2003-05-29  Bernhard Held <bernhard AT bernhardheld.de>
15159
15160         * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
15161         * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
15162
15163 2003-05-28  Bernhard Held <bernhard AT bernhardheld.de>
15164
15165         * doc/sdccman.lyx: fix double dash and other minor things
15166         * doc/Makefile: fix double dash
15167
15168 2003-05-28  Karl Bongers(patches from Martin Helmling)
15169         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
15170           condition and ignore commands.
15171
15172 2003-05-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15173
15174         * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
15175           is in parts still quite out of date, I did changes as far as I felt makes sense
15176           for a non-native english speaker.
15177           Please feel free to add to the manual or to correct my changes.
15178         * doc/Makefile: undid touching the date of intermediate tex files.
15179
15180 2003-05-26  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15181
15182         * doc/sdccman.lyx: Manual has an index now
15183
15184 2003-05-25  Bernhard Held <bernhard AT bernhardheld.de>
15185
15186         Finalize muluint/mulsint and mululong/mulslong merging:
15187         * device/lib/_mulint.c
15188         * device/lib/_mullong.c
15189         * device/lib/gbz80/mul.s
15190         * device/lib/gbz80/stubs.s
15191         * device/lib/z80/mul.s
15192         * device/lib/z80/stubs.s
15193         * src/SDCCsymt.c (initCSupport)
15194
15195 2003-05-25  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15196
15197         * as/mcs51/lkaomf51.c: Address space 'z' was missing.
15198         * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
15199           src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
15200           src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
15201           instead of /Zm500.
15202
15203 2003-05-25  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15204
15205         * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
15206           the regression tests I'm not brave enough to enable 245.b, 245.c
15207         * doc/sdccman.lyx: added latex preamble for hyperref package.
15208           Using pdflatex this will give you a hyperlinked pdf file with
15209           bookmarks. (prepend '%' before /usepackage if this breaks something)
15210
15211 2003-05-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15212
15213          * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
15214
15215 2003-05-22  Bernhard Held <bernhard AT bernhardheld.de>
15216
15217         * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
15218
15219 2003-05-21    <johan AT balder>
15220
15221         * src/SDCCglue.c (printIval): fixed bug #739934
15222
15223 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
15224
15225         Applied patch from bug 737905 (renamed yylineo to mylineno):
15226         * src/altlex.c
15227         * src/SDCCast.c
15228         * src/SDCglobl.h
15229         * src/SDCC.lex
15230         * src/SDCCsymt.c
15231         * src/SDCCval.c
15232         * src/pic16/pcode.c: Cleaned warnings
15233         * src/pic16/pcodeflow.c: Cleaned warnings
15234         * src/pic16/pcoderegs.c: Cleaned warnings
15235
15236 2003-05-19  Scott Dattalo  <scott AT dattalo.com>
15237
15238         * src/pic16/pcode.c: Cleaned warnings
15239         * src/pic16/pcodepeep.c: Cleaned warnings
15240         * src/pic16/ralloc.c: Cleaned warnings
15241
15242 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
15243
15244         * doc/sdccman.lyx: fixed bug 739745
15245         * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
15246
15247 2003-05-18  Bernhard Held <bernhard AT bernhardheld.de>
15248
15249         * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
15250         it can be defined with CFLAGS when running configure
15251         * src/SDCCmain.c: fixed compiling + linking with object files
15252
15253 2003-05-18  Vangelis Rokas (vrokas AT otenet.gr)
15254
15255         * configure.in: configure for pic16 port,
15256             added --disable-pic16-port
15257         * sdccconf_in.h: added macro OPT_DISABLE_PIC16
15258         * src/SDCCmain.c: linkOptions is changed to set *,
15259             added if/endif conditional macros to remove options help
15260             messages from optionsTable when a port is not configured, added
15261             support for the PIc16 port in the ports table, when executing
15262             the compiler with no port specified on command line, a default
15263             port is selected with the new macro DEFAULT_PORT which is
15264             defined in port.h, in setDefaultOptions() linkOptions is removed
15265             from initialization assignment, since now it is a set,
15266             parseCmdLine uses setParseWithComma for linkOptions, in
15267             linkEdit() linkOptions are accessed with new function indexSet()
15268             which returns the i'th item of a set variable. See SDCCset.c, in
15269             linkEdit() when calling buildCmdLine(), added linkOptions as
15270             last argument. Now users can pass arguments to gplink via the
15271             -Wl option, main() uses pic16glue() to glue up pic16 programs
15272         * src/SDCCpeeph.c: various changes to support pic16
15273         * src/SDCCset.c: added function  void *indexSet(set *, int)  to
15274             return the i'th item of the set
15275         * src/SDCCset.h: added function prototype for indexSet()
15276         * src/SDCCsymt.c: in checkSClass(), added support for PIC16
15277         * src/clean.mk: added pic16 in CLEANALLPORTS variable
15278         * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
15279             added macro DEFAULT_PORT
15280         * src/pic/main.c: corrected arguments of gplnk in _linkCmd
15281         * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
15282             generated
15283         * src/pic16/glue.c: commented out some error producing lines
15284         * src/pic16/main.c: __config directives are commented out to stop
15285             gpasm complaining and test the linkage with gplink, _linkCmd and
15286             _asmCmd changed to be more gplink and gpasm friendly
15287         * src/pic16/peeph.def: peep rule 3 is commented out, since it
15288             produced an error when parsed, peep rule 12 is added to utilize
15289             movff, but it is commented out since the pCode does not support
15290             yet a command with 2 address arguments
15291
15292 2003-05-18    <johan AT balder>
15293
15294         * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
15295         * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
15296 2003-05-17  Karl Bongers(apply patches from Martin Helmling)
15297
15298         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
15299         Added feature to script commands from file.
15300
15301 2003-05-14  Bernhard Held <bernhard AT bernhardheld.de>
15302
15303         * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
15304         * src/SDCCutil.c: include ctype.h for win32
15305
15306 2003-05-13  Bernhard Held <bernhard AT bernhardheld.de>
15307
15308         * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
15309
15310 2003-05-12  Karl Bongers(apply development patches from Martin Helmling)
15311
15312         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
15313         Fixed so you can set breakpoints prior to run, run does not stop
15314         on entry now.  Add tbreak.  Other enhancements and fixes for use
15315         with ddd.
15316
15317 2003-05-12  Borut Razem <borut.razem AT siol.net>
15318
15319         * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
15320
15321 2003-05-11  Borut Razem <borut.razem AT siol.net>
15322
15323         * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
15324         the path of bin directory, so that PATH is the only env. variable, which has to be set
15325         in case of standard installation.
15326         * src/ds390/ds390.dsp: increased value of /Zm option to 1000
15327         * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
15328         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
15329
15330 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
15331
15332         * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
15333         * support/regression/Makefile: inter-port-clean is no longer nesessary, the
15334         temp files are in the port dir; clean the gen/test directory when
15335         generating new test.c
15336         * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
15337         * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
15338         * support/regression/tests/zeropad.c: added
15339
15340 2003-05-09    <johan AT balder>
15341
15342         * src/SDCCglue.c: fixed bug #597940
15343
15344 2003-05-05  Karl Bongers(apply patches from Martin Helmling)
15345
15346         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
15347         cache sfr, optimize next,step, fix off by one sourceline,
15348         support ddd list function.
15349         * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
15350
15351 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
15352
15353         * support/regression/HTMLgen.py: added compare_s2f()
15354         * support/regression/Makefile: redo 1.27
15355         * support/regression/generate-cases.py: redo 1.5
15356
15357 2003-04-30  Bernhard Held <bernhard AT bernhardheld.de>
15358
15359         * support/regression/tests/float.c: workaround 33 bit hex constant
15360         * support/regression/tests/simplefloat.c: fix division for host
15361
15362 2003-04-29  Scott Dattalo  <scott AT dattalo.com>
15363
15364         * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
15365         that tame's the PIC's over-aggressive optimizer.
15366
15367 2003-04-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15368
15369          * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
15370          support for MSVC.
15371
15372 2003-04-29  Kevin Vigor <kevin AT vigor.nu>
15373
15374         Initial support for DS80C400. "Hello world" runs on TINIm400
15375         (with polled I/O).
15376
15377 2003-04-28  Karl Bongers(apply patches for Martin Helmling)
15378
15379          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
15380          * Some notes on ddd usage added in debugger/README
15381          Martin Helmling adding more features and fixes for ddd GUI debugger.
15382          Code added for nexti, stepi, up, down, and other adjustments.
15383
15384 2003-04-28  Scott Dattalo  <scott AT DATTALO.COM>
15385
15386         * src/pic/pCodepeep.c non-wildcard asmops are now handled
15387         * src/pic/peeph.def Added two rules to optimize carry manipulation
15388         * src/pic/* removed debug printfs
15389
15390 2003-04-28  Bernhard Held <bernhard AT bernhardheld.de>
15391
15392         * debugger/mcs51/cmd.c: added header newalloc.h
15393
15394 2003-04-26  Bernhard Held <bernhard AT bernhardheld.de>
15395
15396         * as/Makefile: new EXEEXT
15397         * as/z80/Makefile: remove trailing slash of BUILDIR
15398         * as/z80/clean.mk: new EXEEXT
15399         * Makefile.common.in: add to CFLAGS (and others), don't replace it
15400         * support/cpp2/Makefile.in: new EXEEXT
15401         * src/pic/glue.c (pic14emitRegularMap): fixed warning
15402
15403 2003-04-24  Bernhard Held <bernhard AT bernhardheld.de>
15404
15405         Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
15406         EXEEXT was introduced to fix all related problems with targets
15407         "clean", "install" and "uninstall"; a couple of further flaws
15408         especially with "clean" have been fixed too
15409         * as/mcs51/Makefile.in
15410         * as/mcs51/clean.mk
15411         * as/z80/Makefile
15412         * Makefile
15413         * clean.mk
15414         * debugger/mcs51/Makefile.in
15415         * debugger/mcs51/clean.mk
15416         * link/z80/Makefile
15417         * link/z80/Makefile.in
15418         * link/z80/clean.mk
15419         * link/Makefile
15420         * packihx/Makefile.in
15421         * packihx/clean.mk
15422         * sim/ucsim/Makefile
15423         * sim/ucsim/clean.mk
15424         * sim/ucsim/avr.src/Makefile.in
15425         * sim/ucsim/avr.src/clean.mk
15426         * sim/ucsim/s51.src/Makefile.in
15427         * sim/ucsim/s51.src/clean.mk
15428         * sim/ucsim/xa.src/Makefile.in
15429         * sim/ucsim/xa.src/clean.mk
15430         * sim/ucsim/z80.src/Makefile.in
15431         * sim/ucsim/z80.src/clean.mk
15432         * sim/ucsim/main_in.mk
15433         * sim/ucsim/packages_in.mk
15434         * sim/ucsim/gui.src/Makefile.in
15435         * sim/ucsim/gui.src/serio.src/Makefile.in
15436         * sim/ucsim/gui.src/serio.src/clean.mk
15437         * src/Makefile.in
15438         * src/clean.mk
15439         * support/cpp2/Makefile.in
15440         * support/cpp2/clean.mk
15441         * support/makebin/Makefile
15442         * support/makebin/clean.mk
15443         * support/scripts/sdcc_mingw32: --program-suffix no longer needed
15444         * doc/sdccman.lyx: --program-suffix no longer needed
15445
15446 2003-04-23  Karl Bongers(apply patches for Martin Helmling)
15447
15448          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
15449          Martin Helmling added support for ddd GUI debugger.
15450          Code added to display assembly, set variables, and other commands
15451          to interface to ddd.
15452
15453 2003-04-23  Bernhard Held <bernhard AT bernhardheld.de>
15454
15455         * as/Makefile: fix target clean
15456         * as/clean.mk: fix target clean
15457         * as/z80/clean.mk: fix target clean
15458
15459 2003-04-22  Bernhard Held <bernhard AT bernhardheld.de>
15460
15461         * Makefile.common.in: added  AT EXEEXT AT
15462         * configure.in: removed all mingw32 stuff
15463         * configure: rebuilt from configure.in
15464         * doc/sdccman.lyx: updated section "installation"
15465         * support/scripts/sdcc_mingw32: adapted to configure
15466         * support/scripts/sdcc_cygwin_mingw32: added
15467
15468 2003-04-22  Scott Dattalo  <scott AT dattalo.com>
15469
15470         * src/pic Added object file support for the PIC port
15471         * src/pic Applied patch from Craig Franklin (this started the object file support)
15472         * src/regression Updated the PIC regression tests for object files
15473
15474 2003-04-20  Borut Razem <borut.razem AT siol.net>
15475
15476         * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
15477           lklex.c: In function `getfid':
15478           lklex.c:203: warning: array subscript has type `char'
15479         * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
15480           with MSVC with global optimization enabled (probably an cl compiler bug ;-)
15481         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
15482           stack handling macros
15483
15484 2003-04-19  Borut Razem <borut.razem AT siol.net>
15485
15486         * "handling space characters in file path" task:
15487         * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
15488         * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
15489         * support/Util/MySystem.h: make it self-sufficient
15490         * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
15491           src/z80/main.c, sdcc/as/mcs51/lklex.c:
15492           handling space characters in file path
15493         * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
15494           (it will be used by assemblers, which have their own includes, e.g. gpasm)
15495         * support/Util/MySystem.c: handling space characters in executable's path
15496
15497 2003-04-19  Bernhard Held <bernhard AT bernhardheld.de>
15498
15499         * as/z80/Makefile: fix permanent rebuild of z80
15500         * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
15501         * support/regression/tests/bitfields.c: added Johan's bitfields.c
15502
15503 2003-04-18      Kevin Vigor <kevin AT vigor.nu>
15504
15505         * src/SDCCopt.c: add special case optimization to replace modulo by
15506           a power of two with a bitwise AND.
15507
15508 2003-04-18    <johan AT balder>
15509
15510         * src/mcs51/gen.c (getFreePtr): fixed bug #635354
15511
15512 2003-04-17    <johan AT balder>
15513
15514         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
15515         * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
15516
15517 2003-04-13  Borut Razem <borut.razem AT siol.net>
15518
15519         * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
15520         * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
15521           fixed mingw problem in adl_NORMALIZE_PATH
15522
15523 2003-04-12  Borut Razem <borut.razem AT siol.net>
15524
15525         * fixed "#pragma SAVE/RESTORE can not be nested":
15526         * src/SDCC.lex: reworked pragma handling functions
15527         * sdcc/src/SDCCglobl.h: reworked stack handling macros
15528         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
15529
15530 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
15531
15532         * src/SDCCutil.c (pathEquivalent): defined but not used
15533         * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
15534         * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
15535         * configure: rebuilt from configure.in
15536         * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
15537         * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
15538         * device/include/Makefile.in: replace sdcc_datadir
15539         * device/lib/Makefile.in: replace sdcc_datadir
15540         * Makefile.common.in: add LDFLAGS from configure
15541         * packihx/Makefile.in: use LDFLAGS
15542         * src/Makefile.in: use LDFLAGS
15543         * support/cpp2/Makefile.in: add LDFLAGS from configure
15544         * support/makebin/Makefile: use LDFLAGS
15545         * .version: bumped version number to 2.3.5
15546
15547 2003-04-12  Borut Razem <borut.razem AT siol.net>
15548
15549         * completed "different paths" task:
15550         * src/SDCCmacro.c: fixed bug in handling quotes
15551         * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
15552         * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
15553
15554 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
15555
15556         * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
15557
15558 2003-04-11 kevin Vigor <kevin AT vigor.nu>
15559
15560         * ds390/gen.c ds390/peeph.def: fix bug 706781
15561
15562 2003-04-11  Borut Razem <borut.razem AT siol.net>
15563
15564         * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
15565
15566 2003-04-10  Scott Dattalo  <scott AT dattalo.com>
15567
15568         * src/pic/* Applied the pointer-to-function patch from Steve Tell.
15569         * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
15570          set - this bit used to not be set...).
15571         * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
15572           bad code in PIC Port
15573         * src/regression/and2.c added to test bug 609268
15574         * src/regression/Makefile added and2.c to regression test
15575
15576
15577 2003-04-08    <johan AT CP255758-A>
15578
15579         * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
15580         * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
15581         * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
15582
15583 2003-04-07  Bernhard Held <bernhard AT bernhardheld.de>
15584
15585         * configure.in: fully support prefix, exec_prefix, datadir, docdir;
15586         fix bug #487815
15587         * support/cpp2/Makefile.in: fix bug #487815
15588         * configure: rebuilt from configure.in
15589         * Makefile.common.in: docdir changed, new path suffixes
15590         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
15591         * sdcc_vc_in.h: reflect changes from sdccconf.h
15592         * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
15593         * src/SDCCutil.h: remove BINDIR hack
15594         * doc/sdccman.lyx: update new path hierarchy
15595
15596 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
15597
15598         * src/SDCCpeeph.c: added okToRemoveSLOC test
15599
15600 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
15601
15602         * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
15603
15604 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
15605
15606         * src/SDCCpeeph.c: added labelIsReturnOnly test
15607         * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
15608
15609 2003-04-05    <johan AT balder>
15610
15611         * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
15612         * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
15613         * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
15614         * src/SDCCast.c: fixed a warning
15615         * src/SDCCast.h: fixed a warning
15616         * src/SDCCicode.c (operandFromAst): fixed a warning
15617
15618 2003-04-04    <johan AT balder>
15619
15620         * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
15621         * src/SDCCast.c (decorateType): fixed bug #715076
15622         * src/SDCC.y: fixed bug #702907
15623
15624 2003-04-03    <johan AT balder>
15625
15626         * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
15627         * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
15628         * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
15629         * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
15630         * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
15631
15632 2003-04-03  Bernhard Held <bernhard AT bernhardheld.de>
15633
15634         * _decdptr.c: fix return values
15635         * _gptrget.c: fix return values
15636         * _gptrgetc.c: fix return values
15637         * _gptrput.c: fix return values
15638         * _mulint.c: fix return values
15639         * as/z80/Makefile: fix 'make -j' problem
15640
15641 2003-04-02  Bernhard Held <bernhard AT bernhardheld.de>
15642
15643         * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
15644         * configure.in: big cleanup, updated to autoconf 2.5x
15645         * configure: rebuilt from configure.in
15646         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
15647         * sdcc_vc_in.h: reflect changes from sdccconf.h
15648         * doc/Makefile: fixed a flaw in "make install"
15649
15650 2003-04-02    <johan AT balder>
15651
15652         * src/ds390/gen.c (genCmp): no comments
15653         * src/mcs51/gen.c (genCmp): no comments
15654         * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
15655         * src/SDCCast.c (ast_print): fixed the function type in --dumptree
15656
15657 2003-04-01  Bernhard Held <bernhard AT bernhardheld.de>
15658
15659         * support/regression/generate-cases.py: place generated file in given sub directory
15660         * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
15661         * support/regression/Makefile: improvements for 'make -j';
15662         side effect: it's simpler and faster now
15663
15664 2003-03-31  Borut Razem <borut.razem AT siol.net>
15665
15666         * src/z80/main.c: link-{port} and as-{port} defined without path
15667         * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
15668
15669 2003-03-31  Bernhard Held <bernhard AT bernhardheld.de>
15670
15671         * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
15672
15673 2003-03-30  Borut Razem <borut.razem AT siol.net>
15674
15675         * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
15676           changed type of list parameter to set
15677         * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
15678         * src/port.h: changed type of do_assemble() parameter to set
15679         * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
15680           sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
15681           definition of "cppoutfilename" macro with NULL value in preProcess()
15682         * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
15683         * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
15684         * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
15685           replaced with set *binPathSet
15686         * shash_add() deallocates the item, if allready exsists, before adding the new one
15687         * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
15688
15689 2003-03-30  Scott Dattalo  <scott AT dattalo.com>
15690
15691         * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
15692           a nested for loop bug in the PIC port
15693         * src/regression/nestfor.c: new regression test file Steve wrote to test nested
15694           for loops
15695
15696 2003-03-29  Bernhard Held <bernhard AT bernhardheld.de>
15697
15698         * support/Util/dbuf.h: remove C++ stuff to make it portable
15699
15700 2003-03-28  Borut Razem <borut.razem AT siol.net>
15701
15702         * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
15703           literal strings in stringLiteral()
15704         * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
15705         * src/Makefile.bcc, src/Makefile.in, src/src.dsp: added support/Util/dbuf.c
15706           to the project
15707
15708 2003-03-27  Paul Stoffregen <paul AT pjrc.com>
15709
15710         * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
15711
15712 2003-03-26    <johan AT balder>
15713
15714         * src/mcs51/gen.c (saveRegisters): catched symbol abuse
15715         * src/ds390/gen.c (saveRegisters): catched symbol abuse
15716         * src/SDCCast.c (decorateType): fixed " -v < 3"
15717
15718 2003-03-23  Bernhard Held <bernhard AT bernhardheld.de>
15719
15720         * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
15721         Added Lenny Story's debug infrastructure changes:
15722         * src/Makefile.in:  added new files cdbFile.c and SDCCdebug.c
15723         * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
15724         * src/cdbFile.c: added
15725         * src/SDCCdebug.c: added
15726         * src/SDCCdebug.h: added
15727         * src/SDCCast.c (createFunction)
15728         * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
15729         * src/SDCCmain.c (parseCmdLine, main)
15730         * src/SDCCmem.c (redoStackOffsets)
15731         * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
15732         * src/SDCCsymt.h
15733         * src/common.h
15734         * src/avr/gen.c (genAVRCode)
15735         * src/ds390/gen.c (gen390Code)
15736         * src/mcs51/gen.c (gen51Code)
15737         * src/pic/gen.c (genpic14Code)
15738         * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
15739         * src/xa51/gen.c (genXA51Code)
15740         * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
15741
15742 2003-03-22  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15743
15744         * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
15745         * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
15746
15747 2003-03-22    <johan AT balder>
15748
15749         * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
15750
15751 2003-03-21  Bernhard Held <bernhard AT bernhardheld.de>
15752
15753         * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
15754         * doc/cdbfileformat.lyx: added, written by Lenny Story
15755         * doc/Makefile: added cdbfileformat.lyx
15756         * doc/clean.mk: added cdbfileformat.lyx
15757
15758 2003-03-20  Bernhard Held <bernhard AT bernhardheld.de>
15759
15760         * src/mcs51/peeph.def: fix bug #705773
15761
15762 2003-03-20    <johan AT balder>
15763
15764         An sfr/sbit can have an "at #" AND an initializer
15765         * src/SDCCsymt.c (checkSClass):
15766         * src/SDCCmem.c (allocGlobal):
15767         * src/SDCCmem.c (allocLocal):
15768         * src/SDCCast.c (createBlock):
15769
15770 2003-03-17  Bernhard Held <bernhard AT bernhardheld.de>
15771
15772         * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
15773
15774 2003-03-16    <johan AT balder>
15775
15776         Undid the hackup of const and volatile, the problem is much bigger
15777         * src/SDCC.y:1.65
15778         * src/SDCCast.c:1.171
15779         * src/SDCCglue.c:1.138
15780         * src/SDCCicode.c:1.146
15781         * src/SDCCsymt.c:1.150
15782         * src/SDCCval.c:1.65
15783
15784 2003-03-15  Bernhard Held <bernhard AT bernhardheld.de>
15785
15786         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
15787         * src/ds390/gen.c (genAddrOf): fixed bug #704087
15788
15789 2003-03-13    <johan AT balder>
15790
15791         Hackup const and volatile modifiers in type chains a bit:
15792         * src/SDCC.y:1.63
15793         * src/SDCCast.c:1.169
15794         * src/SDCCglue.c:1.136
15795         * src/SDCCicode.c:1.143
15796         * src/SDCCsymt.c1.146
15797         * src/SDCCsymt.h1.59
15798         * src/SDCCval.c:1.63
15799
15800 2003-03-12    <johan AT balder>
15801
15802         * src/SDCCBBlock.h: more LRH debugging junk
15803         * src/SDCCcflow.h: more LRH debugging junk
15804         * src/SDCCloop.c: more LRH debugging junk
15805         * src/SDCC.y (struct_declaration): fixed bug #697590
15806         * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
15807         * src/ds390/gen.c (aopForRemat): fixed bug #700031
15808         * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
15809
15810 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
15811         * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
15812         test function names must now match exactly).
15813         * src/SDCCcse.c: added special case in findCheaperOp to allow
15814         extending a short integer. Makes less awful code for bug 700121 test case.
15815
15816 2003-03-11  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15817
15818         * as/mcs51/lkmain.c: Added ASlink-Warning to messages
15819         * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
15820
15821 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
15822
15823         * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
15824         actually called (operandsNotEqual() was called for all
15825         operandsNotEqualX tests).
15826
15827 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
15828
15829         * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
15830         with shorter literals. Fixes bug 700121.
15831
15832 2003-03-11    <johan AT balder>
15833
15834         * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
15835
15836 2003-03-11  Bernhard Held <bernhard AT bernhardheld.de>
15837
15838         * src/SDCCloop.c (mergeRegions): an evil beast is dead
15839         * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
15840
15841 2003-03-10  Borut Razem <borut.razem AT siol.net>
15842
15843         * src/SDCCmain.c: pipe preprocessor's output
15844         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
15845         * sdcc_vc_in.h: define pclose as _pclose for WIN32
15846         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
15847         which closes all pipes in pipeSet set
15848         * src/SDCCset.c: free deleted item in function deleteSetItem()
15849         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
15850         moved from z80 to src subproject
15851         * .version: increased version number to 2.3.4
15852
15853 2003-03-10  Bernhard Held <bernhard AT bernhardheld.de>
15854
15855         * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
15856         * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
15857         * support/regression/ports/xa51/spec.mk: fix typo
15858
15859 2003-03-09  Bernhard Held <bernhard AT bernhardheld.de>
15860
15861         * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
15862
15863 2003-03-09  Borut Razem <borut.razem AT siol.net>
15864
15865         * src/SDCCmain.c: pipe preprocessor's output
15866         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
15867         * sdcc_vc_in.h: define pclose as _pclose for WIN32
15868         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
15869         which closes all pipes in pipeSet set
15870         * src/SDCCset.c: free deleted item in function deleteSetItem()
15871         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
15872         moved from z80 to src subproject
15873
15874 2003-03-09  Borut Razem <borut.razem AT siol.net>
15875
15876         * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
15877         * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
15878         * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
15879         * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
15880         * src/SDCCglobl.h: unification of WIN32 native definitions
15881
15882 2003-03-09  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15883
15884         * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
15885
15886 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
15887
15888         * src/configure.in:   check for endianess (even while cross-compiling)
15889         * src/configure:      check for endianess (even while cross-compiling)
15890         * src/configure_in.h: check for endianess (even while cross-compiling)
15891         * src/avr/gen.c:        remove old endianess stuff
15892         * src/mcs51/gen.c:      remove old endianess stuff
15893         * src/ds390/gen.c:      remove old endianess stuff
15894         * src/pic/gen.c:        remove old endianess stuff
15895         * src/pic/genarith.c:   remove old endianess stuff
15896         * src/pic/glue.c:       fix endianess check
15897         * src/pic16/gen.c:      remove old endianess stuff
15898         * src/pic16/genarith.c: remove old endianess stuff
15899         * src/pic16/glue.c:     fix endianess check
15900         * src/xa51/gen.c:       remove old endianess stuff
15901         * src/z80/gen.c:        fix endianess check
15902         * src/SDCCglue.c:       fix endianess check
15903         * src/ds390/peeph.def: fix bug 700036
15904
15905 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
15906
15907         * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
15908         * src/configure: find appropriate data-types on host for SDCC's int and long
15909         * src/configure.in: find appropriate data-types on host for SDCC's int and long
15910         * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
15911         * src/xa51/gen.c: use %d, not %ld for 4 byte variables
15912
15913 2003-03-07    <johan AT balder>
15914
15915         Just a big NOOP:
15916                 some minor cleanups before the big shot
15917                 OP_DEFS and OP_USES now use Kevin's protection
15918                 new option --nolabelopt
15919
15920         * src/SDCCBBlock.c:
15921         * src/SDCCast.c,:
15922         * src/SDCCcflow.c:
15923         * src/SDCCcse.c:
15924         * src/SDCCicode.c:
15925         * src/SDCCicode.h:
15926         * src/SDCClabel.c:
15927         * src/SDCCloop.c:
15928         * src/SDCCmain.c:
15929         * src/ds390/ralloc.c:
15930         * src/mcs51/ralloc.c:
15931         * src/pic/ralloc.c:
15932         * src/xa51/ralloc.c:
15933         * src/z80/ralloc.c:
15934
15935 2003-03-06  Bernhard Held <bernhard AT bernhardheld.de>
15936
15937         * src/pic/pcode.c (get_op): fix 64 bit warnings
15938         * src/pic/pcode.c (pCode2str): fix 64 bit warnings
15939         * src/SDCChasht.c (newHashTable): fix 64 bit warnings
15940         * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
15941         * support/regression/tests/malloc.c: fix 64 bit warnings
15942
15943 2003-03-04  Bernhard Held <bernhard AT bernhardheld.de>
15944
15945         * src/mcs51/gen.c (genMinus): fixed bug 696436
15946
15947 2003-03-02  Borut Razem <borut.razem AT siol.net>
15948
15949         * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
15950
15951 2003-02-26  Bernhard Held <bernhard AT bernhardheld.de>
15952
15953         * configure.in: test for mkstemp
15954         * sdccconf_in.h: add HAVE_MKSTEMP
15955
15956 2003-02-24  Bernhard Held <bernhard AT bernhardheld.de>
15957
15958         * device/include/ctype.h: removed warning while using --stack-auto
15959         * device/include/malloc.h: removed warning while using --stack-auto
15960         * device/include/string.h: removed warning while using --stack-auto
15961
15962 2003-02-23  Borut Razem <borut.razem AT siol.net>
15963
15964         * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
15965         because NDEBUG is defined (see man assert)
15966         * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
15967
15968 2003-02-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15969
15970         * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
15971         * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
15972
15973 2003-02-18  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15974
15975         * src/SDCCpeeph.c: added peephole conditions testing for same arguments
15976         * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
15977
15978 2003-02-18    <johan AT balder>
15979
15980         * as/mcs51/asmain.c (asmbl): module can start with a digit
15981         * as/z80/asmain.c (asmbl): module can start with a digit
15982
15983 2003-02-16  Bernhard Held <bernhard AT bernhardheld.de>
15984
15985         * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
15986         * src/asm.c: fix pipe() for Mingw32
15987
15988 2003-02-15  Bernhard Held <bernhard AT bernhardheld.de>
15989
15990         * src/SDCCglue.h: make tmpfileNameSet available for preOutName
15991         * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
15992         make -V work again; --c1mode reads now from stdin
15993         * doc/sdccman.lyx: added --c1mode
15994         * support/Util/SDCCerr.c: new messages for c1 mode
15995         * support/Util/SDCCerr.h: new messages for c1 mode
15996         * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
15997
15998 2003-02-15    <johan AT balder>
15999
16000         * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
16001
16002 2003-02-14  Bernhard Held <bernhard AT bernhardheld.de>
16003
16004         * doc/sdccman.lyx: Environment variables, -o and other minor things
16005
16006 2003-02-14    <johan AT balder>
16007
16008         * src/xa51/main.c: before anyone really tries to use it :)
16009
16010         * Install doc's in share/sdcc/doc
16011         * removed some obsolete files
16012         * Do a proper make distclean and uninstall
16013         M Makefile.common.in
16014         R sdccbuild.sh
16015         M as/Makefile
16016         M device/include/Makefile.in
16017         M device/lib/Makefile.in
16018         M doc/sdccman.lyx
16019         M link/Makefile
16020         M sim/ucsim/doc/Makefile.in
16021         M src/clean.mk
16022         R src/avr/peeph.rul
16023         R src/xa51/peeph.rul
16024         M support/cpp2/Makefile.in
16025         M support/makebin/Makefile
16026
16027
16028 2003-02-13  Bernhard Held <bernhard AT bernhardheld.de>
16029
16030         * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
16031
16032 2003-02-10  Borut Razem <borut.razem AT siol.net>
16033
16034         * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
16035         support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
16036         * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
16037         device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
16038         support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
16039         src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
16040         src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
16041         src/z80/Makefile.bcc: Borland Makefile cleanup
16042         * as/z80/Makefile.bcc: Added Borland Makefile
16043         * support/cpp2/borland.h: Removed
16044
16045 2003-02-10  Bernhard Held <bernhard AT bernhardheld.de>
16046
16047         * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
16048         * src/SDCC.lex: new pragma NOIV
16049         * src/SDCCglobl.h: new pragma NOIV
16050         * src/SDCCmem.c: new pragma NOIV
16051
16052 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
16053
16054         * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
16055
16056 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
16057
16058         * src/SDCCmain.c: signal handling is switched off by --debug
16059         * doc/Makefile: small fix for install; use clean.mk again
16060         * doc/clean.mk: clean *.pdf and *.html too
16061
16062 2003-02-08  Bernhard Held <bernhard AT bernhardheld.de>
16063
16064         * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
16065         * device/lib/printfl.c: fix a ds390 bug by making it portable
16066         * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
16067         * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
16068         * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
16069         * debugger/mcs51/cmd.c: converted multi-line string literals
16070         * sim/ucsim/globals.cc: converted multi-line string literals
16071         * src/SDCCmain.c: introduced signal handler to remove temp files
16072         * doc/Makefile: small tweaks, implement clean
16073         * doc: removed generated files
16074
16075 2003-02-05  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16076
16077         * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
16078         patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
16079         Address Record is not correctly generated for DS390."
16080
16081 2003-02-02  Borut Razem <borut.razem AT siol.net>
16082
16083         * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
16084         * as/mcs51/asm.h: fixed compilation with Borland C
16085         * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
16086         * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
16087         * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
16088         * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
16089         src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
16090         src/z80/Makefile.bcc: delete $(LIB) only if exist
16091         * src/Makefile.bcc, src/pic/Makefile.bcc:  fixed compilation with Borland C
16092
16093 2003-02-02  Bernhard Held <bernhard AT bernhardheld.de>
16094
16095         * device/include/malloc.h: introduced NULL
16096         * device/include/string.h: introduced NULL
16097         * device/include/stdlib.h: introduced NULL
16098         * device/lib/_memcpy.c: removed NULL
16099         * device/lib/_strcat.c: removed NULL
16100         * device/lib/_strchr.c: removed NULL
16101         * device/lib/_strcmp.c: removed NULL
16102         * device/lib/_strcpy.c: removed NULL
16103         * device/lib/_strcspn.c: removed NULL
16104         * device/lib/_strlen.c: removed NULL
16105         * device/lib/_strncat.c: removed NULL
16106         * device/lib/_strncmp.c: removed NULL
16107         * device/lib/_strncpy.c: removed NULL
16108         * device/lib/_strpbrk.c: removed NULL
16109         * device/lib/_strrchr.c: removed NULL
16110         * device/lib/_strspn.c: removed NULL
16111         * device/lib/_strstr.c: removed NULL
16112         * device/lib/_strtok.c: removed NULL
16113         * device/lib/malloc.c: removed NULL, include own header
16114
16115 2003-02-02    <johan AT balder>
16116
16117         * 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
16118         * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
16119         * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
16120         * src/z80/gen.c (genZ80Code): added c-lines in asm comments
16121         * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
16122         * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
16123
16124 2003-02-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16125
16126         * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
16127         area 'DATA'"
16128
16129 2003-02-01    <johan AT balder>
16130
16131         * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
16132
16133 2003-01-31    <johan AT CP255758-A>
16134
16135         * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
16136
16137 2003-01-30    <johan AT balder>
16138
16139         * src/SDCCBBlock.c: automatic bug detection
16140         * src/SDCCicode.c: automatic bug detection
16141
16142 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16143
16144         * src/SDCCglobl.h:   now --xram-size 0 works
16145         * src/SDCCmain.c:    now --xram-size 0 works
16146
16147 2003-01-29    <johan AT balder>
16148
16149         * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
16150
16151 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16152
16153         * as/mcs51/aslink.h: Added options --xram-size and --code-size
16154         * as/mcs51/lkdata.c: Added options --xram-size and --code-size
16155         * as/mcs51/lkmain.c: Added options --xram-size and --code-size
16156         * as/mcs51/lkmem.c:  Added options --xram-size and --code-size
16157         * src/SDCCglobl.h:   Added options --xram-size and --code-size
16158         * src/SDCCmain.c:    Added options --xram-size and --code-size
16159
16160 2003-01-28  Bernhard Held <bernhard AT bernhardheld.de>
16161
16162         * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
16163         * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
16164
16165 2003-01-27    <johan AT balder>
16166
16167         * src/SDCC.y: fixed bug #613764
16168
16169 2003-01-26    <johan AT balder>
16170
16171         * src/SDCClrange.c:  fixed Bernhard's "char * code ptr = &c"
16172         * src/SDCCsymt.h: fixed bug #673374
16173         * src/SDCCglue.c: fixed bug #661910
16174         * src/SDCCast.c: fixed bug #458099 and 673374
16175
16176 2003-01-26  Bernhard Held <bernhard AT bernhardheld.de>
16177
16178         * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
16179         * as/mcs51/strcmpi.h: added
16180         * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
16181         * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
16182         * as/mcs51/asmain.c: strcmpi -> as_strcmpi
16183         * as/mcs51/assym.c: strcmpi -> as_strcmpi
16184         * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
16185         * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
16186         * as/mcs51/lksym.c: strcmpi -> as_strcmpi
16187         * as/mcs51/Makefile.aslink: new module strcmpi
16188         * as/mcs51/Makefile.asx8051: new module strcmpi
16189         * as/mcs51/Makefil.bcc: new module strcmpi
16190         * as/mcs51/Makefile.in: new module strcmpi
16191         * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
16192
16193 2003-01-26    <johan AT balder>
16194
16195         * src/SDCCglue.c: reverted back to 1.124
16196         * src/SDCCast.c: reverted back to 1.156
16197         * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
16198
16199 2003-01-25    <johan AT balder>
16200
16201         * src/SDCCglue.c: A better fix for bug #661910
16202         * src/SDCCast.c: A better fix for bug #661910
16203         * src/SDCCglue.c (emitRegularMap): That was a little too efficient
16204
16205 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
16206
16207         * src/Makefile.in: remove spawn.o
16208         * src/SDCCmain.c: remove spawn.h
16209         * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
16210         * src/spawn.c: removed
16211         * src/spawn.h: removed
16212         * support/regression/ports/ds390/spec.mk: link with -r
16213
16214 2003-01-24    <johan AT CP255758-A>
16215
16216         * src/ds390/gen.c (aopOp): fixed bug #667458
16217         * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
16218         * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
16219         (createIvalCharPtr): an ival doesn't always have a storage class anymore
16220
16221 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
16222
16223         * src/mcs51/peeph.def: better assembler identation by Frieder
16224         * src/mcs51/gen.c: better assembler identation by Frieder
16225
16226 2003-01-22  Bernhard Held <bernhard AT bernhardheld.de>
16227
16228         * as/z80/string.h: removed for gcc 3.2
16229         * support/makebin/makebin.c: #include <string.h> for gcc 3.2
16230         * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
16231
16232 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
16233
16234         * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
16235         * src/SDCCpeeph.c (replaceRule): fix bug #663503
16236         * support/regression/Makefile: separate temp files for ports
16237         * support/regression/generate-cases.py: separate temp files for ports
16238         * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
16239         * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
16240
16241 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
16242
16243         * moved tinitalk to device/examples/ds390
16244
16245 2003-01-14  Bernhard Held <bernhard AT bernhardheld.de>
16246
16247         * as/mcs51/lkmem.c: rflag is for DS390
16248         * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
16249         * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
16250                          (linkEdit): move mem- and map-files the same way as ihx-files
16251         * src/z80/main.c (_setDefaultOptions): removed --generic
16252         * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
16253         * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
16254         * src/pic/glue.c (picglue): --c1mode works again
16255         * src/pic16/glue.c (pic16glue): --c1mode works again
16256         * src/asm.c (printCLine): fix #660034
16257
16258 2003-01-13  Bernhard Held <bernhard AT bernhardheld.de>
16259
16260         * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
16261         * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
16262         * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
16263         * as/mcs51/lkmem (summary): better fix for sp problem
16264         * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
16265         * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
16266         * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
16267                                               remove --stack-after-data
16268
16269 2003-01-12  Bernhard Held <bernhard AT bernhardheld.de>
16270
16271         * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
16272         * src/SDCCutil.c (join): ugly bug: missing '\0'
16273         * as/mcs51/lkmem.c (summary): sp on address 7 is safe
16274
16275 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
16276
16277         * src/SDCCmain.c (assemble, linkEdit): preparations for -o
16278         * src/port.h: typo
16279         * src/pic/main.c (_asmCmd): gpasm supports -o
16280         * src/z80/main.c: more general macros
16281         * device/lib/Makefile.in: remove intermediate files
16282
16283 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
16284
16285         * .version: Bumped version number to 2.3.3
16286         * src/SDCCBBlock.c: new option -o
16287         * src/SDCCglobl.h: new option -o
16288         * src/SDCCglue.c: new option -o
16289         * src/SDCCmain.c: new option -o
16290         * src/asm.c: new option -o
16291         * src/ds390/main.c: new option -o
16292         * src/pic/glue.c: new option -o
16293         * src/pic/pcode.c: new option -o
16294         * src/pic/ralloc.c: new option -o
16295         * src/pic16/glue.c: new option -o
16296         * src/pic16/pcode.c: new option -o
16297         * src/pic16/ralloc.c: new option -o
16298         * src/z80/main.c: new option -o
16299         * device/lib/Makefile.in: use -o
16300         * support/regression/ports/ds390/spec.mk: use -o
16301         * support/regression/ports/gbz80/spec.mk: use -o
16302         * support/regression/ports/mcs51/spec.mk: use -o
16303         * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
16304         * support/regression/ports/z80/spec.mk: use -o
16305         * support/regression/ports/ucz80/spec.mk: use -o
16306         * support/regression/ports/xa51/spec.mk: use -o
16307         * support/regression/fwk/lib/timeout.c: fix usage string
16308
16309 2003-01-09  Bernhard Held <bernhard AT bernhardheld.de>
16310         * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
16311
16312 2003-01-07    <johan AT balder>
16313
16314         * src/SDCCast.c (decorateType): fixed bug #600035
16315
16316 2003-01-07  Bernhard Held <bernhard AT bernhardheld.de>
16317         * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
16318         * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
16319         * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
16320         * src/pic/pcode.c: outcommented unused variable to remove warnings
16321         * src/pic/ralloc.c: outcommented unused variable to remove warnings
16322
16323 2003-01-06    <karl AT turbobit.com>
16324         * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
16325         regression tests.
16326
16327 2003-01-06    <johan AT balder>
16328
16329         * src/SDCCicode.c: fixed array add
16330
16331 2002-01-05  Bernhard Held <bernhard AT bernhardheld.de>
16332         * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
16333         * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
16334
16335 2003-01-04    <johan AT balder>
16336
16337         * src/SDCCval.c (getNelements): fixed the initialized array of structures
16338
16339 2002-12-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16340         * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
16341
16342 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
16343         * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
16344         * support/regression/tests/bug-524697.c: fit mem usage into 8032
16345
16346 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
16347         * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
16348
16349 2002-12-27  Bernhard Held <bernhard AT bernhardheld.de>
16350         * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
16351
16352 2002-12-26  Bernhard Held <bernhard AT bernhardheld.de>
16353         * src/mcs51/main.c: removed {bindir}{sep} from aslink
16354
16355 2002-12-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16356
16357         * in /sdcc/as/mcs51/ changed these files in order to create an
16358         aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
16359         lkmain.c.  Also added: lkmem.c and lkaomf51.c.  Changed the
16360         following files to include the previous two files: aslink.dsp,
16361         Makefile.aslink, Makefile.bcc, and Makefile.in.
16362
16363         * Changed /sdcc/src/SDCCmain.c so it creates files with extension
16364         .adb instead of .cdb
16365
16366 2002-11-09  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16367
16368         * /sdcc/as/mcs51/lklist.c: Now reports memory usage using the
16369         value from option --iram-size.
16370
16371 2002-09-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16372
16373         * /sdcc/as/mcs51/lklist.c: added boundary check before using
16374         dram[] array.
16375
16376 2002-09-18    <wiml AT hhhh.org>
16377
16378         * SDCClrange.h: exposed setFromRange() and setToRange()
16379         * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
16380           packRegsForAccUse() (bug 542397)
16381         * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
16382           multiple times and emitting the fetch operations more than once
16383           added aopGetUsesAcc() function to allow binary operators to
16384           fetch their operands in the correct order; made genMinus() emit
16385           compact code for X = LITERAL - Y
16386
16387 2002-09-00  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16388         * /sdcc/as/mcs51/lklist.c: Fixed incorrect number of parameters to
16389         sprintf() in line 1267.
16390
16391 2002-09-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16392         * /sdcc/src/SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
16393         like ports.
16394
16395 2002-09-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16396         Changes to aslink (All the changes are marked with 'JCF'):
16397
16398         * /sdcc/as/mcs51/aslink.h: External definition of sflag and
16399         summary().
16400
16401         * /sdcc/as/mcs51/lkarea.c: Computes the size of area BSEG_BYTES from
16402         area BSEG.  Also moves, if possible, the DATA area down into the internal
16403         ram so more space is available.
16404
16405         * /sdcc/as/mcs51/lkdata.c: Definition of memory summary output flag
16406         sflag.
16407
16408         * /sdcc/as/mcs51/lklist.c: For the BSEG area report the size in bits,
16409         not bytes.  Function summary() which creates a memory usage summary
16410         file with extension .mem.  Reports of overlaping stack and small stack
16411         size.  If the space for the stack is less than 16 bytes aslink trows a
16412         warning.
16413
16414         * /sdcc/as/mcs51/lkmain.c: Creation of some of the default areas for
16415         the 8051.  Option 'y' for memory summary output file.
16416
16417         Changes to sdcc (All the changes are marked with 'JCF'):
16418
16419         * /sdcc/src/SDCCglobl.h: External definition of RegBankUsed[4].
16420
16421         * /sdcc/src/SDCCglue.c:  If a register bank is used, creates an
16422         overlaying area for it (uses RegBankUsed[4]).
16423
16424         * /sdcc/src/SDCCmain.c: Definition RegBankUsed[4]; marks register
16425         bank zero as used by default.  By default aslink locates the stack
16426         (equivalent to --stack-after-data).  Pass option 'y' to aslink for
16427         the creation of the .mem file.  Delegates the allocation of data area
16428         to aslink (it is not longer 0x30 by default).  If --stack-loc passes
16429         the begining of the stack area to aslink.
16430
16431         * /sdcc/src/SDCCmem.c:  If a register bank is used, marks it so
16432         glue() in SDCCglue.c creates an area for it.
16433
16434 2002-09-03  Borut Razem <borut.razem AT siol.net>
16435         * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
16436         sdcc/src/pic/glue.c:
16437         introduced atexit() handler for teporay files removal in case of
16438         errors, assertions, ...
16439
16440 2002-08-29  Borut Razem <borut.razem AT siol.net>
16441         * sdcc/support/cpp2/auto-host_vc_in.h:
16442         re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
16443         with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
16444         Maybe there is a similar problem with BORLANDC? It should be checked!
16445
16446         * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
16447         corrected improper use of assert: the assignment to clr variable was done inside the assert.
16448         In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
16449         was not executed, and the compiler (cl) launched a warning:
16450         ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
16451
16452 2002-08-28  Bernhard Held <bernhard AT bernhardheld.de>
16453         * src/SDCCglue.c (printIvalArray): iterative calculation of array length
16454
16455 2002-08-28  Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
16456         * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
16457
16458         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
16459           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
16460           sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
16461           sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
16462           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
16463           sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
16464           sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
16465         - added Release configuration in VS projects
16466         - review of compiler an linker options
16467         - VC .exe files are generated in bin_vc directory, not to interfere
16468           with binaries generated from other projects (cygwin, mingw, bcc ...)
16469
16470         * sdcc/src/yacc.dsp: added
16471
16472         * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
16473         added - genarate sdcc_vc.h using sdcc_vc_in.h as template
16474         and insert the version number definitions from .version
16475
16476         * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
16477
16478         * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
16479         added - genarate auto-host.h using auto-host_vc_in.h as template
16480
16481         * sdcc/sdcc_vc.h,
16482         removed from CVS, generated automatically
16483
16484 2002-08-25  Bernhard Held <bernhard AT bernhardheld.de>
16485         * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
16486
16487 2002-08-11  Borut Razem <borut.razem AT siol.net>
16488         * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
16489
16490 2002-08-10  Borut Razem <borut.razem AT siol.net>
16491         * src/SDCCmain.c (main):
16492         file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
16493         platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
16494         The consequence was that some temporary files were not removed.
16495
16496         * src/SDCCglue.c:
16497         unification of code in functions tempfilename() and tempfile():
16498         function tempnam() is defined in Visual Studio 6.0 and .NET
16499
16500         * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
16501
16502         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
16503           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
16504         - removed compiler command line option /WX: Treats all warnings as errors
16505         - update a list of source files, included into the project
16506
16507         * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
16508           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
16509         changed project type to Generic Project so that can be correcly converted to VS.NET project
16510
16511         * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
16512
16513         * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
16514
16515         * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
16516
16517         * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
16518         added return 0 statements after assert() to make compiler happy
16519
16520         * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
16521         added newline in the def file to keep MSC compiler satisfied
16522
16523         * sdcc/src/z80/gen.c:
16524         - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
16525           so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
16526         - solved MSC error in function aopDump()
16527
16528         * sdcc_vc.h: define PREFIX as "\\sdcc"
16529
16530 2002-07-18  Bernhard Held <bernhard AT bernhardheld.de>
16531         * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
16532
16533 2002-06-22  Scott Dattalo <scott AT dattalo.com>
16534         * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
16535         - Rewrote the register banking algorithm.
16536         - Added pCode live-range analysis to registers (for now, only non-used and
16537         singly-used registers optimized away)
16538
16539         * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
16540
16541         * 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.
16542
16543 2002-05-10  Scott Dattalo <scott AT dattalo.com>
16544         * src/pic/*: Added support for multiplication. Fixed many,many bugs.
16545
16546 2002-04-22  Michael Hope  <michaelh AT vroom>
16547
16548         * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
16549
16550         * configure.in (DD_COPT): Added include support required for gbdk.
16551
16552         * .version: Bumped version number just to increase it.
16553
16554         * src/SDCCmain.c: Added -nostdinc to the default options.
16555
16556 2002-04-15  Michael Hope  <michaelh AT vroom>
16557
16558         * device/lib/z80/printf.c (sprintf): Added.
16559
16560         * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
16561
16562         * src/z80/peeph.def: Added transpose redundent load rule.
16563
16564         * src/z80/main.c: Added force callee saves for jaune.
16565
16566         * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
16567
16568         * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
16569
16570 2002-03-28  Johan Knol  <johan AT balder>
16571
16572         * src/SDCCval.c: fixed bug #532436
16573
16574 2002-03-14  Scott Dattalo <scott AT dattalo.com>
16575         * /src/port.h:
16576         Added "char *Processor" field to the port structure.
16577
16578         * /src/SDCCmain.c:
16579         Added -p option. Allows port dependent processor to be specified.
16580
16581         * all ports:
16582         Initialized the new field char *Processor field to NULL in all ports
16583
16584         * /src/pic/*:
16585         Compiler generated registers for interrupt context saving
16586         were not getting allocated.
16587
16588 2002-03-16  Sandeep Dutta  <sandeep AT ddi.com>
16589
16590         * /src/SDCCast.c:
16591         Fixed left shift. Will promote the left side of a left shift
16592         if a) left shifting more than size of operand or b) when assigned
16593         to something size > size of left side
16594
16595 2002-03-14  Scott Dattalo <scott AT dattalo.com>
16596         * src/pic/*
16597         tons of changes. Register allocation has been
16598         rewritten. Added customization for the various PICs. Flow
16599         analysis is restructured. ...
16600
16601         * src/pic/device.h:
16602         Added
16603
16604         * src/pic/device.c:
16605         Added. device.c is a PIC port hack to accomodate variations
16606         in PIC devices.
16607
16608 2002-03-13  Michael Hope  <michaelh AT vroom>
16609
16610         * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled.  Yeah.
16611
16612 2002-03-04  johanknol  <johanknol AT manik>
16613
16614         * /src/SDCCval.c: fixed
16615
16616         const unsigned char arr[][2] = { { 0, 1 } };
16617         t18.c:1: error: Initializer element is not constant
16618
16619 2002-03-04  bela  <bela AT manik>
16620
16621         * /device/include/mcs51reg.h:
16622         ds89c420 register definition update
16623
16624 2002-03-03    <johan AT FRIJA>
16625
16626         * support/Util/SDCCerr.c: did something, but don't no why anymore
16627
16628         * support/regression/tests/bug-524691.c: made it a little less shy
16629
16630         * src/SDCCast.c (decorateType): fixed bug #524697
16631
16632         * src/SDCCast.c: made some lineno improvements
16633
16634         * src/SDCCval.c (getNelements): changed warning to error
16635
16636         * src/SDCCglue.c (printIvalArray): changed warning to error
16637
16638         * src/SDCCicode.c: fixed a warning for mingw
16639
16640         * src/SDCCast.c (decorateType): fixed the << promotion for ops
16641
16642         * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
16643
16644 2002-03-02  Sandeep Dutta  <sandeep AT ddi.com>
16645
16646         * src/ds390/peeph.def:
16647         Added some more peephole rules
16648
16649         * src/ds390/gen.c: Various fixes & enhancements
16650
16651         * src/SDCClrange.c, src/SDCClrange.h:
16652         functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
16653
16654         * src/ds390/ralloc.c:
16655         various fixes & enhancements (ds390) specific
16656
16657         * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
16658         Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
16659         from rallocs.
16660
16661         * sdcc/src/SDCCcse.c: Better fix for bug # 514308
16662
16663 2002-03-02    <johan AT FRIJA>
16664
16665         * src/SDCCast.c (decorateType): fixed bug #524708
16666
16667         * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
16668
16669         * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
16670
16671 2002-03-01  Michael Hope  <michaelh AT vroom>
16672
16673         * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
16674
16675         * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
16676
16677 2002-03-01    <johan AT FRIJA>
16678
16679         * src/SDCCglue.c (printIvalPtr): fixed bug #524211
16680
16681         * src/SDCCast.c (decorateType): fixed bug #524209
16682
16683         * src/SDCCval.c (valNot): fixed bug #524195
16684
16685 2002-02-26    <johan AT balder>
16686
16687         * src/xa51/gen.c: fixed a warning
16688
16689         * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
16690
16691         * src/SDCCast.c (decorateType): fixed bug #522534
16692
16693 2002-02-23    <johan AT balder>
16694
16695         * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
16696
16697 2002-02-22    <johan AT balder>
16698
16699         * src/SDCCast.c: fixed bug #514865
16700
16701         * src/SDCCy.c ("SDCC.y"): fixed bug #516625
16702
16703 2002-02-21  Sandeep Dutta  <sandeep AT ddi.com>
16704
16705         * sdcc/src/SDCCloop.c:
16706         Previous fix was not good. basic blocks that have "break" or "return" are
16707         not really partof a loop , but live ranges used in these blocks should
16708         be live thru the entire loop, so set partOfLoop but don't add them to
16709         loop region
16710
16711 2002-02-21    <johan AT FRIJA>
16712
16713         * src/SDCCcse.c: fixed bug #514308
16714
16715 2002-02-20  Sandeep Dutta  <sandeep AT ddi.com>
16716
16717         * src/SDCCloop.c:
16718         Fixed BUG #519583. If a conditional block ended in a return/break
16719         statement inside a loop, it was not being considered part of the loop.
16720
16721         * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
16722
16723 2002-02-10  Karl Bongers <karl AT turbobit.com>
16724
16725         * debugger/*:
16726         Fixed up SDCDB debugger somewhat.  Updated debugger/README
16727         with lots of comments and notes.
16728
16729         * device/examples/test2.c:
16730         Fix bug, "red" variable not being initialized(compiler complained).
16731
16732         * device/examples/Makefile, examples/test3.c:
16733         Add Makefile in device/examples folder, compiles test3.c
16734         for use as a multiple module SDCDB test case.
16735
16736         * sim/ucsim/cmd.src/cmdset.cc:
16737         Took out debug printfs in ucsim "next" command.
16738
16739         * sim/ucsim/xa.src:
16740         Karl and Johan start ucsim XA support.  Most dissassembly working,
16741         about 75% emulation done(plenty of work remaining).
16742
16743         * sim/ucsim/z80.src:
16744         Add Z80 support to ucsim, add test-ucz80 regression test,
16745         notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
16746         Notice z80 compiler fails on examples/test3.c/crc code.
16747
16748 2002-01-30  Sandeep Dutta  <sandeep AT ddi.com>
16749
16750         * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
16751         Added support for --parms-in-bank1
16752
16753         * src/ds390/peeph.def:
16754         added a few more peephole optimzations
16755
16756         * src/ds390/main.c:
16757         1) added __builtin_inp & __builtin_outp used to read in data of given length
16758            from a memory mapped port
16759         2) added __builtin_memcmp
16760         3) added __builtin_swapw swap bytes of a short
16761
16762         * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
16763         1) handle multiple send & receives from register bank1
16764         2) ralloc can now allocate DPTR1 to some liveRanges
16765
16766         * src/SDCCsymt.c, src/SDCCsymt.h:
16767         changes to handle multiple sends & receives
16768
16769         * src/SDCCptropt.h:
16770         added some pointer arithmetic optimization
16771
16772         * src/SDCCptropt.c:
16773         added some pointer arithmetic optimizations but not stable yet so not
16774         called from anywhere (will get this working shortly)
16775
16776         * src/SDCCopt.c: fixed for multiple sends & receives
16777
16778         * src/SDCCmain.c:
16779         1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
16780         2) preprocessing done AFTER port->finalizeoptions . This allows ports to
16781            set preprocessor defines (depending on options)
16782
16783         * src/SDCCicode.c, src/SDCCicode.h:
16784         changes made to handle multiple sends & receives
16785
16786         * src/SDCCglobl.h:
16787         Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
16788
16789         * src/SDCCcse.c, src/SDCCcse.h:
16790         added function findbackward def (to be used in upcoming optimization)
16791
16792         * src/SDCCcflow.c, src/SDCCcflow.h:
16793         added function returnAtEnd - to determine if a basic block terminates with
16794         a RETURN iCode
16795
16796         * src/SDCCast.c, src/SDCCast.h:
16797         added option parms-in-bank1
16798
16799         * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
16800         * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
16801         * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
16802         adjusted for --parms-in-bank1 option
16803
16804         * device/include/string.h:
16805         donot redefine "reentrant" keyword
16806
16807         * device/include/ds80c390.h: Added some more SFRs
16808
16809 2002-01-28  Bernhard Held  <bernhard AT bernhardheld.de>
16810
16811         * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
16812
16813 2002-01-26  Bernhard Held  <bernhard AT bernhardheld.de>
16814
16815         * src/SDCCast.c (funcOfType): fix usage of double --float-reent
16816
16817 2002-01-22  Bernhard Held  <bernhard AT bernhardheld.de>
16818
16819         * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
16820
16821 2002-01-18  Paul Stoffregen  <paul AT pjrc.com>
16822
16823         * Added --xram-movc option
16824
16825 2002-01-13  Bernhard Held  <bernhard AT bernhardheld.de>
16826
16827         * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
16828
16829 2002-01-11  Johan Knol
16830
16831         * Added math lib of Jesus Calvino-Fraga
16832
16833 2002-01-08  Bernhard Held  <bernhard AT bernhardheld.de>
16834
16835         * src/SDCCmain.c (processFile): fix processing of ../../src.c
16836         * support/regression/Makefile: new target test-mcs51-stack-auto
16837         * support/regression/ports/mcs51-stack-auto/spec.mk: added
16838
16839 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
16840
16841         * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
16842
16843 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
16844
16845         * support/regression/ports/mcs51/support.c: correct setup of timer / UART
16846
16847 2002-01-03  Bernhard Held  <bernhard AT bernhardheld.de>
16848
16849         * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
16850
16851         * src/SDCCglue.h: add definition for printIvalChar()
16852
16853 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
16854
16855         * src/SDCCast.c: fix #498138 by Johan
16856
16857         * src/SDCCglue.c: fix #498138 by Johan
16858
16859 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
16860
16861         * support/regression/Makefile: fix clean
16862
16863         * support/regression/ports/ds390/support.c: fix transmission of last character
16864
16865 2001-12-29  Sandeep Dutta  <sandeep AT ddi.com>
16866
16867         * /sdcc/src/ds390/gen.c:
16868         a) improved computing address of stack variable
16869         b) took out some #if 0 code
16870         c) improved parmBytes adjustment
16871         d) improved genPlusIncr & genMinusIncr
16872         e) genCmp could generate bad code (when left assigned to DPTR)
16873         f) Fixed bug in hasInc
16874
16875         * /sdcc/src/ds390/ralloc.c:
16876         a) packRegsForSupport could mess up live information (Fixed)
16877         b) packRegsDPTRuse could be incorrect for left & right shift
16878
16879         * /sdcc/src/mcs51/ralloc.c:
16880         packRegsForSupport could mess up the live information (Fixed)
16881
16882         * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
16883
16884         * /sdcc/src/SDCCast.c:
16885         can reverse a loop even if function call is present as long
16886         as the loop control variable is local & is not passed as parameter
16887
16888 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
16889
16890         * /sdcc/ChangeLog: *** empty log message ***
16891
16892         * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
16893         More builtin function additions for TININative
16894
16895         * /sdcc/src/ds390/ralloc.c:
16896         Had broken the regression testsuite
16897
16898         * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
16899
16900         * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
16901         Added funcattr hasStackParms will be set for reentrant functions when there
16902         are paramteres on the stack, this helps in minimizing frame pointer generation
16903         typeFromStr can handle function pointers now
16904
16905         * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
16906         *** empty log message ***
16907
16908 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
16909
16910         * /src/ds390/gen.c, /src/ds390/main.c:
16911         More builtin function additions for TININative
16912
16913         * /src/ds390/ralloc.c:
16914         Had broken the regression testsuite
16915
16916         * /src/SDCCast.c: Fixed a bug in dumptree
16917
16918         * /src/SDCCsymt.c, /src/SDCCsymt.h:
16919         Added funcattr hasStackParms will be set for reentrant functions when there
16920         are paramteres on the stack, this helps in minimizing frame pointer generation
16921         typeFromStr can handle function pointers now
16922
16923         * /doc/builtins.txt, /doc/TININative.txt:
16924         *** empty log message ***
16925
16926
16927 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
16928
16929         * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
16930         ALPHA version for -mTININative
16931
16932         * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
16933         updated to reflect changes in the port structure
16934
16935         * /src/port.h:
16936         added function do_assemble (similar to do_link) if non-null this function
16937         will be called to do assembly (-mTININative) requires a multi command
16938         assembly
16939         added function genAssemblerEnd will be called to generate assembler Epilogue
16940
16941         * /src/SDCCsymt.c:
16942         added _JavaNative to debug info printing
16943
16944         * /src/SDCCmain.c: added option --tini-libid
16945         added port->do_assemble function (-mTININative) has a multi command assemble
16946
16947         * /src/SDCCglue.c: Disabled "constExpr" check
16948         added port->genAssemblerEnd function
16949
16950         * /src/SDCCglobl.h: Added option --tini-libid value
16951
16952         * /src/SDCCast.h:
16953         tookout optimizeCompare from the header (has no external references)
16954
16955         * /src/SDCCast.c: made one more function "static"
16956
16957 2001-12-23  Michael Hope  <michaelh AT juju.net.nz>
16958
16959         * src/z80/mappings.i: Added z80asm support.
16960
16961         * src/z80/main.c: Added z80asm support on --asm=z80asm
16962
16963         * src/z80/gen.c: Fixed asm portability issues.
16964
16965         * src/asm.c (tvsprintf): Removed old code, added 'N' for function name.  For extern support.
16966
16967         * src/SDCCglue.c (printExterns): Added global/extern split.
16968
16969 2001-12-17  Bernhard Held  <bernhard AT bernhardheld.de>
16970
16971         * support/regression/Makefile: added test for mcs51 model large
16972
16973         * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
16974
16975         * support/regression/ports/gbz80/spec.mk: added -mgbz80
16976
16977 2001-12-05  Michael Hope  <michaelh AT juju.net.nz>
16978
16979         * src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.
16980
16981 1904-01-06  Michael Hope  <michaelh AT juju.net.nz>
16982
16983         * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
16984
16985         * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
16986
16987 2001-12-02  Bernhard Held  <bernhard AT bernhardheld.de>
16988
16989         * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
16990
16991         * support/regression/tests/simplefloat.c: Port to mcs51.
16992
16993 2001-11-25  Michael Hope  <michaelh AT juju.net.nz>
16994         * support/regression/tests/bug-485362.c: Added.
16995
16996         * support/regression/tests/simplefloat.c (testDivNearOne): Added.
16997
16998         * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
16999
17000         * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
17001
17002         * src/z80/gen.c (aopDump): Added a dump function.
17003
17004 2001-11-25  Bernhard Held  <bernhard AT bernhardheld.de>
17005         * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
17006
17007         * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
17008
17009         * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
17010
17011         * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
17012
17013         * sim/ucsim/s51.src/uc390cl.h: Work in progress.
17014
17015         * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
17016
17017         * support/regression/fwk/lib/testfwk.c: Run with tinibios.
17018
17019         * support/regression/ports/mcs51/spec.mk: Fine tuninig.
17020
17021         * support/regression/ports/ds390/support.c: Use tinibios.
17022
17023         * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
17024
17025 2001-11-23  Michael Hope  <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
17026
17027         * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
17028         (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
17029
17030         * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
17031
17032         * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
17033
17034 2001-11-18  Michael Hope  <michaelh AT juju.net.nz>
17035
17036         * src/z80/gen.c (genCmp): Fixed compare on unsigned.
17037
17038         * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
17039         (packRegsForIYUse): Created and optimised.
17040
17041 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
17042
17043         * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
17044 2001-11-18  Bernhard Held  <bernhard AT bernhardheld.de>
17045
17046         * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
17047
17048         * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
17049
17050         * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
17051
17052 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
17053
17054         * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
17055
17056         * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
17057
17058 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
17059
17060         * sdcc/sim/ucsim/globals.cc: New: IXRAM.
17061
17062         * sdcc/sim/ucsim/stypes.h: New: IXRAM.
17063
17064         * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
17065
17066 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
17067
17068         * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
17069         (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
17070         (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
17071
17072         * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
17073
17074         * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
17075         (genNotFloat): Added.
17076         (genUminusFloat): Added.
17077
17078         * device/lib/z80/Makefile: Added floating pt stubs.
17079
17080         * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
17081
17082         * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
17083
17084         * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
17085
17086 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
17087
17088         * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
17089
17090         * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
17091
17092         * sdcc/support/regression/Makefile: Add port ds390.
17093
17094         * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
17095
17096         * sdcc/support/regression/ports/z80/spec.mk: Minor change.
17097
17098         * sdcc/support/regression/ports/ds390/spec.mk: Added.
17099
17100         * sdcc/support/regression/ports/ds390/support.c: Added.
17101
17102         * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
17103
17104         * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
17105
17106         * sdcc/support/regression/fwk/lib/timeout.c: Paste.
17107
17108 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
17109
17110         * device/include/malloc.h: Added z80 and gbz80 support.
17111
17112         * device/lib/gbz80/heap.s: Added.
17113
17114         * device/lib/z80/heap.s: Added.
17115
17116         * device/lib/malloc.c: Added z80 and gbz80 support.
17117
17118         * support/regression/tests/malloc.c (testMalloc): Added.
17119
17120         * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
17121
17122         * support/regression/tests/bug-478094.c: Added.
17123
17124         * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
17125
17126 2001-11-04  Bernhard Held  <bernhard AT bernhardheld.de>
17127
17128         * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
17129
17130         * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
17131
17132         * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
17133
17134         * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
17135
17136         * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
17137
17138 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
17139
17140         * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
17141
17142 2001-11-03  Michael Hope  <michaelh AT juju.net.nz>
17143
17144         * support/regression/tests/bug-477927.c: Added.
17145
17146         * src/z80/peeph.def: Added minor rules.
17147
17148         * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
17149
17150         * src/z80/peeph.def: Added jump optimisation modification.
17151
17152 2001-11-01  Michael Hope  <michaelh AT juju.net.nz>
17153
17154         * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
17155
17156 2001-10-30  Michael Hope  <michaelh AT juju.net.nz>
17157
17158         * support/regression/tests/funptrs.c: Added.
17159
17160 2001-10-29  Michael Hope  <michaelh AT juju.net.nz>
17161
17162         * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
17163
17164 2001-10-28  Michael Hope  <michaelh AT juju.net.nz>
17165
17166         * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
17167
17168         * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
17169
17170         * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
17171         (movLeft2ResultLong): Created.
17172
17173         * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
17174         (joinPushes): Added.  Joins two char pushes into a word push.
17175
17176 2001-10-27  Michael Hope  <michaelh AT juju.net.nz>
17177
17178         * support/cpp2/Makefile.in (install): Added creation of dest dir.
17179
17180         * support/makebin/Makefile (install): Added creation of dest dir.
17181
17182 2001-10-24 Karl Bongers <karl AT turbobit.com>
17183
17184         * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
17185
17186 2001-10-21  Michael Hope  <michaelh AT juju.net.nz>
17187
17188         * src/z80/ralloc.c: Turned off faulty pack for one use.
17189
17190         * src/z80/peeph-gbz80.def: Removed redundent restart options.
17191
17192         * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
17193
17194 2001-10-21  Bernhard Held  <bernhard AT bernhardheld.de>
17195
17196         * support/regression/Makefile: Improved clean
17197
17198         * support/regression/ports/gbz80/spec.mk: Added clean
17199
17200         * support/regression/ports/host/spec.mk: Added clean
17201
17202         * support/regression/ports/z80/spec.mk: Added clean
17203
17204         * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
17205
17206         * support/regression/ports/mcs51/timeout.c: little improvements
17207
17208 2001-10-17  Michael Hope  <michaelh AT juju.net.nz>
17209
17210         * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
17211
17212         * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
17213
17214         * support/regression/generate-cases.py: Fixed up to use function pts correctly.
17215
17216 2001-10-16  Bernhard Held  <bernhard AT bernhardheld.de>
17217
17218         * support/regression/port/mcs51/spec.mk: add timeout for uCsim
17219
17220         * support/regression/port/mcs51/timeout.c: add timeout for uCsim
17221
17222 2001-10-13  Michael Hope  <michaelh AT juju.net.nz>
17223         * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
17224
17225         * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
17226
17227         * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
17228
17229         * src/mcs51/main.c (_linkCmd): Added bin path to command.
17230
17231         * src/SDCCmain.c (initValues): Added support for when it it called just to link.
17232
17233         * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
17234
17235         * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
17236
17237         * support/regression/tests/longor.c: Added.
17238
17239 2001-10-11  Bernhard Held  <bernhard AT bernhardheld.de>
17240
17241         * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
17242
17243         * as/mcs51/aslink.h: define PATH_MAX
17244
17245         * as/mcs51/asm.h: define PATH_MAX
17246
17247         * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
17248
17249         * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
17250
17251         * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
17252
17253         * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
17254
17255         * src/SDCCglobl.h: define PATH_MAX
17256
17257         * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
17258
17259         * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
17260
17261 2001-10-11  Michael Hope  <michaelh AT juju.net.nz>
17262
17263         * src/z80/gen.c (gencjneshort): Fixed
17264
17265         * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
17266
17267 2001-10-09  Michael Hope  <michaelh AT juju.net.nz>
17268
17269         * support/regression/tests/bug-469671.c: Added.
17270
17271         * src/z80/gen.c (shiftIntoPair): Fixed up warning.
17272
17273 2001-10-08  Michael Hope  <michaelh AT juju.net.nz>
17274
17275         * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
17276
17277         * src/z80/gen.c (genPlus): Fixed to work with extended stack.  Also fixed genMinus, genCmp.  genUMinus is still left.
17278
17279 2001-10-08  Bernhar Held  <bernhard AT bernhardheld.de>
17280
17281         * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
17282
17283         * src/device/lib/_mulint.c  : removed hint: nooverlay bug
17284
17285         * src/device/lib/_mullong.c : removed hint: nooverlay bug
17286
17287         * src/device/lib/_divuint.c : removed hint: nooverlay bug
17288
17289         * src/device/lib/_divulong.c: removed hint: nooverlay bug
17290
17291         * src/device/lib/_moduint.c : removed hint: nooverlay bug
17292
17293         * src/device/lib/_modulong.c: removed hint: nooverlay bug
17294
17295 2001-10-07  Michael Hope  <michaelh AT juju.net.nz>
17296
17297         * 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.
17298
17299         * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.
17300
17301         * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
17302
17303 2001-10-07    <johan AT FRIJA>
17304
17305         * device/lib/gets.c (gets): fixed the return value.
17306
17307 2001-10-06  Michael Hope  <michaelh AT juju.net.nz>
17308         * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
17309
17310         * 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.
17311
17312         * 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.
17313
17314         * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
17315
17316         * src/pic/gen.c: Removed Safe_strdup.
17317
17318         * configure.in: Added option to enable libgc support.
17319
17320         * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
17321         (bitVectUnion): Optimised.
17322         (bitVectIntersect): Optimised.
17323         (bitVectBitsInCommon): Optimised.
17324         (bitVectCplAnd): Optimised.
17325
17326         * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.
17327
17328 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
17329
17330         * src/SDCCmain.c: distinguish between assembler debug and plain options
17331
17332         * src/avr/main.c:   remove standard assembler options
17333
17334         * src/ds390/main.c: remove standard assembler options
17335
17336         * src/mcs51/main.c: remove standard assembler options
17337
17338         * src/port.h: removed "PENDING" comment
17339
17340 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
17341
17342         * src/device/lib/_mulint.c  : new, with assember functions
17343
17344         * src/device/lib/_mullong.c : new, with assember functions
17345
17346         * src/device/lib/_divuint.c : with assember functions
17347
17348         * src/device/lib/_divsint.c : with assember functions
17349
17350         * src/device/lib/_divulong.c: with assember functions
17351
17352         * src/device/lib/_divslong.c: with assember functions
17353
17354         * src/device/lib/_moduint.c : with assember functions
17355
17356         * src/device/lib/_modsint.c : with assember functions
17357
17358         * src/device/lib/_modulong.c: with assember functions
17359
17360         * src/device/lib/_modslong.c: with assember functions
17361
17362         * src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c
17363
17364         * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
17365
17366         * src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
17367                                       replaced _mululong.c and _mulslong.c by _mullong.c
17368
17369 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
17370
17371         * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
17372
17373 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
17374
17375         * src/SDCCglue.c: test, if win32api is available for MINGW
17376
17377 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
17378
17379         * src/SDCCsymt.c: no more _modifier in printTypeChain()
17380         * support/regression/tests/driverstruct.c: REENTRANT for mcs51
17381         * support/regression/ports/gbz80/spec.mk: removed GENERIC
17382         * support/regression/ports/host/spec.mk: removed GENERIC
17383         * support/regression/ports/mcs51/spec.mk: removed GENERIC
17384         * support/regression/ports/z80/spec.mk: removed GENERIC
17385
17386 2001-10-01  Michael Hope  <michaelh AT juju.net.nz>
17387
17388         * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
17389
17390         * support/regression/tests/bug-467035.c: Created.
17391
17392 2001-10-01    <johan AT FRIJA>
17393
17394         * src/SDCC.y: fixed bug #466586 part 1
17395
17396 2001-10-01  Johan Knol <johan.knol AT iduna.nl>
17397
17398         * SDCCicode.c: z80 has no generic pointers
17399         * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
17400
17401 2001-09-30  Michael Hope  <michaelh AT juju.net.nz>
17402
17403         * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
17404
17405 2001-09-29  Michael Hope  <michaelh AT juju.net.nz>
17406
17407         * Makefile (sdcc-libs): Added makebin to the list of standard targets.
17408
17409         * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
17410
17411 2001-09-25  Michael Hope  <michaelh AT juju.net.nz>
17412
17413         * configure.in: Fixed up so that ucsim is only configured once.
17414
17415         * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
17416
17417         * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
17418         (getPathDifference): As above.
17419
17420         * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.
17421
17422         * src/SDCCglue.c (tempfilename): Added function for pre-processor.
17423
17424 2001-09-23  Michael Hope  <michaelh AT juju.net.nz>
17425         * .version: Updated to 2.3.1
17426
17427         * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
17428         Added copyright header.
17429
17430         * src/SDCCmain.c: Shifted various functions into SDCCutil.c
17431         (assemble): Added support for macro based assembler commands.
17432         (linkEdit): Added support for macro based linker commands.
17433         (preProcess): Changed the pre-processor to use macros.
17434         (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
17435         (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
17436
17437         * device/lib/z80/crt0.s: Added module name for debugging.
17438
17439 2001-09-20  Michael Hope  <michaelh AT juju.net.nz>
17440
17441         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
17442
17443         * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
17444
17445         * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
17446
17447         * src/Makefile.in: Added SDCCmacro and SDCCutil
17448
17449 2001-09-19  Michael Hope  <michaelh AT juju.net.nz>
17450
17451         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
17452
17453 2001-09-16    <johan AT FRIJA>
17454
17455         * 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.
17456
17457 2001-09-15    <johan AT FRIJA>
17458
17459         * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
17460         * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
17461
17462 2001-09-11    <johan AT FRIJA>
17463
17464         * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
17465
17466 2001-09-10  Michael Hope  <michaelh AT juju.net.nz>
17467
17468         * support/regression/tests/bug-460444.c: Added test case.
17469
17470         * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
17471         (genCast): Added justification for all of the asserts.
17472
17473 2001-09-10  Bernhard Held <bernhard AT bernhardheld.de>
17474
17475         * support/regression/support.c: _xdata replaced by xdata
17476
17477         * support/regression/spec.mk: removed _generic
17478
17479 2001-09-09  Michael Hope  <michaelh AT juju.net.nz>
17480
17481         * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
17482
17483         * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
17484         (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
17485
17486         * src/z80/peeph.def: Added a rule to optimise shift then compare.
17487
17488         * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
17489
17490         * support/regression/tests/bug-460010.c: Added test case.
17491
17492         * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
17493
17494 2001-09-09  Bernhard Held <bernhard AT bernhardheld.de>
17495
17496         * support/regression/Makefile: inter-port-clean adjusted for mcs51
17497
17498         * support/regression/testfwk.c: removed workaround for bug #436344
17499
17500         * support/regression/tests/bp.c: use less memory with mcs51
17501
17502         * support/regression/tests/bug-441448.c: use less memory
17503
17504         * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
17505
17506         * support/regression/collate-results.py: typo
17507
17508 2001-09-08  Michael Hope  <michaelh AT juju.net.nz>
17509
17510         * support/regression/tests/fetchoverlap.c: Added new test case.
17511
17512         * support/regression/tests/bp.c: Added new test case.
17513
17514         * support/regression/tests/bug-448984.c: Added new test case.
17515
17516         * support/regression/tests/pow2shifts.c: Added new test case.
17517
17518         * src/z80/gen.c: Turned off the noise it normally generates for the release.
17519         (genlshTwo): Fixed right shift for count > 8.
17520
17521         * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
17522
17523 2001-09-08    <johan AT FRIJA>
17524
17525         * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
17526
17527 2001-09-07    <johan AT FRIJA>
17528
17529         * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
17530
17531         * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
17532
17533 2001-09-06    <johan AT FRIJA>
17534
17535         * src/SDCC.y: this could be a fix for bug #458744 (1.37)
17536         * bernhard noted me at this: "() equals to (void)" (1.38)
17537
17538 2001-09-05    <johan AT FRIJA>
17539
17540         * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
17541
17542 2001-09-04    <johan AT FRIJA>
17543
17544         * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
17545
17546
17547 2001-09-04  Paul Stoffregen  <paul AT pjrc.com>
17548
17549         * pragma noinduction broke memcpy on mcs51 large model.  Moved it inside z80 optimization
17550
17551 2001-09-03  Michael Hope  <michaelh AT juju.net.nz>
17552
17553         * link/z80/aslink.h: Fixed path for PATH_MAX
17554
17555 2001-09-02  Michael Hope  <michaelh AT juju.net.nz>
17556
17557         * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
17558
17559         * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
17560
17561         * support/regression/tests/uminus.c: Added a test for the unary minus operator.
17562
17563         * 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.
17564
17565 2001-09-01  Michael Hope  <michaelh AT juju.net.nz>
17566
17567         * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
17568         (genCmp): Fixed up genCmp for the GB with longs.
17569
17570         * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
17571
17572         * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
17573
17574         * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
17575
17576         * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
17577
17578 2001-08-30  Paul Stoffregen  <paul AT pjrc.com>
17579
17580         * added peepholes 223 to 231 to mcs51 port.  These improve code when using large model.
17581
17582 2001-08-30  Michael Hope  <michaelh AT juju.net.nz>
17583
17584         * 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.
17585
17586         * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
17587
17588 2001-08-29  Michael Hope  <michaelh AT juju.net.nz>
17589
17590         * link/z80/aslink.h: Fixed long file name support.  Is now based off PATH_MAX instead of a constant.
17591
17592         * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
17593
17594 2001-08-30 Bernhard Held   <bernhard AT bernhardheld.de>
17595
17596         * sim/ucsim/configure:    little improvement of Cygwin-detection
17597         * sim/ucsim/configure.in: little improvement of Cygwin-detection
17598         * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
17599         * support/regression/tests/bug-221100.c: small changes for mcs51
17600         * support/regression/tests/bug-221168.c: small changes for mcs51
17601         * support/regression/tests/bug-227710.c: small changes for mcs51
17602         * support/regression/tests/staticinit.c: small changes for mcs51
17603         * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
17604         * as/mcs51/lklex.c:  accept everything as symbol name in rel-files, bug fix ID 452601
17605         * as/mcs51/lksym.c:  accept everything as symbol name in rel-files, bug fix ID 452601
17606
17607 $Revision$