* as/asranlib/asranlib.c: retain the original file mode
[fw/sdcc] / ChangeLog
1 2009-03-11 Borut Razem <borut.razem AT siol.net>
2
3         * as/asranlib/asranlib.c: retain the original file mode
4
5 2009-03-10 Borut Razem <borut.razem AT siol.net>
6
7         * src/mcs51/gen.c, src/z80/gen.c, src/hc08/gen.c, src/ds390/gen.c,
8           support/regression/tests/bug1875933.c:
9           fixed bug #1875933: Evelyn jumps into the void
10           thanks to Robert Larice
11
12 2009-03-10 Raphael Neider <rneider AT web.de>
13
14         * src/pic16/pcode.c (LinkFlow): fix invalid cast from pCodeLabel
15           to pCodeInstruction to avoid a segmentation fault
16
17 2009-03-03 Borut Razem <borut.razem AT siol.net>
18
19         * device/lib/printf_large.c: fixed bug #2656821: bug in printf
20
21 2009-03-03 Raphael Neider <rneider AT web.de>
22
23         * device/lib/pic/libdev/Makefile.in: build device-specific
24           libraries for the correct processor, fixes #2654585
25
26 2009-03-01 Raphael Neider <rneider AT web.de>
27
28         * device/lib/Makefile.in: fixed parallel builds (i.e., make -jN, N>1)
29
30 2009-03-01 Borut Razem <borut.razem AT siol.net>
31
32         * src/z80/peep.c: fixed bug #2648964: --i-code-in-asm crashes sdcc
33         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
34           changed sdcc version to 2.9.0
35
36 2009-03-01 Maarten Brock <sourceforge.brock AT dse.nl>
37
38         * src/mcs51/ralloc.c (spillThis, spilSomething): fixed bug 2435941
39           (serialRegAssign): do not spil bit registers
40           throughout cosmetic changes
41         * support/regression/tests/bug2435941.c: new, added
42
43 2009-02-28 Raphael Neider <rneider AT web.de>
44
45         * src/regression/compare10.c,
46           src/regression/compare7.c,
47           src/regression/compare8.c,
48           src/regression/compare9.c: reset watchdog timer in time
49         * src/regression/configword.c: apply patch from #2488150
50         * src/pic/glue.c (pic14createInterruptVect): pin RESET vector
51           handler to 0x0000 as the linker no longer knows STARTUP sections
52         * src/pic/pcode.c (register_reassign, ReuseReg): applied modified
53           patch #2512926 to (mostly) fix #1762626, cosmetic changes
54         * src/pic/pcodepeep.c: remove reference to nonexisting function
55
56 2009-02-28 Raphael Neider <rneider AT web.de>
57
58         * device/include/pic16/signal.h: avoid multiline inline
59           assembler statements in macros, addresses #2644965
60
61 2009-02-27 Raphael Neider <rneider AT web.de>
62
63         * device/include/pic16/pic18f[24][3456]k20.h,
64           device/include/pic16/pic18f[68][567]j50.h,
65           device/include/pic16/pic18f[68]6j55.h,
66           device/lib/pic16/libdev/pic18f[24][3456]k20.c,
67           device/lib/pic16/libdev/pic18f[68][567]j50.c,
68           device/lib/pic16/libdev/pic18f[68]6j55.c,
69           device/include/pic16/pic18fregs.h,
70           device/include/pic16/pic16devices.txt,
71           device/lib/pic16/pics.all,
72           device/lib/pic16/libdev/Makefile.am,
73           device/lib/pic16/libio/Makefile.am: added/re-enabled many device
74           families (87j50 family contributed by Robert Wuest)
75
76         * device/include/pic16/adc.h,
77           device/lib/pic16/libio/adc/adcbusy.c,
78           device/lib/pic16/libio/adc/adcclose.c,
79           device/lib/pic16/libio/adc/adcconv.c,
80           device/lib/pic16/libio/adc/adcopen.c,
81           device/lib/pic16/libio/adc/adcsetch.c: added 65j50-style ADC
82
83         * doc/sdccman.lyx: updated list of supported devices, fixed typo
84         * device/lib/pic16/Makefile.common: do not suppress assembler warnings
85
86         * device/lib/pic16/Makefile.in,
87           device/lib/pic16/libm/Makefile.in,
88           device/lib/pic16/debug/Makefile.in,
89           device/lib/pic16/libio/Makefile.in,
90           device/lib/pic16/startup/Makefile.in,
91           device/lib/pic16/libsdcc/Makefile.in,
92           device/lib/pic16/libdev/Makefile.in,
93           device/lib/pic16/libc/Makefile.in: regenerated
94
95 2009-02-27 Borut Razem <borut.razem AT siol.net>
96
97         * as/z80/asexpr.c, as/z80/z80mch.c: re-fixed bugs
98           #1829678 and #1704376 in the way proposed by Alan Baldwin
99
100 2009-02-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
101
102         * device/include/mcs51/at89c51ed2.h: Fixed address of SFR P5. Thanks
103           to Steve Qu for the fix.
104
105 2009-02-23 Borut Razem <borut.razem AT siol.net>
106
107         * as/z80/asexpr.c: fixed bug #1829678: Z-80 CP A,<xxx> assembly
108           it is already fixed for mcs51 and hc08 targets
109         * as/z80/z80mch.c: fixed bug #1704376: missing as-z80 errors
110
111 2009-02-22 Borut Razem <borut.razem AT siol.net>
112
113         * device/lib/Makefile.in: fixed parenthesis error
114         * doc/sdccman.lyx: fixed webdocs bug #2071421: error in the manual,
115           fixed webdocs bug #1967920: --version
116
117 2009-02-18 Maarten Brock <sourceforge.brock AT dse.nl>
118
119         * device/include/mcs51/at89c51ed2.h: fixed bug #2071949 bitmask RBCK wrong
120
121 2009-02-17 Maarten Brock <sourceforge.brock AT dse.nl>
122
123         * as/link/mcs51/lkihx.c (hexRecord): bugfix do not insert extended address
124           when addresses are unsorted
125
126 2009-02-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
127
128         * device/include/mcs51/p89v66x.h: added ENBOOT thanks
129           Gudjon Gudjonsson <gudjon AT gudjon.org>
130         * device/include/mcs51/p89c66x.h: fixed some defines
131         * device/include/mcs51/p89v66x.h: fixed some sbit addresses
132         * doc/sdccman.lyx: added <NO FLOAT> to index, try to reanimate
133           svn keywords
134
135 2009-02-14 Borut Razem <borut.razem AT siol.net>
136
137         * doc/sdccman.lyx: corrected cpp info
138
139 2009-02-13 Borut Razem <borut.razem AT siol.net>
140
141         * as/Makefile.in: *.doc renamed to *.txt
142
143 2009-02-11 Borut Razem <borut.razem AT siol.net>
144
145         * as/doc/aslnk.doc, as/doc/abstra.doc: renamed to *.txt
146         * as/doc/aslnk.txt, as/doc/asxhtml.html: changed licens to GPLv3
147
148 2009-02-11 Borut Razem <borut.razem AT siol.net>
149
150         * doc/sdccman.lyx: documented ar format libraries
151
152 2009-02-10 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
153
154         * support/regression/tests/float_single.c: added regression
155           test. Some testpoints for probably rarely used functions
156           (acosf, sinhf, tanf, expf) disabled for some targets
157
158 2009-02-10 Raphael Neider <rneider AT web.de>
159
160         * src/pic16/gen.c (pic16_freeAsmop): avoid NULL pointer dereference,
161           (genAssign): fixed for operands on the stack
162
163         * device/lib/pic16/libc/stdio/vfprintf.c,
164           device/lib/pic16/configure.ac,
165           device/lib/pic16/Makefile.common: add configurable support for
166           printing floats via ./configure --enable-floats
167         * device/lib/pic16/configure,
168           device/lib/pic16/Makefile.in,
169           device/lib/pic16/libm/Makefile.in,
170           device/lib/pic16/debug/Makefile.in,
171           device/lib/pic16/libio/Makefile.in,
172           device/lib/pic16/startup/Makefile.in,
173           device/lib/pic16/libsdcc/Makefile.in,
174           device/lib/pic16/libdev/Makefile.in,
175           device/lib/pic16/libc/Makefile.in: regenerated
176         * doc/sdccman.lyx: documented float support and how to get it
177         * doc/Makefile.in: fixed race condition on parallel builds
178
179         * device/lib/pic16/libc/stdio/sprintf.c,
180           device/lib/pic16/libc/stdio/vsprintf.c: do not mess up the user's
181           pointer to the string buffer, enlarge buffer for x_ftoa()
182
183 2009-02-10 Borut Razem <borut.razem AT siol.net>
184
185         * device/lib/printf_tiny.c: replaced non-C89 comments '//' with '/* */'
186
187 2009-02-10 Raphael Neider <rneider AT web.de>
188
189         * device/include/pic16/pic18f*.h: add bit aliases in INTCONbits_t
190
191 2009-02-09 Raphael Neider <rneider AT web.de>
192
193         * src/pic16/pcode.c (assignToSameBank): add force argument to ignore
194           artificial bank size limits for compound data (structs, arrays),
195           avoids assert if --obanksel=N, N > 1, is given
196
197 2009-02-09 Borut Razem <borut.razem AT siol.net>
198
199         * as/asranlib/asranlib.c, link/lkar.c: don't check the padding bytes since
200           the openSUSE GNU ar (GNU Binutils; openSUSE 11.0) 2.18.50.20080409-11.1
201           uses '`' character instead '\n' for padding
202         * as/asranlib/asranlib.c: made it more robust
203
204 2009-02-08 Borut Razem <borut.razem AT siol.net>
205
206         * as/COPYING3: added
207         * support/scripts/sdcc.nsi: added COPYING3.txt to the package
208         * device/lib/Makefile.in: reenable floating point in model-xstack-auto
209           libraries
210
211 2009-02-07 Borut Razem <borut.razem AT siol.net>
212
213         * as/asranlib/asranlib.c: fixed BSD header length calculation
214         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.9
215           due sdcc asxxxx license change to GPLv3
216
217 2009-02-05 Borut Razem <borut.razem AT siol.net>
218
219         * as/asranlib/asranlib.c, link/lkar.h, link/lkar.c:
220           added support for BSD (Mac OS X) ar format
221         * as/asxxsrc/aslex.c, as/as/asxxsrc/asnoice.c, as/as/asxxsrc/assym.c,
222           as/as/hc08/asdata.c, as/hc08/asexpr.c, as/hc08/aslist.c,
223           as/hc08/asm.h, as/hc08/asmain.c, as/hc08/asout.c, as/hc08/assubr.c,
224           as/hc08/m08adr.c, as/hc08/m08ext.c, as/hc08/m08mch.c,
225           as/hc08/m08pst.c, as/hc08/m6808.h, as/link/aslink.h,
226           as/link/hc08/lkarea.c, as/link/hc08/lkelf.c, as/link/hc08/lkihx.c,
227           as/link/hc08/lkmain.c, as/link/hc08/lkmem.c, as/link/hc08/lkrloc.c,
228           as/link/hc08/lks19.c, as/link/lkaomf51.c, as/link/lkdata.c,
229           as/link/lkeval.c, as/link/lkhead.c, as/link/lklex.c, as/link/lklib.c,
230           as/link/lklibr.c, as/link/lklibr.h, as/link/lklist.c,
231           as/link/lknoice.c, as/link/lkrel.c, as/link/lkrel.h,
232           as/link/lksdcclib.c, as/link/lkstore.c, as/link/lksym.c,
233           as/link/mcs51/lkarea.c, as/link/mcs51/lkihx.c,
234           as/link/mcs51/lkmain.c, as/link/mcs51/lkmem.c,
235           as/link/mcs51/lkrloc.c, as/link/mcs51/lks19.c, as/link/z80/lkarea.c,
236           as/link/z80/lkgb.c, as/link/z80/lkgg.c, as/link/z80/lkihx.c,
237           as/link/z80/lkmain.c, as/link/z80/lkrloc.c, as/link/z80/lks19.c,
238           as/mcs51/asdata.c, as/mcs51/asexpr.c, as/mcs51/aslist.c,
239           as/mcs51/asm.h, as/mcs51/asmain.c, as/mcs51/asout.c,
240           as/mcs51/assubr.c, as/mcs51/i51adr.c, as/mcs51/i51ext.c,
241           as/mcs51/i51mch.c, as/mcs51/i51pst.c, as/mcs51/i8051.h,
242           as/xa51/xa_link.c, as/xa51/xa_main.c, as/xa51/xa_main.h,
243           as/xa51/xa_rasm.l, as/xa51/xa_rasm.y, as/xa51/xa_version.h,
244           as/z80/asdata.c, as/z80/asexpr.c, as/z80/aslist.c, as/z80/asm.h,
245           as/z80/asmain.c, as/z80/asout.c, as/z80/assubr.c, as/z80/z80.h,
246           as/z80/z80adr.c, as/z80/z80ext.c, as/z80/z80mch.c, as/z80/z80pst.c:
247           changed license to GPL either version 3, or (at your option) any
248           later version
249
250 2009-02-05 Borut Razem <borut.razem AT siol.net>
251
252         * as/asranlib/asranlib.c, link/lkar.h, link/lkar.c:
253           added support for BSD (Mac OS X) ar format
254
255 2009-02-02 Borut Razem <borut.razem AT siol.net>
256
257         * device/lib/gbz80/Makefile.in, device/lib/hc08/Makefile.in,
258           device/lib/z80/Makefile.in:
259           chose source files in the PORT directory if they are available
260
261 2009-02-01 Raphael Neider <rneider AT web.de>
262
263         * device/lib/pic16/libdev/pic18f1220.c,
264         * device/lib/pic16/libdev/pic18f4450.c:
265           define SSPBUF to allow use of printf
266
267 2009-02-01 Borut Razem <borut.razem AT siol.net>
268
269         * device/lib/Makefile.in, device/lib/gbz80/Makefile.in,
270           device/lib/hc08/Makefile.in, device/lib/incl.mk,
271           device/lib/z80/Makefile.in:
272           don't remake libraries
273         * support/regression/tests/snprintf.c:
274           reenable floating point in small-xstack-auto library
275
276 2009-01-26 Raphael Neider <rneider AT web.de>
277
278         * src/pic16/ralloc.c (packForPush): disabled to fix #2496919
279
280 2009-01-25 Raphael Neider <rneider AT web.de>
281
282         * src/pic16/main.c (_pic16_linkEdit): prepend -L paths to linker
283           search path instead of appending them
284
285 2009-01-24 Borut Razem <borut.razem AT siol.net>
286
287         * as/asranlib/asranlib.h: changed type of offset to unsigned int to
288           make it work on ppc Mac OS X (off_t is 64 bit and is not converted
289           to 32 bit unsigned int when calling sputl() since it is a macro
290         * as/link/lkar.c: changed the initialization of This->loaded
291
292 2009-01-23 Borut Razem <borut.razem AT siol.net>
293
294         * as/link/lkar.h: changed type of ar_size to size_t to make it work on
295           ppc Mac OS X (off_t is 64 bit and is not converted to 32 bit
296           unsigned int when calling new(), since asxxxx doesn't use function
297           prototypes)
298
299 2009-01-21 Borut Razem <borut.razem AT siol.net>
300
301         * as/link/lkar.h: sgetl and sputl are independent of endianness
302         * as/link/sdxxxx_config.h.in: removed endianness detection
303
304 2009-01-20 Borut Razem <borut.razem AT siol.net>
305
306         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.8
307           due creation of ar format libraries
308         * support/scripts/sdcc.nsi:
309           don't add nonexistent object files to the package
310
311 2009-01-19 Borut Razem <borut.razem AT siol.net>
312
313         * Makefile.in, configure.in, configure,
314           device/lib/Makefile.in, device/lib/ds390/Makefile.in,
315           device/lib/ds400/Makefile.in, device/lib/gbz80/Makefile.in,
316           device/lib/hc08/Makefile.in, device/lib/large/Makefile.in,
317           device/lib/mcs51/Makefile.in, device/lib/medium/Makefile.in,
318           device/lib/small/Makefile.in,
319           device/lib/z80/Makefile.in: create ar format libraries
320         * support/regression/ports/mcs51-xstack-auto/spec.mk:
321           use device/lib/Makefile to create library
322         * support/regression/tests/snprintf.c:
323           floating point is not enabled in small-xstack-auto library
324         * device/lib/libfloat.lib, device/lib/libint.lib,
325           device/lib/liblong.lib, device/lib/libsdcc.lib: removed
326
327 2009-01-18 Borut Razem <borut.razem AT siol.net>
328
329         * support/cpp/auto-host.h: fixed warning: "__STDC__" redefined,
330           warning: extra tokens at end of #endif directive
331
332 2009-01-11 Borut Razem <borut.razem AT siol.net>
333
334         * Makefile.in: added SDCC_ASRANLIB to PKGS
335
336 2009-01-10 Borut Razem <borut.razem AT siol.net>
337
338         * support/scripts/sdcc.nsi: added asranlib.exe to the install package
339         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.7
340           due added support for ar format libraries
341
342 2009-01-09 Borut Razem <borut.razem AT siol.net>
343
344         * as/asranlib/Makefile.in, as/asranlib/asranlib.dsp,
345           as/asranlib/asranlib.c: added asranlib
346         * as/link/lkar.c, as/link/lkar.h: added support for ar format libraries
347         * Makefile.in, as/link/hc08/Makefile.in,
348           as/link/hc08/link_hc08.dsp, as/link/lklib.c, as/link/lklibr.c,
349           as/link/lklibr.h, as/link/lkrel.c, as/link/lkrel.h,
350           as/link/lksdcclib.c, as/link/mcs51/Makefile.in,
351           as/link/mcs51/aslink.dsp, as/link/z80/Makefile.in,
352           as/link/z80/linkgbz80.dsp, as/link/z80/linkz80.dsp, configure,
353           configure.in, sdcc.dsw: modified to support ar format libraries
354
355 2009-01-08 Maarten Brock <sourceforge.brock AT dse.nl>
356
357         * src/SDCCast.c (decorateType RETURN): use RESULT_TYPE_GPTR for generic
358           pointer return
359
360 2009-01-05 Philipp Klaus Krause <pkk AT spth.de>
361
362         * sim/ucsim/z80.src/inst_ed.cc:
363           Fixed bug #2488074, which made regression tests fail.
364
365 2009-01-05 Philipp Klaus Krause <pkk AT spth.de>
366
367         * device/lib/z80/mod.s,
368           device/lib/z80/div.s,
369           device/lib/z80/mulchar.s,
370           device/lib/z80/mul.s,
371           device/lib/z80/divsigned.s,
372           device/lib/z80/Makefile.in:
373           Implemented RFE #1702376.
374
375 2009-01-05 Borut Razem <borut.razem AT siol.net>
376
377         * as/link/lksdcclib.c:
378           fixed linker hanging in INDEXLIB is not defined (hc08)
379
380 2009-01-04 Philipp Klaus Krause <pkk AT spth.de>
381
382         * src/z80/gen.c:
383           Implemented RFE #2485684, and some further improvements of HL caching
384           including a bugfix.
385         * src/z80/peeph-z80.def:
386           Fixed a bug exposed by implementing RFE #2485684.
387
388 2009-01-04 Philipp Klaus Krause <pkk AT spth.de>
389
390         * src/z80/peeph-z80.def:
391           Peephole improvements.
392         * src/z80/gen.c,
393           src/z80/main.c,
394           device/include/string.h,
395           device/lib/z80/memmove.s:
396           Minor code cleanup.
397         * device/lib/z80/Makefile.in,
398           device/lib/Makefile.in,
399           support/regression/tests/memory.c,
400           device/lib/z80/strlen.s:
401           Partially implemented RFE #2471534.
402
403 2009-01-04 Borut Razem <borut.razem AT siol.net>
404
405         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.6
406           due changes in sdcc asxxxx linkers - it sholud be done 2 days ago :(
407         * doc/README.txt: updated John Hartman's e-mail address
408         * as/link/lkrel.c, as/link/lksdcclib.c:
409           fixed bug #2484677: Linker hangs
410         * src/z80/peep.c: fixed msvc warning C4047:
411           'return' : 'int ' differs in levels of indirection from 'char *'
412         * config.dsp: as/lib corrected to as/link
413
414 2009-01-04 Philipp Klaus Krause <pkk AT spth.de>
415
416         * src/z80/peep.c:
417           Implemented RFE #2484693.
418         * src/z80/peeph-z80.def:
419           Some peephole improvements.
420
421 2009-01-03 Borut Razem <borut.razem AT siol.net>
422
423         * as/link/lklibr.c:
424           fixed warning: 'ret' may be used uninitialized in this function
425
426 2009-01-02 Borut Razem <borut.razem AT siol.net>
427
428         * as/link/lklib.c, as/link/lksdcclib.c, as/link/lklibr.h,
429           as/link/getline.[ch], as/link/lkrel.[ch]: added,
430           made support for differnet library formats more flexible,
431           preparation for support of ar format
432         * as/link/lklibr.c, as/link/z80/Makefile.in,
433           as/link/z80/linkgbz80.dsp, as/link/z80/linkz80.dsp,
434           as/link/hc08/link_hc08.dsp, as/link/hc08/Makefile.in,
435           as/link/mcs51/aslink.dsp, as/link/mcs51/Makefile.in,
436           as/link/hc08/lkelf.c, as/link/aslink.h:
437           made support for differnet library formats more flexible,
438           preparation for support of ar format
439
440 2009-01-01 Borut Razem <borut.razem AT siol.net>
441
442         * as/link/asxxxx_config.h.in:
443           fixed warning: extra tokens at end of #endif directive
444         * src/z80/peep.c:
445           fixed warning: suggest parentheses around && within ||
446         * device/lib/Makefile.in: allow whitespaces at the end of lines in
447           ports.build, in order to make it work on cygwin - it seems to be a
448           bug in cygwin grep: CR is not treated as part of end-of-line
449
450 2008-12-31 Borut Razem <borut.razem AT siol.net>
451
452         * configure, configure.in, config.dsp, config_vc.awk,
453           as/link/asxxxx_config.h.in, as/link/hc08/lkelf.c, as/link/aslink.h,
454           as/link/hc08/Makefile.in, as/link/mcs51/Makefile.in:
455           introduced asxxxx_config.h.in
456
457 2008-12-30 Philipp Klaus Krause <pkk AT spth.de>
458
459         * src/z80/gen.c,
460           src/z80/peeph-z80.def:
461           Minor addition improvement.
462
463 2008-12-30 Raphael Neider <rneider AT web.de>
464
465         * as/link/hc08/lkelf.c, as/link/lkaomf51.c, as/link/lklibr.c,
466           as/link/z80/lkgb.c, debugger/mcs51/cmd.c, sim/ucsim/utils.cc,
467           src/SDCCasm.c, support/Util/dbuf_string.c, support/cpp/c-ppoutput.c,
468           support/cpp/libcpp/lex.c, support/cpp/libcpp/macro.c,
469           support/librarian/sdcclib.c, support/makebin/makebin.c:
470           partially revert changes from r5293..r5295
471
472 2008-12-29 Philipp Klaus Krause <pkk AT spth.de>
473
474         * src/z80/peeph-z80.def:
475           Minor peephole improvement.
476
477 2008-12-29 Raphael Neider <rneider AT web.de>
478
479         * src/pic/pcode.c (insertBankSel, FixRegisterBanking): emit
480           incorrectly discarded BANKSELs
481
482 2008-12-29 Philipp Klaus Krause <pkk AT spth.de>
483
484         * support/regression/tests/memory.c:
485           Added simple test for memset(), memcpy() and memmove()
486
487 2008-12-29 Borut Razem <borut.razem AT siol.net>
488
489         * sdcc/support/scripts/sdcc.nsi: removed $INSTDIR\lib\src\z80\*.c
490
491 2008-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
492
493         * src/mcs51/peeph.def (177.e): replaced notVolatile(%3) with
494           operandsNotRelated(%1 %3), had to change (a)r%1 to (a)%1 for this to work
495           (177.j): added new rule
496         * src/SDCCsymt.h: added RESULT_TYPE_GPTR
497         * src/SDCCast.c (processParms): use RESULT_TYPE_GPTR for generic ptr parms,
498           (decorateType CAST): propagate storage class to generic pointer results
499
500 2008-12-27 Philipp Klaus Krause <pkk AT spth.de>
501
502         * device/lib/z80/string.c,
503           device/lib/z80/printf.c,
504           device/lib/z80/mul.s:
505           z80 library cleanup
506         * src/z80/gen.c:
507           Fixed code generation bug exposed by builtin memcpy().
508
509 2008-12-27 Philipp Klaus Krause <pkk AT spth.de>
510
511         * device/lib/_memcpy.c:
512           fixed conflict with builtin memcpy()
513
514 2008-12-26 Borut Razem <borut.razem AT siol.net>
515
516         * support/librarian/sdcclib.c:
517           fixed bug 2466950: "sdcclib broken"
518           by removing fgets return value check
519
520 2008-12-26 Philipp Klaus Krause <pkk AT spth.de>
521         * src/z80/main.c,
522           src/z80/gen.c,
523           device/include/string.h: Implemented RFE #1914254
524
525 2008-12-26 Philipp Klaus Krause <pkk AT spth.de>
526         * device/lib/z80/Makefile.in,
527           device/lib/Makefile.in,
528           device/lib/z80/memmove.s: Implemented RFE #1914256
529
530 2008-12-26 Philipp Klaus Krause <pkk AT spth.de>
531
532         * src/z80/peeph-z80.def: fixed a bug in peephole 0zf
533         * src/z80/peep.c: improved checks for unused data
534         * src/z80/gen.c,
535           src/z80/main.c: Implemented RFE #1899189
536
537 2008-12-25 Borut Razem <borut.razem AT siol.net>
538
539         * support/regression/Makefile.in:
540           add -I$(INC_DIR) to SDCCFLAGS only if INC_DIR is defined
541
542 2008-12-25 Philipp Klaus Krause <pkk AT spth.de>
543
544         * src/z80/peeph-z80.def: minor peephole improvements
545
546 2008-12-21 Borut Razem <borut.razem AT siol.net>
547
548         * support/librarian/sdcclib.c: fixed build failure on Mac OS X
549           due to redefinition of symbol __assert
550           sdcclib.c:53:1:warning: "__assert" redefined
551           /Xcode2.5/SDKs/MacOSX10.4u.sdk/usr/include/assert.h:80:1:
552           warning: this is the location of the previous definition
553
554 2008-12-20 Raphael Neider <rneider AT web.de>
555
556         * debugger/mcs51/break.c, debugger/mcs51/cmd.c,
557           debugger/mcs51/simi.c, debugger/mcs51/symtab.c,
558           support/cpp/libcpp/macro.c: fix format string errors
559
560         * sim/ucsim/s51.src/timer2.cc: add clarifying parens
561
562         * src/pic/device.c: partial rewrite using strtok,
563           quieten compiler warnings, adopt SDCC coding style
564
565         * as/link/hc08/lkelf.c, as/link/lkaomf51.c, as/link/lklibr.c,
566           as/link/z80/lkgb.c, as/z80/asout.c, debugger/mcs51/cmd.c,
567           sim/ucsim/utils.cc, src/SDCCasm.c, support/Util/dbuf_string.c,
568           support/cpp/c-ppoutput.c, support/cpp/libcpp/lex.c,
569           support/librarian/sdcclib.c, support/makebin/makebin.c:
570           quieten most compiler warnings
571
572         * sim/ucsim/avr.src/arith_inst.cc: quieten compiler warnings,
573           probably fix operator precedence bug
574
575         * doc/clean.mk: quieten rm if no .lyx is present
576
577 2008-12-19 Borut Razem <borut.razem AT siol.net>
578
579         * doc/sdccman.lyx, doc/random-notes.txt, doc/avr/avr_design.txt,
580           doc/TININative.txt, doc/macro-sys-design.txt, doc/libdoc.txt,
581           doc/README.txt, doc/test_suite_spec.lyx:
582           applied patch 2446381: Dcoumentation spelling correcitons
583           thanks to Steven Borley
584
585 2008-12-16 Raphael Neider <rneider AT web.de>
586
587         * device/include/pic/pic12f629.h,
588           device/include/pic/pic12f675.h,
589           device/lib/pic/libdev/pic12f629.c,
590           device/lib/pic/libdev/pic12f675.c: consolidated, added TRISIO bits
591
592 2008-12-14 Borut Razem <borut.razem AT siol.net>
593
594         * doc/sdccman.lyx, cdbfileformat.lyx, test_suite_spec.lyx:
595           converted to LyX 1.5.7 (\lyxformat 276) format
596
597 2008-12-07 Borut Razem <borut.razem AT siol.net>
598
599         * support/regression/tests/bitfields.c:
600           added test case for bug #2366757
601
602 2008-12-07 Raphael Neider <rneider AT web.de>
603
604         * src/pic16/glue.c (pic16_printIvalBitFields): prevent
605           NULL pointer dereference, closes #2366757
606
607 2008-11-25 Raphael Neider <rneider AT web.de>
608
609         * device/include/pic16/pic16devices.txt,
610           sdcc/src/pic16/device.c,
611           sdcc/src/pic16/device.h: implicitly disable XINST
612           whenever CONFIG4L is set via an additional optional
613           argument to the configword directive in pic16devices.txt
614
615 2008-11-24 Raphael Neider <rneider AT web.de>
616
617         * device/lib/pic16/configure.ac,
618           device/lib/pic16/Makefile.common: fixed quoting issues
619
620         * device/lib/pic16/configure,
621           device/lib/pic16/debug/Makefile.in,
622           device/lib/pic16/libc/Makefile.in,
623           device/lib/pic16/libdev/Makefile.in,
624           device/lib/pic16/libio/Makefile.in,
625           device/lib/pic16/libm/Makefile.in,
626           device/lib/pic16/libsdcc/Makefile.in,
627           device/lib/pic16/Makefile.in,
628           device/lib/pic16/startup/Makefile.in: regenerated
629
630         * src/pic16/main.c (_pic16_finaliseOptions): revert to
631           variant of r5216
632
633 2008-11-24 Raphael Neider <rneider AT web.de>
634
635         * src/pic16/main.c (_pic16_finaliseOptions): do not quote the
636           argument of --asm= or --link= to allow for
637           --asm="sh script --options", the user can double quote the
638           argument if needed: --asm="'c:/program files/gpasm' -q",
639           also fix some potential buffer overflows
640
641 2008-11-19 Borut Razem <borut.razem AT siol.net>
642
643         * doc/sdccman.lyx:
644           fixed 2314467: sdccman.lyx: fix "--" in command line parameters
645           thanks Mauro Giachero
646
647 2008-11-16 Borut Razem <borut.razem AT siol.net>
648
649         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.5
650         * doc/sdccman.lyx: documented fixed unnamed bit-field initialization
651
652 2008-11-15 Borut Razem <borut.razem AT siol.net>
653
654         * src/pic16/glue.c, src/SDCC.y, src/SDCCast.c, src/SDCCglue.c,
655           src/SDCCsymt.c, src/SDCCsymt.h:
656           fixed RFE #2291335 : Unnamed bit-field initialization
657         * support/regression/tests/bitfields.c:
658           added test case for RFE #2291335
659         * support/regression/tests/bug-1981238.c:
660           don't initialize unnamed bit-fields
661
662 2008-11-11 Raphael Neider <rneider AT web.de>
663
664         * device/include/pic16/pic18f25j10.h,
665           device/include/pic16/pic18f45j10.h: remove useless boilerplate
666
667         * device/include/pic16/adc.h,
668           device/lib/pic16/libio/adc/adcbusy.c,
669           device/lib/pic16/libio/adc/adcclose.c,
670           device/lib/pic16/libio/adc/adcconv.c,
671           device/lib/pic16/libio/adc/adcopen.c,
672           device/lib/pic16/libio/adc/adcread.c,
673           device/lib/pic16/libio/adc/adcsetch.c: generalized, documented,
674           and fixed ADC routines to work for more target devices,
675           incorporates patch #2036130 by Nick Materer
676
677 2008-11-10 Steven Borley <steven.borley AT partnerelectronics.com>
678
679         * device/include/ctype.h,
680         * device/include/ds400rom.h,
681         * device/include/ds80c390.h,
682         * device/include/float.h,
683         * device/include/math.h,
684         * device/include/serial.h,
685         * device/include/stdbool.h,
686         * device/include/tinibios.h: replaced non-C89 '//' with '/* */',
687           patch 2195343
688         * device/include/mcs51/C8051F336.h,
689         * device/include/mcs51/C8051T600.h,
690         * device/include/mcs51/C8051T610.h,
691         * device/include/mcs51/C8051T630.h: new, added, patch 2183334
692           (svn commit by Maarten Brock <sourceforge.brock AT dse.nl>)
693
694 2008-11-10 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
695
696         * device/include/mcs51/P89LPC922.h: fixed #2255989, thanks kubi57
697
698 2008-11-10 Raphael Neider <rneider AT web.de>
699
700         * device/lib/pic16/libdev/mkmk.sh: obey pics.all
701         * device/lib/pic16/libio/mkmk.sh: properly match whole lines in
702           .ignore files, fixes IO libs for 18f242, 18f252, 18f442, and 18f452
703           (patch by Nick Materer, #2253980)
704
705         * device/lib/pic16/libio/adc.ignore,
706           device/lib/pic16/libio/i2c.ignore,
707           device/lib/pic16/libio/usart.ignore,
708           device/lib/pic16/pics.all: updated to build more device libs
709
710         * device/lib/pic16/libdev/Makefile.am,
711           device/lib/pic16/libdev/Makefile.in,
712           device/lib/pic16/libio/Makefile.am,
713           device/lib/pic16/libio/Makefile.in: regenerated
714
715         * src/pic16/device.c (pic16_dump_usection): fixed output of multiple
716           names per memory location, applied SDCC style to more functions
717
718 2008-11-09 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
719
720         * device/include/mcs51/p89lpc933_4.h: new NXP header file
721         * device/include/mcs51/p89lpc935_6.h: new NXP header file
722         * device/include/mcs51/p89v66x.h: minor changes
723           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
724
725 2008-11-09 Raphael Neider <rneider AT web.de>
726
727         * device/include/pic/pic14devices.txt: fixed memory description for
728           12f629 and 12f675, closes #2236240
729
730 2008-11-06 Borut Razem <borut.razem AT siol.net>
731
732         * src/SDCCmain.c: fixed bug #2224960: sdcc -MM no working correctly
733           pass system include paths with -isystem to sdcpp
734         * src/SDCCglue.c, src/pic/glue.c, src/pic16/glue.c: removed unneeded
735           functions (closePipes), (closeTmpFiles) and (rmTmpFiles)
736
737 2008-11-02 Raphael Neider <rneider AT web.de>
738
739         * doc/sdccman.lyx: updated the sections on the library build process
740           and on how to add support for new devices, and documented known
741           problems with the extended instruction set including a workaround
742
743 2008-11-01 Raphael Neider <rneider AT web.de>
744
745         * device/include/pic16/adc.h,
746           device/include/pic16/pic16devices.txt,
747           device/include/pic16/pic18f2410.h,
748           device/include/pic16/pic18f2510.h,
749           device/include/pic16/pic18f2515.h,
750           device/include/pic16/pic18f2610.h,
751           device/include/pic16/pic18f4410.h,
752           device/include/pic16/pic18f4510.h,
753           device/include/pic16/pic18f4515.h,
754           device/include/pic16/pic18f4610.h,
755           device/include/pic16/pic18fregs.h,
756           device/lib/pic16/libdev/Makefile.am,
757           device/lib/pic16/libdev/Makefile.in,
758           device/lib/pic16/libdev/pic18f2410.c,
759           device/lib/pic16/libdev/pic18f2510.c,
760           device/lib/pic16/libdev/pic18f2515.c,
761           device/lib/pic16/libdev/pic18f2610.c,
762           device/lib/pic16/libdev/pic18f4410.c,
763           device/lib/pic16/libdev/pic18f4510.c,
764           device/lib/pic16/libdev/pic18f4515.c,
765           device/lib/pic16/libdev/pic18f4610.c,
766           device/lib/pic16/libio/Makefile.am,
767           device/lib/pic16/libio/Makefile.in,
768           device/lib/pic16/pics.all: added support for 18f[24][456]10
769           and 18f[24]515 devices
770         * doc/sdccman.lyx: updated list of supported PIC16 devices
771
772         * src/pic/glue.c, src/pic/pcode.c, src/pic/pcodeflow.c,
773           src/pic16/glue.c, src/pic16/pcode.c, src/pic16/pcodeflow.c,
774           src/xa51/gen.c: avoid compiler warnings
775         * support/scripts/inc2h-pic16.pl: removed trailing whitespace
776
777 2008-10-22 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
778
779         * device/include/mcs51/p89v66x.h: NXP header file
780         * device/include/mcs51/p89c66x.h: fixed an SBIT definition
781           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
782
783 2008-10-14 Raphael Neider <rneider AT web.de>
784
785         * device/lib/pic16/libdev/Makefile.am,
786           device/lib/pic16/libio/Makefile.am: enable building libraries for
787           18f2321, 18f4321, 18f2523, 18f4620, 18f66j60, 18f66j65, 18f67j60,
788           18f86j60, 18f86j65, 18f87j60, 18f96j60, 18f96j65, and 18f97j60
789         * device/lib/pic16/libdev/Makefile.in,
790           device/lib/pic16/libio/Makefile.in: regenerated
791
792 2008-10-14 Raphael Neider <rneider AT web.de>
793
794         * device/include/pic16/pic18f2450.h,
795           device/include/pic16/pic18f4450.h,
796           device/lib/pic16/libdev/pic18f2450.c,
797           device/lib/pic16/libdev/pic18f4450.c,
798           device/include/pic16/adc.h,
799           device/include/pic16/pic16devices.txt,
800           device/include/pic16/pic18fregs.h,
801           device/lib/pic16/libdev/Makefile.am,
802           device/lib/pic16/libdev/Makefile.in,
803           device/lib/pic16/libio/Makefile.am,
804           device/lib/pic16/libio/Makefile.in,
805           device/lib/pic16/pics.all: added 18f2450 and 18f4450, closes #1844525
806
807         * device/lib/pic16/libsdcc/stack/stack.S: there is no need to pin the
808           stack to a fixed location, relax it to automatically work with all
809           but the smallest devices (256 byte RAM devices need #pragma stack)
810
811 2008-10-09 Maarten Brock <sourceforge.brock AT dse.nl>
812
813         * debugger/mcs51/break.c: bugfix from patch 1989966, thanks Risto Huotari
814         * debugger/mcs51/simi.c: bugfix from patch 1989972, thanks Risto Huotari
815         * device/lib/_strcspn.c: fixed bug 2140931
816
817 2008-10-06 Raphael Neider <rneider AT web.de>
818
819         * device/include/pic16/stdio.h,
820           device/lib/pic16/libc/stdio/putchar.c: putchar should not be
821           declared __naked for convenience, named all arguments
822         * device/lib/pic16/libc/stdio/strmgpsim.c,
823           device/lib/pic16/libc/stdio/strmmssp.c,
824           device/lib/pic16/libc/stdio/strmusart.c: cosmetic changes
825
826         * src/pic16/pcode.c (createReachingDefinitions): avoid segfault on
827           empty __naked functions,
828         * (pCodeLabelDestruct, pic16_unlinkpCode, pic16_pCodeUnlink): fix
829           corner cases (unlink first/last pCode in list), reuse more code
830
831 2008-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
832
833         * src/ds390/main.c (_ds390_genInitStartup): added
834         * src/SDCCpeeph.c (getPatternVar): new, added,
835           (labelInRange): fixed bug 2115959
836         * src/mcs51/peeph.def (rules 193.x to 198.x): check for labelInRange
837         * src/SDCCicode.h: added newiTempOperand
838         * src/SDCCcse.c (algebraicOpts): fixed bug for x*-1,
839           added optimizations for 0/x and x/-1, see also patch 2142900
840         * support/regression/tests/onebyte.c (testMul): added test cases
841
842 2008-09-20 Borut Razem <borut.razem AT siol.net>
843
844         * src/pic16/glue.c:
845           definition of absolute address symbols without initial value,
846           fixed SDCC crash "do not know how to intialize symbol"
847
848 2008-09-16 Maarten Brock <sourceforge.brock AT dse.nl>
849
850         * device/lib/z80/mul.s (__mulsuchar_rrx_s, __muluschar_rrx_s),
851         * device/lib/z80/div.s (__divsuchar_rrx_s, __modsuchar_rrx_s,
852           __divuschar_rrx_s, __moduschar_rrx_s): added mixed signedness versions
853         * device/lib/z80/stubs.s: added stubs for above functions
854         * src/SDCCopt.c (convilong),
855         * src/SDCCsymt.c (initCSupport): fixed bug 1900961
856         * src/SDCCsymt.h (__muldiv): enlarged for mixed signedness
857         * src/z80/main.c (_hasNativeMulFor): fixed bug, I think
858         * support/regression/tests/onebyte.c: enabled all tests for z80
859
860 2008-09-15 Borut Razem <borut.razem AT siol.net>
861
862         * device/include/pic16/stdio.h, device/lib/pic16/libc/stdio/streams.c,
863           device/lib/pic16/libc/stdio/printf.c,
864           device/lib/pic16/libc/stdio/strmusart.c,
865           device/lib/pic16/libc/stdio/printf_tiny.c,
866           device/lib/pic16/libc/stdio/sprintf.c,
867           device/lib/pic16/libc/stdio/strmgpsim.c,
868           device/lib/pic16/libc/stdio/putchar.c,
869           device/lib/pic16/libc/stdio/fprintf.c,
870           device/lib/pic16/libc/stdio/strmmssp.c,
871           device/device/lib/pic16/libc/stdio/vprintf.c,
872           device/lib/pic16/libc/stdio/printf_small.c,
873           device/lib/pic16/libc/stdio/vsprintf.c,
874           device/lib/pic16/libc/stdio/strmputchar.c,
875           device/lib/pic16/libc/Makefile.am,
876           device/lib/pic16/libc/Makefile.in:
877           *printf now returns int, puchar.c moved from stdlib to stdio,
878           *printf format parameter type changed from char * to const char *,
879           added GNU link excetion text to library source files,
880           applyed GNU coding style, removed useless svn ids,
881           added BINARY_SPECIFIER macro re-enables the use of the removed 'b'
882           binary specifier: "%b", "%hb" and "%lb"
883         * device/lib/pic16/libc/stdio/vfprintf.c:
884           applied patch #2044424: PIC16: vfprintf
885           thanks Mauro Giachero
886         * support/regression/tests/bug1057979.c:
887           removed old pic16 sprintf specifics
888         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.4
889         * doc/sdccman.lyx: documented 'b' binary format specifier removal
890
891 2008-09-15 Raphael Neider <rneider AT web.de>
892
893         * src/pic16/device.c (pic16_dump_usection): force udata sections
894           into the addressable range (0..0xFFF), workaround for a gpsim
895           bug preventing simulation of regtest bug1750318
896         * src/pic16/ralloc.c (deassignLRs): cosmetic changes,
897           (serialRegAssign): fixed regtest bug-971834,
898           (pic16_packRegisters): avoid null-pointer dereference
899
900 2008-09-14 Raphael Neider <rneider AT web.de>
901
902         * src/pic16/gen.c, src/pic16/ralloc.c: use
903           SYM_SPIL_LOC/SPIL_LOC macros, no functional changes
904         * src/pic16/ralloc.c (rematStr): reimplemented, fixes #1818857
905
906 2008-09-12 Borut Razem <borut.razem AT siol.net>
907
908         * support/regression/fwk/testfwk.h:
909           define pdata as data for pic16 target
910           thanks Mauro Giachero
911
912 2008-09-11 Borut Razem <borut.razem AT siol.net>
913
914         * support/regression/tests/bug-221100.c, support/regression/shifts.c,
915           support/regression/absolute.c:
916           applied patch #2105615: Some PIC16 testcase fixlets
917           thanks Mauro Giachero
918
919 2008-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
920
921         * src/z80/gen.c (genCmpGt, genCmpLt): fixed bug 2094505
922         * support/regression/tests/bug2094505.c: new, added
923
924 2008-09-07 Borut Razem <borut.razem AT siol.net>
925
926         * src/SDCCglue.c, src/SDCCast.c:
927           fixed throw of "excess elements" warning for char arrays
928         * support/regression/tests/nullstring.c:
929           disable warning about excess elements in array of chars initializer
930
931 2008-09-07 Maarten Brock <sourceforge.brock AT dse.nl>
932
933         * as/z80/aslist.c (lstsym): changed old K&R to ANSI
934         * src/SDCCicode.c (geniCodeCritical): fixed bug for hc08
935         * src/z80/gen.c (genCritical, genEndCritical): fixed bug 2077267
936         * support/regression/tests/bug2077267.c: new, added
937
938 2008-09-05 Raphael Neider <rneider AT web.de>
939
940         * configure.in, Makefile.common.in: add support for ccache,
941           remove spurious $VERSION output, detect doc-tools even without
942           --enable-doc to facilitate later manual doc-builds, minor cleanup
943         * configure: regenerated
944
945         * doc/Makefile.in: quieten pdflatex, makeindex, and latex2html,
946           avoid races in parallel VPATH builds
947         * doc/clean.mk: remove .lyx files in the builddir for VPATH builds
948         * doc/sdccman.lyx: mention --without-ccache configure option
949
950 2008-09-01 Raphael Neider <rneider AT web.de>
951
952         * src/pic16/gen.c (pic16_derefPtr): handle CPOINTERs as well
953         * (genConstPointerGet): fix reading bitfields from __code space
954         * src/pic16/glue.c (pic16_printIvalBitFields): correctly mask
955           bitfield initializers (fix regression test bug1856409.c)
956         * (pic16_printIvalCharPtr,pic16_printIvalPtr): generalized to support
957           arbitrary sizes
958
959 2008-08-31 Raphael Neider <rneider AT web.de>
960
961         * src/pic16/gen.c (genAssign): removed useless compiler output
962         * (genPointerGet,genPointerSet,genCast),
963           src/pic16/glue.c (pic16_printGPointerType):
964           also handle PPOINTERs just to avoid spurious asserts
965         * (pic16_printIvalType,pic16_printIvalBitFields):
966           generalized to arbitrary type/bitfield sizes, allows compilation of
967           regression test bug-1981238.c
968         * (pic16_printIvalChar): fix regression test structflexarray.c
969         * (pic16_printIvalArray): avoid SIGSEGV on uninitialized strings
970           in initialized structs and fix #1843745
971         * (pic16_printIvalStruct): always output initializers for all fields,
972           even those not explicitly given, fixes zeropad.c regression test
973         * (pic16_printIvalUnion): fix union initializers (bug1426356.c,
974           #2073635, #1567098, and #1485812)
975         * src/pic16/main.c (_pic16_keywords): remove unsupported 'pdata'
976
977 2008-08-31 Borut Razem <borut.razem AT siol.net>
978
979         * support/regression/tests/bug-895992.c,
980           support/regression/tests/onebyte.c:
981           enabled pic16 regression testing since the bugs
982           1511794: pic16: regression test bug-895992.c fails
983           1444425: onebyte.c regression tes fails on pic16
984           are fixed, probably by fixing
985           2048464: PIC16: fix genUminus - addresses not.c regression test
986         * src/SDCCsymt.c, src/SDCCglue.c,
987           support/regression/tests/bug-1981238.c:
988           applied patch 2076664: fix #1981238 + SIGSEGV in SDCCGlue.c
989           thanks to RvS
990
991 2008-08-30 Borut Razem <borut.razem AT siol.net>
992
993         * support/cpp/libcpp/files.c: SDCPP synchronized with GCC CPP
994           release version 4.3.2
995
996 2008-08-24 Raphael Neider <rneider AT web.de>
997
998         * device/lib/pic16/configure, device/lib/pic16/configure.ac:
999           always use the sdcc from the current build tree (ignore $CC from
1000           the environment, fixes compile farm builds)
1001         * device/lib/Makefile.in: rename .a into .lib for compatibility,
1002           remove more build products from install directory
1003         * sdcc/src/pic16/main.c (_pic16_linkEdit,_pic16_finaliseOptions)
1004         * sdcc/support/scripts/sdcc.nsi: revert to .lib extension for libs
1005
1006 2008-08-24 Borut Razem <borut.razem AT siol.net>
1007
1008         * src/SDCC.y: applied patch
1009           2050245: Fix # 1963382
1010           for bug
1011           1963382: Listing File - C file comment is incorrect
1012           thanks to RvS
1013
1014 2008-08-23 Borut Razem <borut.razem AT siol.net>
1015
1016         * src/pic16/gen.c: applied patch
1017           2048464: PIC16: fix genUminus - addresses not.c regression test
1018           thanks Mauro Giachero
1019
1020 2008-08-22 Borut Razem <borut.razem AT siol.net>
1021
1022         * device/lib/pic16/configure, device/lib/pic16/configure.ac,
1023           src/pic16/main.c: allow spaces in gpasm and gplink paths
1024
1025 2008-08-15 Philipp Klaus Krause <pkk AT spth.de>
1026
1027         * src/z80/peep.c,
1028         * src/z80/peeph-z80.def: minor peephole improvement
1029
1030 2008-08-15 Raphael Neider <rneider AT web.de>
1031
1032         * src/z80/gen.c (_vemit2): suppress compiler warning
1033
1034         * src/pic/*.[ch]: make proper use of header files and avoid
1035           ad-hoc extern declarations, mark module-local helpers 'static',
1036           removed dead/replaced code, no functional changes
1037         * src/pic16/pcode.c: disentangled from pic14 backend
1038
1039 2008-08-14 Philipp Klaus Krause <pkk AT spth.de>
1040
1041         * src/z80/gen.c: fixed #2051348
1042         * support/regression/tests/bug-2051348.c: regression test for #2051348
1043
1044 2008-08-10 Raphael Neider <rneider AT web.de>
1045
1046         * configure.in,
1047         * Makefile.common.in: export PACKAGE for $docdir,
1048           fixes #1957036, avoid some "underquoted definition" warnings
1049         * configure: regenerated
1050
1051 2008-08-10 Raphael Neider <rneider AT web.de>
1052
1053         * device/lib/pic16/**: build pic16 library using autotools for
1054           improved dependency tracking
1055
1056         * device/lib/Makefile.in,
1057         * src/pic16/main.c,
1058         * support/scripts/sdcc.nsi: adapt to changes in filenames (s/.lib/.a/)
1059
1060 2008-08-10 Raphael Neider <rneider AT web.de>
1061
1062         * src/pic/pcode.c (ReuseReg): do not overlay the registers used for
1063           local variables if --nooverlay is given, workaround for #2023121
1064
1065 2008-08-08 Raphael Neider <rneider AT web.de>
1066
1067         * src/pic16/genarith.c (genAddLit): fix structure access (#1888004)
1068
1069 2008-08-08 Raphael Neider <rneider AT web.de>
1070
1071         * src/pic/pcoderegs.c,
1072         * src/pic/pcode.c,
1073         * src/pic16/pcode.c: replace own SAFE_snprintf with common SNPRINTF
1074
1075 2008-08-07 Borut Razem <borut.razem AT siol.net>
1076
1077         * src/SDCCval.c, src/SDCCmain.c, src/SDCC.lex,
1078           device/lib/pic/Makefile.rules, device/lib/ds390/Makefile.in,
1079           device/lib/ds400/Makefile.in, device/lib/hc08/Makefile.in,
1080           support/cpp/libcpp/lex.c,  doc/sdccman.lyx:
1081           applied modified patch 2038174: Add support for binary constants v2
1082           thanks Mauro Giachero
1083         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.3
1084
1085 2008-08-04 Raphael Neider <rneider AT web.de>
1086
1087         * doc/sdccman.lyx,
1088         * src/pic16/device.h,
1089         * src/pic16/glue.c,
1090         * src/pic16/main.c: enable --optimize-goto by default
1091
1092         * device/lib/pic16/Makefile.common.in: suppress removed option
1093
1094         * src/pic16/gen.c,
1095         * src/pic16/genutils.c: avoid too long relative branches (#2031890)
1096
1097 2008-07-30 Borut Razem <borut.razem AT siol.net>
1098
1099         * src/pic16/device.c, src/pic16/glue.c, src/pic16/pcode.c:
1100           applied patch 22032433: PIC16: fix constant strings,
1101           thanks Mauro Giachero
1102
1103 2008-07-29 Borut Razem <borut.razem AT siol.net>
1104
1105         * src/pic16/gen.c: applied patches:
1106           2030306: [1/3] PIC16: fix failing rotate.c tests on 16-bit variables,
1107           2030307: [2/3] PIC16: fix failing rotate.c tests for 32-bit var (1),
1108           2030310: [3/3] PIC16: fix failing rotate.c tests for 32-bit var (2),
1109           thanks Mauro Giachero
1110
1111 2008-07-13 Philipp Klaus Krause <pkk AT spth.de>
1112
1113         * src/port.h: Fixed typo in comment
1114
1115 2008-07-12 Philipp Klaus Krause <pkk AT spth.de>
1116
1117         * src/z80/mappings.i: Implemented RFE #1919415
1118         * src/z80/peeph-z80.def: Implemented RFE #1919415, #1861376,
1119           #1880202, #1914434, prepared for RFE #1703943
1120
1121 2008-07-12 Philipp Klaus Krause <pkk AT spth.de>
1122
1123         * src/z80/peeph.def,
1124         * src/z80/peeph-z80.def,
1125         * src/z80/peeph-gbz80.def: separate Z80 from GBZ80 peepholes in
1126           preparation for Z80 peephole improvements
1127
1128 2008-06-21 Raphael Neider <rneider AT web.de>
1129
1130         * device/include/pic16/pic18f66j60.h,
1131         * device/include/pic16/pic18f66j65.h,
1132         * device/include/pic16/pic18f67j60.h,
1133         * device/include/pic16/pic18f86j60.h,
1134         * device/include/pic16/pic18f86j65.h,
1135         * device/include/pic16/pic18f87j60.h,
1136         * device/include/pic16/pic18f96j60.h,
1137         * device/include/pic16/pic18f96j65.h,
1138         * device/include/pic16/pic18f97j60.h,
1139         * device/lib/pic16/libdev/pic18f66j60.c,
1140         * device/lib/pic16/libdev/pic18f66j65.c,
1141         * device/lib/pic16/libdev/pic18f67j60.c,
1142         * device/lib/pic16/libdev/pic18f86j60.c,
1143         * device/lib/pic16/libdev/pic18f86j65.c,
1144         * device/lib/pic16/libdev/pic18f87j60.c,
1145         * device/lib/pic16/libdev/pic18f96j60.c,
1146         * device/lib/pic16/libdev/pic18f96j65.c,
1147         * device/lib/pic16/libdev/pic18f97j60.c,
1148         * device/include/pic16/pic16devices.txt,
1149         * device/include/pic16/pic18fregs.h,
1150         * device/lib/pic16/pics.all: added new devices
1151
1152         * device/include/pic16/adc.h,
1153         * device/lib/pic16/libio/adc/adcbusy.c,
1154         * device/lib/pic16/libio/adc/adcopen.c,
1155         * device/lib/pic16/libio/adc/adcsetch.c,
1156         * device/lib/pic16/libio/i2c/i2copen.c,
1157         * device/lib/pic16/libio/usart/uopen.c: adapted to new devices,
1158           all changes from a patch by Anton Strobl
1159
1160 2008-06-12 Borut Razem <borut.razem AT siol.net>
1161
1162         * sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/bp.cc,
1163           sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
1164           sim/ucsim/z80.src/z80cl.h, sim/ucsim/z80.src/z80.cc,
1165           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
1166           sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
1167           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/uc390.cc,
1168           sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/uc390cl.h,
1169           sim/ucsim/avr.src/avrcl.h, sim/ucsim/avr.src/avr.cc:
1170           fixed bug 1990586: s51 simulator, uc::disass() unimplemented
1171           by applying the modified patch from Risto Huotari
1172
1173 2008-06-04 Maarten Brock <sourceforge.brock AT dse.nl>
1174
1175         * .version,
1176         * doc/sdccman.lyx: bumped sdcc version to 2.8.2
1177         * src/ds390/gen.c (aopPutUsesAcc, genAddrOf): fixed bug 1015185
1178         * src/mcs51/gen.c (genNearPointerGet, genNearPointerSet): fixed bug 1938300
1179         * support/regression/tests/bug1938300.c: new, added
1180
1181 2008-06-03 Maarten Brock <sourceforge.brock AT dse.nl>
1182
1183         * device/include/asm/ds390/features.h,
1184         * device/include/asm/mcs51/features.h,
1185         * device/include/mcs51/regc515c.h: inserted LGPL notice
1186
1187 2008-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
1188
1189         * device/lib/gbz80/div.s,
1190         * device/lib/z80/div.s: fixed bug 1904314 by applying a modified part of
1191           patch 1597883, Thanks Robert Ramey
1192
1193 2008-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
1194
1195         * src/SDCCast.c (createIvalType, createIvalStruct, createIvalArray,
1196           createIvalCharPtr, createIvalPtr, createIval),
1197         * src/SDCCval.h
1198         * src/SDCCval.c (convertIListToConstList, list2expr): handle incomplete
1199           initializers for local auto variables
1200         * support/regression/tests/zeropad.c: added testcase for auto initializers
1201
1202 2008-05-26 Raphael Neider <rneider AT web.de>
1203
1204         * device/lib/pic16/startup/crt0.c,
1205         * device/lib/pic16/startup/crt0i.c,
1206         * device/lib/pic16/startup/crt0iz.c: clean up, make use of access bank
1207           explicit, fixed curr_entry loop for >= 256 initializer records,
1208           removed debug code (write to 0xf7e)
1209
1210 2008-05-25 Raphael Neider <rneider AT web.de>
1211
1212         * device/include/pic/pic16f627a.h,
1213         * device/include/pic/pic16f628a.h,
1214         * device/include/pic/pic16f648a.h: added missing ports
1215
1216 2008-05-20 Maarten Brock <sourceforge.brock AT dse.nl>
1217
1218         * device/include/float.h: added __INFINITY
1219         * device/lib/_fsadd.c: handle overflows
1220         * device/lib/_fsmul.c,
1221         * device/lib/_fsdiv.c: use __INFINITY
1222         * device/lib/_fseq.c,
1223         * device/lib/_fsneq.c: handle -0.0
1224         * sim/ucsim/s51.src/uc89c51r.cc,
1225         * sim/ucsim/s51.src/uc89c51rcl.h: fixed bug 1385430
1226         * sim/ucsim/sim.src/hwcl.h: */* confuses VC
1227         * src/mcs51/gen.c (genSend): fixed bug with --xstack
1228         * support/regression/ports/mcs51-xstack-auto/spec.mk: print floats
1229         * support/regression/tests/snprintf.c: test bug with --xstack
1230
1231 2008-05-19  Philipp Klaus Krause <pkk AT spth.de>
1232
1233         * src/SDCCpeeph.c (callFuncByName):
1234           Support nested parenthesis in peephole function arguments (#1967300)
1235
1236 2008-05-19 Raphael Neider <rneider AT web.de>
1237
1238         * src/pic16/gen.c (pic16_emitpLabel,pic16_emitpLabelFORCE):
1239           fixed duplicate labels (#1911325)
1240
1241 2008-05-19 Raphael Neider <rneider AT web.de>
1242
1243         * src/regression/empty.c: suppress warning
1244         * src/regression/pointer1.c: enabled index_by_pointer()
1245         * src/regression/inline.c: now works for pic16 as well
1246
1247         * src/pic16/device.c: include dbuf declarations
1248         * src/pic16/device.h: removed obsolete prototypes
1249
1250         * src/pic16/gen.c, src/pic16/gen.h: moved generic pointer tags
1251         * src/pic16/glue.c: made purely local functions static,
1252           (pic16_printGPointerType, pic16_printIvalCharPtr,
1253           pic16_printIvalFuncPtr, pic16_printIvalPtr): fixed initialized
1254           generic pointers' tags (#1961866)
1255
1256         * src/pic16/pcode.c (assignValnums): optimize literal assignments
1257
1258 2008-05-19 Borut Razem <borut.razem AT siol.net>
1259
1260         * support/scripts/sdcc.nsi: remove uninstall.exe after uninstallation,
1261           fixed typo, uninstall include/pic16/pic16devices.txt
1262
1263 2008-05-18 Borut Razem <borut.razem AT siol.net>
1264
1265         * support/Utils/dbuf_string.[ch]: added dbuf_chomp(),
1266           the buffer is null terminated
1267         * src/device/pic16.c:
1268           applied modified patch 1965676: Patch for Win32 16 bit PIC
1269         * sdcc_vc_in.h: defined YY_NO_UNISTD_H
1270
1271 2008-05-16 Maarten Brock <sourceforge.brock AT dse.nl>
1272
1273         * src/SDCC.lex (check_type),
1274         * src/SDCC.y (type_specifier2 TYPE_NAME): fixed bug 1925942
1275         * as/hc08/clean.mk,
1276         * as/mcs51/clean.mk,
1277         * as/z80/clean.mk: also clean *.dep
1278         * device/lib/pic16/libsdcc/stack/Makefile,
1279         * sim/ucsim/libtool: removed as they are rebuild by configure
1280         * src/clean.mk: removed izt, so Makefile is not deleted for distclean
1281
1282 2008-05-13 Maarten Brock <sourceforge.brock AT dse.nl>
1283
1284         * src/SDCCast.c (fixupInline, createFunction): save currBlockno in
1285           fixupInline instead of createFunction to fix bug 1864577
1286           (inlineFindMaxBlockno): removed, use global blockNo
1287         * src/SDCCglobl.h: added blockNo
1288         * src/z80/peep.c,
1289         * src/z80/peep.h: modified properties
1290         * support/regression/tests/bug1864577.c: new, added
1291
1292 2008-05-07 Maarten Brock <sourceforge.brock AT dse.nl>
1293
1294         * as/mcs51/asdata.c,
1295         * as/mcs51/asm.h: added org_cnt
1296         * as/mcs51/asmain.c (main, asmbl): fixed bug 1957716, changed old K&R to ANSI
1297         * as/mcs51/asout.c: changed old K&R to ANSI
1298         * as/mcs51/Makefile.in: use common identifiers
1299         * as/hc08/asdata.c,
1300         * as/hc08/asexpr.c,
1301         * as/hc08/asm.h,
1302         * as/hc08/asmain.c,
1303         * as/hc08/asout.c,
1304         * as/hc08/Makefile.bcc,
1305         * as/hc08/Makefile.in: synchronized with as/mcs51/*
1306         * sdcc_vc_in.h: added define __func__
1307         * src/SDCCast.c (expandInlineFuncs): applied patch 1957148 to fix bug 1717305,
1308           Thanks Ruud van Silfhout
1309         * support/regression/tests/bug1717305.c: new, added
1310
1311 2008-05-05 Borut Razem <borut.razem AT siol.net>
1312
1313         * support/regression/Makefile.in,
1314           support/regression/ports/ds390/spec.mk,
1315           support/regression/ports/hc08/spec.mk,
1316           support/regression/ports/mcs51-common/spec.mk,
1317           support/regression/ports/pic14/spec.mk,
1318           support/regression/ports/pic16/spec.mk,
1319           support/regression/ports/ucz80/spec.mk,
1320           support/regression/ports/z80/spec.mk:
1321           added INC_DIR and LIBDIR paths
1322         * src/ds390/gen.c: removed duplicated selicolon
1323
1324 2008-05-04 Borut Razem <borut.razem AT siol.net>
1325
1326         * support/regression/Makefile.in,
1327           support/regression/fwk/lib/testfwk.c,
1328           support/regression/ports/ds390/spec.mk,
1329           support/regression/ports/hc08/spec.mk,
1330           support/regression/ports/mcs51-common/spec.mk,
1331           support/regression/ports/mcs51-large/spec.mk,
1332           support/regression/ports/mcs51-medium/spec.mk,
1333           support/regression/ports/mcs51-small/spec.mk,
1334           support/regression/ports/mcs51-stack-auto/spec.mk,
1335           support/regression/ports/mcs51-xstack-auto/spec.mk,
1336           support/regression/ports/pic14/spec.mk,
1337           support/regression/ports/pic16/spec.mk,
1338           support/regression/ports/ucz80/spec.mk:
1339           added possibility to define the sdcc binary directory SDCC_BIN_PATH
1340           used to run regeression tests
1341
1342 2008-05-01 Raphael Neider <rneider AT web.de>
1343
1344         * doc/sdccman.lyx, support/scripts/inc2h-pic16.pl: updated list of
1345           supported devices and instructions to add new ones
1346
1347 2008-05-01 Raphael Neider <rneider AT web.de>
1348
1349         * device/include/pic16/adc.h,
1350           device/lib/pic16/libio/adc/adcbusy.c,
1351           device/lib/pic16/libio/adc/adcopen.c,
1352           device/lib/pic16/libio/adc/adcsetch.c: support old 18f242 and new
1353           18f2455 style ADC devices, based on patch #1776197
1354         * device/lib/pic16/libio/adc/adcclose.c,
1355           device/lib/pic16/libio/adc/adcconv.c,
1356           device/lib/pic16/libio/adc/adcread.c: cosmetic changes
1357         * device/include/pic16/{pic18f2331.h,pic18f2431.h},
1358           device/lib/pic16/libdev/{pic18f2331.c,pic18f2431.c}: reuse 18f4331
1359         * device/include/pic16/pic18f4431.h,
1360           device/lib/pic16/libdev/pic18f4431.c: remove outdated comments
1361         * device/lib/pic16/libio/adc.ignore: forbid unhandled devices
1362
1363 2008-05-01 Raphael Neider <rneider AT web.de>
1364
1365         * src/pic16/device.h: removed unused field PIC16_device.sfrRange,
1366           moved xinst flag into pic16_options_t
1367         * src/pic16/device.c (default_device, pic16_list_devices,
1368           pic16_find_device): removed references to sfrrange
1369         * src/pic16/gen.c (genFunction),
1370           src/pic16/glue.c (pic16initialComments),
1371           src/pic16/main.c (pic16_optionsTable),
1372           src/pic16/ralloc.c (newReg, pic16_writeUsedRegs): updated references
1373           to xinst
1374         * device/include/pic16/pic16devices.txt: removed sfrrange lines
1375
1376 2008-04-29 Raphael Neider <rneider AT web.de>
1377
1378         * src/pic16/devices.inc,
1379           device/include/pic16/pic16devices.txt: replaced compiled-in list
1380           of devices with a variant parsed at runtime
1381         * src/pic16/device.c: added support for parsing pic16devices.txt,
1382           clean up
1383         * src/pic16/device.h: removed (now) unused fields from PIC_device
1384         * src/pic16/main.c: removed #pragma maxram,
1385           (_pic16_initPaths): removed bogus generation of search paths,
1386           setup the port proper only after the search paths (for
1387           pic16devices.txt) are set up,
1388           (_pic16_finaliseOptions): moved processor dependant code here
1389           from _pic16_initPaths(), clean up
1390         * src/pic16/ralloc.c (pic16_init_stack),
1391         * src/pic16/ralloc.h,
1392         * src/pic16/pcode.c: clean up
1393         * device/include/Makefile.in,
1394           support/scripts/sdcc.nsi: also install/package pic16devices.txt
1395         * support/scripts/inc2h-pic16.pl: updated instructions
1396
1397 2008-04-29 Raphael Neider <rneider AT web.de>
1398
1399         * device/include/pic16/{pic18f2480.h, pic18f2580.h, pic18f4423.h,
1400           pic18f4480.h, pic18f4523.h, pic18f4580.h, pic18f6585.h, pic18f8585.h},
1401           device/lib/pic16/libdev/{pic18f2480.c, pic18f2580.c, pic18f4423.c,
1402           pic18f4480.c, pic18f4523.c, pic18f4580.c, pic18f6585.c, pic18f8585.c}:
1403           added missing family members and 18f2480/2580/4480/4580 family
1404         * device/include/pic16/{pic18f2423.h, pic18f2523.h}: use 18f4523.h
1405         * device/include/pic16/pic18f2525.h: use 18f4620.h
1406         * device/include/pic16/pic18f6680.h: use 18f8680.h
1407         * device/include/pic16/pic18fregs.h,
1408           device/lib/pic16/pics.all,
1409           src/pic16/devices.inc: add new devices
1410         * device/lib/pic16/libdev/{pic18f2423.c, pic18f2523.c}: use 18f4523.c
1411         * device/lib/pic16/libdev/pic18f2525.c: use 18f4620.c
1412         * device/lib/pic16/libdev/pic18f6680.c: uso 18f8680.c
1413         * device/lib/pic16/libio/{adc.ignore, i2c.ignore, usart.ignore}:
1414           prevent attempting to build the libio for some new devices
1415
1416 2008-04-29 Raphael Neider <rneider AT web.de>
1417
1418         * debugger/mcs51/Makefile.in: fixed paths to sources
1419
1420 2008-04-25 Borut Razem <borut.razem AT siol.net>
1421
1422         * as/link/lklibr.c: moved from as/link/z80/lklibr.c
1423         * as/link/hc08/lklibr.c, as/link/mcs51/lklibr.c: deleted
1424         * as/link/hc08/Makefile.bcc, as/link/hc08/Makefile.in,
1425         * as/link/hc08/link_hc08.dsp, as/link/mcs51/Makefile.bcc,
1426           as/link/mcs51/Makefile.in, as/link/mcs51/aslink.dsp,
1427           as/link/z80/Makefile.in, as/link/z80/linkgbz80.dsp,
1428           as/link/z80/linkz80.dsp: lklibr.c moved
1429         * doc/INSTALL.txt: binary archives in bz2 format
1430         * support/cpp/auto-host_vc_in.h: CPP2 replaced with CPP
1431
1432 2008-04-23 Maarten Brock <sourceforge.brock AT dse.nl>
1433
1434         * src/SDCCglue.c (printIvalType, printIvalBitFields): fixed bug 1856409
1435         * support/regression/tests/bug1856409.c: new, added
1436
1437 2008-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
1438
1439         * src/z80/peep.c,
1440         * src/mcs51/peep.c: Use werror for error messages.
1441         * src/SDCCicode.c (geniCodeConditional),
1442         * src/SDCCsymt.c (structElemType): fixed bug 1839321
1443         * src/z80/Makefile.bcc,
1444         * src/z80/z80.dsp: added src/z80/peep.c/h
1445         * support/regression/tests/bug1839321.c: new, added
1446
1447 2008-04-20 Raphael Neider <rneider AT web.de>
1448
1449         * device/include/pic16/pic18f2455.h: added bitfields for port C
1450
1451 2008-04-20 Philipp Klaus Krause <pkk AT spth.de>
1452
1453         * src/z80/peep.c: Use werror for error messages.
1454
1455 2008-04-19 Philipp Klaus Krause <pkk AT spth.de>
1456
1457         * src/z80/peep.h (declaration of notUsed()),
1458         * src/z80/main.c (enabled notUsed() for z80 port, documented z80_port
1459           struct),
1460         * src/z80/z80.h (added dependency on peep.h),
1461         * src/z80/peep.c (definition of notUsed()): Implemented RFE #1880202
1462           for Z80.
1463
1464 2008-04-19 Philipp Klaus Krause <pkk AT spth.de>
1465
1466         * src/SDCCpeeph.c (added support for notUsed()),
1467         * src/mcs51/main.c (added dependency on peep.h, documented mcs51_port
1468           struct),
1469         * src/port.h (removed dependency on mcs51/peep.h, added declaration
1470           for notUsed()): Implemented generic (that is not port-specific) part
1471           of RFE #1880202.
1472
1473 2008-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
1474
1475         * as/link/mcs51/lkmem.c (summary2): fixed bug 1796077
1476         * device/lib/libsdcc.lib,
1477         * device/lib/Makefile.in,
1478         * support/regression/ports/mcs51-xstack-auto/spec.mk,
1479         * device/lib/calloc.c: renamed to _calloc.c
1480         * device/lib/free.c: renamed to _free.c
1481         * device/lib/malloc.c: renamed to _malloc.c
1482         * device/lib/realloc.c: renamed to _realloc.c
1483         * src/ds390/gen.c (aopGet, aopPut, genPlusBits, genDataPointerSet,
1484           genNearPointerSet, genPagedPointerSet): synchronized with mcs51/gen.c
1485         * src/ds390/gen.c (popForBranch, genIfxJump, genCmp, genCmpEq, ifxForOp,
1486           genAnd, genOr, genXor, genIfx, gen390Code): fixed bug 1509084
1487         * src/mcs51/gen.c (popForBranch, genIfxJump, genCmp, genCmpEq,
1488           ifxForOp, genAnd, genOr, genXor, genNearPointerGet,
1489           genPagedPointerGet, genFarPointerGet, genCodePointerGet,
1490           genGenPointerGet, genIfx, gen51Code): fixed bug 1509084
1491         * src/ds390/gen.c,
1492         * src/mcs51/gen.c: throughout cosmetic changes for syncing both
1493         * src/SDCCsymt.h: updated IS_OP_RUONLY, IS_OP_ACCUSE
1494         * support/regression/tests/bug1509084.c: new, added
1495
1496 2008-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
1497
1498         * device/include/mcs51/cc2510fx.h: added _XPAGE
1499         * device/include/mcs51/compiler.h: cosmetic changes
1500
1501 2008-03-31 Maarten Brock <sourceforge.brock AT dse.nl>
1502
1503         * sdcc.dsw: adapted for moved cpp2, added dependency for as_z80 on
1504           config
1505
1506 2008-03-31 Borut Razem <borut.razem AT siol.net>
1507
1508         * support/cpp2 renamed to support/cpp
1509         * support/cpp2/libiberty/filenames.h, support/cpp2/libiberty/hex.c,
1510           support/cpp2/libiberty/splay-tree.c,
1511           support/cpp2/libiberty/splay-tree.h, support/cpp2/libcpp/macro.c,
1512           support/cpp2/libcpp/directives.c,
1513           support/cpp2/libcpp/include/cpplib.h,
1514           support/cpp2/libcpp/include/symtab.h,
1515           support/cpp2/libcpp/include/line-map.h,
1516           support/cpp2/libcpp/line-map.c, support/cpp2/libcpp/files.c,
1517           support/cpp2/libcpp/init.c, support/cpp2/libcpp/traditional.c,
1518           support/cpp2/libcpp/expr.c, support/cpp2/libcpp/internal.h,
1519           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/system.h,
1520           support/cpp2/libcpp/charset.c: SDCPP synchronized with GCC CPP
1521           release version 4.3.0
1522         * configure.in, configure, Makefile.in, Makefile.bcc:
1523           adapted for moved cpp2
1524
1525 2008-03-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1526
1527         * device/include/hc08/mc68hc908jkjl.h: committed fix for bug #1929739,
1528           thanks Alejandro Pustowka <alejo_pustowka AT yahoo.com.mx>
1529
1530 2008-03-30 Maarten Brock <sourceforge.brock AT dse.nl>
1531
1532         * src/SDCCloop.c (loopInvariants): applied fix for bug 1717943, thanks
1533           Robert Larice
1534         * support/regression/tests/bug1717943.c: new, added
1535
1536 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
1537
1538         * src/z80/gen.c (assignResultValue): Reverted reversal of order of
1539           bytewise return value assignments introduced in last commit.
1540
1541 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
1542
1543         * src/z80/gen.c (emitDebug, assignResultValue, genPlus, genMinus,
1544           genMult, genJumpTab):
1545           Use 16-bit instructions for addition in some additional cases,
1546           implemented RFEs #1914251, #1914245, #1922090, #1921382, #1918323.
1547
1548 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
1549
1550         * src/z80/ralloc.c (serialRegAssign, allocReg, tryAllocatingRegPair):
1551           Implemented RFE #1921450, changed some debug messages.
1552
1553 2008-03-30 Borut Razem <borut.razem AT siol.net>
1554
1555         * Small Device C Compiler 2.8.0 released
1556         * .version, doc/sdccman.lyx: changed sdcc version to 2.8.1
1557         * support/scripts/sdcc.nsi: added finish page; this version
1558           was used for 2.8.0 release
1559         * doc/knownbugs.html: removed; magically generated by the build
1560           process using gen_known_bugs.pl from now on
1561
1562 2008-03-23 Borut Razem <borut.razem AT siol.net>
1563
1564         * src/pic/gen.h: Q&D solution for the bug, found by Jim Paris
1565           and reverted it, since it was already fixed by Raphael ;-)
1566         * doc/knownbugs.html: updated for RC2
1567
1568 2008-03-22 Raphael Neider <rneider AT web.de>
1569
1570         * src/SDCCicode.c (getPtrType): avoid unnecessary extra assignments
1571           for PIC16 targets
1572
1573 2008-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
1574
1575         * src/mcs51/gen.c (adjustArithmeticResult): fixed bug 1839299
1576         * support/regression/tests/bug1839277.c: added related testBug1839299
1577
1578 2008-03-21 Maarten Brock <sourceforge.brock AT dse.nl>
1579
1580         * src/ds390/gen.c (opIsGptr, adjustArithmeticResult, genAddrOf, genAssign),
1581         * src/mcs51/gen.c (opIsGptr, adjustArithmeticResult, genAddrOf, genAssign):
1582           fixed bug 1839277
1583         * src/mcs51/gen.c: throughout only output hex constants
1584         * src/SDCCicode.c (getPtrType, geniCodeCast): fixed code size regression
1585         * support/regression/tests/bug1839277.c: new, added
1586
1587 2008-03-21 Philipp Klaus Krause <pkk AT spth.de>
1588
1589         * src/z80/ralloc.c (callFuncByName): Used // instead of /**/ to fix
1590           compilation warning about nested comments.
1591
1592 2008-03-20 Maarten Brock <sourceforge.brock AT dse.nl>
1593
1594         * src/SDCCsymt.c (comparePtrType): fixed bug 1921073
1595         * support/regression/tests/bug1921073.c: new, added
1596
1597 2008-03-17 Philipp Klaus Krause <pkk AT spth.de>
1598
1599         * src/z80/SDCCpeeph.c.c (callFuncByName):
1600           Commented function parameters.
1601
1602 2008-03-17 Philipp Klaus Krause <pkk AT spth.de>
1603
1604         * src/z80/ralloc.c (packRegsForAccUse2):
1605           disabled a broken accumulator packing optimization (fixed #1292721).
1606         * support/regression/tests/bug-1292721: Regression test for #1292721.
1607
1608 2008-03-16 Raphael Neider <rneider AT web.de>
1609
1610         * src/pic/gen.c (SetIrp,genNearPointerGet,genNearPointerSet):
1611           fixed code bloat regression using a variant of patch #1915618
1612
1613 2008-03-16 Borut Razem <borut.razem AT siol.net>
1614
1615         * support/scripts/sdcc.nsi: added section debugging macros, added SDCC
1616           icon, changed startup menu for release distribution, code cleaning,
1617           create url files instead links in startup menu
1618
1619 2008-03-16 Maarten Brock <sourceforge.brock AT dse.nl>
1620
1621         * src/SDCCcse.c (algebraicOpts): fixed bug 1579949
1622         * support/regression/tests/bug1579949.c: new, added
1623
1624 2008-03-14 Paul Stoffregen <paul AT pjrc.com>
1625
1626         * device/lib/printf_fast.c: fixed bug 1255403
1627
1628 2008-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
1629
1630         * doc/sdccman.lyx: enhanced paragraph about bankswitching for mcs51
1631         * src/cdbFile.c (cdbWriteBasicSymbol): fixed bug 1909409 for locals
1632
1633 2008-03-14 Borut Razem <borut.razem AT siol.net>
1634
1635         * as/doc/asmlnk.doc, as/doc/asxhtm.html: updated link-xx and aslink
1636           command line options
1637         * as/link/hc08/lkmain.c: converted tabs to spaces so that the usage
1638           is correctly displayed
1639         * as/link/z80/lkmain.c: usage line commented out
1640
1641 2008-03-13 Borut Razem <borut.razem AT siol.net>
1642
1643         * doc/sdccman.lyx: corrected to be able to convert to PDF,
1644           updated the list pf supported pic14 devices
1645
1646 2008-03-12 Maarten Brock <sourceforge.brock AT dse.nl>
1647
1648         * doc/sdccman.lyx: added paragraph about bankswitching for mcs51
1649
1650 2008-03-12 Borut Razem <borut.razem AT siol.net>
1651
1652         * as/doc/asmlnk.doc, as/doc/asxhtm.html: updated command line options,
1653           fixed documentation request #1718191
1654         * as/hc80/asmain.c, as/mcs51/asmain.c: added option -c to usage
1655         * doc/sdccman.lyx: added description of --no-std-crt0 gbz80
1656           command line option
1657
1658 2008-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
1659
1660         * src/SDCCast.c (isConformingBody): fixed bug 1505811, thanks Robert Larice
1661         * support/regression/tests/bug1505811.c: new, added
1662
1663 2008-03-09 Raphael Neider <rneider AT web.de>
1664
1665         * device/include/pic16/pic18f2620.h,
1666         * device/include/pic16/pic18f4620.h,
1667         * device/lib/pic16/libdev/pic18f2620.c,
1668         * device/lib/pic16/libdev/pic18f4525.c,
1669         * device/lib/pic16/libdev/pic18f4620.c: merged 18f2525/2620/4525/4620
1670           family to consistently use pic18f4620.[ch], fixes #1832562
1671
1672 2008-03-09 Borut Razem <borut.razem AT siol.net>
1673
1674         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
1675           changed sdcc version to 2.8.0
1676         * knownbugs.html: regenerated
1677         * support/scripts/gen_known_bugs.pl: added number of open bugs
1678
1679 2008-03-09 Raphael Neider <rneider AT web.de>
1680
1681         * src/pic16/gen.c (pic16_mov2w_volatile): NEW, read volatile operands,
1682           (genOr): read volatile operand even if the result is known,
1683           closes #1511838
1684           (genOr,genXor): removed unused legacy code,
1685           (genDummyRead): use pic16_mov2w_volatile()
1686
1687 2008-03-08 Borut Razem <borut.razem AT siol.net>
1688
1689         * src/SDCCglue.c: fixed bug #1864582: multiple definition of char
1690           cons w. --model-large
1691         * support/regression/staticinit.c: added regression test for bug
1692           #1864582
1693
1694 2008-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
1695
1696         * src/ds390/gen.c (pushSide, genPcall),
1697         * src/hc08/gen.c (pushSide, genPcall): synchronized with mcs51
1698         * src/mcs51/gen.c: cosmetic changes
1699         * support/regression/fwk/include/testfwk.h: added macro reentrant
1700         * support/regression/tests/bug1908493.c: new, added
1701
1702 2008-03-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1703
1704         * src/SDCCdebug.c:, as/link/lkaomf51.c: Fixed bug 1909409: Pdata in OMF file
1705
1706 2008-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
1707
1708         * src/mcs51/gen.c (pushSide, genPcall): fixed bug 1908493
1709         * src/SDCCmain.c (preProcess): removed -DSDCC_PARMS_IN_BANK1 because it is
1710           already set in ds390/main.c and mcs51/main.c
1711
1712 2008-03-07 Raphael Neider <rneider AT web.de>
1713
1714         * src/regression/init0.c: new test for initialized arrays of function
1715           pointers
1716         * src/regression/Makefile: made a bit more flexible, added init0.c
1717         * src/pic/glue.c (emitIvals): hacky fix for initializing from function
1718           pointers, closes #1427663
1719
1720 2008-03-05 Borut Razem <borut.razem AT siol.net>
1721
1722         * dos/sdccman.lyx: docummented predefined macros SDCC_REVISION,
1723           SDCC_PARMS_IN_BANK1, SDCC_FLOAT_REENT and SDCC_INT_LONG_REENT
1724
1725 2008-03-05 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1726
1727         * support/librarian/sdcclib.c:Added feature request 1908061:
1728           Synchronise sdcclib commands with ar.
1729
1730 2008-03-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1731
1732         * src/SDCCmain.c: added predefined macros SDCC_REVISION (RFE #1907229),
1733           and (depending on corresponding compiler option) SDCC_PARMS_IN_BANK1,
1734           SDCC_FLOAT_REENT, SDCC_INT_LONG_REENT
1735         * device/include/mcs51/compiler.h: removed umlauts, added double
1736           underscore
1737
1738 2008-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
1739
1740         * src/SDCCptropt.c (ptrPseudoSymConvert): fixed bug 1536762
1741         * support/regression/tests/bug1536762.c: new, added
1742         * src/SDCCutil.c,
1743         * src/SDCCutil.h: added getBuildDate()
1744         * src/SDCCmain.c (printVersionInfo),
1745         * src/SDCCglue.c (initialComments): use getBuildDate() instead of
1746           __DATE__
1747         * src/*/ralloc.c: removed IS_OP_RUONLY macro
1748         * src/ds390/ralloc.c (packRegisters),
1749         * src/mcs51/ralloc.c (packRegisters),
1750         * src/z80/ralloc.c (packRegisters): applied fix for bug 1618050, thanks
1751           Robert Larice
1752         * support/regression/tests/bug1618050.c: new, added
1753         * src/SDCCsymt.h: fixed typo in DECLSPEC2TXT
1754         * support/regression/fwk/include/testfwk.h,
1755         * support/regression/tests/bug1838000.c: moved _AUTOMEM and _STATMEM to
1756           testfwk.h
1757
1758 2008-03-04 Raphael Neider <rneider AT web.de>
1759
1760         * src/pic/gen.c: removed unused prototypes, prevent internal errors
1761           on accessing OP_SYM_TYPE(op)
1762         * src/pic/gen.h: removed unused prototype of genMinusDec()
1763         * src/pic/genarith.c (genMinus): cosmetic changes, rewritten to
1764           fix #1876953 (invalid subtraction code), removed unused code
1765
1766 2008-03-03 Raphael Neider <rneider AT web.de>
1767
1768         * src/pic/gen.c,
1769         * src/pic/gen.h,
1770         * src/pic/genarith.c,
1771         * src/pic/ralloc.c,
1772         * src/pic/ralloc.h: removed AOP_R0, AOP_R1, AOP_DPTR, AOP_DPTR2,
1773           AOP_ACC, and *_IDX and adjusted code, removed unused legacy code
1774
1775 2008-03-03 Raphael Neider <rneider AT web.de>
1776
1777         * src/pic/device.c (find_device): search user-specified paths first
1778           for pic14devices.txt, fixes #1900827
1779
1780 2008-03-02 Borut Razem <borut.razem AT siol.net>
1781
1782         * support/scripts/sdcc.nsi: fixed bug in IsNT, LogicLib-isation of
1783           AddToPath and RemoveFromPath
1784
1785 2008-03-01 Borut Razem <borut.razem AT siol.net>
1786
1787         * support/scripts/sdcc.nsi: reverted MULTIUSER page since it didn't
1788           work correctly, added debugging support if -DSDCC.DEBUG command line
1789           option is defined
1790
1791 2008-02-28 Borut Razem <borut.razem AT siol.net>
1792
1793         * doc/sdccman.lyx: cosmetic changes
1794
1795 2008-02-28 Maarten Brock <sourceforge.brock AT dse.nl>
1796
1797         * src/mcs51/ralloc.c (fillGaps): fixed bug 1839671
1798         * doc/sdccman.lyx: fixed unmeant removal of spaces
1799
1800 2008-02-27 Borut Razem <borut.razem AT siol.net>
1801
1802         * support/scripts/sdcc.nsi: corrected installation directory for
1803           current user installation mode
1804         * doc/README.txt: added Philipp Klaus Krause to the developers list
1805
1806 2008-02-27 Maarten Brock <sourceforge.brock AT dse.nl>
1807
1808         * src/mcs51/gen.c (genUnpackBits): don't generate ifxJump, instead
1809           return ifx condition
1810           (genNearPointerGet, genPagedPointerGet, genFarPointerGet,
1811           genCodePointerGet, genGenPointerGet): cleanup aop before generating
1812             ifxJump to fix bug 1838000
1813         * src/SDCCsymt.c (aggregateToPointer): fix problem for xstack
1814         * support/regression/tests/bug1838000.c: new, added
1815         * device/include/mcs51/cc1110.h: new, added, thanks to Pravin Angolkar
1816
1817 2008-02-26 Borut Razem <borut.razem AT siol.net>
1818
1819         * src/SDCCast.c, doc/sdccman.lyx: fixed RFE #1901171: inerger promotion
1820           of casted varargs
1821         * support/scripts/sdcc.nsi: added MULTIUSER page,
1822           NSIS upgraded to version 2.35
1823
1824 2008-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
1825
1826         * src/mcs51/ralloc.c (isSpiltOnStack): fixed bug 1565152
1827         * support/regression/tests/bug1565152.c: new, added
1828
1829 2008-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
1830
1831         * src/mcs51/gen.c (genPagedPointerSet): fixed bug 1670148
1832         * support/regression/ports/mcs51-xstack-auto/spec.mk: added expf.c
1833         * support/regression/tests/bug1670148.c: new, added
1834
1835 2008-02-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1836
1837         * device/include/mcs51/at89c51ed2.h: fixed bug 1901469.
1838
1839 2008-02-24 Borut Razem <borut.razem AT siol.net>
1840
1841         * src/SDCCast.c, src/SDCCast.h: fixed bug #1874922: explicit typecast
1842           is ineffective for unsigned char parameter
1843
1844 2008-02-24 Maarten Brock <sourceforge.brock AT dse.nl>
1845
1846         * src/SDCCast.c (expandInlineFuncs): fixed bug 1875869
1847         * src/SDCCglue.c (printIvalBitFields): fixed bug 1806631
1848         * support/regression/tests/bitopcse.c: removed hc08 exception, see testfwk.h
1849         * support/Util/MySystem.c (my_system): output errorcode when verbose
1850
1851 2008-02-22 Philipp Klaus Krause <pkk AT spth.de>
1852
1853         * src/z80/gen.c (genMult): Rewrote 8-bit multiplication by constant,
1854           implements #1898231
1855
1856 2008-02-22 Philipp Klaus Krause <pkk AT spth.de>
1857
1858         * device/lib/z80/mul.s: Rewrote __muluchar_rrx_s, to improve 8-bit mult.,
1859           implements #1896290
1860
1861 2008-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
1862
1863         * src/SDCCast.c (createIvalStruct): fixed bug 1466761
1864
1865 2008-02-21 Borut Razem <borut.razem AT siol.net>
1866
1867         * support/regression/Makefile.in,
1868           support/regression/ports/ds390/spec.mk,
1869           support/regression/ports/hc08/spec.mk,
1870           support/regression/ports/mcs51-common/spec.mk,
1871           support/regression/ports/pic14/spec.mk,
1872           support/regression/ports/pic16/spec.mk,
1873           support/regression/ports/ucz80/spec.mk,
1874           support/regression/ports/xa51/spec.mk:
1875           added CFLAGS when compiling timeout
1876
1877 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
1878
1879         * support/regression/tests/bugs-1596270-1736867.c: Regression test for
1880           #1596270, #1736867
1881
1882 2008-02-20 Maarten Brock <sourceforge.brock AT dse.nl>
1883
1884         * src/SDCClrange.c (findPrevUse): fixed bug 1888147
1885         * support/regression/tests/bug1888147.c: new, added
1886
1887 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
1888
1889         * src/z80/gen.c: fixed bugs #1596270, #1736867
1890
1891 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
1892
1893         * src/z80/gen.c: fixed bug in register pair loading when swapping register
1894           contents, mostly fixes #1596270
1895
1896 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
1897
1898         * src/z80/peeph.def,
1899         * src/z80/peeph-z80.def: moved peephole that breaks gbz80 to z80-specific
1900           peepholes, fixes #1806565
1901
1902 2008-02-20 Maarten Brock <sourceforge.brock AT dse.nl>
1903
1904         * src/SDCCpeeph.c (operandBaseName): added check for @Ri
1905         * src/mcs51/peeph.def (rule 177.c): added operandsNotRelated(%1 %3)
1906           fixes bug 1739475, thanks Robert Larice
1907           (rule 271): new, added
1908
1909 2008-02-18 Borut Razem <borut.razem AT siol.net>
1910
1911         * sim/ucsim/s51.src/Makefile.in: fixed error made in previous commit
1912
1913 2008-02-17 Maarten Brock <sourceforge.brock AT dse.nl>
1914
1915         * src/SDCCmain.c (linkEdit): emit -z when using --debug for z80
1916
1917 2008-02-17 Raphael Neider <rneider AT web.de>
1918
1919         * src/pic16/genarith.c,
1920         * src/pic16/gen.c,
1921         * src/pic16/gen.h,
1922         * src/pic16/genutils.c: removed unused legacy code,
1923           removed unused fields from struct asmop and struct _G
1924
1925 2008-02-17 Raphael Neider <rneider AT web.de>
1926
1927         * src/pic16/gen.c (AccRsh): cosmetic changes,
1928           (shiftR1Left2ResultSigned,shiftR1Left2Result,shiftL1Left2Result,
1929           genRightShiftLiteral): fixed to work with SFRs as result by
1930           assigning only once to result,
1931           removed a lot of unused/excluded code fragments
1932
1933 2008-02-17 Raphael Neider <rneider AT web.de>
1934
1935         * device/include/pic/pic16f88.h,
1936         * device/include/pic/pic16f886.h,
1937         * device/include/pic/pic16f887.h: added TRISA6 and TRISA7
1938
1939 2008-02-17 Borut Razem <borut.razem AT siol.net>
1940
1941         * src/z80/peeph.def: applied patch
1942           #1893626: Optimize tail calls on Z80, thanks to Philipp Krause
1943         * src/z80/gen.c, src/z80/peeph.def: applied patch
1944           #1893510: Improve logical left shift on Z80, thanks to Philipp Krause
1945         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
1946           sim/ucsim/s51.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
1947           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
1948           sim/ucsim/main_in.mk: renamed libutil.a to libucsimutil.a in order to
1949           enable compilation on Mac OS X 10.5 (Leopard) and XCode v3.0
1950
1951 2008-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
1952
1953         * as/link/mcs51/aslink.dsp: removed SDK define
1954         * as/link/z80/clean.mk: brought in sync with other ports
1955         * as/link/z80/lklibr.c (SdccLib, fndsym): handle the dflag here too
1956         * as/hc08/Makefile.bcc,
1957         * as/mcs51/Makefile.bcc,
1958         * as/z80/Makefile.bcc: noice.c was moved to as/asxxsrc/
1959         * src/z80/main.c (_setValues): use the now capitalized -Z,
1960           (z80_port, gbz80_port): generate debug information when asked
1961
1962 2008-02-16 Borut Razem <borut.razem AT siol.net>
1963
1964         * as/z80/asmain.c, as/z80/asm.h, as/z80/asdata.c,
1965           as/link/z80/lkmain.c, as/z80/as_gbz80.dsp, as/z80/as_z80.dsp,
1966           as/z80/Makefile.in. as/z80/Makefile.bcc:
1967           applied patch #1893393: patch for as-z80 and link-z80 to generate
1968           cdb, thanks to Armin Diehl
1969         * as/*/asnoice.c, as/hc08/as_hc08.dsp, as/hc08/Makefile.in,
1970           as/mcs51/asx8051.dsp, as/mcs51/Makefile.in:
1971           asnoice.c moved to as/asxxsrc/asnoice.c
1972         * src/z80/peeph-gbz80.def: applied patch
1973           #1880235: Z80 return peephole, thanks to Philipp Krause
1974
1975 2008-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
1976
1977         * .version,
1978         * doc/sdccman.lyx: bumped version to 2.7.5
1979         * src/SDCCsymt.c (compareType, comparePtrType): fixed bug 1281583
1980
1981 2008-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
1982
1983         * device/include/pic16/stdlib.h,
1984         * device/lib/pic16/libc/stdlib/ltoa.c,
1985         * device/lib/pic16/libc/stdio/vfprintf.c: ascii strings are char*
1986
1987 2008-02-13 Borut Razem <borut.razem AT siol.net>
1988
1989         * src/SDCCmain.c, src/SDCCglue.c: fixed --c1mode
1990         * src/pic16/glue.c, src/SDCCast.c, src/SDCCast.h, src/SDCCBBlock.c,
1991           src/SDCCcse.c, src/SDCCglue.c, src/SDCCicode.c, src/SDCCloop.c,
1992           src/SDCCopt.c,  src/SDCCval.c:
1993           fixed bug #1890273: SDCC Warning 154 shows wrong filename
1994
1995 2008-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
1996
1997         * src/SDCCsymt.c (compareType): fixed bug 1309013
1998
1999 2008-02-09 Borut Razem <borut.razem AT siol.net>
2000
2001         * src/SDCCval.c, src/SDCCval.h:
2002           code cleaning, added function constChrVal()
2003         * src/SDCCglue.c, src/pic/glue.c, src/pic16/glue.c, src/SDCCast.c, src/SDCC.y:
2004           call constChrVal() instead constVal()
2005
2006 2008-02-01 Maarten Brock <sourceforge.brock AT dse.nl>
2007
2008         * src/SDCCast.c (resolveSymbols): added reentrancy check for parameters
2009           of function pointer
2010         * src/SDCCerr.h,
2011         * src/SDCCerr.c: changed warning W_NONRENT_ARGS to error E_NONRENT_ARGS
2012         * support/regression/tests/absolute.c: added TestStruct TestVar (see also
2013           bug 1859853)
2014
2015 2008-02-01 Raphael Neider <rneider AT web.de>
2016
2017         * device/include/pic/pic16f886.h,
2018         * device/include/pic/pic16f887.h: added RA6 and RA7
2019
2020 2008-01-24 Raphael Neider <rneider AT web.de>
2021
2022         * device/include/pic/pic16f88.h: added RA6 and RA7
2023         * device/lib/pic/libdev/disabled_pic16f886.c,
2024         * device/lib/pic/libdev/disabled_pic16f887.c: renamed and enabled
2025
2026         * src/pic16/devices.inc,
2027         * device/include/pic16/pic18f2423.h,
2028         * device/include/pic16/pic18f2523.h,
2029         * device/include/pic16/pic18fregs.h,
2030         * device/lib/pic16/pics.all
2031         * device/lib/pic16/libdev/pic18f2423.c,
2032         * device/lib/pic16/libdev/pic18f2523.c: added 18f2423 and 18f2523
2033         * device/lib/pic16/libio/i2c.ignore,
2034         * device/lib/pic16/libio/usart.ignore,
2035         * device/lib/pic16/libio/adc.ignore: ignore new devices
2036
2037 2008-01-23 Maarten Brock <sourceforge.brock AT dse.nl>
2038
2039         * src/SDCCast.c (createRMW): fixed bug 1582651
2040
2041 2008-01-20 Borut Razem <borut.razem AT siol.net>
2042
2043         * src/SDCCcse.c: partially fixed enhancement request
2044           #1793872 - multiply by -1 not collapsed
2045         * support/regression/tests/arithcsi.c: added regression test
2046
2047 2008-01-19 Maarten Brock <sourceforge.brock AT dse.nl>
2048
2049         * as/mcs51/asx8051.dsp: removed define SDK
2050         * as/mcs51/i51mch.c (machine): fixed bug 1865114
2051         * device/include/asm/ds390/features.h: fixed bug with ds390 & stack-auto
2052         * as/link/lklex.c,
2053         * as/link/mcs51/lkmain.c: used LKDIRSEP, LKDIRSEPSTR and LKOBJEXT,
2054           cosmetic changes, brought more in sync, changed old K&R to ANSI
2055
2056 2008-01-13 Borut Razem <borut.razem AT siol.net>
2057
2058         * support/scripts/sdcc.nsi: added Uninstall/reinstall page, ...
2059         * src/SDCCicode.c: fixed bug #1870216 - Error 122: dividing by zero
2060
2061 2007-12-30 Borut Razem <borut.razem AT siol.net>
2062
2063         * src/pic16/gen.c: fixed implementation of bitwise operations for
2064           pic16 target
2065         * support/regression/tests/bitwise.c: added test cases
2066
2067 2007-12-29 Borut Razem <borut.razem AT siol.net>
2068
2069         * src/SDCCasm.[ch]: renamed from asm[ch], use dbuf_getline(), ...
2070         * src/src.dsp, src/Makefile.bcc, src/Makefile.in, src/common.h,
2071           src/SDCCglue.c, src/xa51/main.c: asm.[ch] renamed to SDCCasm.[ch]
2072         * support/Util/dbuf_string.[ch]: added function dbuf_getline()
2073         * src/ds390/gen.c, src/hc08/gen.c, src/mcs51/gen.c, src/pic16/gen.c,
2074           src/pic/gen.c, src/z80/gen.c, src/xa51/gen.c, src/pic16/ralloc.c,
2075           src/pic16/pcode.[ch]: added const qualifier
2076         * as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
2077           as/mcs51/Makefile.bcc, as/mcs51/Makefile.in, as/mcs51/asx8051.dsp,
2078           as/z80/Makefile.bcc, as/z80/Makefile.in, as/z80/as_gbz80.dsp,
2079           as/z80/as_z80.dsp: added dbuf.[ch] and dbuf_string[ch] to project
2080         * as/asxxsrc/aslex.c: use dbuf_getline()
2081         * as/hc08/asdata.c, as/hc08/asexpr.c, as/hc08/asm.h, as/hc08/m08adr.c,
2082           as/mcs51/asdata.c, as/mcs51/asexpr.c, as/mcs51/asm.h,
2083           as/mcs51/i51adr.c, as/z80/asdata.c, as/z80/asexpr.c, as/z80/aslist.c,
2084           as/z80/asm.h, as/z80/z80adr.c:
2085           changed type of ib and ip to const char *
2086
2087 2007-12-28 Borut Razem <borut.razem AT siol.net>
2088
2089         * as/asxxsrc/aslex.c: moved from as/mcs51/aslex.c;
2090           introduced (readlin) - long lines are turuncated
2091         * as/hc08/as_hc08.dsp, as/mcs51/asx8051.dsp, as/z80/as_gbz80.dsp,
2092           as/z80/as_z80.dsp, as/hc08/Makefile.in, as/mcs51/Makefile.in,
2093           as/z80/Makefile.in: moved aslex.c to asxxsrc
2094         * as/hc08/aslex.c, as/z80/aslex.c: deleted
2095         * as/hc08/asmain.c, as/mcs51/asmain.c:
2096           added missing initialization of a_addr field
2097         * support/regression/tests/long_asm_line.c: added regtest for long
2098           assembler line
2099
2100 2007-12-22 Borut Razem <borut.razem AT siol.net>
2101
2102         * src/SDCC.lex: fixed bug #1852894: # character hangs the compiler
2103
2104 2007-12-20 Maarten Brock <sourceforge.brock AT dse.nl>
2105
2106         * src/SDCCsymt.c (computeType): fixed bug, thanks Fan Weiguang
2107
2108 2007-12-16 Borut Razem <borut.razem AT siol.net>
2109
2110         * device/include/pic16/stdbool.h: removed, since already exists in
2111          device/include/; this also fixes bitopcse.c regression test for pic16
2112          target
2113         * support/regression/fwk/inclusw/testfwk.h: added macro ASSERT_FAILED
2114         * src/pic16/glue.c: fixed bug #1851855: generic static pointer
2115           dereference doesn't work; covered by regression test bug1399290
2116
2117 2007-12-05 Borut Razem <borut.razem AT siol.net>
2118
2119         * doc/sdccman.lyx: fixed bug #1844509 - Correction to Manual 4.6.9
2120           Adding new PIC16
2121
2122 2007-12-01 Borut Razem <borut.razem AT siol.net>
2123
2124         * sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/mem.cc:
2125           corrected handling of the highest_valid_address
2126
2127 2007-11-17 Raphael Neider <rneider AT web.de>
2128
2129         * src/pic/main.c (_asmCmd): include debug arguments (-g as $3)
2130         * src/pic/glue.c (picglue): emit .file if --debug is given
2131
2132 2007-11-17 Raphael Neider <rneider AT web.de>
2133
2134         * src/pic16/genarith.c (pic16_genPlus, pic16_genMinus): take special
2135         care when left or right operand resides in result, fixes #1830220
2136
2137 2007-11-17 Borut Razem <borut.razem AT siol.net>
2138
2139         * src/SDCCglue.c, src/pic16/glue.c: reverted fix for bug
2140           #983491 - "Merge duplicate strings function is ineffective"
2141         * support/regression/tests/bug-983491.c: regtest disabled
2142         * as/asxxsrc: created
2143           as/asxxsrc/assym.c, as/asxxsrc/strcmpi.c: moved
2144           as/hc08/assym.c, as/mcs51/assym.c, as/strcmpi.c,
2145           as/z80/assym.c, as/hc08/asstore.c, as/mcs51/asstore.c: deleted
2146           as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
2147           as/hc08/asm.h, as/link/hc08/Makefile.bcc, as/link/hc08/Makefile.in,
2148           as/link/hc08/link_hc08.dsp, as/link/mcs51/Makefile.bcc,
2149           as/link/mcs51/Makefile.in, as/link/mcs51/aslink.dsp,
2150           as/link/z80/Makefile.in, as/link/z80/linkgbz80.dsp,
2151           as/link/z80/linkz80.dsp, as/mcs51/Makefile.bcc, as/mcs51/Makefile.in,
2152           as/mcs51/asm.h, as/mcs51/asx8051.dsp, as/z80/Makefile.bcc,
2153           as/z80/Makefile.in, as/z80/as_gbz80.dsp, as/z80/as_z80.dsp,
2154           as/z80/Makefile.as_hc08, as/mcs51/Makefile.asx8051: modified
2155           created as/asxxsrc directory, assym.c and strcpi.c moved into it
2156
2157 2007-11-15 Maarten Brock <sourceforge.brock AT dse.nl>
2158
2159         * device/include/stdarg.h: added and removed some casts
2160         * src/SDCCsymt.c (compareType): Fully check types between generic and
2161           non-generic pointers, also accept ptr-ptr to void-ptr assignments
2162
2163 2007-11-13 Borut Razem <borut.razem AT siol.net>
2164
2165         * support/regression/tests/bug-1817005.c:
2166           added regtest for bug #1817005 - as-z80 chokes on long labels
2167
2168 2007-11-12 Borut Razem <borut.razem AT siol.net>
2169
2170         * as/z80/asmain.c, as/z80/asm.h, as/z80/assym.c, as/z80/asdata.c,
2171           as/z80/asout.c, as/z80/aslist.c:
2172           fixed bug #1817005 - as-z80 chokes on long labels
2173
2174 2007-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
2175
2176         * as/hc08/asmain.c,
2177         * as/z80/asmain.c: cosmetic changes
2178         * as/hc08/alloc.h,
2179         * as/mcs51/alloc.h,
2180         * as/z80/alloc.h: removed
2181         * as/hc08/assym.c,
2182         * as/mcs51/assym.c: replaced alloc.h with stdlib.h
2183         * as/link/aslink.h: added LKDIRSEP and, LKDIRSEPSTR
2184         * as/link/hc08/Makefile.in,
2185         * as/link/mcs51/Makefile.in,
2186         * as/link/z80/Makefile.in: added -DUNIX to CFLAGS
2187         * as/link/lklex.c,
2188         * as/link/mcs51/lkarea.c,
2189         * as/link/mcs51/lkmain.c: cosmetic changes
2190         * as/link/hc08/lklibr.c,
2191         * as/link/z80/lklibr.c,
2192         * as/link/mcs51/lklibr.c: used LKDIRSEP, LKDIRSEPSTR and LKOBJEXT,
2193           used cygwin_conv_to_full_posix_path,
2194           added warnings, cosmetic changes, brought more in sync
2195           changed old K&R into ANSI function declarations
2196         * as/link/z80/lklibr.c (loadAdb): added
2197         * as/link/z80/lkmain.c: removed -- option from usage text
2198
2199 2007-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
2200
2201         * src/mcs51/gen.c (outBitC): optimized for no result
2202
2203 2007-10-31 Borut Razem <borut.razem AT siol.net>
2204
2205         * src/SDCCsymt.c: fixed (hopeful properly) bug
2206           #1805702 - order of extern matters
2207         * support/regression/tests/bug-1805702.c: enabled regtest for bug
2208           #1805702
2209
2210 2007-10-29 Borut Razem <borut.razem AT siol.net>
2211
2212         * src/SDCCsymt.c: reverted bad fixed of bug #1805702
2213           - order of extern matters
2214         * support/regression/tests/bug-1805702.c: disabled regtest for bug
2215           #1805702
2216
2217 2007-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
2218
2219         * src/ds390/peeph.def: replaced 24bitModeAndPortDS390 by
2220           24bitMode, portIsDS390
2221         * src/mcs51/gen.c (genOr): optimized for RFE 1750727
2222         * src/SDCCpeeph.c (flat24bitModeAndPortDS390): removed
2223           (notVolatileVariable): also check sloc names,
2224           (callFuncByName): moved ftab[] out of function and sorted it by use
2225
2226 2007-10-28 Maarten Brock <sourceforge.brock AT dse.nl>
2227
2228         * device/include/stdarg.h: fixed bug in va_start macro for --xstack
2229         * src/hc08/gen.c (aopForRemat): aop->aopu.aop_immd.from_cast_remat not set,
2230           aop->aopu.aop_immd.aop_immd2 not filled with (generic) pointer type
2231         * src/SDCCicode.c (geniCodeCast): fixed bug 880197
2232         * support/regression/tests/bug-880197.c: new, added
2233
2234 2007-10-28 Borut Razem <borut.razem AT siol.net>
2235
2236         * support/regression/Makefile.in,
2237           support/regression/ports/mcs51-large/spec.mk,
2238           support/regression/ports/mcs51-xstack-auto/spec.mk,
2239           support/regression/ports/mcs51-stack-auto/spec.mk,
2240           support/regression/ports/mcs51-medium/spec.mk,
2241           support/regression/ports/mcs51-common/spec.mk,
2242           support/regression/ports/mcs51-common/*,
2243           support/regression/ports/mcs51-small/*:
2244           mcs51 renamed to mcs51-common, created mcs51-small
2245         * src/SDCCsymt.c: fixed bug #1805702 - order of extern matters
2246         * support/regression/tests/bug-1805702.c: added regtest for bug
2247           #1805702
2248
2249 2007-10-26 Maarten Brock <sourceforge.brock AT dse.nl>
2250
2251         * src/mcs51/peeph.def: moved rules 257.x to 253.x and re-enabled 253.b,
2252           added new rules 265 - 270
2253         * support/regression/tests/bug1721024.c:new, added
2254         * support/regression/Makefile.in: renamed test-mcs51 to test-mcs51-small,
2255           introduced new test-mcs51 to run all mcs51 tests
2256
2257 2007-10-25 Maarten Brock <sourceforge.brock AT dse.nl>
2258
2259         * support/regression/tests/bug1816470.c: new, added
2260
2261 2007-10-21 Maarten Brock <sourceforge.brock AT dse.nl>
2262
2263         * src/SDCCast.c (resultTypePropagate): do propagate for LEFT_OP, do not
2264           propagate for *,+,- with float, fixed bug 1816470
2265           (decorateType): cast to resultTypeProp instead of resultType
2266
2267 2007-10-19 Borut Razem <borut.razem AT siol.net>
2268
2269         * src/pic16/glue.c: fixed bug #983491 - "Merge duplicate strings
2270           function is ineffective" for pic16 tareget
2271         * support/scripts/listerr.c: corrected include path
2272         * device/lib/_itoa.c: fixed bug #1806402 - _itoa and _uitoa leak to
2273           adjacent memory
2274
2275 2007-10-18 Maarten Brock <sourceforge.brock AT dse.nl>
2276
2277         * support/regression/tests/using.c: new, added
2278         * support/regression/tests/vaargs.c: fixed and enabled test
2279
2280 2007-10-18 Borut Razem <borut.razem AT siol.net>
2281
2282         * src/SDCCglue.c: fixed bug #983491 - Merge duplicate strings function
2283           is ineffective
2284         * support/regression/tests/bug-983491.c: added regtest for bug #983491
2285
2286 2007-10-18 Maarten Brock <sourceforge.brock AT dse.nl>
2287
2288         * doc/sdccman.lyx: documented option --Werror
2289         * src/SDCCsymt.c (checkFunction): fixed bug 1815418 by setting
2290           RegBankUsed[] earlier
2291
2292 2007-10-14 Maarten Brock <sourceforge.brock AT dse.nl>
2293
2294         * device/include/mcs51/p89lpc938.h: new, added, thanks Kyle Guinn
2295         * src/pic/glue.c,
2296         * src/SDCCval.c,
2297         * src/SDCCast.c,
2298         * src/SDCCast.h: replaced AST_LIT_VALUE with AST_FLOAT_VALUE and
2299           AST_ULONG_VALUE
2300         * src/SDCCast.c (decorateType): improved optimization of tri-op
2301         * src/SDCCerr.c (vwerror, setWError),
2302         * src/SDCCerr.h,
2303         * src/SDCCmain.c (parseCmdLine): added option --Werror to treat all
2304           warnings as errors, thanks Stas Sergeev for PATCH 1813211
2305
2306 2007-10-13 Maarten Brock <sourceforge.brock AT dse.nl>
2307
2308         * src/mcs51/gen.c (leftRightUseAcc): use macro IS_OP_ACCUSE
2309         * src/SDCCast.c (decorateType): optimize bit=cond?1:0, RFE 1738430
2310         * support/regression/tests/bug-223113.c,
2311         * support/regression/tests/bug-426632.c,
2312         * support/regression/tests/bug-468811.c,
2313         * support/regression/tests/bug-477835.c,
2314         * support/regression/tests/bug-478094.c,
2315         * support/regression/tests/bug-499644.c,
2316         * support/regression/tests/bug-524209.c,
2317         * support/regression/tests/bug-524211.c,
2318         * support/regression/tests/packcast.c,
2319         * support/regression/tests/structidx.c: added empty tests
2320         * support/regression/tests/bug-607243.c: enabled test
2321
2322 2007-10-06 Borut Razem <borut.razem AT siol.net>
2323
2324         * .version, doc/sdccman.lyx: bumped version to 2.7.4 to indicate the full
2325            support of universal binaries on Mac OS X
2326
2327 2007-10-02 Borut Razem <borut.razem AT siol.net>
2328
2329         * src/SDCCval.h: unified double2ul macro for all platforms
2330         * src/SDCCval.c: fixed bug #1777758 - applied Maarten's patch
2331         * support/regression/tests/bitwise.c: added regtest for bug #1777758
2332
2333 2007-09-30 Borut Razem <borut.razem AT siol.net>
2334
2335         * src/SDCCval.h: fixed bug #1739860 - sdcc does not work correctly on some
2336           platforms
2337         * sdcc_vc_in.h: enabled warnings
2338         * src/hc08/gen.c: fixed MSVC warning C4146: unary minus operator applied to
2339           unsigned type, result still unsigned
2340         * src/mcs51/peep.c: fixed gcc warning: suggest parentheses around && within ||
2341
2342 2007-09-28 Raphael Neider <rneider AT web.de>
2343
2344         * src/pic/device.c (find_device): prevent buffer underflow error
2345         * src/pic/pcoderegs.c (OptimizeRegUsage): avoid dereferencing
2346           the just destroyed list entry
2347
2348 2007-09-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2349
2350         * doc/sdccman.lyx: there's a dedicated wiki page for cmake and sdcc, thanks
2351           Alexander Neundorf
2352
2353 2007-09-18 Borut Razem <borut.razem AT siol.net>
2354
2355         * src/SDCCval.c: fixed MSVC warning C4146: unary minus operator
2356          applied to unsigned type, result still unsigned
2357
2358 2007-09-17 Borut Razem <borut.razem AT siol.net>
2359
2360         * src/SDCC.y, src/SDCCast.c, src/SDCCcse.c, src/SDCCglue.c,
2361           src/SDCCicode.c, src/SDCCopt.c, src/SDCCsymt.c, src/SDCCval.c,
2362           src/SDCCval.h, src/hc08/gen.c, src/avr/gen.c, src/ds390/gen.c,
2363           src/mcs51/gen.c, src/pic/gen.c, src/pic/genarith.c, src/pic/glue.c,
2364           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/genarith.c,
2365           src/pic16/genutils.c, src/pic16/glue.c, src/pic16/main.c,
2366           src/z80/gen.c, src/z80/ralloc.c:
2367           fixed bug #1739860 - sdcc does not work correctly on some platforms
2368           (not finished)
2369           introduced and used ulFromVal(), double2ul(), used strtod() instead sscanf()
2370
2371 2007-09-17 Raphael Neider <rneider AT web.de>
2372
2373         * src/pic16/device.c: reverted to previous version
2374         * device/lib/pic16/Makefile.common.in: quieten gpasm via -Wa,-q
2375
2376 2007-09-16 Raphael Neider <rneider AT web.de>
2377
2378         * src/pic16/device.c (pic16_dump_usection): do not reserve 0 bytes,
2379           as this raises a ton of gpasm warnings, just emit a second label
2380         * src/pic16/devices.inc,
2381         * device/lib/pic16/pics.all,
2382         * device/lib/pic16/libdev/pic18f2585.c,
2383         * device/lib/pic16/libdev/pic18f2680.c,
2384         * device/lib/pic16/libdev/pic18f2682.c,
2385         * device/lib/pic16/libdev/pic18f2685.c,
2386         * device/lib/pic16/libdev/pic18f4585.c,
2387         * device/lib/pic16/libdev/pic18f4680.c,
2388         * device/lib/pic16/libdev/pic18f4682.c,
2389         * device/lib/pic16/libdev/pic18f4685.c,
2390         * device/include/pic16/pic18f2585.h,
2391         * device/include/pic16/pic18f2680.h,
2392         * device/include/pic16/pic18f2682.h,
2393         * device/include/pic16/pic18f2685.h,
2394         * device/include/pic16/pic18f4585.h,
2395         * device/include/pic16/pic18f4680.h,
2396         * device/include/pic16/pic18f4682.h,
2397         * device/include/pic16/pic18f4685.h,
2398         * device/include/pic16/pic18fregs.h: added 18f2585, 18f2680,
2399           18f2682, 18f2685, 18f4585, 18f4680, 18f4682, 18f4685,
2400           patch contributed by Anton Strobl, applied with changes
2401
2402 2007-09-16 Raphael Neider <rneider AT web.de>
2403
2404         * device/include/pic16/pic18f2431.h,
2405         * device/include/pic16/pic18f25j10.h,
2406         * device/include/pic16/pic18f4431.h,
2407         * device/include/pic16/pic18f45j10.h: adopted common include style
2408         * device/include/pic16/pic18f1320.h,
2409         * device/include/pic16/pic18f2320.h,
2410         * device/include/pic16/pic18f2525.h,
2411         * device/include/pic16/pic18f4320.h,
2412         * device/include/pic16/pic18f4525.h: NEW, just include proper .h file
2413         * device/include/pic16/pic18fregs.h: prepared for automatic include
2414           file selection by having DEVICE.h for every DEVICE
2415         * device/lib/pic16/libdev/pic18f2320.c,
2416         * device/lib/pic16/libdev/pic18f4320.c: just include proper .c file
2417
2418         * device/lib/pic16/configure.in,
2419         * device/lib/pic16/configure: use rm -rf instead of rmdir
2420         * device/lib/pic16/Makefile.in: use RMDIR to remove build directories
2421         * device/lib/pic16/libc/stdlib/free.c: avoid warning on pointer cast
2422
2423 2007-09-09 Borut Razem <borut.razem AT siol.net>
2424
2425         * src/SDCCmain.c, src/SDCCutil.c: print newline after printVersionInfo(),
2426           distingush between i386 and ppc Mac OS X versions
2427
2428 2007-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
2429
2430         * src/mcs51/gen.c (genReceive): fixed bug 1788177
2431         * support/regression/tests/bug1788177.c: new, added
2432
2433 2007-09-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2434
2435         * doc/sdccman.lyx: mentioned d52 and cmake, customizing startup code
2436         * device/include/mcs51/lint.h added keyword __naked
2437
2438 2007-09-04 Maarten Brock <sourceforge.brock AT dse.nl>
2439
2440         * src/pic16/glue.c,
2441         * src/pic/glue.c,
2442         * src/SDCCmem.h: removed maxRegBank
2443         * src/SDCCmem.c (allocVariables): removed maxRegBank and moved setting
2444           RegBankUsed[] to checkFunction() in SDCCsymt.c to fix bug 1759839
2445         * src/SDCCsymt.c (checkFunction): set RegBankUsed[] here
2446         * src/mcs51/peep.c (isCallerSaveFunc, termScanAtFunc): changed function
2447           name and behaviour to handle banked functions
2448           (scan4op): and use it to fix bug 1786213
2449
2450 2007-09-03 Raphael Neider <rneider AT web.de>
2451
2452         * device/include/pic16/pic18f248.h,
2453         * device/include/pic16/pic18f258.h,
2454         * device/include/pic16/pic18f448.h,
2455         * device/lib/pic16/libdev/pic18f248.c,
2456         * device/lib/pic16/libdev/pic18f258.c,
2457         * device/lib/pic16/libdev/pic18f448.c: fixed TRISEbits,
2458           added T0CONbits, fixes #1786891
2459
2460 2007-08-29 Maarten Brock <sourceforge.brock AT dse.nl>
2461
2462         * src/ds390/gen.c (genFarPointerSet),
2463         * src/hc08/ralloc.c (packRegisters),
2464         * src/mcs51/ralloc.c (packRegisters),
2465         * src/SDCCcse.c (cseBBlock): check if result is a symbol first to fix
2466           bug 1750318
2467         * src/SDCCicode.h: POINTER_SET can be true for literals too
2468         * support/regression/tests/bug1750318.c: new, added
2469
2470 2007-08-23 Borut Razem <borut.razem AT siol.net>
2471
2472         * debugger/mcs51/sdcdb.c: fixed compilation with older readline
2473           library versions without the completition functionality
2474
2475 2007-08-22 Raphael Neider <rneider AT web.de>
2476
2477         * device/include/pic16/pic18f1220.h,
2478         * device/lib/pic16/libdev/pic18f1220.c: applied patch #1776191
2479
2480 2007-08-12 Borut Razem <borut.razem AT siol.net>
2481
2482         * debugger/mcs51/Makefile.in: support/Util/SDCCerr.[ch] moved to src
2483
2484 2007-08-11 Borut Razem <borut.razem AT siol.net>
2485
2486         * support/Util/SDCCerr.c, support/Util/SDCCerr.h, src/src.dsp,
2487           src/Makefile.in, src/Makefile.bcc, support/scripts/listerr.c:
2488           support/Util/SDCCerr.[ch] moved to src
2489         * as/hc08/as_hc08.dsp, as/link/hc08/link_hc08.dsp,
2490           as/link/z80/linkgbz80.dsp, as/link/z80/linkz80.dsp,
2491           device/examples/ds390/tinitalk/tinitalk.dsp,
2492           device/examples/serialcomm/windows/serialcomm.dsp,
2493           support/librarian/librarian.dsp:
2494           removed linking of unused odbc32.lib and odbccp32.lib
2495         * support/scripts/winres.h:
2496           added for compilation with Visual C++ 2005 Express Edition
2497
2498 2007-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2499
2500         * device/include/mcs51/at89c51ed.h: Fixed typo in declarations of CKCON0
2501           and CKCON1.
2502
2503 2007-08-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2504
2505         * sdccconf_in.h: update the endian test so that SPARC Solaris
2506           does not throw syntax errors
2507
2508 2007-08-06 Borut Razem <borut.razem AT siol.net>
2509
2510         * doc/sdccman.lyx: removed two index entries which prevented the
2511           generation of sdcc doc archive
2512
2513 2007-08-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2514
2515         * doc/sdccman.lyx: Same changes made 2007-07-28 but using lyx 1.4.4
2516           instead of lyx 1.5.0.
2517
2518 2007-07-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2519
2520         * device/include/hc08/mc68hc908apxx.h: new header contributed by
2521           Lucas Loizaga, with minor modifications. Thanks!
2522
2523 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2524
2525         * doc/sdccman.lyx: Documented --acall-ajmp and described new features
2526           in sdcclib.
2527
2528 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2529
2530         * src/SDCCglobl.h, src/SDCCpeeph.c, src/SDCCglue.c, src/mcs51/main.c,
2531           src/mcs51/peeph.def: Added option --acall-ajmp: replaces lcall/ljmp
2532           with acall/ajmp.
2533
2534 2007-07-22 Borut Razem <borut.razem AT siol.net>
2535
2536         * configure.in, configure: re-introduced .version
2537         * sdcc.spec, doc/INSTALL.txt: they are used only for releases;
2538           the version reverted to 2.7.0
2539
2540 2007-07-18 Maarten Brock <sourceforge.brock AT dse.nl>
2541
2542         * configure.in,
2543         * doc/sdccman.lyx: bumped version to 2.7.3
2544         * device/include/mcs51/compiler.h: fixed elif->else
2545         * src/mcs51/gen.c (genAnd, genOr): handle accuse for pure bit operands
2546         * src/mcs51/ralloc.c (createStackSpil): fixed SCLS bug with sloc for sbit,
2547           (operandUsesAcc, packRegsForAccUse): added parameter allowBitspace to
2548            enable accuse for bit operands
2549         * src/SDCCmain.c (printVersionInfo),
2550         * src/SDCCutil.c (getBuildEnvironment): factored out creation of build
2551           environment descriptor
2552         * src/SDCCutil.h: added getBuildEnvironment
2553         * src/SDCCglue.c (initialComments): use getBuildEnvironment
2554         * support/regression/tests/bug1464657.c: enabled test test_Peephole251
2555         * support/regression/tests/bug-408972.c: enabled test leftShiftLong
2556         * support/regression/tests/bug1348008.c,
2557         * support/regression/tests/bug1496419.c,
2558         * support/regression/tests/bug1503067.c,
2559         * support/regression/tests/preproc.c: added empty tests
2560
2561 2007-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
2562
2563         * support/regression/tests/bug1678803.c: new, added
2564
2565 2007-07-14 Maarten Brock <sourceforge.brock AT dse.nl>
2566
2567         * as/link/aslink.h,
2568         * as/link/hc08/lkihx.c,
2569         * as/link/hc08/lkrloc.c,
2570         * as/link/mcs51/lkihx.c,
2571         * as/link/mcs51/lkrloc.c: renamed ihxEntendedLinearAddress to
2572           ihxExtendedLinearAddress
2573         * as/link/mcs51/lkrloc.c (relr),
2574         * as/mcs51/asout.c (outr11, outr19): handle absolute destination for
2575           acall/ajmp, see bug 830513
2576
2577 2007-07-13 Maarten Brock <sourceforge.brock AT dse.nl>
2578
2579         * src/SDCCcse.c (replaceAllSymBySym): renamed siaddr to isaddr,
2580           (cseBBlock): remember aggr2ptr has been used
2581         * src/SDCCicode.c (operandSize): added function to handle aggr2ptr,
2582           (geniCodeAssign): fixed bug 868103
2583         * src/SDCCicode.h: made operand.aggr2ptr 2 bits wide,
2584           added operandSize prototype
2585         * src/mcs51/gen.c (aopOp): use operandSize to fix bug 868103,
2586           (genDataPointerSet): use max of size of right and result,
2587           (gencjne): added parameter useCarry for optimization,
2588           (genCmpEq): use carry if appropriate,
2589           (genXor): check if operand already in carry
2590         * support/regression/tests/bug-868103.c: enabled test
2591
2592 2007-07-12 Raphael Neider <rneider AT web.de>
2593
2594         * src/pic16/gen.c (genNearPointerSet): fixed handling of literals
2595
2596 2007-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
2597
2598         * src/SDCCsymt.c (compareType): fixed bugs 1738367 and 1745717 with patch
2599           from Robert Larice, thanks
2600         * support/regression/tests/bitopcse.c,
2601         * support/regression/tests/bitvars.c,
2602         * support/regression/tests/bug-908454.c: use <stdbool.h> for the bit types
2603         * support/regression/tests/bug-927659.c: enabled test for z80
2604         * support/regression/tests/bug1738367.c: added extra tests by Frieder
2605         * support/regression/tests/bug1745717.c: new, added
2606         * support/regression/tests/literalop.c,
2607         * support/regression/tests/nullstring.c: removed storage definitions that
2608           are now in testfwk.h
2609
2610 2007-07-10 Maarten Brock <sourceforge.brock AT dse.nl>
2611
2612         * device/include/stdbool.h: do not define __bool_true_false_are_defined
2613           and bool for targets that do not fully support it.
2614         * support/regression/tests/bug1546986.c,
2615         * support/regression/tests/bug1723128.c,
2616         * support/regression/tests/bug1734654.c,
2617         * support/regression/tests/bug1738367.c,
2618         * support/regression/tests/constantRange.c: only use bool if allowed
2619
2620 2007-07-09 Maarten Brock <sourceforge.brock AT dse.nl>
2621
2622         * src/mcs51/peep.c (isCallerSaveFunc): fixed bug 1749275, thanks Robert
2623           Larice, also handle function pointers
2624         * support/regression/tests/bug1749275.c: new, added
2625
2626 2007-07-03 Borut Razem <borut.razem AT siol.net>
2627
2628         * src/mcs51/gen.c, src/avr/gen.c, src/pic/gen.c, src/z80/gen.c,
2629           src/pic16/gen.c, src/hc08/gen.c, src/ds390/gen.c: fixed RFE
2630           #1746528: SDCC should ignore ':' in inline assembler comments
2631         * device/include/typeof.h: fixed bug #1747142: typeof.h needs fixing
2632
2633 2007-07-02 Maarten Brock <sourceforge.brock AT dse.nl>
2634
2635         * device/include/mcs51/C8051F360.h: fixed bug #1746410, thanks Chris Jones
2636         * device/lib/mcs51/crtxclear.asm: do not set __XPAGE unconditionally
2637
2638 2007-06-29 Borut Razem <borut.razem AT siol.net>
2639
2640         * src/SDCCmain.c: fixed bug
2641           #1744746: SDCC #4867: broken option --xram-size
2642
2643 2007-06-28 Borut Razem <borut.razem AT siol.net>
2644
2645         * sim/ucsim/configure.in, sim/ucsim/configure, sim/ucsim/ddconfig_in.h:
2646           find out the endianess of host machine for ucsim
2647
2648 2007-06-27 Borut Razem <borut.razem AT siol.net>
2649
2650         * support/regression/generate-cases.py: corrected the file name
2651           in warning
2652         * configure.in, configure, sdccconf_in.h: find out the endianess of
2653           host machine
2654         * src/SDCC.y: fixed bug #1744146: Crash when compiling array of
2655           negative size
2656
2657 2007-06-27 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
2658
2659         * device/include/mcs51/p89c66x.h: NXP header file, OK to change licence
2660
2661 2007-06-26 Borut Razem <borut.razem AT siol.net>
2662
2663         * support/regression/generate-cases.py: display warning if function
2664           list is empty; implemented more flexible rule for detection of
2665           testing functions, allowing return type 'void' in the same line as
2666           the function name in the function definition
2667         * support/regression/tests/bug-1654060.c: corrected test
2668         * support/librarian/sdcclib.c: fixed warning:
2669           format '%s' expects type 'char *', but argument 2 has type 'int'
2670
2671 2007-06-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2672
2673         * support/librarian/sdcclib.c: Added feature Requests [1510635]
2674           Multiple infiles for sdcclib.
2675
2676 2007-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2677
2678         * src/SDCCast.c (inlineFindMaxBlockno, createFunction): fixed
2679           bug 1731741
2680
2681 2007-06-18 Borut Razem <borut.razem AT siol.net>
2682
2683         * src/SDCCmain.c: removed option -C since SDCC compiler doesn't know
2684           how to handle comments, so they have to be removed by the
2685           preprocessor; fixed bug #1738926:SDCC #4852: broken option -V
2686         * src/SDCCmain.c, src/SDCCargs.h, src/ds390/main.c, src/mcs15/main.c,
2687           src/pic16/main.c, src/pic/main.c, src/z80/main.c,
2688           support/Util/SDCCerr.c, support/Util/SDCCerr.h:
2689           table driven option hadling
2690
2691 2007-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
2692
2693         * src/SDCCast.c (decorateType),
2694         * src/SDCCicode.c (geniCodeConditional): moved optimization for '?' from
2695           iCode to ast level to fix bug 1738367
2696         * support/regression/tests/bug1738367.c: new, added
2697
2698 2007-06-15 Raphael Neider <rneider AT web.de>
2699
2700         * src/pic16/devices.inc,
2701         * device/lib/pic16/pics.all,
2702         * device/include/pic16/pic18fregs.h,
2703         * device/include/pic16/pic18f[24][45]20.h,
2704         * device/lib/pic16/libdev/pic18f[24][45]20.c: added support for
2705           18f2420, 18f2520, and 18f4420 devices, updated 18f4520 definitions
2706         * device/lib/pic16/Makefile.in: faster cleanup
2707
2708 2007-06-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2709
2710         * src/mcs51/peeph.def: added 177.i (mov from a is slightly cheaper)
2711
2712 2007-06-13 Raphael Neider <rneider AT web.de>
2713
2714         * src/SDCCmain.c: prevent NULL pointer dereference, avoid warning
2715
2716 2007-06-12 Raphael Neider <rneider AT web.de>
2717
2718         * support/scripts/inc2h.pl: conditionally emit defines for SFR bits,
2719           suppress bit defines if NO_BIT_DEFINES is #define'd
2720         * device/include/pic/pic*.h: recreated all headers to include
2721           conditional bit defines
2722         * device/include/pic/pic16f886.h,
2723         * device/include/pic/pic16f887.h: fixed based on newer .inc file
2724         * device/include/pic/recreate.sh: script to recreate the complete
2725           device library files based on the currently supported devices
2726
2727 2007-06-12 Borut Razem <borut.razem AT siol.net>
2728
2729         * src/pic16/main.c, src/SDCCargs.h, SDCCmain.c,
2730           support/regression/Makefile.in, support/scripts/build.mak,
2731           support/scripts/Makefile.snapshot:
2732           use new svn URL scheme
2733         * doc/sdccman.lyx: SDCC Wiki moved to
2734           http://sdcc.wiki.sourceforge.net/
2735
2736 2007-06-10 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2737
2738         * src/mcs51/peeph.def: disabled rule 132.d to fix #1734654
2739         * support/regression/tests/bug1734654.c: added
2740
2741 2007-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
2742
2743         * src/SDCCast.c (decorateType): optimized '?' for equal operands
2744         * src/SDCCicode.c (geniCodeConditional): optimization for bit result
2745           with literal operands
2746
2747 2007-06-10 Borut Razem <borut.razem AT siol.net>
2748
2749         * as/link/z80/lklibr.c: fixed mingw build warning
2750           lklibr.c:575: warning: implicit declaration of function 'tolower'
2751         * src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c,
2752           src/z80/main.c: move target specific options from src/SDCCmain.c
2753           to src/<target>/main.c
2754
2755 2007-06-09 Borut Razem <borut.razem AT siol.net>
2756
2757         * src/z80/gen.c: fixed bug #1294691: nested ifs make compiler crash;
2758           removed unused swap_sense; removed outBitCLong, replaced with outBitC
2759         * support/regression/tests/bug-1294691.c: added
2760
2761 2007-06-09 Maarten Brock <sourceforge.brock AT dse.nl>
2762
2763         * src/SDCCmem.c (allocDefault): removed check sym->level==0 for SPEC_ABSA,
2764           can also be static, fixes bug 1733438
2765         * src/SDCCsymt.c (checkSClass): static local vars in reentrant funcs can
2766           have absolute address too
2767           (computeType): added optimization for 'cond ? true : false'
2768         * support/regression/tests/absolute.c: added test for static absolute var
2769
2770 2007-06-08 Raphael Neider <rneider AT web.de>
2771
2772         * src/regression/Makefile: suppress parallel builds, allow easy
2773           switching between pic14/pic16 ports
2774         * src/regression/picregs.h: added pic14/16 header file switch
2775         * src/regression/{compare7.c,compare8.c,compare9.c,compare10.c,
2776           inline.c,nestfor.c,string1.c}: include "picregs.h"
2777
2778 2007-06-07 Borut Razem <borut.razem AT siol.net>
2779
2780         * sim/ucsim/*.[ch], sim/ucsim/configure, sim/ucsim/configure.in:
2781           permanent solution to suppress GCC 4.2.0 c++ warning:
2782           deprecated conversion from string constant to `char *'
2783           use 'const char *' where ever required
2784         * support/regression/generate-cases.py: implemented more flexible rule
2785           for detection of testing functions, allowing white-spaces surrounding
2786           the function name and the 'void' parameter.
2787         * support/regression/tests/constantRange.c,
2788           support/regression/tests/scott-compare3.c: fixed failing regression
2789           tests, uncovered by implementation of more flexible rule for detection
2790           of testing functions
2791
2792 2007-06-04 Maarten Brock <sourceforge.brock AT dse.nl>
2793
2794         * src/SDCCast.c(decorateType): better optimize '!!' and comparisons
2795
2796 2007-06-04 Borut Razem <borut.razem AT siol.net>
2797
2798         * configure.in, configure, config_vc.awk: sdcc version number is now
2799           stored in configure.in; removed .version
2800         * configure.in, configure, sdcc.spec, doc/sdccman.lyx, doc/sdccman.lyx,
2801           doc/INSTALL.txt: version bumped to 2.7.2
2802         * sim/ucsim/configure.in, sim/ucsim/configure:
2803           use "read" to read from .version
2804
2805 2007-06-03 Borut Razem <borut.razem AT siol.net>
2806
2807         * */Makefile.in: removed annoying warning:
2808           Makefile:xx: Makefile.dep: No such file or directory
2809
2810 2007-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
2811
2812         * src/mcs51/gen.c (outBitC, genRet): used IS_OP_RUONLY,
2813           (genNot, genXor): used toCarry, also fixes a bug for c = bit ^ val
2814         * src/mcs51/ralloc.c: removed IS_OP_RUONLY + some cosmetic changes
2815         * src/SDCCast.c (resultTypePropagate): propagate for '!',
2816           (decorateType): also optimize comparisons with RESULT_TYPE_BIT,
2817           bugfix: only use newBoolLink for bit result type
2818         * src/SDCCicode.c (geniCodeLogic): added param tree,
2819           bugfix: use newBoolLink if tree is bit type, bug appears when ruonly,
2820           (geniCodeLogicAndOr): use IS_BIT,
2821           (geniCodeJumpTable, geniCodeSwitch): added NULL param to geniCodeLogic,
2822           (ast2iCode): added tree param to geniCodeLogic for comparisons
2823         * src/SDCCsymt.h: added IS_OP_RUONLY and IS_OP_ACCUSE
2824         * support/regression/tests/bug1723128.c: added test NotZero
2825
2826 2007-06-01 Borut Razem <borut.razem AT siol.net>
2827
2828         * SDCPP synchronized with GCC CPP release version 4.2.0,
2829           currently the latest release:
2830         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
2831           support/cpp2/c-ppoutput.c, support/cpp2/cppdefault.c,
2832           support/cpp2/cppdefault.h, support/cpp2/except.h,
2833           support/cpp2/libcpp/directives.c, support/cpp2/libcpp/expr.c,
2834           support/cpp2/libcpp/files.c, support/cpp2/libcpp/include/cpplib.h,
2835           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
2836           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/macro.c,
2837           support/cpp2/libcpp/mkdeps.c, support/cpp2/libiberty/getpwd.c,
2838           support/cpp2/libiberty/hashtab.c, support/cpp2/optc-gen.awk,
2839           support/cpp2/opth-gen.awk, support/cpp2/opts.c,
2840           support/cpp2/opts.h, support/cpp2/output.h,
2841           support/cpp2/prefix.c, support/cpp2/sdcpp-opts.c,
2842           support/cpp2/sdcpp.dsp, support/cpp2/sdcpp.opt,
2843           support/cpp2/system.h, support/cpp2/version.c,
2844           support/cpp2/Makefile.in: modified
2845         * support/cpp2/opts-common.c: added
2846         * device/lib/pic16/libdev/pic18f[24][45]j10.c: fixed svn atrributes
2847         * device/lib/pic16/libdev/pic18f[24]5j10.c:
2848           search for included source file in local directory
2849         * sim/ucsim/configure, sim/ucsim/configure.in:
2850           temporary solution to suppress GCC 4.2.0 c++ warning:
2851           deprecated conversion from string constant to `char *'
2852
2853 2007-06-01 Raphael Neider <rneider AT web.de>
2854
2855         * device/lib/pic/libdev/pic12f683.c,
2856         * device/include/pic/pic12f683.h: added GPIO bits
2857
2858 2007-06-01 Raphael Neider <rneider AT web.de>
2859
2860         * doc/sdccman.lyx: added --disable-pic16-port, fixed some `--' and
2861           quotation marks, clarified role of PIC14 vs. PIC16 ports
2862         * src/pic16/devices.inc,
2863         * device/include/pic16/pic18fregs.h,
2864         * device/include/pic16/pic18f[24][45]j10.h,
2865         * device/lib/pic16/pics.all,
2866         * device/lib/pic16/libdev/pic18f[24][45]j10.c: added support for
2867           18f24j10, 18f25j10, 18f44j10, and 18f45j10
2868         * device/lib/pic16/libio/{i2c,adc,usart}.ignore: do not build IO libs
2869           for new devices as they are not yet supported by gputils
2870
2871 2007-05-31 Borut Razem <borut.razem AT siol.net>
2872
2873         * Small Device C Compiler 2.7.0 released
2874         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
2875           changed sdcc version to 2.7.1
2876         * support/scripts/sdcc.nsi: added How to create WIN32 release
2877           setup.exe package
2878
2879 2007-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
2880
2881         * doc/sdccman.lyx: documented initialization and allocation of absolute
2882           variables, bit parameter passing, the need for function pointers to be
2883           reentrant and alpha quality support of inline and retrict
2884
2885 2007-05-26 Borut Razem <borut.razem AT siol.net>
2886
2887         * support/regression/tests/bug1057979.c, support/regression/tests/malloc.c,
2888           support/regression/fwk/include/testfwk.h: fixed compilation on Mac OS x
2889         * docs/knownbugs.html: updated
2890
2891 2007-05-25 Maarten Brock <sourceforge.brock AT dse.nl>
2892
2893         * doc/sdccman.lyx: inserted footnotes about inline assembler labels,
2894           thanks Jan Waclawek
2895         * src/mcs51/gen.c (aopPut): fixed part of bug 1723128 when result is
2896           AOP_CRY and ruonly
2897           (gencjneshort): optimized when left is AOP_DIR
2898         * src/SDCCglue.c (printIvalStruct): fixed other part of bug 1723128 for
2899           initializing unions in a struct/array
2900         * support/regression/fwk/include/testfwk.h: added defines for data, near
2901           and far for host and z80
2902         * support/regression/tests/bug1723128.c: new, added
2903
2904 2007-05-22 Borut Razem <borut.razem AT siol.net>
2905
2906         * doc/knownbugs.html: updated
2907
2908 2007-05-21 Raphael Neider <rneider AT web.de>
2909
2910         * src/pic16/glue.c (pic16_initPointer): avoid assertion, emit better
2911           error message instead
2912         * src/pic/pcoderegs.c (pCodeOptime2pCodes): keep register state intact
2913
2914 2007-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
2915
2916         * src/mcs51/peeph.def (257.b): disabled to fix bug 1721024
2917
2918 2007-05-21 Raphael Neider <rneider AT web.de>
2919
2920         * src/pic/pcoderegs.c (pCodeOptime2pCodes): fixed bogus optimization,
2921           closes #1722392
2922         * src/regression/gpsim_assert.h,
2923         * src/regression/Makefile,
2924         * src/regression/pcodeopt.c: regression test for the above fix
2925
2926 2007-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
2927
2928         * src/SDCCpeeph.c (labelIsUncondJump): ignore identical labels for
2929           jumps to self, fixed bug 1717281
2930
2931 2007-05-10 Borut Razem <borut.razem AT siol.net>
2932
2933         * support/scripts/gen_known_bugs.pl: cosmetic fix
2934         * doc/knownbugs.html: generated by gen_known_bugs.pl
2935
2936 2007-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2937
2938         * src/SDCCast.c (createFunction): also generate non-inlined version of
2939           function for functions declared as "static inline"
2940         * src/SDCCast.c (fixupInline, inlineAddDecl): reset symbol state so
2941           function can be inlined after non-inlined version generated.
2942
2943 2007-05-10 Borut Razem <borut.razem AT siol.net>
2944
2945         * support/scripts/gen_known_bugs.pl: added script
2946           which generates knownbugs.html
2947
2948 2007-05-09 Maarten Brock <sourceforge.brock AT dse.nl>
2949
2950         * doc/knownbugs.html: updated for release 2.7.0
2951
2952 2007-05-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2953
2954         * device/include/mcs51/uPSD33xx.h: Added patch by Jan Waclawek.
2955
2956 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
2957
2958         * src/ds390/gen.c (emitcode): don't change properties of previous lines,
2959           (throughout): updated generating comments
2960         * src/mcs51/gen.c (emitcode): don't change properties of previous lines,
2961           (throughout): updated generating comments
2962         * src/SDCCpeeph.c (peepHole): continue searching at the first replaced
2963           rule instead of at the second, or it might skip lines when removing the
2964           complete match
2965         * support/regression/tests/bug1714204.c: changed test to foo
2966
2967 2007-05-08 Borut Razem <borut.razem AT siol.net>
2968
2969         * doc/sdccman.lyx: changed sdcc version to 2.7.0,
2970           thanks to SDCC Distributed Compile Farm members,
2971           added Z80 and GBZ80 command line options
2972         * .version, doc/INSTALL.txt, sdcc.spec: changed sdcc version to 2.7.0
2973
2974 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
2975
2976         * device/lib/mcs51/crtxinit.asm: added disabled version for dual dptr
2977         * device/include/mcs51/uPSD33xx.h: added sfr DPS as alias for DPTC
2978         * support/regression/tests/longlit.c: modified to be tested at all and
2979           to pass the actual test
2980
2981 2007-05-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2982
2983         * device/include/mcs51/uPSD33xx.h: Added.
2984
2985 2007-05-07 Maarten Brock <sourceforge.brock AT dse.nl>
2986
2987         * device/lib/_gptrput.c,
2988         * device/lib/_gptrget.c: removed old code,
2989          (_gptrgetWord),
2990         * src/ds390/gen.c (genGenPointerGet): fixed bug 1714204
2991         * support/regression/tests/bug1714204.c: new, added
2992
2993 2007-05-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2994
2995         * support/regression/tests/regtrack.c: test was never executed
2996           because of the regression test being picky about white spaces.
2997         * device/lib/mcs51/crtclear.asm: added comment
2998
2999 2007-05-06 Raphael Neider <rneider AT web.de>
3000
3001         * device/lib/pic/Makefile.rules,
3002         * device/lib/pic16/Makefile.rules: make sure *.ignore file exists,
3003           made "&> /dev/null" redirection sh-safe ("> /dev/null 2>&1")
3004
3005 2007-05-06 Raphael Neider <rneider AT web.de>
3006
3007         * src/pic16/device.h,
3008         * src/pic16/main.h,
3009         * src/pic16/main.c (pic16_optionsTable,_pic16_parseOptions,
3010           _pic16_setDefaultOptions): removed/reordered command-line args
3011         * doc/sdccman.lyx: updated PIC14 and PIC16 documentation (supported
3012           devices, regrouped command line args, environment variables),
3013           clarified sone points, added sections on how to add devices to the
3014           PIC14/PIC16 ports
3015
3016 2007-05-06 Maarten Brock <sourceforge.brock AT dse.nl>
3017
3018         * src/z80/peeph.def: fixed bug in rule 2
3019
3020 2007-05-05 Maarten Brock <sourceforge.brock AT dse.nl>
3021
3022         * src/port.h: added TARGET_MCS51_LIKE
3023         * src/SDCCpeeph.c (labelIsUncondJump): new, added, other targets could
3024           take advantage of it too
3025         * src/z80/gen.c (genIpush): push b, d or h directly instead of using a,
3026           (shiftR2Left2Result): Optimized: don't check shifting by 0
3027         * src/z80/peeph-z80.def,
3028         * src/z80/peeph.def: whole set of new rules by Philipp Krause with some
3029           modifications, see patch 1700823
3030         * src/mcs51/peep.c (): fixed bug 1712928
3031         * support/regression/tests/bug1712928.c: new, added
3032
3033 2007-05-05 Borut Razem <borut.razem AT siol.net>
3034
3035         * device/lib/pic16/Makefile.common.in,
3036           device/lib/pic/Makefile.common.in, sim/ucsim/cmd.src/Makefile.in:
3037           removed bash dependencies
3038
3039 2007-05-01 Borut Razem <borut.razem AT siol.net>
3040
3041         * src/SDCCicode.c:
3042           fixed bug #1710507: --i-code-in-asm makes compile fail
3043           all iCode comments are now one liners
3044         * src/mcs51/gen.c: fixed memory leak
3045
3046 2007-05-01 Raphael Neider <rneider AT web.de>
3047
3048         * device/lib/pic/libdev/*.c
3049         * device/include/pic/*.h: regenerated all device libs from updated
3050           .inc files
3051         * support/scripts/inc2h.pl: documented usage, now uses strict to
3052           catch more bugs
3053
3054 2007-04-30 Borut Razem <borut.razem AT siol.net>
3055
3056         * doc/sdccman.lyx:
3057           fixed bug #1669175: Problem with space in output paths
3058           documented how to use paths with spaces for Windows users
3059
3060 2007-04-29 Borut Razem <borut.razem AT siol.net>
3061
3062         * Fixed svn:eol-style and svn:keywords properties
3063         * src/SDCCval.c: fixed bug
3064           #1592871: Segfault with "large" const arrays of characters
3065           replaced recursion with iteration
3066         * Removed svn:executable property from non-executable files
3067
3068 2007-04-29 Maarten Brock <sourceforge.brock AT dse.nl>
3069
3070         * src/mcs51/gen.c (genRet): fixed bug 1707003
3071
3072 2007-04-27 Raphael Neider <rneider AT web.de>
3073
3074         * src/pic16/pcode.c (pBlockRemoveUnusedLabels,pic16_pBlockAddInval,
3075           createReachingDefinitions,assignValnums,pic16_destructDF,
3076           pic16_createDF,pic16_vcg_dumpedges,pic16_vcg_dump_default):
3077           prevent NULL pointer dereferences
3078         * device/lib/pic/libdev/pic16f886.c,
3079         * device/lib/pic/libdev/pic16f887.c: svn mv'ed to disabled_* to
3080           prevent building them, gputils do not really support them yet
3081
3082 2007-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3083
3084         * device/lib/_ltoa.c: 36 bytes less __data mem. This really
3085           helps printf_small. 32 bytes more __idata mem.
3086
3087 2007-04-27 Raphael Neider <rneider AT web.de>
3088
3089         * src/pic/pcode.c (addpCode2pBlock,LinkFlow,pBlockRemoveUnusedLabels):
3090           return early when pb or pb->pcHead is NULL (patch #1708427)
3091         * src/regression/empty.c,
3092         * src/regression/Makefile: added test with empty functions
3093         * support/Util/SDCCerr.c: fixed typo in E_INIT_STRUCT message
3094
3095 2007-04-27 Borut Razem <borut.razem AT siol.net>
3096
3097         * src/SDCCast.c: fixed feature request
3098           #1547512: Redundant strings linked when using sizeof("abc")
3099
3100 2007-04-23 Borut Razem <borut.razem AT siol.net>
3101
3102         * doc/sdccman.lyx, src/SDCCmain.c:
3103           peep-hole comments are generated only if --fverbose-asm option is
3104           specified and --no-peep-comments is not, as proposed by Frieder.
3105         * support/regression/Makefile.in: compile regression tests with
3106           --fverbose-asm option so one can "grep" whether a new (or an old)
3107           peephole is (still) applied; requested by Frieder.
3108
3109 2007-04-23 Kevin Buettner <kevin AT buettner.to>
3110
3111         * device/include/pic/pic16f886.h,
3112         * device/include/pic/pic16f887.h,
3113         * device/lib/pic/libdev/pic16f886.c,
3114         * device/lib/pic/libdev/pic16f887.c,
3115         * device/include/pic/pic14devices.txt,
3116         * device/lib/pic/libdev/devices.txt: Add 16f886 and 16f887.
3117
3118 2007-04-23 Kevin Buettner <kevin AT buettner.to>
3119
3120         * device/lib/pic/libsdcc/idata.c: PAGESEL _main before going there,
3121           fixes #1704666
3122
3123 2007-04-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3124
3125         * device/lib/_memset.c: assembler version for mcs51
3126
3127 2007-04-22 Borut Razem <borut.razem AT siol.net>
3128
3129         * support/scripts/listerr.c: program to create the list of errors and
3130           warnings list from - added
3131         * doc/sdccman.lyx: removed the note
3132           "For list of warnings and corresponding codes, see err_warn.txt"
3133         * src/SDCCsymt.c: fixed bug #1699804:
3134           Bug with some uses of sizeof(static local array) (MCS51)
3135         * support/regression/tests/bug-1699804.c: added
3136
3137 2007-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
3138
3139         * as/mcs51/asmain.c (search_path_append, search_path_fopen): new, added,
3140           (main): added option -i,
3141           (asmbl, case S_INCL): use search_path_fopen,
3142           mostly from patch 1579668 by Peter Miller, thanks
3143         * src/z80/main.c: fixed typo --callee-saves-bc
3144         * device/include/mcs51/compiler.h: added sfrword for Tasking
3145
3146 2007-04-20 Borut Razem <borut.razem AT siol.net>
3147
3148         * src/z80/main.c: replaced reserved keyword asm with asmblr
3149
3150 2007-04-19 Borut Razem <borut.razem AT siol.net>
3151
3152         * src/port.h: use const pointers to strings
3153         * src/SDCCargs.h: declared getStringArg() and getIntArg()
3154         * src/pic16/main.c: include SDCCargs.h
3155         * src/SDCCglobl.h: code_seg and const_seg are not pointers to
3156           const char, since the strings are dynamically allocated
3157         * src/SDCCmain.c: options.code_seg and options.const_seg are
3158           dynamically allocated; check port specific command line options
3159           before the general ones
3160         * src/z80/main.c: fixed bug #1631895: codeseg/constseg #pragma fail
3161
3162 2007-04-18 Maarten Brock <sourceforge.brock AT dse.nl>
3163
3164         * device/include/ds400rom.h,
3165         * device/lib/ds390/lcd390.c,
3166         * device/lib/ds390/memcpyx.c,
3167         * device/lib/ds390/rtc390.c,
3168         * device/lib/ds400/ds400rom.c,
3169         * device/lib/ds400/memcpyx.c,
3170         * device/lib/hc08/_ret.c: more replacements of keywords with their
3171           double underscore equivalents
3172         * device/lib/ds390/Makefile.in,
3173         * device/lib/ds400/Makefile.in,
3174         * device/lib/gbz80/Makefile.in,
3175         * device/lib/hc08/Makefile.in,
3176         * device/lib/mcs51/Makefile.in,
3177         * device/lib/z80/Makefile.in: added --std-c89 to CFLAGS
3178
3179 2007-04-17 Borut Razem <borut.razem AT siol.net>
3180
3181         * doc/sdccman.lyx, src/SDCCmain.c, src/SDCCglobal.h, src/ds390/gen.c,
3182           src/hc08/gen.c, src/mcs51/gen.c, src/mcs51/rtrack.c:
3183           fixed #1493816: option --no-gen-comments: --no-gen-comments renamed
3184           to --fverbose-asm, to be gcc'ish
3185
3186 2007-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
3187
3188         * src/mcs51/gen.c (aopOp): set size to 1 for ruonly, fixes bug 1699455
3189
3190 2007-04-17 Borut Razem <borut.razem AT siol.net>
3191
3192         * doc/sdccman.lyx: fixed #1701874: Mac OSX references in SDCC manual
3193         * device/lib/ds400/tinibios.c, device/lib/hc08/_divuint.c,
3194           device/lib/hc08/_divulong.c: replaced _asm and _endasm keywords
3195           with their double underscore equivalent
3196
3197 2007-04-14 Borut Razem <borut.razem AT siol.net>
3198
3199         * doc/sdccman.lyx: some additional "freeware" replaced with "free open
3200           source"
3201
3202 2007-04-13 Borut Razem <borut.razem AT siol.net>
3203
3204         * doc/sdccman.lyx: -pedantic-parse-number is not in conformance with
3205           C99 standard
3206         * device/examples/serialcomm/windows/serial.[ch],
3207           device/examples/serialcomm/windows/test_serialcomm.cpp:
3208           updated by Bela Torok
3209         * device/examples/serialcomm/windows/serialcomm.dsw,
3210           device/examples/serialcomm/windows/serialcomm.dsp: added
3211
3212 2007-04-13 Jan Waclawek <wek AT efton.sk>
3213
3214         * doc/sdccman.lyx: additions and changes at various places
3215           (submitted as #1697136).
3216           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
3217
3218 2007-04-10 Borut Razem <borut.razem AT siol.net>
3219
3220         * doc/cdbfileformat.lyx, doc/sdccman.lyx, doc/test_suite_spec.lyx:
3221           LyX file format changed to 245
3222         * doc/sdccman.lyx, doc/README.txt, sdc/SDCC.lex, src/SDCCglue.c:
3223           "FreeWare" replaced with "free open source"
3224
3225 2007-04-10 Maarten Brock <sourceforge.brock AT dse.nl>
3226
3227         * device/include/mcs51/C8051F120.h: added some defines for bits in RSTSRC
3228
3229 2007-04-08 Maarten Brock <sourceforge.brock AT dse.nl>
3230
3231         * device/include/pic16/pic18fregs.h,
3232         * device/lib/_bp.c,
3233         * device/lib/_decdptr.c,
3234         * device/lib/_divsint.c,
3235         * device/lib/_divslong.c,
3236         * device/lib/_divuint.c,
3237         * device/lib/_divulong.c,
3238         * device/lib/_fs2schar.c,
3239         * device/lib/_fs2sint.c,
3240         * device/lib/_fs2slong.c,
3241         * device/lib/_fs2uchar.c,
3242         * device/lib/_fs2uint.c,
3243         * device/lib/_fs2ulong.c,
3244         * device/lib/_fsadd.c,
3245         * device/lib/_fscmp.c,
3246         * device/lib/_fsdiv.c,
3247         * device/lib/_fseq.c,
3248         * device/lib/_fsget1arg.c,
3249         * device/lib/_fsget2args.c,
3250         * device/lib/_fsgt.c,
3251         * device/lib/_fslt.c,
3252         * device/lib/_fsmul.c,
3253         * device/lib/_fsneq.c,
3254         * device/lib/_fsnormalize.c,
3255         * device/lib/_fsreturnval.c,
3256         * device/lib/_fsrshift.c,
3257         * device/lib/_fssub.c,
3258         * device/lib/_fsswapargs.c,
3259         * device/lib/_gptrget.c,
3260         * device/lib/_gptrgetc.c,
3261         * device/lib/_gptrput.c,
3262         * device/lib/_logexpf.c,
3263         * device/lib/_modsint.c,
3264         * device/lib/_modslong.c,
3265         * device/lib/_moduint.c,
3266         * device/lib/_modulong.c,
3267         * device/lib/_mulint.c,
3268         * device/lib/_mullong.c,
3269         * device/lib/_schar2fs.c,
3270         * device/lib/_ser.c,
3271         * device/lib/_setjmp.c,
3272         * device/lib/_sint2fs.c,
3273         * device/lib/_slong2fs.c,
3274         * device/lib/_spx.c,
3275         * device/lib/_uchar2fs.c,
3276         * device/lib/_uint2fs.c,
3277         * device/lib/_ulong2fs.c,
3278         * device/lib/asincosf.c,
3279         * device/lib/atanf.c,
3280         * device/lib/calloc.c,
3281         * device/lib/ds390/tinibios.c,
3282         * device/lib/ds400/tinibios.c,
3283         * device/lib/expf.c,
3284         * device/lib/free.c,
3285         * device/lib/hc08/_mulint.c,
3286         * device/lib/logf.c,
3287         * device/lib/malloc.c,
3288         * device/lib/printf_fast.c,
3289         * device/lib/printf_tiny.c,
3290         * device/lib/printfl.c,
3291         * device/lib/realloc.c,
3292         * device/lib/ser_ir.c,
3293         * device/lib/serial.c,
3294         * support/regression/tests/libmullong.c: replaced all special keywords
3295           with their double underscore equivalent
3296         * support/regression/ports/mcs51-xstack-auto/spec.mk,
3297         * device/lib/Makefile.in: compile libs with --std-c99 instead of
3298           --std-sdcc99
3299         * src/mcs51/gen.c (outBitC): don't store if result is return-use-only,
3300           (genRet): if the bit-symbol is ruonly it already is in the carry
3301         * src/mcs51/ralloc.c (regTypeNum): make regType REG_CND for ruonly bit
3302         * src/SDCCast.c (createFunction): applied patch 887171 by Stas Sergeev
3303         * src/SDCCicode.c (ast2iCode): '!', GETHBIT, GETABIT: only set operand
3304           type UCHAR if dest is not bit
3305
3306 2007-04-03 Maarten Brock <sourceforge.brock AT dse.nl>
3307
3308         * device/include/math.h,
3309         * device/lib/cotf.c,
3310         * device/lib/expf.c,
3311         * device/lib/sincoshf.c: changed XMAX to C99 HUGE_VALF
3312
3313 2007-04-01 Borut Razem <borut.razem AT siol.net>
3314
3315         * src/SDCC.lex, src/SDCCmain.c, support/cpp2/sdcpp.c:
3316           fixed bug #1692042: input buffer overflow...scanner uses REJECT
3317         * support/cpp2/sdcpp.c: fixed recursion bug - internal_error() called
3318           gcc_unreachable() called internal_error()...
3319
3320 2007-03-30 Raphael Neider <rneider AT web.de>
3321
3322         * src/pic/ralloc.c (isData): suppress garbage debug output
3323
3324 2007-03-28 Borut Razem <borut.razem AT siol.net>
3325
3326         * doc/sdccman.lyx:
3327           "Nightly Snapshots" replaced with "Snapshot Builds", since the SDCC
3328           is developed, built and used worldwide, and the word "night" doesn't
3329           make any sense.
3330
3331 2007-03-28 Maarten Brock <sourceforge.brock AT dse.nl>
3332
3333         * device/include/mcs51/C8051F360.h: new, added
3334         * device/include/mcs51/C8051F520.h: fixed buggy sbit addresses SPI0CN
3335
3336 2007-03-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3337
3338         * src/SDCC.y (declaration_specifiers, function_specifier),
3339         * support/Util/SDCCerr.c,
3340         * support/Util/SDCCerr.h,
3341         * src/SDCCsymt.h,
3342         * src/SDCCsymt.c (mergeSpec, checkFunction): Parse and validate the
3343           inline keyword
3344         * src/SDCCmem.c (deallocParms),
3345         * src/SDCCast.c: support for function inlining, not quite complete
3346         * src/SDCCsymt.c (printTypeChain, printTypeChainRaw): display
3347           'restrict' qualifier
3348
3349 2007-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
3350
3351         * src/mcs51/gen.c (saveRegisters, unsaveRegisters): free some bitVects,
3352           (saveRBank, unsaveRBank): don't save bits,
3353           (genFunction, genEndFunction): save bits exactly once, fix bug 1535242
3354         * support/regression/tests/bug1535242.c: new, added
3355         * device/include/assert.h: applied patch 1686533 to fix bug 1686528,
3356           thanks Alexey Shamrin <shamrin AT gmail.com>,
3357           made assert.h header ANSI compliant (added a check for NDEBUG macro,
3358           removed header guard)
3359         * .version,
3360         * sdcc.spec: bumped version to 2.6.5
3361         * src/SDCCmain.c(parseCmdLine): fixed bug 1677144
3362
3363 2007-03-22 Borut Razem <borut.razem AT siol.net>
3364
3365         * debugger/mcs51/cmd.c, debugger/mcs51/sdcdb.c:
3366           fixed bug #1653671: sdcdb integration into ddd is broken
3367
3368 2007-03-22 Raphael Neider <rneider AT web.de>
3369
3370         * src/pic/gen.c (popGetExternal): augmented to also create references
3371           to external variables (not only labels),
3372           (genCall): comment on plan to reduce PAGESEL overhead,
3373           (genFunction, genEndFunction): also save/restore FSR around interrupt
3374           handling code, removed lots of unused code
3375           (genDivOneByte): release acquired temp register
3376         * src/pic/glue.c (pic14createInterruptVect): adapt to new signature
3377           of popGetExternal
3378         * device/lib/pic/libsdcc/shadowregs.c: NEW, provide storage location
3379           for registers that need to be saved during interrupts (FSR, STATUS,
3380           PCLATH; W needs special handling), currently only FSR is used
3381
3382 2007-03-22 Raphael Neider <rneider AT web.de>
3383
3384         * device/include/pic/pic14devices.txt: 16f688 has only one config word
3385
3386 2007-03-19 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3387
3388         * /as/link/mcs51/aslink.dsp: Object extension for mcs51 is 'rel' not 'o'.
3389
3390 2007-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
3391
3392         * src/mcs51/peeph.def (263.x): fixed bug for volatile variables
3393
3394 2007-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
3395
3396         * as/link/aslink.h: added LKOBJEXT
3397         * as/link/hc08/link_hc08.dsp,
3398         * as/link/hc08/Makefile.bcc,
3399         * as/link/hc08/Makefile.in,
3400         * as/link/mcs51/aslink.dsp,
3401         * as/link/mcs51/Makefile.bcc,
3402         * as/link/mcs51/Makefile.in: moved lkamof51.c and lkdata.c
3403         * as/link/hc08/lkaomf51.c,      as/link/mcs51/lkaomf51.c,
3404         * as/link/lkaomf51.c: merged and moved
3405         * as/link/hc08/lkdata.c,        as/link/mcs51/lkdata.c,
3406         * as/link/z80/lkdata.c,
3407         * as/link/lkdata.c: merged and moved
3408         * as/link/hc08/lkmain.c,
3409         * as/link/mcs51/lkmain.c: cosmetic changes
3410         * as/link/z80/lkeval.c,         as/link/lkeval.c: merged
3411         * as/link/lklex.c: use LKOBJEXT
3412         * as/link/z80/lklist.c,         as/link/lklist.c: merged,
3413           ANSI-fied functions, removed bubble-sorts
3414         * as/link/z80/lksym.c           as/link/lksym.c: merged,
3415           ANSI-fied functions
3416         * as/link/z80/linkgbz80.dsp,
3417         * as/link/z80/linkz80.dsp,
3418         * as/link/z80/Makefile.in: added lkaomf51.c and lknoice.c,
3419           moved lkdata.c, lkeval.c, lkhead.c, lklex.x, lklist.c, lksym.c
3420         * as/link/z80/lkhead.c,
3421         * as/link/z80/lklex.c: deleted
3422         * as/link/z80/lklibr.c: moved LKOBJEXT to aslink.h
3423         * as/link/z80/lkmain.c: added copyfile()
3424
3425 2007-03-13 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3426
3427         * device/include/mcs51/P89LPC925.h: Added missing P1_6 and P1_7.
3428
3429 2007-03-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3430
3431         * device/lib/_strlen.c: assembler version for mcs51
3432
3433 2007-03-13 Raphael Neider <rneider AT web.de>
3434
3435         * device/include/pic16/pic18f2221.h,
3436         * device/include/pic16/pic18f2321.h,
3437         * device/include/pic16/pic18f2331.h,
3438         * device/include/pic16/pic18f4221.h,
3439         * device/include/pic16/pic18f4321.h,
3440         * device/include/pic16/pic18f4331.h: fixed config byte location names
3441         * support/scripts/inc2h-pic16.pl: removed debug output, emit
3442           consistently named config byte locations
3443
3444 2007-03-13 Borut Razem <borut.razem AT siol.net>
3445
3446         * src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
3447           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/s51.src/Makefile.in,
3448           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
3449           as/link/z80/Makefile.in, as/z80/Makefile.in:
3450           introduced LDFLAGS
3451
3452 2007-03-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3453
3454         * device/lib/printfl.c: 13 bytes less __data mem (12 more __idata)
3455         * device/lib/printf_large.c: pointer was converted to generic
3456         pointer for mcs51 models other than model-small (Maarten noticed)
3457
3458 2007-03-10 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3459
3460         * device/include/mcs51/ADuC84x.h: Added.
3461
3462 2007-03-10 Borut Razem <borut.razem AT siol.net>
3463
3464         * src/SDCC.lex, src/SDCCutil.[ch], src/SDCCval:
3465           fixed RFE #1624219: double backslashes in filenames;
3466           functions hexEscape(), octalEscape() and copyStr() moved from
3467           SDCCval.c to SDCCutil.c and made them glovbally available
3468
3469 2007-03-09 Borut Razem <borut.razem AT siol.net>
3470
3471         * src/SDCC.lex, src/SDCCast.c. src/SDCCglobl.c, src/SDCCsymt.c,
3472           src/SDCCval.c: fixed bugs #1676768: Wrong line number reported and
3473           1673361: Missaligned comments in output files
3474
3475 2007-03-09 Raphael Neider <rneider AT web.de>
3476
3477         * device/include/pic/pic14devices.txt: fixed confsiz of 16f91[3467]
3478
3479 2007-03-09 Raphael Neider <rneider AT web.de>
3480
3481         * src/pic/gen.c,
3482         * src/pic/glue.c,
3483         * src/pic/ralloc.c: suppress undesired debug output
3484         * src/SDCCmain.c (linkEdit): initialize c to quieten compiler
3485
3486 2007-03-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3487
3488         * device/lib/printf_large.c: 6 bytes less __data mem (6 more __idata)
3489
3490 2007-03-07 Borut Razem <borut.razem AT siol.net>
3491
3492         * device/lib/pic16/libdev/pic18f[24][34]31.c:
3493           search include files in the current directory
3494
3495 2007-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
3496
3497         * src/SDCCglue.c (emitMaps, glue),
3498         * src/SDCCmem.c (initMem, allocDefault): added x_abs for initialized
3499           absolute xdata
3500         * support/regression/tests/absolute.c: added xdata test
3501
3502 2007-03-03 Maarten Brock <sourceforge.brock AT dse.nl>
3503
3504         * src/SDCCmain.c (parseCmdLine): only set options.xstack_loc for mcs51,
3505           added condition to macro, fixes bug 1666080
3506
3507 2007-03-02 Raphael Neider <rneider AT web.de>
3508
3509         * src/pic/gen.c (genGenPointerSet): removed bogus assertion
3510
3511 2007-02-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3512
3513         * device/lib/mcs51/crtxclear.asm: pdata segment of 256 byte would not
3514         be cleared. Unconditionally set __XPAGE
3515         * src/hc08/gen.c: --no-gen-comments (RFE #1493816) for hc08
3516
3517 2007-02-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3518
3519         * src/SDCCglobl.h,
3520         * src/SDCCmain.c,
3521         * src/mcs51/gen.c,
3522         * src/mcs51/rtrack.c,
3523         * src/ds390/gen.c,
3524         * doc/sdccman.lyx: added --no-gen-comments
3525         * src/mcs51/peeph.def: added 192.b, disabled 185
3526
3527 2007-02-25 Raphael Neider <rneider AT web.de>
3528
3529         * src/pic16/gen.c (genCast): fixed typo
3530         * device/lib/pic16/Makefile.subdir: only install existing files
3531         * device/lib/pic16/libdev/Makefile.in: build serially, avoid races
3532
3533 2007-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
3534
3535         * device/lib/mcs51/crtcall.asm: new, added for indirect calls
3536         * device/lib/mcs51/crtclear.asm,
3537         * device/lib/mcs51/crtxclear.asm: renumbered labels
3538         * device/lib/mcs51/Makefile.in: added crtcall.asm
3539         * doc/sdccman.lyx: documented mcs51 crt* library startup code
3540         * src/mcs51/gen.c (movc): removed,
3541           (aopGet, genPlusBits): clear a after loading the carry (possibly from
3542             acc.x or psw.x),
3543           (toCarry, genSend, genRet): added function toCarry,
3544           (genPcall): use "lcall @a+dptr" for functions w/o parameters,
3545           (assignBit, genAssign, genCast): added function assignBit
3546         * src/mcs51/Makefile.bcc: added rtrack.c
3547         * src/mcs51/ralloc.h: made valueKnown a bitfield
3548         * src/mcs51/rtrack.c (getReg, rtrackUpdate): added getReg,
3549           fixed "jbc acc" and "cpl acc" bug, enhanced "cjne", "jnz" and "djnz",
3550           disabled InvalidateAllRx for lcall __gptrput, added "xch a,rn"
3551         * src/pic/pcode.c (FixRegisterBanking): fixed warning used uninitialized
3552         * src/z80/gen.c: added AOP_IS_PAIRPTR,
3553           (_pop): only pop valid pairs, see gencjneshort,
3554           (gencjneshort): return pair that still needs to be popped, restructured,
3555           (gencjne, genCmpEq): call _pop
3556
3557 2007-02-23 Raphael Neider <rneider AT web.de>
3558
3559         * device/include/pic/pic14devices.txt: 16f684 has only one config word
3560
3561 2007-02-22 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3562
3563         * device/include/mcs51/P89LPC925.h: Added.
3564
3565 2007-02-18 Raphael Neider <rneider AT web.de>
3566
3567         * src/pic/glue.c (emitInitVal): fixed #1659894 (SIGSEGV on arrays)
3568
3569 2007-02-17 Borut Razem <borut.razem AT siol.net>
3570
3571         * support/cpp2/directives.c, support/cpp2/version.c:
3572           synchronized with GCC CPP 4.1.2
3573
3574 2007-02-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3575
3576         * src/mcs51/rtrack.h,
3577         * src/mcs51/rtrack.c: added register tracking for the mcs51 port,
3578           by checking the strings passed by emitcode() to the assembler.
3579           Feel free to change. This in part addresses RFE #482179.
3580           Set environment variable SDCC_RTRACK to enable.
3581         * src/mcs51/gen.c: inserted hooks
3582         * src/mcs51/ralloc.h: added two members to struct regs
3583         * support/regression/tests/regtrack.c: added
3584
3585 2007-02-14 Borut Razem <borut.razem AT siol.net>
3586
3587         * src/SDCC.y: fixed bug #1291133: duplicate members across enum(s)
3588         * Makefile.in: applied patch from Makefile related part of
3589           #1469393: Compiler does not initialize static data
3590
3591 2007-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
3592
3593         * src/SDCCicode.c (geniCodeAssign): return (itemp) right instead of left
3594           for better fix of bug 1273984, compiles pic16 rand.c
3595
3596 2007-02-12 Borut Razem <borut.razem AT siol.net>
3597
3598         * src/pic16/main.c: fixed pic16 standard library directory bug
3599
3600 2007-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
3601
3602         * src/hc08/gen.c (genSwap): fix swap regression test
3603
3604 2007-02-10 Borut Razem <borut.razem AT siol.net>
3605
3606         * src/SDCCsymt.c: fixed bug #1159134: invalid duplicate declarations
3607           with same scope
3608         * support/regression/tests/bug-1654060.c: added regression test for
3609           #1654060
3610
3611 2007-02-09 Bernhard Held <bernhard AT bernhardheld.de>
3612
3613         * src/mcs51/gen.c (genRet): fixed RFE 1652561: added code for bit to
3614         bit moves in return statement
3615
3616 2007-02-09 Borut Razem <borut.razem AT siol.net>
3617
3618         * src/SDCC.y: fixed bug #1654060 typedef within function causes
3619           syntax error
3620
3621 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
3622
3623         * src/mcs51/gen.c (aopPut): use direct name for pushing registers
3624         * src/SDCCmain.c (parseCmdLine): dbuf_s path must be initialised
3625
3626 2007-02-07 Raphael Neider <rneider AT web.de>
3627
3628         * src/pic16/devices.inc,
3629         * device/include/pic16/pic18fregs.h,
3630         * device/include/pic16/pic18f[24][34]31.h,
3631         * device/lib/pic16/libdev/pic18f[24][34]31.c,
3632         * device/lib/pic16/pics.all: added 18f[24][34]31 family
3633         * device/lib/pic16/libio/i2c.ignore: do not build i2c
3634
3635 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
3636
3637         * device/lib/printf_large.c (_print_format): fixed compare/assign bug, how
3638           can this have lived here for so many years?
3639         * src/SDCCicode.c (ast2iCode): return left instead of right for assignment,
3640           fixes bug 1273984, see also patch 1645121, thanks Gnther Jehle
3641         * support/regression/tests/bug1273984.c: new, added, thanks Gnther Jehle
3642
3643 2007-02-06 Bernhard Held <bernhard AT bernhardheld.de>
3644
3645         * src/SDCCBlock.c (addiCodeToeBBlock): fixed bug 1652207: GOTO icodes
3646         appended by loop induction must be at the very end of the eBBlock
3647
3648 2007-02-05 Kevin Vigor
3649
3650         * src/ds390/gen.c, src/ds390/main.c: Address bug 1469393.
3651
3652 2007-02-05 Borut Razem <borut.razem AT siol.net>
3653
3654         * support/regression/fwk/lib/timeout.c: native WIN32 port,
3655           implemented #1651830 Reg. tests: rewrite timeout.c to use WIN32 API
3656
3657 2007-02-03 Borut Razem <borut.razem AT siol.net>
3658
3659         * src/SDCC.y, src/SDCCmain.c, src/SDCCglobl.h, doc/sdccman.lyx:
3660           applied patch #1646602 option to set default signedness of char to
3661           unsigned, added -funsigned-char command line option,
3662           thanks to Gunther Jehle
3663         * device/lib/Makefile.in: added the -f option to rm so it doesn't
3664           prompt for file deletion a few hundred times (especially the
3665           subversion files, which have ro permissions so it asks for
3666           confirmation), thanks to Simon McAuliffe;
3667           added {} + option to find in order to remove multiple files from a
3668           single rm commad
3669
3670 2007-02-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3671
3672         * device/include/mcs51/SST89x5xRDx.h: Added.
3673
3674 2007-02-02 Raphael Neider <rneider AT web.de>
3675
3676         * src/pic/glue.c (emitSymbolSet): check sym->etype before use
3677         * src/regression/Makefile: use --no-pcode-opt, ignore failing tests
3678
3679 2007-02-01 Raphael Neider <rneider AT web.de>
3680
3681         * src/pic/glue.c (picglue,emitSymbolSet,showAllMemmaps): emit the
3682           config words again
3683
3684 2007-01-31 Borut Razem <borut.razem AT siol.net>
3685
3686         * support/Util/dbuf_string.h: added ATTRIBUTE_PRINTF to dbuf_printf()
3687           if compiled with GCC. Thanks to Raphael Neider
3688
3689 2007-01-31 Raphael Neider <rneider AT web.de>
3690
3691         * src/pic/pcode.c (isValidIdChar,bankCompare): fuzzy matching of
3692             operand names, handles name and (name + n) for all n,
3693           (sameBank): restructured, also check bank allocation policy,
3694         * src/pic/glue.c (emitPseudoStack): fixed printf arguments,
3695           (pic14_operandsAllocatedInSameBank): check whether to operands
3696             will be allocated into the same bank (i.e., section) to reduce
3697             BANKSEL overhead, queried from pcode.c:sameBank,
3698           (pic14printLocals): reintroduced clustering registers into a single
3699             section: all compiler generated symbols will now reside in one
3700             bank (per file), reducing BANKSEL overhead and code size,
3701           (showAllMemmaps): use local dbuf where possible
3702
3703 2007-01-29 Raphael Neider <rneider AT web.de>
3704
3705         * src/pic/gen.c (popGetExternal): simplified, mark symbol as used,
3706           (call_libraryfunc): retrieve/create symbol and mark as used,
3707           (genFunction): mark defined functions as non-extern and add again
3708            to code memmap for later output
3709         * src/pic/glue.c (emitPseudoStack): put into own subroutine,
3710           (pic14printLocals): reworked for new symbol emission,
3711           (emitIfNew,pic14_constructAbsMap,emitIvalLabel,emitIvals,emitInitVal,
3712           showAllMemmaps): reworked symbol output using dbufs, added handling
3713             of string literals (still incomplete),
3714           (picglue): removed symbol emission, moved into showAllMemmaps,
3715           (emitSymbolSet): new workhorse for symbol output,
3716           (pic14emitMaps,pic14printPublics,pic14printExterns): commented out
3717
3718 2007-01-29 Borut Razem <borut.razem AT siol.net>
3719
3720         * src/SDCCmain.c, src/SDCCutil.c: dbuf_splitFile: file extension
3721           component contains the extension separator.
3722
3723 2007-01-28 Borut Razem <borut.razem AT siol.net>
3724
3725         * sim/ucsim/cmd.src/cmdutil.cc: NUL device is detected as CG_FILE type
3726           on WIN32
3727         * src/SDCCdwarf2.c, src/SDCCglobl.h, src/SDCCmain.c, src/SDCCutil.c,
3728           src/SDCCutil.h, src/avr/gen.c, src/ds390/gen.c, src/hc08/gen.c,
3729           src/mcs51/gen.c, src/pic/device.c, src/pic/gen.c, src/pic/pcode.c,
3730           src/pic/pcodepeep.c, src/pic/ralloc.c, src/pic16/device.h,
3731           src/pic16/gen.c, src/pic16/main.c, src/pic16/pcode.c,
3732           src/pic16/pcodepeep.c, src/pic16/ralloc.c, src/xa51/gen.c,
3733           src/z80/gen.c, support/Util/MySystem.c:
3734           accept slash and backslash as directory separator on WIN32 and
3735           Cygwin ports
3736
3737 2007-01-28 Raphael Neider <rneider AT web.de>
3738
3739         * src/pic16/devices.inc,
3740         * device/include/pic16/pic18f[24][23]21.h,
3741         * device/include/pic16/pic18fregs.h,
3742         * device/lib/pic16/libdev/pic18f[24][23]21.c,
3743         * device/lib/pic16/pics.all: added support for the 18f[24][23]21 family
3744         * device/lib/pic16/libio/adc.ignore,
3745         * device/lib/pic16/libio/i2c.ignore,
3746         * device/lib/pic16/libio/usart.ignore: do not build I/O lib for new
3747           family, as gputils do not yet support the devices
3748         * device/lib/pic16/Makefile.subdir: ignore errors on install
3749         * support/scripts/inc2h-pic16.pl: script to generate pic16 device
3750           headers and libraries from gputils .inc files
3751
3752 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
3753
3754         * doc/sdccman.lyx: add printf_fast_f precision limitation note
3755
3756 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
3757
3758         * doc/sdccman.lyx: add printf benchmarks
3759
3760 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
3761
3762         * device/lib/printf_fast.c: fix %c, char promoted to int
3763         * device/lib/printf_tiny.c: fix %c, char promoted to int
3764
3765 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
3766
3767         * device/lib/printf_fast.c: fix float overflow check, bug #1525093
3768
3769 2007-01-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3770
3771         * support/regression/tests/swap.c: 64 bit hosts failed
3772         * doc/sdccman.lyx: added preliminary mcs51 printf feature matrix
3773
3774 2007-01-25 Raphael Neider <rneider AT web.de>
3775
3776         * src/pic/pcode.c (sameBank,FixRegisterBanking): optimize banksels
3777           based on absolute register address, patch by Alex Blond
3778
3779 2007-01-22 Raphael Neider <rneider AT web.de>
3780
3781         * src/pic/glue.c (pic14emitRegularMap): mark initialized symbols as
3782           emitted, do not emit them again...
3783
3784 2007-01-22 Raphael Neider <rneider AT web.de>
3785
3786         * src/regression/bank1.c, src/regression/compare6.c,
3787           src/regression/add.c: cosmetic changes
3788         * src/pic/pcode.h: moved GPTRTAG_* here from gen.c
3789         * src/pic/gen.c: fixed global zero and one,
3790           (aopForSym): removed unued code,
3791           (aopGet): assert aop is defined, check and use `index' of
3792             pCodeImmd operands (fixes #1630908),
3793         * src/pic/pcode.c (get_op): added output of generic pointer tag,
3794           (register_reassign): prevent accidental register unification,
3795           (ReuseReg): cosmetic changes (also above)
3796         * src/pic/glue.c (pic14_constructAbsMap,pic14emitRegularMap,
3797           pic14emitStaticSeg): do not emit initialized data,
3798           (printIval*): replaced with working versions,
3799           (pic14createInterruptVect,picglue): use idata for initialized data,
3800             now init data should work in all modules (not only main()),
3801         * device/lib/pic/libsdcc/idata.c: NEW, handle initialized data
3802
3803 2007-01-21 Borut Razem <borut.razem AT siol.net>
3804
3805         * sim/ucsim/configure.in: introduced macro DD_COPT_NO_IGNORE,
3806           use -fPIC or -fpic if they are supported and not ignored
3807         * src/SDCCval.c: fixed bug introduced by me in rev. #4577
3808         * support/cpp2/libcpp/lex.c: fixed gcc 4.1.1 warnings
3809
3810 2007-01-20 Borut Razem <borut.razem AT siol.net>
3811
3812         * src/SDCC.lex, src/SDCCmain.c, sdc/SDCCglobl.h, doc/sdccman.lyx:
3813           implemented RFE #1470316: allow "$" in variable names
3814
3815 2007-01-20 Raphael Neider <rneider AT web.de>
3816
3817         * device/include/pic/pic14regs.h: reverted accidental wipe of the file
3818
3819 2007-01-20 Raphael Neider <rneider AT web.de>
3820
3821         * device/lib/pic/libdev/devices.txt: device list for mkall.sh
3822         * device/lib/pic/libdev/mkall.sh: script to rebuild all device libs
3823         * device/lib/pic/libdev/pic14ports.txt: device PORT specifications
3824         * support/scripts/inc2h.pl: fixed major .inc parsing bugs,
3825           applied patch from Robert Tate (#1629249) to add PORTs and TRISs
3826         * device/lib/pic/libdev/pic*.c,
3827         * device/include/pic/pic*.h: regenerated with enhanced inc2h.pl
3828         * device/lib/pic/libdev/Makefile.in: show progress
3829
3830 2007-01-19 Bernhard Held <bernhard AT bernhardheld.de>
3831
3832         * doc/sdccman.lyx: updated "configure options" for autoconf 2.6
3833         * support/scripts/sdcc_cygwin_mingw32,
3834         * support/scripts/sdcc_mingw32,
3835         * support/scripts/build.mak: replaced --datadir by --datarootdir for
3836         conformance with autoconf 2.6
3837
3838 2007-01-19 Raphael Neider <rneider AT web.de>
3839
3840         * src/pic/device.c (register_map): fixed list construction
3841         * src/pic/gen.c (genDivOneByte,genModOneByte): accept result > 1 byte,
3842           (genMod): removed case for genModbits,
3843           (genModbits): removed as now unused/unimplemented
3844         * src/pic/glue.c (picglue): prevent name clash with sources 'init.c'
3845
3846 2007-01-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3847
3848         * support/regression/tests/swap.c: added in response to #1638622
3849         * doc/sdccman.lyx: synced version, minor changes
3850
3851 2007-01-18 Borut Razem <borut.razem AT siol.net>
3852
3853         * SDCClabel.c: fixed bug #1638651: wrong linenumber presented in warning,
3854           thanks to Gunther Jehle
3855         * src/asm.c: don't die if the file drfined in #line couldn't be opened
3856         * src/SDCC.lex, src/SDCCglobal.h, src/SDCCicode.c, src/SDCCsymt.c,
3857           src/SDCCval.c: removed redundant definitions of currFname and mylineno;
3858           use filename in lineno instead.
3859         * SDCCast.c: removed MSVC warning C4018: '==' : signed/unsigned mismatch,
3860           print the file name in ast_print()
3861
3862 2007-01-18 Borut Razem <borut.razem AT siol.net>
3863
3864         * support/Util/dbuf_string.c: removed (PTR) cast since it is not
3865           defined in MSVC
3866         * src/SDCC.lex: stringLiteral() returns const char pointer,
3867           EOF detection in stringLiteral(), fixed asmbuf memory leak,
3868           fixed column counting
3869         * src/SDCCval.[ch]: constVal(), value *strVal() and charVal()
3870           accept const char pointer as parameter
3871         * src/SDCCdwarf2.c: corrected buffer size
3872
3873 2007-01-17 Borut Razem <borut.razem AT siol.net>
3874
3875         * support/Util/dbuf_string.c: fixed for amd64
3876
3877 2007-01-15 Borut Razem <borut.razem AT siol.net>
3878
3879         * src/pic16/ralloc.c, src/pic/ralloc.c, src/SDCC.y:
3880           removed terminal symbol ELIPSIS, since it was never generated by the
3881           lexer and it was wrongly used in parameter_identifier_list rule
3882
3883 2007-01-15 Raphael Neider <rneider AT web.de>
3884
3885         * doc/sdccman.lyx: updated PIC14/16 command line args, updated PIC14
3886             code page and data banking description
3887         * src/pic/genarith.c,
3888         * src/pic/gen.h: removed bit arithmetic functions,
3889             updated exit(1) to exit(EXIT_FAILURE)
3890         * device/lib/pic16/libsdcc/stack/stack.S: default to 256 byte stack
3891         * device/include/pic16/pic18f2455.h,
3892         * device/lib/pic16/libdev/pic18f2455.c: added PORTD, LATD, LATE,
3893             TRISD and TRISE, fixed/added some bit names
3894         * device/lib/pic16/libdev/pic18f{2550,4550,4455}.c,
3895         * device/include/pic16/pic18f{2550,4550,4455}.h: simply include
3896             updated pic18f2455.{c,h} instead of duplicating them
3897
3898 2007-01-14 Borut Razem <borut.razem AT siol.net>
3899
3900         * as/mcs51/asnoice.c, as/hc08/asnoice.c: fixed bug #1447412:
3901           Cannot debug files that contain spaces in the path name
3902           by converting spaces in asm file name to underscores
3903
3904 2007-01-13 Borut Razem <borut.razem AT siol.net>
3905
3906         * doc/sdccman.lyx: fixed format errors
3907
3908 2007-01-10 Borut Razem <borut.razem AT siol.net>
3909
3910         * src/SDCC.lex, src/SDCCmain.c: fixed bug #1631895:
3911           codeseg/constseg #pragma fail
3912         * suppoprt/cpp2/Makefile.bcc: reenable Borland C compilation
3913         * suppoprt/cpp2/configure.in, suppoprt/cpp2/libcpp/lex.c,
3914           suppoprt/cpp2/Makefile.in, suppoprt/cpp2/sdcpp-opts,
3915           suppoprt/cpp2/sdcpp.[ch]: house cleaning
3916
3917 2007-01-09 Borut Razem <borut.razem AT siol.net>
3918
3919         * get rid of diagnistic.[ch], pretty-print.[ch],
3920           c-pretty-print.[ch], ... used just for error, warning, ...
3921           message formatting
3922         * suppoprt/cpp2/pretty-print.[ch], suppoprt/cpp2/diagnostic.[ch],
3923           suppoprt/cpp2/diagnostic.def, suppoprt/cpp2/input.h,
3924           suppoprt/cpp2/pretty-print.[ch]:
3925           removed
3926         * suppoprt/cpp2/Makefile.in, suppoprt/cpp2/opts.c,
3927           suppoprt/cpp2/sdcpp-opts.c, suppoprt/cpp2/sdcpp.[ch],
3928           suppoprt/cpp2/sdcpp.dsp:
3929           changed
3930
3931 2007-01-08 Maarten Brock <sourceforge.brock AT dse.nl>
3932
3933         * device/lib/printf_large.c (output_float): removed recursion,
3934           use smaller buffer on stack for mcs51,
3935           fixed bug printing 1.96
3936         * support/regression/tests/snprintf.c: added test
3937
3938 2007-01-07 Borut Razem <borut.razem AT siol.net>
3939
3940         * use dynamic memory buffers instead temporary files
3941         * support/Util/dbuf_string.c, support/Util/dbuf_string.h:
3942           added
3943         * src/Makefile.in, src/SDCC.lex, src/SDCCast.c, src/SDCCast.h,
3944           src/SDCCcse.c, src/SDCCglobl.h, src/SDCCglue.c, src/SDCCglue.h,
3945           src/SDCCicode.c, src/SDCCicode.h, src/SDCCmain.c, src/SDCCmem.c,
3946           src/SDCCmem.h, src/SDCCpeeph.c, src/SDCCpeeph.h, src/SDCCsymt.c,
3947           src/SDCCsymt.h, src/SDCCutil.c, src/asm.c, src/asm.h, src/avr/gen.c,
3948           src/avr/main.c, src/ds390/gen.c, src/ds390/main.c, src/hc08/gen.c,
3949           src/hc08/main.c, src/izt/gen.c, src/mcs51/gen.c, src/mcs51/main.c,
3950           src/pic/device.c, src/pic/gen.c, src/pic/glue.c, src/pic/main.c,
3951           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/glue.c,
3952           src/pic16/main.c, src/pic16/ralloc.c, src/port.h, src/src.dsp,
3953           src/xa51/gen.c, src/xa51/main.c, src/z80/gen.c, src/z80/main.c,
3954           support/Util/dbuf.c, support/Util/dbuf.h:
3955           modified
3956         * .version, sdcc.spec: bumped version to 2.6.4
3957
3958 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
3959
3960         * src/port.h: added TARGET_Z80_LIKE macro
3961         * src/SDCCmain.c (linkEdit): use TARGET_Z80_LIKE,
3962           output PSEG location if --xram-loc or --xstack-loc was used
3963         * as/link/mcs51/lkarea.c (lnksect2): set segment address afterwards
3964
3965 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
3966
3967         * as/as_gbz80.dsp, as/z80/as_gbz80.dsp,
3968         * as/as_z80.dsp,   as/z80/as_z80.dsp,
3969         * as/asx8051.dsp,  as/mcs51/asx8051.dsp,
3970         * sdcc.dsw: moved project files into subdir
3971         * as/hc08/as_hc08.dsp,
3972         * as/hc08/Makefile.bcc,
3973         * as/hc08/Makefile.in,
3974         * as/mcs51/Makefile.bcc,
3975         * as/mcs51/Makefile.in,
3976         * as/z80/Makefile.bcc,
3977         * as/z80/Makefile.in,
3978         * as/link/mcs51/Makefile.bcc: use as/strcmpi.c
3979         * as/hc08/asm.h,
3980         * as/mcs51/asm.h,
3981         * as/z80/asm.h: added as_strcmpi() and as_strncmpi() prototypes
3982         * as/hc08/asmain.c,
3983         * as/hc08/assym.c,
3984         * as/mcs51/asmain.c,
3985         * as/mcs51/assym.c,
3986         * as/z80/assym.c: removed include "strcmpi.h"
3987         * as/hc08/strcmpi.c,
3988         * as/hc08/strcmpi.h,
3989         * as/mcs51/strcmpi.c,
3990         * as/mcs51/strcmpi.h,
3991         * support/Util/strcmpi.c,
3992         * support/Util/strcmpi.h: removed files
3993         * as/strcmpi.c: added as_strncmpi()
3994
3995 2007-01-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3996
3997         * sdcc.dsw: Added some dependencies on project config.dsp
3998
3999 2007-01-05 Maarten Brock <sourceforge.brock AT dse.nl>
4000
4001         * as/link/mcs51/lkarea.c (lnkarea2, lnksect2): replaced [di]seg_ap->a_addr
4002           with [di]ram_start to fix a regresion
4003
4004 2007-01-03 Bernhard Held <bernhard AT bernhardheld.de>
4005
4006         * configure.in: added missing mcs51 in status output
4007         * Makefile.in: add support/regression to SDCC_EXTRA to distclean this
4008         directory
4009         * debugger/mcs51/clean.mk (distclean): remove config.h
4010         * src/clean.mk (clean): remove SDCCy.c, SDCCy.h, SDCClex.c
4011         * support/cpp2/Makefile.in (clean): remove s-options, optionlist,
4012         options.h, s-options-h and options.c
4013         * support/cpp2/clean.mk: unused, removed
4014         * Makefile.common.in,
4015         * main_in.mk,
4016         * as/Makefile.in,
4017         * as/hc08/Makefile.in,
4018         * as/hc08/clean.mk,
4019         * as/mcs51/Makefile.in,
4020         * as/mcs51/clean.mk,
4021         * as/z80/clean.mk,
4022         * as/z80/conf.mk,
4023         * as/z80/Makefile.in,
4024         * as/z80/clean.mk,
4025         * as/link/Makefile.in,
4026         * as/link/hc08/Makefile.in,
4027         * as/link/hc08/clean.mk,
4028         * as/link/mcs51/Makefile.in,
4029         * as/link/mcs51/clean.mk,
4030         * as/link/z80/Makefile.in,
4031         * as/link/z80/clean.mk,
4032         * as/link/z80/conf.mk,
4033         * debugger/mcs51/Makefile.in,
4034         * debugger/mcs51/clean.mk,
4035         * device/include/Makefile.in,
4036         * device/lib/Makefile.in,
4037         * device/lib/mcs51/Makefile.in,
4038         * device/lib/pic/Makefile.in,
4039         * device/lib/pic/Makefile.common.in,
4040         * device/lib/pic/Makefile.subdir,
4041         * device/lib/pic/Makefile.rules,
4042         * device/lib/pic16/libio/Makefile.in,
4043         * device/lib/pic16/Makefile.subdir,
4044         * device/lib/pic16/libdev/Makefile.in,
4045         * device/lib/pic16/Makefile.rules,
4046         * device/lib/pic16/Makefile.common.in,
4047         * sim/ucsim/avr.src/Makefile.in,
4048         * sim/ucsim/main_in.mk,
4049         * sim/ucsim/cmd.src/Makefile.in,
4050         * sim/ucsim/doc/Makefile.in,
4051         * sim/ucsim/gui.src/Makefile.in,
4052         * sim/ucsim/gui.src/obsolete/portmon.src/Makefile.in,
4053         * sim/ucsim/gui.src/serio.src/Makefile.in,
4054         * sim/ucsim/hc08.src/Makefile.in,
4055         * sim/ucsim/libltdl/Makefile.in,
4056         * sim/ucsim/s51.src/Makefile.in,
4057         * sim/ucsim/sim.src/Makefile.in,
4058         * sim/ucsim/sim.src/conf.mk,
4059         * sim/ucsim/xa.src/Makefile.in,
4060         * sim/ucsim/z80.src/Makefile.in,
4061         * src/Makefile.in,
4062         * src/clean.mk,
4063         * src/port.mk,
4064         * support/cpp2/Makefile.in,
4065         * support/librarian/Makefile.in,
4066         * support/librarian/clean.mk,
4067         * support/makebin/Makefile.in,
4068         * support/makebin/clean.mk,
4069         * support/packihx/Makefile.in,
4070         * support/regression/Makefile.in,
4071         * support/regression/ports/ds390/spec.mk,
4072         * support/regression/ports/gbz80/spec.mk,
4073         * support/regression/ports/hc08/spec.mk,
4074         * support/regression/ports/mcs51/spec.mk,
4075         * support/regression/ports/mcs51-large/spec.mk,
4076         * support/regression/ports/mcs51-medium/spec.mk,
4077         * support/regression/ports/mcs51-xstack-auto/spec.mk,
4078         * support/regression/ports/pic14/spec.mk,
4079         * support/regression/ports/pic16/spec.mk,
4080         * support/regression/ports/mcs51-stack-auto/spec.mk,
4081         * support/regression/ports/ucz80/spec.mk,
4082         * support/regression/ports/xa51/spec.mk,
4083         * support/regression/ports/z80/spec.mk: fixed for autoconf 2.6x by
4084         adding a slash after $(top_builddir) and/or adding @datarootdir@
4085         * configure.in,
4086         * debugger/mcs51/configure.in,
4087         * device/lib/pic/configure.in,
4088         * device/lib/pic16/configure.in,
4089         * sim/ucsim/configure.in,
4090         * support/cpp2/configure.in,
4091         * support/packihx/configure.in: changed AC_PREREQ to 2.60
4092         * configure,
4093         * debugger/mcs51/configure,
4094         * device/lib/pic/configure,
4095         * device/lib/pic16/configure,
4096         * sim/ucsim/configure,
4097         * support/cpp2/configure,
4098         * support/packihx/configure: generated with autoconf 2.60
4099
4100 2007-01-02 Maarten Brock <sourceforge.brock AT dse.nl>
4101
4102         * as/link/hc08/lkihx.c (newArea),
4103         * as/link/hc08/lkrloc.c: renamed newArea() to ihxNewArea()
4104
4105 2007-01-02 Borut Razem <borut.razem AT siol.net>
4106
4107         * doc/sdccman.lyx: documented #pragma sdcc_hash
4108         * support/cpp2/sdcpp.c: allow_naked_hash (value of #pragma sdcc_hash)
4109           initialized to 0
4110         * support/cpp2/c-ppoutput.c: fixed warning: no newline at end of file
4111
4112 2007-01-01 Bernhard Held <bernhard AT bernhardheld.de>
4113
4114         * src/SDCCast.c (createDo): backPatchLabels() needs falseLabel in
4115         empty 'while'-loop to work correctly, see regression test 'while.c'
4116         * support/regression/tests/while.c: added
4117
4118 2007-01-01 Borut Razem <borut.razem AT siol.net>
4119
4120         * support/cpp2/libcpp/directives.c, support/cpp2/libcpp/identifiers.c,
4121           support/cpp2/libcpp/init.c, support/cpp2/libcpp/sdcpp-opts.c,
4122           support/cpp2/libcpp/sdcpp.c:
4123           sdcpp specific pragma/directive/option handling moved to sdcpp.c
4124         * doc/sdccman.lyx: reference to the GCC 4.1.1 CPP Manual
4125         * support/cpp2/libcpp/mkdeps.c: synchronized with GCC CPP 4.1.1
4126
4127 2006-12-31 Borut Razem <borut.razem AT siol.net>
4128
4129         * SDCPP synchronized with GCC CPP release version 4.1.1,
4130           currently the latest release:
4131         * support/cpp2/libcpp, support/cpp2/libcpp/include,
4132           support/cpp2/libcpp/include/cpp-id-data.h
4133           support/cpp2/libiberty/fopen_unlocked.c
4134           support/cpp2/libiberty/md5.c
4135           support/cpp2/md5.h
4136           support/cpp2/opt-functions.awk
4137           support/cpp2/opt-gather.awk
4138           support/cpp2/optc-gen.awk
4139           support/cpp2/opth-gen.awk:
4140           added
4141         * support/cpp2/Makefile.in, support/cpp2/auto-host_vc_in.h,
4142           support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
4143           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
4144           support/cpp2/c-pretty-print.h, support/cpp2/cppdefault.c,
4145           support/cpp2/cppdefault.h, support/cpp2/diagnostic.c,
4146           support/cpp2/diagnostic.h, support/cpp2/except.h,
4147           support/cpp2/hwint.h, support/cpp2/input.h,
4148           support/cpp2/intl.h, support/cpp2/move-if-change,
4149           support/cpp2/opts.c, support/cpp2/opts.h,
4150           support/cpp2/output.h, support/cpp2/prefix.c,
4151           support/cpp2/prefix.h, support/cpp2/pretty-print.c,
4152           support/cpp2/pretty-print.h, support/cpp2/sdcpp-opts.c,
4153           support/cpp2/sdcpp.c, support/cpp2/sdcpp.dsp,
4154           support/cpp2/sdcpp.h, support/cpp2/sdcpp.opt,
4155           support/cpp2/sdcppa.dsp, support/cpp2/symcat.h,
4156           support/cpp2/version.c:
4157           modified
4158         * support/cpp2/libcpp/charset.c, support/cpp2/libcpp/directives.c,
4159           support/cpp2/libcpp/errors.c, support/cpp2/libcpp/expr.c,
4160           support/cpp2/libcpp/files.c, support/cpp2/libcpp/identifiers.c,
4161           support/cpp2/libcpp/include/cpplib.h, support/cpp2/libcpp/include/line-map.h,
4162           support/cpp2/libcpp/include/mkdeps.h, support/cpp2/libcpp/include/symtab.h,
4163           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
4164           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/line-map.c,
4165           support/cpp2/libcpp/macro.c, support/cpp2/libcpp/mkdeps.c,
4166           support/cpp2/libcpp/symtab.c, support/cpp2/libcpp/system.h,
4167           support/cpp2/libcpp/traditional.c, support/cpp2/libcpp/ucnid.h,
4168           support/cpp2/libiberty/hashtab.c, support/cpp2/libiberty/hashtab.h:
4169           moved
4170         * support/cpp2/cppcharset.c, support/cpp2/cpperror.c,
4171           support/cpp2/cppexp.c, support/cpp2/cppfiles.c,
4172           support/cpp2/cpphash.c, support/cpp2/cpphash.h,
4173           support/cpp2/cppinit.c, support/cpp2/cpplex.c,
4174           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
4175           support/cpp2/cppmacro.c, support/cpp2/cpptrad.c,
4176           support/cpp2/cppucnid.h, support/cpp2/hashtab.c,
4177           support/cpp2/hashtab.h, support/cpp2/hashtable.c,
4178           support/cpp2/hashtable.h, support/cpp2/line-map.c,
4179           support/cpp2/line-map.h, support/cpp2/mkdeps.c,
4180           support/cpp2/mkdeps.h, support/cpp2/options_vc_in.c,
4181           support/cpp2/options_vc_in.h, support/cpp2/opts.sh,
4182           support/cpp2/system.h:
4183           deleted / moved
4184
4185 2006-12-31 Borut Razem <borut.razem AT siol.net>
4186
4187         * configure.in, configure: fixed bug #1538756: configure dies if bison
4188           and flex are not installed, 2nd try
4189
4190 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
4191
4192         * src/mcs51/peeph.def: renamed rule 400 to 500, moved rule 253.x to
4193         400.x for better code in RFE 899102
4194
4195 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
4196
4197         * src/SDCCpeeph.c (deadMove),
4198         * src/port.h,
4199         * src/mcs51/peep.h: renamed 'op' by 'reg'
4200         * src/mcs51/peep.c (isFunc, isCallerSaveFunc): added,
4201         (scan4op): small change for removeDeadMove(), added support for
4202         'callee saves' and/or PACLL function calls,
4203         (removeDeadMove): added, removes superflous 'mov r%1,%2',
4204         (removeDeadPopPush): renamed from mcs51DeadMove(), common parts
4205         left in new dispatcher mcs51DeadMove()
4206         (mcs51DeadMove): dispatcher for removeDeadPopPush() and new
4207         removeDeadMove()
4208         * src/mcs51/peeph.def: added rule 301 removing superflous 'mov r%1,%2'
4209
4210 2006-12-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4211
4212         * support/cpp2/options_vc_in.h, support/cpp2/options_vc_in.c,
4213           support/cpp2/sdcppa.dsp: create 'options.h' and 'options.c' under MSVC.
4214
4215 2006-12-30 Borut Razem <borut.razem AT siol.net>
4216
4217         * support/cpp2/spacs.h: deleted from svn
4218         * configure.in, configure: fixed bug #1538756: configure dies if bison
4219           and flex are not installed
4220
4221 2006-12-29 Maarten Brock <sourceforge.brock AT dse.nl>
4222
4223         * src/z80/gen.c (assignResultValue): fixed bug when registers overlap,
4224           with this z80 passes printf float test when enabled
4225         * support/regression/tests/bug1057979.c: typo disabled ds390 float test
4226
4227 2006-12-28 Borut Razem <borut.razem AT siol.net>
4228
4229         * support/cpp2/config.in, support/cpp2/configure.in,
4230           support/cpp2/configure, support/cpp2/Makefile.in:
4231           fix for the solaris build
4232
4233 2006-12-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4234
4235         * src/SDCC.y (type_specifier2, pointer),
4236         * src/SDCCsymt.h,
4237         * src/SDCCsymt.c (mergeSpec, checkSClass),
4238         * support/Util/SDCCerr.c,
4239         * support/Util/SDCCerr.h: Parse and validate the restrict keyword
4240         * support/valdiag/valdiag.py: Allow test cases to specify
4241           required language standard
4242         * support/valdiag/tests/restrict.c: New file to test restrict keyword
4243         * support/valdiag/tests/tentdecl.c: Supress empty source file error
4244
4245 2006-12-27 Borut Razem <borut.razem AT siol.net>
4246
4247         * support/cpp2/cppmain.c, support/cpp2/mbchar.[ch]: removed
4248         * support/cpp2/libiberty/Makefile.in, support/cpp2/libiberty/sdcpp.dsp:
4249           mbchar removed
4250         * support/cpp2/libiberty/getpwd.c, support/cpp2/sdcpp.h:
4251           fixed for borland C
4252         * support/cpp2/libiberty/Makefile.bcc: updated
4253         * src/pic16/main.c: fixed #pragma udata handling
4254         * src/mcs51/mcs51.dsp: added peep.[ch] to the project
4255
4256 2006-12-26 Bernhard Held <bernhard AT bernhardheld.de>
4257
4258         * src/SDCCpeeph.c: made labelHashEntry global,
4259         made pcDistance, FBYNAME static,
4260         (pcDistance): made static, use isComment and isLabel,
4261         (deadMove): added,
4262         (getLabelRef): added, extracted from labelRefCount(),
4263         (labelRefCount): use new getLabelRef(),
4264         (callFuncByName): made static, added deadMove,
4265         use isComment and isLabel,
4266         (newPeepRule): made static, set isLabel,
4267         (isLabelDefinition): added parameter isPeepRule to allow '%' in
4268         labels from peephole rules,
4269         (buildLabelRefCountHash): speed up by running isLabelDefinition() only
4270         when isComment or isLabel is set
4271         * src/SDCCpeeph.h: added "isLabel" and "visited" to struct lineNode,
4272         added labelHashEntry, isLabelDefinition, labelHash and getLabelRef
4273         to make them global
4274         * src/mcs51/peep.h: added
4275         * src/mcs51/peep.c: added, implements mcs51DeadMove()
4276         * src/port.h: added peep->deadMove to port structure
4277         * src/mcs51/main.c: initialize peep->deadMove with mcs51DeadMove
4278         * src/mcs51/peeph.def: renumbered rule 300 to 400, added new rule 300
4279         deadMove, finally removed no. 1 and 2
4280         * src/mcs51/gen.c,
4281         * src/pic/gen.c,
4282         * src/z80/gen.c,
4283         * src/z80/ralloc.c,
4284         * src/pic16/gen.c,
4285         * src/ds390/gen.c,
4286         * src/hc08/gen.c: mark lines with isComment or isLabel
4287         * sim/ucsim/s51.src/uc390hw.cc: don't waist 65535 ticks before CKRDY
4288         * .version,
4289         * sdcc.spec: bumped version to 2.6.3
4290
4291 2006-12-26 Borut Razem <borut.razem AT siol.net>
4292
4293         * support/cpp2/Makefile.in: added dependency on options.h
4294         * configure: regenerated
4295         * support/cpp2/sdcpp.opt, support/cpp2/move-if-change: svn:eol-style native
4296         * support/cpp2/Makefile.in: added vasprintf.c
4297
4298 2006-12-25 Borut Razem <borut.razem AT siol.net>
4299
4300         * SDCPP synchronized with GCC CPP release version 3.4.6,
4301           the latest release before 4.x:
4302         * support/cpp2/Makefile.in, support/cpp2/config.h,
4303           support/cpp2/configure, support/cpp2/configure.in,
4304           support/cpp2/cppdefault.c, support/cpp2/cppdefault.h,
4305           support/cpp2/cpperror.c, support/cpp2/cppexp.c,
4306           support/cpp2/cppfiles.c, support/cpp2/cpphash.c,
4307           support/cpp2/cpphash.h, support/cpp2/cppinit.c,
4308           support/cpp2/cpplex.c, support/cpp2/cpplib.c,
4309           support/cpp2/cpplib.h, support/cpp2/cppmacro.c,
4310           support/cpp2/cpptrad.c, support/cpp2/except.h,
4311           support/cpp2/hashtable.c, support/cpp2/hashtable.h,
4312           support/cpp2/hwint.h, support/cpp2/intl.h,
4313           support/cpp2/line-map.c, support/cpp2/line-map.h,
4314           support/cpp2/mkdeps.c, support/cpp2/mkdeps.h,
4315           support/cpp2/output.h, support/cpp2/prefix.c,
4316           support/cpp2/prefix.h, support/cpp2/sdcpp.dsp,
4317           support/cpp2/system.h, support/cpp2/version.c:
4318           modified
4319         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
4320           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
4321           support/cpp2/c-pretty-print.h, support/cpp2/cppcharset.c,
4322           support/cpp2/cppucnid.h, support/cpp2/diagnostic.c,
4323           support/cpp2/diagnostic.def, support/cpp2/diagnostic.h,
4324           support/cpp2/hashtab.c, support/cpp2/hashtab.h,
4325           support/cpp2/input.h, support/cpp2/libiberty/getpwd.c,
4326           support/cpp2/libiberty/vasprintf.c, support/cpp2/libiberty/xmemdup.c,
4327           support/cpp2/move-if-change, support/cpp2/opts.c,
4328           support/cpp2/opts.h, support/cpp2/opts.sh,
4329           support/cpp2/pretty-print.c, support/cpp2/pretty-print.h,
4330           support/cpp2/sdcpp.opt, support/cpp2/sdcpp-opts.c,
4331           support/cpp2/win32, support/cpp2/win32/dirent.c,
4332           support/cpp2/win32/dirent.h:
4333           added
4334         * support/cpp2/sdcpp.c: renamed from sdcppmain.c
4335         * support/cpp2/sdcpp.h: renamed from sdcc.h
4336         * sdcppinit.c: deleted
4337
4338 2006-12-23 Borut Razem <borut.razem AT siol.net>
4339
4340         * support/cpp2/cpphash.h, support/cpp2/cpplex.c,
4341           support/cpp2/cpplib.[ch], support/cpp2/sdcppinit.c, doc/sdccman.lyx,
4342           preproc.c: an other try to fix bug #982435: introduced
4343           -pedantic-parse-number command line option and pedantic_parse_number
4344           pragma
4345
4346 2006-12-21 Maarten Brock <sourceforge.brock AT dse.nl>
4347
4348         * as/link/mcs51/lkarea.c (lnkarea2): handle absolute areas, restructured
4349            BSEG handling,
4350           (lnksect2): use --data-loc and --idata-loc as lower bound for ramstart,
4351            corrected overlayed areax addresses, warn about memory overlaps
4352         * as/mcs51/asmain.c (asmbl): create a new area for every .org directive
4353         * src/avr/main.c,
4354         * src/ds390/main.c,
4355         * src/hc08/main.c,
4356         * src/mcs51/main.c,
4357         * src/pic16/main.c,
4358         * src/pic/main.c,
4359         * src/xa51/main.c,
4360         * src/z80/main.c,
4361         * src/port.h: added xabs_name and iabs_name
4362         * src/SDCCglue.c (emitRegularMap): allocate for absolutes with initializer
4363           (glue, emitMaps): create and emit maps d_abs and i_abs
4364         * src/SDCCglue.h: cosmetic changes
4365         * src/SDCCmain.c (setDefaultOptions): idata can start below 0x80
4366         * src/SDCCmem.h,
4367         * src/SDCCmem.c (initMem): added x_abs, i_abs and d_abs
4368           (allocDefault): put absolute, initialized globals in them
4369         * support/regression/tests/absolute.c: added absolute bdata test
4370         * device/lib/printf_large.c (output_float): moved fpBuffer to stack/xdata
4371
4372 2006-12-20 Borut Razem <borut.razem AT siol.net>
4373
4374         * support/cpp2/cpphash.h, support/cpp2/cpplex.c: fixed bug #982435
4375         * support/regression/tests/preproc.c: renamed from bug-1351710.c,
4376           added regression test for bug #982435
4377
4378 2006-12-18 Borut Razem <borut.razem AT siol.net>
4379
4380         * src/SDCCutil.c: fixed a bug in (get_pragma_token)
4381         * src/pic16/main.c, src/SDCC.lex, src/z80/main.c:
4382           small cosmetic changes
4383         * src/SDCC.lex: (stringLiteral) fixed bug #1351710
4384         * support/regression/tests/bug-1351710.c: added regression test
4385
4386 2006-12-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4387
4388         * doc/sdccman.lyx: added the long missed iCode table
4389           "<where is figure II?>", added links to wiki
4390
4391 2006-12-17 Borut Razem <borut.razem AT siol.net>
4392
4393         * doc/sdccman.lyx, src/pic16/main.c, src/pic/main.c, src/port.h,
4394           src/SDCC.lex, src/SDCCutil.[ch], src/z80/main.c,
4395           support/Util/SDCCerr.[ch]: removed deprecated pragmas,
4396           unified table driven pragma handling, pragma argument type checking
4397         * support/Util/dbuf.c: (dbuf_set_size) allow to set size equal to the
4398           current one - version 1.1.3
4399         * src/SDCCmain.c: (setParseWithComma) substituted brain damaged strtok
4400
4401 2006-12-13 Raphael Neider <rneider AT web.de>
4402
4403         * src/pic/device.h: removed AssignedMemory structure and macros
4404         * src/pic/device.c: removed global finalMapping (linker assigns
4405             memory locations),
4406           (register_map): add SFRs to remembered memRanges
4407           (addMemRange,isSFR,dump_map,dump_sfr,mapRegister,assignRegister,
4408           assignFixedRegisters,assignRelocatableRegisters): removed,
4409           (setMaxRAM,validAddress): adapted accordingly,
4410           (pic14_hasSharebank,pic14_getSharedStack): only report and use
4411             reasonably sized sharebanks,
4412         * src/pic/ralloc.c (writeUsedRegs): stripped down (remove?),
4413           (allDefsOutOfRange): removed unused code,
4414         * src/pic/main.c (_process_pragma): removed memmap/maxram pragma
4415             handling
4416         * src/pic/pcode.c (register_reassign): removed recursion warning,
4417             fired far too often,
4418         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap): modified
4419             to use existing pic14_stringInSet() to avoid duplicate symbols,
4420             tidied up the code a bit,
4421           (pic14printLocals): added in symmetry to printExterns, replaces
4422             writeUsedRegs more or less,
4423           (picglue): call new pic14_printLocals(),
4424         * device/include/pic/pic*.h: removed #pragma memmap directives,
4425             information gathered from include/pic/pic14devices.txt
4426         * support/scripts/inc2h.pl: do not emit #pragma memmap lines
4427
4428 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
4429
4430         * device/include/mcs51/C8051F520.h: fixed buggy CPT0MX
4431
4432 2006-12-11 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4433
4434         * device/include/mcs51/cc2430.h: fixed missing ';'
4435
4436 2006-12-10 Raphael Neider <rneider AT web.de>
4437
4438         * device/lib/pic16/libc/stdio/vfprintf.c,
4439         * device/lib/pic16/libc/stdio/printf_small.c,
4440         * device/lib/pic16/libc/stdio/printf_timy.c: pop int from stack for
4441           char arguments, as char varargs are cast to int by the caller,
4442           hopefully fixes #1604915 (other device libraries are still affected)
4443
4444 2006-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4445
4446         * src/mcs51/ralloc.c (packRegsForAssign),
4447         * src/hc08/ralloc.c (packRegsForAssign): fixed bug #1605880
4448
4449 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
4450
4451         * device/include/malloc.h: removed init_dynamic_memory
4452         * device/lib/malloc.c: made init_dynamic_memory static and automatically
4453           call it once from malloc. Also use _sdcc_heap[] from _heap.c
4454         * device/lib/_heap.c: new, added, contains _sdcc_heap[]
4455         * device/lib/libsdcc.lib,
4456         * device/lib/Makefile.in,
4457         * support/regression/ports/mcs51-xstack-auto/spec.mk: added _heap.c
4458         * doc/sdccman.lyx: documented use of new _heap.c
4459         * support/regression/tests/malloc.c: removed init_dynamic_memory
4460         * src/cdbFile.c(spacesToUnderscores): new function,
4461           (cdbWriteEndFunction, cdbWriteCLine): use spacesToUnderscores, fixes bug
4462           1068030
4463         * device/include/tinibios.h: removed defines for putchar and getchar
4464         * device/lib/ds390/Makefile.in: added putchar.c
4465         * device/lib/ds390/putchar.c: new, added, fixes bug 1465671
4466
4467 2006-12-09 Borut Razem <borut.razem AT siol.net>
4468
4469         * support/cpp2/sdcc.h: prevent multiple inclusion
4470         * support/cpp2/options.h: deleted
4471
4472 2006-12-08 Borut Razem <borut.razem AT siol.net>
4473
4474         * support/cpp2/sdcc.h: removed x*alloc() macros
4475         * support/cpp2/libiberty.h: uncommented out x*alloc() declarations
4476         * support/cpp2/Makefile.bcc, support/cpp2/Makefile.in,
4477           support/cpp2/sdcpp.sdc: x*alloc files added to the project
4478         * support/cpp2/system.h: moved #include "sdcc.h"
4479         * support/cpp2/libiberty/xexit.c, support/cpp2/libiberty/xmalloc.c,
4480           support/cpp2/libiberty/xstrdup.c, support/cpp2/libiberty/xstrerror.c:
4481           added
4482         * support/cpp2/sdcppinit.c: added -isysroot, -fsigned-char,
4483           -funsigned-char options
4484         * support/cpp2/sdcppmain.c: fixed bug 1611411
4485
4486 2006-12-07 Borut Razem <borut.razem AT siol.net>
4487
4488         * support/cpp2/cpplib.c: reverted sdcpp special handling of _Pragma()
4489           directive
4490
4491 2006-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
4492
4493         * src/SDCCsymt.c (addDecl): fixed bug 1609244
4494         * src/SDCCmain.c (linkEdit): fixed bug 1609279
4495         * doc/sdccman.lyx,
4496         * .version: bumped to 2.6.2 because a) it's been a while
4497           b) the linker sources have moved c) the preprocessor is upgraded
4498
4499 2006-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4500
4501         * support/regression/tests/snprintf.c: some checks
4502         * lib/src/printf_large.c: %bc: read char instead of int from stack
4503
4504 2006-12-03 Maarten Brock <sourceforge.brock AT dse.nl>
4505
4506         * device/include/mcs51/cc2430.h: inserted _XPAGE
4507
4508 2006-12-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4509
4510         * device/include/mcs51/cc2430.h: added
4511
4512 2006-12-02 Maarten Brock <sourceforge.brock AT dse.nl>
4513
4514         * device/include/asm/default/features.h,
4515         * device/include/asm/ds390/features.h,
4516         * device/include/mcs51/at89s53.h,
4517         * device/include/ser.h,
4518         * device/include/ser_ir.h,
4519         * device/include/serial.h: changed keywords to double underscore variants,
4520           fixes bug 1590261 some more, thanks Steven Borley
4521
4522 2006-12-01 Raphael Neider <rneider AT web.de>
4523
4524         * src/pic/pcode.c (register_reassign): do not crash on recursive code
4525           but emit warning (recursion is not supported for pic14)
4526
4527 2006-11-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4528
4529         * src/mcs51/peeph.def: added 101.a,b (moves to int/long xdata)
4530         * doc/sdccman.lyx: various small changes, acknowledged Sourceforge
4531
4532 2006-11-30 Raphael Neider <rneider AT web.de>
4533
4534         * src/pic/device.c (dump_sfr): always emit symbols
4535         * src/pic/glue.c (pic14printPublics): fixed typo
4536
4537 2006-11-30 Raphael Neider <rneider AT web.de>
4538
4539         * src/pic/device.c (create_pic,ram_map): add memRange entries to PIC
4540           (pic14_getSharebankSize, pic14_getSharebankAddress): replaced with
4541           (pic14_hasSharebank,pic14_isShared,pic14_allRAMShared,
4542            pic14_getSharedStack): NEW, evaluate the memRange entries to locate
4543            a sharebank, use a non-shared bank for the stack if none available
4544         * src/pic/device.h (struct memRange): added linked list next field,
4545           added prototypes for above functions
4546         * src/pic/ralloc.c (initStack): handle shared and banked stacks,
4547           (typeRegWithIdx): accept fixed and unfixed stack registers
4548         * src/pic/pcode.c (pCodeInitRegisters): use new functions to create
4549           the stack, handle shared and banked stack (except for WSAVE),
4550           (insertBankSel): removed useless optimization (will never fire),
4551           (FixRegisterBanking): added optimization for devices with only one
4552           possibly aliased bank of memory, like 16f84
4553         * src/pic/glue.c (pic14_constructAbsMap): back to udata_ovr, as some
4554           devices have no SHAREBANK in the linker script
4555         * device/include/pic/pic14devices.txt: documented memmap
4556         * device/lib/pic/libdev/Makefile.in: removed --stack-loc again
4557
4558 2006-11-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4559
4560         * src/hc08/gen.c (transferRegReg, loadRegFromAop, forceStackedAop,
4561           storeRegToAop, freeAsmop, genPlusIncr, genPlus, genPointerGetSetOfs,
4562           genAnd, genOr, genXor, genLeftShiftLiteral, genRightShiftLiteral,
4563           genhc08Code): switched most of the D (debug) macros to DD (detailed
4564           debug) macros to better control clutter in the generated .asm file.
4565         * src/hc08/gen.c: (forceStackedAop, genUminus, genLeftShift,
4566           genRightShift): fixed bug with non-constant bit shift stored to
4567           a volatile result (SF Open Discussion forum thread #1616749).
4568           Single byte case is not yet optimized.
4569
4570 2006-11-28 Maarten Brock <sourceforge.brock AT dse.nl>
4571
4572         * device/include/asm/mcs51/features.h,
4573         * device/include/malloc.h,
4574         * device/include/stdio.h: changed keywords to double underscore variants,
4575           fixes bug 1590261
4576
4577 2006-11-27 Borut Razem <borut.razem AT siol.net>
4578
4579         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
4580           support/cpp2/Makefile.in, support/cpp2/cppfiles.c,
4581           support/cpp2/output.h, support/cpp2/cppinit.c,
4582           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
4583           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
4584           support/cpp2/cppdefault.c, support/cpp2/system.h,
4585           support/cpp2/cpphash.h, support/cpp2/cpplex.c,
4586           support/cpp2/cppdefault.h, support/cpp2/mbchar.c,
4587           support/cpp2/prefix.c, support/cpp2/except.h,
4588           support/cpp2/hwint.h, support/cpp2/cppmacro.c,
4589           support/cpp2/line-map.h, support/cpp2/sdcpp.dsp,
4590           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
4591           support/cpp2/version.c, support/cpp2/cppmain.c,
4592           support/cpp2/version.h, support/cpp2/hashtable.c,
4593           support/cpp2/cpperror.c:
4594           synchronized with GCC CPP release version 3.3.6,
4595           the latest where cppmain.c still exists.
4596         * support/cpp2/cpptrad.c, support/cpp2/sdcppmain.c,
4597           support/cpp2/sdcppinit.c: added
4598
4599 2006-11-27 Borut Razem <borut.razem AT siol.net>
4600
4601         * support/cpp2/cpplex.c:
4602           fixed _asm ... _endasm handling bug, introduce with GCC CPP
4603           synchronization
4604         * support/cpp2/cpplib.c: removed definitions of unused variables
4605
4606 2006-11-26 Borut Razem <borut.razem AT siol.net>
4607
4608         * support/cpp2/libiberty.h: commented out x*alloc() declarations
4609           since they are redefined by macros in support/cpp2/sdcc.h
4610         * support/cpp2/sdcc.h: x*alloc macro redefinition
4611
4612 2006-11-25 Borut Razem <borut.razem AT siol.net>
4613
4614         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
4615           support/cpp2/configure, support/cpp2/Makefile.in,
4616           support/cpp2/cppfiles.c, support/cpp2/output.h,
4617           support/cpp2/cppinit.c, support/cpp2/cpplib.c,
4618           support/cpp2/config.h, support/cpp2/cpplib.h,
4619           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
4620           support/cpp2/cppdefault.c, support/cpp2/config.in,
4621           support/cpp2/system.h, support/cpp2/cpplex.c,
4622           support/cpp2/cpphash.h, support/cpp2/mbchar.c,
4623           support/cpp2/cppdefault.h, support/cpp2/prefix.c
4624           support/cpp2/hwint.h, support/cpp2/mbchar.h,
4625           support/cpp2/prefix.h, support/cpp2/cppmacro.c,
4626           support/cpp2/configure.in, support/cpp2/intl.h,
4627           support/cpp2/sdcpp.dsp, support/cpp2/acconfig.h,
4628           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
4629           support/cpp2/version.c, support/cpp2/cppmain.c,
4630           support/cpp2/ansidecl.h, support/cpp2/libiberty.h,
4631           support/cpp2/hashtable.c, support/cpp2/aclocal.m4,
4632           support/cpp2/cpperror.c,
4633           support/cpp2/libiberty/safe-ctype.c,
4634           support/cpp2/libiberty/safe-ctype.h,
4635           support/cpp2/libiberty/splay-tree.c,
4636           support/cpp2/libiberty/obstack.c,
4637           support/cpp2/libiberty/lbasename.c,
4638           support/cpp2/libiberty/splay-tree.h,
4639           support/cpp2/libiberty/obstack.h:
4640           synchronized with GCC CPP release version 3.2.3,
4641           the latest before integration of cpp into gcc
4642         * support/cpp2/except.h, support/cpp2/line-map.c,
4643           support/cpp2/line-map.h,
4644           support/cpp2/libiberty/hex.c,
4645           support/cpp2/libiberty/concat.c,
4646           support/cpp2/libiberty/filenames.h: added
4647         * support/cpp2/intl.c: deleted
4648
4649 2006-11-24 Borut Razem <borut.razem AT siol.net>
4650
4651         * src/SDCC.y: enabled compilation of empty source file
4652         * support/Util/SDCCerr.[ch]: added sdcc warning 190 -
4653           "ISO C forbids an empty source file"
4654         * device/lib/_startup.c, device/lib/printf_tiny.c: disable warning 190
4655           if all the code is ifdefed out.
4656
4657 2006-11-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4658
4659         * src/hc08/gen.c (genPcall): fix for bug #1601032
4660
4661 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
4662
4663         * device/include/mcs51/c8051f000.h, device/include/mcs51/C8051F000.h,
4664         * device/include/mcs51/c8051f018.h, device/include/mcs51/C8051F018.h,
4665         * device/include/mcs51/c8051f020.h, device/include/mcs51/C8051F020.h,
4666         * device/include/mcs51/c8051f040.h, device/include/mcs51/C8051F040.h,
4667         * device/include/mcs51/c8051f060.h, device/include/mcs51/C8051F060.h,
4668         * device/include/mcs51/c8051f120.h, device/include/mcs51/C8051F120.h,
4669         * device/include/mcs51/c8051f200.h, device/include/mcs51/C8051F200.h,
4670         * device/include/mcs51/c8051f300.h, device/include/mcs51/C8051F300.h,
4671         * device/include/mcs51/c8051f310.h, device/include/mcs51/C8051F310.h,
4672         * device/include/mcs51/c8051f320.h, device/include/mcs51/C8051F320.h,
4673         * device/include/mcs51/c8051f326.h, device/include/mcs51/C8051F326.h,
4674         * device/include/mcs51/c8051f330.h, device/include/mcs51/C8051F330.h,
4675         * device/include/mcs51/c8051f340.h, device/include/mcs51/C8051F340.h,
4676         * device/include/mcs51/c8051f350.h, device/include/mcs51/C8051F350.h,
4677         * device/include/mcs51/c8051f410.h, device/include/mcs51/C8051F410.h:
4678           Renamed to all upper case as per the standard set by SiLabs
4679
4680 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
4681
4682         * device/include/mcs51/C8051F520.h: new, added
4683         * device/include/mcs51/compiler.h: added link about predefined macros
4684
4685 2006-11-23 Raphael Neider <rneider AT web.de>
4686
4687         * src/regression/Makefile: add -L path to fresh library
4688         * src/regression/simulate: emphasize FAILED output
4689         * src/regression/create_stc: output _failures from gpsim
4690         * src/regression/compare4.c,
4691         * src/regression/rotate6.c: fixed char literals,
4692           all compile, all run =8-D
4693
4694         * src/pic/pcode.h: added isPCASMDIR macro
4695         * src/pic/gen.c (genAnd): fixed bit offset
4696         * src/pic/ralloc.c (allocNewDirReg,allocDirReg,allocRegByName,
4697           packBits): unified register numbering schemes,
4698           (newReg): do not insert stack registers into hash table,
4699           (initStack): unpinned pseudo stack, simplified,
4700           (typeRegWithIdx): fixed retrieval of stack registers,
4701         * src/pic/pcode.c (addpCodeComment,sameBank): added,
4702           (pCodeReplace): removed invalid assertion,
4703           (insertPCodeInstruction): fixed newly added labels,
4704           (insertBankSwitch,BankSelect,IsBankChange,DoBankSelect,
4705           FixRegisterBankingInFlow,compareBankFlow,FixBankFlow,
4706           DumpFlow): removed unsed (broken?) code,
4707           (insertBankSel): prevent STATUS from being BANKSELed,
4708           (FixRegisterBanking): rewritten from scratch, implemented generic
4709             optimizations (suppress BANKSELs to same register and to registers
4710             present in all banks),
4711           (AnalyzeBanking): update flow after BANKSELection
4712
4713         * src/pic/glue.c (pic14_constructAbsMap): emit pseudo stack in
4714             sharebank, let linker place it, mark STKxx symbols as emitted
4715
4716 2006-11-21 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4717
4718         * src/regression/arrays.c,
4719         * src/regression/bank1.c,
4720         * src/regression/bool2.c,
4721         * src/regression/compare7.c,
4722         * src/regression/compare8.c,
4723         * src/regression/compare9.c,
4724         * src/regression/compare10.c,
4725         * src/regression/configword.c,
4726         * src/regression/for.c,
4727         * src/regression/mult1.c,
4728         * src/regression/pointer1.c,
4729         * src/regression/rotate6.c,
4730         * src/regression/string1.c,
4731         * src/regression/struct1.c,
4732         * src/regression/Makefile: make PIC14 regression tests run again
4733           (3 fail, 6 won't compile)
4734
4735 2006-11-21 Raphael Neider <rneider AT web.de>
4736
4737         * device/include/pic16/pic18f4550.h,
4738         * device/include/pic16/pic18f4455.h,
4739         * device/lib/pic16/libdev/pic18f4550.c,
4740         * device/lib/pic16/libdev/pic18f4455.c: fixed #1578591 and #1595144
4741         * configure.in: removed superfluous closing bracket
4742
4743 2006-11-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4744
4745         * device/lib/expf.c: Fixed bug 1599523: result of expf(x) is
4746           always positive.
4747
4748 2006-11-21 Raphael Neider <rneider AT web.de>
4749
4750         * src/pic/device.{c,h}: added pic14_getPIC()
4751         * src/pic/gen.c (continueIfTrue,jumpIfTrue): added PIC code,
4752           (genAnd): added PIC code for one case, fixes #1597044
4753         * src/pic/pcode.c (BankSelect): Ohoh, added generic optimization for
4754           SFRs that are present in all banks (e.g., STATUS)
4755
4756 2006-11-20 Raphael Neider <rneider AT web.de>
4757
4758         * src/pic/pcode.c: changed inverted ops for DECFSZ/DECFSZW and
4759           INCFSZ/INCFSZW and declared them as changing Z bit,
4760           (insertPCodeInstruction): correctly invert the above instructions,
4761           fixes #1599333,
4762           (DoBankSelect): don't panic on po_immediates
4763
4764 2006-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
4765
4766         * as/link/aslink.h,
4767         * as/link/mcs51/lkihx.c (newArea),
4768         * as/link/mcs51/lkrloc.c: renamed newArea() to ihxNewArea()
4769         * as/link/mcs51/lkihx.c (ihx): output reset vector as start address
4770
4771 2006-11-11 Raphael Neider <rneider AT web.de>
4772
4773         * src/pic/pcode.c (newpCodeOpBit): search SymbolTab for referenced
4774           bitfield symbols, fixes #1579535 (once more...).
4775
4776 2006-11-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4777
4778         * support/regression/generate-cases.py,
4779         * support/regression/fwk/include/testfwk.h,
4780         * support/regression/fwk/lib/testfwk.c: used code pointers,
4781           (about 50kByte less code generated for mcs51)
4782
4783 2006-11-06 Borut Razem <borut.razem AT siol.net>
4784
4785         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
4786           debugger/mcs51/configure: fixed failed check because the function
4787           rl_function_of_keyseq isn't in Readline 5.2. Thanks to Ilya Goldberg
4788           who submitted the patch for gpsim.
4789         * debugger/mcs51/configure.in: removed the result message
4790         * debugger/mcs51/Makefile.in: fixed the config.status warning
4791           "... seems to ignore the --datarootdir setting"
4792
4793 2006-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
4794
4795         * device/include/mcs51/c8051f020.h,
4796         * device/include/mcs51/c8051f040.h,
4797         * device/include/mcs51/c8051f060.h,
4798         * device/include/mcs51/c8051f120.h: added PS0, fixed bug 1589279
4799         * src/z80/gen.c (gencjneshort),
4800         * src/z80/peeph.def: applied patch 1571373, thanks Philipp Krause
4801
4802 2006-10-31 Borut Razem <borut.razem AT siol.net>
4803
4804         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
4805           debugger/mcs51/configure: get readline version
4806
4807 2006-10-30 Borut Razem <borut.razem AT siol.net>
4808
4809         * debugger/mcs51/sdcdb.c: replaced hardcoded "/" with DIR_SEPARATOR_STRING
4810         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
4811           debugger/mcs51/configure: locate readline even when cross compiling
4812         * support/scripts/sdcc.nsi: include readline5.dll into the setup package
4813
4814 2006-10-29 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4815
4816         * device/include/mcs51/serial_IO.h: putchar() and getchar() using
4817           serial port.
4818
4819 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
4820
4821         * device/include/malloc.h,
4822         * device/lib/calloc.c,
4823         * device/lib/free.c,
4824         * device/lib/malloc.c,
4825         * device/lib/realloc.c: moved definition of struct into sources
4826         * support/regression/tests/malloc.c: use void* for init_dynamic_memory()
4827
4828 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
4829
4830         * as/asx8051.dsp: corrected output directories
4831         * as/link/hc08: new directory for hc08 linker
4832         * as/hc08/aslink.h,             as/link/aslink.h,
4833         * as/hc08/aslink.mak,           as/link/hc08/aslink.mak,
4834         * as/hc08/clean.mk,             as/link/hc08/clean.mk,
4835         * as/hc08/link_hc08.dsp,        as/link/hc08/link_hc08.dsp,
4836         * as/hc08/lkaomf51.c,           as/link/hc08/lkaomf51.c,
4837         * as/hc08/lkarea.c,             as/link/hc08/lkarea.c,
4838         * as/hc08/lkdata.c,             as/link/hc08/lkdata.c,
4839         * as/hc08/lkelf.c,              as/link/hc08/lkelf.c,
4840         * as/hc08/lkihx.c,              as/link/hc08/lkihx.c,
4841         * as/hc08/lklibr.c,             as/link/hc08/lklibr.c,
4842         * as/hc08/lkmain.c,             as/link/hc08/lkmain.c,
4843         * as/hc08/lkmem.c,              as/link/hc08/lkmem.c,
4844         * as/hc08/lkrloc.c,             as/link/hc08/lkrloc.c,
4845         * as/hc08/lks19.c,              as/link/hc08/lks19.c,
4846         * as/hc08/Makefile.aslink,      as/link/hc08/Makefile.aslink,
4847         * as/hc08/Makefile.bcc,         as/link/hc08/Makefile.bcc,
4848         * as/hc08/Makefile.in,          as/link/hc08/Makefile.in,
4849         * as/link/hc08/conf.mk,
4850         * configure,
4851         * configure.in,
4852         * Makefile.in,
4853         * sdcc.dsw: moved hc08 linker to as/link/hc08
4854         * as/hc08/lkeval.c,     as/link/mcs51/lkeval.c,     as/link/lkeval.c,
4855         * as/hc08/lkhead.c,     as/link/mcs51/lkhead.c,     as/link/lkhead.c,
4856         * as/hc08/lklex.c,      as/link/mcs51/lklex.c,      as/link/lklex.c,
4857         * as/hc08/lklist.c,     as/link/mcs51/lklist.c,     as/link/lklist.c,
4858         * as/hc08/lknoice.c,    as/link/mcs51/lknoice.c,    as/link/lknoice.c,
4859         * as/hc08/lksym.c,      as/link/mcs51/lksym.c,      as/link/lksym.c,
4860         * as/link/mcs51/aslink.dsp,
4861         * as/link/mcs51/Makefile.in: factored out the common files
4862         * as/hc08/lkstore.c: deleted, use the one already in as/link/
4863         * as/clean.mk: extra cleaning common files
4864         * as/link/mcs51/strcmpi.c,      as/strcmpi.c: moved
4865         * as/link/mcs51/strcmpi.h: deleted, moved protoype to aslink.h
4866         * as/mcs51/asm.h: include sdccconf.h or sdcc_vc.h
4867
4868 2006-10-29 Raphael Neider <rneider AT web.de>
4869
4870         * src/pic/ralloc.c (newReg): create aliases for registers with
4871           multiple names to fix #1579535 and #1584001,
4872           (regWithIdx,dirregWithName): resolve aliases on lookup
4873         * src/pic/pcode.c (DoBankSelect): die with error message on failing
4874           bankselect
4875         * device/lib/pic/libdev/Makefile.in: move pseudo stack down to 0x4f
4876           to prevent build errors on small devices
4877
4878 2006-10-28 Raphael Neider <rneider AT web.de>
4879
4880         * src/pic/gen.c (genFunction,genCall): drop "same code page"
4881           assumption within interrupt handlers, fixes #1584940
4882         * src/pic/glue.c (pic14_constructAbsMap): mark absolute symbols as
4883           "emitted" to avoid emitting them again in udata
4884
4885 2006-10-27 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4886
4887         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
4888         Removed.
4889
4890 2006-10-26 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4891
4892         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
4893         Initialize uart only if SM0 and SM1 are zero.  Also, use flag to turn
4894         on/off CR to CRLF conversion.
4895
4896 2006-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4897
4898         * doc/sdccman.lyx: updated IRQ section
4899
4900 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4901
4902         * device/lib/serial_io.c: removed
4903         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c
4904         replacements for serial_io.c
4905
4906 2006-10-24 Maarten Brock <sourceforge.brock AT dse.nl>
4907
4908         * src/z80/main.c (_process_pragma, _parseOptions): fixed bug 1583318
4909
4910 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4911
4912         * device/lib/serial_io.c: Default putchar() and getchar() for
4913           mcs51 uses serial port.
4914
4915 2006-10-23 Maarten Brock <sourceforge.brock AT dse.nl>
4916
4917         * src/mcs51/gen.c (movc): improved check for 0 and 1, see RFE 1582704
4918
4919 2006-10-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4920
4921         * support/regression/ports/mcs51/support.c: smaller
4922         _sdcc_external_startup()
4923         * device/lib/mcs51/crtxclear.asm: don't check high byte of l_PSEG
4924
4925 2006-10-20 Maarten Brock <sourceforge.brock AT dse.nl>
4926
4927         * device/lib/gbz80/crt0.s,
4928         * device/lib/gbz80/crt0_rle.s,
4929         * device/lib/gbz80/div.s,
4930         * device/lib/gbz80/fstubs.s,
4931         * device/lib/gbz80/heap.s,
4932         * device/lib/gbz80/mul.s,
4933         * device/lib/gbz80/putchar.s,
4934         * device/lib/gbz80/stubs.s,
4935         * device/lib/z80/crt0.s,
4936         * device/lib/z80/crt0_rle.s,
4937         * device/lib/z80/div.s,
4938         * device/lib/z80/fstubs.s,
4939         * device/lib/z80/heap.s,
4940         * device/lib/z80/mul.s,
4941         * device/lib/z80/putchar.s,
4942         * device/lib/z80/stubs.s: reverted, I was mistaken
4943
4944 2006-10-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4945
4946         * src/mcs51/peeph.def: peephole 238.x added check for notvolatile
4947         * support/regression/ports/mcs51/support.c: removed race
4948         condition on TI in _putchar allowing to use serial port mode 0
4949
4950 2006-10-20 Borut Razem <borut.razem AT siol.net>
4951
4952         * debugger/mcs51/sdcdb.c: replaced isblank() with isspace()
4953
4954 2006-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
4955
4956         * device/lib/gbz80/crt0.s,
4957         * device/lib/gbz80/crt0_rle.s,
4958         * device/lib/gbz80/div.s,
4959         * device/lib/gbz80/fstubs.s,
4960         * device/lib/gbz80/heap.s,
4961         * device/lib/gbz80/mul.s,
4962         * device/lib/gbz80/putchar.s,
4963         * device/lib/gbz80/stubs.s,
4964         * device/lib/z80/crt0.s,
4965         * device/lib/z80/crt0_rle.s,
4966         * device/lib/z80/div.s,
4967         * device/lib/z80/fstubs.s,
4968         * device/lib/z80/heap.s,
4969         * device/lib/z80/mul.s,
4970         * device/lib/z80/putchar.s,
4971         * device/lib/z80/stubs.s: removed all leading underscores from area names
4972
4973 2006-10-17 Maarten Brock <sourceforge.brock AT dse.nl>
4974
4975         * support/regression/ports/mcs51/support.c: use highest baudrate so the
4976           regression tests are not waiting in the simulator for simulated
4977           transmission of debug output
4978
4979 2006-10-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4980
4981         * device/lib/printf_large.c: slightly smaller
4982         * doc/sdccman.lyx: do not use spaces within html links
4983
4984 2006-10-16 Borut Razem <borut.razem AT siol.net>
4985
4986         * configure.in, configure, sdccconf_in.h, src/SDCCglobal,
4987           debugger/mcs51/Makefile.in, debugger/mcs51/sdcdb.[ch],
4988           debugger/mcs51/aclocal.m4, debugger/mcs51/acinclide.m4,
4989           debugger/mcs51/config.h.in, debugger/mcs51/configure.in,
4990           debugger/mcs51/configure:
4991           [ 1185668 ] add gnu readline support to sdcdb - enabled
4992
4993 2006-10-16 Raphael Neider <rneider AT web.de>
4994
4995         * src/pic/pcode.c (BankSelect): another fix on (partial) BANKSELs,
4996           fixes #1577882, removes close to all banking optimizations
4997
4998 2006-10-15 Maarten Brock <sourceforge.brock AT dse.nl>
4999
5000         * src/SDCCsymt.c (checkSClass): no error for uninitialised absolute
5001           variables in code memory
5002         * support/regression/tests/absolute.c: added test for this
5003
5004 2006-10-15 Raphael Neider <rneider AT web.de>
5005
5006         * src/pic/pcode.c (InsertBankSel): suppress BANKSELs for one bank
5007           devices,
5008           (BankSelect): emit BANKSEL before touching linker-placed regs,
5009           fixes #1570934
5010
5011 2006-10-10 Raphael Neider <rneider AT web.de>
5012
5013         * src/SDCCmain.c (optionsTable): accept --stack-size for PICs,
5014         * src/pic/device.c (pic14_getSharebankSize,pic14_getSharebankAddress),
5015         * src/pic/main.c (_pic14_parseOptions),
5016         * src/pic/main.h: mostly reverted to previous state, now use results
5017             from SDCCmain.c's argument parsing
5018
5019 2006-10-10 Borut Razem <borut.razem AT siol.net>
5020
5021         * debugger/mcs51/break.[ch], debugger/mcs51/cmd.c,
5022           debugger/mcs51/sdcdb.[ch], debugger/mcs51/simi.c:
5023           [ 1185668 ] add gnu readline support to sdcdb -
5024           prepared for READLINE, not enabled yet,
5025           thanks to <tal.bav AT gmail.com>
5026
5027 2006-10-10 Raphael Neider <rneider AT web.de>
5028
5029         * src/pic16/pcode.c (pic16_pCode2str): use isACCESS_BANK macro
5030         * src/pic16/devices.inc,
5031         * device/include/pic16 (pic18f[24]620.h),
5032         * device/include/pic18fregs.h,
5033         * device/lib/pic16/pics.all,
5034         * device/lib/pic16/libdev/pic18f[24]{620,525}.c): added support for
5035             18f2620, 18f4620, 18f2525, and 18f4525 devices, thanks to
5036             Gary Plumbridge and Anton Strobl
5037
5038 2006-10-10 Raphael Neider <rneider AT web.de>
5039
5040         * src/pic/main.c (_pic14_parseOptions): added --stack-loc=NUM and
5041           --stack-siz=NUM options to configure the argument passing stack
5042         * src/pic/main.h: added stackLocation and stackSize to pic14_options_t
5043         * src/pic/device.c (mapRegister): catch out-of-memory SIGSEGVs,
5044           (pic14_getSharebankSize): obey --stack-siz=NUM,
5045           (pic14_getSharebankAddress): obey --stack-loc=NUM
5046
5047 2006-10-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5048
5049         * doc/sdccman.lyx: added to the manual
5050         * doc/figures/ddd_example.png: added (neither pdflatex nor
5051         most browsers seem to like the .eps file)
5052
5053 2006-10-06 Bernhard Held <bernhard AT bernhardheld.de>
5054
5055         * src/SDCCglue.c (tempfileandname): changed un*x tmp search paths
5056         to /tmp and /var/tmp acc. LSB
5057         * src/SDCCast.c (addCast): Fixed bug 1571231: promote in case of
5058         RESULT_TYPE_IFX
5059         * support/regression/tests/onebyte.c: added test
5060
5061 2006-10-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5062
5063         * src/mcs51/gen.c: emitcode for "add a,0x%02x" requires only 8 bits.
5064
5065 2006-10-05 Borut Razem <borut.razem AT siol.net>
5066
5067         * partially fixed [ 1570701 ] peephole - not replacing code from multiline macros,
5068           thanks to dfulab:
5069           - sdcc.dsw: changed property eol-style to CRLF
5070           - support/scripts/resource.rc: replaced references to "afxres.h" with "winres.h"
5071
5072 2006-10-04 Raphael Neider <rneider AT web.de>
5073
5074         * device/include/pic/{pic16f84.h,pic16f84a.h},
5075         * device/lib/pic/libdev/{pic16f84.c,pic16f84a.c}: added PORT[AB]_bits
5076           from patch #1522504, thanks to Robas Teodor
5077
5078 2006-10-02 Maarten Brock <sourceforge.brock AT dse.nl>
5079
5080         * as/link/z80/lkarea.c: essentially reverted lnksect() to #4380 which
5081           fixes bug 1566015
5082
5083 2006-10-01 Maarten Brock <sourceforge.brock AT dse.nl>
5084
5085         * src/pic16/glue.c (pic16emitMaps),
5086         * src/pic/glue.c (pic14emitMaps): hopefully fixed bug 1568779
5087         * device/lib/gets.c: fixed bug 1568829,thanks Philipp Krause
5088         * device/lib/pic16/libc/string/memcpypgm2ram.c,
5089         * device/lib/pic16/libc/string/memcpyram2ram.c: fixed bug 1568836, thanks
5090           Philipp Krause
5091         * as/mcs51/asmain.c (asmbl, newdot): fixed problems with absolute areas
5092         * as/link/mcs51/lkmem.c (summary2): reverted, do do count abs segments
5093
5094 2006-09-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5095
5096         * support/librarian/sdcclib.c: Added option -l.
5097         * as/link/mcs51/lkmem.c: don't use absolute segments to compute memory
5098           usage totals.
5099         * device/lib/make51lib.bat: added.  Allows building mcs51 libraries easily
5100           using Windows command prompt.
5101
5102 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
5103
5104         * device/lib/libsdcc.lib: added module rand
5105         * src/ds390/ralloc.c (rematStr),
5106         * src/hc08/ralloc.c (rematStr),
5107         * src/mcs51/ralloc.c (rematStr),
5108         * src/z80/ralloc.c (rematStr): made output more consistent
5109         * src/mcs51/gen.c: cosmetic changes
5110
5111 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
5112
5113         * src/port.h: added mem.cabs_name to PORT
5114         * src/ds390/main.c,
5115         * src/hc08/main.c,
5116         * src/mcs51/main.c,
5117         * src/pic16/main.c,
5118         * src/pic/main.c,
5119         * src/xa51/main.c,
5120         * src/z80/main.c: added cabs_name initializers
5121         * src/SDCCglue.c (emitStaticSeg): allocate and initialize absolute
5122           constants
5123           (emitMaps): emit absolutes in code memory into cabs_name
5124         * src/SDCCmem.c,
5125         * src/SDCCmem.h: added memory map c_abs and defined CABS_NAME
5126         * src/ds390/gen.c (genCodePointerGet): fixed bug if left is a literal
5127         * support/regression/fwk/include/testfwk.h: added define for at
5128         * support/regression/tests/absolute.c: added, new
5129
5130 2006-09-29 Maarten Brock <sourceforge.brock AT dse.nl>
5131
5132         * src/mcs51/gen.c (genPlusIncr, genMinusDec, genAddrOf): small
5133           optimizations, see also patch 887161 by Stas Sergeev
5134         * src/mcs51/peeph.def(104, 207, 209, 212): disabled as they do not seem
5135           to be necessary anymore,
5136           (102, 103, 104, 127): renamed all occurances of bp to _bp
5137
5138 2006-09-27 Maarten Brock <sourceforge.brock AT dse.nl>
5139
5140         * device/include/mcs51/at89c51snd1c.h: fixed MSK_SREQ definition
5141           thanks Weston T. Schmidt for patch 1555221
5142         * src/mcs51/peeph.def: renamed rule 257 to 257.a, added 257.b
5143         * src/SDCCicode.c(geniCodeMultiply): small optimization
5144
5145 2006-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
5146
5147         * device/include/stdlib.h: added rand prototypes
5148         * device/lib/rand.c: new, added
5149         * device/lib/Makefile.in: added rand.c
5150         * src/z80/peeph.def,
5151         * src/z80/peeph-gbz80.def,
5152         * src/z80/peeph-z80.def: updated conditonals, fixed bug 1565908
5153
5154 2006-09-20 Raphael Neider <rneider AT web.de>
5155
5156         * device/lib/pic16/libio/i2c/i2cnack.c (i2c_nack): fixed ACKDT bit
5157
5158 2006-09-19 Maarten Brock <sourceforge.brock AT dse.nl>
5159
5160         * as/link/aslink.h: cosmetic changes
5161         * as/link/mcs51/Makefile.in,
5162         * as/link/z80/Makefile.in: fixed build on CF where VPATH is used
5163
5164 2006-09-17 Maarten Brock <sourceforge.brock AT dse.nl>
5165
5166         * as/link/aslink.h,
5167         * as/link/mcs51/aslink.h,
5168         * as/link/z80/aslink.h: merged and moved to as/link/
5169         * as/link/lkstore.c,
5170         * as/link/mcs51/lkstore.c: moved to as/link/
5171         * as/link/clean.mk: remove *.o
5172         * as/link/mcs51/alloc.h: deleted
5173         * as/link/mcs51/lkarea.c: added lnksect prototype
5174         * as/link/mcs51/lkdata.c,
5175         * as/link/mcs51/lklex.c,
5176         * as/link/mcs51/lkmain.c: renamed as_getline to lk_getline
5177         * as/link/mcs51/lkmem.c,
5178         * as/link/mcs51/lknoice.c: removed include strcmpi.h
5179         * as/link/mcs51/lksym.c: include stdlib.h instead of malloc.h or alloc.h
5180         * as/link/mcs51/aslink.dsp,
5181         * as/link/mcs51/Makefile.aslink,
5182         * as/link/mcs51/Makefile.bcc,
5183         * as/link/mcs51/Makefile.in: updated for moved files
5184         * as/link/z80/lkarea.c,
5185         * as/link/z80/lkhead.c,
5186         * as/link/z80/lklex.c,
5187         * as/link/z80/lklibr.c,
5188         * as/link/z80/lklist.c,
5189         * as/link/z80/lkmain.c,
5190         * as/link/z80/lkrloc.c,
5191         * as/link/z80/lksym.c: synced with mcs51
5192         * as/link/z80/lkdata.c,
5193         * as/link/z80/lkeval.c,
5194         * as/link/z80/lkihx.c,
5195         * as/link/z80/lks19.c: cosmetic changes
5196         * as/link/z80/Makefile.in,
5197         * as/link/z80/linkgbz80.dsp,
5198         * as/link/z80/linkz80.dsp: updated for moved files
5199
5200 2006-09-16 Borut Razem <borut.razem AT siol.net>
5201
5202         * debugger/mcs51/sdcdb.c: partially fixed
5203           [ 1203664 ] sdcdb fails to open files w. two "." periods
5204         * debugger/mcs51/simi.c, debugger/mcs51/symtab.c,
5205           debugger/mcs51/symtab.h: fixed indenting
5206         * configure.in, configure: up to date with latest Maarten's changes
5207
5208 2006-09-15 Maarten Brock <sourceforge.brock AT dse.nl>
5209
5210         as/link/mcs51
5211         as/aslink.dsp,                  as/link/mcs51/aslink.dsp,
5212         as/link/mcs51/aslink.h,         as/mcs51/aslink.h,
5213         as/link/mcs51/aslink.mak,       as/mcs51/aslink.mak,
5214         as/link/mcs51/lkaomf51.c,       as/mcs51/lkaomf51.c,
5215         as/link/mcs51/lkarea.c,         as/mcs51/lkarea.c,
5216         as/link/mcs51/lkdata.c,         as/mcs51/lkdata.c,
5217         as/link/mcs51/lkeval.c,         as/mcs51/lkeval.c,
5218         as/link/mcs51/lkhead.c,         as/mcs51/lkhead.c,
5219         as/link/mcs51/lkihx.c,          as/mcs51/lkihx.c,
5220         as/link/mcs51/lklex.c,          as/mcs51/lklex.c,
5221         as/link/mcs51/lklibr.c,         as/mcs51/lklibr.c,
5222         as/link/mcs51/lklist.c,         as/mcs51/lklist.c,
5223         as/link/mcs51/lkmain.c,         as/mcs51/lkmain.c,
5224         as/link/mcs51/lkmem.c,          as/mcs51/lkmem.c,
5225         as/link/mcs51/lknoice.c,        as/mcs51/lknoice.c,
5226         as/link/mcs51/lkrloc.c,         as/mcs51/lkrloc.c,
5227         as/link/mcs51/lks19.c,          as/mcs51/lks19.c,
5228         as/link/mcs51/lkstore.c,        as/mcs51/lkstore.c,
5229         as/link/mcs51/lksym.c,          as/mcs51/lksym.c,
5230         as/link/mcs51/Makefile.aslink,  as/mcs51/Makefile.aslink,
5231         as/link/mcs51/alloc.h,
5232         as/link/mcs51/clean.mk,
5233         as/link/mcs51/conf.mk,
5234         as/link/mcs51/Makefile.bcc,
5235         as/link/mcs51/Makefile.in,
5236         as/link/mcs51/readme.390,
5237         as/link/mcs51/strcmpi.c,
5238         as/link/mcs51/strcmpi.h,
5239         as/mcs51/clean.mk,
5240         as/mcs51/Makefile.bcc,
5241         as/mcs51/Makefile.in,
5242         configure,
5243         Makefile.in,
5244         sdcc.dsw: moved mcs51 linker to as/link/mcs51
5245
5246 2006-09-14 Maarten Brock <sourceforge.brock AT dse.nl>
5247
5248         * as/link,
5249         * as/link/Makefile.in,
5250         * as/link/z80/linkgbz80.dsp,
5251         * as/link/z80/linkz80.dsp,
5252         * configure,
5253         * link,
5254         * link/clean.mk,
5255         * link/Makefile.in,
5256         * link/README,
5257         * link/z80,
5258         * link/z80/aslink.h,
5259         * link/z80/clean.mk,
5260         * link/z80/conf.mk,
5261         * link/z80/linkgbz80.dsp,
5262         * link/z80/linkz80.dsp,
5263         * link/z80/lkarea.c,
5264         * link/z80/lkdata.c,
5265         * link/z80/lkeval.c,
5266         * link/z80/lkgb.c,
5267         * link/z80/lkgg.c,
5268         * link/z80/lkhead.c,
5269         * link/z80/lkihx.c,
5270         * link/z80/lklex.c,
5271         * link/z80/lklibr.c,
5272         * link/z80/lklist.c,
5273         * link/z80/lkmain.c,
5274         * link/z80/lkrloc.c,
5275         * link/z80/lks19.c,
5276         * link/z80/lksym.c,
5277         * link/z80/Makefile.in,
5278         * Makefile.in,
5279         * sdcc.dsw: moved link/ to as/link/
5280
5281 2006-09-11 Maarten Brock <sourceforge.brock AT dse.nl>
5282
5283         * as/mcs51/i51mch.c (machine): fixed warning
5284
5285 2006-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
5286
5287         * as/mcs51/i51mch.c (machine): S_DJNZ fixed bug 1554318
5288
5289 2006-09-09 Borut Razem <borut.razem AT siol.net>
5290
5291         * debugger/mcs51/sdcdb.c, debugger/mcs51/simi.c:
5292           sdcdb WIN32 native port
5293         * src/clean.mk: fixed
5294
5295 2006-09-08 Borut Razem <borut.razem AT siol.net>
5296
5297         * doc/sdccman.lyx: SDCDB and ucSim are available on Win32 platforms.
5298
5299 2006-09-08 Raphael Neider <rneider AT web.de>
5300
5301         * src/pic16/main.c (_pic16_linkEdit,pic16_linkCmd),
5302         * src/pic/main.c(_pic14_do_link, linkCmd): pass "-w" and "-r"
5303             to gplink to disable processor mismatch warning and to allow
5304             the use of devices with only aliased (shared) memory banks,
5305           (_pic16_genAssemblerPreamble): include pXXX.inc on --mplab-comp
5306
5307 2006-09-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5308
5309         * doc/sdccman.lyx: Some re-formating plus example on using
5310           #pragma preproc_asm +/-
5311
5312 2006-09-07 Borut Razem <borut.razem AT siol.net>
5313
5314         * support/scripts/sdcc.nsi: added SDCDB executables in a separate
5315           section
5316
5317 2006-09-06 Borut Razem <borut.razem AT siol.net>
5318
5319         * support/scripts/sdcc.nsi: fixed Error: unterminated string parsing
5320           line at sdcc.nsi:153
5321         * sdcc/debugger/mcs51/simi.c: argsToCmdLine() fixes
5322
5323 2006-09-05 Borut Razem <borut.razem AT siol.net>
5324
5325         * configure.in, configure: support for winsock2
5326         * debugger/mcs51/break.h, debugger/mcs51/cmd.c,
5327           debugger/mcs51/cmd.h, debugger/mcs51/sdcdb.c,
5328           debugger/mcs51/sdcdb.h, debugger/mcs51/simi.c,
5329           debugger/mcs51/simi.h, debugger/mcs51/symtab.c,
5330           debugger/mcs51/symtab.h: sdcdb WIN32 native port
5331
5332 2006-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
5333
5334         * src/SDCCopt.c (cnvToFcall): fixed bug 1551947 by updating OP_USES
5335           and OP_DEFS
5336         * support/regression/tests/bug1551947.c: new, added
5337         * src/SDCCsymt.h: strings are char* not byte*
5338
5339 2006-09-05 Raphael Neider <rneider AT web.de>
5340
5341         * device/lib/pic16/libdev/pic18f4550.c,
5342           device/include/pic16/pic18f4550.h: added PORTD/TRISD
5343             declarations/definitions from patch #1520949
5344
5345 2006-09-05 Raphael Neider <rneider AT web.de>
5346
5347         * src/pic16/gen.c (genPackBits): fix assignment to 8-bit,
5348           byte-aligned bitfields, fixes #1539278
5349
5350 2006-09-05 Raphael Neider <rneider AT web.de>
5351
5352         * src/pic/gen.c (genReceive): skip unreferenced arguments,
5353           fixes #1544120
5354
5355 2006-09-04 Borut Razem <borut.razem AT siol.net>
5356
5357         * support/scripts/sdcc.nsi: move ucSim executables to a separate section
5358         * support/scripts/sdcc_cygwin_mingw32: don't disable ucsim,
5359           -mno-cygwin is a part of the compiler name
5360         * support/scripts/sdcc_mingw32: don't disable ucsim
5361
5362 2006-09-03 Borut Razem <borut.razem AT siol.net>
5363
5364         * sdcc.spec: corrected for 2.6.0. Thanks to Christer Weinigel.
5365         * device/lib/Makefile.in device/lib/clean.mk: small but essential corrections
5366
5367 2006-09-03 Raphael Neider <rneider AT web.de>
5368
5369         * src/pic/ralloc.c,
5370         * src/pic/pcode.c (InitReuseRegs): allocate registers with pseudo
5371           indices >= 0x1000 to disambiguate them from fixed regs __at(addr),
5372           fixes #1550049
5373
5374 2006-09-01 Borut Razem <borut.razem AT siol.net>
5375
5376         * sim/ucsim/cmd.src/cmdutil.cc: #include <sys/time.h> and <unistd.h>
5377           to make ppc-osx happy
5378
5379 2006-08-31 Borut Razem <borut.razem AT siol.net>
5380
5381         * sim/ucsim/cmd.src/newcmdposix.cc: #include <assert.h>
5382         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
5383         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
5384         * support/regression/ports/ds390/spec.mk,
5385           support/regression/ports/mcs51/spec.mk,
5386           support/regression/ports/xa51/spec.mk: introduced DEV_NULL variable.
5387           To run regression tests in mingw environment:
5388           make DEV_NULL=NUL CC=gcc
5389
5390 2006-08-30 Borut Razem <borut.razem AT siol.net>
5391
5392         * sim/ucsim/cmd.src/newcmdposix.cc, sim/ucsim/cmd.src/newcmdposixcl.h,
5393           sim/ucsim/cmd.src/newcmdwin32.cc, sim/ucsim/cmd.src/newcmdwin32cl.h,
5394           sim/ucsim/app.cc, sim/ucsim/appcl.h, sim/ucsim/configure,
5395           sim/ucsim/configure.in, sim/ucsim/ddconfig_in.h, sim/ucsim/error.cc,
5396           sim/ucsim/errorcl.h, sim/ucsim/option.cc, sim/ucsim/optioncl.h,
5397           sim/ucsim/utils.cc, sim/ucsim/utils.h, sim/ucsim/cmd.src/Makefile.in,
5398           sim/ucsim/avr.src/avr.cc, sim/ucsim/avr.src/avrcl.h,
5399           sim/ucsim/cmd.src/bp.cc, sim/ucsim/cmd.src/bpcl.h,
5400           sim/ucsim/cmd.src/cmdconf.cc, sim/ucsim/cmd.src/cmdgui.cc,
5401           sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/cmdset.cc,
5402           sim/ucsim/cmd.src/cmdsetcl.h, sim/ucsim/cmd.src/cmdstat.cc,
5403           sim/ucsim/cmd.src/cmduc.cc, sim/ucsim/cmd.src/cmduccl.h,
5404           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
5405           sim/ucsim/cmd.src/command.cc, sim/ucsim/cmd.src/commandcl.h,
5406           sim/ucsim/cmd.src/get.cc, sim/ucsim/cmd.src/getcl.h,
5407           sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/newcmd.cc,
5408           sim/ucsim/cmd.src/newcmdcl.h, sim/ucsim/cmd.src/set.cc,
5409           sim/ucsim/cmd.src/show.cc, sim/ucsim/cmd.src/timer.cc,
5410           sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
5411           sim/ucsim/s51.src/Makefile.in, sim/ucsim/s51.src/interrupt.cc,
5412           sim/ucsim/s51.src/interruptcl.h, sim/ucsim/s51.src/pca.cc,
5413           sim/ucsim/s51.src/pcacl.h, sim/ucsim/s51.src/port.cc,
5414           sim/ucsim/s51.src/portcl.h, sim/ucsim/s51.src/serial.cc,
5415           sim/ucsim/s51.src/serialcl.h, sim/ucsim/s51.src/timer0.cc,
5416           sim/ucsim/s51.src/timer0cl.h, sim/ucsim/s51.src/timer1.cc,
5417           sim/ucsim/s51.src/timer1cl.h, sim/ucsim/s51.src/timer2.cc,
5418           sim/ucsim/s51.src/timer2cl.h, sim/ucsim/s51.src/uc390.cc,
5419           sim/ucsim/s51.src/uc390cl.h, sim/ucsim/s51.src/uc390hw.cc,
5420           sim/ucsim/s51.src/uc390hwcl.h, sim/ucsim/s51.src/uc51.cc,
5421           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/wdt.cc,
5422           sim/ucsim/s51.src/wdtcl.h, sim/ucsim/sim.src/hw.cc,
5423           sim/ucsim/sim.src/hwcl.h, sim/ucsim/sim.src/mem.cc,
5424           sim/ucsim/sim.src/memcl.h, sim/ucsim/sim.src/obsolete.cc,
5425           sim/ucsim/sim.src/obsolete.h, sim/ucsim/sim.src/sim.cc,
5426           sim/ucsim/sim.src/simcl.h, sim/ucsim/sim.src/stack.cc,
5427           sim/ucsim/sim.src/stackcl.h, sim/ucsim/sim.src/test_mem_speed.cc,
5428           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
5429           sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
5430           sim/ucsim/z80.src/z80.cc, sim/ucsim/z80.src/z80cl.h:
5431           ucsim WIN32 native port
5432
5433 2006-08-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5434
5435         * doc/sdccman.lyx: added note on dynamic memory heap initialization
5436
5437 2006-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
5438
5439         * src/mcs51/gen.c (genAnd, genOr, genXor): fixed bug 1546986
5440         * src/ds390/gen.c (aopGetUsesAcc): handle AOP_DPTR2 and AOP_DPTRn too
5441
5442 2006-08-26 Maarten Brock <sourceforge.brock AT dse.nl>
5443
5444         * src/ds390/gen.c (genAnd, genOr, genXor): fixed bug 1546986
5445         * support/regression/tests/bug1546986.c: new, added
5446         * as/mcs51/.cvsignore,
5447         * debugger/mcs51/.cvsignore,
5448         * src/.cvsignore: deleted
5449
5450 2006-08-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5451
5452         * device/include/mcs51/P89c51RD2.h: fixed bug 1546936 (error in sbit
5453           definitions)
5454
5455 2006-08-20 Borut Razem <borut.razem AT siol.net>
5456
5457         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h:
5458           removed cl_listen_console::match(), cl_console::match(),
5459           restructured cl_commander::proc_input()
5460
5461 2006-08-16 Borut Razem <borut.razem AT siol.net>
5462
5463         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h,
5464           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
5465           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/uc.cc: code cleaning
5466
5467 2006-08-14 Borut Razem <borut.razem AT siol.net>
5468
5469         * support/regression/Makefile.in,
5470           support/regression/ports/pic14/gpsim.cmd,
5471           support/regression/ports/pic14/spec.mk,
5472           support/regression/ports/pic14/support.c:
5473           added pic14 regression test
5474
5475 2006-08-14 Maarten Brock <sourceforge.brock AT dse.nl>
5476
5477         * as/doc/asxhtm.html: documented changed ABS behaviour
5478         * as/doc/README: fixed some typos
5479
5480 2006-08-13 Maarten Brock <sourceforge.brock AT dse.nl>
5481
5482         * support/regression/tests/float_trans.c: disabled test if __STDC_IEC_559__
5483           not defined on host
5484
5485 2006-08-12 Borut Razem <borut.razem AT siol.net>
5486
5487         * support/regression/fwk/include/testfwk.h,
5488           support/regression/fwk/lib/testfwk.c,
5489           support/regression/generate-cases.py,
5490           support/regression/Makefile.in:
5491           regression test framework does not depend on function pointers and
5492           variable arguments
5493
5494 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
5495
5496         * device/include/stddef.h: c temporary hack to fix bug 1518273
5497
5498 2006-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5499
5500         * device/include/mcs51/cc2510fx.h: added
5501         * src/z80/z80.dsp, src/gbz80/gbz80.dsp: added support/Util/strcmpi.ch
5502           to projects.
5503
5504 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
5505
5506         * as/z80/assym.c (mlookup): ignore case when looking up mnemonics
5507         * as/z80/Makefile.in: added strcmpi.c
5508         * as/z80/z80adr.c: added upper case registers and lower case conditionals
5509         * support/Util/strcmpi.ch: added with intention to remove from mcs51/hc08
5510
5511 2006-08-08 Maarten Brock <sourceforge.brock AT dse.nl>
5512
5513         * device/lib/gbz80/asm_strings.s,
5514         * device/lib/gbz80/crt0_rle.s,
5515         * device/lib/gbz80/div.s,
5516         * device/lib/gbz80/mul.s,
5517         * device/lib/gbz80/shift.s,
5518         * device/lib/z80/asm_strings.s,
5519         * device/lib/z80/crt0_rle.s,
5520         * device/lib/z80/div.s,
5521         * device/lib/z80/mul.s,
5522         * device/lib/z80/shift.s: changed to all lower case menmonics except the
5523           flags which are all upper case
5524
5525 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
5526
5527         * as/z80/asm.h: made CASE_SENSITIVE 1
5528         * link/z80/aslink.h: made CASE_SENSITIVE 1
5529         * src/z80/gen.c (throughout): made all conditionals upper case
5530         * support/regression/tests/bug1503067.c: new
5531
5532 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
5533
5534         * src/z80/gen.c (aopPut): fixed bug !*ixy should be !*iyx,
5535           (shiftIntoPair): added case 2 for PAIR_IY,
5536           (setupToPreserveCarry): replaced parameters with iCode and check if
5537            PAIR_DE is in use to fix bug 1399290,
5538           (genPlus, genMinus): updated call to setupToPreserveCarry
5539         * support/regression/tests/bug1399290.c: new
5540
5541 2006-08-06 Maarten Brock <sourceforge.brock AT dse.nl>
5542
5543         * device/lib/Makefile.in (Z80SOURCES): enabled float support
5544         * sim/ucsim/z80.src/inst.cc (inst_rst): generate breakpoint on RST8,ACC==0
5545         * src/ds390/gen.c (shiftRLong),
5546         * src/hc08/gen.c (shiftLLong, shiftRLong): fixed bug 1533966
5547         * src/mcs51/gen.c (sameReg): changed to sameByte,
5548           (xch_a_aopGet): new,
5549           (shiftL2Left2Result, shiftR2Left2Result, shiftRLeftOrResult, shiftLLong,
5550            shiftRLong): fixed bug 1533966
5551         * src/z80/gen.c (shiftR2Left2Result, shiftL2Left2Result, genlshTwo,
5552           genLeftShiftLiteral, genrshTwo, genRightShiftLiteral): fixed bug 1533966
5553         * support/regression/Makefile.in: disabled z80, enabled ucz80
5554         * support/regression/tests/float_trans.c: enabled test for z80 and host
5555         * support/regression/tests/shifts2.c: new, for testing bug 1533966
5556
5557 2006-08-01 Borut Razem <borut.razem AT siol.net>
5558
5559         * src/mcs51/gen.c, src/dc390/gen.c: fixed warning:
5560           comparison is always false due to limited range of data type
5561           on PPC64 machine (openpower-linux1) where "char = unsigned char"
5562
5563 2006-08-01 Maarten Brock <sourceforge.brock AT dse.nl>
5564
5565         * sim/ucsim/hc08.src/hc08mac.h: removed faulty and unused add_u16_disp
5566         * sim/ucsim/hc08.src/hc08.cc: removed faulty and unused int8
5567         * sim/ucsim/z80.src/z80mac.h (add_u16_disp): use explicit signed char cast
5568         * sim/ucsim/z80.src/z80.cc: removed faulty and unused int8
5569
5570 2006-07-31 Borut Razem <borut.razem AT siol.net>
5571
5572         * sim/ucsim/configure, sim/ucsim/cmd.src/newcmdcl.h,
5573           sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/cmdutil.cc,
5574           sim/ucsim/z80.src/Makefile.in, sim/ucsim/configure.in,
5575           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/hc08.src/hc08.cc,
5576           sim/ucsim/ddconfig_in.h, sim/ucsim/s51.src/Makefile.in,
5577           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/serialcl.h,
5578           sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/serial.cc,
5579           sim/ucsim/app.cc, sim/ucsim/avr.src/Makefile.in:
5580           enable ucsim mingw compilation. Serial port is disabled,
5581           since it uses termios.h API, which is not available on native
5582           WIN32
5583
5584 2006-07-31 Borut Razem <borut.razem AT siol.net>
5585
5586         * Small Device C Compiler 2.6.0 released
5587         * support/scripts/sdcc.nsi: added FULL_DOC option
5588         * .version, doc/sdccman.lyx: changed sdcc version to 2.6.1
5589
5590 2006-07-28 Borut Razem <borut.razem AT siol.net>
5591
5592         * support/scripts/sdcc.nsi: remove $INSTDIR/include/asm/pic16/*.h
5593         * doc/INSTALL.txt: updated
5594
5595 2006-07-27 Borut Razem <borut.razem AT siol.net>
5596
5597         * device/lib/pic/Makefile.in, device/lib/pic/Makefile.subdir,
5598           device/lib/pic/libdev/Makefile.in: fixed bug
5599           [ 1438354 ] pic libsdcc: distclean doesn't work
5600         * device/lib/pic16/Makefile.in, device/lib/pic16/Makefile.subdir,
5601           device/lib/pic16/libio/Makefile.in: fixed bug
5602           [ 1438344 ] pic16 lib: clean doesn't work properly
5603         * doc/knownbugs.html removed [ 1438354 ] and [ 1438344 ] from the list
5604
5605 2006-07-26 Maarten Brock <sourceforge.brock AT dse.nl>
5606
5607         * device/lib/pic/libsdcc/fsdiv.c,
5608         * device/lib/pic/libsdcc/fsmul.c,
5609         * device/lib/pic16/libsdcc/float/fsdiv.c,
5610         * device/lib/pic16/libsdcc/float/fsmul.c,
5611         * device/lib/_fsdiv.c,
5612         * device/lib/_fsmul.c: bugfix, handle too large and too small numbers
5613         * support/regression/tests/bug1520966.c: added
5614         * doc/knownbugs.html: removed [ 1520966 ] from the list
5615
5616 2006-07-25 Borut Razem <borut.razem AT siol.net>
5617
5618         * configure.in, configure, sdccconf_in.h: fixed bug
5619           [ 1519095 ] regression test onebyte.c fails on ppc64 host
5620         * doc/knownbugs.html: removed [ 1519095 ] from the list
5621
5622 2006-07-25 Maarten Brock <sourceforge.brock AT dse.nl>
5623
5624         * doc/knownbugs.html: added, contains list of known bugs at release
5625         * device/include/mcs51/compiler.h: fixed SFR32 for SDCC
5626
5627 2006-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
5628
5629         * device/include/mcs51/compiler.h: added SFRX for xdata based special
5630           function registers and corrected defaults with additional warning
5631         * device/lib/malloc.c: cosmetic changes
5632         * device/lib/realloc.c: bugfix for bug #1496907, Thanks Efim Monyak
5633         * src/ds390/ralloc.c (getRegBitNoSpil): reenabled,
5634           (fillGaps): and used it
5635
5636 2006-07-20 Raphael Neider <rneider AT web.de>
5637
5638         * src/pic/device.c (addMemRange,assignRegister): suppress verbose
5639           output unless SDCCPICDEBUG is set
5640         * device/lib/pic16/Makefile.rules (%.lib target): suppress verbose
5641           output if SILENT is set
5642
5643 2006-07-11 Borut Razem <borut.razem AT siol.net>
5644
5645         * doc/README.txt: updated
5646
5647 2006-07-10 Borut Razem <borut.razem AT siol.net>
5648
5649         * support/scripts/sdcc.nsi: added device/include/asm/pic/features.h and
5650           device/lib/src/pic/libm/*.c and device/lib/src/pic16/libsdcc/stack/*.S
5651           in WIN32 installation
5652         * .version, sdcc.spec, doc/sdccman.lyx: changed sdcc version to 2.6.0 -
5653           release candidate 1
5654
5655 2006-07-08 Maarten Brock <sourceforge.brock AT dse.nl>
5656
5657         * device/include/mcs51/XC866.h: added sbit definitions for Px_x, P1_x, P2_x
5658         * src/pic16/glue.c (initPointer): fixed bug 1496419 for pic16
5659
5660 2006-07-06 Maarten Brock <sourceforge.brock AT dse.nl>
5661
5662         * src/hc08/gen.c (genAddrOf): fixed bug when offset on stack is >127
5663
5664 2006-07-06 Borut Razem <borut.razem AT siol.net>
5665
5666         * support/regression/tests/bitfields.c:
5667           fixed bug [ 1518322 ] regression test bitfields fails on ppc hosts
5668         * support/regression/tests/constantRange.c:
5669           fixed bug [ 1518317 ] regression test constantRange fails on alpha host
5670
5671 2006-07-04 Borut Razem <borut.razem AT siol.net>
5672
5673         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in,
5674           src/port.mk,
5675           src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
5676           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
5677           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
5678           reverted changes from 2006-07-03
5679         * Makefile.common.in: added @CPPFLAGS@ to CPPFLAGS
5680         * support/regression/Makefile.in, support/regression/ports/host/spec.mk:
5681           added CPPFLAGS, used by the host port
5682
5683 2006-07-03 Bernhard Held <bernhard AT bernhardheld.de>
5684
5685         * support/regression/valdiag/tests/switch.c,
5686         * support/regression/valdiag/tests/constantRange.c: adapted to gcc 4
5687         * support/regression/tests/libmullong.c: fixed for host
5688         * support/regression/ports/host/spec.mk: disable all warnings for host,
5689         SDCC runs with --less-pedantic too
5690
5691 2006-07-03 Borut Razem <borut.razem AT siol.net>
5692
5693         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in:
5694           defined CPPFLAGS
5695         * src/port.mk: defined CPPFLAGS, renamed to src/port.mk.in
5696         * src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
5697           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
5698           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
5699           include ../port.mk
5700         * sim/ucsim/main_in.mk, sim/ucsim/avr.src/Makefile.in,
5701           sim/ucsim/gui.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
5702           sim/ucsim/s52.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
5703           sim/ucsim/xa.src/Makefile.in: ignore header files for dependencies
5704
5705 2006-07-02 Raphael Neider <rneider AT web.de>
5706
5707         * src/pic16/devices.inc,
5708         * device/include/pic16/pic18fregs.h,
5709         * device/include/pic16/pic18f4550.h,
5710         * device/lib/pic16/pics.all,
5711         * device/lib/pic16/libdev/pic18f4550.c: added support for 18f4550
5712
5713 2006-07-01 Bernhard Held <bernhard AT bernhardheld.de>
5714
5715         * as/hc08/lkaomf51.c (OutputName),
5716         * as/mcs51/lkaomf51.c (OutputName),
5717         * as/z80/asmain.c (asmbl),
5718         * src/ds390/main.c (asmLineNodeFromLineNode),
5719         * src/hc08/ralloc.c (hc08_assignRegisters),
5720         * src/mcs51/main.c (asmLineNodeFromLineNode),
5721         * src/xa51/ralloc.c (checkRegMask),
5722         * src/xa51/gen.c (emitcode),
5723         * src/z80/gen.c (_emit2),
5724         * src/SDCCast.c (searchLitOp),
5725         * src/SDCCglobl.h,
5726         * support/packihx/packihx.c,
5727         * support/Util/MySystem.c (split_command): fix gcc 4 warnings
5728         * src/ds390/gen.c (aopPutUsesAcc),
5729         * src/ds390/ralloc.c (getRegBitNoSpil): unused, therefore disabled
5730         * support/regression/tests/libmullong.c (mullong_wrapper),
5731         * src/SDCCsymt.c (powof2),
5732         * src/SDCCast.c,
5733         * src/SDCCicode.c: renamed TYPE_WORD by TYPE_TARGET_INT and so on
5734         * src/SDCCsymt.h: added TYPE_TARGET_*
5735         * src/SDCCutil.c (doubleFromFixed16x16, fixed16x16FromDouble),
5736         * src/SDCCutil.h (doubleFromFixed16x16, fixed16x16FromDouble): moved to
5737         SDCCast because 1) header problems 2) this is the right place
5738         * src/SDCCast.c (doubleFromFixed16x16, fixed16x16FromDouble): added
5739         * src/SDCCval.h (doubleFromFixed16x16, fixed16x16FromDouble): added
5740         prototype
5741
5742 2006-06-29 Bernhard Held <bernhard AT bernhardheld.de>
5743
5744         * src/SDCCicode.h: removed buggy semicolon in unused macro
5745         * src/SDCClrange.c (findPrevUseSym, rlivePoint): fixed bug #1486853,
5746         search for previous definiton of auto symbols too,
5747         (findPrevUse): fixed logic of emitWarnings
5748
5749 2006-06-26 Raphael Neider <rneider AT web.de>
5750
5751         * src/pic16/gen.c (genFunction, genEndFunction): also preserve
5752           PCLATH and PCLATU on interrupts, potentially fixes #1505141
5753
5754 2006-06-25 Raphael Neider <rneider AT web.de>
5755
5756         * device/lib/pic/libm: NEW, added math library functions
5757         * device/lib/pic/libsdcc: NEW; added float support functions
5758         * device/lib/pic/{Makefile.in,configure.in,configure}: added libm/
5759         * device/include/pic/{limits.h,errno.h,sdcc-lib.h,float.h,math.h}:
5760           NEW, added math related headers
5761         * device/include/asm/pic/features.h: NEW
5762         * src/pic/gen.c (emitpcode_real): emit warning on NULL pCodeOp,
5763           (popGet): allow larger offsets for AOP_PCODE,
5764           (genDataPointerSet): handle literals explicitly, more debug output,
5765           (genAssign): fixed for float using aopLiteral ;-)
5766         * src/pic/glue.c (pic14createInterruptVect): inserted pagesel before
5767           GOTO initialisation routine
5768         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): set wasUsed
5769           flag on registers, fixes #1469043 (local variables do not work)
5770         * src/pic/main.c (_pic14_do_link),
5771         * src/pic16/main.c (_pic16_linkEdit): use fullDstFileName if
5772           available
5773
5774 2006-06-25 Borut Razem <borut.razem AT siol.net>
5775
5776         * device/lib/pic16/libc/stdio/sprintf.c: return the number of
5777           characters printed (not including the trailing '\0' used to end
5778           output to strings). Problem detected in regression test bug-927659.c.
5779           NOTE: printf() family functions should return int instead
5780           unsigned int!
5781         * device/lib/pic16/libc/stdio/vfprintf.c: "%%" prints "%", unknown
5782           specifier are printed as themselves
5783         * sdcc/support/regression/tests/bug1057979.c: pic16 printf doesn't
5784           support flags, width and precision specifiers
5785
5786 2006-06-24 Borut Razem <borut.razem AT siol.net>
5787
5788         * sdcc/support/regression/tests/bitvars.c: added gbz80, pic16 and pic16
5789           to the list of sdcc tagrets not supporting bit type
5790         * sdcc/support/regression/tests/bug-905992.c.c: excluded regression
5791           testfor pic16 due to bug:
5792           [ 1511794 ] pic16: regression test bug-895992.c fails
5793
5794 2006-06-24 Maarten Brock <sourceforge.brock AT dse.nl>
5795
5796         * src/mcs51/gen.c (genCmp): optimization for RFE 1162453
5797         * src/SDCCglue.c (initPointer), fixed bug 1496419
5798         * support/regression/tests/bug1496419.c: new, added
5799
5800 2006-06-22 Borut Razem <borut.razem AT siol.net>
5801
5802         * support/regression/ports/pic16/support.c: use gpsim usart module from
5803           libgpsim_modules library
5804
5805 2006-06-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5806
5807         * device/include/mcs51/at89c51ed2.h: Fixed bug 1510144 changed
5808         IP0H to IPH0.
5809
5810 2006-06-19 Raphael Neider <rneider AT web.de>
5811
5812         * src/pic/glue.h,src/pic16/glue.h: added prototypes
5813         * src/pic/glue.c,src/pic16/glue.c (pic1x_stringInSet,
5814           pic1x_emitSymbolIfNew): NEW, check for a string in a set,
5815           (pic14printExterns,pic14printPublics,pic16printPublics,
5816           pic16_printExterns): use new functions to emit symbols
5817           (picglue,pic16glue): emit publics before emitting externs
5818         * src/pic/gen.c,src/pic16/gen.c (genFunction): remember the names of
5819           locally defined functions to avoid bug #1443651
5820         * support/regression/tests/bug-716242.c: removed pic16 workaround
5821         * support/regression/ports/pic16/spec.mk: ignore errors during build
5822
5823 2006-06-19 Raphael Neider <rneider AT web.de>
5824
5825         * src/pic/glue.h: added pic14aopLiteral prototype
5826         * src/pic/glue.c (pic14aopLiteral): return unsigned int
5827         * src/pic/gen.c: removed stdint.h dependency
5828           (aopGet): use Safe_strdup()
5829           (bitpatternFromVal): removed, replaced use with pic14aopLiteral
5830           (genDataPointerSet): use pic14aopLiteral()
5831         * src/pic16/glue.h, src/pic16/glue.c, src/pic16/gen.c: similar changes
5832           for pic16; thanks to Bernhard and Maarten
5833
5834 2006-06-18 Borut Razem <borut.razem AT siol.net>
5835
5836         * support/regression/tests/structflexarray.c: flexible array members
5837           not supported by gcc < 3
5838         * sim/ucsim/configure, sim/ucsim/configure.in: do not compile serio
5839           GUI tool by default
5840         * src/pic/gen.c: don't include [p]strdin.h on solaris
5841         * support/Util/pstdint.h: addad svn attributes
5842         * support/regression/tests/constantRange.c,
5843           support/regression/tests/rotate.c: include inttypes.h instead
5844           stdint.h on solaris, addad svn attributes
5845
5846 2006-06-18 Raphael Neider <rneider AT web.de>
5847
5848         * src/SDCCsymt.c (initCSupport): change return type of divschar to
5849           int for PIC16
5850         * src/pic16/genarith.c (genAddLit): sign-extend via standard routine
5851           (pic16_genMinusBits): simplified sign-extension
5852           (pic16_genUMult8XLit_8,pic16_genUMult8X8_8): renamed to
5853             pic16_genMult8XLit_n resp. pic16_genMult8X8_n, fixed and
5854             adjusted to correctly handle mixed-signed operands, disabled
5855             now unused multiplciation routines
5856         * src/pic16/gen.c (pic16_pushpCodeOp): fixed to handle literals
5857           (assignResultValue): added argument denoting the size of the result
5858             as returned by the function (fixes upcasts in assigning from
5859             function calls: char foo(); int i = foo();)
5860           (genCall,genPcall,genGenPointerGet,genReceive): pass size of
5861             function result to assignResultValue
5862           (genMult): disabled inlined multiplication code
5863           (genDiv): augmented to also handle the modulus operator, fixed to
5864             handle mixed-signed operands correctly
5865           (genMod): simply call genDiv, disabled unused code
5866           (genAssign): fixed missing (sign-)extension on result
5867         * src/pic16/main.c (_hasNativeMulFor): accept literals [-128..256) as
5868             valid char operands, allow signed operands for native code, added
5869             division and modulo operator handling
5870         * device/lib/pic16/libsdcc/char/divschar.c: divschar returns an int
5871
5872         As a consequence, onebyte.c (if split into two files) and muldiv.c
5873         pass regression tests.
5874
5875 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5876
5877         * doc/Makefile.in: two runs of makeindex seem needed to get
5878         correct page references in the index of sdccman.pdf
5879         * doc/sdccman.lyx: mentioned cmon51, added links, small changes
5880
5881 2006-06-17 Borut Razem <borut.razem AT siol.net>
5882
5883         * sdcc/device/lib/Makefile.in: corrected PORTINCDIR path
5884
5885 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5886
5887         * doc/sdccman.lyx: updated, added (porting source code, debugging),
5888         mentioned ec2drv and paulmon
5889
5890 2006-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
5891
5892         * as/mcs51/lkarea.c (lnkarea2): clear new xdatamap, bugfix for two
5893           consecutive abs areas
5894           (find_empty_space, allocate_space): added map to handle codemap or
5895            xdatamap,
5896           (lnksect2): renamed rloc to locIndex, fixed bug 960060 by handling
5897            absolute idata and xdata
5898         * as/mcs51/lkmem.c (summary2): updated legend
5899
5900 2006-06-16 Raphael Neider <rneider AT web.de>
5901
5902         * src/pic16/gen.c (shiftR2Left2Result): fixed bug #1507127
5903
5904 2006-06-13 Maarten Brock <sourceforge.brock AT dse.nl>
5905
5906         * debugger/mcs51/cmd.c (cmdListFunctions): fixed bugs 1181163 and
5907           1208515
5908         * src/SDCClrange.c (findPrevUse): fixed bug 1294475
5909
5910 2006-06-13 Vangelis Rokas <vrokas AT users.sourceforge.net>
5911
5912         * src/port.h (struct PORT): added field gp_tags, to hold the tag
5913         value of generic pointers,
5914         * src/avr/main.c,
5915           src/ds390/main.c,
5916           src/hc08/main.c,
5917           src/izt/i186.c,
5918           src/izt/tlcs900h.c,
5919           src/mcs51/main.c,
5920           src/pic/main.c,
5921           src/pic16/main.c,
5922           src/xa51/main.c,
5923           src/z80/main.c: PORT structure, added elements for gp_tags field,
5924         * src/SDCCsymt.h: replaced hardwired values of GPTYPE_* macros with
5925         fields in the PORT structure of each port,
5926         * src/SDCCast.c (decorateType): allow processing of generic pointers
5927         for PIC16 port (FPTRSIZE equals GPTRSIZE), also set GPTYPE_NEAR for
5928         S_FIXED symbols
5929
5930 2006-06-12 Maarten Brock <sourceforge.brock AT dse.nl>
5931
5932         * link/z80/lkgb.c,
5933         * link/z80/lkgg.c,
5934         * src/pic16/gen.c,
5935         * src/pic16/main.c,
5936         * src/pic16/pcode.c,
5937         * src/pic/main.c,
5938         * src/pic/pcoderegs.c,
5939         * src/SDCCicode.c,
5940         * src/SDCCmain.c,
5941         * src/SDCCsymt.c: replaced all exit(-1) by exit(EXIT_FAILURE) to fix
5942           bug 1504689 on minGW
5943
5944 2006-06-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5945
5946         * device/lib/printf_tiny.c: fixed bug #1465675 (%x format specifier)
5947
5948 2006-06-12 Bernhard Held <bernhard AT bernhardheld.de>
5949
5950         * src/SDCCast.c (backPatchLabels): fixed bug #1504636
5951
5952 2006-06-11 Maarten Brock <sourceforge.brock AT dse.nl>
5953
5954         * device/lib/printf_large.c (OUTPUT_CHAR, _output_char): added and used
5955           for optimization
5956
5957 2006-06-11 Vangelis Rokas <vrokas AT users.sourceforge.net>
5958
5959         * src/pic16/gen.c (genCast): fixed bug with assignment of a pointer
5960         to a char variable. Fixed bug #1504211
5961         * device/include/pic16/adc.h,
5962         device/include/lib/pic16/libio/adc/adcopen.c: applied patch #1364387
5963         and fixed bug #1364390
5964
5965 2006-06-10 Borut Razem <borut.razem AT siol.net>
5966
5967         * CVSROOT: removed the CVS left-over
5968
5969 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
5970
5971         * as/hc08/asmain.c (asexit),
5972         * as/hc08/lkmain.c (lkexit),
5973         * as/mcs51/asmain.c (asexit),
5974         * as/mcs51/lkmain.c (lkexit),
5975         * src/SDCCglue.c (DEFSETFUNC),
5976         * src/SDCCmain.c (linkEdit, assemble),
5977         * support/librarian/sdcclib.c (AddRel),
5978           replaced unlink() by standard C remove()
5979         * src/SDCC.y: replaced removePostIncDecOps() by createRMW()
5980         * src/SDCCast.c (replaceAstWithTemporary, createRMW,
5981           gatherImplicitVariables): new, added to fix bug 608752,
5982           (createFunction): added gatherImplicitVariables()
5983         * src/SDCCast.h: added createRMW prototype
5984         * src/SDCCsymt.h (struct symbol): added infertype
5985         * support/regression/tests/bug608752.c: new, added
5986
5987 2006-06-10 Raphael Neider <rneider AT web.de>
5988
5989         * src/pic16/gen.c (pic16_aopOp): use WREG as destination even for
5990           multibyte dummy reads (fixes #1503234)
5991
5992 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
5993
5994         * device/include/mcs51/compiler.h: new, added header file to enable
5995           creating common sfr definition header files for different compilers
5996
5997 2006-06-05 Raphael Neider <rneider AT web.de>
5998
5999         * src/pic16/{pcode.h,genarith.c}:
6000           introduced pCodeOp combining any two pCodeOps (previously only
6001           two register operands could be combined), removed pcop2 from
6002           pCodepReg, replaced pCodeOpReg2 with pCodeOp2, fixes #1492366
6003         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): added case for PO_TWO_OPS
6004         * src/pic16/gen.c (pic16_popGet2,pic16_popGet2p,pic16_popCombine2):
6005           rewritten to use new PO_TWO_OPS
6006         * src/pic16/main.c (_hasNativeMulFor): cover more cases natively,
6007         * src/pic16/pcode.c (pic16_newpCodeOpImmd): initialize rIdx field,
6008           (pic16_newpCodeOp): catch invalid attempts on PO_TWO_OPS,
6009           (pic16_newpCodeOp2): NEW, create combined pCodeOp,
6010           (pic16_get_op): embraced return arg to allow #define return(x),
6011             added new case for combined opcodes
6012           (pic16_get_op2): reduced to use pic16_get_op() on second pCodeOp,
6013           (pic16_pCode2str,pic16_getRegFrompCodeOp,
6014            pic16_getRegFromInstruction2): fixed/added handling of new pCodeOp
6015
6016 2006-06-04 Bernhard Held <bernhard AT bernhardheld.de>
6017
6018         * src/SDCCval.c (checkConstantRange): added
6019         * src/SDCCval.h: added checkConstantRange
6020         * support/Util/SDCCerr.c,
6021         * support/Util/SDCCerr.h: replaced unused W_IF_NEVER_TRUE and
6022         W_IF_ALWAYS_TRUE by W_COMP_RANGE and W_LIT_OVERFLOW
6023         * src/SDCC.y: moved early 'condition transformations' to SDCCast.c
6024         * src/SDCCast.c (decorateType): added checkConstantRange,
6025         added 'condition transformations' from SDCC.y so that now W_COMP_RANGE
6026         can be emitted with the correct always true/false warning,
6027         added optimization for double '!';
6028         result of decorateType() must be assigned back to the tree, because
6029         decorateType() can change the tree
6030         * src/SDCCicode.c (geniCodeLogic),
6031         (geniCodeAssign): replaced new checkConstantRange, added warnings,
6032         (checkConstantRange): removed, it was only a fragment which never
6033         emitted a warning
6034         * src/SDCCsymt.c (computeType): fixed promotion for
6035         "-1 < (unsigned bit) b"
6036         * src/pic/ralloc.c (packRegsForAssign),
6037         * src/pic16/ralloc.c (packRegsForAssign),
6038         * src/hc08/ralloc.c (packRegsForAssign),
6039         * src/z80/ralloc.c (packRegsForAssign): ported fix for bug #930931
6040         from mcs51
6041         * src/mcs51/ralloc.c (packRegsForAssign): removed outcommented source
6042         * support/regression/tests/constantRange.c: added
6043         * support/valdiag/tests/constantRange.c: added
6044         * support/valdiag/valdiag.py: added -DPORT_HOST=1
6045
6046 2006-06-02 Borut Razem <borut.razem AT siol.net>
6047
6048         * support/regression/ports/pic16/support.c: increase stack size
6049           to 255 bytes
6050         * support/regression/Makefile.in: sort tests by name so that the
6051           resutlts can be compared on different machines / platforms
6052
6053 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
6054
6055         * device/lib/printf_large.c (output_digit): optimized further, Tnx Frieder
6056         * src/ds390/gen.c (emitLabel): new, added,
6057           (genDjnz): fixed stack overflow bug,
6058           (throughout): cosmetic changes to sync with mcs51/gen.c,
6059           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl)
6060         * src/mcs51/gen.c (genEndFunction): small optimization,
6061           (throughout): cosmetic changes to sync with ds390/gen.c
6062
6063 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
6064
6065         * device/lib/printf_large.c (output_digit, calculate_digit): optimized,
6066           (_print_format): fixed printing pointers
6067         * src/mcs51/gen.c (emitLabel, movb): new, added,
6068           (genAssign): small optimization,
6069           (genDjnz): fixed stack overflow bug,
6070           (throughout): replaced sprintf with SNPRINTF,
6071           replaced mcs51_regWithIdx with REG_WITH_INDEX,
6072           replaced emitcode("mov", "b,...") with MOVB(...),
6073           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl),
6074           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
6075         * src/mcs51/peeph.def: added rules 140 and 264
6076         * src/SDCCmem.c (allocLocal): store register declared locals in DSEG/OSEG
6077           so they may get optimized into registers
6078
6079 2006-05-30 Maarten Brock <sourceforge.brock AT dse.nl>
6080
6081         * src/SDCCmain.c (optionsTable, parseCmdLine): handle --use-stdout
6082           immediately when encountered,
6083           (printUsage): always use stderr even on windows
6084
6085 2006-05-30 Bernhard Held <bernhard AT bernhardheld.de>
6086
6087         * src/SDCCast.c (isLoopCountable): fixed bug #1478316
6088         (processParms): fixed bug #1247551
6089         * src/SDCCmain.c (printVersionInfo, printOptions, printUsage,
6090         parseCmdLine, main): print '--version' to stdout,
6091         print 'help' to stdout if --help is given,
6092         print 'help' to stderr and exit with EXIT_FAILURE if no or bad
6093         arguments are given; fixed --help
6094
6095 2006-05-27 Bernhard Held <bernhard AT bernhardheld.de>
6096
6097         * src/SDCCcse.c (findPointerSet): fixed bug #1493710
6098         * support/regression/tests/bug-1493710.c: added
6099
6100 2006-05-27 Borut Razem <borut.razem AT siol.net>
6101
6102         * support/regression/fwk/lib/testfwk.c: define array in _printn() as
6103           static instead auto
6104         * support/regression/ports/pic16/support.c: increase stack size
6105           from default 64 bytes to 128 bytes
6106         * support/regression/tests/staticinit.c,
6107           support/regression/tests/float.c: regression tests fully enabled
6108           for pic16 port by putting the initialized data arrays into the code
6109           section
6110         * support/regression/ports/pic16/spec.mk: don't link default libraries.
6111           This was changed by mistake in the previous version.
6112
6113 2006-05-28 Vangelis Rokas <vrokas AT users.sourceforge.net>
6114
6115         * src/pic16/gen.c (genFunction, genEndFunction): some
6116         beautifications, fixed bug with falsely restoring FSR2 in large
6117         stack model, thanks to Beau E. Cox for reporting the bug
6118
6119 2006-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
6120
6121         * debugger/mcs51/break.c,
6122         * debugger/mcs51/cmd.c (throughout): removed unused variables and labels,
6123           use %p to print pointers, made address variables unsigned
6124         * debugger/mcs51/cmd.c (infoSymbols): added missing parameter to printf
6125         * debugger/mcs51/symtab.c (parseSymbol): must return something
6126         * src/mcs51/gen.c (aopForSym): small optimization,
6127            moved declarations mcs51_ptrRegReq and mcs51_nRegs to ralloc.h,
6128           (freeAsmop): added missing break,
6129           (aopPut): removed parameter bvolatile, determine it inside the function,
6130           (saveRegisters, unsaveRegisters): small optimization,
6131           (genIpush): removed pointless check,
6132           (throughout): replaced Safe_calloc, strcpy with Safe_strdup,
6133           replaced sprintf with SNPRINTF,
6134           replaced strcpy with strncpyz,
6135           updated aopPut calls,
6136           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
6137         * src/mcs51/ralloc.h:  added declarations mcs51_ptrRegReq and mcs51_nRegs
6138
6139 2006-05-24 Borut Razem <borut.razem AT siol.net>
6140
6141         * support/regression/tests/bug-221100.c: fixed xdata problem caused by
6142           modification of test for the pic16 port, put the array to the code
6143           memory for pic16port; thanks to Maarten Brock and Frieder Ferlemann
6144
6145 2006-05-23 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
6146
6147         * src/pic/gen.c: MSC 6 does not have <stdint.h>.  Use pstdint.h instead.
6148         * support/Util/pstdint.h: added
6149
6150 2006-05-22 Borut Razem <borut.razem AT siol.net>
6151
6152         * src/regression/Makefile: removed bool2.c test, added -q linker option
6153         * src/regression/add2.c, src/regression/add3.c, src/regression/bool1.c,
6154           src/regression/bool3.c, src/regression/nestfor.c, src/regression/ptrfunc.c,
6155           src/regression/compare.c, src/regression/or1.c, src/regression/compare2.c,
6156           src/regression/while.c, src/regression/compare3.c, src/regression/compare4.c,
6157           src/regression/compare5.c, src/regression/sub2.c, src/regression/rotate1.c,
6158           src/regression/rotate2.c, src/regression/rotate3.c, src/regression/rotate4.c,
6159           src/regression/switch1.c, src/regression/rotate5.c, src/regression/for.c,
6160           src/regression/add.c, src/regression/sub.c, src/regression/call1.c:
6161           define SUPPORT_BIT_TYPES 0, removed unused bit variables
6162
6163 2006-05-22 Raphael Neider <rneider AT web.de>
6164
6165         * src/pic16/gen.c (pic16_storeForReturn): fragile fix for
6166           bug #1492360 (problematic due to generic pointers, see code)
6167
6168 2006-05-22 Borut Razem <borut.razem AT siol.net>
6169
6170         * support/regression/ports/pic16/specs.mk: removed stack size linker
6171           directive
6172         * support/regression/tests/array.c,
6173           support/regression/tests/bitopcse.c,
6174           support/regression/tests/bug-908454.c,
6175           support/regression/tests/malloc.c: modified for pic16 regression test
6176         * support/regression/tests/bitfields.c:
6177           pic16 - excluded bitfileds of size > 8
6178         * support/regression/tests/bp.c: pic16 - reduced data size
6179         * support/regression/tests/bug-221100.c: pic16 - reduced data size
6180         * support/regression/tests/bug-460010.c:
6181           pic16 - used the absolute address the fits in memory
6182         * support/regression/tests/bug-716242.c:
6183           bug [ 1443651 ] pic 16: redefining symbol that cannot be redefined.
6184         * support/regression/tests/float.c:
6185           pic16 - excluded - data size too big
6186         * support/regression/tests/onebyte.c:
6187           pic16 - bug [ 1444425 ] onebyte.c regression tes fails on pic16
6188         * support/regression/tests/shifts.c:
6189           pic16 - function names probably have to differ in first X characters
6190           (gpasm limitation?)
6191         * support/regression/tests/staticinit.c:
6192           pic16 - excluded some tests due error: no target memory available for
6193           section ".idata"
6194
6195 2006-05-22 Borut Razem <borut.razem AT siol.net>
6196
6197         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
6198           second try. Thanks Stas Sergeev once more.
6199
6200 2006-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
6201
6202         * src/hc08/gen.c (transferAopAop): aop forced to stack was not restored,
6203           (genLeftShift, genRightShift): fixed bug 1491627
6204         * src/hc08/peeph.def (rules 7, 8.x): added
6205         * support/regression/tests/shifts.c (ShiftLeftByParam,
6206           ShiftRightByParam, testShiftByParam): added to test variable shifting
6207
6208 2006-05-20 Raphael Neider <rneider AT web.de>
6209
6210         * src/pic/gen.c (bitpatternFromVal): fixed for 64-bit machines
6211         * src/pic16/ralloc.c (newReg): use correct name in hashtable,
6212           (allocReg): add only new registers to dynAllocRegs,
6213           (pic16_assignRegisters): do not reset dynrIdx, fixes bugs
6214             #1489055, #1445850, and probably #1483693
6215
6216 2006-05-19 Vangelis Rokas <vrokas AT users.sourceforge.net>
6217
6218         * src/pic16/glue.c (pic16_emitConfigRegs, pic16_emitIDRegs): fixed
6219         bug in for-loop that didn't emit the last of CONFIG and ID registers
6220
6221 2006-05-18 Maarten Brock <sourceforge.brock AT dse.nl>
6222
6223         * src/mcs51/gen.c (genCodePointerGet): inc dptr instead of loading acc
6224           with offset
6225         * src/mcs51/peeph.def (186.x): updated and reenabled to fix bugs
6226           1489016, 1434401 and 1490124
6227         * src/ds390/peeph.def (186.x, 227.x): updated and reenabled to fix bugs
6228           1489016, 1434401 and 1490124
6229
6230 2006-05-17 Borut Razem <borut.razem AT siol.net>
6231
6232         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
6233           thanks Stas Sergeev
6234
6235 2006-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
6236
6237         * device/include/mcs51/P89c51RD2.h,
6238         * device/include/mcs51/P89LPC901.h,
6239         * device/include/mcs51/P89LPC922.h,
6240         * device/include/mcs51/P89LPC932.h: added, thanks Omar Espinosa
6241
6242 2006-05-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
6243
6244         * device/lib/pic16/libsdcc/stack/{stack.S, Makefile.in}: add workaround
6245         to fix missing stack pragma in compiled binary object file,
6246
6247 2006-05-14 Bernhard Held <bernhard AT bernhardheld.de>
6248
6249         * support/packihx/configure.in,
6250         * support/packihx/configure: removed warning, autoconf >= 2.5x can
6251         determine sizeof basic types even while cross compiling
6252
6253 2006-05-13 Bernhard Held <bernhard AT bernhardheld.de>
6254
6255         * src/avr/gen.c (aopop),
6256         * src/ds390/gen.c (aopOp),
6257         * src/hc08/gen.c (aopOp),
6258         * src/mcs51/gen.c (aopop),
6259         * src/pic16/gen.c (pic16_aopOp),
6260         * src/pic/gen.c (aopOp),
6261         * src/z80/gen.c (aopop): fix for bug #1479882; use new, exclusive asmop
6262         if size of operand is smaller than spill location
6263
6264 2006-05-12 Borut Razem <borut.razem AT siol.net>
6265
6266         * *.dsw, *.dsp: changed property svn:eol-style to CRLF since they
6267           have to have CR/LF line endings even if they are checked out on *nix
6268           or on WIN32 in cygwin binmode
6269
6270 2006-05-12 Maarten Brock <sourceforge.brock AT dse.nl>
6271
6272         * doc/sdccman.lyx: documented numeric ranges, WEBDOC #1442369
6273         * device/include/ds80c390.h: added sfr16 definitions
6274         * src/ds390/gen.c,
6275         * src/ds390/gen.h,
6276         * src/ds390/main.c,
6277         * src/ds390/ralloc.c,
6278         * src/ds390/ralloc.h: changes all over the place to sync with mcs51
6279           fixing several bugs and adding sfr16/sfr32, reentrant bit params,
6280           bit returning functions
6281         * support/regression/tests/sfr16.c: enabled test on ds390
6282
6283 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6284
6285         * src/hc08/gen.c (asmopToBool, genIfx): fix for bug #1429722
6286         * src/hc08/gen.c (storeRegToAop): fix for bug #1439894
6287
6288 2006-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
6289
6290         * sim/ucsim/sim.src/memcl.h: added get_decoder() to cl_address_space
6291         * sim/ucsim/sim.src/mem.cc: implemented cl_address_space::get_decoder,
6292           (cl_address_space constructor): removed expensive initialization,
6293           (cl_address_space::get_cell): extended for late initialization,
6294           (cl_address_space::*): use late initialization,
6295           (cl_address_decoder::activate): removed expensive initialization,
6296           This reduced regression test running time by 25%
6297
6298 2006-05-11 Bernhard Held <bernhard AT bernhardheld.de>
6299
6300         * packihx/,
6301         * configure.in,
6302         * configure,
6303         * sdcc.dsw,
6304         * Makefile.bcc,
6305         * Makefile.in,
6306         * support/packihx/Makefile.in,
6307         * support/packihx/clean.mk,
6308         * support/packihx/Makefile.bcc,
6309         * support/packihx/PackIhx.dsp: moved packihx to support/packihx
6310
6311 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6312
6313         * src/SDCCval.c (valNot): fix for regression test failure
6314           of not.c on big endian hosts
6315
6316 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
6317
6318         * device/inlcude/mcs51/msc1210.h: new, added, thanks Philippe Latu
6319
6320 2006-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6321
6322         * device/lib/mcs51/Makefile.in: changed string comparison operator
6323           to = for POSIX compliance; == is bash extension
6324
6325 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
6326
6327         * device/lib/hc08/_mulint.c: applied patch 1485428, thanks
6328           kosmonaut_pirx
6329
6330 2006-05-09 Vangelis Rokas <vrokas AT users.sourceforge.net>
6331
6332         * src/pic16/gen.c (pic16_freeAsmop): release any temp registers
6333         allocated by aopForSym thus fixing bug #1478657 about failed testfwk.c
6334         * src/pic16/main.c (_pic16_keywords): added 'sfr16' keyword,
6335         * src/pic16/ralloc.c (pic16_allocWithIdx): also a fix for bug exposed by
6336         bug report #1478657,
6337
6338 2006-05-05 Borut Razem <borut.razem AT siol.net>
6339
6340         * doc/Makefile.in: remove of WARNINGS and labels.pl immediately after
6341           making the html
6342
6343 2006-05-02 Borut Razem <borut.razem AT siol.net>
6344
6345         * doc/Makefile.in: removed *.ind dependency since there is no rule to
6346           create *.ind, which made make to fail if invoked with -j 2
6347
6348 2006-05-01 Maarten Brock <sourceforge.brock AT dse.nl>
6349
6350         * src/SDCCglue.c (emitRegularMap): partial fix for bug 1477149, thanks
6351           Hubert Sack for patch 1479782
6352
6353 2006-05-01 Vangelis Rokas <vrokas AT users.sourceforge.net>
6354
6355         * src/pic16/glue.c (pic16_printIvalStruct): fixed bug #1445929
6356
6357 2006-05-01 Raphael Neider <rneider AT web.de>
6358
6359         * src/pic/device.c (sanitise_processor_name): only remove p(ic) prefix,
6360           (create_pic): store only prefix-free device name,
6361           (init_pic): check for device names with "16" prefix,
6362           (list_valid_pics),
6363         * src/pic/device.h (struct PIC_device),
6364         * src/pic/main.c (_pic14_genAssemblerPreamble): adapted to single
6365             stored device name,
6366         * device/include/pic/pic12f{635,675,629,683}.h,
6367         * device/lib/pic/libdev/pic12f{635,675,629,683}.c: NEW device libraries
6368         * device/lib/pic/libdev/Makefile.in: allow pic12* devices,
6369         * device/include/pic/pic16f505.h,
6370         * device/lib/pic/libdev/pic16f505.c: removed
6371         * device/include/pic/pic14devices.txt: added support for pic12f
6372             devices, removed unsupported non 16-bit devices
6373             [above changes provided by patch from Zik Saleeba]
6374         * src/pic/*, src/pic16/*, device/include/pic16/*,
6375           device/lib/pic/**, device/lib/pic16/**: obfuscated email address
6376
6377 2006-05-01 Borut Razem <borut.razem AT siol.net>
6378
6379         * configure.in, configure, doc/Makefile.in:
6380           sync with nightly build makefile - latex, dvipdf and dvips
6381           not needed any more
6382
6383 2006-04-30 Bernhard Held <bernhard AT bernhardheld.de>
6384
6385         * support/scripts/sdcc.nsi: removed all Readmes and Makefiles
6386         in the library source
6387
6388 2006-04-30 Maarten Brock <sourceforge.brock AT dse.nl>
6389
6390         * support/regression/ports/hc08/spec.mk: fixed bug 1478892
6391
6392 2006-04-28 Raphael Neider <rneider AT web.de>
6393
6394         * src/pic16/pcode.c (pic16_newpCodeOpLit12),
6395         * src/pic16/gen.c (pic16_popGetLit12): NEW, create 12 bit literal,
6396           (pic16_loadFSR0): handle 12 bit literals correctly, fixes #1440527
6397         * src/pic16/pcode.h: added prototype for pic16_newpCodeOpLit12()
6398
6399 2006-04-28 Bernhard Held <bernhard AT bernhardheld.de>
6400
6401         * device/lib/pic/libdev/Makefile.in,
6402         * device/lib/hc08/Makefile.in,
6403         * device/lib/gbz80/Makefile.in,
6404         * device/lib/z80/Makefile.in,
6405         * device/lib/ds390/Makefile.in,
6406         * device/lib/ds400/Makefile.in: added srcdir to include search path,
6407         thanks to Borut for the bug report
6408         * configure.in,
6409         * configure: always create doc/Makefile independent from --enable-doc
6410         * Makefile.in: always install from directory doc independent from
6411         --enable-doc
6412         * device/lib/pic/Makefile.in: added libdev again, it was erroneously
6413         removed
6414         * device/lib/pic/libdev/Makefile.in: fixed VPATH build
6415         * doc/Makefile.in: install *.txt if present
6416         * device/include/Makefile.in (install): added installation of pic/*.inc
6417         and pic/*.txt files again, they were erroneously removed
6418
6419 2006-04-28 Raphael Neider <rneider AT web.de>
6420
6421         * src/pic/{gen.c,main.h,pcode.c},
6422         * src/pic16/{gen.c,pcode.c}: quietened compiler warnings
6423             concerning signedness with casts
6424
6425 2006-04-28 Raphael Neider <rneider AT web.de>
6426
6427         * src/pic/gen.c (genFunction): set global pic14_hasInterrupt on
6428             definition of an interrupt handler,
6429         * src/pic/glue.c (pic14_emitInterruptHandler): moved output of
6430             interrupt handler stuff from picglue() to separate routine,
6431           (picglue): enabled definition of intr handlers in files w/o main()
6432
6433 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
6434
6435         * support/librarian/sdcclib.c: moved include <limits.h> up to enable
6436           compilation with MSVC 2005 Express Edition (VC8)
6437
6438 2006-04-26 Bernhard Held <bernhard AT bernhardheld.de>
6439
6440         * device/lib/Makefile: fixed build of gbz80 lib
6441
6442 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
6443
6444         * support/regression/tests/bug-460010.c,
6445         * support/regression/tests/bug-524691.c,
6446         * support/regression/tests/bug-716242.c: removed conditional defines
6447           that are already in testfwk.h
6448
6449 2006-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
6450
6451         * src/ds390/gen.c (AccAXRrl1, AccAXLrl1): changed to real rotate by 1,
6452           (AccAXRsh1): added, shift right by 1,
6453           (AccAXLsh, AccAXRsh, AccAXRshS): updated for AccAXRrl1, AccAXRsh1 and
6454            AccAXLrl1
6455         * support/regression/tests/rotate.c: use <stdint.h> and enabled ds390
6456
6457 2006-04-25 Bernhard Held <bernhard AT bernhardheld.de>
6458
6459         * src/SDCCast.c (decorateType): partial fix for RFE 1475769,
6460         remove cast to same type
6461         * src/SDCCast.c (decorateType): fix for RFE 1475742,
6462         optimize 'ifx (op == 0)' resp. 'ifx (op != 0)'
6463         * as/z80/Makefile,
6464         * link/z80/Makefile: removed, they have moved to
6465         Makefile.in files
6466         * configure,
6467         * configure.in: replaced duplicate message about ucsim by missing sdcpp
6468         * install-sh: fix bug #1204398 by setting umask 0022
6469         * device/lib/Makefile: separate build of z80 and gbz80 lib
6470
6471 2006-04-24 Bernhard Held <bernhard AT bernhardheld.de>
6472
6473         Enabled VPATH feature: changed nearly all Makefiles (149 files).
6474         See sdccman.lyx '2.4.10 VPATH feature' about how to use it.
6475
6476         One basic decision: e.g. src/clean.mk includes further files. In order
6477         to make this work there are two solutions:
6478         - rename another dozen clean.mk to clean_in.mk, add srcdir to them and
6479           run configure on them. This way they can use
6480           'include $(srcdir)/port-clean.mk'
6481         - always include clean.mk by the Makefile at the same level. To avoid
6482           that `make clean` tries to include and build Makefile.dep the
6483           MAKECMDGOALS are examined (see e.g. src/Makefile.in). This has been
6484           implemented, because now even `make uninstall` doesn't create
6485           Makefile.in. clean.mk could be eliminated by pasting it in
6486           Makefile.in.
6487
6488         * debugger/mcs51/Makefile.in: build own objects from library sources
6489         (SLIB, SDCC) in current directory
6490
6491         * configure, configure.in: renamed --disable-device-lib-build in
6492         --disable-device-lib; added --enable-doc, the required tools are
6493         searched by configure; added result message; the toolchain for the
6494         belonging ports are now only built, if the port is enabled.
6495
6496         * support/regression/*: all output is written in directory gen, because
6497         the fwk and ports directories don't livet in the build tree using vpath
6498
6499         * doc/sdccman.lyx: renamed --disable-device-lib-build to
6500         --disable-device-lib, added --enable-doc, added section VPATH
6501
6502         * sim/ucsim/configure.in,
6503         * sim/ucsim/configure.in: hc08 couldn't be disabled, now hc08 and
6504         z80 are enabled by default
6505
6506 2006-04-24 Raphael Neider <rneider AT web.de>
6507
6508         * src/pic/device.c (pic14_assignConfigWordValue): remember assignments
6509             to config word, "pic14_"-prefixed some extern functions
6510           (pic14_emitConfigWord): emit __config directive(s) if assignment to
6511             config word has been found
6512         * src/pic/device.h: added prototypes
6513         * src/pic/pcode.c: added "pic14_"-prefix where needed
6514         * src/pic/ralloc.c (IS_CONFIG_ADDRESS,pic14_assignRegisters): cosmetic
6515             fixup
6516         * src/pic/glue.c (pic14_constructAbsMap): handle assignments to config
6517             words,
6518           (pic14emitRegularMap): ignore config words,
6519           (pic14createInterruptVect): moved generating __config directives away
6520           (picglue): have __config directives emitted
6521
6522 2006-04-24 Borut Razem <borut.razem AT siol.net>
6523
6524         * doc/Makefile: sync with nightly build makefile
6525
6526 2006-04-24 Raphael Neider <rneider AT web.de>
6527
6528         * src/pic/pcoderegs.c (OptimizeRegUsage): do not optimize
6529             registers that have not been assigned proper liveranges,
6530             fixes #1469504 and #1474602,
6531           (pCodeRegOptimizeRegUsage): fixed typo in comment
6532
6533 2006-04-24 Borut Razem <borut.razem AT siol.net>
6534
6535         * device/examples/main8051.c: deleted - it was removed from CVS
6536           24.mar.2000 and after that modified 18.feb.2001, so it reappered
6537           after the transition to Subversion
6538         * src/SDCCalloc.h: deleted - it was removed  from CVS
6539           3.feb.2001 and after that modified 18.feb.2001, so it reappered
6540           after the transition to Subversion
6541         * sim/ucsim/cpu.gif, sim/ucsim/interrupt.gif, sim/ucsim/new.gif,
6542           sim/ucsim/serial1.gif, sim/ucsim/serial2.gif,
6543           sim/ucsim/term_cpuopt.gif, sim/ucsim/timers.gif, sim/ucsim/wins.gif,
6544           sim/ucsim/post.jpg, sim/ucsim/UCsim.jpg: corrected
6545
6546 2006-04-22 Maarten Brock <sourceforge.brock AT dse.nl>
6547
6548         * as/asx8051.dsp: added mcs51/strcmpi.h
6549         * as/hc08/as_hc08.dsp: added asm.h, m6808.h, strcmpi.h
6550         * as/hc08/aslink.h: updated lnksect prototype
6551         * as/hc08/asm.h,
6552         * as/mcs51/asm.h: added a_addr to struct area and s_org to struct sym
6553         * as/hc08/asmain.c,
6554         * as/mcs51/asmain.c (asmbl): init dot.s_org for S_ORG,
6555           (newdot): handle A_ABS
6556         * as/hc08/asout.c,
6557         * as/mcs51/asout.c (outarea): output address
6558         * as/hc08/lkaomf51.c,
6559         * as/mcs51/lkaomf51.c: disabled unused array UsageType
6560         * as/hc08/m08pst.c,
6561         * as/mcs51/i51pst.c,
6562         * as/z80/z80pst.c: "ABS" is not A_OVR
6563         * as/hc08/lkarea.c (newarea): read a_addr,
6564           (lnkarea): added codemap array, sort absolute areas to the front,
6565            combine all GSINITx/GSFINAL,
6566           (find_empty_space, allocate_space): new functions,
6567           (lnksect): return next address, handle absolute sections
6568         * as/mcs51/lkarea.c (newarea): read a_addr,
6569           lnksect2 prototype changed,
6570           (lnkarea2): define codemap unsigned, combine all GSINITx/GSFINAL,
6571           (find_empty_space, allocate_space): new, factored out of lnksect2,
6572           (lnksect2): return next address, handle absolute sections
6573         * as/hc08/lkhead.c,
6574         * as/mcs51/lkhead.c (newhead): head is absolute but not overlay
6575         * as/hc08/lklibr.c (addfile, fndsym),
6576         * as/mcs51/lklibr.c (addfile, buildlibraryindex, fndsym): prevent
6577           index out of range and detect both '\' and '/'
6578         * device/include/mcs51/c8051f200.h: added _XPAGE, removed bad comment
6579         * device/include/stdbool.h: removed SDCC_ds390 from check to pass
6580           regression tests (ds390 cannot return bool yet)
6581         * doc/sdccman.lyx: changed version number, document changed --no-peep,
6582           document critical interrupts on z80, document changed SDCC define
6583         * src/asm.c (_asxxxx_mapping): fixed .org directive,
6584           (_a390_mapping): added .org directive
6585         * src/hc08/gen.c (transferAopAop): made bytemask log to fix warning,
6586           (genMultOneByte): fixed warnings
6587         * src/hc08/hc08.dsp: lowered warning level to 2 to suppress pedantic
6588           ones
6589         * src/pic16/device.c: removed newReg prototype, removed BYTE_IN_LONG
6590         * src/pic16/gen.c (pic16_popGetLabel): made parameter key signed,
6591           (pic16_genLeftShiftLiteral, genRightShiftLiteral): fixed warnings
6592         * src/pic16/gen.h: changed prototype for pic16_popGetLabel
6593         * src/pic16/main.c: removed newReg prototype
6594         * src/pic16/pcode.c,
6595         * src/pic16/pcode.h (pic16_emitDB): changed parameter c to int to fix
6596           warnings
6597         * src/pic16/pic16.dsp: lowered warning level to 2 to suppress pedantic
6598           ones
6599         * src/pic16/ralloc.c
6600         * src/pic16/ralloc.h (newReg): changed type to int and size to unsigned
6601           to fix warnings
6602         * src/pic/pcode.c (allocInternalRegister): changed parameter optype
6603           from short to PIC_OPTYPE
6604         * src/pic/pic.dsp: lowered warning level to 2 to suppress pedantic ones
6605         * src/pic/ralloc.c (newReg, allocInternalRegister): changed parameter
6606           optype from short to PIC_OPTYPE
6607         * src/port.h: made int_size unsigned to fix warnings
6608         * src/SDCC.y: fixed warning on MSVC
6609         * src/SDCCicode.c (getArraySizePtr): return unsigned int
6610         * src/SDCCopt.c (convertToFcall): fixed warnings
6611         * src/SDCCsymt.h: removed double prototype for genSymName
6612         * src/xa51/ralloc.c (allocReg): made size unsigned int, type int and
6613           offset int to fix warnings
6614
6615 2006-04-22 Borut Razem <borut.razem AT siol.net>
6616
6617         * doc/sdccman.lyx, */Makefile, */Makefile.in:
6618           references to CVS replaced with Subversion
6619
6620 2006-04-21 Borut Razem <borut.razem AT siol.net>
6621
6622         * doc/sdccman.lyx, */Makefile, */Makefile.in:
6623           references to CVS replaced with Subversion
6624
6625 2006-04-19 Borut Razem <borut.razem AT siol.net>
6626
6627         * src/version.awk: adapted for svn
6628         * /asxxxx/asxhtml/*.gif: set property svn:mime-type to image/gif
6629           sim/ucsim/doc/*.gif: set property svn:mime-type to image/gif
6630           sim/ucsim/doc/*.jpg: set property svn:mime-type to image/jpeg
6631           /binutils-avr/etc/*.vi, *.jin: removed all properties
6632           support/scripts/sdcc.ico: set property svn:mime-type to image/x-icon
6633
6634 2006-04-19 Borut Razem <borut.razem AT siol.net>
6635
6636         * CVS to Subversion migration completed
6637
6638 2006-04-18 Borut Razem <borut.razem AT siol.net>
6639
6640         * support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}/lib/pic/*.o,
6641           ${DEV_ROOT}/lib/src/pic/libdev/*.S, ${DEV_ROOT}/lib/src/pic/libdev/*.inc
6642
6643 2006-04-17 Borut Razem <borut.razem AT siol.net>
6644
6645         * device/include/Makefile.in: added pic/*.inc to the installation
6646
6647 2006-04-15 Bernhard Held <bernhard AT bernhardheld.de>
6648
6649         * support/regression/collate-results.py: fixed output in case of
6650         a valdiag error
6651         * support/regression/generate-cases.py: fixed splitting of pathnames
6652         with dots
6653         * as/hc08/lklibr.c (addfile),
6654         * as/mcs51/lklibr.c (addfile): fixed off-by-one bug
6655
6656 2006-04-11 Raphael Neider <rneider AT web.de>
6657
6658         * src/pic16/gen.c (getFreePtr, pic16_popRegFromString),
6659         * src/pic16/ralloc.c (pic16_allocregWithName): removed debug output
6660         * src/pic16/pcode.c (assignValnums): fixed #1460578
6661
6662 2006-04-11 Raphael Neider <rneider AT web.de>
6663
6664         * device/lib/pic/libdev/*.c,
6665         * device/include/pic/*.h: replaced sfr and data with __sfr and __data,
6666           fixes #1468739, enables compilation in --std-c99 mode
6667         * support/scripts/inc2h.pl: emit __sfr/__data instead of sfr/data
6668
6669 2006-04-11 Raphael Neider <rneider AT web.de>
6670
6671         * src/pic/device.c (find_device): removed debug output
6672           (list_valid_pics): enabled verbose listing of supported devices
6673         * device/include/stdbool.h: define bool as char for pic14/16 as well
6674
6675 2006-04-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6676
6677         * src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)"
6678
6679 2006-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
6680
6681         * .version: bumped version to 2.5.6
6682         * src/pic/ralloc.c (newReg): MSVC doesn't support __builtin_return_address
6683
6684 2006-04-06 Raphael Neider <rneider AT web.de>
6685
6686         * .version: bumped version to 2.5.6 (pic14 ABI changed)
6687         * src/SDCCmain.c: add -DSDCC_PROCESSOR=<id> for pic14 port
6688         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap,
6689           pic14emitRegularMap,pic14emitMaps): moved output for absolute symbols to
6690             pic14_constructAbsMap
6691           (pic14printPublics): declare absolute global symbols as global
6692           (pic14createInterruptVect),
6693         * src/pic/ralloc.c (IS_CONFIG_ADDRESS): support second config word,
6694           (newReg): assume new registers unused, use correct name in
6695             hashtable (reg->name instead of name), more debugLog output
6696         * src/pic/device.h (PIC_device): added fields for verbose output
6697         * src/pic/device.c: moved device definition to pic14devices.txt,
6698             added routines for runtime parsing of pic14devices.txt,
6699             added support for second config word
6700         * src/pic/main.c (_process_pragma): removed #pragma maxram,
6701           (_pic14_keywords): no longer accept "bit" and "sbit" keywords
6702           (_pic14_initPaths): add search paths with "pic" suffix (not "pic14")
6703           (_pic14_parseOptions): moved pCodeInitRegisters here
6704           (_pic14_do_link): add "pic$(ARCH).lib" to linker arguments
6705         * src/pic/pcode.c (AnalyzeBanking): bail out on unset processor,
6706           (pCodeInitRegisters): rewrapped comments, perpared new approach to
6707             handling the pseudo stack
6708         * device/lib/Makefile.in: ignore failures in objects-pic16,
6709         * device/lib/pic/{configure,configure.in,Makefile}: added libdev/
6710         * device/lib/pic/NEWS: document new dependency on picXXX.lib
6711         * device/lib/pic/Makefile.subdir,
6712         * device/lib/pic16/Makefile.subdir: improved clean rules
6713         * device/lib/pic/libdev/: NEW, pic14 device libraries
6714         * device/lib/pic/libsdcc/_gptr{get,put}{1,2,3,4}.S: use _X not X
6715         * device/lib/pic/libsdcc/macros.inc: use _X not X, declare default SFRs
6716         * device/include/Makefile.in: create subdir and install pic14 headers
6717         * device/include/pic/p16f_common.inc: removed unused declarations
6718         * device/include/pic/pic16*.h: added header files for 100+ 14 bit
6719             PICs from inc2h.pl v1.6,
6720             replaced BIT_AT macros with struct declarations
6721         * device/include/pic/pic14devices.txt: definition of supported devices,
6722             all above improvements contributed by Zik Saleeba, thanks
6723         * support/scripts/inc2h.pl: removed BIT_AT, replaced with structs
6724         * support/scripts/sdcc.nsi: also install pic14 device libraries and
6725             headers
6726
6727 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
6728
6729         * device/include/mcs51/c8051f410.h: added interrupt numbers,
6730         * device/include/mcs51/c8051f200.h: old SiLabs mcu completes the list,
6731           thanks to Charles Olds
6732
6733 2006-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6734
6735         * debugger/mcs51/cmd.c (infoRegisters): show return address on stack
6736
6737 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
6738
6739         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug 1464657
6740         * src/mcs51/gen.c (genJumpTab): fixed bug in medium model
6741         * support/regression/bug1464657.c: added, new test
6742
6743 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
6744
6745         * src/SDCCmain.c (preProcess): implemented RFE 1449908, define SDCC as the
6746           version number
6747
6748 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
6749
6750         * src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
6751           --no-peep and --peep-file <file> are used don't use default rules but
6752           do use the <file>
6753
6754 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
6755
6756         * src/mcs51/gen.c (genCall): fixed bug 1457608
6757
6758 2006-03-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6759
6760         * doc/sdccman.lyx: reverted to version 1.129 of december as my latest
6761         changes seem to cause (trigger?) problems with the build system.
6762
6763 2006-03-29 Maarten Brock <sourceforge.brock AT dse.nl>
6764
6765         * src/SDCCpeeph.c (operandsLiteral): new, added,
6766           (callFuncByName): inserted operandsLiteral
6767         * src/mcs51/peeph.def: reenabled 132.e, added extra check to 132.x
6768
6769 2006-03-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6770
6771         * doc/sdccman.lyx: added paragraph "Use of SDCC in Education"
6772         * src/mcs51/peeph.def: disabled rule 132.e fixing bug #1453093
6773
6774 2006-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
6775
6776         * src/z80/gen.c (genFunction, genEndFunction): fixed bug 1160666,
6777           implemented patch 1120823 Thanks to Willy De la Court (normal
6778           interrupts need an interrupt number now if they are made critical),
6779           and enabled nesting of critical functions though not for gbz80
6780           (genCritical, genEndCritical): added functions
6781           (genZ80Code): added cases for CRITICAL and ENDCRITICAL
6782         * src/z80/mappings.i: added "ei" to all mappings
6783
6784 2006-03-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6785
6786         * sim/ucsim/cmd.src/newcmdcl.h: applied patch fixing GCC 4.1 build
6787         submitted by the Debian SDCC maintainer Aurelien Jarno:
6788         "Credits goes to Martin Michlmayr, who rebuilt the whole Debian
6789         archive with gcc 4.1 on mips and wrote the patch"
6790
6791 2006-03-16 Raphael Neider <rneider AT web.de>
6792
6793         * src/pic16/genarith.c (genAddLit): simplified and fixed case where
6794           the left operand is shorter than the result (c* = lit-c* + int),
6795           fixes bug #1450796
6796         * src/pic16/gen.c (genRightShift): check IS_SYMOP before accessing
6797           OP_SYMBOL
6798
6799 2006-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
6800
6801         * src/.version: increased version number to 2.5.5
6802         * src/SDCCmain.c (linkEdit): do not test for PIC16 target since, PIC16
6803         linking is done manually in pic16 port's _linkEdit,
6804         * src/SDCCsymt.c (compStructSize): for target PIC16 and shell variable
6805         PIC16_PACKED_BITFIELDS, compact bitfield structures as much as possible,
6806         * src/pic16/gen.c (aopForSym): when direct register name is WREG then
6807         allocate asmop as AOP_ACC,
6808         (aopForRemat): added parameter 'bool result' in function declaration,
6809         (pic16_aopGet): return AOP_ACC when accessing WREG,
6810         (pic16_popGetTempReg): minor modification,
6811         (pic16_popRegFromIdx): first try with 'pic16_regWithIdx' then with
6812         'pic16_allocWithIdx',
6813         (genPcall): removed ftype, usage of OP_SYM_TYPE asserted error when
6814         calling function in absolute addresses,
6815         (genAssign): take into account AOP_ACC asmop,
6816         * src/pic16/pcode.c (pic16_newpCodeOpReg): minor modifications,
6817         * src/pic16/pcoderegs.c: some debug functions and lines added,
6818         * src/pic16/ralloc.c (decodeRegType): added but commented out,
6819         * (pic16_typeRegWithIdx): search 'pic16_dynInternalRegs' for given
6820         register too,
6821         * (pic16_findFreeReg, pic16_findFreeRegNext): allocate new register via
6822         call to allocReg, not by manually allocating a new one,
6823         (pic16_assignRegisters): now before going through the register
6824         allocating functions mark all registers as free. This eliminates some
6825         side effects resulting from peephole parser done earlier in the backbone
6826
6827 2006-03-13 Maarten Brock <sourceforge.brock AT dse.nl>
6828
6829         * src/SDCCicode.c (geniCodeLogic),
6830         * src/SDCCast.c (decorateType): applied patch by Bernhard for rfe 1422617
6831
6832 2006-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
6833
6834         * src/mcs51/gen.c (sameReg): new, checks if two aop regs are the same,
6835           (genSend): bugfix, do not allocate and free twice,
6836           (shiftRLong): handle partially overlapping aops
6837         * support/regression/tests/bitopcse.c: fixed warning redefined idata
6838
6839 2006-03-08 Borut Razem <borut.razem AT siol.net>
6840
6841         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata
6842           for pic16
6843
6844 2006-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
6845
6846         * support/regression/tests/bug1409955.c: new, added
6847         * src/mcs51/gen.h: changed asmop.freed:1 to asmop.allocated for tracking
6848         * src/mcs51/gen.c (newAsmop): set asmop.allocated to 1,
6849           (aopForSym, aopOp): increment asmop.allocated if reused,
6850           (freeAsmop): decrement asmop.allocated and check for zero instead of
6851           using asmop.freed,
6852           (freeForBranchAsmop): use asmop.allocated instead of asmop.freed,
6853           (genNot, genCpl, genUminus, genMinus, genMult, genDiv, genMod, genCmpGt,
6854            genCmpLt, genAndOp, genOrOp, genAnd, genOr, genXor, genRRC, genRLC,
6855            genGetHbit, genGetAbit, genGetByte, genGetWord, genSwap,
6856            genLeftShiftLiteral, genLeftShift, genRightShiftLiteral,
6857            genSignedRightShift, genRightShift, genDataPointerGet,
6858            genPagedPointerGet, genFarPointerGet, genCodePointerGet,
6859            genGenPointerGet, genDataPointerSet, genAssign, genCast): free asmop's
6860             in reverse order from allocation,
6861           (genPlus, genCmpEq): free asmop's in reverse order from allocation and
6862             added swappedLR to keep track
6863         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata,
6864           pdata & code for GCC, z80, gbz80 & hc08
6865         * support/regression/tests/zeropad.c: moved defines to testfwk.h
6866
6867 2006-03-08 Raphael Neider <rneider AT web.de>
6868
6869         * src/pic16/main.c (_hasNativeMulFor): fixed bug #1444425
6870
6871 2006-03-07 Maarten Brock <sourceforge.brock AT dse.nl>
6872
6873         * device/include/mcs51/c8051f410.h: new SiLabs mcu
6874         * src/ds390/peeph.def: disabled 186.d and 227.a as fix for #1434401
6875         * support/regression/tests/array.c: added parenthesis, made arrays unsigned
6876
6877 2006-03-06 Borut Razem <borut.razem AT siol.net>
6878
6879         * support/regression/ports/pic16/spec.mk: link with libm18f.lib,
6880           made the linker quiet
6881
6882 2006-03-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
6883
6884         * src/pic16/gen.c (genPcall): fixed bug #1443644
6885         * src/pic16/device.h (struct pic16_options_t): added 'int CATregs' flag
6886         which dumps before the function entry point a data byte which represents
6887         the number of the local variables used by the specified function, added
6888         'xinst' for initial support for Extended Instruction Support,
6889         * src/pic16/gen.c (aopForSym, pic16_aopGet): beautifications,
6890         (pic16_testStackOverflow): do not prefix GSTACK_TEST_NAME with
6891         port->fun_prefix anymore (may change later),
6892         (genFunction, genEndFunction): do not store/restore local registers for
6893         _main (this should take care the --main-return command line option in
6894         the future),
6895         (genOr): removed some legacy pic-port instructions,
6896         * src/pic16/genarith.c (genAddLit): re-enabled old code because
6897         performing operations with SFR's causes data to be written more than
6898         once to each SFR. Perhaps SFRs should be handled in special cases...
6899         * src/pic16/glue.c: macros BIG_ENDIAN and BYTE_IN_LONG are moved to
6900         pcode.h
6901         * src/pic16/main.c (_process_pragma): stack bound checking did not take
6902         into account for stack starting position,
6903         (struct OPTIONS pic16_optionsTable): added command line argument
6904         --extended or -y for Extended Instruction Support,
6905         * src/pic16/ralloc.c (pic16_decodeOp): added case for FUNCTION,
6906         (deassignLRs): *** perhaps the most important change, old 'for' code
6907         (commented out for reference), didn't account for some registers which
6908         were left marked 'not free' after a pointer operation. The change
6909         reduces register usage a lot in some cases
6910
6911 2006-03-04 Borut Razem <borut.razem AT siol.net>
6912
6913         * support/regression/ports/hc08/spec.mk: remove *.asm in traget
6914           _clean
6915         * support/regression/tests/bug-524697.c: decreased array size for
6916           mcs51 to fit into the internal RAM
6917         * support/regression/Makefile.in: a little bit more verbose
6918
6919 2006-03-03 Borut Razem <borut.razem AT siol.net>
6920
6921         * support/regression/fwk/lib/testfwk.c,
6922           support/regression/fwk/include/testfwk.h: introduced function
6923           _prints(), nonrecursive _printn(), call _initEmu() from main()
6924         * support/regression/ports/gbz80/support.asm,
6925           support/regression/ports/ucz80/support.asm,
6926           support/regression/ports/z80/support.asm,
6927           support/regression/ports/ds390/support.c,
6928           support/regression/ports/hc08/support.c,
6929           support/regression/ports/host/support.c,
6930           support/regression/ports/mcs51/support.c,
6931           support/regression/ports/xa51/support.c: added empty _initEmu()
6932           function
6933         * support/regression/ports/pic16/gpsim.cmd,
6934           support/regression/ports/pic16/spec.mk,
6935           support/regression/ports/pic16/support.c,
6936           support/regression/Makefile.in: added pic16 regression test
6937
6938 2006-03-01 Raphael Neider <rneider AT web.de>
6939
6940         * src/pic16/gen.c (genPcall,pic16_derefPtr,genGenPointerGet,
6941           genConstPointerGet): use safe way of generating MOVFF to cover
6942             literals as well as registers, fixes bug #1440527
6943         * src/pic16/glue.c (pic16_printIvalBitFields): prevent NULL pointer
6944             dereference
6945           (pic16_printIvalUnion,pic16_isUnion): NEW, handle initialized unions
6946             more correctly, fixes bug #1232186
6947           (pic16_printIval): use pic16_printIvalUnion() for initialized unions
6948         * src/pic16/main.c (_pic16_linkEdit): reorder linker arguments to make
6949             gplink guess the correct processor in more cases, applied patch
6950             from Till Riedel attached to and fixing bug #1436552
6951
6952 2006-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6953
6954         * support/regression/tests/array.c: added, contains check for #1434401
6955         * src/mcs51/peeph.def: disabled 186.d as temporary fix for #1434401
6956
6957 2006-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
6958
6959         * device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
6960         * device/include/mcs51/at89S8252.h: fixed, thanks to Krzysztof Polomka
6961         * device/include/mcs51/c8051f326.h,
6962         * device/include/mcs51/c8051f340.h: new SiLabs mcu's
6963         * device/include/mcs51/c8051f000.h,
6964         * device/include/mcs51/c8051f018.h,
6965         * device/include/mcs51/c8051f020.h: used () with __at, renamed IDLE,STOP to
6966           PCON_IDLE,PCON_STOP and added sfr16 definitions
6967
6968 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
6969
6970         * src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
6971           genGetWord): fixed bug 1409955
6972
6973 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
6974
6975         * device/include/hc08/mc68hc908gp32.h,
6976         * device/include/hc08/mc68hc908jb8.h: removed AWUL, added PTA6 & PTA7
6977
6978 2006-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
6979
6980         * src/SDCCast.c (constExprValue): return NULL if not a value
6981         * src/SDCCglue.c (printIvalArray): fixed bug 1225568
6982         * src/hc08/gen.c(genUnpackBits, genUnpackBitsImmed): fixed bug 1019480
6983         * support/regression/tests/bitfields.c: enabled signed bitfield for all
6984
6985 2006-02-13 Borut Razem <borut.razem AT siol.net>
6986
6987         * src/regression/ptrarg.c: added, fails due to bug #1430967
6988         * src/regression/Makefile: ptrarg.c added, ...
6989
6990 2006-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
6991
6992         * src/z80/gen.c (genUnpackBits): fixed bug 1019480
6993         * support/regression/tests/bitfields.c: enabled signed bitfield for z80
6994
6995 2006-02-11 Borut Razem <borut.razem AT siol.net>
6996
6997         * src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
6998           print "Processor: xxx" message to stdout only if --verbose
6999
7000 2006-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
7001
7002         * src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
7003         * support/regression/tests/bug1426356.c: added
7004         * support/regression/tests/bitfields.c: removed 2 tests
7005
7006 2006-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
7007
7008         * device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
7009         * device/include/mcs51/c8051f330.h,
7010         * device/include/mcs51/c8051f350.h: used () with __at, renamed IDLE,STOP to
7011           PCON_IDLE,PCON_STOP and added sfr16 definitions
7012         * device/lib/_divsint.c,
7013         * device/lib/_divuint.c,
7014         * device/lib/_divulong.c,
7015         * device/lib/_divulong.c: renamed a,b to x,y to avoid confusion, fixed
7016           register bank bug for small stackauto
7017
7018 2006-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
7019
7020         * support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()
7021
7022 2006-02-08 Maarten Brock <sourceforge.brock AT dse.nl>
7023
7024         * support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
7025         * all.dsp: corrected several bin paths
7026         * device/include/mcs51/c8051f120.h,
7027         * device/include/mcs51/c8051f300.h,
7028         * device/include/mcs51/c8051f310.h: used () with __at and renamed IDLE,STOP
7029           to PCON_IDLE,PCON_STOP
7030         * device/include/mcs51/c8051f320.h: see above, also added sfr16 definitions
7031         * device/lib/printf_large.c (output_float): fixed bug 1388703
7032         * support/regression/tests/bug1057979.c: added test for bug 1388703
7033
7034 2006-02-08 Raphael Neider <rneider AT web.de>
7035
7036         * src/pic/pcode.c (pciTRIS): fixed typo,
7037           (BuildFlow,LinkFlow_pCode): added (disabled) debug output,
7038           (LinkFlow): fixed handling of flows that end in a call,
7039           (ReuseReg): perform safety check earlier
7040         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed
7041             to work with flows at the beginning of a pBlock,
7042             fixes #1426557 (Symbol not previously defined),
7043           (pic14_ReMapLiveRanges): NEW, destroy and rebuild register
7044             usage information
7045           (RemoveUnusedRegisters): update register usage info
7046         * src/pic/ralloc.c (newReg): prevent duplicate registers from being
7047             created, reuse existing ones instead
7048         * src/pic/gen.c (genPcall): fixed #1424719
7049
7050 2006-02-07 Bernhard Held <bernhard AT bernhardheld.de>
7051
7052         * link/z80/lkmain.c,
7053         * link/z80/lklex.c,
7054         * link/z80/lkdata.c,
7055         * link/z80/aslink.h: fixed build on current cygwin:
7056         replaced getline() by lk_getline()
7057
7058 2006-02-01 Borut Razem <borut.razem AT siol.net>
7059
7060         * src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
7061           src/regression/add4.c, src/regression/and1.c, src/regression/and2.c,
7062           src/regression/arrays.c, src/regression/b.c, src/regression/bank1.c,
7063           src/regression/bool1.c, src/regression/bool2.c,
7064           src/regression/bool3.c, src/regression/call1.c,
7065           src/regression/compare.c, src/regression/compare10.c,
7066           src/regression/compare2.c, src/regression/compare3.c,
7067           src/regression/compare4.c, src/regression/compare5.c,
7068           src/regression/compare6.c, src/regression/compare7.c,
7069           src/regression/compare8.c, src/regression/compare9.c,
7070           src/regression/configword.c, src/regression/for.c,
7071           src/regression/inline.c, src/regression/mult1.c,
7072           src/regression/nestfor.c, src/regression/or1.c,
7073           src/regression/pointer1.c, src/regression/ptrfunc.c,
7074           src/regression/rotate1.c, src/regression/rotate2.c,
7075           src/regression/rotate3.c, src/regression/rotate4.c,
7076           src/regression/rotate5.c, src/regression/rotate6.c,
7077           src/regression/rotate7.c, src/regression/string1.c,
7078           src/regression/struct1.c, src/regression/sub.c,
7079           src/regression/sub2.c, src/regression/switch1.c,
7080           src/regression/while.c, src/regression/xor.c,
7081           src/regression/create_stc, src/regression/simulate,
7082           src/regression/rt.sh, src/regression/Makefile: reenabled Scott's PIC14
7083           regression tests
7084         * src/regression/gpsim_assert.h: added
7085
7086 2006-01-28 Bernhard Held <bernhard AT bernhardheld.de>
7087
7088         * src/ds390/gen.c (unsaveRegisters): fixed literal function pointer
7089         ((void (code *) (void)) 0) ();
7090         * as/hc08/aslex.c,
7091         * as/hc08/aslink.h,
7092         * as/hc08/asm.h,
7093         * as/hc08/asmain.c,
7094         * as/hc08/lkdata.c,
7095         * as/hc08/lklex.c,
7096         * as/hc08/lkmain.c,
7097         * as/mcs51/aslex.c,
7098         * as/mcs51/aslink.h,
7099         * as/mcs51/asm.h,
7100         * as/mcs51/asmain.c,
7101         * as/mcs51/lkdata.c,
7102         * as/mcs51/lklex.c,
7103         * as/mcs51/lkmain.c,
7104         * as/z80/aslex.c,
7105         * as/z80/asm.h,
7106         * as/z80/asmain.c: fixed build on current cygwin:
7107         replaced getline() by as_getline()
7108
7109 2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
7110
7111         * src/SDCC.y: fixed bug #716242, exchanged pointer and function
7112         declarator in the symbol chain
7113         * src/SDCCsymt.h,
7114         * src/SDCCsymt.c (processFuncPtrArgs): added, removes "(void)"
7115         parameter list for function pointers
7116         * src/SDCCast.c (decorateType): added call of processFuncPtrArgs()
7117         * support/regression/tests/bug-716242.c: added
7118
7119 2006-01-20 Bernhard Held <bernhard AT bernhardheld.de>
7120
7121         * src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array
7122         offset if possible
7123         * src/SDCCast.c (getLeftResultType): 255 fits in char, not 256
7124
7125 2006-01-18 Bernhard Held <bernhard AT bernhardheld.de>
7126
7127         * src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it
7128         inifinitely recurseable, added static
7129         * support/regression/tests/bug-1408066.c: added
7130
7131 2006-01-17 Bernhard Held <bernhard AT bernhardheld.de>
7132
7133         * src/SDCCicode.h,
7134         * src/SDCCicode.c (newiTempPreheaderLabel, newiTempLoopHeaderLabel):
7135         renamed, added possibility to create "postLoopLbl"-labels
7136         * src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to
7137         newiTempLoopHeaderLabel
7138         * src/SDCCloop.c (newInduction, newRegion, backEdges, insertIntoLoop,
7139         isNotInBlocks, addToExitsMarkDepth, createLoop, dominatedBy,
7140         addDefInExprs, assignmentsToSym, isOperandInvariant, pointerAssigned,
7141         hasNonPtrUse, loopInvariants, addressTaken, findInduction,
7142         findDefInRegion, mergeRegions, ifMerged, mergeInnerLoops): made static,
7143         (pinduction, pregion, hasIncomingDefs, findLoopEndSeq): disabled,
7144         (basicInduction): fixed bug #136564, made static,
7145         (loopInduction): changed parameter of basicInduction, made static,
7146         (addPostLoopBlock): added
7147         * src/SDCCloop.h: removed backEdges, pregion, pinduction,
7148         loopOptimizations, addressTaken, findDefInRegion, hasIncomingDefs,
7149         findLoopEndSeq
7150         * support/regression/tests/bug-136564.c: added
7151         * support/regression/ports/mcs51-xstack-auto/spec.mk: added
7152         --std-sdcc99 to LIBSDCCFLAGS
7153
7154 2006-01-16 Bernhard Held <bernhard AT bernhardheld.de>
7155
7156         * src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false
7157         while loop
7158         * support/regression/tests/bug-1406131.c: added
7159
7160 2005-12-31 Bernhard Held <bernhard AT bernhardheld.de>
7161
7162         * src/SDCCast.c (decorateType): fix promotion of unary minus
7163         * src/SDCCsymt.c (computeType): beautified
7164         * src/SDCCval.c (cheapestVal): beautified, old non-Ansi version removed,
7165         (valUnaryPM, valComplement): fix sign and promotion,
7166         (valNot): ANSI: result type is int (SDCC: unsigned char)
7167         * support/regression/tests/uminus.c: speedup by removing superflous
7168         test case 'int'
7169         * support/regression/tests/onebyte.c: added promotion and signedness
7170         tests for unary minus
7171         * support/regressions/tests/bug-477927.c: disable warning about
7172         uninitialized variables
7173         * support/regression/tests/not.c: added
7174
7175 2005-12-28 Bernhard Held <bernhard AT bernhardheld.de>
7176
7177         * device/lib/Makefile.in: added --std-sdcc99 to CFLAGS
7178         * src/mcs51/gen.c (gen51Code): show final register usage after
7179         fillGaps in asm with --i-code-in-asm
7180         * src/SDCClrange.c (sequenceiCode, setLiveFrom, setLiveTo,
7181         markLiveRanges, markAlive, findNextUseSym, findNextUse, unvisitBlocks,
7182         incUsed, rliveClear, adjustIChain): made static,
7183         (setFromRange): excluded because it's unused,
7184         (findPrevUseSym, markWholeLoop): added,
7185         (findPrevUse): rewritten; fixes bug 895992; now a complete search
7186         through all branches of predecessors enables sdcc to emit the warning
7187         W_LOCAL_NOINIT, marking of outermost loop was incomplete,
7188         (rlivePoint): made static, added parameter emitWarnings which is only
7189         true during the first run out of two,
7190         (findRecursiveSucc, findRecursivePred): removed,
7191         (computeLiveRanges): made static, added parameter emitWarnings,
7192         (dumpIcRlive): added for debugging only
7193         * src/SDCClrange.h: added boolean parameter to computeLiveRanges(),
7194         removed prototype of setFromRange()
7195         * src/SDCCopt.c (eBBlockFromiCode): added new parameter emitWarnings
7196         in call of computeLiveRanges()
7197         * support/regression/tests/bug-895992.c: added
7198         * support/regression/tests/bug-971834.c: added
7199         * support/valdiag/tests/bug-895992.c: added
7200         * support/valdiag/tests/bug-971834.c: added
7201
7202 2005-12-18 Raphael Neider <rneider AT web.de>
7203
7204         * src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
7205           (genUnpackBits): improved code for direct operands,
7206           (genPackBits): improved code for literal assignment to bitfields
7207             and for direct destination operands (no FSR indirection),
7208             prevented redundant AND, fixes #1362800,
7209           (AccLsh): added parameter to disable masking of the result
7210         * src/pic16/pcode.c (pic16_safepCodeUnlink): fixed to work with
7211           skip instructions with side-effects (like incfsz),
7212           (pic16_pCodeIsAlive): suppress verbose output unless pcode_verbose,
7213         * src/pic16/pcoderegs.c (RemoveRegsFromSet): removed annoying warning
7214         * device/lib/pic16/Makefile.common.in: added --asm=@GPASM@ to CC,
7215           fixes #1375263
7216
7217 2005-12-11 Bernhard Held <bernhard AT bernhardheld.de>
7218
7219         * src/SDCCicode.c (geniCodeAssign): fixed bug 11369874, don't use
7220         volatile variables as spill location
7221
7222 2005-12-10 Bernhard Held <bernhard AT bernhardheld.de>
7223
7224         * src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to
7225         replacing literals
7226         * support/regression/tests/bug-1376320.c: added
7227
7228 2005-12-08 Raphael Neider <rneider AT web.de>
7229
7230         * src/pic/device.c: renamed is_shared to pic14_is_shared
7231         * src/pic/gen.c (genIfx): re-enabled handling of sbits
7232         * src/pic/glue.c (emitSymbolToFile): added workaround for sbits,
7233           (is_valid_identifier): added for above workaround
7234
7235 2005-12-07 Maarten Brock <sourceforge.brock AT dse.nl>
7236
7237         * device/lib/Makefile.in: fixed to enable port-specific-objects
7238         * device/lib/ds390/i2c390.c (BitOutI2C): optimized by making bout unsigned
7239           char, thanks Hubert Sack
7240         * doc/sdccman.lyx: documented --xstack-loc,
7241           elaborated a bit more on interrupts and pitfalls,
7242           removed "setjmp/longjmp unsupported",
7243           documented some unsupported C99 features
7244         * src/SDCCmain.c (linkEdit): adapted default lib path for --stack-auto
7245         * src/SDCCpeeph.c (readRules): inserted patch 1367130 for finding missing
7246           if, thanks Hubert Sack
7247         * src/mcs51/gen.c (genEndFunction): enabled "pop psw" for regbank 0 isr
7248         * support/regression/Makefile.in: test-mcs51-stack-auto no longer needs to
7249           make make_library
7250         * support/regression/get_ticks.py: new, get cpu cycles and code size, so
7251           regression tests can report resource usage (rfe 700441)
7252         * support/regression/collate-results.py: report resource usage
7253         * support/regression/ports/ds390/spec.mk,
7254         * support/regression/ports/hc08/spec.mk,
7255         * support/regression/ports/mcs51/spec.mk,
7256         * support/regression/ports/ucz80/spec.mk: run sim output through get_ticks
7257         * support/regression/ports/ds390/uCsim.cmd,
7258         * support/regression/ports/hc08/uCsim.cmd,
7259         * support/regression/ports/mcs51/uCsim.cmd,
7260         * support/regression/ports/ucz80/uCsim.cmd: inserted "state" to report time
7261         * support/regression/ports/mcs51-stack-auto/spec.mk: no need to build the
7262           library, use the default one
7263         * support/regression/ports/mcs51-xstack-auto/spec.mk: inserted rules for
7264           building the library
7265
7266 2005-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
7267
7268         * config.dsp: added dependency on .version and configure_vc.awk
7269         * device/include/setjmp.h: updated for --stack-auto and --xstack
7270         * device/include/mcs51/at89c51snd1c.h: corrected line endings
7271         * device/include/mcs51/XC866.h: added, thanks Llewellyn van Zyl
7272         * device/lib/_setjmp.c: updated for --stack-auto and --xstack
7273         * device/lib/libsdcc.lib: added _setjmp
7274         * src/SDCCast.c (createIvalCharPtr): fixed warnings,
7275           (decorateType): fixed bug 1372851,
7276           (optimizeGetHbit): fixed warning
7277         * src/SDCCglue.c (printIvalChar, printIvalArray): adapted for flexible
7278           array initialisation
7279         * support/regression/tests/bug1057979.c: added test for bug 1358192
7280         * support/regression/tests/setjmp.c: added, test for setjmp/longjmp
7281
7282 2005-12-03 Borut Razem <borut.razem AT siol.net>
7283
7284         * support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
7285           command since the NSIS was upgraded to version 2.11 on CF x86-linux2
7286
7287 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
7288
7289         * src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr,
7290         createIval): implement symbol independant "flexible array member",
7291         (createIvalCharPtr): implemented flexible array initialisation with a
7292         string
7293         * src/SDCCsymt.c (copyStruct): removed,
7294         (getSize): fixed misleading comment,
7295         (getAllocSize): removed, the additional allocation size is now in
7296         sym->flexArrayLength,
7297         (checkStructFlexArray): new, syntax checks for flexible array members,
7298         (compStructSize): added syntax checks for "flexible array members"
7299         (copyStruct): removed,
7300         (copyLinkChain): removed inefficient fix for bug 770487
7301         * src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
7302         * src/SDCCsymt.h: added structdef.b_flexArrayMember and
7303         symbol->flexArrayLength
7304         * src/SDCCerr.c,
7305         * src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY,
7306         E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
7307         * support/regression/tests/structflexarray.c: added
7308         * support/valdiag/tests/structflexiblearray.c: added
7309
7310 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
7311
7312         * src/SDCCast.c (decorateType): fixed bug 1368489
7313         * support/Util/SDCCerr.c,
7314         * support/Util/SDCCerr.h: added warning W_CMP_SU_CHAR
7315
7316 2005-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7317
7318         * device/include/mcs51/at89c51snd1c.h: added file submitted by
7319           Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001
7320
7321 2005-11-27 Borut Razem <borut.razem AT siol.net>
7322
7323         * support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
7324           support/cpp2/mkdeps.h: added command line option
7325           -obj-ext=<extension> to SDCPP to define object file externion, used
7326           for generation of make dependencies (-M)
7327         * src/SDCCmain.c: pass -obj-ext=<extension> to SDCPP
7328
7329 2005-11-26 Borut Razem <borut.razem AT siol.net>
7330
7331         * support/scripts/sdcc.nsi: added small-stack-auto libraries,
7332           added missing device/lib/mcs51/crt*.asm, pic and pic16 sources,
7333           added pic and pic16 libraries
7334
7335 2005-11-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7336
7337         * device/include/float.h: Corrected typo in prototype of __fsgt
7338
7339 2005-11-25 Borut Razem <borut.razem AT siol.net>
7340
7341         * sdcc/device/lib/Makefile.in, sdcc/device/lib/incl.mk:
7342           added creation of model-mcs51-stack-auto libraries
7343
7344 2005-11-24 Bernhard Held <bernhard AT bernhardheld.de>
7345
7346         * src/SDCCsymt.c (copyLinkChain): fixed bug 770487, copy structdef
7347         and fields-list too
7348         * src/SDCCast.c (createIvalArray): removed obsolete comment
7349
7350 2005-11-24 Borut Razem <borut.razem AT siol.net>
7351
7352         * sdcc/device/lib/Makefile.in: remove all unnecessary files, 2nd try...,
7353           added missing device/lib/mcs51/crt*.asm sources
7354
7355 2005-11-23 Bernhard Held <bernhard AT bernhardheld.de>
7356
7357         * src/SDCCast.c (createIvalCharPtr): fixed bug 1348271
7358
7359 2005-11-22 Maarten Brock <sourceforge.brock AT dse.nl>
7360
7361         * device/lib/_fs2schar.c,
7362         * device/lib/_fs2sint.c,
7363         * device/lib/_fs2slong.c: optimized inline asm
7364
7365 2005-11-21 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7366
7367         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
7368           Better handling of floats between -1.0 and 0.0.
7369
7370 2005-11-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7371
7372         * src/mcs51/peeph.def: added missing "if"s as noted by Hubert Sack.
7373           (the missing "if"s prohibited removal of redundant labels)
7374
7375 2005-11-19 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7376
7377         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
7378           Properly convert floats between -1.0 and 0.0 to long, int, and char
7379           types (max integer value of negative floats tends to zero).
7380         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
7381           Removed changes made so to work properly with floats between
7382           -1.0 and 0.0, as the problem is fixed in _fs2slong.c, _fs2sint.c,
7383           and _fs2char.c
7384
7385 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
7386
7387         * src/SDCCcse.c (ReplaceOpWithCheaperOp): minor fix for debugging only
7388         * src/mcs51/gen.c (genUnpackBits): better code and a fix,
7389         (genCast) cosmetic change
7390         * src/ds390/gen.c (genUnpackBits, ): ported from mcs51
7391         * src/ds390/ralloc.c (packRegsForAssign): ported fix for bitfields
7392         from mcs51
7393         * support/regression/tests/bitfields (testSignedBitfields): added
7394
7395 2005-11-18 Borut Razem <borut.razem AT siol.net>
7396
7397         * sdcc/device/lib/Makefile.in: remove all unnecessary files
7398         * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
7399           introduced SILENT option to make building of pic16 libraries less
7400
7401 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7402
7403         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
7404           Now they work properly with floats between -1.0 and 0.0
7405         * device/lib/printf_large.c: Removed temporary patch for bug 1358192
7406
7407 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
7408
7409         * src/SDCCicode.c (printOperand): added missing else
7410
7411 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
7412
7413         * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
7414         reformatted for better readability
7415         * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
7416         signed bitfields
7417
7418 2005-11-17 Borut Razem <borut.razem AT siol.net>
7419
7420         * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
7421           introduced SILENT option to make building of pic16 libraries less
7422           verbose - used for nightly snapshot build
7423         * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
7424           available on Win32 platforms.
7425         * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
7426           medium, large, pic and pic16
7427
7428 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7429
7430         * device/lib/printf_large.c: Temporary patch for bug 1358192:
7431           printf("%f"...) sets fraction to zero.
7432
7433 2005-11-16 Raphael Neider <rneider AT web.de>
7434
7435         * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
7436           fixes #1357221
7437         * src/pic/gen.c (genIfx): implemented for CARRY bit
7438         * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
7439           to generic pointers, fixes #1357332,
7440           (pic16_movLit2f): NEW,
7441           (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
7442
7443 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
7444
7445         * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
7446
7447 2005-11-11 Raphael Neider <rneider AT web.de>
7448
7449         * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
7450         * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
7451           compute pointer's type from operand,
7452           (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
7453           improved single bit reads, fixes bug #1353379
7454
7455 2005-11-09 Borut Razem <borut.razem AT siol.net>
7456
7457         * support/scripts/sdcc.nsi: added lib/pic to the package
7458
7459 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
7460
7461         * src/SDCCval.c (valUnaryPM): fixed bug 1350699
7462
7463 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
7464
7465         * support/regression/tests/bug1348008.c: added
7466         * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
7467         * support/regression/tests/bug1337835.c: updated comment
7468
7469 2005-11-06 Borut Razem <borut.razem AT siol.net>
7470
7471         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
7472           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
7473           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
7474           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
7475           sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
7476           dynamic construction of cl_error_class and derivates - 2.nd try
7477
7478 2005-11-05 Borut Razem <borut.razem AT siol.net>
7479
7480         * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
7481           bug, which caused Bus Errors on sparc solaris
7482
7483 2005-11-04 Borut Razem <borut.razem AT siol.net>
7484
7485         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
7486           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
7487           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
7488           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
7489           sim/ucsim/cmd.src/cmdconf.cc: dynamic construction of cl_error_class
7490           and derivates to resolve the initialization problem on OSX
7491
7492 2005-11-02 Borut Razem <borut.razem AT siol.net>
7493
7494         * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
7495           corrected typo - #include <winsock2.h>
7496
7497 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
7498
7499         * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
7500           (_asxxxx_mapping): added org directive for future enhancements
7501
7502 2005-11-01 Borut Razem <borut.razem AT siol.net>
7503
7504         * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
7505           enabled sockets on WIN32
7506         * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
7507
7508 2005-10-31 Borut Razem <borut.razem AT siol.net>
7509
7510         * support/regression/generate-cases.py: escape backslashes in {testcase}:
7511           WIN32 backslash path delimiters should be escaped when used in C strings
7512         * support/regression/tests/bitfields.c: exclude failing assertions for
7513           __CYGWIN32__ and __MINGW32__ hosts
7514
7515 2005-10-30 Borut Razem <borut.razem AT siol.net>
7516
7517         * src/SDCCutil.c: corrected double comparison typo
7518
7519 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
7520
7521         * device/lib/medium/Makefile: added for new memory model medium
7522         * device/include/asm/mcs51/features.h: updated for medium/pdata
7523         * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
7524           added Multiply & Accumulate sbit's and MAC0_PAGE define
7525         * device/include/mcs51/c8051f300.h: added sfr16 definitions
7526         * device/include/mcs51/c8051f310.h: added sfr16 definitions
7527         * device/lib/_mullong.c: update for medium model
7528         * device/lib/incl.mk: added medium model
7529         * doc/sdccman.lyx: documented medium model
7530         * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
7531         * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
7532         * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
7533         * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
7534           (allocParms): set SCLS and OCLS to pdata for medium model
7535         * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
7536           for pdata,
7537           (powof2): return <0 if not power of 2
7538         * src/avr/gen.c (genBitWise): use updated powof2
7539         * src/mcs51/gen.c (genMinusDec): use acc if necessary,
7540           (shiftR2Left2Result): small optimization in setup, save acc when storing,
7541           (shiftLLeftOrResult): use B if necessary
7542         * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
7543         * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
7544         * src/pic/main.c (_pic14_do_link): made void parameter list explicit
7545         * support/regression/Makefile.in: added test-mcs51-medium
7546         * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
7547
7548 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
7549
7550         * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
7551         specifier unsigned
7552         * device/lib/time.c (mktime): fixed bug 1334315
7553
7554 2005-10-28 Raphael Neider <rneider AT web.de>
7555
7556         * device/include/pic/p16f_common.inc: added common declarations
7557         * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
7558
7559 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
7560
7561         * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
7562           (aopPutUsesAcc): added to predict accumulator use,
7563           (assignResultValue): save acc if necessary,
7564           (genMinusDec): store result if indirectly addressed,
7565           (genDivOneByte):  save acc if necessary,
7566           (movLeft2Result): bugfix if left already in acc,
7567           (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
7568             attention to accumulator use (esp. pdata),
7569           (genReceive): receive pdata correctly
7570         * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
7571         * src/SDCCicode.h: added isOperandInPagedSpace prototype
7572
7573 2005-10-27 Raphael Neider <rneider AT web.de>
7574
7575         * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
7576
7577 2005-10-27 Raphael Neider <rneider AT web.de>
7578
7579         * .version: changed version to 2.5.4
7580         * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
7581         * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
7582           (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
7583             arithmetics support routines
7584         * device/lib/pic/Makefile.rules: have assembler sources preprocessed
7585         * device/lib/Makefile.in: also create installdir for pic
7586
7587         * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
7588           pic14 port as well
7589         * src/pic/device.c (dump_sfr): rewritten to delegate register
7590           placement to the linker (use `extern sym' rather than sym EQU addr),
7591           (validAddress): fixed to check last specified address
7592         * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
7593           (popGetLit): truncate literal value to 8 bit,
7594           (popGet): moved assert to more appropriate place
7595           (popGetExternal): create pCode operand from and mark the according
7596             symbol as being `extern'
7597           (popGetAddr): added sanity check on immediate's offset, provide
7598             GPOINTER tag on demand
7599           (aopPut): fixed for immediates,
7600           (mov2w_op): move operand's address or contents to WREG (depending on
7601             operand type), safer variant of mov2w,
7602           (movwf,call_libraryfunc): NEW, handy abbreviations,
7603           (get_argument_pcop,get_return_val_pcop,pass_argument,
7604           get_returnvalue): interface for accessing function parameters and
7605             return values,
7606           (assignResultValuei,genRet): use new parameter/return value interface
7607           (pic14_getDataSize): back to old version handling generic pointers,
7608           (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
7609             provided implementation and/or fixed old one,
7610           (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
7611             calls, removed legacy 8051 reference code
7612           (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
7613           (loadSignToC): NEW, move the operands sign bit to CARRY,
7614           (genGenericShift): NEW, replaces genLeftShift, genRightShift and
7615             genRightShiftSigned, accepts negative shift counts,
7616           (setup_fsr): load FSR and adjust IRP (indirect memory access),
7617           (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
7618             generic pointers, __data pointers and __code pointers,
7619           (genUnpackBits,genPackBits): rewritten to work with generic pointers
7620             and signed bitfields, limit bitfields to 8 bit,
7621           (genDataPointerGet): fixed number of bytes read,
7622           (genGenPointerGet,genConstPointerGet): fixed bitfield access,
7623           (genPointerGet,genPointerSet): fixed handling of __code pointers,
7624             pointers to constant data are no longer assumed to point to __code
7625             space, removed invalid pointer types,
7626           (bitpatternFromVal): retrieve the PICs representation of an integer
7627             or float literal,
7628           (genDataPointerSet): fixed assigning to po_immediate operands,
7629           (genGenPointerSet): implemented as library call,
7630           (genIfx): fixed incorrect condition,
7631           (genAddrOf): limit generic pointers' addresses to 2 bytes,
7632             provide GPOINTER tag according to destination's storage class,
7633           (genCast): added code to handle casting to generic pointers, added
7634             sign-/zero extension of the result
7635           (aop_isLitLike,op_isLitLike): fixed handling of immediates
7636         * src/pic/gen.h: added macros to access IRP bit in STATUS register
7637         * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
7638           extend the result
7639         * src/pic/glue.c (is_shared_address,is_shared): check whether a given
7640           address/register resides in the shared banks
7641           (emitSymbolToFile): improved to handle global and `pinned' symbols,
7642             put all variables into separate sections (have the linker arrange
7643             them)
7644           (picglue): put init code and interrupt handlers in separate sections
7645         * src/pic/main.c: added port specific options table, modified to PORT
7646           structure to make GPOINTERs 3 byte, added pic14_options
7647           (_pic14_do_link): private linking routine (update paths to libraries,
7648             add libsdcc.lib by default)
7649         * src/pic/main.h: declare pic14_options
7650         * src/pic/pcode.c: fixed instructions i/o relations,
7651           (RegCond): reverted to correct version,
7652           (newpCodeOpLit): truncate literals to 8 bit,
7653           (genericPrint): added debug output,
7654           (getRegFromInstruction): fixed for various operand types, simplified
7655           (BuildFlow): fixed broken handling of isntructions with labels
7656           (LinkFlow): start at last instruction in flow (skip trailing comments),
7657             pass the flow on to the next instruction after CALL
7658           (pCodeReplace): NEW, replace a pCode and move meta data to the new one
7659           (insertPCodeInstruction): fixed inserting after a skip instruction,
7660           (DoBankSelect): fixed for labeled instructions
7661           (OptimizepBlock): honor --nopeep switch
7662           (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
7663         * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
7664         * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
7665           (pCodeOptime2pCodes): allow disabling this optimization via
7666             --no-pcode-opt due seldomly occuring bugs, fixed some conditions
7667             but is still buggy), started implementation of a dataflow based
7668             pCode optimization (CSE + dead code elimination)
7669           (pCodeRegMapLiveRangesInFlow): removed bogus inCond
7670         * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
7671           names are independant of the stack location and therefore portable across
7672           devices
7673
7674 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
7675
7676         * src/mcs51/ralloc.c (bitType): added to detect bit variables,
7677           (selectSpil): fixed bug 1337835 by not spilling bit variables
7678         * support/regression/tests/bug1337835.c: added test for this bug
7679         * src/mcs51/peeph.def: restart after rule 3.c,
7680           addded rules 263.x to optimize loading constants
7681
7682 2005-10-26 Raphael Neider <rneider AT web.de>
7683
7684         * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
7685         * src/pic16/gen.c (genUnpackBits): support signed bitfields,
7686           (genAssign): emit warning when casting literals to generic pointer
7687             type, also applies when taking the address of a fixed variable,
7688           (genCast): improved casting to generic pointers
7689         * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
7690           extern variables, added verbose error message
7691         * device/include/pic16/{string.h,errno.h}: added #pragma library c
7692
7693 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
7694
7695         * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
7696         carry must be complemented too
7697         * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
7698         could be emitted by genMinus
7699         * src/SDCCval.c (constVal): fixed bug 1305065
7700
7701 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
7702
7703         * src/SDCCast.c (addCast): added promotion for bit variables
7704         (decorateType): emit W_COMPLEMENT before the problem vanishes behind
7705         promotion casts + optimisation
7706         (optimizeGetWord): fix warning 'i' might be used uninitialized
7707         * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
7708         * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
7709
7710 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
7711
7712         * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
7713         all chars are promoted to int; promotion should be handled in SDCCast.c
7714
7715 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7716
7717         * device/lib/_strcmp.c: Fixed bug 1326457
7718
7719 2005-10-11 Raphael Neider <rneider AT web.de>
7720
7721         * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
7722         * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
7723
7724 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
7725
7726         * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
7727         * support/regression/tests/sfr16.c: added test for the sfr32 bug
7728
7729 2005-10-04 Raphael Neider <rneider AT web.de>
7730
7731         * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
7732           device/lib/pic16/pics.all: added pic18f1320
7733         * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
7734
7735 2005-09-30 Raphael Neider <rneider AT web.de>
7736
7737         * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
7738         * src/pic16/devices.inc: NEW, provides device descriptions
7739         * src/pic16/gen.c (genInline): fixed handling of ';'-comments
7740
7741 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
7742
7743         * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
7744           GETHBIT
7745
7746 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
7747
7748         * doc/sdccman.lyx: updated Highest Order Bit documentation,
7749           documented Any Order Bit, Higher Order Byte and Higher Order Word
7750         * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
7751         * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
7752           (optimizeGetAbit): new, to get any bit, not only the high bit,
7753           (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
7754           (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
7755           (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
7756           (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
7757             RIGHT_OP: also try GETBYTE, GETWORD optimization,
7758             GETABIT, GETBYTE, GETWORD: decorate them,
7759           (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
7760           (ast_print): added GETABIT, GETBYTE, GETWORD
7761         * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
7762         * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
7763           (geniCodeBinary): new generic binary icode,
7764           (ast2iCode): added GETABIT, GETBYTE, GETWORD
7765         * src/port.h: updated comment for PORT.hasExtBitOp
7766         * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
7767           (genGetByte): new, to get a single byte,
7768           (genGetWord): new, to get a word from a long,
7769           (gen51Code): added GETABIT, GETBYTE, GETWORD
7770         * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
7771
7772 2005-09-23 Raphael Neider <rneider AT web.de>
7773
7774         * configure.in, configure: have device/lib/pic configured
7775         * device/lib/Makefile.in: added model-pic14
7776         * device/lib/clean.mk: added pic/ to clean rule
7777         * device/lib/pic: added rudimentary pic14 library providing support
7778           functions for multiplication/division/generic pointer access
7779         * src/SDCCopt.c (convilong): mark support functions as extern
7780           for pic14 port as well
7781         * src/pic/gen.c (genMult): added assertions,
7782           (genpic14Code): emit warning on unhandled iCodes
7783         * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
7784         * src/pic/pcode.c (pCodeOpCopy),
7785         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
7786           pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
7787           SFR_REGISTER}), made safe for future extensions
7788         * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
7789           instructions even if preceeded by SKIP instructions (also remove
7790           them); removed unused code
7791         * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
7792           prevents leaving parts of the structure uninitialized after copying
7793
7794 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
7795
7796         * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
7797           ago by me
7798         * support/regression/tests/addsub.c: added test for the bug
7799
7800 2005-09-21 Raphael Neider <rneider AT web.de>
7801
7802         * device/include/pic16/pic18f1220.h,
7803           device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
7804         * device/lib/pic16/Makefile.rules: added missing opening paren
7805         * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
7806           are provided in genutils.c,
7807           (genUminusFloat,genUminus,genCmpEq): added asserts on different
7808           operand/result sizes,
7809           (genCmp): assert on NULL pointers first, then check deref'ed values
7810         * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
7811           result size
7812
7813 2005-09-18 Raphael Neider <rneider AT web.de>
7814
7815         * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
7816           as these are now unused,
7817           (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
7818         * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
7819           local, avoids uninitialized pointer dereference on r->name
7820         * src/pic16/ralloc.c (newReg): fixed indentation
7821
7822 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
7823
7824         * src/SDCCval.c (constVal): fixed bug 730366
7825         * support/Util/SDCCerr.c,
7826         * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
7827
7828 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
7829
7830         * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
7831
7832 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
7833
7834         * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
7835
7836 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
7837
7838         * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
7839           (hex2dec): made hex_digit unsigned char, removed ascii dependance
7840         * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
7841           (hex2dec): made hex_digit unsigned char, removed ascii dependance
7842         * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
7843         * packihx/packihx.c (hexDigit): made c unsigned char
7844         * as/mcs51/lklibr.c (fndsym),
7845         * link/z80/lkgb.c (gb),
7846         * link/z80/lklibr.c (fndsym),
7847         * link/z80/lkrloc.c (relr),
7848         * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
7849         * src/SDCC.lex (checkCurrFile, process_pragma),
7850         * src/SDCCglue.c (spacesToUnderscores),
7851         * src/SDCCmain.c (setParseWithComma, processFile),
7852         * src/asm.c (tvsprintf, printCLine),
7853         * src/avr/gen.c (emitcode, aopPut),
7854         * src/ds390/gen.c (emitcode),
7855         * src/hc08/gen.c (emitcode, emitinline),
7856         * src/mcs51/gen.c (emitcode, genInline),
7857         * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
7858           tokenizeLineNode),
7859         * src/pic/ralloc.c (debugLog),
7860         * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
7861           tokenizeLineNode),
7862         * src/pic16/ralloc.c (debugLog),
7863         * src/z80/main.c (_process_pragma):
7864            made all ctype.h function calls safe
7865         * src/SDCCopt.c: include math.h for fabs
7866         * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
7867           and used them throughout the code to make ctype.h function calls safe
7868         * src/ds390/main.c (asmLineNodeFromLineNode),
7869         * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
7870         * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
7871            unsigned char*
7872         * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
7873           (newpCodeAsmDir): made ctype.h function calls safe
7874         * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
7875           pic16_emitcode):  made lbp unsigned char*
7876         * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
7877           (pic16_newpCodeAsmDir): made ctype.h function calls safe
7878         * src/xa51/gen.c (emitcode),
7879         * src/z80/gen.c (_emit2): made lbp unsigned char*
7880         * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
7881            char*
7882
7883 2005-09-05 Raphael Neider <rneider AT web.de>
7884
7885         * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
7886           access bank splitpoint
7887
7888 2005-09-05 Raphael Neider <rneider AT web.de>
7889
7890         * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
7891
7892 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
7893
7894         * .version: changed to version 2.5.3
7895         * doc/sdccman.lyx: changed version to 2.5.3,
7896           documented --codeseg and --constseg and pragma codeseg and constseg,
7897           documented bit parameters (reentrant) and bit returning
7898         * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
7899            currFunc->recvSize, but is this ok for all ports?
7900           (ast2iCode): result of ~ on unsigned char must be cast to int for
7901            bool to work
7902         * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
7903           function pointers in bit space
7904         * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
7905           (processFuncArgs): call port.reg_parm() with reentrancy info
7906         * src/port.h,
7907         * src/avr/main.c,
7908         * src/ds390/main.c,
7909         * src/hc08/main.c,
7910         * src/pic/main.c,
7911         * src/pic16/main.c,
7912         * src/xa51/main.c,
7913         * src/z80/main.c: port.reg_parm prototype extended with
7914           "bool reentrant" parameter
7915         * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
7916           options.stackAuto for allocating bit register parameters
7917         * src/mcs51/gen.c (genNot): optimized complementing direct bit,
7918           (genSend): set BitBankUsed if it is,
7919           (selectRegBank): factored out of genCall for use in genPcall,
7920           (genCall): removed redundant dtype assignmen, use selectRegBank,
7921           (genPcall): handle returning in Carry properly, save in F0 if needed,
7922           (genReceive): handle bit register parameters
7923         * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
7924           (mcs51_assignRegisters): enable bit registers for all reentrant
7925            functions and don't set BitBankUsed unconditionally
7926         * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
7927         * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
7928         * support/regression/tests/funptrs.c: added tests for BOOL and for return
7929
7930 2005-08-27 Borut Razem <borut.razem AT siol.net>
7931
7932         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
7933         ppc-osx (Darwin) does not support -u option. It seems that it is
7934         supported only on Linux - GNU cp
7935
7936 2005-08-25 Borut Razem <borut.razem AT siol.net>
7937
7938         * sim/ucsim/gui.src/serio.src/Makefile.in,
7939           sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
7940           sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
7941           sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
7942           install and strip, since the strip at /usr/ccs/bin should be used
7943           on solaris
7944
7945 2005-08-24 Borut Razem <borut.razem AT siol.net>
7946
7947         * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
7948
7949 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
7950
7951         * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
7952         ffffffffu
7953
7954 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
7955
7956         * as/mcs51/aslink.h: completed lkrloc.c prototypes
7957         * as/mcs51/lkmain.c (link_main): fixed warning
7958         * device/include/stdbool.h: ds390 has no advanced bit support yet
7959         * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
7960         * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
7961         * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
7962           and updated their macros
7963         * src/SDCCval.c (constVal): updated comment for renamed b_long
7964
7965 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
7966
7967         * as/mcs51/asdata.c: changed ctype['['] to BINOP
7968         * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
7969           (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
7970           (oprio): set priority for '['
7971         * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
7972            and adb_24_bit
7973         * as/mcs51/asm.h: added defines R_BIT and S_BIT
7974         * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
7975         * as/mcs51/lkdata.c: changed ctype['['] to BINOP
7976         * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
7977           added overlayable BIT_BANK area
7978         * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
7979           (summary2): explain 'T' in legenda
7980         * as/mcs51/lkrloc.c: replaced old K&R style,
7981           (relr): added R_BIT processing,
7982           (errmsg): added "Bit-addressable relocation error",
7983           (adb_bit): added for converting from byte- to bit-addressable space,
7984           (adb_24_bit): added for converting from byte- to bit-addressable space
7985         * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
7986            used in reentrant functions now even as return value
7987         * device/lib/_gptrput.c (_gptrput): removed obsolete code
7988         * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
7989           (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
7990         * src/SDCCglobl.h: added indicator BitBankUsed
7991         * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
7992            the bit registers b0-b7
7993         * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
7994           (geniCodeCast): fixed bug 1263853,
7995           (geniCodeLogicAndOr): put result in bool or char,
7996           (geniCodeReceive): added parameter func for accessing the return type,
7997           (geniCodeFunctionBody): pass func to geniCodeReceive
7998         * src/SDCCmain.c: added indicator BitBankUsed
7999         * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
8000         * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
8001           (checkSClass): don't put automatic bool/bit on stack,
8002           (checkFunction): removed check on function cannot return bit
8003         * src/SDCCsymt.h: added newBoolLink prototype
8004         * src/mcs51/gen.c (rb1regs): added bit registers,
8005           (movc): created for assigning to carry,
8006           (pushReg, popReg): created for pushing registers,
8007           (sameRegs): check both AOP_REG and AOP_CRY types,
8008           (aopOp): handle bit registers,
8009           (aopPut): optimization no self-assign,
8010           (saveRegisters): push reg->base (bits) only once for bit registers,
8011            and use pushReg,
8012           (unsaveRegisters): pop reg->base only once and use popReg,
8013           (assignResultValue): added parameter func and return in carry for bits,
8014           (genIpush): optimization no reload in A if not changed,
8015           (genSend): bit parameters in reentrant functions are passed in bit
8016            registers by first assigning to bits in B, then save registers and
8017            copy B to bits,
8018           (genCall): handle returning in Carry properly, save it in F0 if needed,
8019           (genPcall): updated assignResultValue call, this is not safe yet for bit
8020            returning function !!!
8021           (genFunction): don't generate equ's for bit registers and use pushReg,
8022           (genEndFunction): take care of bit returning functions and use popReg,
8023           (genRet): return bit in Carry,
8024           (genIfx): optimize bit registers and other directly addressable bits,
8025           (genReceive): updated assignResultValue call
8026         * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
8027           (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
8028            registers when using stack-auto
8029         * src/mcs51/ralloc.c (_G): added allBitregs,
8030           (regs8051): added the bit registers,
8031           (createStackSpil): use macro IS_BIT,
8032           (getRegBit): added to allocate a bit register, else spill,
8033           (getRegBitNoSpil): added to allocate a bit register, else a gpr,
8034           (updateRegUsage): factored out to ease stepping while debugging,
8035           (serialRegAssign): use updateRegUsage, only spill bits if necessary,
8036            also allocate bit registers,
8037           (fillGaps): handle bit registers,
8038           (findAllBitregs): added to create bit vector with all bit registers,
8039           (mcs51_allBitregs): returns this bit vector,
8040           (mcs51_assignRegisters): when using stack-auto use bit registers for
8041            passing parameters and creating local variables
8042         * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
8043
8044 2005-08-22 Borut Razem <borut.razem AT siol.net>
8045
8046         * device/lib/Makefile.in: replaced find option -or with -o
8047           to make it run on solaris
8048
8049 2005-08-22 Raphael Neider <rneider AT web.de>
8050
8051         * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
8052           fixes #1265442 (crash on Solaris)
8053
8054 2005-08-20 Borut Razem <borut.razem AT siol.net>
8055
8056         * configure, configure.in: added tests for libsocket and libnsl libraries,
8057           requred by sdcdb on sparc-solaris; generate support/regression/Makefile
8058           from support/regression/Makefile.in
8059         * support/regression/Makefile.in: added
8060         * device/lib/pic16/Makefile.common.in: force make to use bash shell
8061         * sim/ucsim/libtool: regenerated on sparc-solaris
8062         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
8063           sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
8064           sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
8065           -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
8066           sparc-solaris, which doesn't use GNU ld linker
8067         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
8068         * as/Makefile: find on sparc-solaris does not support -maxdepth option
8069
8070 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
8071
8072         * src/mcs51/peeph.def: updated comments
8073
8074 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8075
8076         * device/lib/_gptrget.c,
8077         * device/lib/_gptrput.c: slightly shorter
8078         * doc/sdccman.lyx: incremented version
8079         * src/mcs51/peeph.def: moved peephole comments to the line of first
8080           change to better keep line correlation, reanimated 186.e
8081         * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
8082
8083 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
8084
8085         * src/pic/pcode.c : Pasted ".line" assembly directives patch from
8086           David Saxton with quotes around file name.
8087
8088 2005-08-15 Borut Razem <borut.razem AT siol.net>
8089
8090         * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
8091           support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
8092           support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
8093           make tests run on x86_64 platform
8094
8095 2005-08-13 Raphael Neider <rneider AT web.de>
8096
8097         * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
8098           as it might be executed DURING a build (parallel make is wonderful)
8099
8100 2005-08-13 Raphael Neider <rneider AT web.de>
8101
8102         * device/lib/Makefile.in (port-specific-objects-pic16):
8103           revert to cp $(PORT)/bin/*.* $(PORTDIR)
8104         * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
8105           dependency
8106         * device/lib/pic16/Makefile.rules: build subdirs before creating
8107           the library, removed builddir rule, create $(builddir) early in
8108           recurse rule, use empty recurse rule for leaf directories
8109         * device/lib/pic16/Makefile.subdir: added phony targets, ignore
8110           mkdir errors (race condition), removed duplicate suffix "hex"
8111           from clean rules
8112         * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
8113         * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
8114           prevents mkdir -p from aborting on Alpha
8115
8116 2005-08-12 Raphael Neider <rneider AT web.de>
8117
8118         * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
8119           db-statements in order to allow for arrays of pointers in code
8120           sections to be placed without interspersed 0-padding, fixes
8121           bug #1256215
8122         * (emitStatistics): fixed division by zero for pic18f1220
8123         * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
8124           unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
8125         * (pic16_emitDS): respect DB_ITEMS_PER_LINE
8126         * (pic16_pCodeConstString): keep track of already emitted string
8127           literals to prevent "duplicate definitions of symbol _str_NR"
8128         * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
8129           debug message
8130         * device/lib/Makefile.in: ignore failing PIC16 library builds
8131         * device/lib/pic16/Makefile: do not build if gputils are missing
8132         * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
8133
8134 2005-08-10 Raphael Neider <rneider AT web.de>
8135
8136         * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
8137           my last commit)
8138
8139 2005-08-10 Raphael Neider <rneider AT web.de>
8140
8141         * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
8142           Rokas' patch to add the new fixed point type "__fixed16x16"
8143         * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
8144           functions for __fixed16x16 arithmetics
8145         * device/lib/pic16: reimplemented the build system to support
8146           a separate build directory, better handling of libio (create
8147           the library in a separate subdir for each architecture) and
8148           easier configuration (centralized in Makefile.common)
8149
8150 2005-08-07 Raphael Neider <rneider AT web.de>
8151
8152         * src/pic16/gen.c (genrshTwo): fixed sign extension
8153         * src/pic16/device.c: added pic18f2320, 4220 and 4320
8154         * device/include/pic16/pic18f2220.h: changed some bit definitions,
8155           added T0CONbits
8156         * device/include/pic16/pic18f4220.h: NEW, header for
8157           pic18f4220 and pic18f4320
8158         * device/include/pic16/pic18fregs.h: added new devices,
8159           embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
8160         * device/include/pic16/signal.h: resolved name clashes
8161           on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
8162           to also allow testing for interrupt enable bits, added
8163           comments on how to use the macros
8164         * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
8165         * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
8166           register definitions for the devices
8167         * device/lib/pic16/pics.all: added new devices
8168         * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
8169           allocated memory
8170         * device/lib/pic16/libc/stdlib/memfree: do not count
8171           the block header as free memory
8172         * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
8173           simplified and added missing end-of-blocklist-marker
8174           (reported by Peter Onion, fixes #1252814)
8175         * (_mergeHeapBlock): fixed loop condition
8176         * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
8177           len==0, restructured code
8178         * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
8179           up a bit, reduced bitfield accesses, prevent endless loops
8180           in case of heap corruption
8181         * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
8182           "unreferenced arguments/must return a value" warnings
8183         * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
8184           replaced BAUDREG with SPBRG
8185         * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
8186           device/lib/pic16/debug/gstack/gstack.c: replaced
8187           _naked, _asm, _endasm with __naked, __asm, __endasm
8188
8189 2005-08-05 Raphael Neider <rneider AT web.de>
8190
8191         * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
8192           AOP_PCODE operands, fixes multibyte union-bitfield-accesses
8193
8194 2005-08-05 Borut Razem <borut.razem AT siol.net>
8195
8196         * device/lib/Makefile.in: added missing ';'
8197         * configure: removed ^M characters
8198
8199 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8200
8201         * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
8202           device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
8203           License
8204
8205 2005-08-04 Borut Razem <borut.razem AT siol.net>
8206
8207         * configure.in: pic16 libraries build 2nd try - enable running
8208           configure in device/lib/pic16
8209         * configure: regenerated from configure.in
8210         * device/lib/Makefile.in: create $(PORT)/bin directory
8211
8212 2005-08-03 Raphael Neider <rneider AT web.de>
8213
8214         * src/pic16/gen.c (pic16_derefPtr): NEW, single place
8215           to get/set values via pointers
8216         * (genUnpackBits,genPackBits): changed detection of
8217           ptr->bitfield vs. sym.bitfield, fixed access via generic
8218           pointers, removed dead (wrong) code for multibyte bitfields
8219         * (genNearPointerGet, genGenPointerGet): removed useless code,
8220           fixed bitfield detection, fixes #1250594
8221         * (genNearPointerSet): removed useless code
8222         * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
8223           and introduced macro pic16_emitpcode that conditionally emits
8224           the origin of the following pCode (useful for debugging SDCC)
8225         * src/pic16/pcode.c: changed (and disabled) some debug outputs
8226         * (createDefmap): fixed handling of LFSR for --optimize-df
8227
8228 2005-08-02 Borut Razem <borut.razem AT siol.net>
8229
8230         * device/lib/Makefile.in: pic16 libraries build enabled since
8231           gputils-0.13.2 are now localy installed at sourceforge's compile farm
8232
8233 2005-08-02 Raphael Neider <rneider AT web.de>
8234
8235         * src/pic16/gen.c (genPackBits): removed deprecated warning
8236         * (genGenPointerSet): fixed bitfield detection
8237
8238 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8239
8240         * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
8241
8242 2005-07-31 Raphael Neider <rneider AT web.de>
8243
8244         * device/lib/pic16/libdev/pic18f458.c,
8245           device/include/pic16/pic18f458.h: added missing T0CONbits
8246
8247 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
8248
8249         * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
8250
8251 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
8252
8253         * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
8254
8255 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8256
8257         * device/include/mcs51/at89c51ed2.h: added.
8258
8259 2005-07-23 Raphael Neider <rneider AT web.de>
8260
8261         * src/pic/gen.h: added emitpcode macro for debugging
8262         * src/pic/gen.c (emitpcode): renamed to emitpcode_real
8263           and replace by macro adding debug information on demand
8264         * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
8265         * (gencjne): tried to fix; replaced with correct (slower) code
8266         * (gen{Unp,P}ackBits): fixed single bit access
8267         * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
8268         * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
8269           previous instruction
8270         * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
8271           register has to be handled with care (forbidding movement
8272           of assignments/uses, removing assignments completely, ...)
8273         * (pCodeOptime2pCodes): make use of regIsSpecial
8274         * added lots of debugging output (commented out)
8275         * src/pic/rallloc.c (deassignLRs): prevent operand registers
8276           from being reused as result UNLESS it is known to work
8277
8278 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
8279
8280         * support/Util/dbuf.h: include <stddef.h> for size_t
8281         * .version: changed to version 2.5.2
8282
8283 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8284
8285         * src/SDCCloop.c (loopInvariants): fixed bug #1234048
8286
8287 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8288
8289         * src/hc08/gen.c (genMinus): fixed bug #1241835,
8290           (genModOneByte): removed needless psha/pula
8291
8292 2005-07-22 Raphael Neider <rneider AT web.de>
8293
8294         * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
8295           have PIC14 handled like PIC16, fixes broken pic14 linker calls
8296         * src/pic/gen.c (resolveIfx): do not "invent" labels
8297         * (genSkipc): changed to positive logic
8298         * (genSkipCond): removed as no longer needed
8299         * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
8300           backport from PIC16
8301         * (genLeftShift): check operands are in different registers
8302         * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
8303           INCF does not update CARRY...
8304         * src/pic/main.c: fixed _linkCmd
8305         * src/pic/pcode.c (unlinkpCode): added inactive code
8306         * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
8307           alive (do not assign result and operand overlapping registers)
8308
8309 2005-07-22 Raphael Neider <rneider AT web.de>
8310
8311         * src/pic/device.c (dump_sfr): replaced register declaration with
8312           call to emitSymbolToFile() to avoid duplicate symbols
8313         * (assignRelocatableRegisters): do not declare external symbols
8314         * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
8315           right (take size of type, not etype)
8316         * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
8317         * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
8318         * (packRegsForAccUse): disabled assignment of WREG as
8319           the result reg to prevent occurence of just fixed #1235003,
8320           fixes #1242954
8321         * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
8322           symbols (avoids duplicate symbols in .asm file)
8323         * (pic14emitRegularMap): use emitSymbolToFile()
8324         * src/pic/gen.c (aopOp): fixed spillLocation handling
8325         * (gen{Unp,P}ackBits): fixed acquiring bit-operands
8326         * (genDataPointerSet): removed unneccessary variables/output
8327
8328 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
8329
8330         * as/mcs51/lkarea.c: enlarged codemap for banked memory
8331         * device/lib/mcs51/crtbank.asm: added # to 0x0F
8332
8333 2005-07-21 Raphael Neider <rneider AT web.de>
8334
8335         * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
8336           architecture cannot handle them efficiently, fixes bug #1235003
8337         * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
8338           check for empty sets before using them (fixes bug #1232190)
8339
8340 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
8341
8342         * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
8343           (lnksect2): generate warnings for memory overlap
8344         * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
8345           constseg to set the name of these segments so you can instruct the linker
8346           to place them in banks
8347         * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
8348         * src/SDCCglobl.h: added MODEL_HUGE to enum,
8349           added code_seg and const_seg to options
8350         * src/SDCCglue.c (emitMaps): use options.const_seg,
8351           (createInterruptVect): put interrupt vectors in segment HOME,
8352           (glue): put HOME before static segment and put the main glue in HOME,
8353           (glue): use options.code_seg
8354         * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
8355         * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
8356           these segments so you can instruct the linker to place them in banks
8357           (linkEdit): use code_loc for HOME segment which should be the first
8358           segment in code memory now
8359         * src/SDCCmem.c: fixed more stuff like bug 1238386
8360         * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
8361           (changePointer): don't change function pointers to code pointers for
8362           banked functions,
8363           (compareType): added exceptional check for banked function pointers
8364         * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
8365         * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
8366           after static in code memory
8367         * src/mcs51/gen.c: added aopLiteralLong prototype,
8368           (aopForSym): use getSize for functions,
8369           (genCall): generate banked calls over one trampoline __sdcc_banked_call
8370           in HOME with lsb of address in r0, msb in r1 and bank in r2, use
8371           -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
8372           the segment,
8373           (genPcall): use call for literal function pointers and generate banked
8374           calls over the one trampoline so there's only one place for the user to
8375           modify according to his/hers hardware,
8376           (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
8377           (genPlusIncr): moved check icount>4 beyond inc dptr optimization
8378         * src/mcs51/main.c: added keyword banked,
8379           (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
8380         * support/Util/SDCCerr.c,
8381         * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
8382           needed for passing the bank and address to the trampoline
8383         * device/lib/mcs51/crtbank.asm: added for bankswitching
8384         * device/lib/mcs51/Makefile: added crtbank
8385
8386 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8387
8388         * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
8389           for fields at offset 0 of a struct or union as reported
8390           on 2005-07-07 in the developer mailing list.
8391
8392 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
8393
8394         * src/SDCCmem.c: fixed bug 1238386
8395
8396 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8397
8398         * src/mcs51/peeph.def: added labelrefcounting for peepholes
8399           (patch #1144962), added peephole 300, enabled 259.x
8400         * doc/sdccman.lyx: removed screenshot and provided link instead
8401
8402 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8403
8404         * doc/sdccman.lyx: added section about debugging with ddd
8405         * doc/figures/ddd_example.eps: screenshot of debugging session
8406
8407 2005-07-04 Raphael Neider <rneider AT web.de>
8408
8409         * src/pic/gen.c (genPointerGet): handle pointers to CONST values
8410           like CODE pointers, fixes #1115683
8411         * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
8412           call, fixes bugs #1232211, #1228110,
8413           fixed wrong casts to pCodeFlow from pCodeInstructions
8414
8415 2005-07-04 Raphael Neider <rneider AT web.de>
8416
8417         * src/pic/gen.c (popGet): changed assert to allow for
8418           bit operands
8419         * (popGetAddr): changed signature to provide
8420           an additional index, patched all call sites
8421         * (genCmpEq): handle literal-like operands correctly
8422         * (genAddrOf): added sanity checks on __code/__data pointers
8423         * (genAssign): added handling of symbols from __code section
8424         * (gencjne): do not generate code for comparisons whose result
8425           is neither stored nor used, fixes bug #1171114
8426         * (AccLsh, AccRsh): operate on operand instead of WREG
8427         * (shift{Left,Right}_Left2ResultLit): NEW, size independant
8428           replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
8429           by known count
8430         * rewrote complete shift-by-literal logic, commented unused
8431           functions out
8432         * (genConstPointerGet): get multiple bytes (if result size > 1),
8433           fixed handling of non-immediate addresses
8434         * (genPointerGet): handle CODE pointers like CONST pointers
8435         * (genpic14Code): insert C-SRC lines as Cource-pCodes
8436         * ({aop,op}_isLitLike): NEW, single place to decide whether an
8437           operand is to be treated as a literal or not
8438         * (mov2w,genPcall,genCmpEq),
8439           src/pic/genarith.c: use aop_isLitLike() to decide between
8440           literal/register contents
8441         * (addSign): added missing offset
8442         * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
8443           only emit comment in debug-mode,
8444           use {aop,op}_isLitLike throughout the file
8445         * src/pic/glue.c: fix initializers for pointers (work in progress)
8446         * src/pic/pcode.c (get_op): honor index on _const symbols
8447         * ({reset,dump}pCodeStatistics): NEW, estimate code size
8448         * (dumppBlock): added pCode size estimation
8449         * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
8450           check for IS_SYMOP before OP_SYMBOL'ing
8451         * fixed indentation, compacted switch-statements
8452         * (allocReg): find free register and allocate it instead of
8453           allocating new registers all the time
8454         * (deassignLRs): prevent POINTER_GET's from being assigned the same
8455           registers as its operands (necessary only for multibyte GETs)
8456
8457 2005-07-01 Raphael Neider <rneider AT web.de>
8458
8459         * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
8460           debugging .asm-output macros FENTRY + FEXIT
8461         * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
8462           way... I wonder...
8463         * (emitpComment): NEW, printf to pCode
8464         * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
8465           offset handling
8466         * (popGetAddr): NEW, variant of popGet to access an immediates
8467           high(er) bytes instead of the n'th byte of memory they reference,
8468           replaced popGet with popGetAddr where neccessary
8469         * (genDataPointerGet): reactivated and fixed implementation
8470         * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
8471           accesses
8472         * (genDataPointerSet): fixed multibyte assignments
8473         * (genpic14Code): fixed --i-code-in-asm handling
8474         * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
8475         * (genPlus): fixed index-out-of-bounds error
8476         * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
8477         * src/pic/ralloc.c: added debugging output macro FENTRY2
8478         * (spillThis): fixed indentation, enbraced for-body for clarity
8479         * (rematStr): commented out as now unused
8480         * (regTypeNum): commented out special spill case (overwrites
8481           arbitrary values)
8482         * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
8483
8484 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
8485
8486         * doc/sdccman.lyx: documented sfr16/sfr32,
8487           added example for using storage class with function pointers
8488         * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
8489
8490 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
8491
8492         * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
8493         * device/lib/_itoa.c,
8494         * device/lib/_ltoa.c: optimized codesize
8495         * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
8496           but don't know how to suppress the double warning.
8497         * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
8498         * support/Util/SDCCerr.c,
8499         * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
8500
8501 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
8502
8503         * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
8504           fixed old K&R prototypes
8505         * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
8506         * device/lib/_gptrget.c,
8507         * device/lib/_gptrgetc.c,
8508         * device/lib/_gptrput.c: changed versions for new memory indicator values,
8509           also new versions for small generic pointers and banked generic pointers
8510         * src/port.h: added const_name
8511         * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
8512         * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
8513         * src/SDCCcse.c (findPrevIc): check all associative operators
8514         * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
8515         * src/SDCCicode.h: added macro IS_ASSOCIATIVE
8516         * src/SDCCmem.c: updated comments,
8517           set far-space to 0 for pdata, results in optimized code
8518         * src/SDCCmem.h: added macro CONST_NAME
8519         * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
8520           moving the info into the highest bits, see also gptrget/gptrput
8521         * src/src.dsp: added sdcc.ico to project files
8522         * src/avr/gen.c (genCast): fixed bug 0x%d
8523         * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
8524         * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
8525           relation between ptr_type and DCL_TYPE,
8526           (genCast): fixed bug 0x%d
8527         * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
8528           (CODE)" for const_name
8529         * src/hc08/gen.c (genCast): fixed bug 0x%d
8530         * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
8531           (hc08_port): added "CONST (CODE)" for const_name
8532         * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
8533           (aopForRemat, adjustArithmeticResult): disconnected direct relation
8534           between ptr_type and DCL_TYPE,
8535           (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
8536           operand* and took AOP() inside function so sfr-ness can be checked,
8537           (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
8538           new prototype,
8539           (genFunction, genEndFunction): optimized stack setup,
8540           (genMinus): optimized for literals with ending zeroes (in bytes),
8541           (genCast): fixed bug 0x%d
8542         * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
8543           (mcs51_port): added "CONST (CODE)" for const_name
8544         * src/mcs51/peeph.def: made rule 226 more generic
8545         * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
8546         * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
8547         * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
8548         * src/z80/main.c (z80_port): added NULL for const_name,
8549           (gbz80_port): added NULL for const_name
8550         * support/regression/tests/bug663539.c,
8551         * support/regression/tests/sfr16.c: new tests
8552
8553 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8554
8555         * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
8556
8557 2005-06-24 Raphael Neider <rneider AT web.de>
8558
8559         * device/lib/pic16/libdev/pic18f[68][567]20.c:
8560           corrected typos...
8561         * device/include/pic16/signal.h: added USBIF
8562           and SIG_USB
8563
8564 2005-06-24 Raphael Neider <rneider AT web.de>
8565
8566         * device/lib/pic16/libdev/pic18f2455.c,
8567           device/include/pic16/pic18f2455.h: NEW
8568         * device/include/pic16/pic18fregs.h,
8569           device/lib/pic16/pics.all,
8570           src/pic16/device.c: added 18f2455
8571         * device/lib/pic16/libdev/pic18f[68][567]20.c,
8572           device/include/pic16/{pic18f[68][567].h,usart.h}:
8573           replaced MULTIPLE_USARTS define with more relaible
8574           compatibility sfrs (for USART access)
8575
8576 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
8577
8578         * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
8579           and the output asm file line is printed on two lines.
8580
8581 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8582
8583         * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
8584           BGT, BLE, BHI, and BLS instructions
8585         * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
8586           genCmpEq): removed
8587         * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
8588           negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
8589           fixes bug #1216342
8590         * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
8591
8592 2005-06-15 Raphael Neider <rneider AT web.de>
8593
8594         * src/pic16/NOTES: moved Vangelis from active developers to people to contact
8595         * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
8596         * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
8597           fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
8598           OP_SYM_TYPE() instead of OP_SYM_ETYPE()
8599
8600 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8601
8602         * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
8603           Marcel Telka in bug #1215704
8604
8605 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
8606
8607         * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
8608           located in shared memory bank.
8609
8610 2005-05-31 Raphael Neider <rneider AT web.de>
8611
8612         * src/pic16/{gen.c,genarith.c}: replaced sign-extension
8613           "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
8614           "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
8615
8616 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
8617
8618         * device/lib/_strncpy.c: fixed the fix
8619
8620 2005-05-26 Raphael Neider <rneider AT web.de>
8621
8622         * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
8623           initializers with \0, bug #1208187
8624         * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
8625           intializers with \0, bug #1208187
8626
8627 2005-05-26 Raphael Neider <rneider AT web.de>
8628
8629         * src/pic16/glue.c (pic16_printIvalChar): fixed string
8630           initializers with \0, bug #1208187
8631         * src/pic16/main.c (_process_pragma): added sanity checks
8632           for stack position and size, emit warnings when appropriate
8633
8634 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
8635
8636         * device/lib/_strncpy.c: fixed not filling with \0
8637
8638 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8639
8640         * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
8641           createFunction),
8642         * src/SDCC.y (external_definition, enumerator, parameter_declaration,
8643           compound_statement),
8644         * src/SDCCsymt.h,
8645         * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
8646
8647 2005-05-24 Raphael Neider <rneider AT web.de>
8648
8649         * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
8650
8651 2005-05-24 Raphael Neider <rneider AT web.de>
8652
8653         * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
8654           TRISE definitions, closes bug #1162453
8655
8656 2005-05-22 Raphael Neider <rneider AT web.de>
8657
8658         * src/pic16/main.c (_process_pragma): check for missing
8659           arguments to pragmas code and udata
8660         * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
8661           consistency fixes to match other headers (thanks to Jim Paris)
8662         * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
8663
8664 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
8665
8666         * src/SDCCicode.c (isOperandEqual): fixed missing ;
8667
8668 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
8669
8670         * support/regression/tests/bug1198642.c: new test
8671         * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
8672         * src/SDCCcse.c (findPrevIc): added comment, please have a look
8673         * support/scripts/resource.h,
8674         * support/scripts/resource.rc,
8675         * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
8676         * support/scripts/sdcc.ico: added 32x32 icon
8677
8678 2005-05-18 Raphael Neider <rneider AT web.de>
8679
8680         * device/lib/pic16/libdev/pic18f*.c,
8681         * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
8682           keywords to "__sfr" and "__at (X)"
8683         * device/include/pic16/pic18fregs.h: added pic18f4520
8684         * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
8685           #1203088 (MPLAB compatibility)
8686
8687 2005-05-17 Raphael Neider <rneider AT web.de>
8688
8689         * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
8690         * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
8691         * device/lib/pic16/pics.all: added new devices
8692         * src/pic16/device.c: added support for pic18f4520
8693
8694 2005-05-16 Raphael Neider <rneider AT web.de>
8695         * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
8696         * src/pic16/genarith.c (genAddLit): fixed bug 1202480
8697         * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
8698           convenience function for bit access
8699
8700 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
8701
8702         * device/lib/printf_large.c: fixed bug 1193299
8703         * support/regression/tests/bug1057979.c: added test %3.3s
8704
8705 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8706
8707         * device/include/mcs51/8051.h,
8708         * device/include/mcs51/8052.h: made parseable with lint
8709         * device/include/mcs51/lint.h: added include file for (sp)lint
8710         * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
8711         * doc/cdbfileformat.lyx,
8712         * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
8713
8714 2005-05-14 Raphael Neider <rneider AT web.de>
8715
8716         * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
8717         * device/lib/pic16/libc/stdlib/itoa.c (new)
8718         * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
8719         * device/lib/pic16/libio/Makefile: exclude subdir according to
8720           ${subdir}.ignore for certain PICs (lacking e.g. i2c)
8721         * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
8722         * src/pic16/gen.c (genFunction): prevent annoying warning
8723         * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
8724           nameclashes on BeOS
8725         * support/cpp2/cppmain.c (cpp_output_string): new
8726         * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
8727           fixes bug 1116802
8728
8729 2005-05-13 Borut Razem <borut.razem AT siol.net>
8730
8731         * src/SDCCmain.c (linkEdit): fixed bug 1195202
8732
8733 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8734
8735         * .version: changed to version 2.5.1; back to bleeding edge development
8736
8737 2005-05-11 Borut Razem <borut.razem AT siol.net>
8738
8739         * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
8740           generate PDF version 1.3 documents
8741
8742 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8743
8744         * .version: changed to version 2.5.0
8745
8746 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8747
8748         * doc/sdccman.lyx: updated weblinks, index and smaller updates
8749
8750 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8751
8752         * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
8753         --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
8754         well as many smaller updates.
8755         * .version: changed to version 2.5.0-pre1
8756
8757 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8758
8759         * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
8760
8761 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
8762
8763         * support/regression/tests/bug1185672.c: added
8764         * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
8765           bug 1185672
8766         * src/mcs51/gen.c (genCall): added comments, made it look safer
8767         * src/mcs51/gen.c (genEndFunction): simplified
8768
8769 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
8770
8771         * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
8772
8773 2005-04-14 Borut Razem <borut.razem AT siol.net>
8774
8775         * fixed bug 1045046 - SIGSEGV with really simple code?:
8776           src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
8777           src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
8778
8779 2005-04-14 Borut Razem <borut.razem AT siol.net>
8780
8781         * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
8782           src/pic16/device.h: temporarily disabled experimental #inline pragma
8783           for 2.5.0 release
8784
8785 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
8786
8787         * device/include/z80/stdio.h,
8788         * device/include/z80/string.h: removed these highly incomplete files so
8789           SDCC can use the default ones in device/include/
8790
8791 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8792
8793         * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
8794         gcc warning.
8795         * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
8796         fix sdcpp warnings.
8797
8798 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
8799
8800         * device/include/malloc.h: removed redundant __reentrant prototypes
8801         * device/lib/_mullong.c: added working xstack variant in asm (C version
8802           doesn't pass regression tests)
8803         * device/lib/bpx.c: used __data and made bpx char for mcs51
8804         * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
8805           (createFunction): fixed bug with xstackPtr
8806         * src/SDCCcse.c: corrected comments
8807         * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
8808           (killDeadCode, eBBlockFromiCode): removed unused code
8809         * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
8810           corrected comments
8811         * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
8812           assignResultValue, genCall, genFunction, genEndFunction, genAnd,
8813           genOr, genXor, genAddrOf): fixed several bugs concerning xstack
8814           (genModOneByte): fixed warning in MSVC
8815         * src/mcs51/main.c (): added comments
8816         * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
8817
8818 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
8819
8820         * src/SDCCmain.c (linkEdit): oops, changed one line too many
8821
8822 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
8823
8824         * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
8825
8826 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
8827
8828         * src/pic16/glue.c (printIvalChar): fixed bug when emitting
8829         characters arrays of larger size than the declared one.
8830
8831 2005-04-10 Borut Razem <borut.razem AT siol.net>
8832
8833         * src/pic/gen.c (genInline),
8834           src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
8835           (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
8836           (findNextInstruction), (findPrevInstruction),
8837           (findInstructionUsingLabel),
8838           src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
8839         * src/pic/pcode.c (findLabel): added missing '\n'
8840         * src/src.dsp: added SDCCdwarf2.c to the project
8841
8842 2005-04-09 Borut Razem <borut.razem AT siol.net>
8843
8844         * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
8845
8846 2005-04-08 Raphael Neider <rneider AT web.de>
8847
8848         * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
8849           into the chain after a given one) and mergeDefmapSymbols (combine
8850           defmap entries for each symbol per pcode)
8851         * (createDefmap): have defmap entries merged in the end
8852         * (defmapReplaceSymRef): split defmap entries covering two accesses to
8853           a symbol before replacing one access type's symbol, merge symbols in
8854           the end (replacement symbol might already have an entry)
8855         * (assignValnums): keep reference to written WREG intact
8856
8857 2005-04-08 Raphael Neider <rneider AT web.de>
8858
8859         * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
8860           Alpha)
8861
8862 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
8863
8864         * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
8865         bytes
8866
8867 2005-04-07 Raphael Neider <rneider AT web.de>
8868
8869         * device/include/pic16/usart.h: added compatibility defines for
8870           devices with more than one USART
8871         * device/include/pic16/pic18f[68][567]20.h: activated above defines
8872
8873 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
8874
8875         * device/lib/Makefile.in: updated for port specific include
8876
8877 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
8878
8879         * support/regression/ports/mcs51/spec.mk: added mcs51 include
8880
8881 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
8882
8883         * device/include/8051.h,
8884         * device/include/8052.h,
8885         * device/include/at89S8252.h,
8886         * device/include/at89c55.h,
8887         * device/include/at89x051.h,
8888         * device/include/at89x51.h,
8889         * device/include/at89x52.h,
8890         * device/include/mcs51reg.h,
8891         * device/include/reg51.h,
8892         * device/include/reg764.h,
8893         * device/include/regc515c.h,
8894         * device/include/sab80515.h: (re)moved these 12 files
8895         * device/include/mcs51/8051.h,
8896         * device/include/mcs51/8052.h,
8897         * device/include/mcs51/at89S8252.h,
8898         * device/include/mcs51/at89c55.h,
8899         * device/include/mcs51/at89x051.h,
8900         * device/include/mcs51/at89x51.h,
8901         * device/include/mcs51/at89x52.h,
8902         * device/include/mcs51/mcs51reg.h,
8903         * device/include/mcs51/reg51.h,
8904         * device/include/mcs51/reg764.h,
8905         * device/include/mcs51/regc515c.h,
8906         * device/include/mcs51/sab80515.h: and added them here
8907
8908 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
8909
8910         * device/include/stdarg.h: changed SDCC specific keywords to double
8911           underlined form.
8912         * device/include/stdint.h: changed intptr_t and uintptr_t for others than
8913           mcs51 and ds390.
8914         * device/include/hc08/mc68hc908gp32.h,
8915         * device/include/hc08/mc68hc908jb8.h,
8916         * device/include/hc08/mc68hc908jkjl.h,
8917         * device/include/hc08/mc68hc908qy.h: fixed comments
8918         * device/include/mcs51/README: updated
8919         * device/include/mcs51/c8051f120.h: added PINRSF
8920         * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
8921         * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
8922           amidst code. Also inline is not supported.
8923
8924 2005-04-06 Raphael Neider <rneider AT web.de>
8925
8926         * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
8927         * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
8928           callers stack/frame pointers
8929
8930 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
8931
8932         * device/include/pic16/usart.h: added, missing in previous commit,
8933         * device/include/pic16/adc.h: fixed typo,
8934         * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
8935         commit,
8936         * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
8937         <p18fxxx.inc>
8938         * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
8939         uninitialized because a bug appears with gplink
8940         * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
8941         COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
8942         complains for unrecognised option
8943
8944 2005-04-05 Raphael Neider <rneider AT web.de>
8945
8946         * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
8947           structs as well (using memcpy)
8948         * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
8949           on ISRs (GOTO has no label)
8950         * src/pic16/device.h: added OF_OPTIMIZE_DF
8951         * src/pic16/main.c: added compiler switch --optimize-df to enable the
8952           new data flow analysis/optimization
8953         * src/pic16/pcode.c: added (prototypes for and implementation of)
8954           dataflow analysis functions, fixed pCodeInstructions' inCond and
8955           outCond values, made RCALL a branch instruction
8956         * (pic16_unlinkpCode): keep C line if possible
8957         * (pic16_pCodeUnlink): removed cast on left side of assignment, have
8958           C line moved if possible
8959         * (pic16_getRegFrompCodeOp): NEW, improved version of...
8960         * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
8961           to use new pic16_getRegFrompCodeOp (works for more SFRs)
8962         * (pic16_BuildFlow): fixed skip instructions with label (did not start
8963           new flow)
8964         * (pic16_getJumptabpCode): NEW, needed in...
8965         * (LinkFlow): fixed handling of jumptables, calls and conditional
8966           branches
8967         * (pic16_InsertCommentAfter): NEW
8968         * (pic16_pCodeReplace): made verbose and flow preserving
8969         * (AnalyzeFlow): added call to data flow analysis
8970         * src/pic16/pcode.h: added defmaps to pCodeFlow struct
8971         * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
8972         * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
8973
8974 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8975
8976         * src/SDCCast.c (decorateType): fixed bug #1105626
8977
8978 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
8979
8980         * device/include/asm/pic16/features.h,
8981         * pic18f*.h headers,
8982         * device/include/pic16/adc.h,
8983         * device/include/pic16/delay.h,
8984         * device/include/pic16/i2c.h,
8985         * device/include/pic16/malloc.h,
8986         * device/include/pic16/stdio.h,
8987         * device/include/pic16/stdlib.h,
8988         * device/include/pic16/string.h,
8989         * device/lib/pic16/libc/stdio/printf_tiny.c,
8990         * device/lib/pic16/libc/stdio/printf_small.c,
8991         * device/lib/pic16/libc/stdio/strmgpsim.c,
8992         * device/lib/pic16/libc/stdio/strmmssp.c,
8993         * device/lib/pic16/libc/stdio/strmusart.c,
8994         * device/lib/pic16/libc/stdio/vfprintf.c,
8995         * device/lib/pic16/libc/stdlib/ltoa.c,
8996         * device/lib/pic16/libc/stdlib/putchar.c,
8997         * device/lib/pic16/libc/stdlib/x_ftoa.c,
8998         * device/lib/pic16/libc/stdlib/memchrpgm.c,
8999         * device/lib/pic16/libc/stdlib/memchrram.c,
9000         * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
9001         * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
9002         * device/lib/pic16/libio/adc/adcbusy.c,
9003         * device/lib/pic16/libio/adc/adcread.c,
9004         * device/lib/pic16/libio/adc/adcsetch.c,
9005         * device/lib/pic16/libio/usart/ubaud.c,
9006         * device/lib/pic16/libio/usart/ubusy.c,
9007         * device/lib/pic16/libio/usart/udrdy.c,
9008         * device/lib/pic16/libio/usart/uopen.c,
9009         * device/lib/pic16/libio/usart/uputc.c,
9010         * device/lib/pic16/libsdcc/gptr/gptrget1.c,
9011         * device/lib/pic16/libsdcc/gptr/gptrget2.c,
9012         * device/lib/pic16/libsdcc/gptr/gptrget3.c,
9013         * device/lib/pic16/libsdcc/gptr/gptrget4.c,
9014         * device/lib/pic16/libsdcc/gptr/gptrput1.c,
9015         * device/lib/pic16/libsdcc/gptr/gptrput2.c,
9016         * device/lib/pic16/libsdcc/gptr/gptrput3.c,
9017         * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
9018         specific keywords to double underlined form,
9019         * device/lib/pic16/libc/Makefile.rules,
9020         * device/lib/pic16/libsdcc/Makefile.rules,
9021         * device/lib/pic16/libm/Makefile,
9022         * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
9023         to compile with C standard set in Makefile.common
9024         * device/lib/pic16/libc/stdlib/Makefile: added new C sources
9025         rand.c and crc.c in compilation process,
9026         * device/lib/pic16/libsdcc/int/divuint.c,
9027         * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
9028         `c' from signed to unsigned,
9029         * device/lib/pic16/startup/crt0.c,
9030         * device/lib/pic16/startup/crt0i.c,
9031         * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
9032         keywords to double underlined form, bug fixes in _do_cinit function
9033         which prevented the correct initialization of the .idata segment,
9034         * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
9035         core to enter a infinite loop
9036         * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
9037
9038 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9039
9040         * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
9041
9042 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9043
9044         * device/include/Makefile.in: add support for hc08 subdirectory
9045         * device/include/hc08/: new subdirectory
9046         * device/include/hc08/mc68hc908jkjl.h: new header contributed by
9047         Lucas Loizaga, thanks!
9048         * device/include/hc08/mc68hc908qy.h,
9049         * device/include/hc08/mc68hc908gp32.h,
9050         * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
9051         their own directory. Changed internal macro names to use the compiler
9052         reserved namespace. Changed SDCC specific keywords to double
9053         underlined form.
9054         * device/include/math.h,
9055         * device/include/malloc.h,
9056         * device/include/stdarg.h,
9057         * device/include/stdbool.h
9058         * device/include/string.h,
9059         * device/include/tinibios.h,
9060         * device/include/ds400rom.h,
9061         * device/include/8051.h,
9062         * device/include/8052.h,
9063         * device/include/80c51xa.h,
9064         * device/include/at89c55.h,
9065         * device/include/at89S8252.h,
9066         * device/include/at89x51.h,
9067         * device/include/at89x52.h,
9068         * device/include/ds80c390.h,
9069         * device/include/reg764.h,
9070         * device/include/regc515c.h,
9071         * device/include/sab80515.h,
9072         * device/include/mcs51/c8051f000.h,
9073         * device/include/mcs51/c8051f018.h,
9074         * device/include/mcs51/c8051f020.h,
9075         * device/include/mcs51/c8051f040.h,
9076         * device/include/mcs51/c8051f060.h,
9077         * device/include/mcs51/c8051f120.h,
9078         * device/include/mcs51/c8051f300.h,
9079         * device/include/mcs51/c8051f310.h,
9080         * device/include/mcs51/c8051f320.h,
9081         * device/include/mcs51/c8051f330.h,
9082         * device/include/mcs51/c8051f350.h,
9083         * device/include/z180.h: Changed SDCC specific keywords to double
9084         underlined form.
9085
9086 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
9087
9088         * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
9089         18F4455,
9090         * (pic16_assignConfigWordValue): disable testing of configuration
9091         register value with config mask,
9092         * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
9093         function with port->fun_prefix,
9094         * (genFunction): when generating a naked interrupt function never
9095         create an absolute segment placed in interrupt vector address, place
9096         the actual interrupt function at IVA instead, when an interrupt
9097         function is generated with unspecified interrupt then do not create
9098         the absolute section,
9099         * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
9100         code for generating a call to generic pointer get/put function with
9101         a call to function pic16_callGenericPointer(),
9102         * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
9103         the call to the generic pointer get/put functions with prefixing the
9104         function name with port->fun_prefix,
9105         * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
9106         * src/pic16/main.c (_process_pragma): prefix function with
9107         port->fun_prefix,
9108         * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
9109         calling assembler, old 18Fxxxx macro is deprecated,
9110         * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
9111         PC_ASMDIR in while condition,
9112         * (findInstruction): add PC_ASMDIR in while condition,
9113         * (buildCallTree): prefix main with port->fun_prefix,
9114         * (pic16_pCode2str): fixed bug that didn't emit the memory access
9115         identifier for variable with banked access in instructions BTFSS,
9116         BTFSC, BCF, BSF, BTG
9117         * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
9118         * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
9119         * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
9120         perform optimization when enviroment variable NO_REG_OPT is set,
9121         * (insideLRBlock): NEW, return 1 if register is inside an
9122         INF_LOCALREGS block,
9123         * (RemoveRegFromLRBlock): remove a register that is completely
9124         eliminated by register optimization, but it is still left in local
9125         register store/restore in/from stack block,
9126         * (Remove2pcodes): after removing register, check to see if it
9127         should be removed from local register store/restore in/from stack
9128         block,
9129         * src/pic16/ralloc.c (pic16_decodeOp): added decode for
9130         DUMMY_READ_VOLATILE,
9131
9132         * device/include/pic16/adc.h: minor prototype modifications and
9133         update,
9134         * device/include/pic16/malloc.h: added GPL notice various
9135         modifications,
9136         * device/include/pic16/stdint.h: NEW, standard header for ints
9137         * device/include/pic16/delay.h: NEW, header for delay functions,
9138         delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
9139         delay1mtcy,
9140         * device/include/pic16/signal.h: NEW, header providing helper macros
9141         for implementing signal handlers,
9142         * device/include/pic16/stdio.h: added prototypes for functions,
9143         printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
9144         prototypes for stdin and stdout, added macro PUTCHAR to
9145         automatically implement putchar function prototype,
9146         * device/include/pic16/usart.h: modified and updated USART library,
9147         * device/lib/pic16/libio/adc/,
9148         * device/lib/pic16/libio/i2c: some modifications to improve library
9149         performance,
9150         * device/lib/pic16/libc/stdio/: modifications for the new printf*
9151         family of functions,
9152         * device/lib/pic16/libc/stdlib/: various modifications in the malloc
9153         family of functions and other sources,
9154         * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
9155         of the PIC18Fxx[28] devices,
9156         * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
9157         * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
9158         * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
9159         _do_cinit function, because the previous failed when local variables
9160         where not placed in the same memory bank,
9161         * device/lib/pic16/libsdcc/char/: various modifications to improve
9162         library performance,
9163         * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
9164         information on the new functions of the c library and more...
9165
9166 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9167
9168         * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
9169
9170 2005-03-26 Raphael Neider <rneider AT web.de>
9171
9172         * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
9173           if condition == CARRY)
9174         * (genCmp): adapted to new genSkipc semantics
9175         * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
9176           on rIfx (genCmp was broken)
9177
9178 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9179
9180         * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
9181         * src/z80/main.c (_keywords[]),
9182         * src/SDCCglobal.h (struct options),
9183         * src/SDCC.y,
9184         * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
9185         to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
9186         std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
9187         --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
9188         always available in leading double underscore form. The C99 support is
9189         mostly missing, but it's a start.
9190         * support/regression/tests/bug-227710.c: fixed nonconforming use of
9191         reserved identifier "__data".
9192
9193 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
9194
9195         * src/mcs51/peeph.def: fixed bug 1170013
9196
9197 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
9198
9199         * device/include/mcs51reg.h: fixed bug 842007
9200
9201 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9202
9203         * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
9204         last time.
9205
9206 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9207
9208         * src/port.h (struct PORT),
9209         * src/avr/ralloc.c (avr_assignRegisters),
9210         * src/avr/main.c,
9211         * src/ds390/ralloc.c (ds390_assignRegisters),
9212         * src/ds390/main.c,
9213         * src/hc08/ralloc.c (hc08_assignRegisters),
9214         * src/hc08/main.c,
9215         * src/mcs51/ralloc.c (mcs51_assignRegisters),
9216         * src/mcs51/main.c,
9217         * src/pic/ralloc.c (pic14_assignRegisters),
9218         * src/pic/main.c,
9219         * src/pic16/ralloc.c (pic16_assignRegisters),
9220         * src/pic16/main.c,
9221         * src/xa51/ralloc.c (xa51_assignRegisters),
9222         * src/xa51/main.c,
9223         * src/z80/ralloc.c (z80_assignRegisters),
9224         * src/z80/ralloc.h,
9225         * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
9226         * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
9227         * src/SDCCcse.h,
9228         * src/SDCCdflow.c (computeDataFlow),
9229         * src/SDCCdflow.h,
9230         * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
9231         * src/SDCCloop.h,
9232         * src/SDCCcflow.c (*),
9233         * src/SDCCcflow.h,
9234         * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
9235         * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
9236         of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
9237         immedDom() returning wrong block; probably fixes bug #1160833)
9238
9239 2005-03-20 Borut Razem <borut.razem AT siol.net>
9240
9241         * support/scripts/inc2h.pl: WIN32 port
9242
9243 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
9244
9245         * device/lib/makefile.in: added abs.c and labs.c
9246
9247 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
9248
9249         * device/include/stdint.h: added
9250         * device/lib/abs.c: added
9251         * device/lib/labs.c: added
9252         * device/include/stdlib.h: added abs() and labs() prototypes
9253         * device/lib/libsdcc.lib: added abs and labs
9254         * device/include/float.h,
9255         * device/lib/_fsmul.c,
9256         * device/lib/printf_fast.c,
9257         * device/lib/printf_tiny.c: updated comments
9258
9259 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9260
9261         * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
9262         bug #1164313
9263
9264 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9265
9266         * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
9267         * src/SDCCast.c (isLoopCountable): fixed bug #1161985
9268
9269 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
9270
9271         * device/lib/printf_large.c: removed inline assembly for portability and
9272           readability. Use printf_fast if speed or size are more important.
9273         * src/pic16/gen.c: removed conditions around use of DEBUGpc
9274         * src/pic16/genutils.h: added define for DEBUGpc for MSVC
9275
9276 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
9277
9278         * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
9279         prevent compiler warning
9280
9281 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
9282
9283         * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
9284         moved to level 0 and declared as static. Also they are explicit
9285         placed in access bank. This was necessery because some times they
9286         might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
9287         * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
9288         optimizations. Currently only compare to unsigned char is implemented,
9289         * src/pic16/gen.c: added fReturnIdx array,
9290         * (struct resolvedIfx) is moved to gen.h and made public,
9291         * (struct _G): added sregsAlloc and sregsAllocSet fields,
9292         * (aopForSym): added an optimization to directly store in stack of
9293         the operand of a SEND iCode,
9294         * (pic16_aopOp): don't return return registers as strings (AOP_STR)
9295         but as registers instead (AOP_REG) using the fReturnIdx array,
9296         * (pic16_freeAsmop): remove the freed register from the
9297         _G.sregsAlloc field,
9298         * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
9299         a compare of 'WREG',
9300         * (pic16_popGetTempRegCond): changed function prototype, now
9301         function takes also a bitVector argument v which holds the current
9302         set of registers that are allocated for stack access by aopForSym,
9303         registers allocated in aopForSym for accessing stack symbols are not
9304         any more part of the functions usedRegs field,
9305         * (genCall): some times aopOp is called for a stack variable to be
9306         send, aopForSym might perform the push, if this is true make sure
9307         that genCall doesn't push the variable twice by testing _G.resDirect,
9308         * (genFunction): changed testing for unspecified interrupt number
9309         from 256 to INTNO_UNSPEC,
9310         * modified selection scheme of frame pointer generation. Previously
9311         if function did use local registers a frame pointer was generated,
9312         now a frame pointer is generated only if function has arguments
9313         (that need PLUSW2 register access), or has stack arguments, or the
9314         compiler is not instructed to omit the frame pointer,
9315         * (genEndFunction): before restoring local registers that were saved
9316         in the function preamble, also restore the registers that *might*
9317         have been allocated for stack access,
9318         * (genRet): removed some old comments,
9319         * (genCmp, the active (RN's) version): added a call to the
9320         pic16_genCmp_special function to perform the compare with a more
9321         robust and optimized way,
9322         * (genInline): a feature has been added in inline code generation,
9323         which allows a wildcard variable substitution when writing inline
9324         assembly. Code is incomplete and experimental therefore undocumented,
9325         * (genCast): changed order of aopOp for result and right to allow
9326         aopForSym to directly load the result if possible,
9327         * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
9328         perform an optimized compare on some selected special occasions,
9329         * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
9330         * src/pic16/glue.c (pic16createInterrupVect): make sure we never
9331         generate an IVT any more,
9332         * src/pic16/main.c (pic16_optionsTable): added command line option
9333         --optimize-cmp,
9334         * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
9335         macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
9336         macros,
9337         * src/pic16/NOTES: Raphael Neider added in list of active developers
9338         * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
9339         jumptable_end to prevent bug #,
9340         * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
9341         inCond and outCond fields,
9342         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
9343         * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
9344         turn off register spilling,
9345         * (packRegsForOneUse): synced with other ports' versions although it
9346         is not used currently,
9347         * (pic16_packRegisters): added an optimization while reading
9348         structure bitfields, some registers may be saved (malloc code is
9349         decreased by 80 bytes)
9350
9351 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
9352
9353         * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
9354         left is a bitfield, if yes, then don't optimize assignment. Perhaps
9355         this can be optimized more?
9356
9357 2005-03-10 Raphael Neider <rneider AT web.de>
9358
9359         * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
9360           genNearPointerGet): (hopefully) fixed access to bitfields via
9361           pointers (p->bitN = x; and x = p->bitN; failed)
9362
9363 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
9364
9365         * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
9366
9367 2005-03-09 Raphael Neider <rneider AT web.de>
9368
9369         * src/SDCCopt.c (killDeadCode): fixed bug #1156016
9370
9371 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
9372
9373         * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
9374         * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
9375           (regTypeNum): set REG_BIT type if necessary
9376         * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
9377         * support/regression/tests/critical.c: check bug 1144613
9378
9379 2005-03-02 Raphael Neider <rneider AT web.de>
9380
9381         * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
9382
9383 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9384
9385         * src/avr/ralloc.c (serialRegAssign),
9386         * src/ds390/ralloc.c (serialRegAssign),
9387         * src/hc08/ralloc.c (serialRegAssign),
9388         * src/mcs51/ralloc.c (serialRegAssign),
9389         * src/pic/ralloc.c (serialRegAssign),
9390         * src/pic16/ralloc.c (serialRegAssign),
9391         * src/xa51/ralloc.c (serialRegAssign),
9392         * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
9393
9394 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
9395
9396         * src/SDCCast.c (decorateType): fixed bug 1124787
9397
9398 2005-02-20 Hubert Sack <sack AT digiplan.de>
9399         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9400
9401         * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
9402         patch #1121755
9403
9404 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9405
9406         * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
9407         to keep the correct label reference count when adding/removing references
9408         to labels. A peephole file using this is appended to patch #1144962.
9409
9410 2005-02-14 Raphael Neider <rneider AT web.de>
9411
9412         * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
9413         * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
9414         * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
9415           retrievals of result operand's value on assignment
9416
9417 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
9418
9419         * device/include/pic16/string.h: modified prototype for memccpy()
9420         to memccpy(void *, void *, char, size_t)
9421         * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
9422         check whether to omit frame pointer or not,
9423         * (genInline): convert all occurences of "\n" to LF in inline
9424         assembler blocks, this helps formatting the inline text,
9425         * (pic16_loadFSR0): modified prototype,
9426         * (genNearPointerGet, genNearPointerSet): reorganization of code,
9427         removed some 8051 legacy code,
9428         * (genPackBits): enabled handling bitfields exceeding one byte in size,
9429         * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
9430         before allocating temporary registers in functions,
9431
9432 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
9433
9434         * support/regression/tests/bitvars.c: corrected the "fix"
9435
9436 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
9437
9438         * support/regression/tests/bitvars.c,
9439         * support/regression/tests/bitwise.c,
9440         * support/regression/tests/rotate.c: "fixed" problems on Alpha
9441
9442 2005-02-10 Raphael Neider <rneider AT web.de>
9443
9444         * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
9445           different size for Alpha
9446         * src/pic16/gen.c (genCmpEq) : improved compare with 0
9447
9448 2005-02-09 Raphael Neider <rneider AT web.de>
9449
9450         * src/SDCC.lex(doPragma) : save and restore warning options as well
9451           (also added new stack plus clone- and copyAndFreeSDCCERRG())
9452         * have #pragma less_pedantic set the errorlevel to WARNING
9453           (fixes #1117001)
9454         * (cloneOptimize) : fixed wrong malloc's size
9455         * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
9456           facilitate correct handling of #pragma (save|restore)
9457
9458 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
9459
9460         * src/mcs51/gen.c: removed non-standard C nameless struct/union
9461
9462 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
9463
9464         * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
9465
9466 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
9467
9468         * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
9469
9470 2005-02-02 Raphael Neider <rneider AT web.de>
9471
9472         * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
9473         * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
9474         * (pic16_storeForReturn): fixed to allow returning function pointers
9475         * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
9476         * device/include/pic16/{stddef.h,stdbool.h}: added
9477
9478 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
9479
9480         * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
9481
9482 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
9483
9484         * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
9485         * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
9486          appeared to be required
9487
9488 2005-01-31 Borut Razem <borut.razem AT siol.net>
9489
9490         * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
9491           include/mcs51 and include/z80 directories to the package
9492
9493 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9494
9495         * src/hc08/gen.c (genFunction): fixed bug #1112752
9496
9497 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9498
9499         * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
9500
9501 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9502
9503         * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
9504
9505 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
9506
9507         * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
9508
9509 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
9510
9511         * device/include/c8051fxxx.h: removed these 6 files
9512         * device/include/mcs51/c8051fxxx.h: added these 11 new files
9513
9514 2005-01-26 Raphael Neider <rneider AT web.de>
9515
9516         * src/pic16/gen.c (genAssign): fixed assignment from longs
9517           in codespace (were cut to three bytes)
9518         * (genDummyRead): implemented (except for CODESPACE...),
9519           fixed bug #1108575
9520         * src/pic16/glue.c (emitStatistics): beautified
9521         * device/lib/pic16/libm/Makefile: added include path
9522
9523 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9524
9525         * src/z80/gen.c (aopPut): fixed bug #1103902
9526
9527 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9528
9529         * device/lib/expf.c: fixed bug #1095792
9530
9531 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
9532
9533         * device/lib/pic16/libm: added Math library sources
9534
9535 2005-01-24 Raphael Neider <rneider AT web.de>
9536
9537         * src/pic16/pcode.h: added second memory operand to pCodeOpReg
9538           to enable upcast to pCodeOpReg2 (there is no type tag to
9539           differenciate the two and pic16_popGet2p cast into PCOR2)
9540         * src/pic16/main.c (_process_pragma): fixed another malloc bug
9541           (sizeof(sectNames) changed to sizeof(sectName))
9542           Both patches fix segfaults under MinGW.
9543
9544 2005-01-23 Raphael Neider <rneider AT web.de>
9545
9546         * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
9547           Safe_[mc]?alloc()'ed variables
9548         * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
9549           of (byte sized) temporaries (assign them to WREG for now)
9550         * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
9551           (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
9552           this might fix SIGSEGVs on MinGW...
9553         * src/SDCCopt.c (killDeadCode): restored original behaviour
9554           (volatile operands might get thrown away though)
9555
9556 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
9557
9558         * src/pic16/gen.c: fixed bug #1106975,
9559         * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
9560         pointer update, INTCON is saved, global interrupts are disabled and
9561         restored after updateing TOS.
9562         * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
9563         * added function attribute 'shadowregs' to take advantage of shadow
9564         registers,
9565         * added function attribute 'wparam' as an alternative to the wparam
9566         pragma,
9567         * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
9568         user declares a non-ISR function as 'shadowregs',
9569         * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
9570
9571 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
9572
9573         * .version: bumped version number to 2.4.8
9574         * device/lib/pic16/pics.all: list of PIC18F devices supported by
9575         pic16 port,
9576         * device/lib/pic16/libio/i2c/: I2C module support library,
9577         * device/include/pic16/i2c.h: I2C support library header,
9578         * device/lib/pic16/libc/stdio/: standard IO support sources,
9579         * (printf_small.c): printf_small() source, supports float print,
9580         * (printf_tiny.c): printf_tiny() source, does not support floats,
9581         * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
9582         enable global optimizations for entire library source, other
9583         Makefiles in the source tree are also modified to reflect this,
9584         * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
9585         function,
9586         * doc/sdccman.lyx: updated to reflect new changes,
9587         * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
9588         sym->onStack if-case,
9589         * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
9590         sbit, idata, _idata, xdata, _xdata,
9591         * added pragma library, to link an external library, (see doc),
9592         * removed command line options, --pomit-config-words, --pomit-ivt,
9593         --pleave-reset-vector,
9594         * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
9595         when calling assembler to reflect memory model used, also define
9596         macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
9597         reflect stack model used,
9598         * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
9599         on stack return NULL,
9600
9601 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
9602
9603         * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
9604           of the operands is volatile. Fixes #1020220
9605
9606 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
9607
9608         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
9609         * (OptimizeRegUsage): make sure that there is really no other flow where
9610           the first pCode is used
9611
9612 2005-01-22 Raphael Neider <rneider AT web.de>
9613
9614         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
9615           to fix #1106967 (pCode->seq are not set up correctly)
9616
9617 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9618
9619         * src/SDCCglue.c (glue): make sure code area is declared before the
9620         static initialization area.
9621
9622 2005-01-21 Raphael Neider <rneider AT web.de>
9623
9624         * device/lib/Makefile.in: fixed test for pic16 install dir
9625         * device/lib/pic16/*/Makefile*: modified compile flags to enable
9626           optimizations
9627         * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
9628           added --optimize-goto compiler switch and pragma wparam documentation
9629         * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
9630         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
9631           and PRODH closing bug #1071770 (peephole optimizer)
9632
9633 2005-01-19 Raphael Neider <rneider AT web.de>
9634
9635         * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
9636           cmdLine buffers (used when calling sdcpp...) are large enough
9637           (MAX_PATH=256 truncates arguments leading to system halts when
9638           used in MinGW...)
9639         * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
9640         * (genUminus): rewritten to for efficiency
9641         * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
9642           used uninitialized in some cases)
9643         * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
9644           copy the third byte from the int -- now assumes 0x80 (data memory)
9645         * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
9646           operands (genAddLit expects the iCode's operands to swapped as
9647           well), fixed leftover bytes (crashed for short left operands)
9648         * (pic16_genMinusDec): performance improvements, removed false
9649           PIC14 emitSKPNCs
9650         * (pic16_genMinus): fixed to cope with differently sized operands
9651         * src/pic16/glue.c (pic16_glue): added new banksel optimization
9652           for --obanksel > 1
9653         * src/pic16/pcode.c: implemented (first phase of) banksel optimization
9654         * src/pic16/graph.[ch]: implementation of directed graphs, used by
9655           new banksel optimization
9656         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
9657           analysis for temporary registers (segfaults...)
9658         * src/pic16/peeph.def: added rule
9659
9660 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
9661
9662         * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
9663         which converts a float number to its ASCII representation
9664         * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
9665         functions to convert the fractional and integer part of a float to ASCII,
9666         * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
9667         realloc.c): added _MALLOC_SPEC to explicit place variables in data
9668         ram
9669         * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
9670         _STATMEM macros,
9671         * device/include/pic16/adc.h: added GPL info,
9672         * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
9673         a pCodeOp as tested operand,
9674         * (genNearPointerGet): optimized bit testing, does not use
9675         intermediate register for bit value, test directly instead with
9676         BTFSS, BTFSC, works only for single bits,
9677         * (genpic16Code): dump the name of the iCode in the asm,
9678         * src/pic16/ralloc.c (decodeOp): removed static declaration and
9679         renamed to pic16_decodeOp,
9680         * (serialRegAssign): do not allocate a temporary register for iCode
9681         sequences that test a single bit for 1/0
9682
9683 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
9684
9685         * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
9686         pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
9687         access stack and frame pointers. They are initially assigned to
9688         point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
9689         accessing SFRs. Updated all occurences of modification of stack or
9690         frame pointer in gen.c and pcode.c,
9691         * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
9692         assigning of a literal value to pointers,
9693         * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
9694         flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
9695         selected
9696
9697 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
9698
9699         * doc/sdccman.lyx: update documentation about stack pragma, added
9700         some info for stack memory models
9701
9702 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9703
9704         * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
9705
9706 2005-01-08 Raphael Neider <rneider AT web.de>
9707
9708         * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
9709           udata sections to fix bug #1097823
9710
9711 2005-01-05 Raphael Neider <rneider AT web.de>
9712
9713         * src/pic16/gen.c (genGenericShift): added handling of differently
9714           sized left operand and result
9715
9716 2005-01-04 Raphael Neider <rneider AT web.de>
9717
9718         * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
9719         * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
9720           to hold the condition bit)
9721         * added new version of genCmp (old code available via #define)
9722         * added new version of genShiftLeft/genShiftRight in a generic
9723           way, now supports shifting by negative values
9724         * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
9725           shiftCount (expected by genGenericShift)
9726         * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
9727         * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
9728           dump
9729         * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
9730           is an invalid literal too...)
9731
9732 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
9733
9734         * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
9735         from Raphael Neider,
9736         * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
9737         for 8-bit literals. This fixes some literal operands which are sign
9738         extended to 16-bits ints when instruction needs only 8-bits.
9739
9740 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
9741
9742         * device/lib/logf.c: added mcs51 assembly version
9743         * device/lib/expf.c: added mcs51 assembly version
9744         * device/lib/_logexpf.c: new shared asm code for expf and logf
9745         * device/include/math.h: add defines for assembly math library
9746         * device/lib/Makefile.in: build new _logexpf.c
9747         * device/lib/libfloat.lib: use new _logexpf.c
9748
9749 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
9750
9751         * src/pic/device.c
9752         * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
9753           device types which have less than 0x7f registers.
9754
9755 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
9756
9757         * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
9758
9759 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
9760
9761         * device/lib/printf_fast.c: only build on supported arch.
9762         * device/lib/printf_tiny.c: only build on supported arch.
9763         * device/lib/printf_fast_f.c: only build if asm float lib
9764         * device/lib/_fsget1arg.c: only build if asm float lib
9765         * device/lib/_fsget2args.c: only build if asm float lib
9766         * device/lib/_fsnormalize.c: only build if asm float lib
9767         * device/lib/_fsreturnval.c: only build if asm float lib
9768         * device/lib/_fsrshift.c: only build if asm float lib
9769         * device/lib/_fsswapargs.c: only build if asm float lib
9770         * device/include/stdio.h: don't provide print_fast,
9771           print_fast_f, print_tiny prototypes if --xstack used
9772
9773 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
9774
9775         * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
9776         * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
9777           to the SOURCES
9778
9779 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
9780
9781         * device/lib/printf_fast_f.c: same as printf_fast, but
9782           with floating point enabled
9783         * device/lib/printf_fast.c: minor tweaks
9784         * device/include/stdio.h: add printf_fast_f
9785
9786 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
9787
9788         * src/SDCCmain.c: make --float-reent default for mcs51
9789         * device/lib/_fsadd.c: added mcs51 assembly version
9790         * device/lib/_fssub.c: added mcs51 assembly version
9791         * device/lib/_fsmul.c: added mcs51 assembly version
9792         * device/lib/_fsdiv.c: added mcs51 assembly version
9793         * device/lib/_fseq.c: added mcs51 assembly version
9794         * device/lib/_fsneq.c: added mcs51 assembly version
9795         * device/lib/_fsgt.c: added mcs51 assembly version
9796         * device/lib/_fslt.c: added mcs51 assembly version
9797         * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
9798         * device/lib/Makefile.in: add _fscmp to build
9799         * device/lib/libfloat.lib: add _fscmp to build
9800
9801 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
9802
9803         * device/lib/_fs2slong.c: added mcs51 assembly version
9804         * device/lib/_fs2sint.c: added mcs51 assembly version
9805         * device/lib/_fs2schar.c: added mcs51 assembly version
9806         * device/lib/_fs2ulong.c: added mcs51 assembly version
9807         * device/lib/_fs2uint.c: added mcs51 assembly version
9808         * device/lib/_fs2uchar.c: added mcs51 assembly version
9809         * device/lib/_slong2fs.c: added mcs51 assembly version
9810         * device/lib/_sint2fs.c: added mcs51 assembly version
9811         * device/lib/_schar2fs.c: added mcs51 assembly version
9812         * device/lib/_ulong2fs.c: added mcs51 assembly version
9813         * device/lib/_uint2fs.c: added mcs51 assembly version
9814         * device/lib/_uchar2fs.c: added mcs51 assembly version
9815         * device/include/float.h: added #define to select asm vs c
9816
9817 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
9818
9819         * device/lib/printf_fast.c: improvements to float output
9820         * device/include/float.h: add defines for assembly float library
9821         * device/lib/_fsget1arg.c: receive 1 float arg
9822         * device/lib/_fsget2args.c: receive 2 float args (reentrant)
9823         * device/lib/_fsnormalize.c: normalize a float
9824         * device/lib/_fsreturnval.c: return float, various helper routines
9825         * device/lib/_fsrshift.c: right shift a float's mantissa
9826         * device/lib/_fsswapargs.c: swap 2 floats
9827         * device/lib/Makefile.in: build these 6 new files for mcs51
9828         * device/lib/libfloat.lib: add these 6 files to the library
9829
9830 2004-12-26 Borut Razem <borut.razem AT siol.net>
9831
9832         * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
9833           built by gcc 3.4.2
9834
9835 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
9836
9837         * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
9838           and fully reentrant and register bank neutral.
9839         * device/lib/printf_fast.c: added float (not enabled by default),
9840           added compact/slower integer (also not enabled by default),
9841           improved size/speed of fast integer code, other minor changes
9842         * device/include/stdio.h, device/lib/Makefile.in,
9843           device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
9844
9845 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
9846
9847         * src/pic16/pcode.c: declaring variables other than at the start of a
9848           block is not supported in C by VC6.
9849
9850 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
9851
9852         * applied a previous patch from Raphael Neider that wasn't included
9853         in the previous commits, which fixes infinite loops within jumptable
9854         improvements,
9855         * made some fixes that previous patches introduced
9856
9857 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
9858
9859         * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
9860         that fixes an issue with AOP_PCODE asmop's offset,
9861         * (pic16_popCopyReg): update instance field too,
9862         * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
9863         function of pic port,
9864         * (genCmp, genAnd, genAssign),
9865         * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
9866
9867 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
9868
9869         * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
9870         variables initial values to idata section,
9871         * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
9872         variables in some functions. This utilizes parmBytes field of iCode
9873         structure to hold the offset of the variable in stack. (might be
9874         able to use the stack field too?)
9875         * applied patch from Raphael Neider # ### , # ###
9876         * src/pic16/glue.c (pic16emitRegularMap): fix to print static
9877         variable initial values in idata section,
9878         * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
9879         for static variables with initial value
9880         * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
9881         applied fix in while loop from Raphael Neider.
9882
9883 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
9884
9885         * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
9886         * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
9887         * src/ds390/ralloc.c (serialRegAssign): spill bits
9888         * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
9889         * support/Util/SDCCerr.c,
9890         * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
9891         * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
9892         * support/regression/tests/bitwise.c: added test for bitwise complement(~)
9893
9894 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
9895
9896         * device/include/sdcc-lib.h: inserted LGPL, added includes
9897           asm/ds390/features.h and asm/mcs51/features.h
9898         * device/include/asm/default/features.h,
9899         * device/include/asm/gbz80/features.h,
9900         * device/include/asm/z80/features.h: added empty _AUTOMEM
9901           and _STATMEM
9902         * device/include/asm/ds390/features.h,
9903         * device/include/asm/mcs51/features.h: added files with defines for
9904           _AUTOMEM and _STATMEM indicating automatic and static storage class
9905         * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
9906         * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
9907         * src/SDCCicode.c (geniCodeCast),
9908         * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
9909         * src/SDCCloop.c (loopInduction): removed unused variable lr
9910         * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
9911           to convertToFcall to include char modulo (RFE 1065037), added check
9912           if left operand is unsigned and use abs of literal value
9913         * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
9914           as it doesn't work after conversion from peephole.def to peephole.rul
9915         * src/mcs51/gen.c (toBoolean): added check for size,
9916           (genModOneByte): optimized code for signed char modulo a literal
9917           power of 2 (thanks to Hubert Sack),
9918           (genRRC): removed unnecessary "clr c",
9919           (genRLC): replaced "add a,acc" with cheaper "rlc a"
9920         * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
9921           jump optimization,
9922           swapped rules 256.c and 256.d,
9923           extended 256.d by using new multiple checks (thanks Erik),
9924           added rules 256.e and 256.f,
9925           updated rule 261.a and 261.b to new generated code
9926         * support/regression/tests/muldiv.c: added test div/mod by a power of 2
9927
9928 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9929
9930         * src/SDCCloop.c (basicInduction, loopInduction): fixed several
9931           induction related bugs, including first part of bug #1074377
9932
9933 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
9934
9935         * applied patch from bug-report #1076292,
9936         * applied patches for genAnd and Goto-optimizations for Raphael
9937         Neider,
9938         * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
9939         dump a less iCode information,
9940         * src/pic16/device.h (pic16_options_t): added field debgen,
9941         * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
9942         DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
9943         * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
9944         puclic,
9945         * (various functions): added macros FENTRY and FENTRY2 to functions,
9946         to emit function prologue,
9947         * (various functions): fixed indentation,
9948         * (genNearPointerGet): fixed loading of FSR0,
9949         * (genPackBits): applied patch from Raphael Neider to fix updating
9950         of FSR0 and touching only the modified bits,
9951         * src/pic16/genarith.c (various functions): added macros FENTRY to
9952         emit function prologue in comments,
9953         * src/pic16/pcode.h: added functions debugf2, debugf3,
9954         * src/pic16/ralloc.c: partial fix for packForPush caused
9955         segmentation fault,
9956
9957 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9958
9959         * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
9960           <stsp AT users.sourceforge.net> with reversed byte order
9961         * support/regression/tests/rotate.c: added (ds390 skips some tests)
9962
9963 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9964
9965         * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
9966           bug #1074377
9967         * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
9968         * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
9969
9970 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
9971
9972         * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
9973
9974 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9975
9976         * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
9977           conditions,
9978           (setFromConditionArgs): friendly operand parser for peephole rules,
9979           (operandBaseName, operandsNotRelated): new peephole condition
9980           "operandsNotRelated" -- similar to "operandsNotSame", but takes
9981           architecture specific register naming into account, handles n-way
9982           comparisons, and supports quoted literals
9983         * src/mcs51/peeph.def: restored rule 177.d with an extra condition
9984
9985 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9986
9987         * src/mcs51/peeph.def: fixed bug #1076940
9988
9989 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
9990
9991         * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
9992
9993 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9994
9995         Adding support for replacing ljmps with sjmps in jumptables
9996         generated for switch statements. For now you need to set the
9997         environment variable SDCC_SJMP_JUMPTABLE to enable this.
9998         Now 4 algorithms for mcs51 jumptable generation are used:
9999         ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
10000         addresses loaded pc-relative for up to 112 cases and stack-pushing
10001         target addresses loaded with offset from dptr for up to 256 cases.
10002
10003         * src/SDCCpeeph.c: added peephole conditional labelJTInRange
10004         * src/mcs51/main.c: adapted constants for switch table generation
10005         * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
10006
10007 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
10008
10009         * device/lib/printf_large.c (_print_format): fixed bug 1073386
10010         * support/regression/tests/bug1057979.c: added test for bug 1073386
10011
10012 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
10013
10014         * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
10015         compilers
10016
10017 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
10018
10019         * src/pic16/device.h,
10020         * src/pic16/genarith.c,
10021         * src/pic16/glue.c,
10022         * src/pic16/main.c,
10023         * src/pic16/pcode.c: applied patches #1068154 and #1070213
10024
10025 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
10026
10027         Large cummulative patch for pic16 port.
10028         * device/lib/pic16/gstack.h: NEW, user can specify its own handler
10029         to call when a stack overflow occurs,
10030         * (malloc.h): added CVS Id tag,
10031         * (pic18f{242,252,442,452}.h): added T0CONbits structure and
10032         variable,
10033         * added libc directory. The current version of LibC contains string
10034         functions, ctype functions and macros and some functions of the
10035         stdlib set (like malloc/free/atof/atoi etc...). All functions are to
10036         be extensively tested in the future. Standard disclaimer here.
10037         Library is not automatically build yet. But one can build it by
10038         invoking 'make' inside the libc directory.
10039         * added ADC library under libio. Preliminary version yet.
10040
10041         * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
10042         * src/pic16/gen.c (aopForRemat): asmop size is filled by
10043         aopForRemat() now and not by pic16_aopOp(),
10044         * (pic16_popGetTempReg): removed warning messgae when allocating
10045         temporary registers, its a buggy feature and will be removed,
10046         * (pic16_popGet): set register instance field in AOP_CRY,
10047         * (pic16_outBitC): fixed for results in size greater than 1,
10048         * (genUminusFloat): fixed for pic16, ported code from mcs51,
10049         * (pic16_storeForReturn): optimized return of 0,
10050         * (genCmp): experimental code for new genCmp which uses PIC18's
10051         special compare&skip instructions. Initial tests fail some times
10052         with variables grater than 1 byte in size, so new code is disabled,
10053         * (genUnpackBits, genPackBits): more optimizations in reading/writing,
10054         a single bit,
10055         * (genCast): began a fix to optimize the casting of a bit to another
10056         bit, now assigning a bitfield to another bitfield will fail, sorry,
10057         * src/pic16/main.c: disabled the use of lr-support feature,
10058         * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
10059         * added some function prototypes, added function _debugf prototype,
10060         * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
10061         bits with offset (case PO_GPR_BIT),
10062         * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
10063         command line,
10064         * (isBankInstruction): modified to return 0 for no banking instruction,
10065         and 1 for banking instruction,
10066         * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
10067         caused stop processing pCodes after a inline assembly block,
10068         * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
10069         * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
10070         registers when it shouldn't,
10071         * src/pic16/ralloc.c (allocReg): add preliminary support for
10072         supporting a limited set of temporary registers,
10073
10074 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10075
10076         * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
10077           genDataPointerSet): ensure assignments always copy in MSB to LSB
10078           order,
10079           (loadRegFromAop): recognize CLRH optimization,
10080           (genFunction): optimize RECEIVE iCodes in reentrant functions
10081
10082 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10083
10084         * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
10085           --out-fmt-s19 turning into --out-fmt-elf if s19 was already
10086           selected.
10087         * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
10088         * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
10089           contiguous with data
10090
10091 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10092
10093         * device/lib/_gptrget.c (_gptrget),
10094         * device/lib/_gptrgetc.c (_gptrgetc),
10095         * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
10096           instead of sjmp to ret
10097         * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
10098           by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
10099
10100 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
10101
10102         * .version: bumped version to 2.4.7
10103         * device/lib/_gptrget.c (_gptrget): is now _naked
10104         * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
10105         * device/lib/_gptrput.c (_gptrput): is now _naked
10106         * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
10107           (createFunction): fixed xstack
10108         * src/SDCCglue.c (emitMaps): set allocation required for bit area
10109         * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
10110           or bit either,
10111           (geniCodeCritical): store original interrupt state in an iTemp bit
10112           var unless stack-auto
10113         * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
10114         * src/SDCCmain.c (setIncludePath): added include/target to search path
10115         * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
10116         * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
10117           prototype,
10118           (processFuncArgs): put bit vars in bit area
10119         * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
10120           unsaveRBank): fixed xstack,
10121           (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
10122           (genFunction, genEndFunction): fixed xstack,
10123           (genAssign): optimization don't walk backwards through mem
10124         * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
10125         * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
10126         * support/regression/Makefile: also make library (for stack-auto) when
10127           making "all" and added "test-mcs51-xstack-auto"
10128         * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
10129         * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
10130         * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
10131         * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
10132         * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
10133           make-library by MAKE_LIBRARY
10134         * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
10135           regression tests for xstack
10136         * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
10137         * support/regression/tests/critical.c: test for critical on mcs51
10138
10139 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10140
10141         * support/regression/ports/ucz80/spec.mk: use include and lib files from
10142           built version of sdcc instead of installed version
10143
10144 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
10145
10146         * src/mcs51/gen.c (toBoolean): fixed bug 1065458
10147         * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
10148           vprintf.c now
10149         * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
10150         * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
10151           WARNING: remove device/lib/build/z80/printf.o by hand when
10152           updating from previous build!
10153         * device/lib/z80/printf.c: updated comment
10154         * support/regression/tests/bug1057979.c: test all ports now
10155         * support/regression/tests/bug1065458.c: file added
10156
10157 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10158
10159         * src/z80/gen.c (genFunction, genEndFunction): avoided generating
10160           *_start and *_end symbols for static functions
10161
10162 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
10163
10164         * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
10165           and search crt0.o in all library paths,
10166           (setIncludePath): proper handling of --nostdinc,
10167           (setLibPath): proper handling of --nostdlib
10168         * support/regression/Makefile,
10169         * support/regression/ports/ds390/spec.mk,
10170         * support/regression/ports/gbz80/spec.mk,
10171         * support/regression/ports/hc08/spec.mk,
10172         * support/regression/ports/mcs51/spec.mk,
10173         * support/regression/ports/mcs51-large/spec.mk,
10174         * support/regression/ports/mcs51-stack-auto/spec.mk,
10175         * support/regression/ports/z80/spec.mk: use include and lib files from
10176           built version of sdcc instead of installed version
10177         * doc/sdccman.lyx: fixed typo in --nostdinc
10178
10179 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
10180
10181         * src/pic/pcode.c,
10182         * src/pic/device.c,
10183         * src/pic/ralloc.c,
10184         * src/pic/gen.c : added support to generate code for struct bit fields.
10185
10186 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
10187
10188         * as/xa51/xa_version.h,
10189         * device/include/errno.h,
10190         * device/include/regc515c.h,
10191         * device/lib/_itoa.c,
10192         * device/lib/_ltoa.c,
10193         * device/lib/ser_ir_cts_rts.c,
10194         * sim/ucsim/xa.src/glob.cc,
10195         * sim/ucsim/xa.src/inst_gen.cc,
10196         * sim/ucsim/xa.src/xa_bit.cc,
10197         * sim/ucsim/xa.src/xa_sfr.cc,
10198         * sim/ucsim/z80.src/inst_dd.cc,
10199         * sim/ucsim/z80.src/inst_fdcb.cc,
10200         * support/scripts/keil2sdcc.pl,
10201         * src/pic16/pic16.dsp,
10202         * src/pic16/pic16a.dsp: corrected cvs line endings
10203         * device/lib/printf_large.c: fixed bug 1057979
10204         * src/pic16/gen.c: fixed non-C standard code
10205         * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
10206         * src/SDCCglobl.h: changed pack_iram to no_pack_iram
10207         * support/regression/ports/mcs51/support.c: reload T1 asap
10208         * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
10209           pdata use and clear idata startup behaviour
10210         * support/regression/tests/bug1057979.c: added
10211
10212 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
10213
10214         * device/examples/ds390/ow390/ad26.h,
10215         * device/examples/ds390/ow390/cnt1d.h,
10216         * device/examples/ds390/ow390/crcutil.c,
10217         * device/examples/ds390/ow390/ownet.h,
10218         * device/examples/ds390/ow390/owsesu.c,
10219         * device/examples/ds390/ow390/swt12.h,
10220         * device/examples/ds390/ow390/swtoper.c,
10221         * device/examples/ds390/ow390/temp10.h,
10222         * device/examples/ds390/ow390/thermodl.c,
10223         * device/examples/ds390/tinitalk/tinitalk.dsp,
10224         * device/examples/ds390/tinitalk/tinitalk.dsw,
10225         * device/examples/mcs51/clock/hw.h,
10226         * device/examples/mcs51/simple2/go.bat,
10227         * device/examples/serialcomm/windows/serial.h,
10228         * device/examples/xa51/dummy.c,
10229         * device/examples/xa51/hello.c,
10230         * device/include/80c51xa.h,
10231         * device/include/at89x051.h: corrected cvs line endings
10232
10233 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
10234
10235         * src/pic16/main.c (options): added command line --gstack, to trace
10236         stack over/under flows,
10237         * added pragma 'wparam' to allow passing first byte of function
10238         parameters via WREG, syntax is #pragma wparam my_function[, func2...]
10239         * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
10240         call to __gstack_test function and sets up the symbol as extern,
10241         * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
10242         * popaop): added call to pic16_testStackOverflow,
10243         * (wParamCmp, inWparamList): NEW, test existence of a symbol in
10244         wparamList list,
10245         * (genCall, genPcall): now all parameters are passed via stack
10246         except in functions that are pass to wparam pragma in which WREG is
10247         used too,
10248         * (genPcall): REENTRANT flag is checked to see if variable prototype
10249         contains reentrant keyword, don't call a non-reentrant function, via
10250         a reentrant function pointer or vice versa, functions are never
10251         passed via WREG,
10252         * (genJumpTab): applied patch from bug #1057478 by R.Neider and
10253         D.Winkler,
10254         * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
10255         SIGSEGV when accessing a NULL register stucture,
10256         * (pic16_printGPointerType): modified to handle UPPER modifier for
10257         function initializers, changed prototype of function to simpler one,
10258         * (pic16_printIvalFuncPtr): check to see if function is already
10259         added in externs list,
10260         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
10261         optimized a move from W to SFR with a move to the same register
10262         later after a CALL,
10263         * device/lib/pic16/debug: NEW directory, contains debug features
10264         which are enabled when linking with libdebug.lib, currently command
10265         line option --gstack enables stack pointer tracing for over/under
10266         flow, corresponding sources are in debug/gstack
10267
10268 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
10269
10270         * doc/sdccman.lyx: updated SDCC version,
10271         * (PIC16 port): update list of command line options,
10272         * src/pic16/device.h (structure pic16_options_t): added field gstack
10273         to enable stack overflow tracing on push/pops,
10274         * src/pic16/device.c (statistics structure): added statistics
10275         structure,
10276         * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
10277         pic16_dump_int_registers): increase statistics counters for each
10278         * variable which is encountered
10279         * (pic16_dump_usection): emit each .udata variable to its own udata
10280         section,
10281         * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
10282         when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
10283         parameters via stack, otherwise use old scheme,
10284         * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
10285         assembler output file,
10286         * src/pic16/main.c: added command line options --gstack to enable
10287         push/pop tracing for stack overflow,
10288         * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
10289         instructions): added size of each instruction,
10290         * (pic16_countInstruction): estimate size of instructions in
10291         the_pFile list, inline assembly blocks are not counted,
10292         * (pic16_FixRegisterBanking): trace previous register usage, when
10293         banksel optimizations is greater than 0, don't emit a redudant
10294         banksel directive,
10295
10296 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
10297
10298         * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
10299         * src/pic16/ralloc.c : applied same fix for pic16.
10300         * src/pic/gen.c : tidied it up a little.
10301
10302 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10303
10304         * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
10305         thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
10306
10307 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10308
10309         * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
10310
10311 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10312
10313         * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
10314         non-reentrant function __modsint in the interrupt function (thus
10315         corrupting math operations during serial I/O)
10316         * device/lib/ser_ir.c: as above, changed buffersize
10317         * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
10318         256.c,d for zeroing
10319         * doc/Makefile: added option -t for rsync
10320
10321 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10322
10323         * src/SDCCast.h (struct ast),
10324         * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
10325
10326 2004-10-20 Borut Razem <borut.razem AT siol.net>
10327
10328         * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
10329         package
10330
10331 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
10332
10333         * device/lib/pic16/libsdcc/Makefile: added lregs directory in
10334         makefile targets,
10335         * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
10336         support functions to replace long sequences of MOVFF's from access
10337         bank registers to stack and vice versa,
10338         * src/pic16/device.h: added new field opt_flags, where optimization
10339         flags can be set to enable certain features,
10340         * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
10341         * pBlock, (genFunction, genEndFunction): surroung loop for
10342         saving/loading used registers in stack with PC_INFO pCodes,
10343         INF_LREGS. Code in between can then be optimized by pCode optimizer
10344         to support function calls,
10345         * (genDataPointerSet): fixed bug which loaded float fields in
10346         structures with corrupt data,
10347         * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
10348         in a standard way debug info on stderr. Feature used for developing
10349         and debugging only,
10350         * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
10351         obsolete chunks of code,
10352         * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
10353         * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
10354         * pic16/src/pcode.c (pic16_newpCodeInfo,
10355         * (pic16_newpCodeOpLocalRegs),
10356         * (pic16_convertLocalRegs2Support): NEW, to support new optimization
10357         feature,
10358         * (pic16_pCodeConstString): printing of the initial value of a
10359         symbol as a comment is inhibited since parsing was already done by
10360         copyStr and output is corrupt,
10361         * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
10362
10363 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10364
10365         * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
10366
10367 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
10368
10369         * as/mcs51/lkarea.c: removed old K&R style,
10370           (lnksect): changed check on boundary error,
10371           (lnksect2): changed check on boundary error,
10372           (lnksect2): extend XSTK to end of page if size = 1
10373         * as/mcs51/lkmain.c: removed old K&R style,
10374           (Areas51): create l_IRAM symbol
10375         * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
10376         * device/lib/Makefile.in: renamed model-mcs51-reentrant to
10377           model-mcs51-stack-auto, added model-mcs51-xstack-auto
10378         * device/lib/_mullong.c: added version to be compiled with xstack
10379         * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
10380         * device/lib/mcs51/crtxclear.asm: clear pdata as well
10381         * device/lib/mcs51/crtxstack.asm: fixed comment
10382         * src/SDCCglue.c: maxInterrupts defaults to 0,
10383           (emitMaps): added pdata,
10384           (createInterruptVect): (re)moved default,
10385           (glue): added pdata,
10386           (glue): moved __start__xstack to XSTK with default size 1
10387         * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
10388           and options.float_rent when options.stackAuto is set,
10389           (linkEdit): only write XDATA_NAME if provided on command line
10390         * src/SDCCmem.h,
10391         * src/SDCCmem.c: added pdata
10392         * src/port.h: added pdata_name to PORT
10393         * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
10394           (saveRegisters, unsaveRegisters): removed usage of B,
10395           (genMinus): fixed accumulator clash,
10396           (genJumpTab): added comment, this needs another look
10397         * src/mcs51/gen.c: added check for "B in use" paranoia,
10398           added pushB() and popB()
10399         * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
10400           chance
10401         * src/avr/main.c,
10402         * src/ds390/main.c,
10403         * src/hc08/main.c,
10404         * src/mcs51/main.c,
10405         * src/pic/main.c,
10406         * src/pic16/main.c,
10407         * src/xa51/main.c,
10408         * src/z80/main.c: (reset_regparms) made void parameter explicit and
10409           added PSEG (PAG,XDATA) or NULL to port specifier
10410         * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
10411         * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
10412           (_mcs51_genInitStartup): removed __start__xstack equ,
10413           (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
10414         * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
10415         * src/z80/gen.c (_rleAppend): fixed warnings
10416         * support/regression/tests/zeropad.c: added pdata test
10417         * .version: bumped to 2.4.6
10418
10419 2004-10-17 Borut Razem <borut.razem AT siol.net>
10420
10421         * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
10422         as a part of nightly build
10423
10424 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
10425
10426         * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
10427         WREG holds the first byte function parameters,
10428         * (aopForSym): take special case for symbols which are in FARSPACE
10429         but in CODESPACE too,
10430         * (assignResultValue): modified to take into account _G.useWreg,
10431         * (genCall): don't use wreg for parameter passing when function is
10432         declared as reentrant, too, added optimization INCF to stack
10433         pointer when stack parameter count is 1,
10434         * (genFunction, genEndFunction): refurnished and fixed to not using
10435         wreg for passing parameters when function has varargs or is
10436         reentrant, fixed bug with symbol name compare for generating
10437         functions in absolute address,
10438         * (pic16_storeForReturn): refurnished,
10439         * (genCmp): began writing a new version of the function, not ready
10440         yet, therefore it is disabled,
10441         * (genAssign): do not read code memory when assigning a function to
10442         a pointer function,
10443         * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
10444         array of characters, not pointer,
10445         * (pic16initialComments): in debug mode emit an .ident directive for
10446         the assembler,
10447         * (_process_pragma): emit a new warning type (internal to pic16)
10448         when setting stack to default length, emit a similar warning when
10449         placing a function at absolute address and address is not word aligned
10450         * (_pic16_parseOptions): added 'return TRUE' statement,
10451         * (_pic16_linkEdit): if compiling a source, then add the source's
10452         file object, first in the list of objects to link,
10453
10454 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
10455
10456         * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
10457         * src/pic/main.c : removed VC warning.
10458         * src/pic/gen.c : changed comment.
10459
10460 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
10461
10462         * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
10463         reference to a deprecated symbol _GPTRREG was causing failure to
10464         link. Thanks G. M. Gallant for the info.
10465
10466 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
10467
10468         * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
10469         comments for Bugs item #954788.
10470
10471 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
10472
10473         * src/pic16/device.c (pic16_dump_gsection,
10474         * pic16_groupRegistersInSection): handle symbols declared to be in
10475         access bank differently,
10476         * src/pic16/gen.c (struct _G): added field resDirect,
10477         * (aopForSym): if symbol on stack and iCode is '=' and result exists,
10478         send values read from stack directly to result and don't allocate
10479         temporary values,
10480         * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
10481         same registers,
10482         * (pic16_sameRegsOfs): NEW,
10483         * (freeAsmop): if _G.resDirect is set then do not mark registers as
10484         free because they were not allocated from temporary pool,
10485         * pic16_popRegFromString): workaround to fix a problem with
10486         allocating variables twice or never,
10487         * (genGenPointerGet): using PRODL instead of FSR0H,
10488         * (genGenPointerSet): using POSTDEC1 (that is a stack location)
10489         instead of FSR0H,
10490         * (genAssign): take advantage of the _G.resDirect flag,
10491         * (genCast): around line 11844, use mov2f instead of directly
10492         MOVFF'ing between operands to account for literal values,
10493         * src/pic16/genutils.c: some new debug functions for gpsim have been
10494         added,
10495         * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
10496         float with integer part only,
10497         * src/pic16/main.c (_process_pragma): handle pragma udata access to
10498         place variables in access bank
10499         * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
10500         updated sources to reflect recent changes in gen.c
10501
10502 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
10503
10504         * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
10505         sources that searched for headers in installation path, now the
10506         device/include/pic16 is used,
10507         * src/pic16/glue.c (pic16glue),
10508         * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
10509         .line directives if not in debug mode, this suppresses assembler's
10510         warnings for ignored directives
10511
10512 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
10513
10514         * src/port.h: made reset_regparms prototype void parameter explicit.
10515         * src/SDCCsymt.c (processFuncArgs): removed argument "func".
10516         * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
10517         * doc/sdccman.lyx: documented warning disabling and how to use
10518           printf_large to make it print floats.
10519         * device/include/stdbool.h: NEW
10520         * device/lib/_atof.c,
10521         * device/lib/_divuint.c,
10522         * device/lib/_divulong.c,
10523         * device/lib/expf.c,
10524         * device/lib/printf_large.c,
10525         * device/lib/sincosf.c,
10526         * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
10527         * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
10528           a completely reentrant lib.
10529
10530 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
10531
10532         * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
10533         * device/include/pic16/stdio.h: fixed bug with colon
10534
10535 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
10536
10537         * device/include/pic16/stdio.h,
10538         * device/include/pic16/stdlib.h,
10539         * device/include/pic16/math.h: NEW
10540         * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
10541         declared as _naked to reduce overhead
10542         * device/lib/Makefile.in (target port-specific-objects-pic16):
10543         changed * to *.* so to ignore the CVS directory,
10544         * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
10545         stacked variables back in stack,
10546         * (genEndFunction): fixed bug reported by G.M. Gallant with stack
10547         corruption
10548
10549 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
10550
10551         * .version: bumped version number to 2.4.5
10552         * support/Util/SDCCerr.h: added warning W_POSSBUG2.
10553         * support/Util/SDCCerr.c (messages structure): added entry for
10554         W_POSSBUG2
10555
10556         Large cumulative patch for pic16 port and libraries.
10557         * device/include/pic16/sdcc-lib.h,
10558         * device/include/pic16/stdarg.h,
10559         * device/include/asm/pic16/features.h,
10560         * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
10561         * device/include/pic16/float.h: changes reentrant keyword with
10562         _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
10563         * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
10564         updated target build-libraries to include objects from gptr,
10565         * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
10566         _IL_REENTRANT to all function headings, included sdcc-lib.h header,
10567         * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
10568         all function headings,
10569         * src/SDCCmain.c: added global parameter userIncDirsSet,
10570         * (parseCmdLine): when option -I is encountered add directory to
10571         userIncDirsSet too,
10572         * src/version.awk: added space between control and long,
10573         * src/pic16/NOTES: added some notes for the port,
10574         * src/pic16/gen.c: added prototype for mov2fp function,
10575         * (fReturnpic16[]): properly named return value registers,
10576         * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
10577         * (aopForSym): added code to handle symbols with onStack flag set,
10578         symbols onStack are allocated PTRSIZE bytes,
10579         * (aopFreeAsmop): handles special case where asmops are stack objects,
10580         * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
10581         * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
10582         added argument lock to trace flaws in allocating temporary registers
10583         when developing port,
10584         * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
10585         * (pic16_popRegFromString): reenabled allocating a direct register
10586         from string,
10587         * (assignResultValue): various beautifications,
10588         * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
10589         referenced function argument,
10590         * (genIpush): reenabled to allow stacked arguments, handles only
10591         ic->parmPush iCodes,
10592         * (genCall, genPcall): major changes to allow for variable argument
10593         functions, fixed a bug with falsely restoring stack pointer after
10594         returning from call,
10595         * (genFunction): pending code for critical function,
10596         * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
10597         * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
10598         * (genNearPointerGet): fixed bug with indirect reading, was always
10599         reading from INDF0
10600         * (genGenPointerGet, genGenPointerSet): rewrote to support generic
10601         pointers,
10602         * (genAddrOf): rewrote code to take address of a stacked function parameter
10603         * (genCast): fixed casting to generic pointer type,
10604         * src/pic16/gen.h: added AOP_STA,
10605         * (struct asmop): added field stk,
10606         * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
10607         * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
10608         * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
10609         * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
10610         * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
10611         * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
10612         generic pointers,
10613         * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
10614         and library paths,
10615         * (pic16_port structure): generic pointer size is set to 3,
10616         * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
10617         * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
10618         compiler warning,
10619         * src/pic16/ralloc.c (allocReg): prevent allocating register when
10620         operand is an iTemp,
10621
10622 2004-09-24 Martin Helmling <mh AT octo-soft.de>
10623
10624         * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
10625         * debugger/mcs51/simi.c: addapt new syntax of s51
10626
10627 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
10628
10629         * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
10630         * src/pic16/pcode.c: commented out some calls to free() in order to
10631         fix bug #989576,
10632
10633 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10634
10635         * src/SDCCicode.h,
10636         * src/SDCCicode.c (isiCodeInFunctionCall),
10637         * src/avr/ralloc.c (selectSpil),
10638         * src/pic/ralloc.c (selectSpil),
10639         * src/pic16/ralloc.c (selectSpil),
10640         * src/ds390/ralloc.c (selectSpil),
10641         * src/hc08/ralloc.c (selectSpil),
10642         * src/xa51/ralloc.c (selectSpil),
10643         * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
10644         stack in the middle of a function call sequence (fixes bug #1020268)
10645         * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
10646         costs associated with the minimum switch case.
10647
10648 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10649
10650         * src/SDCC.lex: fixed bug #1030549
10651
10652 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10653
10654         * src/SDCCcse.h (struct cseDef),
10655         * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
10656         over a function call if the CSE is derived from a symbol whose
10657         address has been taken (fixes bug #1029883)
10658         * support/regression/tests/bug-1029883: a new regression test for
10659         this bug
10660
10661 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10662
10663         * src/hc08/gen.c (emitinline): fixed bug #1029778
10664         * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
10665         to a cast object is no longer a syntax error ("fixes" bug #1030006,
10666         and starts toward RFE #905167)
10667
10668 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
10669
10670         * src/pic16/gen.c (mov2f): New function to move an operand to
10671         another without considering if it is a literal or a register,
10672         * (pic16_sameRegs): don't check if they are both AOP_REG,
10673         * (AccRsh): removed andmask=0 lines,
10674         * (genLeftShift): duplicated to be improved in future versions,
10675         * src/pic16/main.c (_process_pragma): emit stack default size in hex,
10676         * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
10677         in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
10678         * (pic16initMnemonics): added initialization for POC_INFSNZW,
10679         * (insertBankSwitch): fixed inserting banksel directives algorithm
10680         for instructions that follow a skip instruction, this fixes a report
10681         for broken subtraction code generation,
10682         * src/pic16/ralloc.c (deassignLRs): do not free register if current
10683         iCode is a left op, just in case result and right share the same
10684         registers
10685
10686 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10687
10688         * src/hc08/main.c,
10689         * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
10690         preservation of HX
10691         * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
10692         * src/mcs51/ralloc.c (packRegisters): removed the patch applied
10693         on 2004-09-12; it was buggy
10694
10695 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
10696
10697         * src/SDCCsymt.h: removed RESULT_CHECK
10698         * src/SDCCast.c,
10699         * src/SDCCglue.c,
10700         * src/SDCCval.c,
10701         * src/pic/glue.c,
10702         * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
10703
10704 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
10705
10706         * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
10707         * src/pic16/device.c (pic16_assignConfigWordValues): wrong
10708         configuration values no more rejected by compiler, they are assigned
10709         to configuration registers with a warning message instead,
10710         * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
10711         the for-loop so last conf register is emitted too,
10712         * (_pic16_initPaths): link library libsdcc.lib by default,
10713         * (_hasNativeMulFor): modified test for multiplication according to
10714         Raphael Neider's remarks. Integer multiplication is also done with
10715         support functions,
10716         * device/include/pic16/pic18fregs.h: corrected type error in while
10717         testing and including 18f6720 header file
10718
10719 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
10720
10721         * src/pic16/device.h (pic16_options): removed field use_crt,
10722         * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
10723         until an optimization to handle single bits is added,
10724         * (pic16_loadFSR0): moved before genUnpackBits,
10725         * (genAnd): some white lines removed,
10726         * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
10727         leave_reset flags in pic16_options when using crt modules,
10728
10729 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
10730
10731         * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
10732           for bugs 898889 & 979599. Also used some safer print instructions.
10733
10734 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
10735
10736         * src/pic16/device.h (pic16_options_t): added field use_crt,
10737         crt_name, no_crt,
10738         * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
10739         catch a probable future bug,
10740         * src/pic16/gen.c: aopIdx function commented out,
10741         * (genAssign): commented out old code which used aopIdx,
10742         * src/pic16/glue.c (pic16glue): removed some legacy fragments of
10743         code, added if conditionals to take into account the --use-crt
10744         command line options,
10745         * src/pic16/main.c (pic16_optionsTable): added new command line
10746         options, --use-crt= and --no-crt,
10747         * (_pic16_linkEdit): now the proper crt object is added in the
10748         linker command line except than when --no-crt is specified,
10749         * src/pic16/pcode.c,
10750         * src/pic16/pcode.h: added some structures and functions for a new
10751         optimization scheme to compansate for instruction overhead between
10752         same iCodes, this scheme is currently under development and is not
10753         working in any way,
10754         * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
10755         to && operator,
10756         * device/lib/pic16/startup/crt0i.c,
10757         * device/lib/pic16/startup/crt0iz.c: added global char variable
10758         __uflags to force the generation of an idata section
10759
10760 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
10761
10762         * doc/Makefile,
10763         * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
10764         * doc/sdccman.lyx: updated sdcc version to 2.4.4
10765
10766 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10767
10768         * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
10769         Frieder) and clarified the default code optimization mode
10770
10771 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10772
10773         * src/SDCC.lex (doPragma, process_pragma),
10774         * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
10775         "opt_code_size", and "opt_code_balanced"
10776         * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
10777         regrouped options by category, added support for category headers
10778         * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
10779         and "--opt-code-size"
10780         * doc/sdccman.lyx: documented these new options and pragmas
10781         * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
10782         preference into account
10783
10784 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
10785
10786         * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
10787           geniCodePreDec): Fixed bug 904237 by generating a warning
10788         * src/SDCCerr.h,
10789         * src/SDCCerr.c: added warning W_SIZEOF_VOID
10790
10791 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
10792
10793         * src/pic/device.c : When no max ram set validate full memory range.
10794         * src/pic/pcode.c,
10795         * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
10796
10797 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
10798
10799         * device/lib/_gptrget.c,
10800         * device/lib/_gptrput.c: updated comment
10801         * device/lib/calloc.c,
10802         * device/lib/free.c,
10803         * device/lib/malloc.c,
10804         * device/lib/realloc.c: added LGPL, made them reentrant-safe
10805         * src/SDCCcse.c (cseBBlock),
10806         * src/SDCCicode.c (printOperand, geniCodeArray),
10807         * src/SDCCicode.h (struct operand): fixed bug 868103
10808         * support/regression/tests/bug-868103.c: added
10809         * src/SDCCast.c (searchLitOp),
10810         * src/SDCCcse.h (struct cseDef),
10811         * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
10812         * src/SDCCicode.h (struct operand),
10813         * src/SDCCsymt.h (struct sym_link),
10814         * src/avr/gen.c (hasInc),
10815         * src/ds390/gen.c (hasInc),
10816         * src/hc08/gen.c (genPlusIncr, hasInc),
10817         * src/mcs51/gen.c (hasInc),
10818         * src/pic16/glue.c (pic16_printIvalChar),
10819         * src/pic16/ralloc.c (regWithIdx),
10820         * src/xa51/gen.c (hasInc) : removed warnings
10821         * src/SDCCast.c (createBlock): added comment ???
10822         * src/hc08/ralloc.c: updated comments
10823
10824 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10825
10826         * doc/sdccman.lyx: updated section on switch statements, added
10827         section about semaphore locking
10828         * doc/Makefile: added option -info for latex2html
10829         * device/lib/_gptrget.c,
10830         * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
10831
10832 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
10833
10834         * src/pic/device.h,
10835         * src/pic/device.c,
10836         * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
10837          maxram is less than 0x100.
10838
10839 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
10840
10841         * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
10842
10843 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10844
10845         * src/port.h,
10846         * src/mcs51/main.c,
10847         * src/ds390/main.c,
10848         * src/z80/main.c,
10849         * src/hc08/main.c,
10850         * src/pic/main.c,
10851         * src/pic16/main.c,
10852         * src/avr/main.c,
10853         * src/xa51/main.c
10854         * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
10855         a jump table is the best form for a switch statement, including
10856         automatic insertion of missing cases to make the case range
10857         continuous. Developed in collaboration with Frieder Ferlemann.
10858
10859 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10860
10861         * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
10862         accumulator result if it needs sign extension
10863
10864 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
10865
10866         * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
10867
10868 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
10869
10870         * device/lib/gbz80/printf.c,
10871         * device/lib/z80/printf.c: removed define for NULL
10872
10873 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
10874
10875         * as/xa51/xa_link.c,
10876         * device/examples/ds390/ow390/ad26.c,
10877         * device/examples/ds390/ow390/cnt1d.c,
10878         * device/examples/ds390/ow390/counter.c,
10879         * device/examples/ds390/ow390/ds2480.h,
10880         * device/examples/ds390/ow390/ds2480ut.c,
10881         * device/examples/ds390/ow390/findtype.c,
10882         * device/examples/ds390/ow390/gethumd.c,
10883         * device/examples/ds390/ow390/owllu.c,
10884         * device/examples/ds390/ow390/ownetu.c,
10885         * device/examples/ds390/ow390/swt12.c,
10886         * device/examples/ds390/ow390/swtloop.c,
10887         * device/examples/ds390/ow390/temp.c,
10888         * device/examples/ds390/ow390/temp10.c,
10889         * device/examples/ds390/ow390/thermo21.c,
10890         * device/examples/ds390/ow390/tinilnk.c,
10891         * device/examples/ds390/ow390/tstfind.c,
10892         * device/examples/serialcomm/windows/serial.cpp,
10893         * device/examples/serialcomm/windows/test_serialcomm.cpp,
10894         * device/include/reg51.h: fixed line endings for cvs
10895
10896 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10897
10898         * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
10899         packRegsForAccUse, packRegisters): new accumulator register
10900         packing algorithm
10901         * support/regression/ports/hc08/support.c (_putchar): suppress
10902         warning of unused variable
10903         * src/SDCCicode.c: added SWAP entry to codeTable
10904
10905 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
10906
10907         * device/lib/sprintf.c: forgot to add this file before previous commit
10908
10909 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
10910
10911         * src/pic16/gen.c (genPackBits): added operand right in function
10912         parameters, load result directly if p_type is POINTER (that is
10913         called by genNearPointerSet)
10914         * (genUnPackBits): added operand left in function parameters,
10915         * (genNearPointerGet, genNearPointerSet): prevent the loading of
10916         FSR0 if accessing bitfields,
10917
10918 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
10919
10920         * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
10921           _print_format; updated printf, sprintf, vsprintf
10922         * device/include/asm/default/features.h: corrected comment/define
10923         * device/lib/Makefile.in: added sprintf.c
10924         * device/lib/libsdcc.lib: added sprintf module
10925         * device/lib/printf_large.c,
10926         * device/lib/vprintf.c,
10927         * device/lib/sprintf.c: totally refactored printf_large and vprintf
10928           into these 3 files
10929         * support/regression/Makefile: changed ALL_PORTS into a usefull default
10930         * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
10931         * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
10932           hc08 test
10933         * support/regression/tests/zeropad.c: define idata as data for hc08
10934
10935 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10936
10937         * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
10938         * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
10939         labels are referenced at least once (even if a reference is not found)
10940         * src/hc08/gen.c (emitcode): set isComment flag for comments
10941         * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
10942         loads), rules 6a..6b (optimize jumps to return)
10943
10944 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10945
10946         * device/lib/acosf.c (acosf),
10947         * device/lib/asinf.c (asinf),
10948         * device/lib/atanf.c (atanf),
10949         * device/lib/ceilf.c (ceilf),
10950         * device/lib/cosf.c (cosf),
10951         * device/lib/coshf.c (coshf),
10952         * device/lib/cotf.c (cotf),
10953         * device/lib/fabsf.c (fabsf),
10954         * device/lib/floorf.c (floorf),
10955         * device/lib/log10f.c (log10f),
10956         * device/lib/logf.c (logf),
10957         * device/lib/sinf.c (sinf),
10958         * device/lib/sinhf.c (sinhf),
10959         * device/lib/sqrtf.c (sqrtf),
10960         * device/lib/tanf.c (tanf),
10961         * device/lib/tanhf.c (tanhf),
10962         * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
10963         replaced all instances of "reentrant" in the library functions
10964         defined in math.h with this macro.
10965         * support/regression/tests/float_trans.c: reenabled test for hc08
10966
10967 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
10968
10969         * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
10970         erroneously deleted
10971
10972 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10973
10974         * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
10975         * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
10976         multi-byte volatile operands are used
10977         * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
10978         * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
10979         initialization to area GSINIT0 so that it would always precede
10980         any static initializers in GSINIT
10981         * support/regression/tests/zeropad.c: fixed idata define for hc08
10982         * support/regression/tests/bug-927659.c,
10983         * support/regression/tests/float_trans.c: disabled tests for hc08
10984         pending missing library routines
10985         * .version: increased version number to 2.4.4 - hc08 port now passes
10986         regression tests
10987
10988
10989 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
10990
10991         * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
10992         * Makefile.common.in,
10993         * as/Makefile,
10994         * as/hc08/Makefile.in,
10995         * as/mcs51/Makefile.in,
10996         * as/z80/Makefile.in,
10997         * debugger/mcs51/Makefile.in,
10998         * device/include/Makefile.in,
10999         * device/lib/Makefile.in,
11000         * doc/Makefile,
11001         * link/Makefile,
11002         * link/z80/Makefile.in,
11003         * packihx/Makefile.in,
11004         * sim/ucsim/main_in.mk,
11005         * sim/ucsim/avr.src/Makefile.in,
11006         * sim/ucsim/doc/Makefile.in,
11007         * sim/ucsim/gui.src/serio.src/Makefile.in,
11008         * sim/ucsim/hc08.src/Makefile.in,
11009         * sim/ucsim/s51.src/Makefile.in,
11010         * sim/ucsim/xa.src/Makefile.in,
11011         * sim/ucsim/z80.src/Makefile.in,
11012         * src/Makefile.in,
11013         * support/cpp2/Makefile.in,
11014         * support/librarian/Makefile,
11015         * support/makebin/Makefile: added DESTDIR to the install path proposed
11016         by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
11017         * doc/sdccman.lyx: added DESTDIR documentation
11018
11019 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
11020
11021         * src/pic16/gen.c (genFunction, genEndFunction): fixed return
11022         instruction for interrupt handlers, use fast returns when returning
11023         from high priority interrupts
11024
11025 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11026
11027         * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
11028         code generation
11029         * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
11030         * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
11031         bugs, ported much of Bernhard's code from mcs51
11032         * src/mcs51/gen.c (genSend),
11033         * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
11034         than one when calling a reentrant function
11035         * device/lib/_mullong.c: defined an alternate struct layout for big
11036         endian ports (hc08)
11037
11038 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11039
11040         * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
11041         test
11042
11043 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11044
11045         * src/SDCCsymt.c (processFuncArgs): make sure parameter types
11046         are sane and complete before asking the port its prefered parameter
11047         passing method (fixes bug #1017633)
11048         * device/lib/hc08/_ret.c: added "data" storage class to _ret2
11049         and _ret3
11050
11051 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11052
11053         * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
11054         problem in bitfields >= 8 bits.
11055
11056 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
11057
11058         * src/SDCCsymt.c: undid changes that were not meant to be committed
11059
11060 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
11061
11062         * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
11063
11064 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
11065
11066         * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
11067           copied and wrong bit got inverted
11068
11069 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11070
11071         * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
11072         genFarPointerSet into genPointerSet; eliminated genFarPointerSet
11073         * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
11074         genFarPointerGet into genPointerGet; eliminated genFarPointerGet
11075         * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
11076         assignments to bitfields at known addresses
11077         * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
11078         reads from bitfields at known addresses
11079         * src/hc08/ralloc.c (packRegisters),
11080         * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
11081         genhc08Code): optimize pointer get values used as conditionals
11082         * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
11083         and branch
11084
11085 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11086
11087         * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
11088         genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
11089         * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
11090         as conditionals
11091
11092 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11093
11094         * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
11095
11096 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11097
11098         * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
11099         related problems
11100
11101 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
11102
11103         * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
11104
11105 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11106
11107         * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
11108         mcs51 port
11109
11110 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
11111
11112         * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
11113
11114 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11115
11116         * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
11117         cases use more compact code.
11118
11119 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
11120
11121         * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
11122
11123 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11124
11125         * src/SDCClrange.c (findPrevUse): fixed bug #1007371
11126
11127 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11128
11129         * src/SDCCsymt.h,
11130         * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
11131         parameter of changePointer() from symbol* to sym_link*
11132         * src/SDCCast.c (decorateType): call changePointer() for CAST op
11133         * src/SDCCsymt.c (compareType): void* type is castable to other
11134         pointers, but not necesarily an exact match.
11135         * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
11136         is no longer blindly treated as an exact match.
11137         * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
11138
11139 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
11140
11141         * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
11142
11143 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
11144
11145         * src/pic/gen.c,
11146         * src/pic/pcode.c,
11147         * src/pic/ralloc.h,
11148         * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
11149
11150 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
11151
11152         * src/pic/device.c,
11153         * src/pic/device.h,
11154         * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
11155
11156 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11157
11158         * src/mcs51/gen.c (emitcode): fixed bug #992819
11159
11160 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
11161
11162         * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
11163           there's no need to make it worse
11164
11165 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11166
11167         * src/mcs51/ralloc.c (deassignLR),
11168         * src/ds390/ralloc.c (deassignLR),
11169         * src/hc08/ralloc.c (deassignLR),
11170         * src/z80/ralloc.c (deassignLR),
11171         * src/pic/ralloc.c (deassignLR),
11172         * src/pic16/ralloc.c (deassignLR),
11173         * src/avr/ralloc.c (deassignLR),
11174         * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
11175         rlivePoint): fixed another part of bug #971834
11176
11177 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11178
11179         * src/z80/main.c: enabled "critical" keyword
11180         * src/z80/mappings.i,
11181         * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
11182         functions (fixes bug #979646)
11183         * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
11184
11185 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11186
11187         * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
11188           such as c:\mydir.
11189
11190 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
11191
11192         * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
11193           doesn't disable too much optimizations
11194
11195 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
11196
11197         * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
11198
11199 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
11200
11201         * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
11202
11203 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
11204
11205         * src/pic/gen.c tidied up tabs
11206         * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
11207         * src/pic/main.c tidied up tabs
11208         * src/pic/pcode.c tidied up tabs and disabled verbose code generation
11209         * src/pic/pcoderegs.c tidied up tabs
11210         * src/pic/ralloc.c tidied up tabs
11211
11212 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
11213
11214         * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
11215         to S_FIXED for pic16 port and when symbol is not in level 0,
11216         allocate for S_REGISTER storage class and pic16 port, too,
11217         * src/pic16/device.h: prototype for checkSym,
11218         * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
11219         * (pic16_assignConfigWordValue): test the value and the mask to
11220         validate that the value is suitable for the configuration word,
11221         * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
11222         collect extern declared symbols, don't emit symbol twice, check
11223         first if symbol is in publics set first,
11224         * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
11225         * added command line '--fstack' which enables an experimental
11226         feature for stack access, too buggy to be used yet...
11227         * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
11228         * (pic16_allocDirReg): when register has storage class S_REGISTER
11229         allocate in pic16_dynAccessRegs,
11230         * device/include/pic16/pic18f????.h: modified configuration word
11231         naming convention, words started as CONFIG0H but should be CONFIG1H
11232
11233 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
11234
11235         * device/include/mcs51reg.h: fixed bug 970993
11236
11237 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
11238
11239         * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
11240         * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
11241         * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
11242         * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
11243         * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
11244         * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
11245           error/warning numbers,
11246           added function setWarningDisabled()
11247         * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
11248         * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
11249           _memcmp.c _memmove.c calloc.c realloc.c free.c
11250         * support/regression/tests/malloc.c: added tests for new functionality
11251         * support/regression/tests/zeropad.c: added tests for truncated initializers
11252           and initialized char arrays starting with '\x0'
11253         * src/mcs51/peeph.def: fixed regression, added peephole 177.f
11254
11255 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
11256
11257         * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
11258
11259 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11260
11261         * doc/sdccman.lyx: updated example in section "Absolute Addressing"
11262         * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
11263         peephole 177.e. Thanks to anonymous
11264
11265 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
11266
11267         * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
11268         function isn't used in the source but referenced as a
11269         variable initializer then declare it as extern in .asm file
11270
11271 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
11272
11273         * .version: increased version number to 2.4.3
11274
11275         Adding version extension according to ChangeLog CVS revision
11276         * src/Makefile.in (target all): added dependency 'version.h'
11277         * (rule version.h): added rule to create version.h from ChangeLog,
11278         * (rule dep): added dependency version.h,
11279         * src/version.awk: AWK script to create version.h
11280         * src/SDCCdwarf2.c (dwWriteModule),
11281         * src/SDCCglue.c (initialComments),
11282         * src/SDCCmain.c (printVersionInfo): modified to write after
11283         version string the version extension number,
11284         * src/SDCCutil.c: included "version.h"
11285         * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
11286         number,
11287         * src/SDCCutil.h: added prototype for getBuildNumber
11288
11289         * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
11290         includeDirsSet, too,
11291         * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
11292         const char [] is found in function prototype...
11293
11294         * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
11295         moving to WREG with source is already in WREG,
11296         * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
11297         * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
11298         * (aopForSym): stack'ed symbols are partially supported, added
11299         if-clause to support symbols in FARSPACE,
11300         * (sameRegs): added test for AOP_ACC to see if registers are same,
11301         * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
11302         * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
11303         * (pic16_popRegFromString): will not allocate a new register if it
11304         doesn't find one by name, bug may have introduced...
11305         * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
11306         * (genIpush): revived to use pic16 port's stack,
11307         * (genAddrOf): added incomplete case for stack'ed operand,
11308         * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
11309         * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
11310         can handle multibyte operands,
11311         * src/pic16/glue.c (pic16_printIval*): some debug info added,
11312         * (pic16initialComments): added message for MPLAB compatibility
11313         mode enabled,
11314         * src/pic16/main.h: prototype for pic16_mplab_comp,
11315         * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
11316         which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
11317         * (_pic16_linkEdit): NEW, handles link stage, transferred here
11318         because of increased complexity of procedure,
11319         * (_process_pragma): stack pragma changed to format 'stack pos len',
11320         emit symbol '_stack_end' to conform with gplink,
11321         * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
11322         to search for register,
11323         * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
11324         PO_GPR_REGISTER,
11325         * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
11326         #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
11327         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
11328         case for PO_GPR_REGISTER,
11329         * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
11330         dies, the new era is ahead !...
11331         * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
11332         pic16_dynInternalRegs,
11333         * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
11334         * (pic16_allocDirReg): minor optimizations and bug fixes,
11335         * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
11336
11337         * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
11338         load stack and frame pointer with address of 'stack_end' symbol
11339
11340 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
11341
11342         * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
11343         without source code but only variable initializers
11344
11345 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
11346
11347         * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
11348         external are not declared as extern to reduce overhead while linking
11349
11350 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
11351
11352         * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
11353
11354 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
11355
11356         * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
11357           Yee Keat for the patch
11358         * src/SDCCast.c (decorateType): fixed bug #979599
11359         * src/ds390/gen.h: removed local fReturnSizeDS390
11360         * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
11361         * src/ds390/gen.c (genAnd, genOr, genXor),
11362         * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
11363
11364 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
11365
11366         * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
11367         add relFilesSet to $3, manipulate $2 to handle linking of object
11368         files without source files in command line,
11369         * device/include/pic16 (all headers): added ID location macros,
11370         * src/pic16/device.c (struct PIC16_device Pics16[]): added field
11371         entries for ID location bytes,
11372         * (pic16_assignIdByteValue): NEW,
11373         * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
11374         added field dumpcalltree to pic16_options_t,
11375         * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
11376         is used instead of pic16_Gstack_base_addr, check if (ifx) before
11377         emitting rFalseIfx label after check_carry label,
11378         * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
11379         pic16_emitDIRegs), NEW
11380         * (pic16glue): dump .calltree file when option --calltree found,
11381         * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
11382         * (_pic16_genAssemblerPreamble): emit ID locations after
11383         configuration registers,
11384         * (pic16_linkCmd): modifications of the link command,
11385         * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
11386         * (pic16_pCodeInitRegisters): don't init stack registers,
11387         * (pic16_findPrevInstruction): fixed bug,
11388         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
11389         bug with immediate registers,
11390         * (buildCallTree): traces stack push and pop,
11391         * (pct2): dump also stack usage for each function,
11392         * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
11393         * (pic16_allocDirReg): various modifications,
11394         * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
11395         fixed to 1,
11396
11397 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
11398
11399         * src/pic16/pcode.c: removed buggy double colon
11400
11401 2004-07-01 Borut Razem <borut.razem AT siol.net>
11402
11403         * support/scripts/sdcc.nsi: added include/pic16 to setup
11404
11405 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
11406
11407         * device/lib/Makefile.in: fixed bug in target objects-pic16,
11408         * device/lib/pic16/Makefile: prefixed with dash (-) command under
11409         target 'clean',
11410         * doc/sdccman.lyx: changed version to 2.4.2 and added some port
11411         specific command line arguments. Also added sample lkr script
11412         for placing a variable at a specific memory bank.
11413         * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
11414         at a specific memory bank,
11415         * (pic16_dump_isection): fixed bug which caused string literals to
11416         be omitted when dumping idata section,
11417         * (pic16_groupRegistersInSection): added code to handle registers
11418         in specific memory banks,
11419         * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
11420         public, all references are renamed too,
11421         * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
11422         AOP_DPTR2,
11423         * (pic16_storeForReturn): added case to handle when dest is WREG,
11424         * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
11425         * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
11426         pic16_rel_udata, check to see if that register is marked as being
11427         a member of a specific memory bank,
11428         * (pic16_printIvalCharPtr): added code to add string literals either
11429         to code or the idata sections,
11430         * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
11431         also accept the 'udata' pragma,
11432         * src/pic16/main.h: new structure types sectName and sectSym
11433         * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
11434         * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
11435         * (pic16_findPrevInstruction): fixed, it returned nothing,
11436         * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
11437         instruction combinations,
11438         * (pic16_FixRegisterBanking): heavily reorganised,
11439         * (pic16_AnalyzeBanking): if generating banksel directives is
11440         disabled, then don't call FixRegisterBanking at all,
11441         * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
11442         completely removed,
11443         * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
11444
11445 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
11446
11447         * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
11448         Phuah Yee Keat <yk.phuah AT nestac.com>
11449
11450 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
11451
11452         * src/pic16/glue.c (pic16createInterruptVect): function now emits
11453         correctly the IVT even if it is relocated to some other location
11454
11455 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
11456
11457         * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
11458         * device/include/pic16/pic18f2220.h: NEW,
11459         * device/lib/pic16/libdev/pic18f2220.c: NEW,
11460         * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
11461         * src/pic16/device.c (struct Pics16): added info for 18f2220,
11462         * src/pic16/device.h (struct pic16_options): added ivt_loc and
11463         nodefaultlibs, ivt_loc is the location of the interrupt vector
11464         table, and nodefaultlibs signs that default libraries should not be
11465         linked in link stage,
11466         * src/pic16/gen.c (genFunction): relocate interrupt vector functions
11467         according to --ivt-loc argument,
11468         * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
11469         when pragma stack is found,
11470
11471 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11472
11473         * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
11474         256 (range check), 257 (do while), 258.a-f (bit banging
11475         f.e. on 3-wire SPI bus)
11476
11477 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11478
11479         * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
11480         variables used exclusively within a loop
11481
11482 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
11483
11484         * src/mcs51/gen.c (genCpl): quick fix for bug #974835
11485
11486 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11487
11488         * src/SDCClrange.c (computeClash): fixed bug #971834
11489
11490 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11491
11492         * src/mcs51/gen.c (genCmp): fixed bug #975903
11493         * src/hc08/gen.c (operandsEqu),
11494         * src/ds390/gen.c (operandsEqu),
11495         * src/z80/gen.c (operandsEqu),
11496         * src/pic/gen.c (operandsEqu),
11497         * src/pic16/gen.c (operandsEqu),
11498         * src/mcs51/gen.c (operandsEqu): fixed bug #976283
11499         * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
11500
11501 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11502
11503         * src/SDCCcse.c (cseBBlock): fixed bug #966963
11504
11505 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
11506
11507         * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
11508         default case in switch statement,
11509         * glue.c (pic16_initPointer): expr is initialised via decoarteType
11510         to eliminate problem with initialisation of pointers, but problem
11511         still exists,
11512         * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
11513         * (emitStaticSegment): removed various lines emitting debug info,
11514         * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
11515         added processor registers for utilizing EEPROM,
11516         * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
11517         configurable and set 8
11518
11519 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
11520
11521         * .version: increased version number to 2.4.2,
11522
11523         Cumulative patch for pic16 port
11524         * src/pic16/device.c: changed scheme to dump initial values for
11525         variables in idata segment, all print_idata* functions were removed,
11526         now the pic16_printIval* will be called,
11527         * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
11528         * _pic16_printPointerType, pic16_printPointerType,
11529         * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
11530         * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
11531         NEW, similar to the respective functions in SDCCglue.c,
11532         * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
11533         way, emitting hex bytes,
11534         * (pic16_emitDS): NEW, emits a string for pointer initialisation,
11535
11536 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11537
11538         * src/avr/ralloc.c (serialRegAssign),
11539         * src/xa51/ralloc.c (serialRegAssign),
11540         * src/pic/ralloc.c (serialRegAssign),
11541         * src/pic16/ralloc.c (serialRegAssign),
11542         * src/hc08/ralloc.c (serialRegAssign),
11543         * src/z80/ralloc.c (serialRegAssign),
11544         * src/ds390/ralloc.c (serialRegAssign),
11545         * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
11546
11547 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11548
11549         * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
11550         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
11551
11552 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
11553
11554         Cumulative patch for pic16 port:
11555         * src/pic16/device.h (typedef PIC16_device) modified fields for
11556         defining microcontrollers,
11557         * src/pic16/device.c: added new info for all devices in Pics16 array,
11558         * src/pic16/gen.c (genPcall): fixed bug that caused the return label
11559         to be optimised out by the pCode optimiser,
11560         * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
11561         specially, bug reported by G.M. Gallant,
11562         * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
11563         as force'd so that cannot be optimised out by pCode optimiser,
11564         * src/pic16/pcode.c,
11565         * src/pic16/pcodepeeph.c,
11566         * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
11567         they are disabled by default, but can be enabled explicit with
11568         command argument --denable-peeps, for testing,
11569         * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
11570         --pomit-ivt in COMPILE_FLAGS
11571
11572 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
11573
11574         * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
11575           compilation on MSVC
11576
11577 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
11578
11579         * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
11580
11581 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11582
11583         device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
11584         0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
11585
11586 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
11587
11588         * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
11589         would only assign 0x300001 register.
11590
11591 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
11592
11593         * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
11594         in COMPILE_FLAGS. Thanks to G. Gallant for report.
11595
11596 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11597
11598         * doc/sdccman.lyx: minor changes, mentioned beta vendor support
11599         for ds80c400
11600         * src/mcs51/peeph.def: ran unexpand -a over peeph.def
11601         * src/mcs51/peeph.def: removed obsolete peephole 100.a,
11602         added peephole 254 (left shift), 255 (jump table)
11603
11604 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
11605
11606         * device/lib/Makefile.in: removed comment line with model-pic16,
11607         * (target port-specific-objects-pic16): the libraries and objects
11608         are copied to the build directory form the device/lib/pic16/bin
11609         directory
11610
11611         Cumulative patch concerning pic16 port:
11612         * library directory has been re-organized,
11613         * added support for PIC18F1220,
11614         * added headers and library sources for chips 18f1220,18f6520,
11615         18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
11616
11617         * configuration registers setting has changed, now each supported
11618         device has a complete description of the registers it uses,
11619         * all initialisations are moved to idata sections, these section
11620         can be absolute or relocatable,
11621         * fixed initialisation of codespace variables,
11622         * fixed warning about PCLATU and gpsim,
11623         * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
11624         * (genAssign): use table reads when assigning from variables in codespace,
11625         * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
11626         char/int variables placed in codespace,
11627         * (pic16_emitConfigRegs): NEW, emits a list with configuration
11628         registers set in .asm file, no need for --pomit-config-words anymore,
11629         * (pic16glue): some 8051 legacy segments are commented out
11630         (to be removed completely),
11631         * added support for alternative assembler and linker with --asm=
11632         and --link= command line arguments,
11633         * peepholes are disabled automatically in the port, no need to
11634         specify on command line,
11635         * port supports natively char/int/long multiplication, but converts
11636         all divisions to support functions,
11637         * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
11638         to the file set in variable $2,
11639         * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
11640         strings in ASCII format and not in hex,
11641         * ralloc.c (serialRegAssign): added a triplet of conditional calls
11642         to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
11643         allocate proper register if iCodes aren't temporary,
11644
11645 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
11646
11647         * support/regression/tests/zeropad.c: added TEST_G macro for alpha
11648
11649 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
11650
11651         * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
11652         is commented out
11653
11654 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11655
11656         * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
11657         computed address is reused
11658         * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
11659         multi-byte bitfields
11660
11661 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
11662
11663         * src/z80/gen.c: (genArrayInit): must check for pointers too
11664
11665 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
11666
11667         * support/regression/tests/zeropad.c: never meant to commit the
11668           nestedstruct test: removed, added check for GCC version
11669
11670 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
11671
11672         * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
11673         * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
11674         * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
11675           printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
11676           bugs 928906 and 954082 half-empty initializers
11677         * src/SDCCsymt.h,
11678         * src/SDCCsymt.c (getAllocSize): added for above fix
11679         * src/z80/gen.c (genArrayInit): fixed bug 741044
11680         * support/regression/tests/zeropad.c: added tests
11681
11682 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
11683
11684         * src/pic16/device.c (pic16_dump_section): corrected bug which
11685         caused some symbols of the libraries to be misplaced
11686
11687 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
11688
11689         * src/pic16/glue.c,
11690         * src/pic16/ralloc.h,
11691         * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
11692         to fix conflict with pic port
11693
11694 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
11695
11696         * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
11697         externs configuration variables,
11698         * src/pic16/ralloc.h,
11699         * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
11700         prototype in header, commented out some debug messages
11701
11702 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
11703
11704         * src/pic16/glue.c,
11705         * src/pic16/main.c,
11706         * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
11707         for gpasm COFF object generation. Thanks to D. Hawkins for
11708         his patch info
11709
11710 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11711
11712         * src/ds390/main.c,
11713         * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
11714         Brock for spotting this)
11715         * src/ds390/gen.c (genEndFunction),
11716         * src/mcs51/gen.c (genEndFunction): always save psw if function is an
11717         interrupt handler and critical. Disable push/pop optimizations when
11718         peephole optimizations disabled.
11719
11720 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
11721
11722         Updated pic16 library sources and headers.
11723         * device/lib/pic16/pic18f*/ ,
11724         * device/include/pic16/*.h: modified to handle structured SFR
11725         definitions
11726
11727 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
11728
11729         * src/port.h (PORT structure): added hook initPaths, now each
11730         port can declare its own default search paths,
11731         which can been seen with the --print-search-dirs option,
11732         see pic16 port for example,
11733         * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
11734         setDataPaths): test to options.printSearchDirs is ifdef'ed out,
11735         * (doPrintSearchDirs): NEW, replaces in a central manner the
11736         printing of search dirs which was split in set*Paths functions,
11737         * (main): added call to port->initPaths and doPrintSearchDirs,
11738         * src/avr/main.c,
11739         * src/ds390/main.c,
11740         * src/hc08/main.c,
11741         * src/izt/i186.c,
11742         * src/izt/tlcs900h.c,
11743         * src/mcs51/main.c,
11744         * src/pic/main.c,
11745         * src/pic16/main.c: modified port structures to reflect addition of
11746         initPaths hook,
11747
11748         * src/pic16/device.c (regCompare): registers are finally sorted by name,
11749         * (pic16_dump_section): for registers in same address reserve memory once,
11750         * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
11751         to no_banksel,
11752         * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
11753         result is greater in size than right or left,
11754         * (pic16_genUMult8X8_8): there are some cases where the result can
11755         be 16 bits size, so handle these,
11756         * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
11757         * (pic16_outBitC): modified to emit pcodes,
11758         * (pic16_storeForReturn): using is_LitOp to see if operand is literal
11759         or not,
11760         * (genDivOneByte): implemented algorithm to divide 8-bits,
11761         * (genCmp): uncommented goto, but issues still exist,
11762         * (genAnd): fixed a bug with variables >8bits,
11763         * (genPackBits): optimization added that uses BCF/BSF to change a
11764         single bit,
11765         * (genAssign): fixed bug when assigning floating point literals,
11766         * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
11767         __sdcc_gsinit_startup label,
11768         * src/pic16/main.c (_pic16_init): removed search directory
11769         initialisations,
11770         * (_pic16_initPaths): NEW, used to initialise search directories,
11771         * (_hasNativeMulFor): support functions for all except char/int
11772         multiplication, and char division,
11773         * (PIC16_port struct): modified entry for native mul support,
11774         * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
11775         no_banksel option,
11776         * (buildCallTree): call to register_usage is ifdef'ed out,
11777
11778 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11779
11780         * device/include/string.h: applied Stas Sergeev's patch to make this
11781         header file compatible with the preprocessor -Wundef option
11782         * src/SDCCmain.c (main): abort compilation if preprocessor reports
11783         failure (fixes bug #941458)
11784
11785 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11786
11787         * src/SDCCopt.c (killDeadCode): fixed bug #907733
11788         * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
11789         that the variable, not the function, should be static
11790         * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
11791         to be consistent with non-literal case
11792
11793 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11794
11795         * src/SDCCast.c (isConformingBody): fixed bug #949967
11796         * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
11797         convilong): fixed bug #952086
11798
11799 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11800
11801         * src/SDCCmem.c (allocVariables): fixed bug #955321
11802
11803 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11804
11805         * src/hc08/main.c (_hc08_genAssemblerEnd),
11806         * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
11807         dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
11808         completely eliminated the use of a temporary file
11809         * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
11810         when more than one file linked
11811         * src/SDCCloop.c (pointerAssigned): fixed bug #954163
11812
11813 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11814
11815         * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
11816         which fixes bug #543481
11817         * support/regression/tests/bug-751703.c: fixed comments left from a
11818         cut and paste error
11819         * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
11820         * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
11821         * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
11822         scopes
11823         * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
11824         * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
11825         are now changed to underscores in moduleName
11826
11827 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11828
11829         * as/mcs51/lkmem.c: better fix for bug #954173
11830
11831 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
11832         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11833
11834         * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
11835         * device/include/c8051f000.h,
11836         * device/include/c8051f120.h,
11837         * device/include/c8051f300.h,
11838         * device/include/c8051f310.h,
11839         * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
11840         PWM16) and detab'ed
11841
11842 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11843
11844         * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
11845         and mailing lists, doc'ed --no-peep-comments, removed reference
11846         to knoppix (newest version has no LyX/LaTeX), other minor changes
11847         * src/SDCCglue.c (glue): save 2 bytes stack space with
11848         option --main-return. The ljmp could probably be avoided too
11849
11850 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11851
11852         * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
11853
11854 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11855
11856         * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
11857         * src/SDCCopt.c (isLocalWithoutDef),
11858         * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
11859         which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
11860         (credit to Maarten Brock for patch #949363, on which this is based)
11861         * support/regression/tests/bug-751703.c: some test cases of extern used
11862         within inner scopes.
11863
11864 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11865
11866         * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
11867         SPEC_STRUCT
11868         * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
11869         struct definitions
11870         * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
11871         dwWriteLabel): fix to create valid debugger symbols even when
11872         the module name has non-alphanumeric symbols in it
11873         * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
11874         when a variable's allocation has been optimized away
11875
11876
11877 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11878
11879         * src/hc08/gen.c (hc08_emitDebuggerSymbol),
11880         * src/hc08/main.c,
11881         * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
11882         * src/mcs51/main.c,
11883         * src/ds390/gen.c (ds390_emitDebuggerSymbol),
11884         * src/ds390/main.c,
11885         * src/z80/gen.c (z80_emitDebuggerSymbol),
11886         * src/z80/main.c,
11887         * src/pic/gen.c (pic14_emitDebuggerSymbol),
11888         * src/pic/main.c,
11889         * src/pic16/gen.c (pic14_emitDebuggerSymbol),
11890         * src/pic16/main.c,
11891         * src/avr/gen.c (avr_emitDebuggerSymbol),
11892         * src/avr/main.c,
11893         * src/xa51/gen.c (xa51_emitDebuggerSymbol),
11894         * src/xa51/main.c,
11895         * src/SDCCdebug.c (emitDebuggerSymbol),
11896         * src/SDCCdebug.h,
11897         * src/port.h: added a debugger struct to the port struct. Added a
11898         callback for defining debugger symbols
11899
11900         * src/SDCCast.c (createLabel),
11901         * src/SDCC.y (labeled_statement): mark all compiler generated labels
11902         with isitmp = 1
11903         * src/SDCCicode.h,
11904         * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
11905         iCode back to the ast for the function
11906
11907         * src/hc08/ralloc.c (hc08_assignRegisters),
11908         * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
11909         unneeded fields from the regs struct.
11910         * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
11911         pushReg() & pullReg() functions instead of emitcode()
11912
11913         * src/hc08/gen.c (genLabel, genhc08Code),
11914         * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
11915
11916         * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
11917         debugger hooks
11918
11919         * src/hc08/gen.c (genEndFunction, genhc08Code),
11920         * src/hc08/gen.h,
11921         * src/mcs51/gen.c (genEndFunction, gen51Code),
11922         * src/mcs51/gen.h,
11923         * src/ds390/gen.c (genEndFunction, gen390Code),
11924         * src/ds390/gen.h,
11925         * src/z80/gen.c (genEndFunction, genZ80Code),
11926         * src/z80/gen.h,
11927         * src/z80/z80.h,
11928         * src/pic/gen.c (genEndFunction, genpic14Code),
11929         * src/pic/gen.h,
11930         * src/pic16/gen.c (genEndFunction, genpic16Code),
11931         * src/pic16/gen.h,
11932         * src/avr/gen.c (genEndFunction, genAVRCode),
11933         * src/avr/gen.h,
11934         * src/xa51/gen.c (genEndFunction, genXA51Code),
11935         * src/xa51/gen.h,
11936         * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
11937         specific code to cdbFile.c and out of the backend code generators
11938
11939         * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
11940         * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
11941         starting address is now 0
11942
11943         * as/hc08/asm.h,
11944         * as/hc08/m08pst.c,
11945         * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
11946         assembler directive for DWARF support
11947         * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
11948
11949         * src/src.dsp,
11950         * src/Makefile.in,
11951         * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
11952
11953 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11954
11955         * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
11956         and inappropriate peephole optimization in jump tables
11957
11958 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11959
11960         * as/hc08/m08pst.c,
11961         * src/SDCCglue.c: sdccopt works for the hc08 port now
11962
11963 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
11964
11965         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
11966
11967 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11968
11969         * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
11970
11971 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11972
11973         * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
11974         rules
11975         * src/SDCCmain.c,
11976         * src/SDCCglobl.h,
11977         * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
11978         comments from the peephole optimizer replacement rules
11979         * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
11980         symbols
11981         * src/SDCCcse.c (updateSpillLocation),
11982         * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
11983         equivalents
11984         * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
11985         * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
11986         objects far pointers
11987
11988 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11989
11990         * src/SDCCsymt.h: a missing part of my last change
11991         * src/pic/ralloc.c (regTypeNum),
11992         * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
11993
11994 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11995
11996         * src/SDCCicode.h,
11997         * src/SDCCicode.c (aggrToPtrDclType),
11998         * src/SDCCptropt.h,
11999         * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
12000         ptrPseudoSymConvert),
12001         * src/pic/ralloc.c (regTypeNum),
12002         * src/pic16/ralloc.c (regTypeNum),
12003         * src/hc08/ralloc.c (regTypeNum),
12004         * src/ds390/ralloc.c (regTypeNum),
12005         * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
12006         creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
12007
12008 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12009
12010         * link/z80/lkmain.c (afile),
12011         * as/hc08/lkmain.c (afile),
12012         * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
12013         prevent a pointer problem when a filename has no directory and
12014         no extension specified.
12015
12016 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12017
12018         * link/z80/lkmain.c (afile): allow periods in directory names
12019         * link/z80/lkmain.c (afile),
12020         * as/mcs51/lkmain.c (afile),
12021         * as/hc08/lkmain.c (afile): allow linker script file to have an
12022         extension other than ".lnk"
12023         * link/z80/lklex.c (getfid),
12024         * link/z80/lkmain.c (parse),
12025         * as/mcs51/lklex.c (getfid),
12026         * as/mcs51/lkmain.c (parse),
12027         * as/hc08/lklex.c (getfid),
12028         * as/hc08/lkmain.c (parse): Support comments in the linker script
12029         file on lines by themselves and after filenames
12030
12031 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12032
12033         * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
12034
12035 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12036
12037         * src/z80/peeph-z80.def: removed some peephole rules that don't
12038         work with multibyte arithmetic (fixed bug #937126)
12039         * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
12040         to registers and not global variables
12041         * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
12042         geniCodePreInc, geniCodePostDec, geniCodePreDec,
12043         geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
12044         checking for assignments not internally generated (fixed bug #931895)
12045         * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
12046         structure member (fixed bug #930072)
12047
12048 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12049
12050         * src/SDCCmain.c (linkEdit),
12051         * src/hc08/main.c (_hc08_parseOptions),
12052         * as/hc08/Makefile.in,
12053         * as/hc08/aslink.h,
12054         * as/hc08/asm.h,
12055         * as/hc08/m08pst.c,
12056         * as/hc08/lkrloc.c (relr, rele),
12057         * as/hc08/lkarea.c (lnkarea)
12058         * as/hc08/lkmain.c (afile, parse),
12059         * as/hc08/lkelf.c: support for ELF output
12060         * as/hc08/lks19.c (s19),
12061         * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
12062
12063 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12064
12065         * as/mcs51/lkihx.c: Fixed bug #899105.
12066
12067 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12068
12069         * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
12070         .dsp files from Unix to DOS.
12071
12072 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12073
12074         * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
12075         function pointers; we have been compliant for several months now.
12076         * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
12077         change that was accidently commented out
12078         * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
12079         genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
12080         bug #922319
12081
12082 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12083
12084         * src/hc08/gen.c: output of all of the internal debugging information
12085         is now controlled by the D() macro; it is disabled by default
12086
12087 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12088
12089         * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
12090         harder to keep the same registers during a CAST iCode
12091         * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
12092         long via int can be done in a single cast, if the signedness is
12093         correct.
12094         * support/regression/tests/bug-927659.c: fixed to avoid conflict with
12095         putchar() in tinibios.c in ds390's library
12096
12097 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
12098
12099         * src/SDCCast.c (decorateType): fixed bug #898889,
12100         cast result of a literal complement too
12101         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
12102         fixed check for bitfields
12103
12104 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
12105
12106         * src/SDCCicode.c (geniCodeLogic): made it static,
12107         (geniCodeLogicAndOr): added in order to fix bug #905492,
12108         (ast2iCode): fixed bug #905492
12109         * support/regression/tests/bug-905492.c: added
12110         * src/SDCCast.c (decorateType): don't decorate/process parms twice,
12111         (processParms): fixed bug #927659: don't copy parms, this will clear
12112         decorated flag
12113         * support/regression/tests/bug-927659.c: added
12114
12115 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
12116
12117         * src/SDCCast.c (addCast): don't cast float to char
12118         * device/lib/libsdcc.lib: added _memmove
12119
12120 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
12121
12122         * device/lib/large/Makefile: fixed parallel execution by
12123         replacing `make` by `$(MAKE)`
12124
12125 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12126
12127         * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
12128         offsets (fixes bug #923936)
12129
12130 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
12131
12132         * device/lib/small/Makefile: fixed parallel execution by
12133         replacing `make` by `$(MAKE)`
12134
12135 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
12136
12137         * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
12138
12139 2004-03-23  Scott Dattalo  <scott AT dattalo.com>
12140
12141         * src/pic/gen.c (genCpl): multi-byte complements were not working.
12142         * src/regression/Makefile: Regression test was not running.
12143
12144 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
12145
12146         * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
12147         complement if possible
12148         * src/SDCCval.c (valComplement),
12149         * src/SDCCicode.c (operandOperation): fixed complement of literal
12150         * support/regression/tests/onebyte.c (testComplement): added
12151
12152 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
12153
12154         * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
12155         return an optimized tree; actually replace actParm with the new tree
12156         * src/SDCCast.h: added some parantheses to remove side effects
12157         * support/regression/tests/bug-920866.c
12158
12159 2004-03-21  Scott Dattalo  <scott AT dattalo.com>
12160         * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
12161         Bit operands were not being handled properly in the pic14 port.
12162         (now src/regression/add.c passes again).
12163
12164 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12165
12166         * src/SDCC.y (labeled_statement): case and default no longer require
12167         a following statement (RFE #893037)
12168
12169 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12170
12171         * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
12172         use MOVA macro to avoid "mov a,acc" when peephole optimizer is
12173         disabled (fixes bug #916294)
12174         * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
12175         "mov a,acc"; patch provided by Lenny Story
12176         * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
12177
12178 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12179
12180         * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
12181         functions
12182         * src/ds390/gen.c (genFunction, genEndFunction),
12183         * src/ds390/ralloc.c (ds390_assignRegisters),
12184         * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
12185         * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
12186         pushed if there are parameters passed on the stack. Also, a cleaner
12187         way to decide if r0/r1 should be pushed/popped. (Together they fix
12188         bug #918693)
12189
12190 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12191
12192         * doc/sdccman.lyx,
12193         * device/lib/mcs51/crtpagesfr.asm,
12194         * device/lib/mcs51/crtxinit.asm,
12195         * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
12196         to avoid confusion with Si Lab's SFRPAGE register.
12197
12198 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12199
12200         * src/SDCCglue.c (emitMaps): allow public sfr variables
12201         * src/SDCCglue.c (initialComments): include compiler build date
12202         with compiler version and put the timestamp of the generated
12203         assembly file on a serperate line to be less confusing.
12204         * src/port.h: added genInitStartup hook
12205         * src/avr/main.c,
12206         * src/ds390/main.c,
12207         * src/hc08/main.c,
12208         * src/pic/main.c,
12209         * src/pic16/main.c,
12210         * src/xa51/main.c,
12211         * src/z80/main.c: genInitStartup initialize as NULL (default to
12212         historical behaviour)
12213         * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
12214         * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
12215         _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
12216         library instead of hard coding it into the compiler.
12217         * support/regression/ports/mcs51-stack-auto/spec.mk,
12218         * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
12219         * device/lib/mcs51/Makefile,
12220         * device/lib/small/Makefile,
12221         * device/lib/large/Makefile,
12222         * device/lib/mcs51/crtpagesfr.asm,
12223         * device/lib/mcs51/crtstart.asm,
12224         * device/lib/mcs51/crtxclear.asm,
12225         * device/lib/mcs51/crtxinit.asm,
12226         * device/lib/mcs51/crtclear.asm,
12227         * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
12228         startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
12229         and into user configurable files.
12230         * device/lib/clean.mk: clean mcs51 directory too
12231         * support/regression/tests/longlit.c: added static to T1 declaration
12232         * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
12233         accesses in the initialization code
12234
12235 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12236
12237         * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
12238         OSCTRIMVAL as noted in bug #916008
12239
12240 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12241
12242         * src/SDCCloop.c (basicInduction): fixed bug with loop induction
12243         in loops with multiple exits (reported as incorrect registers
12244         used by Martin Helmling in Sdcc-user list)
12245
12246 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12247
12248         * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
12249         made ds390 register extensions look less like error messages
12250
12251 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12252
12253         * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
12254         reported by Adam Wozniak in Sdcc-user list
12255
12256 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
12257
12258         * src/SDCCast.c (decorateType): fixed with bug and promotion in
12259         arithmetic optimizations, added debug output
12260
12261 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
12262
12263         * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
12264         * sdcc.spec: updated and split sdcc into 3 rpms
12265         * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
12266         needed for literals of LEFT_OP and '+'
12267         * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
12268         introduced RESULT_TYPE_NOPROM
12269         (geniCodeMultiply): fixed logic for decision if mul is optimized to
12270         left shift
12271         * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
12272         limited promotion to int only for '*'
12273         * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
12274
12275 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
12276
12277         * src/pic16/gen.c (genSkip),
12278         (genc16bit2lit), (gencjneshort): commented out
12279         (is_LitOp): new helper function, checks operand type
12280         (genCmpEq): rewritten
12281
12282 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
12283
12284         * support/regression/tests/bug-908454.c: added
12285
12286 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
12287
12288         * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
12289         * src/SDCCicode.c (usualBinaryConversions): op needs int type
12290         (geniCodeCast): cosmetic, don't preserve bit storage class
12291         (geniCodeLeftShift): added promotion
12292         (geniCodeLogic): fixed regression
12293         * src/SDCCsymt.c (computeTypeOr): accept bits too
12294         (compareType): 2nd part of fix for bug #908454, needed for bitfields
12295
12296 2004-03-07  Borut Razem <borut.razem AT siol.net>
12297
12298         * support/Util/findme.c: alloca() replaced with malloc()/free() pair
12299
12300 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
12301
12302         * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
12303         version of pic16_genPackRegisters which does not check if ic is a
12304         CAST operator,
12305         * src/pic16/gen.c (ifxForOp): disabled new and untested code in
12306         function cause string1.c regression test fails
12307
12308 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
12309
12310         * sim/ucsim/configure.in,
12311         * sim/ucsim/configure,
12312         * sim/ucsim/doc/Makefile.in: use docdir
12313         * src/SDCC.y: fixed sbit atrributes
12314         * src/SDCCast.c (getResultTypeFromType): added support for bitfields
12315         * src/SDCCast.c (decorateType): |^& need special promotion handling
12316         * src/SDCCast.h,
12317         * src/SDCCsymt.h: moved definition of RESULT_TYPE
12318         * src/SDCCsymt.h (computeType),
12319         * src/SDCCicode.c: computeType() needs op
12320         * src/SDCCsymt.c (checkTypeSanity),
12321         * doc/sddman.lyx: "plain" bitfields are unsigned
12322         * src/SDCCsymt.c (computeTypeOr): added
12323         * src/SDCCsymt.c (computeType): added support for bitfields, fixed
12324         |^& ops
12325         * src/SDCCval.c (val*): computeType() needs op
12326         * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
12327         * support/regression/tests/onebyte.c: added tests for |^&
12328
12329 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
12330
12331         * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
12332         for writing icode into asm output.
12333
12334 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
12335
12336         * src/pic16/device.c: added some debug lines enabled
12337         with macro DEBUG_CHECK,
12338         * src/pic16/genarith.c: more debug in genPlus,
12339         * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
12340         * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
12341         * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
12342         * (aopForSym): onStack symbols are re-placed in data memspace,
12343         and onStack flag is cleared,
12344         * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
12345         copy temporary pcodeop,
12346         * (genPcall): added warning for not updating PCLATU,
12347         * (genFunction): removed test with IFFUNC_CALLEESAVES, its
12348         always true for pic16 port,
12349         * (genMultOneWord): NEW, supports integer multiplication,
12350         * (genMult): modified to call genMultOneWord,
12351         * (ifxForOp): added warning when return NULL,
12352         * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
12353         flag is set before call to operandFromSymbol for implicit
12354         added structures,
12355         * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
12356         options.intlong_rent are set by default,
12357         * (_hasNativeMulFor): modified to allow port generation of integer
12358         multiplication,
12359         * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
12360         set regtype to REG_SFR for all registers, restricting seting the
12361         accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
12362
12363 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12364
12365         * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
12366         more than 500 times in the regression tests
12367
12368 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12369
12370         * support/Util/SDCCerr.h,
12371         * support/Util/SDCCerr.c,
12372         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
12373         enumerator_list),
12374         * src/SDCCsymt.c (addSymChain): show location of oriignal definition
12375         for symbol conflicts.
12376         * support/valdiags/tests/enum.c,
12377         * support/valdiags/tests/tentdecl.c,
12378         * support/valdiags/tests/struct.c: expect possible error messages
12379         referring to original symbol definitions.
12380         * src/SDCC.y (struct_or_union_specifier, struct_declarator),
12381         * src/SDCCsymt.h,
12382         * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
12383
12384 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
12385
12386         * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
12387
12388 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
12389
12390         * src/pic16/ralloc.c (newReg): fixed bug #908929
12391
12392 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12393
12394         * src/ds390/gen.c: added missing #include "main.h"
12395
12396 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
12397
12398         * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
12399         checking if symbol is already in set,
12400         * src/pic16/device.h: prototype for checkAddSym,
12401         * src/pic16/gen.c: (_G): added entry interruptvector,
12402         * (assignResultValue): removed some commented out lines,
12403         * (genFunction): check for ISR via sym->type, absolute section for
12404         interrupt code is created via a new pBlock, the goto instruction is
12405         placed now correctly at the interrupt vector position, changed all
12406         references from ivec to _G.interruptvector,
12407         * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
12408         is the interrupt is a high priority one, same for return from ISR,
12409         * src/pic16/glue.c: changed all calls of addSetHead for publics and
12410         externs to calls of checkAddSym,
12411         * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
12412         pic16_pcode_verbose flag is set,
12413         * src/pic16/pcode.h: extern to pic16_pcode_verbose,
12414         * src/pic16/pcoderegs.c: message about how many registers are saved
12415         will only be emitted if pic16_pcode_verbose flag is set,
12416
12417 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12418
12419         * src/ds390/ralloc.h,
12420         * src/ds390/ralloc.c (ds390_regWithIdx),
12421         * src/ds390/gen.c (emitcode),
12422         * src/ds390/main.h,
12423         * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
12424         ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
12425         ds390operandCompare, getRegsRead, getRegsWritten,
12426         initializeAsmLineNode): customized instruction size calculation for
12427         ds390, started basis for some register optimizations
12428         * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
12429         corresponding assembly output
12430         * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
12431         missing push/pop of r0/r1. Optimized push/pops
12432
12433 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12434
12435         * src/mcs51/main.c (instructionSize): fixed ACALL size
12436         * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
12437
12438 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
12439
12440         * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
12441         the sorting of rlist with NULL elements
12442         * (print_idataType, print_idata): NEW to create idata sections
12443         * src/pic16/device.h: idataSymSet new variable
12444         * src/pic16/gen.c (genFunction): fixed some bugs in string
12445         comparing, improved the absolute section creation for ISRs,
12446         added FSR0L/FSR0H in registers that are saved in an ISR,
12447         * (genInline): fixed the processing of inline snippets,
12448         now they undergo no process by the peephole optimizer
12449         * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
12450         are placed in idataSymSet,
12451         * (pic16emitStaticSeg): extern symbols are added in externs,
12452         * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
12453         switching when aboslute variables are placed in access bank memory
12454         * (pic16_writeUsedRegs): added call to pic16_dump_idata,
12455         * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
12456         commented out with #if,
12457         * (pic16_packRegisters): reintroduce the check for CAST because some
12458         symbols are not correctly handled,
12459         * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
12460         pCodeInstruction instead of pCode,
12461         * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
12462         pCodeAsmDir definition,
12463         * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
12464         directive, then the argument directive is emitted without the leading
12465         tab, hack for inline labels which must be in the first column,
12466         * (compareLabel,pic16_findNextInstruction),
12467         * (pic16_findPrevInstruction): added case for PO_ASMDIR,
12468         * (insertBankSwitch): modified for the new pCodeAsmDir,
12469
12470 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
12471         patch applied by Vangelis Rokas <vrokas AT otenet.gr>
12472
12473         * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
12474         instance,
12475         * (pushSide): commented out with #if,
12476         * (assignResultValue): fixed some typos in saving
12477         registers,
12478         * (genPcall): FIXED and sync'ed with genCall,
12479         * (genDataPointerGet,genDataPointerSet): using offset not leoffset
12480         * (genNearPointerGet): fixed to handle some more cases,
12481         implementation scheme via table reads,
12482         * (genConstPointerGet): modified to access code memory correct,
12483         * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
12484         and improved to handle some cases
12485         * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
12486         instead of "RETLW" for init data
12487         * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
12488         not IN_DIRSPACE, work around to reduce bank switching when aboslute
12489         variables are placed in access bank memory (<0x80 and >=0xf80),
12490         * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
12491         TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
12492         TBLWT_POSTDEC,TBLWT_PREINC
12493         * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
12494         * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
12495         directives
12496         * (pic16_pCodeConstString): use "DB" instead of "RETLW"
12497         * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
12498         pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
12499         * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
12500
12501 2004-02-29  Borut Razem <borut.razem AT siol.net>
12502
12503         * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
12504         support/Util/findme.h, support/Util/system.h: enhance binary relative
12505         search for lib and include by using findProgramPath()
12506
12507 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12508
12509         * src/SDCCpeeph.h,
12510         * src/SDCCpeeph.c (pcDistance),
12511         * src/port.h,
12512         * src/mcs51/ralloc.h,
12513         * src/mcs51/ralloc.c (mcs51_regWithIdx),
12514         * src/mcs51/main.h,
12515         * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
12516         mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
12517         mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
12518         size calculation port specific, started basis for some register
12519         optimizations
12520         * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
12521         missing push/pop of r0/r1. Optimized push/pops
12522         * src/mcs51/ralloc.c (packregisters): fixed bug #727095
12523         * device/lib/_modsint.c (_modsint),
12524         * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
12525         and stack version so regression tests pass
12526
12527 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
12528
12529         * src/Makefile.in (dep): include SLIBOBJS in dependency check
12530         * src/SDCCast.c (decorateType): catch another small optimization
12531         with '?' operator
12532         * src/SDCCsymt.c (computeType): added comments and cosmetic changes
12533         * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
12534         modified to finally use computeType() all over SDCC,
12535         see Feature Request #877103
12536         * src/SDCCval.h: cosmetic
12537         * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
12538         valCompare(); regression tested in muldiv.c
12539         * support/regression/tests/muldiv.c (testMod): mod sign follows
12540         dividend only
12541
12542 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
12543
12544         * src/SDCCast.c (decorateType): fixed bug #902362
12545         * doc/INSTALL.txt: fixed install instructions for win32
12546
12547 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
12548
12549         * device/include/Makefile.in (install): fixed by replacing spaces
12550         by tabs
12551         * doc/README.txt,
12552         * doc/INSTALL.txt: updated for release
12553         * doc/sdccman.lyx: added warning for --xstack being buggy
12554
12555 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
12556
12557         * src/pic16/ralloc.c (packRegsForAccUse):  disabled functions with #if
12558         to eliminate build warnings.
12559         * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
12560
12561 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
12562            Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
12563
12564         * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
12565         removed -penable-stack, added comment for stack pragma, added
12566         warning for not initializing the stack/frame registers, removed
12567         comment at interrupts section
12568
12569         Stack is made permanent, there is no ability to disable stack usage.
12570         * src/pic16/device.h,
12571         * src/pic16/device.c: removed all references to USE_STACK macro,
12572         * src/pic16/device.c (pic16_dump_section): when no elements in
12573         rlist, free rlist before return,
12574         * (pic16_dump_int_registers): NEW, internal registers are a new set
12575         of general purpose registers reused by each function,
12576         * (checkAddReg): returns 1 if registers is added to set,
12577         * (pic16_groupRegistersInSection): when a registers is of type
12578         PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
12579         * src/pic16/device.h: memRange and Assigned Memory are deleted,
12580         SRCASECMP macro is moved here from device.c
12581         * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
12582         PO_PCLATU, PO_PRODL, PO_PRODH,
12583         * (pic16_pCodeOpType, genMinus,
12584         changed compares to "a" register, with AOP_ACC,
12585         * (pic16_genPlus): fixed some bugs and indented properly,
12586         * (pic16_addSign): changed size to size+offset in the MOVWF
12587         instruction,
12588         * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
12589         multiply 8-bit operand by literal, result is 8-bit,
12590         * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
12591         multiply 2 8-bit operand, result is 8-bit,
12592         * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
12593         genUMult8X*_16,
12594         * src/pic16/gen.c: changed accUse to contain WREG only,
12595         * (pic16_emitcomment): renamed to pic16_emitpcomment,
12596         * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
12597         true, do not use immediate addressing any more unless sym is a
12598         pointer in codespace,
12599         * (aopForRemat): do not use immediate addressing when symbol not in
12600         codespace and when symbol's address is requested,
12601         * (aopOp): for-loop in if(sym->accUse) is modified for the new
12602         accUse size (= 1),
12603         * (aopGet): added case for AOP_ACC and don't return "accumulator
12604         bug" but WREG instead,
12605         * (popGetTempReg): pushes contents of temporary register in stack,
12606         * (popReleaseTempReg): pops contents of temporary register from
12607         stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
12608         * (pic16_popGet): separated case AOP_ACC to return register WREG
12609         from processor registers, AOP_PCODE not checks if pcop is PO_DIR
12610         or PO_IMMEDIATE and initializes their instance/offset appropriately,
12611         * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
12612         the use of immediate pointers to certain cases only.
12613
12614         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
12615         * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
12616         * (assignResultValue, genCall, genRet): modified to use the new
12617         function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
12618         genPcall is still broken,
12619         * (genFunction): added code to create 'A' type pBlocks when
12620         interrupt functions are generated, code not extensively tested yet,
12621         ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
12622         * (genEndFunction): modified so ISRs pop stored registers from stack,
12623         * (genMultOneByte): cleanup,
12624         * (AccRsh): added flag andmask, to and result with appropriate mask,
12625         * (genUnpackBits,genPackBits): fixed and can handle bit fields,
12626         * (genDataPointerGet): fixed and reenabled its use,
12627         * (genNearDataPointerGet): bugs fixed,
12628         * (genDataPointerSet): bugs fixed,
12629         * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
12630         pic16_DumpSymbol, pic16_DumpOp,
12631         * src/pic16/genutils.h: function prototypes for the above functions,
12632         * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
12633         pointers,
12634         * (pic16emitRegularMap): many many many improvements, but needs a
12635         major cleanup,
12636         * src/pic16/main.c: enable_stack in pic16_options is removed,
12637         * (_pic16_parseOptions): removed command line options -penable-stack,
12638         * (_process_pragma): emit stack symbol only when stack pragma is
12639         processed,
12640         * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
12641         redirected to FSR0L/FSR0H pair,
12642         * (pic16_get_op, pic16_get_op2): modifications and improvements,
12643         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
12644         cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
12645         for immediates,
12646         * (insertBankSwitch): modified to handle cases like: (alfa + 1)
12647         * (dumpPicOptype): NEW,
12648         * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
12649         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
12650         with movff instruction,
12651         * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
12652         added pic16_int_regs, some packRegsFor* functions are commented out,
12653         because produce errors,
12654         * src/pic16/NOTES: minor modifications
12655
12656 2004-02-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12657
12658         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
12659         as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
12660         --pack-iram.
12661         * doc/sdccman.lyx: described options --stack-size and --pack-iram.
12662         * as/mcs51/lkaomf51.c: fixed bug #895763
12663
12664 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
12665
12666         * device/include/c8051f320.h: added. Contributed by Maarten Brock.
12667
12668 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12669
12670         * doc/sdccman.lyx: added details about the HC08 storage classes and
12671         interrupts, fixed the register usage info for z80 & gbz80
12672
12673 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
12674
12675         * doc/sdccman.lyx: added more pic16 port documentation
12676         * device/include/pic16/: added header pic18fregs.h
12677
12678 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
12679
12680         * doc/sdccman.lyx: added Vangelis' contribution
12681
12682 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12683
12684         * src/SDCClrange.c (rlivePoint): live range of SEND operand should
12685         extend to the next CALL or PCALL, not just to the next CALL.
12686
12687 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
12688
12689         * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
12690
12691 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12692
12693         * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
12694         bug #895752 and a better fix for bug #716790
12695
12696 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12697
12698         * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
12699
12700 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12701
12702         * doc/sdccman.lyx: minor changes, minor changed
12703
12704 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
12705
12706         * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
12707         which can't handle SDCC_NEWONEBYTEOPS,
12708         (geniCodeMultiply): removed conversion from mult to shift for pic14
12709         and pic16
12710
12711 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12712
12713         * src/hc08/gen.h,
12714         * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
12715         rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
12716         thus fixing bug #895406
12717
12718 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
12719
12720         * device/lib/_modsint.c,
12721         * device/lib/_modslong.c: sign follows divisor only
12722         * src/hc08/gen.c (genMultOneByte): if result size is 1,
12723         signs or signedness can be ignored
12724         * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
12725         * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
12726         added optimization for IFX,
12727         (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
12728         arguments;
12729         reenabled optimization for IFX, which was removed on 2004-01-11
12730         * src/SDCCast.h: added return type IFX
12731         * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
12732         arguments with 8 or 16 bit results; pic14 and pic16 ports use old
12733         promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
12734         SDCC_OLDONEBYTEOPS selects the old behaviour
12735         * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
12736         changed again and commented promotion rule
12737         * src/SDCCval.c (valDiv): promotion no longer necessary
12738         * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
12739         * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
12740         rewritten
12741         * support/regression/tests/onebyte.c: added
12742
12743 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
12744
12745         * gen.c (genInline): reverted to old code for assemnling inline
12746         code because of bug reported James Chadd
12747
12748 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
12749
12750         * ralloc.h: missing declarations from previous patch,
12751         seems that patch for ralloc.h was never applied, fixed
12752
12753 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
12754            patch committed by Vangelis Rokas <vrokas AT otenet.gr>
12755
12756         * pcode.c,
12757         * pcode.h,
12758         * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
12759         indirect addressing. Marked FSR0 as deprecated
12760         * gen.c (pointerCode): commented out, not needed now
12761         (pic16_popGet2p): new MOVFF helper function
12762         (genGenPointerGet),
12763         (genGenPointerSet): reimplemented with MOVFF and POSTINC0
12764         (shiftRLong): removed duplicate debugging info
12765
12766 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12767
12768         * src/ds390/gen.c (genNearPointerGet),
12769         * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
12770         optimization with bits, but not bitfields.
12771         * src/ds390/ralloc.c (packRegisters),
12772         * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
12773
12774 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
12775
12776         * src/SDCCcse.c (algebraicOpts): copy operands before modification
12777
12778 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12779
12780         * src/SDCCsymt.h,
12781         * src/SDCCicode.c (operandFromSymbol),
12782         * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
12783         * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
12784         * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
12785         * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
12786         * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
12787         * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
12788         bug #892038
12789         * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
12790         * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
12791         printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
12792         * src/SDCCsymt.c (newSymbol),
12793         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
12794         enumerator_list),
12795         * src/SDCCval.h,
12796         * src/SDCCval.c (newiList): fixed bug #885705
12797
12798 2004-02-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12799
12800         * doc/sdccman.lyx: added section 3.1.4: sdcclib.
12801         * as/mcs51/lkmem.c: report the size of the stack in .mem file.
12802
12803 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12804
12805         * device/include/c8051f120.h,
12806         * device/include/c8051f300.h,
12807         * device/include/c8051f310.h: added/updated header files for Silicon
12808         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
12809         * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
12810         in new section Submitting patches
12811
12812 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12813
12814         * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
12815         genFarPointerGet, genCodePointerGet, genGenPointerGet,
12816         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
12817         genGenPointerSet),
12818         * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
12819         genFarPointerGet, genCodePointerGet, genGenPointerGet,
12820         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
12821         genGenPointerSet),
12822         * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
12823         genFarPointerGet, genCodePointerGet, genGenPointerGet,
12824         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
12825         genGenPointerSet),
12826         * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
12827         genFarPointerGet, genCodePointerGet, genGenPointerGet,
12828         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
12829         genGenPointerSet): fixed bug #892400
12830         * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
12831         to eliminate build warnings.
12832         * src/SDCCast.c (processParms),
12833         * src/SDCC.y (function_declarator2, declarator2_function_attributes):
12834         fixed bug 751859
12835         * support/valdiag/valdiag.py: added GCC to the list of defines active
12836         when compiling with gcc
12837
12838 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12839
12840         * support/Util/SDCCerr.h,
12841         * support/Util/SDCCerr.c,
12842         * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
12843         with an incomplete type (fixed bug #883734)
12844         * src/SDCCicode.c (geniCodeCast): fixed bug #890510
12845
12846 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12847
12848         * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
12849
12850 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12851
12852         * src/SDCCast.c (decorateType),
12853         * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
12854         function pointer implementation
12855         * support/regression/tests/funptrs.c: added tests to verify both forms
12856         of function pointers work correctly. Added tests to verify parameters
12857         are passed in the correct order.
12858
12859 2004-02-06  Vangelis Rokas <vrokas AT otenet.gr>
12860
12861         * device.c (regCompare): registers are sorted by ascending
12862         address and increasing size,
12863         * main.c (_pic16_finaliseOptions): removed the declaration
12864         of compiler macro MCU. Now a macro of the format pic18fxxxx
12865         will be defined from the command line
12866
12867 2004-02-06  Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
12868             patch committed by Vangelis Rokas <vrokas AT otenet.gr>
12869
12870         * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
12871         PCOP_RLCF was overwritten!
12872         * gen.c (genSkip): commented out calls to pic16_emitcode,
12873         * (genCmpEQ): fixed "long" compares, only high word did get compared,
12874         * (genlshTwo),
12875         * (genRRC): added debugging info,
12876         * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
12877         overwritten while shifting,
12878         * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
12879         overwritten while shifting,
12880         * (AccLsh),
12881         * (AccRsh),
12882         * (shiftLLeftOrResult),
12883         * (shiftRLeftOrResult),
12884         * (shiftRLong),
12885         * (shiftLLong): Implemented with pic16_emitpcode
12886         * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
12887         * (genLeftShift): Fixed bug, operand for shift by variable always
12888         was "and"ed with 0x0f,
12889         * (genLeftShiftLiteral),
12890         * (genrshTwo),
12891         * (genRightShiftLiteral): added debugging info,
12892         * (genrshFour): added comment,
12893         * (genRightShift): determined signedness from operand "left"
12894         instead of "result"
12895
12896 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12897
12898         * src/SDCCicode.c (geniCodeParms),
12899         * src/SDCCast.c (decorateType, processParms): support for ANSI-style
12900         function pointers, fixed function pointer bugs #861242 and #861896
12901
12902 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12903
12904         * device/include/c8051f000.h,
12905         * device/include/c8051f120.h,
12906         * device/include/c8051f300.h: added header files for Silicon
12907         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
12908
12909 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
12910
12911         * src/SDCCast.c (processParams): added new type flow and restructured
12912         (gatherAutoInit): added new type flow
12913         (addCast): cosmetic changes
12914         (getLeftResultType): added new type flow for array indices, patch
12915         provided by Stas, see FR #877103
12916         (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
12917         array index patch by Stas
12918         * src/SDCCast.h: added prototype getResultTypeFromType()
12919         * src/SDCCval.h,
12920         * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
12921         * src/pic/glue.c (pic14emitStaticSeg),
12922         * src/pic16/glue.c (pic16emitStaticSeg),
12923         * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
12924         for initialization of symbols
12925         * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
12926         * support/Util/SDCCerr.h:
12927         * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
12928         * .version: bumped version number to 2.3.8
12929         * device/include/Makefile.in (install),
12930         * doc/Makefile (install): changed to 'rm `find ...`' construct to
12931         avoid warnings
12932
12933 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
12934
12935         * support/regression/tests/libmullong.c: fixed for 64 bit hosts
12936         Slade Rich fixed an optimization bug
12937         * src/pic/pcodepeep.c,
12938         * src/pic/pcoderegs.c
12939         * doc/Makefile (install): added test for directory
12940
12941 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12942
12943         * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
12944         * src/ds390/ralloc.c (getRegPtr, getRegGpr),
12945         * src/pic/ralloc.c (getRegPtr, getRegGpr),
12946         * src/pic16/ralloc.c (getRegPtr, getRegGpr),
12947         * src/z80/ralloc.c (getRegGpr): fixed bug #883361
12948         * as/mcs51/asexpr.c (term),
12949         * as/hc08/asexpr.c (term): fixed bug #887146
12950
12951 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12952
12953         * src/z80/gen.c (genMult): handle single byte result product
12954         * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
12955         DUMMY_READ_VOLATILE (fixed bug #886367)
12956
12957 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
12958
12959         * support/regression/tests/libmullong.c: fixed logic, on little endian
12960         hosts we ended without a mullong_wrapper()
12961
12962 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12963
12964         * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
12965         virus/worm forged address usage.
12966
12967 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
12968
12969         Fixed promotion, it should be done on AST level:
12970         * src/SDCCast.c (addCast): added promotion to int
12971         (decorateType): updated call to upCast()
12972         * src/SDCCicode.c (geniCodeLeftShift): removed call to
12973         usualUnaryConversions()
12974
12975 2004-01-26  Michael Hope  <michaelh AT juju.net.nz>
12976
12977         * support/regression/tests/literalop.c (mulWrapper): Added a
12978         wrapper to remove integer overflow warnings.
12979
12980         * support/regression/tests/float_trans.c: Made work on host.
12981
12982         * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
12983         location of sz80.
12984
12985         * support/regression/generate-cases.py (main): Changed from inline
12986         to a main method.
12987
12988         * doc/Makefile (install): Changed to depth first to get rid of
12989         missing directory install warning.
12990
12991         * as/Makefile (install-doc): Made work on Mac.
12992
12993 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
12994
12995         * src/SDCCast.c: added an additional type flow in decorateType() of
12996         opposite direction, see feature request #860006; it's enabled at runtime
12997         by setting the environment variable SDCC_NEWTYPEFLOW
12998         * src/SDCCast.h: changed prototype of decorateType()
12999         * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
13000         * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
13001         'char' to 'int' can be omitted, if both operands are 'unsigned char';
13002         see feature request #877103
13003         * src/SDCCval.c: updated call of decorateType()
13004         (valBitwise): fixed bug #882876
13005         (valMinus): added promotion
13006         (valLogicAndOr): result is unsigned
13007         (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
13008         * src/SDCCsymt.c (computeType),
13009         * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
13010         must not cause an unsigned operation
13011         * src/pic/glue (pic14emitRegularMap),
13012         * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
13013
13014 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
13015
13016         * src/pic/pcode.c (PCodeID): commented out left over debug code
13017
13018 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
13019
13020         * support/valdiag/tests/overflow.c: added shift tests
13021         * src/pic/device.c,
13022         * src/pic/gen.c,
13023         * src/pic/gen.h,
13024         * src/pic/glue.c,
13025         * src/pic/main.c,
13026         * src/pic/pcode.c,
13027         * src/pic/pcode.h,
13028         * src/pic/pcodepeep.c,
13029         * src/pic/pcoderegs.c,
13030         * src/pic/ralloc.c,
13031         * src/pic/ralloc.h: applied patch from Slade Rich;
13032         added support for multiple code pages and multiple RAM banks on the
13033         PIC 14 port. The ASM files now no longer simply assume all the
13034         code / RAM are in the same page / bank. This means the linker can
13035         safely allocate code/RAM of separate ASM files to different pages/banks.
13036         * doc/sdccman.lyx: added Slade's tips
13037         * src/mcs51/peeph.def: fixed bug #880768
13038
13039 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13040
13041         * src/hc08/ralloc.c (rematStr): fixed bug #879282
13042         * src/SDCCast.c (decorateType): fixed bug #880197
13043
13044 2004-01-20  Michael Hope  <michaelh AT juju.net.nz>
13045
13046         * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
13047         getopt.h.
13048
13049         * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
13050         strtof is not part of C89 and isn't included with Mac OS X.
13051
13052 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13053
13054         * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
13055         shiftL2Left2Result): fixed bug #879326
13056         (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
13057         (genMultOneByte): fixed bug in signed vs unsigned multiplication
13058         * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
13059         address fetch for clr instruction
13060         * device/lib/hc08/_mulint.c: created optimized assembly version
13061         * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
13062
13063 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
13064
13065         * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
13066         proposed in FR #877103
13067
13068 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
13069
13070         * src/SDCCval.c (cheapestVal): added missing checks
13071         * src/SDCCicode.c (usualBinaryConversions): fixed condition
13072         * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
13073
13074 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
13075
13076         * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
13077         equal operands
13078
13079 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
13080
13081         * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
13082         loaded with the linker search paths (-L arguments) and the libraries
13083         to be linked with the current source (-l arguments). Changes
13084         currently will affect only the pic16 port.
13085         * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
13086         include path the port specific paths and port specific libraries,
13087         * gplink command now contains the $3 argument,
13088         * src/pic16/device.h,
13089         * src/pic16/device.c,: structure PIC_device is made public and
13090         renamed to PIC16_device, the same for variable Pics which is renamed
13091         to Pics16. Updated all references to them.
13092         * src/pic16/glue.c (pic16glue): corrected bug with code
13093         initialization which bypassed the variable initializations block.
13094
13095         * device/lib/pic16/Makefile.rules: removed --penable-stack from
13096         COMPILE_FLAGS and added the --nostdinc option
13097
13098 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13099
13100         * device/include/mc68hc908jb8.h: Register defs for another member
13101         of the hc08 family. Contributed by Bjorn Bringert - thanks!
13102
13103 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
13104
13105         Documenting changes from previous commits.
13106         * configure.in (version 1.56),
13107         * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
13108         when generating output files to configure the pic16 library,
13109         but now I've commented it out, since gputils aren't installed in the
13110         SF compile farm, so library won't compile
13111
13112         * device/lib/Makefile.in (version 1.56): initially I've added in
13113         target 'all' the prerequestive 'model-pic16' so it compiled the
13114         pic16 library, but now I've commented it out for the same reasons
13115         above,
13116         * added targets 'model-pic16' and 'objects-pic16' to compile the
13117         library
13118         * added target 'port-specific-objects-pic16' to handle the
13119         generated libraries and copy them into the build/ directory
13120         * added target 'clean-intermediate-pic16' to clean intermediate
13121         files into pic16 directory
13122         * in target 'installdirs' added line to create directory pic16 in
13123         the installation path
13124
13125         * device/include/Makefile.in (version 1.11): in target 'install'
13126         added lines to copy all header files to installation path,
13127         * in target 'installdirs' added line create directory for pic16
13128         headers in the installation path
13129
13130 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
13131
13132         * src/ds390/gen.c (genCall): fixed a double use of acc and b after
13133          a function call
13134
13135 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
13136
13137         * configure,
13138         * device/lib/configure.in,
13139         * device/lib/configure: fixed for autoconf 2.57
13140
13141 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13142
13143         * src/z80/main.c (_parseOptions): fixed the portmode= command line
13144         option so that it actually works. Made it specific to the z80, since
13145         the gbz80 doesn't have these kinds of I/O ports.
13146
13147 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13148
13149         * device/include/z180.h,
13150         * device/lib/_memcpy.c,
13151         * device/lib/_memmove.c,
13152         * device/lib/_mulint.c,
13153         * device/lib/ser_ir.c,
13154         * device/lib/ser_ir_cts_rts.c,
13155         * device/lib/_strcmp.c,
13156         * device/lib/_strtok.c: fixed pragmas to non-deprecated form
13157         * src/z80/main.c (_process_pragma): add support for pragmas bank and
13158         portmode; added deprecation warning for bank= and protmode= forms.
13159         Also, guard against buffer overflow.
13160         * src/z80/gen.c (aopGet): generate better code for sfr banked read
13161
13162 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13163
13164         * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
13165         changed interrupt vector table generation to only emit declared vectors.
13166         * device/include/Makefile.in: added missing backslash
13167         * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
13168
13169 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
13170
13171         Mainly changes to support compilation of the device libraries
13172         * src/pic16/device.c: stack is allocated via symbol and not
13173         via literal number. The symbol is placed in the corresponding
13174         position of the data ram
13175         * (pic16_dump_section): relocatable and absolute uninitialized
13176         data are now emitted in sorted order to reduce section naming,
13177         * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
13178         weren't marked as being in the access bank,
13179
13180 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
13181
13182         Added portion of GNU PIC Library under the directory
13183         device/include/pic16 and device/lib/pic16. These files
13184         contain the declarations of SFRs for the PIC18Fxx2 devices.
13185         The directory is initialized via configure from toplevel.
13186
13187 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
13188
13189         * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
13190         the spilllocations to be compared correctly
13191
13192 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
13193
13194         * src/SDCCast.c (decorateType): fixed bug introduced today
13195
13196 2004-01-12  Borut Razem <borut.razem AT siol.net>
13197
13198         * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
13199         doc/sdccman.lyx: upper case pragmas are deprecated
13200
13201 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
13202
13203         * src/SDCCast.c (decorateType): replacing 'ul > 0' by  '!ul' results
13204         in simpler and even better code
13205
13206 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
13207
13208         * src/SDCCicode.c (operandOperation): fixed bug #874819
13209         * src/SDCCast.c (decorateType): fixed
13210         char foo (unsigned long ul) { return ul > 0; }
13211
13212 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13213
13214         * doc/sdccman.lyx: Moved and added some sections, small changes
13215         all over. Telling LaTeX to be less strict with word spacing
13216         to better keep the right margin. Changed some notes about
13217         maintainance of the ports in section 3.2.1 - is it OK like this?
13218
13219 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
13220
13221         SDCC source changes:
13222         * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
13223         convilong): modified to inform the pic16 port that builtin functions
13224         are external
13225
13226         PIC16 PORT specific changes:
13227         * src/pic16/device.c pic16_dump_equates() added,
13228         processor registers declared internally by the port are emitted in
13229         the translation as equates,
13230         * src/pic16/gen.c: inline code is passed unprocessed to the
13231         translation,
13232         * (pic16_popGetLit2): fnuction modified to take second operand as
13233         pCodeOp pointer and not as literal,
13234         * (popRegFromIdx): prefixed with pic16_,
13235         * (pic16_popCombine2): modified to receive already allocated pCode
13236         operands,
13237         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
13238         * (genFunction): initializes local stack frame and pushes on stack
13239         all the registers used by this function,
13240         * (genEndFunction): restores all registers from stack and restores
13241         stack frame,
13242         * src/pic16/glue.c (pic16emitRegularMap): various changes and
13243         improvements,
13244         * (pic16glue): changed the program startup sequence,
13245         * added new dbName code 'A' for functions placed in absolute section
13246         * src/pic16/main.c: added function attribute _naked,
13247         * added pragma 'code' to place a fnuction at an absolute address,
13248         * added command line arguments --debug-ralloc and --pcode-verbose,
13249         * (_pic16_finiliseOptions): options.all_callee_saves is set by default
13250         * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
13251         * (pic16_newpCodeOpLit2): modified to take the second operand as
13252         pCodeOp pointer,
13253         * (pic16_printpBlock): modified to emit each function in a separate
13254         section,
13255         * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
13256         UPPER for immediate operands,
13257         * src/pic16/pcodepeeph.c: added peephole support for the LFSR
13258         instruction,
13259         * src/pic16/peeph.def: all peepholes with movff are commented out,
13260         because there is a problem in the pcode peep optimizer,
13261         * src/pic16/ralloc.c: the register allocator can now reuse local
13262         function symbols for another function. This saves register usage.
13263         * src/pic16/ralloc.h: added flag isLocal in structure regs,
13264
13265         Added file src/pic16/NOTES with information about program writing on
13266         the current port version.
13267
13268 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13269
13270         * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
13271         and peephole 252 (array access)
13272
13273 2004-01-09  Borut Razem <borut.razem AT siol.net>
13274
13275         * src/SDCCmain.c : fixed #872250: -l command line defined library
13276           files are scanned before standard library files
13277
13278 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13279
13280         * src/SDCCast.c (decorateType): fixed bug #874046
13281
13282 2004-01-09  Borut Razem <borut.razem AT siol.net>
13283
13284         * support/scripts/sdcc.nsi: remove previous installation
13285
13286 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13287
13288         * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
13289         bytes for last interrupt vector (mcs51)
13290         * sdcc.spec: fixed typo
13291
13292 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13293
13294         * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
13295         gen51Code): more efficient parameter receive for --model-large
13296         ("bug" #845294)
13297
13298 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13299
13300         * src/ds390/main.c,
13301         * src/z80/main.c: added missed needLinkerScript flags (more than
13302         one port structure defined in these file)
13303         * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
13304         bug #795325
13305
13306 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
13307
13308         * src/SDCCmain.c: removed various references to DEFAULT_PORT
13309         * src/port.h: added flag needLinkerScript in port->linker
13310         structure to inform whether to create a .lnk file or not,
13311         * src/avr/main.c,
13312         * src/ds390/main.c,
13313         * src/hc08/main.c,
13314         * src/mcs51/main.c,
13315         * src/pic/main.c,
13316         * src/pic16/main.c,
13317         * src/xa51/main.c,
13318         * src/z80/main.c: changed appropriately to configure
13319         needLinkerScript flag
13320         * src/pic/gen.c,
13321         * src/pic16/gen.c (genAddrOf): fixed bug #863624
13322         * src/pic/glue.c: added variable udata_section_name to
13323         override default uninitialized data segment definition for
13324         devices only with SHAREBANK memory (reported from Erik Epetrich)
13325         * (pic14emitOverlay): modified to emit a commented overlay segment
13326         directive when no overlay data exist
13327         * (picglue): modified to emit uninitialized data segment
13328         according to udata_section_name
13329         * src/pic/main.c (_pic14_parseOptions): added command line
13330         options --udata-section-name=[name] to override default
13331         udata definition name
13332         * modified _linkCmd and _asmCmd to include compiler passed
13333         arguments via -W option
13334         * src/pic16/main.c: added $l in _asmCmd, changed extension for
13335         object file from '.rel' to '.o' in port->linker structure,
13336         changed size of fptr from 2 to 3 in port structure
13337
13338 2004-01-07  Borut Razem <borut.razem AT siol.net>
13339
13340         * support/scripts/sdcc.nsi: update PATH
13341         * support/scripts/sdcc.ico: craeted
13342
13343 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
13344
13345         * device/include/Makefile.in: fix install
13346         * doc/Makefile: fix install
13347
13348 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13349
13350         * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
13351         in bug #860505
13352         * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
13353         how the function variable allocation summary is displayed; also
13354         include information about variables allocated to the overlay
13355         segment
13356
13357 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13358
13359         * as/mcs51/lkmain.c: Help about -Y option
13360         * as/mcs51/lkarea.c: Fixed gcc warnings
13361
13362 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
13363
13364         * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
13365         fixed warning
13366         * support/valdiag/tests/overflow.c: added
13367         * src/SDCCast.c (decorateType),
13368         * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
13369         LEFT_OP (left shift)
13370
13371 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13372
13373         * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
13374         (default behaviour).
13375
13376 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13377
13378         A python script to validate compiler diagnostic messages. It can be
13379         used to verify that sdcc complains about bad c source code and
13380         gives a good location of the error.
13381         * support/valdiag/Makefile,
13382         * support/valdiag/valdiag.py,
13383         * support/valdiag/tests/*
13384
13385 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13386
13387         * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
13388         * src/SDCCsymt.c (newEnumType),
13389         * src/SDCCsymt.h
13390         * support/Util/SDCCerr.c,
13391         * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
13392         enum related bugs.
13393         * support/regression/tests/enum.c: added test for enum values that
13394         require at least 2 bytes of storage.
13395
13396 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
13397
13398         * src/common.h: added ifndef/define/endif macros
13399         around the header file.
13400         Bug reported from Jesus Calvino-Fraga
13401
13402 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
13403
13404         * sdcc.spec: updated
13405         * device/include/Makefile.in: don't install CVS directories
13406         * device/lib/Makefile.in: added removal of CVS directories after install
13407         * doc/Makefile: fixed install, added local_icons
13408         * sim/ucsim/gui.src/Makefile.in: fixed an old typo
13409         * src/mcs51/gen.c (genRightShift): fixed bug #870788
13410         * src/ds390/gen.c (genRightShift): fixed bug #870788
13411         * src/SDCCast.c (decorateType): fixed bug #870781
13412
13413 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
13414
13415         PIC16 port related changes:
13416         * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
13417         added variable stackPos,
13418
13419         * gen.c: genCall, assignResultValue: added support for
13420         pushing/retrieving function parameters to/from stack,
13421         genFunction,genEndFunction: setup stack frame for the
13422         generated function,
13423         genAddrOf: will be changed according to bug 863624
13424
13425         * added files genutils.c and genutils.h which contain gen*
13426         debugged and optimised functions extracted from gen.c
13427
13428         * glue.c: added variable 'externs' which holds extern symbols,
13429         pic16emitRegularMap: is modified to properly handle relocatable
13430          symbols under the new scheme,
13431         pic16createInterruptVect: is modified
13432         pic16printPublics: is modified to emit 'global' assembler directives,
13433         added pic16_printExterns to print extern symbols,
13434         pic16glue: initializes stack/frame pointer in the beginning of
13435         the assembly output. Temporary hack, will be corrected later,
13436         because gplink yet does not support stack and SDCC does not
13437         yet support a type of crt0.o object to create the final binary.
13438
13439         * Removed many lines that contain 8051 legacy code.
13440         * The code is finally placed under a 'code' directive.
13441         * Added port specific options.
13442
13443         * _process_pragma: simplified since now we do not need *special*
13444         include file to define SFR registers. But a separate header
13445         will be needed. This will be developed later.
13446         * _pic16_parseOptions: added, parses port specific options:
13447         --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
13448         --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
13449         --preplace-udata-with=
13450
13451         * _pic16_setDefaultOptions: modified to initialize section names,
13452         but hack is temporarly out of order since it needs improvement.
13453         * _pic16_genAssemblerPreamble: configuration words are emitted by
13454         their address instead of their name. This part is incomplete and
13455         supports only the 18Fxx2 devices. Other devices will emit an error
13456         during assembly since they do not contain the same set of config
13457         registers
13458         * _pic16_genIVT: is modified,
13459
13460         * pcode.c: added definitions for some hardware registers that are needed
13461         for stack support
13462         * added flag is2LitOp and variable pci_magic in pCodeInstruction.
13463         All PCI entries are updated. Now LFSR is supported.
13464         * Removed pic16_pciTRIS is mentioned by mdubuc in source
13465         * added pic16_newpCodeOpLit2 to support instructions with
13466         two literal arguments
13467         * pic16_pCode2str: corrected code that emits assembler instructions
13468         with two literal operands and those that have an access bit modifier
13469         * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
13470         this fixes a bug which caused some labels to be lost, when an
13471         assembler directive was added, i.e. banksel,
13472         * pic16_FixRegisterBanking: improved logic that causes the insertion
13473         of bank switching,
13474         * InlineFunction: functions that are called once, are not any more
13475         inlined. This can be a port option in the future,
13476
13477         * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
13478
13479         * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
13480         hold the corresponding uninitialized symbols,
13481         * pic16_allocProcessorRegister: registers have explicit marked the
13482         accessBank field,
13483         * pic16_allocInternalRegister: registers are explicit marked as
13484         not used,
13485         * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
13486         processing list, so bit registers were lost,
13487         *
13488
13489         * ralloc.h: added field 'accessBank' and original symbol operand
13490         in register definition,
13491         * removed the field isMapped from register definition,
13492
13493         ** Several functions have been removed from various sources:
13494         BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
13495         pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
13496         isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
13497         pic16_assignRelocatableRegisters
13498
13499         ** others have been introduced:
13500         pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
13501         pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
13502
13503 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
13504
13505         * support/scripts/inc2h.pl: changed definition of BIT_AT
13506         to emit 'sbit at' instead of 'bit at'. This was a request.
13507
13508         PIC16 port related preliminary changes:
13509         * gen.c: prefixed function popRegFromString with
13510         pic16_ and all references to it corrected
13511         * pcode.c: all pic16_pc_* hardware registers prefixed
13512         with underscore (_),
13513         pic16_popCopyGPR2Bit(): function sets register wasUsed=1
13514         * ralloc.c: newReg(): when register is REG_SFR then
13515         set address to rIdx,
13516         pic16_allocProcessorRegister(): marks register wasUsed=0
13517         pic16_writeUsedRegs(): added a call to assign processor
13518         registers via pic16_assignFixedRegisters
13519
13520 2004-01-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13521
13522         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
13523         as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
13524         variables in unused register banks.  Also the SSEG is placed
13525         wherever there is enough space for it, and IDATA can be anywhere
13526         in internal RAM.  For now compile using -Wl-Y[stack_size].
13527         The mem file is different for this option as well, since it
13528         makes no sense of talking about DSEG lenght.
13529
13530 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
13531
13532         * src/SDCClrange.c: fixed bug 869095 that caused segfault
13533         in certain cases, e.g. when ROM assignment, patch provided
13534         from Albert den Haan.
13535
13536 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
13537
13538         Many signedness and type propagation fixes:
13539         * src/SDCCicode.c: made geniCodeCast() static
13540         replaced SPEC_ by IS_ (cosmetic)
13541         (operandOperation): fixed div and mod operation
13542         (usualBinaryConversions): added support for promotion of char
13543         (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
13544         (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
13545         (geniCodeAdd): an array index will stay unsigned, even if promoted
13546         from char to int
13547         (geniCodeArray): ditto
13548         * src/SDCCicode.h: made geniCodeCast() static: removed prototype
13549         * src/SDCCsymt.c (computeType): added more support for char;
13550         promotion of char is selectable by promoteCharToInt, fixed signedness
13551         for all cases
13552         (powof2): replaced (unsigned long) by (TYPE_UDWORD)
13553         * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
13554         * src/SDCCval (val*): replaced signedness calculation by
13555         computeType()
13556         rearranged if-branches (cosmetic)
13557         (valShift): added warning W_SHIFT_CHANGED
13558         (valCompare): fixed problem with different types
13559         * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
13560         * support/regression/tests/literalop.c: added many cases
13561         * support/regression/tests/ast_constant_folding.c: changed finally to
13562         'unsigned int'
13563         * .version: new year, new version: 2.3.7
13564         * src/SDCCmain.c (main): applied patch #866468
13565         * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
13566         provided by Scott Bronson
13567         * doc/sdccman.lyx: updated documentation for sdcdb
13568         updated and added chapter tips
13569
13570 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13571
13572         * src/SDCCsymt.h: missing from yesterday's commits
13573
13574 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13575
13576         * src/SDCC.y (struct_or_union_specifier),
13577         * support/Util/SDCCerr.c,
13578         * support/Util/SDCCerr.h: verify that struct & union tags are used
13579         as declared.
13580
13581 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13582
13583         * src/SDCCglobl.h: missing from yesterday's commits
13584
13585 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13586
13587         * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
13588         sft_attributes, struct_declaration, parameter_declaration,
13589         type_name, start_block, declaration_list),
13590         * src/SDCC.lex (check_type): support redefinition of typedef names
13591
13592 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13593
13594         * src/mcs51/gen.c (genPlus): added special handling for 256 byte
13595         aligned xdata arrays. Erik helped me with the if clause.
13596
13597 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13598
13599         * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
13600         warning
13601
13602 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13603
13604         * src/SDCCast.h,
13605         * src/SDCCast.c (newAst_),
13606         * src/SDCCicode.h,
13607         * src/SDCCicode.c (ast2iCode, newiCode),
13608         * src/SDCCglobl.h,
13609         * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
13610         expr, statement, expression_statement, selection_statement,
13611         iteration_statement, expr_opt, jump_statement): foundation for tracking
13612         sequence points
13613         * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
13614         point code too)
13615
13616 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13617
13618         * support/Util/SDCCerr.c,
13619         * src/SDCCast.h,
13620         * src/SDCCast.c (createCase, createDefault, decorateType),
13621         * src/SDCClabel.c (labelUnreach),
13622         * src/SDCC.y (labeled_statement, jump_statement): More improvements
13623         to error messages.
13624         * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
13625         (with thanks to Stas Sergeev)
13626         * device/include/time.h,
13627         * device/lib/time.c (CheckTime): suppress unreachable code warning
13628
13629 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13630
13631         * src/SDCCast.c (createIvalCharPtr),
13632         * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
13633         bug #753752)
13634         * support/regression/tests/nullstring.c: tests for these two bugs
13635
13636 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13637
13638         * support/Util/SDCCerr.h,
13639         * support/Util/SDCCerr.c (E_NOT_ALLOWED),
13640         * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
13641         about storage class and 'at' used inside struct or union
13642         * src/SDCCBBlock.c (iCodeFromeBBlock),
13643         * src/SDCCcse.c (ifxOptimize),
13644         * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
13645         printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
13646         printIval, emitStaticSeg, emitOverlay),
13647         * src/SDCClabel.c (deleteIfx),
13648         * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
13649         * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
13650         gatherAutoInit, processParms),
13651         * support/Util/SDCCerr.h,
13652         * support/Util/SDCCerr.c (werrorfl): Support for better error location
13653         reporting for post-parse errors.
13654
13655 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13656
13657         * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
13658         implicit casts via union; they don't work on big endian systems
13659         (possible fix for bug #861138)
13660
13661 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13662
13663         (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
13664         * src/mcs51/main.c: fixed the fix for bug #737001
13665
13666 2003-12-15  Borut Razem <borut.razem AT siol.net>
13667
13668         * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
13669
13670 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13671
13672         * support/makebin/makebin.c: put output in binary mode
13673
13674 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13675
13676         * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
13677         xdata and data memory on startup. Set the environment variable
13678         SDCC_NOGENRAMCLEAR to disable this.
13679         * src/mcs51/peephole.def,
13680         * src/ds390/peephole.def: using the atomic test and clear instruction jbc
13681         (allows non-interrupt and interrupt code to safely compete for a resource
13682         without the non-interrupt code having to disable interrupts)
13683
13684 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13685
13686         * src/SDCCicode.c (geniCodeAdd),
13687         * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
13688         with valFromType if type might be a pointer and host is big endian).
13689         * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
13690         types, not just integer types.
13691         * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
13692         multiply defined with mismatching "at" address.
13693
13694 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13695
13696         * src/ds390/main.c (PORT tininative_port): fixed bug #858416
13697         * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
13698         * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
13699         with embedded nulls (fixed bug #753752)
13700
13701 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13702
13703         * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
13704         Apparently this did not see much testing (endless loop)
13705
13706 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13707
13708         * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
13709
13710 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13711
13712         * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
13713         gracefully handle NULL memmap pointers
13714
13715 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13716
13717         * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
13718         instead of deleting the iCode when an operand is volatile
13719         * src/z80/gen.c (genDummyRead),
13720         * src/mcs51/gen.c (genDummyRead),
13721         * src/ds390/gen.c (genDummyRead),
13722         * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
13723         not just IC_RIGHT
13724         * src/SDCCicode.c (geniCodeCall): fixed bug #851607
13725         * src/SDCC.y: fixed bug #850420
13726
13727 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13728
13729         Applied z80 i/o port patch from Peter Townson and fixed some operators
13730         to better handle operands in A register.
13731         * device/include/z180.h
13732         * src/SDCC.y
13733         * src/SDCCglue.c
13734         * src/z80/gen.c
13735         * src/z80/gen.h
13736         * src/z80/main.c
13737         * src/z80/peeph-z80.def
13738         * src/z80/peeph.def
13739         * src/z80/z80.h
13740
13741 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13742
13743         * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
13744
13745 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13746
13747         * device/lib/hc08/_mullong.c: Removed extra #endif
13748
13749 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13750
13751         * sim/ucsim/hc08.src/inst.cc,
13752         * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
13753         carries from x to h
13754         * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
13755         * src/hc08/gen.c (XAccRsh): fixed problem with right shift
13756         * device/include/stdarg.h: fixed varargs for hc08
13757         * device/lib/Makefile.in,
13758         * device/lib/hc08/Makefile,
13759         * device/lib/hc08/_mulint.c,
13760         * device/lib/hc08/_mullong.c: fixed some endian problems
13761
13762 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13763
13764         * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
13765         * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
13766         * device/lib/_gptrget.c,
13767         * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
13768
13769 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13770
13771         * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
13772         * src/SDCCast.c (astErrors): fixed bug #846007
13773         * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
13774
13775 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13776
13777         * src/SDCCast.c (decorateType): disabled a transformation I added in
13778         revision 1.188 (access to fields of a structure at an absolute address);
13779         it breaks with bitfields, extern declarations, and gcse analysis.
13780         * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
13781         could be assigned through a pointer, so don't complain.
13782         * src/SDCCast.c (astErrors),
13783         * src/SDCCast.h,
13784         * src/SDCCglue.c (emitRegularMap): fixed bug #847813
13785
13786 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
13787
13788         * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
13789         * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
13790         output of __config directives, since gpasm now supports them
13791         * src/pic16/main.c (_pic16_finaliseOptions): define MCU
13792         pre-processor macro, i.e. -DMCU=p18f452
13793         * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
13794         and modified to handle 'cast' icode similarly to '=' icode
13795         * src/pic16/device.h (typedef struct PIC_device): added field
13796         'extMIface' to indicate that chip has external memory interface
13797         * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
13798         18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
13799         18F8720
13800
13801 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13802
13803         * src/SDCC.y (pointer): fixed bug #846006
13804         * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
13805         * src/SDCCast.c (decorateType): fixed bug #846009
13806         * src/ds390/peeph.def,
13807         * src/ds390/gen.c (genAnd, genOr),
13808         * src/mcs51/peeph.def,
13809         * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
13810
13811 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13812
13813         Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
13814         * src/SDCCdflow.c
13815         * src/SDCCcse.c
13816         * src/SDCCcse.h
13817         * src/SDCCBBlock.h
13818         * src/SDCCBBlock.c
13819
13820 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
13821
13822         fixed bug #845089
13823         * src/SDCCbitv.h,
13824         * src/SDCCbitv.c: added function to free a bitvector
13825         * src/SDCClrange.h,
13826         * src/SDCClrange.c: added function to recompute the liveranges
13827         * src/avr/ralloc.c,
13828         * src/ds390/ralloc.c,
13829         * src/hc08/ralloc.c,
13830         * src/mcs51/ralloc.c,
13831         * src/pic/ralloc.c,
13832         * src/pic16/ralloc.c,
13833         * src/xa51/ralloc.c,
13834         * src/z80/ralloc.c: recompute the liveranges after register packing
13835
13836 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
13837
13838         * src/SDCCloop.c (newInduction): fixed bug #845630
13839
13840 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13841
13842         * src/SDCCsymt.c (compareTypesExact): disabled debugging output
13843         inadvertantly left behind from my 2003-11-12 change
13844
13845 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13846
13847         Updated headers I neglected to commit yesterday.
13848         * src/SDCClrange.h,
13849         * src/SDCCicode.h
13850
13851 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13852
13853         * src/SDCCcse.c (algebraicOpts): fixed bug #773153
13854         * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
13855         * src/SDCCopt.c (eBBlockFromiCode),
13856         * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
13857         the creation of the key hash table from the sequencing so it can be used
13858         earlier (for some GCSE bug fixes still pending)
13859
13860 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13861
13862         * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
13863         * support/regression/tests/addsub.c: testing genPlus shortcut
13864
13865 2003-11-15  Borut Razem <borut.razem AT siol.net>
13866
13867         * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
13868
13869 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13870
13871         * src/SDCCcse.c (cseBBlock): fixed bug #527779
13872         * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
13873         ordering is immaterial.
13874         * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
13875
13876 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13877
13878         * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
13879         * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
13880         (SIGSEV) of bug #840381
13881         * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
13882         unlink new file before rename if new and old filenames are the same)
13883
13884 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13885
13886         * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
13887         uninitialized variables) for the mcs51. Set environment variable
13888         SDCC_GENRAMCLEAR to test.
13889         xdata initialization slightly shorter
13890
13891 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13892
13893         * src/SDCCsymt.h,
13894         * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
13895         #838241 & 780691 (basicly the same bug)
13896         * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
13897         * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
13898
13899 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
13900
13901         * src/SDCCmain.c (linkEdit): "fix" #834252
13902
13903 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13904
13905         * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
13906         * src/SDCCast.h,
13907         * src/SDCC.y: fixed bug #819403
13908
13909 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13910
13911         * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
13912         the reentrant attribute.
13913         * src/hc08/gen.c (genPackBits): added missing stack readjustment
13914         * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
13915         simulation
13916         * src/SDCCast.c (decorateType): fixed bug with storage class not being
13917         updated during pointer dereference; f.e. ~(((char *)1)*) was being
13918         erroneously reduced to a literal.
13919         * src/hc08/ralloc.c (packRegisters, rematStr),
13920         * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
13921         some cases
13922
13923 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13924
13925         * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
13926         * doc/sdccman.lyx: changed from 'article' to 'book'
13927         * doc/Makefile: readded test_suite_spec and cdbfileformat
13928
13929 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
13930
13931         * device/include/stdlib.h: include malloc.h to comply with ANSI
13932         * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
13933
13934 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13935
13936         * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
13937         * doc/clean.mk: also remove *.out files
13938         * doc/sdccman.lyx: some additions, larger top/bottom margins
13939
13940 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13941
13942         * src/SDCC.y: fixed bug #837365
13943         * support/regression/tests/bitopcse.c
13944         * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
13945         a symbol (might be valop instead)
13946         * device/lib/Makefile.in: added errno.c to HC08SOURCES
13947         * device/lib/clean.mk: added hc08 to the cleaning list
13948
13949 2003-11-04  Borut Razem <borut.razem AT siol.net>
13950
13951         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
13952           made 2003-11-04
13953         * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
13954           as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
13955           malloc is declared in standard stdlib.h
13956
13957 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13958
13959         * device/lib/hc08/Makefile: need to clean .rel not .o files
13960         * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
13961
13962 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13963
13964         * src/port.h,
13965         * src/hc08/main.c,
13966         * src/mcs51/main.c,
13967         * src/ds390/main.c,
13968         * src/z80/main.c,
13969         * src/avr/main.c,
13970         * src/pic/main.c,
13971         * src/pic16/main.c,
13972         * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
13973         * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
13974         tests (which uses the port's oclsExpense function)
13975         * src/SDCC.y,
13976         * src/SDCCast.c,
13977         * src/SDCCicode.c,
13978         * src/hc08/gen.c,
13979         * src/ds390/gen.c,
13980         * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
13981
13982 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13983
13984         * src/SDCCcse.c (ifxOptimize),
13985         * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
13986         an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
13987         deleting the IFX iCode.
13988         * src/hc08/ralloc.c: reduced unneeded slocs
13989         * src/hc08/gen.c: fixed bug in asmopToBoolean
13990
13991 2003-11-04  Borut Razem <borut.razem AT siol.net>
13992
13993         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
13994           support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
13995           as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
13996           transferred to configure
13997
13998 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
13999
14000         Use headers defined in the C[++] standards:
14001         * sim/ucsim/gui.src/serio.src/fileio.cc
14002         * sim/ucsim/gui.src/serio.src/frontend.cc
14003         * sim/ucsim/gui.src/serio.src/main.cc
14004         * sim/ucsim/gui.src/serio.src/posix_signal.cc
14005         * support/Util/NewAlloc.c
14006         * as/hc08/lklibr.c
14007         * as/mcs51/lklibr.c
14008         * as/z80/aslist.c
14009         * as/z80/assym.c
14010
14011 2003-11-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14012
14013         * Added MSVC projects for hc08 assembler and linker:
14014         all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
14015         /as/hc08/link_hc08.dsp
14016
14017 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
14018
14019         * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
14020
14021 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
14022
14023         * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
14024
14025 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14026
14027         * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
14028
14029 2003-10-31  Borut Razem <borut.razem AT siol.net>
14030
14031         * support/cpp2/cpplib.h,
14032           support/cpp2/cpplib.c,
14033           support/cpp2/cpplex.c,
14034           support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
14035           to switch _asm block preprocessing on / off. Default is
14036           #pragma preproc_asm +
14037
14038 2003-10-31  Borut Razem <borut.razem AT siol.net>
14039
14040         * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
14041           when outputting comment blocks (when executed with -C option) and
14042           _asm (SDCPP specific) blocks
14043
14044 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14045
14046         * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
14047
14048 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
14049
14050         * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
14051
14052 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
14053
14054         * src/SDCCmain.c (linkEdit): "fixed" bug #833605
14055         * src/SDCCast.c (decorateType): fixed bug #832664
14056
14057 2003-10-31  Borut Razem <borut.razem AT siol.net>
14058
14059         * support/cpp2/cpplex.c: fixed for SDCPP:
14060           comments(when executed with -C option) and _asm blocks
14061           were included even if they where in skipped #if block.
14062           Applied solution from GCC cpp 3.3.2
14063
14064 2003-10-31  Borut Razem <borut.razem AT siol.net>
14065
14066         * src/SDCC.lex: sdcc now understands both formats:
14067           '# <line_number> <file_name>' and
14068           '#line <line_number> <file_name>'
14069         * support/cpp2/cppmain.c: sdcpp now generates the standard
14070           '# <line_number> <file_name>' instead of former
14071           '#line <line_number> <file_name>'
14072
14073 2003-10-30  Borut Razem <borut.razem AT siol.net>
14074
14075         * support/cpp2/cpphash.h,
14076         * support/cpp2/cpplib.h
14077         * support/cpp2/cpplex.c,
14078         * support/cpp2/cppmain.c,
14079         * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
14080
14081 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14082
14083         Fixed a number of problems revealed by bug #827883.
14084         * src/SDCCloop.c (loopInvariants): Spill location of the
14085         result operand should be recomputed if extracted from
14086         a loop. Also, don't extract assignments of an iTemp
14087         from a literal.
14088         * src/SDCCast.c (isConformingBody): loop reversal should
14089         not occur if the control variable is involved with a
14090         relational operator.
14091
14092 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
14093
14094         * .version: bumped to 2.3.6 to reflect the big improvements
14095         made by Erik and Klaus. Thanks!
14096
14097 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
14098
14099         Replaced the livrange code.
14100         * src/SDCClrange.c: added new LR code
14101         * src/SDCCloop.c,
14102         * src/SDCCBBlock.h: removed remainig parts from old LR code
14103         * src/ds390/ralloc.c,
14104         * src/ds390/gen.c: minor fixes to make it work with new code
14105
14106 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14107
14108         * as/hc08/asm.h,
14109         * as/hc08/lkrloc.c,
14110         * src/hc08/gen.c,
14111         * src/hc08/ralloc.c: Fix various warnings related to the hc08
14112         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
14113         (tweaked fix for bug #818696)
14114
14115 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14116
14117         * src/z80/ralloc.c (joinPushes): Fixed bug #828742
14118
14119 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14120
14121         * src/SDCCmain.c,
14122         * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
14123         * src/mcs51/gen.c (gencjneshort),
14124         * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
14125         more efficient (per Scott Bronson's suggestion)
14126
14127 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14128
14129         Extended the semantics of the critical keyword to include
14130         individual statements. See RFE #827755 and #799831
14131         * src/SDCC.y
14132         * src/SDCCicode.c
14133         * src/SDCCopt.c
14134         * src/SDCCast.c
14135         * support/Util/SDCCerr.c
14136         * support/Util/SDCCerr.h
14137         * src/mcs51/gen.c
14138         * src/ds390/gen.c
14139         * src/hc08/gen.c
14140
14141 2003-10-19  Borut Razem <borut.razem AT siol.net>
14142
14143         * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
14144
14145 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14146
14147         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
14148         Fixed bug #818696
14149         * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
14150         and predecrement operand is displayed
14151
14152 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
14153
14154         * src/SDCCval.c (valMinus): fixed bug #826041
14155
14156 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14157
14158         Some hc08 related updates that I missed earlier
14159         * sim/ucsim/stypes.h
14160         * support/regression/ports/hc08/spec.mk
14161
14162 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14163
14164         New target "hc08" for the Motorola 68hc08 family of micros
14165
14166         * configure
14167         * configure.in
14168         * Makefile
14169         * src/hc08/*
14170         * src/SDCCmain.c
14171         * src/port.h
14172         * sim/ucsim/hc08.src/*
14173         * sim/ucsim/configure.in
14174         * src/ucsim/configure
14175         * sim/ucsim/packages_in.mk
14176         * as/hc08/*
14177         * as/Makefile
14178         * device/include/mc68hc908qy.h
14179         * device/lib/hc08/*
14180         * device/lib/Makefile.in
14181         * support/regression/ports/hc08/*
14182         * support/regression/Makefile
14183
14184 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14185
14186         * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
14187         regression test
14188         * src/ds390/gen.c (genCast): fixed bug #821957
14189
14190 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
14191
14192         * device/lib/logf.c: "fixed" overlay bug
14193         * support/regression/ports/host/spec.mk: added m library
14194         * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
14195         * support/regression/tests/float_trans: added (for Eric)
14196
14197 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
14198
14199         * src/mcs51/gen.c (genCpl): fixed bug
14200         http://sf.net/mailarchive/message.php?msg_id=6263915
14201
14202 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
14203
14204         * src/SDCCast.c (decorateType): added extended constant folding
14205         * src/SDCCsymt.c (computeType): cleanup
14206         * src/SDCCval.c (valShift): minor optimization
14207         * support/regression/tests/ast_constant_folding.c: added
14208
14209 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14210
14211         * src/SDCCmain.c: removed some unintended changes
14212
14213 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14214
14215         * src/SDCCmain.c (setParseWithComma): fixed bug #816685
14216         * src/z80/gen.c: fixed part of bug #817589
14217         * src/SDCCsymt.c (checkFunction): fixed bug #817895
14218
14219 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
14220
14221         Replaced cast (void **) with (void *) to avoid gcc 3 warning:
14222         * src/SDCCcflow.c
14223         * src/SDCCcse.c
14224         * src/SDCCdflow.c
14225         * src/SDCClabel.c
14226         * src/SDCClrange.c
14227         * src/SDCCmem.c
14228         * src/SDCCopt.c
14229         * src/SDCCpeeph.c
14230         * src/SDCCset.c
14231         * src/avr/ralloc.c
14232         * src/ds390/ralloc.c
14233         * src/izt/ralloc.c
14234         * src/mcs51/ralloc.c
14235         * src/pic/ralloc.c
14236         * src/pic16/ralloc.c
14237         * src/xa51/ralloc.c
14238         * src/z80/ralloc.c
14239         * src/z80/gen.c: removed unused label "release:"
14240
14241 2003-10-06  Borut Razem <borut.razem AT siol.net>
14242
14243         * src/SDCC.lex: removed definition of unused variables
14244           save_optimize and save_options
14245
14246 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
14247
14248         * clean.mk: removed '=' in "-maxdepth=1"
14249         * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
14250         * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
14251
14252 2003-10-06  Borut Razem <borut.razem AT siol.net>
14253
14254         * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
14255           my_unput() replaced by unput()
14256
14257 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
14258
14259         * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
14260         setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
14261         type-punned pointer will break strict-aliasing rules"
14262         Old LR behaviour is again default; Klaus' LR can be choosen by
14263         defining the environment variable LRKLAUS
14264         * src/SDCCBBlock.h
14265         * src/SDCCloop.c
14266         * src/SDCClrange.c
14267         * src/ds390/ralloc.c (spillThis): applied Klaus' patch
14268         * clean.mk: fixed removal of files in bin/CVS/
14269         * device/lib/clean.mk: fixed removal of directories small and large
14270         * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
14271         * src/SDCCicode.c,
14272         * src/SDCCval.c: removed superflous test for pedantic
14273
14274 2003-10-05  Borut Razem <borut.razem AT siol.net>
14275
14276         * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
14277           Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
14278           message "unmatched #pragma SAVE and #pragma RESTORE"
14279
14280 2003-10-04  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14281
14282         * doc/sdccman.lyx: various additions and updates (interrupts, inline
14283           assembly, critical functions, atomic, nojtbound)
14284
14285 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
14286
14287         Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
14288         * src/SDCCBBlock.h
14289         * src/SDCCloop.c
14290         * src/SDCCloop.h
14291         * src/SDCClrange.c
14292
14293 2003-10-03  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14294
14295         * src/z80/gen.h,
14296         * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
14297         * src/mcs51/gen.h
14298         * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
14299         * src/ds390/gen.h
14300         * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
14301         * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
14302         * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
14303
14304 2003-10-02  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14305
14306         * src/z80/gen.c (genRet): fixed bug #524753
14307         * src/z80/gen.c (genCast): fixed internal error on cast from
14308         pointer to long
14309         * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
14310         fix for bug #477835 to the z80
14311         * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
14312         for tracking iCodes in the peephole optimizer for z80
14313
14314 2003-10-01  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14315
14316         * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
14317         the other part of bug #814548
14318         * src/SDCCpeeph.c (labelInRange): fixed bug #814558
14319
14320 2003-09-30  Bernhard Held <bernhard AT bernhardheld.de>
14321
14322         * src/SDCCcse.c: fixed part of bug #814548
14323
14324 2003-09-28  Borut Razem <borut.razem AT siol.net>
14325
14326         * src/asm.c: rewrite of printILine() to use temporary file instead
14327           a pipe
14328         * src/xa51/main.c: commented out declaration of int rewinds
14329
14330 2003-09-27  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14331
14332         * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
14333
14334 2003-09-26  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14335
14336         * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
14337         * src/asm.c (printILine): Fixed bug #811015
14338
14339 2003-09-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14340
14341         *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
14342         freeing.
14343
14344 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14345
14346         * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
14347         * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
14348         to correctly handle general case of AOP_PAIRPTR
14349         * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
14350
14351 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14352
14353         * src/mcs51/ralloc.c (fillGaps),
14354         * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
14355         register positioning bug)
14356
14357 2003-09-21  Bernhard Held <bernhard AT bernhardheld.de>
14358
14359         * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
14360
14361 2003-09-19  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14362
14363         * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
14364         genCodePointerGet, genGenPointerGet, genFarPointerSet,
14365         genGenPointerSet): handle AOP_DPTR correctly when loading dptr
14366         (ralloc doesn't intentionally do this now, but perhaps later)
14367         * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
14368         * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
14369         register positioning bugs (Fixed bug #762602 and #795325)
14370         * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
14371         (Fixed bug #808779)
14372         * src/z80/gen.c: increased _vemit2's buffer[] to handle long
14373         lines that --i-code-in-asm generates
14374
14375 2003-09-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14376
14377         *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
14378         trying to fclose a FILE* that was already closed.
14379
14380 2003-09-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14381
14382         * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
14383         of const struct should be treated as if const themselves)
14384
14385 2003-09-18  Bernhard Held <bernhard AT bernhardheld.de>
14386
14387         * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
14388
14389 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14390
14391         * support/librarian/sdcclib.c: Generate correct offsets for libraries with
14392         Unix (/n) and DOS (/r/n) line terminations.
14393
14394 2003-09-17  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14395
14396         * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
14397         bug #613775
14398
14399 2003-09-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14400
14401         * src/mcs51/gen.c (genFunction, genEndFunction),
14402         * src/ds390/gen.c (genFunction, genEndFunction): Moved save
14403         and restore of EA so that stack offsets to parameters are
14404         correct when using both critical and reentrant/stack-auto.
14405         * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
14406         size (can be triggered in error if sloc is shared between
14407         different sized objects)
14408         * device/include/float.h: fixed macros to explicitly use
14409         unsigned long where needed
14410
14411 2003-09-15  Bernhard Held <bernhard AT bernhardheld.de>
14412
14413         Feature req. 799831: added code to allow nesting of critical functions
14414         * src/mcs51/gen.c (genFunction, genEndFunction)
14415         * src/ds390/gen.c (genFunction, genEndFunction)
14416
14417 2003-09-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14418
14419         * src/SDCCsymt.c (sclsFromPtr),
14420         * src/SDCCsymt.h,
14421         * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
14422         support for standard C idiom of memory mapped variables; for
14423         example, *((xdata int*)0x1234) = 1 is now internally equivalent
14424         to xdata int at 0x1234 tempvar = 1.
14425         * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
14426         provided by Akiya ISHIDA
14427
14428 2003-09-13  Bernhard Held <bernhard AT bernhardheld.de>
14429
14430         * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
14431         * src/SDCCval.c (constVal): added reduction from int to char
14432         * src/SDCCval.c (valMult, valDiv): fixed sign handling
14433         * src/SDCCval.c (valShift): fixed after change of cheapestVal()
14434         * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
14435         to ignore the sign
14436         * support/regression/tests/shifts.c: fixed
14437
14438 2003-09-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14439
14440         * src/z80/gen.c (genXor): Fixed bug #805445
14441
14442 2003-09-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14443
14444         Fixed bug #621531 (const & volatile confusion in the type chain).
14445         DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
14446         refer to the const or volatile state of the pointer itself.
14447
14448         * src/SDCCast.c
14449         * src/SDCCglue.c
14450         * src/SDCCicode.c
14451         * src/SDCCsymt.c
14452         * src/SDCCval.c
14453         * src/SDCC.y
14454         * src/SDCCsymt.h
14455         * src/pic/gen.c
14456         * src/pic/ralloc.c
14457         * src/pic16/gen.c
14458         * src/pic16/ralloc.c
14459         * support/regression/tests/const.c
14460
14461 2003-09-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14462
14463         When checking for duplicated modules, use absolute paths
14464         instead of relative paths.  Files changed:
14465
14466         * as/mcs51/lklib.c
14467         * link/z80/lklib.c
14468
14469 2003-09-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14470
14471         * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
14472
14473 2003-09-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14474
14475         * device/include/string.h: added size_t typedef, changed
14476         prototypes to use size_t, eliminated separate reentrant and
14477         non-reentrant declarations, added _memmove declaration
14478         * device/lib/_memcpy.c: changed to use size_t instead of int,
14479         changed /4 to >>2 to avoid division library call
14480         * device/lib/_memcmp.c,
14481         * device/lib/_memset.c,
14482         * device/lib/_strncat.c,
14483         * device/lib/_strncpy.c,
14484         * device/lib/_strncmp.c: changed to use size_t instead of int
14485         * device/lib/_memmove.c: new file (fixed bug #772294)
14486         * device/lib/Makefile.in: added _memmove.c
14487         * device/lib/z80/asm_strings.s: fixed bug #772290
14488         * support/regression/tests/bitfields.c: attempt to fix host assertion
14489         failure on amd64-unknown-linux2.2
14490
14491 2003-09-06  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14492
14493         * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
14494         * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
14495         * as/z80/asmain.c (main): fixed bug #801766
14496
14497 2003-09-06  Bernhard Held <bernhard AT bernhardheld.de>
14498
14499         * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
14500         compilers
14501
14502 2003-09-05  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14503
14504         * src/SDCCast.c (isConformingBody): fixed loop reversal bug
14505         reported in bug #800609
14506
14507 2003-09-04  Vangelis Rokas <vrokas AT otenet.gr>
14508
14509         * Top header beautifications in src/pic16 directory:
14510           device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
14511           pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
14512           pcoderegs.h, ralloc.c, ralloc.h
14513         * main.c: added top header and GPL license notice
14514         * pcode.c: fixed the if-conditional warning
14515
14516 2003-09-04  Bernhard Held <bernhard AT bernhardheld.de>
14517
14518         * device/lib/_mullong.c: replaced int by short for gcc
14519
14520 2003-08-31  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14521
14522         * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
14523         and JUMPTABLE iCodes properly now (worked by accident before)
14524         * src/mcs51/gen.c (leftRightUseAcc),
14525         * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
14526         iCode properly now. Use getSize instead of nRegs since a & b
14527         aren't part of the nRegs tally.
14528
14529 2003-08-31  Vangelis Rokas <vrokas AT otenet.gr>
14530
14531         * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
14532         * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
14533           before instructions that use the _STATUS register
14534
14535 2003-08-31  Bernhard Held <bernhard AT bernhardheld.de>
14536
14537         * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
14538         * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
14539         fetching of the pointer
14540         * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
14541         copied from genNearPointerSet()
14542         * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
14543         * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
14544         If they pop r0/r1 they must be called in the opposite order than aopOp().
14545         * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
14546         (resp. --stack-auto), prepared for --xstack
14547
14548 2003-08-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14549
14550         * doc/sdccman.lyx: reverted tables to those in cvs 1.64
14551
14552 2003-08-28  Bernhard Held <bernhard AT bernhardheld.de>
14553
14554         * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
14555         these ports have their own __sdcc_external_start()
14556
14557 2003-08-26  Bernhard Held <bernhard AT bernhardheld.de>
14558
14559         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
14560         * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
14561         type for bits was changed. It resulted in bit variables becoming
14562         global, which is not permitted in PIC 14 assembly output.
14563
14564 2003-08-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14565
14566         * doc/sdccman.lyx: various additions and updates. Rearranged sections
14567
14568 2003-08-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14569
14570         Z80 and MCS51 linkers complaint if a public symbol is defined
14571         in more than one library module:
14572
14573         * as/mcs51/lklib.c
14574         * link/z80/lklib.c
14575         * as/mcs51/Makefile.in
14576
14577 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14578
14579         A few small changes that speed up the peephole optimizer.
14580
14581         * src/SDCCpeeph.c
14582
14583 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14584
14585         Try to make the peephole optimizer smarter by maintaining
14586         an association between the assembly source code and the
14587         iCodes that originated them. Put this information to use
14588         with a new peephole rule condition "notVolatile" so that
14589         the rules can be aggressive yet still safe.
14590
14591         * src/SDCCpeeph.c
14592         * src/SDCCpeeph.h
14593         * src/mcs51/gen.c
14594         * src/mcs51/peeph.def
14595
14596 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14597
14598         Fixed bug #741761
14599
14600         * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
14601         * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
14602         if the left or right operand symbols have the accuse flag set.
14603
14604 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14605
14606         Changed the type of the result of the ! (NOT) operator to char;
14607         previously it returned the same type as the source. This allows
14608         us to eliminate all the genFloatNot functions (all of its target
14609         implementations were very buggy) since !float can use the same
14610         code as !long now.
14611
14612         * src/SDCCicode.c (ast2iCode): ! returns char
14613         * src/mcs51/gen.c (genNot, genNotFloat),
14614         * src/ds390/gen.c (genNot, genNotFloat),
14615         * src/z80/gen.c (genNot, genNotFloat),
14616         * src/pic/gen.c (genNot, genNotFloat),
14617         * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
14618
14619 2003-08-19  Bernhard Held <bernhard AT bernhardheld.de>
14620
14621         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
14622         1. Interrupt would not compile properly. Ensure PCLATH register is saved
14623            during interrupts. Ensure WSAVE is located at a shared bank address.
14624         2. Fixed page selection in some places
14625         3. Fixed BTFSS/C to where necessary use registers directly and not simply
14626            the registers name strings.
14627         4. Fixed "signed / unsigned compare" compiler warnings.
14628         5. The PIC port manages its own allocation of the general purpose
14629            registers, but makes no attempt to reuse them. As a result when
14630            compiling it soon runs out of general purpose registers. Some
14631            additional code was added to the files pcode.c and device.c to walk
14632            through the function call tree and rename the registers so that they
14633            get reused.
14634
14635         * src/pic/device.c
14636         * src/pic/gen.c
14637         * src/pic/glue.c
14638         * src/pic/pcode.c
14639         * src/pic/pcode.h
14640         * src/pic/ralloc.c
14641         * src/pic/ralloc.h
14642         * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
14643         genPlus() & genMinus() when the result is the same as left or right
14644
14645 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14646
14647         * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
14648
14649 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14650
14651         Made bitfield a distinct type from bit so that bitfields
14652         convert as per ANSI C and bits retain their traditional
14653         boolean style behaviour. Implemented bitfield support in
14654         the z80 port.
14655
14656         * src/SDCCsymt.h,
14657         * src/SDCCsymt.c,
14658         * src/SDCCast.c,
14659         * src/cdbFile.c,
14660         * src/mcs51/gen.c,
14661         * src/ds390/gen.c: bit v bitfield split
14662         * src/z80/gen.c: New support for bitfields
14663         * support/regression/tests/bitfields.c: reenabled z80,
14664         added more tests
14665
14666 2003-08-17  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14667
14668         Rules 246.x, 247.x relate to bitfields, the others speed up
14669         access to xdata mapped I/O devices.
14670
14671         * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
14672
14673 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14674
14675         Cleaned up genPackBits and genUnpackBits and added two helper
14676         functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
14677         for literal assignments in genPackBits (thanks to Frieder for
14678         reminding me).
14679
14680         * src/mcs51/gen.c
14681         * src/ds390/gen.c
14682
14683 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14684
14685         Fixed bug #748310 (pointer to function type mishandled when the
14686         function name is omitted). Also fixed a SIGSEGV when a function
14687         attribute (reentrant, etc) is used on a non-function or on a
14688         function but misplaced before the parameter list.
14689
14690         * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
14691         bug #748310
14692         * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
14693         * support/Util/SDCCerr.h,
14694         * support/Util/SDCCerr.c: Added func attr misuse error msg
14695
14696 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
14697
14698         Fixed bug #787649 by anonymous
14699         * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
14700         * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
14701
14702 2003-08-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14703
14704         Fixed numerous bitfield problems.
14705
14706         * src/SDCC.y: More bitfield related error checking
14707         * src/SDCCsymt.h,
14708         * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
14709         * support/Util/SDCCerr.h,
14710         * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
14711         * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
14712         * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
14713         * support/regression/tests/bitfields.c: tests added
14714
14715 2003-08-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14716
14717         Made the constant following the "interrupt" keyword optional. If
14718         omitted, the function will not automatically be given an entry
14719         in the interrupt vector table (similar to #pragma NOIV, but
14720         less syntacticly kludgy). The interrupt number is also now
14721         range checked. Also fixed a bug in the high order bit example
14722         in the manual.
14723
14724         * src/SDCC.y
14725         * src/SDCCmem.c
14726         * src/SDCCglue.c
14727         * src/SDCCsymt.h
14728         * support/Util/SDCCerr.c
14729         * support/Util/SDCCerr.h
14730         * doc/sdccman.lyx
14731
14732 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
14733
14734         * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
14735         * src/SDCCicode.c (operandOperation): rewritten some ops
14736         (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
14737         * src/SDCCsymt.c (computeType): literals are handled the same way as any
14738         other type
14739         * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
14740         be re-activated by defining REDUCE_LITERALS)
14741         * src/SDCCval.c (constVal): fixed; hex and octal constants can be
14742         unsigned, but are signed by default
14743         * src/SDCCval.c (constVal): rearranged
14744         * src/SDCCval.c (valMod): preliminary fix
14745         * src/SDCCval.c (valCastLiteral): use TYPE_* types
14746         * support/regression/literalop.c: added, work in progress
14747
14748 2003-08-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14749
14750         Generate warnings for useless declarations like "char data;"
14751         that don't do what new users expect.
14752
14753         * src/SDCC.y
14754         * support/Util/SDCCerr.h
14755         * support/Util/SDCCerr.c
14756
14757 2003-08-09  Bernhard Held <bernhard AT bernhardheld.de>
14758
14759         * src/SDCCval.c (valMult): fix overflow detection of negative int
14760
14761 2003-08-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14762
14763         * src/z80/ralloc.c (joinPushes): made compatible with new signedness
14764
14765         Changes to support big endian targets:
14766
14767         * src/ports.h
14768         * src/SDCCglue.c
14769         * src/avr/main.c
14770         * src/ds390/main.c
14771         * src/izt/i186.c
14772         * src/mcs51/main.c
14773         * src/pic/main.c
14774         * src/pic16/main.c
14775         * src/xa51/main.c
14776         * src/z80/main.c
14777
14778 2003-08-06  Bernhard Held <bernhard AT bernhardheld.de>
14779
14780         * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
14781         * device/lib/time.c: fixed warning "integer overflow in expression"
14782
14783 2003-08-05  Bernhard Held <bernhard AT bernhardheld.de>
14784
14785         * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
14786         * src/SDCCval.c (constVal): changed default to signed; hex and octal
14787         constants are unsigned; added recognition of "u" flag for unsigned
14788         * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
14789         * src/SDCCval.c (valDiv, valMod): fixed signdness
14790         * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
14791         signedness of modulo, left and right shift
14792         * support/Util/SDCCerr.c: added warning "integer overflow in expression"
14793         * support/Util/SDCCerr.h: added warning W_INT_OVL
14794         * src/SDCCast.c (decorateType): fixed gcc3.3 warning
14795         * src/SDCCast.c (ast_print): improved output of constants
14796
14797 2003-08-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14798
14799         Fixed some warnings when building with MSVC:
14800
14801         * as/mcs51/asdata.c
14802         * as/z80/asdata.c
14803         * as/mcs51/asm.h
14804         * as/z80/asm.h
14805         * link/z80/aslink.h
14806         * link/z80/lkdata.c
14807         * link/z80/lkeval.c
14808         * link/z80/lkgb.c
14809         * link/z80/lkihx.c
14810         * link/z80/lks19.c
14811         * link/z80/lksym.c
14812         * support/cpp2/cpplib.c
14813         * src/ds390/gen.c
14814         * src/mcs51/gen.c
14815
14816 2003-08-03  Bernhard Held <bernhard AT bernhardheld.de>
14817
14818         * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
14819
14820 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14821
14822         * support/librarian/clean.mk: Do not remove Makefile.
14823         * support/librarian/Makefile: added.
14824
14825 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14826
14827         Added librarian to MSVC build:
14828         * all.dsp
14829         * sdcc.dsw
14830         * support/librarian/librarian.dsp
14831
14832         'configure' not needed for librarian, removed:
14833         * support/librarian/configure
14834         * support/librarian/configure.in
14835         * support/librarian/config_in.h
14836         * support/librarian/Makefile.in
14837
14838         Hopefully these ones built the librarian and the rest of sdcc properly:
14839         * Makefile
14840         * Makefile.common.in
14841
14842         Messed up 'configure', so revert to previous version:
14843         * configure
14844         * configure.in
14845
14846 2003-07-31  Bernhard Held <bernhard AT bernhardheld.de>
14847
14848         * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
14849         there, while the mantissa of a double is "only" 53 bits wide.
14850
14851 2003-07-31  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14852
14853         Adding sdcclib to the build.  MSVC project coming soon.
14854         Files added/changed:
14855
14856         * support/librarian/clean.mk
14857         * support/librarian/configure
14858         * support/librarian/configure.in
14859         * support/librarian/config_in.h
14860         * support/librarian/Makefile.bcc
14861         * support/librarian/Makefile.in
14862         * support/librarian/sdcclib.c
14863         * Makefile.bcc
14864         * Makefile
14865         * Makefile.common.in
14866         * configure
14867         * configure.in
14868
14869 2003-07-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14870
14871         Linker now complaints if linked modules have conflicting options, for
14872         example, one compiled using --model-large and another one compiled with
14873         --model-small.  The following files were modified:
14874
14875         * as/mcs51/asdata.c
14876         * as/mcs51/aslink.h
14877         * as/mcs51/asm.h
14878         * as/mcs51/asmain.c
14879         * as/mcs51/asout.c
14880         * as/mcs51/i51pst.c
14881         * as/mcs51/lkdata.c
14882         * as/mcs51/lklibr.c
14883         * as/mcs51/lkmain.c
14884         * as/z80/asdata.c
14885         * as/z80/asm.h
14886         * as/z80/asmain.c
14887         * as/z80/asout.c
14888         * as/z80/z80pst.c
14889         * link/z80/aslink.h
14890         * link/z80/lkdata.c
14891         * link/z80/lklibr.c
14892         * link/z80/lkmain.c
14893         * src/SDCCglue.c
14894
14895 2003-07-28  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14896
14897         *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
14898         as/mcs51/lklibr.c: Generate a warning when a library is not found.
14899
14900 2003-07-28  Bernhard Held <bernhard AT bernhardheld.de>
14901
14902         * src/z80/mappings.i: fix _mul[us][int,long] entries
14903
14904 2003-07-26  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14905
14906         *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
14907
14908 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
14909
14910         * src/SDCCicode.c (operandOperation): really fixed problem with bitops
14911         * support/regression/tests/bitopcse.c: added
14912         fixed warning:
14913         * src/avr/gen.c:
14914         * src/pic/gen.c:
14915         * src/pic16/gen.c:
14916         * src/z80/gen.c:
14917         * src/xa51/gen.c:
14918
14919 2003-07-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14920
14921         added support for new library format to z80, gbz80 linkers:
14922         *link/z80/aslink.h
14923         *link/z80/lklex.c
14924         *link/z80/lklib.c
14925         *link/z80/lklist.c
14926
14927 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
14928
14929         * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
14930         after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
14931
14932 2003-07-23  Bernhard Held <bernhard AT bernhardheld.de>
14933
14934         added DUMMY_READ_VOLATILE:
14935         * src/SDCC.y:
14936         * src/avr/gen.c:
14937         * src/xa51/gen.c:
14938         * src/z80/gen.c:
14939         * src/pic/gen.c:
14940         * src/pic16/gen.c:
14941         * src/mcs51/gen.c:
14942         * src/ds390/gen.c:
14943         * src/SDCCcse.c (algebraicOpts): many improvements
14944         * src/SDCCcse.h: removed algebraicOpts()
14945         * src/SDCCicode.c (picDummyRead): added
14946
14947 2003-07-23  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14948
14949         * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
14950         "Insufficient space in data memory".
14951
14952 2003-07-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14953
14954         * src/mcs51/gen.c: fixed bug #771358
14955         * src/z80/gen.c: fixed bug #759087
14956
14957 2003-07-20  Bernhard Held <bernhard AT bernhardheld.de>
14958
14959         * src/pic16/glue.c: minor cleanup by Vangelis
14960
14961 2003-07-19  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14962
14963         * device/include/regc515c.h: fixed #758477
14964         * device/lib/_gptrget.c: saving some cycles in generic pointer get
14965         * device/lib/_gptrput.c: saved a few bytes
14966         * my tab spacing is 8, yours too?)
14967         * device/lib/_ser.c: process RX bytes earlier than TX bytes
14968         * device/lib/serial.c: process RX bytes earlier than TX bytes
14969         * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
14970
14971 2003-07-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14972
14973         * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
14974
14975 2003-07-17  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14976
14977         * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
14978
14979 2003-07-17  Bernhard Held <bernhard AT bernhardheld.de>
14980
14981         * device/lib/Makefile.in: bad fix, reverted to 1.43
14982
14983 2003-07-16  Bernhard Held <bernhard AT bernhardheld.de>
14984
14985         * device/lib/Makefile.in: added missing z80 object files
14986
14987 2003-07-14  Bernhard Held <bernhard AT bernhardheld.de>
14988
14989         * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
14990         pic16 progress by Vangelis:
14991         * src/SDCCglobl.h:
14992         * src/SDCCmain.c:
14993         * src/pic/Makefile:
14994         * src/pic:
14995         * pic/Makefile:
14996         * pic16/device.c:
14997         * pic16/device.h:
14998         * pic16/gen.c:
14999         * pic16/gen.h:
15000         * pic16/genarith.c:
15001         * pic16/glue.c:
15002         * pic16/main.c:
15003         * pic16/pcode.c:
15004         * pic16/pcode.h:
15005         * pic16/pcodepeep.c:
15006         * pic16/peeph.def:
15007
15008 2003-07-13  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15009
15010         * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
15011
15012 2003-07-12  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15013
15014         * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
15015         added gbz80 build to MSVC project.
15016         * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
15017         link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
15018         from 8051 stuff and setup so it links using a .lnk file.
15019
15020 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15021
15022         * support/librarian/sdcclib.c: sdcc librarian.
15023         * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
15024         with sdcclib.
15025
15026 2003-07-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15027
15028         * as/mcs51/lkmain.c: properly handle extensions in function afile.
15029
15030 2003-07-02  Borut Razem <borut.razem AT siol.net>
15031
15032         * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
15033         src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
15034         src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
15035         src/xa51/main.c, src/z80/main.c:
15036         virtualization of glue() function: each port has it's own glue function,
15037         which is accessed by do_glue function pointer in PORT.general structure
15038
15039 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
15040
15041         * DS800C400 fun, improved ROM interface and tinibios.
15042
15043 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
15044
15045         * More support for DS80C400. Now includes beginning of interface to ROM.
15046
15047 2003-06-25  Bernhard Held <bernhard AT bernhardheld.de>
15048
15049         * src/mcs51/gen.c (gencjneshort): fixed bug #760345
15050
15051 2003-06-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15052
15053         * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
15054
15055 2003-06-19  Borut Razem <borut.razem AT siol.net>
15056
15057         * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
15058
15059 2003-06-19  Borut Razem <borut.razem AT siol.net>
15060
15061         * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
15062         fixed Z80 port - crt0.o: cannot open.
15063
15064 2003-06-19  Bernhard Held <bernhard AT bernhardheld.de>
15065
15066         * support/Util/MySystem.c (merge_command): revert bad fix
15067
15068 2003-06-18  Borut Razem <borut.razem AT siol.net>
15069
15070         * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
15071
15072 2003-06-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15073
15074         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
15075         option --use-stdout sends errors to stdout instead of stderr.
15076
15077 2003-06-18  Bernhard Held <bernhard AT bernhardheld.de>
15078
15079         * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
15080
15081 2003-06-15  Borut Razem <borut.razem AT siol.net>
15082
15083         * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
15084         * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
15085         * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
15086         fixed width array of pointers replaced with sets;
15087         multiple include and lib paths ared transferred to preprocessor and linker
15088         * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
15089         * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
15090         fixed width array of pointers
15091         * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
15092         removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
15093         fixupPath(), getPathDifference()
15094         * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function  inExcludeList() by using sets instead
15095         fixed width array of pointers
15096
15097 2003-06-11  Bernhard Held <bernhard AT bernhardheld.de>
15098
15099         * src/pic16/ralloc.c: fix warnings
15100         * src/pic16/pcode.c: fix warning
15101
15102 2003-06-10  Scott Dattalo  <scott AT dattalo.com>
15103
15104          Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
15105         know all the details, but essentially this set of changes enable
15106         the pic16 port to generate movff instructions and generate assembler
15107         directives,
15108         * src/SDCCmain.c:
15109         * src/pic16/gen.c:
15110         * src/pic16/glue.c:
15111         * src/pic16/pcode.c:
15112         * src/pic16/device.c:
15113         * src/pic16/main.c:
15114         * src/pic16/pcode.h:
15115         * src/pic16/pcoderegs.c:
15116         * src/pic16/ralloc.c:
15117         * src/pic16/ralloc.h:
15118
15119 2003-06-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15120
15121         * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
15122         added option --vc, so sdcc errors and warnings are compatible with
15123         Microsoft Visual Studio.
15124
15125 2003-06-07  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15126
15127         * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
15128           device/lib/libfloat.lib: added atof function.
15129
15130 2003-06-04  Bernhard Held <bernhard AT bernhardheld.de>
15131
15132         * doc/sdccman.lyx: updated to Lyx 1.3
15133         * doc/cdbfileformat.lyx: updated to Lyx 1.3
15134         * doc/test_suite_spec.lyx: updated to Lyx 1.3
15135         * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
15136
15137 2003-06-03  Bernhard Held <bernhard AT bernhardheld.de>
15138
15139         * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
15140
15141 2003-06-02  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15142
15143         * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
15144           additions to the "related tools/documentation" section
15145
15146 2003-06-02  Bernhard Held <bernhard AT bernhardheld.de>
15147
15148         * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
15149
15150 2003-05-29  Bernhard Held <bernhard AT bernhardheld.de>
15151
15152         * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
15153         * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
15154
15155 2003-05-28  Bernhard Held <bernhard AT bernhardheld.de>
15156
15157         * doc/sdccman.lyx: fix double dash and other minor things
15158         * doc/Makefile: fix double dash
15159
15160 2003-05-28  Karl Bongers(patches from Martin Helmling)
15161         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
15162           condition and ignore commands.
15163
15164 2003-05-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15165
15166         * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
15167           is in parts still quite out of date, I did changes as far as I felt makes sense
15168           for a non-native english speaker.
15169           Please feel free to add to the manual or to correct my changes.
15170         * doc/Makefile: undid touching the date of intermediate tex files.
15171
15172 2003-05-26  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15173
15174         * doc/sdccman.lyx: Manual has an index now
15175
15176 2003-05-25  Bernhard Held <bernhard AT bernhardheld.de>
15177
15178         Finalize muluint/mulsint and mululong/mulslong merging:
15179         * device/lib/_mulint.c
15180         * device/lib/_mullong.c
15181         * device/lib/gbz80/mul.s
15182         * device/lib/gbz80/stubs.s
15183         * device/lib/z80/mul.s
15184         * device/lib/z80/stubs.s
15185         * src/SDCCsymt.c (initCSupport)
15186
15187 2003-05-25  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15188
15189         * as/mcs51/lkaomf51.c: Address space 'z' was missing.
15190         * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
15191           src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
15192           src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
15193           instead of /Zm500.
15194
15195 2003-05-25  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15196
15197         * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
15198           the regression tests I'm not brave enough to enable 245.b, 245.c
15199         * doc/sdccman.lyx: added latex preamble for hyperref package.
15200           Using pdflatex this will give you a hyperlinked pdf file with
15201           bookmarks. (prepend '%' before /usepackage if this breaks something)
15202
15203 2003-05-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15204
15205          * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
15206
15207 2003-05-22  Bernhard Held <bernhard AT bernhardheld.de>
15208
15209         * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
15210
15211 2003-05-21    <johan AT balder>
15212
15213         * src/SDCCglue.c (printIval): fixed bug #739934
15214
15215 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
15216
15217         Applied patch from bug 737905 (renamed yylineo to mylineno):
15218         * src/altlex.c
15219         * src/SDCCast.c
15220         * src/SDCglobl.h
15221         * src/SDCC.lex
15222         * src/SDCCsymt.c
15223         * src/SDCCval.c
15224         * src/pic16/pcode.c: Cleaned warnings
15225         * src/pic16/pcodeflow.c: Cleaned warnings
15226         * src/pic16/pcoderegs.c: Cleaned warnings
15227
15228 2003-05-19  Scott Dattalo  <scott AT dattalo.com>
15229
15230         * src/pic16/pcode.c: Cleaned warnings
15231         * src/pic16/pcodepeep.c: Cleaned warnings
15232         * src/pic16/ralloc.c: Cleaned warnings
15233
15234 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
15235
15236         * doc/sdccman.lyx: fixed bug 739745
15237         * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
15238
15239 2003-05-18  Bernhard Held <bernhard AT bernhardheld.de>
15240
15241         * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
15242         it can be defined with CFLAGS when running configure
15243         * src/SDCCmain.c: fixed compiling + linking with object files
15244
15245 2003-05-18  Vangelis Rokas (vrokas AT otenet.gr)
15246
15247         * configure.in: configure for pic16 port,
15248             added --disable-pic16-port
15249         * sdccconf_in.h: added macro OPT_DISABLE_PIC16
15250         * src/SDCCmain.c: linkOptions is changed to set *,
15251             added if/endif conditional macros to remove options help
15252             messages from optionsTable when a port is not configured, added
15253             support for the PIc16 port in the ports table, when executing
15254             the compiler with no port specified on command line, a default
15255             port is selected with the new macro DEFAULT_PORT which is
15256             defined in port.h, in setDefaultOptions() linkOptions is removed
15257             from initialization assignment, since now it is a set,
15258             parseCmdLine uses setParseWithComma for linkOptions, in
15259             linkEdit() linkOptions are accessed with new function indexSet()
15260             which returns the i'th item of a set variable. See SDCCset.c, in
15261             linkEdit() when calling buildCmdLine(), added linkOptions as
15262             last argument. Now users can pass arguments to gplink via the
15263             -Wl option, main() uses pic16glue() to glue up pic16 programs
15264         * src/SDCCpeeph.c: various changes to support pic16
15265         * src/SDCCset.c: added function  void *indexSet(set *, int)  to
15266             return the i'th item of the set
15267         * src/SDCCset.h: added function prototype for indexSet()
15268         * src/SDCCsymt.c: in checkSClass(), added support for PIC16
15269         * src/clean.mk: added pic16 in CLEANALLPORTS variable
15270         * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
15271             added macro DEFAULT_PORT
15272         * src/pic/main.c: corrected arguments of gplnk in _linkCmd
15273         * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
15274             generated
15275         * src/pic16/glue.c: commented out some error producing lines
15276         * src/pic16/main.c: __config directives are commented out to stop
15277             gpasm complaining and test the linkage with gplink, _linkCmd and
15278             _asmCmd changed to be more gplink and gpasm friendly
15279         * src/pic16/peeph.def: peep rule 3 is commented out, since it
15280             produced an error when parsed, peep rule 12 is added to utilize
15281             movff, but it is commented out since the pCode does not support
15282             yet a command with 2 address arguments
15283
15284 2003-05-18    <johan AT balder>
15285
15286         * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
15287         * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
15288 2003-05-17  Karl Bongers(apply patches from Martin Helmling)
15289
15290         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
15291         Added feature to script commands from file.
15292
15293 2003-05-14  Bernhard Held <bernhard AT bernhardheld.de>
15294
15295         * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
15296         * src/SDCCutil.c: include ctype.h for win32
15297
15298 2003-05-13  Bernhard Held <bernhard AT bernhardheld.de>
15299
15300         * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
15301
15302 2003-05-12  Karl Bongers(apply development patches from Martin Helmling)
15303
15304         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
15305         Fixed so you can set breakpoints prior to run, run does not stop
15306         on entry now.  Add tbreak.  Other enhancements and fixes for use
15307         with ddd.
15308
15309 2003-05-12  Borut Razem <borut.razem AT siol.net>
15310
15311         * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
15312
15313 2003-05-11  Borut Razem <borut.razem AT siol.net>
15314
15315         * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
15316         the path of bin directory, so that PATH is the only env. variable, which has to be set
15317         in case of standard installation.
15318         * src/ds390/ds390.dsp: increased value of /Zm option to 1000
15319         * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
15320         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
15321
15322 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
15323
15324         * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
15325         * support/regression/Makefile: inter-port-clean is no longer nesessary, the
15326         temp files are in the port dir; clean the gen/test directory when
15327         generating new test.c
15328         * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
15329         * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
15330         * support/regression/tests/zeropad.c: added
15331
15332 2003-05-09    <johan AT balder>
15333
15334         * src/SDCCglue.c: fixed bug #597940
15335
15336 2003-05-05  Karl Bongers(apply patches from Martin Helmling)
15337
15338         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
15339         cache sfr, optimize next,step, fix off by one sourceline,
15340         support ddd list function.
15341         * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
15342
15343 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
15344
15345         * support/regression/HTMLgen.py: added compare_s2f()
15346         * support/regression/Makefile: redo 1.27
15347         * support/regression/generate-cases.py: redo 1.5
15348
15349 2003-04-30  Bernhard Held <bernhard AT bernhardheld.de>
15350
15351         * support/regression/tests/float.c: workaround 33 bit hex constant
15352         * support/regression/tests/simplefloat.c: fix division for host
15353
15354 2003-04-29  Scott Dattalo  <scott AT dattalo.com>
15355
15356         * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
15357         that tame's the PIC's over-aggressive optimizer.
15358
15359 2003-04-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15360
15361          * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
15362          support for MSVC.
15363
15364 2003-04-29  Kevin Vigor <kevin AT vigor.nu>
15365
15366         Initial support for DS80C400. "Hello world" runs on TINIm400
15367         (with polled I/O).
15368
15369 2003-04-28  Karl Bongers(apply patches for Martin Helmling)
15370
15371          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
15372          * Some notes on ddd usage added in debugger/README
15373          Martin Helmling adding more features and fixes for ddd GUI debugger.
15374          Code added for nexti, stepi, up, down, and other adjustments.
15375
15376 2003-04-28  Scott Dattalo  <scott AT DATTALO.COM>
15377
15378         * src/pic/pCodepeep.c non-wildcard asmops are now handled
15379         * src/pic/peeph.def Added two rules to optimize carry manipulation
15380         * src/pic/* removed debug printfs
15381
15382 2003-04-28  Bernhard Held <bernhard AT bernhardheld.de>
15383
15384         * debugger/mcs51/cmd.c: added header newalloc.h
15385
15386 2003-04-26  Bernhard Held <bernhard AT bernhardheld.de>
15387
15388         * as/Makefile: new EXEEXT
15389         * as/z80/Makefile: remove trailing slash of BUILDIR
15390         * as/z80/clean.mk: new EXEEXT
15391         * Makefile.common.in: add to CFLAGS (and others), don't replace it
15392         * support/cpp2/Makefile.in: new EXEEXT
15393         * src/pic/glue.c (pic14emitRegularMap): fixed warning
15394
15395 2003-04-24  Bernhard Held <bernhard AT bernhardheld.de>
15396
15397         Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
15398         EXEEXT was introduced to fix all related problems with targets
15399         "clean", "install" and "uninstall"; a couple of further flaws
15400         especially with "clean" have been fixed too
15401         * as/mcs51/Makefile.in
15402         * as/mcs51/clean.mk
15403         * as/z80/Makefile
15404         * Makefile
15405         * clean.mk
15406         * debugger/mcs51/Makefile.in
15407         * debugger/mcs51/clean.mk
15408         * link/z80/Makefile
15409         * link/z80/Makefile.in
15410         * link/z80/clean.mk
15411         * link/Makefile
15412         * packihx/Makefile.in
15413         * packihx/clean.mk
15414         * sim/ucsim/Makefile
15415         * sim/ucsim/clean.mk
15416         * sim/ucsim/avr.src/Makefile.in
15417         * sim/ucsim/avr.src/clean.mk
15418         * sim/ucsim/s51.src/Makefile.in
15419         * sim/ucsim/s51.src/clean.mk
15420         * sim/ucsim/xa.src/Makefile.in
15421         * sim/ucsim/xa.src/clean.mk
15422         * sim/ucsim/z80.src/Makefile.in
15423         * sim/ucsim/z80.src/clean.mk
15424         * sim/ucsim/main_in.mk
15425         * sim/ucsim/packages_in.mk
15426         * sim/ucsim/gui.src/Makefile.in
15427         * sim/ucsim/gui.src/serio.src/Makefile.in
15428         * sim/ucsim/gui.src/serio.src/clean.mk
15429         * src/Makefile.in
15430         * src/clean.mk
15431         * support/cpp2/Makefile.in
15432         * support/cpp2/clean.mk
15433         * support/makebin/Makefile
15434         * support/makebin/clean.mk
15435         * support/scripts/sdcc_mingw32: --program-suffix no longer needed
15436         * doc/sdccman.lyx: --program-suffix no longer needed
15437
15438 2003-04-23  Karl Bongers(apply patches for Martin Helmling)
15439
15440          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
15441          Martin Helmling added support for ddd GUI debugger.
15442          Code added to display assembly, set variables, and other commands
15443          to interface to ddd.
15444
15445 2003-04-23  Bernhard Held <bernhard AT bernhardheld.de>
15446
15447         * as/Makefile: fix target clean
15448         * as/clean.mk: fix target clean
15449         * as/z80/clean.mk: fix target clean
15450
15451 2003-04-22  Bernhard Held <bernhard AT bernhardheld.de>
15452
15453         * Makefile.common.in: added  AT EXEEXT AT
15454         * configure.in: removed all mingw32 stuff
15455         * configure: rebuilt from configure.in
15456         * doc/sdccman.lyx: updated section "installation"
15457         * support/scripts/sdcc_mingw32: adapted to configure
15458         * support/scripts/sdcc_cygwin_mingw32: added
15459
15460 2003-04-22  Scott Dattalo  <scott AT dattalo.com>
15461
15462         * src/pic Added object file support for the PIC port
15463         * src/pic Applied patch from Craig Franklin (this started the object file support)
15464         * src/regression Updated the PIC regression tests for object files
15465
15466 2003-04-20  Borut Razem <borut.razem AT siol.net>
15467
15468         * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
15469           lklex.c: In function `getfid':
15470           lklex.c:203: warning: array subscript has type `char'
15471         * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
15472           with MSVC with global optimization enabled (probably an cl compiler bug ;-)
15473         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
15474           stack handling macros
15475
15476 2003-04-19  Borut Razem <borut.razem AT siol.net>
15477
15478         * "handling space characters in file path" task:
15479         * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
15480         * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
15481         * support/Util/MySystem.h: make it self-sufficient
15482         * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
15483           src/z80/main.c, sdcc/as/mcs51/lklex.c:
15484           handling space characters in file path
15485         * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
15486           (it will be used by assemblers, which have their own includes, e.g. gpasm)
15487         * support/Util/MySystem.c: handling space characters in executable's path
15488
15489 2003-04-19  Bernhard Held <bernhard AT bernhardheld.de>
15490
15491         * as/z80/Makefile: fix permanent rebuild of z80
15492         * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
15493         * support/regression/tests/bitfields.c: added Johan's bitfields.c
15494
15495 2003-04-18      Kevin Vigor <kevin AT vigor.nu>
15496
15497         * src/SDCCopt.c: add special case optimization to replace modulo by
15498           a power of two with a bitwise AND.
15499
15500 2003-04-18    <johan AT balder>
15501
15502         * src/mcs51/gen.c (getFreePtr): fixed bug #635354
15503
15504 2003-04-17    <johan AT balder>
15505
15506         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
15507         * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
15508
15509 2003-04-13  Borut Razem <borut.razem AT siol.net>
15510
15511         * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
15512         * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
15513           fixed mingw problem in adl_NORMALIZE_PATH
15514
15515 2003-04-12  Borut Razem <borut.razem AT siol.net>
15516
15517         * fixed "#pragma SAVE/RESTORE can not be nested":
15518         * src/SDCC.lex: reworked pragma handling functions
15519         * sdcc/src/SDCCglobl.h: reworked stack handling macros
15520         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
15521
15522 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
15523
15524         * src/SDCCutil.c (pathEquivalent): defined but not used
15525         * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
15526         * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
15527         * configure: rebuilt from configure.in
15528         * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
15529         * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
15530         * device/include/Makefile.in: replace sdcc_datadir
15531         * device/lib/Makefile.in: replace sdcc_datadir
15532         * Makefile.common.in: add LDFLAGS from configure
15533         * packihx/Makefile.in: use LDFLAGS
15534         * src/Makefile.in: use LDFLAGS
15535         * support/cpp2/Makefile.in: add LDFLAGS from configure
15536         * support/makebin/Makefile: use LDFLAGS
15537         * .version: bumped version number to 2.3.5
15538
15539 2003-04-12  Borut Razem <borut.razem AT siol.net>
15540
15541         * completed "different paths" task:
15542         * src/SDCCmacro.c: fixed bug in handling quotes
15543         * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
15544         * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
15545
15546 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
15547
15548         * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
15549
15550 2003-04-11 kevin Vigor <kevin AT vigor.nu>
15551
15552         * ds390/gen.c ds390/peeph.def: fix bug 706781
15553
15554 2003-04-11  Borut Razem <borut.razem AT siol.net>
15555
15556         * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
15557
15558 2003-04-10  Scott Dattalo  <scott AT dattalo.com>
15559
15560         * src/pic/* Applied the pointer-to-function patch from Steve Tell.
15561         * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
15562          set - this bit used to not be set...).
15563         * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
15564           bad code in PIC Port
15565         * src/regression/and2.c added to test bug 609268
15566         * src/regression/Makefile added and2.c to regression test
15567
15568
15569 2003-04-08    <johan AT CP255758-A>
15570
15571         * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
15572         * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
15573         * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
15574
15575 2003-04-07  Bernhard Held <bernhard AT bernhardheld.de>
15576
15577         * configure.in: fully support prefix, exec_prefix, datadir, docdir;
15578         fix bug #487815
15579         * support/cpp2/Makefile.in: fix bug #487815
15580         * configure: rebuilt from configure.in
15581         * Makefile.common.in: docdir changed, new path suffixes
15582         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
15583         * sdcc_vc_in.h: reflect changes from sdccconf.h
15584         * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
15585         * src/SDCCutil.h: remove BINDIR hack
15586         * doc/sdccman.lyx: update new path hierarchy
15587
15588 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
15589
15590         * src/SDCCpeeph.c: added okToRemoveSLOC test
15591
15592 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
15593
15594         * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
15595
15596 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
15597
15598         * src/SDCCpeeph.c: added labelIsReturnOnly test
15599         * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
15600
15601 2003-04-05    <johan AT balder>
15602
15603         * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
15604         * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
15605         * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
15606         * src/SDCCast.c: fixed a warning
15607         * src/SDCCast.h: fixed a warning
15608         * src/SDCCicode.c (operandFromAst): fixed a warning
15609
15610 2003-04-04    <johan AT balder>
15611
15612         * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
15613         * src/SDCCast.c (decorateType): fixed bug #715076
15614         * src/SDCC.y: fixed bug #702907
15615
15616 2003-04-03    <johan AT balder>
15617
15618         * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
15619         * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
15620         * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
15621         * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
15622         * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
15623
15624 2003-04-03  Bernhard Held <bernhard AT bernhardheld.de>
15625
15626         * _decdptr.c: fix return values
15627         * _gptrget.c: fix return values
15628         * _gptrgetc.c: fix return values
15629         * _gptrput.c: fix return values
15630         * _mulint.c: fix return values
15631         * as/z80/Makefile: fix 'make -j' problem
15632
15633 2003-04-02  Bernhard Held <bernhard AT bernhardheld.de>
15634
15635         * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
15636         * configure.in: big cleanup, updated to autoconf 2.5x
15637         * configure: rebuilt from configure.in
15638         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
15639         * sdcc_vc_in.h: reflect changes from sdccconf.h
15640         * doc/Makefile: fixed a flaw in "make install"
15641
15642 2003-04-02    <johan AT balder>
15643
15644         * src/ds390/gen.c (genCmp): no comments
15645         * src/mcs51/gen.c (genCmp): no comments
15646         * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
15647         * src/SDCCast.c (ast_print): fixed the function type in --dumptree
15648
15649 2003-04-01  Bernhard Held <bernhard AT bernhardheld.de>
15650
15651         * support/regression/generate-cases.py: place generated file in given sub directory
15652         * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
15653         * support/regression/Makefile: improvements for 'make -j';
15654         side effect: it's simpler and faster now
15655
15656 2003-03-31  Borut Razem <borut.razem AT siol.net>
15657
15658         * src/z80/main.c: link-{port} and as-{port} defined without path
15659         * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
15660
15661 2003-03-31  Bernhard Held <bernhard AT bernhardheld.de>
15662
15663         * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
15664
15665 2003-03-30  Borut Razem <borut.razem AT siol.net>
15666
15667         * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
15668           changed type of list parameter to set
15669         * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
15670         * src/port.h: changed type of do_assemble() parameter to set
15671         * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
15672           sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
15673           definition of "cppoutfilename" macro with NULL value in preProcess()
15674         * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
15675         * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
15676         * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
15677           replaced with set *binPathSet
15678         * shash_add() deallocates the item, if allready exsists, before adding the new one
15679         * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
15680
15681 2003-03-30  Scott Dattalo  <scott AT dattalo.com>
15682
15683         * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
15684           a nested for loop bug in the PIC port
15685         * src/regression/nestfor.c: new regression test file Steve wrote to test nested
15686           for loops
15687
15688 2003-03-29  Bernhard Held <bernhard AT bernhardheld.de>
15689
15690         * support/Util/dbuf.h: remove C++ stuff to make it portable
15691
15692 2003-03-28  Borut Razem <borut.razem AT siol.net>
15693
15694         * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
15695           literal strings in stringLiteral()
15696         * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
15697         * src/Makefile.bcc, src/Makefile.in, src/src.dsp: added support/Util/dbuf.c
15698           to the project
15699
15700 2003-03-27  Paul Stoffregen <paul AT pjrc.com>
15701
15702         * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
15703
15704 2003-03-26    <johan AT balder>
15705
15706         * src/mcs51/gen.c (saveRegisters): catched symbol abuse
15707         * src/ds390/gen.c (saveRegisters): catched symbol abuse
15708         * src/SDCCast.c (decorateType): fixed " -v < 3"
15709
15710 2003-03-23  Bernhard Held <bernhard AT bernhardheld.de>
15711
15712         * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
15713         Added Lenny Story's debug infrastructure changes:
15714         * src/Makefile.in:  added new files cdbFile.c and SDCCdebug.c
15715         * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
15716         * src/cdbFile.c: added
15717         * src/SDCCdebug.c: added
15718         * src/SDCCdebug.h: added
15719         * src/SDCCast.c (createFunction)
15720         * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
15721         * src/SDCCmain.c (parseCmdLine, main)
15722         * src/SDCCmem.c (redoStackOffsets)
15723         * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
15724         * src/SDCCsymt.h
15725         * src/common.h
15726         * src/avr/gen.c (genAVRCode)
15727         * src/ds390/gen.c (gen390Code)
15728         * src/mcs51/gen.c (gen51Code)
15729         * src/pic/gen.c (genpic14Code)
15730         * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
15731         * src/xa51/gen.c (genXA51Code)
15732         * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
15733
15734 2003-03-22  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15735
15736         * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
15737         * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
15738
15739 2003-03-22    <johan AT balder>
15740
15741         * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
15742
15743 2003-03-21  Bernhard Held <bernhard AT bernhardheld.de>
15744
15745         * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
15746         * doc/cdbfileformat.lyx: added, written by Lenny Story
15747         * doc/Makefile: added cdbfileformat.lyx
15748         * doc/clean.mk: added cdbfileformat.lyx
15749
15750 2003-03-20  Bernhard Held <bernhard AT bernhardheld.de>
15751
15752         * src/mcs51/peeph.def: fix bug #705773
15753
15754 2003-03-20    <johan AT balder>
15755
15756         An sfr/sbit can have an "at #" AND an initializer
15757         * src/SDCCsymt.c (checkSClass):
15758         * src/SDCCmem.c (allocGlobal):
15759         * src/SDCCmem.c (allocLocal):
15760         * src/SDCCast.c (createBlock):
15761
15762 2003-03-17  Bernhard Held <bernhard AT bernhardheld.de>
15763
15764         * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
15765
15766 2003-03-16    <johan AT balder>
15767
15768         Undid the hackup of const and volatile, the problem is much bigger
15769         * src/SDCC.y:1.65
15770         * src/SDCCast.c:1.171
15771         * src/SDCCglue.c:1.138
15772         * src/SDCCicode.c:1.146
15773         * src/SDCCsymt.c:1.150
15774         * src/SDCCval.c:1.65
15775
15776 2003-03-15  Bernhard Held <bernhard AT bernhardheld.de>
15777
15778         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
15779         * src/ds390/gen.c (genAddrOf): fixed bug #704087
15780
15781 2003-03-13    <johan AT balder>
15782
15783         Hackup const and volatile modifiers in type chains a bit:
15784         * src/SDCC.y:1.63
15785         * src/SDCCast.c:1.169
15786         * src/SDCCglue.c:1.136
15787         * src/SDCCicode.c:1.143
15788         * src/SDCCsymt.c1.146
15789         * src/SDCCsymt.h1.59
15790         * src/SDCCval.c:1.63
15791
15792 2003-03-12    <johan AT balder>
15793
15794         * src/SDCCBBlock.h: more LRH debugging junk
15795         * src/SDCCcflow.h: more LRH debugging junk
15796         * src/SDCCloop.c: more LRH debugging junk
15797         * src/SDCC.y (struct_declaration): fixed bug #697590
15798         * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
15799         * src/ds390/gen.c (aopForRemat): fixed bug #700031
15800         * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
15801
15802 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
15803         * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
15804         test function names must now match exactly).
15805         * src/SDCCcse.c: added special case in findCheaperOp to allow
15806         extending a short integer. Makes less awful code for bug 700121 test case.
15807
15808 2003-03-11  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15809
15810         * as/mcs51/lkmain.c: Added ASlink-Warning to messages
15811         * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
15812
15813 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
15814
15815         * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
15816         actually called (operandsNotEqual() was called for all
15817         operandsNotEqualX tests).
15818
15819 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
15820
15821         * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
15822         with shorter literals. Fixes bug 700121.
15823
15824 2003-03-11    <johan AT balder>
15825
15826         * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
15827
15828 2003-03-11  Bernhard Held <bernhard AT bernhardheld.de>
15829
15830         * src/SDCCloop.c (mergeRegions): an evil beast is dead
15831         * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
15832
15833 2003-03-10  Borut Razem <borut.razem AT siol.net>
15834
15835         * src/SDCCmain.c: pipe preprocessor's output
15836         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
15837         * sdcc_vc_in.h: define pclose as _pclose for WIN32
15838         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
15839         which closes all pipes in pipeSet set
15840         * src/SDCCset.c: free deleted item in function deleteSetItem()
15841         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
15842         moved from z80 to src subproject
15843         * .version: increased version number to 2.3.4
15844
15845 2003-03-10  Bernhard Held <bernhard AT bernhardheld.de>
15846
15847         * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
15848         * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
15849         * support/regression/ports/xa51/spec.mk: fix typo
15850
15851 2003-03-09  Bernhard Held <bernhard AT bernhardheld.de>
15852
15853         * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
15854
15855 2003-03-09  Borut Razem <borut.razem AT siol.net>
15856
15857         * src/SDCCmain.c: pipe preprocessor's output
15858         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
15859         * sdcc_vc_in.h: define pclose as _pclose for WIN32
15860         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
15861         which closes all pipes in pipeSet set
15862         * src/SDCCset.c: free deleted item in function deleteSetItem()
15863         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
15864         moved from z80 to src subproject
15865
15866 2003-03-09  Borut Razem <borut.razem AT siol.net>
15867
15868         * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
15869         * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
15870         * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
15871         * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
15872         * src/SDCCglobl.h: unification of WIN32 native definitions
15873
15874 2003-03-09  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15875
15876         * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
15877
15878 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
15879
15880         * src/configure.in:   check for endianess (even while cross-compiling)
15881         * src/configure:      check for endianess (even while cross-compiling)
15882         * src/configure_in.h: check for endianess (even while cross-compiling)
15883         * src/avr/gen.c:        remove old endianess stuff
15884         * src/mcs51/gen.c:      remove old endianess stuff
15885         * src/ds390/gen.c:      remove old endianess stuff
15886         * src/pic/gen.c:        remove old endianess stuff
15887         * src/pic/genarith.c:   remove old endianess stuff
15888         * src/pic/glue.c:       fix endianess check
15889         * src/pic16/gen.c:      remove old endianess stuff
15890         * src/pic16/genarith.c: remove old endianess stuff
15891         * src/pic16/glue.c:     fix endianess check
15892         * src/xa51/gen.c:       remove old endianess stuff
15893         * src/z80/gen.c:        fix endianess check
15894         * src/SDCCglue.c:       fix endianess check
15895         * src/ds390/peeph.def: fix bug 700036
15896
15897 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
15898
15899         * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
15900         * src/configure: find appropriate data-types on host for SDCC's int and long
15901         * src/configure.in: find appropriate data-types on host for SDCC's int and long
15902         * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
15903         * src/xa51/gen.c: use %d, not %ld for 4 byte variables
15904
15905 2003-03-07    <johan AT balder>
15906
15907         Just a big NOOP:
15908                 some minor cleanups before the big shot
15909                 OP_DEFS and OP_USES now use Kevin's protection
15910                 new option --nolabelopt
15911
15912         * src/SDCCBBlock.c:
15913         * src/SDCCast.c,:
15914         * src/SDCCcflow.c:
15915         * src/SDCCcse.c:
15916         * src/SDCCicode.c:
15917         * src/SDCCicode.h:
15918         * src/SDCClabel.c:
15919         * src/SDCCloop.c:
15920         * src/SDCCmain.c:
15921         * src/ds390/ralloc.c:
15922         * src/mcs51/ralloc.c:
15923         * src/pic/ralloc.c:
15924         * src/xa51/ralloc.c:
15925         * src/z80/ralloc.c:
15926
15927 2003-03-06  Bernhard Held <bernhard AT bernhardheld.de>
15928
15929         * src/pic/pcode.c (get_op): fix 64 bit warnings
15930         * src/pic/pcode.c (pCode2str): fix 64 bit warnings
15931         * src/SDCChasht.c (newHashTable): fix 64 bit warnings
15932         * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
15933         * support/regression/tests/malloc.c: fix 64 bit warnings
15934
15935 2003-03-04  Bernhard Held <bernhard AT bernhardheld.de>
15936
15937         * src/mcs51/gen.c (genMinus): fixed bug 696436
15938
15939 2003-03-02  Borut Razem <borut.razem AT siol.net>
15940
15941         * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
15942
15943 2003-02-26  Bernhard Held <bernhard AT bernhardheld.de>
15944
15945         * configure.in: test for mkstemp
15946         * sdccconf_in.h: add HAVE_MKSTEMP
15947
15948 2003-02-24  Bernhard Held <bernhard AT bernhardheld.de>
15949
15950         * device/include/ctype.h: removed warning while using --stack-auto
15951         * device/include/malloc.h: removed warning while using --stack-auto
15952         * device/include/string.h: removed warning while using --stack-auto
15953
15954 2003-02-23  Borut Razem <borut.razem AT siol.net>
15955
15956         * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
15957         because NDEBUG is defined (see man assert)
15958         * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
15959
15960 2003-02-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15961
15962         * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
15963         * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
15964
15965 2003-02-18  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15966
15967         * src/SDCCpeeph.c: added peephole conditions testing for same arguments
15968         * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
15969
15970 2003-02-18    <johan AT balder>
15971
15972         * as/mcs51/asmain.c (asmbl): module can start with a digit
15973         * as/z80/asmain.c (asmbl): module can start with a digit
15974
15975 2003-02-16  Bernhard Held <bernhard AT bernhardheld.de>
15976
15977         * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
15978         * src/asm.c: fix pipe() for Mingw32
15979
15980 2003-02-15  Bernhard Held <bernhard AT bernhardheld.de>
15981
15982         * src/SDCCglue.h: make tmpfileNameSet available for preOutName
15983         * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
15984         make -V work again; --c1mode reads now from stdin
15985         * doc/sdccman.lyx: added --c1mode
15986         * support/Util/SDCCerr.c: new messages for c1 mode
15987         * support/Util/SDCCerr.h: new messages for c1 mode
15988         * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
15989
15990 2003-02-15    <johan AT balder>
15991
15992         * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
15993
15994 2003-02-14  Bernhard Held <bernhard AT bernhardheld.de>
15995
15996         * doc/sdccman.lyx: Environment variables, -o and other minor things
15997
15998 2003-02-14    <johan AT balder>
15999
16000         * src/xa51/main.c: before anyone really tries to use it :)
16001
16002         * Install doc's in share/sdcc/doc
16003         * removed some obsolete files
16004         * Do a proper make distclean and uninstall
16005         M Makefile.common.in
16006         R sdccbuild.sh
16007         M as/Makefile
16008         M device/include/Makefile.in
16009         M device/lib/Makefile.in
16010         M doc/sdccman.lyx
16011         M link/Makefile
16012         M sim/ucsim/doc/Makefile.in
16013         M src/clean.mk
16014         R src/avr/peeph.rul
16015         R src/xa51/peeph.rul
16016         M support/cpp2/Makefile.in
16017         M support/makebin/Makefile
16018
16019
16020 2003-02-13  Bernhard Held <bernhard AT bernhardheld.de>
16021
16022         * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
16023
16024 2003-02-10  Borut Razem <borut.razem AT siol.net>
16025
16026         * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
16027         support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
16028         * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
16029         device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
16030         support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
16031         src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
16032         src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
16033         src/z80/Makefile.bcc: Borland Makefile cleanup
16034         * as/z80/Makefile.bcc: Added Borland Makefile
16035         * support/cpp2/borland.h: Removed
16036
16037 2003-02-10  Bernhard Held <bernhard AT bernhardheld.de>
16038
16039         * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
16040         * src/SDCC.lex: new pragma NOIV
16041         * src/SDCCglobl.h: new pragma NOIV
16042         * src/SDCCmem.c: new pragma NOIV
16043
16044 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
16045
16046         * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
16047
16048 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
16049
16050         * src/SDCCmain.c: signal handling is switched off by --debug
16051         * doc/Makefile: small fix for install; use clean.mk again
16052         * doc/clean.mk: clean *.pdf and *.html too
16053
16054 2003-02-08  Bernhard Held <bernhard AT bernhardheld.de>
16055
16056         * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
16057         * device/lib/printfl.c: fix a ds390 bug by making it portable
16058         * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
16059         * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
16060         * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
16061         * debugger/mcs51/cmd.c: converted multi-line string literals
16062         * sim/ucsim/globals.cc: converted multi-line string literals
16063         * src/SDCCmain.c: introduced signal handler to remove temp files
16064         * doc/Makefile: small tweaks, implement clean
16065         * doc: removed generated files
16066
16067 2003-02-05  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16068
16069         * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
16070         patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
16071         Address Record is not correctly generated for DS390."
16072
16073 2003-02-02  Borut Razem <borut.razem AT siol.net>
16074
16075         * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
16076         * as/mcs51/asm.h: fixed compilation with Borland C
16077         * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
16078         * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
16079         * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
16080         * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
16081         src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
16082         src/z80/Makefile.bcc: delete $(LIB) only if exist
16083         * src/Makefile.bcc, src/pic/Makefile.bcc:  fixed compilation with Borland C
16084
16085 2003-02-02  Bernhard Held <bernhard AT bernhardheld.de>
16086
16087         * device/include/malloc.h: introduced NULL
16088         * device/include/string.h: introduced NULL
16089         * device/include/stdlib.h: introduced NULL
16090         * device/lib/_memcpy.c: removed NULL
16091         * device/lib/_strcat.c: removed NULL
16092         * device/lib/_strchr.c: removed NULL
16093         * device/lib/_strcmp.c: removed NULL
16094         * device/lib/_strcpy.c: removed NULL
16095         * device/lib/_strcspn.c: removed NULL
16096         * device/lib/_strlen.c: removed NULL
16097         * device/lib/_strncat.c: removed NULL
16098         * device/lib/_strncmp.c: removed NULL
16099         * device/lib/_strncpy.c: removed NULL
16100         * device/lib/_strpbrk.c: removed NULL
16101         * device/lib/_strrchr.c: removed NULL
16102         * device/lib/_strspn.c: removed NULL
16103         * device/lib/_strstr.c: removed NULL
16104         * device/lib/_strtok.c: removed NULL
16105         * device/lib/malloc.c: removed NULL, include own header
16106
16107 2003-02-02    <johan AT balder>
16108
16109         * 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
16110         * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
16111         * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
16112         * src/z80/gen.c (genZ80Code): added c-lines in asm comments
16113         * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
16114         * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
16115
16116 2003-02-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16117
16118         * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
16119         area 'DATA'"
16120
16121 2003-02-01    <johan AT balder>
16122
16123         * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
16124
16125 2003-01-31    <johan AT CP255758-A>
16126
16127         * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
16128
16129 2003-01-30    <johan AT balder>
16130
16131         * src/SDCCBBlock.c: automatic bug detection
16132         * src/SDCCicode.c: automatic bug detection
16133
16134 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16135
16136         * src/SDCCglobl.h:   now --xram-size 0 works
16137         * src/SDCCmain.c:    now --xram-size 0 works
16138
16139 2003-01-29    <johan AT balder>
16140
16141         * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
16142
16143 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16144
16145         * as/mcs51/aslink.h: Added options --xram-size and --code-size
16146         * as/mcs51/lkdata.c: Added options --xram-size and --code-size
16147         * as/mcs51/lkmain.c: Added options --xram-size and --code-size
16148         * as/mcs51/lkmem.c:  Added options --xram-size and --code-size
16149         * src/SDCCglobl.h:   Added options --xram-size and --code-size
16150         * src/SDCCmain.c:    Added options --xram-size and --code-size
16151
16152 2003-01-28  Bernhard Held <bernhard AT bernhardheld.de>
16153
16154         * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
16155         * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
16156
16157 2003-01-27    <johan AT balder>
16158
16159         * src/SDCC.y: fixed bug #613764
16160
16161 2003-01-26    <johan AT balder>
16162
16163         * src/SDCClrange.c:  fixed Bernhard's "char * code ptr = &c"
16164         * src/SDCCsymt.h: fixed bug #673374
16165         * src/SDCCglue.c: fixed bug #661910
16166         * src/SDCCast.c: fixed bug #458099 and 673374
16167
16168 2003-01-26  Bernhard Held <bernhard AT bernhardheld.de>
16169
16170         * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
16171         * as/mcs51/strcmpi.h: added
16172         * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
16173         * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
16174         * as/mcs51/asmain.c: strcmpi -> as_strcmpi
16175         * as/mcs51/assym.c: strcmpi -> as_strcmpi
16176         * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
16177         * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
16178         * as/mcs51/lksym.c: strcmpi -> as_strcmpi
16179         * as/mcs51/Makefile.aslink: new module strcmpi
16180         * as/mcs51/Makefile.asx8051: new module strcmpi
16181         * as/mcs51/Makefil.bcc: new module strcmpi
16182         * as/mcs51/Makefile.in: new module strcmpi
16183         * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
16184
16185 2003-01-26    <johan AT balder>
16186
16187         * src/SDCCglue.c: reverted back to 1.124
16188         * src/SDCCast.c: reverted back to 1.156
16189         * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
16190
16191 2003-01-25    <johan AT balder>
16192
16193         * src/SDCCglue.c: A better fix for bug #661910
16194         * src/SDCCast.c: A better fix for bug #661910
16195         * src/SDCCglue.c (emitRegularMap): That was a little too efficient
16196
16197 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
16198
16199         * src/Makefile.in: remove spawn.o
16200         * src/SDCCmain.c: remove spawn.h
16201         * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
16202         * src/spawn.c: removed
16203         * src/spawn.h: removed
16204         * support/regression/ports/ds390/spec.mk: link with -r
16205
16206 2003-01-24    <johan AT CP255758-A>
16207
16208         * src/ds390/gen.c (aopOp): fixed bug #667458
16209         * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
16210         * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
16211         (createIvalCharPtr): an ival doesn't always have a storage class anymore
16212
16213 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
16214
16215         * src/mcs51/peeph.def: better assembler identation by Frieder
16216         * src/mcs51/gen.c: better assembler identation by Frieder
16217
16218 2003-01-22  Bernhard Held <bernhard AT bernhardheld.de>
16219
16220         * as/z80/string.h: removed for gcc 3.2
16221         * support/makebin/makebin.c: #include <string.h> for gcc 3.2
16222         * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
16223
16224 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
16225
16226         * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
16227         * src/SDCCpeeph.c (replaceRule): fix bug #663503
16228         * support/regression/Makefile: separate temp files for ports
16229         * support/regression/generate-cases.py: separate temp files for ports
16230         * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
16231         * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
16232
16233 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
16234
16235         * moved tinitalk to device/examples/ds390
16236
16237 2003-01-14  Bernhard Held <bernhard AT bernhardheld.de>
16238
16239         * as/mcs51/lkmem.c: rflag is for DS390
16240         * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
16241         * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
16242                          (linkEdit): move mem- and map-files the same way as ihx-files
16243         * src/z80/main.c (_setDefaultOptions): removed --generic
16244         * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
16245         * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
16246         * src/pic/glue.c (picglue): --c1mode works again
16247         * src/pic16/glue.c (pic16glue): --c1mode works again
16248         * src/asm.c (printCLine): fix #660034
16249
16250 2003-01-13  Bernhard Held <bernhard AT bernhardheld.de>
16251
16252         * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
16253         * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
16254         * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
16255         * as/mcs51/lkmem (summary): better fix for sp problem
16256         * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
16257         * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
16258         * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
16259                                               remove --stack-after-data
16260
16261 2003-01-12  Bernhard Held <bernhard AT bernhardheld.de>
16262
16263         * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
16264         * src/SDCCutil.c (join): ugly bug: missing '\0'
16265         * as/mcs51/lkmem.c (summary): sp on address 7 is safe
16266
16267 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
16268
16269         * src/SDCCmain.c (assemble, linkEdit): preparations for -o
16270         * src/port.h: typo
16271         * src/pic/main.c (_asmCmd): gpasm supports -o
16272         * src/z80/main.c: more general macros
16273         * device/lib/Makefile.in: remove intermediate files
16274
16275 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
16276
16277         * .version: Bumped version number to 2.3.3
16278         * src/SDCCBBlock.c: new option -o
16279         * src/SDCCglobl.h: new option -o
16280         * src/SDCCglue.c: new option -o
16281         * src/SDCCmain.c: new option -o
16282         * src/asm.c: new option -o
16283         * src/ds390/main.c: new option -o
16284         * src/pic/glue.c: new option -o
16285         * src/pic/pcode.c: new option -o
16286         * src/pic/ralloc.c: new option -o
16287         * src/pic16/glue.c: new option -o
16288         * src/pic16/pcode.c: new option -o
16289         * src/pic16/ralloc.c: new option -o
16290         * src/z80/main.c: new option -o
16291         * device/lib/Makefile.in: use -o
16292         * support/regression/ports/ds390/spec.mk: use -o
16293         * support/regression/ports/gbz80/spec.mk: use -o
16294         * support/regression/ports/mcs51/spec.mk: use -o
16295         * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
16296         * support/regression/ports/z80/spec.mk: use -o
16297         * support/regression/ports/ucz80/spec.mk: use -o
16298         * support/regression/ports/xa51/spec.mk: use -o
16299         * support/regression/fwk/lib/timeout.c: fix usage string
16300
16301 2003-01-09  Bernhard Held <bernhard AT bernhardheld.de>
16302         * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
16303
16304 2003-01-07    <johan AT balder>
16305
16306         * src/SDCCast.c (decorateType): fixed bug #600035
16307
16308 2003-01-07  Bernhard Held <bernhard AT bernhardheld.de>
16309         * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
16310         * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
16311         * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
16312         * src/pic/pcode.c: outcommented unused variable to remove warnings
16313         * src/pic/ralloc.c: outcommented unused variable to remove warnings
16314
16315 2003-01-06    <karl AT turbobit.com>
16316         * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
16317         regression tests.
16318
16319 2003-01-06    <johan AT balder>
16320
16321         * src/SDCCicode.c: fixed array add
16322
16323 2002-01-05  Bernhard Held <bernhard AT bernhardheld.de>
16324         * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
16325         * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
16326
16327 2003-01-04    <johan AT balder>
16328
16329         * src/SDCCval.c (getNelements): fixed the initialized array of structures
16330
16331 2002-12-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16332         * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
16333
16334 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
16335         * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
16336         * support/regression/tests/bug-524697.c: fit mem usage into 8032
16337
16338 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
16339         * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
16340
16341 2002-12-27  Bernhard Held <bernhard AT bernhardheld.de>
16342         * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
16343
16344 2002-12-26  Bernhard Held <bernhard AT bernhardheld.de>
16345         * src/mcs51/main.c: removed {bindir}{sep} from aslink
16346
16347 2002-12-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16348
16349         * in /sdcc/as/mcs51/ changed these files in order to create an
16350         aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
16351         lkmain.c.  Also added: lkmem.c and lkaomf51.c.  Changed the
16352         following files to include the previous two files: aslink.dsp,
16353         Makefile.aslink, Makefile.bcc, and Makefile.in.
16354
16355         * Changed /sdcc/src/SDCCmain.c so it creates files with extension
16356         .adb instead of .cdb
16357
16358 2002-11-09  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16359
16360         * /sdcc/as/mcs51/lklist.c: Now reports memory usage using the
16361         value from option --iram-size.
16362
16363 2002-09-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16364
16365         * /sdcc/as/mcs51/lklist.c: added boundary check before using
16366         dram[] array.
16367
16368 2002-09-18    <wiml AT hhhh.org>
16369
16370         * SDCClrange.h: exposed setFromRange() and setToRange()
16371         * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
16372           packRegsForAccUse() (bug 542397)
16373         * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
16374           multiple times and emitting the fetch operations more than once
16375           added aopGetUsesAcc() function to allow binary operators to
16376           fetch their operands in the correct order; made genMinus() emit
16377           compact code for X = LITERAL - Y
16378
16379 2002-09-00  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16380         * /sdcc/as/mcs51/lklist.c: Fixed incorrect number of parameters to
16381         sprintf() in line 1267.
16382
16383 2002-09-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16384         * /sdcc/src/SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
16385         like ports.
16386
16387 2002-09-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16388         Changes to aslink (All the changes are marked with 'JCF'):
16389
16390         * /sdcc/as/mcs51/aslink.h: External definition of sflag and
16391         summary().
16392
16393         * /sdcc/as/mcs51/lkarea.c: Computes the size of area BSEG_BYTES from
16394         area BSEG.  Also moves, if possible, the DATA area down into the internal
16395         ram so more space is available.
16396
16397         * /sdcc/as/mcs51/lkdata.c: Definition of memory summary output flag
16398         sflag.
16399
16400         * /sdcc/as/mcs51/lklist.c: For the BSEG area report the size in bits,
16401         not bytes.  Function summary() which creates a memory usage summary
16402         file with extension .mem.  Reports of overlaping stack and small stack
16403         size.  If the space for the stack is less than 16 bytes aslink trows a
16404         warning.
16405
16406         * /sdcc/as/mcs51/lkmain.c: Creation of some of the default areas for
16407         the 8051.  Option 'y' for memory summary output file.
16408
16409         Changes to sdcc (All the changes are marked with 'JCF'):
16410
16411         * /sdcc/src/SDCCglobl.h: External definition of RegBankUsed[4].
16412
16413         * /sdcc/src/SDCCglue.c:  If a register bank is used, creates an
16414         overlaying area for it (uses RegBankUsed[4]).
16415
16416         * /sdcc/src/SDCCmain.c: Definition RegBankUsed[4]; marks register
16417         bank zero as used by default.  By default aslink locates the stack
16418         (equivalent to --stack-after-data).  Pass option 'y' to aslink for
16419         the creation of the .mem file.  Delegates the allocation of data area
16420         to aslink (it is not longer 0x30 by default).  If --stack-loc passes
16421         the begining of the stack area to aslink.
16422
16423         * /sdcc/src/SDCCmem.c:  If a register bank is used, marks it so
16424         glue() in SDCCglue.c creates an area for it.
16425
16426 2002-09-03  Borut Razem <borut.razem AT siol.net>
16427         * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
16428         sdcc/src/pic/glue.c:
16429         introduced atexit() handler for teporay files removal in case of
16430         errors, assertions, ...
16431
16432 2002-08-29  Borut Razem <borut.razem AT siol.net>
16433         * sdcc/support/cpp2/auto-host_vc_in.h:
16434         re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
16435         with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
16436         Maybe there is a similar problem with BORLANDC? It should be checked!
16437
16438         * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
16439         corrected improper use of assert: the assignment to clr variable was done inside the assert.
16440         In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
16441         was not executed, and the compiler (cl) launched a warning:
16442         ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
16443
16444 2002-08-28  Bernhard Held <bernhard AT bernhardheld.de>
16445         * src/SDCCglue.c (printIvalArray): iterative calculation of array length
16446
16447 2002-08-28  Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
16448         * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
16449
16450         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
16451           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
16452           sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
16453           sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
16454           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
16455           sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
16456           sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
16457         - added Release configuration in VS projects
16458         - review of compiler an linker options
16459         - VC .exe files are generated in bin_vc directory, not to interfere
16460           with binaries generated from other projects (cygwin, mingw, bcc ...)
16461
16462         * sdcc/src/yacc.dsp: added
16463
16464         * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
16465         added - genarate sdcc_vc.h using sdcc_vc_in.h as template
16466         and insert the version number definitions from .version
16467
16468         * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
16469
16470         * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
16471         added - genarate auto-host.h using auto-host_vc_in.h as template
16472
16473         * sdcc/sdcc_vc.h,
16474         removed from CVS, generated automatically
16475
16476 2002-08-25  Bernhard Held <bernhard AT bernhardheld.de>
16477         * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
16478
16479 2002-08-11  Borut Razem <borut.razem AT siol.net>
16480         * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
16481
16482 2002-08-10  Borut Razem <borut.razem AT siol.net>
16483         * src/SDCCmain.c (main):
16484         file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
16485         platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
16486         The consequence was that some temporary files were not removed.
16487
16488         * src/SDCCglue.c:
16489         unification of code in functions tempfilename() and tempfile():
16490         function tempnam() is defined in Visual Studio 6.0 and .NET
16491
16492         * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
16493
16494         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
16495           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
16496         - removed compiler command line option /WX: Treats all warnings as errors
16497         - update a list of source files, included into the project
16498
16499         * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
16500           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
16501         changed project type to Generic Project so that can be correcly converted to VS.NET project
16502
16503         * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
16504
16505         * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
16506
16507         * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
16508
16509         * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
16510         added return 0 statements after assert() to make compiler happy
16511
16512         * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
16513         added newline in the def file to keep MSC compiler satisfied
16514
16515         * sdcc/src/z80/gen.c:
16516         - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
16517           so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
16518         - solved MSC error in function aopDump()
16519
16520         * sdcc_vc.h: define PREFIX as "\\sdcc"
16521
16522 2002-07-18  Bernhard Held <bernhard AT bernhardheld.de>
16523         * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
16524
16525 2002-06-22  Scott Dattalo <scott AT dattalo.com>
16526         * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
16527         - Rewrote the register banking algorithm.
16528         - Added pCode live-range analysis to registers (for now, only non-used and
16529         singly-used registers optimized away)
16530
16531         * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
16532
16533         * 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.
16534
16535 2002-05-10  Scott Dattalo <scott AT dattalo.com>
16536         * src/pic/*: Added support for multiplication. Fixed many,many bugs.
16537
16538 2002-04-22  Michael Hope  <michaelh AT vroom>
16539
16540         * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
16541
16542         * configure.in (DD_COPT): Added include support required for gbdk.
16543
16544         * .version: Bumped version number just to increase it.
16545
16546         * src/SDCCmain.c: Added -nostdinc to the default options.
16547
16548 2002-04-15  Michael Hope  <michaelh AT vroom>
16549
16550         * device/lib/z80/printf.c (sprintf): Added.
16551
16552         * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
16553
16554         * src/z80/peeph.def: Added transpose redundent load rule.
16555
16556         * src/z80/main.c: Added force callee saves for jaune.
16557
16558         * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
16559
16560         * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
16561
16562 2002-03-28  Johan Knol  <johan AT balder>
16563
16564         * src/SDCCval.c: fixed bug #532436
16565
16566 2002-03-14  Scott Dattalo <scott AT dattalo.com>
16567         * /src/port.h:
16568         Added "char *Processor" field to the port structure.
16569
16570         * /src/SDCCmain.c:
16571         Added -p option. Allows port dependent processor to be specified.
16572
16573         * all ports:
16574         Initialized the new field char *Processor field to NULL in all ports
16575
16576         * /src/pic/*:
16577         Compiler generated registers for interrupt context saving
16578         were not getting allocated.
16579
16580 2002-03-16  Sandeep Dutta  <sandeep AT ddi.com>
16581
16582         * /src/SDCCast.c:
16583         Fixed left shift. Will promote the left side of a left shift
16584         if a) left shifting more than size of operand or b) when assigned
16585         to something size > size of left side
16586
16587 2002-03-14  Scott Dattalo <scott AT dattalo.com>
16588         * src/pic/*
16589         tons of changes. Register allocation has been
16590         rewritten. Added customization for the various PICs. Flow
16591         analysis is restructured. ...
16592
16593         * src/pic/device.h:
16594         Added
16595
16596         * src/pic/device.c:
16597         Added. device.c is a PIC port hack to accomodate variations
16598         in PIC devices.
16599
16600 2002-03-13  Michael Hope  <michaelh AT vroom>
16601
16602         * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled.  Yeah.
16603
16604 2002-03-04  johanknol  <johanknol AT manik>
16605
16606         * /src/SDCCval.c: fixed
16607
16608         const unsigned char arr[][2] = { { 0, 1 } };
16609         t18.c:1: error: Initializer element is not constant
16610
16611 2002-03-04  bela  <bela AT manik>
16612
16613         * /device/include/mcs51reg.h:
16614         ds89c420 register definition update
16615
16616 2002-03-03    <johan AT FRIJA>
16617
16618         * support/Util/SDCCerr.c: did something, but don't no why anymore
16619
16620         * support/regression/tests/bug-524691.c: made it a little less shy
16621
16622         * src/SDCCast.c (decorateType): fixed bug #524697
16623
16624         * src/SDCCast.c: made some lineno improvements
16625
16626         * src/SDCCval.c (getNelements): changed warning to error
16627
16628         * src/SDCCglue.c (printIvalArray): changed warning to error
16629
16630         * src/SDCCicode.c: fixed a warning for mingw
16631
16632         * src/SDCCast.c (decorateType): fixed the << promotion for ops
16633
16634         * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
16635
16636 2002-03-02  Sandeep Dutta  <sandeep AT ddi.com>
16637
16638         * src/ds390/peeph.def:
16639         Added some more peephole rules
16640
16641         * src/ds390/gen.c: Various fixes & enhancements
16642
16643         * src/SDCClrange.c, src/SDCClrange.h:
16644         functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
16645
16646         * src/ds390/ralloc.c:
16647         various fixes & enhancements (ds390) specific
16648
16649         * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
16650         Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
16651         from rallocs.
16652
16653         * sdcc/src/SDCCcse.c: Better fix for bug # 514308
16654
16655 2002-03-02    <johan AT FRIJA>
16656
16657         * src/SDCCast.c (decorateType): fixed bug #524708
16658
16659         * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
16660
16661         * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
16662
16663 2002-03-01  Michael Hope  <michaelh AT vroom>
16664
16665         * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
16666
16667         * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
16668
16669 2002-03-01    <johan AT FRIJA>
16670
16671         * src/SDCCglue.c (printIvalPtr): fixed bug #524211
16672
16673         * src/SDCCast.c (decorateType): fixed bug #524209
16674
16675         * src/SDCCval.c (valNot): fixed bug #524195
16676
16677 2002-02-26    <johan AT balder>
16678
16679         * src/xa51/gen.c: fixed a warning
16680
16681         * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
16682
16683         * src/SDCCast.c (decorateType): fixed bug #522534
16684
16685 2002-02-23    <johan AT balder>
16686
16687         * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
16688
16689 2002-02-22    <johan AT balder>
16690
16691         * src/SDCCast.c: fixed bug #514865
16692
16693         * src/SDCCy.c ("SDCC.y"): fixed bug #516625
16694
16695 2002-02-21  Sandeep Dutta  <sandeep AT ddi.com>
16696
16697         * sdcc/src/SDCCloop.c:
16698         Previous fix was not good. basic blocks that have "break" or "return" are
16699         not really partof a loop , but live ranges used in these blocks should
16700         be live thru the entire loop, so set partOfLoop but don't add them to
16701         loop region
16702
16703 2002-02-21    <johan AT FRIJA>
16704
16705         * src/SDCCcse.c: fixed bug #514308
16706
16707 2002-02-20  Sandeep Dutta  <sandeep AT ddi.com>
16708
16709         * src/SDCCloop.c:
16710         Fixed BUG #519583. If a conditional block ended in a return/break
16711         statement inside a loop, it was not being considered part of the loop.
16712
16713         * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
16714
16715 2002-02-10  Karl Bongers <karl AT turbobit.com>
16716
16717         * debugger/*:
16718         Fixed up SDCDB debugger somewhat.  Updated debugger/README
16719         with lots of comments and notes.
16720
16721         * device/examples/test2.c:
16722         Fix bug, "red" variable not being initialized(compiler complained).
16723
16724         * device/examples/Makefile, examples/test3.c:
16725         Add Makefile in device/examples folder, compiles test3.c
16726         for use as a multiple module SDCDB test case.
16727
16728         * sim/ucsim/cmd.src/cmdset.cc:
16729         Took out debug printfs in ucsim "next" command.
16730
16731         * sim/ucsim/xa.src:
16732         Karl and Johan start ucsim XA support.  Most dissassembly working,
16733         about 75% emulation done(plenty of work remaining).
16734
16735         * sim/ucsim/z80.src:
16736         Add Z80 support to ucsim, add test-ucz80 regression test,
16737         notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
16738         Notice z80 compiler fails on examples/test3.c/crc code.
16739
16740 2002-01-30  Sandeep Dutta  <sandeep AT ddi.com>
16741
16742         * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
16743         Added support for --parms-in-bank1
16744
16745         * src/ds390/peeph.def:
16746         added a few more peephole optimzations
16747
16748         * src/ds390/main.c:
16749         1) added __builtin_inp & __builtin_outp used to read in data of given length
16750            from a memory mapped port
16751         2) added __builtin_memcmp
16752         3) added __builtin_swapw swap bytes of a short
16753
16754         * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
16755         1) handle multiple send & receives from register bank1
16756         2) ralloc can now allocate DPTR1 to some liveRanges
16757
16758         * src/SDCCsymt.c, src/SDCCsymt.h:
16759         changes to handle multiple sends & receives
16760
16761         * src/SDCCptropt.h:
16762         added some pointer arithmetic optimization
16763
16764         * src/SDCCptropt.c:
16765         added some pointer arithmetic optimizations but not stable yet so not
16766         called from anywhere (will get this working shortly)
16767
16768         * src/SDCCopt.c: fixed for multiple sends & receives
16769
16770         * src/SDCCmain.c:
16771         1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
16772         2) preprocessing done AFTER port->finalizeoptions . This allows ports to
16773            set preprocessor defines (depending on options)
16774
16775         * src/SDCCicode.c, src/SDCCicode.h:
16776         changes made to handle multiple sends & receives
16777
16778         * src/SDCCglobl.h:
16779         Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
16780
16781         * src/SDCCcse.c, src/SDCCcse.h:
16782         added function findbackward def (to be used in upcoming optimization)
16783
16784         * src/SDCCcflow.c, src/SDCCcflow.h:
16785         added function returnAtEnd - to determine if a basic block terminates with
16786         a RETURN iCode
16787
16788         * src/SDCCast.c, src/SDCCast.h:
16789         added option parms-in-bank1
16790
16791         * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
16792         * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
16793         * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
16794         adjusted for --parms-in-bank1 option
16795
16796         * device/include/string.h:
16797         donot redefine "reentrant" keyword
16798
16799         * device/include/ds80c390.h: Added some more SFRs
16800
16801 2002-01-28  Bernhard Held  <bernhard AT bernhardheld.de>
16802
16803         * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
16804
16805 2002-01-26  Bernhard Held  <bernhard AT bernhardheld.de>
16806
16807         * src/SDCCast.c (funcOfType): fix usage of double --float-reent
16808
16809 2002-01-22  Bernhard Held  <bernhard AT bernhardheld.de>
16810
16811         * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
16812
16813 2002-01-18  Paul Stoffregen  <paul AT pjrc.com>
16814
16815         * Added --xram-movc option
16816
16817 2002-01-13  Bernhard Held  <bernhard AT bernhardheld.de>
16818
16819         * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
16820
16821 2002-01-11  Johan Knol
16822
16823         * Added math lib of Jesus Calvino-Fraga
16824
16825 2002-01-08  Bernhard Held  <bernhard AT bernhardheld.de>
16826
16827         * src/SDCCmain.c (processFile): fix processing of ../../src.c
16828         * support/regression/Makefile: new target test-mcs51-stack-auto
16829         * support/regression/ports/mcs51-stack-auto/spec.mk: added
16830
16831 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
16832
16833         * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
16834
16835 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
16836
16837         * support/regression/ports/mcs51/support.c: correct setup of timer / UART
16838
16839 2002-01-03  Bernhard Held  <bernhard AT bernhardheld.de>
16840
16841         * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
16842
16843         * src/SDCCglue.h: add definition for printIvalChar()
16844
16845 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
16846
16847         * src/SDCCast.c: fix #498138 by Johan
16848
16849         * src/SDCCglue.c: fix #498138 by Johan
16850
16851 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
16852
16853         * support/regression/Makefile: fix clean
16854
16855         * support/regression/ports/ds390/support.c: fix transmission of last character
16856
16857 2001-12-29  Sandeep Dutta  <sandeep AT ddi.com>
16858
16859         * /sdcc/src/ds390/gen.c:
16860         a) improved computing address of stack variable
16861         b) took out some #if 0 code
16862         c) improved parmBytes adjustment
16863         d) improved genPlusIncr & genMinusIncr
16864         e) genCmp could generate bad code (when left assigned to DPTR)
16865         f) Fixed bug in hasInc
16866
16867         * /sdcc/src/ds390/ralloc.c:
16868         a) packRegsForSupport could mess up live information (Fixed)
16869         b) packRegsDPTRuse could be incorrect for left & right shift
16870
16871         * /sdcc/src/mcs51/ralloc.c:
16872         packRegsForSupport could mess up the live information (Fixed)
16873
16874         * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
16875
16876         * /sdcc/src/SDCCast.c:
16877         can reverse a loop even if function call is present as long
16878         as the loop control variable is local & is not passed as parameter
16879
16880 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
16881
16882         * /sdcc/ChangeLog: *** empty log message ***
16883
16884         * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
16885         More builtin function additions for TININative
16886
16887         * /sdcc/src/ds390/ralloc.c:
16888         Had broken the regression testsuite
16889
16890         * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
16891
16892         * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
16893         Added funcattr hasStackParms will be set for reentrant functions when there
16894         are paramteres on the stack, this helps in minimizing frame pointer generation
16895         typeFromStr can handle function pointers now
16896
16897         * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
16898         *** empty log message ***
16899
16900 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
16901
16902         * /src/ds390/gen.c, /src/ds390/main.c:
16903         More builtin function additions for TININative
16904
16905         * /src/ds390/ralloc.c:
16906         Had broken the regression testsuite
16907
16908         * /src/SDCCast.c: Fixed a bug in dumptree
16909
16910         * /src/SDCCsymt.c, /src/SDCCsymt.h:
16911         Added funcattr hasStackParms will be set for reentrant functions when there
16912         are paramteres on the stack, this helps in minimizing frame pointer generation
16913         typeFromStr can handle function pointers now
16914
16915         * /doc/builtins.txt, /doc/TININative.txt:
16916         *** empty log message ***
16917
16918
16919 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
16920
16921         * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
16922         ALPHA version for -mTININative
16923
16924         * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
16925         updated to reflect changes in the port structure
16926
16927         * /src/port.h:
16928         added function do_assemble (similar to do_link) if non-null this function
16929         will be called to do assembly (-mTININative) requires a multi command
16930         assembly
16931         added function genAssemblerEnd will be called to generate assembler Epilogue
16932
16933         * /src/SDCCsymt.c:
16934         added _JavaNative to debug info printing
16935
16936         * /src/SDCCmain.c: added option --tini-libid
16937         added port->do_assemble function (-mTININative) has a multi command assemble
16938
16939         * /src/SDCCglue.c: Disabled "constExpr" check
16940         added port->genAssemblerEnd function
16941
16942         * /src/SDCCglobl.h: Added option --tini-libid value
16943
16944         * /src/SDCCast.h:
16945         tookout optimizeCompare from the header (has no external references)
16946
16947         * /src/SDCCast.c: made one more function "static"
16948
16949 2001-12-23  Michael Hope  <michaelh AT juju.net.nz>
16950
16951         * src/z80/mappings.i: Added z80asm support.
16952
16953         * src/z80/main.c: Added z80asm support on --asm=z80asm
16954
16955         * src/z80/gen.c: Fixed asm portability issues.
16956
16957         * src/asm.c (tvsprintf): Removed old code, added 'N' for function name.  For extern support.
16958
16959         * src/SDCCglue.c (printExterns): Added global/extern split.
16960
16961 2001-12-17  Bernhard Held  <bernhard AT bernhardheld.de>
16962
16963         * support/regression/Makefile: added test for mcs51 model large
16964
16965         * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
16966
16967         * support/regression/ports/gbz80/spec.mk: added -mgbz80
16968
16969 2001-12-05  Michael Hope  <michaelh AT juju.net.nz>
16970
16971         * src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.
16972
16973 1904-01-06  Michael Hope  <michaelh AT juju.net.nz>
16974
16975         * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
16976
16977         * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
16978
16979 2001-12-02  Bernhard Held  <bernhard AT bernhardheld.de>
16980
16981         * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
16982
16983         * support/regression/tests/simplefloat.c: Port to mcs51.
16984
16985 2001-11-25  Michael Hope  <michaelh AT juju.net.nz>
16986         * support/regression/tests/bug-485362.c: Added.
16987
16988         * support/regression/tests/simplefloat.c (testDivNearOne): Added.
16989
16990         * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
16991
16992         * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
16993
16994         * src/z80/gen.c (aopDump): Added a dump function.
16995
16996 2001-11-25  Bernhard Held  <bernhard AT bernhardheld.de>
16997         * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
16998
16999         * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
17000
17001         * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
17002
17003         * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
17004
17005         * sim/ucsim/s51.src/uc390cl.h: Work in progress.
17006
17007         * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
17008
17009         * support/regression/fwk/lib/testfwk.c: Run with tinibios.
17010
17011         * support/regression/ports/mcs51/spec.mk: Fine tuninig.
17012
17013         * support/regression/ports/ds390/support.c: Use tinibios.
17014
17015         * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
17016
17017 2001-11-23  Michael Hope  <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
17018
17019         * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
17020         (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
17021
17022         * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
17023
17024         * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
17025
17026 2001-11-18  Michael Hope  <michaelh AT juju.net.nz>
17027
17028         * src/z80/gen.c (genCmp): Fixed compare on unsigned.
17029
17030         * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
17031         (packRegsForIYUse): Created and optimised.
17032
17033 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
17034
17035         * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
17036 2001-11-18  Bernhard Held  <bernhard AT bernhardheld.de>
17037
17038         * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
17039
17040         * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
17041
17042         * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
17043
17044 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
17045
17046         * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
17047
17048         * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
17049
17050 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
17051
17052         * sdcc/sim/ucsim/globals.cc: New: IXRAM.
17053
17054         * sdcc/sim/ucsim/stypes.h: New: IXRAM.
17055
17056         * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
17057
17058 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
17059
17060         * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
17061         (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
17062         (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
17063
17064         * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
17065
17066         * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
17067         (genNotFloat): Added.
17068         (genUminusFloat): Added.
17069
17070         * device/lib/z80/Makefile: Added floating pt stubs.
17071
17072         * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
17073
17074         * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
17075
17076         * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
17077
17078 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
17079
17080         * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
17081
17082         * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
17083
17084         * sdcc/support/regression/Makefile: Add port ds390.
17085
17086         * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
17087
17088         * sdcc/support/regression/ports/z80/spec.mk: Minor change.
17089
17090         * sdcc/support/regression/ports/ds390/spec.mk: Added.
17091
17092         * sdcc/support/regression/ports/ds390/support.c: Added.
17093
17094         * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
17095
17096         * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
17097
17098         * sdcc/support/regression/fwk/lib/timeout.c: Paste.
17099
17100 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
17101
17102         * device/include/malloc.h: Added z80 and gbz80 support.
17103
17104         * device/lib/gbz80/heap.s: Added.
17105
17106         * device/lib/z80/heap.s: Added.
17107
17108         * device/lib/malloc.c: Added z80 and gbz80 support.
17109
17110         * support/regression/tests/malloc.c (testMalloc): Added.
17111
17112         * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
17113
17114         * support/regression/tests/bug-478094.c: Added.
17115
17116         * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
17117
17118 2001-11-04  Bernhard Held  <bernhard AT bernhardheld.de>
17119
17120         * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
17121
17122         * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
17123
17124         * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
17125
17126         * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
17127
17128         * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
17129
17130 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
17131
17132         * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
17133
17134 2001-11-03  Michael Hope  <michaelh AT juju.net.nz>
17135
17136         * support/regression/tests/bug-477927.c: Added.
17137
17138         * src/z80/peeph.def: Added minor rules.
17139
17140         * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
17141
17142         * src/z80/peeph.def: Added jump optimisation modification.
17143
17144 2001-11-01  Michael Hope  <michaelh AT juju.net.nz>
17145
17146         * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
17147
17148 2001-10-30  Michael Hope  <michaelh AT juju.net.nz>
17149
17150         * support/regression/tests/funptrs.c: Added.
17151
17152 2001-10-29  Michael Hope  <michaelh AT juju.net.nz>
17153
17154         * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
17155
17156 2001-10-28  Michael Hope  <michaelh AT juju.net.nz>
17157
17158         * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
17159
17160         * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
17161
17162         * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
17163         (movLeft2ResultLong): Created.
17164
17165         * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
17166         (joinPushes): Added.  Joins two char pushes into a word push.
17167
17168 2001-10-27  Michael Hope  <michaelh AT juju.net.nz>
17169
17170         * support/cpp2/Makefile.in (install): Added creation of dest dir.
17171
17172         * support/makebin/Makefile (install): Added creation of dest dir.
17173
17174 2001-10-24 Karl Bongers <karl AT turbobit.com>
17175
17176         * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
17177
17178 2001-10-21  Michael Hope  <michaelh AT juju.net.nz>
17179
17180         * src/z80/ralloc.c: Turned off faulty pack for one use.
17181
17182         * src/z80/peeph-gbz80.def: Removed redundent restart options.
17183
17184         * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
17185
17186 2001-10-21  Bernhard Held  <bernhard AT bernhardheld.de>
17187
17188         * support/regression/Makefile: Improved clean
17189
17190         * support/regression/ports/gbz80/spec.mk: Added clean
17191
17192         * support/regression/ports/host/spec.mk: Added clean
17193
17194         * support/regression/ports/z80/spec.mk: Added clean
17195
17196         * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
17197
17198         * support/regression/ports/mcs51/timeout.c: little improvements
17199
17200 2001-10-17  Michael Hope  <michaelh AT juju.net.nz>
17201
17202         * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
17203
17204         * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
17205
17206         * support/regression/generate-cases.py: Fixed up to use function pts correctly.
17207
17208 2001-10-16  Bernhard Held  <bernhard AT bernhardheld.de>
17209
17210         * support/regression/port/mcs51/spec.mk: add timeout for uCsim
17211
17212         * support/regression/port/mcs51/timeout.c: add timeout for uCsim
17213
17214 2001-10-13  Michael Hope  <michaelh AT juju.net.nz>
17215         * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
17216
17217         * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
17218
17219         * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
17220
17221         * src/mcs51/main.c (_linkCmd): Added bin path to command.
17222
17223         * src/SDCCmain.c (initValues): Added support for when it it called just to link.
17224
17225         * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
17226
17227         * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
17228
17229         * support/regression/tests/longor.c: Added.
17230
17231 2001-10-11  Bernhard Held  <bernhard AT bernhardheld.de>
17232
17233         * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
17234
17235         * as/mcs51/aslink.h: define PATH_MAX
17236
17237         * as/mcs51/asm.h: define PATH_MAX
17238
17239         * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
17240
17241         * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
17242
17243         * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
17244
17245         * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
17246
17247         * src/SDCCglobl.h: define PATH_MAX
17248
17249         * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
17250
17251         * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
17252
17253 2001-10-11  Michael Hope  <michaelh AT juju.net.nz>
17254
17255         * src/z80/gen.c (gencjneshort): Fixed
17256
17257         * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
17258
17259 2001-10-09  Michael Hope  <michaelh AT juju.net.nz>
17260
17261         * support/regression/tests/bug-469671.c: Added.
17262
17263         * src/z80/gen.c (shiftIntoPair): Fixed up warning.
17264
17265 2001-10-08  Michael Hope  <michaelh AT juju.net.nz>
17266
17267         * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
17268
17269         * src/z80/gen.c (genPlus): Fixed to work with extended stack.  Also fixed genMinus, genCmp.  genUMinus is still left.
17270
17271 2001-10-08  Bernhar Held  <bernhard AT bernhardheld.de>
17272
17273         * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
17274
17275         * src/device/lib/_mulint.c  : removed hint: nooverlay bug
17276
17277         * src/device/lib/_mullong.c : removed hint: nooverlay bug
17278
17279         * src/device/lib/_divuint.c : removed hint: nooverlay bug
17280
17281         * src/device/lib/_divulong.c: removed hint: nooverlay bug
17282
17283         * src/device/lib/_moduint.c : removed hint: nooverlay bug
17284
17285         * src/device/lib/_modulong.c: removed hint: nooverlay bug
17286
17287 2001-10-07  Michael Hope  <michaelh AT juju.net.nz>
17288
17289         * 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.
17290
17291         * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.
17292
17293         * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
17294
17295 2001-10-07    <johan AT FRIJA>
17296
17297         * device/lib/gets.c (gets): fixed the return value.
17298
17299 2001-10-06  Michael Hope  <michaelh AT juju.net.nz>
17300         * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
17301
17302         * 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.
17303
17304         * 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.
17305
17306         * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
17307
17308         * src/pic/gen.c: Removed Safe_strdup.
17309
17310         * configure.in: Added option to enable libgc support.
17311
17312         * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
17313         (bitVectUnion): Optimised.
17314         (bitVectIntersect): Optimised.
17315         (bitVectBitsInCommon): Optimised.
17316         (bitVectCplAnd): Optimised.
17317
17318         * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.
17319
17320 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
17321
17322         * src/SDCCmain.c: distinguish between assembler debug and plain options
17323
17324         * src/avr/main.c:   remove standard assembler options
17325
17326         * src/ds390/main.c: remove standard assembler options
17327
17328         * src/mcs51/main.c: remove standard assembler options
17329
17330         * src/port.h: removed "PENDING" comment
17331
17332 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
17333
17334         * src/device/lib/_mulint.c  : new, with assember functions
17335
17336         * src/device/lib/_mullong.c : new, with assember functions
17337
17338         * src/device/lib/_divuint.c : with assember functions
17339
17340         * src/device/lib/_divsint.c : with assember functions
17341
17342         * src/device/lib/_divulong.c: with assember functions
17343
17344         * src/device/lib/_divslong.c: with assember functions
17345
17346         * src/device/lib/_moduint.c : with assember functions
17347
17348         * src/device/lib/_modsint.c : with assember functions
17349
17350         * src/device/lib/_modulong.c: with assember functions
17351
17352         * src/device/lib/_modslong.c: with assember functions
17353
17354         * src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c
17355
17356         * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
17357
17358         * src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
17359                                       replaced _mululong.c and _mulslong.c by _mullong.c
17360
17361 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
17362
17363         * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
17364
17365 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
17366
17367         * src/SDCCglue.c: test, if win32api is available for MINGW
17368
17369 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
17370
17371         * src/SDCCsymt.c: no more _modifier in printTypeChain()
17372         * support/regression/tests/driverstruct.c: REENTRANT for mcs51
17373         * support/regression/ports/gbz80/spec.mk: removed GENERIC
17374         * support/regression/ports/host/spec.mk: removed GENERIC
17375         * support/regression/ports/mcs51/spec.mk: removed GENERIC
17376         * support/regression/ports/z80/spec.mk: removed GENERIC
17377
17378 2001-10-01  Michael Hope  <michaelh AT juju.net.nz>
17379
17380         * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
17381
17382         * support/regression/tests/bug-467035.c: Created.
17383
17384 2001-10-01    <johan AT FRIJA>
17385
17386         * src/SDCC.y: fixed bug #466586 part 1
17387
17388 2001-10-01  Johan Knol <johan.knol AT iduna.nl>
17389
17390         * SDCCicode.c: z80 has no generic pointers
17391         * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
17392
17393 2001-09-30  Michael Hope  <michaelh AT juju.net.nz>
17394
17395         * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
17396
17397 2001-09-29  Michael Hope  <michaelh AT juju.net.nz>
17398
17399         * Makefile (sdcc-libs): Added makebin to the list of standard targets.
17400
17401         * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
17402
17403 2001-09-25  Michael Hope  <michaelh AT juju.net.nz>
17404
17405         * configure.in: Fixed up so that ucsim is only configured once.
17406
17407         * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
17408
17409         * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
17410         (getPathDifference): As above.
17411
17412         * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.
17413
17414         * src/SDCCglue.c (tempfilename): Added function for pre-processor.
17415
17416 2001-09-23  Michael Hope  <michaelh AT juju.net.nz>
17417         * .version: Updated to 2.3.1
17418
17419         * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
17420         Added copyright header.
17421
17422         * src/SDCCmain.c: Shifted various functions into SDCCutil.c
17423         (assemble): Added support for macro based assembler commands.
17424         (linkEdit): Added support for macro based linker commands.
17425         (preProcess): Changed the pre-processor to use macros.
17426         (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
17427         (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
17428
17429         * device/lib/z80/crt0.s: Added module name for debugging.
17430
17431 2001-09-20  Michael Hope  <michaelh AT juju.net.nz>
17432
17433         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
17434
17435         * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
17436
17437         * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
17438
17439         * src/Makefile.in: Added SDCCmacro and SDCCutil
17440
17441 2001-09-19  Michael Hope  <michaelh AT juju.net.nz>
17442
17443         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
17444
17445 2001-09-16    <johan AT FRIJA>
17446
17447         * 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.
17448
17449 2001-09-15    <johan AT FRIJA>
17450
17451         * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
17452         * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
17453
17454 2001-09-11    <johan AT FRIJA>
17455
17456         * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
17457
17458 2001-09-10  Michael Hope  <michaelh AT juju.net.nz>
17459
17460         * support/regression/tests/bug-460444.c: Added test case.
17461
17462         * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
17463         (genCast): Added justification for all of the asserts.
17464
17465 2001-09-10  Bernhard Held <bernhard AT bernhardheld.de>
17466
17467         * support/regression/support.c: _xdata replaced by xdata
17468
17469         * support/regression/spec.mk: removed _generic
17470
17471 2001-09-09  Michael Hope  <michaelh AT juju.net.nz>
17472
17473         * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
17474
17475         * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
17476         (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
17477
17478         * src/z80/peeph.def: Added a rule to optimise shift then compare.
17479
17480         * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
17481
17482         * support/regression/tests/bug-460010.c: Added test case.
17483
17484         * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
17485
17486 2001-09-09  Bernhard Held <bernhard AT bernhardheld.de>
17487
17488         * support/regression/Makefile: inter-port-clean adjusted for mcs51
17489
17490         * support/regression/testfwk.c: removed workaround for bug #436344
17491
17492         * support/regression/tests/bp.c: use less memory with mcs51
17493
17494         * support/regression/tests/bug-441448.c: use less memory
17495
17496         * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
17497
17498         * support/regression/collate-results.py: typo
17499
17500 2001-09-08  Michael Hope  <michaelh AT juju.net.nz>
17501
17502         * support/regression/tests/fetchoverlap.c: Added new test case.
17503
17504         * support/regression/tests/bp.c: Added new test case.
17505
17506         * support/regression/tests/bug-448984.c: Added new test case.
17507
17508         * support/regression/tests/pow2shifts.c: Added new test case.
17509
17510         * src/z80/gen.c: Turned off the noise it normally generates for the release.
17511         (genlshTwo): Fixed right shift for count > 8.
17512
17513         * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
17514
17515 2001-09-08    <johan AT FRIJA>
17516
17517         * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
17518
17519 2001-09-07    <johan AT FRIJA>
17520
17521         * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
17522
17523         * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
17524
17525 2001-09-06    <johan AT FRIJA>
17526
17527         * src/SDCC.y: this could be a fix for bug #458744 (1.37)
17528         * bernhard noted me at this: "() equals to (void)" (1.38)
17529
17530 2001-09-05    <johan AT FRIJA>
17531
17532         * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
17533
17534 2001-09-04    <johan AT FRIJA>
17535
17536         * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
17537
17538
17539 2001-09-04  Paul Stoffregen  <paul AT pjrc.com>
17540
17541         * pragma noinduction broke memcpy on mcs51 large model.  Moved it inside z80 optimization
17542
17543 2001-09-03  Michael Hope  <michaelh AT juju.net.nz>
17544
17545         * link/z80/aslink.h: Fixed path for PATH_MAX
17546
17547 2001-09-02  Michael Hope  <michaelh AT juju.net.nz>
17548
17549         * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
17550
17551         * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
17552
17553         * support/regression/tests/uminus.c: Added a test for the unary minus operator.
17554
17555         * 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.
17556
17557 2001-09-01  Michael Hope  <michaelh AT juju.net.nz>
17558
17559         * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
17560         (genCmp): Fixed up genCmp for the GB with longs.
17561
17562         * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
17563
17564         * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
17565
17566         * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
17567
17568         * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
17569
17570 2001-08-30  Paul Stoffregen  <paul AT pjrc.com>
17571
17572         * added peepholes 223 to 231 to mcs51 port.  These improve code when using large model.
17573
17574 2001-08-30  Michael Hope  <michaelh AT juju.net.nz>
17575
17576         * 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.
17577
17578         * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
17579
17580 2001-08-29  Michael Hope  <michaelh AT juju.net.nz>
17581
17582         * link/z80/aslink.h: Fixed long file name support.  Is now based off PATH_MAX instead of a constant.
17583
17584         * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
17585
17586 2001-08-30 Bernhard Held   <bernhard AT bernhardheld.de>
17587
17588         * sim/ucsim/configure:    little improvement of Cygwin-detection
17589         * sim/ucsim/configure.in: little improvement of Cygwin-detection
17590         * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
17591         * support/regression/tests/bug-221100.c: small changes for mcs51
17592         * support/regression/tests/bug-221168.c: small changes for mcs51
17593         * support/regression/tests/bug-227710.c: small changes for mcs51
17594         * support/regression/tests/staticinit.c: small changes for mcs51
17595         * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
17596         * as/mcs51/lklex.c:  accept everything as symbol name in rel-files, bug fix ID 452601
17597         * as/mcs51/lksym.c:  accept everything as symbol name in rel-files, bug fix ID 452601
17598
17599 $Revision$