* device/lib/pic/libdev/Makefile.in: build device-specific
[fw/sdcc] / ChangeLog
1 2009-03-03 Raphael Neider <rneider AT web.de>
2
3         * device/lib/pic/libdev/Makefile.in: build device-specific
4           libraries for the correct processor, fixes #2654585
5
6 2009-03-01 Raphael Neider <rneider AT web.de>
7
8         * device/lib/Makefile.in: fixed parallel builds (i.e., make -jN, N>1)
9
10 2009-03-01 Borut Razem <borut.razem AT siol.net>
11
12         * src/z80/peep.c: fixed bug #2648964: --i-code-in-asm crashes sdcc
13         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
14           changed sdcc version to 2.9.0
15
16 2009-03-01 Maarten Brock <sourceforge.brock AT dse.nl>
17
18         * src/mcs51/ralloc.c (spillThis, spilSomething): fixed bug 2435941
19           (serialRegAssign): do not spil bit registers
20           throughout cosmetic changes
21         * support/regression/tests/bug2435941.c: new, added
22
23 2009-02-28 Raphael Neider <rneider AT web.de>
24
25         * src/regression/compare10.c,
26           src/regression/compare7.c,
27           src/regression/compare8.c,
28           src/regression/compare9.c: reset watchdog timer in time
29         * src/regression/configword.c: apply patch from #2488150
30         * src/pic/glue.c (pic14createInterruptVect): pin RESET vector
31           handler to 0x0000 as the linker no longer knows STARTUP sections
32         * src/pic/pcode.c (register_reassign, ReuseReg): applied modified
33           patch #2512926 to (mostly) fix #1762626, cosmetic changes
34         * src/pic/pcodepeep.c: remove reference to nonexisting function
35
36 2009-02-28 Raphael Neider <rneider AT web.de>
37
38         * device/include/pic16/signal.h: avoid multiline inline
39           assembler statements in macros, addresses #2644965
40
41 2009-02-27 Raphael Neider <rneider AT web.de>
42
43         * device/include/pic16/pic18f[24][3456]k20.h,
44           device/include/pic16/pic18f[68][567]j50.h,
45           device/include/pic16/pic18f[68]6j55.h,
46           device/lib/pic16/libdev/pic18f[24][3456]k20.c,
47           device/lib/pic16/libdev/pic18f[68][567]j50.c,
48           device/lib/pic16/libdev/pic18f[68]6j55.c,
49           device/include/pic16/pic18fregs.h,
50           device/include/pic16/pic16devices.txt,
51           device/lib/pic16/pics.all,
52           device/lib/pic16/libdev/Makefile.am,
53           device/lib/pic16/libio/Makefile.am: added/re-enabled many device
54           families (87j50 family contributed by Robert Wuest)
55
56         * device/include/pic16/adc.h,
57           device/lib/pic16/libio/adc/adcbusy.c,
58           device/lib/pic16/libio/adc/adcclose.c,
59           device/lib/pic16/libio/adc/adcconv.c,
60           device/lib/pic16/libio/adc/adcopen.c,
61           device/lib/pic16/libio/adc/adcsetch.c: added 65j50-style ADC
62
63         * doc/sdccman.lyx: updated list of supported devices, fixed typo
64         * device/lib/pic16/Makefile.common: do not suppress assembler warnings
65
66         * device/lib/pic16/Makefile.in,
67           device/lib/pic16/libm/Makefile.in,
68           device/lib/pic16/debug/Makefile.in,
69           device/lib/pic16/libio/Makefile.in,
70           device/lib/pic16/startup/Makefile.in,
71           device/lib/pic16/libsdcc/Makefile.in,
72           device/lib/pic16/libdev/Makefile.in,
73           device/lib/pic16/libc/Makefile.in: regenerated
74
75 2009-02-27 Borut Razem <borut.razem AT siol.net>
76
77         * as/z80/asexpr.c, as/z80/z80mch.c: re-fixed bugs
78           #1829678 and #1704376 in the way proposed by Alan Baldwin
79
80 2009-02-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
81
82         * device/include/mcs51/at89c51ed2.h: Fixed address of SFR P5. Thanks
83           to Steve Qu for the fix.
84
85 2009-02-23 Borut Razem <borut.razem AT siol.net>
86
87         * as/z80/asexpr.c: fixed bug #1829678: Z-80 CP A,<xxx> assembly
88           it is already fixed for mcs51 and hc08 targets
89         * as/z80/z80mch.c: fixed bug #1704376: missing as-z80 errors
90
91 2009-02-22 Borut Razem <borut.razem AT siol.net>
92
93         * device/lib/Makefile.in: fixed parenthesis error
94         * doc/sdccman.lyx: fixed webdocs bug #2071421: error in the manual,
95           fixed webdocs bug #1967920: --version
96
97 2009-02-18 Maarten Brock <sourceforge.brock AT dse.nl>
98
99         * device/include/mcs51/at89c51ed2.h: fixed bug #2071949 bitmask RBCK wrong
100
101 2009-02-17 Maarten Brock <sourceforge.brock AT dse.nl>
102
103         * as/link/mcs51/lkihx.c (hexRecord): bugfix do not insert extended address
104           when addresses are unsorted
105
106 2009-02-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
107
108         * device/include/mcs51/p89v66x.h: added ENBOOT thanks
109           Gudjon Gudjonsson <gudjon AT gudjon.org>
110         * device/include/mcs51/p89c66x.h: fixed some defines
111         * device/include/mcs51/p89v66x.h: fixed some sbit addresses
112         * doc/sdccman.lyx: added <NO FLOAT> to index, try to reanimate
113           svn keywords
114
115 2009-02-14 Borut Razem <borut.razem AT siol.net>
116
117         * doc/sdccman.lyx: corrected cpp info
118
119 2009-02-13 Borut Razem <borut.razem AT siol.net>
120
121         * as/Makefile.in: *.doc renamed to *.txt
122
123 2009-02-11 Borut Razem <borut.razem AT siol.net>
124
125         * as/doc/aslnk.doc, as/doc/abstra.doc: renamed to *.txt
126         * as/doc/aslnk.txt, as/doc/asxhtml.html: changed licens to GPLv3
127
128 2009-02-11 Borut Razem <borut.razem AT siol.net>
129
130         * doc/sdccman.lyx: documented ar format libraries
131
132 2009-02-10 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
133
134         * support/regression/tests/float_single.c: added regression
135           test. Some testpoints for probably rarely used functions
136           (acosf, sinhf, tanf, expf) disabled for some targets
137
138 2009-02-10 Raphael Neider <rneider AT web.de>
139
140         * src/pic16/gen.c (pic16_freeAsmop): avoid NULL pointer dereference,
141           (genAssign): fixed for operands on the stack
142
143         * device/lib/pic16/libc/stdio/vfprintf.c,
144           device/lib/pic16/configure.ac,
145           device/lib/pic16/Makefile.common: add configurable support for
146           printing floats via ./configure --enable-floats
147         * device/lib/pic16/configure,
148           device/lib/pic16/Makefile.in,
149           device/lib/pic16/libm/Makefile.in,
150           device/lib/pic16/debug/Makefile.in,
151           device/lib/pic16/libio/Makefile.in,
152           device/lib/pic16/startup/Makefile.in,
153           device/lib/pic16/libsdcc/Makefile.in,
154           device/lib/pic16/libdev/Makefile.in,
155           device/lib/pic16/libc/Makefile.in: regenerated
156         * doc/sdccman.lyx: documented float support and how to get it
157         * doc/Makefile.in: fixed race condition on parallel builds
158
159         * device/lib/pic16/libc/stdio/sprintf.c,
160           device/lib/pic16/libc/stdio/vsprintf.c: do not mess up the user's
161           pointer to the string buffer, enlarge buffer for x_ftoa()
162
163 2009-02-10 Borut Razem <borut.razem AT siol.net>
164
165         * device/lib/printf_tiny.c: replaced non-C89 comments '//' with '/* */'
166
167 2009-02-10 Raphael Neider <rneider AT web.de>
168
169         * device/include/pic16/pic18f*.h: add bit aliases in INTCONbits_t
170
171 2009-02-09 Raphael Neider <rneider AT web.de>
172
173         * src/pic16/pcode.c (assignToSameBank): add force argument to ignore
174           artificial bank size limits for compound data (structs, arrays),
175           avoids assert if --obanksel=N, N > 1, is given
176
177 2009-02-09 Borut Razem <borut.razem AT siol.net>
178
179         * as/asranlib/asranlib.c, link/lkar.c: don't check the padding bytes since
180           the openSUSE GNU ar (GNU Binutils; openSUSE 11.0) 2.18.50.20080409-11.1
181           uses '`' character instead '\n' for padding
182         * as/asranlib/asranlib.c: made it more robust
183
184 2009-02-08 Borut Razem <borut.razem AT siol.net>
185
186         * as/COPYING3: added
187         * support/scripts/sdcc.nsi: added COPYING3.txt to the package
188         * device/lib/Makefile.in: reenable floating point in model-xstack-auto
189           libraries
190
191 2009-02-07 Borut Razem <borut.razem AT siol.net>
192
193         * as/asranlib/asranlib.c: fixed BSD header length calculation
194         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.9
195           due sdcc asxxxx license change to GPLv3
196
197 2009-02-05 Borut Razem <borut.razem AT siol.net>
198
199         * as/asranlib/asranlib.c, link/lkar.h, link/lkar.c:
200           added support for BSD (Mac OS X) ar format
201         * as/asxxsrc/aslex.c, as/as/asxxsrc/asnoice.c, as/as/asxxsrc/assym.c,
202           as/as/hc08/asdata.c, as/hc08/asexpr.c, as/hc08/aslist.c,
203           as/hc08/asm.h, as/hc08/asmain.c, as/hc08/asout.c, as/hc08/assubr.c,
204           as/hc08/m08adr.c, as/hc08/m08ext.c, as/hc08/m08mch.c,
205           as/hc08/m08pst.c, as/hc08/m6808.h, as/link/aslink.h,
206           as/link/hc08/lkarea.c, as/link/hc08/lkelf.c, as/link/hc08/lkihx.c,
207           as/link/hc08/lkmain.c, as/link/hc08/lkmem.c, as/link/hc08/lkrloc.c,
208           as/link/hc08/lks19.c, as/link/lkaomf51.c, as/link/lkdata.c,
209           as/link/lkeval.c, as/link/lkhead.c, as/link/lklex.c, as/link/lklib.c,
210           as/link/lklibr.c, as/link/lklibr.h, as/link/lklist.c,
211           as/link/lknoice.c, as/link/lkrel.c, as/link/lkrel.h,
212           as/link/lksdcclib.c, as/link/lkstore.c, as/link/lksym.c,
213           as/link/mcs51/lkarea.c, as/link/mcs51/lkihx.c,
214           as/link/mcs51/lkmain.c, as/link/mcs51/lkmem.c,
215           as/link/mcs51/lkrloc.c, as/link/mcs51/lks19.c, as/link/z80/lkarea.c,
216           as/link/z80/lkgb.c, as/link/z80/lkgg.c, as/link/z80/lkihx.c,
217           as/link/z80/lkmain.c, as/link/z80/lkrloc.c, as/link/z80/lks19.c,
218           as/mcs51/asdata.c, as/mcs51/asexpr.c, as/mcs51/aslist.c,
219           as/mcs51/asm.h, as/mcs51/asmain.c, as/mcs51/asout.c,
220           as/mcs51/assubr.c, as/mcs51/i51adr.c, as/mcs51/i51ext.c,
221           as/mcs51/i51mch.c, as/mcs51/i51pst.c, as/mcs51/i8051.h,
222           as/xa51/xa_link.c, as/xa51/xa_main.c, as/xa51/xa_main.h,
223           as/xa51/xa_rasm.l, as/xa51/xa_rasm.y, as/xa51/xa_version.h,
224           as/z80/asdata.c, as/z80/asexpr.c, as/z80/aslist.c, as/z80/asm.h,
225           as/z80/asmain.c, as/z80/asout.c, as/z80/assubr.c, as/z80/z80.h,
226           as/z80/z80adr.c, as/z80/z80ext.c, as/z80/z80mch.c, as/z80/z80pst.c:
227           changed license to GPL either version 3, or (at your option) any
228           later version
229
230 2009-02-05 Borut Razem <borut.razem AT siol.net>
231
232         * as/asranlib/asranlib.c, link/lkar.h, link/lkar.c:
233           added support for BSD (Mac OS X) ar format
234
235 2009-02-02 Borut Razem <borut.razem AT siol.net>
236
237         * device/lib/gbz80/Makefile.in, device/lib/hc08/Makefile.in,
238           device/lib/z80/Makefile.in:
239           chose source files in the PORT directory if they are available
240
241 2009-02-01 Raphael Neider <rneider AT web.de>
242
243         * device/lib/pic16/libdev/pic18f1220.c,
244         * device/lib/pic16/libdev/pic18f4450.c:
245           define SSPBUF to allow use of printf
246
247 2009-02-01 Borut Razem <borut.razem AT siol.net>
248
249         * device/lib/Makefile.in, device/lib/gbz80/Makefile.in,
250           device/lib/hc08/Makefile.in, device/lib/incl.mk,
251           device/lib/z80/Makefile.in:
252           don't remake libraries
253         * support/regression/tests/snprintf.c:
254           reenable floating point in small-xstack-auto library
255
256 2009-01-26 Raphael Neider <rneider AT web.de>
257
258         * src/pic16/ralloc.c (packForPush): disabled to fix #2496919
259
260 2009-01-25 Raphael Neider <rneider AT web.de>
261
262         * src/pic16/main.c (_pic16_linkEdit): prepend -L paths to linker
263           search path instead of appending them
264
265 2009-01-24 Borut Razem <borut.razem AT siol.net>
266
267         * as/asranlib/asranlib.h: changed type of offset to unsigned int to
268           make it work on ppc Mac OS X (off_t is 64 bit and is not converted
269           to 32 bit unsigned int when calling sputl() since it is a macro
270         * as/link/lkar.c: changed the initialization of This->loaded
271
272 2009-01-23 Borut Razem <borut.razem AT siol.net>
273
274         * as/link/lkar.h: changed type of ar_size to size_t to make it work on
275           ppc Mac OS X (off_t is 64 bit and is not converted to 32 bit
276           unsigned int when calling new(), since asxxxx doesn't use function
277           prototypes)
278
279 2009-01-21 Borut Razem <borut.razem AT siol.net>
280
281         * as/link/lkar.h: sgetl and sputl are independent of endianness
282         * as/link/sdxxxx_config.h.in: removed endianness detection
283
284 2009-01-20 Borut Razem <borut.razem AT siol.net>
285
286         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.8
287           due creation of ar format libraries
288         * support/scripts/sdcc.nsi:
289           don't add nonexistent object files to the package
290
291 2009-01-19 Borut Razem <borut.razem AT siol.net>
292
293         * Makefile.in, configure.in, configure,
294           device/lib/Makefile.in, device/lib/ds390/Makefile.in,
295           device/lib/ds400/Makefile.in, device/lib/gbz80/Makefile.in,
296           device/lib/hc08/Makefile.in, device/lib/large/Makefile.in,
297           device/lib/mcs51/Makefile.in, device/lib/medium/Makefile.in,
298           device/lib/small/Makefile.in,
299           device/lib/z80/Makefile.in: create ar format libraries
300         * support/regression/ports/mcs51-xstack-auto/spec.mk:
301           use device/lib/Makefile to create library
302         * support/regression/tests/snprintf.c:
303           floating point is not enabled in small-xstack-auto library
304         * device/lib/libfloat.lib, device/lib/libint.lib,
305           device/lib/liblong.lib, device/lib/libsdcc.lib: removed
306
307 2009-01-18 Borut Razem <borut.razem AT siol.net>
308
309         * support/cpp/auto-host.h: fixed warning: "__STDC__" redefined,
310           warning: extra tokens at end of #endif directive
311
312 2009-01-11 Borut Razem <borut.razem AT siol.net>
313
314         * Makefile.in: added SDCC_ASRANLIB to PKGS
315
316 2009-01-10 Borut Razem <borut.razem AT siol.net>
317
318         * support/scripts/sdcc.nsi: added asranlib.exe to the install package
319         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.7
320           due added support for ar format libraries
321
322 2009-01-09 Borut Razem <borut.razem AT siol.net>
323
324         * as/asranlib/Makefile.in, as/asranlib/asranlib.dsp,
325           as/asranlib/asranlib.c: added asranlib
326         * as/link/lkar.c, as/link/lkar.h: added support for ar format libraries
327         * Makefile.in, as/link/hc08/Makefile.in,
328           as/link/hc08/link_hc08.dsp, as/link/lklib.c, as/link/lklibr.c,
329           as/link/lklibr.h, as/link/lkrel.c, as/link/lkrel.h,
330           as/link/lksdcclib.c, as/link/mcs51/Makefile.in,
331           as/link/mcs51/aslink.dsp, as/link/z80/Makefile.in,
332           as/link/z80/linkgbz80.dsp, as/link/z80/linkz80.dsp, configure,
333           configure.in, sdcc.dsw: modified to support ar format libraries
334
335 2009-01-08 Maarten Brock <sourceforge.brock AT dse.nl>
336
337         * src/SDCCast.c (decorateType RETURN): use RESULT_TYPE_GPTR for generic
338           pointer return
339
340 2009-01-05 Philipp Klaus Krause <pkk AT spth.de>
341
342         * sim/ucsim/z80.src/inst_ed.cc:
343           Fixed bug #2488074, which made regression tests fail.
344
345 2009-01-05 Philipp Klaus Krause <pkk AT spth.de>
346
347         * device/lib/z80/mod.s,
348           device/lib/z80/div.s,
349           device/lib/z80/mulchar.s,
350           device/lib/z80/mul.s,
351           device/lib/z80/divsigned.s,
352           device/lib/z80/Makefile.in:
353           Implemented RFE #1702376.
354
355 2009-01-05 Borut Razem <borut.razem AT siol.net>
356
357         * as/link/lksdcclib.c:
358           fixed linker hanging in INDEXLIB is not defined (hc08)
359
360 2009-01-04 Philipp Klaus Krause <pkk AT spth.de>
361
362         * src/z80/gen.c:
363           Implemented RFE #2485684, and some further improvements of HL caching
364           including a bugfix.
365         * src/z80/peeph-z80.def:
366           Fixed a bug exposed by implementing RFE #2485684.
367
368 2009-01-04 Philipp Klaus Krause <pkk AT spth.de>
369
370         * src/z80/peeph-z80.def:
371           Peephole improvements.
372         * src/z80/gen.c,
373           src/z80/main.c,
374           device/include/string.h,
375           device/lib/z80/memmove.s:
376           Minor code cleanup.
377         * device/lib/z80/Makefile.in,
378           device/lib/Makefile.in,
379           support/regression/tests/memory.c,
380           device/lib/z80/strlen.s:
381           Partially implemented RFE #2471534.
382
383 2009-01-04 Borut Razem <borut.razem AT siol.net>
384
385         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.6
386           due changes in sdcc asxxxx linkers - it sholud be done 2 days ago :(
387         * doc/README.txt: updated John Hartman's e-mail address
388         * as/link/lkrel.c, as/link/lksdcclib.c:
389           fixed bug #2484677: Linker hangs
390         * src/z80/peep.c: fixed msvc warning C4047:
391           'return' : 'int ' differs in levels of indirection from 'char *'
392         * config.dsp: as/lib corrected to as/link
393
394 2009-01-04 Philipp Klaus Krause <pkk AT spth.de>
395
396         * src/z80/peep.c:
397           Implemented RFE #2484693.
398         * src/z80/peeph-z80.def:
399           Some peephole improvements.
400
401 2009-01-03 Borut Razem <borut.razem AT siol.net>
402
403         * as/link/lklibr.c:
404           fixed warning: 'ret' may be used uninitialized in this function
405
406 2009-01-02 Borut Razem <borut.razem AT siol.net>
407
408         * as/link/lklib.c, as/link/lksdcclib.c, as/link/lklibr.h,
409           as/link/getline.[ch], as/link/lkrel.[ch]: added,
410           made support for differnet library formats more flexible,
411           preparation for support of ar format
412         * as/link/lklibr.c, as/link/z80/Makefile.in,
413           as/link/z80/linkgbz80.dsp, as/link/z80/linkz80.dsp,
414           as/link/hc08/link_hc08.dsp, as/link/hc08/Makefile.in,
415           as/link/mcs51/aslink.dsp, as/link/mcs51/Makefile.in,
416           as/link/hc08/lkelf.c, as/link/aslink.h:
417           made support for differnet library formats more flexible,
418           preparation for support of ar format
419
420 2009-01-01 Borut Razem <borut.razem AT siol.net>
421
422         * as/link/asxxxx_config.h.in:
423           fixed warning: extra tokens at end of #endif directive
424         * src/z80/peep.c:
425           fixed warning: suggest parentheses around && within ||
426         * device/lib/Makefile.in: allow whitespaces at the end of lines in
427           ports.build, in order to make it work on cygwin - it seems to be a
428           bug in cygwin grep: CR is not treated as part of end-of-line
429
430 2008-12-31 Borut Razem <borut.razem AT siol.net>
431
432         * configure, configure.in, config.dsp, config_vc.awk,
433           as/link/asxxxx_config.h.in, as/link/hc08/lkelf.c, as/link/aslink.h,
434           as/link/hc08/Makefile.in, as/link/mcs51/Makefile.in:
435           introduced asxxxx_config.h.in
436
437 2008-12-30 Philipp Klaus Krause <pkk AT spth.de>
438
439         * src/z80/gen.c,
440           src/z80/peeph-z80.def:
441           Minor addition improvement.
442
443 2008-12-30 Raphael Neider <rneider AT web.de>
444
445         * as/link/hc08/lkelf.c, as/link/lkaomf51.c, as/link/lklibr.c,
446           as/link/z80/lkgb.c, debugger/mcs51/cmd.c, sim/ucsim/utils.cc,
447           src/SDCCasm.c, support/Util/dbuf_string.c, support/cpp/c-ppoutput.c,
448           support/cpp/libcpp/lex.c, support/cpp/libcpp/macro.c,
449           support/librarian/sdcclib.c, support/makebin/makebin.c:
450           partially revert changes from r5293..r5295
451
452 2008-12-29 Philipp Klaus Krause <pkk AT spth.de>
453
454         * src/z80/peeph-z80.def:
455           Minor peephole improvement.
456
457 2008-12-29 Raphael Neider <rneider AT web.de>
458
459         * src/pic/pcode.c (insertBankSel, FixRegisterBanking): emit
460           incorrectly discarded BANKSELs
461
462 2008-12-29 Philipp Klaus Krause <pkk AT spth.de>
463
464         * support/regression/tests/memory.c:
465           Added simple test for memset(), memcpy() and memmove()
466
467 2008-12-29 Borut Razem <borut.razem AT siol.net>
468
469         * sdcc/support/scripts/sdcc.nsi: removed $INSTDIR\lib\src\z80\*.c
470
471 2008-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
472
473         * src/mcs51/peeph.def (177.e): replaced notVolatile(%3) with
474           operandsNotRelated(%1 %3), had to change (a)r%1 to (a)%1 for this to work
475           (177.j): added new rule
476         * src/SDCCsymt.h: added RESULT_TYPE_GPTR
477         * src/SDCCast.c (processParms): use RESULT_TYPE_GPTR for generic ptr parms,
478           (decorateType CAST): propagate storage class to generic pointer results
479
480 2008-12-27 Philipp Klaus Krause <pkk AT spth.de>
481
482         * device/lib/z80/string.c,
483           device/lib/z80/printf.c,
484           device/lib/z80/mul.s:
485           z80 library cleanup
486         * src/z80/gen.c:
487           Fixed code generation bug exposed by builtin memcpy().
488
489 2008-12-27 Philipp Klaus Krause <pkk AT spth.de>
490
491         * device/lib/_memcpy.c:
492           fixed conflict with builtin memcpy()
493
494 2008-12-26 Borut Razem <borut.razem AT siol.net>
495
496         * support/librarian/sdcclib.c:
497           fixed bug 2466950: "sdcclib broken"
498           by removing fgets return value check
499
500 2008-12-26 Philipp Klaus Krause <pkk AT spth.de>
501         * src/z80/main.c,
502           src/z80/gen.c,
503           device/include/string.h: Implemented RFE #1914254
504
505 2008-12-26 Philipp Klaus Krause <pkk AT spth.de>
506         * device/lib/z80/Makefile.in,
507           device/lib/Makefile.in,
508           device/lib/z80/memmove.s: Implemented RFE #1914256
509
510 2008-12-26 Philipp Klaus Krause <pkk AT spth.de>
511
512         * src/z80/peeph-z80.def: fixed a bug in peephole 0zf
513         * src/z80/peep.c: improved checks for unused data
514         * src/z80/gen.c,
515           src/z80/main.c: Implemented RFE #1899189
516
517 2008-12-25 Borut Razem <borut.razem AT siol.net>
518
519         * support/regression/Makefile.in:
520           add -I$(INC_DIR) to SDCCFLAGS only if INC_DIR is defined
521
522 2008-12-25 Philipp Klaus Krause <pkk AT spth.de>
523
524         * src/z80/peeph-z80.def: minor peephole improvements
525
526 2008-12-21 Borut Razem <borut.razem AT siol.net>
527
528         * support/librarian/sdcclib.c: fixed build failure on Mac OS X
529           due to redefinition of symbol __assert
530           sdcclib.c:53:1:warning: "__assert" redefined
531           /Xcode2.5/SDKs/MacOSX10.4u.sdk/usr/include/assert.h:80:1:
532           warning: this is the location of the previous definition
533
534 2008-12-20 Raphael Neider <rneider AT web.de>
535
536         * debugger/mcs51/break.c, debugger/mcs51/cmd.c,
537           debugger/mcs51/simi.c, debugger/mcs51/symtab.c,
538           support/cpp/libcpp/macro.c: fix format string errors
539
540         * sim/ucsim/s51.src/timer2.cc: add clarifying parens
541
542         * src/pic/device.c: partial rewrite using strtok,
543           quieten compiler warnings, adopt SDCC coding style
544
545         * as/link/hc08/lkelf.c, as/link/lkaomf51.c, as/link/lklibr.c,
546           as/link/z80/lkgb.c, as/z80/asout.c, debugger/mcs51/cmd.c,
547           sim/ucsim/utils.cc, src/SDCCasm.c, support/Util/dbuf_string.c,
548           support/cpp/c-ppoutput.c, support/cpp/libcpp/lex.c,
549           support/librarian/sdcclib.c, support/makebin/makebin.c:
550           quieten most compiler warnings
551
552         * sim/ucsim/avr.src/arith_inst.cc: quieten compiler warnings,
553           probably fix operator precedence bug
554
555         * doc/clean.mk: quieten rm if no .lyx is present
556
557 2008-12-19 Borut Razem <borut.razem AT siol.net>
558
559         * doc/sdccman.lyx, doc/random-notes.txt, doc/avr/avr_design.txt,
560           doc/TININative.txt, doc/macro-sys-design.txt, doc/libdoc.txt,
561           doc/README.txt, doc/test_suite_spec.lyx:
562           applied patch 2446381: Dcoumentation spelling correcitons
563           thanks to Steven Borley
564
565 2008-12-16 Raphael Neider <rneider AT web.de>
566
567         * device/include/pic/pic12f629.h,
568           device/include/pic/pic12f675.h,
569           device/lib/pic/libdev/pic12f629.c,
570           device/lib/pic/libdev/pic12f675.c: consolidated, added TRISIO bits
571
572 2008-12-14 Borut Razem <borut.razem AT siol.net>
573
574         * doc/sdccman.lyx, cdbfileformat.lyx, test_suite_spec.lyx:
575           converted to LyX 1.5.7 (\lyxformat 276) format
576
577 2008-12-07 Borut Razem <borut.razem AT siol.net>
578
579         * support/regression/tests/bitfields.c:
580           added test case for bug #2366757
581
582 2008-12-07 Raphael Neider <rneider AT web.de>
583
584         * src/pic16/glue.c (pic16_printIvalBitFields): prevent
585           NULL pointer dereference, closes #2366757
586
587 2008-11-25 Raphael Neider <rneider AT web.de>
588
589         * device/include/pic16/pic16devices.txt,
590           sdcc/src/pic16/device.c,
591           sdcc/src/pic16/device.h: implicitly disable XINST
592           whenever CONFIG4L is set via an additional optional
593           argument to the configword directive in pic16devices.txt
594
595 2008-11-24 Raphael Neider <rneider AT web.de>
596
597         * device/lib/pic16/configure.ac,
598           device/lib/pic16/Makefile.common: fixed quoting issues
599
600         * device/lib/pic16/configure,
601           device/lib/pic16/debug/Makefile.in,
602           device/lib/pic16/libc/Makefile.in,
603           device/lib/pic16/libdev/Makefile.in,
604           device/lib/pic16/libio/Makefile.in,
605           device/lib/pic16/libm/Makefile.in,
606           device/lib/pic16/libsdcc/Makefile.in,
607           device/lib/pic16/Makefile.in,
608           device/lib/pic16/startup/Makefile.in: regenerated
609
610         * src/pic16/main.c (_pic16_finaliseOptions): revert to
611           variant of r5216
612
613 2008-11-24 Raphael Neider <rneider AT web.de>
614
615         * src/pic16/main.c (_pic16_finaliseOptions): do not quote the
616           argument of --asm= or --link= to allow for
617           --asm="sh script --options", the user can double quote the
618           argument if needed: --asm="'c:/program files/gpasm' -q",
619           also fix some potential buffer overflows
620
621 2008-11-19 Borut Razem <borut.razem AT siol.net>
622
623         * doc/sdccman.lyx:
624           fixed 2314467: sdccman.lyx: fix "--" in command line parameters
625           thanks Mauro Giachero
626
627 2008-11-16 Borut Razem <borut.razem AT siol.net>
628
629         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.5
630         * doc/sdccman.lyx: documented fixed unnamed bit-field initialization
631
632 2008-11-15 Borut Razem <borut.razem AT siol.net>
633
634         * src/pic16/glue.c, src/SDCC.y, src/SDCCast.c, src/SDCCglue.c,
635           src/SDCCsymt.c, src/SDCCsymt.h:
636           fixed RFE #2291335 : Unnamed bit-field initialization
637         * support/regression/tests/bitfields.c:
638           added test case for RFE #2291335
639         * support/regression/tests/bug-1981238.c:
640           don't initialize unnamed bit-fields
641
642 2008-11-11 Raphael Neider <rneider AT web.de>
643
644         * device/include/pic16/pic18f25j10.h,
645           device/include/pic16/pic18f45j10.h: remove useless boilerplate
646
647         * device/include/pic16/adc.h,
648           device/lib/pic16/libio/adc/adcbusy.c,
649           device/lib/pic16/libio/adc/adcclose.c,
650           device/lib/pic16/libio/adc/adcconv.c,
651           device/lib/pic16/libio/adc/adcopen.c,
652           device/lib/pic16/libio/adc/adcread.c,
653           device/lib/pic16/libio/adc/adcsetch.c: generalized, documented,
654           and fixed ADC routines to work for more target devices,
655           incorporates patch #2036130 by Nick Materer
656
657 2008-11-10 Steven Borley <steven.borley AT partnerelectronics.com>
658
659         * device/include/ctype.h,
660         * device/include/ds400rom.h,
661         * device/include/ds80c390.h,
662         * device/include/float.h,
663         * device/include/math.h,
664         * device/include/serial.h,
665         * device/include/stdbool.h,
666         * device/include/tinibios.h: replaced non-C89 '//' with '/* */',
667           patch 2195343
668         * device/include/mcs51/C8051F336.h,
669         * device/include/mcs51/C8051T600.h,
670         * device/include/mcs51/C8051T610.h,
671         * device/include/mcs51/C8051T630.h: new, added, patch 2183334
672           (svn commit by Maarten Brock <sourceforge.brock AT dse.nl>)
673
674 2008-11-10 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
675
676         * device/include/mcs51/P89LPC922.h: fixed #2255989, thanks kubi57
677
678 2008-11-10 Raphael Neider <rneider AT web.de>
679
680         * device/lib/pic16/libdev/mkmk.sh: obey pics.all
681         * device/lib/pic16/libio/mkmk.sh: properly match whole lines in
682           .ignore files, fixes IO libs for 18f242, 18f252, 18f442, and 18f452
683           (patch by Nick Materer, #2253980)
684
685         * device/lib/pic16/libio/adc.ignore,
686           device/lib/pic16/libio/i2c.ignore,
687           device/lib/pic16/libio/usart.ignore,
688           device/lib/pic16/pics.all: updated to build more device libs
689
690         * device/lib/pic16/libdev/Makefile.am,
691           device/lib/pic16/libdev/Makefile.in,
692           device/lib/pic16/libio/Makefile.am,
693           device/lib/pic16/libio/Makefile.in: regenerated
694
695         * src/pic16/device.c (pic16_dump_usection): fixed output of multiple
696           names per memory location, applied SDCC style to more functions
697
698 2008-11-09 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
699
700         * device/include/mcs51/p89lpc933_4.h: new NXP header file
701         * device/include/mcs51/p89lpc935_6.h: new NXP header file
702         * device/include/mcs51/p89v66x.h: minor changes
703           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
704
705 2008-11-09 Raphael Neider <rneider AT web.de>
706
707         * device/include/pic/pic14devices.txt: fixed memory description for
708           12f629 and 12f675, closes #2236240
709
710 2008-11-06 Borut Razem <borut.razem AT siol.net>
711
712         * src/SDCCmain.c: fixed bug #2224960: sdcc -MM no working correctly
713           pass system include paths with -isystem to sdcpp
714         * src/SDCCglue.c, src/pic/glue.c, src/pic16/glue.c: removed unneeded
715           functions (closePipes), (closeTmpFiles) and (rmTmpFiles)
716
717 2008-11-02 Raphael Neider <rneider AT web.de>
718
719         * doc/sdccman.lyx: updated the sections on the library build process
720           and on how to add support for new devices, and documented known
721           problems with the extended instruction set including a workaround
722
723 2008-11-01 Raphael Neider <rneider AT web.de>
724
725         * device/include/pic16/adc.h,
726           device/include/pic16/pic16devices.txt,
727           device/include/pic16/pic18f2410.h,
728           device/include/pic16/pic18f2510.h,
729           device/include/pic16/pic18f2515.h,
730           device/include/pic16/pic18f2610.h,
731           device/include/pic16/pic18f4410.h,
732           device/include/pic16/pic18f4510.h,
733           device/include/pic16/pic18f4515.h,
734           device/include/pic16/pic18f4610.h,
735           device/include/pic16/pic18fregs.h,
736           device/lib/pic16/libdev/Makefile.am,
737           device/lib/pic16/libdev/Makefile.in,
738           device/lib/pic16/libdev/pic18f2410.c,
739           device/lib/pic16/libdev/pic18f2510.c,
740           device/lib/pic16/libdev/pic18f2515.c,
741           device/lib/pic16/libdev/pic18f2610.c,
742           device/lib/pic16/libdev/pic18f4410.c,
743           device/lib/pic16/libdev/pic18f4510.c,
744           device/lib/pic16/libdev/pic18f4515.c,
745           device/lib/pic16/libdev/pic18f4610.c,
746           device/lib/pic16/libio/Makefile.am,
747           device/lib/pic16/libio/Makefile.in,
748           device/lib/pic16/pics.all: added support for 18f[24][456]10
749           and 18f[24]515 devices
750         * doc/sdccman.lyx: updated list of supported PIC16 devices
751
752         * src/pic/glue.c, src/pic/pcode.c, src/pic/pcodeflow.c,
753           src/pic16/glue.c, src/pic16/pcode.c, src/pic16/pcodeflow.c,
754           src/xa51/gen.c: avoid compiler warnings
755         * support/scripts/inc2h-pic16.pl: removed trailing whitespace
756
757 2008-10-22 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
758
759         * device/include/mcs51/p89v66x.h: NXP header file
760         * device/include/mcs51/p89c66x.h: fixed an SBIT definition
761           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
762
763 2008-10-14 Raphael Neider <rneider AT web.de>
764
765         * device/lib/pic16/libdev/Makefile.am,
766           device/lib/pic16/libio/Makefile.am: enable building libraries for
767           18f2321, 18f4321, 18f2523, 18f4620, 18f66j60, 18f66j65, 18f67j60,
768           18f86j60, 18f86j65, 18f87j60, 18f96j60, 18f96j65, and 18f97j60
769         * device/lib/pic16/libdev/Makefile.in,
770           device/lib/pic16/libio/Makefile.in: regenerated
771
772 2008-10-14 Raphael Neider <rneider AT web.de>
773
774         * device/include/pic16/pic18f2450.h,
775           device/include/pic16/pic18f4450.h,
776           device/lib/pic16/libdev/pic18f2450.c,
777           device/lib/pic16/libdev/pic18f4450.c,
778           device/include/pic16/adc.h,
779           device/include/pic16/pic16devices.txt,
780           device/include/pic16/pic18fregs.h,
781           device/lib/pic16/libdev/Makefile.am,
782           device/lib/pic16/libdev/Makefile.in,
783           device/lib/pic16/libio/Makefile.am,
784           device/lib/pic16/libio/Makefile.in,
785           device/lib/pic16/pics.all: added 18f2450 and 18f4450, closes #1844525
786
787         * device/lib/pic16/libsdcc/stack/stack.S: there is no need to pin the
788           stack to a fixed location, relax it to automatically work with all
789           but the smallest devices (256 byte RAM devices need #pragma stack)
790
791 2008-10-09 Maarten Brock <sourceforge.brock AT dse.nl>
792
793         * debugger/mcs51/break.c: bugfix from patch 1989966, thanks Risto Huotari
794         * debugger/mcs51/simi.c: bugfix from patch 1989972, thanks Risto Huotari
795         * device/lib/_strcspn.c: fixed bug 2140931
796
797 2008-10-06 Raphael Neider <rneider AT web.de>
798
799         * device/include/pic16/stdio.h,
800           device/lib/pic16/libc/stdio/putchar.c: putchar should not be
801           declared __naked for convenience, named all arguments
802         * device/lib/pic16/libc/stdio/strmgpsim.c,
803           device/lib/pic16/libc/stdio/strmmssp.c,
804           device/lib/pic16/libc/stdio/strmusart.c: cosmetic changes
805
806         * src/pic16/pcode.c (createReachingDefinitions): avoid segfault on
807           empty __naked functions,
808         * (pCodeLabelDestruct, pic16_unlinkpCode, pic16_pCodeUnlink): fix
809           corner cases (unlink first/last pCode in list), reuse more code
810
811 2008-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
812
813         * src/ds390/main.c (_ds390_genInitStartup): added
814         * src/SDCCpeeph.c (getPatternVar): new, added,
815           (labelInRange): fixed bug 2115959
816         * src/mcs51/peeph.def (rules 193.x to 198.x): check for labelInRange
817         * src/SDCCicode.h: added newiTempOperand
818         * src/SDCCcse.c (algebraicOpts): fixed bug for x*-1,
819           added optimizations for 0/x and x/-1, see also patch 2142900
820         * support/regression/tests/onebyte.c (testMul): added test cases
821
822 2008-09-20 Borut Razem <borut.razem AT siol.net>
823
824         * src/pic16/glue.c:
825           definition of absolute address symbols without initial value,
826           fixed SDCC crash "do not know how to intialize symbol"
827
828 2008-09-16 Maarten Brock <sourceforge.brock AT dse.nl>
829
830         * device/lib/z80/mul.s (__mulsuchar_rrx_s, __muluschar_rrx_s),
831         * device/lib/z80/div.s (__divsuchar_rrx_s, __modsuchar_rrx_s,
832           __divuschar_rrx_s, __moduschar_rrx_s): added mixed signedness versions
833         * device/lib/z80/stubs.s: added stubs for above functions
834         * src/SDCCopt.c (convilong),
835         * src/SDCCsymt.c (initCSupport): fixed bug 1900961
836         * src/SDCCsymt.h (__muldiv): enlarged for mixed signedness
837         * src/z80/main.c (_hasNativeMulFor): fixed bug, I think
838         * support/regression/tests/onebyte.c: enabled all tests for z80
839
840 2008-09-15 Borut Razem <borut.razem AT siol.net>
841
842         * device/include/pic16/stdio.h, device/lib/pic16/libc/stdio/streams.c,
843           device/lib/pic16/libc/stdio/printf.c,
844           device/lib/pic16/libc/stdio/strmusart.c,
845           device/lib/pic16/libc/stdio/printf_tiny.c,
846           device/lib/pic16/libc/stdio/sprintf.c,
847           device/lib/pic16/libc/stdio/strmgpsim.c,
848           device/lib/pic16/libc/stdio/putchar.c,
849           device/lib/pic16/libc/stdio/fprintf.c,
850           device/lib/pic16/libc/stdio/strmmssp.c,
851           device/device/lib/pic16/libc/stdio/vprintf.c,
852           device/lib/pic16/libc/stdio/printf_small.c,
853           device/lib/pic16/libc/stdio/vsprintf.c,
854           device/lib/pic16/libc/stdio/strmputchar.c,
855           device/lib/pic16/libc/Makefile.am,
856           device/lib/pic16/libc/Makefile.in:
857           *printf now returns int, puchar.c moved from stdlib to stdio,
858           *printf format parameter type changed from char * to const char *,
859           added GNU link excetion text to library source files,
860           applyed GNU coding style, removed useless svn ids,
861           added BINARY_SPECIFIER macro re-enables the use of the removed 'b'
862           binary specifier: "%b", "%hb" and "%lb"
863         * device/lib/pic16/libc/stdio/vfprintf.c:
864           applied patch #2044424: PIC16: vfprintf
865           thanks Mauro Giachero
866         * support/regression/tests/bug1057979.c:
867           removed old pic16 sprintf specifics
868         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.4
869         * doc/sdccman.lyx: documented 'b' binary format specifier removal
870
871 2008-09-15 Raphael Neider <rneider AT web.de>
872
873         * src/pic16/device.c (pic16_dump_usection): force udata sections
874           into the addressable range (0..0xFFF), workaround for a gpsim
875           bug preventing simulation of regtest bug1750318
876         * src/pic16/ralloc.c (deassignLRs): cosmetic changes,
877           (serialRegAssign): fixed regtest bug-971834,
878           (pic16_packRegisters): avoid null-pointer dereference
879
880 2008-09-14 Raphael Neider <rneider AT web.de>
881
882         * src/pic16/gen.c, src/pic16/ralloc.c: use
883           SYM_SPIL_LOC/SPIL_LOC macros, no functional changes
884         * src/pic16/ralloc.c (rematStr): reimplemented, fixes #1818857
885
886 2008-09-12 Borut Razem <borut.razem AT siol.net>
887
888         * support/regression/fwk/testfwk.h:
889           define pdata as data for pic16 target
890           thanks Mauro Giachero
891
892 2008-09-11 Borut Razem <borut.razem AT siol.net>
893
894         * support/regression/tests/bug-221100.c, support/regression/shifts.c,
895           support/regression/absolute.c:
896           applied patch #2105615: Some PIC16 testcase fixlets
897           thanks Mauro Giachero
898
899 2008-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
900
901         * src/z80/gen.c (genCmpGt, genCmpLt): fixed bug 2094505
902         * support/regression/tests/bug2094505.c: new, added
903
904 2008-09-07 Borut Razem <borut.razem AT siol.net>
905
906         * src/SDCCglue.c, src/SDCCast.c:
907           fixed throw of "excess elements" warning for char arrays
908         * support/regression/tests/nullstring.c:
909           disable warning about excess elements in array of chars initializer
910
911 2008-09-07 Maarten Brock <sourceforge.brock AT dse.nl>
912
913         * as/z80/aslist.c (lstsym): changed old K&R to ANSI
914         * src/SDCCicode.c (geniCodeCritical): fixed bug for hc08
915         * src/z80/gen.c (genCritical, genEndCritical): fixed bug 2077267
916         * support/regression/tests/bug2077267.c: new, added
917
918 2008-09-05 Raphael Neider <rneider AT web.de>
919
920         * configure.in, Makefile.common.in: add support for ccache,
921           remove spurious $VERSION output, detect doc-tools even without
922           --enable-doc to facilitate later manual doc-builds, minor cleanup
923         * configure: regenerated
924
925         * doc/Makefile.in: quieten pdflatex, makeindex, and latex2html,
926           avoid races in parallel VPATH builds
927         * doc/clean.mk: remove .lyx files in the builddir for VPATH builds
928         * doc/sdccman.lyx: mention --without-ccache configure option
929
930 2008-09-01 Raphael Neider <rneider AT web.de>
931
932         * src/pic16/gen.c (pic16_derefPtr): handle CPOINTERs as well
933         * (genConstPointerGet): fix reading bitfields from __code space
934         * src/pic16/glue.c (pic16_printIvalBitFields): correctly mask
935           bitfield initializers (fix regression test bug1856409.c)
936         * (pic16_printIvalCharPtr,pic16_printIvalPtr): generalized to support
937           arbitrary sizes
938
939 2008-08-31 Raphael Neider <rneider AT web.de>
940
941         * src/pic16/gen.c (genAssign): removed useless compiler output
942         * (genPointerGet,genPointerSet,genCast),
943           src/pic16/glue.c (pic16_printGPointerType):
944           also handle PPOINTERs just to avoid spurious asserts
945         * (pic16_printIvalType,pic16_printIvalBitFields):
946           generalized to arbitrary type/bitfield sizes, allows compilation of
947           regression test bug-1981238.c
948         * (pic16_printIvalChar): fix regression test structflexarray.c
949         * (pic16_printIvalArray): avoid SIGSEGV on uninitialized strings
950           in initialized structs and fix #1843745
951         * (pic16_printIvalStruct): always output initializers for all fields,
952           even those not explicitly given, fixes zeropad.c regression test
953         * (pic16_printIvalUnion): fix union initializers (bug1426356.c,
954           #2073635, #1567098, and #1485812)
955         * src/pic16/main.c (_pic16_keywords): remove unsupported 'pdata'
956
957 2008-08-31 Borut Razem <borut.razem AT siol.net>
958
959         * support/regression/tests/bug-895992.c,
960           support/regression/tests/onebyte.c:
961           enabled pic16 regression testing since the bugs
962           1511794: pic16: regression test bug-895992.c fails
963           1444425: onebyte.c regression tes fails on pic16
964           are fixed, probably by fixing
965           2048464: PIC16: fix genUminus - addresses not.c regression test
966         * src/SDCCsymt.c, src/SDCCglue.c,
967           support/regression/tests/bug-1981238.c:
968           applied patch 2076664: fix #1981238 + SIGSEGV in SDCCGlue.c
969           thanks to RvS
970
971 2008-08-30 Borut Razem <borut.razem AT siol.net>
972
973         * support/cpp/libcpp/files.c: SDCPP synchronized with GCC CPP
974           release version 4.3.2
975
976 2008-08-24 Raphael Neider <rneider AT web.de>
977
978         * device/lib/pic16/configure, device/lib/pic16/configure.ac:
979           always use the sdcc from the current build tree (ignore $CC from
980           the environment, fixes compile farm builds)
981         * device/lib/Makefile.in: rename .a into .lib for compatibility,
982           remove more build products from install directory
983         * sdcc/src/pic16/main.c (_pic16_linkEdit,_pic16_finaliseOptions)
984         * sdcc/support/scripts/sdcc.nsi: revert to .lib extension for libs
985
986 2008-08-24 Borut Razem <borut.razem AT siol.net>
987
988         * src/SDCC.y: applied patch
989           2050245: Fix # 1963382
990           for bug
991           1963382: Listing File - C file comment is incorrect
992           thanks to RvS
993
994 2008-08-23 Borut Razem <borut.razem AT siol.net>
995
996         * src/pic16/gen.c: applied patch
997           2048464: PIC16: fix genUminus - addresses not.c regression test
998           thanks Mauro Giachero
999
1000 2008-08-22 Borut Razem <borut.razem AT siol.net>
1001
1002         * device/lib/pic16/configure, device/lib/pic16/configure.ac,
1003           src/pic16/main.c: allow spaces in gpasm and gplink paths
1004
1005 2008-08-15 Philipp Klaus Krause <pkk AT spth.de>
1006
1007         * src/z80/peep.c,
1008         * src/z80/peeph-z80.def: minor peephole improvement
1009
1010 2008-08-15 Raphael Neider <rneider AT web.de>
1011
1012         * src/z80/gen.c (_vemit2): suppress compiler warning
1013
1014         * src/pic/*.[ch]: make proper use of header files and avoid
1015           ad-hoc extern declarations, mark module-local helpers 'static',
1016           removed dead/replaced code, no functional changes
1017         * src/pic16/pcode.c: disentangled from pic14 backend
1018
1019 2008-08-14 Philipp Klaus Krause <pkk AT spth.de>
1020
1021         * src/z80/gen.c: fixed #2051348
1022         * support/regression/tests/bug-2051348.c: regression test for #2051348
1023
1024 2008-08-10 Raphael Neider <rneider AT web.de>
1025
1026         * configure.in,
1027         * Makefile.common.in: export PACKAGE for $docdir,
1028           fixes #1957036, avoid some "underquoted definition" warnings
1029         * configure: regenerated
1030
1031 2008-08-10 Raphael Neider <rneider AT web.de>
1032
1033         * device/lib/pic16/**: build pic16 library using autotools for
1034           improved dependency tracking
1035
1036         * device/lib/Makefile.in,
1037         * src/pic16/main.c,
1038         * support/scripts/sdcc.nsi: adapt to changes in filenames (s/.lib/.a/)
1039
1040 2008-08-10 Raphael Neider <rneider AT web.de>
1041
1042         * src/pic/pcode.c (ReuseReg): do not overlay the registers used for
1043           local variables if --nooverlay is given, workaround for #2023121
1044
1045 2008-08-08 Raphael Neider <rneider AT web.de>
1046
1047         * src/pic16/genarith.c (genAddLit): fix structure access (#1888004)
1048
1049 2008-08-08 Raphael Neider <rneider AT web.de>
1050
1051         * src/pic/pcoderegs.c,
1052         * src/pic/pcode.c,
1053         * src/pic16/pcode.c: replace own SAFE_snprintf with common SNPRINTF
1054
1055 2008-08-07 Borut Razem <borut.razem AT siol.net>
1056
1057         * src/SDCCval.c, src/SDCCmain.c, src/SDCC.lex,
1058           device/lib/pic/Makefile.rules, device/lib/ds390/Makefile.in,
1059           device/lib/ds400/Makefile.in, device/lib/hc08/Makefile.in,
1060           support/cpp/libcpp/lex.c,  doc/sdccman.lyx:
1061           applied modified patch 2038174: Add support for binary constants v2
1062           thanks Mauro Giachero
1063         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.3
1064
1065 2008-08-04 Raphael Neider <rneider AT web.de>
1066
1067         * doc/sdccman.lyx,
1068         * src/pic16/device.h,
1069         * src/pic16/glue.c,
1070         * src/pic16/main.c: enable --optimize-goto by default
1071
1072         * device/lib/pic16/Makefile.common.in: suppress removed option
1073
1074         * src/pic16/gen.c,
1075         * src/pic16/genutils.c: avoid too long relative branches (#2031890)
1076
1077 2008-07-30 Borut Razem <borut.razem AT siol.net>
1078
1079         * src/pic16/device.c, src/pic16/glue.c, src/pic16/pcode.c:
1080           applied patch 22032433: PIC16: fix constant strings,
1081           thanks Mauro Giachero
1082
1083 2008-07-29 Borut Razem <borut.razem AT siol.net>
1084
1085         * src/pic16/gen.c: applied patches:
1086           2030306: [1/3] PIC16: fix failing rotate.c tests on 16-bit variables,
1087           2030307: [2/3] PIC16: fix failing rotate.c tests for 32-bit var (1),
1088           2030310: [3/3] PIC16: fix failing rotate.c tests for 32-bit var (2),
1089           thanks Mauro Giachero
1090
1091 2008-07-13 Philipp Klaus Krause <pkk AT spth.de>
1092
1093         * src/port.h: Fixed typo in comment
1094
1095 2008-07-12 Philipp Klaus Krause <pkk AT spth.de>
1096
1097         * src/z80/mappings.i: Implemented RFE #1919415
1098         * src/z80/peeph-z80.def: Implemented RFE #1919415, #1861376,
1099           #1880202, #1914434, prepared for RFE #1703943
1100
1101 2008-07-12 Philipp Klaus Krause <pkk AT spth.de>
1102
1103         * src/z80/peeph.def,
1104         * src/z80/peeph-z80.def,
1105         * src/z80/peeph-gbz80.def: separate Z80 from GBZ80 peepholes in
1106           preparation for Z80 peephole improvements
1107
1108 2008-06-21 Raphael Neider <rneider AT web.de>
1109
1110         * device/include/pic16/pic18f66j60.h,
1111         * device/include/pic16/pic18f66j65.h,
1112         * device/include/pic16/pic18f67j60.h,
1113         * device/include/pic16/pic18f86j60.h,
1114         * device/include/pic16/pic18f86j65.h,
1115         * device/include/pic16/pic18f87j60.h,
1116         * device/include/pic16/pic18f96j60.h,
1117         * device/include/pic16/pic18f96j65.h,
1118         * device/include/pic16/pic18f97j60.h,
1119         * device/lib/pic16/libdev/pic18f66j60.c,
1120         * device/lib/pic16/libdev/pic18f66j65.c,
1121         * device/lib/pic16/libdev/pic18f67j60.c,
1122         * device/lib/pic16/libdev/pic18f86j60.c,
1123         * device/lib/pic16/libdev/pic18f86j65.c,
1124         * device/lib/pic16/libdev/pic18f87j60.c,
1125         * device/lib/pic16/libdev/pic18f96j60.c,
1126         * device/lib/pic16/libdev/pic18f96j65.c,
1127         * device/lib/pic16/libdev/pic18f97j60.c,
1128         * device/include/pic16/pic16devices.txt,
1129         * device/include/pic16/pic18fregs.h,
1130         * device/lib/pic16/pics.all: added new devices
1131
1132         * device/include/pic16/adc.h,
1133         * device/lib/pic16/libio/adc/adcbusy.c,
1134         * device/lib/pic16/libio/adc/adcopen.c,
1135         * device/lib/pic16/libio/adc/adcsetch.c,
1136         * device/lib/pic16/libio/i2c/i2copen.c,
1137         * device/lib/pic16/libio/usart/uopen.c: adapted to new devices,
1138           all changes from a patch by Anton Strobl
1139
1140 2008-06-12 Borut Razem <borut.razem AT siol.net>
1141
1142         * sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/bp.cc,
1143           sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
1144           sim/ucsim/z80.src/z80cl.h, sim/ucsim/z80.src/z80.cc,
1145           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
1146           sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
1147           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/uc390.cc,
1148           sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/uc390cl.h,
1149           sim/ucsim/avr.src/avrcl.h, sim/ucsim/avr.src/avr.cc:
1150           fixed bug 1990586: s51 simulator, uc::disass() unimplemented
1151           by applying the modified patch from Risto Huotari
1152
1153 2008-06-04 Maarten Brock <sourceforge.brock AT dse.nl>
1154
1155         * .version,
1156         * doc/sdccman.lyx: bumped sdcc version to 2.8.2
1157         * src/ds390/gen.c (aopPutUsesAcc, genAddrOf): fixed bug 1015185
1158         * src/mcs51/gen.c (genNearPointerGet, genNearPointerSet): fixed bug 1938300
1159         * support/regression/tests/bug1938300.c: new, added
1160
1161 2008-06-03 Maarten Brock <sourceforge.brock AT dse.nl>
1162
1163         * device/include/asm/ds390/features.h,
1164         * device/include/asm/mcs51/features.h,
1165         * device/include/mcs51/regc515c.h: inserted LGPL notice
1166
1167 2008-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
1168
1169         * device/lib/gbz80/div.s,
1170         * device/lib/z80/div.s: fixed bug 1904314 by applying a modified part of
1171           patch 1597883, Thanks Robert Ramey
1172
1173 2008-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
1174
1175         * src/SDCCast.c (createIvalType, createIvalStruct, createIvalArray,
1176           createIvalCharPtr, createIvalPtr, createIval),
1177         * src/SDCCval.h
1178         * src/SDCCval.c (convertIListToConstList, list2expr): handle incomplete
1179           initializers for local auto variables
1180         * support/regression/tests/zeropad.c: added testcase for auto initializers
1181
1182 2008-05-26 Raphael Neider <rneider AT web.de>
1183
1184         * device/lib/pic16/startup/crt0.c,
1185         * device/lib/pic16/startup/crt0i.c,
1186         * device/lib/pic16/startup/crt0iz.c: clean up, make use of access bank
1187           explicit, fixed curr_entry loop for >= 256 initializer records,
1188           removed debug code (write to 0xf7e)
1189
1190 2008-05-25 Raphael Neider <rneider AT web.de>
1191
1192         * device/include/pic/pic16f627a.h,
1193         * device/include/pic/pic16f628a.h,
1194         * device/include/pic/pic16f648a.h: added missing ports
1195
1196 2008-05-20 Maarten Brock <sourceforge.brock AT dse.nl>
1197
1198         * device/include/float.h: added __INFINITY
1199         * device/lib/_fsadd.c: handle overflows
1200         * device/lib/_fsmul.c,
1201         * device/lib/_fsdiv.c: use __INFINITY
1202         * device/lib/_fseq.c,
1203         * device/lib/_fsneq.c: handle -0.0
1204         * sim/ucsim/s51.src/uc89c51r.cc,
1205         * sim/ucsim/s51.src/uc89c51rcl.h: fixed bug 1385430
1206         * sim/ucsim/sim.src/hwcl.h: */* confuses VC
1207         * src/mcs51/gen.c (genSend): fixed bug with --xstack
1208         * support/regression/ports/mcs51-xstack-auto/spec.mk: print floats
1209         * support/regression/tests/snprintf.c: test bug with --xstack
1210
1211 2008-05-19  Philipp Klaus Krause <pkk AT spth.de>
1212
1213         * src/SDCCpeeph.c (callFuncByName):
1214           Support nested parenthesis in peephole function arguments (#1967300)
1215
1216 2008-05-19 Raphael Neider <rneider AT web.de>
1217
1218         * src/pic16/gen.c (pic16_emitpLabel,pic16_emitpLabelFORCE):
1219           fixed duplicate labels (#1911325)
1220
1221 2008-05-19 Raphael Neider <rneider AT web.de>
1222
1223         * src/regression/empty.c: suppress warning
1224         * src/regression/pointer1.c: enabled index_by_pointer()
1225         * src/regression/inline.c: now works for pic16 as well
1226
1227         * src/pic16/device.c: include dbuf declarations
1228         * src/pic16/device.h: removed obsolete prototypes
1229
1230         * src/pic16/gen.c, src/pic16/gen.h: moved generic pointer tags
1231         * src/pic16/glue.c: made purely local functions static,
1232           (pic16_printGPointerType, pic16_printIvalCharPtr,
1233           pic16_printIvalFuncPtr, pic16_printIvalPtr): fixed initialized
1234           generic pointers' tags (#1961866)
1235
1236         * src/pic16/pcode.c (assignValnums): optimize literal assignments
1237
1238 2008-05-19 Borut Razem <borut.razem AT siol.net>
1239
1240         * support/scripts/sdcc.nsi: remove uninstall.exe after uninstallation,
1241           fixed typo, uninstall include/pic16/pic16devices.txt
1242
1243 2008-05-18 Borut Razem <borut.razem AT siol.net>
1244
1245         * support/Utils/dbuf_string.[ch]: added dbuf_chomp(),
1246           the buffer is null terminated
1247         * src/device/pic16.c:
1248           applied modified patch 1965676: Patch for Win32 16 bit PIC
1249         * sdcc_vc_in.h: defined YY_NO_UNISTD_H
1250
1251 2008-05-16 Maarten Brock <sourceforge.brock AT dse.nl>
1252
1253         * src/SDCC.lex (check_type),
1254         * src/SDCC.y (type_specifier2 TYPE_NAME): fixed bug 1925942
1255         * as/hc08/clean.mk,
1256         * as/mcs51/clean.mk,
1257         * as/z80/clean.mk: also clean *.dep
1258         * device/lib/pic16/libsdcc/stack/Makefile,
1259         * sim/ucsim/libtool: removed as they are rebuild by configure
1260         * src/clean.mk: removed izt, so Makefile is not deleted for distclean
1261
1262 2008-05-13 Maarten Brock <sourceforge.brock AT dse.nl>
1263
1264         * src/SDCCast.c (fixupInline, createFunction): save currBlockno in
1265           fixupInline instead of createFunction to fix bug 1864577
1266           (inlineFindMaxBlockno): removed, use global blockNo
1267         * src/SDCCglobl.h: added blockNo
1268         * src/z80/peep.c,
1269         * src/z80/peep.h: modified properties
1270         * support/regression/tests/bug1864577.c: new, added
1271
1272 2008-05-07 Maarten Brock <sourceforge.brock AT dse.nl>
1273
1274         * as/mcs51/asdata.c,
1275         * as/mcs51/asm.h: added org_cnt
1276         * as/mcs51/asmain.c (main, asmbl): fixed bug 1957716, changed old K&R to ANSI
1277         * as/mcs51/asout.c: changed old K&R to ANSI
1278         * as/mcs51/Makefile.in: use common identifiers
1279         * as/hc08/asdata.c,
1280         * as/hc08/asexpr.c,
1281         * as/hc08/asm.h,
1282         * as/hc08/asmain.c,
1283         * as/hc08/asout.c,
1284         * as/hc08/Makefile.bcc,
1285         * as/hc08/Makefile.in: synchronized with as/mcs51/*
1286         * sdcc_vc_in.h: added define __func__
1287         * src/SDCCast.c (expandInlineFuncs): applied patch 1957148 to fix bug 1717305,
1288           Thanks Ruud van Silfhout
1289         * support/regression/tests/bug1717305.c: new, added
1290
1291 2008-05-05 Borut Razem <borut.razem AT siol.net>
1292
1293         * support/regression/Makefile.in,
1294           support/regression/ports/ds390/spec.mk,
1295           support/regression/ports/hc08/spec.mk,
1296           support/regression/ports/mcs51-common/spec.mk,
1297           support/regression/ports/pic14/spec.mk,
1298           support/regression/ports/pic16/spec.mk,
1299           support/regression/ports/ucz80/spec.mk,
1300           support/regression/ports/z80/spec.mk:
1301           added INC_DIR and LIBDIR paths
1302         * src/ds390/gen.c: removed duplicated selicolon
1303
1304 2008-05-04 Borut Razem <borut.razem AT siol.net>
1305
1306         * support/regression/Makefile.in,
1307           support/regression/fwk/lib/testfwk.c,
1308           support/regression/ports/ds390/spec.mk,
1309           support/regression/ports/hc08/spec.mk,
1310           support/regression/ports/mcs51-common/spec.mk,
1311           support/regression/ports/mcs51-large/spec.mk,
1312           support/regression/ports/mcs51-medium/spec.mk,
1313           support/regression/ports/mcs51-small/spec.mk,
1314           support/regression/ports/mcs51-stack-auto/spec.mk,
1315           support/regression/ports/mcs51-xstack-auto/spec.mk,
1316           support/regression/ports/pic14/spec.mk,
1317           support/regression/ports/pic16/spec.mk,
1318           support/regression/ports/ucz80/spec.mk:
1319           added possibility to define the sdcc binary directory SDCC_BIN_PATH
1320           used to run regeression tests
1321
1322 2008-05-01 Raphael Neider <rneider AT web.de>
1323
1324         * doc/sdccman.lyx, support/scripts/inc2h-pic16.pl: updated list of
1325           supported devices and instructions to add new ones
1326
1327 2008-05-01 Raphael Neider <rneider AT web.de>
1328
1329         * device/include/pic16/adc.h,
1330           device/lib/pic16/libio/adc/adcbusy.c,
1331           device/lib/pic16/libio/adc/adcopen.c,
1332           device/lib/pic16/libio/adc/adcsetch.c: support old 18f242 and new
1333           18f2455 style ADC devices, based on patch #1776197
1334         * device/lib/pic16/libio/adc/adcclose.c,
1335           device/lib/pic16/libio/adc/adcconv.c,
1336           device/lib/pic16/libio/adc/adcread.c: cosmetic changes
1337         * device/include/pic16/{pic18f2331.h,pic18f2431.h},
1338           device/lib/pic16/libdev/{pic18f2331.c,pic18f2431.c}: reuse 18f4331
1339         * device/include/pic16/pic18f4431.h,
1340           device/lib/pic16/libdev/pic18f4431.c: remove outdated comments
1341         * device/lib/pic16/libio/adc.ignore: forbid unhandled devices
1342
1343 2008-05-01 Raphael Neider <rneider AT web.de>
1344
1345         * src/pic16/device.h: removed unused field PIC16_device.sfrRange,
1346           moved xinst flag into pic16_options_t
1347         * src/pic16/device.c (default_device, pic16_list_devices,
1348           pic16_find_device): removed references to sfrrange
1349         * src/pic16/gen.c (genFunction),
1350           src/pic16/glue.c (pic16initialComments),
1351           src/pic16/main.c (pic16_optionsTable),
1352           src/pic16/ralloc.c (newReg, pic16_writeUsedRegs): updated references
1353           to xinst
1354         * device/include/pic16/pic16devices.txt: removed sfrrange lines
1355
1356 2008-04-29 Raphael Neider <rneider AT web.de>
1357
1358         * src/pic16/devices.inc,
1359           device/include/pic16/pic16devices.txt: replaced compiled-in list
1360           of devices with a variant parsed at runtime
1361         * src/pic16/device.c: added support for parsing pic16devices.txt,
1362           clean up
1363         * src/pic16/device.h: removed (now) unused fields from PIC_device
1364         * src/pic16/main.c: removed #pragma maxram,
1365           (_pic16_initPaths): removed bogus generation of search paths,
1366           setup the port proper only after the search paths (for
1367           pic16devices.txt) are set up,
1368           (_pic16_finaliseOptions): moved processor dependant code here
1369           from _pic16_initPaths(), clean up
1370         * src/pic16/ralloc.c (pic16_init_stack),
1371         * src/pic16/ralloc.h,
1372         * src/pic16/pcode.c: clean up
1373         * device/include/Makefile.in,
1374           support/scripts/sdcc.nsi: also install/package pic16devices.txt
1375         * support/scripts/inc2h-pic16.pl: updated instructions
1376
1377 2008-04-29 Raphael Neider <rneider AT web.de>
1378
1379         * device/include/pic16/{pic18f2480.h, pic18f2580.h, pic18f4423.h,
1380           pic18f4480.h, pic18f4523.h, pic18f4580.h, pic18f6585.h, pic18f8585.h},
1381           device/lib/pic16/libdev/{pic18f2480.c, pic18f2580.c, pic18f4423.c,
1382           pic18f4480.c, pic18f4523.c, pic18f4580.c, pic18f6585.c, pic18f8585.c}:
1383           added missing family members and 18f2480/2580/4480/4580 family
1384         * device/include/pic16/{pic18f2423.h, pic18f2523.h}: use 18f4523.h
1385         * device/include/pic16/pic18f2525.h: use 18f4620.h
1386         * device/include/pic16/pic18f6680.h: use 18f8680.h
1387         * device/include/pic16/pic18fregs.h,
1388           device/lib/pic16/pics.all,
1389           src/pic16/devices.inc: add new devices
1390         * device/lib/pic16/libdev/{pic18f2423.c, pic18f2523.c}: use 18f4523.c
1391         * device/lib/pic16/libdev/pic18f2525.c: use 18f4620.c
1392         * device/lib/pic16/libdev/pic18f6680.c: uso 18f8680.c
1393         * device/lib/pic16/libio/{adc.ignore, i2c.ignore, usart.ignore}:
1394           prevent attempting to build the libio for some new devices
1395
1396 2008-04-29 Raphael Neider <rneider AT web.de>
1397
1398         * debugger/mcs51/Makefile.in: fixed paths to sources
1399
1400 2008-04-25 Borut Razem <borut.razem AT siol.net>
1401
1402         * as/link/lklibr.c: moved from as/link/z80/lklibr.c
1403         * as/link/hc08/lklibr.c, as/link/mcs51/lklibr.c: deleted
1404         * as/link/hc08/Makefile.bcc, as/link/hc08/Makefile.in,
1405         * as/link/hc08/link_hc08.dsp, as/link/mcs51/Makefile.bcc,
1406           as/link/mcs51/Makefile.in, as/link/mcs51/aslink.dsp,
1407           as/link/z80/Makefile.in, as/link/z80/linkgbz80.dsp,
1408           as/link/z80/linkz80.dsp: lklibr.c moved
1409         * doc/INSTALL.txt: binary archives in bz2 format
1410         * support/cpp/auto-host_vc_in.h: CPP2 replaced with CPP
1411
1412 2008-04-23 Maarten Brock <sourceforge.brock AT dse.nl>
1413
1414         * src/SDCCglue.c (printIvalType, printIvalBitFields): fixed bug 1856409
1415         * support/regression/tests/bug1856409.c: new, added
1416
1417 2008-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
1418
1419         * src/z80/peep.c,
1420         * src/mcs51/peep.c: Use werror for error messages.
1421         * src/SDCCicode.c (geniCodeConditional),
1422         * src/SDCCsymt.c (structElemType): fixed bug 1839321
1423         * src/z80/Makefile.bcc,
1424         * src/z80/z80.dsp: added src/z80/peep.c/h
1425         * support/regression/tests/bug1839321.c: new, added
1426
1427 2008-04-20 Raphael Neider <rneider AT web.de>
1428
1429         * device/include/pic16/pic18f2455.h: added bitfields for port C
1430
1431 2008-04-20 Philipp Klaus Krause <pkk AT spth.de>
1432
1433         * src/z80/peep.c: Use werror for error messages.
1434
1435 2008-04-19 Philipp Klaus Krause <pkk AT spth.de>
1436
1437         * src/z80/peep.h (declaration of notUsed()),
1438         * src/z80/main.c (enabled notUsed() for z80 port, documented z80_port
1439           struct),
1440         * src/z80/z80.h (added dependency on peep.h),
1441         * src/z80/peep.c (definition of notUsed()): Implemented RFE #1880202
1442           for Z80.
1443
1444 2008-04-19 Philipp Klaus Krause <pkk AT spth.de>
1445
1446         * src/SDCCpeeph.c (added support for notUsed()),
1447         * src/mcs51/main.c (added dependency on peep.h, documented mcs51_port
1448           struct),
1449         * src/port.h (removed dependency on mcs51/peep.h, added declaration
1450           for notUsed()): Implemented generic (that is not port-specific) part
1451           of RFE #1880202.
1452
1453 2008-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
1454
1455         * as/link/mcs51/lkmem.c (summary2): fixed bug 1796077
1456         * device/lib/libsdcc.lib,
1457         * device/lib/Makefile.in,
1458         * support/regression/ports/mcs51-xstack-auto/spec.mk,
1459         * device/lib/calloc.c: renamed to _calloc.c
1460         * device/lib/free.c: renamed to _free.c
1461         * device/lib/malloc.c: renamed to _malloc.c
1462         * device/lib/realloc.c: renamed to _realloc.c
1463         * src/ds390/gen.c (aopGet, aopPut, genPlusBits, genDataPointerSet,
1464           genNearPointerSet, genPagedPointerSet): synchronized with mcs51/gen.c
1465         * src/ds390/gen.c (popForBranch, genIfxJump, genCmp, genCmpEq, ifxForOp,
1466           genAnd, genOr, genXor, genIfx, gen390Code): fixed bug 1509084
1467         * src/mcs51/gen.c (popForBranch, genIfxJump, genCmp, genCmpEq,
1468           ifxForOp, genAnd, genOr, genXor, genNearPointerGet,
1469           genPagedPointerGet, genFarPointerGet, genCodePointerGet,
1470           genGenPointerGet, genIfx, gen51Code): fixed bug 1509084
1471         * src/ds390/gen.c,
1472         * src/mcs51/gen.c: throughout cosmetic changes for syncing both
1473         * src/SDCCsymt.h: updated IS_OP_RUONLY, IS_OP_ACCUSE
1474         * support/regression/tests/bug1509084.c: new, added
1475
1476 2008-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
1477
1478         * device/include/mcs51/cc2510fx.h: added _XPAGE
1479         * device/include/mcs51/compiler.h: cosmetic changes
1480
1481 2008-03-31 Maarten Brock <sourceforge.brock AT dse.nl>
1482
1483         * sdcc.dsw: adapted for moved cpp2, added dependency for as_z80 on
1484           config
1485
1486 2008-03-31 Borut Razem <borut.razem AT siol.net>
1487
1488         * support/cpp2 renamed to support/cpp
1489         * support/cpp2/libiberty/filenames.h, support/cpp2/libiberty/hex.c,
1490           support/cpp2/libiberty/splay-tree.c,
1491           support/cpp2/libiberty/splay-tree.h, support/cpp2/libcpp/macro.c,
1492           support/cpp2/libcpp/directives.c,
1493           support/cpp2/libcpp/include/cpplib.h,
1494           support/cpp2/libcpp/include/symtab.h,
1495           support/cpp2/libcpp/include/line-map.h,
1496           support/cpp2/libcpp/line-map.c, support/cpp2/libcpp/files.c,
1497           support/cpp2/libcpp/init.c, support/cpp2/libcpp/traditional.c,
1498           support/cpp2/libcpp/expr.c, support/cpp2/libcpp/internal.h,
1499           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/system.h,
1500           support/cpp2/libcpp/charset.c: SDCPP synchronized with GCC CPP
1501           release version 4.3.0
1502         * configure.in, configure, Makefile.in, Makefile.bcc:
1503           adapted for moved cpp2
1504
1505 2008-03-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1506
1507         * device/include/hc08/mc68hc908jkjl.h: committed fix for bug #1929739,
1508           thanks Alejandro Pustowka <alejo_pustowka AT yahoo.com.mx>
1509
1510 2008-03-30 Maarten Brock <sourceforge.brock AT dse.nl>
1511
1512         * src/SDCCloop.c (loopInvariants): applied fix for bug 1717943, thanks
1513           Robert Larice
1514         * support/regression/tests/bug1717943.c: new, added
1515
1516 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
1517
1518         * src/z80/gen.c (assignResultValue): Reverted reversal of order of
1519           bytewise return value assignments introduced in last commit.
1520
1521 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
1522
1523         * src/z80/gen.c (emitDebug, assignResultValue, genPlus, genMinus,
1524           genMult, genJumpTab):
1525           Use 16-bit instructions for addition in some additional cases,
1526           implemented RFEs #1914251, #1914245, #1922090, #1921382, #1918323.
1527
1528 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
1529
1530         * src/z80/ralloc.c (serialRegAssign, allocReg, tryAllocatingRegPair):
1531           Implemented RFE #1921450, changed some debug messages.
1532
1533 2008-03-30 Borut Razem <borut.razem AT siol.net>
1534
1535         * Small Device C Compiler 2.8.0 released
1536         * .version, doc/sdccman.lyx: changed sdcc version to 2.8.1
1537         * support/scripts/sdcc.nsi: added finish page; this version
1538           was used for 2.8.0 release
1539         * doc/knownbugs.html: removed; magically generated by the build
1540           process using gen_known_bugs.pl from now on
1541
1542 2008-03-23 Borut Razem <borut.razem AT siol.net>
1543
1544         * src/pic/gen.h: Q&D solution for the bug, found by Jim Paris
1545           and reverted it, since it was already fixed by Raphael ;-)
1546         * doc/knownbugs.html: updated for RC2
1547
1548 2008-03-22 Raphael Neider <rneider AT web.de>
1549
1550         * src/SDCCicode.c (getPtrType): avoid unnecessary extra assignments
1551           for PIC16 targets
1552
1553 2008-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
1554
1555         * src/mcs51/gen.c (adjustArithmeticResult): fixed bug 1839299
1556         * support/regression/tests/bug1839277.c: added related testBug1839299
1557
1558 2008-03-21 Maarten Brock <sourceforge.brock AT dse.nl>
1559
1560         * src/ds390/gen.c (opIsGptr, adjustArithmeticResult, genAddrOf, genAssign),
1561         * src/mcs51/gen.c (opIsGptr, adjustArithmeticResult, genAddrOf, genAssign):
1562           fixed bug 1839277
1563         * src/mcs51/gen.c: throughout only output hex constants
1564         * src/SDCCicode.c (getPtrType, geniCodeCast): fixed code size regression
1565         * support/regression/tests/bug1839277.c: new, added
1566
1567 2008-03-21 Philipp Klaus Krause <pkk AT spth.de>
1568
1569         * src/z80/ralloc.c (callFuncByName): Used // instead of /**/ to fix
1570           compilation warning about nested comments.
1571
1572 2008-03-20 Maarten Brock <sourceforge.brock AT dse.nl>
1573
1574         * src/SDCCsymt.c (comparePtrType): fixed bug 1921073
1575         * support/regression/tests/bug1921073.c: new, added
1576
1577 2008-03-17 Philipp Klaus Krause <pkk AT spth.de>
1578
1579         * src/z80/SDCCpeeph.c.c (callFuncByName):
1580           Commented function parameters.
1581
1582 2008-03-17 Philipp Klaus Krause <pkk AT spth.de>
1583
1584         * src/z80/ralloc.c (packRegsForAccUse2):
1585           disabled a broken accumulator packing optimization (fixed #1292721).
1586         * support/regression/tests/bug-1292721: Regression test for #1292721.
1587
1588 2008-03-16 Raphael Neider <rneider AT web.de>
1589
1590         * src/pic/gen.c (SetIrp,genNearPointerGet,genNearPointerSet):
1591           fixed code bloat regression using a variant of patch #1915618
1592
1593 2008-03-16 Borut Razem <borut.razem AT siol.net>
1594
1595         * support/scripts/sdcc.nsi: added section debugging macros, added SDCC
1596           icon, changed startup menu for release distribution, code cleaning,
1597           create url files instead links in startup menu
1598
1599 2008-03-16 Maarten Brock <sourceforge.brock AT dse.nl>
1600
1601         * src/SDCCcse.c (algebraicOpts): fixed bug 1579949
1602         * support/regression/tests/bug1579949.c: new, added
1603
1604 2008-03-14 Paul Stoffregen <paul AT pjrc.com>
1605
1606         * device/lib/printf_fast.c: fixed bug 1255403
1607
1608 2008-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
1609
1610         * doc/sdccman.lyx: enhanced paragraph about bankswitching for mcs51
1611         * src/cdbFile.c (cdbWriteBasicSymbol): fixed bug 1909409 for locals
1612
1613 2008-03-14 Borut Razem <borut.razem AT siol.net>
1614
1615         * as/doc/asmlnk.doc, as/doc/asxhtm.html: updated link-xx and aslink
1616           command line options
1617         * as/link/hc08/lkmain.c: converted tabs to spaces so that the usage
1618           is correctly displayed
1619         * as/link/z80/lkmain.c: usage line commented out
1620
1621 2008-03-13 Borut Razem <borut.razem AT siol.net>
1622
1623         * doc/sdccman.lyx: corrected to be able to convert to PDF,
1624           updated the list pf supported pic14 devices
1625
1626 2008-03-12 Maarten Brock <sourceforge.brock AT dse.nl>
1627
1628         * doc/sdccman.lyx: added paragraph about bankswitching for mcs51
1629
1630 2008-03-12 Borut Razem <borut.razem AT siol.net>
1631
1632         * as/doc/asmlnk.doc, as/doc/asxhtm.html: updated command line options,
1633           fixed documentation request #1718191
1634         * as/hc80/asmain.c, as/mcs51/asmain.c: added option -c to usage
1635         * doc/sdccman.lyx: added description of --no-std-crt0 gbz80
1636           command line option
1637
1638 2008-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
1639
1640         * src/SDCCast.c (isConformingBody): fixed bug 1505811, thanks Robert Larice
1641         * support/regression/tests/bug1505811.c: new, added
1642
1643 2008-03-09 Raphael Neider <rneider AT web.de>
1644
1645         * device/include/pic16/pic18f2620.h,
1646         * device/include/pic16/pic18f4620.h,
1647         * device/lib/pic16/libdev/pic18f2620.c,
1648         * device/lib/pic16/libdev/pic18f4525.c,
1649         * device/lib/pic16/libdev/pic18f4620.c: merged 18f2525/2620/4525/4620
1650           family to consistently use pic18f4620.[ch], fixes #1832562
1651
1652 2008-03-09 Borut Razem <borut.razem AT siol.net>
1653
1654         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
1655           changed sdcc version to 2.8.0
1656         * knownbugs.html: regenerated
1657         * support/scripts/gen_known_bugs.pl: added number of open bugs
1658
1659 2008-03-09 Raphael Neider <rneider AT web.de>
1660
1661         * src/pic16/gen.c (pic16_mov2w_volatile): NEW, read volatile operands,
1662           (genOr): read volatile operand even if the result is known,
1663           closes #1511838
1664           (genOr,genXor): removed unused legacy code,
1665           (genDummyRead): use pic16_mov2w_volatile()
1666
1667 2008-03-08 Borut Razem <borut.razem AT siol.net>
1668
1669         * src/SDCCglue.c: fixed bug #1864582: multiple definition of char
1670           cons w. --model-large
1671         * support/regression/staticinit.c: added regression test for bug
1672           #1864582
1673
1674 2008-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
1675
1676         * src/ds390/gen.c (pushSide, genPcall),
1677         * src/hc08/gen.c (pushSide, genPcall): synchronized with mcs51
1678         * src/mcs51/gen.c: cosmetic changes
1679         * support/regression/fwk/include/testfwk.h: added macro reentrant
1680         * support/regression/tests/bug1908493.c: new, added
1681
1682 2008-03-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1683
1684         * src/SDCCdebug.c:, as/link/lkaomf51.c: Fixed bug 1909409: Pdata in OMF file
1685
1686 2008-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
1687
1688         * src/mcs51/gen.c (pushSide, genPcall): fixed bug 1908493
1689         * src/SDCCmain.c (preProcess): removed -DSDCC_PARMS_IN_BANK1 because it is
1690           already set in ds390/main.c and mcs51/main.c
1691
1692 2008-03-07 Raphael Neider <rneider AT web.de>
1693
1694         * src/regression/init0.c: new test for initialized arrays of function
1695           pointers
1696         * src/regression/Makefile: made a bit more flexible, added init0.c
1697         * src/pic/glue.c (emitIvals): hacky fix for initializing from function
1698           pointers, closes #1427663
1699
1700 2008-03-05 Borut Razem <borut.razem AT siol.net>
1701
1702         * dos/sdccman.lyx: docummented predefined macros SDCC_REVISION,
1703           SDCC_PARMS_IN_BANK1, SDCC_FLOAT_REENT and SDCC_INT_LONG_REENT
1704
1705 2008-03-05 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1706
1707         * support/librarian/sdcclib.c:Added feature request 1908061:
1708           Synchronise sdcclib commands with ar.
1709
1710 2008-03-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1711
1712         * src/SDCCmain.c: added predefined macros SDCC_REVISION (RFE #1907229),
1713           and (depending on corresponding compiler option) SDCC_PARMS_IN_BANK1,
1714           SDCC_FLOAT_REENT, SDCC_INT_LONG_REENT
1715         * device/include/mcs51/compiler.h: removed umlauts, added double
1716           underscore
1717
1718 2008-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
1719
1720         * src/SDCCptropt.c (ptrPseudoSymConvert): fixed bug 1536762
1721         * support/regression/tests/bug1536762.c: new, added
1722         * src/SDCCutil.c,
1723         * src/SDCCutil.h: added getBuildDate()
1724         * src/SDCCmain.c (printVersionInfo),
1725         * src/SDCCglue.c (initialComments): use getBuildDate() instead of
1726           __DATE__
1727         * src/*/ralloc.c: removed IS_OP_RUONLY macro
1728         * src/ds390/ralloc.c (packRegisters),
1729         * src/mcs51/ralloc.c (packRegisters),
1730         * src/z80/ralloc.c (packRegisters): applied fix for bug 1618050, thanks
1731           Robert Larice
1732         * support/regression/tests/bug1618050.c: new, added
1733         * src/SDCCsymt.h: fixed typo in DECLSPEC2TXT
1734         * support/regression/fwk/include/testfwk.h,
1735         * support/regression/tests/bug1838000.c: moved _AUTOMEM and _STATMEM to
1736           testfwk.h
1737
1738 2008-03-04 Raphael Neider <rneider AT web.de>
1739
1740         * src/pic/gen.c: removed unused prototypes, prevent internal errors
1741           on accessing OP_SYM_TYPE(op)
1742         * src/pic/gen.h: removed unused prototype of genMinusDec()
1743         * src/pic/genarith.c (genMinus): cosmetic changes, rewritten to
1744           fix #1876953 (invalid subtraction code), removed unused code
1745
1746 2008-03-03 Raphael Neider <rneider AT web.de>
1747
1748         * src/pic/gen.c,
1749         * src/pic/gen.h,
1750         * src/pic/genarith.c,
1751         * src/pic/ralloc.c,
1752         * src/pic/ralloc.h: removed AOP_R0, AOP_R1, AOP_DPTR, AOP_DPTR2,
1753           AOP_ACC, and *_IDX and adjusted code, removed unused legacy code
1754
1755 2008-03-03 Raphael Neider <rneider AT web.de>
1756
1757         * src/pic/device.c (find_device): search user-specified paths first
1758           for pic14devices.txt, fixes #1900827
1759
1760 2008-03-02 Borut Razem <borut.razem AT siol.net>
1761
1762         * support/scripts/sdcc.nsi: fixed bug in IsNT, LogicLib-isation of
1763           AddToPath and RemoveFromPath
1764
1765 2008-03-01 Borut Razem <borut.razem AT siol.net>
1766
1767         * support/scripts/sdcc.nsi: reverted MULTIUSER page since it didn't
1768           work correctly, added debugging support if -DSDCC.DEBUG command line
1769           option is defined
1770
1771 2008-02-28 Borut Razem <borut.razem AT siol.net>
1772
1773         * doc/sdccman.lyx: cosmetic changes
1774
1775 2008-02-28 Maarten Brock <sourceforge.brock AT dse.nl>
1776
1777         * src/mcs51/ralloc.c (fillGaps): fixed bug 1839671
1778         * doc/sdccman.lyx: fixed unmeant removal of spaces
1779
1780 2008-02-27 Borut Razem <borut.razem AT siol.net>
1781
1782         * support/scripts/sdcc.nsi: corrected installation directory for
1783           current user installation mode
1784         * doc/README.txt: added Philipp Klaus Krause to the developers list
1785
1786 2008-02-27 Maarten Brock <sourceforge.brock AT dse.nl>
1787
1788         * src/mcs51/gen.c (genUnpackBits): don't generate ifxJump, instead
1789           return ifx condition
1790           (genNearPointerGet, genPagedPointerGet, genFarPointerGet,
1791           genCodePointerGet, genGenPointerGet): cleanup aop before generating
1792             ifxJump to fix bug 1838000
1793         * src/SDCCsymt.c (aggregateToPointer): fix problem for xstack
1794         * support/regression/tests/bug1838000.c: new, added
1795         * device/include/mcs51/cc1110.h: new, added, thanks to Pravin Angolkar
1796
1797 2008-02-26 Borut Razem <borut.razem AT siol.net>
1798
1799         * src/SDCCast.c, doc/sdccman.lyx: fixed RFE #1901171: inerger promotion
1800           of casted varargs
1801         * support/scripts/sdcc.nsi: added MULTIUSER page,
1802           NSIS upgraded to version 2.35
1803
1804 2008-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
1805
1806         * src/mcs51/ralloc.c (isSpiltOnStack): fixed bug 1565152
1807         * support/regression/tests/bug1565152.c: new, added
1808
1809 2008-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
1810
1811         * src/mcs51/gen.c (genPagedPointerSet): fixed bug 1670148
1812         * support/regression/ports/mcs51-xstack-auto/spec.mk: added expf.c
1813         * support/regression/tests/bug1670148.c: new, added
1814
1815 2008-02-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1816
1817         * device/include/mcs51/at89c51ed2.h: fixed bug 1901469.
1818
1819 2008-02-24 Borut Razem <borut.razem AT siol.net>
1820
1821         * src/SDCCast.c, src/SDCCast.h: fixed bug #1874922: explicit typecast
1822           is ineffective for unsigned char parameter
1823
1824 2008-02-24 Maarten Brock <sourceforge.brock AT dse.nl>
1825
1826         * src/SDCCast.c (expandInlineFuncs): fixed bug 1875869
1827         * src/SDCCglue.c (printIvalBitFields): fixed bug 1806631
1828         * support/regression/tests/bitopcse.c: removed hc08 exception, see testfwk.h
1829         * support/Util/MySystem.c (my_system): output errorcode when verbose
1830
1831 2008-02-22 Philipp Klaus Krause <pkk AT spth.de>
1832
1833         * src/z80/gen.c (genMult): Rewrote 8-bit multiplication by constant,
1834           implements #1898231
1835
1836 2008-02-22 Philipp Klaus Krause <pkk AT spth.de>
1837
1838         * device/lib/z80/mul.s: Rewrote __muluchar_rrx_s, to improve 8-bit mult.,
1839           implements #1896290
1840
1841 2008-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
1842
1843         * src/SDCCast.c (createIvalStruct): fixed bug 1466761
1844
1845 2008-02-21 Borut Razem <borut.razem AT siol.net>
1846
1847         * support/regression/Makefile.in,
1848           support/regression/ports/ds390/spec.mk,
1849           support/regression/ports/hc08/spec.mk,
1850           support/regression/ports/mcs51-common/spec.mk,
1851           support/regression/ports/pic14/spec.mk,
1852           support/regression/ports/pic16/spec.mk,
1853           support/regression/ports/ucz80/spec.mk,
1854           support/regression/ports/xa51/spec.mk:
1855           added CFLAGS when compiling timeout
1856
1857 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
1858
1859         * support/regression/tests/bugs-1596270-1736867.c: Regression test for
1860           #1596270, #1736867
1861
1862 2008-02-20 Maarten Brock <sourceforge.brock AT dse.nl>
1863
1864         * src/SDCClrange.c (findPrevUse): fixed bug 1888147
1865         * support/regression/tests/bug1888147.c: new, added
1866
1867 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
1868
1869         * src/z80/gen.c: fixed bugs #1596270, #1736867
1870
1871 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
1872
1873         * src/z80/gen.c: fixed bug in register pair loading when swapping register
1874           contents, mostly fixes #1596270
1875
1876 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
1877
1878         * src/z80/peeph.def,
1879         * src/z80/peeph-z80.def: moved peephole that breaks gbz80 to z80-specific
1880           peepholes, fixes #1806565
1881
1882 2008-02-20 Maarten Brock <sourceforge.brock AT dse.nl>
1883
1884         * src/SDCCpeeph.c (operandBaseName): added check for @Ri
1885         * src/mcs51/peeph.def (rule 177.c): added operandsNotRelated(%1 %3)
1886           fixes bug 1739475, thanks Robert Larice
1887           (rule 271): new, added
1888
1889 2008-02-18 Borut Razem <borut.razem AT siol.net>
1890
1891         * sim/ucsim/s51.src/Makefile.in: fixed error made in previous commit
1892
1893 2008-02-17 Maarten Brock <sourceforge.brock AT dse.nl>
1894
1895         * src/SDCCmain.c (linkEdit): emit -z when using --debug for z80
1896
1897 2008-02-17 Raphael Neider <rneider AT web.de>
1898
1899         * src/pic16/genarith.c,
1900         * src/pic16/gen.c,
1901         * src/pic16/gen.h,
1902         * src/pic16/genutils.c: removed unused legacy code,
1903           removed unused fields from struct asmop and struct _G
1904
1905 2008-02-17 Raphael Neider <rneider AT web.de>
1906
1907         * src/pic16/gen.c (AccRsh): cosmetic changes,
1908           (shiftR1Left2ResultSigned,shiftR1Left2Result,shiftL1Left2Result,
1909           genRightShiftLiteral): fixed to work with SFRs as result by
1910           assigning only once to result,
1911           removed a lot of unused/excluded code fragments
1912
1913 2008-02-17 Raphael Neider <rneider AT web.de>
1914
1915         * device/include/pic/pic16f88.h,
1916         * device/include/pic/pic16f886.h,
1917         * device/include/pic/pic16f887.h: added TRISA6 and TRISA7
1918
1919 2008-02-17 Borut Razem <borut.razem AT siol.net>
1920
1921         * src/z80/peeph.def: applied patch
1922           #1893626: Optimize tail calls on Z80, thanks to Philipp Krause
1923         * src/z80/gen.c, src/z80/peeph.def: applied patch
1924           #1893510: Improve logical left shift on Z80, thanks to Philipp Krause
1925         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
1926           sim/ucsim/s51.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
1927           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
1928           sim/ucsim/main_in.mk: renamed libutil.a to libucsimutil.a in order to
1929           enable compilation on Mac OS X 10.5 (Leopard) and XCode v3.0
1930
1931 2008-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
1932
1933         * as/link/mcs51/aslink.dsp: removed SDK define
1934         * as/link/z80/clean.mk: brought in sync with other ports
1935         * as/link/z80/lklibr.c (SdccLib, fndsym): handle the dflag here too
1936         * as/hc08/Makefile.bcc,
1937         * as/mcs51/Makefile.bcc,
1938         * as/z80/Makefile.bcc: noice.c was moved to as/asxxsrc/
1939         * src/z80/main.c (_setValues): use the now capitalized -Z,
1940           (z80_port, gbz80_port): generate debug information when asked
1941
1942 2008-02-16 Borut Razem <borut.razem AT siol.net>
1943
1944         * as/z80/asmain.c, as/z80/asm.h, as/z80/asdata.c,
1945           as/link/z80/lkmain.c, as/z80/as_gbz80.dsp, as/z80/as_z80.dsp,
1946           as/z80/Makefile.in. as/z80/Makefile.bcc:
1947           applied patch #1893393: patch for as-z80 and link-z80 to generate
1948           cdb, thanks to Armin Diehl
1949         * as/*/asnoice.c, as/hc08/as_hc08.dsp, as/hc08/Makefile.in,
1950           as/mcs51/asx8051.dsp, as/mcs51/Makefile.in:
1951           asnoice.c moved to as/asxxsrc/asnoice.c
1952         * src/z80/peeph-gbz80.def: applied patch
1953           #1880235: Z80 return peephole, thanks to Philipp Krause
1954
1955 2008-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
1956
1957         * .version,
1958         * doc/sdccman.lyx: bumped version to 2.7.5
1959         * src/SDCCsymt.c (compareType, comparePtrType): fixed bug 1281583
1960
1961 2008-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
1962
1963         * device/include/pic16/stdlib.h,
1964         * device/lib/pic16/libc/stdlib/ltoa.c,
1965         * device/lib/pic16/libc/stdio/vfprintf.c: ascii strings are char*
1966
1967 2008-02-13 Borut Razem <borut.razem AT siol.net>
1968
1969         * src/SDCCmain.c, src/SDCCglue.c: fixed --c1mode
1970         * src/pic16/glue.c, src/SDCCast.c, src/SDCCast.h, src/SDCCBBlock.c,
1971           src/SDCCcse.c, src/SDCCglue.c, src/SDCCicode.c, src/SDCCloop.c,
1972           src/SDCCopt.c,  src/SDCCval.c:
1973           fixed bug #1890273: SDCC Warning 154 shows wrong filename
1974
1975 2008-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
1976
1977         * src/SDCCsymt.c (compareType): fixed bug 1309013
1978
1979 2008-02-09 Borut Razem <borut.razem AT siol.net>
1980
1981         * src/SDCCval.c, src/SDCCval.h:
1982           code cleaning, added function constChrVal()
1983         * src/SDCCglue.c, src/pic/glue.c, src/pic16/glue.c, src/SDCCast.c, src/SDCC.y:
1984           call constChrVal() instead constVal()
1985
1986 2008-02-01 Maarten Brock <sourceforge.brock AT dse.nl>
1987
1988         * src/SDCCast.c (resolveSymbols): added reentrancy check for parameters
1989           of function pointer
1990         * src/SDCCerr.h,
1991         * src/SDCCerr.c: changed warning W_NONRENT_ARGS to error E_NONRENT_ARGS
1992         * support/regression/tests/absolute.c: added TestStruct TestVar (see also
1993           bug 1859853)
1994
1995 2008-02-01 Raphael Neider <rneider AT web.de>
1996
1997         * device/include/pic/pic16f886.h,
1998         * device/include/pic/pic16f887.h: added RA6 and RA7
1999
2000 2008-01-24 Raphael Neider <rneider AT web.de>
2001
2002         * device/include/pic/pic16f88.h: added RA6 and RA7
2003         * device/lib/pic/libdev/disabled_pic16f886.c,
2004         * device/lib/pic/libdev/disabled_pic16f887.c: renamed and enabled
2005
2006         * src/pic16/devices.inc,
2007         * device/include/pic16/pic18f2423.h,
2008         * device/include/pic16/pic18f2523.h,
2009         * device/include/pic16/pic18fregs.h,
2010         * device/lib/pic16/pics.all
2011         * device/lib/pic16/libdev/pic18f2423.c,
2012         * device/lib/pic16/libdev/pic18f2523.c: added 18f2423 and 18f2523
2013         * device/lib/pic16/libio/i2c.ignore,
2014         * device/lib/pic16/libio/usart.ignore,
2015         * device/lib/pic16/libio/adc.ignore: ignore new devices
2016
2017 2008-01-23 Maarten Brock <sourceforge.brock AT dse.nl>
2018
2019         * src/SDCCast.c (createRMW): fixed bug 1582651
2020
2021 2008-01-20 Borut Razem <borut.razem AT siol.net>
2022
2023         * src/SDCCcse.c: partially fixed enhancement request
2024           #1793872 - multiply by -1 not collapsed
2025         * support/regression/tests/arithcsi.c: added regression test
2026
2027 2008-01-19 Maarten Brock <sourceforge.brock AT dse.nl>
2028
2029         * as/mcs51/asx8051.dsp: removed define SDK
2030         * as/mcs51/i51mch.c (machine): fixed bug 1865114
2031         * device/include/asm/ds390/features.h: fixed bug with ds390 & stack-auto
2032         * as/link/lklex.c,
2033         * as/link/mcs51/lkmain.c: used LKDIRSEP, LKDIRSEPSTR and LKOBJEXT,
2034           cosmetic changes, brought more in sync, changed old K&R to ANSI
2035
2036 2008-01-13 Borut Razem <borut.razem AT siol.net>
2037
2038         * support/scripts/sdcc.nsi: added Uninstall/reinstall page, ...
2039         * src/SDCCicode.c: fixed bug #1870216 - Error 122: dividing by zero
2040
2041 2007-12-30 Borut Razem <borut.razem AT siol.net>
2042
2043         * src/pic16/gen.c: fixed implementation of bitwise operations for
2044           pic16 target
2045         * support/regression/tests/bitwise.c: added test cases
2046
2047 2007-12-29 Borut Razem <borut.razem AT siol.net>
2048
2049         * src/SDCCasm.[ch]: renamed from asm[ch], use dbuf_getline(), ...
2050         * src/src.dsp, src/Makefile.bcc, src/Makefile.in, src/common.h,
2051           src/SDCCglue.c, src/xa51/main.c: asm.[ch] renamed to SDCCasm.[ch]
2052         * support/Util/dbuf_string.[ch]: added function dbuf_getline()
2053         * src/ds390/gen.c, src/hc08/gen.c, src/mcs51/gen.c, src/pic16/gen.c,
2054           src/pic/gen.c, src/z80/gen.c, src/xa51/gen.c, src/pic16/ralloc.c,
2055           src/pic16/pcode.[ch]: added const qualifier
2056         * as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
2057           as/mcs51/Makefile.bcc, as/mcs51/Makefile.in, as/mcs51/asx8051.dsp,
2058           as/z80/Makefile.bcc, as/z80/Makefile.in, as/z80/as_gbz80.dsp,
2059           as/z80/as_z80.dsp: added dbuf.[ch] and dbuf_string[ch] to project
2060         * as/asxxsrc/aslex.c: use dbuf_getline()
2061         * as/hc08/asdata.c, as/hc08/asexpr.c, as/hc08/asm.h, as/hc08/m08adr.c,
2062           as/mcs51/asdata.c, as/mcs51/asexpr.c, as/mcs51/asm.h,
2063           as/mcs51/i51adr.c, as/z80/asdata.c, as/z80/asexpr.c, as/z80/aslist.c,
2064           as/z80/asm.h, as/z80/z80adr.c:
2065           changed type of ib and ip to const char *
2066
2067 2007-12-28 Borut Razem <borut.razem AT siol.net>
2068
2069         * as/asxxsrc/aslex.c: moved from as/mcs51/aslex.c;
2070           introduced (readlin) - long lines are turuncated
2071         * as/hc08/as_hc08.dsp, as/mcs51/asx8051.dsp, as/z80/as_gbz80.dsp,
2072           as/z80/as_z80.dsp, as/hc08/Makefile.in, as/mcs51/Makefile.in,
2073           as/z80/Makefile.in: moved aslex.c to asxxsrc
2074         * as/hc08/aslex.c, as/z80/aslex.c: deleted
2075         * as/hc08/asmain.c, as/mcs51/asmain.c:
2076           added missing initialization of a_addr field
2077         * support/regression/tests/long_asm_line.c: added regtest for long
2078           assembler line
2079
2080 2007-12-22 Borut Razem <borut.razem AT siol.net>
2081
2082         * src/SDCC.lex: fixed bug #1852894: # character hangs the compiler
2083
2084 2007-12-20 Maarten Brock <sourceforge.brock AT dse.nl>
2085
2086         * src/SDCCsymt.c (computeType): fixed bug, thanks Fan Weiguang
2087
2088 2007-12-16 Borut Razem <borut.razem AT siol.net>
2089
2090         * device/include/pic16/stdbool.h: removed, since already exists in
2091          device/include/; this also fixes bitopcse.c regression test for pic16
2092          target
2093         * support/regression/fwk/inclusw/testfwk.h: added macro ASSERT_FAILED
2094         * src/pic16/glue.c: fixed bug #1851855: generic static pointer
2095           dereference doesn't work; covered by regression test bug1399290
2096
2097 2007-12-05 Borut Razem <borut.razem AT siol.net>
2098
2099         * doc/sdccman.lyx: fixed bug #1844509 - Correction to Manual 4.6.9
2100           Adding new PIC16
2101
2102 2007-12-01 Borut Razem <borut.razem AT siol.net>
2103
2104         * sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/mem.cc:
2105           corrected handling of the highest_valid_address
2106
2107 2007-11-17 Raphael Neider <rneider AT web.de>
2108
2109         * src/pic/main.c (_asmCmd): include debug arguments (-g as $3)
2110         * src/pic/glue.c (picglue): emit .file if --debug is given
2111
2112 2007-11-17 Raphael Neider <rneider AT web.de>
2113
2114         * src/pic16/genarith.c (pic16_genPlus, pic16_genMinus): take special
2115         care when left or right operand resides in result, fixes #1830220
2116
2117 2007-11-17 Borut Razem <borut.razem AT siol.net>
2118
2119         * src/SDCCglue.c, src/pic16/glue.c: reverted fix for bug
2120           #983491 - "Merge duplicate strings function is ineffective"
2121         * support/regression/tests/bug-983491.c: regtest disabled
2122         * as/asxxsrc: created
2123           as/asxxsrc/assym.c, as/asxxsrc/strcmpi.c: moved
2124           as/hc08/assym.c, as/mcs51/assym.c, as/strcmpi.c,
2125           as/z80/assym.c, as/hc08/asstore.c, as/mcs51/asstore.c: deleted
2126           as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
2127           as/hc08/asm.h, as/link/hc08/Makefile.bcc, as/link/hc08/Makefile.in,
2128           as/link/hc08/link_hc08.dsp, as/link/mcs51/Makefile.bcc,
2129           as/link/mcs51/Makefile.in, as/link/mcs51/aslink.dsp,
2130           as/link/z80/Makefile.in, as/link/z80/linkgbz80.dsp,
2131           as/link/z80/linkz80.dsp, as/mcs51/Makefile.bcc, as/mcs51/Makefile.in,
2132           as/mcs51/asm.h, as/mcs51/asx8051.dsp, as/z80/Makefile.bcc,
2133           as/z80/Makefile.in, as/z80/as_gbz80.dsp, as/z80/as_z80.dsp,
2134           as/z80/Makefile.as_hc08, as/mcs51/Makefile.asx8051: modified
2135           created as/asxxsrc directory, assym.c and strcpi.c moved into it
2136
2137 2007-11-15 Maarten Brock <sourceforge.brock AT dse.nl>
2138
2139         * device/include/stdarg.h: added and removed some casts
2140         * src/SDCCsymt.c (compareType): Fully check types between generic and
2141           non-generic pointers, also accept ptr-ptr to void-ptr assignments
2142
2143 2007-11-13 Borut Razem <borut.razem AT siol.net>
2144
2145         * support/regression/tests/bug-1817005.c:
2146           added regtest for bug #1817005 - as-z80 chokes on long labels
2147
2148 2007-11-12 Borut Razem <borut.razem AT siol.net>
2149
2150         * as/z80/asmain.c, as/z80/asm.h, as/z80/assym.c, as/z80/asdata.c,
2151           as/z80/asout.c, as/z80/aslist.c:
2152           fixed bug #1817005 - as-z80 chokes on long labels
2153
2154 2007-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
2155
2156         * as/hc08/asmain.c,
2157         * as/z80/asmain.c: cosmetic changes
2158         * as/hc08/alloc.h,
2159         * as/mcs51/alloc.h,
2160         * as/z80/alloc.h: removed
2161         * as/hc08/assym.c,
2162         * as/mcs51/assym.c: replaced alloc.h with stdlib.h
2163         * as/link/aslink.h: added LKDIRSEP and, LKDIRSEPSTR
2164         * as/link/hc08/Makefile.in,
2165         * as/link/mcs51/Makefile.in,
2166         * as/link/z80/Makefile.in: added -DUNIX to CFLAGS
2167         * as/link/lklex.c,
2168         * as/link/mcs51/lkarea.c,
2169         * as/link/mcs51/lkmain.c: cosmetic changes
2170         * as/link/hc08/lklibr.c,
2171         * as/link/z80/lklibr.c,
2172         * as/link/mcs51/lklibr.c: used LKDIRSEP, LKDIRSEPSTR and LKOBJEXT,
2173           used cygwin_conv_to_full_posix_path,
2174           added warnings, cosmetic changes, brought more in sync
2175           changed old K&R into ANSI function declarations
2176         * as/link/z80/lklibr.c (loadAdb): added
2177         * as/link/z80/lkmain.c: removed -- option from usage text
2178
2179 2007-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
2180
2181         * src/mcs51/gen.c (outBitC): optimized for no result
2182
2183 2007-10-31 Borut Razem <borut.razem AT siol.net>
2184
2185         * src/SDCCsymt.c: fixed (hopeful properly) bug
2186           #1805702 - order of extern matters
2187         * support/regression/tests/bug-1805702.c: enabled regtest for bug
2188           #1805702
2189
2190 2007-10-29 Borut Razem <borut.razem AT siol.net>
2191
2192         * src/SDCCsymt.c: reverted bad fixed of bug #1805702
2193           - order of extern matters
2194         * support/regression/tests/bug-1805702.c: disabled regtest for bug
2195           #1805702
2196
2197 2007-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
2198
2199         * src/ds390/peeph.def: replaced 24bitModeAndPortDS390 by
2200           24bitMode, portIsDS390
2201         * src/mcs51/gen.c (genOr): optimized for RFE 1750727
2202         * src/SDCCpeeph.c (flat24bitModeAndPortDS390): removed
2203           (notVolatileVariable): also check sloc names,
2204           (callFuncByName): moved ftab[] out of function and sorted it by use
2205
2206 2007-10-28 Maarten Brock <sourceforge.brock AT dse.nl>
2207
2208         * device/include/stdarg.h: fixed bug in va_start macro for --xstack
2209         * src/hc08/gen.c (aopForRemat): aop->aopu.aop_immd.from_cast_remat not set,
2210           aop->aopu.aop_immd.aop_immd2 not filled with (generic) pointer type
2211         * src/SDCCicode.c (geniCodeCast): fixed bug 880197
2212         * support/regression/tests/bug-880197.c: new, added
2213
2214 2007-10-28 Borut Razem <borut.razem AT siol.net>
2215
2216         * support/regression/Makefile.in,
2217           support/regression/ports/mcs51-large/spec.mk,
2218           support/regression/ports/mcs51-xstack-auto/spec.mk,
2219           support/regression/ports/mcs51-stack-auto/spec.mk,
2220           support/regression/ports/mcs51-medium/spec.mk,
2221           support/regression/ports/mcs51-common/spec.mk,
2222           support/regression/ports/mcs51-common/*,
2223           support/regression/ports/mcs51-small/*:
2224           mcs51 renamed to mcs51-common, created mcs51-small
2225         * src/SDCCsymt.c: fixed bug #1805702 - order of extern matters
2226         * support/regression/tests/bug-1805702.c: added regtest for bug
2227           #1805702
2228
2229 2007-10-26 Maarten Brock <sourceforge.brock AT dse.nl>
2230
2231         * src/mcs51/peeph.def: moved rules 257.x to 253.x and re-enabled 253.b,
2232           added new rules 265 - 270
2233         * support/regression/tests/bug1721024.c:new, added
2234         * support/regression/Makefile.in: renamed test-mcs51 to test-mcs51-small,
2235           introduced new test-mcs51 to run all mcs51 tests
2236
2237 2007-10-25 Maarten Brock <sourceforge.brock AT dse.nl>
2238
2239         * support/regression/tests/bug1816470.c: new, added
2240
2241 2007-10-21 Maarten Brock <sourceforge.brock AT dse.nl>
2242
2243         * src/SDCCast.c (resultTypePropagate): do propagate for LEFT_OP, do not
2244           propagate for *,+,- with float, fixed bug 1816470
2245           (decorateType): cast to resultTypeProp instead of resultType
2246
2247 2007-10-19 Borut Razem <borut.razem AT siol.net>
2248
2249         * src/pic16/glue.c: fixed bug #983491 - "Merge duplicate strings
2250           function is ineffective" for pic16 tareget
2251         * support/scripts/listerr.c: corrected include path
2252         * device/lib/_itoa.c: fixed bug #1806402 - _itoa and _uitoa leak to
2253           adjacent memory
2254
2255 2007-10-18 Maarten Brock <sourceforge.brock AT dse.nl>
2256
2257         * support/regression/tests/using.c: new, added
2258         * support/regression/tests/vaargs.c: fixed and enabled test
2259
2260 2007-10-18 Borut Razem <borut.razem AT siol.net>
2261
2262         * src/SDCCglue.c: fixed bug #983491 - Merge duplicate strings function
2263           is ineffective
2264         * support/regression/tests/bug-983491.c: added regtest for bug #983491
2265
2266 2007-10-18 Maarten Brock <sourceforge.brock AT dse.nl>
2267
2268         * doc/sdccman.lyx: documented option --Werror
2269         * src/SDCCsymt.c (checkFunction): fixed bug 1815418 by setting
2270           RegBankUsed[] earlier
2271
2272 2007-10-14 Maarten Brock <sourceforge.brock AT dse.nl>
2273
2274         * device/include/mcs51/p89lpc938.h: new, added, thanks Kyle Guinn
2275         * src/pic/glue.c,
2276         * src/SDCCval.c,
2277         * src/SDCCast.c,
2278         * src/SDCCast.h: replaced AST_LIT_VALUE with AST_FLOAT_VALUE and
2279           AST_ULONG_VALUE
2280         * src/SDCCast.c (decorateType): improved optimization of tri-op
2281         * src/SDCCerr.c (vwerror, setWError),
2282         * src/SDCCerr.h,
2283         * src/SDCCmain.c (parseCmdLine): added option --Werror to treat all
2284           warnings as errors, thanks Stas Sergeev for PATCH 1813211
2285
2286 2007-10-13 Maarten Brock <sourceforge.brock AT dse.nl>
2287
2288         * src/mcs51/gen.c (leftRightUseAcc): use macro IS_OP_ACCUSE
2289         * src/SDCCast.c (decorateType): optimize bit=cond?1:0, RFE 1738430
2290         * support/regression/tests/bug-223113.c,
2291         * support/regression/tests/bug-426632.c,
2292         * support/regression/tests/bug-468811.c,
2293         * support/regression/tests/bug-477835.c,
2294         * support/regression/tests/bug-478094.c,
2295         * support/regression/tests/bug-499644.c,
2296         * support/regression/tests/bug-524209.c,
2297         * support/regression/tests/bug-524211.c,
2298         * support/regression/tests/packcast.c,
2299         * support/regression/tests/structidx.c: added empty tests
2300         * support/regression/tests/bug-607243.c: enabled test
2301
2302 2007-10-06 Borut Razem <borut.razem AT siol.net>
2303
2304         * .version, doc/sdccman.lyx: bumped version to 2.7.4 to indicate the full
2305            support of universal binaries on Mac OS X
2306
2307 2007-10-02 Borut Razem <borut.razem AT siol.net>
2308
2309         * src/SDCCval.h: unified double2ul macro for all platforms
2310         * src/SDCCval.c: fixed bug #1777758 - applied Maarten's patch
2311         * support/regression/tests/bitwise.c: added regtest for bug #1777758
2312
2313 2007-09-30 Borut Razem <borut.razem AT siol.net>
2314
2315         * src/SDCCval.h: fixed bug #1739860 - sdcc does not work correctly on some
2316           platforms
2317         * sdcc_vc_in.h: enabled warnings
2318         * src/hc08/gen.c: fixed MSVC warning C4146: unary minus operator applied to
2319           unsigned type, result still unsigned
2320         * src/mcs51/peep.c: fixed gcc warning: suggest parentheses around && within ||
2321
2322 2007-09-28 Raphael Neider <rneider AT web.de>
2323
2324         * src/pic/device.c (find_device): prevent buffer underflow error
2325         * src/pic/pcoderegs.c (OptimizeRegUsage): avoid dereferencing
2326           the just destroyed list entry
2327
2328 2007-09-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2329
2330         * doc/sdccman.lyx: there's a dedicated wiki page for cmake and sdcc, thanks
2331           Alexander Neundorf
2332
2333 2007-09-18 Borut Razem <borut.razem AT siol.net>
2334
2335         * src/SDCCval.c: fixed MSVC warning C4146: unary minus operator
2336          applied to unsigned type, result still unsigned
2337
2338 2007-09-17 Borut Razem <borut.razem AT siol.net>
2339
2340         * src/SDCC.y, src/SDCCast.c, src/SDCCcse.c, src/SDCCglue.c,
2341           src/SDCCicode.c, src/SDCCopt.c, src/SDCCsymt.c, src/SDCCval.c,
2342           src/SDCCval.h, src/hc08/gen.c, src/avr/gen.c, src/ds390/gen.c,
2343           src/mcs51/gen.c, src/pic/gen.c, src/pic/genarith.c, src/pic/glue.c,
2344           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/genarith.c,
2345           src/pic16/genutils.c, src/pic16/glue.c, src/pic16/main.c,
2346           src/z80/gen.c, src/z80/ralloc.c:
2347           fixed bug #1739860 - sdcc does not work correctly on some platforms
2348           (not finished)
2349           introduced and used ulFromVal(), double2ul(), used strtod() instead sscanf()
2350
2351 2007-09-17 Raphael Neider <rneider AT web.de>
2352
2353         * src/pic16/device.c: reverted to previous version
2354         * device/lib/pic16/Makefile.common.in: quieten gpasm via -Wa,-q
2355
2356 2007-09-16 Raphael Neider <rneider AT web.de>
2357
2358         * src/pic16/device.c (pic16_dump_usection): do not reserve 0 bytes,
2359           as this raises a ton of gpasm warnings, just emit a second label
2360         * src/pic16/devices.inc,
2361         * device/lib/pic16/pics.all,
2362         * device/lib/pic16/libdev/pic18f2585.c,
2363         * device/lib/pic16/libdev/pic18f2680.c,
2364         * device/lib/pic16/libdev/pic18f2682.c,
2365         * device/lib/pic16/libdev/pic18f2685.c,
2366         * device/lib/pic16/libdev/pic18f4585.c,
2367         * device/lib/pic16/libdev/pic18f4680.c,
2368         * device/lib/pic16/libdev/pic18f4682.c,
2369         * device/lib/pic16/libdev/pic18f4685.c,
2370         * device/include/pic16/pic18f2585.h,
2371         * device/include/pic16/pic18f2680.h,
2372         * device/include/pic16/pic18f2682.h,
2373         * device/include/pic16/pic18f2685.h,
2374         * device/include/pic16/pic18f4585.h,
2375         * device/include/pic16/pic18f4680.h,
2376         * device/include/pic16/pic18f4682.h,
2377         * device/include/pic16/pic18f4685.h,
2378         * device/include/pic16/pic18fregs.h: added 18f2585, 18f2680,
2379           18f2682, 18f2685, 18f4585, 18f4680, 18f4682, 18f4685,
2380           patch contributed by Anton Strobl, applied with changes
2381
2382 2007-09-16 Raphael Neider <rneider AT web.de>
2383
2384         * device/include/pic16/pic18f2431.h,
2385         * device/include/pic16/pic18f25j10.h,
2386         * device/include/pic16/pic18f4431.h,
2387         * device/include/pic16/pic18f45j10.h: adopted common include style
2388         * device/include/pic16/pic18f1320.h,
2389         * device/include/pic16/pic18f2320.h,
2390         * device/include/pic16/pic18f2525.h,
2391         * device/include/pic16/pic18f4320.h,
2392         * device/include/pic16/pic18f4525.h: NEW, just include proper .h file
2393         * device/include/pic16/pic18fregs.h: prepared for automatic include
2394           file selection by having DEVICE.h for every DEVICE
2395         * device/lib/pic16/libdev/pic18f2320.c,
2396         * device/lib/pic16/libdev/pic18f4320.c: just include proper .c file
2397
2398         * device/lib/pic16/configure.in,
2399         * device/lib/pic16/configure: use rm -rf instead of rmdir
2400         * device/lib/pic16/Makefile.in: use RMDIR to remove build directories
2401         * device/lib/pic16/libc/stdlib/free.c: avoid warning on pointer cast
2402
2403 2007-09-09 Borut Razem <borut.razem AT siol.net>
2404
2405         * src/SDCCmain.c, src/SDCCutil.c: print newline after printVersionInfo(),
2406           distingush between i386 and ppc Mac OS X versions
2407
2408 2007-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
2409
2410         * src/mcs51/gen.c (genReceive): fixed bug 1788177
2411         * support/regression/tests/bug1788177.c: new, added
2412
2413 2007-09-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2414
2415         * doc/sdccman.lyx: mentioned d52 and cmake, customizing startup code
2416         * device/include/mcs51/lint.h added keyword __naked
2417
2418 2007-09-04 Maarten Brock <sourceforge.brock AT dse.nl>
2419
2420         * src/pic16/glue.c,
2421         * src/pic/glue.c,
2422         * src/SDCCmem.h: removed maxRegBank
2423         * src/SDCCmem.c (allocVariables): removed maxRegBank and moved setting
2424           RegBankUsed[] to checkFunction() in SDCCsymt.c to fix bug 1759839
2425         * src/SDCCsymt.c (checkFunction): set RegBankUsed[] here
2426         * src/mcs51/peep.c (isCallerSaveFunc, termScanAtFunc): changed function
2427           name and behaviour to handle banked functions
2428           (scan4op): and use it to fix bug 1786213
2429
2430 2007-09-03 Raphael Neider <rneider AT web.de>
2431
2432         * device/include/pic16/pic18f248.h,
2433         * device/include/pic16/pic18f258.h,
2434         * device/include/pic16/pic18f448.h,
2435         * device/lib/pic16/libdev/pic18f248.c,
2436         * device/lib/pic16/libdev/pic18f258.c,
2437         * device/lib/pic16/libdev/pic18f448.c: fixed TRISEbits,
2438           added T0CONbits, fixes #1786891
2439
2440 2007-08-29 Maarten Brock <sourceforge.brock AT dse.nl>
2441
2442         * src/ds390/gen.c (genFarPointerSet),
2443         * src/hc08/ralloc.c (packRegisters),
2444         * src/mcs51/ralloc.c (packRegisters),
2445         * src/SDCCcse.c (cseBBlock): check if result is a symbol first to fix
2446           bug 1750318
2447         * src/SDCCicode.h: POINTER_SET can be true for literals too
2448         * support/regression/tests/bug1750318.c: new, added
2449
2450 2007-08-23 Borut Razem <borut.razem AT siol.net>
2451
2452         * debugger/mcs51/sdcdb.c: fixed compilation with older readline
2453           library versions without the completition functionality
2454
2455 2007-08-22 Raphael Neider <rneider AT web.de>
2456
2457         * device/include/pic16/pic18f1220.h,
2458         * device/lib/pic16/libdev/pic18f1220.c: applied patch #1776191
2459
2460 2007-08-12 Borut Razem <borut.razem AT siol.net>
2461
2462         * debugger/mcs51/Makefile.in: support/Util/SDCCerr.[ch] moved to src
2463
2464 2007-08-11 Borut Razem <borut.razem AT siol.net>
2465
2466         * support/Util/SDCCerr.c, support/Util/SDCCerr.h, src/src.dsp,
2467           src/Makefile.in, src/Makefile.bcc, support/scripts/listerr.c:
2468           support/Util/SDCCerr.[ch] moved to src
2469         * as/hc08/as_hc08.dsp, as/link/hc08/link_hc08.dsp,
2470           as/link/z80/linkgbz80.dsp, as/link/z80/linkz80.dsp,
2471           device/examples/ds390/tinitalk/tinitalk.dsp,
2472           device/examples/serialcomm/windows/serialcomm.dsp,
2473           support/librarian/librarian.dsp:
2474           removed linking of unused odbc32.lib and odbccp32.lib
2475         * support/scripts/winres.h:
2476           added for compilation with Visual C++ 2005 Express Edition
2477
2478 2007-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2479
2480         * device/include/mcs51/at89c51ed.h: Fixed typo in declarations of CKCON0
2481           and CKCON1.
2482
2483 2007-08-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2484
2485         * sdccconf_in.h: update the endian test so that SPARC Solaris
2486           does not throw syntax errors
2487
2488 2007-08-06 Borut Razem <borut.razem AT siol.net>
2489
2490         * doc/sdccman.lyx: removed two index entries which prevented the
2491           generation of sdcc doc archive
2492
2493 2007-08-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2494
2495         * doc/sdccman.lyx: Same changes made 2007-07-28 but using lyx 1.4.4
2496           instead of lyx 1.5.0.
2497
2498 2007-07-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2499
2500         * device/include/hc08/mc68hc908apxx.h: new header contributed by
2501           Lucas Loizaga, with minor modifications. Thanks!
2502
2503 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2504
2505         * doc/sdccman.lyx: Documented --acall-ajmp and described new features
2506           in sdcclib.
2507
2508 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2509
2510         * src/SDCCglobl.h, src/SDCCpeeph.c, src/SDCCglue.c, src/mcs51/main.c,
2511           src/mcs51/peeph.def: Added option --acall-ajmp: replaces lcall/ljmp
2512           with acall/ajmp.
2513
2514 2007-07-22 Borut Razem <borut.razem AT siol.net>
2515
2516         * configure.in, configure: re-introduced .version
2517         * sdcc.spec, doc/INSTALL.txt: they are used only for releases;
2518           the version reverted to 2.7.0
2519
2520 2007-07-18 Maarten Brock <sourceforge.brock AT dse.nl>
2521
2522         * configure.in,
2523         * doc/sdccman.lyx: bumped version to 2.7.3
2524         * device/include/mcs51/compiler.h: fixed elif->else
2525         * src/mcs51/gen.c (genAnd, genOr): handle accuse for pure bit operands
2526         * src/mcs51/ralloc.c (createStackSpil): fixed SCLS bug with sloc for sbit,
2527           (operandUsesAcc, packRegsForAccUse): added parameter allowBitspace to
2528            enable accuse for bit operands
2529         * src/SDCCmain.c (printVersionInfo),
2530         * src/SDCCutil.c (getBuildEnvironment): factored out creation of build
2531           environment descriptor
2532         * src/SDCCutil.h: added getBuildEnvironment
2533         * src/SDCCglue.c (initialComments): use getBuildEnvironment
2534         * support/regression/tests/bug1464657.c: enabled test test_Peephole251
2535         * support/regression/tests/bug-408972.c: enabled test leftShiftLong
2536         * support/regression/tests/bug1348008.c,
2537         * support/regression/tests/bug1496419.c,
2538         * support/regression/tests/bug1503067.c,
2539         * support/regression/tests/preproc.c: added empty tests
2540
2541 2007-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
2542
2543         * support/regression/tests/bug1678803.c: new, added
2544
2545 2007-07-14 Maarten Brock <sourceforge.brock AT dse.nl>
2546
2547         * as/link/aslink.h,
2548         * as/link/hc08/lkihx.c,
2549         * as/link/hc08/lkrloc.c,
2550         * as/link/mcs51/lkihx.c,
2551         * as/link/mcs51/lkrloc.c: renamed ihxEntendedLinearAddress to
2552           ihxExtendedLinearAddress
2553         * as/link/mcs51/lkrloc.c (relr),
2554         * as/mcs51/asout.c (outr11, outr19): handle absolute destination for
2555           acall/ajmp, see bug 830513
2556
2557 2007-07-13 Maarten Brock <sourceforge.brock AT dse.nl>
2558
2559         * src/SDCCcse.c (replaceAllSymBySym): renamed siaddr to isaddr,
2560           (cseBBlock): remember aggr2ptr has been used
2561         * src/SDCCicode.c (operandSize): added function to handle aggr2ptr,
2562           (geniCodeAssign): fixed bug 868103
2563         * src/SDCCicode.h: made operand.aggr2ptr 2 bits wide,
2564           added operandSize prototype
2565         * src/mcs51/gen.c (aopOp): use operandSize to fix bug 868103,
2566           (genDataPointerSet): use max of size of right and result,
2567           (gencjne): added parameter useCarry for optimization,
2568           (genCmpEq): use carry if appropriate,
2569           (genXor): check if operand already in carry
2570         * support/regression/tests/bug-868103.c: enabled test
2571
2572 2007-07-12 Raphael Neider <rneider AT web.de>
2573
2574         * src/pic16/gen.c (genNearPointerSet): fixed handling of literals
2575
2576 2007-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
2577
2578         * src/SDCCsymt.c (compareType): fixed bugs 1738367 and 1745717 with patch
2579           from Robert Larice, thanks
2580         * support/regression/tests/bitopcse.c,
2581         * support/regression/tests/bitvars.c,
2582         * support/regression/tests/bug-908454.c: use <stdbool.h> for the bit types
2583         * support/regression/tests/bug-927659.c: enabled test for z80
2584         * support/regression/tests/bug1738367.c: added extra tests by Frieder
2585         * support/regression/tests/bug1745717.c: new, added
2586         * support/regression/tests/literalop.c,
2587         * support/regression/tests/nullstring.c: removed storage definitions that
2588           are now in testfwk.h
2589
2590 2007-07-10 Maarten Brock <sourceforge.brock AT dse.nl>
2591
2592         * device/include/stdbool.h: do not define __bool_true_false_are_defined
2593           and bool for targets that do not fully support it.
2594         * support/regression/tests/bug1546986.c,
2595         * support/regression/tests/bug1723128.c,
2596         * support/regression/tests/bug1734654.c,
2597         * support/regression/tests/bug1738367.c,
2598         * support/regression/tests/constantRange.c: only use bool if allowed
2599
2600 2007-07-09 Maarten Brock <sourceforge.brock AT dse.nl>
2601
2602         * src/mcs51/peep.c (isCallerSaveFunc): fixed bug 1749275, thanks Robert
2603           Larice, also handle function pointers
2604         * support/regression/tests/bug1749275.c: new, added
2605
2606 2007-07-03 Borut Razem <borut.razem AT siol.net>
2607
2608         * src/mcs51/gen.c, src/avr/gen.c, src/pic/gen.c, src/z80/gen.c,
2609           src/pic16/gen.c, src/hc08/gen.c, src/ds390/gen.c: fixed RFE
2610           #1746528: SDCC should ignore ':' in inline assembler comments
2611         * device/include/typeof.h: fixed bug #1747142: typeof.h needs fixing
2612
2613 2007-07-02 Maarten Brock <sourceforge.brock AT dse.nl>
2614
2615         * device/include/mcs51/C8051F360.h: fixed bug #1746410, thanks Chris Jones
2616         * device/lib/mcs51/crtxclear.asm: do not set __XPAGE unconditionally
2617
2618 2007-06-29 Borut Razem <borut.razem AT siol.net>
2619
2620         * src/SDCCmain.c: fixed bug
2621           #1744746: SDCC #4867: broken option --xram-size
2622
2623 2007-06-28 Borut Razem <borut.razem AT siol.net>
2624
2625         * sim/ucsim/configure.in, sim/ucsim/configure, sim/ucsim/ddconfig_in.h:
2626           find out the endianess of host machine for ucsim
2627
2628 2007-06-27 Borut Razem <borut.razem AT siol.net>
2629
2630         * support/regression/generate-cases.py: corrected the file name
2631           in warning
2632         * configure.in, configure, sdccconf_in.h: find out the endianess of
2633           host machine
2634         * src/SDCC.y: fixed bug #1744146: Crash when compiling array of
2635           negative size
2636
2637 2007-06-27 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
2638
2639         * device/include/mcs51/p89c66x.h: NXP header file, OK to change licence
2640
2641 2007-06-26 Borut Razem <borut.razem AT siol.net>
2642
2643         * support/regression/generate-cases.py: display warning if function
2644           list is empty; implemented more flexible rule for detection of
2645           testing functions, allowing return type 'void' in the same line as
2646           the function name in the function definition
2647         * support/regression/tests/bug-1654060.c: corrected test
2648         * support/librarian/sdcclib.c: fixed warning:
2649           format '%s' expects type 'char *', but argument 2 has type 'int'
2650
2651 2007-06-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2652
2653         * support/librarian/sdcclib.c: Added feature Requests [1510635]
2654           Multiple infiles for sdcclib.
2655
2656 2007-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2657
2658         * src/SDCCast.c (inlineFindMaxBlockno, createFunction): fixed
2659           bug 1731741
2660
2661 2007-06-18 Borut Razem <borut.razem AT siol.net>
2662
2663         * src/SDCCmain.c: removed option -C since SDCC compiler doesn't know
2664           how to handle comments, so they have to be removed by the
2665           preprocessor; fixed bug #1738926:SDCC #4852: broken option -V
2666         * src/SDCCmain.c, src/SDCCargs.h, src/ds390/main.c, src/mcs15/main.c,
2667           src/pic16/main.c, src/pic/main.c, src/z80/main.c,
2668           support/Util/SDCCerr.c, support/Util/SDCCerr.h:
2669           table driven option hadling
2670
2671 2007-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
2672
2673         * src/SDCCast.c (decorateType),
2674         * src/SDCCicode.c (geniCodeConditional): moved optimization for '?' from
2675           iCode to ast level to fix bug 1738367
2676         * support/regression/tests/bug1738367.c: new, added
2677
2678 2007-06-15 Raphael Neider <rneider AT web.de>
2679
2680         * src/pic16/devices.inc,
2681         * device/lib/pic16/pics.all,
2682         * device/include/pic16/pic18fregs.h,
2683         * device/include/pic16/pic18f[24][45]20.h,
2684         * device/lib/pic16/libdev/pic18f[24][45]20.c: added support for
2685           18f2420, 18f2520, and 18f4420 devices, updated 18f4520 definitions
2686         * device/lib/pic16/Makefile.in: faster cleanup
2687
2688 2007-06-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2689
2690         * src/mcs51/peeph.def: added 177.i (mov from a is slightly cheaper)
2691
2692 2007-06-13 Raphael Neider <rneider AT web.de>
2693
2694         * src/SDCCmain.c: prevent NULL pointer dereference, avoid warning
2695
2696 2007-06-12 Raphael Neider <rneider AT web.de>
2697
2698         * support/scripts/inc2h.pl: conditionally emit defines for SFR bits,
2699           suppress bit defines if NO_BIT_DEFINES is #define'd
2700         * device/include/pic/pic*.h: recreated all headers to include
2701           conditional bit defines
2702         * device/include/pic/pic16f886.h,
2703         * device/include/pic/pic16f887.h: fixed based on newer .inc file
2704         * device/include/pic/recreate.sh: script to recreate the complete
2705           device library files based on the currently supported devices
2706
2707 2007-06-12 Borut Razem <borut.razem AT siol.net>
2708
2709         * src/pic16/main.c, src/SDCCargs.h, SDCCmain.c,
2710           support/regression/Makefile.in, support/scripts/build.mak,
2711           support/scripts/Makefile.snapshot:
2712           use new svn URL scheme
2713         * doc/sdccman.lyx: SDCC Wiki moved to
2714           http://sdcc.wiki.sourceforge.net/
2715
2716 2007-06-10 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2717
2718         * src/mcs51/peeph.def: disabled rule 132.d to fix #1734654
2719         * support/regression/tests/bug1734654.c: added
2720
2721 2007-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
2722
2723         * src/SDCCast.c (decorateType): optimized '?' for equal operands
2724         * src/SDCCicode.c (geniCodeConditional): optimization for bit result
2725           with literal operands
2726
2727 2007-06-10 Borut Razem <borut.razem AT siol.net>
2728
2729         * as/link/z80/lklibr.c: fixed mingw build warning
2730           lklibr.c:575: warning: implicit declaration of function 'tolower'
2731         * src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c,
2732           src/z80/main.c: move target specific options from src/SDCCmain.c
2733           to src/<target>/main.c
2734
2735 2007-06-09 Borut Razem <borut.razem AT siol.net>
2736
2737         * src/z80/gen.c: fixed bug #1294691: nested ifs make compiler crash;
2738           removed unused swap_sense; removed outBitCLong, replaced with outBitC
2739         * support/regression/tests/bug-1294691.c: added
2740
2741 2007-06-09 Maarten Brock <sourceforge.brock AT dse.nl>
2742
2743         * src/SDCCmem.c (allocDefault): removed check sym->level==0 for SPEC_ABSA,
2744           can also be static, fixes bug 1733438
2745         * src/SDCCsymt.c (checkSClass): static local vars in reentrant funcs can
2746           have absolute address too
2747           (computeType): added optimization for 'cond ? true : false'
2748         * support/regression/tests/absolute.c: added test for static absolute var
2749
2750 2007-06-08 Raphael Neider <rneider AT web.de>
2751
2752         * src/regression/Makefile: suppress parallel builds, allow easy
2753           switching between pic14/pic16 ports
2754         * src/regression/picregs.h: added pic14/16 header file switch
2755         * src/regression/{compare7.c,compare8.c,compare9.c,compare10.c,
2756           inline.c,nestfor.c,string1.c}: include "picregs.h"
2757
2758 2007-06-07 Borut Razem <borut.razem AT siol.net>
2759
2760         * sim/ucsim/*.[ch], sim/ucsim/configure, sim/ucsim/configure.in:
2761           permanent solution to suppress GCC 4.2.0 c++ warning:
2762           deprecated conversion from string constant to `char *'
2763           use 'const char *' where ever required
2764         * support/regression/generate-cases.py: implemented more flexible rule
2765           for detection of testing functions, allowing white-spaces surrounding
2766           the function name and the 'void' parameter.
2767         * support/regression/tests/constantRange.c,
2768           support/regression/tests/scott-compare3.c: fixed failing regression
2769           tests, uncovered by implementation of more flexible rule for detection
2770           of testing functions
2771
2772 2007-06-04 Maarten Brock <sourceforge.brock AT dse.nl>
2773
2774         * src/SDCCast.c(decorateType): better optimize '!!' and comparisons
2775
2776 2007-06-04 Borut Razem <borut.razem AT siol.net>
2777
2778         * configure.in, configure, config_vc.awk: sdcc version number is now
2779           stored in configure.in; removed .version
2780         * configure.in, configure, sdcc.spec, doc/sdccman.lyx, doc/sdccman.lyx,
2781           doc/INSTALL.txt: version bumped to 2.7.2
2782         * sim/ucsim/configure.in, sim/ucsim/configure:
2783           use "read" to read from .version
2784
2785 2007-06-03 Borut Razem <borut.razem AT siol.net>
2786
2787         * */Makefile.in: removed annoying warning:
2788           Makefile:xx: Makefile.dep: No such file or directory
2789
2790 2007-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
2791
2792         * src/mcs51/gen.c (outBitC, genRet): used IS_OP_RUONLY,
2793           (genNot, genXor): used toCarry, also fixes a bug for c = bit ^ val
2794         * src/mcs51/ralloc.c: removed IS_OP_RUONLY + some cosmetic changes
2795         * src/SDCCast.c (resultTypePropagate): propagate for '!',
2796           (decorateType): also optimize comparisons with RESULT_TYPE_BIT,
2797           bugfix: only use newBoolLink for bit result type
2798         * src/SDCCicode.c (geniCodeLogic): added param tree,
2799           bugfix: use newBoolLink if tree is bit type, bug appears when ruonly,
2800           (geniCodeLogicAndOr): use IS_BIT,
2801           (geniCodeJumpTable, geniCodeSwitch): added NULL param to geniCodeLogic,
2802           (ast2iCode): added tree param to geniCodeLogic for comparisons
2803         * src/SDCCsymt.h: added IS_OP_RUONLY and IS_OP_ACCUSE
2804         * support/regression/tests/bug1723128.c: added test NotZero
2805
2806 2007-06-01 Borut Razem <borut.razem AT siol.net>
2807
2808         * SDCPP synchronized with GCC CPP release version 4.2.0,
2809           currently the latest release:
2810         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
2811           support/cpp2/c-ppoutput.c, support/cpp2/cppdefault.c,
2812           support/cpp2/cppdefault.h, support/cpp2/except.h,
2813           support/cpp2/libcpp/directives.c, support/cpp2/libcpp/expr.c,
2814           support/cpp2/libcpp/files.c, support/cpp2/libcpp/include/cpplib.h,
2815           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
2816           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/macro.c,
2817           support/cpp2/libcpp/mkdeps.c, support/cpp2/libiberty/getpwd.c,
2818           support/cpp2/libiberty/hashtab.c, support/cpp2/optc-gen.awk,
2819           support/cpp2/opth-gen.awk, support/cpp2/opts.c,
2820           support/cpp2/opts.h, support/cpp2/output.h,
2821           support/cpp2/prefix.c, support/cpp2/sdcpp-opts.c,
2822           support/cpp2/sdcpp.dsp, support/cpp2/sdcpp.opt,
2823           support/cpp2/system.h, support/cpp2/version.c,
2824           support/cpp2/Makefile.in: modified
2825         * support/cpp2/opts-common.c: added
2826         * device/lib/pic16/libdev/pic18f[24][45]j10.c: fixed svn atrributes
2827         * device/lib/pic16/libdev/pic18f[24]5j10.c:
2828           search for included source file in local directory
2829         * sim/ucsim/configure, sim/ucsim/configure.in:
2830           temporary solution to suppress GCC 4.2.0 c++ warning:
2831           deprecated conversion from string constant to `char *'
2832
2833 2007-06-01 Raphael Neider <rneider AT web.de>
2834
2835         * device/lib/pic/libdev/pic12f683.c,
2836         * device/include/pic/pic12f683.h: added GPIO bits
2837
2838 2007-06-01 Raphael Neider <rneider AT web.de>
2839
2840         * doc/sdccman.lyx: added --disable-pic16-port, fixed some `--' and
2841           quotation marks, clarified role of PIC14 vs. PIC16 ports
2842         * src/pic16/devices.inc,
2843         * device/include/pic16/pic18fregs.h,
2844         * device/include/pic16/pic18f[24][45]j10.h,
2845         * device/lib/pic16/pics.all,
2846         * device/lib/pic16/libdev/pic18f[24][45]j10.c: added support for
2847           18f24j10, 18f25j10, 18f44j10, and 18f45j10
2848         * device/lib/pic16/libio/{i2c,adc,usart}.ignore: do not build IO libs
2849           for new devices as they are not yet supported by gputils
2850
2851 2007-05-31 Borut Razem <borut.razem AT siol.net>
2852
2853         * Small Device C Compiler 2.7.0 released
2854         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
2855           changed sdcc version to 2.7.1
2856         * support/scripts/sdcc.nsi: added How to create WIN32 release
2857           setup.exe package
2858
2859 2007-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
2860
2861         * doc/sdccman.lyx: documented initialization and allocation of absolute
2862           variables, bit parameter passing, the need for function pointers to be
2863           reentrant and alpha quality support of inline and retrict
2864
2865 2007-05-26 Borut Razem <borut.razem AT siol.net>
2866
2867         * support/regression/tests/bug1057979.c, support/regression/tests/malloc.c,
2868           support/regression/fwk/include/testfwk.h: fixed compilation on Mac OS x
2869         * docs/knownbugs.html: updated
2870
2871 2007-05-25 Maarten Brock <sourceforge.brock AT dse.nl>
2872
2873         * doc/sdccman.lyx: inserted footnotes about inline assembler labels,
2874           thanks Jan Waclawek
2875         * src/mcs51/gen.c (aopPut): fixed part of bug 1723128 when result is
2876           AOP_CRY and ruonly
2877           (gencjneshort): optimized when left is AOP_DIR
2878         * src/SDCCglue.c (printIvalStruct): fixed other part of bug 1723128 for
2879           initializing unions in a struct/array
2880         * support/regression/fwk/include/testfwk.h: added defines for data, near
2881           and far for host and z80
2882         * support/regression/tests/bug1723128.c: new, added
2883
2884 2007-05-22 Borut Razem <borut.razem AT siol.net>
2885
2886         * doc/knownbugs.html: updated
2887
2888 2007-05-21 Raphael Neider <rneider AT web.de>
2889
2890         * src/pic16/glue.c (pic16_initPointer): avoid assertion, emit better
2891           error message instead
2892         * src/pic/pcoderegs.c (pCodeOptime2pCodes): keep register state intact
2893
2894 2007-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
2895
2896         * src/mcs51/peeph.def (257.b): disabled to fix bug 1721024
2897
2898 2007-05-21 Raphael Neider <rneider AT web.de>
2899
2900         * src/pic/pcoderegs.c (pCodeOptime2pCodes): fixed bogus optimization,
2901           closes #1722392
2902         * src/regression/gpsim_assert.h,
2903         * src/regression/Makefile,
2904         * src/regression/pcodeopt.c: regression test for the above fix
2905
2906 2007-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
2907
2908         * src/SDCCpeeph.c (labelIsUncondJump): ignore identical labels for
2909           jumps to self, fixed bug 1717281
2910
2911 2007-05-10 Borut Razem <borut.razem AT siol.net>
2912
2913         * support/scripts/gen_known_bugs.pl: cosmetic fix
2914         * doc/knownbugs.html: generated by gen_known_bugs.pl
2915
2916 2007-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2917
2918         * src/SDCCast.c (createFunction): also generate non-inlined version of
2919           function for functions declared as "static inline"
2920         * src/SDCCast.c (fixupInline, inlineAddDecl): reset symbol state so
2921           function can be inlined after non-inlined version generated.
2922
2923 2007-05-10 Borut Razem <borut.razem AT siol.net>
2924
2925         * support/scripts/gen_known_bugs.pl: added script
2926           which generates knownbugs.html
2927
2928 2007-05-09 Maarten Brock <sourceforge.brock AT dse.nl>
2929
2930         * doc/knownbugs.html: updated for release 2.7.0
2931
2932 2007-05-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2933
2934         * device/include/mcs51/uPSD33xx.h: Added patch by Jan Waclawek.
2935
2936 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
2937
2938         * src/ds390/gen.c (emitcode): don't change properties of previous lines,
2939           (throughout): updated generating comments
2940         * src/mcs51/gen.c (emitcode): don't change properties of previous lines,
2941           (throughout): updated generating comments
2942         * src/SDCCpeeph.c (peepHole): continue searching at the first replaced
2943           rule instead of at the second, or it might skip lines when removing the
2944           complete match
2945         * support/regression/tests/bug1714204.c: changed test to foo
2946
2947 2007-05-08 Borut Razem <borut.razem AT siol.net>
2948
2949         * doc/sdccman.lyx: changed sdcc version to 2.7.0,
2950           thanks to SDCC Distributed Compile Farm members,
2951           added Z80 and GBZ80 command line options
2952         * .version, doc/INSTALL.txt, sdcc.spec: changed sdcc version to 2.7.0
2953
2954 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
2955
2956         * device/lib/mcs51/crtxinit.asm: added disabled version for dual dptr
2957         * device/include/mcs51/uPSD33xx.h: added sfr DPS as alias for DPTC
2958         * support/regression/tests/longlit.c: modified to be tested at all and
2959           to pass the actual test
2960
2961 2007-05-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2962
2963         * device/include/mcs51/uPSD33xx.h: Added.
2964
2965 2007-05-07 Maarten Brock <sourceforge.brock AT dse.nl>
2966
2967         * device/lib/_gptrput.c,
2968         * device/lib/_gptrget.c: removed old code,
2969          (_gptrgetWord),
2970         * src/ds390/gen.c (genGenPointerGet): fixed bug 1714204
2971         * support/regression/tests/bug1714204.c: new, added
2972
2973 2007-05-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2974
2975         * support/regression/tests/regtrack.c: test was never executed
2976           because of the regression test being picky about white spaces.
2977         * device/lib/mcs51/crtclear.asm: added comment
2978
2979 2007-05-06 Raphael Neider <rneider AT web.de>
2980
2981         * device/lib/pic/Makefile.rules,
2982         * device/lib/pic16/Makefile.rules: make sure *.ignore file exists,
2983           made "&> /dev/null" redirection sh-safe ("> /dev/null 2>&1")
2984
2985 2007-05-06 Raphael Neider <rneider AT web.de>
2986
2987         * src/pic16/device.h,
2988         * src/pic16/main.h,
2989         * src/pic16/main.c (pic16_optionsTable,_pic16_parseOptions,
2990           _pic16_setDefaultOptions): removed/reordered command-line args
2991         * doc/sdccman.lyx: updated PIC14 and PIC16 documentation (supported
2992           devices, regrouped command line args, environment variables),
2993           clarified sone points, added sections on how to add devices to the
2994           PIC14/PIC16 ports
2995
2996 2007-05-06 Maarten Brock <sourceforge.brock AT dse.nl>
2997
2998         * src/z80/peeph.def: fixed bug in rule 2
2999
3000 2007-05-05 Maarten Brock <sourceforge.brock AT dse.nl>
3001
3002         * src/port.h: added TARGET_MCS51_LIKE
3003         * src/SDCCpeeph.c (labelIsUncondJump): new, added, other targets could
3004           take advantage of it too
3005         * src/z80/gen.c (genIpush): push b, d or h directly instead of using a,
3006           (shiftR2Left2Result): Optimized: don't check shifting by 0
3007         * src/z80/peeph-z80.def,
3008         * src/z80/peeph.def: whole set of new rules by Philipp Krause with some
3009           modifications, see patch 1700823
3010         * src/mcs51/peep.c (): fixed bug 1712928
3011         * support/regression/tests/bug1712928.c: new, added
3012
3013 2007-05-05 Borut Razem <borut.razem AT siol.net>
3014
3015         * device/lib/pic16/Makefile.common.in,
3016           device/lib/pic/Makefile.common.in, sim/ucsim/cmd.src/Makefile.in:
3017           removed bash dependencies
3018
3019 2007-05-01 Borut Razem <borut.razem AT siol.net>
3020
3021         * src/SDCCicode.c:
3022           fixed bug #1710507: --i-code-in-asm makes compile fail
3023           all iCode comments are now one liners
3024         * src/mcs51/gen.c: fixed memory leak
3025
3026 2007-05-01 Raphael Neider <rneider AT web.de>
3027
3028         * device/lib/pic/libdev/*.c
3029         * device/include/pic/*.h: regenerated all device libs from updated
3030           .inc files
3031         * support/scripts/inc2h.pl: documented usage, now uses strict to
3032           catch more bugs
3033
3034 2007-04-30 Borut Razem <borut.razem AT siol.net>
3035
3036         * doc/sdccman.lyx:
3037           fixed bug #1669175: Problem with space in output paths
3038           documented how to use paths with spaces for Windows users
3039
3040 2007-04-29 Borut Razem <borut.razem AT siol.net>
3041
3042         * Fixed svn:eol-style and svn:keywords properties
3043         * src/SDCCval.c: fixed bug
3044           #1592871: Segfault with "large" const arrays of characters
3045           replaced recursion with iteration
3046         * Removed svn:executable property from non-executable files
3047
3048 2007-04-29 Maarten Brock <sourceforge.brock AT dse.nl>
3049
3050         * src/mcs51/gen.c (genRet): fixed bug 1707003
3051
3052 2007-04-27 Raphael Neider <rneider AT web.de>
3053
3054         * src/pic16/pcode.c (pBlockRemoveUnusedLabels,pic16_pBlockAddInval,
3055           createReachingDefinitions,assignValnums,pic16_destructDF,
3056           pic16_createDF,pic16_vcg_dumpedges,pic16_vcg_dump_default):
3057           prevent NULL pointer dereferences
3058         * device/lib/pic/libdev/pic16f886.c,
3059         * device/lib/pic/libdev/pic16f887.c: svn mv'ed to disabled_* to
3060           prevent building them, gputils do not really support them yet
3061
3062 2007-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3063
3064         * device/lib/_ltoa.c: 36 bytes less __data mem. This really
3065           helps printf_small. 32 bytes more __idata mem.
3066
3067 2007-04-27 Raphael Neider <rneider AT web.de>
3068
3069         * src/pic/pcode.c (addpCode2pBlock,LinkFlow,pBlockRemoveUnusedLabels):
3070           return early when pb or pb->pcHead is NULL (patch #1708427)
3071         * src/regression/empty.c,
3072         * src/regression/Makefile: added test with empty functions
3073         * support/Util/SDCCerr.c: fixed typo in E_INIT_STRUCT message
3074
3075 2007-04-27 Borut Razem <borut.razem AT siol.net>
3076
3077         * src/SDCCast.c: fixed feature request
3078           #1547512: Redundant strings linked when using sizeof("abc")
3079
3080 2007-04-23 Borut Razem <borut.razem AT siol.net>
3081
3082         * doc/sdccman.lyx, src/SDCCmain.c:
3083           peep-hole comments are generated only if --fverbose-asm option is
3084           specified and --no-peep-comments is not, as proposed by Frieder.
3085         * support/regression/Makefile.in: compile regression tests with
3086           --fverbose-asm option so one can "grep" whether a new (or an old)
3087           peephole is (still) applied; requested by Frieder.
3088
3089 2007-04-23 Kevin Buettner <kevin AT buettner.to>
3090
3091         * device/include/pic/pic16f886.h,
3092         * device/include/pic/pic16f887.h,
3093         * device/lib/pic/libdev/pic16f886.c,
3094         * device/lib/pic/libdev/pic16f887.c,
3095         * device/include/pic/pic14devices.txt,
3096         * device/lib/pic/libdev/devices.txt: Add 16f886 and 16f887.
3097
3098 2007-04-23 Kevin Buettner <kevin AT buettner.to>
3099
3100         * device/lib/pic/libsdcc/idata.c: PAGESEL _main before going there,
3101           fixes #1704666
3102
3103 2007-04-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3104
3105         * device/lib/_memset.c: assembler version for mcs51
3106
3107 2007-04-22 Borut Razem <borut.razem AT siol.net>
3108
3109         * support/scripts/listerr.c: program to create the list of errors and
3110           warnings list from - added
3111         * doc/sdccman.lyx: removed the note
3112           "For list of warnings and corresponding codes, see err_warn.txt"
3113         * src/SDCCsymt.c: fixed bug #1699804:
3114           Bug with some uses of sizeof(static local array) (MCS51)
3115         * support/regression/tests/bug-1699804.c: added
3116
3117 2007-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
3118
3119         * as/mcs51/asmain.c (search_path_append, search_path_fopen): new, added,
3120           (main): added option -i,
3121           (asmbl, case S_INCL): use search_path_fopen,
3122           mostly from patch 1579668 by Peter Miller, thanks
3123         * src/z80/main.c: fixed typo --callee-saves-bc
3124         * device/include/mcs51/compiler.h: added sfrword for Tasking
3125
3126 2007-04-20 Borut Razem <borut.razem AT siol.net>
3127
3128         * src/z80/main.c: replaced reserved keyword asm with asmblr
3129
3130 2007-04-19 Borut Razem <borut.razem AT siol.net>
3131
3132         * src/port.h: use const pointers to strings
3133         * src/SDCCargs.h: declared getStringArg() and getIntArg()
3134         * src/pic16/main.c: include SDCCargs.h
3135         * src/SDCCglobl.h: code_seg and const_seg are not pointers to
3136           const char, since the strings are dynamically allocated
3137         * src/SDCCmain.c: options.code_seg and options.const_seg are
3138           dynamically allocated; check port specific command line options
3139           before the general ones
3140         * src/z80/main.c: fixed bug #1631895: codeseg/constseg #pragma fail
3141
3142 2007-04-18 Maarten Brock <sourceforge.brock AT dse.nl>
3143
3144         * device/include/ds400rom.h,
3145         * device/lib/ds390/lcd390.c,
3146         * device/lib/ds390/memcpyx.c,
3147         * device/lib/ds390/rtc390.c,
3148         * device/lib/ds400/ds400rom.c,
3149         * device/lib/ds400/memcpyx.c,
3150         * device/lib/hc08/_ret.c: more replacements of keywords with their
3151           double underscore equivalents
3152         * device/lib/ds390/Makefile.in,
3153         * device/lib/ds400/Makefile.in,
3154         * device/lib/gbz80/Makefile.in,
3155         * device/lib/hc08/Makefile.in,
3156         * device/lib/mcs51/Makefile.in,
3157         * device/lib/z80/Makefile.in: added --std-c89 to CFLAGS
3158
3159 2007-04-17 Borut Razem <borut.razem AT siol.net>
3160
3161         * doc/sdccman.lyx, src/SDCCmain.c, src/SDCCglobal.h, src/ds390/gen.c,
3162           src/hc08/gen.c, src/mcs51/gen.c, src/mcs51/rtrack.c:
3163           fixed #1493816: option --no-gen-comments: --no-gen-comments renamed
3164           to --fverbose-asm, to be gcc'ish
3165
3166 2007-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
3167
3168         * src/mcs51/gen.c (aopOp): set size to 1 for ruonly, fixes bug 1699455
3169
3170 2007-04-17 Borut Razem <borut.razem AT siol.net>
3171
3172         * doc/sdccman.lyx: fixed #1701874: Mac OSX references in SDCC manual
3173         * device/lib/ds400/tinibios.c, device/lib/hc08/_divuint.c,
3174           device/lib/hc08/_divulong.c: replaced _asm and _endasm keywords
3175           with their double underscore equivalent
3176
3177 2007-04-14 Borut Razem <borut.razem AT siol.net>
3178
3179         * doc/sdccman.lyx: some additional "freeware" replaced with "free open
3180           source"
3181
3182 2007-04-13 Borut Razem <borut.razem AT siol.net>
3183
3184         * doc/sdccman.lyx: -pedantic-parse-number is not in conformance with
3185           C99 standard
3186         * device/examples/serialcomm/windows/serial.[ch],
3187           device/examples/serialcomm/windows/test_serialcomm.cpp:
3188           updated by Bela Torok
3189         * device/examples/serialcomm/windows/serialcomm.dsw,
3190           device/examples/serialcomm/windows/serialcomm.dsp: added
3191
3192 2007-04-13 Jan Waclawek <wek AT efton.sk>
3193
3194         * doc/sdccman.lyx: additions and changes at various places
3195           (submitted as #1697136).
3196           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
3197
3198 2007-04-10 Borut Razem <borut.razem AT siol.net>
3199
3200         * doc/cdbfileformat.lyx, doc/sdccman.lyx, doc/test_suite_spec.lyx:
3201           LyX file format changed to 245
3202         * doc/sdccman.lyx, doc/README.txt, sdc/SDCC.lex, src/SDCCglue.c:
3203           "FreeWare" replaced with "free open source"
3204
3205 2007-04-10 Maarten Brock <sourceforge.brock AT dse.nl>
3206
3207         * device/include/mcs51/C8051F120.h: added some defines for bits in RSTSRC
3208
3209 2007-04-08 Maarten Brock <sourceforge.brock AT dse.nl>
3210
3211         * device/include/pic16/pic18fregs.h,
3212         * device/lib/_bp.c,
3213         * device/lib/_decdptr.c,
3214         * device/lib/_divsint.c,
3215         * device/lib/_divslong.c,
3216         * device/lib/_divuint.c,
3217         * device/lib/_divulong.c,
3218         * device/lib/_fs2schar.c,
3219         * device/lib/_fs2sint.c,
3220         * device/lib/_fs2slong.c,
3221         * device/lib/_fs2uchar.c,
3222         * device/lib/_fs2uint.c,
3223         * device/lib/_fs2ulong.c,
3224         * device/lib/_fsadd.c,
3225         * device/lib/_fscmp.c,
3226         * device/lib/_fsdiv.c,
3227         * device/lib/_fseq.c,
3228         * device/lib/_fsget1arg.c,
3229         * device/lib/_fsget2args.c,
3230         * device/lib/_fsgt.c,
3231         * device/lib/_fslt.c,
3232         * device/lib/_fsmul.c,
3233         * device/lib/_fsneq.c,
3234         * device/lib/_fsnormalize.c,
3235         * device/lib/_fsreturnval.c,
3236         * device/lib/_fsrshift.c,
3237         * device/lib/_fssub.c,
3238         * device/lib/_fsswapargs.c,
3239         * device/lib/_gptrget.c,
3240         * device/lib/_gptrgetc.c,
3241         * device/lib/_gptrput.c,
3242         * device/lib/_logexpf.c,
3243         * device/lib/_modsint.c,
3244         * device/lib/_modslong.c,
3245         * device/lib/_moduint.c,
3246         * device/lib/_modulong.c,
3247         * device/lib/_mulint.c,
3248         * device/lib/_mullong.c,
3249         * device/lib/_schar2fs.c,
3250         * device/lib/_ser.c,
3251         * device/lib/_setjmp.c,
3252         * device/lib/_sint2fs.c,
3253         * device/lib/_slong2fs.c,
3254         * device/lib/_spx.c,
3255         * device/lib/_uchar2fs.c,
3256         * device/lib/_uint2fs.c,
3257         * device/lib/_ulong2fs.c,
3258         * device/lib/asincosf.c,
3259         * device/lib/atanf.c,
3260         * device/lib/calloc.c,
3261         * device/lib/ds390/tinibios.c,
3262         * device/lib/ds400/tinibios.c,
3263         * device/lib/expf.c,
3264         * device/lib/free.c,
3265         * device/lib/hc08/_mulint.c,
3266         * device/lib/logf.c,
3267         * device/lib/malloc.c,
3268         * device/lib/printf_fast.c,
3269         * device/lib/printf_tiny.c,
3270         * device/lib/printfl.c,
3271         * device/lib/realloc.c,
3272         * device/lib/ser_ir.c,
3273         * device/lib/serial.c,
3274         * support/regression/tests/libmullong.c: replaced all special keywords
3275           with their double underscore equivalent
3276         * support/regression/ports/mcs51-xstack-auto/spec.mk,
3277         * device/lib/Makefile.in: compile libs with --std-c99 instead of
3278           --std-sdcc99
3279         * src/mcs51/gen.c (outBitC): don't store if result is return-use-only,
3280           (genRet): if the bit-symbol is ruonly it already is in the carry
3281         * src/mcs51/ralloc.c (regTypeNum): make regType REG_CND for ruonly bit
3282         * src/SDCCast.c (createFunction): applied patch 887171 by Stas Sergeev
3283         * src/SDCCicode.c (ast2iCode): '!', GETHBIT, GETABIT: only set operand
3284           type UCHAR if dest is not bit
3285
3286 2007-04-03 Maarten Brock <sourceforge.brock AT dse.nl>
3287
3288         * device/include/math.h,
3289         * device/lib/cotf.c,
3290         * device/lib/expf.c,
3291         * device/lib/sincoshf.c: changed XMAX to C99 HUGE_VALF
3292
3293 2007-04-01 Borut Razem <borut.razem AT siol.net>
3294
3295         * src/SDCC.lex, src/SDCCmain.c, support/cpp2/sdcpp.c:
3296           fixed bug #1692042: input buffer overflow...scanner uses REJECT
3297         * support/cpp2/sdcpp.c: fixed recursion bug - internal_error() called
3298           gcc_unreachable() called internal_error()...
3299
3300 2007-03-30 Raphael Neider <rneider AT web.de>
3301
3302         * src/pic/ralloc.c (isData): suppress garbage debug output
3303
3304 2007-03-28 Borut Razem <borut.razem AT siol.net>
3305
3306         * doc/sdccman.lyx:
3307           "Nightly Snapshots" replaced with "Snapshot Builds", since the SDCC
3308           is developed, built and used worldwide, and the word "night" doesn't
3309           make any sense.
3310
3311 2007-03-28 Maarten Brock <sourceforge.brock AT dse.nl>
3312
3313         * device/include/mcs51/C8051F360.h: new, added
3314         * device/include/mcs51/C8051F520.h: fixed buggy sbit addresses SPI0CN
3315
3316 2007-03-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3317
3318         * src/SDCC.y (declaration_specifiers, function_specifier),
3319         * support/Util/SDCCerr.c,
3320         * support/Util/SDCCerr.h,
3321         * src/SDCCsymt.h,
3322         * src/SDCCsymt.c (mergeSpec, checkFunction): Parse and validate the
3323           inline keyword
3324         * src/SDCCmem.c (deallocParms),
3325         * src/SDCCast.c: support for function inlining, not quite complete
3326         * src/SDCCsymt.c (printTypeChain, printTypeChainRaw): display
3327           'restrict' qualifier
3328
3329 2007-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
3330
3331         * src/mcs51/gen.c (saveRegisters, unsaveRegisters): free some bitVects,
3332           (saveRBank, unsaveRBank): don't save bits,
3333           (genFunction, genEndFunction): save bits exactly once, fix bug 1535242
3334         * support/regression/tests/bug1535242.c: new, added
3335         * device/include/assert.h: applied patch 1686533 to fix bug 1686528,
3336           thanks Alexey Shamrin <shamrin AT gmail.com>,
3337           made assert.h header ANSI compliant (added a check for NDEBUG macro,
3338           removed header guard)
3339         * .version,
3340         * sdcc.spec: bumped version to 2.6.5
3341         * src/SDCCmain.c(parseCmdLine): fixed bug 1677144
3342
3343 2007-03-22 Borut Razem <borut.razem AT siol.net>
3344
3345         * debugger/mcs51/cmd.c, debugger/mcs51/sdcdb.c:
3346           fixed bug #1653671: sdcdb integration into ddd is broken
3347
3348 2007-03-22 Raphael Neider <rneider AT web.de>
3349
3350         * src/pic/gen.c (popGetExternal): augmented to also create references
3351           to external variables (not only labels),
3352           (genCall): comment on plan to reduce PAGESEL overhead,
3353           (genFunction, genEndFunction): also save/restore FSR around interrupt
3354           handling code, removed lots of unused code
3355           (genDivOneByte): release acquired temp register
3356         * src/pic/glue.c (pic14createInterruptVect): adapt to new signature
3357           of popGetExternal
3358         * device/lib/pic/libsdcc/shadowregs.c: NEW, provide storage location
3359           for registers that need to be saved during interrupts (FSR, STATUS,
3360           PCLATH; W needs special handling), currently only FSR is used
3361
3362 2007-03-22 Raphael Neider <rneider AT web.de>
3363
3364         * device/include/pic/pic14devices.txt: 16f688 has only one config word
3365
3366 2007-03-19 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3367
3368         * /as/link/mcs51/aslink.dsp: Object extension for mcs51 is 'rel' not 'o'.
3369
3370 2007-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
3371
3372         * src/mcs51/peeph.def (263.x): fixed bug for volatile variables
3373
3374 2007-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
3375
3376         * as/link/aslink.h: added LKOBJEXT
3377         * as/link/hc08/link_hc08.dsp,
3378         * as/link/hc08/Makefile.bcc,
3379         * as/link/hc08/Makefile.in,
3380         * as/link/mcs51/aslink.dsp,
3381         * as/link/mcs51/Makefile.bcc,
3382         * as/link/mcs51/Makefile.in: moved lkamof51.c and lkdata.c
3383         * as/link/hc08/lkaomf51.c,      as/link/mcs51/lkaomf51.c,
3384         * as/link/lkaomf51.c: merged and moved
3385         * as/link/hc08/lkdata.c,        as/link/mcs51/lkdata.c,
3386         * as/link/z80/lkdata.c,
3387         * as/link/lkdata.c: merged and moved
3388         * as/link/hc08/lkmain.c,
3389         * as/link/mcs51/lkmain.c: cosmetic changes
3390         * as/link/z80/lkeval.c,         as/link/lkeval.c: merged
3391         * as/link/lklex.c: use LKOBJEXT
3392         * as/link/z80/lklist.c,         as/link/lklist.c: merged,
3393           ANSI-fied functions, removed bubble-sorts
3394         * as/link/z80/lksym.c           as/link/lksym.c: merged,
3395           ANSI-fied functions
3396         * as/link/z80/linkgbz80.dsp,
3397         * as/link/z80/linkz80.dsp,
3398         * as/link/z80/Makefile.in: added lkaomf51.c and lknoice.c,
3399           moved lkdata.c, lkeval.c, lkhead.c, lklex.x, lklist.c, lksym.c
3400         * as/link/z80/lkhead.c,
3401         * as/link/z80/lklex.c: deleted
3402         * as/link/z80/lklibr.c: moved LKOBJEXT to aslink.h
3403         * as/link/z80/lkmain.c: added copyfile()
3404
3405 2007-03-13 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3406
3407         * device/include/mcs51/P89LPC925.h: Added missing P1_6 and P1_7.
3408
3409 2007-03-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3410
3411         * device/lib/_strlen.c: assembler version for mcs51
3412
3413 2007-03-13 Raphael Neider <rneider AT web.de>
3414
3415         * device/include/pic16/pic18f2221.h,
3416         * device/include/pic16/pic18f2321.h,
3417         * device/include/pic16/pic18f2331.h,
3418         * device/include/pic16/pic18f4221.h,
3419         * device/include/pic16/pic18f4321.h,
3420         * device/include/pic16/pic18f4331.h: fixed config byte location names
3421         * support/scripts/inc2h-pic16.pl: removed debug output, emit
3422           consistently named config byte locations
3423
3424 2007-03-13 Borut Razem <borut.razem AT siol.net>
3425
3426         * src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
3427           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/s51.src/Makefile.in,
3428           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
3429           as/link/z80/Makefile.in, as/z80/Makefile.in:
3430           introduced LDFLAGS
3431
3432 2007-03-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3433
3434         * device/lib/printfl.c: 13 bytes less __data mem (12 more __idata)
3435         * device/lib/printf_large.c: pointer was converted to generic
3436         pointer for mcs51 models other than model-small (Maarten noticed)
3437
3438 2007-03-10 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3439
3440         * device/include/mcs51/ADuC84x.h: Added.
3441
3442 2007-03-10 Borut Razem <borut.razem AT siol.net>
3443
3444         * src/SDCC.lex, src/SDCCutil.[ch], src/SDCCval:
3445           fixed RFE #1624219: double backslashes in filenames;
3446           functions hexEscape(), octalEscape() and copyStr() moved from
3447           SDCCval.c to SDCCutil.c and made them glovbally available
3448
3449 2007-03-09 Borut Razem <borut.razem AT siol.net>
3450
3451         * src/SDCC.lex, src/SDCCast.c. src/SDCCglobl.c, src/SDCCsymt.c,
3452           src/SDCCval.c: fixed bugs #1676768: Wrong line number reported and
3453           1673361: Missaligned comments in output files
3454
3455 2007-03-09 Raphael Neider <rneider AT web.de>
3456
3457         * device/include/pic/pic14devices.txt: fixed confsiz of 16f91[3467]
3458
3459 2007-03-09 Raphael Neider <rneider AT web.de>
3460
3461         * src/pic/gen.c,
3462         * src/pic/glue.c,
3463         * src/pic/ralloc.c: suppress undesired debug output
3464         * src/SDCCmain.c (linkEdit): initialize c to quieten compiler
3465
3466 2007-03-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3467
3468         * device/lib/printf_large.c: 6 bytes less __data mem (6 more __idata)
3469
3470 2007-03-07 Borut Razem <borut.razem AT siol.net>
3471
3472         * device/lib/pic16/libdev/pic18f[24][34]31.c:
3473           search include files in the current directory
3474
3475 2007-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
3476
3477         * src/SDCCglue.c (emitMaps, glue),
3478         * src/SDCCmem.c (initMem, allocDefault): added x_abs for initialized
3479           absolute xdata
3480         * support/regression/tests/absolute.c: added xdata test
3481
3482 2007-03-03 Maarten Brock <sourceforge.brock AT dse.nl>
3483
3484         * src/SDCCmain.c (parseCmdLine): only set options.xstack_loc for mcs51,
3485           added condition to macro, fixes bug 1666080
3486
3487 2007-03-02 Raphael Neider <rneider AT web.de>
3488
3489         * src/pic/gen.c (genGenPointerSet): removed bogus assertion
3490
3491 2007-02-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3492
3493         * device/lib/mcs51/crtxclear.asm: pdata segment of 256 byte would not
3494         be cleared. Unconditionally set __XPAGE
3495         * src/hc08/gen.c: --no-gen-comments (RFE #1493816) for hc08
3496
3497 2007-02-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3498
3499         * src/SDCCglobl.h,
3500         * src/SDCCmain.c,
3501         * src/mcs51/gen.c,
3502         * src/mcs51/rtrack.c,
3503         * src/ds390/gen.c,
3504         * doc/sdccman.lyx: added --no-gen-comments
3505         * src/mcs51/peeph.def: added 192.b, disabled 185
3506
3507 2007-02-25 Raphael Neider <rneider AT web.de>
3508
3509         * src/pic16/gen.c (genCast): fixed typo
3510         * device/lib/pic16/Makefile.subdir: only install existing files
3511         * device/lib/pic16/libdev/Makefile.in: build serially, avoid races
3512
3513 2007-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
3514
3515         * device/lib/mcs51/crtcall.asm: new, added for indirect calls
3516         * device/lib/mcs51/crtclear.asm,
3517         * device/lib/mcs51/crtxclear.asm: renumbered labels
3518         * device/lib/mcs51/Makefile.in: added crtcall.asm
3519         * doc/sdccman.lyx: documented mcs51 crt* library startup code
3520         * src/mcs51/gen.c (movc): removed,
3521           (aopGet, genPlusBits): clear a after loading the carry (possibly from
3522             acc.x or psw.x),
3523           (toCarry, genSend, genRet): added function toCarry,
3524           (genPcall): use "lcall @a+dptr" for functions w/o parameters,
3525           (assignBit, genAssign, genCast): added function assignBit
3526         * src/mcs51/Makefile.bcc: added rtrack.c
3527         * src/mcs51/ralloc.h: made valueKnown a bitfield
3528         * src/mcs51/rtrack.c (getReg, rtrackUpdate): added getReg,
3529           fixed "jbc acc" and "cpl acc" bug, enhanced "cjne", "jnz" and "djnz",
3530           disabled InvalidateAllRx for lcall __gptrput, added "xch a,rn"
3531         * src/pic/pcode.c (FixRegisterBanking): fixed warning used uninitialized
3532         * src/z80/gen.c: added AOP_IS_PAIRPTR,
3533           (_pop): only pop valid pairs, see gencjneshort,
3534           (gencjneshort): return pair that still needs to be popped, restructured,
3535           (gencjne, genCmpEq): call _pop
3536
3537 2007-02-23 Raphael Neider <rneider AT web.de>
3538
3539         * device/include/pic/pic14devices.txt: 16f684 has only one config word
3540
3541 2007-02-22 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3542
3543         * device/include/mcs51/P89LPC925.h: Added.
3544
3545 2007-02-18 Raphael Neider <rneider AT web.de>
3546
3547         * src/pic/glue.c (emitInitVal): fixed #1659894 (SIGSEGV on arrays)
3548
3549 2007-02-17 Borut Razem <borut.razem AT siol.net>
3550
3551         * support/cpp2/directives.c, support/cpp2/version.c:
3552           synchronized with GCC CPP 4.1.2
3553
3554 2007-02-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3555
3556         * src/mcs51/rtrack.h,
3557         * src/mcs51/rtrack.c: added register tracking for the mcs51 port,
3558           by checking the strings passed by emitcode() to the assembler.
3559           Feel free to change. This in part addresses RFE #482179.
3560           Set environment variable SDCC_RTRACK to enable.
3561         * src/mcs51/gen.c: inserted hooks
3562         * src/mcs51/ralloc.h: added two members to struct regs
3563         * support/regression/tests/regtrack.c: added
3564
3565 2007-02-14 Borut Razem <borut.razem AT siol.net>
3566
3567         * src/SDCC.y: fixed bug #1291133: duplicate members across enum(s)
3568         * Makefile.in: applied patch from Makefile related part of
3569           #1469393: Compiler does not initialize static data
3570
3571 2007-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
3572
3573         * src/SDCCicode.c (geniCodeAssign): return (itemp) right instead of left
3574           for better fix of bug 1273984, compiles pic16 rand.c
3575
3576 2007-02-12 Borut Razem <borut.razem AT siol.net>
3577
3578         * src/pic16/main.c: fixed pic16 standard library directory bug
3579
3580 2007-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
3581
3582         * src/hc08/gen.c (genSwap): fix swap regression test
3583
3584 2007-02-10 Borut Razem <borut.razem AT siol.net>
3585
3586         * src/SDCCsymt.c: fixed bug #1159134: invalid duplicate declarations
3587           with same scope
3588         * support/regression/tests/bug-1654060.c: added regression test for
3589           #1654060
3590
3591 2007-02-09 Bernhard Held <bernhard AT bernhardheld.de>
3592
3593         * src/mcs51/gen.c (genRet): fixed RFE 1652561: added code for bit to
3594         bit moves in return statement
3595
3596 2007-02-09 Borut Razem <borut.razem AT siol.net>
3597
3598         * src/SDCC.y: fixed bug #1654060 typedef within function causes
3599           syntax error
3600
3601 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
3602
3603         * src/mcs51/gen.c (aopPut): use direct name for pushing registers
3604         * src/SDCCmain.c (parseCmdLine): dbuf_s path must be initialised
3605
3606 2007-02-07 Raphael Neider <rneider AT web.de>
3607
3608         * src/pic16/devices.inc,
3609         * device/include/pic16/pic18fregs.h,
3610         * device/include/pic16/pic18f[24][34]31.h,
3611         * device/lib/pic16/libdev/pic18f[24][34]31.c,
3612         * device/lib/pic16/pics.all: added 18f[24][34]31 family
3613         * device/lib/pic16/libio/i2c.ignore: do not build i2c
3614
3615 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
3616
3617         * device/lib/printf_large.c (_print_format): fixed compare/assign bug, how
3618           can this have lived here for so many years?
3619         * src/SDCCicode.c (ast2iCode): return left instead of right for assignment,
3620           fixes bug 1273984, see also patch 1645121, thanks Gnther Jehle
3621         * support/regression/tests/bug1273984.c: new, added, thanks Gnther Jehle
3622
3623 2007-02-06 Bernhard Held <bernhard AT bernhardheld.de>
3624
3625         * src/SDCCBlock.c (addiCodeToeBBlock): fixed bug 1652207: GOTO icodes
3626         appended by loop induction must be at the very end of the eBBlock
3627
3628 2007-02-05 Kevin Vigor
3629
3630         * src/ds390/gen.c, src/ds390/main.c: Address bug 1469393.
3631
3632 2007-02-05 Borut Razem <borut.razem AT siol.net>
3633
3634         * support/regression/fwk/lib/timeout.c: native WIN32 port,
3635           implemented #1651830 Reg. tests: rewrite timeout.c to use WIN32 API
3636
3637 2007-02-03 Borut Razem <borut.razem AT siol.net>
3638
3639         * src/SDCC.y, src/SDCCmain.c, src/SDCCglobl.h, doc/sdccman.lyx:
3640           applied patch #1646602 option to set default signedness of char to
3641           unsigned, added -funsigned-char command line option,
3642           thanks to Gunther Jehle
3643         * device/lib/Makefile.in: added the -f option to rm so it doesn't
3644           prompt for file deletion a few hundred times (especially the
3645           subversion files, which have ro permissions so it asks for
3646           confirmation), thanks to Simon McAuliffe;
3647           added {} + option to find in order to remove multiple files from a
3648           single rm commad
3649
3650 2007-02-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3651
3652         * device/include/mcs51/SST89x5xRDx.h: Added.
3653
3654 2007-02-02 Raphael Neider <rneider AT web.de>
3655
3656         * src/pic/glue.c (emitSymbolSet): check sym->etype before use
3657         * src/regression/Makefile: use --no-pcode-opt, ignore failing tests
3658
3659 2007-02-01 Raphael Neider <rneider AT web.de>
3660
3661         * src/pic/glue.c (picglue,emitSymbolSet,showAllMemmaps): emit the
3662           config words again
3663
3664 2007-01-31 Borut Razem <borut.razem AT siol.net>
3665
3666         * support/Util/dbuf_string.h: added ATTRIBUTE_PRINTF to dbuf_printf()
3667           if compiled with GCC. Thanks to Raphael Neider
3668
3669 2007-01-31 Raphael Neider <rneider AT web.de>
3670
3671         * src/pic/pcode.c (isValidIdChar,bankCompare): fuzzy matching of
3672             operand names, handles name and (name + n) for all n,
3673           (sameBank): restructured, also check bank allocation policy,
3674         * src/pic/glue.c (emitPseudoStack): fixed printf arguments,
3675           (pic14_operandsAllocatedInSameBank): check whether to operands
3676             will be allocated into the same bank (i.e., section) to reduce
3677             BANKSEL overhead, queried from pcode.c:sameBank,
3678           (pic14printLocals): reintroduced clustering registers into a single
3679             section: all compiler generated symbols will now reside in one
3680             bank (per file), reducing BANKSEL overhead and code size,
3681           (showAllMemmaps): use local dbuf where possible
3682
3683 2007-01-29 Raphael Neider <rneider AT web.de>
3684
3685         * src/pic/gen.c (popGetExternal): simplified, mark symbol as used,
3686           (call_libraryfunc): retrieve/create symbol and mark as used,
3687           (genFunction): mark defined functions as non-extern and add again
3688            to code memmap for later output
3689         * src/pic/glue.c (emitPseudoStack): put into own subroutine,
3690           (pic14printLocals): reworked for new symbol emission,
3691           (emitIfNew,pic14_constructAbsMap,emitIvalLabel,emitIvals,emitInitVal,
3692           showAllMemmaps): reworked symbol output using dbufs, added handling
3693             of string literals (still incomplete),
3694           (picglue): removed symbol emission, moved into showAllMemmaps,
3695           (emitSymbolSet): new workhorse for symbol output,
3696           (pic14emitMaps,pic14printPublics,pic14printExterns): commented out
3697
3698 2007-01-29 Borut Razem <borut.razem AT siol.net>
3699
3700         * src/SDCCmain.c, src/SDCCutil.c: dbuf_splitFile: file extension
3701           component contains the extension separator.
3702
3703 2007-01-28 Borut Razem <borut.razem AT siol.net>
3704
3705         * sim/ucsim/cmd.src/cmdutil.cc: NUL device is detected as CG_FILE type
3706           on WIN32
3707         * src/SDCCdwarf2.c, src/SDCCglobl.h, src/SDCCmain.c, src/SDCCutil.c,
3708           src/SDCCutil.h, src/avr/gen.c, src/ds390/gen.c, src/hc08/gen.c,
3709           src/mcs51/gen.c, src/pic/device.c, src/pic/gen.c, src/pic/pcode.c,
3710           src/pic/pcodepeep.c, src/pic/ralloc.c, src/pic16/device.h,
3711           src/pic16/gen.c, src/pic16/main.c, src/pic16/pcode.c,
3712           src/pic16/pcodepeep.c, src/pic16/ralloc.c, src/xa51/gen.c,
3713           src/z80/gen.c, support/Util/MySystem.c:
3714           accept slash and backslash as directory separator on WIN32 and
3715           Cygwin ports
3716
3717 2007-01-28 Raphael Neider <rneider AT web.de>
3718
3719         * src/pic16/devices.inc,
3720         * device/include/pic16/pic18f[24][23]21.h,
3721         * device/include/pic16/pic18fregs.h,
3722         * device/lib/pic16/libdev/pic18f[24][23]21.c,
3723         * device/lib/pic16/pics.all: added support for the 18f[24][23]21 family
3724         * device/lib/pic16/libio/adc.ignore,
3725         * device/lib/pic16/libio/i2c.ignore,
3726         * device/lib/pic16/libio/usart.ignore: do not build I/O lib for new
3727           family, as gputils do not yet support the devices
3728         * device/lib/pic16/Makefile.subdir: ignore errors on install
3729         * support/scripts/inc2h-pic16.pl: script to generate pic16 device
3730           headers and libraries from gputils .inc files
3731
3732 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
3733
3734         * doc/sdccman.lyx: add printf_fast_f precision limitation note
3735
3736 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
3737
3738         * doc/sdccman.lyx: add printf benchmarks
3739
3740 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
3741
3742         * device/lib/printf_fast.c: fix %c, char promoted to int
3743         * device/lib/printf_tiny.c: fix %c, char promoted to int
3744
3745 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
3746
3747         * device/lib/printf_fast.c: fix float overflow check, bug #1525093
3748
3749 2007-01-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3750
3751         * support/regression/tests/swap.c: 64 bit hosts failed
3752         * doc/sdccman.lyx: added preliminary mcs51 printf feature matrix
3753
3754 2007-01-25 Raphael Neider <rneider AT web.de>
3755
3756         * src/pic/pcode.c (sameBank,FixRegisterBanking): optimize banksels
3757           based on absolute register address, patch by Alex Blond
3758
3759 2007-01-22 Raphael Neider <rneider AT web.de>
3760
3761         * src/pic/glue.c (pic14emitRegularMap): mark initialized symbols as
3762           emitted, do not emit them again...
3763
3764 2007-01-22 Raphael Neider <rneider AT web.de>
3765
3766         * src/regression/bank1.c, src/regression/compare6.c,
3767           src/regression/add.c: cosmetic changes
3768         * src/pic/pcode.h: moved GPTRTAG_* here from gen.c
3769         * src/pic/gen.c: fixed global zero and one,
3770           (aopForSym): removed unued code,
3771           (aopGet): assert aop is defined, check and use `index' of
3772             pCodeImmd operands (fixes #1630908),
3773         * src/pic/pcode.c (get_op): added output of generic pointer tag,
3774           (register_reassign): prevent accidental register unification,
3775           (ReuseReg): cosmetic changes (also above)
3776         * src/pic/glue.c (pic14_constructAbsMap,pic14emitRegularMap,
3777           pic14emitStaticSeg): do not emit initialized data,
3778           (printIval*): replaced with working versions,
3779           (pic14createInterruptVect,picglue): use idata for initialized data,
3780             now init data should work in all modules (not only main()),
3781         * device/lib/pic/libsdcc/idata.c: NEW, handle initialized data
3782
3783 2007-01-21 Borut Razem <borut.razem AT siol.net>
3784
3785         * sim/ucsim/configure.in: introduced macro DD_COPT_NO_IGNORE,
3786           use -fPIC or -fpic if they are supported and not ignored
3787         * src/SDCCval.c: fixed bug introduced by me in rev. #4577
3788         * support/cpp2/libcpp/lex.c: fixed gcc 4.1.1 warnings
3789
3790 2007-01-20 Borut Razem <borut.razem AT siol.net>
3791
3792         * src/SDCC.lex, src/SDCCmain.c, sdc/SDCCglobl.h, doc/sdccman.lyx:
3793           implemented RFE #1470316: allow "$" in variable names
3794
3795 2007-01-20 Raphael Neider <rneider AT web.de>
3796
3797         * device/include/pic/pic14regs.h: reverted accidental wipe of the file
3798
3799 2007-01-20 Raphael Neider <rneider AT web.de>
3800
3801         * device/lib/pic/libdev/devices.txt: device list for mkall.sh
3802         * device/lib/pic/libdev/mkall.sh: script to rebuild all device libs
3803         * device/lib/pic/libdev/pic14ports.txt: device PORT specifications
3804         * support/scripts/inc2h.pl: fixed major .inc parsing bugs,
3805           applied patch from Robert Tate (#1629249) to add PORTs and TRISs
3806         * device/lib/pic/libdev/pic*.c,
3807         * device/include/pic/pic*.h: regenerated with enhanced inc2h.pl
3808         * device/lib/pic/libdev/Makefile.in: show progress
3809
3810 2007-01-19 Bernhard Held <bernhard AT bernhardheld.de>
3811
3812         * doc/sdccman.lyx: updated "configure options" for autoconf 2.6
3813         * support/scripts/sdcc_cygwin_mingw32,
3814         * support/scripts/sdcc_mingw32,
3815         * support/scripts/build.mak: replaced --datadir by --datarootdir for
3816         conformance with autoconf 2.6
3817
3818 2007-01-19 Raphael Neider <rneider AT web.de>
3819
3820         * src/pic/device.c (register_map): fixed list construction
3821         * src/pic/gen.c (genDivOneByte,genModOneByte): accept result > 1 byte,
3822           (genMod): removed case for genModbits,
3823           (genModbits): removed as now unused/unimplemented
3824         * src/pic/glue.c (picglue): prevent name clash with sources 'init.c'
3825
3826 2007-01-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3827
3828         * support/regression/tests/swap.c: added in response to #1638622
3829         * doc/sdccman.lyx: synced version, minor changes
3830
3831 2007-01-18 Borut Razem <borut.razem AT siol.net>
3832
3833         * SDCClabel.c: fixed bug #1638651: wrong linenumber presented in warning,
3834           thanks to Gunther Jehle
3835         * src/asm.c: don't die if the file drfined in #line couldn't be opened
3836         * src/SDCC.lex, src/SDCCglobal.h, src/SDCCicode.c, src/SDCCsymt.c,
3837           src/SDCCval.c: removed redundant definitions of currFname and mylineno;
3838           use filename in lineno instead.
3839         * SDCCast.c: removed MSVC warning C4018: '==' : signed/unsigned mismatch,
3840           print the file name in ast_print()
3841
3842 2007-01-18 Borut Razem <borut.razem AT siol.net>
3843
3844         * support/Util/dbuf_string.c: removed (PTR) cast since it is not
3845           defined in MSVC
3846         * src/SDCC.lex: stringLiteral() returns const char pointer,
3847           EOF detection in stringLiteral(), fixed asmbuf memory leak,
3848           fixed column counting
3849         * src/SDCCval.[ch]: constVal(), value *strVal() and charVal()
3850           accept const char pointer as parameter
3851         * src/SDCCdwarf2.c: corrected buffer size
3852
3853 2007-01-17 Borut Razem <borut.razem AT siol.net>
3854
3855         * support/Util/dbuf_string.c: fixed for amd64
3856
3857 2007-01-15 Borut Razem <borut.razem AT siol.net>
3858
3859         * src/pic16/ralloc.c, src/pic/ralloc.c, src/SDCC.y:
3860           removed terminal symbol ELIPSIS, since it was never generated by the
3861           lexer and it was wrongly used in parameter_identifier_list rule
3862
3863 2007-01-15 Raphael Neider <rneider AT web.de>
3864
3865         * doc/sdccman.lyx: updated PIC14/16 command line args, updated PIC14
3866             code page and data banking description
3867         * src/pic/genarith.c,
3868         * src/pic/gen.h: removed bit arithmetic functions,
3869             updated exit(1) to exit(EXIT_FAILURE)
3870         * device/lib/pic16/libsdcc/stack/stack.S: default to 256 byte stack
3871         * device/include/pic16/pic18f2455.h,
3872         * device/lib/pic16/libdev/pic18f2455.c: added PORTD, LATD, LATE,
3873             TRISD and TRISE, fixed/added some bit names
3874         * device/lib/pic16/libdev/pic18f{2550,4550,4455}.c,
3875         * device/include/pic16/pic18f{2550,4550,4455}.h: simply include
3876             updated pic18f2455.{c,h} instead of duplicating them
3877
3878 2007-01-14 Borut Razem <borut.razem AT siol.net>
3879
3880         * as/mcs51/asnoice.c, as/hc08/asnoice.c: fixed bug #1447412:
3881           Cannot debug files that contain spaces in the path name
3882           by converting spaces in asm file name to underscores
3883
3884 2007-01-13 Borut Razem <borut.razem AT siol.net>
3885
3886         * doc/sdccman.lyx: fixed format errors
3887
3888 2007-01-10 Borut Razem <borut.razem AT siol.net>
3889
3890         * src/SDCC.lex, src/SDCCmain.c: fixed bug #1631895:
3891           codeseg/constseg #pragma fail
3892         * suppoprt/cpp2/Makefile.bcc: reenable Borland C compilation
3893         * suppoprt/cpp2/configure.in, suppoprt/cpp2/libcpp/lex.c,
3894           suppoprt/cpp2/Makefile.in, suppoprt/cpp2/sdcpp-opts,
3895           suppoprt/cpp2/sdcpp.[ch]: house cleaning
3896
3897 2007-01-09 Borut Razem <borut.razem AT siol.net>
3898
3899         * get rid of diagnistic.[ch], pretty-print.[ch],
3900           c-pretty-print.[ch], ... used just for error, warning, ...
3901           message formatting
3902         * suppoprt/cpp2/pretty-print.[ch], suppoprt/cpp2/diagnostic.[ch],
3903           suppoprt/cpp2/diagnostic.def, suppoprt/cpp2/input.h,
3904           suppoprt/cpp2/pretty-print.[ch]:
3905           removed
3906         * suppoprt/cpp2/Makefile.in, suppoprt/cpp2/opts.c,
3907           suppoprt/cpp2/sdcpp-opts.c, suppoprt/cpp2/sdcpp.[ch],
3908           suppoprt/cpp2/sdcpp.dsp:
3909           changed
3910
3911 2007-01-08 Maarten Brock <sourceforge.brock AT dse.nl>
3912
3913         * device/lib/printf_large.c (output_float): removed recursion,
3914           use smaller buffer on stack for mcs51,
3915           fixed bug printing 1.96
3916         * support/regression/tests/snprintf.c: added test
3917
3918 2007-01-07 Borut Razem <borut.razem AT siol.net>
3919
3920         * use dynamic memory buffers instead temporary files
3921         * support/Util/dbuf_string.c, support/Util/dbuf_string.h:
3922           added
3923         * src/Makefile.in, src/SDCC.lex, src/SDCCast.c, src/SDCCast.h,
3924           src/SDCCcse.c, src/SDCCglobl.h, src/SDCCglue.c, src/SDCCglue.h,
3925           src/SDCCicode.c, src/SDCCicode.h, src/SDCCmain.c, src/SDCCmem.c,
3926           src/SDCCmem.h, src/SDCCpeeph.c, src/SDCCpeeph.h, src/SDCCsymt.c,
3927           src/SDCCsymt.h, src/SDCCutil.c, src/asm.c, src/asm.h, src/avr/gen.c,
3928           src/avr/main.c, src/ds390/gen.c, src/ds390/main.c, src/hc08/gen.c,
3929           src/hc08/main.c, src/izt/gen.c, src/mcs51/gen.c, src/mcs51/main.c,
3930           src/pic/device.c, src/pic/gen.c, src/pic/glue.c, src/pic/main.c,
3931           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/glue.c,
3932           src/pic16/main.c, src/pic16/ralloc.c, src/port.h, src/src.dsp,
3933           src/xa51/gen.c, src/xa51/main.c, src/z80/gen.c, src/z80/main.c,
3934           support/Util/dbuf.c, support/Util/dbuf.h:
3935           modified
3936         * .version, sdcc.spec: bumped version to 2.6.4
3937
3938 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
3939
3940         * src/port.h: added TARGET_Z80_LIKE macro
3941         * src/SDCCmain.c (linkEdit): use TARGET_Z80_LIKE,
3942           output PSEG location if --xram-loc or --xstack-loc was used
3943         * as/link/mcs51/lkarea.c (lnksect2): set segment address afterwards
3944
3945 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
3946
3947         * as/as_gbz80.dsp, as/z80/as_gbz80.dsp,
3948         * as/as_z80.dsp,   as/z80/as_z80.dsp,
3949         * as/asx8051.dsp,  as/mcs51/asx8051.dsp,
3950         * sdcc.dsw: moved project files into subdir
3951         * as/hc08/as_hc08.dsp,
3952         * as/hc08/Makefile.bcc,
3953         * as/hc08/Makefile.in,
3954         * as/mcs51/Makefile.bcc,
3955         * as/mcs51/Makefile.in,
3956         * as/z80/Makefile.bcc,
3957         * as/z80/Makefile.in,
3958         * as/link/mcs51/Makefile.bcc: use as/strcmpi.c
3959         * as/hc08/asm.h,
3960         * as/mcs51/asm.h,
3961         * as/z80/asm.h: added as_strcmpi() and as_strncmpi() prototypes
3962         * as/hc08/asmain.c,
3963         * as/hc08/assym.c,
3964         * as/mcs51/asmain.c,
3965         * as/mcs51/assym.c,
3966         * as/z80/assym.c: removed include "strcmpi.h"
3967         * as/hc08/strcmpi.c,
3968         * as/hc08/strcmpi.h,
3969         * as/mcs51/strcmpi.c,
3970         * as/mcs51/strcmpi.h,
3971         * support/Util/strcmpi.c,
3972         * support/Util/strcmpi.h: removed files
3973         * as/strcmpi.c: added as_strncmpi()
3974
3975 2007-01-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3976
3977         * sdcc.dsw: Added some dependencies on project config.dsp
3978
3979 2007-01-05 Maarten Brock <sourceforge.brock AT dse.nl>
3980
3981         * as/link/mcs51/lkarea.c (lnkarea2, lnksect2): replaced [di]seg_ap->a_addr
3982           with [di]ram_start to fix a regresion
3983
3984 2007-01-03 Bernhard Held <bernhard AT bernhardheld.de>
3985
3986         * configure.in: added missing mcs51 in status output
3987         * Makefile.in: add support/regression to SDCC_EXTRA to distclean this
3988         directory
3989         * debugger/mcs51/clean.mk (distclean): remove config.h
3990         * src/clean.mk (clean): remove SDCCy.c, SDCCy.h, SDCClex.c
3991         * support/cpp2/Makefile.in (clean): remove s-options, optionlist,
3992         options.h, s-options-h and options.c
3993         * support/cpp2/clean.mk: unused, removed
3994         * Makefile.common.in,
3995         * main_in.mk,
3996         * as/Makefile.in,
3997         * as/hc08/Makefile.in,
3998         * as/hc08/clean.mk,
3999         * as/mcs51/Makefile.in,
4000         * as/mcs51/clean.mk,
4001         * as/z80/clean.mk,
4002         * as/z80/conf.mk,
4003         * as/z80/Makefile.in,
4004         * as/z80/clean.mk,
4005         * as/link/Makefile.in,
4006         * as/link/hc08/Makefile.in,
4007         * as/link/hc08/clean.mk,
4008         * as/link/mcs51/Makefile.in,
4009         * as/link/mcs51/clean.mk,
4010         * as/link/z80/Makefile.in,
4011         * as/link/z80/clean.mk,
4012         * as/link/z80/conf.mk,
4013         * debugger/mcs51/Makefile.in,
4014         * debugger/mcs51/clean.mk,
4015         * device/include/Makefile.in,
4016         * device/lib/Makefile.in,
4017         * device/lib/mcs51/Makefile.in,
4018         * device/lib/pic/Makefile.in,
4019         * device/lib/pic/Makefile.common.in,
4020         * device/lib/pic/Makefile.subdir,
4021         * device/lib/pic/Makefile.rules,
4022         * device/lib/pic16/libio/Makefile.in,
4023         * device/lib/pic16/Makefile.subdir,
4024         * device/lib/pic16/libdev/Makefile.in,
4025         * device/lib/pic16/Makefile.rules,
4026         * device/lib/pic16/Makefile.common.in,
4027         * sim/ucsim/avr.src/Makefile.in,
4028         * sim/ucsim/main_in.mk,
4029         * sim/ucsim/cmd.src/Makefile.in,
4030         * sim/ucsim/doc/Makefile.in,
4031         * sim/ucsim/gui.src/Makefile.in,
4032         * sim/ucsim/gui.src/obsolete/portmon.src/Makefile.in,
4033         * sim/ucsim/gui.src/serio.src/Makefile.in,
4034         * sim/ucsim/hc08.src/Makefile.in,
4035         * sim/ucsim/libltdl/Makefile.in,
4036         * sim/ucsim/s51.src/Makefile.in,
4037         * sim/ucsim/sim.src/Makefile.in,
4038         * sim/ucsim/sim.src/conf.mk,
4039         * sim/ucsim/xa.src/Makefile.in,
4040         * sim/ucsim/z80.src/Makefile.in,
4041         * src/Makefile.in,
4042         * src/clean.mk,
4043         * src/port.mk,
4044         * support/cpp2/Makefile.in,
4045         * support/librarian/Makefile.in,
4046         * support/librarian/clean.mk,
4047         * support/makebin/Makefile.in,
4048         * support/makebin/clean.mk,
4049         * support/packihx/Makefile.in,
4050         * support/regression/Makefile.in,
4051         * support/regression/ports/ds390/spec.mk,
4052         * support/regression/ports/gbz80/spec.mk,
4053         * support/regression/ports/hc08/spec.mk,
4054         * support/regression/ports/mcs51/spec.mk,
4055         * support/regression/ports/mcs51-large/spec.mk,
4056         * support/regression/ports/mcs51-medium/spec.mk,
4057         * support/regression/ports/mcs51-xstack-auto/spec.mk,
4058         * support/regression/ports/pic14/spec.mk,
4059         * support/regression/ports/pic16/spec.mk,
4060         * support/regression/ports/mcs51-stack-auto/spec.mk,
4061         * support/regression/ports/ucz80/spec.mk,
4062         * support/regression/ports/xa51/spec.mk,
4063         * support/regression/ports/z80/spec.mk: fixed for autoconf 2.6x by
4064         adding a slash after $(top_builddir) and/or adding @datarootdir@
4065         * configure.in,
4066         * debugger/mcs51/configure.in,
4067         * device/lib/pic/configure.in,
4068         * device/lib/pic16/configure.in,
4069         * sim/ucsim/configure.in,
4070         * support/cpp2/configure.in,
4071         * support/packihx/configure.in: changed AC_PREREQ to 2.60
4072         * configure,
4073         * debugger/mcs51/configure,
4074         * device/lib/pic/configure,
4075         * device/lib/pic16/configure,
4076         * sim/ucsim/configure,
4077         * support/cpp2/configure,
4078         * support/packihx/configure: generated with autoconf 2.60
4079
4080 2007-01-02 Maarten Brock <sourceforge.brock AT dse.nl>
4081
4082         * as/link/hc08/lkihx.c (newArea),
4083         * as/link/hc08/lkrloc.c: renamed newArea() to ihxNewArea()
4084
4085 2007-01-02 Borut Razem <borut.razem AT siol.net>
4086
4087         * doc/sdccman.lyx: documented #pragma sdcc_hash
4088         * support/cpp2/sdcpp.c: allow_naked_hash (value of #pragma sdcc_hash)
4089           initialized to 0
4090         * support/cpp2/c-ppoutput.c: fixed warning: no newline at end of file
4091
4092 2007-01-01 Bernhard Held <bernhard AT bernhardheld.de>
4093
4094         * src/SDCCast.c (createDo): backPatchLabels() needs falseLabel in
4095         empty 'while'-loop to work correctly, see regression test 'while.c'
4096         * support/regression/tests/while.c: added
4097
4098 2007-01-01 Borut Razem <borut.razem AT siol.net>
4099
4100         * support/cpp2/libcpp/directives.c, support/cpp2/libcpp/identifiers.c,
4101           support/cpp2/libcpp/init.c, support/cpp2/libcpp/sdcpp-opts.c,
4102           support/cpp2/libcpp/sdcpp.c:
4103           sdcpp specific pragma/directive/option handling moved to sdcpp.c
4104         * doc/sdccman.lyx: reference to the GCC 4.1.1 CPP Manual
4105         * support/cpp2/libcpp/mkdeps.c: synchronized with GCC CPP 4.1.1
4106
4107 2006-12-31 Borut Razem <borut.razem AT siol.net>
4108
4109         * SDCPP synchronized with GCC CPP release version 4.1.1,
4110           currently the latest release:
4111         * support/cpp2/libcpp, support/cpp2/libcpp/include,
4112           support/cpp2/libcpp/include/cpp-id-data.h
4113           support/cpp2/libiberty/fopen_unlocked.c
4114           support/cpp2/libiberty/md5.c
4115           support/cpp2/md5.h
4116           support/cpp2/opt-functions.awk
4117           support/cpp2/opt-gather.awk
4118           support/cpp2/optc-gen.awk
4119           support/cpp2/opth-gen.awk:
4120           added
4121         * support/cpp2/Makefile.in, support/cpp2/auto-host_vc_in.h,
4122           support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
4123           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
4124           support/cpp2/c-pretty-print.h, support/cpp2/cppdefault.c,
4125           support/cpp2/cppdefault.h, support/cpp2/diagnostic.c,
4126           support/cpp2/diagnostic.h, support/cpp2/except.h,
4127           support/cpp2/hwint.h, support/cpp2/input.h,
4128           support/cpp2/intl.h, support/cpp2/move-if-change,
4129           support/cpp2/opts.c, support/cpp2/opts.h,
4130           support/cpp2/output.h, support/cpp2/prefix.c,
4131           support/cpp2/prefix.h, support/cpp2/pretty-print.c,
4132           support/cpp2/pretty-print.h, support/cpp2/sdcpp-opts.c,
4133           support/cpp2/sdcpp.c, support/cpp2/sdcpp.dsp,
4134           support/cpp2/sdcpp.h, support/cpp2/sdcpp.opt,
4135           support/cpp2/sdcppa.dsp, support/cpp2/symcat.h,
4136           support/cpp2/version.c:
4137           modified
4138         * support/cpp2/libcpp/charset.c, support/cpp2/libcpp/directives.c,
4139           support/cpp2/libcpp/errors.c, support/cpp2/libcpp/expr.c,
4140           support/cpp2/libcpp/files.c, support/cpp2/libcpp/identifiers.c,
4141           support/cpp2/libcpp/include/cpplib.h, support/cpp2/libcpp/include/line-map.h,
4142           support/cpp2/libcpp/include/mkdeps.h, support/cpp2/libcpp/include/symtab.h,
4143           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
4144           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/line-map.c,
4145           support/cpp2/libcpp/macro.c, support/cpp2/libcpp/mkdeps.c,
4146           support/cpp2/libcpp/symtab.c, support/cpp2/libcpp/system.h,
4147           support/cpp2/libcpp/traditional.c, support/cpp2/libcpp/ucnid.h,
4148           support/cpp2/libiberty/hashtab.c, support/cpp2/libiberty/hashtab.h:
4149           moved
4150         * support/cpp2/cppcharset.c, support/cpp2/cpperror.c,
4151           support/cpp2/cppexp.c, support/cpp2/cppfiles.c,
4152           support/cpp2/cpphash.c, support/cpp2/cpphash.h,
4153           support/cpp2/cppinit.c, support/cpp2/cpplex.c,
4154           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
4155           support/cpp2/cppmacro.c, support/cpp2/cpptrad.c,
4156           support/cpp2/cppucnid.h, support/cpp2/hashtab.c,
4157           support/cpp2/hashtab.h, support/cpp2/hashtable.c,
4158           support/cpp2/hashtable.h, support/cpp2/line-map.c,
4159           support/cpp2/line-map.h, support/cpp2/mkdeps.c,
4160           support/cpp2/mkdeps.h, support/cpp2/options_vc_in.c,
4161           support/cpp2/options_vc_in.h, support/cpp2/opts.sh,
4162           support/cpp2/system.h:
4163           deleted / moved
4164
4165 2006-12-31 Borut Razem <borut.razem AT siol.net>
4166
4167         * configure.in, configure: fixed bug #1538756: configure dies if bison
4168           and flex are not installed, 2nd try
4169
4170 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
4171
4172         * src/mcs51/peeph.def: renamed rule 400 to 500, moved rule 253.x to
4173         400.x for better code in RFE 899102
4174
4175 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
4176
4177         * src/SDCCpeeph.c (deadMove),
4178         * src/port.h,
4179         * src/mcs51/peep.h: renamed 'op' by 'reg'
4180         * src/mcs51/peep.c (isFunc, isCallerSaveFunc): added,
4181         (scan4op): small change for removeDeadMove(), added support for
4182         'callee saves' and/or PACLL function calls,
4183         (removeDeadMove): added, removes superflous 'mov r%1,%2',
4184         (removeDeadPopPush): renamed from mcs51DeadMove(), common parts
4185         left in new dispatcher mcs51DeadMove()
4186         (mcs51DeadMove): dispatcher for removeDeadPopPush() and new
4187         removeDeadMove()
4188         * src/mcs51/peeph.def: added rule 301 removing superflous 'mov r%1,%2'
4189
4190 2006-12-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4191
4192         * support/cpp2/options_vc_in.h, support/cpp2/options_vc_in.c,
4193           support/cpp2/sdcppa.dsp: create 'options.h' and 'options.c' under MSVC.
4194
4195 2006-12-30 Borut Razem <borut.razem AT siol.net>
4196
4197         * support/cpp2/spacs.h: deleted from svn
4198         * configure.in, configure: fixed bug #1538756: configure dies if bison
4199           and flex are not installed
4200
4201 2006-12-29 Maarten Brock <sourceforge.brock AT dse.nl>
4202
4203         * src/z80/gen.c (assignResultValue): fixed bug when registers overlap,
4204           with this z80 passes printf float test when enabled
4205         * support/regression/tests/bug1057979.c: typo disabled ds390 float test
4206
4207 2006-12-28 Borut Razem <borut.razem AT siol.net>
4208
4209         * support/cpp2/config.in, support/cpp2/configure.in,
4210           support/cpp2/configure, support/cpp2/Makefile.in:
4211           fix for the solaris build
4212
4213 2006-12-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4214
4215         * src/SDCC.y (type_specifier2, pointer),
4216         * src/SDCCsymt.h,
4217         * src/SDCCsymt.c (mergeSpec, checkSClass),
4218         * support/Util/SDCCerr.c,
4219         * support/Util/SDCCerr.h: Parse and validate the restrict keyword
4220         * support/valdiag/valdiag.py: Allow test cases to specify
4221           required language standard
4222         * support/valdiag/tests/restrict.c: New file to test restrict keyword
4223         * support/valdiag/tests/tentdecl.c: Supress empty source file error
4224
4225 2006-12-27 Borut Razem <borut.razem AT siol.net>
4226
4227         * support/cpp2/cppmain.c, support/cpp2/mbchar.[ch]: removed
4228         * support/cpp2/libiberty/Makefile.in, support/cpp2/libiberty/sdcpp.dsp:
4229           mbchar removed
4230         * support/cpp2/libiberty/getpwd.c, support/cpp2/sdcpp.h:
4231           fixed for borland C
4232         * support/cpp2/libiberty/Makefile.bcc: updated
4233         * src/pic16/main.c: fixed #pragma udata handling
4234         * src/mcs51/mcs51.dsp: added peep.[ch] to the project
4235
4236 2006-12-26 Bernhard Held <bernhard AT bernhardheld.de>
4237
4238         * src/SDCCpeeph.c: made labelHashEntry global,
4239         made pcDistance, FBYNAME static,
4240         (pcDistance): made static, use isComment and isLabel,
4241         (deadMove): added,
4242         (getLabelRef): added, extracted from labelRefCount(),
4243         (labelRefCount): use new getLabelRef(),
4244         (callFuncByName): made static, added deadMove,
4245         use isComment and isLabel,
4246         (newPeepRule): made static, set isLabel,
4247         (isLabelDefinition): added parameter isPeepRule to allow '%' in
4248         labels from peephole rules,
4249         (buildLabelRefCountHash): speed up by running isLabelDefinition() only
4250         when isComment or isLabel is set
4251         * src/SDCCpeeph.h: added "isLabel" and "visited" to struct lineNode,
4252         added labelHashEntry, isLabelDefinition, labelHash and getLabelRef
4253         to make them global
4254         * src/mcs51/peep.h: added
4255         * src/mcs51/peep.c: added, implements mcs51DeadMove()
4256         * src/port.h: added peep->deadMove to port structure
4257         * src/mcs51/main.c: initialize peep->deadMove with mcs51DeadMove
4258         * src/mcs51/peeph.def: renumbered rule 300 to 400, added new rule 300
4259         deadMove, finally removed no. 1 and 2
4260         * src/mcs51/gen.c,
4261         * src/pic/gen.c,
4262         * src/z80/gen.c,
4263         * src/z80/ralloc.c,
4264         * src/pic16/gen.c,
4265         * src/ds390/gen.c,
4266         * src/hc08/gen.c: mark lines with isComment or isLabel
4267         * sim/ucsim/s51.src/uc390hw.cc: don't waist 65535 ticks before CKRDY
4268         * .version,
4269         * sdcc.spec: bumped version to 2.6.3
4270
4271 2006-12-26 Borut Razem <borut.razem AT siol.net>
4272
4273         * support/cpp2/Makefile.in: added dependency on options.h
4274         * configure: regenerated
4275         * support/cpp2/sdcpp.opt, support/cpp2/move-if-change: svn:eol-style native
4276         * support/cpp2/Makefile.in: added vasprintf.c
4277
4278 2006-12-25 Borut Razem <borut.razem AT siol.net>
4279
4280         * SDCPP synchronized with GCC CPP release version 3.4.6,
4281           the latest release before 4.x:
4282         * support/cpp2/Makefile.in, support/cpp2/config.h,
4283           support/cpp2/configure, support/cpp2/configure.in,
4284           support/cpp2/cppdefault.c, support/cpp2/cppdefault.h,
4285           support/cpp2/cpperror.c, support/cpp2/cppexp.c,
4286           support/cpp2/cppfiles.c, support/cpp2/cpphash.c,
4287           support/cpp2/cpphash.h, support/cpp2/cppinit.c,
4288           support/cpp2/cpplex.c, support/cpp2/cpplib.c,
4289           support/cpp2/cpplib.h, support/cpp2/cppmacro.c,
4290           support/cpp2/cpptrad.c, support/cpp2/except.h,
4291           support/cpp2/hashtable.c, support/cpp2/hashtable.h,
4292           support/cpp2/hwint.h, support/cpp2/intl.h,
4293           support/cpp2/line-map.c, support/cpp2/line-map.h,
4294           support/cpp2/mkdeps.c, support/cpp2/mkdeps.h,
4295           support/cpp2/output.h, support/cpp2/prefix.c,
4296           support/cpp2/prefix.h, support/cpp2/sdcpp.dsp,
4297           support/cpp2/system.h, support/cpp2/version.c:
4298           modified
4299         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
4300           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
4301           support/cpp2/c-pretty-print.h, support/cpp2/cppcharset.c,
4302           support/cpp2/cppucnid.h, support/cpp2/diagnostic.c,
4303           support/cpp2/diagnostic.def, support/cpp2/diagnostic.h,
4304           support/cpp2/hashtab.c, support/cpp2/hashtab.h,
4305           support/cpp2/input.h, support/cpp2/libiberty/getpwd.c,
4306           support/cpp2/libiberty/vasprintf.c, support/cpp2/libiberty/xmemdup.c,
4307           support/cpp2/move-if-change, support/cpp2/opts.c,
4308           support/cpp2/opts.h, support/cpp2/opts.sh,
4309           support/cpp2/pretty-print.c, support/cpp2/pretty-print.h,
4310           support/cpp2/sdcpp.opt, support/cpp2/sdcpp-opts.c,
4311           support/cpp2/win32, support/cpp2/win32/dirent.c,
4312           support/cpp2/win32/dirent.h:
4313           added
4314         * support/cpp2/sdcpp.c: renamed from sdcppmain.c
4315         * support/cpp2/sdcpp.h: renamed from sdcc.h
4316         * sdcppinit.c: deleted
4317
4318 2006-12-23 Borut Razem <borut.razem AT siol.net>
4319
4320         * support/cpp2/cpphash.h, support/cpp2/cpplex.c,
4321           support/cpp2/cpplib.[ch], support/cpp2/sdcppinit.c, doc/sdccman.lyx,
4322           preproc.c: an other try to fix bug #982435: introduced
4323           -pedantic-parse-number command line option and pedantic_parse_number
4324           pragma
4325
4326 2006-12-21 Maarten Brock <sourceforge.brock AT dse.nl>
4327
4328         * as/link/mcs51/lkarea.c (lnkarea2): handle absolute areas, restructured
4329            BSEG handling,
4330           (lnksect2): use --data-loc and --idata-loc as lower bound for ramstart,
4331            corrected overlayed areax addresses, warn about memory overlaps
4332         * as/mcs51/asmain.c (asmbl): create a new area for every .org directive
4333         * src/avr/main.c,
4334         * src/ds390/main.c,
4335         * src/hc08/main.c,
4336         * src/mcs51/main.c,
4337         * src/pic16/main.c,
4338         * src/pic/main.c,
4339         * src/xa51/main.c,
4340         * src/z80/main.c,
4341         * src/port.h: added xabs_name and iabs_name
4342         * src/SDCCglue.c (emitRegularMap): allocate for absolutes with initializer
4343           (glue, emitMaps): create and emit maps d_abs and i_abs
4344         * src/SDCCglue.h: cosmetic changes
4345         * src/SDCCmain.c (setDefaultOptions): idata can start below 0x80
4346         * src/SDCCmem.h,
4347         * src/SDCCmem.c (initMem): added x_abs, i_abs and d_abs
4348           (allocDefault): put absolute, initialized globals in them
4349         * support/regression/tests/absolute.c: added absolute bdata test
4350         * device/lib/printf_large.c (output_float): moved fpBuffer to stack/xdata
4351
4352 2006-12-20 Borut Razem <borut.razem AT siol.net>
4353
4354         * support/cpp2/cpphash.h, support/cpp2/cpplex.c: fixed bug #982435
4355         * support/regression/tests/preproc.c: renamed from bug-1351710.c,
4356           added regression test for bug #982435
4357
4358 2006-12-18 Borut Razem <borut.razem AT siol.net>
4359
4360         * src/SDCCutil.c: fixed a bug in (get_pragma_token)
4361         * src/pic16/main.c, src/SDCC.lex, src/z80/main.c:
4362           small cosmetic changes
4363         * src/SDCC.lex: (stringLiteral) fixed bug #1351710
4364         * support/regression/tests/bug-1351710.c: added regression test
4365
4366 2006-12-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4367
4368         * doc/sdccman.lyx: added the long missed iCode table
4369           "<where is figure II?>", added links to wiki
4370
4371 2006-12-17 Borut Razem <borut.razem AT siol.net>
4372
4373         * doc/sdccman.lyx, src/pic16/main.c, src/pic/main.c, src/port.h,
4374           src/SDCC.lex, src/SDCCutil.[ch], src/z80/main.c,
4375           support/Util/SDCCerr.[ch]: removed deprecated pragmas,
4376           unified table driven pragma handling, pragma argument type checking
4377         * support/Util/dbuf.c: (dbuf_set_size) allow to set size equal to the
4378           current one - version 1.1.3
4379         * src/SDCCmain.c: (setParseWithComma) substituted brain damaged strtok
4380
4381 2006-12-13 Raphael Neider <rneider AT web.de>
4382
4383         * src/pic/device.h: removed AssignedMemory structure and macros
4384         * src/pic/device.c: removed global finalMapping (linker assigns
4385             memory locations),
4386           (register_map): add SFRs to remembered memRanges
4387           (addMemRange,isSFR,dump_map,dump_sfr,mapRegister,assignRegister,
4388           assignFixedRegisters,assignRelocatableRegisters): removed,
4389           (setMaxRAM,validAddress): adapted accordingly,
4390           (pic14_hasSharebank,pic14_getSharedStack): only report and use
4391             reasonably sized sharebanks,
4392         * src/pic/ralloc.c (writeUsedRegs): stripped down (remove?),
4393           (allDefsOutOfRange): removed unused code,
4394         * src/pic/main.c (_process_pragma): removed memmap/maxram pragma
4395             handling
4396         * src/pic/pcode.c (register_reassign): removed recursion warning,
4397             fired far too often,
4398         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap): modified
4399             to use existing pic14_stringInSet() to avoid duplicate symbols,
4400             tidied up the code a bit,
4401           (pic14printLocals): added in symmetry to printExterns, replaces
4402             writeUsedRegs more or less,
4403           (picglue): call new pic14_printLocals(),
4404         * device/include/pic/pic*.h: removed #pragma memmap directives,
4405             information gathered from include/pic/pic14devices.txt
4406         * support/scripts/inc2h.pl: do not emit #pragma memmap lines
4407
4408 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
4409
4410         * device/include/mcs51/C8051F520.h: fixed buggy CPT0MX
4411
4412 2006-12-11 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4413
4414         * device/include/mcs51/cc2430.h: fixed missing ';'
4415
4416 2006-12-10 Raphael Neider <rneider AT web.de>
4417
4418         * device/lib/pic16/libc/stdio/vfprintf.c,
4419         * device/lib/pic16/libc/stdio/printf_small.c,
4420         * device/lib/pic16/libc/stdio/printf_timy.c: pop int from stack for
4421           char arguments, as char varargs are cast to int by the caller,
4422           hopefully fixes #1604915 (other device libraries are still affected)
4423
4424 2006-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4425
4426         * src/mcs51/ralloc.c (packRegsForAssign),
4427         * src/hc08/ralloc.c (packRegsForAssign): fixed bug #1605880
4428
4429 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
4430
4431         * device/include/malloc.h: removed init_dynamic_memory
4432         * device/lib/malloc.c: made init_dynamic_memory static and automatically
4433           call it once from malloc. Also use _sdcc_heap[] from _heap.c
4434         * device/lib/_heap.c: new, added, contains _sdcc_heap[]
4435         * device/lib/libsdcc.lib,
4436         * device/lib/Makefile.in,
4437         * support/regression/ports/mcs51-xstack-auto/spec.mk: added _heap.c
4438         * doc/sdccman.lyx: documented use of new _heap.c
4439         * support/regression/tests/malloc.c: removed init_dynamic_memory
4440         * src/cdbFile.c(spacesToUnderscores): new function,
4441           (cdbWriteEndFunction, cdbWriteCLine): use spacesToUnderscores, fixes bug
4442           1068030
4443         * device/include/tinibios.h: removed defines for putchar and getchar
4444         * device/lib/ds390/Makefile.in: added putchar.c
4445         * device/lib/ds390/putchar.c: new, added, fixes bug 1465671
4446
4447 2006-12-09 Borut Razem <borut.razem AT siol.net>
4448
4449         * support/cpp2/sdcc.h: prevent multiple inclusion
4450         * support/cpp2/options.h: deleted
4451
4452 2006-12-08 Borut Razem <borut.razem AT siol.net>
4453
4454         * support/cpp2/sdcc.h: removed x*alloc() macros
4455         * support/cpp2/libiberty.h: uncommented out x*alloc() declarations
4456         * support/cpp2/Makefile.bcc, support/cpp2/Makefile.in,
4457           support/cpp2/sdcpp.sdc: x*alloc files added to the project
4458         * support/cpp2/system.h: moved #include "sdcc.h"
4459         * support/cpp2/libiberty/xexit.c, support/cpp2/libiberty/xmalloc.c,
4460           support/cpp2/libiberty/xstrdup.c, support/cpp2/libiberty/xstrerror.c:
4461           added
4462         * support/cpp2/sdcppinit.c: added -isysroot, -fsigned-char,
4463           -funsigned-char options
4464         * support/cpp2/sdcppmain.c: fixed bug 1611411
4465
4466 2006-12-07 Borut Razem <borut.razem AT siol.net>
4467
4468         * support/cpp2/cpplib.c: reverted sdcpp special handling of _Pragma()
4469           directive
4470
4471 2006-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
4472
4473         * src/SDCCsymt.c (addDecl): fixed bug 1609244
4474         * src/SDCCmain.c (linkEdit): fixed bug 1609279
4475         * doc/sdccman.lyx,
4476         * .version: bumped to 2.6.2 because a) it's been a while
4477           b) the linker sources have moved c) the preprocessor is upgraded
4478
4479 2006-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4480
4481         * support/regression/tests/snprintf.c: some checks
4482         * lib/src/printf_large.c: %bc: read char instead of int from stack
4483
4484 2006-12-03 Maarten Brock <sourceforge.brock AT dse.nl>
4485
4486         * device/include/mcs51/cc2430.h: inserted _XPAGE
4487
4488 2006-12-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4489
4490         * device/include/mcs51/cc2430.h: added
4491
4492 2006-12-02 Maarten Brock <sourceforge.brock AT dse.nl>
4493
4494         * device/include/asm/default/features.h,
4495         * device/include/asm/ds390/features.h,
4496         * device/include/mcs51/at89s53.h,
4497         * device/include/ser.h,
4498         * device/include/ser_ir.h,
4499         * device/include/serial.h: changed keywords to double underscore variants,
4500           fixes bug 1590261 some more, thanks Steven Borley
4501
4502 2006-12-01 Raphael Neider <rneider AT web.de>
4503
4504         * src/pic/pcode.c (register_reassign): do not crash on recursive code
4505           but emit warning (recursion is not supported for pic14)
4506
4507 2006-11-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4508
4509         * src/mcs51/peeph.def: added 101.a,b (moves to int/long xdata)
4510         * doc/sdccman.lyx: various small changes, acknowledged Sourceforge
4511
4512 2006-11-30 Raphael Neider <rneider AT web.de>
4513
4514         * src/pic/device.c (dump_sfr): always emit symbols
4515         * src/pic/glue.c (pic14printPublics): fixed typo
4516
4517 2006-11-30 Raphael Neider <rneider AT web.de>
4518
4519         * src/pic/device.c (create_pic,ram_map): add memRange entries to PIC
4520           (pic14_getSharebankSize, pic14_getSharebankAddress): replaced with
4521           (pic14_hasSharebank,pic14_isShared,pic14_allRAMShared,
4522            pic14_getSharedStack): NEW, evaluate the memRange entries to locate
4523            a sharebank, use a non-shared bank for the stack if none available
4524         * src/pic/device.h (struct memRange): added linked list next field,
4525           added prototypes for above functions
4526         * src/pic/ralloc.c (initStack): handle shared and banked stacks,
4527           (typeRegWithIdx): accept fixed and unfixed stack registers
4528         * src/pic/pcode.c (pCodeInitRegisters): use new functions to create
4529           the stack, handle shared and banked stack (except for WSAVE),
4530           (insertBankSel): removed useless optimization (will never fire),
4531           (FixRegisterBanking): added optimization for devices with only one
4532           possibly aliased bank of memory, like 16f84
4533         * src/pic/glue.c (pic14_constructAbsMap): back to udata_ovr, as some
4534           devices have no SHAREBANK in the linker script
4535         * device/include/pic/pic14devices.txt: documented memmap
4536         * device/lib/pic/libdev/Makefile.in: removed --stack-loc again
4537
4538 2006-11-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4539
4540         * src/hc08/gen.c (transferRegReg, loadRegFromAop, forceStackedAop,
4541           storeRegToAop, freeAsmop, genPlusIncr, genPlus, genPointerGetSetOfs,
4542           genAnd, genOr, genXor, genLeftShiftLiteral, genRightShiftLiteral,
4543           genhc08Code): switched most of the D (debug) macros to DD (detailed
4544           debug) macros to better control clutter in the generated .asm file.
4545         * src/hc08/gen.c: (forceStackedAop, genUminus, genLeftShift,
4546           genRightShift): fixed bug with non-constant bit shift stored to
4547           a volatile result (SF Open Discussion forum thread #1616749).
4548           Single byte case is not yet optimized.
4549
4550 2006-11-28 Maarten Brock <sourceforge.brock AT dse.nl>
4551
4552         * device/include/asm/mcs51/features.h,
4553         * device/include/malloc.h,
4554         * device/include/stdio.h: changed keywords to double underscore variants,
4555           fixes bug 1590261
4556
4557 2006-11-27 Borut Razem <borut.razem AT siol.net>
4558
4559         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
4560           support/cpp2/Makefile.in, support/cpp2/cppfiles.c,
4561           support/cpp2/output.h, support/cpp2/cppinit.c,
4562           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
4563           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
4564           support/cpp2/cppdefault.c, support/cpp2/system.h,
4565           support/cpp2/cpphash.h, support/cpp2/cpplex.c,
4566           support/cpp2/cppdefault.h, support/cpp2/mbchar.c,
4567           support/cpp2/prefix.c, support/cpp2/except.h,
4568           support/cpp2/hwint.h, support/cpp2/cppmacro.c,
4569           support/cpp2/line-map.h, support/cpp2/sdcpp.dsp,
4570           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
4571           support/cpp2/version.c, support/cpp2/cppmain.c,
4572           support/cpp2/version.h, support/cpp2/hashtable.c,
4573           support/cpp2/cpperror.c:
4574           synchronized with GCC CPP release version 3.3.6,
4575           the latest where cppmain.c still exists.
4576         * support/cpp2/cpptrad.c, support/cpp2/sdcppmain.c,
4577           support/cpp2/sdcppinit.c: added
4578
4579 2006-11-27 Borut Razem <borut.razem AT siol.net>
4580
4581         * support/cpp2/cpplex.c:
4582           fixed _asm ... _endasm handling bug, introduce with GCC CPP
4583           synchronization
4584         * support/cpp2/cpplib.c: removed definitions of unused variables
4585
4586 2006-11-26 Borut Razem <borut.razem AT siol.net>
4587
4588         * support/cpp2/libiberty.h: commented out x*alloc() declarations
4589           since they are redefined by macros in support/cpp2/sdcc.h
4590         * support/cpp2/sdcc.h: x*alloc macro redefinition
4591
4592 2006-11-25 Borut Razem <borut.razem AT siol.net>
4593
4594         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
4595           support/cpp2/configure, support/cpp2/Makefile.in,
4596           support/cpp2/cppfiles.c, support/cpp2/output.h,
4597           support/cpp2/cppinit.c, support/cpp2/cpplib.c,
4598           support/cpp2/config.h, support/cpp2/cpplib.h,
4599           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
4600           support/cpp2/cppdefault.c, support/cpp2/config.in,
4601           support/cpp2/system.h, support/cpp2/cpplex.c,
4602           support/cpp2/cpphash.h, support/cpp2/mbchar.c,
4603           support/cpp2/cppdefault.h, support/cpp2/prefix.c
4604           support/cpp2/hwint.h, support/cpp2/mbchar.h,
4605           support/cpp2/prefix.h, support/cpp2/cppmacro.c,
4606           support/cpp2/configure.in, support/cpp2/intl.h,
4607           support/cpp2/sdcpp.dsp, support/cpp2/acconfig.h,
4608           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
4609           support/cpp2/version.c, support/cpp2/cppmain.c,
4610           support/cpp2/ansidecl.h, support/cpp2/libiberty.h,
4611           support/cpp2/hashtable.c, support/cpp2/aclocal.m4,
4612           support/cpp2/cpperror.c,
4613           support/cpp2/libiberty/safe-ctype.c,
4614           support/cpp2/libiberty/safe-ctype.h,
4615           support/cpp2/libiberty/splay-tree.c,
4616           support/cpp2/libiberty/obstack.c,
4617           support/cpp2/libiberty/lbasename.c,
4618           support/cpp2/libiberty/splay-tree.h,
4619           support/cpp2/libiberty/obstack.h:
4620           synchronized with GCC CPP release version 3.2.3,
4621           the latest before integration of cpp into gcc
4622         * support/cpp2/except.h, support/cpp2/line-map.c,
4623           support/cpp2/line-map.h,
4624           support/cpp2/libiberty/hex.c,
4625           support/cpp2/libiberty/concat.c,
4626           support/cpp2/libiberty/filenames.h: added
4627         * support/cpp2/intl.c: deleted
4628
4629 2006-11-24 Borut Razem <borut.razem AT siol.net>
4630
4631         * src/SDCC.y: enabled compilation of empty source file
4632         * support/Util/SDCCerr.[ch]: added sdcc warning 190 -
4633           "ISO C forbids an empty source file"
4634         * device/lib/_startup.c, device/lib/printf_tiny.c: disable warning 190
4635           if all the code is ifdefed out.
4636
4637 2006-11-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4638
4639         * src/hc08/gen.c (genPcall): fix for bug #1601032
4640
4641 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
4642
4643         * device/include/mcs51/c8051f000.h, device/include/mcs51/C8051F000.h,
4644         * device/include/mcs51/c8051f018.h, device/include/mcs51/C8051F018.h,
4645         * device/include/mcs51/c8051f020.h, device/include/mcs51/C8051F020.h,
4646         * device/include/mcs51/c8051f040.h, device/include/mcs51/C8051F040.h,
4647         * device/include/mcs51/c8051f060.h, device/include/mcs51/C8051F060.h,
4648         * device/include/mcs51/c8051f120.h, device/include/mcs51/C8051F120.h,
4649         * device/include/mcs51/c8051f200.h, device/include/mcs51/C8051F200.h,
4650         * device/include/mcs51/c8051f300.h, device/include/mcs51/C8051F300.h,
4651         * device/include/mcs51/c8051f310.h, device/include/mcs51/C8051F310.h,
4652         * device/include/mcs51/c8051f320.h, device/include/mcs51/C8051F320.h,
4653         * device/include/mcs51/c8051f326.h, device/include/mcs51/C8051F326.h,
4654         * device/include/mcs51/c8051f330.h, device/include/mcs51/C8051F330.h,
4655         * device/include/mcs51/c8051f340.h, device/include/mcs51/C8051F340.h,
4656         * device/include/mcs51/c8051f350.h, device/include/mcs51/C8051F350.h,
4657         * device/include/mcs51/c8051f410.h, device/include/mcs51/C8051F410.h:
4658           Renamed to all upper case as per the standard set by SiLabs
4659
4660 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
4661
4662         * device/include/mcs51/C8051F520.h: new, added
4663         * device/include/mcs51/compiler.h: added link about predefined macros
4664
4665 2006-11-23 Raphael Neider <rneider AT web.de>
4666
4667         * src/regression/Makefile: add -L path to fresh library
4668         * src/regression/simulate: emphasize FAILED output
4669         * src/regression/create_stc: output _failures from gpsim
4670         * src/regression/compare4.c,
4671         * src/regression/rotate6.c: fixed char literals,
4672           all compile, all run =8-D
4673
4674         * src/pic/pcode.h: added isPCASMDIR macro
4675         * src/pic/gen.c (genAnd): fixed bit offset
4676         * src/pic/ralloc.c (allocNewDirReg,allocDirReg,allocRegByName,
4677           packBits): unified register numbering schemes,
4678           (newReg): do not insert stack registers into hash table,
4679           (initStack): unpinned pseudo stack, simplified,
4680           (typeRegWithIdx): fixed retrieval of stack registers,
4681         * src/pic/pcode.c (addpCodeComment,sameBank): added,
4682           (pCodeReplace): removed invalid assertion,
4683           (insertPCodeInstruction): fixed newly added labels,
4684           (insertBankSwitch,BankSelect,IsBankChange,DoBankSelect,
4685           FixRegisterBankingInFlow,compareBankFlow,FixBankFlow,
4686           DumpFlow): removed unsed (broken?) code,
4687           (insertBankSel): prevent STATUS from being BANKSELed,
4688           (FixRegisterBanking): rewritten from scratch, implemented generic
4689             optimizations (suppress BANKSELs to same register and to registers
4690             present in all banks),
4691           (AnalyzeBanking): update flow after BANKSELection
4692
4693         * src/pic/glue.c (pic14_constructAbsMap): emit pseudo stack in
4694             sharebank, let linker place it, mark STKxx symbols as emitted
4695
4696 2006-11-21 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4697
4698         * src/regression/arrays.c,
4699         * src/regression/bank1.c,
4700         * src/regression/bool2.c,
4701         * src/regression/compare7.c,
4702         * src/regression/compare8.c,
4703         * src/regression/compare9.c,
4704         * src/regression/compare10.c,
4705         * src/regression/configword.c,
4706         * src/regression/for.c,
4707         * src/regression/mult1.c,
4708         * src/regression/pointer1.c,
4709         * src/regression/rotate6.c,
4710         * src/regression/string1.c,
4711         * src/regression/struct1.c,
4712         * src/regression/Makefile: make PIC14 regression tests run again
4713           (3 fail, 6 won't compile)
4714
4715 2006-11-21 Raphael Neider <rneider AT web.de>
4716
4717         * device/include/pic16/pic18f4550.h,
4718         * device/include/pic16/pic18f4455.h,
4719         * device/lib/pic16/libdev/pic18f4550.c,
4720         * device/lib/pic16/libdev/pic18f4455.c: fixed #1578591 and #1595144
4721         * configure.in: removed superfluous closing bracket
4722
4723 2006-11-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4724
4725         * device/lib/expf.c: Fixed bug 1599523: result of expf(x) is
4726           always positive.
4727
4728 2006-11-21 Raphael Neider <rneider AT web.de>
4729
4730         * src/pic/device.{c,h}: added pic14_getPIC()
4731         * src/pic/gen.c (continueIfTrue,jumpIfTrue): added PIC code,
4732           (genAnd): added PIC code for one case, fixes #1597044
4733         * src/pic/pcode.c (BankSelect): Ohoh, added generic optimization for
4734           SFRs that are present in all banks (e.g., STATUS)
4735
4736 2006-11-20 Raphael Neider <rneider AT web.de>
4737
4738         * src/pic/pcode.c: changed inverted ops for DECFSZ/DECFSZW and
4739           INCFSZ/INCFSZW and declared them as changing Z bit,
4740           (insertPCodeInstruction): correctly invert the above instructions,
4741           fixes #1599333,
4742           (DoBankSelect): don't panic on po_immediates
4743
4744 2006-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
4745
4746         * as/link/aslink.h,
4747         * as/link/mcs51/lkihx.c (newArea),
4748         * as/link/mcs51/lkrloc.c: renamed newArea() to ihxNewArea()
4749         * as/link/mcs51/lkihx.c (ihx): output reset vector as start address
4750
4751 2006-11-11 Raphael Neider <rneider AT web.de>
4752
4753         * src/pic/pcode.c (newpCodeOpBit): search SymbolTab for referenced
4754           bitfield symbols, fixes #1579535 (once more...).
4755
4756 2006-11-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4757
4758         * support/regression/generate-cases.py,
4759         * support/regression/fwk/include/testfwk.h,
4760         * support/regression/fwk/lib/testfwk.c: used code pointers,
4761           (about 50kByte less code generated for mcs51)
4762
4763 2006-11-06 Borut Razem <borut.razem AT siol.net>
4764
4765         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
4766           debugger/mcs51/configure: fixed failed check because the function
4767           rl_function_of_keyseq isn't in Readline 5.2. Thanks to Ilya Goldberg
4768           who submitted the patch for gpsim.
4769         * debugger/mcs51/configure.in: removed the result message
4770         * debugger/mcs51/Makefile.in: fixed the config.status warning
4771           "... seems to ignore the --datarootdir setting"
4772
4773 2006-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
4774
4775         * device/include/mcs51/c8051f020.h,
4776         * device/include/mcs51/c8051f040.h,
4777         * device/include/mcs51/c8051f060.h,
4778         * device/include/mcs51/c8051f120.h: added PS0, fixed bug 1589279
4779         * src/z80/gen.c (gencjneshort),
4780         * src/z80/peeph.def: applied patch 1571373, thanks Philipp Krause
4781
4782 2006-10-31 Borut Razem <borut.razem AT siol.net>
4783
4784         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
4785           debugger/mcs51/configure: get readline version
4786
4787 2006-10-30 Borut Razem <borut.razem AT siol.net>
4788
4789         * debugger/mcs51/sdcdb.c: replaced hardcoded "/" with DIR_SEPARATOR_STRING
4790         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
4791           debugger/mcs51/configure: locate readline even when cross compiling
4792         * support/scripts/sdcc.nsi: include readline5.dll into the setup package
4793
4794 2006-10-29 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4795
4796         * device/include/mcs51/serial_IO.h: putchar() and getchar() using
4797           serial port.
4798
4799 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
4800
4801         * device/include/malloc.h,
4802         * device/lib/calloc.c,
4803         * device/lib/free.c,
4804         * device/lib/malloc.c,
4805         * device/lib/realloc.c: moved definition of struct into sources
4806         * support/regression/tests/malloc.c: use void* for init_dynamic_memory()
4807
4808 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
4809
4810         * as/asx8051.dsp: corrected output directories
4811         * as/link/hc08: new directory for hc08 linker
4812         * as/hc08/aslink.h,             as/link/aslink.h,
4813         * as/hc08/aslink.mak,           as/link/hc08/aslink.mak,
4814         * as/hc08/clean.mk,             as/link/hc08/clean.mk,
4815         * as/hc08/link_hc08.dsp,        as/link/hc08/link_hc08.dsp,
4816         * as/hc08/lkaomf51.c,           as/link/hc08/lkaomf51.c,
4817         * as/hc08/lkarea.c,             as/link/hc08/lkarea.c,
4818         * as/hc08/lkdata.c,             as/link/hc08/lkdata.c,
4819         * as/hc08/lkelf.c,              as/link/hc08/lkelf.c,
4820         * as/hc08/lkihx.c,              as/link/hc08/lkihx.c,
4821         * as/hc08/lklibr.c,             as/link/hc08/lklibr.c,
4822         * as/hc08/lkmain.c,             as/link/hc08/lkmain.c,
4823         * as/hc08/lkmem.c,              as/link/hc08/lkmem.c,
4824         * as/hc08/lkrloc.c,             as/link/hc08/lkrloc.c,
4825         * as/hc08/lks19.c,              as/link/hc08/lks19.c,
4826         * as/hc08/Makefile.aslink,      as/link/hc08/Makefile.aslink,
4827         * as/hc08/Makefile.bcc,         as/link/hc08/Makefile.bcc,
4828         * as/hc08/Makefile.in,          as/link/hc08/Makefile.in,
4829         * as/link/hc08/conf.mk,
4830         * configure,
4831         * configure.in,
4832         * Makefile.in,
4833         * sdcc.dsw: moved hc08 linker to as/link/hc08
4834         * as/hc08/lkeval.c,     as/link/mcs51/lkeval.c,     as/link/lkeval.c,
4835         * as/hc08/lkhead.c,     as/link/mcs51/lkhead.c,     as/link/lkhead.c,
4836         * as/hc08/lklex.c,      as/link/mcs51/lklex.c,      as/link/lklex.c,
4837         * as/hc08/lklist.c,     as/link/mcs51/lklist.c,     as/link/lklist.c,
4838         * as/hc08/lknoice.c,    as/link/mcs51/lknoice.c,    as/link/lknoice.c,
4839         * as/hc08/lksym.c,      as/link/mcs51/lksym.c,      as/link/lksym.c,
4840         * as/link/mcs51/aslink.dsp,
4841         * as/link/mcs51/Makefile.in: factored out the common files
4842         * as/hc08/lkstore.c: deleted, use the one already in as/link/
4843         * as/clean.mk: extra cleaning common files
4844         * as/link/mcs51/strcmpi.c,      as/strcmpi.c: moved
4845         * as/link/mcs51/strcmpi.h: deleted, moved protoype to aslink.h
4846         * as/mcs51/asm.h: include sdccconf.h or sdcc_vc.h
4847
4848 2006-10-29 Raphael Neider <rneider AT web.de>
4849
4850         * src/pic/ralloc.c (newReg): create aliases for registers with
4851           multiple names to fix #1579535 and #1584001,
4852           (regWithIdx,dirregWithName): resolve aliases on lookup
4853         * src/pic/pcode.c (DoBankSelect): die with error message on failing
4854           bankselect
4855         * device/lib/pic/libdev/Makefile.in: move pseudo stack down to 0x4f
4856           to prevent build errors on small devices
4857
4858 2006-10-28 Raphael Neider <rneider AT web.de>
4859
4860         * src/pic/gen.c (genFunction,genCall): drop "same code page"
4861           assumption within interrupt handlers, fixes #1584940
4862         * src/pic/glue.c (pic14_constructAbsMap): mark absolute symbols as
4863           "emitted" to avoid emitting them again in udata
4864
4865 2006-10-27 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4866
4867         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
4868         Removed.
4869
4870 2006-10-26 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4871
4872         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
4873         Initialize uart only if SM0 and SM1 are zero.  Also, use flag to turn
4874         on/off CR to CRLF conversion.
4875
4876 2006-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4877
4878         * doc/sdccman.lyx: updated IRQ section
4879
4880 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4881
4882         * device/lib/serial_io.c: removed
4883         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c
4884         replacements for serial_io.c
4885
4886 2006-10-24 Maarten Brock <sourceforge.brock AT dse.nl>
4887
4888         * src/z80/main.c (_process_pragma, _parseOptions): fixed bug 1583318
4889
4890 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4891
4892         * device/lib/serial_io.c: Default putchar() and getchar() for
4893           mcs51 uses serial port.
4894
4895 2006-10-23 Maarten Brock <sourceforge.brock AT dse.nl>
4896
4897         * src/mcs51/gen.c (movc): improved check for 0 and 1, see RFE 1582704
4898
4899 2006-10-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4900
4901         * support/regression/ports/mcs51/support.c: smaller
4902         _sdcc_external_startup()
4903         * device/lib/mcs51/crtxclear.asm: don't check high byte of l_PSEG
4904
4905 2006-10-20 Maarten Brock <sourceforge.brock AT dse.nl>
4906
4907         * device/lib/gbz80/crt0.s,
4908         * device/lib/gbz80/crt0_rle.s,
4909         * device/lib/gbz80/div.s,
4910         * device/lib/gbz80/fstubs.s,
4911         * device/lib/gbz80/heap.s,
4912         * device/lib/gbz80/mul.s,
4913         * device/lib/gbz80/putchar.s,
4914         * device/lib/gbz80/stubs.s,
4915         * device/lib/z80/crt0.s,
4916         * device/lib/z80/crt0_rle.s,
4917         * device/lib/z80/div.s,
4918         * device/lib/z80/fstubs.s,
4919         * device/lib/z80/heap.s,
4920         * device/lib/z80/mul.s,
4921         * device/lib/z80/putchar.s,
4922         * device/lib/z80/stubs.s: reverted, I was mistaken
4923
4924 2006-10-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4925
4926         * src/mcs51/peeph.def: peephole 238.x added check for notvolatile
4927         * support/regression/ports/mcs51/support.c: removed race
4928         condition on TI in _putchar allowing to use serial port mode 0
4929
4930 2006-10-20 Borut Razem <borut.razem AT siol.net>
4931
4932         * debugger/mcs51/sdcdb.c: replaced isblank() with isspace()
4933
4934 2006-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
4935
4936         * device/lib/gbz80/crt0.s,
4937         * device/lib/gbz80/crt0_rle.s,
4938         * device/lib/gbz80/div.s,
4939         * device/lib/gbz80/fstubs.s,
4940         * device/lib/gbz80/heap.s,
4941         * device/lib/gbz80/mul.s,
4942         * device/lib/gbz80/putchar.s,
4943         * device/lib/gbz80/stubs.s,
4944         * device/lib/z80/crt0.s,
4945         * device/lib/z80/crt0_rle.s,
4946         * device/lib/z80/div.s,
4947         * device/lib/z80/fstubs.s,
4948         * device/lib/z80/heap.s,
4949         * device/lib/z80/mul.s,
4950         * device/lib/z80/putchar.s,
4951         * device/lib/z80/stubs.s: removed all leading underscores from area names
4952
4953 2006-10-17 Maarten Brock <sourceforge.brock AT dse.nl>
4954
4955         * support/regression/ports/mcs51/support.c: use highest baudrate so the
4956           regression tests are not waiting in the simulator for simulated
4957           transmission of debug output
4958
4959 2006-10-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4960
4961         * device/lib/printf_large.c: slightly smaller
4962         * doc/sdccman.lyx: do not use spaces within html links
4963
4964 2006-10-16 Borut Razem <borut.razem AT siol.net>
4965
4966         * configure.in, configure, sdccconf_in.h, src/SDCCglobal,
4967           debugger/mcs51/Makefile.in, debugger/mcs51/sdcdb.[ch],
4968           debugger/mcs51/aclocal.m4, debugger/mcs51/acinclide.m4,
4969           debugger/mcs51/config.h.in, debugger/mcs51/configure.in,
4970           debugger/mcs51/configure:
4971           [ 1185668 ] add gnu readline support to sdcdb - enabled
4972
4973 2006-10-16 Raphael Neider <rneider AT web.de>
4974
4975         * src/pic/pcode.c (BankSelect): another fix on (partial) BANKSELs,
4976           fixes #1577882, removes close to all banking optimizations
4977
4978 2006-10-15 Maarten Brock <sourceforge.brock AT dse.nl>
4979
4980         * src/SDCCsymt.c (checkSClass): no error for uninitialised absolute
4981           variables in code memory
4982         * support/regression/tests/absolute.c: added test for this
4983
4984 2006-10-15 Raphael Neider <rneider AT web.de>
4985
4986         * src/pic/pcode.c (InsertBankSel): suppress BANKSELs for one bank
4987           devices,
4988           (BankSelect): emit BANKSEL before touching linker-placed regs,
4989           fixes #1570934
4990
4991 2006-10-10 Raphael Neider <rneider AT web.de>
4992
4993         * src/SDCCmain.c (optionsTable): accept --stack-size for PICs,
4994         * src/pic/device.c (pic14_getSharebankSize,pic14_getSharebankAddress),
4995         * src/pic/main.c (_pic14_parseOptions),
4996         * src/pic/main.h: mostly reverted to previous state, now use results
4997             from SDCCmain.c's argument parsing
4998
4999 2006-10-10 Borut Razem <borut.razem AT siol.net>
5000
5001         * debugger/mcs51/break.[ch], debugger/mcs51/cmd.c,
5002           debugger/mcs51/sdcdb.[ch], debugger/mcs51/simi.c:
5003           [ 1185668 ] add gnu readline support to sdcdb -
5004           prepared for READLINE, not enabled yet,
5005           thanks to <tal.bav AT gmail.com>
5006
5007 2006-10-10 Raphael Neider <rneider AT web.de>
5008
5009         * src/pic16/pcode.c (pic16_pCode2str): use isACCESS_BANK macro
5010         * src/pic16/devices.inc,
5011         * device/include/pic16 (pic18f[24]620.h),
5012         * device/include/pic18fregs.h,
5013         * device/lib/pic16/pics.all,
5014         * device/lib/pic16/libdev/pic18f[24]{620,525}.c): added support for
5015             18f2620, 18f4620, 18f2525, and 18f4525 devices, thanks to
5016             Gary Plumbridge and Anton Strobl
5017
5018 2006-10-10 Raphael Neider <rneider AT web.de>
5019
5020         * src/pic/main.c (_pic14_parseOptions): added --stack-loc=NUM and
5021           --stack-siz=NUM options to configure the argument passing stack
5022         * src/pic/main.h: added stackLocation and stackSize to pic14_options_t
5023         * src/pic/device.c (mapRegister): catch out-of-memory SIGSEGVs,
5024           (pic14_getSharebankSize): obey --stack-siz=NUM,
5025           (pic14_getSharebankAddress): obey --stack-loc=NUM
5026
5027 2006-10-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5028
5029         * doc/sdccman.lyx: added to the manual
5030         * doc/figures/ddd_example.png: added (neither pdflatex nor
5031         most browsers seem to like the .eps file)
5032
5033 2006-10-06 Bernhard Held <bernhard AT bernhardheld.de>
5034
5035         * src/SDCCglue.c (tempfileandname): changed un*x tmp search paths
5036         to /tmp and /var/tmp acc. LSB
5037         * src/SDCCast.c (addCast): Fixed bug 1571231: promote in case of
5038         RESULT_TYPE_IFX
5039         * support/regression/tests/onebyte.c: added test
5040
5041 2006-10-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5042
5043         * src/mcs51/gen.c: emitcode for "add a,0x%02x" requires only 8 bits.
5044
5045 2006-10-05 Borut Razem <borut.razem AT siol.net>
5046
5047         * partially fixed [ 1570701 ] peephole - not replacing code from multiline macros,
5048           thanks to dfulab:
5049           - sdcc.dsw: changed property eol-style to CRLF
5050           - support/scripts/resource.rc: replaced references to "afxres.h" with "winres.h"
5051
5052 2006-10-04 Raphael Neider <rneider AT web.de>
5053
5054         * device/include/pic/{pic16f84.h,pic16f84a.h},
5055         * device/lib/pic/libdev/{pic16f84.c,pic16f84a.c}: added PORT[AB]_bits
5056           from patch #1522504, thanks to Robas Teodor
5057
5058 2006-10-02 Maarten Brock <sourceforge.brock AT dse.nl>
5059
5060         * as/link/z80/lkarea.c: essentially reverted lnksect() to #4380 which
5061           fixes bug 1566015
5062
5063 2006-10-01 Maarten Brock <sourceforge.brock AT dse.nl>
5064
5065         * src/pic16/glue.c (pic16emitMaps),
5066         * src/pic/glue.c (pic14emitMaps): hopefully fixed bug 1568779
5067         * device/lib/gets.c: fixed bug 1568829,thanks Philipp Krause
5068         * device/lib/pic16/libc/string/memcpypgm2ram.c,
5069         * device/lib/pic16/libc/string/memcpyram2ram.c: fixed bug 1568836, thanks
5070           Philipp Krause
5071         * as/mcs51/asmain.c (asmbl, newdot): fixed problems with absolute areas
5072         * as/link/mcs51/lkmem.c (summary2): reverted, do do count abs segments
5073
5074 2006-09-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5075
5076         * support/librarian/sdcclib.c: Added option -l.
5077         * as/link/mcs51/lkmem.c: don't use absolute segments to compute memory
5078           usage totals.
5079         * device/lib/make51lib.bat: added.  Allows building mcs51 libraries easily
5080           using Windows command prompt.
5081
5082 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
5083
5084         * device/lib/libsdcc.lib: added module rand
5085         * src/ds390/ralloc.c (rematStr),
5086         * src/hc08/ralloc.c (rematStr),
5087         * src/mcs51/ralloc.c (rematStr),
5088         * src/z80/ralloc.c (rematStr): made output more consistent
5089         * src/mcs51/gen.c: cosmetic changes
5090
5091 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
5092
5093         * src/port.h: added mem.cabs_name to PORT
5094         * src/ds390/main.c,
5095         * src/hc08/main.c,
5096         * src/mcs51/main.c,
5097         * src/pic16/main.c,
5098         * src/pic/main.c,
5099         * src/xa51/main.c,
5100         * src/z80/main.c: added cabs_name initializers
5101         * src/SDCCglue.c (emitStaticSeg): allocate and initialize absolute
5102           constants
5103           (emitMaps): emit absolutes in code memory into cabs_name
5104         * src/SDCCmem.c,
5105         * src/SDCCmem.h: added memory map c_abs and defined CABS_NAME
5106         * src/ds390/gen.c (genCodePointerGet): fixed bug if left is a literal
5107         * support/regression/fwk/include/testfwk.h: added define for at
5108         * support/regression/tests/absolute.c: added, new
5109
5110 2006-09-29 Maarten Brock <sourceforge.brock AT dse.nl>
5111
5112         * src/mcs51/gen.c (genPlusIncr, genMinusDec, genAddrOf): small
5113           optimizations, see also patch 887161 by Stas Sergeev
5114         * src/mcs51/peeph.def(104, 207, 209, 212): disabled as they do not seem
5115           to be necessary anymore,
5116           (102, 103, 104, 127): renamed all occurances of bp to _bp
5117
5118 2006-09-27 Maarten Brock <sourceforge.brock AT dse.nl>
5119
5120         * device/include/mcs51/at89c51snd1c.h: fixed MSK_SREQ definition
5121           thanks Weston T. Schmidt for patch 1555221
5122         * src/mcs51/peeph.def: renamed rule 257 to 257.a, added 257.b
5123         * src/SDCCicode.c(geniCodeMultiply): small optimization
5124
5125 2006-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
5126
5127         * device/include/stdlib.h: added rand prototypes
5128         * device/lib/rand.c: new, added
5129         * device/lib/Makefile.in: added rand.c
5130         * src/z80/peeph.def,
5131         * src/z80/peeph-gbz80.def,
5132         * src/z80/peeph-z80.def: updated conditonals, fixed bug 1565908
5133
5134 2006-09-20 Raphael Neider <rneider AT web.de>
5135
5136         * device/lib/pic16/libio/i2c/i2cnack.c (i2c_nack): fixed ACKDT bit
5137
5138 2006-09-19 Maarten Brock <sourceforge.brock AT dse.nl>
5139
5140         * as/link/aslink.h: cosmetic changes
5141         * as/link/mcs51/Makefile.in,
5142         * as/link/z80/Makefile.in: fixed build on CF where VPATH is used
5143
5144 2006-09-17 Maarten Brock <sourceforge.brock AT dse.nl>
5145
5146         * as/link/aslink.h,
5147         * as/link/mcs51/aslink.h,
5148         * as/link/z80/aslink.h: merged and moved to as/link/
5149         * as/link/lkstore.c,
5150         * as/link/mcs51/lkstore.c: moved to as/link/
5151         * as/link/clean.mk: remove *.o
5152         * as/link/mcs51/alloc.h: deleted
5153         * as/link/mcs51/lkarea.c: added lnksect prototype
5154         * as/link/mcs51/lkdata.c,
5155         * as/link/mcs51/lklex.c,
5156         * as/link/mcs51/lkmain.c: renamed as_getline to lk_getline
5157         * as/link/mcs51/lkmem.c,
5158         * as/link/mcs51/lknoice.c: removed include strcmpi.h
5159         * as/link/mcs51/lksym.c: include stdlib.h instead of malloc.h or alloc.h
5160         * as/link/mcs51/aslink.dsp,
5161         * as/link/mcs51/Makefile.aslink,
5162         * as/link/mcs51/Makefile.bcc,
5163         * as/link/mcs51/Makefile.in: updated for moved files
5164         * as/link/z80/lkarea.c,
5165         * as/link/z80/lkhead.c,
5166         * as/link/z80/lklex.c,
5167         * as/link/z80/lklibr.c,
5168         * as/link/z80/lklist.c,
5169         * as/link/z80/lkmain.c,
5170         * as/link/z80/lkrloc.c,
5171         * as/link/z80/lksym.c: synced with mcs51
5172         * as/link/z80/lkdata.c,
5173         * as/link/z80/lkeval.c,
5174         * as/link/z80/lkihx.c,
5175         * as/link/z80/lks19.c: cosmetic changes
5176         * as/link/z80/Makefile.in,
5177         * as/link/z80/linkgbz80.dsp,
5178         * as/link/z80/linkz80.dsp: updated for moved files
5179
5180 2006-09-16 Borut Razem <borut.razem AT siol.net>
5181
5182         * debugger/mcs51/sdcdb.c: partially fixed
5183           [ 1203664 ] sdcdb fails to open files w. two "." periods
5184         * debugger/mcs51/simi.c, debugger/mcs51/symtab.c,
5185           debugger/mcs51/symtab.h: fixed indenting
5186         * configure.in, configure: up to date with latest Maarten's changes
5187
5188 2006-09-15 Maarten Brock <sourceforge.brock AT dse.nl>
5189
5190         as/link/mcs51
5191         as/aslink.dsp,                  as/link/mcs51/aslink.dsp,
5192         as/link/mcs51/aslink.h,         as/mcs51/aslink.h,
5193         as/link/mcs51/aslink.mak,       as/mcs51/aslink.mak,
5194         as/link/mcs51/lkaomf51.c,       as/mcs51/lkaomf51.c,
5195         as/link/mcs51/lkarea.c,         as/mcs51/lkarea.c,
5196         as/link/mcs51/lkdata.c,         as/mcs51/lkdata.c,
5197         as/link/mcs51/lkeval.c,         as/mcs51/lkeval.c,
5198         as/link/mcs51/lkhead.c,         as/mcs51/lkhead.c,
5199         as/link/mcs51/lkihx.c,          as/mcs51/lkihx.c,
5200         as/link/mcs51/lklex.c,          as/mcs51/lklex.c,
5201         as/link/mcs51/lklibr.c,         as/mcs51/lklibr.c,
5202         as/link/mcs51/lklist.c,         as/mcs51/lklist.c,
5203         as/link/mcs51/lkmain.c,         as/mcs51/lkmain.c,
5204         as/link/mcs51/lkmem.c,          as/mcs51/lkmem.c,
5205         as/link/mcs51/lknoice.c,        as/mcs51/lknoice.c,
5206         as/link/mcs51/lkrloc.c,         as/mcs51/lkrloc.c,
5207         as/link/mcs51/lks19.c,          as/mcs51/lks19.c,
5208         as/link/mcs51/lkstore.c,        as/mcs51/lkstore.c,
5209         as/link/mcs51/lksym.c,          as/mcs51/lksym.c,
5210         as/link/mcs51/Makefile.aslink,  as/mcs51/Makefile.aslink,
5211         as/link/mcs51/alloc.h,
5212         as/link/mcs51/clean.mk,
5213         as/link/mcs51/conf.mk,
5214         as/link/mcs51/Makefile.bcc,
5215         as/link/mcs51/Makefile.in,
5216         as/link/mcs51/readme.390,
5217         as/link/mcs51/strcmpi.c,
5218         as/link/mcs51/strcmpi.h,
5219         as/mcs51/clean.mk,
5220         as/mcs51/Makefile.bcc,
5221         as/mcs51/Makefile.in,
5222         configure,
5223         Makefile.in,
5224         sdcc.dsw: moved mcs51 linker to as/link/mcs51
5225
5226 2006-09-14 Maarten Brock <sourceforge.brock AT dse.nl>
5227
5228         * as/link,
5229         * as/link/Makefile.in,
5230         * as/link/z80/linkgbz80.dsp,
5231         * as/link/z80/linkz80.dsp,
5232         * configure,
5233         * link,
5234         * link/clean.mk,
5235         * link/Makefile.in,
5236         * link/README,
5237         * link/z80,
5238         * link/z80/aslink.h,
5239         * link/z80/clean.mk,
5240         * link/z80/conf.mk,
5241         * link/z80/linkgbz80.dsp,
5242         * link/z80/linkz80.dsp,
5243         * link/z80/lkarea.c,
5244         * link/z80/lkdata.c,
5245         * link/z80/lkeval.c,
5246         * link/z80/lkgb.c,
5247         * link/z80/lkgg.c,
5248         * link/z80/lkhead.c,
5249         * link/z80/lkihx.c,
5250         * link/z80/lklex.c,
5251         * link/z80/lklibr.c,
5252         * link/z80/lklist.c,
5253         * link/z80/lkmain.c,
5254         * link/z80/lkrloc.c,
5255         * link/z80/lks19.c,
5256         * link/z80/lksym.c,
5257         * link/z80/Makefile.in,
5258         * Makefile.in,
5259         * sdcc.dsw: moved link/ to as/link/
5260
5261 2006-09-11 Maarten Brock <sourceforge.brock AT dse.nl>
5262
5263         * as/mcs51/i51mch.c (machine): fixed warning
5264
5265 2006-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
5266
5267         * as/mcs51/i51mch.c (machine): S_DJNZ fixed bug 1554318
5268
5269 2006-09-09 Borut Razem <borut.razem AT siol.net>
5270
5271         * debugger/mcs51/sdcdb.c, debugger/mcs51/simi.c:
5272           sdcdb WIN32 native port
5273         * src/clean.mk: fixed
5274
5275 2006-09-08 Borut Razem <borut.razem AT siol.net>
5276
5277         * doc/sdccman.lyx: SDCDB and ucSim are available on Win32 platforms.
5278
5279 2006-09-08 Raphael Neider <rneider AT web.de>
5280
5281         * src/pic16/main.c (_pic16_linkEdit,pic16_linkCmd),
5282         * src/pic/main.c(_pic14_do_link, linkCmd): pass "-w" and "-r"
5283             to gplink to disable processor mismatch warning and to allow
5284             the use of devices with only aliased (shared) memory banks,
5285           (_pic16_genAssemblerPreamble): include pXXX.inc on --mplab-comp
5286
5287 2006-09-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5288
5289         * doc/sdccman.lyx: Some re-formating plus example on using
5290           #pragma preproc_asm +/-
5291
5292 2006-09-07 Borut Razem <borut.razem AT siol.net>
5293
5294         * support/scripts/sdcc.nsi: added SDCDB executables in a separate
5295           section
5296
5297 2006-09-06 Borut Razem <borut.razem AT siol.net>
5298
5299         * support/scripts/sdcc.nsi: fixed Error: unterminated string parsing
5300           line at sdcc.nsi:153
5301         * sdcc/debugger/mcs51/simi.c: argsToCmdLine() fixes
5302
5303 2006-09-05 Borut Razem <borut.razem AT siol.net>
5304
5305         * configure.in, configure: support for winsock2
5306         * debugger/mcs51/break.h, debugger/mcs51/cmd.c,
5307           debugger/mcs51/cmd.h, debugger/mcs51/sdcdb.c,
5308           debugger/mcs51/sdcdb.h, debugger/mcs51/simi.c,
5309           debugger/mcs51/simi.h, debugger/mcs51/symtab.c,
5310           debugger/mcs51/symtab.h: sdcdb WIN32 native port
5311
5312 2006-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
5313
5314         * src/SDCCopt.c (cnvToFcall): fixed bug 1551947 by updating OP_USES
5315           and OP_DEFS
5316         * support/regression/tests/bug1551947.c: new, added
5317         * src/SDCCsymt.h: strings are char* not byte*
5318
5319 2006-09-05 Raphael Neider <rneider AT web.de>
5320
5321         * device/lib/pic16/libdev/pic18f4550.c,
5322           device/include/pic16/pic18f4550.h: added PORTD/TRISD
5323             declarations/definitions from patch #1520949
5324
5325 2006-09-05 Raphael Neider <rneider AT web.de>
5326
5327         * src/pic16/gen.c (genPackBits): fix assignment to 8-bit,
5328           byte-aligned bitfields, fixes #1539278
5329
5330 2006-09-05 Raphael Neider <rneider AT web.de>
5331
5332         * src/pic/gen.c (genReceive): skip unreferenced arguments,
5333           fixes #1544120
5334
5335 2006-09-04 Borut Razem <borut.razem AT siol.net>
5336
5337         * support/scripts/sdcc.nsi: move ucSim executables to a separate section
5338         * support/scripts/sdcc_cygwin_mingw32: don't disable ucsim,
5339           -mno-cygwin is a part of the compiler name
5340         * support/scripts/sdcc_mingw32: don't disable ucsim
5341
5342 2006-09-03 Borut Razem <borut.razem AT siol.net>
5343
5344         * sdcc.spec: corrected for 2.6.0. Thanks to Christer Weinigel.
5345         * device/lib/Makefile.in device/lib/clean.mk: small but essential corrections
5346
5347 2006-09-03 Raphael Neider <rneider AT web.de>
5348
5349         * src/pic/ralloc.c,
5350         * src/pic/pcode.c (InitReuseRegs): allocate registers with pseudo
5351           indices >= 0x1000 to disambiguate them from fixed regs __at(addr),
5352           fixes #1550049
5353
5354 2006-09-01 Borut Razem <borut.razem AT siol.net>
5355
5356         * sim/ucsim/cmd.src/cmdutil.cc: #include <sys/time.h> and <unistd.h>
5357           to make ppc-osx happy
5358
5359 2006-08-31 Borut Razem <borut.razem AT siol.net>
5360
5361         * sim/ucsim/cmd.src/newcmdposix.cc: #include <assert.h>
5362         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
5363         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
5364         * support/regression/ports/ds390/spec.mk,
5365           support/regression/ports/mcs51/spec.mk,
5366           support/regression/ports/xa51/spec.mk: introduced DEV_NULL variable.
5367           To run regression tests in mingw environment:
5368           make DEV_NULL=NUL CC=gcc
5369
5370 2006-08-30 Borut Razem <borut.razem AT siol.net>
5371
5372         * sim/ucsim/cmd.src/newcmdposix.cc, sim/ucsim/cmd.src/newcmdposixcl.h,
5373           sim/ucsim/cmd.src/newcmdwin32.cc, sim/ucsim/cmd.src/newcmdwin32cl.h,
5374           sim/ucsim/app.cc, sim/ucsim/appcl.h, sim/ucsim/configure,
5375           sim/ucsim/configure.in, sim/ucsim/ddconfig_in.h, sim/ucsim/error.cc,
5376           sim/ucsim/errorcl.h, sim/ucsim/option.cc, sim/ucsim/optioncl.h,
5377           sim/ucsim/utils.cc, sim/ucsim/utils.h, sim/ucsim/cmd.src/Makefile.in,
5378           sim/ucsim/avr.src/avr.cc, sim/ucsim/avr.src/avrcl.h,
5379           sim/ucsim/cmd.src/bp.cc, sim/ucsim/cmd.src/bpcl.h,
5380           sim/ucsim/cmd.src/cmdconf.cc, sim/ucsim/cmd.src/cmdgui.cc,
5381           sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/cmdset.cc,
5382           sim/ucsim/cmd.src/cmdsetcl.h, sim/ucsim/cmd.src/cmdstat.cc,
5383           sim/ucsim/cmd.src/cmduc.cc, sim/ucsim/cmd.src/cmduccl.h,
5384           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
5385           sim/ucsim/cmd.src/command.cc, sim/ucsim/cmd.src/commandcl.h,
5386           sim/ucsim/cmd.src/get.cc, sim/ucsim/cmd.src/getcl.h,
5387           sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/newcmd.cc,
5388           sim/ucsim/cmd.src/newcmdcl.h, sim/ucsim/cmd.src/set.cc,
5389           sim/ucsim/cmd.src/show.cc, sim/ucsim/cmd.src/timer.cc,
5390           sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
5391           sim/ucsim/s51.src/Makefile.in, sim/ucsim/s51.src/interrupt.cc,
5392           sim/ucsim/s51.src/interruptcl.h, sim/ucsim/s51.src/pca.cc,
5393           sim/ucsim/s51.src/pcacl.h, sim/ucsim/s51.src/port.cc,
5394           sim/ucsim/s51.src/portcl.h, sim/ucsim/s51.src/serial.cc,
5395           sim/ucsim/s51.src/serialcl.h, sim/ucsim/s51.src/timer0.cc,
5396           sim/ucsim/s51.src/timer0cl.h, sim/ucsim/s51.src/timer1.cc,
5397           sim/ucsim/s51.src/timer1cl.h, sim/ucsim/s51.src/timer2.cc,
5398           sim/ucsim/s51.src/timer2cl.h, sim/ucsim/s51.src/uc390.cc,
5399           sim/ucsim/s51.src/uc390cl.h, sim/ucsim/s51.src/uc390hw.cc,
5400           sim/ucsim/s51.src/uc390hwcl.h, sim/ucsim/s51.src/uc51.cc,
5401           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/wdt.cc,
5402           sim/ucsim/s51.src/wdtcl.h, sim/ucsim/sim.src/hw.cc,
5403           sim/ucsim/sim.src/hwcl.h, sim/ucsim/sim.src/mem.cc,
5404           sim/ucsim/sim.src/memcl.h, sim/ucsim/sim.src/obsolete.cc,
5405           sim/ucsim/sim.src/obsolete.h, sim/ucsim/sim.src/sim.cc,
5406           sim/ucsim/sim.src/simcl.h, sim/ucsim/sim.src/stack.cc,
5407           sim/ucsim/sim.src/stackcl.h, sim/ucsim/sim.src/test_mem_speed.cc,
5408           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
5409           sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
5410           sim/ucsim/z80.src/z80.cc, sim/ucsim/z80.src/z80cl.h:
5411           ucsim WIN32 native port
5412
5413 2006-08-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5414
5415         * doc/sdccman.lyx: added note on dynamic memory heap initialization
5416
5417 2006-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
5418
5419         * src/mcs51/gen.c (genAnd, genOr, genXor): fixed bug 1546986
5420         * src/ds390/gen.c (aopGetUsesAcc): handle AOP_DPTR2 and AOP_DPTRn too
5421
5422 2006-08-26 Maarten Brock <sourceforge.brock AT dse.nl>
5423
5424         * src/ds390/gen.c (genAnd, genOr, genXor): fixed bug 1546986
5425         * support/regression/tests/bug1546986.c: new, added
5426         * as/mcs51/.cvsignore,
5427         * debugger/mcs51/.cvsignore,
5428         * src/.cvsignore: deleted
5429
5430 2006-08-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5431
5432         * device/include/mcs51/P89c51RD2.h: fixed bug 1546936 (error in sbit
5433           definitions)
5434
5435 2006-08-20 Borut Razem <borut.razem AT siol.net>
5436
5437         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h:
5438           removed cl_listen_console::match(), cl_console::match(),
5439           restructured cl_commander::proc_input()
5440
5441 2006-08-16 Borut Razem <borut.razem AT siol.net>
5442
5443         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h,
5444           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
5445           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/uc.cc: code cleaning
5446
5447 2006-08-14 Borut Razem <borut.razem AT siol.net>
5448
5449         * support/regression/Makefile.in,
5450           support/regression/ports/pic14/gpsim.cmd,
5451           support/regression/ports/pic14/spec.mk,
5452           support/regression/ports/pic14/support.c:
5453           added pic14 regression test
5454
5455 2006-08-14 Maarten Brock <sourceforge.brock AT dse.nl>
5456
5457         * as/doc/asxhtm.html: documented changed ABS behaviour
5458         * as/doc/README: fixed some typos
5459
5460 2006-08-13 Maarten Brock <sourceforge.brock AT dse.nl>
5461
5462         * support/regression/tests/float_trans.c: disabled test if __STDC_IEC_559__
5463           not defined on host
5464
5465 2006-08-12 Borut Razem <borut.razem AT siol.net>
5466
5467         * support/regression/fwk/include/testfwk.h,
5468           support/regression/fwk/lib/testfwk.c,
5469           support/regression/generate-cases.py,
5470           support/regression/Makefile.in:
5471           regression test framework does not depend on function pointers and
5472           variable arguments
5473
5474 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
5475
5476         * device/include/stddef.h: c temporary hack to fix bug 1518273
5477
5478 2006-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5479
5480         * device/include/mcs51/cc2510fx.h: added
5481         * src/z80/z80.dsp, src/gbz80/gbz80.dsp: added support/Util/strcmpi.ch
5482           to projects.
5483
5484 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
5485
5486         * as/z80/assym.c (mlookup): ignore case when looking up mnemonics
5487         * as/z80/Makefile.in: added strcmpi.c
5488         * as/z80/z80adr.c: added upper case registers and lower case conditionals
5489         * support/Util/strcmpi.ch: added with intention to remove from mcs51/hc08
5490
5491 2006-08-08 Maarten Brock <sourceforge.brock AT dse.nl>
5492
5493         * device/lib/gbz80/asm_strings.s,
5494         * device/lib/gbz80/crt0_rle.s,
5495         * device/lib/gbz80/div.s,
5496         * device/lib/gbz80/mul.s,
5497         * device/lib/gbz80/shift.s,
5498         * device/lib/z80/asm_strings.s,
5499         * device/lib/z80/crt0_rle.s,
5500         * device/lib/z80/div.s,
5501         * device/lib/z80/mul.s,
5502         * device/lib/z80/shift.s: changed to all lower case menmonics except the
5503           flags which are all upper case
5504
5505 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
5506
5507         * as/z80/asm.h: made CASE_SENSITIVE 1
5508         * link/z80/aslink.h: made CASE_SENSITIVE 1
5509         * src/z80/gen.c (throughout): made all conditionals upper case
5510         * support/regression/tests/bug1503067.c: new
5511
5512 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
5513
5514         * src/z80/gen.c (aopPut): fixed bug !*ixy should be !*iyx,
5515           (shiftIntoPair): added case 2 for PAIR_IY,
5516           (setupToPreserveCarry): replaced parameters with iCode and check if
5517            PAIR_DE is in use to fix bug 1399290,
5518           (genPlus, genMinus): updated call to setupToPreserveCarry
5519         * support/regression/tests/bug1399290.c: new
5520
5521 2006-08-06 Maarten Brock <sourceforge.brock AT dse.nl>
5522
5523         * device/lib/Makefile.in (Z80SOURCES): enabled float support
5524         * sim/ucsim/z80.src/inst.cc (inst_rst): generate breakpoint on RST8,ACC==0
5525         * src/ds390/gen.c (shiftRLong),
5526         * src/hc08/gen.c (shiftLLong, shiftRLong): fixed bug 1533966
5527         * src/mcs51/gen.c (sameReg): changed to sameByte,
5528           (xch_a_aopGet): new,
5529           (shiftL2Left2Result, shiftR2Left2Result, shiftRLeftOrResult, shiftLLong,
5530            shiftRLong): fixed bug 1533966
5531         * src/z80/gen.c (shiftR2Left2Result, shiftL2Left2Result, genlshTwo,
5532           genLeftShiftLiteral, genrshTwo, genRightShiftLiteral): fixed bug 1533966
5533         * support/regression/Makefile.in: disabled z80, enabled ucz80
5534         * support/regression/tests/float_trans.c: enabled test for z80 and host
5535         * support/regression/tests/shifts2.c: new, for testing bug 1533966
5536
5537 2006-08-01 Borut Razem <borut.razem AT siol.net>
5538
5539         * src/mcs51/gen.c, src/dc390/gen.c: fixed warning:
5540           comparison is always false due to limited range of data type
5541           on PPC64 machine (openpower-linux1) where "char = unsigned char"
5542
5543 2006-08-01 Maarten Brock <sourceforge.brock AT dse.nl>
5544
5545         * sim/ucsim/hc08.src/hc08mac.h: removed faulty and unused add_u16_disp
5546         * sim/ucsim/hc08.src/hc08.cc: removed faulty and unused int8
5547         * sim/ucsim/z80.src/z80mac.h (add_u16_disp): use explicit signed char cast
5548         * sim/ucsim/z80.src/z80.cc: removed faulty and unused int8
5549
5550 2006-07-31 Borut Razem <borut.razem AT siol.net>
5551
5552         * sim/ucsim/configure, sim/ucsim/cmd.src/newcmdcl.h,
5553           sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/cmdutil.cc,
5554           sim/ucsim/z80.src/Makefile.in, sim/ucsim/configure.in,
5555           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/hc08.src/hc08.cc,
5556           sim/ucsim/ddconfig_in.h, sim/ucsim/s51.src/Makefile.in,
5557           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/serialcl.h,
5558           sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/serial.cc,
5559           sim/ucsim/app.cc, sim/ucsim/avr.src/Makefile.in:
5560           enable ucsim mingw compilation. Serial port is disabled,
5561           since it uses termios.h API, which is not available on native
5562           WIN32
5563
5564 2006-07-31 Borut Razem <borut.razem AT siol.net>
5565
5566         * Small Device C Compiler 2.6.0 released
5567         * support/scripts/sdcc.nsi: added FULL_DOC option
5568         * .version, doc/sdccman.lyx: changed sdcc version to 2.6.1
5569
5570 2006-07-28 Borut Razem <borut.razem AT siol.net>
5571
5572         * support/scripts/sdcc.nsi: remove $INSTDIR/include/asm/pic16/*.h
5573         * doc/INSTALL.txt: updated
5574
5575 2006-07-27 Borut Razem <borut.razem AT siol.net>
5576
5577         * device/lib/pic/Makefile.in, device/lib/pic/Makefile.subdir,
5578           device/lib/pic/libdev/Makefile.in: fixed bug
5579           [ 1438354 ] pic libsdcc: distclean doesn't work
5580         * device/lib/pic16/Makefile.in, device/lib/pic16/Makefile.subdir,
5581           device/lib/pic16/libio/Makefile.in: fixed bug
5582           [ 1438344 ] pic16 lib: clean doesn't work properly
5583         * doc/knownbugs.html removed [ 1438354 ] and [ 1438344 ] from the list
5584
5585 2006-07-26 Maarten Brock <sourceforge.brock AT dse.nl>
5586
5587         * device/lib/pic/libsdcc/fsdiv.c,
5588         * device/lib/pic/libsdcc/fsmul.c,
5589         * device/lib/pic16/libsdcc/float/fsdiv.c,
5590         * device/lib/pic16/libsdcc/float/fsmul.c,
5591         * device/lib/_fsdiv.c,
5592         * device/lib/_fsmul.c: bugfix, handle too large and too small numbers
5593         * support/regression/tests/bug1520966.c: added
5594         * doc/knownbugs.html: removed [ 1520966 ] from the list
5595
5596 2006-07-25 Borut Razem <borut.razem AT siol.net>
5597
5598         * configure.in, configure, sdccconf_in.h: fixed bug
5599           [ 1519095 ] regression test onebyte.c fails on ppc64 host
5600         * doc/knownbugs.html: removed [ 1519095 ] from the list
5601
5602 2006-07-25 Maarten Brock <sourceforge.brock AT dse.nl>
5603
5604         * doc/knownbugs.html: added, contains list of known bugs at release
5605         * device/include/mcs51/compiler.h: fixed SFR32 for SDCC
5606
5607 2006-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
5608
5609         * device/include/mcs51/compiler.h: added SFRX for xdata based special
5610           function registers and corrected defaults with additional warning
5611         * device/lib/malloc.c: cosmetic changes
5612         * device/lib/realloc.c: bugfix for bug #1496907, Thanks Efim Monyak
5613         * src/ds390/ralloc.c (getRegBitNoSpil): reenabled,
5614           (fillGaps): and used it
5615
5616 2006-07-20 Raphael Neider <rneider AT web.de>
5617
5618         * src/pic/device.c (addMemRange,assignRegister): suppress verbose
5619           output unless SDCCPICDEBUG is set
5620         * device/lib/pic16/Makefile.rules (%.lib target): suppress verbose
5621           output if SILENT is set
5622
5623 2006-07-11 Borut Razem <borut.razem AT siol.net>
5624
5625         * doc/README.txt: updated
5626
5627 2006-07-10 Borut Razem <borut.razem AT siol.net>
5628
5629         * support/scripts/sdcc.nsi: added device/include/asm/pic/features.h and
5630           device/lib/src/pic/libm/*.c and device/lib/src/pic16/libsdcc/stack/*.S
5631           in WIN32 installation
5632         * .version, sdcc.spec, doc/sdccman.lyx: changed sdcc version to 2.6.0 -
5633           release candidate 1
5634
5635 2006-07-08 Maarten Brock <sourceforge.brock AT dse.nl>
5636
5637         * device/include/mcs51/XC866.h: added sbit definitions for Px_x, P1_x, P2_x
5638         * src/pic16/glue.c (initPointer): fixed bug 1496419 for pic16
5639
5640 2006-07-06 Maarten Brock <sourceforge.brock AT dse.nl>
5641
5642         * src/hc08/gen.c (genAddrOf): fixed bug when offset on stack is >127
5643
5644 2006-07-06 Borut Razem <borut.razem AT siol.net>
5645
5646         * support/regression/tests/bitfields.c:
5647           fixed bug [ 1518322 ] regression test bitfields fails on ppc hosts
5648         * support/regression/tests/constantRange.c:
5649           fixed bug [ 1518317 ] regression test constantRange fails on alpha host
5650
5651 2006-07-04 Borut Razem <borut.razem AT siol.net>
5652
5653         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in,
5654           src/port.mk,
5655           src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
5656           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
5657           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
5658           reverted changes from 2006-07-03
5659         * Makefile.common.in: added @CPPFLAGS@ to CPPFLAGS
5660         * support/regression/Makefile.in, support/regression/ports/host/spec.mk:
5661           added CPPFLAGS, used by the host port
5662
5663 2006-07-03 Bernhard Held <bernhard AT bernhardheld.de>
5664
5665         * support/regression/valdiag/tests/switch.c,
5666         * support/regression/valdiag/tests/constantRange.c: adapted to gcc 4
5667         * support/regression/tests/libmullong.c: fixed for host
5668         * support/regression/ports/host/spec.mk: disable all warnings for host,
5669         SDCC runs with --less-pedantic too
5670
5671 2006-07-03 Borut Razem <borut.razem AT siol.net>
5672
5673         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in:
5674           defined CPPFLAGS
5675         * src/port.mk: defined CPPFLAGS, renamed to src/port.mk.in
5676         * src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
5677           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
5678           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
5679           include ../port.mk
5680         * sim/ucsim/main_in.mk, sim/ucsim/avr.src/Makefile.in,
5681           sim/ucsim/gui.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
5682           sim/ucsim/s52.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
5683           sim/ucsim/xa.src/Makefile.in: ignore header files for dependencies
5684
5685 2006-07-02 Raphael Neider <rneider AT web.de>
5686
5687         * src/pic16/devices.inc,
5688         * device/include/pic16/pic18fregs.h,
5689         * device/include/pic16/pic18f4550.h,
5690         * device/lib/pic16/pics.all,
5691         * device/lib/pic16/libdev/pic18f4550.c: added support for 18f4550
5692
5693 2006-07-01 Bernhard Held <bernhard AT bernhardheld.de>
5694
5695         * as/hc08/lkaomf51.c (OutputName),
5696         * as/mcs51/lkaomf51.c (OutputName),
5697         * as/z80/asmain.c (asmbl),
5698         * src/ds390/main.c (asmLineNodeFromLineNode),
5699         * src/hc08/ralloc.c (hc08_assignRegisters),
5700         * src/mcs51/main.c (asmLineNodeFromLineNode),
5701         * src/xa51/ralloc.c (checkRegMask),
5702         * src/xa51/gen.c (emitcode),
5703         * src/z80/gen.c (_emit2),
5704         * src/SDCCast.c (searchLitOp),
5705         * src/SDCCglobl.h,
5706         * support/packihx/packihx.c,
5707         * support/Util/MySystem.c (split_command): fix gcc 4 warnings
5708         * src/ds390/gen.c (aopPutUsesAcc),
5709         * src/ds390/ralloc.c (getRegBitNoSpil): unused, therefore disabled
5710         * support/regression/tests/libmullong.c (mullong_wrapper),
5711         * src/SDCCsymt.c (powof2),
5712         * src/SDCCast.c,
5713         * src/SDCCicode.c: renamed TYPE_WORD by TYPE_TARGET_INT and so on
5714         * src/SDCCsymt.h: added TYPE_TARGET_*
5715         * src/SDCCutil.c (doubleFromFixed16x16, fixed16x16FromDouble),
5716         * src/SDCCutil.h (doubleFromFixed16x16, fixed16x16FromDouble): moved to
5717         SDCCast because 1) header problems 2) this is the right place
5718         * src/SDCCast.c (doubleFromFixed16x16, fixed16x16FromDouble): added
5719         * src/SDCCval.h (doubleFromFixed16x16, fixed16x16FromDouble): added
5720         prototype
5721
5722 2006-06-29 Bernhard Held <bernhard AT bernhardheld.de>
5723
5724         * src/SDCCicode.h: removed buggy semicolon in unused macro
5725         * src/SDCClrange.c (findPrevUseSym, rlivePoint): fixed bug #1486853,
5726         search for previous definiton of auto symbols too,
5727         (findPrevUse): fixed logic of emitWarnings
5728
5729 2006-06-26 Raphael Neider <rneider AT web.de>
5730
5731         * src/pic16/gen.c (genFunction, genEndFunction): also preserve
5732           PCLATH and PCLATU on interrupts, potentially fixes #1505141
5733
5734 2006-06-25 Raphael Neider <rneider AT web.de>
5735
5736         * device/lib/pic/libm: NEW, added math library functions
5737         * device/lib/pic/libsdcc: NEW; added float support functions
5738         * device/lib/pic/{Makefile.in,configure.in,configure}: added libm/
5739         * device/include/pic/{limits.h,errno.h,sdcc-lib.h,float.h,math.h}:
5740           NEW, added math related headers
5741         * device/include/asm/pic/features.h: NEW
5742         * src/pic/gen.c (emitpcode_real): emit warning on NULL pCodeOp,
5743           (popGet): allow larger offsets for AOP_PCODE,
5744           (genDataPointerSet): handle literals explicitly, more debug output,
5745           (genAssign): fixed for float using aopLiteral ;-)
5746         * src/pic/glue.c (pic14createInterruptVect): inserted pagesel before
5747           GOTO initialisation routine
5748         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): set wasUsed
5749           flag on registers, fixes #1469043 (local variables do not work)
5750         * src/pic/main.c (_pic14_do_link),
5751         * src/pic16/main.c (_pic16_linkEdit): use fullDstFileName if
5752           available
5753
5754 2006-06-25 Borut Razem <borut.razem AT siol.net>
5755
5756         * device/lib/pic16/libc/stdio/sprintf.c: return the number of
5757           characters printed (not including the trailing '\0' used to end
5758           output to strings). Problem detected in regression test bug-927659.c.
5759           NOTE: printf() family functions should return int instead
5760           unsigned int!
5761         * device/lib/pic16/libc/stdio/vfprintf.c: "%%" prints "%", unknown
5762           specifier are printed as themselves
5763         * sdcc/support/regression/tests/bug1057979.c: pic16 printf doesn't
5764           support flags, width and precision specifiers
5765
5766 2006-06-24 Borut Razem <borut.razem AT siol.net>
5767
5768         * sdcc/support/regression/tests/bitvars.c: added gbz80, pic16 and pic16
5769           to the list of sdcc tagrets not supporting bit type
5770         * sdcc/support/regression/tests/bug-905992.c.c: excluded regression
5771           testfor pic16 due to bug:
5772           [ 1511794 ] pic16: regression test bug-895992.c fails
5773
5774 2006-06-24 Maarten Brock <sourceforge.brock AT dse.nl>
5775
5776         * src/mcs51/gen.c (genCmp): optimization for RFE 1162453
5777         * src/SDCCglue.c (initPointer), fixed bug 1496419
5778         * support/regression/tests/bug1496419.c: new, added
5779
5780 2006-06-22 Borut Razem <borut.razem AT siol.net>
5781
5782         * support/regression/ports/pic16/support.c: use gpsim usart module from
5783           libgpsim_modules library
5784
5785 2006-06-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5786
5787         * device/include/mcs51/at89c51ed2.h: Fixed bug 1510144 changed
5788         IP0H to IPH0.
5789
5790 2006-06-19 Raphael Neider <rneider AT web.de>
5791
5792         * src/pic/glue.h,src/pic16/glue.h: added prototypes
5793         * src/pic/glue.c,src/pic16/glue.c (pic1x_stringInSet,
5794           pic1x_emitSymbolIfNew): NEW, check for a string in a set,
5795           (pic14printExterns,pic14printPublics,pic16printPublics,
5796           pic16_printExterns): use new functions to emit symbols
5797           (picglue,pic16glue): emit publics before emitting externs
5798         * src/pic/gen.c,src/pic16/gen.c (genFunction): remember the names of
5799           locally defined functions to avoid bug #1443651
5800         * support/regression/tests/bug-716242.c: removed pic16 workaround
5801         * support/regression/ports/pic16/spec.mk: ignore errors during build
5802
5803 2006-06-19 Raphael Neider <rneider AT web.de>
5804
5805         * src/pic/glue.h: added pic14aopLiteral prototype
5806         * src/pic/glue.c (pic14aopLiteral): return unsigned int
5807         * src/pic/gen.c: removed stdint.h dependency
5808           (aopGet): use Safe_strdup()
5809           (bitpatternFromVal): removed, replaced use with pic14aopLiteral
5810           (genDataPointerSet): use pic14aopLiteral()
5811         * src/pic16/glue.h, src/pic16/glue.c, src/pic16/gen.c: similar changes
5812           for pic16; thanks to Bernhard and Maarten
5813
5814 2006-06-18 Borut Razem <borut.razem AT siol.net>
5815
5816         * support/regression/tests/structflexarray.c: flexible array members
5817           not supported by gcc < 3
5818         * sim/ucsim/configure, sim/ucsim/configure.in: do not compile serio
5819           GUI tool by default
5820         * src/pic/gen.c: don't include [p]strdin.h on solaris
5821         * support/Util/pstdint.h: addad svn attributes
5822         * support/regression/tests/constantRange.c,
5823           support/regression/tests/rotate.c: include inttypes.h instead
5824           stdint.h on solaris, addad svn attributes
5825
5826 2006-06-18 Raphael Neider <rneider AT web.de>
5827
5828         * src/SDCCsymt.c (initCSupport): change return type of divschar to
5829           int for PIC16
5830         * src/pic16/genarith.c (genAddLit): sign-extend via standard routine
5831           (pic16_genMinusBits): simplified sign-extension
5832           (pic16_genUMult8XLit_8,pic16_genUMult8X8_8): renamed to
5833             pic16_genMult8XLit_n resp. pic16_genMult8X8_n, fixed and
5834             adjusted to correctly handle mixed-signed operands, disabled
5835             now unused multiplciation routines
5836         * src/pic16/gen.c (pic16_pushpCodeOp): fixed to handle literals
5837           (assignResultValue): added argument denoting the size of the result
5838             as returned by the function (fixes upcasts in assigning from
5839             function calls: char foo(); int i = foo();)
5840           (genCall,genPcall,genGenPointerGet,genReceive): pass size of
5841             function result to assignResultValue
5842           (genMult): disabled inlined multiplication code
5843           (genDiv): augmented to also handle the modulus operator, fixed to
5844             handle mixed-signed operands correctly
5845           (genMod): simply call genDiv, disabled unused code
5846           (genAssign): fixed missing (sign-)extension on result
5847         * src/pic16/main.c (_hasNativeMulFor): accept literals [-128..256) as
5848             valid char operands, allow signed operands for native code, added
5849             division and modulo operator handling
5850         * device/lib/pic16/libsdcc/char/divschar.c: divschar returns an int
5851
5852         As a consequence, onebyte.c (if split into two files) and muldiv.c
5853         pass regression tests.
5854
5855 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5856
5857         * doc/Makefile.in: two runs of makeindex seem needed to get
5858         correct page references in the index of sdccman.pdf
5859         * doc/sdccman.lyx: mentioned cmon51, added links, small changes
5860
5861 2006-06-17 Borut Razem <borut.razem AT siol.net>
5862
5863         * sdcc/device/lib/Makefile.in: corrected PORTINCDIR path
5864
5865 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5866
5867         * doc/sdccman.lyx: updated, added (porting source code, debugging),
5868         mentioned ec2drv and paulmon
5869
5870 2006-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
5871
5872         * as/mcs51/lkarea.c (lnkarea2): clear new xdatamap, bugfix for two
5873           consecutive abs areas
5874           (find_empty_space, allocate_space): added map to handle codemap or
5875            xdatamap,
5876           (lnksect2): renamed rloc to locIndex, fixed bug 960060 by handling
5877            absolute idata and xdata
5878         * as/mcs51/lkmem.c (summary2): updated legend
5879
5880 2006-06-16 Raphael Neider <rneider AT web.de>
5881
5882         * src/pic16/gen.c (shiftR2Left2Result): fixed bug #1507127
5883
5884 2006-06-13 Maarten Brock <sourceforge.brock AT dse.nl>
5885
5886         * debugger/mcs51/cmd.c (cmdListFunctions): fixed bugs 1181163 and
5887           1208515
5888         * src/SDCClrange.c (findPrevUse): fixed bug 1294475
5889
5890 2006-06-13 Vangelis Rokas <vrokas AT users.sourceforge.net>
5891
5892         * src/port.h (struct PORT): added field gp_tags, to hold the tag
5893         value of generic pointers,
5894         * src/avr/main.c,
5895           src/ds390/main.c,
5896           src/hc08/main.c,
5897           src/izt/i186.c,
5898           src/izt/tlcs900h.c,
5899           src/mcs51/main.c,
5900           src/pic/main.c,
5901           src/pic16/main.c,
5902           src/xa51/main.c,
5903           src/z80/main.c: PORT structure, added elements for gp_tags field,
5904         * src/SDCCsymt.h: replaced hardwired values of GPTYPE_* macros with
5905         fields in the PORT structure of each port,
5906         * src/SDCCast.c (decorateType): allow processing of generic pointers
5907         for PIC16 port (FPTRSIZE equals GPTRSIZE), also set GPTYPE_NEAR for
5908         S_FIXED symbols
5909
5910 2006-06-12 Maarten Brock <sourceforge.brock AT dse.nl>
5911
5912         * link/z80/lkgb.c,
5913         * link/z80/lkgg.c,
5914         * src/pic16/gen.c,
5915         * src/pic16/main.c,
5916         * src/pic16/pcode.c,
5917         * src/pic/main.c,
5918         * src/pic/pcoderegs.c,
5919         * src/SDCCicode.c,
5920         * src/SDCCmain.c,
5921         * src/SDCCsymt.c: replaced all exit(-1) by exit(EXIT_FAILURE) to fix
5922           bug 1504689 on minGW
5923
5924 2006-06-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5925
5926         * device/lib/printf_tiny.c: fixed bug #1465675 (%x format specifier)
5927
5928 2006-06-12 Bernhard Held <bernhard AT bernhardheld.de>
5929
5930         * src/SDCCast.c (backPatchLabels): fixed bug #1504636
5931
5932 2006-06-11 Maarten Brock <sourceforge.brock AT dse.nl>
5933
5934         * device/lib/printf_large.c (OUTPUT_CHAR, _output_char): added and used
5935           for optimization
5936
5937 2006-06-11 Vangelis Rokas <vrokas AT users.sourceforge.net>
5938
5939         * src/pic16/gen.c (genCast): fixed bug with assignment of a pointer
5940         to a char variable. Fixed bug #1504211
5941         * device/include/pic16/adc.h,
5942         device/include/lib/pic16/libio/adc/adcopen.c: applied patch #1364387
5943         and fixed bug #1364390
5944
5945 2006-06-10 Borut Razem <borut.razem AT siol.net>
5946
5947         * CVSROOT: removed the CVS left-over
5948
5949 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
5950
5951         * as/hc08/asmain.c (asexit),
5952         * as/hc08/lkmain.c (lkexit),
5953         * as/mcs51/asmain.c (asexit),
5954         * as/mcs51/lkmain.c (lkexit),
5955         * src/SDCCglue.c (DEFSETFUNC),
5956         * src/SDCCmain.c (linkEdit, assemble),
5957         * support/librarian/sdcclib.c (AddRel),
5958           replaced unlink() by standard C remove()
5959         * src/SDCC.y: replaced removePostIncDecOps() by createRMW()
5960         * src/SDCCast.c (replaceAstWithTemporary, createRMW,
5961           gatherImplicitVariables): new, added to fix bug 608752,
5962           (createFunction): added gatherImplicitVariables()
5963         * src/SDCCast.h: added createRMW prototype
5964         * src/SDCCsymt.h (struct symbol): added infertype
5965         * support/regression/tests/bug608752.c: new, added
5966
5967 2006-06-10 Raphael Neider <rneider AT web.de>
5968
5969         * src/pic16/gen.c (pic16_aopOp): use WREG as destination even for
5970           multibyte dummy reads (fixes #1503234)
5971
5972 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
5973
5974         * device/include/mcs51/compiler.h: new, added header file to enable
5975           creating common sfr definition header files for different compilers
5976
5977 2006-06-05 Raphael Neider <rneider AT web.de>
5978
5979         * src/pic16/{pcode.h,genarith.c}:
5980           introduced pCodeOp combining any two pCodeOps (previously only
5981           two register operands could be combined), removed pcop2 from
5982           pCodepReg, replaced pCodeOpReg2 with pCodeOp2, fixes #1492366
5983         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): added case for PO_TWO_OPS
5984         * src/pic16/gen.c (pic16_popGet2,pic16_popGet2p,pic16_popCombine2):
5985           rewritten to use new PO_TWO_OPS
5986         * src/pic16/main.c (_hasNativeMulFor): cover more cases natively,
5987         * src/pic16/pcode.c (pic16_newpCodeOpImmd): initialize rIdx field,
5988           (pic16_newpCodeOp): catch invalid attempts on PO_TWO_OPS,
5989           (pic16_newpCodeOp2): NEW, create combined pCodeOp,
5990           (pic16_get_op): embraced return arg to allow #define return(x),
5991             added new case for combined opcodes
5992           (pic16_get_op2): reduced to use pic16_get_op() on second pCodeOp,
5993           (pic16_pCode2str,pic16_getRegFrompCodeOp,
5994            pic16_getRegFromInstruction2): fixed/added handling of new pCodeOp
5995
5996 2006-06-04 Bernhard Held <bernhard AT bernhardheld.de>
5997
5998         * src/SDCCval.c (checkConstantRange): added
5999         * src/SDCCval.h: added checkConstantRange
6000         * support/Util/SDCCerr.c,
6001         * support/Util/SDCCerr.h: replaced unused W_IF_NEVER_TRUE and
6002         W_IF_ALWAYS_TRUE by W_COMP_RANGE and W_LIT_OVERFLOW
6003         * src/SDCC.y: moved early 'condition transformations' to SDCCast.c
6004         * src/SDCCast.c (decorateType): added checkConstantRange,
6005         added 'condition transformations' from SDCC.y so that now W_COMP_RANGE
6006         can be emitted with the correct always true/false warning,
6007         added optimization for double '!';
6008         result of decorateType() must be assigned back to the tree, because
6009         decorateType() can change the tree
6010         * src/SDCCicode.c (geniCodeLogic),
6011         (geniCodeAssign): replaced new checkConstantRange, added warnings,
6012         (checkConstantRange): removed, it was only a fragment which never
6013         emitted a warning
6014         * src/SDCCsymt.c (computeType): fixed promotion for
6015         "-1 < (unsigned bit) b"
6016         * src/pic/ralloc.c (packRegsForAssign),
6017         * src/pic16/ralloc.c (packRegsForAssign),
6018         * src/hc08/ralloc.c (packRegsForAssign),
6019         * src/z80/ralloc.c (packRegsForAssign): ported fix for bug #930931
6020         from mcs51
6021         * src/mcs51/ralloc.c (packRegsForAssign): removed outcommented source
6022         * support/regression/tests/constantRange.c: added
6023         * support/valdiag/tests/constantRange.c: added
6024         * support/valdiag/valdiag.py: added -DPORT_HOST=1
6025
6026 2006-06-02 Borut Razem <borut.razem AT siol.net>
6027
6028         * support/regression/ports/pic16/support.c: increase stack size
6029           to 255 bytes
6030         * support/regression/Makefile.in: sort tests by name so that the
6031           resutlts can be compared on different machines / platforms
6032
6033 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
6034
6035         * device/lib/printf_large.c (output_digit): optimized further, Tnx Frieder
6036         * src/ds390/gen.c (emitLabel): new, added,
6037           (genDjnz): fixed stack overflow bug,
6038           (throughout): cosmetic changes to sync with mcs51/gen.c,
6039           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl)
6040         * src/mcs51/gen.c (genEndFunction): small optimization,
6041           (throughout): cosmetic changes to sync with ds390/gen.c
6042
6043 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
6044
6045         * device/lib/printf_large.c (output_digit, calculate_digit): optimized,
6046           (_print_format): fixed printing pointers
6047         * src/mcs51/gen.c (emitLabel, movb): new, added,
6048           (genAssign): small optimization,
6049           (genDjnz): fixed stack overflow bug,
6050           (throughout): replaced sprintf with SNPRINTF,
6051           replaced mcs51_regWithIdx with REG_WITH_INDEX,
6052           replaced emitcode("mov", "b,...") with MOVB(...),
6053           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl),
6054           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
6055         * src/mcs51/peeph.def: added rules 140 and 264
6056         * src/SDCCmem.c (allocLocal): store register declared locals in DSEG/OSEG
6057           so they may get optimized into registers
6058
6059 2006-05-30 Maarten Brock <sourceforge.brock AT dse.nl>
6060
6061         * src/SDCCmain.c (optionsTable, parseCmdLine): handle --use-stdout
6062           immediately when encountered,
6063           (printUsage): always use stderr even on windows
6064
6065 2006-05-30 Bernhard Held <bernhard AT bernhardheld.de>
6066
6067         * src/SDCCast.c (isLoopCountable): fixed bug #1478316
6068         (processParms): fixed bug #1247551
6069         * src/SDCCmain.c (printVersionInfo, printOptions, printUsage,
6070         parseCmdLine, main): print '--version' to stdout,
6071         print 'help' to stdout if --help is given,
6072         print 'help' to stderr and exit with EXIT_FAILURE if no or bad
6073         arguments are given; fixed --help
6074
6075 2006-05-27 Bernhard Held <bernhard AT bernhardheld.de>
6076
6077         * src/SDCCcse.c (findPointerSet): fixed bug #1493710
6078         * support/regression/tests/bug-1493710.c: added
6079
6080 2006-05-27 Borut Razem <borut.razem AT siol.net>
6081
6082         * support/regression/fwk/lib/testfwk.c: define array in _printn() as
6083           static instead auto
6084         * support/regression/ports/pic16/support.c: increase stack size
6085           from default 64 bytes to 128 bytes
6086         * support/regression/tests/staticinit.c,
6087           support/regression/tests/float.c: regression tests fully enabled
6088           for pic16 port by putting the initialized data arrays into the code
6089           section
6090         * support/regression/ports/pic16/spec.mk: don't link default libraries.
6091           This was changed by mistake in the previous version.
6092
6093 2006-05-28 Vangelis Rokas <vrokas AT users.sourceforge.net>
6094
6095         * src/pic16/gen.c (genFunction, genEndFunction): some
6096         beautifications, fixed bug with falsely restoring FSR2 in large
6097         stack model, thanks to Beau E. Cox for reporting the bug
6098
6099 2006-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
6100
6101         * debugger/mcs51/break.c,
6102         * debugger/mcs51/cmd.c (throughout): removed unused variables and labels,
6103           use %p to print pointers, made address variables unsigned
6104         * debugger/mcs51/cmd.c (infoSymbols): added missing parameter to printf
6105         * debugger/mcs51/symtab.c (parseSymbol): must return something
6106         * src/mcs51/gen.c (aopForSym): small optimization,
6107            moved declarations mcs51_ptrRegReq and mcs51_nRegs to ralloc.h,
6108           (freeAsmop): added missing break,
6109           (aopPut): removed parameter bvolatile, determine it inside the function,
6110           (saveRegisters, unsaveRegisters): small optimization,
6111           (genIpush): removed pointless check,
6112           (throughout): replaced Safe_calloc, strcpy with Safe_strdup,
6113           replaced sprintf with SNPRINTF,
6114           replaced strcpy with strncpyz,
6115           updated aopPut calls,
6116           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
6117         * src/mcs51/ralloc.h:  added declarations mcs51_ptrRegReq and mcs51_nRegs
6118
6119 2006-05-24 Borut Razem <borut.razem AT siol.net>
6120
6121         * support/regression/tests/bug-221100.c: fixed xdata problem caused by
6122           modification of test for the pic16 port, put the array to the code
6123           memory for pic16port; thanks to Maarten Brock and Frieder Ferlemann
6124
6125 2006-05-23 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
6126
6127         * src/pic/gen.c: MSC 6 does not have <stdint.h>.  Use pstdint.h instead.
6128         * support/Util/pstdint.h: added
6129
6130 2006-05-22 Borut Razem <borut.razem AT siol.net>
6131
6132         * src/regression/Makefile: removed bool2.c test, added -q linker option
6133         * src/regression/add2.c, src/regression/add3.c, src/regression/bool1.c,
6134           src/regression/bool3.c, src/regression/nestfor.c, src/regression/ptrfunc.c,
6135           src/regression/compare.c, src/regression/or1.c, src/regression/compare2.c,
6136           src/regression/while.c, src/regression/compare3.c, src/regression/compare4.c,
6137           src/regression/compare5.c, src/regression/sub2.c, src/regression/rotate1.c,
6138           src/regression/rotate2.c, src/regression/rotate3.c, src/regression/rotate4.c,
6139           src/regression/switch1.c, src/regression/rotate5.c, src/regression/for.c,
6140           src/regression/add.c, src/regression/sub.c, src/regression/call1.c:
6141           define SUPPORT_BIT_TYPES 0, removed unused bit variables
6142
6143 2006-05-22 Raphael Neider <rneider AT web.de>
6144
6145         * src/pic16/gen.c (pic16_storeForReturn): fragile fix for
6146           bug #1492360 (problematic due to generic pointers, see code)
6147
6148 2006-05-22 Borut Razem <borut.razem AT siol.net>
6149
6150         * support/regression/ports/pic16/specs.mk: removed stack size linker
6151           directive
6152         * support/regression/tests/array.c,
6153           support/regression/tests/bitopcse.c,
6154           support/regression/tests/bug-908454.c,
6155           support/regression/tests/malloc.c: modified for pic16 regression test
6156         * support/regression/tests/bitfields.c:
6157           pic16 - excluded bitfileds of size > 8
6158         * support/regression/tests/bp.c: pic16 - reduced data size
6159         * support/regression/tests/bug-221100.c: pic16 - reduced data size
6160         * support/regression/tests/bug-460010.c:
6161           pic16 - used the absolute address the fits in memory
6162         * support/regression/tests/bug-716242.c:
6163           bug [ 1443651 ] pic 16: redefining symbol that cannot be redefined.
6164         * support/regression/tests/float.c:
6165           pic16 - excluded - data size too big
6166         * support/regression/tests/onebyte.c:
6167           pic16 - bug [ 1444425 ] onebyte.c regression tes fails on pic16
6168         * support/regression/tests/shifts.c:
6169           pic16 - function names probably have to differ in first X characters
6170           (gpasm limitation?)
6171         * support/regression/tests/staticinit.c:
6172           pic16 - excluded some tests due error: no target memory available for
6173           section ".idata"
6174
6175 2006-05-22 Borut Razem <borut.razem AT siol.net>
6176
6177         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
6178           second try. Thanks Stas Sergeev once more.
6179
6180 2006-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
6181
6182         * src/hc08/gen.c (transferAopAop): aop forced to stack was not restored,
6183           (genLeftShift, genRightShift): fixed bug 1491627
6184         * src/hc08/peeph.def (rules 7, 8.x): added
6185         * support/regression/tests/shifts.c (ShiftLeftByParam,
6186           ShiftRightByParam, testShiftByParam): added to test variable shifting
6187
6188 2006-05-20 Raphael Neider <rneider AT web.de>
6189
6190         * src/pic/gen.c (bitpatternFromVal): fixed for 64-bit machines
6191         * src/pic16/ralloc.c (newReg): use correct name in hashtable,
6192           (allocReg): add only new registers to dynAllocRegs,
6193           (pic16_assignRegisters): do not reset dynrIdx, fixes bugs
6194             #1489055, #1445850, and probably #1483693
6195
6196 2006-05-19 Vangelis Rokas <vrokas AT users.sourceforge.net>
6197
6198         * src/pic16/glue.c (pic16_emitConfigRegs, pic16_emitIDRegs): fixed
6199         bug in for-loop that didn't emit the last of CONFIG and ID registers
6200
6201 2006-05-18 Maarten Brock <sourceforge.brock AT dse.nl>
6202
6203         * src/mcs51/gen.c (genCodePointerGet): inc dptr instead of loading acc
6204           with offset
6205         * src/mcs51/peeph.def (186.x): updated and reenabled to fix bugs
6206           1489016, 1434401 and 1490124
6207         * src/ds390/peeph.def (186.x, 227.x): updated and reenabled to fix bugs
6208           1489016, 1434401 and 1490124
6209
6210 2006-05-17 Borut Razem <borut.razem AT siol.net>
6211
6212         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
6213           thanks Stas Sergeev
6214
6215 2006-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
6216
6217         * device/include/mcs51/P89c51RD2.h,
6218         * device/include/mcs51/P89LPC901.h,
6219         * device/include/mcs51/P89LPC922.h,
6220         * device/include/mcs51/P89LPC932.h: added, thanks Omar Espinosa
6221
6222 2006-05-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
6223
6224         * device/lib/pic16/libsdcc/stack/{stack.S, Makefile.in}: add workaround
6225         to fix missing stack pragma in compiled binary object file,
6226
6227 2006-05-14 Bernhard Held <bernhard AT bernhardheld.de>
6228
6229         * support/packihx/configure.in,
6230         * support/packihx/configure: removed warning, autoconf >= 2.5x can
6231         determine sizeof basic types even while cross compiling
6232
6233 2006-05-13 Bernhard Held <bernhard AT bernhardheld.de>
6234
6235         * src/avr/gen.c (aopop),
6236         * src/ds390/gen.c (aopOp),
6237         * src/hc08/gen.c (aopOp),
6238         * src/mcs51/gen.c (aopop),
6239         * src/pic16/gen.c (pic16_aopOp),
6240         * src/pic/gen.c (aopOp),
6241         * src/z80/gen.c (aopop): fix for bug #1479882; use new, exclusive asmop
6242         if size of operand is smaller than spill location
6243
6244 2006-05-12 Borut Razem <borut.razem AT siol.net>
6245
6246         * *.dsw, *.dsp: changed property svn:eol-style to CRLF since they
6247           have to have CR/LF line endings even if they are checked out on *nix
6248           or on WIN32 in cygwin binmode
6249
6250 2006-05-12 Maarten Brock <sourceforge.brock AT dse.nl>
6251
6252         * doc/sdccman.lyx: documented numeric ranges, WEBDOC #1442369
6253         * device/include/ds80c390.h: added sfr16 definitions
6254         * src/ds390/gen.c,
6255         * src/ds390/gen.h,
6256         * src/ds390/main.c,
6257         * src/ds390/ralloc.c,
6258         * src/ds390/ralloc.h: changes all over the place to sync with mcs51
6259           fixing several bugs and adding sfr16/sfr32, reentrant bit params,
6260           bit returning functions
6261         * support/regression/tests/sfr16.c: enabled test on ds390
6262
6263 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6264
6265         * src/hc08/gen.c (asmopToBool, genIfx): fix for bug #1429722
6266         * src/hc08/gen.c (storeRegToAop): fix for bug #1439894
6267
6268 2006-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
6269
6270         * sim/ucsim/sim.src/memcl.h: added get_decoder() to cl_address_space
6271         * sim/ucsim/sim.src/mem.cc: implemented cl_address_space::get_decoder,
6272           (cl_address_space constructor): removed expensive initialization,
6273           (cl_address_space::get_cell): extended for late initialization,
6274           (cl_address_space::*): use late initialization,
6275           (cl_address_decoder::activate): removed expensive initialization,
6276           This reduced regression test running time by 25%
6277
6278 2006-05-11 Bernhard Held <bernhard AT bernhardheld.de>
6279
6280         * packihx/,
6281         * configure.in,
6282         * configure,
6283         * sdcc.dsw,
6284         * Makefile.bcc,
6285         * Makefile.in,
6286         * support/packihx/Makefile.in,
6287         * support/packihx/clean.mk,
6288         * support/packihx/Makefile.bcc,
6289         * support/packihx/PackIhx.dsp: moved packihx to support/packihx
6290
6291 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6292
6293         * src/SDCCval.c (valNot): fix for regression test failure
6294           of not.c on big endian hosts
6295
6296 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
6297
6298         * device/inlcude/mcs51/msc1210.h: new, added, thanks Philippe Latu
6299
6300 2006-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6301
6302         * device/lib/mcs51/Makefile.in: changed string comparison operator
6303           to = for POSIX compliance; == is bash extension
6304
6305 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
6306
6307         * device/lib/hc08/_mulint.c: applied patch 1485428, thanks
6308           kosmonaut_pirx
6309
6310 2006-05-09 Vangelis Rokas <vrokas AT users.sourceforge.net>
6311
6312         * src/pic16/gen.c (pic16_freeAsmop): release any temp registers
6313         allocated by aopForSym thus fixing bug #1478657 about failed testfwk.c
6314         * src/pic16/main.c (_pic16_keywords): added 'sfr16' keyword,
6315         * src/pic16/ralloc.c (pic16_allocWithIdx): also a fix for bug exposed by
6316         bug report #1478657,
6317
6318 2006-05-05 Borut Razem <borut.razem AT siol.net>
6319
6320         * doc/Makefile.in: remove of WARNINGS and labels.pl immediately after
6321           making the html
6322
6323 2006-05-02 Borut Razem <borut.razem AT siol.net>
6324
6325         * doc/Makefile.in: removed *.ind dependency since there is no rule to
6326           create *.ind, which made make to fail if invoked with -j 2
6327
6328 2006-05-01 Maarten Brock <sourceforge.brock AT dse.nl>
6329
6330         * src/SDCCglue.c (emitRegularMap): partial fix for bug 1477149, thanks
6331           Hubert Sack for patch 1479782
6332
6333 2006-05-01 Vangelis Rokas <vrokas AT users.sourceforge.net>
6334
6335         * src/pic16/glue.c (pic16_printIvalStruct): fixed bug #1445929
6336
6337 2006-05-01 Raphael Neider <rneider AT web.de>
6338
6339         * src/pic/device.c (sanitise_processor_name): only remove p(ic) prefix,
6340           (create_pic): store only prefix-free device name,
6341           (init_pic): check for device names with "16" prefix,
6342           (list_valid_pics),
6343         * src/pic/device.h (struct PIC_device),
6344         * src/pic/main.c (_pic14_genAssemblerPreamble): adapted to single
6345             stored device name,
6346         * device/include/pic/pic12f{635,675,629,683}.h,
6347         * device/lib/pic/libdev/pic12f{635,675,629,683}.c: NEW device libraries
6348         * device/lib/pic/libdev/Makefile.in: allow pic12* devices,
6349         * device/include/pic/pic16f505.h,
6350         * device/lib/pic/libdev/pic16f505.c: removed
6351         * device/include/pic/pic14devices.txt: added support for pic12f
6352             devices, removed unsupported non 16-bit devices
6353             [above changes provided by patch from Zik Saleeba]
6354         * src/pic/*, src/pic16/*, device/include/pic16/*,
6355           device/lib/pic/**, device/lib/pic16/**: obfuscated email address
6356
6357 2006-05-01 Borut Razem <borut.razem AT siol.net>
6358
6359         * configure.in, configure, doc/Makefile.in:
6360           sync with nightly build makefile - latex, dvipdf and dvips
6361           not needed any more
6362
6363 2006-04-30 Bernhard Held <bernhard AT bernhardheld.de>
6364
6365         * support/scripts/sdcc.nsi: removed all Readmes and Makefiles
6366         in the library source
6367
6368 2006-04-30 Maarten Brock <sourceforge.brock AT dse.nl>
6369
6370         * support/regression/ports/hc08/spec.mk: fixed bug 1478892
6371
6372 2006-04-28 Raphael Neider <rneider AT web.de>
6373
6374         * src/pic16/pcode.c (pic16_newpCodeOpLit12),
6375         * src/pic16/gen.c (pic16_popGetLit12): NEW, create 12 bit literal,
6376           (pic16_loadFSR0): handle 12 bit literals correctly, fixes #1440527
6377         * src/pic16/pcode.h: added prototype for pic16_newpCodeOpLit12()
6378
6379 2006-04-28 Bernhard Held <bernhard AT bernhardheld.de>
6380
6381         * device/lib/pic/libdev/Makefile.in,
6382         * device/lib/hc08/Makefile.in,
6383         * device/lib/gbz80/Makefile.in,
6384         * device/lib/z80/Makefile.in,
6385         * device/lib/ds390/Makefile.in,
6386         * device/lib/ds400/Makefile.in: added srcdir to include search path,
6387         thanks to Borut for the bug report
6388         * configure.in,
6389         * configure: always create doc/Makefile independent from --enable-doc
6390         * Makefile.in: always install from directory doc independent from
6391         --enable-doc
6392         * device/lib/pic/Makefile.in: added libdev again, it was erroneously
6393         removed
6394         * device/lib/pic/libdev/Makefile.in: fixed VPATH build
6395         * doc/Makefile.in: install *.txt if present
6396         * device/include/Makefile.in (install): added installation of pic/*.inc
6397         and pic/*.txt files again, they were erroneously removed
6398
6399 2006-04-28 Raphael Neider <rneider AT web.de>
6400
6401         * src/pic/{gen.c,main.h,pcode.c},
6402         * src/pic16/{gen.c,pcode.c}: quietened compiler warnings
6403             concerning signedness with casts
6404
6405 2006-04-28 Raphael Neider <rneider AT web.de>
6406
6407         * src/pic/gen.c (genFunction): set global pic14_hasInterrupt on
6408             definition of an interrupt handler,
6409         * src/pic/glue.c (pic14_emitInterruptHandler): moved output of
6410             interrupt handler stuff from picglue() to separate routine,
6411           (picglue): enabled definition of intr handlers in files w/o main()
6412
6413 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
6414
6415         * support/librarian/sdcclib.c: moved include <limits.h> up to enable
6416           compilation with MSVC 2005 Express Edition (VC8)
6417
6418 2006-04-26 Bernhard Held <bernhard AT bernhardheld.de>
6419
6420         * device/lib/Makefile: fixed build of gbz80 lib
6421
6422 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
6423
6424         * support/regression/tests/bug-460010.c,
6425         * support/regression/tests/bug-524691.c,
6426         * support/regression/tests/bug-716242.c: removed conditional defines
6427           that are already in testfwk.h
6428
6429 2006-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
6430
6431         * src/ds390/gen.c (AccAXRrl1, AccAXLrl1): changed to real rotate by 1,
6432           (AccAXRsh1): added, shift right by 1,
6433           (AccAXLsh, AccAXRsh, AccAXRshS): updated for AccAXRrl1, AccAXRsh1 and
6434            AccAXLrl1
6435         * support/regression/tests/rotate.c: use <stdint.h> and enabled ds390
6436
6437 2006-04-25 Bernhard Held <bernhard AT bernhardheld.de>
6438
6439         * src/SDCCast.c (decorateType): partial fix for RFE 1475769,
6440         remove cast to same type
6441         * src/SDCCast.c (decorateType): fix for RFE 1475742,
6442         optimize 'ifx (op == 0)' resp. 'ifx (op != 0)'
6443         * as/z80/Makefile,
6444         * link/z80/Makefile: removed, they have moved to
6445         Makefile.in files
6446         * configure,
6447         * configure.in: replaced duplicate message about ucsim by missing sdcpp
6448         * install-sh: fix bug #1204398 by setting umask 0022
6449         * device/lib/Makefile: separate build of z80 and gbz80 lib
6450
6451 2006-04-24 Bernhard Held <bernhard AT bernhardheld.de>
6452
6453         Enabled VPATH feature: changed nearly all Makefiles (149 files).
6454         See sdccman.lyx '2.4.10 VPATH feature' about how to use it.
6455
6456         One basic decision: e.g. src/clean.mk includes further files. In order
6457         to make this work there are two solutions:
6458         - rename another dozen clean.mk to clean_in.mk, add srcdir to them and
6459           run configure on them. This way they can use
6460           'include $(srcdir)/port-clean.mk'
6461         - always include clean.mk by the Makefile at the same level. To avoid
6462           that `make clean` tries to include and build Makefile.dep the
6463           MAKECMDGOALS are examined (see e.g. src/Makefile.in). This has been
6464           implemented, because now even `make uninstall` doesn't create
6465           Makefile.in. clean.mk could be eliminated by pasting it in
6466           Makefile.in.
6467
6468         * debugger/mcs51/Makefile.in: build own objects from library sources
6469         (SLIB, SDCC) in current directory
6470
6471         * configure, configure.in: renamed --disable-device-lib-build in
6472         --disable-device-lib; added --enable-doc, the required tools are
6473         searched by configure; added result message; the toolchain for the
6474         belonging ports are now only built, if the port is enabled.
6475
6476         * support/regression/*: all output is written in directory gen, because
6477         the fwk and ports directories don't livet in the build tree using vpath
6478
6479         * doc/sdccman.lyx: renamed --disable-device-lib-build to
6480         --disable-device-lib, added --enable-doc, added section VPATH
6481
6482         * sim/ucsim/configure.in,
6483         * sim/ucsim/configure.in: hc08 couldn't be disabled, now hc08 and
6484         z80 are enabled by default
6485
6486 2006-04-24 Raphael Neider <rneider AT web.de>
6487
6488         * src/pic/device.c (pic14_assignConfigWordValue): remember assignments
6489             to config word, "pic14_"-prefixed some extern functions
6490           (pic14_emitConfigWord): emit __config directive(s) if assignment to
6491             config word has been found
6492         * src/pic/device.h: added prototypes
6493         * src/pic/pcode.c: added "pic14_"-prefix where needed
6494         * src/pic/ralloc.c (IS_CONFIG_ADDRESS,pic14_assignRegisters): cosmetic
6495             fixup
6496         * src/pic/glue.c (pic14_constructAbsMap): handle assignments to config
6497             words,
6498           (pic14emitRegularMap): ignore config words,
6499           (pic14createInterruptVect): moved generating __config directives away
6500           (picglue): have __config directives emitted
6501
6502 2006-04-24 Borut Razem <borut.razem AT siol.net>
6503
6504         * doc/Makefile: sync with nightly build makefile
6505
6506 2006-04-24 Raphael Neider <rneider AT web.de>
6507
6508         * src/pic/pcoderegs.c (OptimizeRegUsage): do not optimize
6509             registers that have not been assigned proper liveranges,
6510             fixes #1469504 and #1474602,
6511           (pCodeRegOptimizeRegUsage): fixed typo in comment
6512
6513 2006-04-24 Borut Razem <borut.razem AT siol.net>
6514
6515         * device/examples/main8051.c: deleted - it was removed from CVS
6516           24.mar.2000 and after that modified 18.feb.2001, so it reappered
6517           after the transition to Subversion
6518         * src/SDCCalloc.h: deleted - it was removed  from CVS
6519           3.feb.2001 and after that modified 18.feb.2001, so it reappered
6520           after the transition to Subversion
6521         * sim/ucsim/cpu.gif, sim/ucsim/interrupt.gif, sim/ucsim/new.gif,
6522           sim/ucsim/serial1.gif, sim/ucsim/serial2.gif,
6523           sim/ucsim/term_cpuopt.gif, sim/ucsim/timers.gif, sim/ucsim/wins.gif,
6524           sim/ucsim/post.jpg, sim/ucsim/UCsim.jpg: corrected
6525
6526 2006-04-22 Maarten Brock <sourceforge.brock AT dse.nl>
6527
6528         * as/asx8051.dsp: added mcs51/strcmpi.h
6529         * as/hc08/as_hc08.dsp: added asm.h, m6808.h, strcmpi.h
6530         * as/hc08/aslink.h: updated lnksect prototype
6531         * as/hc08/asm.h,
6532         * as/mcs51/asm.h: added a_addr to struct area and s_org to struct sym
6533         * as/hc08/asmain.c,
6534         * as/mcs51/asmain.c (asmbl): init dot.s_org for S_ORG,
6535           (newdot): handle A_ABS
6536         * as/hc08/asout.c,
6537         * as/mcs51/asout.c (outarea): output address
6538         * as/hc08/lkaomf51.c,
6539         * as/mcs51/lkaomf51.c: disabled unused array UsageType
6540         * as/hc08/m08pst.c,
6541         * as/mcs51/i51pst.c,
6542         * as/z80/z80pst.c: "ABS" is not A_OVR
6543         * as/hc08/lkarea.c (newarea): read a_addr,
6544           (lnkarea): added codemap array, sort absolute areas to the front,
6545            combine all GSINITx/GSFINAL,
6546           (find_empty_space, allocate_space): new functions,
6547           (lnksect): return next address, handle absolute sections
6548         * as/mcs51/lkarea.c (newarea): read a_addr,
6549           lnksect2 prototype changed,
6550           (lnkarea2): define codemap unsigned, combine all GSINITx/GSFINAL,
6551           (find_empty_space, allocate_space): new, factored out of lnksect2,
6552           (lnksect2): return next address, handle absolute sections
6553         * as/hc08/lkhead.c,
6554         * as/mcs51/lkhead.c (newhead): head is absolute but not overlay
6555         * as/hc08/lklibr.c (addfile, fndsym),
6556         * as/mcs51/lklibr.c (addfile, buildlibraryindex, fndsym): prevent
6557           index out of range and detect both '\' and '/'
6558         * device/include/mcs51/c8051f200.h: added _XPAGE, removed bad comment
6559         * device/include/stdbool.h: removed SDCC_ds390 from check to pass
6560           regression tests (ds390 cannot return bool yet)
6561         * doc/sdccman.lyx: changed version number, document changed --no-peep,
6562           document critical interrupts on z80, document changed SDCC define
6563         * src/asm.c (_asxxxx_mapping): fixed .org directive,
6564           (_a390_mapping): added .org directive
6565         * src/hc08/gen.c (transferAopAop): made bytemask log to fix warning,
6566           (genMultOneByte): fixed warnings
6567         * src/hc08/hc08.dsp: lowered warning level to 2 to suppress pedantic
6568           ones
6569         * src/pic16/device.c: removed newReg prototype, removed BYTE_IN_LONG
6570         * src/pic16/gen.c (pic16_popGetLabel): made parameter key signed,
6571           (pic16_genLeftShiftLiteral, genRightShiftLiteral): fixed warnings
6572         * src/pic16/gen.h: changed prototype for pic16_popGetLabel
6573         * src/pic16/main.c: removed newReg prototype
6574         * src/pic16/pcode.c,
6575         * src/pic16/pcode.h (pic16_emitDB): changed parameter c to int to fix
6576           warnings
6577         * src/pic16/pic16.dsp: lowered warning level to 2 to suppress pedantic
6578           ones
6579         * src/pic16/ralloc.c
6580         * src/pic16/ralloc.h (newReg): changed type to int and size to unsigned
6581           to fix warnings
6582         * src/pic/pcode.c (allocInternalRegister): changed parameter optype
6583           from short to PIC_OPTYPE
6584         * src/pic/pic.dsp: lowered warning level to 2 to suppress pedantic ones
6585         * src/pic/ralloc.c (newReg, allocInternalRegister): changed parameter
6586           optype from short to PIC_OPTYPE
6587         * src/port.h: made int_size unsigned to fix warnings
6588         * src/SDCC.y: fixed warning on MSVC
6589         * src/SDCCicode.c (getArraySizePtr): return unsigned int
6590         * src/SDCCopt.c (convertToFcall): fixed warnings
6591         * src/SDCCsymt.h: removed double prototype for genSymName
6592         * src/xa51/ralloc.c (allocReg): made size unsigned int, type int and
6593           offset int to fix warnings
6594
6595 2006-04-22 Borut Razem <borut.razem AT siol.net>
6596
6597         * doc/sdccman.lyx, */Makefile, */Makefile.in:
6598           references to CVS replaced with Subversion
6599
6600 2006-04-21 Borut Razem <borut.razem AT siol.net>
6601
6602         * doc/sdccman.lyx, */Makefile, */Makefile.in:
6603           references to CVS replaced with Subversion
6604
6605 2006-04-19 Borut Razem <borut.razem AT siol.net>
6606
6607         * src/version.awk: adapted for svn
6608         * /asxxxx/asxhtml/*.gif: set property svn:mime-type to image/gif
6609           sim/ucsim/doc/*.gif: set property svn:mime-type to image/gif
6610           sim/ucsim/doc/*.jpg: set property svn:mime-type to image/jpeg
6611           /binutils-avr/etc/*.vi, *.jin: removed all properties
6612           support/scripts/sdcc.ico: set property svn:mime-type to image/x-icon
6613
6614 2006-04-19 Borut Razem <borut.razem AT siol.net>
6615
6616         * CVS to Subversion migration completed
6617
6618 2006-04-18 Borut Razem <borut.razem AT siol.net>
6619
6620         * support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}/lib/pic/*.o,
6621           ${DEV_ROOT}/lib/src/pic/libdev/*.S, ${DEV_ROOT}/lib/src/pic/libdev/*.inc
6622
6623 2006-04-17 Borut Razem <borut.razem AT siol.net>
6624
6625         * device/include/Makefile.in: added pic/*.inc to the installation
6626
6627 2006-04-15 Bernhard Held <bernhard AT bernhardheld.de>
6628
6629         * support/regression/collate-results.py: fixed output in case of
6630         a valdiag error
6631         * support/regression/generate-cases.py: fixed splitting of pathnames
6632         with dots
6633         * as/hc08/lklibr.c (addfile),
6634         * as/mcs51/lklibr.c (addfile): fixed off-by-one bug
6635
6636 2006-04-11 Raphael Neider <rneider AT web.de>
6637
6638         * src/pic16/gen.c (getFreePtr, pic16_popRegFromString),
6639         * src/pic16/ralloc.c (pic16_allocregWithName): removed debug output
6640         * src/pic16/pcode.c (assignValnums): fixed #1460578
6641
6642 2006-04-11 Raphael Neider <rneider AT web.de>
6643
6644         * device/lib/pic/libdev/*.c,
6645         * device/include/pic/*.h: replaced sfr and data with __sfr and __data,
6646           fixes #1468739, enables compilation in --std-c99 mode
6647         * support/scripts/inc2h.pl: emit __sfr/__data instead of sfr/data
6648
6649 2006-04-11 Raphael Neider <rneider AT web.de>
6650
6651         * src/pic/device.c (find_device): removed debug output
6652           (list_valid_pics): enabled verbose listing of supported devices
6653         * device/include/stdbool.h: define bool as char for pic14/16 as well
6654
6655 2006-04-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6656
6657         * src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)"
6658
6659 2006-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
6660
6661         * .version: bumped version to 2.5.6
6662         * src/pic/ralloc.c (newReg): MSVC doesn't support __builtin_return_address
6663
6664 2006-04-06 Raphael Neider <rneider AT web.de>
6665
6666         * .version: bumped version to 2.5.6 (pic14 ABI changed)
6667         * src/SDCCmain.c: add -DSDCC_PROCESSOR=<id> for pic14 port
6668         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap,
6669           pic14emitRegularMap,pic14emitMaps): moved output for absolute symbols to
6670             pic14_constructAbsMap
6671           (pic14printPublics): declare absolute global symbols as global
6672           (pic14createInterruptVect),
6673         * src/pic/ralloc.c (IS_CONFIG_ADDRESS): support second config word,
6674           (newReg): assume new registers unused, use correct name in
6675             hashtable (reg->name instead of name), more debugLog output
6676         * src/pic/device.h (PIC_device): added fields for verbose output
6677         * src/pic/device.c: moved device definition to pic14devices.txt,
6678             added routines for runtime parsing of pic14devices.txt,
6679             added support for second config word
6680         * src/pic/main.c (_process_pragma): removed #pragma maxram,
6681           (_pic14_keywords): no longer accept "bit" and "sbit" keywords
6682           (_pic14_initPaths): add search paths with "pic" suffix (not "pic14")
6683           (_pic14_parseOptions): moved pCodeInitRegisters here
6684           (_pic14_do_link): add "pic$(ARCH).lib" to linker arguments
6685         * src/pic/pcode.c (AnalyzeBanking): bail out on unset processor,
6686           (pCodeInitRegisters): rewrapped comments, perpared new approach to
6687             handling the pseudo stack
6688         * device/lib/Makefile.in: ignore failures in objects-pic16,
6689         * device/lib/pic/{configure,configure.in,Makefile}: added libdev/
6690         * device/lib/pic/NEWS: document new dependency on picXXX.lib
6691         * device/lib/pic/Makefile.subdir,
6692         * device/lib/pic16/Makefile.subdir: improved clean rules
6693         * device/lib/pic/libdev/: NEW, pic14 device libraries
6694         * device/lib/pic/libsdcc/_gptr{get,put}{1,2,3,4}.S: use _X not X
6695         * device/lib/pic/libsdcc/macros.inc: use _X not X, declare default SFRs
6696         * device/include/Makefile.in: create subdir and install pic14 headers
6697         * device/include/pic/p16f_common.inc: removed unused declarations
6698         * device/include/pic/pic16*.h: added header files for 100+ 14 bit
6699             PICs from inc2h.pl v1.6,
6700             replaced BIT_AT macros with struct declarations
6701         * device/include/pic/pic14devices.txt: definition of supported devices,
6702             all above improvements contributed by Zik Saleeba, thanks
6703         * support/scripts/inc2h.pl: removed BIT_AT, replaced with structs
6704         * support/scripts/sdcc.nsi: also install pic14 device libraries and
6705             headers
6706
6707 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
6708
6709         * device/include/mcs51/c8051f410.h: added interrupt numbers,
6710         * device/include/mcs51/c8051f200.h: old SiLabs mcu completes the list,
6711           thanks to Charles Olds
6712
6713 2006-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6714
6715         * debugger/mcs51/cmd.c (infoRegisters): show return address on stack
6716
6717 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
6718
6719         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug 1464657
6720         * src/mcs51/gen.c (genJumpTab): fixed bug in medium model
6721         * support/regression/bug1464657.c: added, new test
6722
6723 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
6724
6725         * src/SDCCmain.c (preProcess): implemented RFE 1449908, define SDCC as the
6726           version number
6727
6728 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
6729
6730         * src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
6731           --no-peep and --peep-file <file> are used don't use default rules but
6732           do use the <file>
6733
6734 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
6735
6736         * src/mcs51/gen.c (genCall): fixed bug 1457608
6737
6738 2006-03-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6739
6740         * doc/sdccman.lyx: reverted to version 1.129 of december as my latest
6741         changes seem to cause (trigger?) problems with the build system.
6742
6743 2006-03-29 Maarten Brock <sourceforge.brock AT dse.nl>
6744
6745         * src/SDCCpeeph.c (operandsLiteral): new, added,
6746           (callFuncByName): inserted operandsLiteral
6747         * src/mcs51/peeph.def: reenabled 132.e, added extra check to 132.x
6748
6749 2006-03-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6750
6751         * doc/sdccman.lyx: added paragraph "Use of SDCC in Education"
6752         * src/mcs51/peeph.def: disabled rule 132.e fixing bug #1453093
6753
6754 2006-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
6755
6756         * src/z80/gen.c (genFunction, genEndFunction): fixed bug 1160666,
6757           implemented patch 1120823 Thanks to Willy De la Court (normal
6758           interrupts need an interrupt number now if they are made critical),
6759           and enabled nesting of critical functions though not for gbz80
6760           (genCritical, genEndCritical): added functions
6761           (genZ80Code): added cases for CRITICAL and ENDCRITICAL
6762         * src/z80/mappings.i: added "ei" to all mappings
6763
6764 2006-03-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6765
6766         * sim/ucsim/cmd.src/newcmdcl.h: applied patch fixing GCC 4.1 build
6767         submitted by the Debian SDCC maintainer Aurelien Jarno:
6768         "Credits goes to Martin Michlmayr, who rebuilt the whole Debian
6769         archive with gcc 4.1 on mips and wrote the patch"
6770
6771 2006-03-16 Raphael Neider <rneider AT web.de>
6772
6773         * src/pic16/genarith.c (genAddLit): simplified and fixed case where
6774           the left operand is shorter than the result (c* = lit-c* + int),
6775           fixes bug #1450796
6776         * src/pic16/gen.c (genRightShift): check IS_SYMOP before accessing
6777           OP_SYMBOL
6778
6779 2006-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
6780
6781         * src/.version: increased version number to 2.5.5
6782         * src/SDCCmain.c (linkEdit): do not test for PIC16 target since, PIC16
6783         linking is done manually in pic16 port's _linkEdit,
6784         * src/SDCCsymt.c (compStructSize): for target PIC16 and shell variable
6785         PIC16_PACKED_BITFIELDS, compact bitfield structures as much as possible,
6786         * src/pic16/gen.c (aopForSym): when direct register name is WREG then
6787         allocate asmop as AOP_ACC,
6788         (aopForRemat): added parameter 'bool result' in function declaration,
6789         (pic16_aopGet): return AOP_ACC when accessing WREG,
6790         (pic16_popGetTempReg): minor modification,
6791         (pic16_popRegFromIdx): first try with 'pic16_regWithIdx' then with
6792         'pic16_allocWithIdx',
6793         (genPcall): removed ftype, usage of OP_SYM_TYPE asserted error when
6794         calling function in absolute addresses,
6795         (genAssign): take into account AOP_ACC asmop,
6796         * src/pic16/pcode.c (pic16_newpCodeOpReg): minor modifications,
6797         * src/pic16/pcoderegs.c: some debug functions and lines added,
6798         * src/pic16/ralloc.c (decodeRegType): added but commented out,
6799         * (pic16_typeRegWithIdx): search 'pic16_dynInternalRegs' for given
6800         register too,
6801         * (pic16_findFreeReg, pic16_findFreeRegNext): allocate new register via
6802         call to allocReg, not by manually allocating a new one,
6803         (pic16_assignRegisters): now before going through the register
6804         allocating functions mark all registers as free. This eliminates some
6805         side effects resulting from peephole parser done earlier in the backbone
6806
6807 2006-03-13 Maarten Brock <sourceforge.brock AT dse.nl>
6808
6809         * src/SDCCicode.c (geniCodeLogic),
6810         * src/SDCCast.c (decorateType): applied patch by Bernhard for rfe 1422617
6811
6812 2006-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
6813
6814         * src/mcs51/gen.c (sameReg): new, checks if two aop regs are the same,
6815           (genSend): bugfix, do not allocate and free twice,
6816           (shiftRLong): handle partially overlapping aops
6817         * support/regression/tests/bitopcse.c: fixed warning redefined idata
6818
6819 2006-03-08 Borut Razem <borut.razem AT siol.net>
6820
6821         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata
6822           for pic16
6823
6824 2006-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
6825
6826         * support/regression/tests/bug1409955.c: new, added
6827         * src/mcs51/gen.h: changed asmop.freed:1 to asmop.allocated for tracking
6828         * src/mcs51/gen.c (newAsmop): set asmop.allocated to 1,
6829           (aopForSym, aopOp): increment asmop.allocated if reused,
6830           (freeAsmop): decrement asmop.allocated and check for zero instead of
6831           using asmop.freed,
6832           (freeForBranchAsmop): use asmop.allocated instead of asmop.freed,
6833           (genNot, genCpl, genUminus, genMinus, genMult, genDiv, genMod, genCmpGt,
6834            genCmpLt, genAndOp, genOrOp, genAnd, genOr, genXor, genRRC, genRLC,
6835            genGetHbit, genGetAbit, genGetByte, genGetWord, genSwap,
6836            genLeftShiftLiteral, genLeftShift, genRightShiftLiteral,
6837            genSignedRightShift, genRightShift, genDataPointerGet,
6838            genPagedPointerGet, genFarPointerGet, genCodePointerGet,
6839            genGenPointerGet, genDataPointerSet, genAssign, genCast): free asmop's
6840             in reverse order from allocation,
6841           (genPlus, genCmpEq): free asmop's in reverse order from allocation and
6842             added swappedLR to keep track
6843         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata,
6844           pdata & code for GCC, z80, gbz80 & hc08
6845         * support/regression/tests/zeropad.c: moved defines to testfwk.h
6846
6847 2006-03-08 Raphael Neider <rneider AT web.de>
6848
6849         * src/pic16/main.c (_hasNativeMulFor): fixed bug #1444425
6850
6851 2006-03-07 Maarten Brock <sourceforge.brock AT dse.nl>
6852
6853         * device/include/mcs51/c8051f410.h: new SiLabs mcu
6854         * src/ds390/peeph.def: disabled 186.d and 227.a as fix for #1434401
6855         * support/regression/tests/array.c: added parenthesis, made arrays unsigned
6856
6857 2006-03-06 Borut Razem <borut.razem AT siol.net>
6858
6859         * support/regression/ports/pic16/spec.mk: link with libm18f.lib,
6860           made the linker quiet
6861
6862 2006-03-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
6863
6864         * src/pic16/gen.c (genPcall): fixed bug #1443644
6865         * src/pic16/device.h (struct pic16_options_t): added 'int CATregs' flag
6866         which dumps before the function entry point a data byte which represents
6867         the number of the local variables used by the specified function, added
6868         'xinst' for initial support for Extended Instruction Support,
6869         * src/pic16/gen.c (aopForSym, pic16_aopGet): beautifications,
6870         (pic16_testStackOverflow): do not prefix GSTACK_TEST_NAME with
6871         port->fun_prefix anymore (may change later),
6872         (genFunction, genEndFunction): do not store/restore local registers for
6873         _main (this should take care the --main-return command line option in
6874         the future),
6875         (genOr): removed some legacy pic-port instructions,
6876         * src/pic16/genarith.c (genAddLit): re-enabled old code because
6877         performing operations with SFR's causes data to be written more than
6878         once to each SFR. Perhaps SFRs should be handled in special cases...
6879         * src/pic16/glue.c: macros BIG_ENDIAN and BYTE_IN_LONG are moved to
6880         pcode.h
6881         * src/pic16/main.c (_process_pragma): stack bound checking did not take
6882         into account for stack starting position,
6883         (struct OPTIONS pic16_optionsTable): added command line argument
6884         --extended or -y for Extended Instruction Support,
6885         * src/pic16/ralloc.c (pic16_decodeOp): added case for FUNCTION,
6886         (deassignLRs): *** perhaps the most important change, old 'for' code
6887         (commented out for reference), didn't account for some registers which
6888         were left marked 'not free' after a pointer operation. The change
6889         reduces register usage a lot in some cases
6890
6891 2006-03-04 Borut Razem <borut.razem AT siol.net>
6892
6893         * support/regression/ports/hc08/spec.mk: remove *.asm in traget
6894           _clean
6895         * support/regression/tests/bug-524697.c: decreased array size for
6896           mcs51 to fit into the internal RAM
6897         * support/regression/Makefile.in: a little bit more verbose
6898
6899 2006-03-03 Borut Razem <borut.razem AT siol.net>
6900
6901         * support/regression/fwk/lib/testfwk.c,
6902           support/regression/fwk/include/testfwk.h: introduced function
6903           _prints(), nonrecursive _printn(), call _initEmu() from main()
6904         * support/regression/ports/gbz80/support.asm,
6905           support/regression/ports/ucz80/support.asm,
6906           support/regression/ports/z80/support.asm,
6907           support/regression/ports/ds390/support.c,
6908           support/regression/ports/hc08/support.c,
6909           support/regression/ports/host/support.c,
6910           support/regression/ports/mcs51/support.c,
6911           support/regression/ports/xa51/support.c: added empty _initEmu()
6912           function
6913         * support/regression/ports/pic16/gpsim.cmd,
6914           support/regression/ports/pic16/spec.mk,
6915           support/regression/ports/pic16/support.c,
6916           support/regression/Makefile.in: added pic16 regression test
6917
6918 2006-03-01 Raphael Neider <rneider AT web.de>
6919
6920         * src/pic16/gen.c (genPcall,pic16_derefPtr,genGenPointerGet,
6921           genConstPointerGet): use safe way of generating MOVFF to cover
6922             literals as well as registers, fixes bug #1440527
6923         * src/pic16/glue.c (pic16_printIvalBitFields): prevent NULL pointer
6924             dereference
6925           (pic16_printIvalUnion,pic16_isUnion): NEW, handle initialized unions
6926             more correctly, fixes bug #1232186
6927           (pic16_printIval): use pic16_printIvalUnion() for initialized unions
6928         * src/pic16/main.c (_pic16_linkEdit): reorder linker arguments to make
6929             gplink guess the correct processor in more cases, applied patch
6930             from Till Riedel attached to and fixing bug #1436552
6931
6932 2006-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6933
6934         * support/regression/tests/array.c: added, contains check for #1434401
6935         * src/mcs51/peeph.def: disabled 186.d as temporary fix for #1434401
6936
6937 2006-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
6938
6939         * device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
6940         * device/include/mcs51/at89S8252.h: fixed, thanks to Krzysztof Polomka
6941         * device/include/mcs51/c8051f326.h,
6942         * device/include/mcs51/c8051f340.h: new SiLabs mcu's
6943         * device/include/mcs51/c8051f000.h,
6944         * device/include/mcs51/c8051f018.h,
6945         * device/include/mcs51/c8051f020.h: used () with __at, renamed IDLE,STOP to
6946           PCON_IDLE,PCON_STOP and added sfr16 definitions
6947
6948 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
6949
6950         * src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
6951           genGetWord): fixed bug 1409955
6952
6953 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
6954
6955         * device/include/hc08/mc68hc908gp32.h,
6956         * device/include/hc08/mc68hc908jb8.h: removed AWUL, added PTA6 & PTA7
6957
6958 2006-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
6959
6960         * src/SDCCast.c (constExprValue): return NULL if not a value
6961         * src/SDCCglue.c (printIvalArray): fixed bug 1225568
6962         * src/hc08/gen.c(genUnpackBits, genUnpackBitsImmed): fixed bug 1019480
6963         * support/regression/tests/bitfields.c: enabled signed bitfield for all
6964
6965 2006-02-13 Borut Razem <borut.razem AT siol.net>
6966
6967         * src/regression/ptrarg.c: added, fails due to bug #1430967
6968         * src/regression/Makefile: ptrarg.c added, ...
6969
6970 2006-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
6971
6972         * src/z80/gen.c (genUnpackBits): fixed bug 1019480
6973         * support/regression/tests/bitfields.c: enabled signed bitfield for z80
6974
6975 2006-02-11 Borut Razem <borut.razem AT siol.net>
6976
6977         * src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
6978           print "Processor: xxx" message to stdout only if --verbose
6979
6980 2006-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
6981
6982         * src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
6983         * support/regression/tests/bug1426356.c: added
6984         * support/regression/tests/bitfields.c: removed 2 tests
6985
6986 2006-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
6987
6988         * device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
6989         * device/include/mcs51/c8051f330.h,
6990         * device/include/mcs51/c8051f350.h: used () with __at, renamed IDLE,STOP to
6991           PCON_IDLE,PCON_STOP and added sfr16 definitions
6992         * device/lib/_divsint.c,
6993         * device/lib/_divuint.c,
6994         * device/lib/_divulong.c,
6995         * device/lib/_divulong.c: renamed a,b to x,y to avoid confusion, fixed
6996           register bank bug for small stackauto
6997
6998 2006-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
6999
7000         * support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()
7001
7002 2006-02-08 Maarten Brock <sourceforge.brock AT dse.nl>
7003
7004         * support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
7005         * all.dsp: corrected several bin paths
7006         * device/include/mcs51/c8051f120.h,
7007         * device/include/mcs51/c8051f300.h,
7008         * device/include/mcs51/c8051f310.h: used () with __at and renamed IDLE,STOP
7009           to PCON_IDLE,PCON_STOP
7010         * device/include/mcs51/c8051f320.h: see above, also added sfr16 definitions
7011         * device/lib/printf_large.c (output_float): fixed bug 1388703
7012         * support/regression/tests/bug1057979.c: added test for bug 1388703
7013
7014 2006-02-08 Raphael Neider <rneider AT web.de>
7015
7016         * src/pic/pcode.c (pciTRIS): fixed typo,
7017           (BuildFlow,LinkFlow_pCode): added (disabled) debug output,
7018           (LinkFlow): fixed handling of flows that end in a call,
7019           (ReuseReg): perform safety check earlier
7020         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed
7021             to work with flows at the beginning of a pBlock,
7022             fixes #1426557 (Symbol not previously defined),
7023           (pic14_ReMapLiveRanges): NEW, destroy and rebuild register
7024             usage information
7025           (RemoveUnusedRegisters): update register usage info
7026         * src/pic/ralloc.c (newReg): prevent duplicate registers from being
7027             created, reuse existing ones instead
7028         * src/pic/gen.c (genPcall): fixed #1424719
7029
7030 2006-02-07 Bernhard Held <bernhard AT bernhardheld.de>
7031
7032         * link/z80/lkmain.c,
7033         * link/z80/lklex.c,
7034         * link/z80/lkdata.c,
7035         * link/z80/aslink.h: fixed build on current cygwin:
7036         replaced getline() by lk_getline()
7037
7038 2006-02-01 Borut Razem <borut.razem AT siol.net>
7039
7040         * src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
7041           src/regression/add4.c, src/regression/and1.c, src/regression/and2.c,
7042           src/regression/arrays.c, src/regression/b.c, src/regression/bank1.c,
7043           src/regression/bool1.c, src/regression/bool2.c,
7044           src/regression/bool3.c, src/regression/call1.c,
7045           src/regression/compare.c, src/regression/compare10.c,
7046           src/regression/compare2.c, src/regression/compare3.c,
7047           src/regression/compare4.c, src/regression/compare5.c,
7048           src/regression/compare6.c, src/regression/compare7.c,
7049           src/regression/compare8.c, src/regression/compare9.c,
7050           src/regression/configword.c, src/regression/for.c,
7051           src/regression/inline.c, src/regression/mult1.c,
7052           src/regression/nestfor.c, src/regression/or1.c,
7053           src/regression/pointer1.c, src/regression/ptrfunc.c,
7054           src/regression/rotate1.c, src/regression/rotate2.c,
7055           src/regression/rotate3.c, src/regression/rotate4.c,
7056           src/regression/rotate5.c, src/regression/rotate6.c,
7057           src/regression/rotate7.c, src/regression/string1.c,
7058           src/regression/struct1.c, src/regression/sub.c,
7059           src/regression/sub2.c, src/regression/switch1.c,
7060           src/regression/while.c, src/regression/xor.c,
7061           src/regression/create_stc, src/regression/simulate,
7062           src/regression/rt.sh, src/regression/Makefile: reenabled Scott's PIC14
7063           regression tests
7064         * src/regression/gpsim_assert.h: added
7065
7066 2006-01-28 Bernhard Held <bernhard AT bernhardheld.de>
7067
7068         * src/ds390/gen.c (unsaveRegisters): fixed literal function pointer
7069         ((void (code *) (void)) 0) ();
7070         * as/hc08/aslex.c,
7071         * as/hc08/aslink.h,
7072         * as/hc08/asm.h,
7073         * as/hc08/asmain.c,
7074         * as/hc08/lkdata.c,
7075         * as/hc08/lklex.c,
7076         * as/hc08/lkmain.c,
7077         * as/mcs51/aslex.c,
7078         * as/mcs51/aslink.h,
7079         * as/mcs51/asm.h,
7080         * as/mcs51/asmain.c,
7081         * as/mcs51/lkdata.c,
7082         * as/mcs51/lklex.c,
7083         * as/mcs51/lkmain.c,
7084         * as/z80/aslex.c,
7085         * as/z80/asm.h,
7086         * as/z80/asmain.c: fixed build on current cygwin:
7087         replaced getline() by as_getline()
7088
7089 2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
7090
7091         * src/SDCC.y: fixed bug #716242, exchanged pointer and function
7092         declarator in the symbol chain
7093         * src/SDCCsymt.h,
7094         * src/SDCCsymt.c (processFuncPtrArgs): added, removes "(void)"
7095         parameter list for function pointers
7096         * src/SDCCast.c (decorateType): added call of processFuncPtrArgs()
7097         * support/regression/tests/bug-716242.c: added
7098
7099 2006-01-20 Bernhard Held <bernhard AT bernhardheld.de>
7100
7101         * src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array
7102         offset if possible
7103         * src/SDCCast.c (getLeftResultType): 255 fits in char, not 256
7104
7105 2006-01-18 Bernhard Held <bernhard AT bernhardheld.de>
7106
7107         * src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it
7108         inifinitely recurseable, added static
7109         * support/regression/tests/bug-1408066.c: added
7110
7111 2006-01-17 Bernhard Held <bernhard AT bernhardheld.de>
7112
7113         * src/SDCCicode.h,
7114         * src/SDCCicode.c (newiTempPreheaderLabel, newiTempLoopHeaderLabel):
7115         renamed, added possibility to create "postLoopLbl"-labels
7116         * src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to
7117         newiTempLoopHeaderLabel
7118         * src/SDCCloop.c (newInduction, newRegion, backEdges, insertIntoLoop,
7119         isNotInBlocks, addToExitsMarkDepth, createLoop, dominatedBy,
7120         addDefInExprs, assignmentsToSym, isOperandInvariant, pointerAssigned,
7121         hasNonPtrUse, loopInvariants, addressTaken, findInduction,
7122         findDefInRegion, mergeRegions, ifMerged, mergeInnerLoops): made static,
7123         (pinduction, pregion, hasIncomingDefs, findLoopEndSeq): disabled,
7124         (basicInduction): fixed bug #136564, made static,
7125         (loopInduction): changed parameter of basicInduction, made static,
7126         (addPostLoopBlock): added
7127         * src/SDCCloop.h: removed backEdges, pregion, pinduction,
7128         loopOptimizations, addressTaken, findDefInRegion, hasIncomingDefs,
7129         findLoopEndSeq
7130         * support/regression/tests/bug-136564.c: added
7131         * support/regression/ports/mcs51-xstack-auto/spec.mk: added
7132         --std-sdcc99 to LIBSDCCFLAGS
7133
7134 2006-01-16 Bernhard Held <bernhard AT bernhardheld.de>
7135
7136         * src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false
7137         while loop
7138         * support/regression/tests/bug-1406131.c: added
7139
7140 2005-12-31 Bernhard Held <bernhard AT bernhardheld.de>
7141
7142         * src/SDCCast.c (decorateType): fix promotion of unary minus
7143         * src/SDCCsymt.c (computeType): beautified
7144         * src/SDCCval.c (cheapestVal): beautified, old non-Ansi version removed,
7145         (valUnaryPM, valComplement): fix sign and promotion,
7146         (valNot): ANSI: result type is int (SDCC: unsigned char)
7147         * support/regression/tests/uminus.c: speedup by removing superflous
7148         test case 'int'
7149         * support/regression/tests/onebyte.c: added promotion and signedness
7150         tests for unary minus
7151         * support/regressions/tests/bug-477927.c: disable warning about
7152         uninitialized variables
7153         * support/regression/tests/not.c: added
7154
7155 2005-12-28 Bernhard Held <bernhard AT bernhardheld.de>
7156
7157         * device/lib/Makefile.in: added --std-sdcc99 to CFLAGS
7158         * src/mcs51/gen.c (gen51Code): show final register usage after
7159         fillGaps in asm with --i-code-in-asm
7160         * src/SDCClrange.c (sequenceiCode, setLiveFrom, setLiveTo,
7161         markLiveRanges, markAlive, findNextUseSym, findNextUse, unvisitBlocks,
7162         incUsed, rliveClear, adjustIChain): made static,
7163         (setFromRange): excluded because it's unused,
7164         (findPrevUseSym, markWholeLoop): added,
7165         (findPrevUse): rewritten; fixes bug 895992; now a complete search
7166         through all branches of predecessors enables sdcc to emit the warning
7167         W_LOCAL_NOINIT, marking of outermost loop was incomplete,
7168         (rlivePoint): made static, added parameter emitWarnings which is only
7169         true during the first run out of two,
7170         (findRecursiveSucc, findRecursivePred): removed,
7171         (computeLiveRanges): made static, added parameter emitWarnings,
7172         (dumpIcRlive): added for debugging only
7173         * src/SDCClrange.h: added boolean parameter to computeLiveRanges(),
7174         removed prototype of setFromRange()
7175         * src/SDCCopt.c (eBBlockFromiCode): added new parameter emitWarnings
7176         in call of computeLiveRanges()
7177         * support/regression/tests/bug-895992.c: added
7178         * support/regression/tests/bug-971834.c: added
7179         * support/valdiag/tests/bug-895992.c: added
7180         * support/valdiag/tests/bug-971834.c: added
7181
7182 2005-12-18 Raphael Neider <rneider AT web.de>
7183
7184         * src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
7185           (genUnpackBits): improved code for direct operands,
7186           (genPackBits): improved code for literal assignment to bitfields
7187             and for direct destination operands (no FSR indirection),
7188             prevented redundant AND, fixes #1362800,
7189           (AccLsh): added parameter to disable masking of the result
7190         * src/pic16/pcode.c (pic16_safepCodeUnlink): fixed to work with
7191           skip instructions with side-effects (like incfsz),
7192           (pic16_pCodeIsAlive): suppress verbose output unless pcode_verbose,
7193         * src/pic16/pcoderegs.c (RemoveRegsFromSet): removed annoying warning
7194         * device/lib/pic16/Makefile.common.in: added --asm=@GPASM@ to CC,
7195           fixes #1375263
7196
7197 2005-12-11 Bernhard Held <bernhard AT bernhardheld.de>
7198
7199         * src/SDCCicode.c (geniCodeAssign): fixed bug 11369874, don't use
7200         volatile variables as spill location
7201
7202 2005-12-10 Bernhard Held <bernhard AT bernhardheld.de>
7203
7204         * src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to
7205         replacing literals
7206         * support/regression/tests/bug-1376320.c: added
7207
7208 2005-12-08 Raphael Neider <rneider AT web.de>
7209
7210         * src/pic/device.c: renamed is_shared to pic14_is_shared
7211         * src/pic/gen.c (genIfx): re-enabled handling of sbits
7212         * src/pic/glue.c (emitSymbolToFile): added workaround for sbits,
7213           (is_valid_identifier): added for above workaround
7214
7215 2005-12-07 Maarten Brock <sourceforge.brock AT dse.nl>
7216
7217         * device/lib/Makefile.in: fixed to enable port-specific-objects
7218         * device/lib/ds390/i2c390.c (BitOutI2C): optimized by making bout unsigned
7219           char, thanks Hubert Sack
7220         * doc/sdccman.lyx: documented --xstack-loc,
7221           elaborated a bit more on interrupts and pitfalls,
7222           removed "setjmp/longjmp unsupported",
7223           documented some unsupported C99 features
7224         * src/SDCCmain.c (linkEdit): adapted default lib path for --stack-auto
7225         * src/SDCCpeeph.c (readRules): inserted patch 1367130 for finding missing
7226           if, thanks Hubert Sack
7227         * src/mcs51/gen.c (genEndFunction): enabled "pop psw" for regbank 0 isr
7228         * support/regression/Makefile.in: test-mcs51-stack-auto no longer needs to
7229           make make_library
7230         * support/regression/get_ticks.py: new, get cpu cycles and code size, so
7231           regression tests can report resource usage (rfe 700441)
7232         * support/regression/collate-results.py: report resource usage
7233         * support/regression/ports/ds390/spec.mk,
7234         * support/regression/ports/hc08/spec.mk,
7235         * support/regression/ports/mcs51/spec.mk,
7236         * support/regression/ports/ucz80/spec.mk: run sim output through get_ticks
7237         * support/regression/ports/ds390/uCsim.cmd,
7238         * support/regression/ports/hc08/uCsim.cmd,
7239         * support/regression/ports/mcs51/uCsim.cmd,
7240         * support/regression/ports/ucz80/uCsim.cmd: inserted "state" to report time
7241         * support/regression/ports/mcs51-stack-auto/spec.mk: no need to build the
7242           library, use the default one
7243         * support/regression/ports/mcs51-xstack-auto/spec.mk: inserted rules for
7244           building the library
7245
7246 2005-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
7247
7248         * config.dsp: added dependency on .version and configure_vc.awk
7249         * device/include/setjmp.h: updated for --stack-auto and --xstack
7250         * device/include/mcs51/at89c51snd1c.h: corrected line endings
7251         * device/include/mcs51/XC866.h: added, thanks Llewellyn van Zyl
7252         * device/lib/_setjmp.c: updated for --stack-auto and --xstack
7253         * device/lib/libsdcc.lib: added _setjmp
7254         * src/SDCCast.c (createIvalCharPtr): fixed warnings,
7255           (decorateType): fixed bug 1372851,
7256           (optimizeGetHbit): fixed warning
7257         * src/SDCCglue.c (printIvalChar, printIvalArray): adapted for flexible
7258           array initialisation
7259         * support/regression/tests/bug1057979.c: added test for bug 1358192
7260         * support/regression/tests/setjmp.c: added, test for setjmp/longjmp
7261
7262 2005-12-03 Borut Razem <borut.razem AT siol.net>
7263
7264         * support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
7265           command since the NSIS was upgraded to version 2.11 on CF x86-linux2
7266
7267 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
7268
7269         * src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr,
7270         createIval): implement symbol independant "flexible array member",
7271         (createIvalCharPtr): implemented flexible array initialisation with a
7272         string
7273         * src/SDCCsymt.c (copyStruct): removed,
7274         (getSize): fixed misleading comment,
7275         (getAllocSize): removed, the additional allocation size is now in
7276         sym->flexArrayLength,
7277         (checkStructFlexArray): new, syntax checks for flexible array members,
7278         (compStructSize): added syntax checks for "flexible array members"
7279         (copyStruct): removed,
7280         (copyLinkChain): removed inefficient fix for bug 770487
7281         * src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
7282         * src/SDCCsymt.h: added structdef.b_flexArrayMember and
7283         symbol->flexArrayLength
7284         * src/SDCCerr.c,
7285         * src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY,
7286         E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
7287         * support/regression/tests/structflexarray.c: added
7288         * support/valdiag/tests/structflexiblearray.c: added
7289
7290 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
7291
7292         * src/SDCCast.c (decorateType): fixed bug 1368489
7293         * support/Util/SDCCerr.c,
7294         * support/Util/SDCCerr.h: added warning W_CMP_SU_CHAR
7295
7296 2005-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7297
7298         * device/include/mcs51/at89c51snd1c.h: added file submitted by
7299           Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001
7300
7301 2005-11-27 Borut Razem <borut.razem AT siol.net>
7302
7303         * support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
7304           support/cpp2/mkdeps.h: added command line option
7305           -obj-ext=<extension> to SDCPP to define object file externion, used
7306           for generation of make dependencies (-M)
7307         * src/SDCCmain.c: pass -obj-ext=<extension> to SDCPP
7308
7309 2005-11-26 Borut Razem <borut.razem AT siol.net>
7310
7311         * support/scripts/sdcc.nsi: added small-stack-auto libraries,
7312           added missing device/lib/mcs51/crt*.asm, pic and pic16 sources,
7313           added pic and pic16 libraries
7314
7315 2005-11-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7316
7317         * device/include/float.h: Corrected typo in prototype of __fsgt
7318
7319 2005-11-25 Borut Razem <borut.razem AT siol.net>
7320
7321         * sdcc/device/lib/Makefile.in, sdcc/device/lib/incl.mk:
7322           added creation of model-mcs51-stack-auto libraries
7323
7324 2005-11-24 Bernhard Held <bernhard AT bernhardheld.de>
7325
7326         * src/SDCCsymt.c (copyLinkChain): fixed bug 770487, copy structdef
7327         and fields-list too
7328         * src/SDCCast.c (createIvalArray): removed obsolete comment
7329
7330 2005-11-24 Borut Razem <borut.razem AT siol.net>
7331
7332         * sdcc/device/lib/Makefile.in: remove all unnecessary files, 2nd try...,
7333           added missing device/lib/mcs51/crt*.asm sources
7334
7335 2005-11-23 Bernhard Held <bernhard AT bernhardheld.de>
7336
7337         * src/SDCCast.c (createIvalCharPtr): fixed bug 1348271
7338
7339 2005-11-22 Maarten Brock <sourceforge.brock AT dse.nl>
7340
7341         * device/lib/_fs2schar.c,
7342         * device/lib/_fs2sint.c,
7343         * device/lib/_fs2slong.c: optimized inline asm
7344
7345 2005-11-21 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7346
7347         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
7348           Better handling of floats between -1.0 and 0.0.
7349
7350 2005-11-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7351
7352         * src/mcs51/peeph.def: added missing "if"s as noted by Hubert Sack.
7353           (the missing "if"s prohibited removal of redundant labels)
7354
7355 2005-11-19 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7356
7357         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
7358           Properly convert floats between -1.0 and 0.0 to long, int, and char
7359           types (max integer value of negative floats tends to zero).
7360         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
7361           Removed changes made so to work properly with floats between
7362           -1.0 and 0.0, as the problem is fixed in _fs2slong.c, _fs2sint.c,
7363           and _fs2char.c
7364
7365 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
7366
7367         * src/SDCCcse.c (ReplaceOpWithCheaperOp): minor fix for debugging only
7368         * src/mcs51/gen.c (genUnpackBits): better code and a fix,
7369         (genCast) cosmetic change
7370         * src/ds390/gen.c (genUnpackBits, ): ported from mcs51
7371         * src/ds390/ralloc.c (packRegsForAssign): ported fix for bitfields
7372         from mcs51
7373         * support/regression/tests/bitfields (testSignedBitfields): added
7374
7375 2005-11-18 Borut Razem <borut.razem AT siol.net>
7376
7377         * sdcc/device/lib/Makefile.in: remove all unnecessary files
7378         * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
7379           introduced SILENT option to make building of pic16 libraries less
7380
7381 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7382
7383         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
7384           Now they work properly with floats between -1.0 and 0.0
7385         * device/lib/printf_large.c: Removed temporary patch for bug 1358192
7386
7387 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
7388
7389         * src/SDCCicode.c (printOperand): added missing else
7390
7391 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
7392
7393         * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
7394         reformatted for better readability
7395         * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
7396         signed bitfields
7397
7398 2005-11-17 Borut Razem <borut.razem AT siol.net>
7399
7400         * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
7401           introduced SILENT option to make building of pic16 libraries less
7402           verbose - used for nightly snapshot build
7403         * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
7404           available on Win32 platforms.
7405         * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
7406           medium, large, pic and pic16
7407
7408 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7409
7410         * device/lib/printf_large.c: Temporary patch for bug 1358192:
7411           printf("%f"...) sets fraction to zero.
7412
7413 2005-11-16 Raphael Neider <rneider AT web.de>
7414
7415         * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
7416           fixes #1357221
7417         * src/pic/gen.c (genIfx): implemented for CARRY bit
7418         * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
7419           to generic pointers, fixes #1357332,
7420           (pic16_movLit2f): NEW,
7421           (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
7422
7423 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
7424
7425         * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
7426
7427 2005-11-11 Raphael Neider <rneider AT web.de>
7428
7429         * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
7430         * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
7431           compute pointer's type from operand,
7432           (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
7433           improved single bit reads, fixes bug #1353379
7434
7435 2005-11-09 Borut Razem <borut.razem AT siol.net>
7436
7437         * support/scripts/sdcc.nsi: added lib/pic to the package
7438
7439 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
7440
7441         * src/SDCCval.c (valUnaryPM): fixed bug 1350699
7442
7443 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
7444
7445         * support/regression/tests/bug1348008.c: added
7446         * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
7447         * support/regression/tests/bug1337835.c: updated comment
7448
7449 2005-11-06 Borut Razem <borut.razem AT siol.net>
7450
7451         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
7452           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
7453           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
7454           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
7455           sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
7456           dynamic construction of cl_error_class and derivates - 2.nd try
7457
7458 2005-11-05 Borut Razem <borut.razem AT siol.net>
7459
7460         * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
7461           bug, which caused Bus Errors on sparc solaris
7462
7463 2005-11-04 Borut Razem <borut.razem AT siol.net>
7464
7465         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
7466           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
7467           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
7468           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
7469           sim/ucsim/cmd.src/cmdconf.cc: dynamic construction of cl_error_class
7470           and derivates to resolve the initialization problem on OSX
7471
7472 2005-11-02 Borut Razem <borut.razem AT siol.net>
7473
7474         * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
7475           corrected typo - #include <winsock2.h>
7476
7477 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
7478
7479         * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
7480           (_asxxxx_mapping): added org directive for future enhancements
7481
7482 2005-11-01 Borut Razem <borut.razem AT siol.net>
7483
7484         * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
7485           enabled sockets on WIN32
7486         * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
7487
7488 2005-10-31 Borut Razem <borut.razem AT siol.net>
7489
7490         * support/regression/generate-cases.py: escape backslashes in {testcase}:
7491           WIN32 backslash path delimiters should be escaped when used in C strings
7492         * support/regression/tests/bitfields.c: exclude failing assertions for
7493           __CYGWIN32__ and __MINGW32__ hosts
7494
7495 2005-10-30 Borut Razem <borut.razem AT siol.net>
7496
7497         * src/SDCCutil.c: corrected double comparison typo
7498
7499 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
7500
7501         * device/lib/medium/Makefile: added for new memory model medium
7502         * device/include/asm/mcs51/features.h: updated for medium/pdata
7503         * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
7504           added Multiply & Accumulate sbit's and MAC0_PAGE define
7505         * device/include/mcs51/c8051f300.h: added sfr16 definitions
7506         * device/include/mcs51/c8051f310.h: added sfr16 definitions
7507         * device/lib/_mullong.c: update for medium model
7508         * device/lib/incl.mk: added medium model
7509         * doc/sdccman.lyx: documented medium model
7510         * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
7511         * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
7512         * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
7513         * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
7514           (allocParms): set SCLS and OCLS to pdata for medium model
7515         * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
7516           for pdata,
7517           (powof2): return <0 if not power of 2
7518         * src/avr/gen.c (genBitWise): use updated powof2
7519         * src/mcs51/gen.c (genMinusDec): use acc if necessary,
7520           (shiftR2Left2Result): small optimization in setup, save acc when storing,
7521           (shiftLLeftOrResult): use B if necessary
7522         * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
7523         * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
7524         * src/pic/main.c (_pic14_do_link): made void parameter list explicit
7525         * support/regression/Makefile.in: added test-mcs51-medium
7526         * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
7527
7528 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
7529
7530         * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
7531         specifier unsigned
7532         * device/lib/time.c (mktime): fixed bug 1334315
7533
7534 2005-10-28 Raphael Neider <rneider AT web.de>
7535
7536         * device/include/pic/p16f_common.inc: added common declarations
7537         * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
7538
7539 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
7540
7541         * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
7542           (aopPutUsesAcc): added to predict accumulator use,
7543           (assignResultValue): save acc if necessary,
7544           (genMinusDec): store result if indirectly addressed,
7545           (genDivOneByte):  save acc if necessary,
7546           (movLeft2Result): bugfix if left already in acc,
7547           (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
7548             attention to accumulator use (esp. pdata),
7549           (genReceive): receive pdata correctly
7550         * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
7551         * src/SDCCicode.h: added isOperandInPagedSpace prototype
7552
7553 2005-10-27 Raphael Neider <rneider AT web.de>
7554
7555         * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
7556
7557 2005-10-27 Raphael Neider <rneider AT web.de>
7558
7559         * .version: changed version to 2.5.4
7560         * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
7561         * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
7562           (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
7563             arithmetics support routines
7564         * device/lib/pic/Makefile.rules: have assembler sources preprocessed
7565         * device/lib/Makefile.in: also create installdir for pic
7566
7567         * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
7568           pic14 port as well
7569         * src/pic/device.c (dump_sfr): rewritten to delegate register
7570           placement to the linker (use `extern sym' rather than sym EQU addr),
7571           (validAddress): fixed to check last specified address
7572         * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
7573           (popGetLit): truncate literal value to 8 bit,
7574           (popGet): moved assert to more appropriate place
7575           (popGetExternal): create pCode operand from and mark the according
7576             symbol as being `extern'
7577           (popGetAddr): added sanity check on immediate's offset, provide
7578             GPOINTER tag on demand
7579           (aopPut): fixed for immediates,
7580           (mov2w_op): move operand's address or contents to WREG (depending on
7581             operand type), safer variant of mov2w,
7582           (movwf,call_libraryfunc): NEW, handy abbreviations,
7583           (get_argument_pcop,get_return_val_pcop,pass_argument,
7584           get_returnvalue): interface for accessing function parameters and
7585             return values,
7586           (assignResultValuei,genRet): use new parameter/return value interface
7587           (pic14_getDataSize): back to old version handling generic pointers,
7588           (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
7589             provided implementation and/or fixed old one,
7590           (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
7591             calls, removed legacy 8051 reference code
7592           (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
7593           (loadSignToC): NEW, move the operands sign bit to CARRY,
7594           (genGenericShift): NEW, replaces genLeftShift, genRightShift and
7595             genRightShiftSigned, accepts negative shift counts,
7596           (setup_fsr): load FSR and adjust IRP (indirect memory access),
7597           (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
7598             generic pointers, __data pointers and __code pointers,
7599           (genUnpackBits,genPackBits): rewritten to work with generic pointers
7600             and signed bitfields, limit bitfields to 8 bit,
7601           (genDataPointerGet): fixed number of bytes read,
7602           (genGenPointerGet,genConstPointerGet): fixed bitfield access,
7603           (genPointerGet,genPointerSet): fixed handling of __code pointers,
7604             pointers to constant data are no longer assumed to point to __code
7605             space, removed invalid pointer types,
7606           (bitpatternFromVal): retrieve the PICs representation of an integer
7607             or float literal,
7608           (genDataPointerSet): fixed assigning to po_immediate operands,
7609           (genGenPointerSet): implemented as library call,
7610           (genIfx): fixed incorrect condition,
7611           (genAddrOf): limit generic pointers' addresses to 2 bytes,
7612             provide GPOINTER tag according to destination's storage class,
7613           (genCast): added code to handle casting to generic pointers, added
7614             sign-/zero extension of the result
7615           (aop_isLitLike,op_isLitLike): fixed handling of immediates
7616         * src/pic/gen.h: added macros to access IRP bit in STATUS register
7617         * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
7618           extend the result
7619         * src/pic/glue.c (is_shared_address,is_shared): check whether a given
7620           address/register resides in the shared banks
7621           (emitSymbolToFile): improved to handle global and `pinned' symbols,
7622             put all variables into separate sections (have the linker arrange
7623             them)
7624           (picglue): put init code and interrupt handlers in separate sections
7625         * src/pic/main.c: added port specific options table, modified to PORT
7626           structure to make GPOINTERs 3 byte, added pic14_options
7627           (_pic14_do_link): private linking routine (update paths to libraries,
7628             add libsdcc.lib by default)
7629         * src/pic/main.h: declare pic14_options
7630         * src/pic/pcode.c: fixed instructions i/o relations,
7631           (RegCond): reverted to correct version,
7632           (newpCodeOpLit): truncate literals to 8 bit,
7633           (genericPrint): added debug output,
7634           (getRegFromInstruction): fixed for various operand types, simplified
7635           (BuildFlow): fixed broken handling of isntructions with labels
7636           (LinkFlow): start at last instruction in flow (skip trailing comments),
7637             pass the flow on to the next instruction after CALL
7638           (pCodeReplace): NEW, replace a pCode and move meta data to the new one
7639           (insertPCodeInstruction): fixed inserting after a skip instruction,
7640           (DoBankSelect): fixed for labeled instructions
7641           (OptimizepBlock): honor --nopeep switch
7642           (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
7643         * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
7644         * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
7645           (pCodeOptime2pCodes): allow disabling this optimization via
7646             --no-pcode-opt due seldomly occuring bugs, fixed some conditions
7647             but is still buggy), started implementation of a dataflow based
7648             pCode optimization (CSE + dead code elimination)
7649           (pCodeRegMapLiveRangesInFlow): removed bogus inCond
7650         * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
7651           names are independant of the stack location and therefore portable across
7652           devices
7653
7654 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
7655
7656         * src/mcs51/ralloc.c (bitType): added to detect bit variables,
7657           (selectSpil): fixed bug 1337835 by not spilling bit variables
7658         * support/regression/tests/bug1337835.c: added test for this bug
7659         * src/mcs51/peeph.def: restart after rule 3.c,
7660           addded rules 263.x to optimize loading constants
7661
7662 2005-10-26 Raphael Neider <rneider AT web.de>
7663
7664         * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
7665         * src/pic16/gen.c (genUnpackBits): support signed bitfields,
7666           (genAssign): emit warning when casting literals to generic pointer
7667             type, also applies when taking the address of a fixed variable,
7668           (genCast): improved casting to generic pointers
7669         * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
7670           extern variables, added verbose error message
7671         * device/include/pic16/{string.h,errno.h}: added #pragma library c
7672
7673 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
7674
7675         * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
7676         carry must be complemented too
7677         * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
7678         could be emitted by genMinus
7679         * src/SDCCval.c (constVal): fixed bug 1305065
7680
7681 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
7682
7683         * src/SDCCast.c (addCast): added promotion for bit variables
7684         (decorateType): emit W_COMPLEMENT before the problem vanishes behind
7685         promotion casts + optimisation
7686         (optimizeGetWord): fix warning 'i' might be used uninitialized
7687         * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
7688         * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
7689
7690 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
7691
7692         * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
7693         all chars are promoted to int; promotion should be handled in SDCCast.c
7694
7695 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7696
7697         * device/lib/_strcmp.c: Fixed bug 1326457
7698
7699 2005-10-11 Raphael Neider <rneider AT web.de>
7700
7701         * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
7702         * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
7703
7704 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
7705
7706         * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
7707         * support/regression/tests/sfr16.c: added test for the sfr32 bug
7708
7709 2005-10-04 Raphael Neider <rneider AT web.de>
7710
7711         * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
7712           device/lib/pic16/pics.all: added pic18f1320
7713         * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
7714
7715 2005-09-30 Raphael Neider <rneider AT web.de>
7716
7717         * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
7718         * src/pic16/devices.inc: NEW, provides device descriptions
7719         * src/pic16/gen.c (genInline): fixed handling of ';'-comments
7720
7721 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
7722
7723         * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
7724           GETHBIT
7725
7726 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
7727
7728         * doc/sdccman.lyx: updated Highest Order Bit documentation,
7729           documented Any Order Bit, Higher Order Byte and Higher Order Word
7730         * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
7731         * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
7732           (optimizeGetAbit): new, to get any bit, not only the high bit,
7733           (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
7734           (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
7735           (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
7736           (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
7737             RIGHT_OP: also try GETBYTE, GETWORD optimization,
7738             GETABIT, GETBYTE, GETWORD: decorate them,
7739           (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
7740           (ast_print): added GETABIT, GETBYTE, GETWORD
7741         * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
7742         * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
7743           (geniCodeBinary): new generic binary icode,
7744           (ast2iCode): added GETABIT, GETBYTE, GETWORD
7745         * src/port.h: updated comment for PORT.hasExtBitOp
7746         * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
7747           (genGetByte): new, to get a single byte,
7748           (genGetWord): new, to get a word from a long,
7749           (gen51Code): added GETABIT, GETBYTE, GETWORD
7750         * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
7751
7752 2005-09-23 Raphael Neider <rneider AT web.de>
7753
7754         * configure.in, configure: have device/lib/pic configured
7755         * device/lib/Makefile.in: added model-pic14
7756         * device/lib/clean.mk: added pic/ to clean rule
7757         * device/lib/pic: added rudimentary pic14 library providing support
7758           functions for multiplication/division/generic pointer access
7759         * src/SDCCopt.c (convilong): mark support functions as extern
7760           for pic14 port as well
7761         * src/pic/gen.c (genMult): added assertions,
7762           (genpic14Code): emit warning on unhandled iCodes
7763         * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
7764         * src/pic/pcode.c (pCodeOpCopy),
7765         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
7766           pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
7767           SFR_REGISTER}), made safe for future extensions
7768         * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
7769           instructions even if preceeded by SKIP instructions (also remove
7770           them); removed unused code
7771         * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
7772           prevents leaving parts of the structure uninitialized after copying
7773
7774 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
7775
7776         * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
7777           ago by me
7778         * support/regression/tests/addsub.c: added test for the bug
7779
7780 2005-09-21 Raphael Neider <rneider AT web.de>
7781
7782         * device/include/pic16/pic18f1220.h,
7783           device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
7784         * device/lib/pic16/Makefile.rules: added missing opening paren
7785         * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
7786           are provided in genutils.c,
7787           (genUminusFloat,genUminus,genCmpEq): added asserts on different
7788           operand/result sizes,
7789           (genCmp): assert on NULL pointers first, then check deref'ed values
7790         * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
7791           result size
7792
7793 2005-09-18 Raphael Neider <rneider AT web.de>
7794
7795         * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
7796           as these are now unused,
7797           (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
7798         * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
7799           local, avoids uninitialized pointer dereference on r->name
7800         * src/pic16/ralloc.c (newReg): fixed indentation
7801
7802 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
7803
7804         * src/SDCCval.c (constVal): fixed bug 730366
7805         * support/Util/SDCCerr.c,
7806         * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
7807
7808 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
7809
7810         * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
7811
7812 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
7813
7814         * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
7815
7816 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
7817
7818         * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
7819           (hex2dec): made hex_digit unsigned char, removed ascii dependance
7820         * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
7821           (hex2dec): made hex_digit unsigned char, removed ascii dependance
7822         * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
7823         * packihx/packihx.c (hexDigit): made c unsigned char
7824         * as/mcs51/lklibr.c (fndsym),
7825         * link/z80/lkgb.c (gb),
7826         * link/z80/lklibr.c (fndsym),
7827         * link/z80/lkrloc.c (relr),
7828         * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
7829         * src/SDCC.lex (checkCurrFile, process_pragma),
7830         * src/SDCCglue.c (spacesToUnderscores),
7831         * src/SDCCmain.c (setParseWithComma, processFile),
7832         * src/asm.c (tvsprintf, printCLine),
7833         * src/avr/gen.c (emitcode, aopPut),
7834         * src/ds390/gen.c (emitcode),
7835         * src/hc08/gen.c (emitcode, emitinline),
7836         * src/mcs51/gen.c (emitcode, genInline),
7837         * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
7838           tokenizeLineNode),
7839         * src/pic/ralloc.c (debugLog),
7840         * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
7841           tokenizeLineNode),
7842         * src/pic16/ralloc.c (debugLog),
7843         * src/z80/main.c (_process_pragma):
7844            made all ctype.h function calls safe
7845         * src/SDCCopt.c: include math.h for fabs
7846         * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
7847           and used them throughout the code to make ctype.h function calls safe
7848         * src/ds390/main.c (asmLineNodeFromLineNode),
7849         * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
7850         * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
7851            unsigned char*
7852         * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
7853           (newpCodeAsmDir): made ctype.h function calls safe
7854         * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
7855           pic16_emitcode):  made lbp unsigned char*
7856         * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
7857           (pic16_newpCodeAsmDir): made ctype.h function calls safe
7858         * src/xa51/gen.c (emitcode),
7859         * src/z80/gen.c (_emit2): made lbp unsigned char*
7860         * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
7861            char*
7862
7863 2005-09-05 Raphael Neider <rneider AT web.de>
7864
7865         * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
7866           access bank splitpoint
7867
7868 2005-09-05 Raphael Neider <rneider AT web.de>
7869
7870         * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
7871
7872 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
7873
7874         * .version: changed to version 2.5.3
7875         * doc/sdccman.lyx: changed version to 2.5.3,
7876           documented --codeseg and --constseg and pragma codeseg and constseg,
7877           documented bit parameters (reentrant) and bit returning
7878         * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
7879            currFunc->recvSize, but is this ok for all ports?
7880           (ast2iCode): result of ~ on unsigned char must be cast to int for
7881            bool to work
7882         * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
7883           function pointers in bit space
7884         * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
7885           (processFuncArgs): call port.reg_parm() with reentrancy info
7886         * src/port.h,
7887         * src/avr/main.c,
7888         * src/ds390/main.c,
7889         * src/hc08/main.c,
7890         * src/pic/main.c,
7891         * src/pic16/main.c,
7892         * src/xa51/main.c,
7893         * src/z80/main.c: port.reg_parm prototype extended with
7894           "bool reentrant" parameter
7895         * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
7896           options.stackAuto for allocating bit register parameters
7897         * src/mcs51/gen.c (genNot): optimized complementing direct bit,
7898           (genSend): set BitBankUsed if it is,
7899           (selectRegBank): factored out of genCall for use in genPcall,
7900           (genCall): removed redundant dtype assignmen, use selectRegBank,
7901           (genPcall): handle returning in Carry properly, save in F0 if needed,
7902           (genReceive): handle bit register parameters
7903         * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
7904           (mcs51_assignRegisters): enable bit registers for all reentrant
7905            functions and don't set BitBankUsed unconditionally
7906         * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
7907         * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
7908         * support/regression/tests/funptrs.c: added tests for BOOL and for return
7909
7910 2005-08-27 Borut Razem <borut.razem AT siol.net>
7911
7912         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
7913         ppc-osx (Darwin) does not support -u option. It seems that it is
7914         supported only on Linux - GNU cp
7915
7916 2005-08-25 Borut Razem <borut.razem AT siol.net>
7917
7918         * sim/ucsim/gui.src/serio.src/Makefile.in,
7919           sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
7920           sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
7921           sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
7922           install and strip, since the strip at /usr/ccs/bin should be used
7923           on solaris
7924
7925 2005-08-24 Borut Razem <borut.razem AT siol.net>
7926
7927         * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
7928
7929 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
7930
7931         * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
7932         ffffffffu
7933
7934 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
7935
7936         * as/mcs51/aslink.h: completed lkrloc.c prototypes
7937         * as/mcs51/lkmain.c (link_main): fixed warning
7938         * device/include/stdbool.h: ds390 has no advanced bit support yet
7939         * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
7940         * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
7941         * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
7942           and updated their macros
7943         * src/SDCCval.c (constVal): updated comment for renamed b_long
7944
7945 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
7946
7947         * as/mcs51/asdata.c: changed ctype['['] to BINOP
7948         * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
7949           (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
7950           (oprio): set priority for '['
7951         * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
7952            and adb_24_bit
7953         * as/mcs51/asm.h: added defines R_BIT and S_BIT
7954         * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
7955         * as/mcs51/lkdata.c: changed ctype['['] to BINOP
7956         * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
7957           added overlayable BIT_BANK area
7958         * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
7959           (summary2): explain 'T' in legenda
7960         * as/mcs51/lkrloc.c: replaced old K&R style,
7961           (relr): added R_BIT processing,
7962           (errmsg): added "Bit-addressable relocation error",
7963           (adb_bit): added for converting from byte- to bit-addressable space,
7964           (adb_24_bit): added for converting from byte- to bit-addressable space
7965         * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
7966            used in reentrant functions now even as return value
7967         * device/lib/_gptrput.c (_gptrput): removed obsolete code
7968         * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
7969           (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
7970         * src/SDCCglobl.h: added indicator BitBankUsed
7971         * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
7972            the bit registers b0-b7
7973         * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
7974           (geniCodeCast): fixed bug 1263853,
7975           (geniCodeLogicAndOr): put result in bool or char,
7976           (geniCodeReceive): added parameter func for accessing the return type,
7977           (geniCodeFunctionBody): pass func to geniCodeReceive
7978         * src/SDCCmain.c: added indicator BitBankUsed
7979         * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
7980         * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
7981           (checkSClass): don't put automatic bool/bit on stack,
7982           (checkFunction): removed check on function cannot return bit
7983         * src/SDCCsymt.h: added newBoolLink prototype
7984         * src/mcs51/gen.c (rb1regs): added bit registers,
7985           (movc): created for assigning to carry,
7986           (pushReg, popReg): created for pushing registers,
7987           (sameRegs): check both AOP_REG and AOP_CRY types,
7988           (aopOp): handle bit registers,
7989           (aopPut): optimization no self-assign,
7990           (saveRegisters): push reg->base (bits) only once for bit registers,
7991            and use pushReg,
7992           (unsaveRegisters): pop reg->base only once and use popReg,
7993           (assignResultValue): added parameter func and return in carry for bits,
7994           (genIpush): optimization no reload in A if not changed,
7995           (genSend): bit parameters in reentrant functions are passed in bit
7996            registers by first assigning to bits in B, then save registers and
7997            copy B to bits,
7998           (genCall): handle returning in Carry properly, save it in F0 if needed,
7999           (genPcall): updated assignResultValue call, this is not safe yet for bit
8000            returning function !!!
8001           (genFunction): don't generate equ's for bit registers and use pushReg,
8002           (genEndFunction): take care of bit returning functions and use popReg,
8003           (genRet): return bit in Carry,
8004           (genIfx): optimize bit registers and other directly addressable bits,
8005           (genReceive): updated assignResultValue call
8006         * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
8007           (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
8008            registers when using stack-auto
8009         * src/mcs51/ralloc.c (_G): added allBitregs,
8010           (regs8051): added the bit registers,
8011           (createStackSpil): use macro IS_BIT,
8012           (getRegBit): added to allocate a bit register, else spill,
8013           (getRegBitNoSpil): added to allocate a bit register, else a gpr,
8014           (updateRegUsage): factored out to ease stepping while debugging,
8015           (serialRegAssign): use updateRegUsage, only spill bits if necessary,
8016            also allocate bit registers,
8017           (fillGaps): handle bit registers,
8018           (findAllBitregs): added to create bit vector with all bit registers,
8019           (mcs51_allBitregs): returns this bit vector,
8020           (mcs51_assignRegisters): when using stack-auto use bit registers for
8021            passing parameters and creating local variables
8022         * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
8023
8024 2005-08-22 Borut Razem <borut.razem AT siol.net>
8025
8026         * device/lib/Makefile.in: replaced find option -or with -o
8027           to make it run on solaris
8028
8029 2005-08-22 Raphael Neider <rneider AT web.de>
8030
8031         * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
8032           fixes #1265442 (crash on Solaris)
8033
8034 2005-08-20 Borut Razem <borut.razem AT siol.net>
8035
8036         * configure, configure.in: added tests for libsocket and libnsl libraries,
8037           requred by sdcdb on sparc-solaris; generate support/regression/Makefile
8038           from support/regression/Makefile.in
8039         * support/regression/Makefile.in: added
8040         * device/lib/pic16/Makefile.common.in: force make to use bash shell
8041         * sim/ucsim/libtool: regenerated on sparc-solaris
8042         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
8043           sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
8044           sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
8045           -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
8046           sparc-solaris, which doesn't use GNU ld linker
8047         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
8048         * as/Makefile: find on sparc-solaris does not support -maxdepth option
8049
8050 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
8051
8052         * src/mcs51/peeph.def: updated comments
8053
8054 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8055
8056         * device/lib/_gptrget.c,
8057         * device/lib/_gptrput.c: slightly shorter
8058         * doc/sdccman.lyx: incremented version
8059         * src/mcs51/peeph.def: moved peephole comments to the line of first
8060           change to better keep line correlation, reanimated 186.e
8061         * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
8062
8063 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
8064
8065         * src/pic/pcode.c : Pasted ".line" assembly directives patch from
8066           David Saxton with quotes around file name.
8067
8068 2005-08-15 Borut Razem <borut.razem AT siol.net>
8069
8070         * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
8071           support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
8072           support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
8073           make tests run on x86_64 platform
8074
8075 2005-08-13 Raphael Neider <rneider AT web.de>
8076
8077         * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
8078           as it might be executed DURING a build (parallel make is wonderful)
8079
8080 2005-08-13 Raphael Neider <rneider AT web.de>
8081
8082         * device/lib/Makefile.in (port-specific-objects-pic16):
8083           revert to cp $(PORT)/bin/*.* $(PORTDIR)
8084         * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
8085           dependency
8086         * device/lib/pic16/Makefile.rules: build subdirs before creating
8087           the library, removed builddir rule, create $(builddir) early in
8088           recurse rule, use empty recurse rule for leaf directories
8089         * device/lib/pic16/Makefile.subdir: added phony targets, ignore
8090           mkdir errors (race condition), removed duplicate suffix "hex"
8091           from clean rules
8092         * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
8093         * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
8094           prevents mkdir -p from aborting on Alpha
8095
8096 2005-08-12 Raphael Neider <rneider AT web.de>
8097
8098         * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
8099           db-statements in order to allow for arrays of pointers in code
8100           sections to be placed without interspersed 0-padding, fixes
8101           bug #1256215
8102         * (emitStatistics): fixed division by zero for pic18f1220
8103         * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
8104           unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
8105         * (pic16_emitDS): respect DB_ITEMS_PER_LINE
8106         * (pic16_pCodeConstString): keep track of already emitted string
8107           literals to prevent "duplicate definitions of symbol _str_NR"
8108         * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
8109           debug message
8110         * device/lib/Makefile.in: ignore failing PIC16 library builds
8111         * device/lib/pic16/Makefile: do not build if gputils are missing
8112         * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
8113
8114 2005-08-10 Raphael Neider <rneider AT web.de>
8115
8116         * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
8117           my last commit)
8118
8119 2005-08-10 Raphael Neider <rneider AT web.de>
8120
8121         * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
8122           Rokas' patch to add the new fixed point type "__fixed16x16"
8123         * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
8124           functions for __fixed16x16 arithmetics
8125         * device/lib/pic16: reimplemented the build system to support
8126           a separate build directory, better handling of libio (create
8127           the library in a separate subdir for each architecture) and
8128           easier configuration (centralized in Makefile.common)
8129
8130 2005-08-07 Raphael Neider <rneider AT web.de>
8131
8132         * src/pic16/gen.c (genrshTwo): fixed sign extension
8133         * src/pic16/device.c: added pic18f2320, 4220 and 4320
8134         * device/include/pic16/pic18f2220.h: changed some bit definitions,
8135           added T0CONbits
8136         * device/include/pic16/pic18f4220.h: NEW, header for
8137           pic18f4220 and pic18f4320
8138         * device/include/pic16/pic18fregs.h: added new devices,
8139           embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
8140         * device/include/pic16/signal.h: resolved name clashes
8141           on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
8142           to also allow testing for interrupt enable bits, added
8143           comments on how to use the macros
8144         * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
8145         * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
8146           register definitions for the devices
8147         * device/lib/pic16/pics.all: added new devices
8148         * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
8149           allocated memory
8150         * device/lib/pic16/libc/stdlib/memfree: do not count
8151           the block header as free memory
8152         * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
8153           simplified and added missing end-of-blocklist-marker
8154           (reported by Peter Onion, fixes #1252814)
8155         * (_mergeHeapBlock): fixed loop condition
8156         * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
8157           len==0, restructured code
8158         * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
8159           up a bit, reduced bitfield accesses, prevent endless loops
8160           in case of heap corruption
8161         * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
8162           "unreferenced arguments/must return a value" warnings
8163         * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
8164           replaced BAUDREG with SPBRG
8165         * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
8166           device/lib/pic16/debug/gstack/gstack.c: replaced
8167           _naked, _asm, _endasm with __naked, __asm, __endasm
8168
8169 2005-08-05 Raphael Neider <rneider AT web.de>
8170
8171         * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
8172           AOP_PCODE operands, fixes multibyte union-bitfield-accesses
8173
8174 2005-08-05 Borut Razem <borut.razem AT siol.net>
8175
8176         * device/lib/Makefile.in: added missing ';'
8177         * configure: removed ^M characters
8178
8179 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8180
8181         * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
8182           device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
8183           License
8184
8185 2005-08-04 Borut Razem <borut.razem AT siol.net>
8186
8187         * configure.in: pic16 libraries build 2nd try - enable running
8188           configure in device/lib/pic16
8189         * configure: regenerated from configure.in
8190         * device/lib/Makefile.in: create $(PORT)/bin directory
8191
8192 2005-08-03 Raphael Neider <rneider AT web.de>
8193
8194         * src/pic16/gen.c (pic16_derefPtr): NEW, single place
8195           to get/set values via pointers
8196         * (genUnpackBits,genPackBits): changed detection of
8197           ptr->bitfield vs. sym.bitfield, fixed access via generic
8198           pointers, removed dead (wrong) code for multibyte bitfields
8199         * (genNearPointerGet, genGenPointerGet): removed useless code,
8200           fixed bitfield detection, fixes #1250594
8201         * (genNearPointerSet): removed useless code
8202         * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
8203           and introduced macro pic16_emitpcode that conditionally emits
8204           the origin of the following pCode (useful for debugging SDCC)
8205         * src/pic16/pcode.c: changed (and disabled) some debug outputs
8206         * (createDefmap): fixed handling of LFSR for --optimize-df
8207
8208 2005-08-02 Borut Razem <borut.razem AT siol.net>
8209
8210         * device/lib/Makefile.in: pic16 libraries build enabled since
8211           gputils-0.13.2 are now localy installed at sourceforge's compile farm
8212
8213 2005-08-02 Raphael Neider <rneider AT web.de>
8214
8215         * src/pic16/gen.c (genPackBits): removed deprecated warning
8216         * (genGenPointerSet): fixed bitfield detection
8217
8218 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8219
8220         * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
8221
8222 2005-07-31 Raphael Neider <rneider AT web.de>
8223
8224         * device/lib/pic16/libdev/pic18f458.c,
8225           device/include/pic16/pic18f458.h: added missing T0CONbits
8226
8227 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
8228
8229         * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
8230
8231 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
8232
8233         * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
8234
8235 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8236
8237         * device/include/mcs51/at89c51ed2.h: added.
8238
8239 2005-07-23 Raphael Neider <rneider AT web.de>
8240
8241         * src/pic/gen.h: added emitpcode macro for debugging
8242         * src/pic/gen.c (emitpcode): renamed to emitpcode_real
8243           and replace by macro adding debug information on demand
8244         * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
8245         * (gencjne): tried to fix; replaced with correct (slower) code
8246         * (gen{Unp,P}ackBits): fixed single bit access
8247         * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
8248         * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
8249           previous instruction
8250         * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
8251           register has to be handled with care (forbidding movement
8252           of assignments/uses, removing assignments completely, ...)
8253         * (pCodeOptime2pCodes): make use of regIsSpecial
8254         * added lots of debugging output (commented out)
8255         * src/pic/rallloc.c (deassignLRs): prevent operand registers
8256           from being reused as result UNLESS it is known to work
8257
8258 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
8259
8260         * support/Util/dbuf.h: include <stddef.h> for size_t
8261         * .version: changed to version 2.5.2
8262
8263 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8264
8265         * src/SDCCloop.c (loopInvariants): fixed bug #1234048
8266
8267 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8268
8269         * src/hc08/gen.c (genMinus): fixed bug #1241835,
8270           (genModOneByte): removed needless psha/pula
8271
8272 2005-07-22 Raphael Neider <rneider AT web.de>
8273
8274         * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
8275           have PIC14 handled like PIC16, fixes broken pic14 linker calls
8276         * src/pic/gen.c (resolveIfx): do not "invent" labels
8277         * (genSkipc): changed to positive logic
8278         * (genSkipCond): removed as no longer needed
8279         * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
8280           backport from PIC16
8281         * (genLeftShift): check operands are in different registers
8282         * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
8283           INCF does not update CARRY...
8284         * src/pic/main.c: fixed _linkCmd
8285         * src/pic/pcode.c (unlinkpCode): added inactive code
8286         * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
8287           alive (do not assign result and operand overlapping registers)
8288
8289 2005-07-22 Raphael Neider <rneider AT web.de>
8290
8291         * src/pic/device.c (dump_sfr): replaced register declaration with
8292           call to emitSymbolToFile() to avoid duplicate symbols
8293         * (assignRelocatableRegisters): do not declare external symbols
8294         * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
8295           right (take size of type, not etype)
8296         * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
8297         * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
8298         * (packRegsForAccUse): disabled assignment of WREG as
8299           the result reg to prevent occurence of just fixed #1235003,
8300           fixes #1242954
8301         * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
8302           symbols (avoids duplicate symbols in .asm file)
8303         * (pic14emitRegularMap): use emitSymbolToFile()
8304         * src/pic/gen.c (aopOp): fixed spillLocation handling
8305         * (gen{Unp,P}ackBits): fixed acquiring bit-operands
8306         * (genDataPointerSet): removed unneccessary variables/output
8307
8308 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
8309
8310         * as/mcs51/lkarea.c: enlarged codemap for banked memory
8311         * device/lib/mcs51/crtbank.asm: added # to 0x0F
8312
8313 2005-07-21 Raphael Neider <rneider AT web.de>
8314
8315         * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
8316           architecture cannot handle them efficiently, fixes bug #1235003
8317         * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
8318           check for empty sets before using them (fixes bug #1232190)
8319
8320 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
8321
8322         * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
8323           (lnksect2): generate warnings for memory overlap
8324         * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
8325           constseg to set the name of these segments so you can instruct the linker
8326           to place them in banks
8327         * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
8328         * src/SDCCglobl.h: added MODEL_HUGE to enum,
8329           added code_seg and const_seg to options
8330         * src/SDCCglue.c (emitMaps): use options.const_seg,
8331           (createInterruptVect): put interrupt vectors in segment HOME,
8332           (glue): put HOME before static segment and put the main glue in HOME,
8333           (glue): use options.code_seg
8334         * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
8335         * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
8336           these segments so you can instruct the linker to place them in banks
8337           (linkEdit): use code_loc for HOME segment which should be the first
8338           segment in code memory now
8339         * src/SDCCmem.c: fixed more stuff like bug 1238386
8340         * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
8341           (changePointer): don't change function pointers to code pointers for
8342           banked functions,
8343           (compareType): added exceptional check for banked function pointers
8344         * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
8345         * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
8346           after static in code memory
8347         * src/mcs51/gen.c: added aopLiteralLong prototype,
8348           (aopForSym): use getSize for functions,
8349           (genCall): generate banked calls over one trampoline __sdcc_banked_call
8350           in HOME with lsb of address in r0, msb in r1 and bank in r2, use
8351           -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
8352           the segment,
8353           (genPcall): use call for literal function pointers and generate banked
8354           calls over the one trampoline so there's only one place for the user to
8355           modify according to his/hers hardware,
8356           (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
8357           (genPlusIncr): moved check icount>4 beyond inc dptr optimization
8358         * src/mcs51/main.c: added keyword banked,
8359           (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
8360         * support/Util/SDCCerr.c,
8361         * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
8362           needed for passing the bank and address to the trampoline
8363         * device/lib/mcs51/crtbank.asm: added for bankswitching
8364         * device/lib/mcs51/Makefile: added crtbank
8365
8366 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8367
8368         * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
8369           for fields at offset 0 of a struct or union as reported
8370           on 2005-07-07 in the developer mailing list.
8371
8372 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
8373
8374         * src/SDCCmem.c: fixed bug 1238386
8375
8376 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8377
8378         * src/mcs51/peeph.def: added labelrefcounting for peepholes
8379           (patch #1144962), added peephole 300, enabled 259.x
8380         * doc/sdccman.lyx: removed screenshot and provided link instead
8381
8382 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8383
8384         * doc/sdccman.lyx: added section about debugging with ddd
8385         * doc/figures/ddd_example.eps: screenshot of debugging session
8386
8387 2005-07-04 Raphael Neider <rneider AT web.de>
8388
8389         * src/pic/gen.c (genPointerGet): handle pointers to CONST values
8390           like CODE pointers, fixes #1115683
8391         * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
8392           call, fixes bugs #1232211, #1228110,
8393           fixed wrong casts to pCodeFlow from pCodeInstructions
8394
8395 2005-07-04 Raphael Neider <rneider AT web.de>
8396
8397         * src/pic/gen.c (popGet): changed assert to allow for
8398           bit operands
8399         * (popGetAddr): changed signature to provide
8400           an additional index, patched all call sites
8401         * (genCmpEq): handle literal-like operands correctly
8402         * (genAddrOf): added sanity checks on __code/__data pointers
8403         * (genAssign): added handling of symbols from __code section
8404         * (gencjne): do not generate code for comparisons whose result
8405           is neither stored nor used, fixes bug #1171114
8406         * (AccLsh, AccRsh): operate on operand instead of WREG
8407         * (shift{Left,Right}_Left2ResultLit): NEW, size independant
8408           replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
8409           by known count
8410         * rewrote complete shift-by-literal logic, commented unused
8411           functions out
8412         * (genConstPointerGet): get multiple bytes (if result size > 1),
8413           fixed handling of non-immediate addresses
8414         * (genPointerGet): handle CODE pointers like CONST pointers
8415         * (genpic14Code): insert C-SRC lines as Cource-pCodes
8416         * ({aop,op}_isLitLike): NEW, single place to decide whether an
8417           operand is to be treated as a literal or not
8418         * (mov2w,genPcall,genCmpEq),
8419           src/pic/genarith.c: use aop_isLitLike() to decide between
8420           literal/register contents
8421         * (addSign): added missing offset
8422         * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
8423           only emit comment in debug-mode,
8424           use {aop,op}_isLitLike throughout the file
8425         * src/pic/glue.c: fix initializers for pointers (work in progress)
8426         * src/pic/pcode.c (get_op): honor index on _const symbols
8427         * ({reset,dump}pCodeStatistics): NEW, estimate code size
8428         * (dumppBlock): added pCode size estimation
8429         * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
8430           check for IS_SYMOP before OP_SYMBOL'ing
8431         * fixed indentation, compacted switch-statements
8432         * (allocReg): find free register and allocate it instead of
8433           allocating new registers all the time
8434         * (deassignLRs): prevent POINTER_GET's from being assigned the same
8435           registers as its operands (necessary only for multibyte GETs)
8436
8437 2005-07-01 Raphael Neider <rneider AT web.de>
8438
8439         * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
8440           debugging .asm-output macros FENTRY + FEXIT
8441         * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
8442           way... I wonder...
8443         * (emitpComment): NEW, printf to pCode
8444         * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
8445           offset handling
8446         * (popGetAddr): NEW, variant of popGet to access an immediates
8447           high(er) bytes instead of the n'th byte of memory they reference,
8448           replaced popGet with popGetAddr where neccessary
8449         * (genDataPointerGet): reactivated and fixed implementation
8450         * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
8451           accesses
8452         * (genDataPointerSet): fixed multibyte assignments
8453         * (genpic14Code): fixed --i-code-in-asm handling
8454         * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
8455         * (genPlus): fixed index-out-of-bounds error
8456         * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
8457         * src/pic/ralloc.c: added debugging output macro FENTRY2
8458         * (spillThis): fixed indentation, enbraced for-body for clarity
8459         * (rematStr): commented out as now unused
8460         * (regTypeNum): commented out special spill case (overwrites
8461           arbitrary values)
8462         * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
8463
8464 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
8465
8466         * doc/sdccman.lyx: documented sfr16/sfr32,
8467           added example for using storage class with function pointers
8468         * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
8469
8470 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
8471
8472         * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
8473         * device/lib/_itoa.c,
8474         * device/lib/_ltoa.c: optimized codesize
8475         * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
8476           but don't know how to suppress the double warning.
8477         * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
8478         * support/Util/SDCCerr.c,
8479         * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
8480
8481 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
8482
8483         * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
8484           fixed old K&R prototypes
8485         * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
8486         * device/lib/_gptrget.c,
8487         * device/lib/_gptrgetc.c,
8488         * device/lib/_gptrput.c: changed versions for new memory indicator values,
8489           also new versions for small generic pointers and banked generic pointers
8490         * src/port.h: added const_name
8491         * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
8492         * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
8493         * src/SDCCcse.c (findPrevIc): check all associative operators
8494         * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
8495         * src/SDCCicode.h: added macro IS_ASSOCIATIVE
8496         * src/SDCCmem.c: updated comments,
8497           set far-space to 0 for pdata, results in optimized code
8498         * src/SDCCmem.h: added macro CONST_NAME
8499         * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
8500           moving the info into the highest bits, see also gptrget/gptrput
8501         * src/src.dsp: added sdcc.ico to project files
8502         * src/avr/gen.c (genCast): fixed bug 0x%d
8503         * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
8504         * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
8505           relation between ptr_type and DCL_TYPE,
8506           (genCast): fixed bug 0x%d
8507         * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
8508           (CODE)" for const_name
8509         * src/hc08/gen.c (genCast): fixed bug 0x%d
8510         * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
8511           (hc08_port): added "CONST (CODE)" for const_name
8512         * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
8513           (aopForRemat, adjustArithmeticResult): disconnected direct relation
8514           between ptr_type and DCL_TYPE,
8515           (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
8516           operand* and took AOP() inside function so sfr-ness can be checked,
8517           (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
8518           new prototype,
8519           (genFunction, genEndFunction): optimized stack setup,
8520           (genMinus): optimized for literals with ending zeroes (in bytes),
8521           (genCast): fixed bug 0x%d
8522         * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
8523           (mcs51_port): added "CONST (CODE)" for const_name
8524         * src/mcs51/peeph.def: made rule 226 more generic
8525         * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
8526         * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
8527         * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
8528         * src/z80/main.c (z80_port): added NULL for const_name,
8529           (gbz80_port): added NULL for const_name
8530         * support/regression/tests/bug663539.c,
8531         * support/regression/tests/sfr16.c: new tests
8532
8533 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8534
8535         * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
8536
8537 2005-06-24 Raphael Neider <rneider AT web.de>
8538
8539         * device/lib/pic16/libdev/pic18f[68][567]20.c:
8540           corrected typos...
8541         * device/include/pic16/signal.h: added USBIF
8542           and SIG_USB
8543
8544 2005-06-24 Raphael Neider <rneider AT web.de>
8545
8546         * device/lib/pic16/libdev/pic18f2455.c,
8547           device/include/pic16/pic18f2455.h: NEW
8548         * device/include/pic16/pic18fregs.h,
8549           device/lib/pic16/pics.all,
8550           src/pic16/device.c: added 18f2455
8551         * device/lib/pic16/libdev/pic18f[68][567]20.c,
8552           device/include/pic16/{pic18f[68][567].h,usart.h}:
8553           replaced MULTIPLE_USARTS define with more relaible
8554           compatibility sfrs (for USART access)
8555
8556 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
8557
8558         * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
8559           and the output asm file line is printed on two lines.
8560
8561 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8562
8563         * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
8564           BGT, BLE, BHI, and BLS instructions
8565         * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
8566           genCmpEq): removed
8567         * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
8568           negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
8569           fixes bug #1216342
8570         * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
8571
8572 2005-06-15 Raphael Neider <rneider AT web.de>
8573
8574         * src/pic16/NOTES: moved Vangelis from active developers to people to contact
8575         * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
8576         * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
8577           fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
8578           OP_SYM_TYPE() instead of OP_SYM_ETYPE()
8579
8580 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8581
8582         * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
8583           Marcel Telka in bug #1215704
8584
8585 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
8586
8587         * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
8588           located in shared memory bank.
8589
8590 2005-05-31 Raphael Neider <rneider AT web.de>
8591
8592         * src/pic16/{gen.c,genarith.c}: replaced sign-extension
8593           "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
8594           "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
8595
8596 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
8597
8598         * device/lib/_strncpy.c: fixed the fix
8599
8600 2005-05-26 Raphael Neider <rneider AT web.de>
8601
8602         * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
8603           initializers with \0, bug #1208187
8604         * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
8605           intializers with \0, bug #1208187
8606
8607 2005-05-26 Raphael Neider <rneider AT web.de>
8608
8609         * src/pic16/glue.c (pic16_printIvalChar): fixed string
8610           initializers with \0, bug #1208187
8611         * src/pic16/main.c (_process_pragma): added sanity checks
8612           for stack position and size, emit warnings when appropriate
8613
8614 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
8615
8616         * device/lib/_strncpy.c: fixed not filling with \0
8617
8618 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8619
8620         * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
8621           createFunction),
8622         * src/SDCC.y (external_definition, enumerator, parameter_declaration,
8623           compound_statement),
8624         * src/SDCCsymt.h,
8625         * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
8626
8627 2005-05-24 Raphael Neider <rneider AT web.de>
8628
8629         * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
8630
8631 2005-05-24 Raphael Neider <rneider AT web.de>
8632
8633         * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
8634           TRISE definitions, closes bug #1162453
8635
8636 2005-05-22 Raphael Neider <rneider AT web.de>
8637
8638         * src/pic16/main.c (_process_pragma): check for missing
8639           arguments to pragmas code and udata
8640         * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
8641           consistency fixes to match other headers (thanks to Jim Paris)
8642         * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
8643
8644 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
8645
8646         * src/SDCCicode.c (isOperandEqual): fixed missing ;
8647
8648 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
8649
8650         * support/regression/tests/bug1198642.c: new test
8651         * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
8652         * src/SDCCcse.c (findPrevIc): added comment, please have a look
8653         * support/scripts/resource.h,
8654         * support/scripts/resource.rc,
8655         * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
8656         * support/scripts/sdcc.ico: added 32x32 icon
8657
8658 2005-05-18 Raphael Neider <rneider AT web.de>
8659
8660         * device/lib/pic16/libdev/pic18f*.c,
8661         * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
8662           keywords to "__sfr" and "__at (X)"
8663         * device/include/pic16/pic18fregs.h: added pic18f4520
8664         * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
8665           #1203088 (MPLAB compatibility)
8666
8667 2005-05-17 Raphael Neider <rneider AT web.de>
8668
8669         * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
8670         * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
8671         * device/lib/pic16/pics.all: added new devices
8672         * src/pic16/device.c: added support for pic18f4520
8673
8674 2005-05-16 Raphael Neider <rneider AT web.de>
8675         * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
8676         * src/pic16/genarith.c (genAddLit): fixed bug 1202480
8677         * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
8678           convenience function for bit access
8679
8680 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
8681
8682         * device/lib/printf_large.c: fixed bug 1193299
8683         * support/regression/tests/bug1057979.c: added test %3.3s
8684
8685 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8686
8687         * device/include/mcs51/8051.h,
8688         * device/include/mcs51/8052.h: made parseable with lint
8689         * device/include/mcs51/lint.h: added include file for (sp)lint
8690         * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
8691         * doc/cdbfileformat.lyx,
8692         * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
8693
8694 2005-05-14 Raphael Neider <rneider AT web.de>
8695
8696         * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
8697         * device/lib/pic16/libc/stdlib/itoa.c (new)
8698         * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
8699         * device/lib/pic16/libio/Makefile: exclude subdir according to
8700           ${subdir}.ignore for certain PICs (lacking e.g. i2c)
8701         * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
8702         * src/pic16/gen.c (genFunction): prevent annoying warning
8703         * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
8704           nameclashes on BeOS
8705         * support/cpp2/cppmain.c (cpp_output_string): new
8706         * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
8707           fixes bug 1116802
8708
8709 2005-05-13 Borut Razem <borut.razem AT siol.net>
8710
8711         * src/SDCCmain.c (linkEdit): fixed bug 1195202
8712
8713 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8714
8715         * .version: changed to version 2.5.1; back to bleeding edge development
8716
8717 2005-05-11 Borut Razem <borut.razem AT siol.net>
8718
8719         * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
8720           generate PDF version 1.3 documents
8721
8722 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8723
8724         * .version: changed to version 2.5.0
8725
8726 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8727
8728         * doc/sdccman.lyx: updated weblinks, index and smaller updates
8729
8730 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8731
8732         * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
8733         --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
8734         well as many smaller updates.
8735         * .version: changed to version 2.5.0-pre1
8736
8737 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8738
8739         * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
8740
8741 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
8742
8743         * support/regression/tests/bug1185672.c: added
8744         * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
8745           bug 1185672
8746         * src/mcs51/gen.c (genCall): added comments, made it look safer
8747         * src/mcs51/gen.c (genEndFunction): simplified
8748
8749 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
8750
8751         * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
8752
8753 2005-04-14 Borut Razem <borut.razem AT siol.net>
8754
8755         * fixed bug 1045046 - SIGSEGV with really simple code?:
8756           src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
8757           src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
8758
8759 2005-04-14 Borut Razem <borut.razem AT siol.net>
8760
8761         * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
8762           src/pic16/device.h: temporarily disabled experimental #inline pragma
8763           for 2.5.0 release
8764
8765 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
8766
8767         * device/include/z80/stdio.h,
8768         * device/include/z80/string.h: removed these highly incomplete files so
8769           SDCC can use the default ones in device/include/
8770
8771 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8772
8773         * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
8774         gcc warning.
8775         * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
8776         fix sdcpp warnings.
8777
8778 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
8779
8780         * device/include/malloc.h: removed redundant __reentrant prototypes
8781         * device/lib/_mullong.c: added working xstack variant in asm (C version
8782           doesn't pass regression tests)
8783         * device/lib/bpx.c: used __data and made bpx char for mcs51
8784         * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
8785           (createFunction): fixed bug with xstackPtr
8786         * src/SDCCcse.c: corrected comments
8787         * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
8788           (killDeadCode, eBBlockFromiCode): removed unused code
8789         * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
8790           corrected comments
8791         * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
8792           assignResultValue, genCall, genFunction, genEndFunction, genAnd,
8793           genOr, genXor, genAddrOf): fixed several bugs concerning xstack
8794           (genModOneByte): fixed warning in MSVC
8795         * src/mcs51/main.c (): added comments
8796         * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
8797
8798 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
8799
8800         * src/SDCCmain.c (linkEdit): oops, changed one line too many
8801
8802 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
8803
8804         * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
8805
8806 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
8807
8808         * src/pic16/glue.c (printIvalChar): fixed bug when emitting
8809         characters arrays of larger size than the declared one.
8810
8811 2005-04-10 Borut Razem <borut.razem AT siol.net>
8812
8813         * src/pic/gen.c (genInline),
8814           src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
8815           (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
8816           (findNextInstruction), (findPrevInstruction),
8817           (findInstructionUsingLabel),
8818           src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
8819         * src/pic/pcode.c (findLabel): added missing '\n'
8820         * src/src.dsp: added SDCCdwarf2.c to the project
8821
8822 2005-04-09 Borut Razem <borut.razem AT siol.net>
8823
8824         * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
8825
8826 2005-04-08 Raphael Neider <rneider AT web.de>
8827
8828         * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
8829           into the chain after a given one) and mergeDefmapSymbols (combine
8830           defmap entries for each symbol per pcode)
8831         * (createDefmap): have defmap entries merged in the end
8832         * (defmapReplaceSymRef): split defmap entries covering two accesses to
8833           a symbol before replacing one access type's symbol, merge symbols in
8834           the end (replacement symbol might already have an entry)
8835         * (assignValnums): keep reference to written WREG intact
8836
8837 2005-04-08 Raphael Neider <rneider AT web.de>
8838
8839         * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
8840           Alpha)
8841
8842 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
8843
8844         * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
8845         bytes
8846
8847 2005-04-07 Raphael Neider <rneider AT web.de>
8848
8849         * device/include/pic16/usart.h: added compatibility defines for
8850           devices with more than one USART
8851         * device/include/pic16/pic18f[68][567]20.h: activated above defines
8852
8853 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
8854
8855         * device/lib/Makefile.in: updated for port specific include
8856
8857 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
8858
8859         * support/regression/ports/mcs51/spec.mk: added mcs51 include
8860
8861 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
8862
8863         * device/include/8051.h,
8864         * device/include/8052.h,
8865         * device/include/at89S8252.h,
8866         * device/include/at89c55.h,
8867         * device/include/at89x051.h,
8868         * device/include/at89x51.h,
8869         * device/include/at89x52.h,
8870         * device/include/mcs51reg.h,
8871         * device/include/reg51.h,
8872         * device/include/reg764.h,
8873         * device/include/regc515c.h,
8874         * device/include/sab80515.h: (re)moved these 12 files
8875         * device/include/mcs51/8051.h,
8876         * device/include/mcs51/8052.h,
8877         * device/include/mcs51/at89S8252.h,
8878         * device/include/mcs51/at89c55.h,
8879         * device/include/mcs51/at89x051.h,
8880         * device/include/mcs51/at89x51.h,
8881         * device/include/mcs51/at89x52.h,
8882         * device/include/mcs51/mcs51reg.h,
8883         * device/include/mcs51/reg51.h,
8884         * device/include/mcs51/reg764.h,
8885         * device/include/mcs51/regc515c.h,
8886         * device/include/mcs51/sab80515.h: and added them here
8887
8888 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
8889
8890         * device/include/stdarg.h: changed SDCC specific keywords to double
8891           underlined form.
8892         * device/include/stdint.h: changed intptr_t and uintptr_t for others than
8893           mcs51 and ds390.
8894         * device/include/hc08/mc68hc908gp32.h,
8895         * device/include/hc08/mc68hc908jb8.h,
8896         * device/include/hc08/mc68hc908jkjl.h,
8897         * device/include/hc08/mc68hc908qy.h: fixed comments
8898         * device/include/mcs51/README: updated
8899         * device/include/mcs51/c8051f120.h: added PINRSF
8900         * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
8901         * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
8902           amidst code. Also inline is not supported.
8903
8904 2005-04-06 Raphael Neider <rneider AT web.de>
8905
8906         * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
8907         * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
8908           callers stack/frame pointers
8909
8910 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
8911
8912         * device/include/pic16/usart.h: added, missing in previous commit,
8913         * device/include/pic16/adc.h: fixed typo,
8914         * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
8915         commit,
8916         * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
8917         <p18fxxx.inc>
8918         * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
8919         uninitialized because a bug appears with gplink
8920         * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
8921         COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
8922         complains for unrecognised option
8923
8924 2005-04-05 Raphael Neider <rneider AT web.de>
8925
8926         * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
8927           structs as well (using memcpy)
8928         * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
8929           on ISRs (GOTO has no label)
8930         * src/pic16/device.h: added OF_OPTIMIZE_DF
8931         * src/pic16/main.c: added compiler switch --optimize-df to enable the
8932           new data flow analysis/optimization
8933         * src/pic16/pcode.c: added (prototypes for and implementation of)
8934           dataflow analysis functions, fixed pCodeInstructions' inCond and
8935           outCond values, made RCALL a branch instruction
8936         * (pic16_unlinkpCode): keep C line if possible
8937         * (pic16_pCodeUnlink): removed cast on left side of assignment, have
8938           C line moved if possible
8939         * (pic16_getRegFrompCodeOp): NEW, improved version of...
8940         * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
8941           to use new pic16_getRegFrompCodeOp (works for more SFRs)
8942         * (pic16_BuildFlow): fixed skip instructions with label (did not start
8943           new flow)
8944         * (pic16_getJumptabpCode): NEW, needed in...
8945         * (LinkFlow): fixed handling of jumptables, calls and conditional
8946           branches
8947         * (pic16_InsertCommentAfter): NEW
8948         * (pic16_pCodeReplace): made verbose and flow preserving
8949         * (AnalyzeFlow): added call to data flow analysis
8950         * src/pic16/pcode.h: added defmaps to pCodeFlow struct
8951         * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
8952         * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
8953
8954 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8955
8956         * src/SDCCast.c (decorateType): fixed bug #1105626
8957
8958 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
8959
8960         * device/include/asm/pic16/features.h,
8961         * pic18f*.h headers,
8962         * device/include/pic16/adc.h,
8963         * device/include/pic16/delay.h,
8964         * device/include/pic16/i2c.h,
8965         * device/include/pic16/malloc.h,
8966         * device/include/pic16/stdio.h,
8967         * device/include/pic16/stdlib.h,
8968         * device/include/pic16/string.h,
8969         * device/lib/pic16/libc/stdio/printf_tiny.c,
8970         * device/lib/pic16/libc/stdio/printf_small.c,
8971         * device/lib/pic16/libc/stdio/strmgpsim.c,
8972         * device/lib/pic16/libc/stdio/strmmssp.c,
8973         * device/lib/pic16/libc/stdio/strmusart.c,
8974         * device/lib/pic16/libc/stdio/vfprintf.c,
8975         * device/lib/pic16/libc/stdlib/ltoa.c,
8976         * device/lib/pic16/libc/stdlib/putchar.c,
8977         * device/lib/pic16/libc/stdlib/x_ftoa.c,
8978         * device/lib/pic16/libc/stdlib/memchrpgm.c,
8979         * device/lib/pic16/libc/stdlib/memchrram.c,
8980         * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
8981         * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
8982         * device/lib/pic16/libio/adc/adcbusy.c,
8983         * device/lib/pic16/libio/adc/adcread.c,
8984         * device/lib/pic16/libio/adc/adcsetch.c,
8985         * device/lib/pic16/libio/usart/ubaud.c,
8986         * device/lib/pic16/libio/usart/ubusy.c,
8987         * device/lib/pic16/libio/usart/udrdy.c,
8988         * device/lib/pic16/libio/usart/uopen.c,
8989         * device/lib/pic16/libio/usart/uputc.c,
8990         * device/lib/pic16/libsdcc/gptr/gptrget1.c,
8991         * device/lib/pic16/libsdcc/gptr/gptrget2.c,
8992         * device/lib/pic16/libsdcc/gptr/gptrget3.c,
8993         * device/lib/pic16/libsdcc/gptr/gptrget4.c,
8994         * device/lib/pic16/libsdcc/gptr/gptrput1.c,
8995         * device/lib/pic16/libsdcc/gptr/gptrput2.c,
8996         * device/lib/pic16/libsdcc/gptr/gptrput3.c,
8997         * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
8998         specific keywords to double underlined form,
8999         * device/lib/pic16/libc/Makefile.rules,
9000         * device/lib/pic16/libsdcc/Makefile.rules,
9001         * device/lib/pic16/libm/Makefile,
9002         * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
9003         to compile with C standard set in Makefile.common
9004         * device/lib/pic16/libc/stdlib/Makefile: added new C sources
9005         rand.c and crc.c in compilation process,
9006         * device/lib/pic16/libsdcc/int/divuint.c,
9007         * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
9008         `c' from signed to unsigned,
9009         * device/lib/pic16/startup/crt0.c,
9010         * device/lib/pic16/startup/crt0i.c,
9011         * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
9012         keywords to double underlined form, bug fixes in _do_cinit function
9013         which prevented the correct initialization of the .idata segment,
9014         * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
9015         core to enter a infinite loop
9016         * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
9017
9018 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9019
9020         * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
9021
9022 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9023
9024         * device/include/Makefile.in: add support for hc08 subdirectory
9025         * device/include/hc08/: new subdirectory
9026         * device/include/hc08/mc68hc908jkjl.h: new header contributed by
9027         Lucas Loizaga, thanks!
9028         * device/include/hc08/mc68hc908qy.h,
9029         * device/include/hc08/mc68hc908gp32.h,
9030         * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
9031         their own directory. Changed internal macro names to use the compiler
9032         reserved namespace. Changed SDCC specific keywords to double
9033         underlined form.
9034         * device/include/math.h,
9035         * device/include/malloc.h,
9036         * device/include/stdarg.h,
9037         * device/include/stdbool.h
9038         * device/include/string.h,
9039         * device/include/tinibios.h,
9040         * device/include/ds400rom.h,
9041         * device/include/8051.h,
9042         * device/include/8052.h,
9043         * device/include/80c51xa.h,
9044         * device/include/at89c55.h,
9045         * device/include/at89S8252.h,
9046         * device/include/at89x51.h,
9047         * device/include/at89x52.h,
9048         * device/include/ds80c390.h,
9049         * device/include/reg764.h,
9050         * device/include/regc515c.h,
9051         * device/include/sab80515.h,
9052         * device/include/mcs51/c8051f000.h,
9053         * device/include/mcs51/c8051f018.h,
9054         * device/include/mcs51/c8051f020.h,
9055         * device/include/mcs51/c8051f040.h,
9056         * device/include/mcs51/c8051f060.h,
9057         * device/include/mcs51/c8051f120.h,
9058         * device/include/mcs51/c8051f300.h,
9059         * device/include/mcs51/c8051f310.h,
9060         * device/include/mcs51/c8051f320.h,
9061         * device/include/mcs51/c8051f330.h,
9062         * device/include/mcs51/c8051f350.h,
9063         * device/include/z180.h: Changed SDCC specific keywords to double
9064         underlined form.
9065
9066 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
9067
9068         * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
9069         18F4455,
9070         * (pic16_assignConfigWordValue): disable testing of configuration
9071         register value with config mask,
9072         * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
9073         function with port->fun_prefix,
9074         * (genFunction): when generating a naked interrupt function never
9075         create an absolute segment placed in interrupt vector address, place
9076         the actual interrupt function at IVA instead, when an interrupt
9077         function is generated with unspecified interrupt then do not create
9078         the absolute section,
9079         * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
9080         code for generating a call to generic pointer get/put function with
9081         a call to function pic16_callGenericPointer(),
9082         * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
9083         the call to the generic pointer get/put functions with prefixing the
9084         function name with port->fun_prefix,
9085         * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
9086         * src/pic16/main.c (_process_pragma): prefix function with
9087         port->fun_prefix,
9088         * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
9089         calling assembler, old 18Fxxxx macro is deprecated,
9090         * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
9091         PC_ASMDIR in while condition,
9092         * (findInstruction): add PC_ASMDIR in while condition,
9093         * (buildCallTree): prefix main with port->fun_prefix,
9094         * (pic16_pCode2str): fixed bug that didn't emit the memory access
9095         identifier for variable with banked access in instructions BTFSS,
9096         BTFSC, BCF, BSF, BTG
9097         * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
9098         * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
9099         * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
9100         perform optimization when enviroment variable NO_REG_OPT is set,
9101         * (insideLRBlock): NEW, return 1 if register is inside an
9102         INF_LOCALREGS block,
9103         * (RemoveRegFromLRBlock): remove a register that is completely
9104         eliminated by register optimization, but it is still left in local
9105         register store/restore in/from stack block,
9106         * (Remove2pcodes): after removing register, check to see if it
9107         should be removed from local register store/restore in/from stack
9108         block,
9109         * src/pic16/ralloc.c (pic16_decodeOp): added decode for
9110         DUMMY_READ_VOLATILE,
9111
9112         * device/include/pic16/adc.h: minor prototype modifications and
9113         update,
9114         * device/include/pic16/malloc.h: added GPL notice various
9115         modifications,
9116         * device/include/pic16/stdint.h: NEW, standard header for ints
9117         * device/include/pic16/delay.h: NEW, header for delay functions,
9118         delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
9119         delay1mtcy,
9120         * device/include/pic16/signal.h: NEW, header providing helper macros
9121         for implementing signal handlers,
9122         * device/include/pic16/stdio.h: added prototypes for functions,
9123         printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
9124         prototypes for stdin and stdout, added macro PUTCHAR to
9125         automatically implement putchar function prototype,
9126         * device/include/pic16/usart.h: modified and updated USART library,
9127         * device/lib/pic16/libio/adc/,
9128         * device/lib/pic16/libio/i2c: some modifications to improve library
9129         performance,
9130         * device/lib/pic16/libc/stdio/: modifications for the new printf*
9131         family of functions,
9132         * device/lib/pic16/libc/stdlib/: various modifications in the malloc
9133         family of functions and other sources,
9134         * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
9135         of the PIC18Fxx[28] devices,
9136         * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
9137         * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
9138         * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
9139         _do_cinit function, because the previous failed when local variables
9140         where not placed in the same memory bank,
9141         * device/lib/pic16/libsdcc/char/: various modifications to improve
9142         library performance,
9143         * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
9144         information on the new functions of the c library and more...
9145
9146 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9147
9148         * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
9149
9150 2005-03-26 Raphael Neider <rneider AT web.de>
9151
9152         * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
9153           if condition == CARRY)
9154         * (genCmp): adapted to new genSkipc semantics
9155         * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
9156           on rIfx (genCmp was broken)
9157
9158 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9159
9160         * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
9161         * src/z80/main.c (_keywords[]),
9162         * src/SDCCglobal.h (struct options),
9163         * src/SDCC.y,
9164         * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
9165         to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
9166         std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
9167         --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
9168         always available in leading double underscore form. The C99 support is
9169         mostly missing, but it's a start.
9170         * support/regression/tests/bug-227710.c: fixed nonconforming use of
9171         reserved identifier "__data".
9172
9173 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
9174
9175         * src/mcs51/peeph.def: fixed bug 1170013
9176
9177 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
9178
9179         * device/include/mcs51reg.h: fixed bug 842007
9180
9181 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9182
9183         * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
9184         last time.
9185
9186 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9187
9188         * src/port.h (struct PORT),
9189         * src/avr/ralloc.c (avr_assignRegisters),
9190         * src/avr/main.c,
9191         * src/ds390/ralloc.c (ds390_assignRegisters),
9192         * src/ds390/main.c,
9193         * src/hc08/ralloc.c (hc08_assignRegisters),
9194         * src/hc08/main.c,
9195         * src/mcs51/ralloc.c (mcs51_assignRegisters),
9196         * src/mcs51/main.c,
9197         * src/pic/ralloc.c (pic14_assignRegisters),
9198         * src/pic/main.c,
9199         * src/pic16/ralloc.c (pic16_assignRegisters),
9200         * src/pic16/main.c,
9201         * src/xa51/ralloc.c (xa51_assignRegisters),
9202         * src/xa51/main.c,
9203         * src/z80/ralloc.c (z80_assignRegisters),
9204         * src/z80/ralloc.h,
9205         * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
9206         * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
9207         * src/SDCCcse.h,
9208         * src/SDCCdflow.c (computeDataFlow),
9209         * src/SDCCdflow.h,
9210         * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
9211         * src/SDCCloop.h,
9212         * src/SDCCcflow.c (*),
9213         * src/SDCCcflow.h,
9214         * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
9215         * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
9216         of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
9217         immedDom() returning wrong block; probably fixes bug #1160833)
9218
9219 2005-03-20 Borut Razem <borut.razem AT siol.net>
9220
9221         * support/scripts/inc2h.pl: WIN32 port
9222
9223 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
9224
9225         * device/lib/makefile.in: added abs.c and labs.c
9226
9227 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
9228
9229         * device/include/stdint.h: added
9230         * device/lib/abs.c: added
9231         * device/lib/labs.c: added
9232         * device/include/stdlib.h: added abs() and labs() prototypes
9233         * device/lib/libsdcc.lib: added abs and labs
9234         * device/include/float.h,
9235         * device/lib/_fsmul.c,
9236         * device/lib/printf_fast.c,
9237         * device/lib/printf_tiny.c: updated comments
9238
9239 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9240
9241         * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
9242         bug #1164313
9243
9244 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9245
9246         * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
9247         * src/SDCCast.c (isLoopCountable): fixed bug #1161985
9248
9249 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
9250
9251         * device/lib/printf_large.c: removed inline assembly for portability and
9252           readability. Use printf_fast if speed or size are more important.
9253         * src/pic16/gen.c: removed conditions around use of DEBUGpc
9254         * src/pic16/genutils.h: added define for DEBUGpc for MSVC
9255
9256 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
9257
9258         * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
9259         prevent compiler warning
9260
9261 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
9262
9263         * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
9264         moved to level 0 and declared as static. Also they are explicit
9265         placed in access bank. This was necessery because some times they
9266         might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
9267         * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
9268         optimizations. Currently only compare to unsigned char is implemented,
9269         * src/pic16/gen.c: added fReturnIdx array,
9270         * (struct resolvedIfx) is moved to gen.h and made public,
9271         * (struct _G): added sregsAlloc and sregsAllocSet fields,
9272         * (aopForSym): added an optimization to directly store in stack of
9273         the operand of a SEND iCode,
9274         * (pic16_aopOp): don't return return registers as strings (AOP_STR)
9275         but as registers instead (AOP_REG) using the fReturnIdx array,
9276         * (pic16_freeAsmop): remove the freed register from the
9277         _G.sregsAlloc field,
9278         * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
9279         a compare of 'WREG',
9280         * (pic16_popGetTempRegCond): changed function prototype, now
9281         function takes also a bitVector argument v which holds the current
9282         set of registers that are allocated for stack access by aopForSym,
9283         registers allocated in aopForSym for accessing stack symbols are not
9284         any more part of the functions usedRegs field,
9285         * (genCall): some times aopOp is called for a stack variable to be
9286         send, aopForSym might perform the push, if this is true make sure
9287         that genCall doesn't push the variable twice by testing _G.resDirect,
9288         * (genFunction): changed testing for unspecified interrupt number
9289         from 256 to INTNO_UNSPEC,
9290         * modified selection scheme of frame pointer generation. Previously
9291         if function did use local registers a frame pointer was generated,
9292         now a frame pointer is generated only if function has arguments
9293         (that need PLUSW2 register access), or has stack arguments, or the
9294         compiler is not instructed to omit the frame pointer,
9295         * (genEndFunction): before restoring local registers that were saved
9296         in the function preamble, also restore the registers that *might*
9297         have been allocated for stack access,
9298         * (genRet): removed some old comments,
9299         * (genCmp, the active (RN's) version): added a call to the
9300         pic16_genCmp_special function to perform the compare with a more
9301         robust and optimized way,
9302         * (genInline): a feature has been added in inline code generation,
9303         which allows a wildcard variable substitution when writing inline
9304         assembly. Code is incomplete and experimental therefore undocumented,
9305         * (genCast): changed order of aopOp for result and right to allow
9306         aopForSym to directly load the result if possible,
9307         * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
9308         perform an optimized compare on some selected special occasions,
9309         * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
9310         * src/pic16/glue.c (pic16createInterrupVect): make sure we never
9311         generate an IVT any more,
9312         * src/pic16/main.c (pic16_optionsTable): added command line option
9313         --optimize-cmp,
9314         * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
9315         macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
9316         macros,
9317         * src/pic16/NOTES: Raphael Neider added in list of active developers
9318         * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
9319         jumptable_end to prevent bug #,
9320         * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
9321         inCond and outCond fields,
9322         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
9323         * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
9324         turn off register spilling,
9325         * (packRegsForOneUse): synced with other ports' versions although it
9326         is not used currently,
9327         * (pic16_packRegisters): added an optimization while reading
9328         structure bitfields, some registers may be saved (malloc code is
9329         decreased by 80 bytes)
9330
9331 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
9332
9333         * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
9334         left is a bitfield, if yes, then don't optimize assignment. Perhaps
9335         this can be optimized more?
9336
9337 2005-03-10 Raphael Neider <rneider AT web.de>
9338
9339         * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
9340           genNearPointerGet): (hopefully) fixed access to bitfields via
9341           pointers (p->bitN = x; and x = p->bitN; failed)
9342
9343 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
9344
9345         * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
9346
9347 2005-03-09 Raphael Neider <rneider AT web.de>
9348
9349         * src/SDCCopt.c (killDeadCode): fixed bug #1156016
9350
9351 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
9352
9353         * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
9354         * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
9355           (regTypeNum): set REG_BIT type if necessary
9356         * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
9357         * support/regression/tests/critical.c: check bug 1144613
9358
9359 2005-03-02 Raphael Neider <rneider AT web.de>
9360
9361         * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
9362
9363 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9364
9365         * src/avr/ralloc.c (serialRegAssign),
9366         * src/ds390/ralloc.c (serialRegAssign),
9367         * src/hc08/ralloc.c (serialRegAssign),
9368         * src/mcs51/ralloc.c (serialRegAssign),
9369         * src/pic/ralloc.c (serialRegAssign),
9370         * src/pic16/ralloc.c (serialRegAssign),
9371         * src/xa51/ralloc.c (serialRegAssign),
9372         * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
9373
9374 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
9375
9376         * src/SDCCast.c (decorateType): fixed bug 1124787
9377
9378 2005-02-20 Hubert Sack <sack AT digiplan.de>
9379         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9380
9381         * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
9382         patch #1121755
9383
9384 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9385
9386         * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
9387         to keep the correct label reference count when adding/removing references
9388         to labels. A peephole file using this is appended to patch #1144962.
9389
9390 2005-02-14 Raphael Neider <rneider AT web.de>
9391
9392         * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
9393         * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
9394         * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
9395           retrievals of result operand's value on assignment
9396
9397 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
9398
9399         * device/include/pic16/string.h: modified prototype for memccpy()
9400         to memccpy(void *, void *, char, size_t)
9401         * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
9402         check whether to omit frame pointer or not,
9403         * (genInline): convert all occurences of "\n" to LF in inline
9404         assembler blocks, this helps formatting the inline text,
9405         * (pic16_loadFSR0): modified prototype,
9406         * (genNearPointerGet, genNearPointerSet): reorganization of code,
9407         removed some 8051 legacy code,
9408         * (genPackBits): enabled handling bitfields exceeding one byte in size,
9409         * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
9410         before allocating temporary registers in functions,
9411
9412 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
9413
9414         * support/regression/tests/bitvars.c: corrected the "fix"
9415
9416 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
9417
9418         * support/regression/tests/bitvars.c,
9419         * support/regression/tests/bitwise.c,
9420         * support/regression/tests/rotate.c: "fixed" problems on Alpha
9421
9422 2005-02-10 Raphael Neider <rneider AT web.de>
9423
9424         * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
9425           different size for Alpha
9426         * src/pic16/gen.c (genCmpEq) : improved compare with 0
9427
9428 2005-02-09 Raphael Neider <rneider AT web.de>
9429
9430         * src/SDCC.lex(doPragma) : save and restore warning options as well
9431           (also added new stack plus clone- and copyAndFreeSDCCERRG())
9432         * have #pragma less_pedantic set the errorlevel to WARNING
9433           (fixes #1117001)
9434         * (cloneOptimize) : fixed wrong malloc's size
9435         * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
9436           facilitate correct handling of #pragma (save|restore)
9437
9438 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
9439
9440         * src/mcs51/gen.c: removed non-standard C nameless struct/union
9441
9442 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
9443
9444         * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
9445
9446 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
9447
9448         * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
9449
9450 2005-02-02 Raphael Neider <rneider AT web.de>
9451
9452         * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
9453         * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
9454         * (pic16_storeForReturn): fixed to allow returning function pointers
9455         * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
9456         * device/include/pic16/{stddef.h,stdbool.h}: added
9457
9458 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
9459
9460         * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
9461
9462 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
9463
9464         * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
9465         * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
9466          appeared to be required
9467
9468 2005-01-31 Borut Razem <borut.razem AT siol.net>
9469
9470         * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
9471           include/mcs51 and include/z80 directories to the package
9472
9473 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9474
9475         * src/hc08/gen.c (genFunction): fixed bug #1112752
9476
9477 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9478
9479         * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
9480
9481 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9482
9483         * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
9484
9485 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
9486
9487         * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
9488
9489 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
9490
9491         * device/include/c8051fxxx.h: removed these 6 files
9492         * device/include/mcs51/c8051fxxx.h: added these 11 new files
9493
9494 2005-01-26 Raphael Neider <rneider AT web.de>
9495
9496         * src/pic16/gen.c (genAssign): fixed assignment from longs
9497           in codespace (were cut to three bytes)
9498         * (genDummyRead): implemented (except for CODESPACE...),
9499           fixed bug #1108575
9500         * src/pic16/glue.c (emitStatistics): beautified
9501         * device/lib/pic16/libm/Makefile: added include path
9502
9503 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9504
9505         * src/z80/gen.c (aopPut): fixed bug #1103902
9506
9507 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9508
9509         * device/lib/expf.c: fixed bug #1095792
9510
9511 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
9512
9513         * device/lib/pic16/libm: added Math library sources
9514
9515 2005-01-24 Raphael Neider <rneider AT web.de>
9516
9517         * src/pic16/pcode.h: added second memory operand to pCodeOpReg
9518           to enable upcast to pCodeOpReg2 (there is no type tag to
9519           differenciate the two and pic16_popGet2p cast into PCOR2)
9520         * src/pic16/main.c (_process_pragma): fixed another malloc bug
9521           (sizeof(sectNames) changed to sizeof(sectName))
9522           Both patches fix segfaults under MinGW.
9523
9524 2005-01-23 Raphael Neider <rneider AT web.de>
9525
9526         * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
9527           Safe_[mc]?alloc()'ed variables
9528         * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
9529           of (byte sized) temporaries (assign them to WREG for now)
9530         * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
9531           (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
9532           this might fix SIGSEGVs on MinGW...
9533         * src/SDCCopt.c (killDeadCode): restored original behaviour
9534           (volatile operands might get thrown away though)
9535
9536 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
9537
9538         * src/pic16/gen.c: fixed bug #1106975,
9539         * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
9540         pointer update, INTCON is saved, global interrupts are disabled and
9541         restored after updateing TOS.
9542         * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
9543         * added function attribute 'shadowregs' to take advantage of shadow
9544         registers,
9545         * added function attribute 'wparam' as an alternative to the wparam
9546         pragma,
9547         * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
9548         user declares a non-ISR function as 'shadowregs',
9549         * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
9550
9551 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
9552
9553         * .version: bumped version number to 2.4.8
9554         * device/lib/pic16/pics.all: list of PIC18F devices supported by
9555         pic16 port,
9556         * device/lib/pic16/libio/i2c/: I2C module support library,
9557         * device/include/pic16/i2c.h: I2C support library header,
9558         * device/lib/pic16/libc/stdio/: standard IO support sources,
9559         * (printf_small.c): printf_small() source, supports float print,
9560         * (printf_tiny.c): printf_tiny() source, does not support floats,
9561         * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
9562         enable global optimizations for entire library source, other
9563         Makefiles in the source tree are also modified to reflect this,
9564         * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
9565         function,
9566         * doc/sdccman.lyx: updated to reflect new changes,
9567         * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
9568         sym->onStack if-case,
9569         * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
9570         sbit, idata, _idata, xdata, _xdata,
9571         * added pragma library, to link an external library, (see doc),
9572         * removed command line options, --pomit-config-words, --pomit-ivt,
9573         --pleave-reset-vector,
9574         * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
9575         when calling assembler to reflect memory model used, also define
9576         macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
9577         reflect stack model used,
9578         * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
9579         on stack return NULL,
9580
9581 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
9582
9583         * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
9584           of the operands is volatile. Fixes #1020220
9585
9586 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
9587
9588         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
9589         * (OptimizeRegUsage): make sure that there is really no other flow where
9590           the first pCode is used
9591
9592 2005-01-22 Raphael Neider <rneider AT web.de>
9593
9594         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
9595           to fix #1106967 (pCode->seq are not set up correctly)
9596
9597 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9598
9599         * src/SDCCglue.c (glue): make sure code area is declared before the
9600         static initialization area.
9601
9602 2005-01-21 Raphael Neider <rneider AT web.de>
9603
9604         * device/lib/Makefile.in: fixed test for pic16 install dir
9605         * device/lib/pic16/*/Makefile*: modified compile flags to enable
9606           optimizations
9607         * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
9608           added --optimize-goto compiler switch and pragma wparam documentation
9609         * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
9610         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
9611           and PRODH closing bug #1071770 (peephole optimizer)
9612
9613 2005-01-19 Raphael Neider <rneider AT web.de>
9614
9615         * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
9616           cmdLine buffers (used when calling sdcpp...) are large enough
9617           (MAX_PATH=256 truncates arguments leading to system halts when
9618           used in MinGW...)
9619         * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
9620         * (genUminus): rewritten to for efficiency
9621         * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
9622           used uninitialized in some cases)
9623         * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
9624           copy the third byte from the int -- now assumes 0x80 (data memory)
9625         * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
9626           operands (genAddLit expects the iCode's operands to swapped as
9627           well), fixed leftover bytes (crashed for short left operands)
9628         * (pic16_genMinusDec): performance improvements, removed false
9629           PIC14 emitSKPNCs
9630         * (pic16_genMinus): fixed to cope with differently sized operands
9631         * src/pic16/glue.c (pic16_glue): added new banksel optimization
9632           for --obanksel > 1
9633         * src/pic16/pcode.c: implemented (first phase of) banksel optimization
9634         * src/pic16/graph.[ch]: implementation of directed graphs, used by
9635           new banksel optimization
9636         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
9637           analysis for temporary registers (segfaults...)
9638         * src/pic16/peeph.def: added rule
9639
9640 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
9641
9642         * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
9643         which converts a float number to its ASCII representation
9644         * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
9645         functions to convert the fractional and integer part of a float to ASCII,
9646         * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
9647         realloc.c): added _MALLOC_SPEC to explicit place variables in data
9648         ram
9649         * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
9650         _STATMEM macros,
9651         * device/include/pic16/adc.h: added GPL info,
9652         * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
9653         a pCodeOp as tested operand,
9654         * (genNearPointerGet): optimized bit testing, does not use
9655         intermediate register for bit value, test directly instead with
9656         BTFSS, BTFSC, works only for single bits,
9657         * (genpic16Code): dump the name of the iCode in the asm,
9658         * src/pic16/ralloc.c (decodeOp): removed static declaration and
9659         renamed to pic16_decodeOp,
9660         * (serialRegAssign): do not allocate a temporary register for iCode
9661         sequences that test a single bit for 1/0
9662
9663 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
9664
9665         * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
9666         pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
9667         access stack and frame pointers. They are initially assigned to
9668         point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
9669         accessing SFRs. Updated all occurences of modification of stack or
9670         frame pointer in gen.c and pcode.c,
9671         * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
9672         assigning of a literal value to pointers,
9673         * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
9674         flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
9675         selected
9676
9677 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
9678
9679         * doc/sdccman.lyx: update documentation about stack pragma, added
9680         some info for stack memory models
9681
9682 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9683
9684         * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
9685
9686 2005-01-08 Raphael Neider <rneider AT web.de>
9687
9688         * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
9689           udata sections to fix bug #1097823
9690
9691 2005-01-05 Raphael Neider <rneider AT web.de>
9692
9693         * src/pic16/gen.c (genGenericShift): added handling of differently
9694           sized left operand and result
9695
9696 2005-01-04 Raphael Neider <rneider AT web.de>
9697
9698         * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
9699         * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
9700           to hold the condition bit)
9701         * added new version of genCmp (old code available via #define)
9702         * added new version of genShiftLeft/genShiftRight in a generic
9703           way, now supports shifting by negative values
9704         * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
9705           shiftCount (expected by genGenericShift)
9706         * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
9707         * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
9708           dump
9709         * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
9710           is an invalid literal too...)
9711
9712 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
9713
9714         * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
9715         from Raphael Neider,
9716         * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
9717         for 8-bit literals. This fixes some literal operands which are sign
9718         extended to 16-bits ints when instruction needs only 8-bits.
9719
9720 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
9721
9722         * device/lib/logf.c: added mcs51 assembly version
9723         * device/lib/expf.c: added mcs51 assembly version
9724         * device/lib/_logexpf.c: new shared asm code for expf and logf
9725         * device/include/math.h: add defines for assembly math library
9726         * device/lib/Makefile.in: build new _logexpf.c
9727         * device/lib/libfloat.lib: use new _logexpf.c
9728
9729 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
9730
9731         * src/pic/device.c
9732         * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
9733           device types which have less than 0x7f registers.
9734
9735 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
9736
9737         * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
9738
9739 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
9740
9741         * device/lib/printf_fast.c: only build on supported arch.
9742         * device/lib/printf_tiny.c: only build on supported arch.
9743         * device/lib/printf_fast_f.c: only build if asm float lib
9744         * device/lib/_fsget1arg.c: only build if asm float lib
9745         * device/lib/_fsget2args.c: only build if asm float lib
9746         * device/lib/_fsnormalize.c: only build if asm float lib
9747         * device/lib/_fsreturnval.c: only build if asm float lib
9748         * device/lib/_fsrshift.c: only build if asm float lib
9749         * device/lib/_fsswapargs.c: only build if asm float lib
9750         * device/include/stdio.h: don't provide print_fast,
9751           print_fast_f, print_tiny prototypes if --xstack used
9752
9753 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
9754
9755         * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
9756         * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
9757           to the SOURCES
9758
9759 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
9760
9761         * device/lib/printf_fast_f.c: same as printf_fast, but
9762           with floating point enabled
9763         * device/lib/printf_fast.c: minor tweaks
9764         * device/include/stdio.h: add printf_fast_f
9765
9766 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
9767
9768         * src/SDCCmain.c: make --float-reent default for mcs51
9769         * device/lib/_fsadd.c: added mcs51 assembly version
9770         * device/lib/_fssub.c: added mcs51 assembly version
9771         * device/lib/_fsmul.c: added mcs51 assembly version
9772         * device/lib/_fsdiv.c: added mcs51 assembly version
9773         * device/lib/_fseq.c: added mcs51 assembly version
9774         * device/lib/_fsneq.c: added mcs51 assembly version
9775         * device/lib/_fsgt.c: added mcs51 assembly version
9776         * device/lib/_fslt.c: added mcs51 assembly version
9777         * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
9778         * device/lib/Makefile.in: add _fscmp to build
9779         * device/lib/libfloat.lib: add _fscmp to build
9780
9781 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
9782
9783         * device/lib/_fs2slong.c: added mcs51 assembly version
9784         * device/lib/_fs2sint.c: added mcs51 assembly version
9785         * device/lib/_fs2schar.c: added mcs51 assembly version
9786         * device/lib/_fs2ulong.c: added mcs51 assembly version
9787         * device/lib/_fs2uint.c: added mcs51 assembly version
9788         * device/lib/_fs2uchar.c: added mcs51 assembly version
9789         * device/lib/_slong2fs.c: added mcs51 assembly version
9790         * device/lib/_sint2fs.c: added mcs51 assembly version
9791         * device/lib/_schar2fs.c: added mcs51 assembly version
9792         * device/lib/_ulong2fs.c: added mcs51 assembly version
9793         * device/lib/_uint2fs.c: added mcs51 assembly version
9794         * device/lib/_uchar2fs.c: added mcs51 assembly version
9795         * device/include/float.h: added #define to select asm vs c
9796
9797 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
9798
9799         * device/lib/printf_fast.c: improvements to float output
9800         * device/include/float.h: add defines for assembly float library
9801         * device/lib/_fsget1arg.c: receive 1 float arg
9802         * device/lib/_fsget2args.c: receive 2 float args (reentrant)
9803         * device/lib/_fsnormalize.c: normalize a float
9804         * device/lib/_fsreturnval.c: return float, various helper routines
9805         * device/lib/_fsrshift.c: right shift a float's mantissa
9806         * device/lib/_fsswapargs.c: swap 2 floats
9807         * device/lib/Makefile.in: build these 6 new files for mcs51
9808         * device/lib/libfloat.lib: add these 6 files to the library
9809
9810 2004-12-26 Borut Razem <borut.razem AT siol.net>
9811
9812         * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
9813           built by gcc 3.4.2
9814
9815 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
9816
9817         * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
9818           and fully reentrant and register bank neutral.
9819         * device/lib/printf_fast.c: added float (not enabled by default),
9820           added compact/slower integer (also not enabled by default),
9821           improved size/speed of fast integer code, other minor changes
9822         * device/include/stdio.h, device/lib/Makefile.in,
9823           device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
9824
9825 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
9826
9827         * src/pic16/pcode.c: declaring variables other than at the start of a
9828           block is not supported in C by VC6.
9829
9830 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
9831
9832         * applied a previous patch from Raphael Neider that wasn't included
9833         in the previous commits, which fixes infinite loops within jumptable
9834         improvements,
9835         * made some fixes that previous patches introduced
9836
9837 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
9838
9839         * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
9840         that fixes an issue with AOP_PCODE asmop's offset,
9841         * (pic16_popCopyReg): update instance field too,
9842         * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
9843         function of pic port,
9844         * (genCmp, genAnd, genAssign),
9845         * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
9846
9847 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
9848
9849         * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
9850         variables initial values to idata section,
9851         * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
9852         variables in some functions. This utilizes parmBytes field of iCode
9853         structure to hold the offset of the variable in stack. (might be
9854         able to use the stack field too?)
9855         * applied patch from Raphael Neider # ### , # ###
9856         * src/pic16/glue.c (pic16emitRegularMap): fix to print static
9857         variable initial values in idata section,
9858         * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
9859         for static variables with initial value
9860         * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
9861         applied fix in while loop from Raphael Neider.
9862
9863 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
9864
9865         * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
9866         * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
9867         * src/ds390/ralloc.c (serialRegAssign): spill bits
9868         * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
9869         * support/Util/SDCCerr.c,
9870         * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
9871         * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
9872         * support/regression/tests/bitwise.c: added test for bitwise complement(~)
9873
9874 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
9875
9876         * device/include/sdcc-lib.h: inserted LGPL, added includes
9877           asm/ds390/features.h and asm/mcs51/features.h
9878         * device/include/asm/default/features.h,
9879         * device/include/asm/gbz80/features.h,
9880         * device/include/asm/z80/features.h: added empty _AUTOMEM
9881           and _STATMEM
9882         * device/include/asm/ds390/features.h,
9883         * device/include/asm/mcs51/features.h: added files with defines for
9884           _AUTOMEM and _STATMEM indicating automatic and static storage class
9885         * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
9886         * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
9887         * src/SDCCicode.c (geniCodeCast),
9888         * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
9889         * src/SDCCloop.c (loopInduction): removed unused variable lr
9890         * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
9891           to convertToFcall to include char modulo (RFE 1065037), added check
9892           if left operand is unsigned and use abs of literal value
9893         * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
9894           as it doesn't work after conversion from peephole.def to peephole.rul
9895         * src/mcs51/gen.c (toBoolean): added check for size,
9896           (genModOneByte): optimized code for signed char modulo a literal
9897           power of 2 (thanks to Hubert Sack),
9898           (genRRC): removed unnecessary "clr c",
9899           (genRLC): replaced "add a,acc" with cheaper "rlc a"
9900         * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
9901           jump optimization,
9902           swapped rules 256.c and 256.d,
9903           extended 256.d by using new multiple checks (thanks Erik),
9904           added rules 256.e and 256.f,
9905           updated rule 261.a and 261.b to new generated code
9906         * support/regression/tests/muldiv.c: added test div/mod by a power of 2
9907
9908 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9909
9910         * src/SDCCloop.c (basicInduction, loopInduction): fixed several
9911           induction related bugs, including first part of bug #1074377
9912
9913 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
9914
9915         * applied patch from bug-report #1076292,
9916         * applied patches for genAnd and Goto-optimizations for Raphael
9917         Neider,
9918         * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
9919         dump a less iCode information,
9920         * src/pic16/device.h (pic16_options_t): added field debgen,
9921         * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
9922         DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
9923         * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
9924         puclic,
9925         * (various functions): added macros FENTRY and FENTRY2 to functions,
9926         to emit function prologue,
9927         * (various functions): fixed indentation,
9928         * (genNearPointerGet): fixed loading of FSR0,
9929         * (genPackBits): applied patch from Raphael Neider to fix updating
9930         of FSR0 and touching only the modified bits,
9931         * src/pic16/genarith.c (various functions): added macros FENTRY to
9932         emit function prologue in comments,
9933         * src/pic16/pcode.h: added functions debugf2, debugf3,
9934         * src/pic16/ralloc.c: partial fix for packForPush caused
9935         segmentation fault,
9936
9937 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9938
9939         * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
9940           <stsp AT users.sourceforge.net> with reversed byte order
9941         * support/regression/tests/rotate.c: added (ds390 skips some tests)
9942
9943 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9944
9945         * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
9946           bug #1074377
9947         * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
9948         * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
9949
9950 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
9951
9952         * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
9953
9954 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9955
9956         * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
9957           conditions,
9958           (setFromConditionArgs): friendly operand parser for peephole rules,
9959           (operandBaseName, operandsNotRelated): new peephole condition
9960           "operandsNotRelated" -- similar to "operandsNotSame", but takes
9961           architecture specific register naming into account, handles n-way
9962           comparisons, and supports quoted literals
9963         * src/mcs51/peeph.def: restored rule 177.d with an extra condition
9964
9965 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9966
9967         * src/mcs51/peeph.def: fixed bug #1076940
9968
9969 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
9970
9971         * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
9972
9973 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9974
9975         Adding support for replacing ljmps with sjmps in jumptables
9976         generated for switch statements. For now you need to set the
9977         environment variable SDCC_SJMP_JUMPTABLE to enable this.
9978         Now 4 algorithms for mcs51 jumptable generation are used:
9979         ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
9980         addresses loaded pc-relative for up to 112 cases and stack-pushing
9981         target addresses loaded with offset from dptr for up to 256 cases.
9982
9983         * src/SDCCpeeph.c: added peephole conditional labelJTInRange
9984         * src/mcs51/main.c: adapted constants for switch table generation
9985         * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
9986
9987 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
9988
9989         * device/lib/printf_large.c (_print_format): fixed bug 1073386
9990         * support/regression/tests/bug1057979.c: added test for bug 1073386
9991
9992 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
9993
9994         * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
9995         compilers
9996
9997 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
9998
9999         * src/pic16/device.h,
10000         * src/pic16/genarith.c,
10001         * src/pic16/glue.c,
10002         * src/pic16/main.c,
10003         * src/pic16/pcode.c: applied patches #1068154 and #1070213
10004
10005 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
10006
10007         Large cummulative patch for pic16 port.
10008         * device/lib/pic16/gstack.h: NEW, user can specify its own handler
10009         to call when a stack overflow occurs,
10010         * (malloc.h): added CVS Id tag,
10011         * (pic18f{242,252,442,452}.h): added T0CONbits structure and
10012         variable,
10013         * added libc directory. The current version of LibC contains string
10014         functions, ctype functions and macros and some functions of the
10015         stdlib set (like malloc/free/atof/atoi etc...). All functions are to
10016         be extensively tested in the future. Standard disclaimer here.
10017         Library is not automatically build yet. But one can build it by
10018         invoking 'make' inside the libc directory.
10019         * added ADC library under libio. Preliminary version yet.
10020
10021         * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
10022         * src/pic16/gen.c (aopForRemat): asmop size is filled by
10023         aopForRemat() now and not by pic16_aopOp(),
10024         * (pic16_popGetTempReg): removed warning messgae when allocating
10025         temporary registers, its a buggy feature and will be removed,
10026         * (pic16_popGet): set register instance field in AOP_CRY,
10027         * (pic16_outBitC): fixed for results in size greater than 1,
10028         * (genUminusFloat): fixed for pic16, ported code from mcs51,
10029         * (pic16_storeForReturn): optimized return of 0,
10030         * (genCmp): experimental code for new genCmp which uses PIC18's
10031         special compare&skip instructions. Initial tests fail some times
10032         with variables grater than 1 byte in size, so new code is disabled,
10033         * (genUnpackBits, genPackBits): more optimizations in reading/writing,
10034         a single bit,
10035         * (genCast): began a fix to optimize the casting of a bit to another
10036         bit, now assigning a bitfield to another bitfield will fail, sorry,
10037         * src/pic16/main.c: disabled the use of lr-support feature,
10038         * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
10039         * added some function prototypes, added function _debugf prototype,
10040         * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
10041         bits with offset (case PO_GPR_BIT),
10042         * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
10043         command line,
10044         * (isBankInstruction): modified to return 0 for no banking instruction,
10045         and 1 for banking instruction,
10046         * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
10047         caused stop processing pCodes after a inline assembly block,
10048         * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
10049         * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
10050         registers when it shouldn't,
10051         * src/pic16/ralloc.c (allocReg): add preliminary support for
10052         supporting a limited set of temporary registers,
10053
10054 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10055
10056         * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
10057           genDataPointerSet): ensure assignments always copy in MSB to LSB
10058           order,
10059           (loadRegFromAop): recognize CLRH optimization,
10060           (genFunction): optimize RECEIVE iCodes in reentrant functions
10061
10062 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10063
10064         * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
10065           --out-fmt-s19 turning into --out-fmt-elf if s19 was already
10066           selected.
10067         * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
10068         * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
10069           contiguous with data
10070
10071 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10072
10073         * device/lib/_gptrget.c (_gptrget),
10074         * device/lib/_gptrgetc.c (_gptrgetc),
10075         * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
10076           instead of sjmp to ret
10077         * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
10078           by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
10079
10080 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
10081
10082         * .version: bumped version to 2.4.7
10083         * device/lib/_gptrget.c (_gptrget): is now _naked
10084         * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
10085         * device/lib/_gptrput.c (_gptrput): is now _naked
10086         * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
10087           (createFunction): fixed xstack
10088         * src/SDCCglue.c (emitMaps): set allocation required for bit area
10089         * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
10090           or bit either,
10091           (geniCodeCritical): store original interrupt state in an iTemp bit
10092           var unless stack-auto
10093         * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
10094         * src/SDCCmain.c (setIncludePath): added include/target to search path
10095         * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
10096         * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
10097           prototype,
10098           (processFuncArgs): put bit vars in bit area
10099         * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
10100           unsaveRBank): fixed xstack,
10101           (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
10102           (genFunction, genEndFunction): fixed xstack,
10103           (genAssign): optimization don't walk backwards through mem
10104         * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
10105         * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
10106         * support/regression/Makefile: also make library (for stack-auto) when
10107           making "all" and added "test-mcs51-xstack-auto"
10108         * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
10109         * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
10110         * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
10111         * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
10112         * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
10113           make-library by MAKE_LIBRARY
10114         * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
10115           regression tests for xstack
10116         * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
10117         * support/regression/tests/critical.c: test for critical on mcs51
10118
10119 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10120
10121         * support/regression/ports/ucz80/spec.mk: use include and lib files from
10122           built version of sdcc instead of installed version
10123
10124 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
10125
10126         * src/mcs51/gen.c (toBoolean): fixed bug 1065458
10127         * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
10128           vprintf.c now
10129         * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
10130         * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
10131           WARNING: remove device/lib/build/z80/printf.o by hand when
10132           updating from previous build!
10133         * device/lib/z80/printf.c: updated comment
10134         * support/regression/tests/bug1057979.c: test all ports now
10135         * support/regression/tests/bug1065458.c: file added
10136
10137 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10138
10139         * src/z80/gen.c (genFunction, genEndFunction): avoided generating
10140           *_start and *_end symbols for static functions
10141
10142 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
10143
10144         * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
10145           and search crt0.o in all library paths,
10146           (setIncludePath): proper handling of --nostdinc,
10147           (setLibPath): proper handling of --nostdlib
10148         * support/regression/Makefile,
10149         * support/regression/ports/ds390/spec.mk,
10150         * support/regression/ports/gbz80/spec.mk,
10151         * support/regression/ports/hc08/spec.mk,
10152         * support/regression/ports/mcs51/spec.mk,
10153         * support/regression/ports/mcs51-large/spec.mk,
10154         * support/regression/ports/mcs51-stack-auto/spec.mk,
10155         * support/regression/ports/z80/spec.mk: use include and lib files from
10156           built version of sdcc instead of installed version
10157         * doc/sdccman.lyx: fixed typo in --nostdinc
10158
10159 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
10160
10161         * src/pic/pcode.c,
10162         * src/pic/device.c,
10163         * src/pic/ralloc.c,
10164         * src/pic/gen.c : added support to generate code for struct bit fields.
10165
10166 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
10167
10168         * as/xa51/xa_version.h,
10169         * device/include/errno.h,
10170         * device/include/regc515c.h,
10171         * device/lib/_itoa.c,
10172         * device/lib/_ltoa.c,
10173         * device/lib/ser_ir_cts_rts.c,
10174         * sim/ucsim/xa.src/glob.cc,
10175         * sim/ucsim/xa.src/inst_gen.cc,
10176         * sim/ucsim/xa.src/xa_bit.cc,
10177         * sim/ucsim/xa.src/xa_sfr.cc,
10178         * sim/ucsim/z80.src/inst_dd.cc,
10179         * sim/ucsim/z80.src/inst_fdcb.cc,
10180         * support/scripts/keil2sdcc.pl,
10181         * src/pic16/pic16.dsp,
10182         * src/pic16/pic16a.dsp: corrected cvs line endings
10183         * device/lib/printf_large.c: fixed bug 1057979
10184         * src/pic16/gen.c: fixed non-C standard code
10185         * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
10186         * src/SDCCglobl.h: changed pack_iram to no_pack_iram
10187         * support/regression/ports/mcs51/support.c: reload T1 asap
10188         * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
10189           pdata use and clear idata startup behaviour
10190         * support/regression/tests/bug1057979.c: added
10191
10192 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
10193
10194         * device/examples/ds390/ow390/ad26.h,
10195         * device/examples/ds390/ow390/cnt1d.h,
10196         * device/examples/ds390/ow390/crcutil.c,
10197         * device/examples/ds390/ow390/ownet.h,
10198         * device/examples/ds390/ow390/owsesu.c,
10199         * device/examples/ds390/ow390/swt12.h,
10200         * device/examples/ds390/ow390/swtoper.c,
10201         * device/examples/ds390/ow390/temp10.h,
10202         * device/examples/ds390/ow390/thermodl.c,
10203         * device/examples/ds390/tinitalk/tinitalk.dsp,
10204         * device/examples/ds390/tinitalk/tinitalk.dsw,
10205         * device/examples/mcs51/clock/hw.h,
10206         * device/examples/mcs51/simple2/go.bat,
10207         * device/examples/serialcomm/windows/serial.h,
10208         * device/examples/xa51/dummy.c,
10209         * device/examples/xa51/hello.c,
10210         * device/include/80c51xa.h,
10211         * device/include/at89x051.h: corrected cvs line endings
10212
10213 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
10214
10215         * src/pic16/main.c (options): added command line --gstack, to trace
10216         stack over/under flows,
10217         * added pragma 'wparam' to allow passing first byte of function
10218         parameters via WREG, syntax is #pragma wparam my_function[, func2...]
10219         * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
10220         call to __gstack_test function and sets up the symbol as extern,
10221         * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
10222         * popaop): added call to pic16_testStackOverflow,
10223         * (wParamCmp, inWparamList): NEW, test existence of a symbol in
10224         wparamList list,
10225         * (genCall, genPcall): now all parameters are passed via stack
10226         except in functions that are pass to wparam pragma in which WREG is
10227         used too,
10228         * (genPcall): REENTRANT flag is checked to see if variable prototype
10229         contains reentrant keyword, don't call a non-reentrant function, via
10230         a reentrant function pointer or vice versa, functions are never
10231         passed via WREG,
10232         * (genJumpTab): applied patch from bug #1057478 by R.Neider and
10233         D.Winkler,
10234         * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
10235         SIGSEGV when accessing a NULL register stucture,
10236         * (pic16_printGPointerType): modified to handle UPPER modifier for
10237         function initializers, changed prototype of function to simpler one,
10238         * (pic16_printIvalFuncPtr): check to see if function is already
10239         added in externs list,
10240         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
10241         optimized a move from W to SFR with a move to the same register
10242         later after a CALL,
10243         * device/lib/pic16/debug: NEW directory, contains debug features
10244         which are enabled when linking with libdebug.lib, currently command
10245         line option --gstack enables stack pointer tracing for over/under
10246         flow, corresponding sources are in debug/gstack
10247
10248 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
10249
10250         * doc/sdccman.lyx: updated SDCC version,
10251         * (PIC16 port): update list of command line options,
10252         * src/pic16/device.h (structure pic16_options_t): added field gstack
10253         to enable stack overflow tracing on push/pops,
10254         * src/pic16/device.c (statistics structure): added statistics
10255         structure,
10256         * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
10257         pic16_dump_int_registers): increase statistics counters for each
10258         * variable which is encountered
10259         * (pic16_dump_usection): emit each .udata variable to its own udata
10260         section,
10261         * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
10262         when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
10263         parameters via stack, otherwise use old scheme,
10264         * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
10265         assembler output file,
10266         * src/pic16/main.c: added command line options --gstack to enable
10267         push/pop tracing for stack overflow,
10268         * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
10269         instructions): added size of each instruction,
10270         * (pic16_countInstruction): estimate size of instructions in
10271         the_pFile list, inline assembly blocks are not counted,
10272         * (pic16_FixRegisterBanking): trace previous register usage, when
10273         banksel optimizations is greater than 0, don't emit a redudant
10274         banksel directive,
10275
10276 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
10277
10278         * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
10279         * src/pic16/ralloc.c : applied same fix for pic16.
10280         * src/pic/gen.c : tidied it up a little.
10281
10282 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10283
10284         * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
10285         thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
10286
10287 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10288
10289         * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
10290
10291 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10292
10293         * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
10294         non-reentrant function __modsint in the interrupt function (thus
10295         corrupting math operations during serial I/O)
10296         * device/lib/ser_ir.c: as above, changed buffersize
10297         * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
10298         256.c,d for zeroing
10299         * doc/Makefile: added option -t for rsync
10300
10301 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10302
10303         * src/SDCCast.h (struct ast),
10304         * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
10305
10306 2004-10-20 Borut Razem <borut.razem AT siol.net>
10307
10308         * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
10309         package
10310
10311 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
10312
10313         * device/lib/pic16/libsdcc/Makefile: added lregs directory in
10314         makefile targets,
10315         * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
10316         support functions to replace long sequences of MOVFF's from access
10317         bank registers to stack and vice versa,
10318         * src/pic16/device.h: added new field opt_flags, where optimization
10319         flags can be set to enable certain features,
10320         * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
10321         * pBlock, (genFunction, genEndFunction): surroung loop for
10322         saving/loading used registers in stack with PC_INFO pCodes,
10323         INF_LREGS. Code in between can then be optimized by pCode optimizer
10324         to support function calls,
10325         * (genDataPointerSet): fixed bug which loaded float fields in
10326         structures with corrupt data,
10327         * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
10328         in a standard way debug info on stderr. Feature used for developing
10329         and debugging only,
10330         * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
10331         obsolete chunks of code,
10332         * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
10333         * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
10334         * pic16/src/pcode.c (pic16_newpCodeInfo,
10335         * (pic16_newpCodeOpLocalRegs),
10336         * (pic16_convertLocalRegs2Support): NEW, to support new optimization
10337         feature,
10338         * (pic16_pCodeConstString): printing of the initial value of a
10339         symbol as a comment is inhibited since parsing was already done by
10340         copyStr and output is corrupt,
10341         * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
10342
10343 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10344
10345         * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
10346
10347 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
10348
10349         * as/mcs51/lkarea.c: removed old K&R style,
10350           (lnksect): changed check on boundary error,
10351           (lnksect2): changed check on boundary error,
10352           (lnksect2): extend XSTK to end of page if size = 1
10353         * as/mcs51/lkmain.c: removed old K&R style,
10354           (Areas51): create l_IRAM symbol
10355         * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
10356         * device/lib/Makefile.in: renamed model-mcs51-reentrant to
10357           model-mcs51-stack-auto, added model-mcs51-xstack-auto
10358         * device/lib/_mullong.c: added version to be compiled with xstack
10359         * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
10360         * device/lib/mcs51/crtxclear.asm: clear pdata as well
10361         * device/lib/mcs51/crtxstack.asm: fixed comment
10362         * src/SDCCglue.c: maxInterrupts defaults to 0,
10363           (emitMaps): added pdata,
10364           (createInterruptVect): (re)moved default,
10365           (glue): added pdata,
10366           (glue): moved __start__xstack to XSTK with default size 1
10367         * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
10368           and options.float_rent when options.stackAuto is set,
10369           (linkEdit): only write XDATA_NAME if provided on command line
10370         * src/SDCCmem.h,
10371         * src/SDCCmem.c: added pdata
10372         * src/port.h: added pdata_name to PORT
10373         * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
10374           (saveRegisters, unsaveRegisters): removed usage of B,
10375           (genMinus): fixed accumulator clash,
10376           (genJumpTab): added comment, this needs another look
10377         * src/mcs51/gen.c: added check for "B in use" paranoia,
10378           added pushB() and popB()
10379         * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
10380           chance
10381         * src/avr/main.c,
10382         * src/ds390/main.c,
10383         * src/hc08/main.c,
10384         * src/mcs51/main.c,
10385         * src/pic/main.c,
10386         * src/pic16/main.c,
10387         * src/xa51/main.c,
10388         * src/z80/main.c: (reset_regparms) made void parameter explicit and
10389           added PSEG (PAG,XDATA) or NULL to port specifier
10390         * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
10391         * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
10392           (_mcs51_genInitStartup): removed __start__xstack equ,
10393           (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
10394         * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
10395         * src/z80/gen.c (_rleAppend): fixed warnings
10396         * support/regression/tests/zeropad.c: added pdata test
10397         * .version: bumped to 2.4.6
10398
10399 2004-10-17 Borut Razem <borut.razem AT siol.net>
10400
10401         * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
10402         as a part of nightly build
10403
10404 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
10405
10406         * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
10407         WREG holds the first byte function parameters,
10408         * (aopForSym): take special case for symbols which are in FARSPACE
10409         but in CODESPACE too,
10410         * (assignResultValue): modified to take into account _G.useWreg,
10411         * (genCall): don't use wreg for parameter passing when function is
10412         declared as reentrant, too, added optimization INCF to stack
10413         pointer when stack parameter count is 1,
10414         * (genFunction, genEndFunction): refurnished and fixed to not using
10415         wreg for passing parameters when function has varargs or is
10416         reentrant, fixed bug with symbol name compare for generating
10417         functions in absolute address,
10418         * (pic16_storeForReturn): refurnished,
10419         * (genCmp): began writing a new version of the function, not ready
10420         yet, therefore it is disabled,
10421         * (genAssign): do not read code memory when assigning a function to
10422         a pointer function,
10423         * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
10424         array of characters, not pointer,
10425         * (pic16initialComments): in debug mode emit an .ident directive for
10426         the assembler,
10427         * (_process_pragma): emit a new warning type (internal to pic16)
10428         when setting stack to default length, emit a similar warning when
10429         placing a function at absolute address and address is not word aligned
10430         * (_pic16_parseOptions): added 'return TRUE' statement,
10431         * (_pic16_linkEdit): if compiling a source, then add the source's
10432         file object, first in the list of objects to link,
10433
10434 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
10435
10436         * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
10437         * src/pic/main.c : removed VC warning.
10438         * src/pic/gen.c : changed comment.
10439
10440 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
10441
10442         * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
10443         reference to a deprecated symbol _GPTRREG was causing failure to
10444         link. Thanks G. M. Gallant for the info.
10445
10446 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
10447
10448         * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
10449         comments for Bugs item #954788.
10450
10451 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
10452
10453         * src/pic16/device.c (pic16_dump_gsection,
10454         * pic16_groupRegistersInSection): handle symbols declared to be in
10455         access bank differently,
10456         * src/pic16/gen.c (struct _G): added field resDirect,
10457         * (aopForSym): if symbol on stack and iCode is '=' and result exists,
10458         send values read from stack directly to result and don't allocate
10459         temporary values,
10460         * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
10461         same registers,
10462         * (pic16_sameRegsOfs): NEW,
10463         * (freeAsmop): if _G.resDirect is set then do not mark registers as
10464         free because they were not allocated from temporary pool,
10465         * pic16_popRegFromString): workaround to fix a problem with
10466         allocating variables twice or never,
10467         * (genGenPointerGet): using PRODL instead of FSR0H,
10468         * (genGenPointerSet): using POSTDEC1 (that is a stack location)
10469         instead of FSR0H,
10470         * (genAssign): take advantage of the _G.resDirect flag,
10471         * (genCast): around line 11844, use mov2f instead of directly
10472         MOVFF'ing between operands to account for literal values,
10473         * src/pic16/genutils.c: some new debug functions for gpsim have been
10474         added,
10475         * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
10476         float with integer part only,
10477         * src/pic16/main.c (_process_pragma): handle pragma udata access to
10478         place variables in access bank
10479         * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
10480         updated sources to reflect recent changes in gen.c
10481
10482 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
10483
10484         * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
10485         sources that searched for headers in installation path, now the
10486         device/include/pic16 is used,
10487         * src/pic16/glue.c (pic16glue),
10488         * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
10489         .line directives if not in debug mode, this suppresses assembler's
10490         warnings for ignored directives
10491
10492 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
10493
10494         * src/port.h: made reset_regparms prototype void parameter explicit.
10495         * src/SDCCsymt.c (processFuncArgs): removed argument "func".
10496         * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
10497         * doc/sdccman.lyx: documented warning disabling and how to use
10498           printf_large to make it print floats.
10499         * device/include/stdbool.h: NEW
10500         * device/lib/_atof.c,
10501         * device/lib/_divuint.c,
10502         * device/lib/_divulong.c,
10503         * device/lib/expf.c,
10504         * device/lib/printf_large.c,
10505         * device/lib/sincosf.c,
10506         * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
10507         * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
10508           a completely reentrant lib.
10509
10510 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
10511
10512         * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
10513         * device/include/pic16/stdio.h: fixed bug with colon
10514
10515 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
10516
10517         * device/include/pic16/stdio.h,
10518         * device/include/pic16/stdlib.h,
10519         * device/include/pic16/math.h: NEW
10520         * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
10521         declared as _naked to reduce overhead
10522         * device/lib/Makefile.in (target port-specific-objects-pic16):
10523         changed * to *.* so to ignore the CVS directory,
10524         * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
10525         stacked variables back in stack,
10526         * (genEndFunction): fixed bug reported by G.M. Gallant with stack
10527         corruption
10528
10529 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
10530
10531         * .version: bumped version number to 2.4.5
10532         * support/Util/SDCCerr.h: added warning W_POSSBUG2.
10533         * support/Util/SDCCerr.c (messages structure): added entry for
10534         W_POSSBUG2
10535
10536         Large cumulative patch for pic16 port and libraries.
10537         * device/include/pic16/sdcc-lib.h,
10538         * device/include/pic16/stdarg.h,
10539         * device/include/asm/pic16/features.h,
10540         * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
10541         * device/include/pic16/float.h: changes reentrant keyword with
10542         _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
10543         * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
10544         updated target build-libraries to include objects from gptr,
10545         * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
10546         _IL_REENTRANT to all function headings, included sdcc-lib.h header,
10547         * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
10548         all function headings,
10549         * src/SDCCmain.c: added global parameter userIncDirsSet,
10550         * (parseCmdLine): when option -I is encountered add directory to
10551         userIncDirsSet too,
10552         * src/version.awk: added space between control and long,
10553         * src/pic16/NOTES: added some notes for the port,
10554         * src/pic16/gen.c: added prototype for mov2fp function,
10555         * (fReturnpic16[]): properly named return value registers,
10556         * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
10557         * (aopForSym): added code to handle symbols with onStack flag set,
10558         symbols onStack are allocated PTRSIZE bytes,
10559         * (aopFreeAsmop): handles special case where asmops are stack objects,
10560         * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
10561         * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
10562         added argument lock to trace flaws in allocating temporary registers
10563         when developing port,
10564         * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
10565         * (pic16_popRegFromString): reenabled allocating a direct register
10566         from string,
10567         * (assignResultValue): various beautifications,
10568         * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
10569         referenced function argument,
10570         * (genIpush): reenabled to allow stacked arguments, handles only
10571         ic->parmPush iCodes,
10572         * (genCall, genPcall): major changes to allow for variable argument
10573         functions, fixed a bug with falsely restoring stack pointer after
10574         returning from call,
10575         * (genFunction): pending code for critical function,
10576         * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
10577         * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
10578         * (genNearPointerGet): fixed bug with indirect reading, was always
10579         reading from INDF0
10580         * (genGenPointerGet, genGenPointerSet): rewrote to support generic
10581         pointers,
10582         * (genAddrOf): rewrote code to take address of a stacked function parameter
10583         * (genCast): fixed casting to generic pointer type,
10584         * src/pic16/gen.h: added AOP_STA,
10585         * (struct asmop): added field stk,
10586         * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
10587         * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
10588         * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
10589         * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
10590         * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
10591         * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
10592         generic pointers,
10593         * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
10594         and library paths,
10595         * (pic16_port structure): generic pointer size is set to 3,
10596         * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
10597         * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
10598         compiler warning,
10599         * src/pic16/ralloc.c (allocReg): prevent allocating register when
10600         operand is an iTemp,
10601
10602 2004-09-24 Martin Helmling <mh AT octo-soft.de>
10603
10604         * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
10605         * debugger/mcs51/simi.c: addapt new syntax of s51
10606
10607 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
10608
10609         * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
10610         * src/pic16/pcode.c: commented out some calls to free() in order to
10611         fix bug #989576,
10612
10613 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10614
10615         * src/SDCCicode.h,
10616         * src/SDCCicode.c (isiCodeInFunctionCall),
10617         * src/avr/ralloc.c (selectSpil),
10618         * src/pic/ralloc.c (selectSpil),
10619         * src/pic16/ralloc.c (selectSpil),
10620         * src/ds390/ralloc.c (selectSpil),
10621         * src/hc08/ralloc.c (selectSpil),
10622         * src/xa51/ralloc.c (selectSpil),
10623         * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
10624         stack in the middle of a function call sequence (fixes bug #1020268)
10625         * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
10626         costs associated with the minimum switch case.
10627
10628 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10629
10630         * src/SDCC.lex: fixed bug #1030549
10631
10632 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10633
10634         * src/SDCCcse.h (struct cseDef),
10635         * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
10636         over a function call if the CSE is derived from a symbol whose
10637         address has been taken (fixes bug #1029883)
10638         * support/regression/tests/bug-1029883: a new regression test for
10639         this bug
10640
10641 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10642
10643         * src/hc08/gen.c (emitinline): fixed bug #1029778
10644         * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
10645         to a cast object is no longer a syntax error ("fixes" bug #1030006,
10646         and starts toward RFE #905167)
10647
10648 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
10649
10650         * src/pic16/gen.c (mov2f): New function to move an operand to
10651         another without considering if it is a literal or a register,
10652         * (pic16_sameRegs): don't check if they are both AOP_REG,
10653         * (AccRsh): removed andmask=0 lines,
10654         * (genLeftShift): duplicated to be improved in future versions,
10655         * src/pic16/main.c (_process_pragma): emit stack default size in hex,
10656         * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
10657         in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
10658         * (pic16initMnemonics): added initialization for POC_INFSNZW,
10659         * (insertBankSwitch): fixed inserting banksel directives algorithm
10660         for instructions that follow a skip instruction, this fixes a report
10661         for broken subtraction code generation,
10662         * src/pic16/ralloc.c (deassignLRs): do not free register if current
10663         iCode is a left op, just in case result and right share the same
10664         registers
10665
10666 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10667
10668         * src/hc08/main.c,
10669         * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
10670         preservation of HX
10671         * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
10672         * src/mcs51/ralloc.c (packRegisters): removed the patch applied
10673         on 2004-09-12; it was buggy
10674
10675 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
10676
10677         * src/SDCCsymt.h: removed RESULT_CHECK
10678         * src/SDCCast.c,
10679         * src/SDCCglue.c,
10680         * src/SDCCval.c,
10681         * src/pic/glue.c,
10682         * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
10683
10684 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
10685
10686         * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
10687         * src/pic16/device.c (pic16_assignConfigWordValues): wrong
10688         configuration values no more rejected by compiler, they are assigned
10689         to configuration registers with a warning message instead,
10690         * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
10691         the for-loop so last conf register is emitted too,
10692         * (_pic16_initPaths): link library libsdcc.lib by default,
10693         * (_hasNativeMulFor): modified test for multiplication according to
10694         Raphael Neider's remarks. Integer multiplication is also done with
10695         support functions,
10696         * device/include/pic16/pic18fregs.h: corrected type error in while
10697         testing and including 18f6720 header file
10698
10699 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
10700
10701         * src/pic16/device.h (pic16_options): removed field use_crt,
10702         * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
10703         until an optimization to handle single bits is added,
10704         * (pic16_loadFSR0): moved before genUnpackBits,
10705         * (genAnd): some white lines removed,
10706         * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
10707         leave_reset flags in pic16_options when using crt modules,
10708
10709 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
10710
10711         * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
10712           for bugs 898889 & 979599. Also used some safer print instructions.
10713
10714 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
10715
10716         * src/pic16/device.h (pic16_options_t): added field use_crt,
10717         crt_name, no_crt,
10718         * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
10719         catch a probable future bug,
10720         * src/pic16/gen.c: aopIdx function commented out,
10721         * (genAssign): commented out old code which used aopIdx,
10722         * src/pic16/glue.c (pic16glue): removed some legacy fragments of
10723         code, added if conditionals to take into account the --use-crt
10724         command line options,
10725         * src/pic16/main.c (pic16_optionsTable): added new command line
10726         options, --use-crt= and --no-crt,
10727         * (_pic16_linkEdit): now the proper crt object is added in the
10728         linker command line except than when --no-crt is specified,
10729         * src/pic16/pcode.c,
10730         * src/pic16/pcode.h: added some structures and functions for a new
10731         optimization scheme to compansate for instruction overhead between
10732         same iCodes, this scheme is currently under development and is not
10733         working in any way,
10734         * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
10735         to && operator,
10736         * device/lib/pic16/startup/crt0i.c,
10737         * device/lib/pic16/startup/crt0iz.c: added global char variable
10738         __uflags to force the generation of an idata section
10739
10740 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
10741
10742         * doc/Makefile,
10743         * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
10744         * doc/sdccman.lyx: updated sdcc version to 2.4.4
10745
10746 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10747
10748         * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
10749         Frieder) and clarified the default code optimization mode
10750
10751 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10752
10753         * src/SDCC.lex (doPragma, process_pragma),
10754         * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
10755         "opt_code_size", and "opt_code_balanced"
10756         * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
10757         regrouped options by category, added support for category headers
10758         * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
10759         and "--opt-code-size"
10760         * doc/sdccman.lyx: documented these new options and pragmas
10761         * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
10762         preference into account
10763
10764 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
10765
10766         * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
10767           geniCodePreDec): Fixed bug 904237 by generating a warning
10768         * src/SDCCerr.h,
10769         * src/SDCCerr.c: added warning W_SIZEOF_VOID
10770
10771 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
10772
10773         * src/pic/device.c : When no max ram set validate full memory range.
10774         * src/pic/pcode.c,
10775         * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
10776
10777 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
10778
10779         * device/lib/_gptrget.c,
10780         * device/lib/_gptrput.c: updated comment
10781         * device/lib/calloc.c,
10782         * device/lib/free.c,
10783         * device/lib/malloc.c,
10784         * device/lib/realloc.c: added LGPL, made them reentrant-safe
10785         * src/SDCCcse.c (cseBBlock),
10786         * src/SDCCicode.c (printOperand, geniCodeArray),
10787         * src/SDCCicode.h (struct operand): fixed bug 868103
10788         * support/regression/tests/bug-868103.c: added
10789         * src/SDCCast.c (searchLitOp),
10790         * src/SDCCcse.h (struct cseDef),
10791         * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
10792         * src/SDCCicode.h (struct operand),
10793         * src/SDCCsymt.h (struct sym_link),
10794         * src/avr/gen.c (hasInc),
10795         * src/ds390/gen.c (hasInc),
10796         * src/hc08/gen.c (genPlusIncr, hasInc),
10797         * src/mcs51/gen.c (hasInc),
10798         * src/pic16/glue.c (pic16_printIvalChar),
10799         * src/pic16/ralloc.c (regWithIdx),
10800         * src/xa51/gen.c (hasInc) : removed warnings
10801         * src/SDCCast.c (createBlock): added comment ???
10802         * src/hc08/ralloc.c: updated comments
10803
10804 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10805
10806         * doc/sdccman.lyx: updated section on switch statements, added
10807         section about semaphore locking
10808         * doc/Makefile: added option -info for latex2html
10809         * device/lib/_gptrget.c,
10810         * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
10811
10812 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
10813
10814         * src/pic/device.h,
10815         * src/pic/device.c,
10816         * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
10817          maxram is less than 0x100.
10818
10819 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
10820
10821         * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
10822
10823 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10824
10825         * src/port.h,
10826         * src/mcs51/main.c,
10827         * src/ds390/main.c,
10828         * src/z80/main.c,
10829         * src/hc08/main.c,
10830         * src/pic/main.c,
10831         * src/pic16/main.c,
10832         * src/avr/main.c,
10833         * src/xa51/main.c
10834         * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
10835         a jump table is the best form for a switch statement, including
10836         automatic insertion of missing cases to make the case range
10837         continuous. Developed in collaboration with Frieder Ferlemann.
10838
10839 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10840
10841         * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
10842         accumulator result if it needs sign extension
10843
10844 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
10845
10846         * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
10847
10848 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
10849
10850         * device/lib/gbz80/printf.c,
10851         * device/lib/z80/printf.c: removed define for NULL
10852
10853 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
10854
10855         * as/xa51/xa_link.c,
10856         * device/examples/ds390/ow390/ad26.c,
10857         * device/examples/ds390/ow390/cnt1d.c,
10858         * device/examples/ds390/ow390/counter.c,
10859         * device/examples/ds390/ow390/ds2480.h,
10860         * device/examples/ds390/ow390/ds2480ut.c,
10861         * device/examples/ds390/ow390/findtype.c,
10862         * device/examples/ds390/ow390/gethumd.c,
10863         * device/examples/ds390/ow390/owllu.c,
10864         * device/examples/ds390/ow390/ownetu.c,
10865         * device/examples/ds390/ow390/swt12.c,
10866         * device/examples/ds390/ow390/swtloop.c,
10867         * device/examples/ds390/ow390/temp.c,
10868         * device/examples/ds390/ow390/temp10.c,
10869         * device/examples/ds390/ow390/thermo21.c,
10870         * device/examples/ds390/ow390/tinilnk.c,
10871         * device/examples/ds390/ow390/tstfind.c,
10872         * device/examples/serialcomm/windows/serial.cpp,
10873         * device/examples/serialcomm/windows/test_serialcomm.cpp,
10874         * device/include/reg51.h: fixed line endings for cvs
10875
10876 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10877
10878         * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
10879         packRegsForAccUse, packRegisters): new accumulator register
10880         packing algorithm
10881         * support/regression/ports/hc08/support.c (_putchar): suppress
10882         warning of unused variable
10883         * src/SDCCicode.c: added SWAP entry to codeTable
10884
10885 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
10886
10887         * device/lib/sprintf.c: forgot to add this file before previous commit
10888
10889 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
10890
10891         * src/pic16/gen.c (genPackBits): added operand right in function
10892         parameters, load result directly if p_type is POINTER (that is
10893         called by genNearPointerSet)
10894         * (genUnPackBits): added operand left in function parameters,
10895         * (genNearPointerGet, genNearPointerSet): prevent the loading of
10896         FSR0 if accessing bitfields,
10897
10898 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
10899
10900         * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
10901           _print_format; updated printf, sprintf, vsprintf
10902         * device/include/asm/default/features.h: corrected comment/define
10903         * device/lib/Makefile.in: added sprintf.c
10904         * device/lib/libsdcc.lib: added sprintf module
10905         * device/lib/printf_large.c,
10906         * device/lib/vprintf.c,
10907         * device/lib/sprintf.c: totally refactored printf_large and vprintf
10908           into these 3 files
10909         * support/regression/Makefile: changed ALL_PORTS into a usefull default
10910         * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
10911         * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
10912           hc08 test
10913         * support/regression/tests/zeropad.c: define idata as data for hc08
10914
10915 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10916
10917         * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
10918         * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
10919         labels are referenced at least once (even if a reference is not found)
10920         * src/hc08/gen.c (emitcode): set isComment flag for comments
10921         * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
10922         loads), rules 6a..6b (optimize jumps to return)
10923
10924 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10925
10926         * device/lib/acosf.c (acosf),
10927         * device/lib/asinf.c (asinf),
10928         * device/lib/atanf.c (atanf),
10929         * device/lib/ceilf.c (ceilf),
10930         * device/lib/cosf.c (cosf),
10931         * device/lib/coshf.c (coshf),
10932         * device/lib/cotf.c (cotf),
10933         * device/lib/fabsf.c (fabsf),
10934         * device/lib/floorf.c (floorf),
10935         * device/lib/log10f.c (log10f),
10936         * device/lib/logf.c (logf),
10937         * device/lib/sinf.c (sinf),
10938         * device/lib/sinhf.c (sinhf),
10939         * device/lib/sqrtf.c (sqrtf),
10940         * device/lib/tanf.c (tanf),
10941         * device/lib/tanhf.c (tanhf),
10942         * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
10943         replaced all instances of "reentrant" in the library functions
10944         defined in math.h with this macro.
10945         * support/regression/tests/float_trans.c: reenabled test for hc08
10946
10947 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
10948
10949         * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
10950         erroneously deleted
10951
10952 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10953
10954         * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
10955         * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
10956         multi-byte volatile operands are used
10957         * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
10958         * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
10959         initialization to area GSINIT0 so that it would always precede
10960         any static initializers in GSINIT
10961         * support/regression/tests/zeropad.c: fixed idata define for hc08
10962         * support/regression/tests/bug-927659.c,
10963         * support/regression/tests/float_trans.c: disabled tests for hc08
10964         pending missing library routines
10965         * .version: increased version number to 2.4.4 - hc08 port now passes
10966         regression tests
10967
10968
10969 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
10970
10971         * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
10972         * Makefile.common.in,
10973         * as/Makefile,
10974         * as/hc08/Makefile.in,
10975         * as/mcs51/Makefile.in,
10976         * as/z80/Makefile.in,
10977         * debugger/mcs51/Makefile.in,
10978         * device/include/Makefile.in,
10979         * device/lib/Makefile.in,
10980         * doc/Makefile,
10981         * link/Makefile,
10982         * link/z80/Makefile.in,
10983         * packihx/Makefile.in,
10984         * sim/ucsim/main_in.mk,
10985         * sim/ucsim/avr.src/Makefile.in,
10986         * sim/ucsim/doc/Makefile.in,
10987         * sim/ucsim/gui.src/serio.src/Makefile.in,
10988         * sim/ucsim/hc08.src/Makefile.in,
10989         * sim/ucsim/s51.src/Makefile.in,
10990         * sim/ucsim/xa.src/Makefile.in,
10991         * sim/ucsim/z80.src/Makefile.in,
10992         * src/Makefile.in,
10993         * support/cpp2/Makefile.in,
10994         * support/librarian/Makefile,
10995         * support/makebin/Makefile: added DESTDIR to the install path proposed
10996         by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
10997         * doc/sdccman.lyx: added DESTDIR documentation
10998
10999 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
11000
11001         * src/pic16/gen.c (genFunction, genEndFunction): fixed return
11002         instruction for interrupt handlers, use fast returns when returning
11003         from high priority interrupts
11004
11005 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11006
11007         * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
11008         code generation
11009         * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
11010         * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
11011         bugs, ported much of Bernhard's code from mcs51
11012         * src/mcs51/gen.c (genSend),
11013         * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
11014         than one when calling a reentrant function
11015         * device/lib/_mullong.c: defined an alternate struct layout for big
11016         endian ports (hc08)
11017
11018 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11019
11020         * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
11021         test
11022
11023 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11024
11025         * src/SDCCsymt.c (processFuncArgs): make sure parameter types
11026         are sane and complete before asking the port its prefered parameter
11027         passing method (fixes bug #1017633)
11028         * device/lib/hc08/_ret.c: added "data" storage class to _ret2
11029         and _ret3
11030
11031 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11032
11033         * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
11034         problem in bitfields >= 8 bits.
11035
11036 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
11037
11038         * src/SDCCsymt.c: undid changes that were not meant to be committed
11039
11040 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
11041
11042         * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
11043
11044 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
11045
11046         * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
11047           copied and wrong bit got inverted
11048
11049 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11050
11051         * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
11052         genFarPointerSet into genPointerSet; eliminated genFarPointerSet
11053         * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
11054         genFarPointerGet into genPointerGet; eliminated genFarPointerGet
11055         * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
11056         assignments to bitfields at known addresses
11057         * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
11058         reads from bitfields at known addresses
11059         * src/hc08/ralloc.c (packRegisters),
11060         * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
11061         genhc08Code): optimize pointer get values used as conditionals
11062         * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
11063         and branch
11064
11065 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11066
11067         * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
11068         genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
11069         * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
11070         as conditionals
11071
11072 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11073
11074         * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
11075
11076 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11077
11078         * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
11079         related problems
11080
11081 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
11082
11083         * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
11084
11085 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11086
11087         * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
11088         mcs51 port
11089
11090 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
11091
11092         * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
11093
11094 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11095
11096         * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
11097         cases use more compact code.
11098
11099 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
11100
11101         * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
11102
11103 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11104
11105         * src/SDCClrange.c (findPrevUse): fixed bug #1007371
11106
11107 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11108
11109         * src/SDCCsymt.h,
11110         * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
11111         parameter of changePointer() from symbol* to sym_link*
11112         * src/SDCCast.c (decorateType): call changePointer() for CAST op
11113         * src/SDCCsymt.c (compareType): void* type is castable to other
11114         pointers, but not necesarily an exact match.
11115         * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
11116         is no longer blindly treated as an exact match.
11117         * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
11118
11119 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
11120
11121         * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
11122
11123 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
11124
11125         * src/pic/gen.c,
11126         * src/pic/pcode.c,
11127         * src/pic/ralloc.h,
11128         * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
11129
11130 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
11131
11132         * src/pic/device.c,
11133         * src/pic/device.h,
11134         * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
11135
11136 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11137
11138         * src/mcs51/gen.c (emitcode): fixed bug #992819
11139
11140 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
11141
11142         * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
11143           there's no need to make it worse
11144
11145 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11146
11147         * src/mcs51/ralloc.c (deassignLR),
11148         * src/ds390/ralloc.c (deassignLR),
11149         * src/hc08/ralloc.c (deassignLR),
11150         * src/z80/ralloc.c (deassignLR),
11151         * src/pic/ralloc.c (deassignLR),
11152         * src/pic16/ralloc.c (deassignLR),
11153         * src/avr/ralloc.c (deassignLR),
11154         * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
11155         rlivePoint): fixed another part of bug #971834
11156
11157 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11158
11159         * src/z80/main.c: enabled "critical" keyword
11160         * src/z80/mappings.i,
11161         * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
11162         functions (fixes bug #979646)
11163         * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
11164
11165 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11166
11167         * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
11168           such as c:\mydir.
11169
11170 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
11171
11172         * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
11173           doesn't disable too much optimizations
11174
11175 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
11176
11177         * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
11178
11179 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
11180
11181         * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
11182
11183 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
11184
11185         * src/pic/gen.c tidied up tabs
11186         * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
11187         * src/pic/main.c tidied up tabs
11188         * src/pic/pcode.c tidied up tabs and disabled verbose code generation
11189         * src/pic/pcoderegs.c tidied up tabs
11190         * src/pic/ralloc.c tidied up tabs
11191
11192 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
11193
11194         * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
11195         to S_FIXED for pic16 port and when symbol is not in level 0,
11196         allocate for S_REGISTER storage class and pic16 port, too,
11197         * src/pic16/device.h: prototype for checkSym,
11198         * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
11199         * (pic16_assignConfigWordValue): test the value and the mask to
11200         validate that the value is suitable for the configuration word,
11201         * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
11202         collect extern declared symbols, don't emit symbol twice, check
11203         first if symbol is in publics set first,
11204         * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
11205         * added command line '--fstack' which enables an experimental
11206         feature for stack access, too buggy to be used yet...
11207         * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
11208         * (pic16_allocDirReg): when register has storage class S_REGISTER
11209         allocate in pic16_dynAccessRegs,
11210         * device/include/pic16/pic18f????.h: modified configuration word
11211         naming convention, words started as CONFIG0H but should be CONFIG1H
11212
11213 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
11214
11215         * device/include/mcs51reg.h: fixed bug 970993
11216
11217 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
11218
11219         * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
11220         * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
11221         * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
11222         * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
11223         * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
11224         * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
11225           error/warning numbers,
11226           added function setWarningDisabled()
11227         * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
11228         * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
11229           _memcmp.c _memmove.c calloc.c realloc.c free.c
11230         * support/regression/tests/malloc.c: added tests for new functionality
11231         * support/regression/tests/zeropad.c: added tests for truncated initializers
11232           and initialized char arrays starting with '\x0'
11233         * src/mcs51/peeph.def: fixed regression, added peephole 177.f
11234
11235 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
11236
11237         * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
11238
11239 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11240
11241         * doc/sdccman.lyx: updated example in section "Absolute Addressing"
11242         * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
11243         peephole 177.e. Thanks to anonymous
11244
11245 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
11246
11247         * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
11248         function isn't used in the source but referenced as a
11249         variable initializer then declare it as extern in .asm file
11250
11251 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
11252
11253         * .version: increased version number to 2.4.3
11254
11255         Adding version extension according to ChangeLog CVS revision
11256         * src/Makefile.in (target all): added dependency 'version.h'
11257         * (rule version.h): added rule to create version.h from ChangeLog,
11258         * (rule dep): added dependency version.h,
11259         * src/version.awk: AWK script to create version.h
11260         * src/SDCCdwarf2.c (dwWriteModule),
11261         * src/SDCCglue.c (initialComments),
11262         * src/SDCCmain.c (printVersionInfo): modified to write after
11263         version string the version extension number,
11264         * src/SDCCutil.c: included "version.h"
11265         * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
11266         number,
11267         * src/SDCCutil.h: added prototype for getBuildNumber
11268
11269         * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
11270         includeDirsSet, too,
11271         * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
11272         const char [] is found in function prototype...
11273
11274         * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
11275         moving to WREG with source is already in WREG,
11276         * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
11277         * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
11278         * (aopForSym): stack'ed symbols are partially supported, added
11279         if-clause to support symbols in FARSPACE,
11280         * (sameRegs): added test for AOP_ACC to see if registers are same,
11281         * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
11282         * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
11283         * (pic16_popRegFromString): will not allocate a new register if it
11284         doesn't find one by name, bug may have introduced...
11285         * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
11286         * (genIpush): revived to use pic16 port's stack,
11287         * (genAddrOf): added incomplete case for stack'ed operand,
11288         * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
11289         * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
11290         can handle multibyte operands,
11291         * src/pic16/glue.c (pic16_printIval*): some debug info added,
11292         * (pic16initialComments): added message for MPLAB compatibility
11293         mode enabled,
11294         * src/pic16/main.h: prototype for pic16_mplab_comp,
11295         * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
11296         which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
11297         * (_pic16_linkEdit): NEW, handles link stage, transferred here
11298         because of increased complexity of procedure,
11299         * (_process_pragma): stack pragma changed to format 'stack pos len',
11300         emit symbol '_stack_end' to conform with gplink,
11301         * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
11302         to search for register,
11303         * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
11304         PO_GPR_REGISTER,
11305         * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
11306         #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
11307         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
11308         case for PO_GPR_REGISTER,
11309         * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
11310         dies, the new era is ahead !...
11311         * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
11312         pic16_dynInternalRegs,
11313         * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
11314         * (pic16_allocDirReg): minor optimizations and bug fixes,
11315         * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
11316
11317         * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
11318         load stack and frame pointer with address of 'stack_end' symbol
11319
11320 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
11321
11322         * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
11323         without source code but only variable initializers
11324
11325 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
11326
11327         * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
11328         external are not declared as extern to reduce overhead while linking
11329
11330 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
11331
11332         * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
11333
11334 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
11335
11336         * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
11337           Yee Keat for the patch
11338         * src/SDCCast.c (decorateType): fixed bug #979599
11339         * src/ds390/gen.h: removed local fReturnSizeDS390
11340         * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
11341         * src/ds390/gen.c (genAnd, genOr, genXor),
11342         * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
11343
11344 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
11345
11346         * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
11347         add relFilesSet to $3, manipulate $2 to handle linking of object
11348         files without source files in command line,
11349         * device/include/pic16 (all headers): added ID location macros,
11350         * src/pic16/device.c (struct PIC16_device Pics16[]): added field
11351         entries for ID location bytes,
11352         * (pic16_assignIdByteValue): NEW,
11353         * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
11354         added field dumpcalltree to pic16_options_t,
11355         * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
11356         is used instead of pic16_Gstack_base_addr, check if (ifx) before
11357         emitting rFalseIfx label after check_carry label,
11358         * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
11359         pic16_emitDIRegs), NEW
11360         * (pic16glue): dump .calltree file when option --calltree found,
11361         * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
11362         * (_pic16_genAssemblerPreamble): emit ID locations after
11363         configuration registers,
11364         * (pic16_linkCmd): modifications of the link command,
11365         * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
11366         * (pic16_pCodeInitRegisters): don't init stack registers,
11367         * (pic16_findPrevInstruction): fixed bug,
11368         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
11369         bug with immediate registers,
11370         * (buildCallTree): traces stack push and pop,
11371         * (pct2): dump also stack usage for each function,
11372         * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
11373         * (pic16_allocDirReg): various modifications,
11374         * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
11375         fixed to 1,
11376
11377 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
11378
11379         * src/pic16/pcode.c: removed buggy double colon
11380
11381 2004-07-01 Borut Razem <borut.razem AT siol.net>
11382
11383         * support/scripts/sdcc.nsi: added include/pic16 to setup
11384
11385 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
11386
11387         * device/lib/Makefile.in: fixed bug in target objects-pic16,
11388         * device/lib/pic16/Makefile: prefixed with dash (-) command under
11389         target 'clean',
11390         * doc/sdccman.lyx: changed version to 2.4.2 and added some port
11391         specific command line arguments. Also added sample lkr script
11392         for placing a variable at a specific memory bank.
11393         * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
11394         at a specific memory bank,
11395         * (pic16_dump_isection): fixed bug which caused string literals to
11396         be omitted when dumping idata section,
11397         * (pic16_groupRegistersInSection): added code to handle registers
11398         in specific memory banks,
11399         * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
11400         public, all references are renamed too,
11401         * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
11402         AOP_DPTR2,
11403         * (pic16_storeForReturn): added case to handle when dest is WREG,
11404         * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
11405         * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
11406         pic16_rel_udata, check to see if that register is marked as being
11407         a member of a specific memory bank,
11408         * (pic16_printIvalCharPtr): added code to add string literals either
11409         to code or the idata sections,
11410         * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
11411         also accept the 'udata' pragma,
11412         * src/pic16/main.h: new structure types sectName and sectSym
11413         * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
11414         * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
11415         * (pic16_findPrevInstruction): fixed, it returned nothing,
11416         * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
11417         instruction combinations,
11418         * (pic16_FixRegisterBanking): heavily reorganised,
11419         * (pic16_AnalyzeBanking): if generating banksel directives is
11420         disabled, then don't call FixRegisterBanking at all,
11421         * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
11422         completely removed,
11423         * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
11424
11425 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
11426
11427         * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
11428         Phuah Yee Keat <yk.phuah AT nestac.com>
11429
11430 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
11431
11432         * src/pic16/glue.c (pic16createInterruptVect): function now emits
11433         correctly the IVT even if it is relocated to some other location
11434
11435 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
11436
11437         * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
11438         * device/include/pic16/pic18f2220.h: NEW,
11439         * device/lib/pic16/libdev/pic18f2220.c: NEW,
11440         * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
11441         * src/pic16/device.c (struct Pics16): added info for 18f2220,
11442         * src/pic16/device.h (struct pic16_options): added ivt_loc and
11443         nodefaultlibs, ivt_loc is the location of the interrupt vector
11444         table, and nodefaultlibs signs that default libraries should not be
11445         linked in link stage,
11446         * src/pic16/gen.c (genFunction): relocate interrupt vector functions
11447         according to --ivt-loc argument,
11448         * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
11449         when pragma stack is found,
11450
11451 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11452
11453         * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
11454         256 (range check), 257 (do while), 258.a-f (bit banging
11455         f.e. on 3-wire SPI bus)
11456
11457 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11458
11459         * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
11460         variables used exclusively within a loop
11461
11462 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
11463
11464         * src/mcs51/gen.c (genCpl): quick fix for bug #974835
11465
11466 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11467
11468         * src/SDCClrange.c (computeClash): fixed bug #971834
11469
11470 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11471
11472         * src/mcs51/gen.c (genCmp): fixed bug #975903
11473         * src/hc08/gen.c (operandsEqu),
11474         * src/ds390/gen.c (operandsEqu),
11475         * src/z80/gen.c (operandsEqu),
11476         * src/pic/gen.c (operandsEqu),
11477         * src/pic16/gen.c (operandsEqu),
11478         * src/mcs51/gen.c (operandsEqu): fixed bug #976283
11479         * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
11480
11481 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11482
11483         * src/SDCCcse.c (cseBBlock): fixed bug #966963
11484
11485 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
11486
11487         * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
11488         default case in switch statement,
11489         * glue.c (pic16_initPointer): expr is initialised via decoarteType
11490         to eliminate problem with initialisation of pointers, but problem
11491         still exists,
11492         * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
11493         * (emitStaticSegment): removed various lines emitting debug info,
11494         * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
11495         added processor registers for utilizing EEPROM,
11496         * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
11497         configurable and set 8
11498
11499 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
11500
11501         * .version: increased version number to 2.4.2,
11502
11503         Cumulative patch for pic16 port
11504         * src/pic16/device.c: changed scheme to dump initial values for
11505         variables in idata segment, all print_idata* functions were removed,
11506         now the pic16_printIval* will be called,
11507         * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
11508         * _pic16_printPointerType, pic16_printPointerType,
11509         * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
11510         * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
11511         NEW, similar to the respective functions in SDCCglue.c,
11512         * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
11513         way, emitting hex bytes,
11514         * (pic16_emitDS): NEW, emits a string for pointer initialisation,
11515
11516 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11517
11518         * src/avr/ralloc.c (serialRegAssign),
11519         * src/xa51/ralloc.c (serialRegAssign),
11520         * src/pic/ralloc.c (serialRegAssign),
11521         * src/pic16/ralloc.c (serialRegAssign),
11522         * src/hc08/ralloc.c (serialRegAssign),
11523         * src/z80/ralloc.c (serialRegAssign),
11524         * src/ds390/ralloc.c (serialRegAssign),
11525         * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
11526
11527 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11528
11529         * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
11530         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
11531
11532 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
11533
11534         Cumulative patch for pic16 port:
11535         * src/pic16/device.h (typedef PIC16_device) modified fields for
11536         defining microcontrollers,
11537         * src/pic16/device.c: added new info for all devices in Pics16 array,
11538         * src/pic16/gen.c (genPcall): fixed bug that caused the return label
11539         to be optimised out by the pCode optimiser,
11540         * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
11541         specially, bug reported by G.M. Gallant,
11542         * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
11543         as force'd so that cannot be optimised out by pCode optimiser,
11544         * src/pic16/pcode.c,
11545         * src/pic16/pcodepeeph.c,
11546         * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
11547         they are disabled by default, but can be enabled explicit with
11548         command argument --denable-peeps, for testing,
11549         * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
11550         --pomit-ivt in COMPILE_FLAGS
11551
11552 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
11553
11554         * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
11555           compilation on MSVC
11556
11557 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
11558
11559         * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
11560
11561 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11562
11563         device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
11564         0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
11565
11566 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
11567
11568         * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
11569         would only assign 0x300001 register.
11570
11571 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
11572
11573         * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
11574         in COMPILE_FLAGS. Thanks to G. Gallant for report.
11575
11576 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11577
11578         * doc/sdccman.lyx: minor changes, mentioned beta vendor support
11579         for ds80c400
11580         * src/mcs51/peeph.def: ran unexpand -a over peeph.def
11581         * src/mcs51/peeph.def: removed obsolete peephole 100.a,
11582         added peephole 254 (left shift), 255 (jump table)
11583
11584 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
11585
11586         * device/lib/Makefile.in: removed comment line with model-pic16,
11587         * (target port-specific-objects-pic16): the libraries and objects
11588         are copied to the build directory form the device/lib/pic16/bin
11589         directory
11590
11591         Cumulative patch concerning pic16 port:
11592         * library directory has been re-organized,
11593         * added support for PIC18F1220,
11594         * added headers and library sources for chips 18f1220,18f6520,
11595         18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
11596
11597         * configuration registers setting has changed, now each supported
11598         device has a complete description of the registers it uses,
11599         * all initialisations are moved to idata sections, these section
11600         can be absolute or relocatable,
11601         * fixed initialisation of codespace variables,
11602         * fixed warning about PCLATU and gpsim,
11603         * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
11604         * (genAssign): use table reads when assigning from variables in codespace,
11605         * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
11606         char/int variables placed in codespace,
11607         * (pic16_emitConfigRegs): NEW, emits a list with configuration
11608         registers set in .asm file, no need for --pomit-config-words anymore,
11609         * (pic16glue): some 8051 legacy segments are commented out
11610         (to be removed completely),
11611         * added support for alternative assembler and linker with --asm=
11612         and --link= command line arguments,
11613         * peepholes are disabled automatically in the port, no need to
11614         specify on command line,
11615         * port supports natively char/int/long multiplication, but converts
11616         all divisions to support functions,
11617         * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
11618         to the file set in variable $2,
11619         * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
11620         strings in ASCII format and not in hex,
11621         * ralloc.c (serialRegAssign): added a triplet of conditional calls
11622         to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
11623         allocate proper register if iCodes aren't temporary,
11624
11625 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
11626
11627         * support/regression/tests/zeropad.c: added TEST_G macro for alpha
11628
11629 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
11630
11631         * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
11632         is commented out
11633
11634 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11635
11636         * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
11637         computed address is reused
11638         * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
11639         multi-byte bitfields
11640
11641 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
11642
11643         * src/z80/gen.c: (genArrayInit): must check for pointers too
11644
11645 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
11646
11647         * support/regression/tests/zeropad.c: never meant to commit the
11648           nestedstruct test: removed, added check for GCC version
11649
11650 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
11651
11652         * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
11653         * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
11654         * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
11655           printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
11656           bugs 928906 and 954082 half-empty initializers
11657         * src/SDCCsymt.h,
11658         * src/SDCCsymt.c (getAllocSize): added for above fix
11659         * src/z80/gen.c (genArrayInit): fixed bug 741044
11660         * support/regression/tests/zeropad.c: added tests
11661
11662 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
11663
11664         * src/pic16/device.c (pic16_dump_section): corrected bug which
11665         caused some symbols of the libraries to be misplaced
11666
11667 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
11668
11669         * src/pic16/glue.c,
11670         * src/pic16/ralloc.h,
11671         * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
11672         to fix conflict with pic port
11673
11674 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
11675
11676         * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
11677         externs configuration variables,
11678         * src/pic16/ralloc.h,
11679         * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
11680         prototype in header, commented out some debug messages
11681
11682 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
11683
11684         * src/pic16/glue.c,
11685         * src/pic16/main.c,
11686         * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
11687         for gpasm COFF object generation. Thanks to D. Hawkins for
11688         his patch info
11689
11690 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11691
11692         * src/ds390/main.c,
11693         * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
11694         Brock for spotting this)
11695         * src/ds390/gen.c (genEndFunction),
11696         * src/mcs51/gen.c (genEndFunction): always save psw if function is an
11697         interrupt handler and critical. Disable push/pop optimizations when
11698         peephole optimizations disabled.
11699
11700 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
11701
11702         Updated pic16 library sources and headers.
11703         * device/lib/pic16/pic18f*/ ,
11704         * device/include/pic16/*.h: modified to handle structured SFR
11705         definitions
11706
11707 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
11708
11709         * src/port.h (PORT structure): added hook initPaths, now each
11710         port can declare its own default search paths,
11711         which can been seen with the --print-search-dirs option,
11712         see pic16 port for example,
11713         * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
11714         setDataPaths): test to options.printSearchDirs is ifdef'ed out,
11715         * (doPrintSearchDirs): NEW, replaces in a central manner the
11716         printing of search dirs which was split in set*Paths functions,
11717         * (main): added call to port->initPaths and doPrintSearchDirs,
11718         * src/avr/main.c,
11719         * src/ds390/main.c,
11720         * src/hc08/main.c,
11721         * src/izt/i186.c,
11722         * src/izt/tlcs900h.c,
11723         * src/mcs51/main.c,
11724         * src/pic/main.c,
11725         * src/pic16/main.c: modified port structures to reflect addition of
11726         initPaths hook,
11727
11728         * src/pic16/device.c (regCompare): registers are finally sorted by name,
11729         * (pic16_dump_section): for registers in same address reserve memory once,
11730         * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
11731         to no_banksel,
11732         * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
11733         result is greater in size than right or left,
11734         * (pic16_genUMult8X8_8): there are some cases where the result can
11735         be 16 bits size, so handle these,
11736         * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
11737         * (pic16_outBitC): modified to emit pcodes,
11738         * (pic16_storeForReturn): using is_LitOp to see if operand is literal
11739         or not,
11740         * (genDivOneByte): implemented algorithm to divide 8-bits,
11741         * (genCmp): uncommented goto, but issues still exist,
11742         * (genAnd): fixed a bug with variables >8bits,
11743         * (genPackBits): optimization added that uses BCF/BSF to change a
11744         single bit,
11745         * (genAssign): fixed bug when assigning floating point literals,
11746         * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
11747         __sdcc_gsinit_startup label,
11748         * src/pic16/main.c (_pic16_init): removed search directory
11749         initialisations,
11750         * (_pic16_initPaths): NEW, used to initialise search directories,
11751         * (_hasNativeMulFor): support functions for all except char/int
11752         multiplication, and char division,
11753         * (PIC16_port struct): modified entry for native mul support,
11754         * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
11755         no_banksel option,
11756         * (buildCallTree): call to register_usage is ifdef'ed out,
11757
11758 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11759
11760         * device/include/string.h: applied Stas Sergeev's patch to make this
11761         header file compatible with the preprocessor -Wundef option
11762         * src/SDCCmain.c (main): abort compilation if preprocessor reports
11763         failure (fixes bug #941458)
11764
11765 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11766
11767         * src/SDCCopt.c (killDeadCode): fixed bug #907733
11768         * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
11769         that the variable, not the function, should be static
11770         * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
11771         to be consistent with non-literal case
11772
11773 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11774
11775         * src/SDCCast.c (isConformingBody): fixed bug #949967
11776         * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
11777         convilong): fixed bug #952086
11778
11779 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11780
11781         * src/SDCCmem.c (allocVariables): fixed bug #955321
11782
11783 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11784
11785         * src/hc08/main.c (_hc08_genAssemblerEnd),
11786         * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
11787         dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
11788         completely eliminated the use of a temporary file
11789         * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
11790         when more than one file linked
11791         * src/SDCCloop.c (pointerAssigned): fixed bug #954163
11792
11793 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11794
11795         * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
11796         which fixes bug #543481
11797         * support/regression/tests/bug-751703.c: fixed comments left from a
11798         cut and paste error
11799         * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
11800         * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
11801         * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
11802         scopes
11803         * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
11804         * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
11805         are now changed to underscores in moduleName
11806
11807 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11808
11809         * as/mcs51/lkmem.c: better fix for bug #954173
11810
11811 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
11812         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11813
11814         * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
11815         * device/include/c8051f000.h,
11816         * device/include/c8051f120.h,
11817         * device/include/c8051f300.h,
11818         * device/include/c8051f310.h,
11819         * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
11820         PWM16) and detab'ed
11821
11822 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11823
11824         * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
11825         and mailing lists, doc'ed --no-peep-comments, removed reference
11826         to knoppix (newest version has no LyX/LaTeX), other minor changes
11827         * src/SDCCglue.c (glue): save 2 bytes stack space with
11828         option --main-return. The ljmp could probably be avoided too
11829
11830 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11831
11832         * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
11833
11834 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11835
11836         * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
11837         * src/SDCCopt.c (isLocalWithoutDef),
11838         * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
11839         which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
11840         (credit to Maarten Brock for patch #949363, on which this is based)
11841         * support/regression/tests/bug-751703.c: some test cases of extern used
11842         within inner scopes.
11843
11844 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11845
11846         * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
11847         SPEC_STRUCT
11848         * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
11849         struct definitions
11850         * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
11851         dwWriteLabel): fix to create valid debugger symbols even when
11852         the module name has non-alphanumeric symbols in it
11853         * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
11854         when a variable's allocation has been optimized away
11855
11856
11857 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11858
11859         * src/hc08/gen.c (hc08_emitDebuggerSymbol),
11860         * src/hc08/main.c,
11861         * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
11862         * src/mcs51/main.c,
11863         * src/ds390/gen.c (ds390_emitDebuggerSymbol),
11864         * src/ds390/main.c,
11865         * src/z80/gen.c (z80_emitDebuggerSymbol),
11866         * src/z80/main.c,
11867         * src/pic/gen.c (pic14_emitDebuggerSymbol),
11868         * src/pic/main.c,
11869         * src/pic16/gen.c (pic14_emitDebuggerSymbol),
11870         * src/pic16/main.c,
11871         * src/avr/gen.c (avr_emitDebuggerSymbol),
11872         * src/avr/main.c,
11873         * src/xa51/gen.c (xa51_emitDebuggerSymbol),
11874         * src/xa51/main.c,
11875         * src/SDCCdebug.c (emitDebuggerSymbol),
11876         * src/SDCCdebug.h,
11877         * src/port.h: added a debugger struct to the port struct. Added a
11878         callback for defining debugger symbols
11879
11880         * src/SDCCast.c (createLabel),
11881         * src/SDCC.y (labeled_statement): mark all compiler generated labels
11882         with isitmp = 1
11883         * src/SDCCicode.h,
11884         * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
11885         iCode back to the ast for the function
11886
11887         * src/hc08/ralloc.c (hc08_assignRegisters),
11888         * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
11889         unneeded fields from the regs struct.
11890         * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
11891         pushReg() & pullReg() functions instead of emitcode()
11892
11893         * src/hc08/gen.c (genLabel, genhc08Code),
11894         * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
11895
11896         * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
11897         debugger hooks
11898
11899         * src/hc08/gen.c (genEndFunction, genhc08Code),
11900         * src/hc08/gen.h,
11901         * src/mcs51/gen.c (genEndFunction, gen51Code),
11902         * src/mcs51/gen.h,
11903         * src/ds390/gen.c (genEndFunction, gen390Code),
11904         * src/ds390/gen.h,
11905         * src/z80/gen.c (genEndFunction, genZ80Code),
11906         * src/z80/gen.h,
11907         * src/z80/z80.h,
11908         * src/pic/gen.c (genEndFunction, genpic14Code),
11909         * src/pic/gen.h,
11910         * src/pic16/gen.c (genEndFunction, genpic16Code),
11911         * src/pic16/gen.h,
11912         * src/avr/gen.c (genEndFunction, genAVRCode),
11913         * src/avr/gen.h,
11914         * src/xa51/gen.c (genEndFunction, genXA51Code),
11915         * src/xa51/gen.h,
11916         * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
11917         specific code to cdbFile.c and out of the backend code generators
11918
11919         * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
11920         * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
11921         starting address is now 0
11922
11923         * as/hc08/asm.h,
11924         * as/hc08/m08pst.c,
11925         * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
11926         assembler directive for DWARF support
11927         * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
11928
11929         * src/src.dsp,
11930         * src/Makefile.in,
11931         * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
11932
11933 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11934
11935         * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
11936         and inappropriate peephole optimization in jump tables
11937
11938 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11939
11940         * as/hc08/m08pst.c,
11941         * src/SDCCglue.c: sdccopt works for the hc08 port now
11942
11943 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
11944
11945         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
11946
11947 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11948
11949         * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
11950
11951 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11952
11953         * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
11954         rules
11955         * src/SDCCmain.c,
11956         * src/SDCCglobl.h,
11957         * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
11958         comments from the peephole optimizer replacement rules
11959         * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
11960         symbols
11961         * src/SDCCcse.c (updateSpillLocation),
11962         * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
11963         equivalents
11964         * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
11965         * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
11966         objects far pointers
11967
11968 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11969
11970         * src/SDCCsymt.h: a missing part of my last change
11971         * src/pic/ralloc.c (regTypeNum),
11972         * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
11973
11974 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11975
11976         * src/SDCCicode.h,
11977         * src/SDCCicode.c (aggrToPtrDclType),
11978         * src/SDCCptropt.h,
11979         * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
11980         ptrPseudoSymConvert),
11981         * src/pic/ralloc.c (regTypeNum),
11982         * src/pic16/ralloc.c (regTypeNum),
11983         * src/hc08/ralloc.c (regTypeNum),
11984         * src/ds390/ralloc.c (regTypeNum),
11985         * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
11986         creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
11987
11988 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11989
11990         * link/z80/lkmain.c (afile),
11991         * as/hc08/lkmain.c (afile),
11992         * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
11993         prevent a pointer problem when a filename has no directory and
11994         no extension specified.
11995
11996 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11997
11998         * link/z80/lkmain.c (afile): allow periods in directory names
11999         * link/z80/lkmain.c (afile),
12000         * as/mcs51/lkmain.c (afile),
12001         * as/hc08/lkmain.c (afile): allow linker script file to have an
12002         extension other than ".lnk"
12003         * link/z80/lklex.c (getfid),
12004         * link/z80/lkmain.c (parse),
12005         * as/mcs51/lklex.c (getfid),
12006         * as/mcs51/lkmain.c (parse),
12007         * as/hc08/lklex.c (getfid),
12008         * as/hc08/lkmain.c (parse): Support comments in the linker script
12009         file on lines by themselves and after filenames
12010
12011 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12012
12013         * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
12014
12015 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12016
12017         * src/z80/peeph-z80.def: removed some peephole rules that don't
12018         work with multibyte arithmetic (fixed bug #937126)
12019         * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
12020         to registers and not global variables
12021         * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
12022         geniCodePreInc, geniCodePostDec, geniCodePreDec,
12023         geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
12024         checking for assignments not internally generated (fixed bug #931895)
12025         * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
12026         structure member (fixed bug #930072)
12027
12028 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12029
12030         * src/SDCCmain.c (linkEdit),
12031         * src/hc08/main.c (_hc08_parseOptions),
12032         * as/hc08/Makefile.in,
12033         * as/hc08/aslink.h,
12034         * as/hc08/asm.h,
12035         * as/hc08/m08pst.c,
12036         * as/hc08/lkrloc.c (relr, rele),
12037         * as/hc08/lkarea.c (lnkarea)
12038         * as/hc08/lkmain.c (afile, parse),
12039         * as/hc08/lkelf.c: support for ELF output
12040         * as/hc08/lks19.c (s19),
12041         * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
12042
12043 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12044
12045         * as/mcs51/lkihx.c: Fixed bug #899105.
12046
12047 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12048
12049         * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
12050         .dsp files from Unix to DOS.
12051
12052 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12053
12054         * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
12055         function pointers; we have been compliant for several months now.
12056         * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
12057         change that was accidently commented out
12058         * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
12059         genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
12060         bug #922319
12061
12062 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12063
12064         * src/hc08/gen.c: output of all of the internal debugging information
12065         is now controlled by the D() macro; it is disabled by default
12066
12067 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12068
12069         * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
12070         harder to keep the same registers during a CAST iCode
12071         * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
12072         long via int can be done in a single cast, if the signedness is
12073         correct.
12074         * support/regression/tests/bug-927659.c: fixed to avoid conflict with
12075         putchar() in tinibios.c in ds390's library
12076
12077 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
12078
12079         * src/SDCCast.c (decorateType): fixed bug #898889,
12080         cast result of a literal complement too
12081         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
12082         fixed check for bitfields
12083
12084 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
12085
12086         * src/SDCCicode.c (geniCodeLogic): made it static,
12087         (geniCodeLogicAndOr): added in order to fix bug #905492,
12088         (ast2iCode): fixed bug #905492
12089         * support/regression/tests/bug-905492.c: added
12090         * src/SDCCast.c (decorateType): don't decorate/process parms twice,
12091         (processParms): fixed bug #927659: don't copy parms, this will clear
12092         decorated flag
12093         * support/regression/tests/bug-927659.c: added
12094
12095 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
12096
12097         * src/SDCCast.c (addCast): don't cast float to char
12098         * device/lib/libsdcc.lib: added _memmove
12099
12100 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
12101
12102         * device/lib/large/Makefile: fixed parallel execution by
12103         replacing `make` by `$(MAKE)`
12104
12105 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12106
12107         * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
12108         offsets (fixes bug #923936)
12109
12110 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
12111
12112         * device/lib/small/Makefile: fixed parallel execution by
12113         replacing `make` by `$(MAKE)`
12114
12115 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
12116
12117         * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
12118
12119 2004-03-23  Scott Dattalo  <scott AT dattalo.com>
12120
12121         * src/pic/gen.c (genCpl): multi-byte complements were not working.
12122         * src/regression/Makefile: Regression test was not running.
12123
12124 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
12125
12126         * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
12127         complement if possible
12128         * src/SDCCval.c (valComplement),
12129         * src/SDCCicode.c (operandOperation): fixed complement of literal
12130         * support/regression/tests/onebyte.c (testComplement): added
12131
12132 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
12133
12134         * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
12135         return an optimized tree; actually replace actParm with the new tree
12136         * src/SDCCast.h: added some parantheses to remove side effects
12137         * support/regression/tests/bug-920866.c
12138
12139 2004-03-21  Scott Dattalo  <scott AT dattalo.com>
12140         * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
12141         Bit operands were not being handled properly in the pic14 port.
12142         (now src/regression/add.c passes again).
12143
12144 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12145
12146         * src/SDCC.y (labeled_statement): case and default no longer require
12147         a following statement (RFE #893037)
12148
12149 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12150
12151         * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
12152         use MOVA macro to avoid "mov a,acc" when peephole optimizer is
12153         disabled (fixes bug #916294)
12154         * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
12155         "mov a,acc"; patch provided by Lenny Story
12156         * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
12157
12158 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12159
12160         * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
12161         functions
12162         * src/ds390/gen.c (genFunction, genEndFunction),
12163         * src/ds390/ralloc.c (ds390_assignRegisters),
12164         * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
12165         * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
12166         pushed if there are parameters passed on the stack. Also, a cleaner
12167         way to decide if r0/r1 should be pushed/popped. (Together they fix
12168         bug #918693)
12169
12170 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12171
12172         * doc/sdccman.lyx,
12173         * device/lib/mcs51/crtpagesfr.asm,
12174         * device/lib/mcs51/crtxinit.asm,
12175         * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
12176         to avoid confusion with Si Lab's SFRPAGE register.
12177
12178 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12179
12180         * src/SDCCglue.c (emitMaps): allow public sfr variables
12181         * src/SDCCglue.c (initialComments): include compiler build date
12182         with compiler version and put the timestamp of the generated
12183         assembly file on a serperate line to be less confusing.
12184         * src/port.h: added genInitStartup hook
12185         * src/avr/main.c,
12186         * src/ds390/main.c,
12187         * src/hc08/main.c,
12188         * src/pic/main.c,
12189         * src/pic16/main.c,
12190         * src/xa51/main.c,
12191         * src/z80/main.c: genInitStartup initialize as NULL (default to
12192         historical behaviour)
12193         * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
12194         * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
12195         _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
12196         library instead of hard coding it into the compiler.
12197         * support/regression/ports/mcs51-stack-auto/spec.mk,
12198         * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
12199         * device/lib/mcs51/Makefile,
12200         * device/lib/small/Makefile,
12201         * device/lib/large/Makefile,
12202         * device/lib/mcs51/crtpagesfr.asm,
12203         * device/lib/mcs51/crtstart.asm,
12204         * device/lib/mcs51/crtxclear.asm,
12205         * device/lib/mcs51/crtxinit.asm,
12206         * device/lib/mcs51/crtclear.asm,
12207         * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
12208         startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
12209         and into user configurable files.
12210         * device/lib/clean.mk: clean mcs51 directory too
12211         * support/regression/tests/longlit.c: added static to T1 declaration
12212         * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
12213         accesses in the initialization code
12214
12215 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12216
12217         * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
12218         OSCTRIMVAL as noted in bug #916008
12219
12220 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12221
12222         * src/SDCCloop.c (basicInduction): fixed bug with loop induction
12223         in loops with multiple exits (reported as incorrect registers
12224         used by Martin Helmling in Sdcc-user list)
12225
12226 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12227
12228         * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
12229         made ds390 register extensions look less like error messages
12230
12231 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12232
12233         * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
12234         reported by Adam Wozniak in Sdcc-user list
12235
12236 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
12237
12238         * src/SDCCast.c (decorateType): fixed with bug and promotion in
12239         arithmetic optimizations, added debug output
12240
12241 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
12242
12243         * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
12244         * sdcc.spec: updated and split sdcc into 3 rpms
12245         * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
12246         needed for literals of LEFT_OP and '+'
12247         * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
12248         introduced RESULT_TYPE_NOPROM
12249         (geniCodeMultiply): fixed logic for decision if mul is optimized to
12250         left shift
12251         * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
12252         limited promotion to int only for '*'
12253         * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
12254
12255 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
12256
12257         * src/pic16/gen.c (genSkip),
12258         (genc16bit2lit), (gencjneshort): commented out
12259         (is_LitOp): new helper function, checks operand type
12260         (genCmpEq): rewritten
12261
12262 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
12263
12264         * support/regression/tests/bug-908454.c: added
12265
12266 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
12267
12268         * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
12269         * src/SDCCicode.c (usualBinaryConversions): op needs int type
12270         (geniCodeCast): cosmetic, don't preserve bit storage class
12271         (geniCodeLeftShift): added promotion
12272         (geniCodeLogic): fixed regression
12273         * src/SDCCsymt.c (computeTypeOr): accept bits too
12274         (compareType): 2nd part of fix for bug #908454, needed for bitfields
12275
12276 2004-03-07  Borut Razem <borut.razem AT siol.net>
12277
12278         * support/Util/findme.c: alloca() replaced with malloc()/free() pair
12279
12280 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
12281
12282         * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
12283         version of pic16_genPackRegisters which does not check if ic is a
12284         CAST operator,
12285         * src/pic16/gen.c (ifxForOp): disabled new and untested code in
12286         function cause string1.c regression test fails
12287
12288 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
12289
12290         * sim/ucsim/configure.in,
12291         * sim/ucsim/configure,
12292         * sim/ucsim/doc/Makefile.in: use docdir
12293         * src/SDCC.y: fixed sbit atrributes
12294         * src/SDCCast.c (getResultTypeFromType): added support for bitfields
12295         * src/SDCCast.c (decorateType): |^& need special promotion handling
12296         * src/SDCCast.h,
12297         * src/SDCCsymt.h: moved definition of RESULT_TYPE
12298         * src/SDCCsymt.h (computeType),
12299         * src/SDCCicode.c: computeType() needs op
12300         * src/SDCCsymt.c (checkTypeSanity),
12301         * doc/sddman.lyx: "plain" bitfields are unsigned
12302         * src/SDCCsymt.c (computeTypeOr): added
12303         * src/SDCCsymt.c (computeType): added support for bitfields, fixed
12304         |^& ops
12305         * src/SDCCval.c (val*): computeType() needs op
12306         * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
12307         * support/regression/tests/onebyte.c: added tests for |^&
12308
12309 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
12310
12311         * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
12312         for writing icode into asm output.
12313
12314 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
12315
12316         * src/pic16/device.c: added some debug lines enabled
12317         with macro DEBUG_CHECK,
12318         * src/pic16/genarith.c: more debug in genPlus,
12319         * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
12320         * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
12321         * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
12322         * (aopForSym): onStack symbols are re-placed in data memspace,
12323         and onStack flag is cleared,
12324         * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
12325         copy temporary pcodeop,
12326         * (genPcall): added warning for not updating PCLATU,
12327         * (genFunction): removed test with IFFUNC_CALLEESAVES, its
12328         always true for pic16 port,
12329         * (genMultOneWord): NEW, supports integer multiplication,
12330         * (genMult): modified to call genMultOneWord,
12331         * (ifxForOp): added warning when return NULL,
12332         * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
12333         flag is set before call to operandFromSymbol for implicit
12334         added structures,
12335         * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
12336         options.intlong_rent are set by default,
12337         * (_hasNativeMulFor): modified to allow port generation of integer
12338         multiplication,
12339         * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
12340         set regtype to REG_SFR for all registers, restricting seting the
12341         accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
12342
12343 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12344
12345         * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
12346         more than 500 times in the regression tests
12347
12348 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12349
12350         * support/Util/SDCCerr.h,
12351         * support/Util/SDCCerr.c,
12352         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
12353         enumerator_list),
12354         * src/SDCCsymt.c (addSymChain): show location of oriignal definition
12355         for symbol conflicts.
12356         * support/valdiags/tests/enum.c,
12357         * support/valdiags/tests/tentdecl.c,
12358         * support/valdiags/tests/struct.c: expect possible error messages
12359         referring to original symbol definitions.
12360         * src/SDCC.y (struct_or_union_specifier, struct_declarator),
12361         * src/SDCCsymt.h,
12362         * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
12363
12364 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
12365
12366         * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
12367
12368 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
12369
12370         * src/pic16/ralloc.c (newReg): fixed bug #908929
12371
12372 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12373
12374         * src/ds390/gen.c: added missing #include "main.h"
12375
12376 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
12377
12378         * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
12379         checking if symbol is already in set,
12380         * src/pic16/device.h: prototype for checkAddSym,
12381         * src/pic16/gen.c: (_G): added entry interruptvector,
12382         * (assignResultValue): removed some commented out lines,
12383         * (genFunction): check for ISR via sym->type, absolute section for
12384         interrupt code is created via a new pBlock, the goto instruction is
12385         placed now correctly at the interrupt vector position, changed all
12386         references from ivec to _G.interruptvector,
12387         * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
12388         is the interrupt is a high priority one, same for return from ISR,
12389         * src/pic16/glue.c: changed all calls of addSetHead for publics and
12390         externs to calls of checkAddSym,
12391         * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
12392         pic16_pcode_verbose flag is set,
12393         * src/pic16/pcode.h: extern to pic16_pcode_verbose,
12394         * src/pic16/pcoderegs.c: message about how many registers are saved
12395         will only be emitted if pic16_pcode_verbose flag is set,
12396
12397 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12398
12399         * src/ds390/ralloc.h,
12400         * src/ds390/ralloc.c (ds390_regWithIdx),
12401         * src/ds390/gen.c (emitcode),
12402         * src/ds390/main.h,
12403         * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
12404         ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
12405         ds390operandCompare, getRegsRead, getRegsWritten,
12406         initializeAsmLineNode): customized instruction size calculation for
12407         ds390, started basis for some register optimizations
12408         * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
12409         corresponding assembly output
12410         * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
12411         missing push/pop of r0/r1. Optimized push/pops
12412
12413 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12414
12415         * src/mcs51/main.c (instructionSize): fixed ACALL size
12416         * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
12417
12418 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
12419
12420         * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
12421         the sorting of rlist with NULL elements
12422         * (print_idataType, print_idata): NEW to create idata sections
12423         * src/pic16/device.h: idataSymSet new variable
12424         * src/pic16/gen.c (genFunction): fixed some bugs in string
12425         comparing, improved the absolute section creation for ISRs,
12426         added FSR0L/FSR0H in registers that are saved in an ISR,
12427         * (genInline): fixed the processing of inline snippets,
12428         now they undergo no process by the peephole optimizer
12429         * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
12430         are placed in idataSymSet,
12431         * (pic16emitStaticSeg): extern symbols are added in externs,
12432         * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
12433         switching when aboslute variables are placed in access bank memory
12434         * (pic16_writeUsedRegs): added call to pic16_dump_idata,
12435         * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
12436         commented out with #if,
12437         * (pic16_packRegisters): reintroduce the check for CAST because some
12438         symbols are not correctly handled,
12439         * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
12440         pCodeInstruction instead of pCode,
12441         * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
12442         pCodeAsmDir definition,
12443         * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
12444         directive, then the argument directive is emitted without the leading
12445         tab, hack for inline labels which must be in the first column,
12446         * (compareLabel,pic16_findNextInstruction),
12447         * (pic16_findPrevInstruction): added case for PO_ASMDIR,
12448         * (insertBankSwitch): modified for the new pCodeAsmDir,
12449
12450 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
12451         patch applied by Vangelis Rokas <vrokas AT otenet.gr>
12452
12453         * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
12454         instance,
12455         * (pushSide): commented out with #if,
12456         * (assignResultValue): fixed some typos in saving
12457         registers,
12458         * (genPcall): FIXED and sync'ed with genCall,
12459         * (genDataPointerGet,genDataPointerSet): using offset not leoffset
12460         * (genNearPointerGet): fixed to handle some more cases,
12461         implementation scheme via table reads,
12462         * (genConstPointerGet): modified to access code memory correct,
12463         * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
12464         and improved to handle some cases
12465         * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
12466         instead of "RETLW" for init data
12467         * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
12468         not IN_DIRSPACE, work around to reduce bank switching when aboslute
12469         variables are placed in access bank memory (<0x80 and >=0xf80),
12470         * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
12471         TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
12472         TBLWT_POSTDEC,TBLWT_PREINC
12473         * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
12474         * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
12475         directives
12476         * (pic16_pCodeConstString): use "DB" instead of "RETLW"
12477         * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
12478         pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
12479         * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
12480
12481 2004-02-29  Borut Razem <borut.razem AT siol.net>
12482
12483         * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
12484         support/Util/findme.h, support/Util/system.h: enhance binary relative
12485         search for lib and include by using findProgramPath()
12486
12487 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12488
12489         * src/SDCCpeeph.h,
12490         * src/SDCCpeeph.c (pcDistance),
12491         * src/port.h,
12492         * src/mcs51/ralloc.h,
12493         * src/mcs51/ralloc.c (mcs51_regWithIdx),
12494         * src/mcs51/main.h,
12495         * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
12496         mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
12497         mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
12498         size calculation port specific, started basis for some register
12499         optimizations
12500         * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
12501         missing push/pop of r0/r1. Optimized push/pops
12502         * src/mcs51/ralloc.c (packregisters): fixed bug #727095
12503         * device/lib/_modsint.c (_modsint),
12504         * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
12505         and stack version so regression tests pass
12506
12507 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
12508
12509         * src/Makefile.in (dep): include SLIBOBJS in dependency check
12510         * src/SDCCast.c (decorateType): catch another small optimization
12511         with '?' operator
12512         * src/SDCCsymt.c (computeType): added comments and cosmetic changes
12513         * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
12514         modified to finally use computeType() all over SDCC,
12515         see Feature Request #877103
12516         * src/SDCCval.h: cosmetic
12517         * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
12518         valCompare(); regression tested in muldiv.c
12519         * support/regression/tests/muldiv.c (testMod): mod sign follows
12520         dividend only
12521
12522 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
12523
12524         * src/SDCCast.c (decorateType): fixed bug #902362
12525         * doc/INSTALL.txt: fixed install instructions for win32
12526
12527 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
12528
12529         * device/include/Makefile.in (install): fixed by replacing spaces
12530         by tabs
12531         * doc/README.txt,
12532         * doc/INSTALL.txt: updated for release
12533         * doc/sdccman.lyx: added warning for --xstack being buggy
12534
12535 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
12536
12537         * src/pic16/ralloc.c (packRegsForAccUse):  disabled functions with #if
12538         to eliminate build warnings.
12539         * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
12540
12541 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
12542            Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
12543
12544         * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
12545         removed -penable-stack, added comment for stack pragma, added
12546         warning for not initializing the stack/frame registers, removed
12547         comment at interrupts section
12548
12549         Stack is made permanent, there is no ability to disable stack usage.
12550         * src/pic16/device.h,
12551         * src/pic16/device.c: removed all references to USE_STACK macro,
12552         * src/pic16/device.c (pic16_dump_section): when no elements in
12553         rlist, free rlist before return,
12554         * (pic16_dump_int_registers): NEW, internal registers are a new set
12555         of general purpose registers reused by each function,
12556         * (checkAddReg): returns 1 if registers is added to set,
12557         * (pic16_groupRegistersInSection): when a registers is of type
12558         PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
12559         * src/pic16/device.h: memRange and Assigned Memory are deleted,
12560         SRCASECMP macro is moved here from device.c
12561         * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
12562         PO_PCLATU, PO_PRODL, PO_PRODH,
12563         * (pic16_pCodeOpType, genMinus,
12564         changed compares to "a" register, with AOP_ACC,
12565         * (pic16_genPlus): fixed some bugs and indented properly,
12566         * (pic16_addSign): changed size to size+offset in the MOVWF
12567         instruction,
12568         * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
12569         multiply 8-bit operand by literal, result is 8-bit,
12570         * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
12571         multiply 2 8-bit operand, result is 8-bit,
12572         * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
12573         genUMult8X*_16,
12574         * src/pic16/gen.c: changed accUse to contain WREG only,
12575         * (pic16_emitcomment): renamed to pic16_emitpcomment,
12576         * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
12577         true, do not use immediate addressing any more unless sym is a
12578         pointer in codespace,
12579         * (aopForRemat): do not use immediate addressing when symbol not in
12580         codespace and when symbol's address is requested,
12581         * (aopOp): for-loop in if(sym->accUse) is modified for the new
12582         accUse size (= 1),
12583         * (aopGet): added case for AOP_ACC and don't return "accumulator
12584         bug" but WREG instead,
12585         * (popGetTempReg): pushes contents of temporary register in stack,
12586         * (popReleaseTempReg): pops contents of temporary register from
12587         stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
12588         * (pic16_popGet): separated case AOP_ACC to return register WREG
12589         from processor registers, AOP_PCODE not checks if pcop is PO_DIR
12590         or PO_IMMEDIATE and initializes their instance/offset appropriately,
12591         * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
12592         the use of immediate pointers to certain cases only.
12593
12594         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
12595         * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
12596         * (assignResultValue, genCall, genRet): modified to use the new
12597         function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
12598         genPcall is still broken,
12599         * (genFunction): added code to create 'A' type pBlocks when
12600         interrupt functions are generated, code not extensively tested yet,
12601         ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
12602         * (genEndFunction): modified so ISRs pop stored registers from stack,
12603         * (genMultOneByte): cleanup,
12604         * (AccRsh): added flag andmask, to and result with appropriate mask,
12605         * (genUnpackBits,genPackBits): fixed and can handle bit fields,
12606         * (genDataPointerGet): fixed and reenabled its use,
12607         * (genNearDataPointerGet): bugs fixed,
12608         * (genDataPointerSet): bugs fixed,
12609         * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
12610         pic16_DumpSymbol, pic16_DumpOp,
12611         * src/pic16/genutils.h: function prototypes for the above functions,
12612         * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
12613         pointers,
12614         * (pic16emitRegularMap): many many many improvements, but needs a
12615         major cleanup,
12616         * src/pic16/main.c: enable_stack in pic16_options is removed,
12617         * (_pic16_parseOptions): removed command line options -penable-stack,
12618         * (_process_pragma): emit stack symbol only when stack pragma is
12619         processed,
12620         * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
12621         redirected to FSR0L/FSR0H pair,
12622         * (pic16_get_op, pic16_get_op2): modifications and improvements,
12623         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
12624         cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
12625         for immediates,
12626         * (insertBankSwitch): modified to handle cases like: (alfa + 1)
12627         * (dumpPicOptype): NEW,
12628         * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
12629         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
12630         with movff instruction,
12631         * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
12632         added pic16_int_regs, some packRegsFor* functions are commented out,
12633         because produce errors,
12634         * src/pic16/NOTES: minor modifications
12635
12636 2004-02-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12637
12638         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
12639         as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
12640         --pack-iram.
12641         * doc/sdccman.lyx: described options --stack-size and --pack-iram.
12642         * as/mcs51/lkaomf51.c: fixed bug #895763
12643
12644 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
12645
12646         * device/include/c8051f320.h: added. Contributed by Maarten Brock.
12647
12648 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12649
12650         * doc/sdccman.lyx: added details about the HC08 storage classes and
12651         interrupts, fixed the register usage info for z80 & gbz80
12652
12653 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
12654
12655         * doc/sdccman.lyx: added more pic16 port documentation
12656         * device/include/pic16/: added header pic18fregs.h
12657
12658 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
12659
12660         * doc/sdccman.lyx: added Vangelis' contribution
12661
12662 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12663
12664         * src/SDCClrange.c (rlivePoint): live range of SEND operand should
12665         extend to the next CALL or PCALL, not just to the next CALL.
12666
12667 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
12668
12669         * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
12670
12671 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12672
12673         * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
12674         bug #895752 and a better fix for bug #716790
12675
12676 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12677
12678         * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
12679
12680 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12681
12682         * doc/sdccman.lyx: minor changes, minor changed
12683
12684 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
12685
12686         * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
12687         which can't handle SDCC_NEWONEBYTEOPS,
12688         (geniCodeMultiply): removed conversion from mult to shift for pic14
12689         and pic16
12690
12691 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12692
12693         * src/hc08/gen.h,
12694         * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
12695         rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
12696         thus fixing bug #895406
12697
12698 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
12699
12700         * device/lib/_modsint.c,
12701         * device/lib/_modslong.c: sign follows divisor only
12702         * src/hc08/gen.c (genMultOneByte): if result size is 1,
12703         signs or signedness can be ignored
12704         * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
12705         * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
12706         added optimization for IFX,
12707         (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
12708         arguments;
12709         reenabled optimization for IFX, which was removed on 2004-01-11
12710         * src/SDCCast.h: added return type IFX
12711         * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
12712         arguments with 8 or 16 bit results; pic14 and pic16 ports use old
12713         promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
12714         SDCC_OLDONEBYTEOPS selects the old behaviour
12715         * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
12716         changed again and commented promotion rule
12717         * src/SDCCval.c (valDiv): promotion no longer necessary
12718         * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
12719         * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
12720         rewritten
12721         * support/regression/tests/onebyte.c: added
12722
12723 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
12724
12725         * gen.c (genInline): reverted to old code for assemnling inline
12726         code because of bug reported James Chadd
12727
12728 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
12729
12730         * ralloc.h: missing declarations from previous patch,
12731         seems that patch for ralloc.h was never applied, fixed
12732
12733 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
12734            patch committed by Vangelis Rokas <vrokas AT otenet.gr>
12735
12736         * pcode.c,
12737         * pcode.h,
12738         * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
12739         indirect addressing. Marked FSR0 as deprecated
12740         * gen.c (pointerCode): commented out, not needed now
12741         (pic16_popGet2p): new MOVFF helper function
12742         (genGenPointerGet),
12743         (genGenPointerSet): reimplemented with MOVFF and POSTINC0
12744         (shiftRLong): removed duplicate debugging info
12745
12746 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12747
12748         * src/ds390/gen.c (genNearPointerGet),
12749         * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
12750         optimization with bits, but not bitfields.
12751         * src/ds390/ralloc.c (packRegisters),
12752         * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
12753
12754 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
12755
12756         * src/SDCCcse.c (algebraicOpts): copy operands before modification
12757
12758 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12759
12760         * src/SDCCsymt.h,
12761         * src/SDCCicode.c (operandFromSymbol),
12762         * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
12763         * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
12764         * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
12765         * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
12766         * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
12767         * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
12768         bug #892038
12769         * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
12770         * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
12771         printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
12772         * src/SDCCsymt.c (newSymbol),
12773         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
12774         enumerator_list),
12775         * src/SDCCval.h,
12776         * src/SDCCval.c (newiList): fixed bug #885705
12777
12778 2004-02-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12779
12780         * doc/sdccman.lyx: added section 3.1.4: sdcclib.
12781         * as/mcs51/lkmem.c: report the size of the stack in .mem file.
12782
12783 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12784
12785         * device/include/c8051f120.h,
12786         * device/include/c8051f300.h,
12787         * device/include/c8051f310.h: added/updated header files for Silicon
12788         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
12789         * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
12790         in new section Submitting patches
12791
12792 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12793
12794         * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
12795         genFarPointerGet, genCodePointerGet, genGenPointerGet,
12796         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
12797         genGenPointerSet),
12798         * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
12799         genFarPointerGet, genCodePointerGet, genGenPointerGet,
12800         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
12801         genGenPointerSet),
12802         * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
12803         genFarPointerGet, genCodePointerGet, genGenPointerGet,
12804         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
12805         genGenPointerSet),
12806         * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
12807         genFarPointerGet, genCodePointerGet, genGenPointerGet,
12808         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
12809         genGenPointerSet): fixed bug #892400
12810         * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
12811         to eliminate build warnings.
12812         * src/SDCCast.c (processParms),
12813         * src/SDCC.y (function_declarator2, declarator2_function_attributes):
12814         fixed bug 751859
12815         * support/valdiag/valdiag.py: added GCC to the list of defines active
12816         when compiling with gcc
12817
12818 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12819
12820         * support/Util/SDCCerr.h,
12821         * support/Util/SDCCerr.c,
12822         * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
12823         with an incomplete type (fixed bug #883734)
12824         * src/SDCCicode.c (geniCodeCast): fixed bug #890510
12825
12826 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12827
12828         * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
12829
12830 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12831
12832         * src/SDCCast.c (decorateType),
12833         * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
12834         function pointer implementation
12835         * support/regression/tests/funptrs.c: added tests to verify both forms
12836         of function pointers work correctly. Added tests to verify parameters
12837         are passed in the correct order.
12838
12839 2004-02-06  Vangelis Rokas <vrokas AT otenet.gr>
12840
12841         * device.c (regCompare): registers are sorted by ascending
12842         address and increasing size,
12843         * main.c (_pic16_finaliseOptions): removed the declaration
12844         of compiler macro MCU. Now a macro of the format pic18fxxxx
12845         will be defined from the command line
12846
12847 2004-02-06  Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
12848             patch committed by Vangelis Rokas <vrokas AT otenet.gr>
12849
12850         * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
12851         PCOP_RLCF was overwritten!
12852         * gen.c (genSkip): commented out calls to pic16_emitcode,
12853         * (genCmpEQ): fixed "long" compares, only high word did get compared,
12854         * (genlshTwo),
12855         * (genRRC): added debugging info,
12856         * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
12857         overwritten while shifting,
12858         * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
12859         overwritten while shifting,
12860         * (AccLsh),
12861         * (AccRsh),
12862         * (shiftLLeftOrResult),
12863         * (shiftRLeftOrResult),
12864         * (shiftRLong),
12865         * (shiftLLong): Implemented with pic16_emitpcode
12866         * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
12867         * (genLeftShift): Fixed bug, operand for shift by variable always
12868         was "and"ed with 0x0f,
12869         * (genLeftShiftLiteral),
12870         * (genrshTwo),
12871         * (genRightShiftLiteral): added debugging info,
12872         * (genrshFour): added comment,
12873         * (genRightShift): determined signedness from operand "left"
12874         instead of "result"
12875
12876 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12877
12878         * src/SDCCicode.c (geniCodeParms),
12879         * src/SDCCast.c (decorateType, processParms): support for ANSI-style
12880         function pointers, fixed function pointer bugs #861242 and #861896
12881
12882 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12883
12884         * device/include/c8051f000.h,
12885         * device/include/c8051f120.h,
12886         * device/include/c8051f300.h: added header files for Silicon
12887         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
12888
12889 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
12890
12891         * src/SDCCast.c (processParams): added new type flow and restructured
12892         (gatherAutoInit): added new type flow
12893         (addCast): cosmetic changes
12894         (getLeftResultType): added new type flow for array indices, patch
12895         provided by Stas, see FR #877103
12896         (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
12897         array index patch by Stas
12898         * src/SDCCast.h: added prototype getResultTypeFromType()
12899         * src/SDCCval.h,
12900         * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
12901         * src/pic/glue.c (pic14emitStaticSeg),
12902         * src/pic16/glue.c (pic16emitStaticSeg),
12903         * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
12904         for initialization of symbols
12905         * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
12906         * support/Util/SDCCerr.h:
12907         * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
12908         * .version: bumped version number to 2.3.8
12909         * device/include/Makefile.in (install),
12910         * doc/Makefile (install): changed to 'rm `find ...`' construct to
12911         avoid warnings
12912
12913 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
12914
12915         * support/regression/tests/libmullong.c: fixed for 64 bit hosts
12916         Slade Rich fixed an optimization bug
12917         * src/pic/pcodepeep.c,
12918         * src/pic/pcoderegs.c
12919         * doc/Makefile (install): added test for directory
12920
12921 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12922
12923         * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
12924         * src/ds390/ralloc.c (getRegPtr, getRegGpr),
12925         * src/pic/ralloc.c (getRegPtr, getRegGpr),
12926         * src/pic16/ralloc.c (getRegPtr, getRegGpr),
12927         * src/z80/ralloc.c (getRegGpr): fixed bug #883361
12928         * as/mcs51/asexpr.c (term),
12929         * as/hc08/asexpr.c (term): fixed bug #887146
12930
12931 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12932
12933         * src/z80/gen.c (genMult): handle single byte result product
12934         * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
12935         DUMMY_READ_VOLATILE (fixed bug #886367)
12936
12937 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
12938
12939         * support/regression/tests/libmullong.c: fixed logic, on little endian
12940         hosts we ended without a mullong_wrapper()
12941
12942 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12943
12944         * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
12945         virus/worm forged address usage.
12946
12947 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
12948
12949         Fixed promotion, it should be done on AST level:
12950         * src/SDCCast.c (addCast): added promotion to int
12951         (decorateType): updated call to upCast()
12952         * src/SDCCicode.c (geniCodeLeftShift): removed call to
12953         usualUnaryConversions()
12954
12955 2004-01-26  Michael Hope  <michaelh AT juju.net.nz>
12956
12957         * support/regression/tests/literalop.c (mulWrapper): Added a
12958         wrapper to remove integer overflow warnings.
12959
12960         * support/regression/tests/float_trans.c: Made work on host.
12961
12962         * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
12963         location of sz80.
12964
12965         * support/regression/generate-cases.py (main): Changed from inline
12966         to a main method.
12967
12968         * doc/Makefile (install): Changed to depth first to get rid of
12969         missing directory install warning.
12970
12971         * as/Makefile (install-doc): Made work on Mac.
12972
12973 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
12974
12975         * src/SDCCast.c: added an additional type flow in decorateType() of
12976         opposite direction, see feature request #860006; it's enabled at runtime
12977         by setting the environment variable SDCC_NEWTYPEFLOW
12978         * src/SDCCast.h: changed prototype of decorateType()
12979         * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
12980         * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
12981         'char' to 'int' can be omitted, if both operands are 'unsigned char';
12982         see feature request #877103
12983         * src/SDCCval.c: updated call of decorateType()
12984         (valBitwise): fixed bug #882876
12985         (valMinus): added promotion
12986         (valLogicAndOr): result is unsigned
12987         (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
12988         * src/SDCCsymt.c (computeType),
12989         * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
12990         must not cause an unsigned operation
12991         * src/pic/glue (pic14emitRegularMap),
12992         * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
12993
12994 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
12995
12996         * src/pic/pcode.c (PCodeID): commented out left over debug code
12997
12998 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
12999
13000         * support/valdiag/tests/overflow.c: added shift tests
13001         * src/pic/device.c,
13002         * src/pic/gen.c,
13003         * src/pic/gen.h,
13004         * src/pic/glue.c,
13005         * src/pic/main.c,
13006         * src/pic/pcode.c,
13007         * src/pic/pcode.h,
13008         * src/pic/pcodepeep.c,
13009         * src/pic/pcoderegs.c,
13010         * src/pic/ralloc.c,
13011         * src/pic/ralloc.h: applied patch from Slade Rich;
13012         added support for multiple code pages and multiple RAM banks on the
13013         PIC 14 port. The ASM files now no longer simply assume all the
13014         code / RAM are in the same page / bank. This means the linker can
13015         safely allocate code/RAM of separate ASM files to different pages/banks.
13016         * doc/sdccman.lyx: added Slade's tips
13017         * src/mcs51/peeph.def: fixed bug #880768
13018
13019 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13020
13021         * src/hc08/ralloc.c (rematStr): fixed bug #879282
13022         * src/SDCCast.c (decorateType): fixed bug #880197
13023
13024 2004-01-20  Michael Hope  <michaelh AT juju.net.nz>
13025
13026         * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
13027         getopt.h.
13028
13029         * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
13030         strtof is not part of C89 and isn't included with Mac OS X.
13031
13032 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13033
13034         * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
13035         shiftL2Left2Result): fixed bug #879326
13036         (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
13037         (genMultOneByte): fixed bug in signed vs unsigned multiplication
13038         * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
13039         address fetch for clr instruction
13040         * device/lib/hc08/_mulint.c: created optimized assembly version
13041         * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
13042
13043 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
13044
13045         * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
13046         proposed in FR #877103
13047
13048 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
13049
13050         * src/SDCCval.c (cheapestVal): added missing checks
13051         * src/SDCCicode.c (usualBinaryConversions): fixed condition
13052         * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
13053
13054 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
13055
13056         * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
13057         equal operands
13058
13059 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
13060
13061         * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
13062         loaded with the linker search paths (-L arguments) and the libraries
13063         to be linked with the current source (-l arguments). Changes
13064         currently will affect only the pic16 port.
13065         * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
13066         include path the port specific paths and port specific libraries,
13067         * gplink command now contains the $3 argument,
13068         * src/pic16/device.h,
13069         * src/pic16/device.c,: structure PIC_device is made public and
13070         renamed to PIC16_device, the same for variable Pics which is renamed
13071         to Pics16. Updated all references to them.
13072         * src/pic16/glue.c (pic16glue): corrected bug with code
13073         initialization which bypassed the variable initializations block.
13074
13075         * device/lib/pic16/Makefile.rules: removed --penable-stack from
13076         COMPILE_FLAGS and added the --nostdinc option
13077
13078 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13079
13080         * device/include/mc68hc908jb8.h: Register defs for another member
13081         of the hc08 family. Contributed by Bjorn Bringert - thanks!
13082
13083 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
13084
13085         Documenting changes from previous commits.
13086         * configure.in (version 1.56),
13087         * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
13088         when generating output files to configure the pic16 library,
13089         but now I've commented it out, since gputils aren't installed in the
13090         SF compile farm, so library won't compile
13091
13092         * device/lib/Makefile.in (version 1.56): initially I've added in
13093         target 'all' the prerequestive 'model-pic16' so it compiled the
13094         pic16 library, but now I've commented it out for the same reasons
13095         above,
13096         * added targets 'model-pic16' and 'objects-pic16' to compile the
13097         library
13098         * added target 'port-specific-objects-pic16' to handle the
13099         generated libraries and copy them into the build/ directory
13100         * added target 'clean-intermediate-pic16' to clean intermediate
13101         files into pic16 directory
13102         * in target 'installdirs' added line to create directory pic16 in
13103         the installation path
13104
13105         * device/include/Makefile.in (version 1.11): in target 'install'
13106         added lines to copy all header files to installation path,
13107         * in target 'installdirs' added line create directory for pic16
13108         headers in the installation path
13109
13110 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
13111
13112         * src/ds390/gen.c (genCall): fixed a double use of acc and b after
13113          a function call
13114
13115 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
13116
13117         * configure,
13118         * device/lib/configure.in,
13119         * device/lib/configure: fixed for autoconf 2.57
13120
13121 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13122
13123         * src/z80/main.c (_parseOptions): fixed the portmode= command line
13124         option so that it actually works. Made it specific to the z80, since
13125         the gbz80 doesn't have these kinds of I/O ports.
13126
13127 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13128
13129         * device/include/z180.h,
13130         * device/lib/_memcpy.c,
13131         * device/lib/_memmove.c,
13132         * device/lib/_mulint.c,
13133         * device/lib/ser_ir.c,
13134         * device/lib/ser_ir_cts_rts.c,
13135         * device/lib/_strcmp.c,
13136         * device/lib/_strtok.c: fixed pragmas to non-deprecated form
13137         * src/z80/main.c (_process_pragma): add support for pragmas bank and
13138         portmode; added deprecation warning for bank= and protmode= forms.
13139         Also, guard against buffer overflow.
13140         * src/z80/gen.c (aopGet): generate better code for sfr banked read
13141
13142 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13143
13144         * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
13145         changed interrupt vector table generation to only emit declared vectors.
13146         * device/include/Makefile.in: added missing backslash
13147         * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
13148
13149 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
13150
13151         Mainly changes to support compilation of the device libraries
13152         * src/pic16/device.c: stack is allocated via symbol and not
13153         via literal number. The symbol is placed in the corresponding
13154         position of the data ram
13155         * (pic16_dump_section): relocatable and absolute uninitialized
13156         data are now emitted in sorted order to reduce section naming,
13157         * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
13158         weren't marked as being in the access bank,
13159
13160 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
13161
13162         Added portion of GNU PIC Library under the directory
13163         device/include/pic16 and device/lib/pic16. These files
13164         contain the declarations of SFRs for the PIC18Fxx2 devices.
13165         The directory is initialized via configure from toplevel.
13166
13167 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
13168
13169         * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
13170         the spilllocations to be compared correctly
13171
13172 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
13173
13174         * src/SDCCast.c (decorateType): fixed bug introduced today
13175
13176 2004-01-12  Borut Razem <borut.razem AT siol.net>
13177
13178         * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
13179         doc/sdccman.lyx: upper case pragmas are deprecated
13180
13181 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
13182
13183         * src/SDCCast.c (decorateType): replacing 'ul > 0' by  '!ul' results
13184         in simpler and even better code
13185
13186 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
13187
13188         * src/SDCCicode.c (operandOperation): fixed bug #874819
13189         * src/SDCCast.c (decorateType): fixed
13190         char foo (unsigned long ul) { return ul > 0; }
13191
13192 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13193
13194         * doc/sdccman.lyx: Moved and added some sections, small changes
13195         all over. Telling LaTeX to be less strict with word spacing
13196         to better keep the right margin. Changed some notes about
13197         maintainance of the ports in section 3.2.1 - is it OK like this?
13198
13199 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
13200
13201         SDCC source changes:
13202         * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
13203         convilong): modified to inform the pic16 port that builtin functions
13204         are external
13205
13206         PIC16 PORT specific changes:
13207         * src/pic16/device.c pic16_dump_equates() added,
13208         processor registers declared internally by the port are emitted in
13209         the translation as equates,
13210         * src/pic16/gen.c: inline code is passed unprocessed to the
13211         translation,
13212         * (pic16_popGetLit2): fnuction modified to take second operand as
13213         pCodeOp pointer and not as literal,
13214         * (popRegFromIdx): prefixed with pic16_,
13215         * (pic16_popCombine2): modified to receive already allocated pCode
13216         operands,
13217         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
13218         * (genFunction): initializes local stack frame and pushes on stack
13219         all the registers used by this function,
13220         * (genEndFunction): restores all registers from stack and restores
13221         stack frame,
13222         * src/pic16/glue.c (pic16emitRegularMap): various changes and
13223         improvements,
13224         * (pic16glue): changed the program startup sequence,
13225         * added new dbName code 'A' for functions placed in absolute section
13226         * src/pic16/main.c: added function attribute _naked,
13227         * added pragma 'code' to place a fnuction at an absolute address,
13228         * added command line arguments --debug-ralloc and --pcode-verbose,
13229         * (_pic16_finiliseOptions): options.all_callee_saves is set by default
13230         * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
13231         * (pic16_newpCodeOpLit2): modified to take the second operand as
13232         pCodeOp pointer,
13233         * (pic16_printpBlock): modified to emit each function in a separate
13234         section,
13235         * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
13236         UPPER for immediate operands,
13237         * src/pic16/pcodepeeph.c: added peephole support for the LFSR
13238         instruction,
13239         * src/pic16/peeph.def: all peepholes with movff are commented out,
13240         because there is a problem in the pcode peep optimizer,
13241         * src/pic16/ralloc.c: the register allocator can now reuse local
13242         function symbols for another function. This saves register usage.
13243         * src/pic16/ralloc.h: added flag isLocal in structure regs,
13244
13245         Added file src/pic16/NOTES with information about program writing on
13246         the current port version.
13247
13248 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13249
13250         * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
13251         and peephole 252 (array access)
13252
13253 2004-01-09  Borut Razem <borut.razem AT siol.net>
13254
13255         * src/SDCCmain.c : fixed #872250: -l command line defined library
13256           files are scanned before standard library files
13257
13258 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13259
13260         * src/SDCCast.c (decorateType): fixed bug #874046
13261
13262 2004-01-09  Borut Razem <borut.razem AT siol.net>
13263
13264         * support/scripts/sdcc.nsi: remove previous installation
13265
13266 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13267
13268         * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
13269         bytes for last interrupt vector (mcs51)
13270         * sdcc.spec: fixed typo
13271
13272 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13273
13274         * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
13275         gen51Code): more efficient parameter receive for --model-large
13276         ("bug" #845294)
13277
13278 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13279
13280         * src/ds390/main.c,
13281         * src/z80/main.c: added missed needLinkerScript flags (more than
13282         one port structure defined in these file)
13283         * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
13284         bug #795325
13285
13286 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
13287
13288         * src/SDCCmain.c: removed various references to DEFAULT_PORT
13289         * src/port.h: added flag needLinkerScript in port->linker
13290         structure to inform whether to create a .lnk file or not,
13291         * src/avr/main.c,
13292         * src/ds390/main.c,
13293         * src/hc08/main.c,
13294         * src/mcs51/main.c,
13295         * src/pic/main.c,
13296         * src/pic16/main.c,
13297         * src/xa51/main.c,
13298         * src/z80/main.c: changed appropriately to configure
13299         needLinkerScript flag
13300         * src/pic/gen.c,
13301         * src/pic16/gen.c (genAddrOf): fixed bug #863624
13302         * src/pic/glue.c: added variable udata_section_name to
13303         override default uninitialized data segment definition for
13304         devices only with SHAREBANK memory (reported from Erik Epetrich)
13305         * (pic14emitOverlay): modified to emit a commented overlay segment
13306         directive when no overlay data exist
13307         * (picglue): modified to emit uninitialized data segment
13308         according to udata_section_name
13309         * src/pic/main.c (_pic14_parseOptions): added command line
13310         options --udata-section-name=[name] to override default
13311         udata definition name
13312         * modified _linkCmd and _asmCmd to include compiler passed
13313         arguments via -W option
13314         * src/pic16/main.c: added $l in _asmCmd, changed extension for
13315         object file from '.rel' to '.o' in port->linker structure,
13316         changed size of fptr from 2 to 3 in port structure
13317
13318 2004-01-07  Borut Razem <borut.razem AT siol.net>
13319
13320         * support/scripts/sdcc.nsi: update PATH
13321         * support/scripts/sdcc.ico: craeted
13322
13323 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
13324
13325         * device/include/Makefile.in: fix install
13326         * doc/Makefile: fix install
13327
13328 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13329
13330         * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
13331         in bug #860505
13332         * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
13333         how the function variable allocation summary is displayed; also
13334         include information about variables allocated to the overlay
13335         segment
13336
13337 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13338
13339         * as/mcs51/lkmain.c: Help about -Y option
13340         * as/mcs51/lkarea.c: Fixed gcc warnings
13341
13342 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
13343
13344         * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
13345         fixed warning
13346         * support/valdiag/tests/overflow.c: added
13347         * src/SDCCast.c (decorateType),
13348         * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
13349         LEFT_OP (left shift)
13350
13351 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13352
13353         * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
13354         (default behaviour).
13355
13356 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13357
13358         A python script to validate compiler diagnostic messages. It can be
13359         used to verify that sdcc complains about bad c source code and
13360         gives a good location of the error.
13361         * support/valdiag/Makefile,
13362         * support/valdiag/valdiag.py,
13363         * support/valdiag/tests/*
13364
13365 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13366
13367         * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
13368         * src/SDCCsymt.c (newEnumType),
13369         * src/SDCCsymt.h
13370         * support/Util/SDCCerr.c,
13371         * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
13372         enum related bugs.
13373         * support/regression/tests/enum.c: added test for enum values that
13374         require at least 2 bytes of storage.
13375
13376 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
13377
13378         * src/common.h: added ifndef/define/endif macros
13379         around the header file.
13380         Bug reported from Jesus Calvino-Fraga
13381
13382 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
13383
13384         * sdcc.spec: updated
13385         * device/include/Makefile.in: don't install CVS directories
13386         * device/lib/Makefile.in: added removal of CVS directories after install
13387         * doc/Makefile: fixed install, added local_icons
13388         * sim/ucsim/gui.src/Makefile.in: fixed an old typo
13389         * src/mcs51/gen.c (genRightShift): fixed bug #870788
13390         * src/ds390/gen.c (genRightShift): fixed bug #870788
13391         * src/SDCCast.c (decorateType): fixed bug #870781
13392
13393 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
13394
13395         PIC16 port related changes:
13396         * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
13397         added variable stackPos,
13398
13399         * gen.c: genCall, assignResultValue: added support for
13400         pushing/retrieving function parameters to/from stack,
13401         genFunction,genEndFunction: setup stack frame for the
13402         generated function,
13403         genAddrOf: will be changed according to bug 863624
13404
13405         * added files genutils.c and genutils.h which contain gen*
13406         debugged and optimised functions extracted from gen.c
13407
13408         * glue.c: added variable 'externs' which holds extern symbols,
13409         pic16emitRegularMap: is modified to properly handle relocatable
13410          symbols under the new scheme,
13411         pic16createInterruptVect: is modified
13412         pic16printPublics: is modified to emit 'global' assembler directives,
13413         added pic16_printExterns to print extern symbols,
13414         pic16glue: initializes stack/frame pointer in the beginning of
13415         the assembly output. Temporary hack, will be corrected later,
13416         because gplink yet does not support stack and SDCC does not
13417         yet support a type of crt0.o object to create the final binary.
13418
13419         * Removed many lines that contain 8051 legacy code.
13420         * The code is finally placed under a 'code' directive.
13421         * Added port specific options.
13422
13423         * _process_pragma: simplified since now we do not need *special*
13424         include file to define SFR registers. But a separate header
13425         will be needed. This will be developed later.
13426         * _pic16_parseOptions: added, parses port specific options:
13427         --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
13428         --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
13429         --preplace-udata-with=
13430
13431         * _pic16_setDefaultOptions: modified to initialize section names,
13432         but hack is temporarly out of order since it needs improvement.
13433         * _pic16_genAssemblerPreamble: configuration words are emitted by
13434         their address instead of their name. This part is incomplete and
13435         supports only the 18Fxx2 devices. Other devices will emit an error
13436         during assembly since they do not contain the same set of config
13437         registers
13438         * _pic16_genIVT: is modified,
13439
13440         * pcode.c: added definitions for some hardware registers that are needed
13441         for stack support
13442         * added flag is2LitOp and variable pci_magic in pCodeInstruction.
13443         All PCI entries are updated. Now LFSR is supported.
13444         * Removed pic16_pciTRIS is mentioned by mdubuc in source
13445         * added pic16_newpCodeOpLit2 to support instructions with
13446         two literal arguments
13447         * pic16_pCode2str: corrected code that emits assembler instructions
13448         with two literal operands and those that have an access bit modifier
13449         * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
13450         this fixes a bug which caused some labels to be lost, when an
13451         assembler directive was added, i.e. banksel,
13452         * pic16_FixRegisterBanking: improved logic that causes the insertion
13453         of bank switching,
13454         * InlineFunction: functions that are called once, are not any more
13455         inlined. This can be a port option in the future,
13456
13457         * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
13458
13459         * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
13460         hold the corresponding uninitialized symbols,
13461         * pic16_allocProcessorRegister: registers have explicit marked the
13462         accessBank field,
13463         * pic16_allocInternalRegister: registers are explicit marked as
13464         not used,
13465         * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
13466         processing list, so bit registers were lost,
13467         *
13468
13469         * ralloc.h: added field 'accessBank' and original symbol operand
13470         in register definition,
13471         * removed the field isMapped from register definition,
13472
13473         ** Several functions have been removed from various sources:
13474         BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
13475         pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
13476         isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
13477         pic16_assignRelocatableRegisters
13478
13479         ** others have been introduced:
13480         pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
13481         pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
13482
13483 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
13484
13485         * support/scripts/inc2h.pl: changed definition of BIT_AT
13486         to emit 'sbit at' instead of 'bit at'. This was a request.
13487
13488         PIC16 port related preliminary changes:
13489         * gen.c: prefixed function popRegFromString with
13490         pic16_ and all references to it corrected
13491         * pcode.c: all pic16_pc_* hardware registers prefixed
13492         with underscore (_),
13493         pic16_popCopyGPR2Bit(): function sets register wasUsed=1
13494         * ralloc.c: newReg(): when register is REG_SFR then
13495         set address to rIdx,
13496         pic16_allocProcessorRegister(): marks register wasUsed=0
13497         pic16_writeUsedRegs(): added a call to assign processor
13498         registers via pic16_assignFixedRegisters
13499
13500 2004-01-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13501
13502         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
13503         as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
13504         variables in unused register banks.  Also the SSEG is placed
13505         wherever there is enough space for it, and IDATA can be anywhere
13506         in internal RAM.  For now compile using -Wl-Y[stack_size].
13507         The mem file is different for this option as well, since it
13508         makes no sense of talking about DSEG lenght.
13509
13510 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
13511
13512         * src/SDCClrange.c: fixed bug 869095 that caused segfault
13513         in certain cases, e.g. when ROM assignment, patch provided
13514         from Albert den Haan.
13515
13516 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
13517
13518         Many signedness and type propagation fixes:
13519         * src/SDCCicode.c: made geniCodeCast() static
13520         replaced SPEC_ by IS_ (cosmetic)
13521         (operandOperation): fixed div and mod operation
13522         (usualBinaryConversions): added support for promotion of char
13523         (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
13524         (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
13525         (geniCodeAdd): an array index will stay unsigned, even if promoted
13526         from char to int
13527         (geniCodeArray): ditto
13528         * src/SDCCicode.h: made geniCodeCast() static: removed prototype
13529         * src/SDCCsymt.c (computeType): added more support for char;
13530         promotion of char is selectable by promoteCharToInt, fixed signedness
13531         for all cases
13532         (powof2): replaced (unsigned long) by (TYPE_UDWORD)
13533         * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
13534         * src/SDCCval (val*): replaced signedness calculation by
13535         computeType()
13536         rearranged if-branches (cosmetic)
13537         (valShift): added warning W_SHIFT_CHANGED
13538         (valCompare): fixed problem with different types
13539         * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
13540         * support/regression/tests/literalop.c: added many cases
13541         * support/regression/tests/ast_constant_folding.c: changed finally to
13542         'unsigned int'
13543         * .version: new year, new version: 2.3.7
13544         * src/SDCCmain.c (main): applied patch #866468
13545         * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
13546         provided by Scott Bronson
13547         * doc/sdccman.lyx: updated documentation for sdcdb
13548         updated and added chapter tips
13549
13550 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13551
13552         * src/SDCCsymt.h: missing from yesterday's commits
13553
13554 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13555
13556         * src/SDCC.y (struct_or_union_specifier),
13557         * support/Util/SDCCerr.c,
13558         * support/Util/SDCCerr.h: verify that struct & union tags are used
13559         as declared.
13560
13561 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13562
13563         * src/SDCCglobl.h: missing from yesterday's commits
13564
13565 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13566
13567         * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
13568         sft_attributes, struct_declaration, parameter_declaration,
13569         type_name, start_block, declaration_list),
13570         * src/SDCC.lex (check_type): support redefinition of typedef names
13571
13572 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13573
13574         * src/mcs51/gen.c (genPlus): added special handling for 256 byte
13575         aligned xdata arrays. Erik helped me with the if clause.
13576
13577 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13578
13579         * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
13580         warning
13581
13582 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13583
13584         * src/SDCCast.h,
13585         * src/SDCCast.c (newAst_),
13586         * src/SDCCicode.h,
13587         * src/SDCCicode.c (ast2iCode, newiCode),
13588         * src/SDCCglobl.h,
13589         * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
13590         expr, statement, expression_statement, selection_statement,
13591         iteration_statement, expr_opt, jump_statement): foundation for tracking
13592         sequence points
13593         * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
13594         point code too)
13595
13596 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13597
13598         * support/Util/SDCCerr.c,
13599         * src/SDCCast.h,
13600         * src/SDCCast.c (createCase, createDefault, decorateType),
13601         * src/SDCClabel.c (labelUnreach),
13602         * src/SDCC.y (labeled_statement, jump_statement): More improvements
13603         to error messages.
13604         * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
13605         (with thanks to Stas Sergeev)
13606         * device/include/time.h,
13607         * device/lib/time.c (CheckTime): suppress unreachable code warning
13608
13609 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13610
13611         * src/SDCCast.c (createIvalCharPtr),
13612         * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
13613         bug #753752)
13614         * support/regression/tests/nullstring.c: tests for these two bugs
13615
13616 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13617
13618         * support/Util/SDCCerr.h,
13619         * support/Util/SDCCerr.c (E_NOT_ALLOWED),
13620         * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
13621         about storage class and 'at' used inside struct or union
13622         * src/SDCCBBlock.c (iCodeFromeBBlock),
13623         * src/SDCCcse.c (ifxOptimize),
13624         * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
13625         printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
13626         printIval, emitStaticSeg, emitOverlay),
13627         * src/SDCClabel.c (deleteIfx),
13628         * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
13629         * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
13630         gatherAutoInit, processParms),
13631         * support/Util/SDCCerr.h,
13632         * support/Util/SDCCerr.c (werrorfl): Support for better error location
13633         reporting for post-parse errors.
13634
13635 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13636
13637         * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
13638         implicit casts via union; they don't work on big endian systems
13639         (possible fix for bug #861138)
13640
13641 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13642
13643         (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
13644         * src/mcs51/main.c: fixed the fix for bug #737001
13645
13646 2003-12-15  Borut Razem <borut.razem AT siol.net>
13647
13648         * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
13649
13650 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13651
13652         * support/makebin/makebin.c: put output in binary mode
13653
13654 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13655
13656         * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
13657         xdata and data memory on startup. Set the environment variable
13658         SDCC_NOGENRAMCLEAR to disable this.
13659         * src/mcs51/peephole.def,
13660         * src/ds390/peephole.def: using the atomic test and clear instruction jbc
13661         (allows non-interrupt and interrupt code to safely compete for a resource
13662         without the non-interrupt code having to disable interrupts)
13663
13664 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13665
13666         * src/SDCCicode.c (geniCodeAdd),
13667         * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
13668         with valFromType if type might be a pointer and host is big endian).
13669         * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
13670         types, not just integer types.
13671         * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
13672         multiply defined with mismatching "at" address.
13673
13674 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13675
13676         * src/ds390/main.c (PORT tininative_port): fixed bug #858416
13677         * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
13678         * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
13679         with embedded nulls (fixed bug #753752)
13680
13681 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13682
13683         * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
13684         Apparently this did not see much testing (endless loop)
13685
13686 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13687
13688         * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
13689
13690 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13691
13692         * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
13693         gracefully handle NULL memmap pointers
13694
13695 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13696
13697         * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
13698         instead of deleting the iCode when an operand is volatile
13699         * src/z80/gen.c (genDummyRead),
13700         * src/mcs51/gen.c (genDummyRead),
13701         * src/ds390/gen.c (genDummyRead),
13702         * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
13703         not just IC_RIGHT
13704         * src/SDCCicode.c (geniCodeCall): fixed bug #851607
13705         * src/SDCC.y: fixed bug #850420
13706
13707 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13708
13709         Applied z80 i/o port patch from Peter Townson and fixed some operators
13710         to better handle operands in A register.
13711         * device/include/z180.h
13712         * src/SDCC.y
13713         * src/SDCCglue.c
13714         * src/z80/gen.c
13715         * src/z80/gen.h
13716         * src/z80/main.c
13717         * src/z80/peeph-z80.def
13718         * src/z80/peeph.def
13719         * src/z80/z80.h
13720
13721 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13722
13723         * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
13724
13725 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13726
13727         * device/lib/hc08/_mullong.c: Removed extra #endif
13728
13729 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13730
13731         * sim/ucsim/hc08.src/inst.cc,
13732         * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
13733         carries from x to h
13734         * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
13735         * src/hc08/gen.c (XAccRsh): fixed problem with right shift
13736         * device/include/stdarg.h: fixed varargs for hc08
13737         * device/lib/Makefile.in,
13738         * device/lib/hc08/Makefile,
13739         * device/lib/hc08/_mulint.c,
13740         * device/lib/hc08/_mullong.c: fixed some endian problems
13741
13742 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13743
13744         * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
13745         * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
13746         * device/lib/_gptrget.c,
13747         * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
13748
13749 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13750
13751         * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
13752         * src/SDCCast.c (astErrors): fixed bug #846007
13753         * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
13754
13755 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13756
13757         * src/SDCCast.c (decorateType): disabled a transformation I added in
13758         revision 1.188 (access to fields of a structure at an absolute address);
13759         it breaks with bitfields, extern declarations, and gcse analysis.
13760         * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
13761         could be assigned through a pointer, so don't complain.
13762         * src/SDCCast.c (astErrors),
13763         * src/SDCCast.h,
13764         * src/SDCCglue.c (emitRegularMap): fixed bug #847813
13765
13766 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
13767
13768         * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
13769         * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
13770         output of __config directives, since gpasm now supports them
13771         * src/pic16/main.c (_pic16_finaliseOptions): define MCU
13772         pre-processor macro, i.e. -DMCU=p18f452
13773         * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
13774         and modified to handle 'cast' icode similarly to '=' icode
13775         * src/pic16/device.h (typedef struct PIC_device): added field
13776         'extMIface' to indicate that chip has external memory interface
13777         * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
13778         18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
13779         18F8720
13780
13781 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13782
13783         * src/SDCC.y (pointer): fixed bug #846006
13784         * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
13785         * src/SDCCast.c (decorateType): fixed bug #846009
13786         * src/ds390/peeph.def,
13787         * src/ds390/gen.c (genAnd, genOr),
13788         * src/mcs51/peeph.def,
13789         * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
13790
13791 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13792
13793         Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
13794         * src/SDCCdflow.c
13795         * src/SDCCcse.c
13796         * src/SDCCcse.h
13797         * src/SDCCBBlock.h
13798         * src/SDCCBBlock.c
13799
13800 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
13801
13802         fixed bug #845089
13803         * src/SDCCbitv.h,
13804         * src/SDCCbitv.c: added function to free a bitvector
13805         * src/SDCClrange.h,
13806         * src/SDCClrange.c: added function to recompute the liveranges
13807         * src/avr/ralloc.c,
13808         * src/ds390/ralloc.c,
13809         * src/hc08/ralloc.c,
13810         * src/mcs51/ralloc.c,
13811         * src/pic/ralloc.c,
13812         * src/pic16/ralloc.c,
13813         * src/xa51/ralloc.c,
13814         * src/z80/ralloc.c: recompute the liveranges after register packing
13815
13816 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
13817
13818         * src/SDCCloop.c (newInduction): fixed bug #845630
13819
13820 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13821
13822         * src/SDCCsymt.c (compareTypesExact): disabled debugging output
13823         inadvertantly left behind from my 2003-11-12 change
13824
13825 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13826
13827         Updated headers I neglected to commit yesterday.
13828         * src/SDCClrange.h,
13829         * src/SDCCicode.h
13830
13831 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13832
13833         * src/SDCCcse.c (algebraicOpts): fixed bug #773153
13834         * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
13835         * src/SDCCopt.c (eBBlockFromiCode),
13836         * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
13837         the creation of the key hash table from the sequencing so it can be used
13838         earlier (for some GCSE bug fixes still pending)
13839
13840 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13841
13842         * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
13843         * support/regression/tests/addsub.c: testing genPlus shortcut
13844
13845 2003-11-15  Borut Razem <borut.razem AT siol.net>
13846
13847         * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
13848
13849 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13850
13851         * src/SDCCcse.c (cseBBlock): fixed bug #527779
13852         * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
13853         ordering is immaterial.
13854         * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
13855
13856 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13857
13858         * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
13859         * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
13860         (SIGSEV) of bug #840381
13861         * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
13862         unlink new file before rename if new and old filenames are the same)
13863
13864 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13865
13866         * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
13867         uninitialized variables) for the mcs51. Set environment variable
13868         SDCC_GENRAMCLEAR to test.
13869         xdata initialization slightly shorter
13870
13871 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13872
13873         * src/SDCCsymt.h,
13874         * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
13875         #838241 & 780691 (basicly the same bug)
13876         * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
13877         * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
13878
13879 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
13880
13881         * src/SDCCmain.c (linkEdit): "fix" #834252
13882
13883 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13884
13885         * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
13886         * src/SDCCast.h,
13887         * src/SDCC.y: fixed bug #819403
13888
13889 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13890
13891         * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
13892         the reentrant attribute.
13893         * src/hc08/gen.c (genPackBits): added missing stack readjustment
13894         * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
13895         simulation
13896         * src/SDCCast.c (decorateType): fixed bug with storage class not being
13897         updated during pointer dereference; f.e. ~(((char *)1)*) was being
13898         erroneously reduced to a literal.
13899         * src/hc08/ralloc.c (packRegisters, rematStr),
13900         * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
13901         some cases
13902
13903 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13904
13905         * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
13906         * doc/sdccman.lyx: changed from 'article' to 'book'
13907         * doc/Makefile: readded test_suite_spec and cdbfileformat
13908
13909 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
13910
13911         * device/include/stdlib.h: include malloc.h to comply with ANSI
13912         * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
13913
13914 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13915
13916         * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
13917         * doc/clean.mk: also remove *.out files
13918         * doc/sdccman.lyx: some additions, larger top/bottom margins
13919
13920 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13921
13922         * src/SDCC.y: fixed bug #837365
13923         * support/regression/tests/bitopcse.c
13924         * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
13925         a symbol (might be valop instead)
13926         * device/lib/Makefile.in: added errno.c to HC08SOURCES
13927         * device/lib/clean.mk: added hc08 to the cleaning list
13928
13929 2003-11-04  Borut Razem <borut.razem AT siol.net>
13930
13931         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
13932           made 2003-11-04
13933         * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
13934           as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
13935           malloc is declared in standard stdlib.h
13936
13937 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13938
13939         * device/lib/hc08/Makefile: need to clean .rel not .o files
13940         * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
13941
13942 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13943
13944         * src/port.h,
13945         * src/hc08/main.c,
13946         * src/mcs51/main.c,
13947         * src/ds390/main.c,
13948         * src/z80/main.c,
13949         * src/avr/main.c,
13950         * src/pic/main.c,
13951         * src/pic16/main.c,
13952         * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
13953         * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
13954         tests (which uses the port's oclsExpense function)
13955         * src/SDCC.y,
13956         * src/SDCCast.c,
13957         * src/SDCCicode.c,
13958         * src/hc08/gen.c,
13959         * src/ds390/gen.c,
13960         * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
13961
13962 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13963
13964         * src/SDCCcse.c (ifxOptimize),
13965         * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
13966         an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
13967         deleting the IFX iCode.
13968         * src/hc08/ralloc.c: reduced unneeded slocs
13969         * src/hc08/gen.c: fixed bug in asmopToBoolean
13970
13971 2003-11-04  Borut Razem <borut.razem AT siol.net>
13972
13973         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
13974           support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
13975           as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
13976           transferred to configure
13977
13978 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
13979
13980         Use headers defined in the C[++] standards:
13981         * sim/ucsim/gui.src/serio.src/fileio.cc
13982         * sim/ucsim/gui.src/serio.src/frontend.cc
13983         * sim/ucsim/gui.src/serio.src/main.cc
13984         * sim/ucsim/gui.src/serio.src/posix_signal.cc
13985         * support/Util/NewAlloc.c
13986         * as/hc08/lklibr.c
13987         * as/mcs51/lklibr.c
13988         * as/z80/aslist.c
13989         * as/z80/assym.c
13990
13991 2003-11-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13992
13993         * Added MSVC projects for hc08 assembler and linker:
13994         all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
13995         /as/hc08/link_hc08.dsp
13996
13997 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
13998
13999         * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
14000
14001 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
14002
14003         * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
14004
14005 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14006
14007         * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
14008
14009 2003-10-31  Borut Razem <borut.razem AT siol.net>
14010
14011         * support/cpp2/cpplib.h,
14012           support/cpp2/cpplib.c,
14013           support/cpp2/cpplex.c,
14014           support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
14015           to switch _asm block preprocessing on / off. Default is
14016           #pragma preproc_asm +
14017
14018 2003-10-31  Borut Razem <borut.razem AT siol.net>
14019
14020         * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
14021           when outputting comment blocks (when executed with -C option) and
14022           _asm (SDCPP specific) blocks
14023
14024 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14025
14026         * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
14027
14028 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
14029
14030         * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
14031
14032 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
14033
14034         * src/SDCCmain.c (linkEdit): "fixed" bug #833605
14035         * src/SDCCast.c (decorateType): fixed bug #832664
14036
14037 2003-10-31  Borut Razem <borut.razem AT siol.net>
14038
14039         * support/cpp2/cpplex.c: fixed for SDCPP:
14040           comments(when executed with -C option) and _asm blocks
14041           were included even if they where in skipped #if block.
14042           Applied solution from GCC cpp 3.3.2
14043
14044 2003-10-31  Borut Razem <borut.razem AT siol.net>
14045
14046         * src/SDCC.lex: sdcc now understands both formats:
14047           '# <line_number> <file_name>' and
14048           '#line <line_number> <file_name>'
14049         * support/cpp2/cppmain.c: sdcpp now generates the standard
14050           '# <line_number> <file_name>' instead of former
14051           '#line <line_number> <file_name>'
14052
14053 2003-10-30  Borut Razem <borut.razem AT siol.net>
14054
14055         * support/cpp2/cpphash.h,
14056         * support/cpp2/cpplib.h
14057         * support/cpp2/cpplex.c,
14058         * support/cpp2/cppmain.c,
14059         * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
14060
14061 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14062
14063         Fixed a number of problems revealed by bug #827883.
14064         * src/SDCCloop.c (loopInvariants): Spill location of the
14065         result operand should be recomputed if extracted from
14066         a loop. Also, don't extract assignments of an iTemp
14067         from a literal.
14068         * src/SDCCast.c (isConformingBody): loop reversal should
14069         not occur if the control variable is involved with a
14070         relational operator.
14071
14072 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
14073
14074         * .version: bumped to 2.3.6 to reflect the big improvements
14075         made by Erik and Klaus. Thanks!
14076
14077 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
14078
14079         Replaced the livrange code.
14080         * src/SDCClrange.c: added new LR code
14081         * src/SDCCloop.c,
14082         * src/SDCCBBlock.h: removed remainig parts from old LR code
14083         * src/ds390/ralloc.c,
14084         * src/ds390/gen.c: minor fixes to make it work with new code
14085
14086 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14087
14088         * as/hc08/asm.h,
14089         * as/hc08/lkrloc.c,
14090         * src/hc08/gen.c,
14091         * src/hc08/ralloc.c: Fix various warnings related to the hc08
14092         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
14093         (tweaked fix for bug #818696)
14094
14095 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14096
14097         * src/z80/ralloc.c (joinPushes): Fixed bug #828742
14098
14099 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14100
14101         * src/SDCCmain.c,
14102         * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
14103         * src/mcs51/gen.c (gencjneshort),
14104         * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
14105         more efficient (per Scott Bronson's suggestion)
14106
14107 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14108
14109         Extended the semantics of the critical keyword to include
14110         individual statements. See RFE #827755 and #799831
14111         * src/SDCC.y
14112         * src/SDCCicode.c
14113         * src/SDCCopt.c
14114         * src/SDCCast.c
14115         * support/Util/SDCCerr.c
14116         * support/Util/SDCCerr.h
14117         * src/mcs51/gen.c
14118         * src/ds390/gen.c
14119         * src/hc08/gen.c
14120
14121 2003-10-19  Borut Razem <borut.razem AT siol.net>
14122
14123         * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
14124
14125 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14126
14127         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
14128         Fixed bug #818696
14129         * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
14130         and predecrement operand is displayed
14131
14132 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
14133
14134         * src/SDCCval.c (valMinus): fixed bug #826041
14135
14136 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14137
14138         Some hc08 related updates that I missed earlier
14139         * sim/ucsim/stypes.h
14140         * support/regression/ports/hc08/spec.mk
14141
14142 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14143
14144         New target "hc08" for the Motorola 68hc08 family of micros
14145
14146         * configure
14147         * configure.in
14148         * Makefile
14149         * src/hc08/*
14150         * src/SDCCmain.c
14151         * src/port.h
14152         * sim/ucsim/hc08.src/*
14153         * sim/ucsim/configure.in
14154         * src/ucsim/configure
14155         * sim/ucsim/packages_in.mk
14156         * as/hc08/*
14157         * as/Makefile
14158         * device/include/mc68hc908qy.h
14159         * device/lib/hc08/*
14160         * device/lib/Makefile.in
14161         * support/regression/ports/hc08/*
14162         * support/regression/Makefile
14163
14164 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14165
14166         * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
14167         regression test
14168         * src/ds390/gen.c (genCast): fixed bug #821957
14169
14170 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
14171
14172         * device/lib/logf.c: "fixed" overlay bug
14173         * support/regression/ports/host/spec.mk: added m library
14174         * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
14175         * support/regression/tests/float_trans: added (for Eric)
14176
14177 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
14178
14179         * src/mcs51/gen.c (genCpl): fixed bug
14180         http://sf.net/mailarchive/message.php?msg_id=6263915
14181
14182 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
14183
14184         * src/SDCCast.c (decorateType): added extended constant folding
14185         * src/SDCCsymt.c (computeType): cleanup
14186         * src/SDCCval.c (valShift): minor optimization
14187         * support/regression/tests/ast_constant_folding.c: added
14188
14189 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14190
14191         * src/SDCCmain.c: removed some unintended changes
14192
14193 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14194
14195         * src/SDCCmain.c (setParseWithComma): fixed bug #816685
14196         * src/z80/gen.c: fixed part of bug #817589
14197         * src/SDCCsymt.c (checkFunction): fixed bug #817895
14198
14199 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
14200
14201         Replaced cast (void **) with (void *) to avoid gcc 3 warning:
14202         * src/SDCCcflow.c
14203         * src/SDCCcse.c
14204         * src/SDCCdflow.c
14205         * src/SDCClabel.c
14206         * src/SDCClrange.c
14207         * src/SDCCmem.c
14208         * src/SDCCopt.c
14209         * src/SDCCpeeph.c
14210         * src/SDCCset.c
14211         * src/avr/ralloc.c
14212         * src/ds390/ralloc.c
14213         * src/izt/ralloc.c
14214         * src/mcs51/ralloc.c
14215         * src/pic/ralloc.c
14216         * src/pic16/ralloc.c
14217         * src/xa51/ralloc.c
14218         * src/z80/ralloc.c
14219         * src/z80/gen.c: removed unused label "release:"
14220
14221 2003-10-06  Borut Razem <borut.razem AT siol.net>
14222
14223         * src/SDCC.lex: removed definition of unused variables
14224           save_optimize and save_options
14225
14226 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
14227
14228         * clean.mk: removed '=' in "-maxdepth=1"
14229         * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
14230         * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
14231
14232 2003-10-06  Borut Razem <borut.razem AT siol.net>
14233
14234         * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
14235           my_unput() replaced by unput()
14236
14237 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
14238
14239         * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
14240         setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
14241         type-punned pointer will break strict-aliasing rules"
14242         Old LR behaviour is again default; Klaus' LR can be choosen by
14243         defining the environment variable LRKLAUS
14244         * src/SDCCBBlock.h
14245         * src/SDCCloop.c
14246         * src/SDCClrange.c
14247         * src/ds390/ralloc.c (spillThis): applied Klaus' patch
14248         * clean.mk: fixed removal of files in bin/CVS/
14249         * device/lib/clean.mk: fixed removal of directories small and large
14250         * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
14251         * src/SDCCicode.c,
14252         * src/SDCCval.c: removed superflous test for pedantic
14253
14254 2003-10-05  Borut Razem <borut.razem AT siol.net>
14255
14256         * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
14257           Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
14258           message "unmatched #pragma SAVE and #pragma RESTORE"
14259
14260 2003-10-04  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14261
14262         * doc/sdccman.lyx: various additions and updates (interrupts, inline
14263           assembly, critical functions, atomic, nojtbound)
14264
14265 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
14266
14267         Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
14268         * src/SDCCBBlock.h
14269         * src/SDCCloop.c
14270         * src/SDCCloop.h
14271         * src/SDCClrange.c
14272
14273 2003-10-03  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14274
14275         * src/z80/gen.h,
14276         * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
14277         * src/mcs51/gen.h
14278         * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
14279         * src/ds390/gen.h
14280         * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
14281         * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
14282         * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
14283
14284 2003-10-02  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14285
14286         * src/z80/gen.c (genRet): fixed bug #524753
14287         * src/z80/gen.c (genCast): fixed internal error on cast from
14288         pointer to long
14289         * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
14290         fix for bug #477835 to the z80
14291         * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
14292         for tracking iCodes in the peephole optimizer for z80
14293
14294 2003-10-01  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14295
14296         * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
14297         the other part of bug #814548
14298         * src/SDCCpeeph.c (labelInRange): fixed bug #814558
14299
14300 2003-09-30  Bernhard Held <bernhard AT bernhardheld.de>
14301
14302         * src/SDCCcse.c: fixed part of bug #814548
14303
14304 2003-09-28  Borut Razem <borut.razem AT siol.net>
14305
14306         * src/asm.c: rewrite of printILine() to use temporary file instead
14307           a pipe
14308         * src/xa51/main.c: commented out declaration of int rewinds
14309
14310 2003-09-27  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14311
14312         * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
14313
14314 2003-09-26  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14315
14316         * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
14317         * src/asm.c (printILine): Fixed bug #811015
14318
14319 2003-09-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14320
14321         *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
14322         freeing.
14323
14324 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14325
14326         * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
14327         * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
14328         to correctly handle general case of AOP_PAIRPTR
14329         * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
14330
14331 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14332
14333         * src/mcs51/ralloc.c (fillGaps),
14334         * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
14335         register positioning bug)
14336
14337 2003-09-21  Bernhard Held <bernhard AT bernhardheld.de>
14338
14339         * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
14340
14341 2003-09-19  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14342
14343         * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
14344         genCodePointerGet, genGenPointerGet, genFarPointerSet,
14345         genGenPointerSet): handle AOP_DPTR correctly when loading dptr
14346         (ralloc doesn't intentionally do this now, but perhaps later)
14347         * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
14348         * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
14349         register positioning bugs (Fixed bug #762602 and #795325)
14350         * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
14351         (Fixed bug #808779)
14352         * src/z80/gen.c: increased _vemit2's buffer[] to handle long
14353         lines that --i-code-in-asm generates
14354
14355 2003-09-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14356
14357         *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
14358         trying to fclose a FILE* that was already closed.
14359
14360 2003-09-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14361
14362         * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
14363         of const struct should be treated as if const themselves)
14364
14365 2003-09-18  Bernhard Held <bernhard AT bernhardheld.de>
14366
14367         * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
14368
14369 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14370
14371         * support/librarian/sdcclib.c: Generate correct offsets for libraries with
14372         Unix (/n) and DOS (/r/n) line terminations.
14373
14374 2003-09-17  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14375
14376         * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
14377         bug #613775
14378
14379 2003-09-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14380
14381         * src/mcs51/gen.c (genFunction, genEndFunction),
14382         * src/ds390/gen.c (genFunction, genEndFunction): Moved save
14383         and restore of EA so that stack offsets to parameters are
14384         correct when using both critical and reentrant/stack-auto.
14385         * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
14386         size (can be triggered in error if sloc is shared between
14387         different sized objects)
14388         * device/include/float.h: fixed macros to explicitly use
14389         unsigned long where needed
14390
14391 2003-09-15  Bernhard Held <bernhard AT bernhardheld.de>
14392
14393         Feature req. 799831: added code to allow nesting of critical functions
14394         * src/mcs51/gen.c (genFunction, genEndFunction)
14395         * src/ds390/gen.c (genFunction, genEndFunction)
14396
14397 2003-09-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14398
14399         * src/SDCCsymt.c (sclsFromPtr),
14400         * src/SDCCsymt.h,
14401         * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
14402         support for standard C idiom of memory mapped variables; for
14403         example, *((xdata int*)0x1234) = 1 is now internally equivalent
14404         to xdata int at 0x1234 tempvar = 1.
14405         * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
14406         provided by Akiya ISHIDA
14407
14408 2003-09-13  Bernhard Held <bernhard AT bernhardheld.de>
14409
14410         * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
14411         * src/SDCCval.c (constVal): added reduction from int to char
14412         * src/SDCCval.c (valMult, valDiv): fixed sign handling
14413         * src/SDCCval.c (valShift): fixed after change of cheapestVal()
14414         * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
14415         to ignore the sign
14416         * support/regression/tests/shifts.c: fixed
14417
14418 2003-09-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14419
14420         * src/z80/gen.c (genXor): Fixed bug #805445
14421
14422 2003-09-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14423
14424         Fixed bug #621531 (const & volatile confusion in the type chain).
14425         DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
14426         refer to the const or volatile state of the pointer itself.
14427
14428         * src/SDCCast.c
14429         * src/SDCCglue.c
14430         * src/SDCCicode.c
14431         * src/SDCCsymt.c
14432         * src/SDCCval.c
14433         * src/SDCC.y
14434         * src/SDCCsymt.h
14435         * src/pic/gen.c
14436         * src/pic/ralloc.c
14437         * src/pic16/gen.c
14438         * src/pic16/ralloc.c
14439         * support/regression/tests/const.c
14440
14441 2003-09-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14442
14443         When checking for duplicated modules, use absolute paths
14444         instead of relative paths.  Files changed:
14445
14446         * as/mcs51/lklib.c
14447         * link/z80/lklib.c
14448
14449 2003-09-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14450
14451         * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
14452
14453 2003-09-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14454
14455         * device/include/string.h: added size_t typedef, changed
14456         prototypes to use size_t, eliminated separate reentrant and
14457         non-reentrant declarations, added _memmove declaration
14458         * device/lib/_memcpy.c: changed to use size_t instead of int,
14459         changed /4 to >>2 to avoid division library call
14460         * device/lib/_memcmp.c,
14461         * device/lib/_memset.c,
14462         * device/lib/_strncat.c,
14463         * device/lib/_strncpy.c,
14464         * device/lib/_strncmp.c: changed to use size_t instead of int
14465         * device/lib/_memmove.c: new file (fixed bug #772294)
14466         * device/lib/Makefile.in: added _memmove.c
14467         * device/lib/z80/asm_strings.s: fixed bug #772290
14468         * support/regression/tests/bitfields.c: attempt to fix host assertion
14469         failure on amd64-unknown-linux2.2
14470
14471 2003-09-06  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14472
14473         * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
14474         * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
14475         * as/z80/asmain.c (main): fixed bug #801766
14476
14477 2003-09-06  Bernhard Held <bernhard AT bernhardheld.de>
14478
14479         * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
14480         compilers
14481
14482 2003-09-05  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14483
14484         * src/SDCCast.c (isConformingBody): fixed loop reversal bug
14485         reported in bug #800609
14486
14487 2003-09-04  Vangelis Rokas <vrokas AT otenet.gr>
14488
14489         * Top header beautifications in src/pic16 directory:
14490           device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
14491           pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
14492           pcoderegs.h, ralloc.c, ralloc.h
14493         * main.c: added top header and GPL license notice
14494         * pcode.c: fixed the if-conditional warning
14495
14496 2003-09-04  Bernhard Held <bernhard AT bernhardheld.de>
14497
14498         * device/lib/_mullong.c: replaced int by short for gcc
14499
14500 2003-08-31  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14501
14502         * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
14503         and JUMPTABLE iCodes properly now (worked by accident before)
14504         * src/mcs51/gen.c (leftRightUseAcc),
14505         * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
14506         iCode properly now. Use getSize instead of nRegs since a & b
14507         aren't part of the nRegs tally.
14508
14509 2003-08-31  Vangelis Rokas <vrokas AT otenet.gr>
14510
14511         * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
14512         * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
14513           before instructions that use the _STATUS register
14514
14515 2003-08-31  Bernhard Held <bernhard AT bernhardheld.de>
14516
14517         * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
14518         * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
14519         fetching of the pointer
14520         * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
14521         copied from genNearPointerSet()
14522         * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
14523         * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
14524         If they pop r0/r1 they must be called in the opposite order than aopOp().
14525         * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
14526         (resp. --stack-auto), prepared for --xstack
14527
14528 2003-08-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14529
14530         * doc/sdccman.lyx: reverted tables to those in cvs 1.64
14531
14532 2003-08-28  Bernhard Held <bernhard AT bernhardheld.de>
14533
14534         * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
14535         these ports have their own __sdcc_external_start()
14536
14537 2003-08-26  Bernhard Held <bernhard AT bernhardheld.de>
14538
14539         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
14540         * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
14541         type for bits was changed. It resulted in bit variables becoming
14542         global, which is not permitted in PIC 14 assembly output.
14543
14544 2003-08-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14545
14546         * doc/sdccman.lyx: various additions and updates. Rearranged sections
14547
14548 2003-08-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14549
14550         Z80 and MCS51 linkers complaint if a public symbol is defined
14551         in more than one library module:
14552
14553         * as/mcs51/lklib.c
14554         * link/z80/lklib.c
14555         * as/mcs51/Makefile.in
14556
14557 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14558
14559         A few small changes that speed up the peephole optimizer.
14560
14561         * src/SDCCpeeph.c
14562
14563 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14564
14565         Try to make the peephole optimizer smarter by maintaining
14566         an association between the assembly source code and the
14567         iCodes that originated them. Put this information to use
14568         with a new peephole rule condition "notVolatile" so that
14569         the rules can be aggressive yet still safe.
14570
14571         * src/SDCCpeeph.c
14572         * src/SDCCpeeph.h
14573         * src/mcs51/gen.c
14574         * src/mcs51/peeph.def
14575
14576 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14577
14578         Fixed bug #741761
14579
14580         * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
14581         * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
14582         if the left or right operand symbols have the accuse flag set.
14583
14584 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14585
14586         Changed the type of the result of the ! (NOT) operator to char;
14587         previously it returned the same type as the source. This allows
14588         us to eliminate all the genFloatNot functions (all of its target
14589         implementations were very buggy) since !float can use the same
14590         code as !long now.
14591
14592         * src/SDCCicode.c (ast2iCode): ! returns char
14593         * src/mcs51/gen.c (genNot, genNotFloat),
14594         * src/ds390/gen.c (genNot, genNotFloat),
14595         * src/z80/gen.c (genNot, genNotFloat),
14596         * src/pic/gen.c (genNot, genNotFloat),
14597         * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
14598
14599 2003-08-19  Bernhard Held <bernhard AT bernhardheld.de>
14600
14601         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
14602         1. Interrupt would not compile properly. Ensure PCLATH register is saved
14603            during interrupts. Ensure WSAVE is located at a shared bank address.
14604         2. Fixed page selection in some places
14605         3. Fixed BTFSS/C to where necessary use registers directly and not simply
14606            the registers name strings.
14607         4. Fixed "signed / unsigned compare" compiler warnings.
14608         5. The PIC port manages its own allocation of the general purpose
14609            registers, but makes no attempt to reuse them. As a result when
14610            compiling it soon runs out of general purpose registers. Some
14611            additional code was added to the files pcode.c and device.c to walk
14612            through the function call tree and rename the registers so that they
14613            get reused.
14614
14615         * src/pic/device.c
14616         * src/pic/gen.c
14617         * src/pic/glue.c
14618         * src/pic/pcode.c
14619         * src/pic/pcode.h
14620         * src/pic/ralloc.c
14621         * src/pic/ralloc.h
14622         * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
14623         genPlus() & genMinus() when the result is the same as left or right
14624
14625 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14626
14627         * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
14628
14629 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14630
14631         Made bitfield a distinct type from bit so that bitfields
14632         convert as per ANSI C and bits retain their traditional
14633         boolean style behaviour. Implemented bitfield support in
14634         the z80 port.
14635
14636         * src/SDCCsymt.h,
14637         * src/SDCCsymt.c,
14638         * src/SDCCast.c,
14639         * src/cdbFile.c,
14640         * src/mcs51/gen.c,
14641         * src/ds390/gen.c: bit v bitfield split
14642         * src/z80/gen.c: New support for bitfields
14643         * support/regression/tests/bitfields.c: reenabled z80,
14644         added more tests
14645
14646 2003-08-17  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14647
14648         Rules 246.x, 247.x relate to bitfields, the others speed up
14649         access to xdata mapped I/O devices.
14650
14651         * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
14652
14653 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14654
14655         Cleaned up genPackBits and genUnpackBits and added two helper
14656         functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
14657         for literal assignments in genPackBits (thanks to Frieder for
14658         reminding me).
14659
14660         * src/mcs51/gen.c
14661         * src/ds390/gen.c
14662
14663 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14664
14665         Fixed bug #748310 (pointer to function type mishandled when the
14666         function name is omitted). Also fixed a SIGSEGV when a function
14667         attribute (reentrant, etc) is used on a non-function or on a
14668         function but misplaced before the parameter list.
14669
14670         * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
14671         bug #748310
14672         * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
14673         * support/Util/SDCCerr.h,
14674         * support/Util/SDCCerr.c: Added func attr misuse error msg
14675
14676 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
14677
14678         Fixed bug #787649 by anonymous
14679         * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
14680         * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
14681
14682 2003-08-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14683
14684         Fixed numerous bitfield problems.
14685
14686         * src/SDCC.y: More bitfield related error checking
14687         * src/SDCCsymt.h,
14688         * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
14689         * support/Util/SDCCerr.h,
14690         * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
14691         * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
14692         * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
14693         * support/regression/tests/bitfields.c: tests added
14694
14695 2003-08-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14696
14697         Made the constant following the "interrupt" keyword optional. If
14698         omitted, the function will not automatically be given an entry
14699         in the interrupt vector table (similar to #pragma NOIV, but
14700         less syntacticly kludgy). The interrupt number is also now
14701         range checked. Also fixed a bug in the high order bit example
14702         in the manual.
14703
14704         * src/SDCC.y
14705         * src/SDCCmem.c
14706         * src/SDCCglue.c
14707         * src/SDCCsymt.h
14708         * support/Util/SDCCerr.c
14709         * support/Util/SDCCerr.h
14710         * doc/sdccman.lyx
14711
14712 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
14713
14714         * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
14715         * src/SDCCicode.c (operandOperation): rewritten some ops
14716         (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
14717         * src/SDCCsymt.c (computeType): literals are handled the same way as any
14718         other type
14719         * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
14720         be re-activated by defining REDUCE_LITERALS)
14721         * src/SDCCval.c (constVal): fixed; hex and octal constants can be
14722         unsigned, but are signed by default
14723         * src/SDCCval.c (constVal): rearranged
14724         * src/SDCCval.c (valMod): preliminary fix
14725         * src/SDCCval.c (valCastLiteral): use TYPE_* types
14726         * support/regression/literalop.c: added, work in progress
14727
14728 2003-08-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14729
14730         Generate warnings for useless declarations like "char data;"
14731         that don't do what new users expect.
14732
14733         * src/SDCC.y
14734         * support/Util/SDCCerr.h
14735         * support/Util/SDCCerr.c
14736
14737 2003-08-09  Bernhard Held <bernhard AT bernhardheld.de>
14738
14739         * src/SDCCval.c (valMult): fix overflow detection of negative int
14740
14741 2003-08-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14742
14743         * src/z80/ralloc.c (joinPushes): made compatible with new signedness
14744
14745         Changes to support big endian targets:
14746
14747         * src/ports.h
14748         * src/SDCCglue.c
14749         * src/avr/main.c
14750         * src/ds390/main.c
14751         * src/izt/i186.c
14752         * src/mcs51/main.c
14753         * src/pic/main.c
14754         * src/pic16/main.c
14755         * src/xa51/main.c
14756         * src/z80/main.c
14757
14758 2003-08-06  Bernhard Held <bernhard AT bernhardheld.de>
14759
14760         * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
14761         * device/lib/time.c: fixed warning "integer overflow in expression"
14762
14763 2003-08-05  Bernhard Held <bernhard AT bernhardheld.de>
14764
14765         * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
14766         * src/SDCCval.c (constVal): changed default to signed; hex and octal
14767         constants are unsigned; added recognition of "u" flag for unsigned
14768         * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
14769         * src/SDCCval.c (valDiv, valMod): fixed signdness
14770         * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
14771         signedness of modulo, left and right shift
14772         * support/Util/SDCCerr.c: added warning "integer overflow in expression"
14773         * support/Util/SDCCerr.h: added warning W_INT_OVL
14774         * src/SDCCast.c (decorateType): fixed gcc3.3 warning
14775         * src/SDCCast.c (ast_print): improved output of constants
14776
14777 2003-08-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14778
14779         Fixed some warnings when building with MSVC:
14780
14781         * as/mcs51/asdata.c
14782         * as/z80/asdata.c
14783         * as/mcs51/asm.h
14784         * as/z80/asm.h
14785         * link/z80/aslink.h
14786         * link/z80/lkdata.c
14787         * link/z80/lkeval.c
14788         * link/z80/lkgb.c
14789         * link/z80/lkihx.c
14790         * link/z80/lks19.c
14791         * link/z80/lksym.c
14792         * support/cpp2/cpplib.c
14793         * src/ds390/gen.c
14794         * src/mcs51/gen.c
14795
14796 2003-08-03  Bernhard Held <bernhard AT bernhardheld.de>
14797
14798         * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
14799
14800 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14801
14802         * support/librarian/clean.mk: Do not remove Makefile.
14803         * support/librarian/Makefile: added.
14804
14805 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14806
14807         Added librarian to MSVC build:
14808         * all.dsp
14809         * sdcc.dsw
14810         * support/librarian/librarian.dsp
14811
14812         'configure' not needed for librarian, removed:
14813         * support/librarian/configure
14814         * support/librarian/configure.in
14815         * support/librarian/config_in.h
14816         * support/librarian/Makefile.in
14817
14818         Hopefully these ones built the librarian and the rest of sdcc properly:
14819         * Makefile
14820         * Makefile.common.in
14821
14822         Messed up 'configure', so revert to previous version:
14823         * configure
14824         * configure.in
14825
14826 2003-07-31  Bernhard Held <bernhard AT bernhardheld.de>
14827
14828         * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
14829         there, while the mantissa of a double is "only" 53 bits wide.
14830
14831 2003-07-31  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14832
14833         Adding sdcclib to the build.  MSVC project coming soon.
14834         Files added/changed:
14835
14836         * support/librarian/clean.mk
14837         * support/librarian/configure
14838         * support/librarian/configure.in
14839         * support/librarian/config_in.h
14840         * support/librarian/Makefile.bcc
14841         * support/librarian/Makefile.in
14842         * support/librarian/sdcclib.c
14843         * Makefile.bcc
14844         * Makefile
14845         * Makefile.common.in
14846         * configure
14847         * configure.in
14848
14849 2003-07-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14850
14851         Linker now complaints if linked modules have conflicting options, for
14852         example, one compiled using --model-large and another one compiled with
14853         --model-small.  The following files were modified:
14854
14855         * as/mcs51/asdata.c
14856         * as/mcs51/aslink.h
14857         * as/mcs51/asm.h
14858         * as/mcs51/asmain.c
14859         * as/mcs51/asout.c
14860         * as/mcs51/i51pst.c
14861         * as/mcs51/lkdata.c
14862         * as/mcs51/lklibr.c
14863         * as/mcs51/lkmain.c
14864         * as/z80/asdata.c
14865         * as/z80/asm.h
14866         * as/z80/asmain.c
14867         * as/z80/asout.c
14868         * as/z80/z80pst.c
14869         * link/z80/aslink.h
14870         * link/z80/lkdata.c
14871         * link/z80/lklibr.c
14872         * link/z80/lkmain.c
14873         * src/SDCCglue.c
14874
14875 2003-07-28  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14876
14877         *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
14878         as/mcs51/lklibr.c: Generate a warning when a library is not found.
14879
14880 2003-07-28  Bernhard Held <bernhard AT bernhardheld.de>
14881
14882         * src/z80/mappings.i: fix _mul[us][int,long] entries
14883
14884 2003-07-26  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14885
14886         *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
14887
14888 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
14889
14890         * src/SDCCicode.c (operandOperation): really fixed problem with bitops
14891         * support/regression/tests/bitopcse.c: added
14892         fixed warning:
14893         * src/avr/gen.c:
14894         * src/pic/gen.c:
14895         * src/pic16/gen.c:
14896         * src/z80/gen.c:
14897         * src/xa51/gen.c:
14898
14899 2003-07-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14900
14901         added support for new library format to z80, gbz80 linkers:
14902         *link/z80/aslink.h
14903         *link/z80/lklex.c
14904         *link/z80/lklib.c
14905         *link/z80/lklist.c
14906
14907 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
14908
14909         * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
14910         after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
14911
14912 2003-07-23  Bernhard Held <bernhard AT bernhardheld.de>
14913
14914         added DUMMY_READ_VOLATILE:
14915         * src/SDCC.y:
14916         * src/avr/gen.c:
14917         * src/xa51/gen.c:
14918         * src/z80/gen.c:
14919         * src/pic/gen.c:
14920         * src/pic16/gen.c:
14921         * src/mcs51/gen.c:
14922         * src/ds390/gen.c:
14923         * src/SDCCcse.c (algebraicOpts): many improvements
14924         * src/SDCCcse.h: removed algebraicOpts()
14925         * src/SDCCicode.c (picDummyRead): added
14926
14927 2003-07-23  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14928
14929         * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
14930         "Insufficient space in data memory".
14931
14932 2003-07-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14933
14934         * src/mcs51/gen.c: fixed bug #771358
14935         * src/z80/gen.c: fixed bug #759087
14936
14937 2003-07-20  Bernhard Held <bernhard AT bernhardheld.de>
14938
14939         * src/pic16/glue.c: minor cleanup by Vangelis
14940
14941 2003-07-19  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14942
14943         * device/include/regc515c.h: fixed #758477
14944         * device/lib/_gptrget.c: saving some cycles in generic pointer get
14945         * device/lib/_gptrput.c: saved a few bytes
14946         * my tab spacing is 8, yours too?)
14947         * device/lib/_ser.c: process RX bytes earlier than TX bytes
14948         * device/lib/serial.c: process RX bytes earlier than TX bytes
14949         * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
14950
14951 2003-07-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14952
14953         * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
14954
14955 2003-07-17  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14956
14957         * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
14958
14959 2003-07-17  Bernhard Held <bernhard AT bernhardheld.de>
14960
14961         * device/lib/Makefile.in: bad fix, reverted to 1.43
14962
14963 2003-07-16  Bernhard Held <bernhard AT bernhardheld.de>
14964
14965         * device/lib/Makefile.in: added missing z80 object files
14966
14967 2003-07-14  Bernhard Held <bernhard AT bernhardheld.de>
14968
14969         * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
14970         pic16 progress by Vangelis:
14971         * src/SDCCglobl.h:
14972         * src/SDCCmain.c:
14973         * src/pic/Makefile:
14974         * src/pic:
14975         * pic/Makefile:
14976         * pic16/device.c:
14977         * pic16/device.h:
14978         * pic16/gen.c:
14979         * pic16/gen.h:
14980         * pic16/genarith.c:
14981         * pic16/glue.c:
14982         * pic16/main.c:
14983         * pic16/pcode.c:
14984         * pic16/pcode.h:
14985         * pic16/pcodepeep.c:
14986         * pic16/peeph.def:
14987
14988 2003-07-13  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14989
14990         * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
14991
14992 2003-07-12  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14993
14994         * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
14995         added gbz80 build to MSVC project.
14996         * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
14997         link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
14998         from 8051 stuff and setup so it links using a .lnk file.
14999
15000 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15001
15002         * support/librarian/sdcclib.c: sdcc librarian.
15003         * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
15004         with sdcclib.
15005
15006 2003-07-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15007
15008         * as/mcs51/lkmain.c: properly handle extensions in function afile.
15009
15010 2003-07-02  Borut Razem <borut.razem AT siol.net>
15011
15012         * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
15013         src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
15014         src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
15015         src/xa51/main.c, src/z80/main.c:
15016         virtualization of glue() function: each port has it's own glue function,
15017         which is accessed by do_glue function pointer in PORT.general structure
15018
15019 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
15020
15021         * DS800C400 fun, improved ROM interface and tinibios.
15022
15023 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
15024
15025         * More support for DS80C400. Now includes beginning of interface to ROM.
15026
15027 2003-06-25  Bernhard Held <bernhard AT bernhardheld.de>
15028
15029         * src/mcs51/gen.c (gencjneshort): fixed bug #760345
15030
15031 2003-06-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15032
15033         * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
15034
15035 2003-06-19  Borut Razem <borut.razem AT siol.net>
15036
15037         * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
15038
15039 2003-06-19  Borut Razem <borut.razem AT siol.net>
15040
15041         * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
15042         fixed Z80 port - crt0.o: cannot open.
15043
15044 2003-06-19  Bernhard Held <bernhard AT bernhardheld.de>
15045
15046         * support/Util/MySystem.c (merge_command): revert bad fix
15047
15048 2003-06-18  Borut Razem <borut.razem AT siol.net>
15049
15050         * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
15051
15052 2003-06-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15053
15054         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
15055         option --use-stdout sends errors to stdout instead of stderr.
15056
15057 2003-06-18  Bernhard Held <bernhard AT bernhardheld.de>
15058
15059         * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
15060
15061 2003-06-15  Borut Razem <borut.razem AT siol.net>
15062
15063         * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
15064         * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
15065         * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
15066         fixed width array of pointers replaced with sets;
15067         multiple include and lib paths ared transferred to preprocessor and linker
15068         * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
15069         * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
15070         fixed width array of pointers
15071         * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
15072         removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
15073         fixupPath(), getPathDifference()
15074         * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function  inExcludeList() by using sets instead
15075         fixed width array of pointers
15076
15077 2003-06-11  Bernhard Held <bernhard AT bernhardheld.de>
15078
15079         * src/pic16/ralloc.c: fix warnings
15080         * src/pic16/pcode.c: fix warning
15081
15082 2003-06-10  Scott Dattalo  <scott AT dattalo.com>
15083
15084          Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
15085         know all the details, but essentially this set of changes enable
15086         the pic16 port to generate movff instructions and generate assembler
15087         directives,
15088         * src/SDCCmain.c:
15089         * src/pic16/gen.c:
15090         * src/pic16/glue.c:
15091         * src/pic16/pcode.c:
15092         * src/pic16/device.c:
15093         * src/pic16/main.c:
15094         * src/pic16/pcode.h:
15095         * src/pic16/pcoderegs.c:
15096         * src/pic16/ralloc.c:
15097         * src/pic16/ralloc.h:
15098
15099 2003-06-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15100
15101         * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
15102         added option --vc, so sdcc errors and warnings are compatible with
15103         Microsoft Visual Studio.
15104
15105 2003-06-07  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15106
15107         * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
15108           device/lib/libfloat.lib: added atof function.
15109
15110 2003-06-04  Bernhard Held <bernhard AT bernhardheld.de>
15111
15112         * doc/sdccman.lyx: updated to Lyx 1.3
15113         * doc/cdbfileformat.lyx: updated to Lyx 1.3
15114         * doc/test_suite_spec.lyx: updated to Lyx 1.3
15115         * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
15116
15117 2003-06-03  Bernhard Held <bernhard AT bernhardheld.de>
15118
15119         * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
15120
15121 2003-06-02  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15122
15123         * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
15124           additions to the "related tools/documentation" section
15125
15126 2003-06-02  Bernhard Held <bernhard AT bernhardheld.de>
15127
15128         * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
15129
15130 2003-05-29  Bernhard Held <bernhard AT bernhardheld.de>
15131
15132         * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
15133         * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
15134
15135 2003-05-28  Bernhard Held <bernhard AT bernhardheld.de>
15136
15137         * doc/sdccman.lyx: fix double dash and other minor things
15138         * doc/Makefile: fix double dash
15139
15140 2003-05-28  Karl Bongers(patches from Martin Helmling)
15141         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
15142           condition and ignore commands.
15143
15144 2003-05-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15145
15146         * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
15147           is in parts still quite out of date, I did changes as far as I felt makes sense
15148           for a non-native english speaker.
15149           Please feel free to add to the manual or to correct my changes.
15150         * doc/Makefile: undid touching the date of intermediate tex files.
15151
15152 2003-05-26  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15153
15154         * doc/sdccman.lyx: Manual has an index now
15155
15156 2003-05-25  Bernhard Held <bernhard AT bernhardheld.de>
15157
15158         Finalize muluint/mulsint and mululong/mulslong merging:
15159         * device/lib/_mulint.c
15160         * device/lib/_mullong.c
15161         * device/lib/gbz80/mul.s
15162         * device/lib/gbz80/stubs.s
15163         * device/lib/z80/mul.s
15164         * device/lib/z80/stubs.s
15165         * src/SDCCsymt.c (initCSupport)
15166
15167 2003-05-25  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15168
15169         * as/mcs51/lkaomf51.c: Address space 'z' was missing.
15170         * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
15171           src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
15172           src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
15173           instead of /Zm500.
15174
15175 2003-05-25  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15176
15177         * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
15178           the regression tests I'm not brave enough to enable 245.b, 245.c
15179         * doc/sdccman.lyx: added latex preamble for hyperref package.
15180           Using pdflatex this will give you a hyperlinked pdf file with
15181           bookmarks. (prepend '%' before /usepackage if this breaks something)
15182
15183 2003-05-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15184
15185          * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
15186
15187 2003-05-22  Bernhard Held <bernhard AT bernhardheld.de>
15188
15189         * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
15190
15191 2003-05-21    <johan AT balder>
15192
15193         * src/SDCCglue.c (printIval): fixed bug #739934
15194
15195 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
15196
15197         Applied patch from bug 737905 (renamed yylineo to mylineno):
15198         * src/altlex.c
15199         * src/SDCCast.c
15200         * src/SDCglobl.h
15201         * src/SDCC.lex
15202         * src/SDCCsymt.c
15203         * src/SDCCval.c
15204         * src/pic16/pcode.c: Cleaned warnings
15205         * src/pic16/pcodeflow.c: Cleaned warnings
15206         * src/pic16/pcoderegs.c: Cleaned warnings
15207
15208 2003-05-19  Scott Dattalo  <scott AT dattalo.com>
15209
15210         * src/pic16/pcode.c: Cleaned warnings
15211         * src/pic16/pcodepeep.c: Cleaned warnings
15212         * src/pic16/ralloc.c: Cleaned warnings
15213
15214 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
15215
15216         * doc/sdccman.lyx: fixed bug 739745
15217         * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
15218
15219 2003-05-18  Bernhard Held <bernhard AT bernhardheld.de>
15220
15221         * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
15222         it can be defined with CFLAGS when running configure
15223         * src/SDCCmain.c: fixed compiling + linking with object files
15224
15225 2003-05-18  Vangelis Rokas (vrokas AT otenet.gr)
15226
15227         * configure.in: configure for pic16 port,
15228             added --disable-pic16-port
15229         * sdccconf_in.h: added macro OPT_DISABLE_PIC16
15230         * src/SDCCmain.c: linkOptions is changed to set *,
15231             added if/endif conditional macros to remove options help
15232             messages from optionsTable when a port is not configured, added
15233             support for the PIc16 port in the ports table, when executing
15234             the compiler with no port specified on command line, a default
15235             port is selected with the new macro DEFAULT_PORT which is
15236             defined in port.h, in setDefaultOptions() linkOptions is removed
15237             from initialization assignment, since now it is a set,
15238             parseCmdLine uses setParseWithComma for linkOptions, in
15239             linkEdit() linkOptions are accessed with new function indexSet()
15240             which returns the i'th item of a set variable. See SDCCset.c, in
15241             linkEdit() when calling buildCmdLine(), added linkOptions as
15242             last argument. Now users can pass arguments to gplink via the
15243             -Wl option, main() uses pic16glue() to glue up pic16 programs
15244         * src/SDCCpeeph.c: various changes to support pic16
15245         * src/SDCCset.c: added function  void *indexSet(set *, int)  to
15246             return the i'th item of the set
15247         * src/SDCCset.h: added function prototype for indexSet()
15248         * src/SDCCsymt.c: in checkSClass(), added support for PIC16
15249         * src/clean.mk: added pic16 in CLEANALLPORTS variable
15250         * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
15251             added macro DEFAULT_PORT
15252         * src/pic/main.c: corrected arguments of gplnk in _linkCmd
15253         * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
15254             generated
15255         * src/pic16/glue.c: commented out some error producing lines
15256         * src/pic16/main.c: __config directives are commented out to stop
15257             gpasm complaining and test the linkage with gplink, _linkCmd and
15258             _asmCmd changed to be more gplink and gpasm friendly
15259         * src/pic16/peeph.def: peep rule 3 is commented out, since it
15260             produced an error when parsed, peep rule 12 is added to utilize
15261             movff, but it is commented out since the pCode does not support
15262             yet a command with 2 address arguments
15263
15264 2003-05-18    <johan AT balder>
15265
15266         * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
15267         * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
15268 2003-05-17  Karl Bongers(apply patches from Martin Helmling)
15269
15270         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
15271         Added feature to script commands from file.
15272
15273 2003-05-14  Bernhard Held <bernhard AT bernhardheld.de>
15274
15275         * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
15276         * src/SDCCutil.c: include ctype.h for win32
15277
15278 2003-05-13  Bernhard Held <bernhard AT bernhardheld.de>
15279
15280         * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
15281
15282 2003-05-12  Karl Bongers(apply development patches from Martin Helmling)
15283
15284         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
15285         Fixed so you can set breakpoints prior to run, run does not stop
15286         on entry now.  Add tbreak.  Other enhancements and fixes for use
15287         with ddd.
15288
15289 2003-05-12  Borut Razem <borut.razem AT siol.net>
15290
15291         * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
15292
15293 2003-05-11  Borut Razem <borut.razem AT siol.net>
15294
15295         * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
15296         the path of bin directory, so that PATH is the only env. variable, which has to be set
15297         in case of standard installation.
15298         * src/ds390/ds390.dsp: increased value of /Zm option to 1000
15299         * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
15300         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
15301
15302 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
15303
15304         * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
15305         * support/regression/Makefile: inter-port-clean is no longer nesessary, the
15306         temp files are in the port dir; clean the gen/test directory when
15307         generating new test.c
15308         * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
15309         * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
15310         * support/regression/tests/zeropad.c: added
15311
15312 2003-05-09    <johan AT balder>
15313
15314         * src/SDCCglue.c: fixed bug #597940
15315
15316 2003-05-05  Karl Bongers(apply patches from Martin Helmling)
15317
15318         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
15319         cache sfr, optimize next,step, fix off by one sourceline,
15320         support ddd list function.
15321         * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
15322
15323 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
15324
15325         * support/regression/HTMLgen.py: added compare_s2f()
15326         * support/regression/Makefile: redo 1.27
15327         * support/regression/generate-cases.py: redo 1.5
15328
15329 2003-04-30  Bernhard Held <bernhard AT bernhardheld.de>
15330
15331         * support/regression/tests/float.c: workaround 33 bit hex constant
15332         * support/regression/tests/simplefloat.c: fix division for host
15333
15334 2003-04-29  Scott Dattalo  <scott AT dattalo.com>
15335
15336         * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
15337         that tame's the PIC's over-aggressive optimizer.
15338
15339 2003-04-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15340
15341          * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
15342          support for MSVC.
15343
15344 2003-04-29  Kevin Vigor <kevin AT vigor.nu>
15345
15346         Initial support for DS80C400. "Hello world" runs on TINIm400
15347         (with polled I/O).
15348
15349 2003-04-28  Karl Bongers(apply patches for Martin Helmling)
15350
15351          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
15352          * Some notes on ddd usage added in debugger/README
15353          Martin Helmling adding more features and fixes for ddd GUI debugger.
15354          Code added for nexti, stepi, up, down, and other adjustments.
15355
15356 2003-04-28  Scott Dattalo  <scott AT DATTALO.COM>
15357
15358         * src/pic/pCodepeep.c non-wildcard asmops are now handled
15359         * src/pic/peeph.def Added two rules to optimize carry manipulation
15360         * src/pic/* removed debug printfs
15361
15362 2003-04-28  Bernhard Held <bernhard AT bernhardheld.de>
15363
15364         * debugger/mcs51/cmd.c: added header newalloc.h
15365
15366 2003-04-26  Bernhard Held <bernhard AT bernhardheld.de>
15367
15368         * as/Makefile: new EXEEXT
15369         * as/z80/Makefile: remove trailing slash of BUILDIR
15370         * as/z80/clean.mk: new EXEEXT
15371         * Makefile.common.in: add to CFLAGS (and others), don't replace it
15372         * support/cpp2/Makefile.in: new EXEEXT
15373         * src/pic/glue.c (pic14emitRegularMap): fixed warning
15374
15375 2003-04-24  Bernhard Held <bernhard AT bernhardheld.de>
15376
15377         Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
15378         EXEEXT was introduced to fix all related problems with targets
15379         "clean", "install" and "uninstall"; a couple of further flaws
15380         especially with "clean" have been fixed too
15381         * as/mcs51/Makefile.in
15382         * as/mcs51/clean.mk
15383         * as/z80/Makefile
15384         * Makefile
15385         * clean.mk
15386         * debugger/mcs51/Makefile.in
15387         * debugger/mcs51/clean.mk
15388         * link/z80/Makefile
15389         * link/z80/Makefile.in
15390         * link/z80/clean.mk
15391         * link/Makefile
15392         * packihx/Makefile.in
15393         * packihx/clean.mk
15394         * sim/ucsim/Makefile
15395         * sim/ucsim/clean.mk
15396         * sim/ucsim/avr.src/Makefile.in
15397         * sim/ucsim/avr.src/clean.mk
15398         * sim/ucsim/s51.src/Makefile.in
15399         * sim/ucsim/s51.src/clean.mk
15400         * sim/ucsim/xa.src/Makefile.in
15401         * sim/ucsim/xa.src/clean.mk
15402         * sim/ucsim/z80.src/Makefile.in
15403         * sim/ucsim/z80.src/clean.mk
15404         * sim/ucsim/main_in.mk
15405         * sim/ucsim/packages_in.mk
15406         * sim/ucsim/gui.src/Makefile.in
15407         * sim/ucsim/gui.src/serio.src/Makefile.in
15408         * sim/ucsim/gui.src/serio.src/clean.mk
15409         * src/Makefile.in
15410         * src/clean.mk
15411         * support/cpp2/Makefile.in
15412         * support/cpp2/clean.mk
15413         * support/makebin/Makefile
15414         * support/makebin/clean.mk
15415         * support/scripts/sdcc_mingw32: --program-suffix no longer needed
15416         * doc/sdccman.lyx: --program-suffix no longer needed
15417
15418 2003-04-23  Karl Bongers(apply patches for Martin Helmling)
15419
15420          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
15421          Martin Helmling added support for ddd GUI debugger.
15422          Code added to display assembly, set variables, and other commands
15423          to interface to ddd.
15424
15425 2003-04-23  Bernhard Held <bernhard AT bernhardheld.de>
15426
15427         * as/Makefile: fix target clean
15428         * as/clean.mk: fix target clean
15429         * as/z80/clean.mk: fix target clean
15430
15431 2003-04-22  Bernhard Held <bernhard AT bernhardheld.de>
15432
15433         * Makefile.common.in: added  AT EXEEXT AT
15434         * configure.in: removed all mingw32 stuff
15435         * configure: rebuilt from configure.in
15436         * doc/sdccman.lyx: updated section "installation"
15437         * support/scripts/sdcc_mingw32: adapted to configure
15438         * support/scripts/sdcc_cygwin_mingw32: added
15439
15440 2003-04-22  Scott Dattalo  <scott AT dattalo.com>
15441
15442         * src/pic Added object file support for the PIC port
15443         * src/pic Applied patch from Craig Franklin (this started the object file support)
15444         * src/regression Updated the PIC regression tests for object files
15445
15446 2003-04-20  Borut Razem <borut.razem AT siol.net>
15447
15448         * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
15449           lklex.c: In function `getfid':
15450           lklex.c:203: warning: array subscript has type `char'
15451         * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
15452           with MSVC with global optimization enabled (probably an cl compiler bug ;-)
15453         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
15454           stack handling macros
15455
15456 2003-04-19  Borut Razem <borut.razem AT siol.net>
15457
15458         * "handling space characters in file path" task:
15459         * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
15460         * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
15461         * support/Util/MySystem.h: make it self-sufficient
15462         * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
15463           src/z80/main.c, sdcc/as/mcs51/lklex.c:
15464           handling space characters in file path
15465         * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
15466           (it will be used by assemblers, which have their own includes, e.g. gpasm)
15467         * support/Util/MySystem.c: handling space characters in executable's path
15468
15469 2003-04-19  Bernhard Held <bernhard AT bernhardheld.de>
15470
15471         * as/z80/Makefile: fix permanent rebuild of z80
15472         * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
15473         * support/regression/tests/bitfields.c: added Johan's bitfields.c
15474
15475 2003-04-18      Kevin Vigor <kevin AT vigor.nu>
15476
15477         * src/SDCCopt.c: add special case optimization to replace modulo by
15478           a power of two with a bitwise AND.
15479
15480 2003-04-18    <johan AT balder>
15481
15482         * src/mcs51/gen.c (getFreePtr): fixed bug #635354
15483
15484 2003-04-17    <johan AT balder>
15485
15486         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
15487         * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
15488
15489 2003-04-13  Borut Razem <borut.razem AT siol.net>
15490
15491         * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
15492         * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
15493           fixed mingw problem in adl_NORMALIZE_PATH
15494
15495 2003-04-12  Borut Razem <borut.razem AT siol.net>
15496
15497         * fixed "#pragma SAVE/RESTORE can not be nested":
15498         * src/SDCC.lex: reworked pragma handling functions
15499         * sdcc/src/SDCCglobl.h: reworked stack handling macros
15500         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
15501
15502 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
15503
15504         * src/SDCCutil.c (pathEquivalent): defined but not used
15505         * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
15506         * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
15507         * configure: rebuilt from configure.in
15508         * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
15509         * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
15510         * device/include/Makefile.in: replace sdcc_datadir
15511         * device/lib/Makefile.in: replace sdcc_datadir
15512         * Makefile.common.in: add LDFLAGS from configure
15513         * packihx/Makefile.in: use LDFLAGS
15514         * src/Makefile.in: use LDFLAGS
15515         * support/cpp2/Makefile.in: add LDFLAGS from configure
15516         * support/makebin/Makefile: use LDFLAGS
15517         * .version: bumped version number to 2.3.5
15518
15519 2003-04-12  Borut Razem <borut.razem AT siol.net>
15520
15521         * completed "different paths" task:
15522         * src/SDCCmacro.c: fixed bug in handling quotes
15523         * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
15524         * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
15525
15526 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
15527
15528         * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
15529
15530 2003-04-11 kevin Vigor <kevin AT vigor.nu>
15531
15532         * ds390/gen.c ds390/peeph.def: fix bug 706781
15533
15534 2003-04-11  Borut Razem <borut.razem AT siol.net>
15535
15536         * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
15537
15538 2003-04-10  Scott Dattalo  <scott AT dattalo.com>
15539
15540         * src/pic/* Applied the pointer-to-function patch from Steve Tell.
15541         * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
15542          set - this bit used to not be set...).
15543         * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
15544           bad code in PIC Port
15545         * src/regression/and2.c added to test bug 609268
15546         * src/regression/Makefile added and2.c to regression test
15547
15548
15549 2003-04-08    <johan AT CP255758-A>
15550
15551         * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
15552         * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
15553         * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
15554
15555 2003-04-07  Bernhard Held <bernhard AT bernhardheld.de>
15556
15557         * configure.in: fully support prefix, exec_prefix, datadir, docdir;
15558         fix bug #487815
15559         * support/cpp2/Makefile.in: fix bug #487815
15560         * configure: rebuilt from configure.in
15561         * Makefile.common.in: docdir changed, new path suffixes
15562         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
15563         * sdcc_vc_in.h: reflect changes from sdccconf.h
15564         * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
15565         * src/SDCCutil.h: remove BINDIR hack
15566         * doc/sdccman.lyx: update new path hierarchy
15567
15568 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
15569
15570         * src/SDCCpeeph.c: added okToRemoveSLOC test
15571
15572 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
15573
15574         * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
15575
15576 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
15577
15578         * src/SDCCpeeph.c: added labelIsReturnOnly test
15579         * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
15580
15581 2003-04-05    <johan AT balder>
15582
15583         * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
15584         * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
15585         * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
15586         * src/SDCCast.c: fixed a warning
15587         * src/SDCCast.h: fixed a warning
15588         * src/SDCCicode.c (operandFromAst): fixed a warning
15589
15590 2003-04-04    <johan AT balder>
15591
15592         * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
15593         * src/SDCCast.c (decorateType): fixed bug #715076
15594         * src/SDCC.y: fixed bug #702907
15595
15596 2003-04-03    <johan AT balder>
15597
15598         * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
15599         * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
15600         * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
15601         * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
15602         * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
15603
15604 2003-04-03  Bernhard Held <bernhard AT bernhardheld.de>
15605
15606         * _decdptr.c: fix return values
15607         * _gptrget.c: fix return values
15608         * _gptrgetc.c: fix return values
15609         * _gptrput.c: fix return values
15610         * _mulint.c: fix return values
15611         * as/z80/Makefile: fix 'make -j' problem
15612
15613 2003-04-02  Bernhard Held <bernhard AT bernhardheld.de>
15614
15615         * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
15616         * configure.in: big cleanup, updated to autoconf 2.5x
15617         * configure: rebuilt from configure.in
15618         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
15619         * sdcc_vc_in.h: reflect changes from sdccconf.h
15620         * doc/Makefile: fixed a flaw in "make install"
15621
15622 2003-04-02    <johan AT balder>
15623
15624         * src/ds390/gen.c (genCmp): no comments
15625         * src/mcs51/gen.c (genCmp): no comments
15626         * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
15627         * src/SDCCast.c (ast_print): fixed the function type in --dumptree
15628
15629 2003-04-01  Bernhard Held <bernhard AT bernhardheld.de>
15630
15631         * support/regression/generate-cases.py: place generated file in given sub directory
15632         * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
15633         * support/regression/Makefile: improvements for 'make -j';
15634         side effect: it's simpler and faster now
15635
15636 2003-03-31  Borut Razem <borut.razem AT siol.net>
15637
15638         * src/z80/main.c: link-{port} and as-{port} defined without path
15639         * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
15640
15641 2003-03-31  Bernhard Held <bernhard AT bernhardheld.de>
15642
15643         * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
15644
15645 2003-03-30  Borut Razem <borut.razem AT siol.net>
15646
15647         * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
15648           changed type of list parameter to set
15649         * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
15650         * src/port.h: changed type of do_assemble() parameter to set
15651         * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
15652           sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
15653           definition of "cppoutfilename" macro with NULL value in preProcess()
15654         * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
15655         * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
15656         * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
15657           replaced with set *binPathSet
15658         * shash_add() deallocates the item, if allready exsists, before adding the new one
15659         * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
15660
15661 2003-03-30  Scott Dattalo  <scott AT dattalo.com>
15662
15663         * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
15664           a nested for loop bug in the PIC port
15665         * src/regression/nestfor.c: new regression test file Steve wrote to test nested
15666           for loops
15667
15668 2003-03-29  Bernhard Held <bernhard AT bernhardheld.de>
15669
15670         * support/Util/dbuf.h: remove C++ stuff to make it portable
15671
15672 2003-03-28  Borut Razem <borut.razem AT siol.net>
15673
15674         * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
15675           literal strings in stringLiteral()
15676         * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
15677         * src/Makefile.bcc, src/Makefile.in, src/src.dsp: added support/Util/dbuf.c
15678           to the project
15679
15680 2003-03-27  Paul Stoffregen <paul AT pjrc.com>
15681
15682         * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
15683
15684 2003-03-26    <johan AT balder>
15685
15686         * src/mcs51/gen.c (saveRegisters): catched symbol abuse
15687         * src/ds390/gen.c (saveRegisters): catched symbol abuse
15688         * src/SDCCast.c (decorateType): fixed " -v < 3"
15689
15690 2003-03-23  Bernhard Held <bernhard AT bernhardheld.de>
15691
15692         * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
15693         Added Lenny Story's debug infrastructure changes:
15694         * src/Makefile.in:  added new files cdbFile.c and SDCCdebug.c
15695         * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
15696         * src/cdbFile.c: added
15697         * src/SDCCdebug.c: added
15698         * src/SDCCdebug.h: added
15699         * src/SDCCast.c (createFunction)
15700         * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
15701         * src/SDCCmain.c (parseCmdLine, main)
15702         * src/SDCCmem.c (redoStackOffsets)
15703         * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
15704         * src/SDCCsymt.h
15705         * src/common.h
15706         * src/avr/gen.c (genAVRCode)
15707         * src/ds390/gen.c (gen390Code)
15708         * src/mcs51/gen.c (gen51Code)
15709         * src/pic/gen.c (genpic14Code)
15710         * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
15711         * src/xa51/gen.c (genXA51Code)
15712         * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
15713
15714 2003-03-22  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15715
15716         * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
15717         * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
15718
15719 2003-03-22    <johan AT balder>
15720
15721         * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
15722
15723 2003-03-21  Bernhard Held <bernhard AT bernhardheld.de>
15724
15725         * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
15726         * doc/cdbfileformat.lyx: added, written by Lenny Story
15727         * doc/Makefile: added cdbfileformat.lyx
15728         * doc/clean.mk: added cdbfileformat.lyx
15729
15730 2003-03-20  Bernhard Held <bernhard AT bernhardheld.de>
15731
15732         * src/mcs51/peeph.def: fix bug #705773
15733
15734 2003-03-20    <johan AT balder>
15735
15736         An sfr/sbit can have an "at #" AND an initializer
15737         * src/SDCCsymt.c (checkSClass):
15738         * src/SDCCmem.c (allocGlobal):
15739         * src/SDCCmem.c (allocLocal):
15740         * src/SDCCast.c (createBlock):
15741
15742 2003-03-17  Bernhard Held <bernhard AT bernhardheld.de>
15743
15744         * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
15745
15746 2003-03-16    <johan AT balder>
15747
15748         Undid the hackup of const and volatile, the problem is much bigger
15749         * src/SDCC.y:1.65
15750         * src/SDCCast.c:1.171
15751         * src/SDCCglue.c:1.138
15752         * src/SDCCicode.c:1.146
15753         * src/SDCCsymt.c:1.150
15754         * src/SDCCval.c:1.65
15755
15756 2003-03-15  Bernhard Held <bernhard AT bernhardheld.de>
15757
15758         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
15759         * src/ds390/gen.c (genAddrOf): fixed bug #704087
15760
15761 2003-03-13    <johan AT balder>
15762
15763         Hackup const and volatile modifiers in type chains a bit:
15764         * src/SDCC.y:1.63
15765         * src/SDCCast.c:1.169
15766         * src/SDCCglue.c:1.136
15767         * src/SDCCicode.c:1.143
15768         * src/SDCCsymt.c1.146
15769         * src/SDCCsymt.h1.59
15770         * src/SDCCval.c:1.63
15771
15772 2003-03-12    <johan AT balder>
15773
15774         * src/SDCCBBlock.h: more LRH debugging junk
15775         * src/SDCCcflow.h: more LRH debugging junk
15776         * src/SDCCloop.c: more LRH debugging junk
15777         * src/SDCC.y (struct_declaration): fixed bug #697590
15778         * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
15779         * src/ds390/gen.c (aopForRemat): fixed bug #700031
15780         * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
15781
15782 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
15783         * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
15784         test function names must now match exactly).
15785         * src/SDCCcse.c: added special case in findCheaperOp to allow
15786         extending a short integer. Makes less awful code for bug 700121 test case.
15787
15788 2003-03-11  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15789
15790         * as/mcs51/lkmain.c: Added ASlink-Warning to messages
15791         * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
15792
15793 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
15794
15795         * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
15796         actually called (operandsNotEqual() was called for all
15797         operandsNotEqualX tests).
15798
15799 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
15800
15801         * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
15802         with shorter literals. Fixes bug 700121.
15803
15804 2003-03-11    <johan AT balder>
15805
15806         * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
15807
15808 2003-03-11  Bernhard Held <bernhard AT bernhardheld.de>
15809
15810         * src/SDCCloop.c (mergeRegions): an evil beast is dead
15811         * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
15812
15813 2003-03-10  Borut Razem <borut.razem AT siol.net>
15814
15815         * src/SDCCmain.c: pipe preprocessor's output
15816         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
15817         * sdcc_vc_in.h: define pclose as _pclose for WIN32
15818         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
15819         which closes all pipes in pipeSet set
15820         * src/SDCCset.c: free deleted item in function deleteSetItem()
15821         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
15822         moved from z80 to src subproject
15823         * .version: increased version number to 2.3.4
15824
15825 2003-03-10  Bernhard Held <bernhard AT bernhardheld.de>
15826
15827         * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
15828         * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
15829         * support/regression/ports/xa51/spec.mk: fix typo
15830
15831 2003-03-09  Bernhard Held <bernhard AT bernhardheld.de>
15832
15833         * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
15834
15835 2003-03-09  Borut Razem <borut.razem AT siol.net>
15836
15837         * src/SDCCmain.c: pipe preprocessor's output
15838         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
15839         * sdcc_vc_in.h: define pclose as _pclose for WIN32
15840         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
15841         which closes all pipes in pipeSet set
15842         * src/SDCCset.c: free deleted item in function deleteSetItem()
15843         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
15844         moved from z80 to src subproject
15845
15846 2003-03-09  Borut Razem <borut.razem AT siol.net>
15847
15848         * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
15849         * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
15850         * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
15851         * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
15852         * src/SDCCglobl.h: unification of WIN32 native definitions
15853
15854 2003-03-09  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15855
15856         * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
15857
15858 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
15859
15860         * src/configure.in:   check for endianess (even while cross-compiling)
15861         * src/configure:      check for endianess (even while cross-compiling)
15862         * src/configure_in.h: check for endianess (even while cross-compiling)
15863         * src/avr/gen.c:        remove old endianess stuff
15864         * src/mcs51/gen.c:      remove old endianess stuff
15865         * src/ds390/gen.c:      remove old endianess stuff
15866         * src/pic/gen.c:        remove old endianess stuff
15867         * src/pic/genarith.c:   remove old endianess stuff
15868         * src/pic/glue.c:       fix endianess check
15869         * src/pic16/gen.c:      remove old endianess stuff
15870         * src/pic16/genarith.c: remove old endianess stuff
15871         * src/pic16/glue.c:     fix endianess check
15872         * src/xa51/gen.c:       remove old endianess stuff
15873         * src/z80/gen.c:        fix endianess check
15874         * src/SDCCglue.c:       fix endianess check
15875         * src/ds390/peeph.def: fix bug 700036
15876
15877 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
15878
15879         * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
15880         * src/configure: find appropriate data-types on host for SDCC's int and long
15881         * src/configure.in: find appropriate data-types on host for SDCC's int and long
15882         * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
15883         * src/xa51/gen.c: use %d, not %ld for 4 byte variables
15884
15885 2003-03-07    <johan AT balder>
15886
15887         Just a big NOOP:
15888                 some minor cleanups before the big shot
15889                 OP_DEFS and OP_USES now use Kevin's protection
15890                 new option --nolabelopt
15891
15892         * src/SDCCBBlock.c:
15893         * src/SDCCast.c,:
15894         * src/SDCCcflow.c:
15895         * src/SDCCcse.c:
15896         * src/SDCCicode.c:
15897         * src/SDCCicode.h:
15898         * src/SDCClabel.c:
15899         * src/SDCCloop.c:
15900         * src/SDCCmain.c:
15901         * src/ds390/ralloc.c:
15902         * src/mcs51/ralloc.c:
15903         * src/pic/ralloc.c:
15904         * src/xa51/ralloc.c:
15905         * src/z80/ralloc.c:
15906
15907 2003-03-06  Bernhard Held <bernhard AT bernhardheld.de>
15908
15909         * src/pic/pcode.c (get_op): fix 64 bit warnings
15910         * src/pic/pcode.c (pCode2str): fix 64 bit warnings
15911         * src/SDCChasht.c (newHashTable): fix 64 bit warnings
15912         * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
15913         * support/regression/tests/malloc.c: fix 64 bit warnings
15914
15915 2003-03-04  Bernhard Held <bernhard AT bernhardheld.de>
15916
15917         * src/mcs51/gen.c (genMinus): fixed bug 696436
15918
15919 2003-03-02  Borut Razem <borut.razem AT siol.net>
15920
15921         * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
15922
15923 2003-02-26  Bernhard Held <bernhard AT bernhardheld.de>
15924
15925         * configure.in: test for mkstemp
15926         * sdccconf_in.h: add HAVE_MKSTEMP
15927
15928 2003-02-24  Bernhard Held <bernhard AT bernhardheld.de>
15929
15930         * device/include/ctype.h: removed warning while using --stack-auto
15931         * device/include/malloc.h: removed warning while using --stack-auto
15932         * device/include/string.h: removed warning while using --stack-auto
15933
15934 2003-02-23  Borut Razem <borut.razem AT siol.net>
15935
15936         * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
15937         because NDEBUG is defined (see man assert)
15938         * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
15939
15940 2003-02-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15941
15942         * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
15943         * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
15944
15945 2003-02-18  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15946
15947         * src/SDCCpeeph.c: added peephole conditions testing for same arguments
15948         * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
15949
15950 2003-02-18    <johan AT balder>
15951
15952         * as/mcs51/asmain.c (asmbl): module can start with a digit
15953         * as/z80/asmain.c (asmbl): module can start with a digit
15954
15955 2003-02-16  Bernhard Held <bernhard AT bernhardheld.de>
15956
15957         * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
15958         * src/asm.c: fix pipe() for Mingw32
15959
15960 2003-02-15  Bernhard Held <bernhard AT bernhardheld.de>
15961
15962         * src/SDCCglue.h: make tmpfileNameSet available for preOutName
15963         * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
15964         make -V work again; --c1mode reads now from stdin
15965         * doc/sdccman.lyx: added --c1mode
15966         * support/Util/SDCCerr.c: new messages for c1 mode
15967         * support/Util/SDCCerr.h: new messages for c1 mode
15968         * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
15969
15970 2003-02-15    <johan AT balder>
15971
15972         * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
15973
15974 2003-02-14  Bernhard Held <bernhard AT bernhardheld.de>
15975
15976         * doc/sdccman.lyx: Environment variables, -o and other minor things
15977
15978 2003-02-14    <johan AT balder>
15979
15980         * src/xa51/main.c: before anyone really tries to use it :)
15981
15982         * Install doc's in share/sdcc/doc
15983         * removed some obsolete files
15984         * Do a proper make distclean and uninstall
15985         M Makefile.common.in
15986         R sdccbuild.sh
15987         M as/Makefile
15988         M device/include/Makefile.in
15989         M device/lib/Makefile.in
15990         M doc/sdccman.lyx
15991         M link/Makefile
15992         M sim/ucsim/doc/Makefile.in
15993         M src/clean.mk
15994         R src/avr/peeph.rul
15995         R src/xa51/peeph.rul
15996         M support/cpp2/Makefile.in
15997         M support/makebin/Makefile
15998
15999
16000 2003-02-13  Bernhard Held <bernhard AT bernhardheld.de>
16001
16002         * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
16003
16004 2003-02-10  Borut Razem <borut.razem AT siol.net>
16005
16006         * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
16007         support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
16008         * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
16009         device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
16010         support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
16011         src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
16012         src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
16013         src/z80/Makefile.bcc: Borland Makefile cleanup
16014         * as/z80/Makefile.bcc: Added Borland Makefile
16015         * support/cpp2/borland.h: Removed
16016
16017 2003-02-10  Bernhard Held <bernhard AT bernhardheld.de>
16018
16019         * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
16020         * src/SDCC.lex: new pragma NOIV
16021         * src/SDCCglobl.h: new pragma NOIV
16022         * src/SDCCmem.c: new pragma NOIV
16023
16024 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
16025
16026         * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
16027
16028 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
16029
16030         * src/SDCCmain.c: signal handling is switched off by --debug
16031         * doc/Makefile: small fix for install; use clean.mk again
16032         * doc/clean.mk: clean *.pdf and *.html too
16033
16034 2003-02-08  Bernhard Held <bernhard AT bernhardheld.de>
16035
16036         * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
16037         * device/lib/printfl.c: fix a ds390 bug by making it portable
16038         * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
16039         * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
16040         * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
16041         * debugger/mcs51/cmd.c: converted multi-line string literals
16042         * sim/ucsim/globals.cc: converted multi-line string literals
16043         * src/SDCCmain.c: introduced signal handler to remove temp files
16044         * doc/Makefile: small tweaks, implement clean
16045         * doc: removed generated files
16046
16047 2003-02-05  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16048
16049         * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
16050         patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
16051         Address Record is not correctly generated for DS390."
16052
16053 2003-02-02  Borut Razem <borut.razem AT siol.net>
16054
16055         * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
16056         * as/mcs51/asm.h: fixed compilation with Borland C
16057         * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
16058         * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
16059         * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
16060         * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
16061         src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
16062         src/z80/Makefile.bcc: delete $(LIB) only if exist
16063         * src/Makefile.bcc, src/pic/Makefile.bcc:  fixed compilation with Borland C
16064
16065 2003-02-02  Bernhard Held <bernhard AT bernhardheld.de>
16066
16067         * device/include/malloc.h: introduced NULL
16068         * device/include/string.h: introduced NULL
16069         * device/include/stdlib.h: introduced NULL
16070         * device/lib/_memcpy.c: removed NULL
16071         * device/lib/_strcat.c: removed NULL
16072         * device/lib/_strchr.c: removed NULL
16073         * device/lib/_strcmp.c: removed NULL
16074         * device/lib/_strcpy.c: removed NULL
16075         * device/lib/_strcspn.c: removed NULL
16076         * device/lib/_strlen.c: removed NULL
16077         * device/lib/_strncat.c: removed NULL
16078         * device/lib/_strncmp.c: removed NULL
16079         * device/lib/_strncpy.c: removed NULL
16080         * device/lib/_strpbrk.c: removed NULL
16081         * device/lib/_strrchr.c: removed NULL
16082         * device/lib/_strspn.c: removed NULL
16083         * device/lib/_strstr.c: removed NULL
16084         * device/lib/_strtok.c: removed NULL
16085         * device/lib/malloc.c: removed NULL, include own header
16086
16087 2003-02-02    <johan AT balder>
16088
16089         * 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
16090         * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
16091         * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
16092         * src/z80/gen.c (genZ80Code): added c-lines in asm comments
16093         * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
16094         * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
16095
16096 2003-02-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16097
16098         * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
16099         area 'DATA'"
16100
16101 2003-02-01    <johan AT balder>
16102
16103         * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
16104
16105 2003-01-31    <johan AT CP255758-A>
16106
16107         * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
16108
16109 2003-01-30    <johan AT balder>
16110
16111         * src/SDCCBBlock.c: automatic bug detection
16112         * src/SDCCicode.c: automatic bug detection
16113
16114 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16115
16116         * src/SDCCglobl.h:   now --xram-size 0 works
16117         * src/SDCCmain.c:    now --xram-size 0 works
16118
16119 2003-01-29    <johan AT balder>
16120
16121         * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
16122
16123 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16124
16125         * as/mcs51/aslink.h: Added options --xram-size and --code-size
16126         * as/mcs51/lkdata.c: Added options --xram-size and --code-size
16127         * as/mcs51/lkmain.c: Added options --xram-size and --code-size
16128         * as/mcs51/lkmem.c:  Added options --xram-size and --code-size
16129         * src/SDCCglobl.h:   Added options --xram-size and --code-size
16130         * src/SDCCmain.c:    Added options --xram-size and --code-size
16131
16132 2003-01-28  Bernhard Held <bernhard AT bernhardheld.de>
16133
16134         * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
16135         * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
16136
16137 2003-01-27    <johan AT balder>
16138
16139         * src/SDCC.y: fixed bug #613764
16140
16141 2003-01-26    <johan AT balder>
16142
16143         * src/SDCClrange.c:  fixed Bernhard's "char * code ptr = &c"
16144         * src/SDCCsymt.h: fixed bug #673374
16145         * src/SDCCglue.c: fixed bug #661910
16146         * src/SDCCast.c: fixed bug #458099 and 673374
16147
16148 2003-01-26  Bernhard Held <bernhard AT bernhardheld.de>
16149
16150         * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
16151         * as/mcs51/strcmpi.h: added
16152         * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
16153         * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
16154         * as/mcs51/asmain.c: strcmpi -> as_strcmpi
16155         * as/mcs51/assym.c: strcmpi -> as_strcmpi
16156         * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
16157         * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
16158         * as/mcs51/lksym.c: strcmpi -> as_strcmpi
16159         * as/mcs51/Makefile.aslink: new module strcmpi
16160         * as/mcs51/Makefile.asx8051: new module strcmpi
16161         * as/mcs51/Makefil.bcc: new module strcmpi
16162         * as/mcs51/Makefile.in: new module strcmpi
16163         * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
16164
16165 2003-01-26    <johan AT balder>
16166
16167         * src/SDCCglue.c: reverted back to 1.124
16168         * src/SDCCast.c: reverted back to 1.156
16169         * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
16170
16171 2003-01-25    <johan AT balder>
16172
16173         * src/SDCCglue.c: A better fix for bug #661910
16174         * src/SDCCast.c: A better fix for bug #661910
16175         * src/SDCCglue.c (emitRegularMap): That was a little too efficient
16176
16177 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
16178
16179         * src/Makefile.in: remove spawn.o
16180         * src/SDCCmain.c: remove spawn.h
16181         * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
16182         * src/spawn.c: removed
16183         * src/spawn.h: removed
16184         * support/regression/ports/ds390/spec.mk: link with -r
16185
16186 2003-01-24    <johan AT CP255758-A>
16187
16188         * src/ds390/gen.c (aopOp): fixed bug #667458
16189         * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
16190         * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
16191         (createIvalCharPtr): an ival doesn't always have a storage class anymore
16192
16193 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
16194
16195         * src/mcs51/peeph.def: better assembler identation by Frieder
16196         * src/mcs51/gen.c: better assembler identation by Frieder
16197
16198 2003-01-22  Bernhard Held <bernhard AT bernhardheld.de>
16199
16200         * as/z80/string.h: removed for gcc 3.2
16201         * support/makebin/makebin.c: #include <string.h> for gcc 3.2
16202         * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
16203
16204 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
16205
16206         * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
16207         * src/SDCCpeeph.c (replaceRule): fix bug #663503
16208         * support/regression/Makefile: separate temp files for ports
16209         * support/regression/generate-cases.py: separate temp files for ports
16210         * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
16211         * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
16212
16213 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
16214
16215         * moved tinitalk to device/examples/ds390
16216
16217 2003-01-14  Bernhard Held <bernhard AT bernhardheld.de>
16218
16219         * as/mcs51/lkmem.c: rflag is for DS390
16220         * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
16221         * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
16222                          (linkEdit): move mem- and map-files the same way as ihx-files
16223         * src/z80/main.c (_setDefaultOptions): removed --generic
16224         * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
16225         * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
16226         * src/pic/glue.c (picglue): --c1mode works again
16227         * src/pic16/glue.c (pic16glue): --c1mode works again
16228         * src/asm.c (printCLine): fix #660034
16229
16230 2003-01-13  Bernhard Held <bernhard AT bernhardheld.de>
16231
16232         * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
16233         * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
16234         * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
16235         * as/mcs51/lkmem (summary): better fix for sp problem
16236         * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
16237         * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
16238         * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
16239                                               remove --stack-after-data
16240
16241 2003-01-12  Bernhard Held <bernhard AT bernhardheld.de>
16242
16243         * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
16244         * src/SDCCutil.c (join): ugly bug: missing '\0'
16245         * as/mcs51/lkmem.c (summary): sp on address 7 is safe
16246
16247 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
16248
16249         * src/SDCCmain.c (assemble, linkEdit): preparations for -o
16250         * src/port.h: typo
16251         * src/pic/main.c (_asmCmd): gpasm supports -o
16252         * src/z80/main.c: more general macros
16253         * device/lib/Makefile.in: remove intermediate files
16254
16255 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
16256
16257         * .version: Bumped version number to 2.3.3
16258         * src/SDCCBBlock.c: new option -o
16259         * src/SDCCglobl.h: new option -o
16260         * src/SDCCglue.c: new option -o
16261         * src/SDCCmain.c: new option -o
16262         * src/asm.c: new option -o
16263         * src/ds390/main.c: new option -o
16264         * src/pic/glue.c: new option -o
16265         * src/pic/pcode.c: new option -o
16266         * src/pic/ralloc.c: new option -o
16267         * src/pic16/glue.c: new option -o
16268         * src/pic16/pcode.c: new option -o
16269         * src/pic16/ralloc.c: new option -o
16270         * src/z80/main.c: new option -o
16271         * device/lib/Makefile.in: use -o
16272         * support/regression/ports/ds390/spec.mk: use -o
16273         * support/regression/ports/gbz80/spec.mk: use -o
16274         * support/regression/ports/mcs51/spec.mk: use -o
16275         * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
16276         * support/regression/ports/z80/spec.mk: use -o
16277         * support/regression/ports/ucz80/spec.mk: use -o
16278         * support/regression/ports/xa51/spec.mk: use -o
16279         * support/regression/fwk/lib/timeout.c: fix usage string
16280
16281 2003-01-09  Bernhard Held <bernhard AT bernhardheld.de>
16282         * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
16283
16284 2003-01-07    <johan AT balder>
16285
16286         * src/SDCCast.c (decorateType): fixed bug #600035
16287
16288 2003-01-07  Bernhard Held <bernhard AT bernhardheld.de>
16289         * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
16290         * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
16291         * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
16292         * src/pic/pcode.c: outcommented unused variable to remove warnings
16293         * src/pic/ralloc.c: outcommented unused variable to remove warnings
16294
16295 2003-01-06    <karl AT turbobit.com>
16296         * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
16297         regression tests.
16298
16299 2003-01-06    <johan AT balder>
16300
16301         * src/SDCCicode.c: fixed array add
16302
16303 2002-01-05  Bernhard Held <bernhard AT bernhardheld.de>
16304         * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
16305         * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
16306
16307 2003-01-04    <johan AT balder>
16308
16309         * src/SDCCval.c (getNelements): fixed the initialized array of structures
16310
16311 2002-12-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16312         * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
16313
16314 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
16315         * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
16316         * support/regression/tests/bug-524697.c: fit mem usage into 8032
16317
16318 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
16319         * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
16320
16321 2002-12-27  Bernhard Held <bernhard AT bernhardheld.de>
16322         * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
16323
16324 2002-12-26  Bernhard Held <bernhard AT bernhardheld.de>
16325         * src/mcs51/main.c: removed {bindir}{sep} from aslink
16326
16327 2002-12-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16328
16329         * in /sdcc/as/mcs51/ changed these files in order to create an
16330         aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
16331         lkmain.c.  Also added: lkmem.c and lkaomf51.c.  Changed the
16332         following files to include the previous two files: aslink.dsp,
16333         Makefile.aslink, Makefile.bcc, and Makefile.in.
16334
16335         * Changed /sdcc/src/SDCCmain.c so it creates files with extension
16336         .adb instead of .cdb
16337
16338 2002-11-09  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16339
16340         * /sdcc/as/mcs51/lklist.c: Now reports memory usage using the
16341         value from option --iram-size.
16342
16343 2002-09-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16344
16345         * /sdcc/as/mcs51/lklist.c: added boundary check before using
16346         dram[] array.
16347
16348 2002-09-18    <wiml AT hhhh.org>
16349
16350         * SDCClrange.h: exposed setFromRange() and setToRange()
16351         * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
16352           packRegsForAccUse() (bug 542397)
16353         * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
16354           multiple times and emitting the fetch operations more than once
16355           added aopGetUsesAcc() function to allow binary operators to
16356           fetch their operands in the correct order; made genMinus() emit
16357           compact code for X = LITERAL - Y
16358
16359 2002-09-00  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16360         * /sdcc/as/mcs51/lklist.c: Fixed incorrect number of parameters to
16361         sprintf() in line 1267.
16362
16363 2002-09-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16364         * /sdcc/src/SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
16365         like ports.
16366
16367 2002-09-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16368         Changes to aslink (All the changes are marked with 'JCF'):
16369
16370         * /sdcc/as/mcs51/aslink.h: External definition of sflag and
16371         summary().
16372
16373         * /sdcc/as/mcs51/lkarea.c: Computes the size of area BSEG_BYTES from
16374         area BSEG.  Also moves, if possible, the DATA area down into the internal
16375         ram so more space is available.
16376
16377         * /sdcc/as/mcs51/lkdata.c: Definition of memory summary output flag
16378         sflag.
16379
16380         * /sdcc/as/mcs51/lklist.c: For the BSEG area report the size in bits,
16381         not bytes.  Function summary() which creates a memory usage summary
16382         file with extension .mem.  Reports of overlaping stack and small stack
16383         size.  If the space for the stack is less than 16 bytes aslink trows a
16384         warning.
16385
16386         * /sdcc/as/mcs51/lkmain.c: Creation of some of the default areas for
16387         the 8051.  Option 'y' for memory summary output file.
16388
16389         Changes to sdcc (All the changes are marked with 'JCF'):
16390
16391         * /sdcc/src/SDCCglobl.h: External definition of RegBankUsed[4].
16392
16393         * /sdcc/src/SDCCglue.c:  If a register bank is used, creates an
16394         overlaying area for it (uses RegBankUsed[4]).
16395
16396         * /sdcc/src/SDCCmain.c: Definition RegBankUsed[4]; marks register
16397         bank zero as used by default.  By default aslink locates the stack
16398         (equivalent to --stack-after-data).  Pass option 'y' to aslink for
16399         the creation of the .mem file.  Delegates the allocation of data area
16400         to aslink (it is not longer 0x30 by default).  If --stack-loc passes
16401         the begining of the stack area to aslink.
16402
16403         * /sdcc/src/SDCCmem.c:  If a register bank is used, marks it so
16404         glue() in SDCCglue.c creates an area for it.
16405
16406 2002-09-03  Borut Razem <borut.razem AT siol.net>
16407         * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
16408         sdcc/src/pic/glue.c:
16409         introduced atexit() handler for teporay files removal in case of
16410         errors, assertions, ...
16411
16412 2002-08-29  Borut Razem <borut.razem AT siol.net>
16413         * sdcc/support/cpp2/auto-host_vc_in.h:
16414         re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
16415         with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
16416         Maybe there is a similar problem with BORLANDC? It should be checked!
16417
16418         * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
16419         corrected improper use of assert: the assignment to clr variable was done inside the assert.
16420         In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
16421         was not executed, and the compiler (cl) launched a warning:
16422         ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
16423
16424 2002-08-28  Bernhard Held <bernhard AT bernhardheld.de>
16425         * src/SDCCglue.c (printIvalArray): iterative calculation of array length
16426
16427 2002-08-28  Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
16428         * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
16429
16430         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
16431           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
16432           sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
16433           sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
16434           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
16435           sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
16436           sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
16437         - added Release configuration in VS projects
16438         - review of compiler an linker options
16439         - VC .exe files are generated in bin_vc directory, not to interfere
16440           with binaries generated from other projects (cygwin, mingw, bcc ...)
16441
16442         * sdcc/src/yacc.dsp: added
16443
16444         * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
16445         added - genarate sdcc_vc.h using sdcc_vc_in.h as template
16446         and insert the version number definitions from .version
16447
16448         * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
16449
16450         * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
16451         added - genarate auto-host.h using auto-host_vc_in.h as template
16452
16453         * sdcc/sdcc_vc.h,
16454         removed from CVS, generated automatically
16455
16456 2002-08-25  Bernhard Held <bernhard AT bernhardheld.de>
16457         * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
16458
16459 2002-08-11  Borut Razem <borut.razem AT siol.net>
16460         * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
16461
16462 2002-08-10  Borut Razem <borut.razem AT siol.net>
16463         * src/SDCCmain.c (main):
16464         file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
16465         platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
16466         The consequence was that some temporary files were not removed.
16467
16468         * src/SDCCglue.c:
16469         unification of code in functions tempfilename() and tempfile():
16470         function tempnam() is defined in Visual Studio 6.0 and .NET
16471
16472         * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
16473
16474         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
16475           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
16476         - removed compiler command line option /WX: Treats all warnings as errors
16477         - update a list of source files, included into the project
16478
16479         * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
16480           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
16481         changed project type to Generic Project so that can be correcly converted to VS.NET project
16482
16483         * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
16484
16485         * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
16486
16487         * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
16488
16489         * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
16490         added return 0 statements after assert() to make compiler happy
16491
16492         * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
16493         added newline in the def file to keep MSC compiler satisfied
16494
16495         * sdcc/src/z80/gen.c:
16496         - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
16497           so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
16498         - solved MSC error in function aopDump()
16499
16500         * sdcc_vc.h: define PREFIX as "\\sdcc"
16501
16502 2002-07-18  Bernhard Held <bernhard AT bernhardheld.de>
16503         * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
16504
16505 2002-06-22  Scott Dattalo <scott AT dattalo.com>
16506         * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
16507         - Rewrote the register banking algorithm.
16508         - Added pCode live-range analysis to registers (for now, only non-used and
16509         singly-used registers optimized away)
16510
16511         * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
16512
16513         * 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.
16514
16515 2002-05-10  Scott Dattalo <scott AT dattalo.com>
16516         * src/pic/*: Added support for multiplication. Fixed many,many bugs.
16517
16518 2002-04-22  Michael Hope  <michaelh AT vroom>
16519
16520         * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
16521
16522         * configure.in (DD_COPT): Added include support required for gbdk.
16523
16524         * .version: Bumped version number just to increase it.
16525
16526         * src/SDCCmain.c: Added -nostdinc to the default options.
16527
16528 2002-04-15  Michael Hope  <michaelh AT vroom>
16529
16530         * device/lib/z80/printf.c (sprintf): Added.
16531
16532         * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
16533
16534         * src/z80/peeph.def: Added transpose redundent load rule.
16535
16536         * src/z80/main.c: Added force callee saves for jaune.
16537
16538         * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
16539
16540         * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
16541
16542 2002-03-28  Johan Knol  <johan AT balder>
16543
16544         * src/SDCCval.c: fixed bug #532436
16545
16546 2002-03-14  Scott Dattalo <scott AT dattalo.com>
16547         * /src/port.h:
16548         Added "char *Processor" field to the port structure.
16549
16550         * /src/SDCCmain.c:
16551         Added -p option. Allows port dependent processor to be specified.
16552
16553         * all ports:
16554         Initialized the new field char *Processor field to NULL in all ports
16555
16556         * /src/pic/*:
16557         Compiler generated registers for interrupt context saving
16558         were not getting allocated.
16559
16560 2002-03-16  Sandeep Dutta  <sandeep AT ddi.com>
16561
16562         * /src/SDCCast.c:
16563         Fixed left shift. Will promote the left side of a left shift
16564         if a) left shifting more than size of operand or b) when assigned
16565         to something size > size of left side
16566
16567 2002-03-14  Scott Dattalo <scott AT dattalo.com>
16568         * src/pic/*
16569         tons of changes. Register allocation has been
16570         rewritten. Added customization for the various PICs. Flow
16571         analysis is restructured. ...
16572
16573         * src/pic/device.h:
16574         Added
16575
16576         * src/pic/device.c:
16577         Added. device.c is a PIC port hack to accomodate variations
16578         in PIC devices.
16579
16580 2002-03-13  Michael Hope  <michaelh AT vroom>
16581
16582         * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled.  Yeah.
16583
16584 2002-03-04  johanknol  <johanknol AT manik>
16585
16586         * /src/SDCCval.c: fixed
16587
16588         const unsigned char arr[][2] = { { 0, 1 } };
16589         t18.c:1: error: Initializer element is not constant
16590
16591 2002-03-04  bela  <bela AT manik>
16592
16593         * /device/include/mcs51reg.h:
16594         ds89c420 register definition update
16595
16596 2002-03-03    <johan AT FRIJA>
16597
16598         * support/Util/SDCCerr.c: did something, but don't no why anymore
16599
16600         * support/regression/tests/bug-524691.c: made it a little less shy
16601
16602         * src/SDCCast.c (decorateType): fixed bug #524697
16603
16604         * src/SDCCast.c: made some lineno improvements
16605
16606         * src/SDCCval.c (getNelements): changed warning to error
16607
16608         * src/SDCCglue.c (printIvalArray): changed warning to error
16609
16610         * src/SDCCicode.c: fixed a warning for mingw
16611
16612         * src/SDCCast.c (decorateType): fixed the << promotion for ops
16613
16614         * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
16615
16616 2002-03-02  Sandeep Dutta  <sandeep AT ddi.com>
16617
16618         * src/ds390/peeph.def:
16619         Added some more peephole rules
16620
16621         * src/ds390/gen.c: Various fixes & enhancements
16622
16623         * src/SDCClrange.c, src/SDCClrange.h:
16624         functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
16625
16626         * src/ds390/ralloc.c:
16627         various fixes & enhancements (ds390) specific
16628
16629         * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
16630         Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
16631         from rallocs.
16632
16633         * sdcc/src/SDCCcse.c: Better fix for bug # 514308
16634
16635 2002-03-02    <johan AT FRIJA>
16636
16637         * src/SDCCast.c (decorateType): fixed bug #524708
16638
16639         * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
16640
16641         * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
16642
16643 2002-03-01  Michael Hope  <michaelh AT vroom>
16644
16645         * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
16646
16647         * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
16648
16649 2002-03-01    <johan AT FRIJA>
16650
16651         * src/SDCCglue.c (printIvalPtr): fixed bug #524211
16652
16653         * src/SDCCast.c (decorateType): fixed bug #524209
16654
16655         * src/SDCCval.c (valNot): fixed bug #524195
16656
16657 2002-02-26    <johan AT balder>
16658
16659         * src/xa51/gen.c: fixed a warning
16660
16661         * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
16662
16663         * src/SDCCast.c (decorateType): fixed bug #522534
16664
16665 2002-02-23    <johan AT balder>
16666
16667         * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
16668
16669 2002-02-22    <johan AT balder>
16670
16671         * src/SDCCast.c: fixed bug #514865
16672
16673         * src/SDCCy.c ("SDCC.y"): fixed bug #516625
16674
16675 2002-02-21  Sandeep Dutta  <sandeep AT ddi.com>
16676
16677         * sdcc/src/SDCCloop.c:
16678         Previous fix was not good. basic blocks that have "break" or "return" are
16679         not really partof a loop , but live ranges used in these blocks should
16680         be live thru the entire loop, so set partOfLoop but don't add them to
16681         loop region
16682
16683 2002-02-21    <johan AT FRIJA>
16684
16685         * src/SDCCcse.c: fixed bug #514308
16686
16687 2002-02-20  Sandeep Dutta  <sandeep AT ddi.com>
16688
16689         * src/SDCCloop.c:
16690         Fixed BUG #519583. If a conditional block ended in a return/break
16691         statement inside a loop, it was not being considered part of the loop.
16692
16693         * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
16694
16695 2002-02-10  Karl Bongers <karl AT turbobit.com>
16696
16697         * debugger/*:
16698         Fixed up SDCDB debugger somewhat.  Updated debugger/README
16699         with lots of comments and notes.
16700
16701         * device/examples/test2.c:
16702         Fix bug, "red" variable not being initialized(compiler complained).
16703
16704         * device/examples/Makefile, examples/test3.c:
16705         Add Makefile in device/examples folder, compiles test3.c
16706         for use as a multiple module SDCDB test case.
16707
16708         * sim/ucsim/cmd.src/cmdset.cc:
16709         Took out debug printfs in ucsim "next" command.
16710
16711         * sim/ucsim/xa.src:
16712         Karl and Johan start ucsim XA support.  Most dissassembly working,
16713         about 75% emulation done(plenty of work remaining).
16714
16715         * sim/ucsim/z80.src:
16716         Add Z80 support to ucsim, add test-ucz80 regression test,
16717         notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
16718         Notice z80 compiler fails on examples/test3.c/crc code.
16719
16720 2002-01-30  Sandeep Dutta  <sandeep AT ddi.com>
16721
16722         * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
16723         Added support for --parms-in-bank1
16724
16725         * src/ds390/peeph.def:
16726         added a few more peephole optimzations
16727
16728         * src/ds390/main.c:
16729         1) added __builtin_inp & __builtin_outp used to read in data of given length
16730            from a memory mapped port
16731         2) added __builtin_memcmp
16732         3) added __builtin_swapw swap bytes of a short
16733
16734         * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
16735         1) handle multiple send & receives from register bank1
16736         2) ralloc can now allocate DPTR1 to some liveRanges
16737
16738         * src/SDCCsymt.c, src/SDCCsymt.h:
16739         changes to handle multiple sends & receives
16740
16741         * src/SDCCptropt.h:
16742         added some pointer arithmetic optimization
16743
16744         * src/SDCCptropt.c:
16745         added some pointer arithmetic optimizations but not stable yet so not
16746         called from anywhere (will get this working shortly)
16747
16748         * src/SDCCopt.c: fixed for multiple sends & receives
16749
16750         * src/SDCCmain.c:
16751         1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
16752         2) preprocessing done AFTER port->finalizeoptions . This allows ports to
16753            set preprocessor defines (depending on options)
16754
16755         * src/SDCCicode.c, src/SDCCicode.h:
16756         changes made to handle multiple sends & receives
16757
16758         * src/SDCCglobl.h:
16759         Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
16760
16761         * src/SDCCcse.c, src/SDCCcse.h:
16762         added function findbackward def (to be used in upcoming optimization)
16763
16764         * src/SDCCcflow.c, src/SDCCcflow.h:
16765         added function returnAtEnd - to determine if a basic block terminates with
16766         a RETURN iCode
16767
16768         * src/SDCCast.c, src/SDCCast.h:
16769         added option parms-in-bank1
16770
16771         * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
16772         * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
16773         * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
16774         adjusted for --parms-in-bank1 option
16775
16776         * device/include/string.h:
16777         donot redefine "reentrant" keyword
16778
16779         * device/include/ds80c390.h: Added some more SFRs
16780
16781 2002-01-28  Bernhard Held  <bernhard AT bernhardheld.de>
16782
16783         * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
16784
16785 2002-01-26  Bernhard Held  <bernhard AT bernhardheld.de>
16786
16787         * src/SDCCast.c (funcOfType): fix usage of double --float-reent
16788
16789 2002-01-22  Bernhard Held  <bernhard AT bernhardheld.de>
16790
16791         * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
16792
16793 2002-01-18  Paul Stoffregen  <paul AT pjrc.com>
16794
16795         * Added --xram-movc option
16796
16797 2002-01-13  Bernhard Held  <bernhard AT bernhardheld.de>
16798
16799         * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
16800
16801 2002-01-11  Johan Knol
16802
16803         * Added math lib of Jesus Calvino-Fraga
16804
16805 2002-01-08  Bernhard Held  <bernhard AT bernhardheld.de>
16806
16807         * src/SDCCmain.c (processFile): fix processing of ../../src.c
16808         * support/regression/Makefile: new target test-mcs51-stack-auto
16809         * support/regression/ports/mcs51-stack-auto/spec.mk: added
16810
16811 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
16812
16813         * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
16814
16815 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
16816
16817         * support/regression/ports/mcs51/support.c: correct setup of timer / UART
16818
16819 2002-01-03  Bernhard Held  <bernhard AT bernhardheld.de>
16820
16821         * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
16822
16823         * src/SDCCglue.h: add definition for printIvalChar()
16824
16825 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
16826
16827         * src/SDCCast.c: fix #498138 by Johan
16828
16829         * src/SDCCglue.c: fix #498138 by Johan
16830
16831 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
16832
16833         * support/regression/Makefile: fix clean
16834
16835         * support/regression/ports/ds390/support.c: fix transmission of last character
16836
16837 2001-12-29  Sandeep Dutta  <sandeep AT ddi.com>
16838
16839         * /sdcc/src/ds390/gen.c:
16840         a) improved computing address of stack variable
16841         b) took out some #if 0 code
16842         c) improved parmBytes adjustment
16843         d) improved genPlusIncr & genMinusIncr
16844         e) genCmp could generate bad code (when left assigned to DPTR)
16845         f) Fixed bug in hasInc
16846
16847         * /sdcc/src/ds390/ralloc.c:
16848         a) packRegsForSupport could mess up live information (Fixed)
16849         b) packRegsDPTRuse could be incorrect for left & right shift
16850
16851         * /sdcc/src/mcs51/ralloc.c:
16852         packRegsForSupport could mess up the live information (Fixed)
16853
16854         * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
16855
16856         * /sdcc/src/SDCCast.c:
16857         can reverse a loop even if function call is present as long
16858         as the loop control variable is local & is not passed as parameter
16859
16860 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
16861
16862         * /sdcc/ChangeLog: *** empty log message ***
16863
16864         * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
16865         More builtin function additions for TININative
16866
16867         * /sdcc/src/ds390/ralloc.c:
16868         Had broken the regression testsuite
16869
16870         * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
16871
16872         * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
16873         Added funcattr hasStackParms will be set for reentrant functions when there
16874         are paramteres on the stack, this helps in minimizing frame pointer generation
16875         typeFromStr can handle function pointers now
16876
16877         * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
16878         *** empty log message ***
16879
16880 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
16881
16882         * /src/ds390/gen.c, /src/ds390/main.c:
16883         More builtin function additions for TININative
16884
16885         * /src/ds390/ralloc.c:
16886         Had broken the regression testsuite
16887
16888         * /src/SDCCast.c: Fixed a bug in dumptree
16889
16890         * /src/SDCCsymt.c, /src/SDCCsymt.h:
16891         Added funcattr hasStackParms will be set for reentrant functions when there
16892         are paramteres on the stack, this helps in minimizing frame pointer generation
16893         typeFromStr can handle function pointers now
16894
16895         * /doc/builtins.txt, /doc/TININative.txt:
16896         *** empty log message ***
16897
16898
16899 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
16900
16901         * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
16902         ALPHA version for -mTININative
16903
16904         * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
16905         updated to reflect changes in the port structure
16906
16907         * /src/port.h:
16908         added function do_assemble (similar to do_link) if non-null this function
16909         will be called to do assembly (-mTININative) requires a multi command
16910         assembly
16911         added function genAssemblerEnd will be called to generate assembler Epilogue
16912
16913         * /src/SDCCsymt.c:
16914         added _JavaNative to debug info printing
16915
16916         * /src/SDCCmain.c: added option --tini-libid
16917         added port->do_assemble function (-mTININative) has a multi command assemble
16918
16919         * /src/SDCCglue.c: Disabled "constExpr" check
16920         added port->genAssemblerEnd function
16921
16922         * /src/SDCCglobl.h: Added option --tini-libid value
16923
16924         * /src/SDCCast.h:
16925         tookout optimizeCompare from the header (has no external references)
16926
16927         * /src/SDCCast.c: made one more function "static"
16928
16929 2001-12-23  Michael Hope  <michaelh AT juju.net.nz>
16930
16931         * src/z80/mappings.i: Added z80asm support.
16932
16933         * src/z80/main.c: Added z80asm support on --asm=z80asm
16934
16935         * src/z80/gen.c: Fixed asm portability issues.
16936
16937         * src/asm.c (tvsprintf): Removed old code, added 'N' for function name.  For extern support.
16938
16939         * src/SDCCglue.c (printExterns): Added global/extern split.
16940
16941 2001-12-17  Bernhard Held  <bernhard AT bernhardheld.de>
16942
16943         * support/regression/Makefile: added test for mcs51 model large
16944
16945         * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
16946
16947         * support/regression/ports/gbz80/spec.mk: added -mgbz80
16948
16949 2001-12-05  Michael Hope  <michaelh AT juju.net.nz>
16950
16951         * src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.
16952
16953 1904-01-06  Michael Hope  <michaelh AT juju.net.nz>
16954
16955         * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
16956
16957         * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
16958
16959 2001-12-02  Bernhard Held  <bernhard AT bernhardheld.de>
16960
16961         * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
16962
16963         * support/regression/tests/simplefloat.c: Port to mcs51.
16964
16965 2001-11-25  Michael Hope  <michaelh AT juju.net.nz>
16966         * support/regression/tests/bug-485362.c: Added.
16967
16968         * support/regression/tests/simplefloat.c (testDivNearOne): Added.
16969
16970         * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
16971
16972         * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
16973
16974         * src/z80/gen.c (aopDump): Added a dump function.
16975
16976 2001-11-25  Bernhard Held  <bernhard AT bernhardheld.de>
16977         * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
16978
16979         * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
16980
16981         * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
16982
16983         * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
16984
16985         * sim/ucsim/s51.src/uc390cl.h: Work in progress.
16986
16987         * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
16988
16989         * support/regression/fwk/lib/testfwk.c: Run with tinibios.
16990
16991         * support/regression/ports/mcs51/spec.mk: Fine tuninig.
16992
16993         * support/regression/ports/ds390/support.c: Use tinibios.
16994
16995         * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
16996
16997 2001-11-23  Michael Hope  <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
16998
16999         * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
17000         (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
17001
17002         * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
17003
17004         * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
17005
17006 2001-11-18  Michael Hope  <michaelh AT juju.net.nz>
17007
17008         * src/z80/gen.c (genCmp): Fixed compare on unsigned.
17009
17010         * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
17011         (packRegsForIYUse): Created and optimised.
17012
17013 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
17014
17015         * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
17016 2001-11-18  Bernhard Held  <bernhard AT bernhardheld.de>
17017
17018         * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
17019
17020         * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
17021
17022         * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
17023
17024 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
17025
17026         * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
17027
17028         * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
17029
17030 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
17031
17032         * sdcc/sim/ucsim/globals.cc: New: IXRAM.
17033
17034         * sdcc/sim/ucsim/stypes.h: New: IXRAM.
17035
17036         * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
17037
17038 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
17039
17040         * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
17041         (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
17042         (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
17043
17044         * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
17045
17046         * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
17047         (genNotFloat): Added.
17048         (genUminusFloat): Added.
17049
17050         * device/lib/z80/Makefile: Added floating pt stubs.
17051
17052         * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
17053
17054         * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
17055
17056         * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
17057
17058 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
17059
17060         * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
17061
17062         * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
17063
17064         * sdcc/support/regression/Makefile: Add port ds390.
17065
17066         * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
17067
17068         * sdcc/support/regression/ports/z80/spec.mk: Minor change.
17069
17070         * sdcc/support/regression/ports/ds390/spec.mk: Added.
17071
17072         * sdcc/support/regression/ports/ds390/support.c: Added.
17073
17074         * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
17075
17076         * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
17077
17078         * sdcc/support/regression/fwk/lib/timeout.c: Paste.
17079
17080 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
17081
17082         * device/include/malloc.h: Added z80 and gbz80 support.
17083
17084         * device/lib/gbz80/heap.s: Added.
17085
17086         * device/lib/z80/heap.s: Added.
17087
17088         * device/lib/malloc.c: Added z80 and gbz80 support.
17089
17090         * support/regression/tests/malloc.c (testMalloc): Added.
17091
17092         * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
17093
17094         * support/regression/tests/bug-478094.c: Added.
17095
17096         * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
17097
17098 2001-11-04  Bernhard Held  <bernhard AT bernhardheld.de>
17099
17100         * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
17101
17102         * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
17103
17104         * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
17105
17106         * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
17107
17108         * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
17109
17110 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
17111
17112         * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
17113
17114 2001-11-03  Michael Hope  <michaelh AT juju.net.nz>
17115
17116         * support/regression/tests/bug-477927.c: Added.
17117
17118         * src/z80/peeph.def: Added minor rules.
17119
17120         * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
17121
17122         * src/z80/peeph.def: Added jump optimisation modification.
17123
17124 2001-11-01  Michael Hope  <michaelh AT juju.net.nz>
17125
17126         * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
17127
17128 2001-10-30  Michael Hope  <michaelh AT juju.net.nz>
17129
17130         * support/regression/tests/funptrs.c: Added.
17131
17132 2001-10-29  Michael Hope  <michaelh AT juju.net.nz>
17133
17134         * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
17135
17136 2001-10-28  Michael Hope  <michaelh AT juju.net.nz>
17137
17138         * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
17139
17140         * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
17141
17142         * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
17143         (movLeft2ResultLong): Created.
17144
17145         * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
17146         (joinPushes): Added.  Joins two char pushes into a word push.
17147
17148 2001-10-27  Michael Hope  <michaelh AT juju.net.nz>
17149
17150         * support/cpp2/Makefile.in (install): Added creation of dest dir.
17151
17152         * support/makebin/Makefile (install): Added creation of dest dir.
17153
17154 2001-10-24 Karl Bongers <karl AT turbobit.com>
17155
17156         * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
17157
17158 2001-10-21  Michael Hope  <michaelh AT juju.net.nz>
17159
17160         * src/z80/ralloc.c: Turned off faulty pack for one use.
17161
17162         * src/z80/peeph-gbz80.def: Removed redundent restart options.
17163
17164         * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
17165
17166 2001-10-21  Bernhard Held  <bernhard AT bernhardheld.de>
17167
17168         * support/regression/Makefile: Improved clean
17169
17170         * support/regression/ports/gbz80/spec.mk: Added clean
17171
17172         * support/regression/ports/host/spec.mk: Added clean
17173
17174         * support/regression/ports/z80/spec.mk: Added clean
17175
17176         * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
17177
17178         * support/regression/ports/mcs51/timeout.c: little improvements
17179
17180 2001-10-17  Michael Hope  <michaelh AT juju.net.nz>
17181
17182         * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
17183
17184         * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
17185
17186         * support/regression/generate-cases.py: Fixed up to use function pts correctly.
17187
17188 2001-10-16  Bernhard Held  <bernhard AT bernhardheld.de>
17189
17190         * support/regression/port/mcs51/spec.mk: add timeout for uCsim
17191
17192         * support/regression/port/mcs51/timeout.c: add timeout for uCsim
17193
17194 2001-10-13  Michael Hope  <michaelh AT juju.net.nz>
17195         * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
17196
17197         * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
17198
17199         * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
17200
17201         * src/mcs51/main.c (_linkCmd): Added bin path to command.
17202
17203         * src/SDCCmain.c (initValues): Added support for when it it called just to link.
17204
17205         * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
17206
17207         * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
17208
17209         * support/regression/tests/longor.c: Added.
17210
17211 2001-10-11  Bernhard Held  <bernhard AT bernhardheld.de>
17212
17213         * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
17214
17215         * as/mcs51/aslink.h: define PATH_MAX
17216
17217         * as/mcs51/asm.h: define PATH_MAX
17218
17219         * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
17220
17221         * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
17222
17223         * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
17224
17225         * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
17226
17227         * src/SDCCglobl.h: define PATH_MAX
17228
17229         * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
17230
17231         * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
17232
17233 2001-10-11  Michael Hope  <michaelh AT juju.net.nz>
17234
17235         * src/z80/gen.c (gencjneshort): Fixed
17236
17237         * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
17238
17239 2001-10-09  Michael Hope  <michaelh AT juju.net.nz>
17240
17241         * support/regression/tests/bug-469671.c: Added.
17242
17243         * src/z80/gen.c (shiftIntoPair): Fixed up warning.
17244
17245 2001-10-08  Michael Hope  <michaelh AT juju.net.nz>
17246
17247         * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
17248
17249         * src/z80/gen.c (genPlus): Fixed to work with extended stack.  Also fixed genMinus, genCmp.  genUMinus is still left.
17250
17251 2001-10-08  Bernhar Held  <bernhard AT bernhardheld.de>
17252
17253         * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
17254
17255         * src/device/lib/_mulint.c  : removed hint: nooverlay bug
17256
17257         * src/device/lib/_mullong.c : removed hint: nooverlay bug
17258
17259         * src/device/lib/_divuint.c : removed hint: nooverlay bug
17260
17261         * src/device/lib/_divulong.c: removed hint: nooverlay bug
17262
17263         * src/device/lib/_moduint.c : removed hint: nooverlay bug
17264
17265         * src/device/lib/_modulong.c: removed hint: nooverlay bug
17266
17267 2001-10-07  Michael Hope  <michaelh AT juju.net.nz>
17268
17269         * 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.
17270
17271         * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.
17272
17273         * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
17274
17275 2001-10-07    <johan AT FRIJA>
17276
17277         * device/lib/gets.c (gets): fixed the return value.
17278
17279 2001-10-06  Michael Hope  <michaelh AT juju.net.nz>
17280         * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
17281
17282         * 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.
17283
17284         * 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.
17285
17286         * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
17287
17288         * src/pic/gen.c: Removed Safe_strdup.
17289
17290         * configure.in: Added option to enable libgc support.
17291
17292         * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
17293         (bitVectUnion): Optimised.
17294         (bitVectIntersect): Optimised.
17295         (bitVectBitsInCommon): Optimised.
17296         (bitVectCplAnd): Optimised.
17297
17298         * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.
17299
17300 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
17301
17302         * src/SDCCmain.c: distinguish between assembler debug and plain options
17303
17304         * src/avr/main.c:   remove standard assembler options
17305
17306         * src/ds390/main.c: remove standard assembler options
17307
17308         * src/mcs51/main.c: remove standard assembler options
17309
17310         * src/port.h: removed "PENDING" comment
17311
17312 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
17313
17314         * src/device/lib/_mulint.c  : new, with assember functions
17315
17316         * src/device/lib/_mullong.c : new, with assember functions
17317
17318         * src/device/lib/_divuint.c : with assember functions
17319
17320         * src/device/lib/_divsint.c : with assember functions
17321
17322         * src/device/lib/_divulong.c: with assember functions
17323
17324         * src/device/lib/_divslong.c: with assember functions
17325
17326         * src/device/lib/_moduint.c : with assember functions
17327
17328         * src/device/lib/_modsint.c : with assember functions
17329
17330         * src/device/lib/_modulong.c: with assember functions
17331
17332         * src/device/lib/_modslong.c: with assember functions
17333
17334         * src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c
17335
17336         * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
17337
17338         * src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
17339                                       replaced _mululong.c and _mulslong.c by _mullong.c
17340
17341 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
17342
17343         * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
17344
17345 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
17346
17347         * src/SDCCglue.c: test, if win32api is available for MINGW
17348
17349 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
17350
17351         * src/SDCCsymt.c: no more _modifier in printTypeChain()
17352         * support/regression/tests/driverstruct.c: REENTRANT for mcs51
17353         * support/regression/ports/gbz80/spec.mk: removed GENERIC
17354         * support/regression/ports/host/spec.mk: removed GENERIC
17355         * support/regression/ports/mcs51/spec.mk: removed GENERIC
17356         * support/regression/ports/z80/spec.mk: removed GENERIC
17357
17358 2001-10-01  Michael Hope  <michaelh AT juju.net.nz>
17359
17360         * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
17361
17362         * support/regression/tests/bug-467035.c: Created.
17363
17364 2001-10-01    <johan AT FRIJA>
17365
17366         * src/SDCC.y: fixed bug #466586 part 1
17367
17368 2001-10-01  Johan Knol <johan.knol AT iduna.nl>
17369
17370         * SDCCicode.c: z80 has no generic pointers
17371         * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
17372
17373 2001-09-30  Michael Hope  <michaelh AT juju.net.nz>
17374
17375         * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
17376
17377 2001-09-29  Michael Hope  <michaelh AT juju.net.nz>
17378
17379         * Makefile (sdcc-libs): Added makebin to the list of standard targets.
17380
17381         * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
17382
17383 2001-09-25  Michael Hope  <michaelh AT juju.net.nz>
17384
17385         * configure.in: Fixed up so that ucsim is only configured once.
17386
17387         * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
17388
17389         * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
17390         (getPathDifference): As above.
17391
17392         * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.
17393
17394         * src/SDCCglue.c (tempfilename): Added function for pre-processor.
17395
17396 2001-09-23  Michael Hope  <michaelh AT juju.net.nz>
17397         * .version: Updated to 2.3.1
17398
17399         * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
17400         Added copyright header.
17401
17402         * src/SDCCmain.c: Shifted various functions into SDCCutil.c
17403         (assemble): Added support for macro based assembler commands.
17404         (linkEdit): Added support for macro based linker commands.
17405         (preProcess): Changed the pre-processor to use macros.
17406         (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
17407         (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
17408
17409         * device/lib/z80/crt0.s: Added module name for debugging.
17410
17411 2001-09-20  Michael Hope  <michaelh AT juju.net.nz>
17412
17413         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
17414
17415         * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
17416
17417         * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
17418
17419         * src/Makefile.in: Added SDCCmacro and SDCCutil
17420
17421 2001-09-19  Michael Hope  <michaelh AT juju.net.nz>
17422
17423         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
17424
17425 2001-09-16    <johan AT FRIJA>
17426
17427         * 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.
17428
17429 2001-09-15    <johan AT FRIJA>
17430
17431         * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
17432         * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
17433
17434 2001-09-11    <johan AT FRIJA>
17435
17436         * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
17437
17438 2001-09-10  Michael Hope  <michaelh AT juju.net.nz>
17439
17440         * support/regression/tests/bug-460444.c: Added test case.
17441
17442         * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
17443         (genCast): Added justification for all of the asserts.
17444
17445 2001-09-10  Bernhard Held <bernhard AT bernhardheld.de>
17446
17447         * support/regression/support.c: _xdata replaced by xdata
17448
17449         * support/regression/spec.mk: removed _generic
17450
17451 2001-09-09  Michael Hope  <michaelh AT juju.net.nz>
17452
17453         * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
17454
17455         * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
17456         (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
17457
17458         * src/z80/peeph.def: Added a rule to optimise shift then compare.
17459
17460         * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
17461
17462         * support/regression/tests/bug-460010.c: Added test case.
17463
17464         * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
17465
17466 2001-09-09  Bernhard Held <bernhard AT bernhardheld.de>
17467
17468         * support/regression/Makefile: inter-port-clean adjusted for mcs51
17469
17470         * support/regression/testfwk.c: removed workaround for bug #436344
17471
17472         * support/regression/tests/bp.c: use less memory with mcs51
17473
17474         * support/regression/tests/bug-441448.c: use less memory
17475
17476         * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
17477
17478         * support/regression/collate-results.py: typo
17479
17480 2001-09-08  Michael Hope  <michaelh AT juju.net.nz>
17481
17482         * support/regression/tests/fetchoverlap.c: Added new test case.
17483
17484         * support/regression/tests/bp.c: Added new test case.
17485
17486         * support/regression/tests/bug-448984.c: Added new test case.
17487
17488         * support/regression/tests/pow2shifts.c: Added new test case.
17489
17490         * src/z80/gen.c: Turned off the noise it normally generates for the release.
17491         (genlshTwo): Fixed right shift for count > 8.
17492
17493         * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
17494
17495 2001-09-08    <johan AT FRIJA>
17496
17497         * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
17498
17499 2001-09-07    <johan AT FRIJA>
17500
17501         * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
17502
17503         * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
17504
17505 2001-09-06    <johan AT FRIJA>
17506
17507         * src/SDCC.y: this could be a fix for bug #458744 (1.37)
17508         * bernhard noted me at this: "() equals to (void)" (1.38)
17509
17510 2001-09-05    <johan AT FRIJA>
17511
17512         * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
17513
17514 2001-09-04    <johan AT FRIJA>
17515
17516         * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
17517
17518
17519 2001-09-04  Paul Stoffregen  <paul AT pjrc.com>
17520
17521         * pragma noinduction broke memcpy on mcs51 large model.  Moved it inside z80 optimization
17522
17523 2001-09-03  Michael Hope  <michaelh AT juju.net.nz>
17524
17525         * link/z80/aslink.h: Fixed path for PATH_MAX
17526
17527 2001-09-02  Michael Hope  <michaelh AT juju.net.nz>
17528
17529         * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
17530
17531         * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
17532
17533         * support/regression/tests/uminus.c: Added a test for the unary minus operator.
17534
17535         * 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.
17536
17537 2001-09-01  Michael Hope  <michaelh AT juju.net.nz>
17538
17539         * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
17540         (genCmp): Fixed up genCmp for the GB with longs.
17541
17542         * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
17543
17544         * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
17545
17546         * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
17547
17548         * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
17549
17550 2001-08-30  Paul Stoffregen  <paul AT pjrc.com>
17551
17552         * added peepholes 223 to 231 to mcs51 port.  These improve code when using large model.
17553
17554 2001-08-30  Michael Hope  <michaelh AT juju.net.nz>
17555
17556         * 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.
17557
17558         * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
17559
17560 2001-08-29  Michael Hope  <michaelh AT juju.net.nz>
17561
17562         * link/z80/aslink.h: Fixed long file name support.  Is now based off PATH_MAX instead of a constant.
17563
17564         * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
17565
17566 2001-08-30 Bernhard Held   <bernhard AT bernhardheld.de>
17567
17568         * sim/ucsim/configure:    little improvement of Cygwin-detection
17569         * sim/ucsim/configure.in: little improvement of Cygwin-detection
17570         * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
17571         * support/regression/tests/bug-221100.c: small changes for mcs51
17572         * support/regression/tests/bug-221168.c: small changes for mcs51
17573         * support/regression/tests/bug-227710.c: small changes for mcs51
17574         * support/regression/tests/staticinit.c: small changes for mcs51
17575         * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
17576         * as/mcs51/lklex.c:  accept everything as symbol name in rel-files, bug fix ID 452601
17577         * as/mcs51/lksym.c:  accept everything as symbol name in rel-files, bug fix ID 452601
17578
17579 $Revision$