9805da8f485cd603854b66e2cf55d86597bff632
[fw/sdcc] / ChangeLog
1 2009-04-01 Philipp Klaus Krause <pkk AT spth.de>
2
3         * device/lib/z80/mul.s: 
4           Minor improvement in Z80 16x16 bit multiplication.
5
6 2009-03-23 Borut Razem <borut.razem AT siol.net>
7
8         * src/SDCCval.c, src/SDCCmain.c, device/include/limits.h,
9           device/include/pic/limits.h, device/include/pic16/limits.h,
10           device/lib/_fs2schar.c, device/lib/pic/libsdcc/fs2schar.c,
11           device/lib/pic16/libsdcc/float/fs2schar.c, doc/sdccman.lyx,
12           support/regression/tests/funsigned-char.c:
13           applied patch 2704189: character constant sign fix
14           thanks to Robert Larice
15
16 2009-03-22 Borut Razem <borut.razem AT siol.net>
17
18         * Small Device C Compiler 2.9.0 released
19         * .version, doc/sdccman.lyx: changed sdcc version to 2.9.1
20
21 2009-03-15 Borut Razem <borut.razem AT siol.net>
22
23         * support/scripts/repack_release.sh: added
24
25 2009-03-13 Borut Razem <borut.razem AT siol.net>
26
27         * doc/sdccman.lyx: "freeware" replaced with "free open source"
28
29 2009-03-12 Borut Razem <borut.razem AT siol.net>
30
31         * src/z80/peep.c: #2652979: --debug crashes sdcc
32
33 2009-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
34
35         * src/SDCCglue.c,
36           support/regression/tests/bug2655200.c:
37           applied modified patch from Robert Larice <larice AT vidisys.de>
38           fixing original report of bug #2655200: pointer to pdata memory
39           not correctly initialized
40
41 2009-03-11 Borut Razem <borut.razem AT siol.net>
42
43         * as/asranlib/asranlib.c: retain the original file mode
44
45 2009-03-10 Borut Razem <borut.razem AT siol.net>
46
47         * src/mcs51/gen.c, src/z80/gen.c, src/hc08/gen.c, src/ds390/gen.c,
48           support/regression/tests/bug1875933.c:
49           fixed bug #1875933: Evelyn jumps into the void
50           thanks to Robert Larice
51
52 2009-03-10 Raphael Neider <rneider AT web.de>
53
54         * src/pic16/pcode.c (LinkFlow): fix invalid cast from pCodeLabel
55           to pCodeInstruction to avoid a segmentation fault
56
57 2009-03-03 Borut Razem <borut.razem AT siol.net>
58
59         * device/lib/printf_large.c: fixed bug #2656821: bug in printf
60
61 2009-03-03 Raphael Neider <rneider AT web.de>
62
63         * device/lib/pic/libdev/Makefile.in: build device-specific
64           libraries for the correct processor, fixes #2654585
65
66 2009-03-01 Raphael Neider <rneider AT web.de>
67
68         * device/lib/Makefile.in: fixed parallel builds (i.e., make -jN, N>1)
69
70 2009-03-01 Borut Razem <borut.razem AT siol.net>
71
72         * src/z80/peep.c: fixed bug #2648964: --i-code-in-asm crashes sdcc
73         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
74           changed sdcc version to 2.9.0
75
76 2009-03-01 Maarten Brock <sourceforge.brock AT dse.nl>
77
78         * src/mcs51/ralloc.c (spillThis, spilSomething): fixed bug 2435941
79           (serialRegAssign): do not spil bit registers
80           throughout cosmetic changes
81         * support/regression/tests/bug2435941.c: new, added
82
83 2009-02-28 Raphael Neider <rneider AT web.de>
84
85         * src/regression/compare10.c,
86           src/regression/compare7.c,
87           src/regression/compare8.c,
88           src/regression/compare9.c: reset watchdog timer in time
89         * src/regression/configword.c: apply patch from #2488150
90         * src/pic/glue.c (pic14createInterruptVect): pin RESET vector
91           handler to 0x0000 as the linker no longer knows STARTUP sections
92         * src/pic/pcode.c (register_reassign, ReuseReg): applied modified
93           patch #2512926 to (mostly) fix #1762626, cosmetic changes
94         * src/pic/pcodepeep.c: remove reference to nonexisting function
95
96 2009-02-28 Raphael Neider <rneider AT web.de>
97
98         * device/include/pic16/signal.h: avoid multiline inline
99           assembler statements in macros, addresses #2644965
100
101 2009-02-27 Raphael Neider <rneider AT web.de>
102
103         * device/include/pic16/pic18f[24][3456]k20.h,
104           device/include/pic16/pic18f[68][567]j50.h,
105           device/include/pic16/pic18f[68]6j55.h,
106           device/lib/pic16/libdev/pic18f[24][3456]k20.c,
107           device/lib/pic16/libdev/pic18f[68][567]j50.c,
108           device/lib/pic16/libdev/pic18f[68]6j55.c,
109           device/include/pic16/pic18fregs.h,
110           device/include/pic16/pic16devices.txt,
111           device/lib/pic16/pics.all,
112           device/lib/pic16/libdev/Makefile.am,
113           device/lib/pic16/libio/Makefile.am: added/re-enabled many device
114           families (87j50 family contributed by Robert Wuest)
115
116         * device/include/pic16/adc.h,
117           device/lib/pic16/libio/adc/adcbusy.c,
118           device/lib/pic16/libio/adc/adcclose.c,
119           device/lib/pic16/libio/adc/adcconv.c,
120           device/lib/pic16/libio/adc/adcopen.c,
121           device/lib/pic16/libio/adc/adcsetch.c: added 65j50-style ADC
122
123         * doc/sdccman.lyx: updated list of supported devices, fixed typo
124         * device/lib/pic16/Makefile.common: do not suppress assembler warnings
125
126         * device/lib/pic16/Makefile.in,
127           device/lib/pic16/libm/Makefile.in,
128           device/lib/pic16/debug/Makefile.in,
129           device/lib/pic16/libio/Makefile.in,
130           device/lib/pic16/startup/Makefile.in,
131           device/lib/pic16/libsdcc/Makefile.in,
132           device/lib/pic16/libdev/Makefile.in,
133           device/lib/pic16/libc/Makefile.in: regenerated
134
135 2009-02-27 Borut Razem <borut.razem AT siol.net>
136
137         * as/z80/asexpr.c, as/z80/z80mch.c: re-fixed bugs
138           #1829678 and #1704376 in the way proposed by Alan Baldwin
139
140 2009-02-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
141
142         * device/include/mcs51/at89c51ed2.h: Fixed address of SFR P5. Thanks
143           to Steve Qu for the fix.
144
145 2009-02-23 Borut Razem <borut.razem AT siol.net>
146
147         * as/z80/asexpr.c: fixed bug #1829678: Z-80 CP A,<xxx> assembly
148           it is already fixed for mcs51 and hc08 targets
149         * as/z80/z80mch.c: fixed bug #1704376: missing as-z80 errors
150
151 2009-02-22 Borut Razem <borut.razem AT siol.net>
152
153         * device/lib/Makefile.in: fixed parenthesis error
154         * doc/sdccman.lyx: fixed webdocs bug #2071421: error in the manual,
155           fixed webdocs bug #1967920: --version
156
157 2009-02-18 Maarten Brock <sourceforge.brock AT dse.nl>
158
159         * device/include/mcs51/at89c51ed2.h: fixed bug #2071949 bitmask RBCK wrong
160
161 2009-02-17 Maarten Brock <sourceforge.brock AT dse.nl>
162
163         * as/link/mcs51/lkihx.c (hexRecord): bugfix do not insert extended address
164           when addresses are unsorted
165
166 2009-02-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
167
168         * device/include/mcs51/p89v66x.h: added ENBOOT thanks
169           Gudjon Gudjonsson <gudjon AT gudjon.org>
170         * device/include/mcs51/p89c66x.h: fixed some defines
171         * device/include/mcs51/p89v66x.h: fixed some sbit addresses
172         * doc/sdccman.lyx: added <NO FLOAT> to index, try to reanimate
173           svn keywords
174
175 2009-02-14 Borut Razem <borut.razem AT siol.net>
176
177         * doc/sdccman.lyx: corrected cpp info
178
179 2009-02-13 Borut Razem <borut.razem AT siol.net>
180
181         * as/Makefile.in: *.doc renamed to *.txt
182
183 2009-02-11 Borut Razem <borut.razem AT siol.net>
184
185         * as/doc/aslnk.doc, as/doc/abstra.doc: renamed to *.txt
186         * as/doc/aslnk.txt, as/doc/asxhtml.html: changed licens to GPLv3
187
188 2009-02-11 Borut Razem <borut.razem AT siol.net>
189
190         * doc/sdccman.lyx: documented ar format libraries
191
192 2009-02-10 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
193
194         * support/regression/tests/float_single.c: added regression
195           test. Some testpoints for probably rarely used functions
196           (acosf, sinhf, tanf, expf) disabled for some targets
197
198 2009-02-10 Raphael Neider <rneider AT web.de>
199
200         * src/pic16/gen.c (pic16_freeAsmop): avoid NULL pointer dereference,
201           (genAssign): fixed for operands on the stack
202
203         * device/lib/pic16/libc/stdio/vfprintf.c,
204           device/lib/pic16/configure.ac,
205           device/lib/pic16/Makefile.common: add configurable support for
206           printing floats via ./configure --enable-floats
207         * device/lib/pic16/configure,
208           device/lib/pic16/Makefile.in,
209           device/lib/pic16/libm/Makefile.in,
210           device/lib/pic16/debug/Makefile.in,
211           device/lib/pic16/libio/Makefile.in,
212           device/lib/pic16/startup/Makefile.in,
213           device/lib/pic16/libsdcc/Makefile.in,
214           device/lib/pic16/libdev/Makefile.in,
215           device/lib/pic16/libc/Makefile.in: regenerated
216         * doc/sdccman.lyx: documented float support and how to get it
217         * doc/Makefile.in: fixed race condition on parallel builds
218
219         * device/lib/pic16/libc/stdio/sprintf.c,
220           device/lib/pic16/libc/stdio/vsprintf.c: do not mess up the user's
221           pointer to the string buffer, enlarge buffer for x_ftoa()
222
223 2009-02-10 Borut Razem <borut.razem AT siol.net>
224
225         * device/lib/printf_tiny.c: replaced non-C89 comments '//' with '/* */'
226
227 2009-02-10 Raphael Neider <rneider AT web.de>
228
229         * device/include/pic16/pic18f*.h: add bit aliases in INTCONbits_t
230
231 2009-02-09 Raphael Neider <rneider AT web.de>
232
233         * src/pic16/pcode.c (assignToSameBank): add force argument to ignore
234           artificial bank size limits for compound data (structs, arrays),
235           avoids assert if --obanksel=N, N > 1, is given
236
237 2009-02-09 Borut Razem <borut.razem AT siol.net>
238
239         * as/asranlib/asranlib.c, link/lkar.c: don't check the padding bytes since
240           the openSUSE GNU ar (GNU Binutils; openSUSE 11.0) 2.18.50.20080409-11.1
241           uses '`' character instead '\n' for padding
242         * as/asranlib/asranlib.c: made it more robust
243
244 2009-02-08 Borut Razem <borut.razem AT siol.net>
245
246         * as/COPYING3: added
247         * support/scripts/sdcc.nsi: added COPYING3.txt to the package
248         * device/lib/Makefile.in: reenable floating point in model-xstack-auto
249           libraries
250
251 2009-02-07 Borut Razem <borut.razem AT siol.net>
252
253         * as/asranlib/asranlib.c: fixed BSD header length calculation
254         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.9
255           due sdcc asxxxx license change to GPLv3
256
257 2009-02-05 Borut Razem <borut.razem AT siol.net>
258
259         * as/asranlib/asranlib.c, link/lkar.h, link/lkar.c:
260           added support for BSD (Mac OS X) ar format
261         * as/asxxsrc/aslex.c, as/as/asxxsrc/asnoice.c, as/as/asxxsrc/assym.c,
262           as/as/hc08/asdata.c, as/hc08/asexpr.c, as/hc08/aslist.c,
263           as/hc08/asm.h, as/hc08/asmain.c, as/hc08/asout.c, as/hc08/assubr.c,
264           as/hc08/m08adr.c, as/hc08/m08ext.c, as/hc08/m08mch.c,
265           as/hc08/m08pst.c, as/hc08/m6808.h, as/link/aslink.h,
266           as/link/hc08/lkarea.c, as/link/hc08/lkelf.c, as/link/hc08/lkihx.c,
267           as/link/hc08/lkmain.c, as/link/hc08/lkmem.c, as/link/hc08/lkrloc.c,
268           as/link/hc08/lks19.c, as/link/lkaomf51.c, as/link/lkdata.c,
269           as/link/lkeval.c, as/link/lkhead.c, as/link/lklex.c, as/link/lklib.c,
270           as/link/lklibr.c, as/link/lklibr.h, as/link/lklist.c,
271           as/link/lknoice.c, as/link/lkrel.c, as/link/lkrel.h,
272           as/link/lksdcclib.c, as/link/lkstore.c, as/link/lksym.c,
273           as/link/mcs51/lkarea.c, as/link/mcs51/lkihx.c,
274           as/link/mcs51/lkmain.c, as/link/mcs51/lkmem.c,
275           as/link/mcs51/lkrloc.c, as/link/mcs51/lks19.c, as/link/z80/lkarea.c,
276           as/link/z80/lkgb.c, as/link/z80/lkgg.c, as/link/z80/lkihx.c,
277           as/link/z80/lkmain.c, as/link/z80/lkrloc.c, as/link/z80/lks19.c,
278           as/mcs51/asdata.c, as/mcs51/asexpr.c, as/mcs51/aslist.c,
279           as/mcs51/asm.h, as/mcs51/asmain.c, as/mcs51/asout.c,
280           as/mcs51/assubr.c, as/mcs51/i51adr.c, as/mcs51/i51ext.c,
281           as/mcs51/i51mch.c, as/mcs51/i51pst.c, as/mcs51/i8051.h,
282           as/xa51/xa_link.c, as/xa51/xa_main.c, as/xa51/xa_main.h,
283           as/xa51/xa_rasm.l, as/xa51/xa_rasm.y, as/xa51/xa_version.h,
284           as/z80/asdata.c, as/z80/asexpr.c, as/z80/aslist.c, as/z80/asm.h,
285           as/z80/asmain.c, as/z80/asout.c, as/z80/assubr.c, as/z80/z80.h,
286           as/z80/z80adr.c, as/z80/z80ext.c, as/z80/z80mch.c, as/z80/z80pst.c:
287           changed license to GPL either version 3, or (at your option) any
288           later version
289
290 2009-02-05 Borut Razem <borut.razem AT siol.net>
291
292         * as/asranlib/asranlib.c, link/lkar.h, link/lkar.c:
293           added support for BSD (Mac OS X) ar format
294
295 2009-02-02 Borut Razem <borut.razem AT siol.net>
296
297         * device/lib/gbz80/Makefile.in, device/lib/hc08/Makefile.in,
298           device/lib/z80/Makefile.in:
299           chose source files in the PORT directory if they are available
300
301 2009-02-01 Raphael Neider <rneider AT web.de>
302
303         * device/lib/pic16/libdev/pic18f1220.c,
304         * device/lib/pic16/libdev/pic18f4450.c:
305           define SSPBUF to allow use of printf
306
307 2009-02-01 Borut Razem <borut.razem AT siol.net>
308
309         * device/lib/Makefile.in, device/lib/gbz80/Makefile.in,
310           device/lib/hc08/Makefile.in, device/lib/incl.mk,
311           device/lib/z80/Makefile.in:
312           don't remake libraries
313         * support/regression/tests/snprintf.c:
314           reenable floating point in small-xstack-auto library
315
316 2009-01-26 Raphael Neider <rneider AT web.de>
317
318         * src/pic16/ralloc.c (packForPush): disabled to fix #2496919
319
320 2009-01-25 Raphael Neider <rneider AT web.de>
321
322         * src/pic16/main.c (_pic16_linkEdit): prepend -L paths to linker
323           search path instead of appending them
324
325 2009-01-24 Borut Razem <borut.razem AT siol.net>
326
327         * as/asranlib/asranlib.h: changed type of offset to unsigned int to
328           make it work on ppc Mac OS X (off_t is 64 bit and is not converted
329           to 32 bit unsigned int when calling sputl() since it is a macro
330         * as/link/lkar.c: changed the initialization of This->loaded
331
332 2009-01-23 Borut Razem <borut.razem AT siol.net>
333
334         * as/link/lkar.h: changed type of ar_size to size_t to make it work on
335           ppc Mac OS X (off_t is 64 bit and is not converted to 32 bit
336           unsigned int when calling new(), since asxxxx doesn't use function
337           prototypes)
338
339 2009-01-21 Borut Razem <borut.razem AT siol.net>
340
341         * as/link/lkar.h: sgetl and sputl are independent of endianness
342         * as/link/sdxxxx_config.h.in: removed endianness detection
343
344 2009-01-20 Borut Razem <borut.razem AT siol.net>
345
346         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.8
347           due creation of ar format libraries
348         * support/scripts/sdcc.nsi:
349           don't add nonexistent object files to the package
350
351 2009-01-19 Borut Razem <borut.razem AT siol.net>
352
353         * Makefile.in, configure.in, configure,
354           device/lib/Makefile.in, device/lib/ds390/Makefile.in,
355           device/lib/ds400/Makefile.in, device/lib/gbz80/Makefile.in,
356           device/lib/hc08/Makefile.in, device/lib/large/Makefile.in,
357           device/lib/mcs51/Makefile.in, device/lib/medium/Makefile.in,
358           device/lib/small/Makefile.in,
359           device/lib/z80/Makefile.in: create ar format libraries
360         * support/regression/ports/mcs51-xstack-auto/spec.mk:
361           use device/lib/Makefile to create library
362         * support/regression/tests/snprintf.c:
363           floating point is not enabled in small-xstack-auto library
364         * device/lib/libfloat.lib, device/lib/libint.lib,
365           device/lib/liblong.lib, device/lib/libsdcc.lib: removed
366
367 2009-01-18 Borut Razem <borut.razem AT siol.net>
368
369         * support/cpp/auto-host.h: fixed warning: "__STDC__" redefined,
370           warning: extra tokens at end of #endif directive
371
372 2009-01-11 Borut Razem <borut.razem AT siol.net>
373
374         * Makefile.in: added SDCC_ASRANLIB to PKGS
375
376 2009-01-10 Borut Razem <borut.razem AT siol.net>
377
378         * support/scripts/sdcc.nsi: added asranlib.exe to the install package
379         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.7
380           due added support for ar format libraries
381
382 2009-01-09 Borut Razem <borut.razem AT siol.net>
383
384         * as/asranlib/Makefile.in, as/asranlib/asranlib.dsp,
385           as/asranlib/asranlib.c: added asranlib
386         * as/link/lkar.c, as/link/lkar.h: added support for ar format libraries
387         * Makefile.in, as/link/hc08/Makefile.in,
388           as/link/hc08/link_hc08.dsp, as/link/lklib.c, as/link/lklibr.c,
389           as/link/lklibr.h, as/link/lkrel.c, as/link/lkrel.h,
390           as/link/lksdcclib.c, as/link/mcs51/Makefile.in,
391           as/link/mcs51/aslink.dsp, as/link/z80/Makefile.in,
392           as/link/z80/linkgbz80.dsp, as/link/z80/linkz80.dsp, configure,
393           configure.in, sdcc.dsw: modified to support ar format libraries
394
395 2009-01-08 Maarten Brock <sourceforge.brock AT dse.nl>
396
397         * src/SDCCast.c (decorateType RETURN): use RESULT_TYPE_GPTR for generic
398           pointer return
399
400 2009-01-05 Philipp Klaus Krause <pkk AT spth.de>
401
402         * sim/ucsim/z80.src/inst_ed.cc:
403           Fixed bug #2488074, which made regression tests fail.
404
405 2009-01-05 Philipp Klaus Krause <pkk AT spth.de>
406
407         * device/lib/z80/mod.s,
408           device/lib/z80/div.s,
409           device/lib/z80/mulchar.s,
410           device/lib/z80/mul.s,
411           device/lib/z80/divsigned.s,
412           device/lib/z80/Makefile.in:
413           Implemented RFE #1702376.
414
415 2009-01-05 Borut Razem <borut.razem AT siol.net>
416
417         * as/link/lksdcclib.c:
418           fixed linker hanging in INDEXLIB is not defined (hc08)
419
420 2009-01-04 Philipp Klaus Krause <pkk AT spth.de>
421
422         * src/z80/gen.c:
423           Implemented RFE #2485684, and some further improvements of HL caching
424           including a bugfix.
425         * src/z80/peeph-z80.def:
426           Fixed a bug exposed by implementing RFE #2485684.
427
428 2009-01-04 Philipp Klaus Krause <pkk AT spth.de>
429
430         * src/z80/peeph-z80.def:
431           Peephole improvements.
432         * src/z80/gen.c,
433           src/z80/main.c,
434           device/include/string.h,
435           device/lib/z80/memmove.s:
436           Minor code cleanup.
437         * device/lib/z80/Makefile.in,
438           device/lib/Makefile.in,
439           support/regression/tests/memory.c,
440           device/lib/z80/strlen.s:
441           Partially implemented RFE #2471534.
442
443 2009-01-04 Borut Razem <borut.razem AT siol.net>
444
445         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.6
446           due changes in sdcc asxxxx linkers - it sholud be done 2 days ago :(
447         * doc/README.txt: updated John Hartman's e-mail address
448         * as/link/lkrel.c, as/link/lksdcclib.c:
449           fixed bug #2484677: Linker hangs
450         * src/z80/peep.c: fixed msvc warning C4047:
451           'return' : 'int ' differs in levels of indirection from 'char *'
452         * config.dsp: as/lib corrected to as/link
453
454 2009-01-04 Philipp Klaus Krause <pkk AT spth.de>
455
456         * src/z80/peep.c:
457           Implemented RFE #2484693.
458         * src/z80/peeph-z80.def:
459           Some peephole improvements.
460
461 2009-01-03 Borut Razem <borut.razem AT siol.net>
462
463         * as/link/lklibr.c:
464           fixed warning: 'ret' may be used uninitialized in this function
465
466 2009-01-02 Borut Razem <borut.razem AT siol.net>
467
468         * as/link/lklib.c, as/link/lksdcclib.c, as/link/lklibr.h,
469           as/link/getline.[ch], as/link/lkrel.[ch]: added,
470           made support for differnet library formats more flexible,
471           preparation for support of ar format
472         * as/link/lklibr.c, as/link/z80/Makefile.in,
473           as/link/z80/linkgbz80.dsp, as/link/z80/linkz80.dsp,
474           as/link/hc08/link_hc08.dsp, as/link/hc08/Makefile.in,
475           as/link/mcs51/aslink.dsp, as/link/mcs51/Makefile.in,
476           as/link/hc08/lkelf.c, as/link/aslink.h:
477           made support for differnet library formats more flexible,
478           preparation for support of ar format
479
480 2009-01-01 Borut Razem <borut.razem AT siol.net>
481
482         * as/link/asxxxx_config.h.in:
483           fixed warning: extra tokens at end of #endif directive
484         * src/z80/peep.c:
485           fixed warning: suggest parentheses around && within ||
486         * device/lib/Makefile.in: allow whitespaces at the end of lines in
487           ports.build, in order to make it work on cygwin - it seems to be a
488           bug in cygwin grep: CR is not treated as part of end-of-line
489
490 2008-12-31 Borut Razem <borut.razem AT siol.net>
491
492         * configure, configure.in, config.dsp, config_vc.awk,
493           as/link/asxxxx_config.h.in, as/link/hc08/lkelf.c, as/link/aslink.h,
494           as/link/hc08/Makefile.in, as/link/mcs51/Makefile.in:
495           introduced asxxxx_config.h.in
496
497 2008-12-30 Philipp Klaus Krause <pkk AT spth.de>
498
499         * src/z80/gen.c,
500           src/z80/peeph-z80.def:
501           Minor addition improvement.
502
503 2008-12-30 Raphael Neider <rneider AT web.de>
504
505         * as/link/hc08/lkelf.c, as/link/lkaomf51.c, as/link/lklibr.c,
506           as/link/z80/lkgb.c, debugger/mcs51/cmd.c, sim/ucsim/utils.cc,
507           src/SDCCasm.c, support/Util/dbuf_string.c, support/cpp/c-ppoutput.c,
508           support/cpp/libcpp/lex.c, support/cpp/libcpp/macro.c,
509           support/librarian/sdcclib.c, support/makebin/makebin.c:
510           partially revert changes from r5293..r5295
511
512 2008-12-29 Philipp Klaus Krause <pkk AT spth.de>
513
514         * src/z80/peeph-z80.def:
515           Minor peephole improvement.
516
517 2008-12-29 Raphael Neider <rneider AT web.de>
518
519         * src/pic/pcode.c (insertBankSel, FixRegisterBanking): emit
520           incorrectly discarded BANKSELs
521
522 2008-12-29 Philipp Klaus Krause <pkk AT spth.de>
523
524         * support/regression/tests/memory.c:
525           Added simple test for memset(), memcpy() and memmove()
526
527 2008-12-29 Borut Razem <borut.razem AT siol.net>
528
529         * sdcc/support/scripts/sdcc.nsi: removed $INSTDIR\lib\src\z80\*.c
530
531 2008-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
532
533         * src/mcs51/peeph.def (177.e): replaced notVolatile(%3) with
534           operandsNotRelated(%1 %3), had to change (a)r%1 to (a)%1 for this to work
535           (177.j): added new rule
536         * src/SDCCsymt.h: added RESULT_TYPE_GPTR
537         * src/SDCCast.c (processParms): use RESULT_TYPE_GPTR for generic ptr parms,
538           (decorateType CAST): propagate storage class to generic pointer results
539
540 2008-12-27 Philipp Klaus Krause <pkk AT spth.de>
541
542         * device/lib/z80/string.c,
543           device/lib/z80/printf.c,
544           device/lib/z80/mul.s:
545           z80 library cleanup
546         * src/z80/gen.c:
547           Fixed code generation bug exposed by builtin memcpy().
548
549 2008-12-27 Philipp Klaus Krause <pkk AT spth.de>
550
551         * device/lib/_memcpy.c:
552           fixed conflict with builtin memcpy()
553
554 2008-12-26 Borut Razem <borut.razem AT siol.net>
555
556         * support/librarian/sdcclib.c:
557           fixed bug 2466950: "sdcclib broken"
558           by removing fgets return value check
559
560 2008-12-26 Philipp Klaus Krause <pkk AT spth.de>
561         * src/z80/main.c,
562           src/z80/gen.c,
563           device/include/string.h: Implemented RFE #1914254
564
565 2008-12-26 Philipp Klaus Krause <pkk AT spth.de>
566         * device/lib/z80/Makefile.in,
567           device/lib/Makefile.in,
568           device/lib/z80/memmove.s: Implemented RFE #1914256
569
570 2008-12-26 Philipp Klaus Krause <pkk AT spth.de>
571
572         * src/z80/peeph-z80.def: fixed a bug in peephole 0zf
573         * src/z80/peep.c: improved checks for unused data
574         * src/z80/gen.c,
575           src/z80/main.c: Implemented RFE #1899189
576
577 2008-12-25 Borut Razem <borut.razem AT siol.net>
578
579         * support/regression/Makefile.in:
580           add -I$(INC_DIR) to SDCCFLAGS only if INC_DIR is defined
581
582 2008-12-25 Philipp Klaus Krause <pkk AT spth.de>
583
584         * src/z80/peeph-z80.def: minor peephole improvements
585
586 2008-12-21 Borut Razem <borut.razem AT siol.net>
587
588         * support/librarian/sdcclib.c: fixed build failure on Mac OS X
589           due to redefinition of symbol __assert
590           sdcclib.c:53:1:warning: "__assert" redefined
591           /Xcode2.5/SDKs/MacOSX10.4u.sdk/usr/include/assert.h:80:1:
592           warning: this is the location of the previous definition
593
594 2008-12-20 Raphael Neider <rneider AT web.de>
595
596         * debugger/mcs51/break.c, debugger/mcs51/cmd.c,
597           debugger/mcs51/simi.c, debugger/mcs51/symtab.c,
598           support/cpp/libcpp/macro.c: fix format string errors
599
600         * sim/ucsim/s51.src/timer2.cc: add clarifying parens
601
602         * src/pic/device.c: partial rewrite using strtok,
603           quieten compiler warnings, adopt SDCC coding style
604
605         * as/link/hc08/lkelf.c, as/link/lkaomf51.c, as/link/lklibr.c,
606           as/link/z80/lkgb.c, as/z80/asout.c, debugger/mcs51/cmd.c,
607           sim/ucsim/utils.cc, src/SDCCasm.c, support/Util/dbuf_string.c,
608           support/cpp/c-ppoutput.c, support/cpp/libcpp/lex.c,
609           support/librarian/sdcclib.c, support/makebin/makebin.c:
610           quieten most compiler warnings
611
612         * sim/ucsim/avr.src/arith_inst.cc: quieten compiler warnings,
613           probably fix operator precedence bug
614
615         * doc/clean.mk: quieten rm if no .lyx is present
616
617 2008-12-19 Borut Razem <borut.razem AT siol.net>
618
619         * doc/sdccman.lyx, doc/random-notes.txt, doc/avr/avr_design.txt,
620           doc/TININative.txt, doc/macro-sys-design.txt, doc/libdoc.txt,
621           doc/README.txt, doc/test_suite_spec.lyx:
622           applied patch 2446381: Dcoumentation spelling correcitons
623           thanks to Steven Borley
624
625 2008-12-16 Raphael Neider <rneider AT web.de>
626
627         * device/include/pic/pic12f629.h,
628           device/include/pic/pic12f675.h,
629           device/lib/pic/libdev/pic12f629.c,
630           device/lib/pic/libdev/pic12f675.c: consolidated, added TRISIO bits
631
632 2008-12-14 Borut Razem <borut.razem AT siol.net>
633
634         * doc/sdccman.lyx, cdbfileformat.lyx, test_suite_spec.lyx:
635           converted to LyX 1.5.7 (\lyxformat 276) format
636
637 2008-12-07 Borut Razem <borut.razem AT siol.net>
638
639         * support/regression/tests/bitfields.c:
640           added test case for bug #2366757
641
642 2008-12-07 Raphael Neider <rneider AT web.de>
643
644         * src/pic16/glue.c (pic16_printIvalBitFields): prevent
645           NULL pointer dereference, closes #2366757
646
647 2008-11-25 Raphael Neider <rneider AT web.de>
648
649         * device/include/pic16/pic16devices.txt,
650           sdcc/src/pic16/device.c,
651           sdcc/src/pic16/device.h: implicitly disable XINST
652           whenever CONFIG4L is set via an additional optional
653           argument to the configword directive in pic16devices.txt
654
655 2008-11-24 Raphael Neider <rneider AT web.de>
656
657         * device/lib/pic16/configure.ac,
658           device/lib/pic16/Makefile.common: fixed quoting issues
659
660         * device/lib/pic16/configure,
661           device/lib/pic16/debug/Makefile.in,
662           device/lib/pic16/libc/Makefile.in,
663           device/lib/pic16/libdev/Makefile.in,
664           device/lib/pic16/libio/Makefile.in,
665           device/lib/pic16/libm/Makefile.in,
666           device/lib/pic16/libsdcc/Makefile.in,
667           device/lib/pic16/Makefile.in,
668           device/lib/pic16/startup/Makefile.in: regenerated
669
670         * src/pic16/main.c (_pic16_finaliseOptions): revert to
671           variant of r5216
672
673 2008-11-24 Raphael Neider <rneider AT web.de>
674
675         * src/pic16/main.c (_pic16_finaliseOptions): do not quote the
676           argument of --asm= or --link= to allow for
677           --asm="sh script --options", the user can double quote the
678           argument if needed: --asm="'c:/program files/gpasm' -q",
679           also fix some potential buffer overflows
680
681 2008-11-19 Borut Razem <borut.razem AT siol.net>
682
683         * doc/sdccman.lyx:
684           fixed 2314467: sdccman.lyx: fix "--" in command line parameters
685           thanks Mauro Giachero
686
687 2008-11-16 Borut Razem <borut.razem AT siol.net>
688
689         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.5
690         * doc/sdccman.lyx: documented fixed unnamed bit-field initialization
691
692 2008-11-15 Borut Razem <borut.razem AT siol.net>
693
694         * src/pic16/glue.c, src/SDCC.y, src/SDCCast.c, src/SDCCglue.c,
695           src/SDCCsymt.c, src/SDCCsymt.h:
696           fixed RFE #2291335 : Unnamed bit-field initialization
697         * support/regression/tests/bitfields.c:
698           added test case for RFE #2291335
699         * support/regression/tests/bug-1981238.c:
700           don't initialize unnamed bit-fields
701
702 2008-11-11 Raphael Neider <rneider AT web.de>
703
704         * device/include/pic16/pic18f25j10.h,
705           device/include/pic16/pic18f45j10.h: remove useless boilerplate
706
707         * device/include/pic16/adc.h,
708           device/lib/pic16/libio/adc/adcbusy.c,
709           device/lib/pic16/libio/adc/adcclose.c,
710           device/lib/pic16/libio/adc/adcconv.c,
711           device/lib/pic16/libio/adc/adcopen.c,
712           device/lib/pic16/libio/adc/adcread.c,
713           device/lib/pic16/libio/adc/adcsetch.c: generalized, documented,
714           and fixed ADC routines to work for more target devices,
715           incorporates patch #2036130 by Nick Materer
716
717 2008-11-10 Steven Borley <steven.borley AT partnerelectronics.com>
718
719         * device/include/ctype.h,
720         * device/include/ds400rom.h,
721         * device/include/ds80c390.h,
722         * device/include/float.h,
723         * device/include/math.h,
724         * device/include/serial.h,
725         * device/include/stdbool.h,
726         * device/include/tinibios.h: replaced non-C89 '//' with '/* */',
727           patch 2195343
728         * device/include/mcs51/C8051F336.h,
729         * device/include/mcs51/C8051T600.h,
730         * device/include/mcs51/C8051T610.h,
731         * device/include/mcs51/C8051T630.h: new, added, patch 2183334
732           (svn commit by Maarten Brock <sourceforge.brock AT dse.nl>)
733
734 2008-11-10 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
735
736         * device/include/mcs51/P89LPC922.h: fixed #2255989, thanks kubi57
737
738 2008-11-10 Raphael Neider <rneider AT web.de>
739
740         * device/lib/pic16/libdev/mkmk.sh: obey pics.all
741         * device/lib/pic16/libio/mkmk.sh: properly match whole lines in
742           .ignore files, fixes IO libs for 18f242, 18f252, 18f442, and 18f452
743           (patch by Nick Materer, #2253980)
744
745         * device/lib/pic16/libio/adc.ignore,
746           device/lib/pic16/libio/i2c.ignore,
747           device/lib/pic16/libio/usart.ignore,
748           device/lib/pic16/pics.all: updated to build more device libs
749
750         * device/lib/pic16/libdev/Makefile.am,
751           device/lib/pic16/libdev/Makefile.in,
752           device/lib/pic16/libio/Makefile.am,
753           device/lib/pic16/libio/Makefile.in: regenerated
754
755         * src/pic16/device.c (pic16_dump_usection): fixed output of multiple
756           names per memory location, applied SDCC style to more functions
757
758 2008-11-09 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
759
760         * device/include/mcs51/p89lpc933_4.h: new NXP header file
761         * device/include/mcs51/p89lpc935_6.h: new NXP header file
762         * device/include/mcs51/p89v66x.h: minor changes
763           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
764
765 2008-11-09 Raphael Neider <rneider AT web.de>
766
767         * device/include/pic/pic14devices.txt: fixed memory description for
768           12f629 and 12f675, closes #2236240
769
770 2008-11-06 Borut Razem <borut.razem AT siol.net>
771
772         * src/SDCCmain.c: fixed bug #2224960: sdcc -MM no working correctly
773           pass system include paths with -isystem to sdcpp
774         * src/SDCCglue.c, src/pic/glue.c, src/pic16/glue.c: removed unneeded
775           functions (closePipes), (closeTmpFiles) and (rmTmpFiles)
776
777 2008-11-02 Raphael Neider <rneider AT web.de>
778
779         * doc/sdccman.lyx: updated the sections on the library build process
780           and on how to add support for new devices, and documented known
781           problems with the extended instruction set including a workaround
782
783 2008-11-01 Raphael Neider <rneider AT web.de>
784
785         * device/include/pic16/adc.h,
786           device/include/pic16/pic16devices.txt,
787           device/include/pic16/pic18f2410.h,
788           device/include/pic16/pic18f2510.h,
789           device/include/pic16/pic18f2515.h,
790           device/include/pic16/pic18f2610.h,
791           device/include/pic16/pic18f4410.h,
792           device/include/pic16/pic18f4510.h,
793           device/include/pic16/pic18f4515.h,
794           device/include/pic16/pic18f4610.h,
795           device/include/pic16/pic18fregs.h,
796           device/lib/pic16/libdev/Makefile.am,
797           device/lib/pic16/libdev/Makefile.in,
798           device/lib/pic16/libdev/pic18f2410.c,
799           device/lib/pic16/libdev/pic18f2510.c,
800           device/lib/pic16/libdev/pic18f2515.c,
801           device/lib/pic16/libdev/pic18f2610.c,
802           device/lib/pic16/libdev/pic18f4410.c,
803           device/lib/pic16/libdev/pic18f4510.c,
804           device/lib/pic16/libdev/pic18f4515.c,
805           device/lib/pic16/libdev/pic18f4610.c,
806           device/lib/pic16/libio/Makefile.am,
807           device/lib/pic16/libio/Makefile.in,
808           device/lib/pic16/pics.all: added support for 18f[24][456]10
809           and 18f[24]515 devices
810         * doc/sdccman.lyx: updated list of supported PIC16 devices
811
812         * src/pic/glue.c, src/pic/pcode.c, src/pic/pcodeflow.c,
813           src/pic16/glue.c, src/pic16/pcode.c, src/pic16/pcodeflow.c,
814           src/xa51/gen.c: avoid compiler warnings
815         * support/scripts/inc2h-pic16.pl: removed trailing whitespace
816
817 2008-10-22 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
818
819         * device/include/mcs51/p89v66x.h: NXP header file
820         * device/include/mcs51/p89c66x.h: fixed an SBIT definition
821           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
822
823 2008-10-14 Raphael Neider <rneider AT web.de>
824
825         * device/lib/pic16/libdev/Makefile.am,
826           device/lib/pic16/libio/Makefile.am: enable building libraries for
827           18f2321, 18f4321, 18f2523, 18f4620, 18f66j60, 18f66j65, 18f67j60,
828           18f86j60, 18f86j65, 18f87j60, 18f96j60, 18f96j65, and 18f97j60
829         * device/lib/pic16/libdev/Makefile.in,
830           device/lib/pic16/libio/Makefile.in: regenerated
831
832 2008-10-14 Raphael Neider <rneider AT web.de>
833
834         * device/include/pic16/pic18f2450.h,
835           device/include/pic16/pic18f4450.h,
836           device/lib/pic16/libdev/pic18f2450.c,
837           device/lib/pic16/libdev/pic18f4450.c,
838           device/include/pic16/adc.h,
839           device/include/pic16/pic16devices.txt,
840           device/include/pic16/pic18fregs.h,
841           device/lib/pic16/libdev/Makefile.am,
842           device/lib/pic16/libdev/Makefile.in,
843           device/lib/pic16/libio/Makefile.am,
844           device/lib/pic16/libio/Makefile.in,
845           device/lib/pic16/pics.all: added 18f2450 and 18f4450, closes #1844525
846
847         * device/lib/pic16/libsdcc/stack/stack.S: there is no need to pin the
848           stack to a fixed location, relax it to automatically work with all
849           but the smallest devices (256 byte RAM devices need #pragma stack)
850
851 2008-10-09 Maarten Brock <sourceforge.brock AT dse.nl>
852
853         * debugger/mcs51/break.c: bugfix from patch 1989966, thanks Risto Huotari
854         * debugger/mcs51/simi.c: bugfix from patch 1989972, thanks Risto Huotari
855         * device/lib/_strcspn.c: fixed bug 2140931
856
857 2008-10-06 Raphael Neider <rneider AT web.de>
858
859         * device/include/pic16/stdio.h,
860           device/lib/pic16/libc/stdio/putchar.c: putchar should not be
861           declared __naked for convenience, named all arguments
862         * device/lib/pic16/libc/stdio/strmgpsim.c,
863           device/lib/pic16/libc/stdio/strmmssp.c,
864           device/lib/pic16/libc/stdio/strmusart.c: cosmetic changes
865
866         * src/pic16/pcode.c (createReachingDefinitions): avoid segfault on
867           empty __naked functions,
868         * (pCodeLabelDestruct, pic16_unlinkpCode, pic16_pCodeUnlink): fix
869           corner cases (unlink first/last pCode in list), reuse more code
870
871 2008-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
872
873         * src/ds390/main.c (_ds390_genInitStartup): added
874         * src/SDCCpeeph.c (getPatternVar): new, added,
875           (labelInRange): fixed bug 2115959
876         * src/mcs51/peeph.def (rules 193.x to 198.x): check for labelInRange
877         * src/SDCCicode.h: added newiTempOperand
878         * src/SDCCcse.c (algebraicOpts): fixed bug for x*-1,
879           added optimizations for 0/x and x/-1, see also patch 2142900
880         * support/regression/tests/onebyte.c (testMul): added test cases
881
882 2008-09-20 Borut Razem <borut.razem AT siol.net>
883
884         * src/pic16/glue.c:
885           definition of absolute address symbols without initial value,
886           fixed SDCC crash "do not know how to intialize symbol"
887
888 2008-09-16 Maarten Brock <sourceforge.brock AT dse.nl>
889
890         * device/lib/z80/mul.s (__mulsuchar_rrx_s, __muluschar_rrx_s),
891         * device/lib/z80/div.s (__divsuchar_rrx_s, __modsuchar_rrx_s,
892           __divuschar_rrx_s, __moduschar_rrx_s): added mixed signedness versions
893         * device/lib/z80/stubs.s: added stubs for above functions
894         * src/SDCCopt.c (convilong),
895         * src/SDCCsymt.c (initCSupport): fixed bug 1900961
896         * src/SDCCsymt.h (__muldiv): enlarged for mixed signedness
897         * src/z80/main.c (_hasNativeMulFor): fixed bug, I think
898         * support/regression/tests/onebyte.c: enabled all tests for z80
899
900 2008-09-15 Borut Razem <borut.razem AT siol.net>
901
902         * device/include/pic16/stdio.h, device/lib/pic16/libc/stdio/streams.c,
903           device/lib/pic16/libc/stdio/printf.c,
904           device/lib/pic16/libc/stdio/strmusart.c,
905           device/lib/pic16/libc/stdio/printf_tiny.c,
906           device/lib/pic16/libc/stdio/sprintf.c,
907           device/lib/pic16/libc/stdio/strmgpsim.c,
908           device/lib/pic16/libc/stdio/putchar.c,
909           device/lib/pic16/libc/stdio/fprintf.c,
910           device/lib/pic16/libc/stdio/strmmssp.c,
911           device/device/lib/pic16/libc/stdio/vprintf.c,
912           device/lib/pic16/libc/stdio/printf_small.c,
913           device/lib/pic16/libc/stdio/vsprintf.c,
914           device/lib/pic16/libc/stdio/strmputchar.c,
915           device/lib/pic16/libc/Makefile.am,
916           device/lib/pic16/libc/Makefile.in:
917           *printf now returns int, puchar.c moved from stdlib to stdio,
918           *printf format parameter type changed from char * to const char *,
919           added GNU link excetion text to library source files,
920           applyed GNU coding style, removed useless svn ids,
921           added BINARY_SPECIFIER macro re-enables the use of the removed 'b'
922           binary specifier: "%b", "%hb" and "%lb"
923         * device/lib/pic16/libc/stdio/vfprintf.c:
924           applied patch #2044424: PIC16: vfprintf
925           thanks Mauro Giachero
926         * support/regression/tests/bug1057979.c:
927           removed old pic16 sprintf specifics
928         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.4
929         * doc/sdccman.lyx: documented 'b' binary format specifier removal
930
931 2008-09-15 Raphael Neider <rneider AT web.de>
932
933         * src/pic16/device.c (pic16_dump_usection): force udata sections
934           into the addressable range (0..0xFFF), workaround for a gpsim
935           bug preventing simulation of regtest bug1750318
936         * src/pic16/ralloc.c (deassignLRs): cosmetic changes,
937           (serialRegAssign): fixed regtest bug-971834,
938           (pic16_packRegisters): avoid null-pointer dereference
939
940 2008-09-14 Raphael Neider <rneider AT web.de>
941
942         * src/pic16/gen.c, src/pic16/ralloc.c: use
943           SYM_SPIL_LOC/SPIL_LOC macros, no functional changes
944         * src/pic16/ralloc.c (rematStr): reimplemented, fixes #1818857
945
946 2008-09-12 Borut Razem <borut.razem AT siol.net>
947
948         * support/regression/fwk/testfwk.h:
949           define pdata as data for pic16 target
950           thanks Mauro Giachero
951
952 2008-09-11 Borut Razem <borut.razem AT siol.net>
953
954         * support/regression/tests/bug-221100.c, support/regression/shifts.c,
955           support/regression/absolute.c:
956           applied patch #2105615: Some PIC16 testcase fixlets
957           thanks Mauro Giachero
958
959 2008-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
960
961         * src/z80/gen.c (genCmpGt, genCmpLt): fixed bug 2094505
962         * support/regression/tests/bug2094505.c: new, added
963
964 2008-09-07 Borut Razem <borut.razem AT siol.net>
965
966         * src/SDCCglue.c, src/SDCCast.c:
967           fixed throw of "excess elements" warning for char arrays
968         * support/regression/tests/nullstring.c:
969           disable warning about excess elements in array of chars initializer
970
971 2008-09-07 Maarten Brock <sourceforge.brock AT dse.nl>
972
973         * as/z80/aslist.c (lstsym): changed old K&R to ANSI
974         * src/SDCCicode.c (geniCodeCritical): fixed bug for hc08
975         * src/z80/gen.c (genCritical, genEndCritical): fixed bug 2077267
976         * support/regression/tests/bug2077267.c: new, added
977
978 2008-09-05 Raphael Neider <rneider AT web.de>
979
980         * configure.in, Makefile.common.in: add support for ccache,
981           remove spurious $VERSION output, detect doc-tools even without
982           --enable-doc to facilitate later manual doc-builds, minor cleanup
983         * configure: regenerated
984
985         * doc/Makefile.in: quieten pdflatex, makeindex, and latex2html,
986           avoid races in parallel VPATH builds
987         * doc/clean.mk: remove .lyx files in the builddir for VPATH builds
988         * doc/sdccman.lyx: mention --without-ccache configure option
989
990 2008-09-01 Raphael Neider <rneider AT web.de>
991
992         * src/pic16/gen.c (pic16_derefPtr): handle CPOINTERs as well
993         * (genConstPointerGet): fix reading bitfields from __code space
994         * src/pic16/glue.c (pic16_printIvalBitFields): correctly mask
995           bitfield initializers (fix regression test bug1856409.c)
996         * (pic16_printIvalCharPtr,pic16_printIvalPtr): generalized to support
997           arbitrary sizes
998
999 2008-08-31 Raphael Neider <rneider AT web.de>
1000
1001         * src/pic16/gen.c (genAssign): removed useless compiler output
1002         * (genPointerGet,genPointerSet,genCast),
1003           src/pic16/glue.c (pic16_printGPointerType):
1004           also handle PPOINTERs just to avoid spurious asserts
1005         * (pic16_printIvalType,pic16_printIvalBitFields):
1006           generalized to arbitrary type/bitfield sizes, allows compilation of
1007           regression test bug-1981238.c
1008         * (pic16_printIvalChar): fix regression test structflexarray.c
1009         * (pic16_printIvalArray): avoid SIGSEGV on uninitialized strings
1010           in initialized structs and fix #1843745
1011         * (pic16_printIvalStruct): always output initializers for all fields,
1012           even those not explicitly given, fixes zeropad.c regression test
1013         * (pic16_printIvalUnion): fix union initializers (bug1426356.c,
1014           #2073635, #1567098, and #1485812)
1015         * src/pic16/main.c (_pic16_keywords): remove unsupported 'pdata'
1016
1017 2008-08-31 Borut Razem <borut.razem AT siol.net>
1018
1019         * support/regression/tests/bug-895992.c,
1020           support/regression/tests/onebyte.c:
1021           enabled pic16 regression testing since the bugs
1022           1511794: pic16: regression test bug-895992.c fails
1023           1444425: onebyte.c regression tes fails on pic16
1024           are fixed, probably by fixing
1025           2048464: PIC16: fix genUminus - addresses not.c regression test
1026         * src/SDCCsymt.c, src/SDCCglue.c,
1027           support/regression/tests/bug-1981238.c:
1028           applied patch 2076664: fix #1981238 + SIGSEGV in SDCCGlue.c
1029           thanks to RvS
1030
1031 2008-08-30 Borut Razem <borut.razem AT siol.net>
1032
1033         * support/cpp/libcpp/files.c: SDCPP synchronized with GCC CPP
1034           release version 4.3.2
1035
1036 2008-08-24 Raphael Neider <rneider AT web.de>
1037
1038         * device/lib/pic16/configure, device/lib/pic16/configure.ac:
1039           always use the sdcc from the current build tree (ignore $CC from
1040           the environment, fixes compile farm builds)
1041         * device/lib/Makefile.in: rename .a into .lib for compatibility,
1042           remove more build products from install directory
1043         * sdcc/src/pic16/main.c (_pic16_linkEdit,_pic16_finaliseOptions)
1044         * sdcc/support/scripts/sdcc.nsi: revert to .lib extension for libs
1045
1046 2008-08-24 Borut Razem <borut.razem AT siol.net>
1047
1048         * src/SDCC.y: applied patch
1049           2050245: Fix # 1963382
1050           for bug
1051           1963382: Listing File - C file comment is incorrect
1052           thanks to RvS
1053
1054 2008-08-23 Borut Razem <borut.razem AT siol.net>
1055
1056         * src/pic16/gen.c: applied patch
1057           2048464: PIC16: fix genUminus - addresses not.c regression test
1058           thanks Mauro Giachero
1059
1060 2008-08-22 Borut Razem <borut.razem AT siol.net>
1061
1062         * device/lib/pic16/configure, device/lib/pic16/configure.ac,
1063           src/pic16/main.c: allow spaces in gpasm and gplink paths
1064
1065 2008-08-15 Philipp Klaus Krause <pkk AT spth.de>
1066
1067         * src/z80/peep.c,
1068         * src/z80/peeph-z80.def: minor peephole improvement
1069
1070 2008-08-15 Raphael Neider <rneider AT web.de>
1071
1072         * src/z80/gen.c (_vemit2): suppress compiler warning
1073
1074         * src/pic/*.[ch]: make proper use of header files and avoid
1075           ad-hoc extern declarations, mark module-local helpers 'static',
1076           removed dead/replaced code, no functional changes
1077         * src/pic16/pcode.c: disentangled from pic14 backend
1078
1079 2008-08-14 Philipp Klaus Krause <pkk AT spth.de>
1080
1081         * src/z80/gen.c: fixed #2051348
1082         * support/regression/tests/bug-2051348.c: regression test for #2051348
1083
1084 2008-08-10 Raphael Neider <rneider AT web.de>
1085
1086         * configure.in,
1087         * Makefile.common.in: export PACKAGE for $docdir,
1088           fixes #1957036, avoid some "underquoted definition" warnings
1089         * configure: regenerated
1090
1091 2008-08-10 Raphael Neider <rneider AT web.de>
1092
1093         * device/lib/pic16/**: build pic16 library using autotools for
1094           improved dependency tracking
1095
1096         * device/lib/Makefile.in,
1097         * src/pic16/main.c,
1098         * support/scripts/sdcc.nsi: adapt to changes in filenames (s/.lib/.a/)
1099
1100 2008-08-10 Raphael Neider <rneider AT web.de>
1101
1102         * src/pic/pcode.c (ReuseReg): do not overlay the registers used for
1103           local variables if --nooverlay is given, workaround for #2023121
1104
1105 2008-08-08 Raphael Neider <rneider AT web.de>
1106
1107         * src/pic16/genarith.c (genAddLit): fix structure access (#1888004)
1108
1109 2008-08-08 Raphael Neider <rneider AT web.de>
1110
1111         * src/pic/pcoderegs.c,
1112         * src/pic/pcode.c,
1113         * src/pic16/pcode.c: replace own SAFE_snprintf with common SNPRINTF
1114
1115 2008-08-07 Borut Razem <borut.razem AT siol.net>
1116
1117         * src/SDCCval.c, src/SDCCmain.c, src/SDCC.lex,
1118           device/lib/pic/Makefile.rules, device/lib/ds390/Makefile.in,
1119           device/lib/ds400/Makefile.in, device/lib/hc08/Makefile.in,
1120           support/cpp/libcpp/lex.c,  doc/sdccman.lyx:
1121           applied modified patch 2038174: Add support for binary constants v2
1122           thanks Mauro Giachero
1123         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.3
1124
1125 2008-08-04 Raphael Neider <rneider AT web.de>
1126
1127         * doc/sdccman.lyx,
1128         * src/pic16/device.h,
1129         * src/pic16/glue.c,
1130         * src/pic16/main.c: enable --optimize-goto by default
1131
1132         * device/lib/pic16/Makefile.common.in: suppress removed option
1133
1134         * src/pic16/gen.c,
1135         * src/pic16/genutils.c: avoid too long relative branches (#2031890)
1136
1137 2008-07-30 Borut Razem <borut.razem AT siol.net>
1138
1139         * src/pic16/device.c, src/pic16/glue.c, src/pic16/pcode.c:
1140           applied patch 22032433: PIC16: fix constant strings,
1141           thanks Mauro Giachero
1142
1143 2008-07-29 Borut Razem <borut.razem AT siol.net>
1144
1145         * src/pic16/gen.c: applied patches:
1146           2030306: [1/3] PIC16: fix failing rotate.c tests on 16-bit variables,
1147           2030307: [2/3] PIC16: fix failing rotate.c tests for 32-bit var (1),
1148           2030310: [3/3] PIC16: fix failing rotate.c tests for 32-bit var (2),
1149           thanks Mauro Giachero
1150
1151 2008-07-13 Philipp Klaus Krause <pkk AT spth.de>
1152
1153         * src/port.h: Fixed typo in comment
1154
1155 2008-07-12 Philipp Klaus Krause <pkk AT spth.de>
1156
1157         * src/z80/mappings.i: Implemented RFE #1919415
1158         * src/z80/peeph-z80.def: Implemented RFE #1919415, #1861376,
1159           #1880202, #1914434, prepared for RFE #1703943
1160
1161 2008-07-12 Philipp Klaus Krause <pkk AT spth.de>
1162
1163         * src/z80/peeph.def,
1164         * src/z80/peeph-z80.def,
1165         * src/z80/peeph-gbz80.def: separate Z80 from GBZ80 peepholes in
1166           preparation for Z80 peephole improvements
1167
1168 2008-06-21 Raphael Neider <rneider AT web.de>
1169
1170         * device/include/pic16/pic18f66j60.h,
1171         * device/include/pic16/pic18f66j65.h,
1172         * device/include/pic16/pic18f67j60.h,
1173         * device/include/pic16/pic18f86j60.h,
1174         * device/include/pic16/pic18f86j65.h,
1175         * device/include/pic16/pic18f87j60.h,
1176         * device/include/pic16/pic18f96j60.h,
1177         * device/include/pic16/pic18f96j65.h,
1178         * device/include/pic16/pic18f97j60.h,
1179         * device/lib/pic16/libdev/pic18f66j60.c,
1180         * device/lib/pic16/libdev/pic18f66j65.c,
1181         * device/lib/pic16/libdev/pic18f67j60.c,
1182         * device/lib/pic16/libdev/pic18f86j60.c,
1183         * device/lib/pic16/libdev/pic18f86j65.c,
1184         * device/lib/pic16/libdev/pic18f87j60.c,
1185         * device/lib/pic16/libdev/pic18f96j60.c,
1186         * device/lib/pic16/libdev/pic18f96j65.c,
1187         * device/lib/pic16/libdev/pic18f97j60.c,
1188         * device/include/pic16/pic16devices.txt,
1189         * device/include/pic16/pic18fregs.h,
1190         * device/lib/pic16/pics.all: added new devices
1191
1192         * device/include/pic16/adc.h,
1193         * device/lib/pic16/libio/adc/adcbusy.c,
1194         * device/lib/pic16/libio/adc/adcopen.c,
1195         * device/lib/pic16/libio/adc/adcsetch.c,
1196         * device/lib/pic16/libio/i2c/i2copen.c,
1197         * device/lib/pic16/libio/usart/uopen.c: adapted to new devices,
1198           all changes from a patch by Anton Strobl
1199
1200 2008-06-12 Borut Razem <borut.razem AT siol.net>
1201
1202         * sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/bp.cc,
1203           sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
1204           sim/ucsim/z80.src/z80cl.h, sim/ucsim/z80.src/z80.cc,
1205           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
1206           sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
1207           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/uc390.cc,
1208           sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/uc390cl.h,
1209           sim/ucsim/avr.src/avrcl.h, sim/ucsim/avr.src/avr.cc:
1210           fixed bug 1990586: s51 simulator, uc::disass() unimplemented
1211           by applying the modified patch from Risto Huotari
1212
1213 2008-06-04 Maarten Brock <sourceforge.brock AT dse.nl>
1214
1215         * .version,
1216         * doc/sdccman.lyx: bumped sdcc version to 2.8.2
1217         * src/ds390/gen.c (aopPutUsesAcc, genAddrOf): fixed bug 1015185
1218         * src/mcs51/gen.c (genNearPointerGet, genNearPointerSet): fixed bug 1938300
1219         * support/regression/tests/bug1938300.c: new, added
1220
1221 2008-06-03 Maarten Brock <sourceforge.brock AT dse.nl>
1222
1223         * device/include/asm/ds390/features.h,
1224         * device/include/asm/mcs51/features.h,
1225         * device/include/mcs51/regc515c.h: inserted LGPL notice
1226
1227 2008-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
1228
1229         * device/lib/gbz80/div.s,
1230         * device/lib/z80/div.s: fixed bug 1904314 by applying a modified part of
1231           patch 1597883, Thanks Robert Ramey
1232
1233 2008-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
1234
1235         * src/SDCCast.c (createIvalType, createIvalStruct, createIvalArray,
1236           createIvalCharPtr, createIvalPtr, createIval),
1237         * src/SDCCval.h
1238         * src/SDCCval.c (convertIListToConstList, list2expr): handle incomplete
1239           initializers for local auto variables
1240         * support/regression/tests/zeropad.c: added testcase for auto initializers
1241
1242 2008-05-26 Raphael Neider <rneider AT web.de>
1243
1244         * device/lib/pic16/startup/crt0.c,
1245         * device/lib/pic16/startup/crt0i.c,
1246         * device/lib/pic16/startup/crt0iz.c: clean up, make use of access bank
1247           explicit, fixed curr_entry loop for >= 256 initializer records,
1248           removed debug code (write to 0xf7e)
1249
1250 2008-05-25 Raphael Neider <rneider AT web.de>
1251
1252         * device/include/pic/pic16f627a.h,
1253         * device/include/pic/pic16f628a.h,
1254         * device/include/pic/pic16f648a.h: added missing ports
1255
1256 2008-05-20 Maarten Brock <sourceforge.brock AT dse.nl>
1257
1258         * device/include/float.h: added __INFINITY
1259         * device/lib/_fsadd.c: handle overflows
1260         * device/lib/_fsmul.c,
1261         * device/lib/_fsdiv.c: use __INFINITY
1262         * device/lib/_fseq.c,
1263         * device/lib/_fsneq.c: handle -0.0
1264         * sim/ucsim/s51.src/uc89c51r.cc,
1265         * sim/ucsim/s51.src/uc89c51rcl.h: fixed bug 1385430
1266         * sim/ucsim/sim.src/hwcl.h: */* confuses VC
1267         * src/mcs51/gen.c (genSend): fixed bug with --xstack
1268         * support/regression/ports/mcs51-xstack-auto/spec.mk: print floats
1269         * support/regression/tests/snprintf.c: test bug with --xstack
1270
1271 2008-05-19  Philipp Klaus Krause <pkk AT spth.de>
1272
1273         * src/SDCCpeeph.c (callFuncByName):
1274           Support nested parenthesis in peephole function arguments (#1967300)
1275
1276 2008-05-19 Raphael Neider <rneider AT web.de>
1277
1278         * src/pic16/gen.c (pic16_emitpLabel,pic16_emitpLabelFORCE):
1279           fixed duplicate labels (#1911325)
1280
1281 2008-05-19 Raphael Neider <rneider AT web.de>
1282
1283         * src/regression/empty.c: suppress warning
1284         * src/regression/pointer1.c: enabled index_by_pointer()
1285         * src/regression/inline.c: now works for pic16 as well
1286
1287         * src/pic16/device.c: include dbuf declarations
1288         * src/pic16/device.h: removed obsolete prototypes
1289
1290         * src/pic16/gen.c, src/pic16/gen.h: moved generic pointer tags
1291         * src/pic16/glue.c: made purely local functions static,
1292           (pic16_printGPointerType, pic16_printIvalCharPtr,
1293           pic16_printIvalFuncPtr, pic16_printIvalPtr): fixed initialized
1294           generic pointers' tags (#1961866)
1295
1296         * src/pic16/pcode.c (assignValnums): optimize literal assignments
1297
1298 2008-05-19 Borut Razem <borut.razem AT siol.net>
1299
1300         * support/scripts/sdcc.nsi: remove uninstall.exe after uninstallation,
1301           fixed typo, uninstall include/pic16/pic16devices.txt
1302
1303 2008-05-18 Borut Razem <borut.razem AT siol.net>
1304
1305         * support/Utils/dbuf_string.[ch]: added dbuf_chomp(),
1306           the buffer is null terminated
1307         * src/device/pic16.c:
1308           applied modified patch 1965676: Patch for Win32 16 bit PIC
1309         * sdcc_vc_in.h: defined YY_NO_UNISTD_H
1310
1311 2008-05-16 Maarten Brock <sourceforge.brock AT dse.nl>
1312
1313         * src/SDCC.lex (check_type),
1314         * src/SDCC.y (type_specifier2 TYPE_NAME): fixed bug 1925942
1315         * as/hc08/clean.mk,
1316         * as/mcs51/clean.mk,
1317         * as/z80/clean.mk: also clean *.dep
1318         * device/lib/pic16/libsdcc/stack/Makefile,
1319         * sim/ucsim/libtool: removed as they are rebuild by configure
1320         * src/clean.mk: removed izt, so Makefile is not deleted for distclean
1321
1322 2008-05-13 Maarten Brock <sourceforge.brock AT dse.nl>
1323
1324         * src/SDCCast.c (fixupInline, createFunction): save currBlockno in
1325           fixupInline instead of createFunction to fix bug 1864577
1326           (inlineFindMaxBlockno): removed, use global blockNo
1327         * src/SDCCglobl.h: added blockNo
1328         * src/z80/peep.c,
1329         * src/z80/peep.h: modified properties
1330         * support/regression/tests/bug1864577.c: new, added
1331
1332 2008-05-07 Maarten Brock <sourceforge.brock AT dse.nl>
1333
1334         * as/mcs51/asdata.c,
1335         * as/mcs51/asm.h: added org_cnt
1336         * as/mcs51/asmain.c (main, asmbl): fixed bug 1957716, changed old K&R to ANSI
1337         * as/mcs51/asout.c: changed old K&R to ANSI
1338         * as/mcs51/Makefile.in: use common identifiers
1339         * as/hc08/asdata.c,
1340         * as/hc08/asexpr.c,
1341         * as/hc08/asm.h,
1342         * as/hc08/asmain.c,
1343         * as/hc08/asout.c,
1344         * as/hc08/Makefile.bcc,
1345         * as/hc08/Makefile.in: synchronized with as/mcs51/*
1346         * sdcc_vc_in.h: added define __func__
1347         * src/SDCCast.c (expandInlineFuncs): applied patch 1957148 to fix bug 1717305,
1348           Thanks Ruud van Silfhout
1349         * support/regression/tests/bug1717305.c: new, added
1350
1351 2008-05-05 Borut Razem <borut.razem AT siol.net>
1352
1353         * support/regression/Makefile.in,
1354           support/regression/ports/ds390/spec.mk,
1355           support/regression/ports/hc08/spec.mk,
1356           support/regression/ports/mcs51-common/spec.mk,
1357           support/regression/ports/pic14/spec.mk,
1358           support/regression/ports/pic16/spec.mk,
1359           support/regression/ports/ucz80/spec.mk,
1360           support/regression/ports/z80/spec.mk:
1361           added INC_DIR and LIBDIR paths
1362         * src/ds390/gen.c: removed duplicated selicolon
1363
1364 2008-05-04 Borut Razem <borut.razem AT siol.net>
1365
1366         * support/regression/Makefile.in,
1367           support/regression/fwk/lib/testfwk.c,
1368           support/regression/ports/ds390/spec.mk,
1369           support/regression/ports/hc08/spec.mk,
1370           support/regression/ports/mcs51-common/spec.mk,
1371           support/regression/ports/mcs51-large/spec.mk,
1372           support/regression/ports/mcs51-medium/spec.mk,
1373           support/regression/ports/mcs51-small/spec.mk,
1374           support/regression/ports/mcs51-stack-auto/spec.mk,
1375           support/regression/ports/mcs51-xstack-auto/spec.mk,
1376           support/regression/ports/pic14/spec.mk,
1377           support/regression/ports/pic16/spec.mk,
1378           support/regression/ports/ucz80/spec.mk:
1379           added possibility to define the sdcc binary directory SDCC_BIN_PATH
1380           used to run regeression tests
1381
1382 2008-05-01 Raphael Neider <rneider AT web.de>
1383
1384         * doc/sdccman.lyx, support/scripts/inc2h-pic16.pl: updated list of
1385           supported devices and instructions to add new ones
1386
1387 2008-05-01 Raphael Neider <rneider AT web.de>
1388
1389         * device/include/pic16/adc.h,
1390           device/lib/pic16/libio/adc/adcbusy.c,
1391           device/lib/pic16/libio/adc/adcopen.c,
1392           device/lib/pic16/libio/adc/adcsetch.c: support old 18f242 and new
1393           18f2455 style ADC devices, based on patch #1776197
1394         * device/lib/pic16/libio/adc/adcclose.c,
1395           device/lib/pic16/libio/adc/adcconv.c,
1396           device/lib/pic16/libio/adc/adcread.c: cosmetic changes
1397         * device/include/pic16/{pic18f2331.h,pic18f2431.h},
1398           device/lib/pic16/libdev/{pic18f2331.c,pic18f2431.c}: reuse 18f4331
1399         * device/include/pic16/pic18f4431.h,
1400           device/lib/pic16/libdev/pic18f4431.c: remove outdated comments
1401         * device/lib/pic16/libio/adc.ignore: forbid unhandled devices
1402
1403 2008-05-01 Raphael Neider <rneider AT web.de>
1404
1405         * src/pic16/device.h: removed unused field PIC16_device.sfrRange,
1406           moved xinst flag into pic16_options_t
1407         * src/pic16/device.c (default_device, pic16_list_devices,
1408           pic16_find_device): removed references to sfrrange
1409         * src/pic16/gen.c (genFunction),
1410           src/pic16/glue.c (pic16initialComments),
1411           src/pic16/main.c (pic16_optionsTable),
1412           src/pic16/ralloc.c (newReg, pic16_writeUsedRegs): updated references
1413           to xinst
1414         * device/include/pic16/pic16devices.txt: removed sfrrange lines
1415
1416 2008-04-29 Raphael Neider <rneider AT web.de>
1417
1418         * src/pic16/devices.inc,
1419           device/include/pic16/pic16devices.txt: replaced compiled-in list
1420           of devices with a variant parsed at runtime
1421         * src/pic16/device.c: added support for parsing pic16devices.txt,
1422           clean up
1423         * src/pic16/device.h: removed (now) unused fields from PIC_device
1424         * src/pic16/main.c: removed #pragma maxram,
1425           (_pic16_initPaths): removed bogus generation of search paths,
1426           setup the port proper only after the search paths (for
1427           pic16devices.txt) are set up,
1428           (_pic16_finaliseOptions): moved processor dependant code here
1429           from _pic16_initPaths(), clean up
1430         * src/pic16/ralloc.c (pic16_init_stack),
1431         * src/pic16/ralloc.h,
1432         * src/pic16/pcode.c: clean up
1433         * device/include/Makefile.in,
1434           support/scripts/sdcc.nsi: also install/package pic16devices.txt
1435         * support/scripts/inc2h-pic16.pl: updated instructions
1436
1437 2008-04-29 Raphael Neider <rneider AT web.de>
1438
1439         * device/include/pic16/{pic18f2480.h, pic18f2580.h, pic18f4423.h,
1440           pic18f4480.h, pic18f4523.h, pic18f4580.h, pic18f6585.h, pic18f8585.h},
1441           device/lib/pic16/libdev/{pic18f2480.c, pic18f2580.c, pic18f4423.c,
1442           pic18f4480.c, pic18f4523.c, pic18f4580.c, pic18f6585.c, pic18f8585.c}:
1443           added missing family members and 18f2480/2580/4480/4580 family
1444         * device/include/pic16/{pic18f2423.h, pic18f2523.h}: use 18f4523.h
1445         * device/include/pic16/pic18f2525.h: use 18f4620.h
1446         * device/include/pic16/pic18f6680.h: use 18f8680.h
1447         * device/include/pic16/pic18fregs.h,
1448           device/lib/pic16/pics.all,
1449           src/pic16/devices.inc: add new devices
1450         * device/lib/pic16/libdev/{pic18f2423.c, pic18f2523.c}: use 18f4523.c
1451         * device/lib/pic16/libdev/pic18f2525.c: use 18f4620.c
1452         * device/lib/pic16/libdev/pic18f6680.c: uso 18f8680.c
1453         * device/lib/pic16/libio/{adc.ignore, i2c.ignore, usart.ignore}:
1454           prevent attempting to build the libio for some new devices
1455
1456 2008-04-29 Raphael Neider <rneider AT web.de>
1457
1458         * debugger/mcs51/Makefile.in: fixed paths to sources
1459
1460 2008-04-25 Borut Razem <borut.razem AT siol.net>
1461
1462         * as/link/lklibr.c: moved from as/link/z80/lklibr.c
1463         * as/link/hc08/lklibr.c, as/link/mcs51/lklibr.c: deleted
1464         * as/link/hc08/Makefile.bcc, as/link/hc08/Makefile.in,
1465         * as/link/hc08/link_hc08.dsp, as/link/mcs51/Makefile.bcc,
1466           as/link/mcs51/Makefile.in, as/link/mcs51/aslink.dsp,
1467           as/link/z80/Makefile.in, as/link/z80/linkgbz80.dsp,
1468           as/link/z80/linkz80.dsp: lklibr.c moved
1469         * doc/INSTALL.txt: binary archives in bz2 format
1470         * support/cpp/auto-host_vc_in.h: CPP2 replaced with CPP
1471
1472 2008-04-23 Maarten Brock <sourceforge.brock AT dse.nl>
1473
1474         * src/SDCCglue.c (printIvalType, printIvalBitFields): fixed bug 1856409
1475         * support/regression/tests/bug1856409.c: new, added
1476
1477 2008-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
1478
1479         * src/z80/peep.c,
1480         * src/mcs51/peep.c: Use werror for error messages.
1481         * src/SDCCicode.c (geniCodeConditional),
1482         * src/SDCCsymt.c (structElemType): fixed bug 1839321
1483         * src/z80/Makefile.bcc,
1484         * src/z80/z80.dsp: added src/z80/peep.c/h
1485         * support/regression/tests/bug1839321.c: new, added
1486
1487 2008-04-20 Raphael Neider <rneider AT web.de>
1488
1489         * device/include/pic16/pic18f2455.h: added bitfields for port C
1490
1491 2008-04-20 Philipp Klaus Krause <pkk AT spth.de>
1492
1493         * src/z80/peep.c: Use werror for error messages.
1494
1495 2008-04-19 Philipp Klaus Krause <pkk AT spth.de>
1496
1497         * src/z80/peep.h (declaration of notUsed()),
1498         * src/z80/main.c (enabled notUsed() for z80 port, documented z80_port
1499           struct),
1500         * src/z80/z80.h (added dependency on peep.h),
1501         * src/z80/peep.c (definition of notUsed()): Implemented RFE #1880202
1502           for Z80.
1503
1504 2008-04-19 Philipp Klaus Krause <pkk AT spth.de>
1505
1506         * src/SDCCpeeph.c (added support for notUsed()),
1507         * src/mcs51/main.c (added dependency on peep.h, documented mcs51_port
1508           struct),
1509         * src/port.h (removed dependency on mcs51/peep.h, added declaration
1510           for notUsed()): Implemented generic (that is not port-specific) part
1511           of RFE #1880202.
1512
1513 2008-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
1514
1515         * as/link/mcs51/lkmem.c (summary2): fixed bug 1796077
1516         * device/lib/libsdcc.lib,
1517         * device/lib/Makefile.in,
1518         * support/regression/ports/mcs51-xstack-auto/spec.mk,
1519         * device/lib/calloc.c: renamed to _calloc.c
1520         * device/lib/free.c: renamed to _free.c
1521         * device/lib/malloc.c: renamed to _malloc.c
1522         * device/lib/realloc.c: renamed to _realloc.c
1523         * src/ds390/gen.c (aopGet, aopPut, genPlusBits, genDataPointerSet,
1524           genNearPointerSet, genPagedPointerSet): synchronized with mcs51/gen.c
1525         * src/ds390/gen.c (popForBranch, genIfxJump, genCmp, genCmpEq, ifxForOp,
1526           genAnd, genOr, genXor, genIfx, gen390Code): fixed bug 1509084
1527         * src/mcs51/gen.c (popForBranch, genIfxJump, genCmp, genCmpEq,
1528           ifxForOp, genAnd, genOr, genXor, genNearPointerGet,
1529           genPagedPointerGet, genFarPointerGet, genCodePointerGet,
1530           genGenPointerGet, genIfx, gen51Code): fixed bug 1509084
1531         * src/ds390/gen.c,
1532         * src/mcs51/gen.c: throughout cosmetic changes for syncing both
1533         * src/SDCCsymt.h: updated IS_OP_RUONLY, IS_OP_ACCUSE
1534         * support/regression/tests/bug1509084.c: new, added
1535
1536 2008-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
1537
1538         * device/include/mcs51/cc2510fx.h: added _XPAGE
1539         * device/include/mcs51/compiler.h: cosmetic changes
1540
1541 2008-03-31 Maarten Brock <sourceforge.brock AT dse.nl>
1542
1543         * sdcc.dsw: adapted for moved cpp2, added dependency for as_z80 on
1544           config
1545
1546 2008-03-31 Borut Razem <borut.razem AT siol.net>
1547
1548         * support/cpp2 renamed to support/cpp
1549         * support/cpp2/libiberty/filenames.h, support/cpp2/libiberty/hex.c,
1550           support/cpp2/libiberty/splay-tree.c,
1551           support/cpp2/libiberty/splay-tree.h, support/cpp2/libcpp/macro.c,
1552           support/cpp2/libcpp/directives.c,
1553           support/cpp2/libcpp/include/cpplib.h,
1554           support/cpp2/libcpp/include/symtab.h,
1555           support/cpp2/libcpp/include/line-map.h,
1556           support/cpp2/libcpp/line-map.c, support/cpp2/libcpp/files.c,
1557           support/cpp2/libcpp/init.c, support/cpp2/libcpp/traditional.c,
1558           support/cpp2/libcpp/expr.c, support/cpp2/libcpp/internal.h,
1559           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/system.h,
1560           support/cpp2/libcpp/charset.c: SDCPP synchronized with GCC CPP
1561           release version 4.3.0
1562         * configure.in, configure, Makefile.in, Makefile.bcc:
1563           adapted for moved cpp2
1564
1565 2008-03-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1566
1567         * device/include/hc08/mc68hc908jkjl.h: committed fix for bug #1929739,
1568           thanks Alejandro Pustowka <alejo_pustowka AT yahoo.com.mx>
1569
1570 2008-03-30 Maarten Brock <sourceforge.brock AT dse.nl>
1571
1572         * src/SDCCloop.c (loopInvariants): applied fix for bug 1717943, thanks
1573           Robert Larice
1574         * support/regression/tests/bug1717943.c: new, added
1575
1576 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
1577
1578         * src/z80/gen.c (assignResultValue): Reverted reversal of order of
1579           bytewise return value assignments introduced in last commit.
1580
1581 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
1582
1583         * src/z80/gen.c (emitDebug, assignResultValue, genPlus, genMinus,
1584           genMult, genJumpTab):
1585           Use 16-bit instructions for addition in some additional cases,
1586           implemented RFEs #1914251, #1914245, #1922090, #1921382, #1918323.
1587
1588 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
1589
1590         * src/z80/ralloc.c (serialRegAssign, allocReg, tryAllocatingRegPair):
1591           Implemented RFE #1921450, changed some debug messages.
1592
1593 2008-03-30 Borut Razem <borut.razem AT siol.net>
1594
1595         * Small Device C Compiler 2.8.0 released
1596         * .version, doc/sdccman.lyx: changed sdcc version to 2.8.1
1597         * support/scripts/sdcc.nsi: added finish page; this version
1598           was used for 2.8.0 release
1599         * doc/knownbugs.html: removed; magically generated by the build
1600           process using gen_known_bugs.pl from now on
1601
1602 2008-03-23 Borut Razem <borut.razem AT siol.net>
1603
1604         * src/pic/gen.h: Q&D solution for the bug, found by Jim Paris
1605           and reverted it, since it was already fixed by Raphael ;-)
1606         * doc/knownbugs.html: updated for RC2
1607
1608 2008-03-22 Raphael Neider <rneider AT web.de>
1609
1610         * src/SDCCicode.c (getPtrType): avoid unnecessary extra assignments
1611           for PIC16 targets
1612
1613 2008-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
1614
1615         * src/mcs51/gen.c (adjustArithmeticResult): fixed bug 1839299
1616         * support/regression/tests/bug1839277.c: added related testBug1839299
1617
1618 2008-03-21 Maarten Brock <sourceforge.brock AT dse.nl>
1619
1620         * src/ds390/gen.c (opIsGptr, adjustArithmeticResult, genAddrOf, genAssign),
1621         * src/mcs51/gen.c (opIsGptr, adjustArithmeticResult, genAddrOf, genAssign):
1622           fixed bug 1839277
1623         * src/mcs51/gen.c: throughout only output hex constants
1624         * src/SDCCicode.c (getPtrType, geniCodeCast): fixed code size regression
1625         * support/regression/tests/bug1839277.c: new, added
1626
1627 2008-03-21 Philipp Klaus Krause <pkk AT spth.de>
1628
1629         * src/z80/ralloc.c (callFuncByName): Used // instead of /**/ to fix
1630           compilation warning about nested comments.
1631
1632 2008-03-20 Maarten Brock <sourceforge.brock AT dse.nl>
1633
1634         * src/SDCCsymt.c (comparePtrType): fixed bug 1921073
1635         * support/regression/tests/bug1921073.c: new, added
1636
1637 2008-03-17 Philipp Klaus Krause <pkk AT spth.de>
1638
1639         * src/z80/SDCCpeeph.c.c (callFuncByName):
1640           Commented function parameters.
1641
1642 2008-03-17 Philipp Klaus Krause <pkk AT spth.de>
1643
1644         * src/z80/ralloc.c (packRegsForAccUse2):
1645           disabled a broken accumulator packing optimization (fixed #1292721).
1646         * support/regression/tests/bug-1292721: Regression test for #1292721.
1647
1648 2008-03-16 Raphael Neider <rneider AT web.de>
1649
1650         * src/pic/gen.c (SetIrp,genNearPointerGet,genNearPointerSet):
1651           fixed code bloat regression using a variant of patch #1915618
1652
1653 2008-03-16 Borut Razem <borut.razem AT siol.net>
1654
1655         * support/scripts/sdcc.nsi: added section debugging macros, added SDCC
1656           icon, changed startup menu for release distribution, code cleaning,
1657           create url files instead links in startup menu
1658
1659 2008-03-16 Maarten Brock <sourceforge.brock AT dse.nl>
1660
1661         * src/SDCCcse.c (algebraicOpts): fixed bug 1579949
1662         * support/regression/tests/bug1579949.c: new, added
1663
1664 2008-03-14 Paul Stoffregen <paul AT pjrc.com>
1665
1666         * device/lib/printf_fast.c: fixed bug 1255403
1667
1668 2008-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
1669
1670         * doc/sdccman.lyx: enhanced paragraph about bankswitching for mcs51
1671         * src/cdbFile.c (cdbWriteBasicSymbol): fixed bug 1909409 for locals
1672
1673 2008-03-14 Borut Razem <borut.razem AT siol.net>
1674
1675         * as/doc/asmlnk.doc, as/doc/asxhtm.html: updated link-xx and aslink
1676           command line options
1677         * as/link/hc08/lkmain.c: converted tabs to spaces so that the usage
1678           is correctly displayed
1679         * as/link/z80/lkmain.c: usage line commented out
1680
1681 2008-03-13 Borut Razem <borut.razem AT siol.net>
1682
1683         * doc/sdccman.lyx: corrected to be able to convert to PDF,
1684           updated the list pf supported pic14 devices
1685
1686 2008-03-12 Maarten Brock <sourceforge.brock AT dse.nl>
1687
1688         * doc/sdccman.lyx: added paragraph about bankswitching for mcs51
1689
1690 2008-03-12 Borut Razem <borut.razem AT siol.net>
1691
1692         * as/doc/asmlnk.doc, as/doc/asxhtm.html: updated command line options,
1693           fixed documentation request #1718191
1694         * as/hc80/asmain.c, as/mcs51/asmain.c: added option -c to usage
1695         * doc/sdccman.lyx: added description of --no-std-crt0 gbz80
1696           command line option
1697
1698 2008-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
1699
1700         * src/SDCCast.c (isConformingBody): fixed bug 1505811, thanks Robert Larice
1701         * support/regression/tests/bug1505811.c: new, added
1702
1703 2008-03-09 Raphael Neider <rneider AT web.de>
1704
1705         * device/include/pic16/pic18f2620.h,
1706         * device/include/pic16/pic18f4620.h,
1707         * device/lib/pic16/libdev/pic18f2620.c,
1708         * device/lib/pic16/libdev/pic18f4525.c,
1709         * device/lib/pic16/libdev/pic18f4620.c: merged 18f2525/2620/4525/4620
1710           family to consistently use pic18f4620.[ch], fixes #1832562
1711
1712 2008-03-09 Borut Razem <borut.razem AT siol.net>
1713
1714         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
1715           changed sdcc version to 2.8.0
1716         * knownbugs.html: regenerated
1717         * support/scripts/gen_known_bugs.pl: added number of open bugs
1718
1719 2008-03-09 Raphael Neider <rneider AT web.de>
1720
1721         * src/pic16/gen.c (pic16_mov2w_volatile): NEW, read volatile operands,
1722           (genOr): read volatile operand even if the result is known,
1723           closes #1511838
1724           (genOr,genXor): removed unused legacy code,
1725           (genDummyRead): use pic16_mov2w_volatile()
1726
1727 2008-03-08 Borut Razem <borut.razem AT siol.net>
1728
1729         * src/SDCCglue.c: fixed bug #1864582: multiple definition of char
1730           cons w. --model-large
1731         * support/regression/staticinit.c: added regression test for bug
1732           #1864582
1733
1734 2008-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
1735
1736         * src/ds390/gen.c (pushSide, genPcall),
1737         * src/hc08/gen.c (pushSide, genPcall): synchronized with mcs51
1738         * src/mcs51/gen.c: cosmetic changes
1739         * support/regression/fwk/include/testfwk.h: added macro reentrant
1740         * support/regression/tests/bug1908493.c: new, added
1741
1742 2008-03-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1743
1744         * src/SDCCdebug.c:, as/link/lkaomf51.c: Fixed bug 1909409: Pdata in OMF file
1745
1746 2008-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
1747
1748         * src/mcs51/gen.c (pushSide, genPcall): fixed bug 1908493
1749         * src/SDCCmain.c (preProcess): removed -DSDCC_PARMS_IN_BANK1 because it is
1750           already set in ds390/main.c and mcs51/main.c
1751
1752 2008-03-07 Raphael Neider <rneider AT web.de>
1753
1754         * src/regression/init0.c: new test for initialized arrays of function
1755           pointers
1756         * src/regression/Makefile: made a bit more flexible, added init0.c
1757         * src/pic/glue.c (emitIvals): hacky fix for initializing from function
1758           pointers, closes #1427663
1759
1760 2008-03-05 Borut Razem <borut.razem AT siol.net>
1761
1762         * dos/sdccman.lyx: docummented predefined macros SDCC_REVISION,
1763           SDCC_PARMS_IN_BANK1, SDCC_FLOAT_REENT and SDCC_INT_LONG_REENT
1764
1765 2008-03-05 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1766
1767         * support/librarian/sdcclib.c:Added feature request 1908061:
1768           Synchronise sdcclib commands with ar.
1769
1770 2008-03-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1771
1772         * src/SDCCmain.c: added predefined macros SDCC_REVISION (RFE #1907229),
1773           and (depending on corresponding compiler option) SDCC_PARMS_IN_BANK1,
1774           SDCC_FLOAT_REENT, SDCC_INT_LONG_REENT
1775         * device/include/mcs51/compiler.h: removed umlauts, added double
1776           underscore
1777
1778 2008-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
1779
1780         * src/SDCCptropt.c (ptrPseudoSymConvert): fixed bug 1536762
1781         * support/regression/tests/bug1536762.c: new, added
1782         * src/SDCCutil.c,
1783         * src/SDCCutil.h: added getBuildDate()
1784         * src/SDCCmain.c (printVersionInfo),
1785         * src/SDCCglue.c (initialComments): use getBuildDate() instead of
1786           __DATE__
1787         * src/*/ralloc.c: removed IS_OP_RUONLY macro
1788         * src/ds390/ralloc.c (packRegisters),
1789         * src/mcs51/ralloc.c (packRegisters),
1790         * src/z80/ralloc.c (packRegisters): applied fix for bug 1618050, thanks
1791           Robert Larice
1792         * support/regression/tests/bug1618050.c: new, added
1793         * src/SDCCsymt.h: fixed typo in DECLSPEC2TXT
1794         * support/regression/fwk/include/testfwk.h,
1795         * support/regression/tests/bug1838000.c: moved _AUTOMEM and _STATMEM to
1796           testfwk.h
1797
1798 2008-03-04 Raphael Neider <rneider AT web.de>
1799
1800         * src/pic/gen.c: removed unused prototypes, prevent internal errors
1801           on accessing OP_SYM_TYPE(op)
1802         * src/pic/gen.h: removed unused prototype of genMinusDec()
1803         * src/pic/genarith.c (genMinus): cosmetic changes, rewritten to
1804           fix #1876953 (invalid subtraction code), removed unused code
1805
1806 2008-03-03 Raphael Neider <rneider AT web.de>
1807
1808         * src/pic/gen.c,
1809         * src/pic/gen.h,
1810         * src/pic/genarith.c,
1811         * src/pic/ralloc.c,
1812         * src/pic/ralloc.h: removed AOP_R0, AOP_R1, AOP_DPTR, AOP_DPTR2,
1813           AOP_ACC, and *_IDX and adjusted code, removed unused legacy code
1814
1815 2008-03-03 Raphael Neider <rneider AT web.de>
1816
1817         * src/pic/device.c (find_device): search user-specified paths first
1818           for pic14devices.txt, fixes #1900827
1819
1820 2008-03-02 Borut Razem <borut.razem AT siol.net>
1821
1822         * support/scripts/sdcc.nsi: fixed bug in IsNT, LogicLib-isation of
1823           AddToPath and RemoveFromPath
1824
1825 2008-03-01 Borut Razem <borut.razem AT siol.net>
1826
1827         * support/scripts/sdcc.nsi: reverted MULTIUSER page since it didn't
1828           work correctly, added debugging support if -DSDCC.DEBUG command line
1829           option is defined
1830
1831 2008-02-28 Borut Razem <borut.razem AT siol.net>
1832
1833         * doc/sdccman.lyx: cosmetic changes
1834
1835 2008-02-28 Maarten Brock <sourceforge.brock AT dse.nl>
1836
1837         * src/mcs51/ralloc.c (fillGaps): fixed bug 1839671
1838         * doc/sdccman.lyx: fixed unmeant removal of spaces
1839
1840 2008-02-27 Borut Razem <borut.razem AT siol.net>
1841
1842         * support/scripts/sdcc.nsi: corrected installation directory for
1843           current user installation mode
1844         * doc/README.txt: added Philipp Klaus Krause to the developers list
1845
1846 2008-02-27 Maarten Brock <sourceforge.brock AT dse.nl>
1847
1848         * src/mcs51/gen.c (genUnpackBits): don't generate ifxJump, instead
1849           return ifx condition
1850           (genNearPointerGet, genPagedPointerGet, genFarPointerGet,
1851           genCodePointerGet, genGenPointerGet): cleanup aop before generating
1852             ifxJump to fix bug 1838000
1853         * src/SDCCsymt.c (aggregateToPointer): fix problem for xstack
1854         * support/regression/tests/bug1838000.c: new, added
1855         * device/include/mcs51/cc1110.h: new, added, thanks to Pravin Angolkar
1856
1857 2008-02-26 Borut Razem <borut.razem AT siol.net>
1858
1859         * src/SDCCast.c, doc/sdccman.lyx: fixed RFE #1901171: inerger promotion
1860           of casted varargs
1861         * support/scripts/sdcc.nsi: added MULTIUSER page,
1862           NSIS upgraded to version 2.35
1863
1864 2008-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
1865
1866         * src/mcs51/ralloc.c (isSpiltOnStack): fixed bug 1565152
1867         * support/regression/tests/bug1565152.c: new, added
1868
1869 2008-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
1870
1871         * src/mcs51/gen.c (genPagedPointerSet): fixed bug 1670148
1872         * support/regression/ports/mcs51-xstack-auto/spec.mk: added expf.c
1873         * support/regression/tests/bug1670148.c: new, added
1874
1875 2008-02-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1876
1877         * device/include/mcs51/at89c51ed2.h: fixed bug 1901469.
1878
1879 2008-02-24 Borut Razem <borut.razem AT siol.net>
1880
1881         * src/SDCCast.c, src/SDCCast.h: fixed bug #1874922: explicit typecast
1882           is ineffective for unsigned char parameter
1883
1884 2008-02-24 Maarten Brock <sourceforge.brock AT dse.nl>
1885
1886         * src/SDCCast.c (expandInlineFuncs): fixed bug 1875869
1887         * src/SDCCglue.c (printIvalBitFields): fixed bug 1806631
1888         * support/regression/tests/bitopcse.c: removed hc08 exception, see testfwk.h
1889         * support/Util/MySystem.c (my_system): output errorcode when verbose
1890
1891 2008-02-22 Philipp Klaus Krause <pkk AT spth.de>
1892
1893         * src/z80/gen.c (genMult): Rewrote 8-bit multiplication by constant,
1894           implements #1898231
1895
1896 2008-02-22 Philipp Klaus Krause <pkk AT spth.de>
1897
1898         * device/lib/z80/mul.s: Rewrote __muluchar_rrx_s, to improve 8-bit mult.,
1899           implements #1896290
1900
1901 2008-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
1902
1903         * src/SDCCast.c (createIvalStruct): fixed bug 1466761
1904
1905 2008-02-21 Borut Razem <borut.razem AT siol.net>
1906
1907         * support/regression/Makefile.in,
1908           support/regression/ports/ds390/spec.mk,
1909           support/regression/ports/hc08/spec.mk,
1910           support/regression/ports/mcs51-common/spec.mk,
1911           support/regression/ports/pic14/spec.mk,
1912           support/regression/ports/pic16/spec.mk,
1913           support/regression/ports/ucz80/spec.mk,
1914           support/regression/ports/xa51/spec.mk:
1915           added CFLAGS when compiling timeout
1916
1917 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
1918
1919         * support/regression/tests/bugs-1596270-1736867.c: Regression test for
1920           #1596270, #1736867
1921
1922 2008-02-20 Maarten Brock <sourceforge.brock AT dse.nl>
1923
1924         * src/SDCClrange.c (findPrevUse): fixed bug 1888147
1925         * support/regression/tests/bug1888147.c: new, added
1926
1927 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
1928
1929         * src/z80/gen.c: fixed bugs #1596270, #1736867
1930
1931 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
1932
1933         * src/z80/gen.c: fixed bug in register pair loading when swapping register
1934           contents, mostly fixes #1596270
1935
1936 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
1937
1938         * src/z80/peeph.def,
1939         * src/z80/peeph-z80.def: moved peephole that breaks gbz80 to z80-specific
1940           peepholes, fixes #1806565
1941
1942 2008-02-20 Maarten Brock <sourceforge.brock AT dse.nl>
1943
1944         * src/SDCCpeeph.c (operandBaseName): added check for @Ri
1945         * src/mcs51/peeph.def (rule 177.c): added operandsNotRelated(%1 %3)
1946           fixes bug 1739475, thanks Robert Larice
1947           (rule 271): new, added
1948
1949 2008-02-18 Borut Razem <borut.razem AT siol.net>
1950
1951         * sim/ucsim/s51.src/Makefile.in: fixed error made in previous commit
1952
1953 2008-02-17 Maarten Brock <sourceforge.brock AT dse.nl>
1954
1955         * src/SDCCmain.c (linkEdit): emit -z when using --debug for z80
1956
1957 2008-02-17 Raphael Neider <rneider AT web.de>
1958
1959         * src/pic16/genarith.c,
1960         * src/pic16/gen.c,
1961         * src/pic16/gen.h,
1962         * src/pic16/genutils.c: removed unused legacy code,
1963           removed unused fields from struct asmop and struct _G
1964
1965 2008-02-17 Raphael Neider <rneider AT web.de>
1966
1967         * src/pic16/gen.c (AccRsh): cosmetic changes,
1968           (shiftR1Left2ResultSigned,shiftR1Left2Result,shiftL1Left2Result,
1969           genRightShiftLiteral): fixed to work with SFRs as result by
1970           assigning only once to result,
1971           removed a lot of unused/excluded code fragments
1972
1973 2008-02-17 Raphael Neider <rneider AT web.de>
1974
1975         * device/include/pic/pic16f88.h,
1976         * device/include/pic/pic16f886.h,
1977         * device/include/pic/pic16f887.h: added TRISA6 and TRISA7
1978
1979 2008-02-17 Borut Razem <borut.razem AT siol.net>
1980
1981         * src/z80/peeph.def: applied patch
1982           #1893626: Optimize tail calls on Z80, thanks to Philipp Krause
1983         * src/z80/gen.c, src/z80/peeph.def: applied patch
1984           #1893510: Improve logical left shift on Z80, thanks to Philipp Krause
1985         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
1986           sim/ucsim/s51.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
1987           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
1988           sim/ucsim/main_in.mk: renamed libutil.a to libucsimutil.a in order to
1989           enable compilation on Mac OS X 10.5 (Leopard) and XCode v3.0
1990
1991 2008-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
1992
1993         * as/link/mcs51/aslink.dsp: removed SDK define
1994         * as/link/z80/clean.mk: brought in sync with other ports
1995         * as/link/z80/lklibr.c (SdccLib, fndsym): handle the dflag here too
1996         * as/hc08/Makefile.bcc,
1997         * as/mcs51/Makefile.bcc,
1998         * as/z80/Makefile.bcc: noice.c was moved to as/asxxsrc/
1999         * src/z80/main.c (_setValues): use the now capitalized -Z,
2000           (z80_port, gbz80_port): generate debug information when asked
2001
2002 2008-02-16 Borut Razem <borut.razem AT siol.net>
2003
2004         * as/z80/asmain.c, as/z80/asm.h, as/z80/asdata.c,
2005           as/link/z80/lkmain.c, as/z80/as_gbz80.dsp, as/z80/as_z80.dsp,
2006           as/z80/Makefile.in. as/z80/Makefile.bcc:
2007           applied patch #1893393: patch for as-z80 and link-z80 to generate
2008           cdb, thanks to Armin Diehl
2009         * as/*/asnoice.c, as/hc08/as_hc08.dsp, as/hc08/Makefile.in,
2010           as/mcs51/asx8051.dsp, as/mcs51/Makefile.in:
2011           asnoice.c moved to as/asxxsrc/asnoice.c
2012         * src/z80/peeph-gbz80.def: applied patch
2013           #1880235: Z80 return peephole, thanks to Philipp Krause
2014
2015 2008-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
2016
2017         * .version,
2018         * doc/sdccman.lyx: bumped version to 2.7.5
2019         * src/SDCCsymt.c (compareType, comparePtrType): fixed bug 1281583
2020
2021 2008-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
2022
2023         * device/include/pic16/stdlib.h,
2024         * device/lib/pic16/libc/stdlib/ltoa.c,
2025         * device/lib/pic16/libc/stdio/vfprintf.c: ascii strings are char*
2026
2027 2008-02-13 Borut Razem <borut.razem AT siol.net>
2028
2029         * src/SDCCmain.c, src/SDCCglue.c: fixed --c1mode
2030         * src/pic16/glue.c, src/SDCCast.c, src/SDCCast.h, src/SDCCBBlock.c,
2031           src/SDCCcse.c, src/SDCCglue.c, src/SDCCicode.c, src/SDCCloop.c,
2032           src/SDCCopt.c,  src/SDCCval.c:
2033           fixed bug #1890273: SDCC Warning 154 shows wrong filename
2034
2035 2008-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
2036
2037         * src/SDCCsymt.c (compareType): fixed bug 1309013
2038
2039 2008-02-09 Borut Razem <borut.razem AT siol.net>
2040
2041         * src/SDCCval.c, src/SDCCval.h:
2042           code cleaning, added function constChrVal()
2043         * src/SDCCglue.c, src/pic/glue.c, src/pic16/glue.c, src/SDCCast.c, src/SDCC.y:
2044           call constChrVal() instead constVal()
2045
2046 2008-02-01 Maarten Brock <sourceforge.brock AT dse.nl>
2047
2048         * src/SDCCast.c (resolveSymbols): added reentrancy check for parameters
2049           of function pointer
2050         * src/SDCCerr.h,
2051         * src/SDCCerr.c: changed warning W_NONRENT_ARGS to error E_NONRENT_ARGS
2052         * support/regression/tests/absolute.c: added TestStruct TestVar (see also
2053           bug 1859853)
2054
2055 2008-02-01 Raphael Neider <rneider AT web.de>
2056
2057         * device/include/pic/pic16f886.h,
2058         * device/include/pic/pic16f887.h: added RA6 and RA7
2059
2060 2008-01-24 Raphael Neider <rneider AT web.de>
2061
2062         * device/include/pic/pic16f88.h: added RA6 and RA7
2063         * device/lib/pic/libdev/disabled_pic16f886.c,
2064         * device/lib/pic/libdev/disabled_pic16f887.c: renamed and enabled
2065
2066         * src/pic16/devices.inc,
2067         * device/include/pic16/pic18f2423.h,
2068         * device/include/pic16/pic18f2523.h,
2069         * device/include/pic16/pic18fregs.h,
2070         * device/lib/pic16/pics.all
2071         * device/lib/pic16/libdev/pic18f2423.c,
2072         * device/lib/pic16/libdev/pic18f2523.c: added 18f2423 and 18f2523
2073         * device/lib/pic16/libio/i2c.ignore,
2074         * device/lib/pic16/libio/usart.ignore,
2075         * device/lib/pic16/libio/adc.ignore: ignore new devices
2076
2077 2008-01-23 Maarten Brock <sourceforge.brock AT dse.nl>
2078
2079         * src/SDCCast.c (createRMW): fixed bug 1582651
2080
2081 2008-01-20 Borut Razem <borut.razem AT siol.net>
2082
2083         * src/SDCCcse.c: partially fixed enhancement request
2084           #1793872 - multiply by -1 not collapsed
2085         * support/regression/tests/arithcsi.c: added regression test
2086
2087 2008-01-19 Maarten Brock <sourceforge.brock AT dse.nl>
2088
2089         * as/mcs51/asx8051.dsp: removed define SDK
2090         * as/mcs51/i51mch.c (machine): fixed bug 1865114
2091         * device/include/asm/ds390/features.h: fixed bug with ds390 & stack-auto
2092         * as/link/lklex.c,
2093         * as/link/mcs51/lkmain.c: used LKDIRSEP, LKDIRSEPSTR and LKOBJEXT,
2094           cosmetic changes, brought more in sync, changed old K&R to ANSI
2095
2096 2008-01-13 Borut Razem <borut.razem AT siol.net>
2097
2098         * support/scripts/sdcc.nsi: added Uninstall/reinstall page, ...
2099         * src/SDCCicode.c: fixed bug #1870216 - Error 122: dividing by zero
2100
2101 2007-12-30 Borut Razem <borut.razem AT siol.net>
2102
2103         * src/pic16/gen.c: fixed implementation of bitwise operations for
2104           pic16 target
2105         * support/regression/tests/bitwise.c: added test cases
2106
2107 2007-12-29 Borut Razem <borut.razem AT siol.net>
2108
2109         * src/SDCCasm.[ch]: renamed from asm[ch], use dbuf_getline(), ...
2110         * src/src.dsp, src/Makefile.bcc, src/Makefile.in, src/common.h,
2111           src/SDCCglue.c, src/xa51/main.c: asm.[ch] renamed to SDCCasm.[ch]
2112         * support/Util/dbuf_string.[ch]: added function dbuf_getline()
2113         * src/ds390/gen.c, src/hc08/gen.c, src/mcs51/gen.c, src/pic16/gen.c,
2114           src/pic/gen.c, src/z80/gen.c, src/xa51/gen.c, src/pic16/ralloc.c,
2115           src/pic16/pcode.[ch]: added const qualifier
2116         * as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
2117           as/mcs51/Makefile.bcc, as/mcs51/Makefile.in, as/mcs51/asx8051.dsp,
2118           as/z80/Makefile.bcc, as/z80/Makefile.in, as/z80/as_gbz80.dsp,
2119           as/z80/as_z80.dsp: added dbuf.[ch] and dbuf_string[ch] to project
2120         * as/asxxsrc/aslex.c: use dbuf_getline()
2121         * as/hc08/asdata.c, as/hc08/asexpr.c, as/hc08/asm.h, as/hc08/m08adr.c,
2122           as/mcs51/asdata.c, as/mcs51/asexpr.c, as/mcs51/asm.h,
2123           as/mcs51/i51adr.c, as/z80/asdata.c, as/z80/asexpr.c, as/z80/aslist.c,
2124           as/z80/asm.h, as/z80/z80adr.c:
2125           changed type of ib and ip to const char *
2126
2127 2007-12-28 Borut Razem <borut.razem AT siol.net>
2128
2129         * as/asxxsrc/aslex.c: moved from as/mcs51/aslex.c;
2130           introduced (readlin) - long lines are turuncated
2131         * as/hc08/as_hc08.dsp, as/mcs51/asx8051.dsp, as/z80/as_gbz80.dsp,
2132           as/z80/as_z80.dsp, as/hc08/Makefile.in, as/mcs51/Makefile.in,
2133           as/z80/Makefile.in: moved aslex.c to asxxsrc
2134         * as/hc08/aslex.c, as/z80/aslex.c: deleted
2135         * as/hc08/asmain.c, as/mcs51/asmain.c:
2136           added missing initialization of a_addr field
2137         * support/regression/tests/long_asm_line.c: added regtest for long
2138           assembler line
2139
2140 2007-12-22 Borut Razem <borut.razem AT siol.net>
2141
2142         * src/SDCC.lex: fixed bug #1852894: # character hangs the compiler
2143
2144 2007-12-20 Maarten Brock <sourceforge.brock AT dse.nl>
2145
2146         * src/SDCCsymt.c (computeType): fixed bug, thanks Fan Weiguang
2147
2148 2007-12-16 Borut Razem <borut.razem AT siol.net>
2149
2150         * device/include/pic16/stdbool.h: removed, since already exists in
2151          device/include/; this also fixes bitopcse.c regression test for pic16
2152          target
2153         * support/regression/fwk/inclusw/testfwk.h: added macro ASSERT_FAILED
2154         * src/pic16/glue.c: fixed bug #1851855: generic static pointer
2155           dereference doesn't work; covered by regression test bug1399290
2156
2157 2007-12-05 Borut Razem <borut.razem AT siol.net>
2158
2159         * doc/sdccman.lyx: fixed bug #1844509 - Correction to Manual 4.6.9
2160           Adding new PIC16
2161
2162 2007-12-01 Borut Razem <borut.razem AT siol.net>
2163
2164         * sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/mem.cc:
2165           corrected handling of the highest_valid_address
2166
2167 2007-11-17 Raphael Neider <rneider AT web.de>
2168
2169         * src/pic/main.c (_asmCmd): include debug arguments (-g as $3)
2170         * src/pic/glue.c (picglue): emit .file if --debug is given
2171
2172 2007-11-17 Raphael Neider <rneider AT web.de>
2173
2174         * src/pic16/genarith.c (pic16_genPlus, pic16_genMinus): take special
2175         care when left or right operand resides in result, fixes #1830220
2176
2177 2007-11-17 Borut Razem <borut.razem AT siol.net>
2178
2179         * src/SDCCglue.c, src/pic16/glue.c: reverted fix for bug
2180           #983491 - "Merge duplicate strings function is ineffective"
2181         * support/regression/tests/bug-983491.c: regtest disabled
2182         * as/asxxsrc: created
2183           as/asxxsrc/assym.c, as/asxxsrc/strcmpi.c: moved
2184           as/hc08/assym.c, as/mcs51/assym.c, as/strcmpi.c,
2185           as/z80/assym.c, as/hc08/asstore.c, as/mcs51/asstore.c: deleted
2186           as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
2187           as/hc08/asm.h, as/link/hc08/Makefile.bcc, as/link/hc08/Makefile.in,
2188           as/link/hc08/link_hc08.dsp, as/link/mcs51/Makefile.bcc,
2189           as/link/mcs51/Makefile.in, as/link/mcs51/aslink.dsp,
2190           as/link/z80/Makefile.in, as/link/z80/linkgbz80.dsp,
2191           as/link/z80/linkz80.dsp, as/mcs51/Makefile.bcc, as/mcs51/Makefile.in,
2192           as/mcs51/asm.h, as/mcs51/asx8051.dsp, as/z80/Makefile.bcc,
2193           as/z80/Makefile.in, as/z80/as_gbz80.dsp, as/z80/as_z80.dsp,
2194           as/z80/Makefile.as_hc08, as/mcs51/Makefile.asx8051: modified
2195           created as/asxxsrc directory, assym.c and strcpi.c moved into it
2196
2197 2007-11-15 Maarten Brock <sourceforge.brock AT dse.nl>
2198
2199         * device/include/stdarg.h: added and removed some casts
2200         * src/SDCCsymt.c (compareType): Fully check types between generic and
2201           non-generic pointers, also accept ptr-ptr to void-ptr assignments
2202
2203 2007-11-13 Borut Razem <borut.razem AT siol.net>
2204
2205         * support/regression/tests/bug-1817005.c:
2206           added regtest for bug #1817005 - as-z80 chokes on long labels
2207
2208 2007-11-12 Borut Razem <borut.razem AT siol.net>
2209
2210         * as/z80/asmain.c, as/z80/asm.h, as/z80/assym.c, as/z80/asdata.c,
2211           as/z80/asout.c, as/z80/aslist.c:
2212           fixed bug #1817005 - as-z80 chokes on long labels
2213
2214 2007-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
2215
2216         * as/hc08/asmain.c,
2217         * as/z80/asmain.c: cosmetic changes
2218         * as/hc08/alloc.h,
2219         * as/mcs51/alloc.h,
2220         * as/z80/alloc.h: removed
2221         * as/hc08/assym.c,
2222         * as/mcs51/assym.c: replaced alloc.h with stdlib.h
2223         * as/link/aslink.h: added LKDIRSEP and, LKDIRSEPSTR
2224         * as/link/hc08/Makefile.in,
2225         * as/link/mcs51/Makefile.in,
2226         * as/link/z80/Makefile.in: added -DUNIX to CFLAGS
2227         * as/link/lklex.c,
2228         * as/link/mcs51/lkarea.c,
2229         * as/link/mcs51/lkmain.c: cosmetic changes
2230         * as/link/hc08/lklibr.c,
2231         * as/link/z80/lklibr.c,
2232         * as/link/mcs51/lklibr.c: used LKDIRSEP, LKDIRSEPSTR and LKOBJEXT,
2233           used cygwin_conv_to_full_posix_path,
2234           added warnings, cosmetic changes, brought more in sync
2235           changed old K&R into ANSI function declarations
2236         * as/link/z80/lklibr.c (loadAdb): added
2237         * as/link/z80/lkmain.c: removed -- option from usage text
2238
2239 2007-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
2240
2241         * src/mcs51/gen.c (outBitC): optimized for no result
2242
2243 2007-10-31 Borut Razem <borut.razem AT siol.net>
2244
2245         * src/SDCCsymt.c: fixed (hopeful properly) bug
2246           #1805702 - order of extern matters
2247         * support/regression/tests/bug-1805702.c: enabled regtest for bug
2248           #1805702
2249
2250 2007-10-29 Borut Razem <borut.razem AT siol.net>
2251
2252         * src/SDCCsymt.c: reverted bad fixed of bug #1805702
2253           - order of extern matters
2254         * support/regression/tests/bug-1805702.c: disabled regtest for bug
2255           #1805702
2256
2257 2007-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
2258
2259         * src/ds390/peeph.def: replaced 24bitModeAndPortDS390 by
2260           24bitMode, portIsDS390
2261         * src/mcs51/gen.c (genOr): optimized for RFE 1750727
2262         * src/SDCCpeeph.c (flat24bitModeAndPortDS390): removed
2263           (notVolatileVariable): also check sloc names,
2264           (callFuncByName): moved ftab[] out of function and sorted it by use
2265
2266 2007-10-28 Maarten Brock <sourceforge.brock AT dse.nl>
2267
2268         * device/include/stdarg.h: fixed bug in va_start macro for --xstack
2269         * src/hc08/gen.c (aopForRemat): aop->aopu.aop_immd.from_cast_remat not set,
2270           aop->aopu.aop_immd.aop_immd2 not filled with (generic) pointer type
2271         * src/SDCCicode.c (geniCodeCast): fixed bug 880197
2272         * support/regression/tests/bug-880197.c: new, added
2273
2274 2007-10-28 Borut Razem <borut.razem AT siol.net>
2275
2276         * support/regression/Makefile.in,
2277           support/regression/ports/mcs51-large/spec.mk,
2278           support/regression/ports/mcs51-xstack-auto/spec.mk,
2279           support/regression/ports/mcs51-stack-auto/spec.mk,
2280           support/regression/ports/mcs51-medium/spec.mk,
2281           support/regression/ports/mcs51-common/spec.mk,
2282           support/regression/ports/mcs51-common/*,
2283           support/regression/ports/mcs51-small/*:
2284           mcs51 renamed to mcs51-common, created mcs51-small
2285         * src/SDCCsymt.c: fixed bug #1805702 - order of extern matters
2286         * support/regression/tests/bug-1805702.c: added regtest for bug
2287           #1805702
2288
2289 2007-10-26 Maarten Brock <sourceforge.brock AT dse.nl>
2290
2291         * src/mcs51/peeph.def: moved rules 257.x to 253.x and re-enabled 253.b,
2292           added new rules 265 - 270
2293         * support/regression/tests/bug1721024.c:new, added
2294         * support/regression/Makefile.in: renamed test-mcs51 to test-mcs51-small,
2295           introduced new test-mcs51 to run all mcs51 tests
2296
2297 2007-10-25 Maarten Brock <sourceforge.brock AT dse.nl>
2298
2299         * support/regression/tests/bug1816470.c: new, added
2300
2301 2007-10-21 Maarten Brock <sourceforge.brock AT dse.nl>
2302
2303         * src/SDCCast.c (resultTypePropagate): do propagate for LEFT_OP, do not
2304           propagate for *,+,- with float, fixed bug 1816470
2305           (decorateType): cast to resultTypeProp instead of resultType
2306
2307 2007-10-19 Borut Razem <borut.razem AT siol.net>
2308
2309         * src/pic16/glue.c: fixed bug #983491 - "Merge duplicate strings
2310           function is ineffective" for pic16 tareget
2311         * support/scripts/listerr.c: corrected include path
2312         * device/lib/_itoa.c: fixed bug #1806402 - _itoa and _uitoa leak to
2313           adjacent memory
2314
2315 2007-10-18 Maarten Brock <sourceforge.brock AT dse.nl>
2316
2317         * support/regression/tests/using.c: new, added
2318         * support/regression/tests/vaargs.c: fixed and enabled test
2319
2320 2007-10-18 Borut Razem <borut.razem AT siol.net>
2321
2322         * src/SDCCglue.c: fixed bug #983491 - Merge duplicate strings function
2323           is ineffective
2324         * support/regression/tests/bug-983491.c: added regtest for bug #983491
2325
2326 2007-10-18 Maarten Brock <sourceforge.brock AT dse.nl>
2327
2328         * doc/sdccman.lyx: documented option --Werror
2329         * src/SDCCsymt.c (checkFunction): fixed bug 1815418 by setting
2330           RegBankUsed[] earlier
2331
2332 2007-10-14 Maarten Brock <sourceforge.brock AT dse.nl>
2333
2334         * device/include/mcs51/p89lpc938.h: new, added, thanks Kyle Guinn
2335         * src/pic/glue.c,
2336         * src/SDCCval.c,
2337         * src/SDCCast.c,
2338         * src/SDCCast.h: replaced AST_LIT_VALUE with AST_FLOAT_VALUE and
2339           AST_ULONG_VALUE
2340         * src/SDCCast.c (decorateType): improved optimization of tri-op
2341         * src/SDCCerr.c (vwerror, setWError),
2342         * src/SDCCerr.h,
2343         * src/SDCCmain.c (parseCmdLine): added option --Werror to treat all
2344           warnings as errors, thanks Stas Sergeev for PATCH 1813211
2345
2346 2007-10-13 Maarten Brock <sourceforge.brock AT dse.nl>
2347
2348         * src/mcs51/gen.c (leftRightUseAcc): use macro IS_OP_ACCUSE
2349         * src/SDCCast.c (decorateType): optimize bit=cond?1:0, RFE 1738430
2350         * support/regression/tests/bug-223113.c,
2351         * support/regression/tests/bug-426632.c,
2352         * support/regression/tests/bug-468811.c,
2353         * support/regression/tests/bug-477835.c,
2354         * support/regression/tests/bug-478094.c,
2355         * support/regression/tests/bug-499644.c,
2356         * support/regression/tests/bug-524209.c,
2357         * support/regression/tests/bug-524211.c,
2358         * support/regression/tests/packcast.c,
2359         * support/regression/tests/structidx.c: added empty tests
2360         * support/regression/tests/bug-607243.c: enabled test
2361
2362 2007-10-06 Borut Razem <borut.razem AT siol.net>
2363
2364         * .version, doc/sdccman.lyx: bumped version to 2.7.4 to indicate the full
2365            support of universal binaries on Mac OS X
2366
2367 2007-10-02 Borut Razem <borut.razem AT siol.net>
2368
2369         * src/SDCCval.h: unified double2ul macro for all platforms
2370         * src/SDCCval.c: fixed bug #1777758 - applied Maarten's patch
2371         * support/regression/tests/bitwise.c: added regtest for bug #1777758
2372
2373 2007-09-30 Borut Razem <borut.razem AT siol.net>
2374
2375         * src/SDCCval.h: fixed bug #1739860 - sdcc does not work correctly on some
2376           platforms
2377         * sdcc_vc_in.h: enabled warnings
2378         * src/hc08/gen.c: fixed MSVC warning C4146: unary minus operator applied to
2379           unsigned type, result still unsigned
2380         * src/mcs51/peep.c: fixed gcc warning: suggest parentheses around && within ||
2381
2382 2007-09-28 Raphael Neider <rneider AT web.de>
2383
2384         * src/pic/device.c (find_device): prevent buffer underflow error
2385         * src/pic/pcoderegs.c (OptimizeRegUsage): avoid dereferencing
2386           the just destroyed list entry
2387
2388 2007-09-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2389
2390         * doc/sdccman.lyx: there's a dedicated wiki page for cmake and sdcc, thanks
2391           Alexander Neundorf
2392
2393 2007-09-18 Borut Razem <borut.razem AT siol.net>
2394
2395         * src/SDCCval.c: fixed MSVC warning C4146: unary minus operator
2396          applied to unsigned type, result still unsigned
2397
2398 2007-09-17 Borut Razem <borut.razem AT siol.net>
2399
2400         * src/SDCC.y, src/SDCCast.c, src/SDCCcse.c, src/SDCCglue.c,
2401           src/SDCCicode.c, src/SDCCopt.c, src/SDCCsymt.c, src/SDCCval.c,
2402           src/SDCCval.h, src/hc08/gen.c, src/avr/gen.c, src/ds390/gen.c,
2403           src/mcs51/gen.c, src/pic/gen.c, src/pic/genarith.c, src/pic/glue.c,
2404           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/genarith.c,
2405           src/pic16/genutils.c, src/pic16/glue.c, src/pic16/main.c,
2406           src/z80/gen.c, src/z80/ralloc.c:
2407           fixed bug #1739860 - sdcc does not work correctly on some platforms
2408           (not finished)
2409           introduced and used ulFromVal(), double2ul(), used strtod() instead sscanf()
2410
2411 2007-09-17 Raphael Neider <rneider AT web.de>
2412
2413         * src/pic16/device.c: reverted to previous version
2414         * device/lib/pic16/Makefile.common.in: quieten gpasm via -Wa,-q
2415
2416 2007-09-16 Raphael Neider <rneider AT web.de>
2417
2418         * src/pic16/device.c (pic16_dump_usection): do not reserve 0 bytes,
2419           as this raises a ton of gpasm warnings, just emit a second label
2420         * src/pic16/devices.inc,
2421         * device/lib/pic16/pics.all,
2422         * device/lib/pic16/libdev/pic18f2585.c,
2423         * device/lib/pic16/libdev/pic18f2680.c,
2424         * device/lib/pic16/libdev/pic18f2682.c,
2425         * device/lib/pic16/libdev/pic18f2685.c,
2426         * device/lib/pic16/libdev/pic18f4585.c,
2427         * device/lib/pic16/libdev/pic18f4680.c,
2428         * device/lib/pic16/libdev/pic18f4682.c,
2429         * device/lib/pic16/libdev/pic18f4685.c,
2430         * device/include/pic16/pic18f2585.h,
2431         * device/include/pic16/pic18f2680.h,
2432         * device/include/pic16/pic18f2682.h,
2433         * device/include/pic16/pic18f2685.h,
2434         * device/include/pic16/pic18f4585.h,
2435         * device/include/pic16/pic18f4680.h,
2436         * device/include/pic16/pic18f4682.h,
2437         * device/include/pic16/pic18f4685.h,
2438         * device/include/pic16/pic18fregs.h: added 18f2585, 18f2680,
2439           18f2682, 18f2685, 18f4585, 18f4680, 18f4682, 18f4685,
2440           patch contributed by Anton Strobl, applied with changes
2441
2442 2007-09-16 Raphael Neider <rneider AT web.de>
2443
2444         * device/include/pic16/pic18f2431.h,
2445         * device/include/pic16/pic18f25j10.h,
2446         * device/include/pic16/pic18f4431.h,
2447         * device/include/pic16/pic18f45j10.h: adopted common include style
2448         * device/include/pic16/pic18f1320.h,
2449         * device/include/pic16/pic18f2320.h,
2450         * device/include/pic16/pic18f2525.h,
2451         * device/include/pic16/pic18f4320.h,
2452         * device/include/pic16/pic18f4525.h: NEW, just include proper .h file
2453         * device/include/pic16/pic18fregs.h: prepared for automatic include
2454           file selection by having DEVICE.h for every DEVICE
2455         * device/lib/pic16/libdev/pic18f2320.c,
2456         * device/lib/pic16/libdev/pic18f4320.c: just include proper .c file
2457
2458         * device/lib/pic16/configure.in,
2459         * device/lib/pic16/configure: use rm -rf instead of rmdir
2460         * device/lib/pic16/Makefile.in: use RMDIR to remove build directories
2461         * device/lib/pic16/libc/stdlib/free.c: avoid warning on pointer cast
2462
2463 2007-09-09 Borut Razem <borut.razem AT siol.net>
2464
2465         * src/SDCCmain.c, src/SDCCutil.c: print newline after printVersionInfo(),
2466           distingush between i386 and ppc Mac OS X versions
2467
2468 2007-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
2469
2470         * src/mcs51/gen.c (genReceive): fixed bug 1788177
2471         * support/regression/tests/bug1788177.c: new, added
2472
2473 2007-09-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2474
2475         * doc/sdccman.lyx: mentioned d52 and cmake, customizing startup code
2476         * device/include/mcs51/lint.h added keyword __naked
2477
2478 2007-09-04 Maarten Brock <sourceforge.brock AT dse.nl>
2479
2480         * src/pic16/glue.c,
2481         * src/pic/glue.c,
2482         * src/SDCCmem.h: removed maxRegBank
2483         * src/SDCCmem.c (allocVariables): removed maxRegBank and moved setting
2484           RegBankUsed[] to checkFunction() in SDCCsymt.c to fix bug 1759839
2485         * src/SDCCsymt.c (checkFunction): set RegBankUsed[] here
2486         * src/mcs51/peep.c (isCallerSaveFunc, termScanAtFunc): changed function
2487           name and behaviour to handle banked functions
2488           (scan4op): and use it to fix bug 1786213
2489
2490 2007-09-03 Raphael Neider <rneider AT web.de>
2491
2492         * device/include/pic16/pic18f248.h,
2493         * device/include/pic16/pic18f258.h,
2494         * device/include/pic16/pic18f448.h,
2495         * device/lib/pic16/libdev/pic18f248.c,
2496         * device/lib/pic16/libdev/pic18f258.c,
2497         * device/lib/pic16/libdev/pic18f448.c: fixed TRISEbits,
2498           added T0CONbits, fixes #1786891
2499
2500 2007-08-29 Maarten Brock <sourceforge.brock AT dse.nl>
2501
2502         * src/ds390/gen.c (genFarPointerSet),
2503         * src/hc08/ralloc.c (packRegisters),
2504         * src/mcs51/ralloc.c (packRegisters),
2505         * src/SDCCcse.c (cseBBlock): check if result is a symbol first to fix
2506           bug 1750318
2507         * src/SDCCicode.h: POINTER_SET can be true for literals too
2508         * support/regression/tests/bug1750318.c: new, added
2509
2510 2007-08-23 Borut Razem <borut.razem AT siol.net>
2511
2512         * debugger/mcs51/sdcdb.c: fixed compilation with older readline
2513           library versions without the completition functionality
2514
2515 2007-08-22 Raphael Neider <rneider AT web.de>
2516
2517         * device/include/pic16/pic18f1220.h,
2518         * device/lib/pic16/libdev/pic18f1220.c: applied patch #1776191
2519
2520 2007-08-12 Borut Razem <borut.razem AT siol.net>
2521
2522         * debugger/mcs51/Makefile.in: support/Util/SDCCerr.[ch] moved to src
2523
2524 2007-08-11 Borut Razem <borut.razem AT siol.net>
2525
2526         * support/Util/SDCCerr.c, support/Util/SDCCerr.h, src/src.dsp,
2527           src/Makefile.in, src/Makefile.bcc, support/scripts/listerr.c:
2528           support/Util/SDCCerr.[ch] moved to src
2529         * as/hc08/as_hc08.dsp, as/link/hc08/link_hc08.dsp,
2530           as/link/z80/linkgbz80.dsp, as/link/z80/linkz80.dsp,
2531           device/examples/ds390/tinitalk/tinitalk.dsp,
2532           device/examples/serialcomm/windows/serialcomm.dsp,
2533           support/librarian/librarian.dsp:
2534           removed linking of unused odbc32.lib and odbccp32.lib
2535         * support/scripts/winres.h:
2536           added for compilation with Visual C++ 2005 Express Edition
2537
2538 2007-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2539
2540         * device/include/mcs51/at89c51ed.h: Fixed typo in declarations of CKCON0
2541           and CKCON1.
2542
2543 2007-08-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2544
2545         * sdccconf_in.h: update the endian test so that SPARC Solaris
2546           does not throw syntax errors
2547
2548 2007-08-06 Borut Razem <borut.razem AT siol.net>
2549
2550         * doc/sdccman.lyx: removed two index entries which prevented the
2551           generation of sdcc doc archive
2552
2553 2007-08-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2554
2555         * doc/sdccman.lyx: Same changes made 2007-07-28 but using lyx 1.4.4
2556           instead of lyx 1.5.0.
2557
2558 2007-07-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2559
2560         * device/include/hc08/mc68hc908apxx.h: new header contributed by
2561           Lucas Loizaga, with minor modifications. Thanks!
2562
2563 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2564
2565         * doc/sdccman.lyx: Documented --acall-ajmp and described new features
2566           in sdcclib.
2567
2568 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2569
2570         * src/SDCCglobl.h, src/SDCCpeeph.c, src/SDCCglue.c, src/mcs51/main.c,
2571           src/mcs51/peeph.def: Added option --acall-ajmp: replaces lcall/ljmp
2572           with acall/ajmp.
2573
2574 2007-07-22 Borut Razem <borut.razem AT siol.net>
2575
2576         * configure.in, configure: re-introduced .version
2577         * sdcc.spec, doc/INSTALL.txt: they are used only for releases;
2578           the version reverted to 2.7.0
2579
2580 2007-07-18 Maarten Brock <sourceforge.brock AT dse.nl>
2581
2582         * configure.in,
2583         * doc/sdccman.lyx: bumped version to 2.7.3
2584         * device/include/mcs51/compiler.h: fixed elif->else
2585         * src/mcs51/gen.c (genAnd, genOr): handle accuse for pure bit operands
2586         * src/mcs51/ralloc.c (createStackSpil): fixed SCLS bug with sloc for sbit,
2587           (operandUsesAcc, packRegsForAccUse): added parameter allowBitspace to
2588            enable accuse for bit operands
2589         * src/SDCCmain.c (printVersionInfo),
2590         * src/SDCCutil.c (getBuildEnvironment): factored out creation of build
2591           environment descriptor
2592         * src/SDCCutil.h: added getBuildEnvironment
2593         * src/SDCCglue.c (initialComments): use getBuildEnvironment
2594         * support/regression/tests/bug1464657.c: enabled test test_Peephole251
2595         * support/regression/tests/bug-408972.c: enabled test leftShiftLong
2596         * support/regression/tests/bug1348008.c,
2597         * support/regression/tests/bug1496419.c,
2598         * support/regression/tests/bug1503067.c,
2599         * support/regression/tests/preproc.c: added empty tests
2600
2601 2007-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
2602
2603         * support/regression/tests/bug1678803.c: new, added
2604
2605 2007-07-14 Maarten Brock <sourceforge.brock AT dse.nl>
2606
2607         * as/link/aslink.h,
2608         * as/link/hc08/lkihx.c,
2609         * as/link/hc08/lkrloc.c,
2610         * as/link/mcs51/lkihx.c,
2611         * as/link/mcs51/lkrloc.c: renamed ihxEntendedLinearAddress to
2612           ihxExtendedLinearAddress
2613         * as/link/mcs51/lkrloc.c (relr),
2614         * as/mcs51/asout.c (outr11, outr19): handle absolute destination for
2615           acall/ajmp, see bug 830513
2616
2617 2007-07-13 Maarten Brock <sourceforge.brock AT dse.nl>
2618
2619         * src/SDCCcse.c (replaceAllSymBySym): renamed siaddr to isaddr,
2620           (cseBBlock): remember aggr2ptr has been used
2621         * src/SDCCicode.c (operandSize): added function to handle aggr2ptr,
2622           (geniCodeAssign): fixed bug 868103
2623         * src/SDCCicode.h: made operand.aggr2ptr 2 bits wide,
2624           added operandSize prototype
2625         * src/mcs51/gen.c (aopOp): use operandSize to fix bug 868103,
2626           (genDataPointerSet): use max of size of right and result,
2627           (gencjne): added parameter useCarry for optimization,
2628           (genCmpEq): use carry if appropriate,
2629           (genXor): check if operand already in carry
2630         * support/regression/tests/bug-868103.c: enabled test
2631
2632 2007-07-12 Raphael Neider <rneider AT web.de>
2633
2634         * src/pic16/gen.c (genNearPointerSet): fixed handling of literals
2635
2636 2007-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
2637
2638         * src/SDCCsymt.c (compareType): fixed bugs 1738367 and 1745717 with patch
2639           from Robert Larice, thanks
2640         * support/regression/tests/bitopcse.c,
2641         * support/regression/tests/bitvars.c,
2642         * support/regression/tests/bug-908454.c: use <stdbool.h> for the bit types
2643         * support/regression/tests/bug-927659.c: enabled test for z80
2644         * support/regression/tests/bug1738367.c: added extra tests by Frieder
2645         * support/regression/tests/bug1745717.c: new, added
2646         * support/regression/tests/literalop.c,
2647         * support/regression/tests/nullstring.c: removed storage definitions that
2648           are now in testfwk.h
2649
2650 2007-07-10 Maarten Brock <sourceforge.brock AT dse.nl>
2651
2652         * device/include/stdbool.h: do not define __bool_true_false_are_defined
2653           and bool for targets that do not fully support it.
2654         * support/regression/tests/bug1546986.c,
2655         * support/regression/tests/bug1723128.c,
2656         * support/regression/tests/bug1734654.c,
2657         * support/regression/tests/bug1738367.c,
2658         * support/regression/tests/constantRange.c: only use bool if allowed
2659
2660 2007-07-09 Maarten Brock <sourceforge.brock AT dse.nl>
2661
2662         * src/mcs51/peep.c (isCallerSaveFunc): fixed bug 1749275, thanks Robert
2663           Larice, also handle function pointers
2664         * support/regression/tests/bug1749275.c: new, added
2665
2666 2007-07-03 Borut Razem <borut.razem AT siol.net>
2667
2668         * src/mcs51/gen.c, src/avr/gen.c, src/pic/gen.c, src/z80/gen.c,
2669           src/pic16/gen.c, src/hc08/gen.c, src/ds390/gen.c: fixed RFE
2670           #1746528: SDCC should ignore ':' in inline assembler comments
2671         * device/include/typeof.h: fixed bug #1747142: typeof.h needs fixing
2672
2673 2007-07-02 Maarten Brock <sourceforge.brock AT dse.nl>
2674
2675         * device/include/mcs51/C8051F360.h: fixed bug #1746410, thanks Chris Jones
2676         * device/lib/mcs51/crtxclear.asm: do not set __XPAGE unconditionally
2677
2678 2007-06-29 Borut Razem <borut.razem AT siol.net>
2679
2680         * src/SDCCmain.c: fixed bug
2681           #1744746: SDCC #4867: broken option --xram-size
2682
2683 2007-06-28 Borut Razem <borut.razem AT siol.net>
2684
2685         * sim/ucsim/configure.in, sim/ucsim/configure, sim/ucsim/ddconfig_in.h:
2686           find out the endianess of host machine for ucsim
2687
2688 2007-06-27 Borut Razem <borut.razem AT siol.net>
2689
2690         * support/regression/generate-cases.py: corrected the file name
2691           in warning
2692         * configure.in, configure, sdccconf_in.h: find out the endianess of
2693           host machine
2694         * src/SDCC.y: fixed bug #1744146: Crash when compiling array of
2695           negative size
2696
2697 2007-06-27 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
2698
2699         * device/include/mcs51/p89c66x.h: NXP header file, OK to change licence
2700
2701 2007-06-26 Borut Razem <borut.razem AT siol.net>
2702
2703         * support/regression/generate-cases.py: display warning if function
2704           list is empty; implemented more flexible rule for detection of
2705           testing functions, allowing return type 'void' in the same line as
2706           the function name in the function definition
2707         * support/regression/tests/bug-1654060.c: corrected test
2708         * support/librarian/sdcclib.c: fixed warning:
2709           format '%s' expects type 'char *', but argument 2 has type 'int'
2710
2711 2007-06-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2712
2713         * support/librarian/sdcclib.c: Added feature Requests [1510635]
2714           Multiple infiles for sdcclib.
2715
2716 2007-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2717
2718         * src/SDCCast.c (inlineFindMaxBlockno, createFunction): fixed
2719           bug 1731741
2720
2721 2007-06-18 Borut Razem <borut.razem AT siol.net>
2722
2723         * src/SDCCmain.c: removed option -C since SDCC compiler doesn't know
2724           how to handle comments, so they have to be removed by the
2725           preprocessor; fixed bug #1738926:SDCC #4852: broken option -V
2726         * src/SDCCmain.c, src/SDCCargs.h, src/ds390/main.c, src/mcs15/main.c,
2727           src/pic16/main.c, src/pic/main.c, src/z80/main.c,
2728           support/Util/SDCCerr.c, support/Util/SDCCerr.h:
2729           table driven option hadling
2730
2731 2007-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
2732
2733         * src/SDCCast.c (decorateType),
2734         * src/SDCCicode.c (geniCodeConditional): moved optimization for '?' from
2735           iCode to ast level to fix bug 1738367
2736         * support/regression/tests/bug1738367.c: new, added
2737
2738 2007-06-15 Raphael Neider <rneider AT web.de>
2739
2740         * src/pic16/devices.inc,
2741         * device/lib/pic16/pics.all,
2742         * device/include/pic16/pic18fregs.h,
2743         * device/include/pic16/pic18f[24][45]20.h,
2744         * device/lib/pic16/libdev/pic18f[24][45]20.c: added support for
2745           18f2420, 18f2520, and 18f4420 devices, updated 18f4520 definitions
2746         * device/lib/pic16/Makefile.in: faster cleanup
2747
2748 2007-06-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2749
2750         * src/mcs51/peeph.def: added 177.i (mov from a is slightly cheaper)
2751
2752 2007-06-13 Raphael Neider <rneider AT web.de>
2753
2754         * src/SDCCmain.c: prevent NULL pointer dereference, avoid warning
2755
2756 2007-06-12 Raphael Neider <rneider AT web.de>
2757
2758         * support/scripts/inc2h.pl: conditionally emit defines for SFR bits,
2759           suppress bit defines if NO_BIT_DEFINES is #define'd
2760         * device/include/pic/pic*.h: recreated all headers to include
2761           conditional bit defines
2762         * device/include/pic/pic16f886.h,
2763         * device/include/pic/pic16f887.h: fixed based on newer .inc file
2764         * device/include/pic/recreate.sh: script to recreate the complete
2765           device library files based on the currently supported devices
2766
2767 2007-06-12 Borut Razem <borut.razem AT siol.net>
2768
2769         * src/pic16/main.c, src/SDCCargs.h, SDCCmain.c,
2770           support/regression/Makefile.in, support/scripts/build.mak,
2771           support/scripts/Makefile.snapshot:
2772           use new svn URL scheme
2773         * doc/sdccman.lyx: SDCC Wiki moved to
2774           http://sdcc.wiki.sourceforge.net/
2775
2776 2007-06-10 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2777
2778         * src/mcs51/peeph.def: disabled rule 132.d to fix #1734654
2779         * support/regression/tests/bug1734654.c: added
2780
2781 2007-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
2782
2783         * src/SDCCast.c (decorateType): optimized '?' for equal operands
2784         * src/SDCCicode.c (geniCodeConditional): optimization for bit result
2785           with literal operands
2786
2787 2007-06-10 Borut Razem <borut.razem AT siol.net>
2788
2789         * as/link/z80/lklibr.c: fixed mingw build warning
2790           lklibr.c:575: warning: implicit declaration of function 'tolower'
2791         * src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c,
2792           src/z80/main.c: move target specific options from src/SDCCmain.c
2793           to src/<target>/main.c
2794
2795 2007-06-09 Borut Razem <borut.razem AT siol.net>
2796
2797         * src/z80/gen.c: fixed bug #1294691: nested ifs make compiler crash;
2798           removed unused swap_sense; removed outBitCLong, replaced with outBitC
2799         * support/regression/tests/bug-1294691.c: added
2800
2801 2007-06-09 Maarten Brock <sourceforge.brock AT dse.nl>
2802
2803         * src/SDCCmem.c (allocDefault): removed check sym->level==0 for SPEC_ABSA,
2804           can also be static, fixes bug 1733438
2805         * src/SDCCsymt.c (checkSClass): static local vars in reentrant funcs can
2806           have absolute address too
2807           (computeType): added optimization for 'cond ? true : false'
2808         * support/regression/tests/absolute.c: added test for static absolute var
2809
2810 2007-06-08 Raphael Neider <rneider AT web.de>
2811
2812         * src/regression/Makefile: suppress parallel builds, allow easy
2813           switching between pic14/pic16 ports
2814         * src/regression/picregs.h: added pic14/16 header file switch
2815         * src/regression/{compare7.c,compare8.c,compare9.c,compare10.c,
2816           inline.c,nestfor.c,string1.c}: include "picregs.h"
2817
2818 2007-06-07 Borut Razem <borut.razem AT siol.net>
2819
2820         * sim/ucsim/*.[ch], sim/ucsim/configure, sim/ucsim/configure.in:
2821           permanent solution to suppress GCC 4.2.0 c++ warning:
2822           deprecated conversion from string constant to `char *'
2823           use 'const char *' where ever required
2824         * support/regression/generate-cases.py: implemented more flexible rule
2825           for detection of testing functions, allowing white-spaces surrounding
2826           the function name and the 'void' parameter.
2827         * support/regression/tests/constantRange.c,
2828           support/regression/tests/scott-compare3.c: fixed failing regression
2829           tests, uncovered by implementation of more flexible rule for detection
2830           of testing functions
2831
2832 2007-06-04 Maarten Brock <sourceforge.brock AT dse.nl>
2833
2834         * src/SDCCast.c(decorateType): better optimize '!!' and comparisons
2835
2836 2007-06-04 Borut Razem <borut.razem AT siol.net>
2837
2838         * configure.in, configure, config_vc.awk: sdcc version number is now
2839           stored in configure.in; removed .version
2840         * configure.in, configure, sdcc.spec, doc/sdccman.lyx, doc/sdccman.lyx,
2841           doc/INSTALL.txt: version bumped to 2.7.2
2842         * sim/ucsim/configure.in, sim/ucsim/configure:
2843           use "read" to read from .version
2844
2845 2007-06-03 Borut Razem <borut.razem AT siol.net>
2846
2847         * */Makefile.in: removed annoying warning:
2848           Makefile:xx: Makefile.dep: No such file or directory
2849
2850 2007-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
2851
2852         * src/mcs51/gen.c (outBitC, genRet): used IS_OP_RUONLY,
2853           (genNot, genXor): used toCarry, also fixes a bug for c = bit ^ val
2854         * src/mcs51/ralloc.c: removed IS_OP_RUONLY + some cosmetic changes
2855         * src/SDCCast.c (resultTypePropagate): propagate for '!',
2856           (decorateType): also optimize comparisons with RESULT_TYPE_BIT,
2857           bugfix: only use newBoolLink for bit result type
2858         * src/SDCCicode.c (geniCodeLogic): added param tree,
2859           bugfix: use newBoolLink if tree is bit type, bug appears when ruonly,
2860           (geniCodeLogicAndOr): use IS_BIT,
2861           (geniCodeJumpTable, geniCodeSwitch): added NULL param to geniCodeLogic,
2862           (ast2iCode): added tree param to geniCodeLogic for comparisons
2863         * src/SDCCsymt.h: added IS_OP_RUONLY and IS_OP_ACCUSE
2864         * support/regression/tests/bug1723128.c: added test NotZero
2865
2866 2007-06-01 Borut Razem <borut.razem AT siol.net>
2867
2868         * SDCPP synchronized with GCC CPP release version 4.2.0,
2869           currently the latest release:
2870         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
2871           support/cpp2/c-ppoutput.c, support/cpp2/cppdefault.c,
2872           support/cpp2/cppdefault.h, support/cpp2/except.h,
2873           support/cpp2/libcpp/directives.c, support/cpp2/libcpp/expr.c,
2874           support/cpp2/libcpp/files.c, support/cpp2/libcpp/include/cpplib.h,
2875           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
2876           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/macro.c,
2877           support/cpp2/libcpp/mkdeps.c, support/cpp2/libiberty/getpwd.c,
2878           support/cpp2/libiberty/hashtab.c, support/cpp2/optc-gen.awk,
2879           support/cpp2/opth-gen.awk, support/cpp2/opts.c,
2880           support/cpp2/opts.h, support/cpp2/output.h,
2881           support/cpp2/prefix.c, support/cpp2/sdcpp-opts.c,
2882           support/cpp2/sdcpp.dsp, support/cpp2/sdcpp.opt,
2883           support/cpp2/system.h, support/cpp2/version.c,
2884           support/cpp2/Makefile.in: modified
2885         * support/cpp2/opts-common.c: added
2886         * device/lib/pic16/libdev/pic18f[24][45]j10.c: fixed svn atrributes
2887         * device/lib/pic16/libdev/pic18f[24]5j10.c:
2888           search for included source file in local directory
2889         * sim/ucsim/configure, sim/ucsim/configure.in:
2890           temporary solution to suppress GCC 4.2.0 c++ warning:
2891           deprecated conversion from string constant to `char *'
2892
2893 2007-06-01 Raphael Neider <rneider AT web.de>
2894
2895         * device/lib/pic/libdev/pic12f683.c,
2896         * device/include/pic/pic12f683.h: added GPIO bits
2897
2898 2007-06-01 Raphael Neider <rneider AT web.de>
2899
2900         * doc/sdccman.lyx: added --disable-pic16-port, fixed some `--' and
2901           quotation marks, clarified role of PIC14 vs. PIC16 ports
2902         * src/pic16/devices.inc,
2903         * device/include/pic16/pic18fregs.h,
2904         * device/include/pic16/pic18f[24][45]j10.h,
2905         * device/lib/pic16/pics.all,
2906         * device/lib/pic16/libdev/pic18f[24][45]j10.c: added support for
2907           18f24j10, 18f25j10, 18f44j10, and 18f45j10
2908         * device/lib/pic16/libio/{i2c,adc,usart}.ignore: do not build IO libs
2909           for new devices as they are not yet supported by gputils
2910
2911 2007-05-31 Borut Razem <borut.razem AT siol.net>
2912
2913         * Small Device C Compiler 2.7.0 released
2914         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
2915           changed sdcc version to 2.7.1
2916         * support/scripts/sdcc.nsi: added How to create WIN32 release
2917           setup.exe package
2918
2919 2007-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
2920
2921         * doc/sdccman.lyx: documented initialization and allocation of absolute
2922           variables, bit parameter passing, the need for function pointers to be
2923           reentrant and alpha quality support of inline and retrict
2924
2925 2007-05-26 Borut Razem <borut.razem AT siol.net>
2926
2927         * support/regression/tests/bug1057979.c, support/regression/tests/malloc.c,
2928           support/regression/fwk/include/testfwk.h: fixed compilation on Mac OS x
2929         * docs/knownbugs.html: updated
2930
2931 2007-05-25 Maarten Brock <sourceforge.brock AT dse.nl>
2932
2933         * doc/sdccman.lyx: inserted footnotes about inline assembler labels,
2934           thanks Jan Waclawek
2935         * src/mcs51/gen.c (aopPut): fixed part of bug 1723128 when result is
2936           AOP_CRY and ruonly
2937           (gencjneshort): optimized when left is AOP_DIR
2938         * src/SDCCglue.c (printIvalStruct): fixed other part of bug 1723128 for
2939           initializing unions in a struct/array
2940         * support/regression/fwk/include/testfwk.h: added defines for data, near
2941           and far for host and z80
2942         * support/regression/tests/bug1723128.c: new, added
2943
2944 2007-05-22 Borut Razem <borut.razem AT siol.net>
2945
2946         * doc/knownbugs.html: updated
2947
2948 2007-05-21 Raphael Neider <rneider AT web.de>
2949
2950         * src/pic16/glue.c (pic16_initPointer): avoid assertion, emit better
2951           error message instead
2952         * src/pic/pcoderegs.c (pCodeOptime2pCodes): keep register state intact
2953
2954 2007-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
2955
2956         * src/mcs51/peeph.def (257.b): disabled to fix bug 1721024
2957
2958 2007-05-21 Raphael Neider <rneider AT web.de>
2959
2960         * src/pic/pcoderegs.c (pCodeOptime2pCodes): fixed bogus optimization,
2961           closes #1722392
2962         * src/regression/gpsim_assert.h,
2963         * src/regression/Makefile,
2964         * src/regression/pcodeopt.c: regression test for the above fix
2965
2966 2007-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
2967
2968         * src/SDCCpeeph.c (labelIsUncondJump): ignore identical labels for
2969           jumps to self, fixed bug 1717281
2970
2971 2007-05-10 Borut Razem <borut.razem AT siol.net>
2972
2973         * support/scripts/gen_known_bugs.pl: cosmetic fix
2974         * doc/knownbugs.html: generated by gen_known_bugs.pl
2975
2976 2007-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2977
2978         * src/SDCCast.c (createFunction): also generate non-inlined version of
2979           function for functions declared as "static inline"
2980         * src/SDCCast.c (fixupInline, inlineAddDecl): reset symbol state so
2981           function can be inlined after non-inlined version generated.
2982
2983 2007-05-10 Borut Razem <borut.razem AT siol.net>
2984
2985         * support/scripts/gen_known_bugs.pl: added script
2986           which generates knownbugs.html
2987
2988 2007-05-09 Maarten Brock <sourceforge.brock AT dse.nl>
2989
2990         * doc/knownbugs.html: updated for release 2.7.0
2991
2992 2007-05-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2993
2994         * device/include/mcs51/uPSD33xx.h: Added patch by Jan Waclawek.
2995
2996 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
2997
2998         * src/ds390/gen.c (emitcode): don't change properties of previous lines,
2999           (throughout): updated generating comments
3000         * src/mcs51/gen.c (emitcode): don't change properties of previous lines,
3001           (throughout): updated generating comments
3002         * src/SDCCpeeph.c (peepHole): continue searching at the first replaced
3003           rule instead of at the second, or it might skip lines when removing the
3004           complete match
3005         * support/regression/tests/bug1714204.c: changed test to foo
3006
3007 2007-05-08 Borut Razem <borut.razem AT siol.net>
3008
3009         * doc/sdccman.lyx: changed sdcc version to 2.7.0,
3010           thanks to SDCC Distributed Compile Farm members,
3011           added Z80 and GBZ80 command line options
3012         * .version, doc/INSTALL.txt, sdcc.spec: changed sdcc version to 2.7.0
3013
3014 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
3015
3016         * device/lib/mcs51/crtxinit.asm: added disabled version for dual dptr
3017         * device/include/mcs51/uPSD33xx.h: added sfr DPS as alias for DPTC
3018         * support/regression/tests/longlit.c: modified to be tested at all and
3019           to pass the actual test
3020
3021 2007-05-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3022
3023         * device/include/mcs51/uPSD33xx.h: Added.
3024
3025 2007-05-07 Maarten Brock <sourceforge.brock AT dse.nl>
3026
3027         * device/lib/_gptrput.c,
3028         * device/lib/_gptrget.c: removed old code,
3029          (_gptrgetWord),
3030         * src/ds390/gen.c (genGenPointerGet): fixed bug 1714204
3031         * support/regression/tests/bug1714204.c: new, added
3032
3033 2007-05-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3034
3035         * support/regression/tests/regtrack.c: test was never executed
3036           because of the regression test being picky about white spaces.
3037         * device/lib/mcs51/crtclear.asm: added comment
3038
3039 2007-05-06 Raphael Neider <rneider AT web.de>
3040
3041         * device/lib/pic/Makefile.rules,
3042         * device/lib/pic16/Makefile.rules: make sure *.ignore file exists,
3043           made "&> /dev/null" redirection sh-safe ("> /dev/null 2>&1")
3044
3045 2007-05-06 Raphael Neider <rneider AT web.de>
3046
3047         * src/pic16/device.h,
3048         * src/pic16/main.h,
3049         * src/pic16/main.c (pic16_optionsTable,_pic16_parseOptions,
3050           _pic16_setDefaultOptions): removed/reordered command-line args
3051         * doc/sdccman.lyx: updated PIC14 and PIC16 documentation (supported
3052           devices, regrouped command line args, environment variables),
3053           clarified sone points, added sections on how to add devices to the
3054           PIC14/PIC16 ports
3055
3056 2007-05-06 Maarten Brock <sourceforge.brock AT dse.nl>
3057
3058         * src/z80/peeph.def: fixed bug in rule 2
3059
3060 2007-05-05 Maarten Brock <sourceforge.brock AT dse.nl>
3061
3062         * src/port.h: added TARGET_MCS51_LIKE
3063         * src/SDCCpeeph.c (labelIsUncondJump): new, added, other targets could
3064           take advantage of it too
3065         * src/z80/gen.c (genIpush): push b, d or h directly instead of using a,
3066           (shiftR2Left2Result): Optimized: don't check shifting by 0
3067         * src/z80/peeph-z80.def,
3068         * src/z80/peeph.def: whole set of new rules by Philipp Krause with some
3069           modifications, see patch 1700823
3070         * src/mcs51/peep.c (): fixed bug 1712928
3071         * support/regression/tests/bug1712928.c: new, added
3072
3073 2007-05-05 Borut Razem <borut.razem AT siol.net>
3074
3075         * device/lib/pic16/Makefile.common.in,
3076           device/lib/pic/Makefile.common.in, sim/ucsim/cmd.src/Makefile.in:
3077           removed bash dependencies
3078
3079 2007-05-01 Borut Razem <borut.razem AT siol.net>
3080
3081         * src/SDCCicode.c:
3082           fixed bug #1710507: --i-code-in-asm makes compile fail
3083           all iCode comments are now one liners
3084         * src/mcs51/gen.c: fixed memory leak
3085
3086 2007-05-01 Raphael Neider <rneider AT web.de>
3087
3088         * device/lib/pic/libdev/*.c
3089         * device/include/pic/*.h: regenerated all device libs from updated
3090           .inc files
3091         * support/scripts/inc2h.pl: documented usage, now uses strict to
3092           catch more bugs
3093
3094 2007-04-30 Borut Razem <borut.razem AT siol.net>
3095
3096         * doc/sdccman.lyx:
3097           fixed bug #1669175: Problem with space in output paths
3098           documented how to use paths with spaces for Windows users
3099
3100 2007-04-29 Borut Razem <borut.razem AT siol.net>
3101
3102         * Fixed svn:eol-style and svn:keywords properties
3103         * src/SDCCval.c: fixed bug
3104           #1592871: Segfault with "large" const arrays of characters
3105           replaced recursion with iteration
3106         * Removed svn:executable property from non-executable files
3107
3108 2007-04-29 Maarten Brock <sourceforge.brock AT dse.nl>
3109
3110         * src/mcs51/gen.c (genRet): fixed bug 1707003
3111
3112 2007-04-27 Raphael Neider <rneider AT web.de>
3113
3114         * src/pic16/pcode.c (pBlockRemoveUnusedLabels,pic16_pBlockAddInval,
3115           createReachingDefinitions,assignValnums,pic16_destructDF,
3116           pic16_createDF,pic16_vcg_dumpedges,pic16_vcg_dump_default):
3117           prevent NULL pointer dereferences
3118         * device/lib/pic/libdev/pic16f886.c,
3119         * device/lib/pic/libdev/pic16f887.c: svn mv'ed to disabled_* to
3120           prevent building them, gputils do not really support them yet
3121
3122 2007-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3123
3124         * device/lib/_ltoa.c: 36 bytes less __data mem. This really
3125           helps printf_small. 32 bytes more __idata mem.
3126
3127 2007-04-27 Raphael Neider <rneider AT web.de>
3128
3129         * src/pic/pcode.c (addpCode2pBlock,LinkFlow,pBlockRemoveUnusedLabels):
3130           return early when pb or pb->pcHead is NULL (patch #1708427)
3131         * src/regression/empty.c,
3132         * src/regression/Makefile: added test with empty functions
3133         * support/Util/SDCCerr.c: fixed typo in E_INIT_STRUCT message
3134
3135 2007-04-27 Borut Razem <borut.razem AT siol.net>
3136
3137         * src/SDCCast.c: fixed feature request
3138           #1547512: Redundant strings linked when using sizeof("abc")
3139
3140 2007-04-23 Borut Razem <borut.razem AT siol.net>
3141
3142         * doc/sdccman.lyx, src/SDCCmain.c:
3143           peep-hole comments are generated only if --fverbose-asm option is
3144           specified and --no-peep-comments is not, as proposed by Frieder.
3145         * support/regression/Makefile.in: compile regression tests with
3146           --fverbose-asm option so one can "grep" whether a new (or an old)
3147           peephole is (still) applied; requested by Frieder.
3148
3149 2007-04-23 Kevin Buettner <kevin AT buettner.to>
3150
3151         * device/include/pic/pic16f886.h,
3152         * device/include/pic/pic16f887.h,
3153         * device/lib/pic/libdev/pic16f886.c,
3154         * device/lib/pic/libdev/pic16f887.c,
3155         * device/include/pic/pic14devices.txt,
3156         * device/lib/pic/libdev/devices.txt: Add 16f886 and 16f887.
3157
3158 2007-04-23 Kevin Buettner <kevin AT buettner.to>
3159
3160         * device/lib/pic/libsdcc/idata.c: PAGESEL _main before going there,
3161           fixes #1704666
3162
3163 2007-04-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3164
3165         * device/lib/_memset.c: assembler version for mcs51
3166
3167 2007-04-22 Borut Razem <borut.razem AT siol.net>
3168
3169         * support/scripts/listerr.c: program to create the list of errors and
3170           warnings list from - added
3171         * doc/sdccman.lyx: removed the note
3172           "For list of warnings and corresponding codes, see err_warn.txt"
3173         * src/SDCCsymt.c: fixed bug #1699804:
3174           Bug with some uses of sizeof(static local array) (MCS51)
3175         * support/regression/tests/bug-1699804.c: added
3176
3177 2007-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
3178
3179         * as/mcs51/asmain.c (search_path_append, search_path_fopen): new, added,
3180           (main): added option -i,
3181           (asmbl, case S_INCL): use search_path_fopen,
3182           mostly from patch 1579668 by Peter Miller, thanks
3183         * src/z80/main.c: fixed typo --callee-saves-bc
3184         * device/include/mcs51/compiler.h: added sfrword for Tasking
3185
3186 2007-04-20 Borut Razem <borut.razem AT siol.net>
3187
3188         * src/z80/main.c: replaced reserved keyword asm with asmblr
3189
3190 2007-04-19 Borut Razem <borut.razem AT siol.net>
3191
3192         * src/port.h: use const pointers to strings
3193         * src/SDCCargs.h: declared getStringArg() and getIntArg()
3194         * src/pic16/main.c: include SDCCargs.h
3195         * src/SDCCglobl.h: code_seg and const_seg are not pointers to
3196           const char, since the strings are dynamically allocated
3197         * src/SDCCmain.c: options.code_seg and options.const_seg are
3198           dynamically allocated; check port specific command line options
3199           before the general ones
3200         * src/z80/main.c: fixed bug #1631895: codeseg/constseg #pragma fail
3201
3202 2007-04-18 Maarten Brock <sourceforge.brock AT dse.nl>
3203
3204         * device/include/ds400rom.h,
3205         * device/lib/ds390/lcd390.c,
3206         * device/lib/ds390/memcpyx.c,
3207         * device/lib/ds390/rtc390.c,
3208         * device/lib/ds400/ds400rom.c,
3209         * device/lib/ds400/memcpyx.c,
3210         * device/lib/hc08/_ret.c: more replacements of keywords with their
3211           double underscore equivalents
3212         * device/lib/ds390/Makefile.in,
3213         * device/lib/ds400/Makefile.in,
3214         * device/lib/gbz80/Makefile.in,
3215         * device/lib/hc08/Makefile.in,
3216         * device/lib/mcs51/Makefile.in,
3217         * device/lib/z80/Makefile.in: added --std-c89 to CFLAGS
3218
3219 2007-04-17 Borut Razem <borut.razem AT siol.net>
3220
3221         * doc/sdccman.lyx, src/SDCCmain.c, src/SDCCglobal.h, src/ds390/gen.c,
3222           src/hc08/gen.c, src/mcs51/gen.c, src/mcs51/rtrack.c:
3223           fixed #1493816: option --no-gen-comments: --no-gen-comments renamed
3224           to --fverbose-asm, to be gcc'ish
3225
3226 2007-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
3227
3228         * src/mcs51/gen.c (aopOp): set size to 1 for ruonly, fixes bug 1699455
3229
3230 2007-04-17 Borut Razem <borut.razem AT siol.net>
3231
3232         * doc/sdccman.lyx: fixed #1701874: Mac OSX references in SDCC manual
3233         * device/lib/ds400/tinibios.c, device/lib/hc08/_divuint.c,
3234           device/lib/hc08/_divulong.c: replaced _asm and _endasm keywords
3235           with their double underscore equivalent
3236
3237 2007-04-14 Borut Razem <borut.razem AT siol.net>
3238
3239         * doc/sdccman.lyx: some additional "freeware" replaced with "free open
3240           source"
3241
3242 2007-04-13 Borut Razem <borut.razem AT siol.net>
3243
3244         * doc/sdccman.lyx: -pedantic-parse-number is not in conformance with
3245           C99 standard
3246         * device/examples/serialcomm/windows/serial.[ch],
3247           device/examples/serialcomm/windows/test_serialcomm.cpp:
3248           updated by Bela Torok
3249         * device/examples/serialcomm/windows/serialcomm.dsw,
3250           device/examples/serialcomm/windows/serialcomm.dsp: added
3251
3252 2007-04-13 Jan Waclawek <wek AT efton.sk>
3253
3254         * doc/sdccman.lyx: additions and changes at various places
3255           (submitted as #1697136).
3256           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
3257
3258 2007-04-10 Borut Razem <borut.razem AT siol.net>
3259
3260         * doc/cdbfileformat.lyx, doc/sdccman.lyx, doc/test_suite_spec.lyx:
3261           LyX file format changed to 245
3262         * doc/sdccman.lyx, doc/README.txt, sdc/SDCC.lex, src/SDCCglue.c:
3263           "FreeWare" replaced with "free open source"
3264
3265 2007-04-10 Maarten Brock <sourceforge.brock AT dse.nl>
3266
3267         * device/include/mcs51/C8051F120.h: added some defines for bits in RSTSRC
3268
3269 2007-04-08 Maarten Brock <sourceforge.brock AT dse.nl>
3270
3271         * device/include/pic16/pic18fregs.h,
3272         * device/lib/_bp.c,
3273         * device/lib/_decdptr.c,
3274         * device/lib/_divsint.c,
3275         * device/lib/_divslong.c,
3276         * device/lib/_divuint.c,
3277         * device/lib/_divulong.c,
3278         * device/lib/_fs2schar.c,
3279         * device/lib/_fs2sint.c,
3280         * device/lib/_fs2slong.c,
3281         * device/lib/_fs2uchar.c,
3282         * device/lib/_fs2uint.c,
3283         * device/lib/_fs2ulong.c,
3284         * device/lib/_fsadd.c,
3285         * device/lib/_fscmp.c,
3286         * device/lib/_fsdiv.c,
3287         * device/lib/_fseq.c,
3288         * device/lib/_fsget1arg.c,
3289         * device/lib/_fsget2args.c,
3290         * device/lib/_fsgt.c,
3291         * device/lib/_fslt.c,
3292         * device/lib/_fsmul.c,
3293         * device/lib/_fsneq.c,
3294         * device/lib/_fsnormalize.c,
3295         * device/lib/_fsreturnval.c,
3296         * device/lib/_fsrshift.c,
3297         * device/lib/_fssub.c,
3298         * device/lib/_fsswapargs.c,
3299         * device/lib/_gptrget.c,
3300         * device/lib/_gptrgetc.c,
3301         * device/lib/_gptrput.c,
3302         * device/lib/_logexpf.c,
3303         * device/lib/_modsint.c,
3304         * device/lib/_modslong.c,
3305         * device/lib/_moduint.c,
3306         * device/lib/_modulong.c,
3307         * device/lib/_mulint.c,
3308         * device/lib/_mullong.c,
3309         * device/lib/_schar2fs.c,
3310         * device/lib/_ser.c,
3311         * device/lib/_setjmp.c,
3312         * device/lib/_sint2fs.c,
3313         * device/lib/_slong2fs.c,
3314         * device/lib/_spx.c,
3315         * device/lib/_uchar2fs.c,
3316         * device/lib/_uint2fs.c,
3317         * device/lib/_ulong2fs.c,
3318         * device/lib/asincosf.c,
3319         * device/lib/atanf.c,
3320         * device/lib/calloc.c,
3321         * device/lib/ds390/tinibios.c,
3322         * device/lib/ds400/tinibios.c,
3323         * device/lib/expf.c,
3324         * device/lib/free.c,
3325         * device/lib/hc08/_mulint.c,
3326         * device/lib/logf.c,
3327         * device/lib/malloc.c,
3328         * device/lib/printf_fast.c,
3329         * device/lib/printf_tiny.c,
3330         * device/lib/printfl.c,
3331         * device/lib/realloc.c,
3332         * device/lib/ser_ir.c,
3333         * device/lib/serial.c,
3334         * support/regression/tests/libmullong.c: replaced all special keywords
3335           with their double underscore equivalent
3336         * support/regression/ports/mcs51-xstack-auto/spec.mk,
3337         * device/lib/Makefile.in: compile libs with --std-c99 instead of
3338           --std-sdcc99
3339         * src/mcs51/gen.c (outBitC): don't store if result is return-use-only,
3340           (genRet): if the bit-symbol is ruonly it already is in the carry
3341         * src/mcs51/ralloc.c (regTypeNum): make regType REG_CND for ruonly bit
3342         * src/SDCCast.c (createFunction): applied patch 887171 by Stas Sergeev
3343         * src/SDCCicode.c (ast2iCode): '!', GETHBIT, GETABIT: only set operand
3344           type UCHAR if dest is not bit
3345
3346 2007-04-03 Maarten Brock <sourceforge.brock AT dse.nl>
3347
3348         * device/include/math.h,
3349         * device/lib/cotf.c,
3350         * device/lib/expf.c,
3351         * device/lib/sincoshf.c: changed XMAX to C99 HUGE_VALF
3352
3353 2007-04-01 Borut Razem <borut.razem AT siol.net>
3354
3355         * src/SDCC.lex, src/SDCCmain.c, support/cpp2/sdcpp.c:
3356           fixed bug #1692042: input buffer overflow...scanner uses REJECT
3357         * support/cpp2/sdcpp.c: fixed recursion bug - internal_error() called
3358           gcc_unreachable() called internal_error()...
3359
3360 2007-03-30 Raphael Neider <rneider AT web.de>
3361
3362         * src/pic/ralloc.c (isData): suppress garbage debug output
3363
3364 2007-03-28 Borut Razem <borut.razem AT siol.net>
3365
3366         * doc/sdccman.lyx:
3367           "Nightly Snapshots" replaced with "Snapshot Builds", since the SDCC
3368           is developed, built and used worldwide, and the word "night" doesn't
3369           make any sense.
3370
3371 2007-03-28 Maarten Brock <sourceforge.brock AT dse.nl>
3372
3373         * device/include/mcs51/C8051F360.h: new, added
3374         * device/include/mcs51/C8051F520.h: fixed buggy sbit addresses SPI0CN
3375
3376 2007-03-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3377
3378         * src/SDCC.y (declaration_specifiers, function_specifier),
3379         * support/Util/SDCCerr.c,
3380         * support/Util/SDCCerr.h,
3381         * src/SDCCsymt.h,
3382         * src/SDCCsymt.c (mergeSpec, checkFunction): Parse and validate the
3383           inline keyword
3384         * src/SDCCmem.c (deallocParms),
3385         * src/SDCCast.c: support for function inlining, not quite complete
3386         * src/SDCCsymt.c (printTypeChain, printTypeChainRaw): display
3387           'restrict' qualifier
3388
3389 2007-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
3390
3391         * src/mcs51/gen.c (saveRegisters, unsaveRegisters): free some bitVects,
3392           (saveRBank, unsaveRBank): don't save bits,
3393           (genFunction, genEndFunction): save bits exactly once, fix bug 1535242
3394         * support/regression/tests/bug1535242.c: new, added
3395         * device/include/assert.h: applied patch 1686533 to fix bug 1686528,
3396           thanks Alexey Shamrin <shamrin AT gmail.com>,
3397           made assert.h header ANSI compliant (added a check for NDEBUG macro,
3398           removed header guard)
3399         * .version,
3400         * sdcc.spec: bumped version to 2.6.5
3401         * src/SDCCmain.c(parseCmdLine): fixed bug 1677144
3402
3403 2007-03-22 Borut Razem <borut.razem AT siol.net>
3404
3405         * debugger/mcs51/cmd.c, debugger/mcs51/sdcdb.c:
3406           fixed bug #1653671: sdcdb integration into ddd is broken
3407
3408 2007-03-22 Raphael Neider <rneider AT web.de>
3409
3410         * src/pic/gen.c (popGetExternal): augmented to also create references
3411           to external variables (not only labels),
3412           (genCall): comment on plan to reduce PAGESEL overhead,
3413           (genFunction, genEndFunction): also save/restore FSR around interrupt
3414           handling code, removed lots of unused code
3415           (genDivOneByte): release acquired temp register
3416         * src/pic/glue.c (pic14createInterruptVect): adapt to new signature
3417           of popGetExternal
3418         * device/lib/pic/libsdcc/shadowregs.c: NEW, provide storage location
3419           for registers that need to be saved during interrupts (FSR, STATUS,
3420           PCLATH; W needs special handling), currently only FSR is used
3421
3422 2007-03-22 Raphael Neider <rneider AT web.de>
3423
3424         * device/include/pic/pic14devices.txt: 16f688 has only one config word
3425
3426 2007-03-19 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3427
3428         * /as/link/mcs51/aslink.dsp: Object extension for mcs51 is 'rel' not 'o'.
3429
3430 2007-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
3431
3432         * src/mcs51/peeph.def (263.x): fixed bug for volatile variables
3433
3434 2007-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
3435
3436         * as/link/aslink.h: added LKOBJEXT
3437         * as/link/hc08/link_hc08.dsp,
3438         * as/link/hc08/Makefile.bcc,
3439         * as/link/hc08/Makefile.in,
3440         * as/link/mcs51/aslink.dsp,
3441         * as/link/mcs51/Makefile.bcc,
3442         * as/link/mcs51/Makefile.in: moved lkamof51.c and lkdata.c
3443         * as/link/hc08/lkaomf51.c,      as/link/mcs51/lkaomf51.c,
3444         * as/link/lkaomf51.c: merged and moved
3445         * as/link/hc08/lkdata.c,        as/link/mcs51/lkdata.c,
3446         * as/link/z80/lkdata.c,
3447         * as/link/lkdata.c: merged and moved
3448         * as/link/hc08/lkmain.c,
3449         * as/link/mcs51/lkmain.c: cosmetic changes
3450         * as/link/z80/lkeval.c,         as/link/lkeval.c: merged
3451         * as/link/lklex.c: use LKOBJEXT
3452         * as/link/z80/lklist.c,         as/link/lklist.c: merged,
3453           ANSI-fied functions, removed bubble-sorts
3454         * as/link/z80/lksym.c           as/link/lksym.c: merged,
3455           ANSI-fied functions
3456         * as/link/z80/linkgbz80.dsp,
3457         * as/link/z80/linkz80.dsp,
3458         * as/link/z80/Makefile.in: added lkaomf51.c and lknoice.c,
3459           moved lkdata.c, lkeval.c, lkhead.c, lklex.x, lklist.c, lksym.c
3460         * as/link/z80/lkhead.c,
3461         * as/link/z80/lklex.c: deleted
3462         * as/link/z80/lklibr.c: moved LKOBJEXT to aslink.h
3463         * as/link/z80/lkmain.c: added copyfile()
3464
3465 2007-03-13 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3466
3467         * device/include/mcs51/P89LPC925.h: Added missing P1_6 and P1_7.
3468
3469 2007-03-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3470
3471         * device/lib/_strlen.c: assembler version for mcs51
3472
3473 2007-03-13 Raphael Neider <rneider AT web.de>
3474
3475         * device/include/pic16/pic18f2221.h,
3476         * device/include/pic16/pic18f2321.h,
3477         * device/include/pic16/pic18f2331.h,
3478         * device/include/pic16/pic18f4221.h,
3479         * device/include/pic16/pic18f4321.h,
3480         * device/include/pic16/pic18f4331.h: fixed config byte location names
3481         * support/scripts/inc2h-pic16.pl: removed debug output, emit
3482           consistently named config byte locations
3483
3484 2007-03-13 Borut Razem <borut.razem AT siol.net>
3485
3486         * src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
3487           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/s51.src/Makefile.in,
3488           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
3489           as/link/z80/Makefile.in, as/z80/Makefile.in:
3490           introduced LDFLAGS
3491
3492 2007-03-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3493
3494         * device/lib/printfl.c: 13 bytes less __data mem (12 more __idata)
3495         * device/lib/printf_large.c: pointer was converted to generic
3496         pointer for mcs51 models other than model-small (Maarten noticed)
3497
3498 2007-03-10 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3499
3500         * device/include/mcs51/ADuC84x.h: Added.
3501
3502 2007-03-10 Borut Razem <borut.razem AT siol.net>
3503
3504         * src/SDCC.lex, src/SDCCutil.[ch], src/SDCCval:
3505           fixed RFE #1624219: double backslashes in filenames;
3506           functions hexEscape(), octalEscape() and copyStr() moved from
3507           SDCCval.c to SDCCutil.c and made them glovbally available
3508
3509 2007-03-09 Borut Razem <borut.razem AT siol.net>
3510
3511         * src/SDCC.lex, src/SDCCast.c. src/SDCCglobl.c, src/SDCCsymt.c,
3512           src/SDCCval.c: fixed bugs #1676768: Wrong line number reported and
3513           1673361: Missaligned comments in output files
3514
3515 2007-03-09 Raphael Neider <rneider AT web.de>
3516
3517         * device/include/pic/pic14devices.txt: fixed confsiz of 16f91[3467]
3518
3519 2007-03-09 Raphael Neider <rneider AT web.de>
3520
3521         * src/pic/gen.c,
3522         * src/pic/glue.c,
3523         * src/pic/ralloc.c: suppress undesired debug output
3524         * src/SDCCmain.c (linkEdit): initialize c to quieten compiler
3525
3526 2007-03-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3527
3528         * device/lib/printf_large.c: 6 bytes less __data mem (6 more __idata)
3529
3530 2007-03-07 Borut Razem <borut.razem AT siol.net>
3531
3532         * device/lib/pic16/libdev/pic18f[24][34]31.c:
3533           search include files in the current directory
3534
3535 2007-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
3536
3537         * src/SDCCglue.c (emitMaps, glue),
3538         * src/SDCCmem.c (initMem, allocDefault): added x_abs for initialized
3539           absolute xdata
3540         * support/regression/tests/absolute.c: added xdata test
3541
3542 2007-03-03 Maarten Brock <sourceforge.brock AT dse.nl>
3543
3544         * src/SDCCmain.c (parseCmdLine): only set options.xstack_loc for mcs51,
3545           added condition to macro, fixes bug 1666080
3546
3547 2007-03-02 Raphael Neider <rneider AT web.de>
3548
3549         * src/pic/gen.c (genGenPointerSet): removed bogus assertion
3550
3551 2007-02-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3552
3553         * device/lib/mcs51/crtxclear.asm: pdata segment of 256 byte would not
3554         be cleared. Unconditionally set __XPAGE
3555         * src/hc08/gen.c: --no-gen-comments (RFE #1493816) for hc08
3556
3557 2007-02-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3558
3559         * src/SDCCglobl.h,
3560         * src/SDCCmain.c,
3561         * src/mcs51/gen.c,
3562         * src/mcs51/rtrack.c,
3563         * src/ds390/gen.c,
3564         * doc/sdccman.lyx: added --no-gen-comments
3565         * src/mcs51/peeph.def: added 192.b, disabled 185
3566
3567 2007-02-25 Raphael Neider <rneider AT web.de>
3568
3569         * src/pic16/gen.c (genCast): fixed typo
3570         * device/lib/pic16/Makefile.subdir: only install existing files
3571         * device/lib/pic16/libdev/Makefile.in: build serially, avoid races
3572
3573 2007-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
3574
3575         * device/lib/mcs51/crtcall.asm: new, added for indirect calls
3576         * device/lib/mcs51/crtclear.asm,
3577         * device/lib/mcs51/crtxclear.asm: renumbered labels
3578         * device/lib/mcs51/Makefile.in: added crtcall.asm
3579         * doc/sdccman.lyx: documented mcs51 crt* library startup code
3580         * src/mcs51/gen.c (movc): removed,
3581           (aopGet, genPlusBits): clear a after loading the carry (possibly from
3582             acc.x or psw.x),
3583           (toCarry, genSend, genRet): added function toCarry,
3584           (genPcall): use "lcall @a+dptr" for functions w/o parameters,
3585           (assignBit, genAssign, genCast): added function assignBit
3586         * src/mcs51/Makefile.bcc: added rtrack.c
3587         * src/mcs51/ralloc.h: made valueKnown a bitfield
3588         * src/mcs51/rtrack.c (getReg, rtrackUpdate): added getReg,
3589           fixed "jbc acc" and "cpl acc" bug, enhanced "cjne", "jnz" and "djnz",
3590           disabled InvalidateAllRx for lcall __gptrput, added "xch a,rn"
3591         * src/pic/pcode.c (FixRegisterBanking): fixed warning used uninitialized
3592         * src/z80/gen.c: added AOP_IS_PAIRPTR,
3593           (_pop): only pop valid pairs, see gencjneshort,
3594           (gencjneshort): return pair that still needs to be popped, restructured,
3595           (gencjne, genCmpEq): call _pop
3596
3597 2007-02-23 Raphael Neider <rneider AT web.de>
3598
3599         * device/include/pic/pic14devices.txt: 16f684 has only one config word
3600
3601 2007-02-22 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3602
3603         * device/include/mcs51/P89LPC925.h: Added.
3604
3605 2007-02-18 Raphael Neider <rneider AT web.de>
3606
3607         * src/pic/glue.c (emitInitVal): fixed #1659894 (SIGSEGV on arrays)
3608
3609 2007-02-17 Borut Razem <borut.razem AT siol.net>
3610
3611         * support/cpp2/directives.c, support/cpp2/version.c:
3612           synchronized with GCC CPP 4.1.2
3613
3614 2007-02-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3615
3616         * src/mcs51/rtrack.h,
3617         * src/mcs51/rtrack.c: added register tracking for the mcs51 port,
3618           by checking the strings passed by emitcode() to the assembler.
3619           Feel free to change. This in part addresses RFE #482179.
3620           Set environment variable SDCC_RTRACK to enable.
3621         * src/mcs51/gen.c: inserted hooks
3622         * src/mcs51/ralloc.h: added two members to struct regs
3623         * support/regression/tests/regtrack.c: added
3624
3625 2007-02-14 Borut Razem <borut.razem AT siol.net>
3626
3627         * src/SDCC.y: fixed bug #1291133: duplicate members across enum(s)
3628         * Makefile.in: applied patch from Makefile related part of
3629           #1469393: Compiler does not initialize static data
3630
3631 2007-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
3632
3633         * src/SDCCicode.c (geniCodeAssign): return (itemp) right instead of left
3634           for better fix of bug 1273984, compiles pic16 rand.c
3635
3636 2007-02-12 Borut Razem <borut.razem AT siol.net>
3637
3638         * src/pic16/main.c: fixed pic16 standard library directory bug
3639
3640 2007-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
3641
3642         * src/hc08/gen.c (genSwap): fix swap regression test
3643
3644 2007-02-10 Borut Razem <borut.razem AT siol.net>
3645
3646         * src/SDCCsymt.c: fixed bug #1159134: invalid duplicate declarations
3647           with same scope
3648         * support/regression/tests/bug-1654060.c: added regression test for
3649           #1654060
3650
3651 2007-02-09 Bernhard Held <bernhard AT bernhardheld.de>
3652
3653         * src/mcs51/gen.c (genRet): fixed RFE 1652561: added code for bit to
3654         bit moves in return statement
3655
3656 2007-02-09 Borut Razem <borut.razem AT siol.net>
3657
3658         * src/SDCC.y: fixed bug #1654060 typedef within function causes
3659           syntax error
3660
3661 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
3662
3663         * src/mcs51/gen.c (aopPut): use direct name for pushing registers
3664         * src/SDCCmain.c (parseCmdLine): dbuf_s path must be initialised
3665
3666 2007-02-07 Raphael Neider <rneider AT web.de>
3667
3668         * src/pic16/devices.inc,
3669         * device/include/pic16/pic18fregs.h,
3670         * device/include/pic16/pic18f[24][34]31.h,
3671         * device/lib/pic16/libdev/pic18f[24][34]31.c,
3672         * device/lib/pic16/pics.all: added 18f[24][34]31 family
3673         * device/lib/pic16/libio/i2c.ignore: do not build i2c
3674
3675 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
3676
3677         * device/lib/printf_large.c (_print_format): fixed compare/assign bug, how
3678           can this have lived here for so many years?
3679         * src/SDCCicode.c (ast2iCode): return left instead of right for assignment,
3680           fixes bug 1273984, see also patch 1645121, thanks Gnther Jehle
3681         * support/regression/tests/bug1273984.c: new, added, thanks Gnther Jehle
3682
3683 2007-02-06 Bernhard Held <bernhard AT bernhardheld.de>
3684
3685         * src/SDCCBlock.c (addiCodeToeBBlock): fixed bug 1652207: GOTO icodes
3686         appended by loop induction must be at the very end of the eBBlock
3687
3688 2007-02-05 Kevin Vigor
3689
3690         * src/ds390/gen.c, src/ds390/main.c: Address bug 1469393.
3691
3692 2007-02-05 Borut Razem <borut.razem AT siol.net>
3693
3694         * support/regression/fwk/lib/timeout.c: native WIN32 port,
3695           implemented #1651830 Reg. tests: rewrite timeout.c to use WIN32 API
3696
3697 2007-02-03 Borut Razem <borut.razem AT siol.net>
3698
3699         * src/SDCC.y, src/SDCCmain.c, src/SDCCglobl.h, doc/sdccman.lyx:
3700           applied patch #1646602 option to set default signedness of char to
3701           unsigned, added -funsigned-char command line option,
3702           thanks to Gunther Jehle
3703         * device/lib/Makefile.in: added the -f option to rm so it doesn't
3704           prompt for file deletion a few hundred times (especially the
3705           subversion files, which have ro permissions so it asks for
3706           confirmation), thanks to Simon McAuliffe;
3707           added {} + option to find in order to remove multiple files from a
3708           single rm commad
3709
3710 2007-02-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3711
3712         * device/include/mcs51/SST89x5xRDx.h: Added.
3713
3714 2007-02-02 Raphael Neider <rneider AT web.de>
3715
3716         * src/pic/glue.c (emitSymbolSet): check sym->etype before use
3717         * src/regression/Makefile: use --no-pcode-opt, ignore failing tests
3718
3719 2007-02-01 Raphael Neider <rneider AT web.de>
3720
3721         * src/pic/glue.c (picglue,emitSymbolSet,showAllMemmaps): emit the
3722           config words again
3723
3724 2007-01-31 Borut Razem <borut.razem AT siol.net>
3725
3726         * support/Util/dbuf_string.h: added ATTRIBUTE_PRINTF to dbuf_printf()
3727           if compiled with GCC. Thanks to Raphael Neider
3728
3729 2007-01-31 Raphael Neider <rneider AT web.de>
3730
3731         * src/pic/pcode.c (isValidIdChar,bankCompare): fuzzy matching of
3732             operand names, handles name and (name + n) for all n,
3733           (sameBank): restructured, also check bank allocation policy,
3734         * src/pic/glue.c (emitPseudoStack): fixed printf arguments,
3735           (pic14_operandsAllocatedInSameBank): check whether to operands
3736             will be allocated into the same bank (i.e., section) to reduce
3737             BANKSEL overhead, queried from pcode.c:sameBank,
3738           (pic14printLocals): reintroduced clustering registers into a single
3739             section: all compiler generated symbols will now reside in one
3740             bank (per file), reducing BANKSEL overhead and code size,
3741           (showAllMemmaps): use local dbuf where possible
3742
3743 2007-01-29 Raphael Neider <rneider AT web.de>
3744
3745         * src/pic/gen.c (popGetExternal): simplified, mark symbol as used,
3746           (call_libraryfunc): retrieve/create symbol and mark as used,
3747           (genFunction): mark defined functions as non-extern and add again
3748            to code memmap for later output
3749         * src/pic/glue.c (emitPseudoStack): put into own subroutine,
3750           (pic14printLocals): reworked for new symbol emission,
3751           (emitIfNew,pic14_constructAbsMap,emitIvalLabel,emitIvals,emitInitVal,
3752           showAllMemmaps): reworked symbol output using dbufs, added handling
3753             of string literals (still incomplete),
3754           (picglue): removed symbol emission, moved into showAllMemmaps,
3755           (emitSymbolSet): new workhorse for symbol output,
3756           (pic14emitMaps,pic14printPublics,pic14printExterns): commented out
3757
3758 2007-01-29 Borut Razem <borut.razem AT siol.net>
3759
3760         * src/SDCCmain.c, src/SDCCutil.c: dbuf_splitFile: file extension
3761           component contains the extension separator.
3762
3763 2007-01-28 Borut Razem <borut.razem AT siol.net>
3764
3765         * sim/ucsim/cmd.src/cmdutil.cc: NUL device is detected as CG_FILE type
3766           on WIN32
3767         * src/SDCCdwarf2.c, src/SDCCglobl.h, src/SDCCmain.c, src/SDCCutil.c,
3768           src/SDCCutil.h, src/avr/gen.c, src/ds390/gen.c, src/hc08/gen.c,
3769           src/mcs51/gen.c, src/pic/device.c, src/pic/gen.c, src/pic/pcode.c,
3770           src/pic/pcodepeep.c, src/pic/ralloc.c, src/pic16/device.h,
3771           src/pic16/gen.c, src/pic16/main.c, src/pic16/pcode.c,
3772           src/pic16/pcodepeep.c, src/pic16/ralloc.c, src/xa51/gen.c,
3773           src/z80/gen.c, support/Util/MySystem.c:
3774           accept slash and backslash as directory separator on WIN32 and
3775           Cygwin ports
3776
3777 2007-01-28 Raphael Neider <rneider AT web.de>
3778
3779         * src/pic16/devices.inc,
3780         * device/include/pic16/pic18f[24][23]21.h,
3781         * device/include/pic16/pic18fregs.h,
3782         * device/lib/pic16/libdev/pic18f[24][23]21.c,
3783         * device/lib/pic16/pics.all: added support for the 18f[24][23]21 family
3784         * device/lib/pic16/libio/adc.ignore,
3785         * device/lib/pic16/libio/i2c.ignore,
3786         * device/lib/pic16/libio/usart.ignore: do not build I/O lib for new
3787           family, as gputils do not yet support the devices
3788         * device/lib/pic16/Makefile.subdir: ignore errors on install
3789         * support/scripts/inc2h-pic16.pl: script to generate pic16 device
3790           headers and libraries from gputils .inc files
3791
3792 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
3793
3794         * doc/sdccman.lyx: add printf_fast_f precision limitation note
3795
3796 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
3797
3798         * doc/sdccman.lyx: add printf benchmarks
3799
3800 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
3801
3802         * device/lib/printf_fast.c: fix %c, char promoted to int
3803         * device/lib/printf_tiny.c: fix %c, char promoted to int
3804
3805 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
3806
3807         * device/lib/printf_fast.c: fix float overflow check, bug #1525093
3808
3809 2007-01-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3810
3811         * support/regression/tests/swap.c: 64 bit hosts failed
3812         * doc/sdccman.lyx: added preliminary mcs51 printf feature matrix
3813
3814 2007-01-25 Raphael Neider <rneider AT web.de>
3815
3816         * src/pic/pcode.c (sameBank,FixRegisterBanking): optimize banksels
3817           based on absolute register address, patch by Alex Blond
3818
3819 2007-01-22 Raphael Neider <rneider AT web.de>
3820
3821         * src/pic/glue.c (pic14emitRegularMap): mark initialized symbols as
3822           emitted, do not emit them again...
3823
3824 2007-01-22 Raphael Neider <rneider AT web.de>
3825
3826         * src/regression/bank1.c, src/regression/compare6.c,
3827           src/regression/add.c: cosmetic changes
3828         * src/pic/pcode.h: moved GPTRTAG_* here from gen.c
3829         * src/pic/gen.c: fixed global zero and one,
3830           (aopForSym): removed unued code,
3831           (aopGet): assert aop is defined, check and use `index' of
3832             pCodeImmd operands (fixes #1630908),
3833         * src/pic/pcode.c (get_op): added output of generic pointer tag,
3834           (register_reassign): prevent accidental register unification,
3835           (ReuseReg): cosmetic changes (also above)
3836         * src/pic/glue.c (pic14_constructAbsMap,pic14emitRegularMap,
3837           pic14emitStaticSeg): do not emit initialized data,
3838           (printIval*): replaced with working versions,
3839           (pic14createInterruptVect,picglue): use idata for initialized data,
3840             now init data should work in all modules (not only main()),
3841         * device/lib/pic/libsdcc/idata.c: NEW, handle initialized data
3842
3843 2007-01-21 Borut Razem <borut.razem AT siol.net>
3844
3845         * sim/ucsim/configure.in: introduced macro DD_COPT_NO_IGNORE,
3846           use -fPIC or -fpic if they are supported and not ignored
3847         * src/SDCCval.c: fixed bug introduced by me in rev. #4577
3848         * support/cpp2/libcpp/lex.c: fixed gcc 4.1.1 warnings
3849
3850 2007-01-20 Borut Razem <borut.razem AT siol.net>
3851
3852         * src/SDCC.lex, src/SDCCmain.c, sdc/SDCCglobl.h, doc/sdccman.lyx:
3853           implemented RFE #1470316: allow "$" in variable names
3854
3855 2007-01-20 Raphael Neider <rneider AT web.de>
3856
3857         * device/include/pic/pic14regs.h: reverted accidental wipe of the file
3858
3859 2007-01-20 Raphael Neider <rneider AT web.de>
3860
3861         * device/lib/pic/libdev/devices.txt: device list for mkall.sh
3862         * device/lib/pic/libdev/mkall.sh: script to rebuild all device libs
3863         * device/lib/pic/libdev/pic14ports.txt: device PORT specifications
3864         * support/scripts/inc2h.pl: fixed major .inc parsing bugs,
3865           applied patch from Robert Tate (#1629249) to add PORTs and TRISs
3866         * device/lib/pic/libdev/pic*.c,
3867         * device/include/pic/pic*.h: regenerated with enhanced inc2h.pl
3868         * device/lib/pic/libdev/Makefile.in: show progress
3869
3870 2007-01-19 Bernhard Held <bernhard AT bernhardheld.de>
3871
3872         * doc/sdccman.lyx: updated "configure options" for autoconf 2.6
3873         * support/scripts/sdcc_cygwin_mingw32,
3874         * support/scripts/sdcc_mingw32,
3875         * support/scripts/build.mak: replaced --datadir by --datarootdir for
3876         conformance with autoconf 2.6
3877
3878 2007-01-19 Raphael Neider <rneider AT web.de>
3879
3880         * src/pic/device.c (register_map): fixed list construction
3881         * src/pic/gen.c (genDivOneByte,genModOneByte): accept result > 1 byte,
3882           (genMod): removed case for genModbits,
3883           (genModbits): removed as now unused/unimplemented
3884         * src/pic/glue.c (picglue): prevent name clash with sources 'init.c'
3885
3886 2007-01-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3887
3888         * support/regression/tests/swap.c: added in response to #1638622
3889         * doc/sdccman.lyx: synced version, minor changes
3890
3891 2007-01-18 Borut Razem <borut.razem AT siol.net>
3892
3893         * SDCClabel.c: fixed bug #1638651: wrong linenumber presented in warning,
3894           thanks to Gunther Jehle
3895         * src/asm.c: don't die if the file drfined in #line couldn't be opened
3896         * src/SDCC.lex, src/SDCCglobal.h, src/SDCCicode.c, src/SDCCsymt.c,
3897           src/SDCCval.c: removed redundant definitions of currFname and mylineno;
3898           use filename in lineno instead.
3899         * SDCCast.c: removed MSVC warning C4018: '==' : signed/unsigned mismatch,
3900           print the file name in ast_print()
3901
3902 2007-01-18 Borut Razem <borut.razem AT siol.net>
3903
3904         * support/Util/dbuf_string.c: removed (PTR) cast since it is not
3905           defined in MSVC
3906         * src/SDCC.lex: stringLiteral() returns const char pointer,
3907           EOF detection in stringLiteral(), fixed asmbuf memory leak,
3908           fixed column counting
3909         * src/SDCCval.[ch]: constVal(), value *strVal() and charVal()
3910           accept const char pointer as parameter
3911         * src/SDCCdwarf2.c: corrected buffer size
3912
3913 2007-01-17 Borut Razem <borut.razem AT siol.net>
3914
3915         * support/Util/dbuf_string.c: fixed for amd64
3916
3917 2007-01-15 Borut Razem <borut.razem AT siol.net>
3918
3919         * src/pic16/ralloc.c, src/pic/ralloc.c, src/SDCC.y:
3920           removed terminal symbol ELIPSIS, since it was never generated by the
3921           lexer and it was wrongly used in parameter_identifier_list rule
3922
3923 2007-01-15 Raphael Neider <rneider AT web.de>
3924
3925         * doc/sdccman.lyx: updated PIC14/16 command line args, updated PIC14
3926             code page and data banking description
3927         * src/pic/genarith.c,
3928         * src/pic/gen.h: removed bit arithmetic functions,
3929             updated exit(1) to exit(EXIT_FAILURE)
3930         * device/lib/pic16/libsdcc/stack/stack.S: default to 256 byte stack
3931         * device/include/pic16/pic18f2455.h,
3932         * device/lib/pic16/libdev/pic18f2455.c: added PORTD, LATD, LATE,
3933             TRISD and TRISE, fixed/added some bit names
3934         * device/lib/pic16/libdev/pic18f{2550,4550,4455}.c,
3935         * device/include/pic16/pic18f{2550,4550,4455}.h: simply include
3936             updated pic18f2455.{c,h} instead of duplicating them
3937
3938 2007-01-14 Borut Razem <borut.razem AT siol.net>
3939
3940         * as/mcs51/asnoice.c, as/hc08/asnoice.c: fixed bug #1447412:
3941           Cannot debug files that contain spaces in the path name
3942           by converting spaces in asm file name to underscores
3943
3944 2007-01-13 Borut Razem <borut.razem AT siol.net>
3945
3946         * doc/sdccman.lyx: fixed format errors
3947
3948 2007-01-10 Borut Razem <borut.razem AT siol.net>
3949
3950         * src/SDCC.lex, src/SDCCmain.c: fixed bug #1631895:
3951           codeseg/constseg #pragma fail
3952         * suppoprt/cpp2/Makefile.bcc: reenable Borland C compilation
3953         * suppoprt/cpp2/configure.in, suppoprt/cpp2/libcpp/lex.c,
3954           suppoprt/cpp2/Makefile.in, suppoprt/cpp2/sdcpp-opts,
3955           suppoprt/cpp2/sdcpp.[ch]: house cleaning
3956
3957 2007-01-09 Borut Razem <borut.razem AT siol.net>
3958
3959         * get rid of diagnistic.[ch], pretty-print.[ch],
3960           c-pretty-print.[ch], ... used just for error, warning, ...
3961           message formatting
3962         * suppoprt/cpp2/pretty-print.[ch], suppoprt/cpp2/diagnostic.[ch],
3963           suppoprt/cpp2/diagnostic.def, suppoprt/cpp2/input.h,
3964           suppoprt/cpp2/pretty-print.[ch]:
3965           removed
3966         * suppoprt/cpp2/Makefile.in, suppoprt/cpp2/opts.c,
3967           suppoprt/cpp2/sdcpp-opts.c, suppoprt/cpp2/sdcpp.[ch],
3968           suppoprt/cpp2/sdcpp.dsp:
3969           changed
3970
3971 2007-01-08 Maarten Brock <sourceforge.brock AT dse.nl>
3972
3973         * device/lib/printf_large.c (output_float): removed recursion,
3974           use smaller buffer on stack for mcs51,
3975           fixed bug printing 1.96
3976         * support/regression/tests/snprintf.c: added test
3977
3978 2007-01-07 Borut Razem <borut.razem AT siol.net>
3979
3980         * use dynamic memory buffers instead temporary files
3981         * support/Util/dbuf_string.c, support/Util/dbuf_string.h:
3982           added
3983         * src/Makefile.in, src/SDCC.lex, src/SDCCast.c, src/SDCCast.h,
3984           src/SDCCcse.c, src/SDCCglobl.h, src/SDCCglue.c, src/SDCCglue.h,
3985           src/SDCCicode.c, src/SDCCicode.h, src/SDCCmain.c, src/SDCCmem.c,
3986           src/SDCCmem.h, src/SDCCpeeph.c, src/SDCCpeeph.h, src/SDCCsymt.c,
3987           src/SDCCsymt.h, src/SDCCutil.c, src/asm.c, src/asm.h, src/avr/gen.c,
3988           src/avr/main.c, src/ds390/gen.c, src/ds390/main.c, src/hc08/gen.c,
3989           src/hc08/main.c, src/izt/gen.c, src/mcs51/gen.c, src/mcs51/main.c,
3990           src/pic/device.c, src/pic/gen.c, src/pic/glue.c, src/pic/main.c,
3991           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/glue.c,
3992           src/pic16/main.c, src/pic16/ralloc.c, src/port.h, src/src.dsp,
3993           src/xa51/gen.c, src/xa51/main.c, src/z80/gen.c, src/z80/main.c,
3994           support/Util/dbuf.c, support/Util/dbuf.h:
3995           modified
3996         * .version, sdcc.spec: bumped version to 2.6.4
3997
3998 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
3999
4000         * src/port.h: added TARGET_Z80_LIKE macro
4001         * src/SDCCmain.c (linkEdit): use TARGET_Z80_LIKE,
4002           output PSEG location if --xram-loc or --xstack-loc was used
4003         * as/link/mcs51/lkarea.c (lnksect2): set segment address afterwards
4004
4005 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
4006
4007         * as/as_gbz80.dsp, as/z80/as_gbz80.dsp,
4008         * as/as_z80.dsp,   as/z80/as_z80.dsp,
4009         * as/asx8051.dsp,  as/mcs51/asx8051.dsp,
4010         * sdcc.dsw: moved project files into subdir
4011         * as/hc08/as_hc08.dsp,
4012         * as/hc08/Makefile.bcc,
4013         * as/hc08/Makefile.in,
4014         * as/mcs51/Makefile.bcc,
4015         * as/mcs51/Makefile.in,
4016         * as/z80/Makefile.bcc,
4017         * as/z80/Makefile.in,
4018         * as/link/mcs51/Makefile.bcc: use as/strcmpi.c
4019         * as/hc08/asm.h,
4020         * as/mcs51/asm.h,
4021         * as/z80/asm.h: added as_strcmpi() and as_strncmpi() prototypes
4022         * as/hc08/asmain.c,
4023         * as/hc08/assym.c,
4024         * as/mcs51/asmain.c,
4025         * as/mcs51/assym.c,
4026         * as/z80/assym.c: removed include "strcmpi.h"
4027         * as/hc08/strcmpi.c,
4028         * as/hc08/strcmpi.h,
4029         * as/mcs51/strcmpi.c,
4030         * as/mcs51/strcmpi.h,
4031         * support/Util/strcmpi.c,
4032         * support/Util/strcmpi.h: removed files
4033         * as/strcmpi.c: added as_strncmpi()
4034
4035 2007-01-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4036
4037         * sdcc.dsw: Added some dependencies on project config.dsp
4038
4039 2007-01-05 Maarten Brock <sourceforge.brock AT dse.nl>
4040
4041         * as/link/mcs51/lkarea.c (lnkarea2, lnksect2): replaced [di]seg_ap->a_addr
4042           with [di]ram_start to fix a regresion
4043
4044 2007-01-03 Bernhard Held <bernhard AT bernhardheld.de>
4045
4046         * configure.in: added missing mcs51 in status output
4047         * Makefile.in: add support/regression to SDCC_EXTRA to distclean this
4048         directory
4049         * debugger/mcs51/clean.mk (distclean): remove config.h
4050         * src/clean.mk (clean): remove SDCCy.c, SDCCy.h, SDCClex.c
4051         * support/cpp2/Makefile.in (clean): remove s-options, optionlist,
4052         options.h, s-options-h and options.c
4053         * support/cpp2/clean.mk: unused, removed
4054         * Makefile.common.in,
4055         * main_in.mk,
4056         * as/Makefile.in,
4057         * as/hc08/Makefile.in,
4058         * as/hc08/clean.mk,
4059         * as/mcs51/Makefile.in,
4060         * as/mcs51/clean.mk,
4061         * as/z80/clean.mk,
4062         * as/z80/conf.mk,
4063         * as/z80/Makefile.in,
4064         * as/z80/clean.mk,
4065         * as/link/Makefile.in,
4066         * as/link/hc08/Makefile.in,
4067         * as/link/hc08/clean.mk,
4068         * as/link/mcs51/Makefile.in,
4069         * as/link/mcs51/clean.mk,
4070         * as/link/z80/Makefile.in,
4071         * as/link/z80/clean.mk,
4072         * as/link/z80/conf.mk,
4073         * debugger/mcs51/Makefile.in,
4074         * debugger/mcs51/clean.mk,
4075         * device/include/Makefile.in,
4076         * device/lib/Makefile.in,
4077         * device/lib/mcs51/Makefile.in,
4078         * device/lib/pic/Makefile.in,
4079         * device/lib/pic/Makefile.common.in,
4080         * device/lib/pic/Makefile.subdir,
4081         * device/lib/pic/Makefile.rules,
4082         * device/lib/pic16/libio/Makefile.in,
4083         * device/lib/pic16/Makefile.subdir,
4084         * device/lib/pic16/libdev/Makefile.in,
4085         * device/lib/pic16/Makefile.rules,
4086         * device/lib/pic16/Makefile.common.in,
4087         * sim/ucsim/avr.src/Makefile.in,
4088         * sim/ucsim/main_in.mk,
4089         * sim/ucsim/cmd.src/Makefile.in,
4090         * sim/ucsim/doc/Makefile.in,
4091         * sim/ucsim/gui.src/Makefile.in,
4092         * sim/ucsim/gui.src/obsolete/portmon.src/Makefile.in,
4093         * sim/ucsim/gui.src/serio.src/Makefile.in,
4094         * sim/ucsim/hc08.src/Makefile.in,
4095         * sim/ucsim/libltdl/Makefile.in,
4096         * sim/ucsim/s51.src/Makefile.in,
4097         * sim/ucsim/sim.src/Makefile.in,
4098         * sim/ucsim/sim.src/conf.mk,
4099         * sim/ucsim/xa.src/Makefile.in,
4100         * sim/ucsim/z80.src/Makefile.in,
4101         * src/Makefile.in,
4102         * src/clean.mk,
4103         * src/port.mk,
4104         * support/cpp2/Makefile.in,
4105         * support/librarian/Makefile.in,
4106         * support/librarian/clean.mk,
4107         * support/makebin/Makefile.in,
4108         * support/makebin/clean.mk,
4109         * support/packihx/Makefile.in,
4110         * support/regression/Makefile.in,
4111         * support/regression/ports/ds390/spec.mk,
4112         * support/regression/ports/gbz80/spec.mk,
4113         * support/regression/ports/hc08/spec.mk,
4114         * support/regression/ports/mcs51/spec.mk,
4115         * support/regression/ports/mcs51-large/spec.mk,
4116         * support/regression/ports/mcs51-medium/spec.mk,
4117         * support/regression/ports/mcs51-xstack-auto/spec.mk,
4118         * support/regression/ports/pic14/spec.mk,
4119         * support/regression/ports/pic16/spec.mk,
4120         * support/regression/ports/mcs51-stack-auto/spec.mk,
4121         * support/regression/ports/ucz80/spec.mk,
4122         * support/regression/ports/xa51/spec.mk,
4123         * support/regression/ports/z80/spec.mk: fixed for autoconf 2.6x by
4124         adding a slash after $(top_builddir) and/or adding @datarootdir@
4125         * configure.in,
4126         * debugger/mcs51/configure.in,
4127         * device/lib/pic/configure.in,
4128         * device/lib/pic16/configure.in,
4129         * sim/ucsim/configure.in,
4130         * support/cpp2/configure.in,
4131         * support/packihx/configure.in: changed AC_PREREQ to 2.60
4132         * configure,
4133         * debugger/mcs51/configure,
4134         * device/lib/pic/configure,
4135         * device/lib/pic16/configure,
4136         * sim/ucsim/configure,
4137         * support/cpp2/configure,
4138         * support/packihx/configure: generated with autoconf 2.60
4139
4140 2007-01-02 Maarten Brock <sourceforge.brock AT dse.nl>
4141
4142         * as/link/hc08/lkihx.c (newArea),
4143         * as/link/hc08/lkrloc.c: renamed newArea() to ihxNewArea()
4144
4145 2007-01-02 Borut Razem <borut.razem AT siol.net>
4146
4147         * doc/sdccman.lyx: documented #pragma sdcc_hash
4148         * support/cpp2/sdcpp.c: allow_naked_hash (value of #pragma sdcc_hash)
4149           initialized to 0
4150         * support/cpp2/c-ppoutput.c: fixed warning: no newline at end of file
4151
4152 2007-01-01 Bernhard Held <bernhard AT bernhardheld.de>
4153
4154         * src/SDCCast.c (createDo): backPatchLabels() needs falseLabel in
4155         empty 'while'-loop to work correctly, see regression test 'while.c'
4156         * support/regression/tests/while.c: added
4157
4158 2007-01-01 Borut Razem <borut.razem AT siol.net>
4159
4160         * support/cpp2/libcpp/directives.c, support/cpp2/libcpp/identifiers.c,
4161           support/cpp2/libcpp/init.c, support/cpp2/libcpp/sdcpp-opts.c,
4162           support/cpp2/libcpp/sdcpp.c:
4163           sdcpp specific pragma/directive/option handling moved to sdcpp.c
4164         * doc/sdccman.lyx: reference to the GCC 4.1.1 CPP Manual
4165         * support/cpp2/libcpp/mkdeps.c: synchronized with GCC CPP 4.1.1
4166
4167 2006-12-31 Borut Razem <borut.razem AT siol.net>
4168
4169         * SDCPP synchronized with GCC CPP release version 4.1.1,
4170           currently the latest release:
4171         * support/cpp2/libcpp, support/cpp2/libcpp/include,
4172           support/cpp2/libcpp/include/cpp-id-data.h
4173           support/cpp2/libiberty/fopen_unlocked.c
4174           support/cpp2/libiberty/md5.c
4175           support/cpp2/md5.h
4176           support/cpp2/opt-functions.awk
4177           support/cpp2/opt-gather.awk
4178           support/cpp2/optc-gen.awk
4179           support/cpp2/opth-gen.awk:
4180           added
4181         * support/cpp2/Makefile.in, support/cpp2/auto-host_vc_in.h,
4182           support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
4183           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
4184           support/cpp2/c-pretty-print.h, support/cpp2/cppdefault.c,
4185           support/cpp2/cppdefault.h, support/cpp2/diagnostic.c,
4186           support/cpp2/diagnostic.h, support/cpp2/except.h,
4187           support/cpp2/hwint.h, support/cpp2/input.h,
4188           support/cpp2/intl.h, support/cpp2/move-if-change,
4189           support/cpp2/opts.c, support/cpp2/opts.h,
4190           support/cpp2/output.h, support/cpp2/prefix.c,
4191           support/cpp2/prefix.h, support/cpp2/pretty-print.c,
4192           support/cpp2/pretty-print.h, support/cpp2/sdcpp-opts.c,
4193           support/cpp2/sdcpp.c, support/cpp2/sdcpp.dsp,
4194           support/cpp2/sdcpp.h, support/cpp2/sdcpp.opt,
4195           support/cpp2/sdcppa.dsp, support/cpp2/symcat.h,
4196           support/cpp2/version.c:
4197           modified
4198         * support/cpp2/libcpp/charset.c, support/cpp2/libcpp/directives.c,
4199           support/cpp2/libcpp/errors.c, support/cpp2/libcpp/expr.c,
4200           support/cpp2/libcpp/files.c, support/cpp2/libcpp/identifiers.c,
4201           support/cpp2/libcpp/include/cpplib.h, support/cpp2/libcpp/include/line-map.h,
4202           support/cpp2/libcpp/include/mkdeps.h, support/cpp2/libcpp/include/symtab.h,
4203           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
4204           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/line-map.c,
4205           support/cpp2/libcpp/macro.c, support/cpp2/libcpp/mkdeps.c,
4206           support/cpp2/libcpp/symtab.c, support/cpp2/libcpp/system.h,
4207           support/cpp2/libcpp/traditional.c, support/cpp2/libcpp/ucnid.h,
4208           support/cpp2/libiberty/hashtab.c, support/cpp2/libiberty/hashtab.h:
4209           moved
4210         * support/cpp2/cppcharset.c, support/cpp2/cpperror.c,
4211           support/cpp2/cppexp.c, support/cpp2/cppfiles.c,
4212           support/cpp2/cpphash.c, support/cpp2/cpphash.h,
4213           support/cpp2/cppinit.c, support/cpp2/cpplex.c,
4214           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
4215           support/cpp2/cppmacro.c, support/cpp2/cpptrad.c,
4216           support/cpp2/cppucnid.h, support/cpp2/hashtab.c,
4217           support/cpp2/hashtab.h, support/cpp2/hashtable.c,
4218           support/cpp2/hashtable.h, support/cpp2/line-map.c,
4219           support/cpp2/line-map.h, support/cpp2/mkdeps.c,
4220           support/cpp2/mkdeps.h, support/cpp2/options_vc_in.c,
4221           support/cpp2/options_vc_in.h, support/cpp2/opts.sh,
4222           support/cpp2/system.h:
4223           deleted / moved
4224
4225 2006-12-31 Borut Razem <borut.razem AT siol.net>
4226
4227         * configure.in, configure: fixed bug #1538756: configure dies if bison
4228           and flex are not installed, 2nd try
4229
4230 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
4231
4232         * src/mcs51/peeph.def: renamed rule 400 to 500, moved rule 253.x to
4233         400.x for better code in RFE 899102
4234
4235 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
4236
4237         * src/SDCCpeeph.c (deadMove),
4238         * src/port.h,
4239         * src/mcs51/peep.h: renamed 'op' by 'reg'
4240         * src/mcs51/peep.c (isFunc, isCallerSaveFunc): added,
4241         (scan4op): small change for removeDeadMove(), added support for
4242         'callee saves' and/or PACLL function calls,
4243         (removeDeadMove): added, removes superflous 'mov r%1,%2',
4244         (removeDeadPopPush): renamed from mcs51DeadMove(), common parts
4245         left in new dispatcher mcs51DeadMove()
4246         (mcs51DeadMove): dispatcher for removeDeadPopPush() and new
4247         removeDeadMove()
4248         * src/mcs51/peeph.def: added rule 301 removing superflous 'mov r%1,%2'
4249
4250 2006-12-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4251
4252         * support/cpp2/options_vc_in.h, support/cpp2/options_vc_in.c,
4253           support/cpp2/sdcppa.dsp: create 'options.h' and 'options.c' under MSVC.
4254
4255 2006-12-30 Borut Razem <borut.razem AT siol.net>
4256
4257         * support/cpp2/spacs.h: deleted from svn
4258         * configure.in, configure: fixed bug #1538756: configure dies if bison
4259           and flex are not installed
4260
4261 2006-12-29 Maarten Brock <sourceforge.brock AT dse.nl>
4262
4263         * src/z80/gen.c (assignResultValue): fixed bug when registers overlap,
4264           with this z80 passes printf float test when enabled
4265         * support/regression/tests/bug1057979.c: typo disabled ds390 float test
4266
4267 2006-12-28 Borut Razem <borut.razem AT siol.net>
4268
4269         * support/cpp2/config.in, support/cpp2/configure.in,
4270           support/cpp2/configure, support/cpp2/Makefile.in:
4271           fix for the solaris build
4272
4273 2006-12-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4274
4275         * src/SDCC.y (type_specifier2, pointer),
4276         * src/SDCCsymt.h,
4277         * src/SDCCsymt.c (mergeSpec, checkSClass),
4278         * support/Util/SDCCerr.c,
4279         * support/Util/SDCCerr.h: Parse and validate the restrict keyword
4280         * support/valdiag/valdiag.py: Allow test cases to specify
4281           required language standard
4282         * support/valdiag/tests/restrict.c: New file to test restrict keyword
4283         * support/valdiag/tests/tentdecl.c: Supress empty source file error
4284
4285 2006-12-27 Borut Razem <borut.razem AT siol.net>
4286
4287         * support/cpp2/cppmain.c, support/cpp2/mbchar.[ch]: removed
4288         * support/cpp2/libiberty/Makefile.in, support/cpp2/libiberty/sdcpp.dsp:
4289           mbchar removed
4290         * support/cpp2/libiberty/getpwd.c, support/cpp2/sdcpp.h:
4291           fixed for borland C
4292         * support/cpp2/libiberty/Makefile.bcc: updated
4293         * src/pic16/main.c: fixed #pragma udata handling
4294         * src/mcs51/mcs51.dsp: added peep.[ch] to the project
4295
4296 2006-12-26 Bernhard Held <bernhard AT bernhardheld.de>
4297
4298         * src/SDCCpeeph.c: made labelHashEntry global,
4299         made pcDistance, FBYNAME static,
4300         (pcDistance): made static, use isComment and isLabel,
4301         (deadMove): added,
4302         (getLabelRef): added, extracted from labelRefCount(),
4303         (labelRefCount): use new getLabelRef(),
4304         (callFuncByName): made static, added deadMove,
4305         use isComment and isLabel,
4306         (newPeepRule): made static, set isLabel,
4307         (isLabelDefinition): added parameter isPeepRule to allow '%' in
4308         labels from peephole rules,
4309         (buildLabelRefCountHash): speed up by running isLabelDefinition() only
4310         when isComment or isLabel is set
4311         * src/SDCCpeeph.h: added "isLabel" and "visited" to struct lineNode,
4312         added labelHashEntry, isLabelDefinition, labelHash and getLabelRef
4313         to make them global
4314         * src/mcs51/peep.h: added
4315         * src/mcs51/peep.c: added, implements mcs51DeadMove()
4316         * src/port.h: added peep->deadMove to port structure
4317         * src/mcs51/main.c: initialize peep->deadMove with mcs51DeadMove
4318         * src/mcs51/peeph.def: renumbered rule 300 to 400, added new rule 300
4319         deadMove, finally removed no. 1 and 2
4320         * src/mcs51/gen.c,
4321         * src/pic/gen.c,
4322         * src/z80/gen.c,
4323         * src/z80/ralloc.c,
4324         * src/pic16/gen.c,
4325         * src/ds390/gen.c,
4326         * src/hc08/gen.c: mark lines with isComment or isLabel
4327         * sim/ucsim/s51.src/uc390hw.cc: don't waist 65535 ticks before CKRDY
4328         * .version,
4329         * sdcc.spec: bumped version to 2.6.3
4330
4331 2006-12-26 Borut Razem <borut.razem AT siol.net>
4332
4333         * support/cpp2/Makefile.in: added dependency on options.h
4334         * configure: regenerated
4335         * support/cpp2/sdcpp.opt, support/cpp2/move-if-change: svn:eol-style native
4336         * support/cpp2/Makefile.in: added vasprintf.c
4337
4338 2006-12-25 Borut Razem <borut.razem AT siol.net>
4339
4340         * SDCPP synchronized with GCC CPP release version 3.4.6,
4341           the latest release before 4.x:
4342         * support/cpp2/Makefile.in, support/cpp2/config.h,
4343           support/cpp2/configure, support/cpp2/configure.in,
4344           support/cpp2/cppdefault.c, support/cpp2/cppdefault.h,
4345           support/cpp2/cpperror.c, support/cpp2/cppexp.c,
4346           support/cpp2/cppfiles.c, support/cpp2/cpphash.c,
4347           support/cpp2/cpphash.h, support/cpp2/cppinit.c,
4348           support/cpp2/cpplex.c, support/cpp2/cpplib.c,
4349           support/cpp2/cpplib.h, support/cpp2/cppmacro.c,
4350           support/cpp2/cpptrad.c, support/cpp2/except.h,
4351           support/cpp2/hashtable.c, support/cpp2/hashtable.h,
4352           support/cpp2/hwint.h, support/cpp2/intl.h,
4353           support/cpp2/line-map.c, support/cpp2/line-map.h,
4354           support/cpp2/mkdeps.c, support/cpp2/mkdeps.h,
4355           support/cpp2/output.h, support/cpp2/prefix.c,
4356           support/cpp2/prefix.h, support/cpp2/sdcpp.dsp,
4357           support/cpp2/system.h, support/cpp2/version.c:
4358           modified
4359         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
4360           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
4361           support/cpp2/c-pretty-print.h, support/cpp2/cppcharset.c,
4362           support/cpp2/cppucnid.h, support/cpp2/diagnostic.c,
4363           support/cpp2/diagnostic.def, support/cpp2/diagnostic.h,
4364           support/cpp2/hashtab.c, support/cpp2/hashtab.h,
4365           support/cpp2/input.h, support/cpp2/libiberty/getpwd.c,
4366           support/cpp2/libiberty/vasprintf.c, support/cpp2/libiberty/xmemdup.c,
4367           support/cpp2/move-if-change, support/cpp2/opts.c,
4368           support/cpp2/opts.h, support/cpp2/opts.sh,
4369           support/cpp2/pretty-print.c, support/cpp2/pretty-print.h,
4370           support/cpp2/sdcpp.opt, support/cpp2/sdcpp-opts.c,
4371           support/cpp2/win32, support/cpp2/win32/dirent.c,
4372           support/cpp2/win32/dirent.h:
4373           added
4374         * support/cpp2/sdcpp.c: renamed from sdcppmain.c
4375         * support/cpp2/sdcpp.h: renamed from sdcc.h
4376         * sdcppinit.c: deleted
4377
4378 2006-12-23 Borut Razem <borut.razem AT siol.net>
4379
4380         * support/cpp2/cpphash.h, support/cpp2/cpplex.c,
4381           support/cpp2/cpplib.[ch], support/cpp2/sdcppinit.c, doc/sdccman.lyx,
4382           preproc.c: an other try to fix bug #982435: introduced
4383           -pedantic-parse-number command line option and pedantic_parse_number
4384           pragma
4385
4386 2006-12-21 Maarten Brock <sourceforge.brock AT dse.nl>
4387
4388         * as/link/mcs51/lkarea.c (lnkarea2): handle absolute areas, restructured
4389            BSEG handling,
4390           (lnksect2): use --data-loc and --idata-loc as lower bound for ramstart,
4391            corrected overlayed areax addresses, warn about memory overlaps
4392         * as/mcs51/asmain.c (asmbl): create a new area for every .org directive
4393         * src/avr/main.c,
4394         * src/ds390/main.c,
4395         * src/hc08/main.c,
4396         * src/mcs51/main.c,
4397         * src/pic16/main.c,
4398         * src/pic/main.c,
4399         * src/xa51/main.c,
4400         * src/z80/main.c,
4401         * src/port.h: added xabs_name and iabs_name
4402         * src/SDCCglue.c (emitRegularMap): allocate for absolutes with initializer
4403           (glue, emitMaps): create and emit maps d_abs and i_abs
4404         * src/SDCCglue.h: cosmetic changes
4405         * src/SDCCmain.c (setDefaultOptions): idata can start below 0x80
4406         * src/SDCCmem.h,
4407         * src/SDCCmem.c (initMem): added x_abs, i_abs and d_abs
4408           (allocDefault): put absolute, initialized globals in them
4409         * support/regression/tests/absolute.c: added absolute bdata test
4410         * device/lib/printf_large.c (output_float): moved fpBuffer to stack/xdata
4411
4412 2006-12-20 Borut Razem <borut.razem AT siol.net>
4413
4414         * support/cpp2/cpphash.h, support/cpp2/cpplex.c: fixed bug #982435
4415         * support/regression/tests/preproc.c: renamed from bug-1351710.c,
4416           added regression test for bug #982435
4417
4418 2006-12-18 Borut Razem <borut.razem AT siol.net>
4419
4420         * src/SDCCutil.c: fixed a bug in (get_pragma_token)
4421         * src/pic16/main.c, src/SDCC.lex, src/z80/main.c:
4422           small cosmetic changes
4423         * src/SDCC.lex: (stringLiteral) fixed bug #1351710
4424         * support/regression/tests/bug-1351710.c: added regression test
4425
4426 2006-12-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4427
4428         * doc/sdccman.lyx: added the long missed iCode table
4429           "<where is figure II?>", added links to wiki
4430
4431 2006-12-17 Borut Razem <borut.razem AT siol.net>
4432
4433         * doc/sdccman.lyx, src/pic16/main.c, src/pic/main.c, src/port.h,
4434           src/SDCC.lex, src/SDCCutil.[ch], src/z80/main.c,
4435           support/Util/SDCCerr.[ch]: removed deprecated pragmas,
4436           unified table driven pragma handling, pragma argument type checking
4437         * support/Util/dbuf.c: (dbuf_set_size) allow to set size equal to the
4438           current one - version 1.1.3
4439         * src/SDCCmain.c: (setParseWithComma) substituted brain damaged strtok
4440
4441 2006-12-13 Raphael Neider <rneider AT web.de>
4442
4443         * src/pic/device.h: removed AssignedMemory structure and macros
4444         * src/pic/device.c: removed global finalMapping (linker assigns
4445             memory locations),
4446           (register_map): add SFRs to remembered memRanges
4447           (addMemRange,isSFR,dump_map,dump_sfr,mapRegister,assignRegister,
4448           assignFixedRegisters,assignRelocatableRegisters): removed,
4449           (setMaxRAM,validAddress): adapted accordingly,
4450           (pic14_hasSharebank,pic14_getSharedStack): only report and use
4451             reasonably sized sharebanks,
4452         * src/pic/ralloc.c (writeUsedRegs): stripped down (remove?),
4453           (allDefsOutOfRange): removed unused code,
4454         * src/pic/main.c (_process_pragma): removed memmap/maxram pragma
4455             handling
4456         * src/pic/pcode.c (register_reassign): removed recursion warning,
4457             fired far too often,
4458         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap): modified
4459             to use existing pic14_stringInSet() to avoid duplicate symbols,
4460             tidied up the code a bit,
4461           (pic14printLocals): added in symmetry to printExterns, replaces
4462             writeUsedRegs more or less,
4463           (picglue): call new pic14_printLocals(),
4464         * device/include/pic/pic*.h: removed #pragma memmap directives,
4465             information gathered from include/pic/pic14devices.txt
4466         * support/scripts/inc2h.pl: do not emit #pragma memmap lines
4467
4468 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
4469
4470         * device/include/mcs51/C8051F520.h: fixed buggy CPT0MX
4471
4472 2006-12-11 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4473
4474         * device/include/mcs51/cc2430.h: fixed missing ';'
4475
4476 2006-12-10 Raphael Neider <rneider AT web.de>
4477
4478         * device/lib/pic16/libc/stdio/vfprintf.c,
4479         * device/lib/pic16/libc/stdio/printf_small.c,
4480         * device/lib/pic16/libc/stdio/printf_timy.c: pop int from stack for
4481           char arguments, as char varargs are cast to int by the caller,
4482           hopefully fixes #1604915 (other device libraries are still affected)
4483
4484 2006-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4485
4486         * src/mcs51/ralloc.c (packRegsForAssign),
4487         * src/hc08/ralloc.c (packRegsForAssign): fixed bug #1605880
4488
4489 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
4490
4491         * device/include/malloc.h: removed init_dynamic_memory
4492         * device/lib/malloc.c: made init_dynamic_memory static and automatically
4493           call it once from malloc. Also use _sdcc_heap[] from _heap.c
4494         * device/lib/_heap.c: new, added, contains _sdcc_heap[]
4495         * device/lib/libsdcc.lib,
4496         * device/lib/Makefile.in,
4497         * support/regression/ports/mcs51-xstack-auto/spec.mk: added _heap.c
4498         * doc/sdccman.lyx: documented use of new _heap.c
4499         * support/regression/tests/malloc.c: removed init_dynamic_memory
4500         * src/cdbFile.c(spacesToUnderscores): new function,
4501           (cdbWriteEndFunction, cdbWriteCLine): use spacesToUnderscores, fixes bug
4502           1068030
4503         * device/include/tinibios.h: removed defines for putchar and getchar
4504         * device/lib/ds390/Makefile.in: added putchar.c
4505         * device/lib/ds390/putchar.c: new, added, fixes bug 1465671
4506
4507 2006-12-09 Borut Razem <borut.razem AT siol.net>
4508
4509         * support/cpp2/sdcc.h: prevent multiple inclusion
4510         * support/cpp2/options.h: deleted
4511
4512 2006-12-08 Borut Razem <borut.razem AT siol.net>
4513
4514         * support/cpp2/sdcc.h: removed x*alloc() macros
4515         * support/cpp2/libiberty.h: uncommented out x*alloc() declarations
4516         * support/cpp2/Makefile.bcc, support/cpp2/Makefile.in,
4517           support/cpp2/sdcpp.sdc: x*alloc files added to the project
4518         * support/cpp2/system.h: moved #include "sdcc.h"
4519         * support/cpp2/libiberty/xexit.c, support/cpp2/libiberty/xmalloc.c,
4520           support/cpp2/libiberty/xstrdup.c, support/cpp2/libiberty/xstrerror.c:
4521           added
4522         * support/cpp2/sdcppinit.c: added -isysroot, -fsigned-char,
4523           -funsigned-char options
4524         * support/cpp2/sdcppmain.c: fixed bug 1611411
4525
4526 2006-12-07 Borut Razem <borut.razem AT siol.net>
4527
4528         * support/cpp2/cpplib.c: reverted sdcpp special handling of _Pragma()
4529           directive
4530
4531 2006-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
4532
4533         * src/SDCCsymt.c (addDecl): fixed bug 1609244
4534         * src/SDCCmain.c (linkEdit): fixed bug 1609279
4535         * doc/sdccman.lyx,
4536         * .version: bumped to 2.6.2 because a) it's been a while
4537           b) the linker sources have moved c) the preprocessor is upgraded
4538
4539 2006-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4540
4541         * support/regression/tests/snprintf.c: some checks
4542         * lib/src/printf_large.c: %bc: read char instead of int from stack
4543
4544 2006-12-03 Maarten Brock <sourceforge.brock AT dse.nl>
4545
4546         * device/include/mcs51/cc2430.h: inserted _XPAGE
4547
4548 2006-12-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4549
4550         * device/include/mcs51/cc2430.h: added
4551
4552 2006-12-02 Maarten Brock <sourceforge.brock AT dse.nl>
4553
4554         * device/include/asm/default/features.h,
4555         * device/include/asm/ds390/features.h,
4556         * device/include/mcs51/at89s53.h,
4557         * device/include/ser.h,
4558         * device/include/ser_ir.h,
4559         * device/include/serial.h: changed keywords to double underscore variants,
4560           fixes bug 1590261 some more, thanks Steven Borley
4561
4562 2006-12-01 Raphael Neider <rneider AT web.de>
4563
4564         * src/pic/pcode.c (register_reassign): do not crash on recursive code
4565           but emit warning (recursion is not supported for pic14)
4566
4567 2006-11-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4568
4569         * src/mcs51/peeph.def: added 101.a,b (moves to int/long xdata)
4570         * doc/sdccman.lyx: various small changes, acknowledged Sourceforge
4571
4572 2006-11-30 Raphael Neider <rneider AT web.de>
4573
4574         * src/pic/device.c (dump_sfr): always emit symbols
4575         * src/pic/glue.c (pic14printPublics): fixed typo
4576
4577 2006-11-30 Raphael Neider <rneider AT web.de>
4578
4579         * src/pic/device.c (create_pic,ram_map): add memRange entries to PIC
4580           (pic14_getSharebankSize, pic14_getSharebankAddress): replaced with
4581           (pic14_hasSharebank,pic14_isShared,pic14_allRAMShared,
4582            pic14_getSharedStack): NEW, evaluate the memRange entries to locate
4583            a sharebank, use a non-shared bank for the stack if none available
4584         * src/pic/device.h (struct memRange): added linked list next field,
4585           added prototypes for above functions
4586         * src/pic/ralloc.c (initStack): handle shared and banked stacks,
4587           (typeRegWithIdx): accept fixed and unfixed stack registers
4588         * src/pic/pcode.c (pCodeInitRegisters): use new functions to create
4589           the stack, handle shared and banked stack (except for WSAVE),
4590           (insertBankSel): removed useless optimization (will never fire),
4591           (FixRegisterBanking): added optimization for devices with only one
4592           possibly aliased bank of memory, like 16f84
4593         * src/pic/glue.c (pic14_constructAbsMap): back to udata_ovr, as some
4594           devices have no SHAREBANK in the linker script
4595         * device/include/pic/pic14devices.txt: documented memmap
4596         * device/lib/pic/libdev/Makefile.in: removed --stack-loc again
4597
4598 2006-11-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4599
4600         * src/hc08/gen.c (transferRegReg, loadRegFromAop, forceStackedAop,
4601           storeRegToAop, freeAsmop, genPlusIncr, genPlus, genPointerGetSetOfs,
4602           genAnd, genOr, genXor, genLeftShiftLiteral, genRightShiftLiteral,
4603           genhc08Code): switched most of the D (debug) macros to DD (detailed
4604           debug) macros to better control clutter in the generated .asm file.
4605         * src/hc08/gen.c: (forceStackedAop, genUminus, genLeftShift,
4606           genRightShift): fixed bug with non-constant bit shift stored to
4607           a volatile result (SF Open Discussion forum thread #1616749).
4608           Single byte case is not yet optimized.
4609
4610 2006-11-28 Maarten Brock <sourceforge.brock AT dse.nl>
4611
4612         * device/include/asm/mcs51/features.h,
4613         * device/include/malloc.h,
4614         * device/include/stdio.h: changed keywords to double underscore variants,
4615           fixes bug 1590261
4616
4617 2006-11-27 Borut Razem <borut.razem AT siol.net>
4618
4619         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
4620           support/cpp2/Makefile.in, support/cpp2/cppfiles.c,
4621           support/cpp2/output.h, support/cpp2/cppinit.c,
4622           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
4623           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
4624           support/cpp2/cppdefault.c, support/cpp2/system.h,
4625           support/cpp2/cpphash.h, support/cpp2/cpplex.c,
4626           support/cpp2/cppdefault.h, support/cpp2/mbchar.c,
4627           support/cpp2/prefix.c, support/cpp2/except.h,
4628           support/cpp2/hwint.h, support/cpp2/cppmacro.c,
4629           support/cpp2/line-map.h, support/cpp2/sdcpp.dsp,
4630           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
4631           support/cpp2/version.c, support/cpp2/cppmain.c,
4632           support/cpp2/version.h, support/cpp2/hashtable.c,
4633           support/cpp2/cpperror.c:
4634           synchronized with GCC CPP release version 3.3.6,
4635           the latest where cppmain.c still exists.
4636         * support/cpp2/cpptrad.c, support/cpp2/sdcppmain.c,
4637           support/cpp2/sdcppinit.c: added
4638
4639 2006-11-27 Borut Razem <borut.razem AT siol.net>
4640
4641         * support/cpp2/cpplex.c:
4642           fixed _asm ... _endasm handling bug, introduce with GCC CPP
4643           synchronization
4644         * support/cpp2/cpplib.c: removed definitions of unused variables
4645
4646 2006-11-26 Borut Razem <borut.razem AT siol.net>
4647
4648         * support/cpp2/libiberty.h: commented out x*alloc() declarations
4649           since they are redefined by macros in support/cpp2/sdcc.h
4650         * support/cpp2/sdcc.h: x*alloc macro redefinition
4651
4652 2006-11-25 Borut Razem <borut.razem AT siol.net>
4653
4654         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
4655           support/cpp2/configure, support/cpp2/Makefile.in,
4656           support/cpp2/cppfiles.c, support/cpp2/output.h,
4657           support/cpp2/cppinit.c, support/cpp2/cpplib.c,
4658           support/cpp2/config.h, support/cpp2/cpplib.h,
4659           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
4660           support/cpp2/cppdefault.c, support/cpp2/config.in,
4661           support/cpp2/system.h, support/cpp2/cpplex.c,
4662           support/cpp2/cpphash.h, support/cpp2/mbchar.c,
4663           support/cpp2/cppdefault.h, support/cpp2/prefix.c
4664           support/cpp2/hwint.h, support/cpp2/mbchar.h,
4665           support/cpp2/prefix.h, support/cpp2/cppmacro.c,
4666           support/cpp2/configure.in, support/cpp2/intl.h,
4667           support/cpp2/sdcpp.dsp, support/cpp2/acconfig.h,
4668           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
4669           support/cpp2/version.c, support/cpp2/cppmain.c,
4670           support/cpp2/ansidecl.h, support/cpp2/libiberty.h,
4671           support/cpp2/hashtable.c, support/cpp2/aclocal.m4,
4672           support/cpp2/cpperror.c,
4673           support/cpp2/libiberty/safe-ctype.c,
4674           support/cpp2/libiberty/safe-ctype.h,
4675           support/cpp2/libiberty/splay-tree.c,
4676           support/cpp2/libiberty/obstack.c,
4677           support/cpp2/libiberty/lbasename.c,
4678           support/cpp2/libiberty/splay-tree.h,
4679           support/cpp2/libiberty/obstack.h:
4680           synchronized with GCC CPP release version 3.2.3,
4681           the latest before integration of cpp into gcc
4682         * support/cpp2/except.h, support/cpp2/line-map.c,
4683           support/cpp2/line-map.h,
4684           support/cpp2/libiberty/hex.c,
4685           support/cpp2/libiberty/concat.c,
4686           support/cpp2/libiberty/filenames.h: added
4687         * support/cpp2/intl.c: deleted
4688
4689 2006-11-24 Borut Razem <borut.razem AT siol.net>
4690
4691         * src/SDCC.y: enabled compilation of empty source file
4692         * support/Util/SDCCerr.[ch]: added sdcc warning 190 -
4693           "ISO C forbids an empty source file"
4694         * device/lib/_startup.c, device/lib/printf_tiny.c: disable warning 190
4695           if all the code is ifdefed out.
4696
4697 2006-11-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4698
4699         * src/hc08/gen.c (genPcall): fix for bug #1601032
4700
4701 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
4702
4703         * device/include/mcs51/c8051f000.h, device/include/mcs51/C8051F000.h,
4704         * device/include/mcs51/c8051f018.h, device/include/mcs51/C8051F018.h,
4705         * device/include/mcs51/c8051f020.h, device/include/mcs51/C8051F020.h,
4706         * device/include/mcs51/c8051f040.h, device/include/mcs51/C8051F040.h,
4707         * device/include/mcs51/c8051f060.h, device/include/mcs51/C8051F060.h,
4708         * device/include/mcs51/c8051f120.h, device/include/mcs51/C8051F120.h,
4709         * device/include/mcs51/c8051f200.h, device/include/mcs51/C8051F200.h,
4710         * device/include/mcs51/c8051f300.h, device/include/mcs51/C8051F300.h,
4711         * device/include/mcs51/c8051f310.h, device/include/mcs51/C8051F310.h,
4712         * device/include/mcs51/c8051f320.h, device/include/mcs51/C8051F320.h,
4713         * device/include/mcs51/c8051f326.h, device/include/mcs51/C8051F326.h,
4714         * device/include/mcs51/c8051f330.h, device/include/mcs51/C8051F330.h,
4715         * device/include/mcs51/c8051f340.h, device/include/mcs51/C8051F340.h,
4716         * device/include/mcs51/c8051f350.h, device/include/mcs51/C8051F350.h,
4717         * device/include/mcs51/c8051f410.h, device/include/mcs51/C8051F410.h:
4718           Renamed to all upper case as per the standard set by SiLabs
4719
4720 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
4721
4722         * device/include/mcs51/C8051F520.h: new, added
4723         * device/include/mcs51/compiler.h: added link about predefined macros
4724
4725 2006-11-23 Raphael Neider <rneider AT web.de>
4726
4727         * src/regression/Makefile: add -L path to fresh library
4728         * src/regression/simulate: emphasize FAILED output
4729         * src/regression/create_stc: output _failures from gpsim
4730         * src/regression/compare4.c,
4731         * src/regression/rotate6.c: fixed char literals,
4732           all compile, all run =8-D
4733
4734         * src/pic/pcode.h: added isPCASMDIR macro
4735         * src/pic/gen.c (genAnd): fixed bit offset
4736         * src/pic/ralloc.c (allocNewDirReg,allocDirReg,allocRegByName,
4737           packBits): unified register numbering schemes,
4738           (newReg): do not insert stack registers into hash table,
4739           (initStack): unpinned pseudo stack, simplified,
4740           (typeRegWithIdx): fixed retrieval of stack registers,
4741         * src/pic/pcode.c (addpCodeComment,sameBank): added,
4742           (pCodeReplace): removed invalid assertion,
4743           (insertPCodeInstruction): fixed newly added labels,
4744           (insertBankSwitch,BankSelect,IsBankChange,DoBankSelect,
4745           FixRegisterBankingInFlow,compareBankFlow,FixBankFlow,
4746           DumpFlow): removed unsed (broken?) code,
4747           (insertBankSel): prevent STATUS from being BANKSELed,
4748           (FixRegisterBanking): rewritten from scratch, implemented generic
4749             optimizations (suppress BANKSELs to same register and to registers
4750             present in all banks),
4751           (AnalyzeBanking): update flow after BANKSELection
4752
4753         * src/pic/glue.c (pic14_constructAbsMap): emit pseudo stack in
4754             sharebank, let linker place it, mark STKxx symbols as emitted
4755
4756 2006-11-21 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4757
4758         * src/regression/arrays.c,
4759         * src/regression/bank1.c,
4760         * src/regression/bool2.c,
4761         * src/regression/compare7.c,
4762         * src/regression/compare8.c,
4763         * src/regression/compare9.c,
4764         * src/regression/compare10.c,
4765         * src/regression/configword.c,
4766         * src/regression/for.c,
4767         * src/regression/mult1.c,
4768         * src/regression/pointer1.c,
4769         * src/regression/rotate6.c,
4770         * src/regression/string1.c,
4771         * src/regression/struct1.c,
4772         * src/regression/Makefile: make PIC14 regression tests run again
4773           (3 fail, 6 won't compile)
4774
4775 2006-11-21 Raphael Neider <rneider AT web.de>
4776
4777         * device/include/pic16/pic18f4550.h,
4778         * device/include/pic16/pic18f4455.h,
4779         * device/lib/pic16/libdev/pic18f4550.c,
4780         * device/lib/pic16/libdev/pic18f4455.c: fixed #1578591 and #1595144
4781         * configure.in: removed superfluous closing bracket
4782
4783 2006-11-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4784
4785         * device/lib/expf.c: Fixed bug 1599523: result of expf(x) is
4786           always positive.
4787
4788 2006-11-21 Raphael Neider <rneider AT web.de>
4789
4790         * src/pic/device.{c,h}: added pic14_getPIC()
4791         * src/pic/gen.c (continueIfTrue,jumpIfTrue): added PIC code,
4792           (genAnd): added PIC code for one case, fixes #1597044
4793         * src/pic/pcode.c (BankSelect): Ohoh, added generic optimization for
4794           SFRs that are present in all banks (e.g., STATUS)
4795
4796 2006-11-20 Raphael Neider <rneider AT web.de>
4797
4798         * src/pic/pcode.c: changed inverted ops for DECFSZ/DECFSZW and
4799           INCFSZ/INCFSZW and declared them as changing Z bit,
4800           (insertPCodeInstruction): correctly invert the above instructions,
4801           fixes #1599333,
4802           (DoBankSelect): don't panic on po_immediates
4803
4804 2006-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
4805
4806         * as/link/aslink.h,
4807         * as/link/mcs51/lkihx.c (newArea),
4808         * as/link/mcs51/lkrloc.c: renamed newArea() to ihxNewArea()
4809         * as/link/mcs51/lkihx.c (ihx): output reset vector as start address
4810
4811 2006-11-11 Raphael Neider <rneider AT web.de>
4812
4813         * src/pic/pcode.c (newpCodeOpBit): search SymbolTab for referenced
4814           bitfield symbols, fixes #1579535 (once more...).
4815
4816 2006-11-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4817
4818         * support/regression/generate-cases.py,
4819         * support/regression/fwk/include/testfwk.h,
4820         * support/regression/fwk/lib/testfwk.c: used code pointers,
4821           (about 50kByte less code generated for mcs51)
4822
4823 2006-11-06 Borut Razem <borut.razem AT siol.net>
4824
4825         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
4826           debugger/mcs51/configure: fixed failed check because the function
4827           rl_function_of_keyseq isn't in Readline 5.2. Thanks to Ilya Goldberg
4828           who submitted the patch for gpsim.
4829         * debugger/mcs51/configure.in: removed the result message
4830         * debugger/mcs51/Makefile.in: fixed the config.status warning
4831           "... seems to ignore the --datarootdir setting"
4832
4833 2006-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
4834
4835         * device/include/mcs51/c8051f020.h,
4836         * device/include/mcs51/c8051f040.h,
4837         * device/include/mcs51/c8051f060.h,
4838         * device/include/mcs51/c8051f120.h: added PS0, fixed bug 1589279
4839         * src/z80/gen.c (gencjneshort),
4840         * src/z80/peeph.def: applied patch 1571373, thanks Philipp Krause
4841
4842 2006-10-31 Borut Razem <borut.razem AT siol.net>
4843
4844         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
4845           debugger/mcs51/configure: get readline version
4846
4847 2006-10-30 Borut Razem <borut.razem AT siol.net>
4848
4849         * debugger/mcs51/sdcdb.c: replaced hardcoded "/" with DIR_SEPARATOR_STRING
4850         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
4851           debugger/mcs51/configure: locate readline even when cross compiling
4852         * support/scripts/sdcc.nsi: include readline5.dll into the setup package
4853
4854 2006-10-29 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4855
4856         * device/include/mcs51/serial_IO.h: putchar() and getchar() using
4857           serial port.
4858
4859 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
4860
4861         * device/include/malloc.h,
4862         * device/lib/calloc.c,
4863         * device/lib/free.c,
4864         * device/lib/malloc.c,
4865         * device/lib/realloc.c: moved definition of struct into sources
4866         * support/regression/tests/malloc.c: use void* for init_dynamic_memory()
4867
4868 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
4869
4870         * as/asx8051.dsp: corrected output directories
4871         * as/link/hc08: new directory for hc08 linker
4872         * as/hc08/aslink.h,             as/link/aslink.h,
4873         * as/hc08/aslink.mak,           as/link/hc08/aslink.mak,
4874         * as/hc08/clean.mk,             as/link/hc08/clean.mk,
4875         * as/hc08/link_hc08.dsp,        as/link/hc08/link_hc08.dsp,
4876         * as/hc08/lkaomf51.c,           as/link/hc08/lkaomf51.c,
4877         * as/hc08/lkarea.c,             as/link/hc08/lkarea.c,
4878         * as/hc08/lkdata.c,             as/link/hc08/lkdata.c,
4879         * as/hc08/lkelf.c,              as/link/hc08/lkelf.c,
4880         * as/hc08/lkihx.c,              as/link/hc08/lkihx.c,
4881         * as/hc08/lklibr.c,             as/link/hc08/lklibr.c,
4882         * as/hc08/lkmain.c,             as/link/hc08/lkmain.c,
4883         * as/hc08/lkmem.c,              as/link/hc08/lkmem.c,
4884         * as/hc08/lkrloc.c,             as/link/hc08/lkrloc.c,
4885         * as/hc08/lks19.c,              as/link/hc08/lks19.c,
4886         * as/hc08/Makefile.aslink,      as/link/hc08/Makefile.aslink,
4887         * as/hc08/Makefile.bcc,         as/link/hc08/Makefile.bcc,
4888         * as/hc08/Makefile.in,          as/link/hc08/Makefile.in,
4889         * as/link/hc08/conf.mk,
4890         * configure,
4891         * configure.in,
4892         * Makefile.in,
4893         * sdcc.dsw: moved hc08 linker to as/link/hc08
4894         * as/hc08/lkeval.c,     as/link/mcs51/lkeval.c,     as/link/lkeval.c,
4895         * as/hc08/lkhead.c,     as/link/mcs51/lkhead.c,     as/link/lkhead.c,
4896         * as/hc08/lklex.c,      as/link/mcs51/lklex.c,      as/link/lklex.c,
4897         * as/hc08/lklist.c,     as/link/mcs51/lklist.c,     as/link/lklist.c,
4898         * as/hc08/lknoice.c,    as/link/mcs51/lknoice.c,    as/link/lknoice.c,
4899         * as/hc08/lksym.c,      as/link/mcs51/lksym.c,      as/link/lksym.c,
4900         * as/link/mcs51/aslink.dsp,
4901         * as/link/mcs51/Makefile.in: factored out the common files
4902         * as/hc08/lkstore.c: deleted, use the one already in as/link/
4903         * as/clean.mk: extra cleaning common files
4904         * as/link/mcs51/strcmpi.c,      as/strcmpi.c: moved
4905         * as/link/mcs51/strcmpi.h: deleted, moved protoype to aslink.h
4906         * as/mcs51/asm.h: include sdccconf.h or sdcc_vc.h
4907
4908 2006-10-29 Raphael Neider <rneider AT web.de>
4909
4910         * src/pic/ralloc.c (newReg): create aliases for registers with
4911           multiple names to fix #1579535 and #1584001,
4912           (regWithIdx,dirregWithName): resolve aliases on lookup
4913         * src/pic/pcode.c (DoBankSelect): die with error message on failing
4914           bankselect
4915         * device/lib/pic/libdev/Makefile.in: move pseudo stack down to 0x4f
4916           to prevent build errors on small devices
4917
4918 2006-10-28 Raphael Neider <rneider AT web.de>
4919
4920         * src/pic/gen.c (genFunction,genCall): drop "same code page"
4921           assumption within interrupt handlers, fixes #1584940
4922         * src/pic/glue.c (pic14_constructAbsMap): mark absolute symbols as
4923           "emitted" to avoid emitting them again in udata
4924
4925 2006-10-27 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4926
4927         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
4928         Removed.
4929
4930 2006-10-26 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4931
4932         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
4933         Initialize uart only if SM0 and SM1 are zero.  Also, use flag to turn
4934         on/off CR to CRLF conversion.
4935
4936 2006-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4937
4938         * doc/sdccman.lyx: updated IRQ section
4939
4940 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4941
4942         * device/lib/serial_io.c: removed
4943         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c
4944         replacements for serial_io.c
4945
4946 2006-10-24 Maarten Brock <sourceforge.brock AT dse.nl>
4947
4948         * src/z80/main.c (_process_pragma, _parseOptions): fixed bug 1583318
4949
4950 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4951
4952         * device/lib/serial_io.c: Default putchar() and getchar() for
4953           mcs51 uses serial port.
4954
4955 2006-10-23 Maarten Brock <sourceforge.brock AT dse.nl>
4956
4957         * src/mcs51/gen.c (movc): improved check for 0 and 1, see RFE 1582704
4958
4959 2006-10-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4960
4961         * support/regression/ports/mcs51/support.c: smaller
4962         _sdcc_external_startup()
4963         * device/lib/mcs51/crtxclear.asm: don't check high byte of l_PSEG
4964
4965 2006-10-20 Maarten Brock <sourceforge.brock AT dse.nl>
4966
4967         * device/lib/gbz80/crt0.s,
4968         * device/lib/gbz80/crt0_rle.s,
4969         * device/lib/gbz80/div.s,
4970         * device/lib/gbz80/fstubs.s,
4971         * device/lib/gbz80/heap.s,
4972         * device/lib/gbz80/mul.s,
4973         * device/lib/gbz80/putchar.s,
4974         * device/lib/gbz80/stubs.s,
4975         * device/lib/z80/crt0.s,
4976         * device/lib/z80/crt0_rle.s,
4977         * device/lib/z80/div.s,
4978         * device/lib/z80/fstubs.s,
4979         * device/lib/z80/heap.s,
4980         * device/lib/z80/mul.s,
4981         * device/lib/z80/putchar.s,
4982         * device/lib/z80/stubs.s: reverted, I was mistaken
4983
4984 2006-10-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4985
4986         * src/mcs51/peeph.def: peephole 238.x added check for notvolatile
4987         * support/regression/ports/mcs51/support.c: removed race
4988         condition on TI in _putchar allowing to use serial port mode 0
4989
4990 2006-10-20 Borut Razem <borut.razem AT siol.net>
4991
4992         * debugger/mcs51/sdcdb.c: replaced isblank() with isspace()
4993
4994 2006-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
4995
4996         * device/lib/gbz80/crt0.s,
4997         * device/lib/gbz80/crt0_rle.s,
4998         * device/lib/gbz80/div.s,
4999         * device/lib/gbz80/fstubs.s,
5000         * device/lib/gbz80/heap.s,
5001         * device/lib/gbz80/mul.s,
5002         * device/lib/gbz80/putchar.s,
5003         * device/lib/gbz80/stubs.s,
5004         * device/lib/z80/crt0.s,
5005         * device/lib/z80/crt0_rle.s,
5006         * device/lib/z80/div.s,
5007         * device/lib/z80/fstubs.s,
5008         * device/lib/z80/heap.s,
5009         * device/lib/z80/mul.s,
5010         * device/lib/z80/putchar.s,
5011         * device/lib/z80/stubs.s: removed all leading underscores from area names
5012
5013 2006-10-17 Maarten Brock <sourceforge.brock AT dse.nl>
5014
5015         * support/regression/ports/mcs51/support.c: use highest baudrate so the
5016           regression tests are not waiting in the simulator for simulated
5017           transmission of debug output
5018
5019 2006-10-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5020
5021         * device/lib/printf_large.c: slightly smaller
5022         * doc/sdccman.lyx: do not use spaces within html links
5023
5024 2006-10-16 Borut Razem <borut.razem AT siol.net>
5025
5026         * configure.in, configure, sdccconf_in.h, src/SDCCglobal,
5027           debugger/mcs51/Makefile.in, debugger/mcs51/sdcdb.[ch],
5028           debugger/mcs51/aclocal.m4, debugger/mcs51/acinclide.m4,
5029           debugger/mcs51/config.h.in, debugger/mcs51/configure.in,
5030           debugger/mcs51/configure:
5031           [ 1185668 ] add gnu readline support to sdcdb - enabled
5032
5033 2006-10-16 Raphael Neider <rneider AT web.de>
5034
5035         * src/pic/pcode.c (BankSelect): another fix on (partial) BANKSELs,
5036           fixes #1577882, removes close to all banking optimizations
5037
5038 2006-10-15 Maarten Brock <sourceforge.brock AT dse.nl>
5039
5040         * src/SDCCsymt.c (checkSClass): no error for uninitialised absolute
5041           variables in code memory
5042         * support/regression/tests/absolute.c: added test for this
5043
5044 2006-10-15 Raphael Neider <rneider AT web.de>
5045
5046         * src/pic/pcode.c (InsertBankSel): suppress BANKSELs for one bank
5047           devices,
5048           (BankSelect): emit BANKSEL before touching linker-placed regs,
5049           fixes #1570934
5050
5051 2006-10-10 Raphael Neider <rneider AT web.de>
5052
5053         * src/SDCCmain.c (optionsTable): accept --stack-size for PICs,
5054         * src/pic/device.c (pic14_getSharebankSize,pic14_getSharebankAddress),
5055         * src/pic/main.c (_pic14_parseOptions),
5056         * src/pic/main.h: mostly reverted to previous state, now use results
5057             from SDCCmain.c's argument parsing
5058
5059 2006-10-10 Borut Razem <borut.razem AT siol.net>
5060
5061         * debugger/mcs51/break.[ch], debugger/mcs51/cmd.c,
5062           debugger/mcs51/sdcdb.[ch], debugger/mcs51/simi.c:
5063           [ 1185668 ] add gnu readline support to sdcdb -
5064           prepared for READLINE, not enabled yet,
5065           thanks to <tal.bav AT gmail.com>
5066
5067 2006-10-10 Raphael Neider <rneider AT web.de>
5068
5069         * src/pic16/pcode.c (pic16_pCode2str): use isACCESS_BANK macro
5070         * src/pic16/devices.inc,
5071         * device/include/pic16 (pic18f[24]620.h),
5072         * device/include/pic18fregs.h,
5073         * device/lib/pic16/pics.all,
5074         * device/lib/pic16/libdev/pic18f[24]{620,525}.c): added support for
5075             18f2620, 18f4620, 18f2525, and 18f4525 devices, thanks to
5076             Gary Plumbridge and Anton Strobl
5077
5078 2006-10-10 Raphael Neider <rneider AT web.de>
5079
5080         * src/pic/main.c (_pic14_parseOptions): added --stack-loc=NUM and
5081           --stack-siz=NUM options to configure the argument passing stack
5082         * src/pic/main.h: added stackLocation and stackSize to pic14_options_t
5083         * src/pic/device.c (mapRegister): catch out-of-memory SIGSEGVs,
5084           (pic14_getSharebankSize): obey --stack-siz=NUM,
5085           (pic14_getSharebankAddress): obey --stack-loc=NUM
5086
5087 2006-10-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5088
5089         * doc/sdccman.lyx: added to the manual
5090         * doc/figures/ddd_example.png: added (neither pdflatex nor
5091         most browsers seem to like the .eps file)
5092
5093 2006-10-06 Bernhard Held <bernhard AT bernhardheld.de>
5094
5095         * src/SDCCglue.c (tempfileandname): changed un*x tmp search paths
5096         to /tmp and /var/tmp acc. LSB
5097         * src/SDCCast.c (addCast): Fixed bug 1571231: promote in case of
5098         RESULT_TYPE_IFX
5099         * support/regression/tests/onebyte.c: added test
5100
5101 2006-10-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5102
5103         * src/mcs51/gen.c: emitcode for "add a,0x%02x" requires only 8 bits.
5104
5105 2006-10-05 Borut Razem <borut.razem AT siol.net>
5106
5107         * partially fixed [ 1570701 ] peephole - not replacing code from multiline macros,
5108           thanks to dfulab:
5109           - sdcc.dsw: changed property eol-style to CRLF
5110           - support/scripts/resource.rc: replaced references to "afxres.h" with "winres.h"
5111
5112 2006-10-04 Raphael Neider <rneider AT web.de>
5113
5114         * device/include/pic/{pic16f84.h,pic16f84a.h},
5115         * device/lib/pic/libdev/{pic16f84.c,pic16f84a.c}: added PORT[AB]_bits
5116           from patch #1522504, thanks to Robas Teodor
5117
5118 2006-10-02 Maarten Brock <sourceforge.brock AT dse.nl>
5119
5120         * as/link/z80/lkarea.c: essentially reverted lnksect() to #4380 which
5121           fixes bug 1566015
5122
5123 2006-10-01 Maarten Brock <sourceforge.brock AT dse.nl>
5124
5125         * src/pic16/glue.c (pic16emitMaps),
5126         * src/pic/glue.c (pic14emitMaps): hopefully fixed bug 1568779
5127         * device/lib/gets.c: fixed bug 1568829,thanks Philipp Krause
5128         * device/lib/pic16/libc/string/memcpypgm2ram.c,
5129         * device/lib/pic16/libc/string/memcpyram2ram.c: fixed bug 1568836, thanks
5130           Philipp Krause
5131         * as/mcs51/asmain.c (asmbl, newdot): fixed problems with absolute areas
5132         * as/link/mcs51/lkmem.c (summary2): reverted, do do count abs segments
5133
5134 2006-09-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5135
5136         * support/librarian/sdcclib.c: Added option -l.
5137         * as/link/mcs51/lkmem.c: don't use absolute segments to compute memory
5138           usage totals.
5139         * device/lib/make51lib.bat: added.  Allows building mcs51 libraries easily
5140           using Windows command prompt.
5141
5142 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
5143
5144         * device/lib/libsdcc.lib: added module rand
5145         * src/ds390/ralloc.c (rematStr),
5146         * src/hc08/ralloc.c (rematStr),
5147         * src/mcs51/ralloc.c (rematStr),
5148         * src/z80/ralloc.c (rematStr): made output more consistent
5149         * src/mcs51/gen.c: cosmetic changes
5150
5151 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
5152
5153         * src/port.h: added mem.cabs_name to PORT
5154         * src/ds390/main.c,
5155         * src/hc08/main.c,
5156         * src/mcs51/main.c,
5157         * src/pic16/main.c,
5158         * src/pic/main.c,
5159         * src/xa51/main.c,
5160         * src/z80/main.c: added cabs_name initializers
5161         * src/SDCCglue.c (emitStaticSeg): allocate and initialize absolute
5162           constants
5163           (emitMaps): emit absolutes in code memory into cabs_name
5164         * src/SDCCmem.c,
5165         * src/SDCCmem.h: added memory map c_abs and defined CABS_NAME
5166         * src/ds390/gen.c (genCodePointerGet): fixed bug if left is a literal
5167         * support/regression/fwk/include/testfwk.h: added define for at
5168         * support/regression/tests/absolute.c: added, new
5169
5170 2006-09-29 Maarten Brock <sourceforge.brock AT dse.nl>
5171
5172         * src/mcs51/gen.c (genPlusIncr, genMinusDec, genAddrOf): small
5173           optimizations, see also patch 887161 by Stas Sergeev
5174         * src/mcs51/peeph.def(104, 207, 209, 212): disabled as they do not seem
5175           to be necessary anymore,
5176           (102, 103, 104, 127): renamed all occurances of bp to _bp
5177
5178 2006-09-27 Maarten Brock <sourceforge.brock AT dse.nl>
5179
5180         * device/include/mcs51/at89c51snd1c.h: fixed MSK_SREQ definition
5181           thanks Weston T. Schmidt for patch 1555221
5182         * src/mcs51/peeph.def: renamed rule 257 to 257.a, added 257.b
5183         * src/SDCCicode.c(geniCodeMultiply): small optimization
5184
5185 2006-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
5186
5187         * device/include/stdlib.h: added rand prototypes
5188         * device/lib/rand.c: new, added
5189         * device/lib/Makefile.in: added rand.c
5190         * src/z80/peeph.def,
5191         * src/z80/peeph-gbz80.def,
5192         * src/z80/peeph-z80.def: updated conditonals, fixed bug 1565908
5193
5194 2006-09-20 Raphael Neider <rneider AT web.de>
5195
5196         * device/lib/pic16/libio/i2c/i2cnack.c (i2c_nack): fixed ACKDT bit
5197
5198 2006-09-19 Maarten Brock <sourceforge.brock AT dse.nl>
5199
5200         * as/link/aslink.h: cosmetic changes
5201         * as/link/mcs51/Makefile.in,
5202         * as/link/z80/Makefile.in: fixed build on CF where VPATH is used
5203
5204 2006-09-17 Maarten Brock <sourceforge.brock AT dse.nl>
5205
5206         * as/link/aslink.h,
5207         * as/link/mcs51/aslink.h,
5208         * as/link/z80/aslink.h: merged and moved to as/link/
5209         * as/link/lkstore.c,
5210         * as/link/mcs51/lkstore.c: moved to as/link/
5211         * as/link/clean.mk: remove *.o
5212         * as/link/mcs51/alloc.h: deleted
5213         * as/link/mcs51/lkarea.c: added lnksect prototype
5214         * as/link/mcs51/lkdata.c,
5215         * as/link/mcs51/lklex.c,
5216         * as/link/mcs51/lkmain.c: renamed as_getline to lk_getline
5217         * as/link/mcs51/lkmem.c,
5218         * as/link/mcs51/lknoice.c: removed include strcmpi.h
5219         * as/link/mcs51/lksym.c: include stdlib.h instead of malloc.h or alloc.h
5220         * as/link/mcs51/aslink.dsp,
5221         * as/link/mcs51/Makefile.aslink,
5222         * as/link/mcs51/Makefile.bcc,
5223         * as/link/mcs51/Makefile.in: updated for moved files
5224         * as/link/z80/lkarea.c,
5225         * as/link/z80/lkhead.c,
5226         * as/link/z80/lklex.c,
5227         * as/link/z80/lklibr.c,
5228         * as/link/z80/lklist.c,
5229         * as/link/z80/lkmain.c,
5230         * as/link/z80/lkrloc.c,
5231         * as/link/z80/lksym.c: synced with mcs51
5232         * as/link/z80/lkdata.c,
5233         * as/link/z80/lkeval.c,
5234         * as/link/z80/lkihx.c,
5235         * as/link/z80/lks19.c: cosmetic changes
5236         * as/link/z80/Makefile.in,
5237         * as/link/z80/linkgbz80.dsp,
5238         * as/link/z80/linkz80.dsp: updated for moved files
5239
5240 2006-09-16 Borut Razem <borut.razem AT siol.net>
5241
5242         * debugger/mcs51/sdcdb.c: partially fixed
5243           [ 1203664 ] sdcdb fails to open files w. two "." periods
5244         * debugger/mcs51/simi.c, debugger/mcs51/symtab.c,
5245           debugger/mcs51/symtab.h: fixed indenting
5246         * configure.in, configure: up to date with latest Maarten's changes
5247
5248 2006-09-15 Maarten Brock <sourceforge.brock AT dse.nl>
5249
5250         as/link/mcs51
5251         as/aslink.dsp,                  as/link/mcs51/aslink.dsp,
5252         as/link/mcs51/aslink.h,         as/mcs51/aslink.h,
5253         as/link/mcs51/aslink.mak,       as/mcs51/aslink.mak,
5254         as/link/mcs51/lkaomf51.c,       as/mcs51/lkaomf51.c,
5255         as/link/mcs51/lkarea.c,         as/mcs51/lkarea.c,
5256         as/link/mcs51/lkdata.c,         as/mcs51/lkdata.c,
5257         as/link/mcs51/lkeval.c,         as/mcs51/lkeval.c,
5258         as/link/mcs51/lkhead.c,         as/mcs51/lkhead.c,
5259         as/link/mcs51/lkihx.c,          as/mcs51/lkihx.c,
5260         as/link/mcs51/lklex.c,          as/mcs51/lklex.c,
5261         as/link/mcs51/lklibr.c,         as/mcs51/lklibr.c,
5262         as/link/mcs51/lklist.c,         as/mcs51/lklist.c,
5263         as/link/mcs51/lkmain.c,         as/mcs51/lkmain.c,
5264         as/link/mcs51/lkmem.c,          as/mcs51/lkmem.c,
5265         as/link/mcs51/lknoice.c,        as/mcs51/lknoice.c,
5266         as/link/mcs51/lkrloc.c,         as/mcs51/lkrloc.c,
5267         as/link/mcs51/lks19.c,          as/mcs51/lks19.c,
5268         as/link/mcs51/lkstore.c,        as/mcs51/lkstore.c,
5269         as/link/mcs51/lksym.c,          as/mcs51/lksym.c,
5270         as/link/mcs51/Makefile.aslink,  as/mcs51/Makefile.aslink,
5271         as/link/mcs51/alloc.h,
5272         as/link/mcs51/clean.mk,
5273         as/link/mcs51/conf.mk,
5274         as/link/mcs51/Makefile.bcc,
5275         as/link/mcs51/Makefile.in,
5276         as/link/mcs51/readme.390,
5277         as/link/mcs51/strcmpi.c,
5278         as/link/mcs51/strcmpi.h,
5279         as/mcs51/clean.mk,
5280         as/mcs51/Makefile.bcc,
5281         as/mcs51/Makefile.in,
5282         configure,
5283         Makefile.in,
5284         sdcc.dsw: moved mcs51 linker to as/link/mcs51
5285
5286 2006-09-14 Maarten Brock <sourceforge.brock AT dse.nl>
5287
5288         * as/link,
5289         * as/link/Makefile.in,
5290         * as/link/z80/linkgbz80.dsp,
5291         * as/link/z80/linkz80.dsp,
5292         * configure,
5293         * link,
5294         * link/clean.mk,
5295         * link/Makefile.in,
5296         * link/README,
5297         * link/z80,
5298         * link/z80/aslink.h,
5299         * link/z80/clean.mk,
5300         * link/z80/conf.mk,
5301         * link/z80/linkgbz80.dsp,
5302         * link/z80/linkz80.dsp,
5303         * link/z80/lkarea.c,
5304         * link/z80/lkdata.c,
5305         * link/z80/lkeval.c,
5306         * link/z80/lkgb.c,
5307         * link/z80/lkgg.c,
5308         * link/z80/lkhead.c,
5309         * link/z80/lkihx.c,
5310         * link/z80/lklex.c,
5311         * link/z80/lklibr.c,
5312         * link/z80/lklist.c,
5313         * link/z80/lkmain.c,
5314         * link/z80/lkrloc.c,
5315         * link/z80/lks19.c,
5316         * link/z80/lksym.c,
5317         * link/z80/Makefile.in,
5318         * Makefile.in,
5319         * sdcc.dsw: moved link/ to as/link/
5320
5321 2006-09-11 Maarten Brock <sourceforge.brock AT dse.nl>
5322
5323         * as/mcs51/i51mch.c (machine): fixed warning
5324
5325 2006-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
5326
5327         * as/mcs51/i51mch.c (machine): S_DJNZ fixed bug 1554318
5328
5329 2006-09-09 Borut Razem <borut.razem AT siol.net>
5330
5331         * debugger/mcs51/sdcdb.c, debugger/mcs51/simi.c:
5332           sdcdb WIN32 native port
5333         * src/clean.mk: fixed
5334
5335 2006-09-08 Borut Razem <borut.razem AT siol.net>
5336
5337         * doc/sdccman.lyx: SDCDB and ucSim are available on Win32 platforms.
5338
5339 2006-09-08 Raphael Neider <rneider AT web.de>
5340
5341         * src/pic16/main.c (_pic16_linkEdit,pic16_linkCmd),
5342         * src/pic/main.c(_pic14_do_link, linkCmd): pass "-w" and "-r"
5343             to gplink to disable processor mismatch warning and to allow
5344             the use of devices with only aliased (shared) memory banks,
5345           (_pic16_genAssemblerPreamble): include pXXX.inc on --mplab-comp
5346
5347 2006-09-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5348
5349         * doc/sdccman.lyx: Some re-formating plus example on using
5350           #pragma preproc_asm +/-
5351
5352 2006-09-07 Borut Razem <borut.razem AT siol.net>
5353
5354         * support/scripts/sdcc.nsi: added SDCDB executables in a separate
5355           section
5356
5357 2006-09-06 Borut Razem <borut.razem AT siol.net>
5358
5359         * support/scripts/sdcc.nsi: fixed Error: unterminated string parsing
5360           line at sdcc.nsi:153
5361         * sdcc/debugger/mcs51/simi.c: argsToCmdLine() fixes
5362
5363 2006-09-05 Borut Razem <borut.razem AT siol.net>
5364
5365         * configure.in, configure: support for winsock2
5366         * debugger/mcs51/break.h, debugger/mcs51/cmd.c,
5367           debugger/mcs51/cmd.h, debugger/mcs51/sdcdb.c,
5368           debugger/mcs51/sdcdb.h, debugger/mcs51/simi.c,
5369           debugger/mcs51/simi.h, debugger/mcs51/symtab.c,
5370           debugger/mcs51/symtab.h: sdcdb WIN32 native port
5371
5372 2006-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
5373
5374         * src/SDCCopt.c (cnvToFcall): fixed bug 1551947 by updating OP_USES
5375           and OP_DEFS
5376         * support/regression/tests/bug1551947.c: new, added
5377         * src/SDCCsymt.h: strings are char* not byte*
5378
5379 2006-09-05 Raphael Neider <rneider AT web.de>
5380
5381         * device/lib/pic16/libdev/pic18f4550.c,
5382           device/include/pic16/pic18f4550.h: added PORTD/TRISD
5383             declarations/definitions from patch #1520949
5384
5385 2006-09-05 Raphael Neider <rneider AT web.de>
5386
5387         * src/pic16/gen.c (genPackBits): fix assignment to 8-bit,
5388           byte-aligned bitfields, fixes #1539278
5389
5390 2006-09-05 Raphael Neider <rneider AT web.de>
5391
5392         * src/pic/gen.c (genReceive): skip unreferenced arguments,
5393           fixes #1544120
5394
5395 2006-09-04 Borut Razem <borut.razem AT siol.net>
5396
5397         * support/scripts/sdcc.nsi: move ucSim executables to a separate section
5398         * support/scripts/sdcc_cygwin_mingw32: don't disable ucsim,
5399           -mno-cygwin is a part of the compiler name
5400         * support/scripts/sdcc_mingw32: don't disable ucsim
5401
5402 2006-09-03 Borut Razem <borut.razem AT siol.net>
5403
5404         * sdcc.spec: corrected for 2.6.0. Thanks to Christer Weinigel.
5405         * device/lib/Makefile.in device/lib/clean.mk: small but essential corrections
5406
5407 2006-09-03 Raphael Neider <rneider AT web.de>
5408
5409         * src/pic/ralloc.c,
5410         * src/pic/pcode.c (InitReuseRegs): allocate registers with pseudo
5411           indices >= 0x1000 to disambiguate them from fixed regs __at(addr),
5412           fixes #1550049
5413
5414 2006-09-01 Borut Razem <borut.razem AT siol.net>
5415
5416         * sim/ucsim/cmd.src/cmdutil.cc: #include <sys/time.h> and <unistd.h>
5417           to make ppc-osx happy
5418
5419 2006-08-31 Borut Razem <borut.razem AT siol.net>
5420
5421         * sim/ucsim/cmd.src/newcmdposix.cc: #include <assert.h>
5422         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
5423         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
5424         * support/regression/ports/ds390/spec.mk,
5425           support/regression/ports/mcs51/spec.mk,
5426           support/regression/ports/xa51/spec.mk: introduced DEV_NULL variable.
5427           To run regression tests in mingw environment:
5428           make DEV_NULL=NUL CC=gcc
5429
5430 2006-08-30 Borut Razem <borut.razem AT siol.net>
5431
5432         * sim/ucsim/cmd.src/newcmdposix.cc, sim/ucsim/cmd.src/newcmdposixcl.h,
5433           sim/ucsim/cmd.src/newcmdwin32.cc, sim/ucsim/cmd.src/newcmdwin32cl.h,
5434           sim/ucsim/app.cc, sim/ucsim/appcl.h, sim/ucsim/configure,
5435           sim/ucsim/configure.in, sim/ucsim/ddconfig_in.h, sim/ucsim/error.cc,
5436           sim/ucsim/errorcl.h, sim/ucsim/option.cc, sim/ucsim/optioncl.h,
5437           sim/ucsim/utils.cc, sim/ucsim/utils.h, sim/ucsim/cmd.src/Makefile.in,
5438           sim/ucsim/avr.src/avr.cc, sim/ucsim/avr.src/avrcl.h,
5439           sim/ucsim/cmd.src/bp.cc, sim/ucsim/cmd.src/bpcl.h,
5440           sim/ucsim/cmd.src/cmdconf.cc, sim/ucsim/cmd.src/cmdgui.cc,
5441           sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/cmdset.cc,
5442           sim/ucsim/cmd.src/cmdsetcl.h, sim/ucsim/cmd.src/cmdstat.cc,
5443           sim/ucsim/cmd.src/cmduc.cc, sim/ucsim/cmd.src/cmduccl.h,
5444           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
5445           sim/ucsim/cmd.src/command.cc, sim/ucsim/cmd.src/commandcl.h,
5446           sim/ucsim/cmd.src/get.cc, sim/ucsim/cmd.src/getcl.h,
5447           sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/newcmd.cc,
5448           sim/ucsim/cmd.src/newcmdcl.h, sim/ucsim/cmd.src/set.cc,
5449           sim/ucsim/cmd.src/show.cc, sim/ucsim/cmd.src/timer.cc,
5450           sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
5451           sim/ucsim/s51.src/Makefile.in, sim/ucsim/s51.src/interrupt.cc,
5452           sim/ucsim/s51.src/interruptcl.h, sim/ucsim/s51.src/pca.cc,
5453           sim/ucsim/s51.src/pcacl.h, sim/ucsim/s51.src/port.cc,
5454           sim/ucsim/s51.src/portcl.h, sim/ucsim/s51.src/serial.cc,
5455           sim/ucsim/s51.src/serialcl.h, sim/ucsim/s51.src/timer0.cc,
5456           sim/ucsim/s51.src/timer0cl.h, sim/ucsim/s51.src/timer1.cc,
5457           sim/ucsim/s51.src/timer1cl.h, sim/ucsim/s51.src/timer2.cc,
5458           sim/ucsim/s51.src/timer2cl.h, sim/ucsim/s51.src/uc390.cc,
5459           sim/ucsim/s51.src/uc390cl.h, sim/ucsim/s51.src/uc390hw.cc,
5460           sim/ucsim/s51.src/uc390hwcl.h, sim/ucsim/s51.src/uc51.cc,
5461           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/wdt.cc,
5462           sim/ucsim/s51.src/wdtcl.h, sim/ucsim/sim.src/hw.cc,
5463           sim/ucsim/sim.src/hwcl.h, sim/ucsim/sim.src/mem.cc,
5464           sim/ucsim/sim.src/memcl.h, sim/ucsim/sim.src/obsolete.cc,
5465           sim/ucsim/sim.src/obsolete.h, sim/ucsim/sim.src/sim.cc,
5466           sim/ucsim/sim.src/simcl.h, sim/ucsim/sim.src/stack.cc,
5467           sim/ucsim/sim.src/stackcl.h, sim/ucsim/sim.src/test_mem_speed.cc,
5468           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
5469           sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
5470           sim/ucsim/z80.src/z80.cc, sim/ucsim/z80.src/z80cl.h:
5471           ucsim WIN32 native port
5472
5473 2006-08-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5474
5475         * doc/sdccman.lyx: added note on dynamic memory heap initialization
5476
5477 2006-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
5478
5479         * src/mcs51/gen.c (genAnd, genOr, genXor): fixed bug 1546986
5480         * src/ds390/gen.c (aopGetUsesAcc): handle AOP_DPTR2 and AOP_DPTRn too
5481
5482 2006-08-26 Maarten Brock <sourceforge.brock AT dse.nl>
5483
5484         * src/ds390/gen.c (genAnd, genOr, genXor): fixed bug 1546986
5485         * support/regression/tests/bug1546986.c: new, added
5486         * as/mcs51/.cvsignore,
5487         * debugger/mcs51/.cvsignore,
5488         * src/.cvsignore: deleted
5489
5490 2006-08-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5491
5492         * device/include/mcs51/P89c51RD2.h: fixed bug 1546936 (error in sbit
5493           definitions)
5494
5495 2006-08-20 Borut Razem <borut.razem AT siol.net>
5496
5497         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h:
5498           removed cl_listen_console::match(), cl_console::match(),
5499           restructured cl_commander::proc_input()
5500
5501 2006-08-16 Borut Razem <borut.razem AT siol.net>
5502
5503         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h,
5504           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
5505           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/uc.cc: code cleaning
5506
5507 2006-08-14 Borut Razem <borut.razem AT siol.net>
5508
5509         * support/regression/Makefile.in,
5510           support/regression/ports/pic14/gpsim.cmd,
5511           support/regression/ports/pic14/spec.mk,
5512           support/regression/ports/pic14/support.c:
5513           added pic14 regression test
5514
5515 2006-08-14 Maarten Brock <sourceforge.brock AT dse.nl>
5516
5517         * as/doc/asxhtm.html: documented changed ABS behaviour
5518         * as/doc/README: fixed some typos
5519
5520 2006-08-13 Maarten Brock <sourceforge.brock AT dse.nl>
5521
5522         * support/regression/tests/float_trans.c: disabled test if __STDC_IEC_559__
5523           not defined on host
5524
5525 2006-08-12 Borut Razem <borut.razem AT siol.net>
5526
5527         * support/regression/fwk/include/testfwk.h,
5528           support/regression/fwk/lib/testfwk.c,
5529           support/regression/generate-cases.py,
5530           support/regression/Makefile.in:
5531           regression test framework does not depend on function pointers and
5532           variable arguments
5533
5534 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
5535
5536         * device/include/stddef.h: c temporary hack to fix bug 1518273
5537
5538 2006-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5539
5540         * device/include/mcs51/cc2510fx.h: added
5541         * src/z80/z80.dsp, src/gbz80/gbz80.dsp: added support/Util/strcmpi.ch
5542           to projects.
5543
5544 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
5545
5546         * as/z80/assym.c (mlookup): ignore case when looking up mnemonics
5547         * as/z80/Makefile.in: added strcmpi.c
5548         * as/z80/z80adr.c: added upper case registers and lower case conditionals
5549         * support/Util/strcmpi.ch: added with intention to remove from mcs51/hc08
5550
5551 2006-08-08 Maarten Brock <sourceforge.brock AT dse.nl>
5552
5553         * device/lib/gbz80/asm_strings.s,
5554         * device/lib/gbz80/crt0_rle.s,
5555         * device/lib/gbz80/div.s,
5556         * device/lib/gbz80/mul.s,
5557         * device/lib/gbz80/shift.s,
5558         * device/lib/z80/asm_strings.s,
5559         * device/lib/z80/crt0_rle.s,
5560         * device/lib/z80/div.s,
5561         * device/lib/z80/mul.s,
5562         * device/lib/z80/shift.s: changed to all lower case menmonics except the
5563           flags which are all upper case
5564
5565 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
5566
5567         * as/z80/asm.h: made CASE_SENSITIVE 1
5568         * link/z80/aslink.h: made CASE_SENSITIVE 1
5569         * src/z80/gen.c (throughout): made all conditionals upper case
5570         * support/regression/tests/bug1503067.c: new
5571
5572 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
5573
5574         * src/z80/gen.c (aopPut): fixed bug !*ixy should be !*iyx,
5575           (shiftIntoPair): added case 2 for PAIR_IY,
5576           (setupToPreserveCarry): replaced parameters with iCode and check if
5577            PAIR_DE is in use to fix bug 1399290,
5578           (genPlus, genMinus): updated call to setupToPreserveCarry
5579         * support/regression/tests/bug1399290.c: new
5580
5581 2006-08-06 Maarten Brock <sourceforge.brock AT dse.nl>
5582
5583         * device/lib/Makefile.in (Z80SOURCES): enabled float support
5584         * sim/ucsim/z80.src/inst.cc (inst_rst): generate breakpoint on RST8,ACC==0
5585         * src/ds390/gen.c (shiftRLong),
5586         * src/hc08/gen.c (shiftLLong, shiftRLong): fixed bug 1533966
5587         * src/mcs51/gen.c (sameReg): changed to sameByte,
5588           (xch_a_aopGet): new,
5589           (shiftL2Left2Result, shiftR2Left2Result, shiftRLeftOrResult, shiftLLong,
5590            shiftRLong): fixed bug 1533966
5591         * src/z80/gen.c (shiftR2Left2Result, shiftL2Left2Result, genlshTwo,
5592           genLeftShiftLiteral, genrshTwo, genRightShiftLiteral): fixed bug 1533966
5593         * support/regression/Makefile.in: disabled z80, enabled ucz80
5594         * support/regression/tests/float_trans.c: enabled test for z80 and host
5595         * support/regression/tests/shifts2.c: new, for testing bug 1533966
5596
5597 2006-08-01 Borut Razem <borut.razem AT siol.net>
5598
5599         * src/mcs51/gen.c, src/dc390/gen.c: fixed warning:
5600           comparison is always false due to limited range of data type
5601           on PPC64 machine (openpower-linux1) where "char = unsigned char"
5602
5603 2006-08-01 Maarten Brock <sourceforge.brock AT dse.nl>
5604
5605         * sim/ucsim/hc08.src/hc08mac.h: removed faulty and unused add_u16_disp
5606         * sim/ucsim/hc08.src/hc08.cc: removed faulty and unused int8
5607         * sim/ucsim/z80.src/z80mac.h (add_u16_disp): use explicit signed char cast
5608         * sim/ucsim/z80.src/z80.cc: removed faulty and unused int8
5609
5610 2006-07-31 Borut Razem <borut.razem AT siol.net>
5611
5612         * sim/ucsim/configure, sim/ucsim/cmd.src/newcmdcl.h,
5613           sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/cmdutil.cc,
5614           sim/ucsim/z80.src/Makefile.in, sim/ucsim/configure.in,
5615           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/hc08.src/hc08.cc,
5616           sim/ucsim/ddconfig_in.h, sim/ucsim/s51.src/Makefile.in,
5617           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/serialcl.h,
5618           sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/serial.cc,
5619           sim/ucsim/app.cc, sim/ucsim/avr.src/Makefile.in:
5620           enable ucsim mingw compilation. Serial port is disabled,
5621           since it uses termios.h API, which is not available on native
5622           WIN32
5623
5624 2006-07-31 Borut Razem <borut.razem AT siol.net>
5625
5626         * Small Device C Compiler 2.6.0 released
5627         * support/scripts/sdcc.nsi: added FULL_DOC option
5628         * .version, doc/sdccman.lyx: changed sdcc version to 2.6.1
5629
5630 2006-07-28 Borut Razem <borut.razem AT siol.net>
5631
5632         * support/scripts/sdcc.nsi: remove $INSTDIR/include/asm/pic16/*.h
5633         * doc/INSTALL.txt: updated
5634
5635 2006-07-27 Borut Razem <borut.razem AT siol.net>
5636
5637         * device/lib/pic/Makefile.in, device/lib/pic/Makefile.subdir,
5638           device/lib/pic/libdev/Makefile.in: fixed bug
5639           [ 1438354 ] pic libsdcc: distclean doesn't work
5640         * device/lib/pic16/Makefile.in, device/lib/pic16/Makefile.subdir,
5641           device/lib/pic16/libio/Makefile.in: fixed bug
5642           [ 1438344 ] pic16 lib: clean doesn't work properly
5643         * doc/knownbugs.html removed [ 1438354 ] and [ 1438344 ] from the list
5644
5645 2006-07-26 Maarten Brock <sourceforge.brock AT dse.nl>
5646
5647         * device/lib/pic/libsdcc/fsdiv.c,
5648         * device/lib/pic/libsdcc/fsmul.c,
5649         * device/lib/pic16/libsdcc/float/fsdiv.c,
5650         * device/lib/pic16/libsdcc/float/fsmul.c,
5651         * device/lib/_fsdiv.c,
5652         * device/lib/_fsmul.c: bugfix, handle too large and too small numbers
5653         * support/regression/tests/bug1520966.c: added
5654         * doc/knownbugs.html: removed [ 1520966 ] from the list
5655
5656 2006-07-25 Borut Razem <borut.razem AT siol.net>
5657
5658         * configure.in, configure, sdccconf_in.h: fixed bug
5659           [ 1519095 ] regression test onebyte.c fails on ppc64 host
5660         * doc/knownbugs.html: removed [ 1519095 ] from the list
5661
5662 2006-07-25 Maarten Brock <sourceforge.brock AT dse.nl>
5663
5664         * doc/knownbugs.html: added, contains list of known bugs at release
5665         * device/include/mcs51/compiler.h: fixed SFR32 for SDCC
5666
5667 2006-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
5668
5669         * device/include/mcs51/compiler.h: added SFRX for xdata based special
5670           function registers and corrected defaults with additional warning
5671         * device/lib/malloc.c: cosmetic changes
5672         * device/lib/realloc.c: bugfix for bug #1496907, Thanks Efim Monyak
5673         * src/ds390/ralloc.c (getRegBitNoSpil): reenabled,
5674           (fillGaps): and used it
5675
5676 2006-07-20 Raphael Neider <rneider AT web.de>
5677
5678         * src/pic/device.c (addMemRange,assignRegister): suppress verbose
5679           output unless SDCCPICDEBUG is set
5680         * device/lib/pic16/Makefile.rules (%.lib target): suppress verbose
5681           output if SILENT is set
5682
5683 2006-07-11 Borut Razem <borut.razem AT siol.net>
5684
5685         * doc/README.txt: updated
5686
5687 2006-07-10 Borut Razem <borut.razem AT siol.net>
5688
5689         * support/scripts/sdcc.nsi: added device/include/asm/pic/features.h and
5690           device/lib/src/pic/libm/*.c and device/lib/src/pic16/libsdcc/stack/*.S
5691           in WIN32 installation
5692         * .version, sdcc.spec, doc/sdccman.lyx: changed sdcc version to 2.6.0 -
5693           release candidate 1
5694
5695 2006-07-08 Maarten Brock <sourceforge.brock AT dse.nl>
5696
5697         * device/include/mcs51/XC866.h: added sbit definitions for Px_x, P1_x, P2_x
5698         * src/pic16/glue.c (initPointer): fixed bug 1496419 for pic16
5699
5700 2006-07-06 Maarten Brock <sourceforge.brock AT dse.nl>
5701
5702         * src/hc08/gen.c (genAddrOf): fixed bug when offset on stack is >127
5703
5704 2006-07-06 Borut Razem <borut.razem AT siol.net>
5705
5706         * support/regression/tests/bitfields.c:
5707           fixed bug [ 1518322 ] regression test bitfields fails on ppc hosts
5708         * support/regression/tests/constantRange.c:
5709           fixed bug [ 1518317 ] regression test constantRange fails on alpha host
5710
5711 2006-07-04 Borut Razem <borut.razem AT siol.net>
5712
5713         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in,
5714           src/port.mk,
5715           src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
5716           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
5717           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
5718           reverted changes from 2006-07-03
5719         * Makefile.common.in: added @CPPFLAGS@ to CPPFLAGS
5720         * support/regression/Makefile.in, support/regression/ports/host/spec.mk:
5721           added CPPFLAGS, used by the host port
5722
5723 2006-07-03 Bernhard Held <bernhard AT bernhardheld.de>
5724
5725         * support/regression/valdiag/tests/switch.c,
5726         * support/regression/valdiag/tests/constantRange.c: adapted to gcc 4
5727         * support/regression/tests/libmullong.c: fixed for host
5728         * support/regression/ports/host/spec.mk: disable all warnings for host,
5729         SDCC runs with --less-pedantic too
5730
5731 2006-07-03 Borut Razem <borut.razem AT siol.net>
5732
5733         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in:
5734           defined CPPFLAGS
5735         * src/port.mk: defined CPPFLAGS, renamed to src/port.mk.in
5736         * src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
5737           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
5738           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
5739           include ../port.mk
5740         * sim/ucsim/main_in.mk, sim/ucsim/avr.src/Makefile.in,
5741           sim/ucsim/gui.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
5742           sim/ucsim/s52.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
5743           sim/ucsim/xa.src/Makefile.in: ignore header files for dependencies
5744
5745 2006-07-02 Raphael Neider <rneider AT web.de>
5746
5747         * src/pic16/devices.inc,
5748         * device/include/pic16/pic18fregs.h,
5749         * device/include/pic16/pic18f4550.h,
5750         * device/lib/pic16/pics.all,
5751         * device/lib/pic16/libdev/pic18f4550.c: added support for 18f4550
5752
5753 2006-07-01 Bernhard Held <bernhard AT bernhardheld.de>
5754
5755         * as/hc08/lkaomf51.c (OutputName),
5756         * as/mcs51/lkaomf51.c (OutputName),
5757         * as/z80/asmain.c (asmbl),
5758         * src/ds390/main.c (asmLineNodeFromLineNode),
5759         * src/hc08/ralloc.c (hc08_assignRegisters),
5760         * src/mcs51/main.c (asmLineNodeFromLineNode),
5761         * src/xa51/ralloc.c (checkRegMask),
5762         * src/xa51/gen.c (emitcode),
5763         * src/z80/gen.c (_emit2),
5764         * src/SDCCast.c (searchLitOp),
5765         * src/SDCCglobl.h,
5766         * support/packihx/packihx.c,
5767         * support/Util/MySystem.c (split_command): fix gcc 4 warnings
5768         * src/ds390/gen.c (aopPutUsesAcc),
5769         * src/ds390/ralloc.c (getRegBitNoSpil): unused, therefore disabled
5770         * support/regression/tests/libmullong.c (mullong_wrapper),
5771         * src/SDCCsymt.c (powof2),
5772         * src/SDCCast.c,
5773         * src/SDCCicode.c: renamed TYPE_WORD by TYPE_TARGET_INT and so on
5774         * src/SDCCsymt.h: added TYPE_TARGET_*
5775         * src/SDCCutil.c (doubleFromFixed16x16, fixed16x16FromDouble),
5776         * src/SDCCutil.h (doubleFromFixed16x16, fixed16x16FromDouble): moved to
5777         SDCCast because 1) header problems 2) this is the right place
5778         * src/SDCCast.c (doubleFromFixed16x16, fixed16x16FromDouble): added
5779         * src/SDCCval.h (doubleFromFixed16x16, fixed16x16FromDouble): added
5780         prototype
5781
5782 2006-06-29 Bernhard Held <bernhard AT bernhardheld.de>
5783
5784         * src/SDCCicode.h: removed buggy semicolon in unused macro
5785         * src/SDCClrange.c (findPrevUseSym, rlivePoint): fixed bug #1486853,
5786         search for previous definiton of auto symbols too,
5787         (findPrevUse): fixed logic of emitWarnings
5788
5789 2006-06-26 Raphael Neider <rneider AT web.de>
5790
5791         * src/pic16/gen.c (genFunction, genEndFunction): also preserve
5792           PCLATH and PCLATU on interrupts, potentially fixes #1505141
5793
5794 2006-06-25 Raphael Neider <rneider AT web.de>
5795
5796         * device/lib/pic/libm: NEW, added math library functions
5797         * device/lib/pic/libsdcc: NEW; added float support functions
5798         * device/lib/pic/{Makefile.in,configure.in,configure}: added libm/
5799         * device/include/pic/{limits.h,errno.h,sdcc-lib.h,float.h,math.h}:
5800           NEW, added math related headers
5801         * device/include/asm/pic/features.h: NEW
5802         * src/pic/gen.c (emitpcode_real): emit warning on NULL pCodeOp,
5803           (popGet): allow larger offsets for AOP_PCODE,
5804           (genDataPointerSet): handle literals explicitly, more debug output,
5805           (genAssign): fixed for float using aopLiteral ;-)
5806         * src/pic/glue.c (pic14createInterruptVect): inserted pagesel before
5807           GOTO initialisation routine
5808         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): set wasUsed
5809           flag on registers, fixes #1469043 (local variables do not work)
5810         * src/pic/main.c (_pic14_do_link),
5811         * src/pic16/main.c (_pic16_linkEdit): use fullDstFileName if
5812           available
5813
5814 2006-06-25 Borut Razem <borut.razem AT siol.net>
5815
5816         * device/lib/pic16/libc/stdio/sprintf.c: return the number of
5817           characters printed (not including the trailing '\0' used to end
5818           output to strings). Problem detected in regression test bug-927659.c.
5819           NOTE: printf() family functions should return int instead
5820           unsigned int!
5821         * device/lib/pic16/libc/stdio/vfprintf.c: "%%" prints "%", unknown
5822           specifier are printed as themselves
5823         * sdcc/support/regression/tests/bug1057979.c: pic16 printf doesn't
5824           support flags, width and precision specifiers
5825
5826 2006-06-24 Borut Razem <borut.razem AT siol.net>
5827
5828         * sdcc/support/regression/tests/bitvars.c: added gbz80, pic16 and pic16
5829           to the list of sdcc tagrets not supporting bit type
5830         * sdcc/support/regression/tests/bug-905992.c.c: excluded regression
5831           testfor pic16 due to bug:
5832           [ 1511794 ] pic16: regression test bug-895992.c fails
5833
5834 2006-06-24 Maarten Brock <sourceforge.brock AT dse.nl>
5835
5836         * src/mcs51/gen.c (genCmp): optimization for RFE 1162453
5837         * src/SDCCglue.c (initPointer), fixed bug 1496419
5838         * support/regression/tests/bug1496419.c: new, added
5839
5840 2006-06-22 Borut Razem <borut.razem AT siol.net>
5841
5842         * support/regression/ports/pic16/support.c: use gpsim usart module from
5843           libgpsim_modules library
5844
5845 2006-06-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5846
5847         * device/include/mcs51/at89c51ed2.h: Fixed bug 1510144 changed
5848         IP0H to IPH0.
5849
5850 2006-06-19 Raphael Neider <rneider AT web.de>
5851
5852         * src/pic/glue.h,src/pic16/glue.h: added prototypes
5853         * src/pic/glue.c,src/pic16/glue.c (pic1x_stringInSet,
5854           pic1x_emitSymbolIfNew): NEW, check for a string in a set,
5855           (pic14printExterns,pic14printPublics,pic16printPublics,
5856           pic16_printExterns): use new functions to emit symbols
5857           (picglue,pic16glue): emit publics before emitting externs
5858         * src/pic/gen.c,src/pic16/gen.c (genFunction): remember the names of
5859           locally defined functions to avoid bug #1443651
5860         * support/regression/tests/bug-716242.c: removed pic16 workaround
5861         * support/regression/ports/pic16/spec.mk: ignore errors during build
5862
5863 2006-06-19 Raphael Neider <rneider AT web.de>
5864
5865         * src/pic/glue.h: added pic14aopLiteral prototype
5866         * src/pic/glue.c (pic14aopLiteral): return unsigned int
5867         * src/pic/gen.c: removed stdint.h dependency
5868           (aopGet): use Safe_strdup()
5869           (bitpatternFromVal): removed, replaced use with pic14aopLiteral
5870           (genDataPointerSet): use pic14aopLiteral()
5871         * src/pic16/glue.h, src/pic16/glue.c, src/pic16/gen.c: similar changes
5872           for pic16; thanks to Bernhard and Maarten
5873
5874 2006-06-18 Borut Razem <borut.razem AT siol.net>
5875
5876         * support/regression/tests/structflexarray.c: flexible array members
5877           not supported by gcc < 3
5878         * sim/ucsim/configure, sim/ucsim/configure.in: do not compile serio
5879           GUI tool by default
5880         * src/pic/gen.c: don't include [p]strdin.h on solaris
5881         * support/Util/pstdint.h: addad svn attributes
5882         * support/regression/tests/constantRange.c,
5883           support/regression/tests/rotate.c: include inttypes.h instead
5884           stdint.h on solaris, addad svn attributes
5885
5886 2006-06-18 Raphael Neider <rneider AT web.de>
5887
5888         * src/SDCCsymt.c (initCSupport): change return type of divschar to
5889           int for PIC16
5890         * src/pic16/genarith.c (genAddLit): sign-extend via standard routine
5891           (pic16_genMinusBits): simplified sign-extension
5892           (pic16_genUMult8XLit_8,pic16_genUMult8X8_8): renamed to
5893             pic16_genMult8XLit_n resp. pic16_genMult8X8_n, fixed and
5894             adjusted to correctly handle mixed-signed operands, disabled
5895             now unused multiplciation routines
5896         * src/pic16/gen.c (pic16_pushpCodeOp): fixed to handle literals
5897           (assignResultValue): added argument denoting the size of the result
5898             as returned by the function (fixes upcasts in assigning from
5899             function calls: char foo(); int i = foo();)
5900           (genCall,genPcall,genGenPointerGet,genReceive): pass size of
5901             function result to assignResultValue
5902           (genMult): disabled inlined multiplication code
5903           (genDiv): augmented to also handle the modulus operator, fixed to
5904             handle mixed-signed operands correctly
5905           (genMod): simply call genDiv, disabled unused code
5906           (genAssign): fixed missing (sign-)extension on result
5907         * src/pic16/main.c (_hasNativeMulFor): accept literals [-128..256) as
5908             valid char operands, allow signed operands for native code, added
5909             division and modulo operator handling
5910         * device/lib/pic16/libsdcc/char/divschar.c: divschar returns an int
5911
5912         As a consequence, onebyte.c (if split into two files) and muldiv.c
5913         pass regression tests.
5914
5915 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5916
5917         * doc/Makefile.in: two runs of makeindex seem needed to get
5918         correct page references in the index of sdccman.pdf
5919         * doc/sdccman.lyx: mentioned cmon51, added links, small changes
5920
5921 2006-06-17 Borut Razem <borut.razem AT siol.net>
5922
5923         * sdcc/device/lib/Makefile.in: corrected PORTINCDIR path
5924
5925 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5926
5927         * doc/sdccman.lyx: updated, added (porting source code, debugging),
5928         mentioned ec2drv and paulmon
5929
5930 2006-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
5931
5932         * as/mcs51/lkarea.c (lnkarea2): clear new xdatamap, bugfix for two
5933           consecutive abs areas
5934           (find_empty_space, allocate_space): added map to handle codemap or
5935            xdatamap,
5936           (lnksect2): renamed rloc to locIndex, fixed bug 960060 by handling
5937            absolute idata and xdata
5938         * as/mcs51/lkmem.c (summary2): updated legend
5939
5940 2006-06-16 Raphael Neider <rneider AT web.de>
5941
5942         * src/pic16/gen.c (shiftR2Left2Result): fixed bug #1507127
5943
5944 2006-06-13 Maarten Brock <sourceforge.brock AT dse.nl>
5945
5946         * debugger/mcs51/cmd.c (cmdListFunctions): fixed bugs 1181163 and
5947           1208515
5948         * src/SDCClrange.c (findPrevUse): fixed bug 1294475
5949
5950 2006-06-13 Vangelis Rokas <vrokas AT users.sourceforge.net>
5951
5952         * src/port.h (struct PORT): added field gp_tags, to hold the tag
5953         value of generic pointers,
5954         * src/avr/main.c,
5955           src/ds390/main.c,
5956           src/hc08/main.c,
5957           src/izt/i186.c,
5958           src/izt/tlcs900h.c,
5959           src/mcs51/main.c,
5960           src/pic/main.c,
5961           src/pic16/main.c,
5962           src/xa51/main.c,
5963           src/z80/main.c: PORT structure, added elements for gp_tags field,
5964         * src/SDCCsymt.h: replaced hardwired values of GPTYPE_* macros with
5965         fields in the PORT structure of each port,
5966         * src/SDCCast.c (decorateType): allow processing of generic pointers
5967         for PIC16 port (FPTRSIZE equals GPTRSIZE), also set GPTYPE_NEAR for
5968         S_FIXED symbols
5969
5970 2006-06-12 Maarten Brock <sourceforge.brock AT dse.nl>
5971
5972         * link/z80/lkgb.c,
5973         * link/z80/lkgg.c,
5974         * src/pic16/gen.c,
5975         * src/pic16/main.c,
5976         * src/pic16/pcode.c,
5977         * src/pic/main.c,
5978         * src/pic/pcoderegs.c,
5979         * src/SDCCicode.c,
5980         * src/SDCCmain.c,
5981         * src/SDCCsymt.c: replaced all exit(-1) by exit(EXIT_FAILURE) to fix
5982           bug 1504689 on minGW
5983
5984 2006-06-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5985
5986         * device/lib/printf_tiny.c: fixed bug #1465675 (%x format specifier)
5987
5988 2006-06-12 Bernhard Held <bernhard AT bernhardheld.de>
5989
5990         * src/SDCCast.c (backPatchLabels): fixed bug #1504636
5991
5992 2006-06-11 Maarten Brock <sourceforge.brock AT dse.nl>
5993
5994         * device/lib/printf_large.c (OUTPUT_CHAR, _output_char): added and used
5995           for optimization
5996
5997 2006-06-11 Vangelis Rokas <vrokas AT users.sourceforge.net>
5998
5999         * src/pic16/gen.c (genCast): fixed bug with assignment of a pointer
6000         to a char variable. Fixed bug #1504211
6001         * device/include/pic16/adc.h,
6002         device/include/lib/pic16/libio/adc/adcopen.c: applied patch #1364387
6003         and fixed bug #1364390
6004
6005 2006-06-10 Borut Razem <borut.razem AT siol.net>
6006
6007         * CVSROOT: removed the CVS left-over
6008
6009 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
6010
6011         * as/hc08/asmain.c (asexit),
6012         * as/hc08/lkmain.c (lkexit),
6013         * as/mcs51/asmain.c (asexit),
6014         * as/mcs51/lkmain.c (lkexit),
6015         * src/SDCCglue.c (DEFSETFUNC),
6016         * src/SDCCmain.c (linkEdit, assemble),
6017         * support/librarian/sdcclib.c (AddRel),
6018           replaced unlink() by standard C remove()
6019         * src/SDCC.y: replaced removePostIncDecOps() by createRMW()
6020         * src/SDCCast.c (replaceAstWithTemporary, createRMW,
6021           gatherImplicitVariables): new, added to fix bug 608752,
6022           (createFunction): added gatherImplicitVariables()
6023         * src/SDCCast.h: added createRMW prototype
6024         * src/SDCCsymt.h (struct symbol): added infertype
6025         * support/regression/tests/bug608752.c: new, added
6026
6027 2006-06-10 Raphael Neider <rneider AT web.de>
6028
6029         * src/pic16/gen.c (pic16_aopOp): use WREG as destination even for
6030           multibyte dummy reads (fixes #1503234)
6031
6032 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
6033
6034         * device/include/mcs51/compiler.h: new, added header file to enable
6035           creating common sfr definition header files for different compilers
6036
6037 2006-06-05 Raphael Neider <rneider AT web.de>
6038
6039         * src/pic16/{pcode.h,genarith.c}:
6040           introduced pCodeOp combining any two pCodeOps (previously only
6041           two register operands could be combined), removed pcop2 from
6042           pCodepReg, replaced pCodeOpReg2 with pCodeOp2, fixes #1492366
6043         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): added case for PO_TWO_OPS
6044         * src/pic16/gen.c (pic16_popGet2,pic16_popGet2p,pic16_popCombine2):
6045           rewritten to use new PO_TWO_OPS
6046         * src/pic16/main.c (_hasNativeMulFor): cover more cases natively,
6047         * src/pic16/pcode.c (pic16_newpCodeOpImmd): initialize rIdx field,
6048           (pic16_newpCodeOp): catch invalid attempts on PO_TWO_OPS,
6049           (pic16_newpCodeOp2): NEW, create combined pCodeOp,
6050           (pic16_get_op): embraced return arg to allow #define return(x),
6051             added new case for combined opcodes
6052           (pic16_get_op2): reduced to use pic16_get_op() on second pCodeOp,
6053           (pic16_pCode2str,pic16_getRegFrompCodeOp,
6054            pic16_getRegFromInstruction2): fixed/added handling of new pCodeOp
6055
6056 2006-06-04 Bernhard Held <bernhard AT bernhardheld.de>
6057
6058         * src/SDCCval.c (checkConstantRange): added
6059         * src/SDCCval.h: added checkConstantRange
6060         * support/Util/SDCCerr.c,
6061         * support/Util/SDCCerr.h: replaced unused W_IF_NEVER_TRUE and
6062         W_IF_ALWAYS_TRUE by W_COMP_RANGE and W_LIT_OVERFLOW
6063         * src/SDCC.y: moved early 'condition transformations' to SDCCast.c
6064         * src/SDCCast.c (decorateType): added checkConstantRange,
6065         added 'condition transformations' from SDCC.y so that now W_COMP_RANGE
6066         can be emitted with the correct always true/false warning,
6067         added optimization for double '!';
6068         result of decorateType() must be assigned back to the tree, because
6069         decorateType() can change the tree
6070         * src/SDCCicode.c (geniCodeLogic),
6071         (geniCodeAssign): replaced new checkConstantRange, added warnings,
6072         (checkConstantRange): removed, it was only a fragment which never
6073         emitted a warning
6074         * src/SDCCsymt.c (computeType): fixed promotion for
6075         "-1 < (unsigned bit) b"
6076         * src/pic/ralloc.c (packRegsForAssign),
6077         * src/pic16/ralloc.c (packRegsForAssign),
6078         * src/hc08/ralloc.c (packRegsForAssign),
6079         * src/z80/ralloc.c (packRegsForAssign): ported fix for bug #930931
6080         from mcs51
6081         * src/mcs51/ralloc.c (packRegsForAssign): removed outcommented source
6082         * support/regression/tests/constantRange.c: added
6083         * support/valdiag/tests/constantRange.c: added
6084         * support/valdiag/valdiag.py: added -DPORT_HOST=1
6085
6086 2006-06-02 Borut Razem <borut.razem AT siol.net>
6087
6088         * support/regression/ports/pic16/support.c: increase stack size
6089           to 255 bytes
6090         * support/regression/Makefile.in: sort tests by name so that the
6091           resutlts can be compared on different machines / platforms
6092
6093 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
6094
6095         * device/lib/printf_large.c (output_digit): optimized further, Tnx Frieder
6096         * src/ds390/gen.c (emitLabel): new, added,
6097           (genDjnz): fixed stack overflow bug,
6098           (throughout): cosmetic changes to sync with mcs51/gen.c,
6099           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl)
6100         * src/mcs51/gen.c (genEndFunction): small optimization,
6101           (throughout): cosmetic changes to sync with ds390/gen.c
6102
6103 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
6104
6105         * device/lib/printf_large.c (output_digit, calculate_digit): optimized,
6106           (_print_format): fixed printing pointers
6107         * src/mcs51/gen.c (emitLabel, movb): new, added,
6108           (genAssign): small optimization,
6109           (genDjnz): fixed stack overflow bug,
6110           (throughout): replaced sprintf with SNPRINTF,
6111           replaced mcs51_regWithIdx with REG_WITH_INDEX,
6112           replaced emitcode("mov", "b,...") with MOVB(...),
6113           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl),
6114           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
6115         * src/mcs51/peeph.def: added rules 140 and 264
6116         * src/SDCCmem.c (allocLocal): store register declared locals in DSEG/OSEG
6117           so they may get optimized into registers
6118
6119 2006-05-30 Maarten Brock <sourceforge.brock AT dse.nl>
6120
6121         * src/SDCCmain.c (optionsTable, parseCmdLine): handle --use-stdout
6122           immediately when encountered,
6123           (printUsage): always use stderr even on windows
6124
6125 2006-05-30 Bernhard Held <bernhard AT bernhardheld.de>
6126
6127         * src/SDCCast.c (isLoopCountable): fixed bug #1478316
6128         (processParms): fixed bug #1247551
6129         * src/SDCCmain.c (printVersionInfo, printOptions, printUsage,
6130         parseCmdLine, main): print '--version' to stdout,
6131         print 'help' to stdout if --help is given,
6132         print 'help' to stderr and exit with EXIT_FAILURE if no or bad
6133         arguments are given; fixed --help
6134
6135 2006-05-27 Bernhard Held <bernhard AT bernhardheld.de>
6136
6137         * src/SDCCcse.c (findPointerSet): fixed bug #1493710
6138         * support/regression/tests/bug-1493710.c: added
6139
6140 2006-05-27 Borut Razem <borut.razem AT siol.net>
6141
6142         * support/regression/fwk/lib/testfwk.c: define array in _printn() as
6143           static instead auto
6144         * support/regression/ports/pic16/support.c: increase stack size
6145           from default 64 bytes to 128 bytes
6146         * support/regression/tests/staticinit.c,
6147           support/regression/tests/float.c: regression tests fully enabled
6148           for pic16 port by putting the initialized data arrays into the code
6149           section
6150         * support/regression/ports/pic16/spec.mk: don't link default libraries.
6151           This was changed by mistake in the previous version.
6152
6153 2006-05-28 Vangelis Rokas <vrokas AT users.sourceforge.net>
6154
6155         * src/pic16/gen.c (genFunction, genEndFunction): some
6156         beautifications, fixed bug with falsely restoring FSR2 in large
6157         stack model, thanks to Beau E. Cox for reporting the bug
6158
6159 2006-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
6160
6161         * debugger/mcs51/break.c,
6162         * debugger/mcs51/cmd.c (throughout): removed unused variables and labels,
6163           use %p to print pointers, made address variables unsigned
6164         * debugger/mcs51/cmd.c (infoSymbols): added missing parameter to printf
6165         * debugger/mcs51/symtab.c (parseSymbol): must return something
6166         * src/mcs51/gen.c (aopForSym): small optimization,
6167            moved declarations mcs51_ptrRegReq and mcs51_nRegs to ralloc.h,
6168           (freeAsmop): added missing break,
6169           (aopPut): removed parameter bvolatile, determine it inside the function,
6170           (saveRegisters, unsaveRegisters): small optimization,
6171           (genIpush): removed pointless check,
6172           (throughout): replaced Safe_calloc, strcpy with Safe_strdup,
6173           replaced sprintf with SNPRINTF,
6174           replaced strcpy with strncpyz,
6175           updated aopPut calls,
6176           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
6177         * src/mcs51/ralloc.h:  added declarations mcs51_ptrRegReq and mcs51_nRegs
6178
6179 2006-05-24 Borut Razem <borut.razem AT siol.net>
6180
6181         * support/regression/tests/bug-221100.c: fixed xdata problem caused by
6182           modification of test for the pic16 port, put the array to the code
6183           memory for pic16port; thanks to Maarten Brock and Frieder Ferlemann
6184
6185 2006-05-23 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
6186
6187         * src/pic/gen.c: MSC 6 does not have <stdint.h>.  Use pstdint.h instead.
6188         * support/Util/pstdint.h: added
6189
6190 2006-05-22 Borut Razem <borut.razem AT siol.net>
6191
6192         * src/regression/Makefile: removed bool2.c test, added -q linker option
6193         * src/regression/add2.c, src/regression/add3.c, src/regression/bool1.c,
6194           src/regression/bool3.c, src/regression/nestfor.c, src/regression/ptrfunc.c,
6195           src/regression/compare.c, src/regression/or1.c, src/regression/compare2.c,
6196           src/regression/while.c, src/regression/compare3.c, src/regression/compare4.c,
6197           src/regression/compare5.c, src/regression/sub2.c, src/regression/rotate1.c,
6198           src/regression/rotate2.c, src/regression/rotate3.c, src/regression/rotate4.c,
6199           src/regression/switch1.c, src/regression/rotate5.c, src/regression/for.c,
6200           src/regression/add.c, src/regression/sub.c, src/regression/call1.c:
6201           define SUPPORT_BIT_TYPES 0, removed unused bit variables
6202
6203 2006-05-22 Raphael Neider <rneider AT web.de>
6204
6205         * src/pic16/gen.c (pic16_storeForReturn): fragile fix for
6206           bug #1492360 (problematic due to generic pointers, see code)
6207
6208 2006-05-22 Borut Razem <borut.razem AT siol.net>
6209
6210         * support/regression/ports/pic16/specs.mk: removed stack size linker
6211           directive
6212         * support/regression/tests/array.c,
6213           support/regression/tests/bitopcse.c,
6214           support/regression/tests/bug-908454.c,
6215           support/regression/tests/malloc.c: modified for pic16 regression test
6216         * support/regression/tests/bitfields.c:
6217           pic16 - excluded bitfileds of size > 8
6218         * support/regression/tests/bp.c: pic16 - reduced data size
6219         * support/regression/tests/bug-221100.c: pic16 - reduced data size
6220         * support/regression/tests/bug-460010.c:
6221           pic16 - used the absolute address the fits in memory
6222         * support/regression/tests/bug-716242.c:
6223           bug [ 1443651 ] pic 16: redefining symbol that cannot be redefined.
6224         * support/regression/tests/float.c:
6225           pic16 - excluded - data size too big
6226         * support/regression/tests/onebyte.c:
6227           pic16 - bug [ 1444425 ] onebyte.c regression tes fails on pic16
6228         * support/regression/tests/shifts.c:
6229           pic16 - function names probably have to differ in first X characters
6230           (gpasm limitation?)
6231         * support/regression/tests/staticinit.c:
6232           pic16 - excluded some tests due error: no target memory available for
6233           section ".idata"
6234
6235 2006-05-22 Borut Razem <borut.razem AT siol.net>
6236
6237         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
6238           second try. Thanks Stas Sergeev once more.
6239
6240 2006-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
6241
6242         * src/hc08/gen.c (transferAopAop): aop forced to stack was not restored,
6243           (genLeftShift, genRightShift): fixed bug 1491627
6244         * src/hc08/peeph.def (rules 7, 8.x): added
6245         * support/regression/tests/shifts.c (ShiftLeftByParam,
6246           ShiftRightByParam, testShiftByParam): added to test variable shifting
6247
6248 2006-05-20 Raphael Neider <rneider AT web.de>
6249
6250         * src/pic/gen.c (bitpatternFromVal): fixed for 64-bit machines
6251         * src/pic16/ralloc.c (newReg): use correct name in hashtable,
6252           (allocReg): add only new registers to dynAllocRegs,
6253           (pic16_assignRegisters): do not reset dynrIdx, fixes bugs
6254             #1489055, #1445850, and probably #1483693
6255
6256 2006-05-19 Vangelis Rokas <vrokas AT users.sourceforge.net>
6257
6258         * src/pic16/glue.c (pic16_emitConfigRegs, pic16_emitIDRegs): fixed
6259         bug in for-loop that didn't emit the last of CONFIG and ID registers
6260
6261 2006-05-18 Maarten Brock <sourceforge.brock AT dse.nl>
6262
6263         * src/mcs51/gen.c (genCodePointerGet): inc dptr instead of loading acc
6264           with offset
6265         * src/mcs51/peeph.def (186.x): updated and reenabled to fix bugs
6266           1489016, 1434401 and 1490124
6267         * src/ds390/peeph.def (186.x, 227.x): updated and reenabled to fix bugs
6268           1489016, 1434401 and 1490124
6269
6270 2006-05-17 Borut Razem <borut.razem AT siol.net>
6271
6272         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
6273           thanks Stas Sergeev
6274
6275 2006-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
6276
6277         * device/include/mcs51/P89c51RD2.h,
6278         * device/include/mcs51/P89LPC901.h,
6279         * device/include/mcs51/P89LPC922.h,
6280         * device/include/mcs51/P89LPC932.h: added, thanks Omar Espinosa
6281
6282 2006-05-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
6283
6284         * device/lib/pic16/libsdcc/stack/{stack.S, Makefile.in}: add workaround
6285         to fix missing stack pragma in compiled binary object file,
6286
6287 2006-05-14 Bernhard Held <bernhard AT bernhardheld.de>
6288
6289         * support/packihx/configure.in,
6290         * support/packihx/configure: removed warning, autoconf >= 2.5x can
6291         determine sizeof basic types even while cross compiling
6292
6293 2006-05-13 Bernhard Held <bernhard AT bernhardheld.de>
6294
6295         * src/avr/gen.c (aopop),
6296         * src/ds390/gen.c (aopOp),
6297         * src/hc08/gen.c (aopOp),
6298         * src/mcs51/gen.c (aopop),
6299         * src/pic16/gen.c (pic16_aopOp),
6300         * src/pic/gen.c (aopOp),
6301         * src/z80/gen.c (aopop): fix for bug #1479882; use new, exclusive asmop
6302         if size of operand is smaller than spill location
6303
6304 2006-05-12 Borut Razem <borut.razem AT siol.net>
6305
6306         * *.dsw, *.dsp: changed property svn:eol-style to CRLF since they
6307           have to have CR/LF line endings even if they are checked out on *nix
6308           or on WIN32 in cygwin binmode
6309
6310 2006-05-12 Maarten Brock <sourceforge.brock AT dse.nl>
6311
6312         * doc/sdccman.lyx: documented numeric ranges, WEBDOC #1442369
6313         * device/include/ds80c390.h: added sfr16 definitions
6314         * src/ds390/gen.c,
6315         * src/ds390/gen.h,
6316         * src/ds390/main.c,
6317         * src/ds390/ralloc.c,
6318         * src/ds390/ralloc.h: changes all over the place to sync with mcs51
6319           fixing several bugs and adding sfr16/sfr32, reentrant bit params,
6320           bit returning functions
6321         * support/regression/tests/sfr16.c: enabled test on ds390
6322
6323 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6324
6325         * src/hc08/gen.c (asmopToBool, genIfx): fix for bug #1429722
6326         * src/hc08/gen.c (storeRegToAop): fix for bug #1439894
6327
6328 2006-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
6329
6330         * sim/ucsim/sim.src/memcl.h: added get_decoder() to cl_address_space
6331         * sim/ucsim/sim.src/mem.cc: implemented cl_address_space::get_decoder,
6332           (cl_address_space constructor): removed expensive initialization,
6333           (cl_address_space::get_cell): extended for late initialization,
6334           (cl_address_space::*): use late initialization,
6335           (cl_address_decoder::activate): removed expensive initialization,
6336           This reduced regression test running time by 25%
6337
6338 2006-05-11 Bernhard Held <bernhard AT bernhardheld.de>
6339
6340         * packihx/,
6341         * configure.in,
6342         * configure,
6343         * sdcc.dsw,
6344         * Makefile.bcc,
6345         * Makefile.in,
6346         * support/packihx/Makefile.in,
6347         * support/packihx/clean.mk,
6348         * support/packihx/Makefile.bcc,
6349         * support/packihx/PackIhx.dsp: moved packihx to support/packihx
6350
6351 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6352
6353         * src/SDCCval.c (valNot): fix for regression test failure
6354           of not.c on big endian hosts
6355
6356 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
6357
6358         * device/inlcude/mcs51/msc1210.h: new, added, thanks Philippe Latu
6359
6360 2006-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6361
6362         * device/lib/mcs51/Makefile.in: changed string comparison operator
6363           to = for POSIX compliance; == is bash extension
6364
6365 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
6366
6367         * device/lib/hc08/_mulint.c: applied patch 1485428, thanks
6368           kosmonaut_pirx
6369
6370 2006-05-09 Vangelis Rokas <vrokas AT users.sourceforge.net>
6371
6372         * src/pic16/gen.c (pic16_freeAsmop): release any temp registers
6373         allocated by aopForSym thus fixing bug #1478657 about failed testfwk.c
6374         * src/pic16/main.c (_pic16_keywords): added 'sfr16' keyword,
6375         * src/pic16/ralloc.c (pic16_allocWithIdx): also a fix for bug exposed by
6376         bug report #1478657,
6377
6378 2006-05-05 Borut Razem <borut.razem AT siol.net>
6379
6380         * doc/Makefile.in: remove of WARNINGS and labels.pl immediately after
6381           making the html
6382
6383 2006-05-02 Borut Razem <borut.razem AT siol.net>
6384
6385         * doc/Makefile.in: removed *.ind dependency since there is no rule to
6386           create *.ind, which made make to fail if invoked with -j 2
6387
6388 2006-05-01 Maarten Brock <sourceforge.brock AT dse.nl>
6389
6390         * src/SDCCglue.c (emitRegularMap): partial fix for bug 1477149, thanks
6391           Hubert Sack for patch 1479782
6392
6393 2006-05-01 Vangelis Rokas <vrokas AT users.sourceforge.net>
6394
6395         * src/pic16/glue.c (pic16_printIvalStruct): fixed bug #1445929
6396
6397 2006-05-01 Raphael Neider <rneider AT web.de>
6398
6399         * src/pic/device.c (sanitise_processor_name): only remove p(ic) prefix,
6400           (create_pic): store only prefix-free device name,
6401           (init_pic): check for device names with "16" prefix,
6402           (list_valid_pics),
6403         * src/pic/device.h (struct PIC_device),
6404         * src/pic/main.c (_pic14_genAssemblerPreamble): adapted to single
6405             stored device name,
6406         * device/include/pic/pic12f{635,675,629,683}.h,
6407         * device/lib/pic/libdev/pic12f{635,675,629,683}.c: NEW device libraries
6408         * device/lib/pic/libdev/Makefile.in: allow pic12* devices,
6409         * device/include/pic/pic16f505.h,
6410         * device/lib/pic/libdev/pic16f505.c: removed
6411         * device/include/pic/pic14devices.txt: added support for pic12f
6412             devices, removed unsupported non 16-bit devices
6413             [above changes provided by patch from Zik Saleeba]
6414         * src/pic/*, src/pic16/*, device/include/pic16/*,
6415           device/lib/pic/**, device/lib/pic16/**: obfuscated email address
6416
6417 2006-05-01 Borut Razem <borut.razem AT siol.net>
6418
6419         * configure.in, configure, doc/Makefile.in:
6420           sync with nightly build makefile - latex, dvipdf and dvips
6421           not needed any more
6422
6423 2006-04-30 Bernhard Held <bernhard AT bernhardheld.de>
6424
6425         * support/scripts/sdcc.nsi: removed all Readmes and Makefiles
6426         in the library source
6427
6428 2006-04-30 Maarten Brock <sourceforge.brock AT dse.nl>
6429
6430         * support/regression/ports/hc08/spec.mk: fixed bug 1478892
6431
6432 2006-04-28 Raphael Neider <rneider AT web.de>
6433
6434         * src/pic16/pcode.c (pic16_newpCodeOpLit12),
6435         * src/pic16/gen.c (pic16_popGetLit12): NEW, create 12 bit literal,
6436           (pic16_loadFSR0): handle 12 bit literals correctly, fixes #1440527
6437         * src/pic16/pcode.h: added prototype for pic16_newpCodeOpLit12()
6438
6439 2006-04-28 Bernhard Held <bernhard AT bernhardheld.de>
6440
6441         * device/lib/pic/libdev/Makefile.in,
6442         * device/lib/hc08/Makefile.in,
6443         * device/lib/gbz80/Makefile.in,
6444         * device/lib/z80/Makefile.in,
6445         * device/lib/ds390/Makefile.in,
6446         * device/lib/ds400/Makefile.in: added srcdir to include search path,
6447         thanks to Borut for the bug report
6448         * configure.in,
6449         * configure: always create doc/Makefile independent from --enable-doc
6450         * Makefile.in: always install from directory doc independent from
6451         --enable-doc
6452         * device/lib/pic/Makefile.in: added libdev again, it was erroneously
6453         removed
6454         * device/lib/pic/libdev/Makefile.in: fixed VPATH build
6455         * doc/Makefile.in: install *.txt if present
6456         * device/include/Makefile.in (install): added installation of pic/*.inc
6457         and pic/*.txt files again, they were erroneously removed
6458
6459 2006-04-28 Raphael Neider <rneider AT web.de>
6460
6461         * src/pic/{gen.c,main.h,pcode.c},
6462         * src/pic16/{gen.c,pcode.c}: quietened compiler warnings
6463             concerning signedness with casts
6464
6465 2006-04-28 Raphael Neider <rneider AT web.de>
6466
6467         * src/pic/gen.c (genFunction): set global pic14_hasInterrupt on
6468             definition of an interrupt handler,
6469         * src/pic/glue.c (pic14_emitInterruptHandler): moved output of
6470             interrupt handler stuff from picglue() to separate routine,
6471           (picglue): enabled definition of intr handlers in files w/o main()
6472
6473 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
6474
6475         * support/librarian/sdcclib.c: moved include <limits.h> up to enable
6476           compilation with MSVC 2005 Express Edition (VC8)
6477
6478 2006-04-26 Bernhard Held <bernhard AT bernhardheld.de>
6479
6480         * device/lib/Makefile: fixed build of gbz80 lib
6481
6482 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
6483
6484         * support/regression/tests/bug-460010.c,
6485         * support/regression/tests/bug-524691.c,
6486         * support/regression/tests/bug-716242.c: removed conditional defines
6487           that are already in testfwk.h
6488
6489 2006-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
6490
6491         * src/ds390/gen.c (AccAXRrl1, AccAXLrl1): changed to real rotate by 1,
6492           (AccAXRsh1): added, shift right by 1,
6493           (AccAXLsh, AccAXRsh, AccAXRshS): updated for AccAXRrl1, AccAXRsh1 and
6494            AccAXLrl1
6495         * support/regression/tests/rotate.c: use <stdint.h> and enabled ds390
6496
6497 2006-04-25 Bernhard Held <bernhard AT bernhardheld.de>
6498
6499         * src/SDCCast.c (decorateType): partial fix for RFE 1475769,
6500         remove cast to same type
6501         * src/SDCCast.c (decorateType): fix for RFE 1475742,
6502         optimize 'ifx (op == 0)' resp. 'ifx (op != 0)'
6503         * as/z80/Makefile,
6504         * link/z80/Makefile: removed, they have moved to
6505         Makefile.in files
6506         * configure,
6507         * configure.in: replaced duplicate message about ucsim by missing sdcpp
6508         * install-sh: fix bug #1204398 by setting umask 0022
6509         * device/lib/Makefile: separate build of z80 and gbz80 lib
6510
6511 2006-04-24 Bernhard Held <bernhard AT bernhardheld.de>
6512
6513         Enabled VPATH feature: changed nearly all Makefiles (149 files).
6514         See sdccman.lyx '2.4.10 VPATH feature' about how to use it.
6515
6516         One basic decision: e.g. src/clean.mk includes further files. In order
6517         to make this work there are two solutions:
6518         - rename another dozen clean.mk to clean_in.mk, add srcdir to them and
6519           run configure on them. This way they can use
6520           'include $(srcdir)/port-clean.mk'
6521         - always include clean.mk by the Makefile at the same level. To avoid
6522           that `make clean` tries to include and build Makefile.dep the
6523           MAKECMDGOALS are examined (see e.g. src/Makefile.in). This has been
6524           implemented, because now even `make uninstall` doesn't create
6525           Makefile.in. clean.mk could be eliminated by pasting it in
6526           Makefile.in.
6527
6528         * debugger/mcs51/Makefile.in: build own objects from library sources
6529         (SLIB, SDCC) in current directory
6530
6531         * configure, configure.in: renamed --disable-device-lib-build in
6532         --disable-device-lib; added --enable-doc, the required tools are
6533         searched by configure; added result message; the toolchain for the
6534         belonging ports are now only built, if the port is enabled.
6535
6536         * support/regression/*: all output is written in directory gen, because
6537         the fwk and ports directories don't livet in the build tree using vpath
6538
6539         * doc/sdccman.lyx: renamed --disable-device-lib-build to
6540         --disable-device-lib, added --enable-doc, added section VPATH
6541
6542         * sim/ucsim/configure.in,
6543         * sim/ucsim/configure.in: hc08 couldn't be disabled, now hc08 and
6544         z80 are enabled by default
6545
6546 2006-04-24 Raphael Neider <rneider AT web.de>
6547
6548         * src/pic/device.c (pic14_assignConfigWordValue): remember assignments
6549             to config word, "pic14_"-prefixed some extern functions
6550           (pic14_emitConfigWord): emit __config directive(s) if assignment to
6551             config word has been found
6552         * src/pic/device.h: added prototypes
6553         * src/pic/pcode.c: added "pic14_"-prefix where needed
6554         * src/pic/ralloc.c (IS_CONFIG_ADDRESS,pic14_assignRegisters): cosmetic
6555             fixup
6556         * src/pic/glue.c (pic14_constructAbsMap): handle assignments to config
6557             words,
6558           (pic14emitRegularMap): ignore config words,
6559           (pic14createInterruptVect): moved generating __config directives away
6560           (picglue): have __config directives emitted
6561
6562 2006-04-24 Borut Razem <borut.razem AT siol.net>
6563
6564         * doc/Makefile: sync with nightly build makefile
6565
6566 2006-04-24 Raphael Neider <rneider AT web.de>
6567
6568         * src/pic/pcoderegs.c (OptimizeRegUsage): do not optimize
6569             registers that have not been assigned proper liveranges,
6570             fixes #1469504 and #1474602,
6571           (pCodeRegOptimizeRegUsage): fixed typo in comment
6572
6573 2006-04-24 Borut Razem <borut.razem AT siol.net>
6574
6575         * device/examples/main8051.c: deleted - it was removed from CVS
6576           24.mar.2000 and after that modified 18.feb.2001, so it reappered
6577           after the transition to Subversion
6578         * src/SDCCalloc.h: deleted - it was removed  from CVS
6579           3.feb.2001 and after that modified 18.feb.2001, so it reappered
6580           after the transition to Subversion
6581         * sim/ucsim/cpu.gif, sim/ucsim/interrupt.gif, sim/ucsim/new.gif,
6582           sim/ucsim/serial1.gif, sim/ucsim/serial2.gif,
6583           sim/ucsim/term_cpuopt.gif, sim/ucsim/timers.gif, sim/ucsim/wins.gif,
6584           sim/ucsim/post.jpg, sim/ucsim/UCsim.jpg: corrected
6585
6586 2006-04-22 Maarten Brock <sourceforge.brock AT dse.nl>
6587
6588         * as/asx8051.dsp: added mcs51/strcmpi.h
6589         * as/hc08/as_hc08.dsp: added asm.h, m6808.h, strcmpi.h
6590         * as/hc08/aslink.h: updated lnksect prototype
6591         * as/hc08/asm.h,
6592         * as/mcs51/asm.h: added a_addr to struct area and s_org to struct sym
6593         * as/hc08/asmain.c,
6594         * as/mcs51/asmain.c (asmbl): init dot.s_org for S_ORG,
6595           (newdot): handle A_ABS
6596         * as/hc08/asout.c,
6597         * as/mcs51/asout.c (outarea): output address
6598         * as/hc08/lkaomf51.c,
6599         * as/mcs51/lkaomf51.c: disabled unused array UsageType
6600         * as/hc08/m08pst.c,
6601         * as/mcs51/i51pst.c,
6602         * as/z80/z80pst.c: "ABS" is not A_OVR
6603         * as/hc08/lkarea.c (newarea): read a_addr,
6604           (lnkarea): added codemap array, sort absolute areas to the front,
6605            combine all GSINITx/GSFINAL,
6606           (find_empty_space, allocate_space): new functions,
6607           (lnksect): return next address, handle absolute sections
6608         * as/mcs51/lkarea.c (newarea): read a_addr,
6609           lnksect2 prototype changed,
6610           (lnkarea2): define codemap unsigned, combine all GSINITx/GSFINAL,
6611           (find_empty_space, allocate_space): new, factored out of lnksect2,
6612           (lnksect2): return next address, handle absolute sections
6613         * as/hc08/lkhead.c,
6614         * as/mcs51/lkhead.c (newhead): head is absolute but not overlay
6615         * as/hc08/lklibr.c (addfile, fndsym),
6616         * as/mcs51/lklibr.c (addfile, buildlibraryindex, fndsym): prevent
6617           index out of range and detect both '\' and '/'
6618         * device/include/mcs51/c8051f200.h: added _XPAGE, removed bad comment
6619         * device/include/stdbool.h: removed SDCC_ds390 from check to pass
6620           regression tests (ds390 cannot return bool yet)
6621         * doc/sdccman.lyx: changed version number, document changed --no-peep,
6622           document critical interrupts on z80, document changed SDCC define
6623         * src/asm.c (_asxxxx_mapping): fixed .org directive,
6624           (_a390_mapping): added .org directive
6625         * src/hc08/gen.c (transferAopAop): made bytemask log to fix warning,
6626           (genMultOneByte): fixed warnings
6627         * src/hc08/hc08.dsp: lowered warning level to 2 to suppress pedantic
6628           ones
6629         * src/pic16/device.c: removed newReg prototype, removed BYTE_IN_LONG
6630         * src/pic16/gen.c (pic16_popGetLabel): made parameter key signed,
6631           (pic16_genLeftShiftLiteral, genRightShiftLiteral): fixed warnings
6632         * src/pic16/gen.h: changed prototype for pic16_popGetLabel
6633         * src/pic16/main.c: removed newReg prototype
6634         * src/pic16/pcode.c,
6635         * src/pic16/pcode.h (pic16_emitDB): changed parameter c to int to fix
6636           warnings
6637         * src/pic16/pic16.dsp: lowered warning level to 2 to suppress pedantic
6638           ones
6639         * src/pic16/ralloc.c
6640         * src/pic16/ralloc.h (newReg): changed type to int and size to unsigned
6641           to fix warnings
6642         * src/pic/pcode.c (allocInternalRegister): changed parameter optype
6643           from short to PIC_OPTYPE
6644         * src/pic/pic.dsp: lowered warning level to 2 to suppress pedantic ones
6645         * src/pic/ralloc.c (newReg, allocInternalRegister): changed parameter
6646           optype from short to PIC_OPTYPE
6647         * src/port.h: made int_size unsigned to fix warnings
6648         * src/SDCC.y: fixed warning on MSVC
6649         * src/SDCCicode.c (getArraySizePtr): return unsigned int
6650         * src/SDCCopt.c (convertToFcall): fixed warnings
6651         * src/SDCCsymt.h: removed double prototype for genSymName
6652         * src/xa51/ralloc.c (allocReg): made size unsigned int, type int and
6653           offset int to fix warnings
6654
6655 2006-04-22 Borut Razem <borut.razem AT siol.net>
6656
6657         * doc/sdccman.lyx, */Makefile, */Makefile.in:
6658           references to CVS replaced with Subversion
6659
6660 2006-04-21 Borut Razem <borut.razem AT siol.net>
6661
6662         * doc/sdccman.lyx, */Makefile, */Makefile.in:
6663           references to CVS replaced with Subversion
6664
6665 2006-04-19 Borut Razem <borut.razem AT siol.net>
6666
6667         * src/version.awk: adapted for svn
6668         * /asxxxx/asxhtml/*.gif: set property svn:mime-type to image/gif
6669           sim/ucsim/doc/*.gif: set property svn:mime-type to image/gif
6670           sim/ucsim/doc/*.jpg: set property svn:mime-type to image/jpeg
6671           /binutils-avr/etc/*.vi, *.jin: removed all properties
6672           support/scripts/sdcc.ico: set property svn:mime-type to image/x-icon
6673
6674 2006-04-19 Borut Razem <borut.razem AT siol.net>
6675
6676         * CVS to Subversion migration completed
6677
6678 2006-04-18 Borut Razem <borut.razem AT siol.net>
6679
6680         * support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}/lib/pic/*.o,
6681           ${DEV_ROOT}/lib/src/pic/libdev/*.S, ${DEV_ROOT}/lib/src/pic/libdev/*.inc
6682
6683 2006-04-17 Borut Razem <borut.razem AT siol.net>
6684
6685         * device/include/Makefile.in: added pic/*.inc to the installation
6686
6687 2006-04-15 Bernhard Held <bernhard AT bernhardheld.de>
6688
6689         * support/regression/collate-results.py: fixed output in case of
6690         a valdiag error
6691         * support/regression/generate-cases.py: fixed splitting of pathnames
6692         with dots
6693         * as/hc08/lklibr.c (addfile),
6694         * as/mcs51/lklibr.c (addfile): fixed off-by-one bug
6695
6696 2006-04-11 Raphael Neider <rneider AT web.de>
6697
6698         * src/pic16/gen.c (getFreePtr, pic16_popRegFromString),
6699         * src/pic16/ralloc.c (pic16_allocregWithName): removed debug output
6700         * src/pic16/pcode.c (assignValnums): fixed #1460578
6701
6702 2006-04-11 Raphael Neider <rneider AT web.de>
6703
6704         * device/lib/pic/libdev/*.c,
6705         * device/include/pic/*.h: replaced sfr and data with __sfr and __data,
6706           fixes #1468739, enables compilation in --std-c99 mode
6707         * support/scripts/inc2h.pl: emit __sfr/__data instead of sfr/data
6708
6709 2006-04-11 Raphael Neider <rneider AT web.de>
6710
6711         * src/pic/device.c (find_device): removed debug output
6712           (list_valid_pics): enabled verbose listing of supported devices
6713         * device/include/stdbool.h: define bool as char for pic14/16 as well
6714
6715 2006-04-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6716
6717         * src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)"
6718
6719 2006-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
6720
6721         * .version: bumped version to 2.5.6
6722         * src/pic/ralloc.c (newReg): MSVC doesn't support __builtin_return_address
6723
6724 2006-04-06 Raphael Neider <rneider AT web.de>
6725
6726         * .version: bumped version to 2.5.6 (pic14 ABI changed)
6727         * src/SDCCmain.c: add -DSDCC_PROCESSOR=<id> for pic14 port
6728         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap,
6729           pic14emitRegularMap,pic14emitMaps): moved output for absolute symbols to
6730             pic14_constructAbsMap
6731           (pic14printPublics): declare absolute global symbols as global
6732           (pic14createInterruptVect),
6733         * src/pic/ralloc.c (IS_CONFIG_ADDRESS): support second config word,
6734           (newReg): assume new registers unused, use correct name in
6735             hashtable (reg->name instead of name), more debugLog output
6736         * src/pic/device.h (PIC_device): added fields for verbose output
6737         * src/pic/device.c: moved device definition to pic14devices.txt,
6738             added routines for runtime parsing of pic14devices.txt,
6739             added support for second config word
6740         * src/pic/main.c (_process_pragma): removed #pragma maxram,
6741           (_pic14_keywords): no longer accept "bit" and "sbit" keywords
6742           (_pic14_initPaths): add search paths with "pic" suffix (not "pic14")
6743           (_pic14_parseOptions): moved pCodeInitRegisters here
6744           (_pic14_do_link): add "pic$(ARCH).lib" to linker arguments
6745         * src/pic/pcode.c (AnalyzeBanking): bail out on unset processor,
6746           (pCodeInitRegisters): rewrapped comments, perpared new approach to
6747             handling the pseudo stack
6748         * device/lib/Makefile.in: ignore failures in objects-pic16,
6749         * device/lib/pic/{configure,configure.in,Makefile}: added libdev/
6750         * device/lib/pic/NEWS: document new dependency on picXXX.lib
6751         * device/lib/pic/Makefile.subdir,
6752         * device/lib/pic16/Makefile.subdir: improved clean rules
6753         * device/lib/pic/libdev/: NEW, pic14 device libraries
6754         * device/lib/pic/libsdcc/_gptr{get,put}{1,2,3,4}.S: use _X not X
6755         * device/lib/pic/libsdcc/macros.inc: use _X not X, declare default SFRs
6756         * device/include/Makefile.in: create subdir and install pic14 headers
6757         * device/include/pic/p16f_common.inc: removed unused declarations
6758         * device/include/pic/pic16*.h: added header files for 100+ 14 bit
6759             PICs from inc2h.pl v1.6,
6760             replaced BIT_AT macros with struct declarations
6761         * device/include/pic/pic14devices.txt: definition of supported devices,
6762             all above improvements contributed by Zik Saleeba, thanks
6763         * support/scripts/inc2h.pl: removed BIT_AT, replaced with structs
6764         * support/scripts/sdcc.nsi: also install pic14 device libraries and
6765             headers
6766
6767 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
6768
6769         * device/include/mcs51/c8051f410.h: added interrupt numbers,
6770         * device/include/mcs51/c8051f200.h: old SiLabs mcu completes the list,
6771           thanks to Charles Olds
6772
6773 2006-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6774
6775         * debugger/mcs51/cmd.c (infoRegisters): show return address on stack
6776
6777 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
6778
6779         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug 1464657
6780         * src/mcs51/gen.c (genJumpTab): fixed bug in medium model
6781         * support/regression/bug1464657.c: added, new test
6782
6783 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
6784
6785         * src/SDCCmain.c (preProcess): implemented RFE 1449908, define SDCC as the
6786           version number
6787
6788 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
6789
6790         * src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
6791           --no-peep and --peep-file <file> are used don't use default rules but
6792           do use the <file>
6793
6794 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
6795
6796         * src/mcs51/gen.c (genCall): fixed bug 1457608
6797
6798 2006-03-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6799
6800         * doc/sdccman.lyx: reverted to version 1.129 of december as my latest
6801         changes seem to cause (trigger?) problems with the build system.
6802
6803 2006-03-29 Maarten Brock <sourceforge.brock AT dse.nl>
6804
6805         * src/SDCCpeeph.c (operandsLiteral): new, added,
6806           (callFuncByName): inserted operandsLiteral
6807         * src/mcs51/peeph.def: reenabled 132.e, added extra check to 132.x
6808
6809 2006-03-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6810
6811         * doc/sdccman.lyx: added paragraph "Use of SDCC in Education"
6812         * src/mcs51/peeph.def: disabled rule 132.e fixing bug #1453093
6813
6814 2006-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
6815
6816         * src/z80/gen.c (genFunction, genEndFunction): fixed bug 1160666,
6817           implemented patch 1120823 Thanks to Willy De la Court (normal
6818           interrupts need an interrupt number now if they are made critical),
6819           and enabled nesting of critical functions though not for gbz80
6820           (genCritical, genEndCritical): added functions
6821           (genZ80Code): added cases for CRITICAL and ENDCRITICAL
6822         * src/z80/mappings.i: added "ei" to all mappings
6823
6824 2006-03-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6825
6826         * sim/ucsim/cmd.src/newcmdcl.h: applied patch fixing GCC 4.1 build
6827         submitted by the Debian SDCC maintainer Aurelien Jarno:
6828         "Credits goes to Martin Michlmayr, who rebuilt the whole Debian
6829         archive with gcc 4.1 on mips and wrote the patch"
6830
6831 2006-03-16 Raphael Neider <rneider AT web.de>
6832
6833         * src/pic16/genarith.c (genAddLit): simplified and fixed case where
6834           the left operand is shorter than the result (c* = lit-c* + int),
6835           fixes bug #1450796
6836         * src/pic16/gen.c (genRightShift): check IS_SYMOP before accessing
6837           OP_SYMBOL
6838
6839 2006-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
6840
6841         * src/.version: increased version number to 2.5.5
6842         * src/SDCCmain.c (linkEdit): do not test for PIC16 target since, PIC16
6843         linking is done manually in pic16 port's _linkEdit,
6844         * src/SDCCsymt.c (compStructSize): for target PIC16 and shell variable
6845         PIC16_PACKED_BITFIELDS, compact bitfield structures as much as possible,
6846         * src/pic16/gen.c (aopForSym): when direct register name is WREG then
6847         allocate asmop as AOP_ACC,
6848         (aopForRemat): added parameter 'bool result' in function declaration,
6849         (pic16_aopGet): return AOP_ACC when accessing WREG,
6850         (pic16_popGetTempReg): minor modification,
6851         (pic16_popRegFromIdx): first try with 'pic16_regWithIdx' then with
6852         'pic16_allocWithIdx',
6853         (genPcall): removed ftype, usage of OP_SYM_TYPE asserted error when
6854         calling function in absolute addresses,
6855         (genAssign): take into account AOP_ACC asmop,
6856         * src/pic16/pcode.c (pic16_newpCodeOpReg): minor modifications,
6857         * src/pic16/pcoderegs.c: some debug functions and lines added,
6858         * src/pic16/ralloc.c (decodeRegType): added but commented out,
6859         * (pic16_typeRegWithIdx): search 'pic16_dynInternalRegs' for given
6860         register too,
6861         * (pic16_findFreeReg, pic16_findFreeRegNext): allocate new register via
6862         call to allocReg, not by manually allocating a new one,
6863         (pic16_assignRegisters): now before going through the register
6864         allocating functions mark all registers as free. This eliminates some
6865         side effects resulting from peephole parser done earlier in the backbone
6866
6867 2006-03-13 Maarten Brock <sourceforge.brock AT dse.nl>
6868
6869         * src/SDCCicode.c (geniCodeLogic),
6870         * src/SDCCast.c (decorateType): applied patch by Bernhard for rfe 1422617
6871
6872 2006-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
6873
6874         * src/mcs51/gen.c (sameReg): new, checks if two aop regs are the same,
6875           (genSend): bugfix, do not allocate and free twice,
6876           (shiftRLong): handle partially overlapping aops
6877         * support/regression/tests/bitopcse.c: fixed warning redefined idata
6878
6879 2006-03-08 Borut Razem <borut.razem AT siol.net>
6880
6881         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata
6882           for pic16
6883
6884 2006-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
6885
6886         * support/regression/tests/bug1409955.c: new, added
6887         * src/mcs51/gen.h: changed asmop.freed:1 to asmop.allocated for tracking
6888         * src/mcs51/gen.c (newAsmop): set asmop.allocated to 1,
6889           (aopForSym, aopOp): increment asmop.allocated if reused,
6890           (freeAsmop): decrement asmop.allocated and check for zero instead of
6891           using asmop.freed,
6892           (freeForBranchAsmop): use asmop.allocated instead of asmop.freed,
6893           (genNot, genCpl, genUminus, genMinus, genMult, genDiv, genMod, genCmpGt,
6894            genCmpLt, genAndOp, genOrOp, genAnd, genOr, genXor, genRRC, genRLC,
6895            genGetHbit, genGetAbit, genGetByte, genGetWord, genSwap,
6896            genLeftShiftLiteral, genLeftShift, genRightShiftLiteral,
6897            genSignedRightShift, genRightShift, genDataPointerGet,
6898            genPagedPointerGet, genFarPointerGet, genCodePointerGet,
6899            genGenPointerGet, genDataPointerSet, genAssign, genCast): free asmop's
6900             in reverse order from allocation,
6901           (genPlus, genCmpEq): free asmop's in reverse order from allocation and
6902             added swappedLR to keep track
6903         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata,
6904           pdata & code for GCC, z80, gbz80 & hc08
6905         * support/regression/tests/zeropad.c: moved defines to testfwk.h
6906
6907 2006-03-08 Raphael Neider <rneider AT web.de>
6908
6909         * src/pic16/main.c (_hasNativeMulFor): fixed bug #1444425
6910
6911 2006-03-07 Maarten Brock <sourceforge.brock AT dse.nl>
6912
6913         * device/include/mcs51/c8051f410.h: new SiLabs mcu
6914         * src/ds390/peeph.def: disabled 186.d and 227.a as fix for #1434401
6915         * support/regression/tests/array.c: added parenthesis, made arrays unsigned
6916
6917 2006-03-06 Borut Razem <borut.razem AT siol.net>
6918
6919         * support/regression/ports/pic16/spec.mk: link with libm18f.lib,
6920           made the linker quiet
6921
6922 2006-03-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
6923
6924         * src/pic16/gen.c (genPcall): fixed bug #1443644
6925         * src/pic16/device.h (struct pic16_options_t): added 'int CATregs' flag
6926         which dumps before the function entry point a data byte which represents
6927         the number of the local variables used by the specified function, added
6928         'xinst' for initial support for Extended Instruction Support,
6929         * src/pic16/gen.c (aopForSym, pic16_aopGet): beautifications,
6930         (pic16_testStackOverflow): do not prefix GSTACK_TEST_NAME with
6931         port->fun_prefix anymore (may change later),
6932         (genFunction, genEndFunction): do not store/restore local registers for
6933         _main (this should take care the --main-return command line option in
6934         the future),
6935         (genOr): removed some legacy pic-port instructions,
6936         * src/pic16/genarith.c (genAddLit): re-enabled old code because
6937         performing operations with SFR's causes data to be written more than
6938         once to each SFR. Perhaps SFRs should be handled in special cases...
6939         * src/pic16/glue.c: macros BIG_ENDIAN and BYTE_IN_LONG are moved to
6940         pcode.h
6941         * src/pic16/main.c (_process_pragma): stack bound checking did not take
6942         into account for stack starting position,
6943         (struct OPTIONS pic16_optionsTable): added command line argument
6944         --extended or -y for Extended Instruction Support,
6945         * src/pic16/ralloc.c (pic16_decodeOp): added case for FUNCTION,
6946         (deassignLRs): *** perhaps the most important change, old 'for' code
6947         (commented out for reference), didn't account for some registers which
6948         were left marked 'not free' after a pointer operation. The change
6949         reduces register usage a lot in some cases
6950
6951 2006-03-04 Borut Razem <borut.razem AT siol.net>
6952
6953         * support/regression/ports/hc08/spec.mk: remove *.asm in traget
6954           _clean
6955         * support/regression/tests/bug-524697.c: decreased array size for
6956           mcs51 to fit into the internal RAM
6957         * support/regression/Makefile.in: a little bit more verbose
6958
6959 2006-03-03 Borut Razem <borut.razem AT siol.net>
6960
6961         * support/regression/fwk/lib/testfwk.c,
6962           support/regression/fwk/include/testfwk.h: introduced function
6963           _prints(), nonrecursive _printn(), call _initEmu() from main()
6964         * support/regression/ports/gbz80/support.asm,
6965           support/regression/ports/ucz80/support.asm,
6966           support/regression/ports/z80/support.asm,
6967           support/regression/ports/ds390/support.c,
6968           support/regression/ports/hc08/support.c,
6969           support/regression/ports/host/support.c,
6970           support/regression/ports/mcs51/support.c,
6971           support/regression/ports/xa51/support.c: added empty _initEmu()
6972           function
6973         * support/regression/ports/pic16/gpsim.cmd,
6974           support/regression/ports/pic16/spec.mk,
6975           support/regression/ports/pic16/support.c,
6976           support/regression/Makefile.in: added pic16 regression test
6977
6978 2006-03-01 Raphael Neider <rneider AT web.de>
6979
6980         * src/pic16/gen.c (genPcall,pic16_derefPtr,genGenPointerGet,
6981           genConstPointerGet): use safe way of generating MOVFF to cover
6982             literals as well as registers, fixes bug #1440527
6983         * src/pic16/glue.c (pic16_printIvalBitFields): prevent NULL pointer
6984             dereference
6985           (pic16_printIvalUnion,pic16_isUnion): NEW, handle initialized unions
6986             more correctly, fixes bug #1232186
6987           (pic16_printIval): use pic16_printIvalUnion() for initialized unions
6988         * src/pic16/main.c (_pic16_linkEdit): reorder linker arguments to make
6989             gplink guess the correct processor in more cases, applied patch
6990             from Till Riedel attached to and fixing bug #1436552
6991
6992 2006-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6993
6994         * support/regression/tests/array.c: added, contains check for #1434401
6995         * src/mcs51/peeph.def: disabled 186.d as temporary fix for #1434401
6996
6997 2006-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
6998
6999         * device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
7000         * device/include/mcs51/at89S8252.h: fixed, thanks to Krzysztof Polomka
7001         * device/include/mcs51/c8051f326.h,
7002         * device/include/mcs51/c8051f340.h: new SiLabs mcu's
7003         * device/include/mcs51/c8051f000.h,
7004         * device/include/mcs51/c8051f018.h,
7005         * device/include/mcs51/c8051f020.h: used () with __at, renamed IDLE,STOP to
7006           PCON_IDLE,PCON_STOP and added sfr16 definitions
7007
7008 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
7009
7010         * src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
7011           genGetWord): fixed bug 1409955
7012
7013 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
7014
7015         * device/include/hc08/mc68hc908gp32.h,
7016         * device/include/hc08/mc68hc908jb8.h: removed AWUL, added PTA6 & PTA7
7017
7018 2006-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
7019
7020         * src/SDCCast.c (constExprValue): return NULL if not a value
7021         * src/SDCCglue.c (printIvalArray): fixed bug 1225568
7022         * src/hc08/gen.c(genUnpackBits, genUnpackBitsImmed): fixed bug 1019480
7023         * support/regression/tests/bitfields.c: enabled signed bitfield for all
7024
7025 2006-02-13 Borut Razem <borut.razem AT siol.net>
7026
7027         * src/regression/ptrarg.c: added, fails due to bug #1430967
7028         * src/regression/Makefile: ptrarg.c added, ...
7029
7030 2006-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
7031
7032         * src/z80/gen.c (genUnpackBits): fixed bug 1019480
7033         * support/regression/tests/bitfields.c: enabled signed bitfield for z80
7034
7035 2006-02-11 Borut Razem <borut.razem AT siol.net>
7036
7037         * src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
7038           print "Processor: xxx" message to stdout only if --verbose
7039
7040 2006-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
7041
7042         * src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
7043         * support/regression/tests/bug1426356.c: added
7044         * support/regression/tests/bitfields.c: removed 2 tests
7045
7046 2006-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
7047
7048         * device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
7049         * device/include/mcs51/c8051f330.h,
7050         * device/include/mcs51/c8051f350.h: used () with __at, renamed IDLE,STOP to
7051           PCON_IDLE,PCON_STOP and added sfr16 definitions
7052         * device/lib/_divsint.c,
7053         * device/lib/_divuint.c,
7054         * device/lib/_divulong.c,
7055         * device/lib/_divulong.c: renamed a,b to x,y to avoid confusion, fixed
7056           register bank bug for small stackauto
7057
7058 2006-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
7059
7060         * support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()
7061
7062 2006-02-08 Maarten Brock <sourceforge.brock AT dse.nl>
7063
7064         * support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
7065         * all.dsp: corrected several bin paths
7066         * device/include/mcs51/c8051f120.h,
7067         * device/include/mcs51/c8051f300.h,
7068         * device/include/mcs51/c8051f310.h: used () with __at and renamed IDLE,STOP
7069           to PCON_IDLE,PCON_STOP
7070         * device/include/mcs51/c8051f320.h: see above, also added sfr16 definitions
7071         * device/lib/printf_large.c (output_float): fixed bug 1388703
7072         * support/regression/tests/bug1057979.c: added test for bug 1388703
7073
7074 2006-02-08 Raphael Neider <rneider AT web.de>
7075
7076         * src/pic/pcode.c (pciTRIS): fixed typo,
7077           (BuildFlow,LinkFlow_pCode): added (disabled) debug output,
7078           (LinkFlow): fixed handling of flows that end in a call,
7079           (ReuseReg): perform safety check earlier
7080         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed
7081             to work with flows at the beginning of a pBlock,
7082             fixes #1426557 (Symbol not previously defined),
7083           (pic14_ReMapLiveRanges): NEW, destroy and rebuild register
7084             usage information
7085           (RemoveUnusedRegisters): update register usage info
7086         * src/pic/ralloc.c (newReg): prevent duplicate registers from being
7087             created, reuse existing ones instead
7088         * src/pic/gen.c (genPcall): fixed #1424719
7089
7090 2006-02-07 Bernhard Held <bernhard AT bernhardheld.de>
7091
7092         * link/z80/lkmain.c,
7093         * link/z80/lklex.c,
7094         * link/z80/lkdata.c,
7095         * link/z80/aslink.h: fixed build on current cygwin:
7096         replaced getline() by lk_getline()
7097
7098 2006-02-01 Borut Razem <borut.razem AT siol.net>
7099
7100         * src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
7101           src/regression/add4.c, src/regression/and1.c, src/regression/and2.c,
7102           src/regression/arrays.c, src/regression/b.c, src/regression/bank1.c,
7103           src/regression/bool1.c, src/regression/bool2.c,
7104           src/regression/bool3.c, src/regression/call1.c,
7105           src/regression/compare.c, src/regression/compare10.c,
7106           src/regression/compare2.c, src/regression/compare3.c,
7107           src/regression/compare4.c, src/regression/compare5.c,
7108           src/regression/compare6.c, src/regression/compare7.c,
7109           src/regression/compare8.c, src/regression/compare9.c,
7110           src/regression/configword.c, src/regression/for.c,
7111           src/regression/inline.c, src/regression/mult1.c,
7112           src/regression/nestfor.c, src/regression/or1.c,
7113           src/regression/pointer1.c, src/regression/ptrfunc.c,
7114           src/regression/rotate1.c, src/regression/rotate2.c,
7115           src/regression/rotate3.c, src/regression/rotate4.c,
7116           src/regression/rotate5.c, src/regression/rotate6.c,
7117           src/regression/rotate7.c, src/regression/string1.c,
7118           src/regression/struct1.c, src/regression/sub.c,
7119           src/regression/sub2.c, src/regression/switch1.c,
7120           src/regression/while.c, src/regression/xor.c,
7121           src/regression/create_stc, src/regression/simulate,
7122           src/regression/rt.sh, src/regression/Makefile: reenabled Scott's PIC14
7123           regression tests
7124         * src/regression/gpsim_assert.h: added
7125
7126 2006-01-28 Bernhard Held <bernhard AT bernhardheld.de>
7127
7128         * src/ds390/gen.c (unsaveRegisters): fixed literal function pointer
7129         ((void (code *) (void)) 0) ();
7130         * as/hc08/aslex.c,
7131         * as/hc08/aslink.h,
7132         * as/hc08/asm.h,
7133         * as/hc08/asmain.c,
7134         * as/hc08/lkdata.c,
7135         * as/hc08/lklex.c,
7136         * as/hc08/lkmain.c,
7137         * as/mcs51/aslex.c,
7138         * as/mcs51/aslink.h,
7139         * as/mcs51/asm.h,
7140         * as/mcs51/asmain.c,
7141         * as/mcs51/lkdata.c,
7142         * as/mcs51/lklex.c,
7143         * as/mcs51/lkmain.c,
7144         * as/z80/aslex.c,
7145         * as/z80/asm.h,
7146         * as/z80/asmain.c: fixed build on current cygwin:
7147         replaced getline() by as_getline()
7148
7149 2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
7150
7151         * src/SDCC.y: fixed bug #716242, exchanged pointer and function
7152         declarator in the symbol chain
7153         * src/SDCCsymt.h,
7154         * src/SDCCsymt.c (processFuncPtrArgs): added, removes "(void)"
7155         parameter list for function pointers
7156         * src/SDCCast.c (decorateType): added call of processFuncPtrArgs()
7157         * support/regression/tests/bug-716242.c: added
7158
7159 2006-01-20 Bernhard Held <bernhard AT bernhardheld.de>
7160
7161         * src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array
7162         offset if possible
7163         * src/SDCCast.c (getLeftResultType): 255 fits in char, not 256
7164
7165 2006-01-18 Bernhard Held <bernhard AT bernhardheld.de>
7166
7167         * src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it
7168         inifinitely recurseable, added static
7169         * support/regression/tests/bug-1408066.c: added
7170
7171 2006-01-17 Bernhard Held <bernhard AT bernhardheld.de>
7172
7173         * src/SDCCicode.h,
7174         * src/SDCCicode.c (newiTempPreheaderLabel, newiTempLoopHeaderLabel):
7175         renamed, added possibility to create "postLoopLbl"-labels
7176         * src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to
7177         newiTempLoopHeaderLabel
7178         * src/SDCCloop.c (newInduction, newRegion, backEdges, insertIntoLoop,
7179         isNotInBlocks, addToExitsMarkDepth, createLoop, dominatedBy,
7180         addDefInExprs, assignmentsToSym, isOperandInvariant, pointerAssigned,
7181         hasNonPtrUse, loopInvariants, addressTaken, findInduction,
7182         findDefInRegion, mergeRegions, ifMerged, mergeInnerLoops): made static,
7183         (pinduction, pregion, hasIncomingDefs, findLoopEndSeq): disabled,
7184         (basicInduction): fixed bug #136564, made static,
7185         (loopInduction): changed parameter of basicInduction, made static,
7186         (addPostLoopBlock): added
7187         * src/SDCCloop.h: removed backEdges, pregion, pinduction,
7188         loopOptimizations, addressTaken, findDefInRegion, hasIncomingDefs,
7189         findLoopEndSeq
7190         * support/regression/tests/bug-136564.c: added
7191         * support/regression/ports/mcs51-xstack-auto/spec.mk: added
7192         --std-sdcc99 to LIBSDCCFLAGS
7193
7194 2006-01-16 Bernhard Held <bernhard AT bernhardheld.de>
7195
7196         * src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false
7197         while loop
7198         * support/regression/tests/bug-1406131.c: added
7199
7200 2005-12-31 Bernhard Held <bernhard AT bernhardheld.de>
7201
7202         * src/SDCCast.c (decorateType): fix promotion of unary minus
7203         * src/SDCCsymt.c (computeType): beautified
7204         * src/SDCCval.c (cheapestVal): beautified, old non-Ansi version removed,
7205         (valUnaryPM, valComplement): fix sign and promotion,
7206         (valNot): ANSI: result type is int (SDCC: unsigned char)
7207         * support/regression/tests/uminus.c: speedup by removing superflous
7208         test case 'int'
7209         * support/regression/tests/onebyte.c: added promotion and signedness
7210         tests for unary minus
7211         * support/regressions/tests/bug-477927.c: disable warning about
7212         uninitialized variables
7213         * support/regression/tests/not.c: added
7214
7215 2005-12-28 Bernhard Held <bernhard AT bernhardheld.de>
7216
7217         * device/lib/Makefile.in: added --std-sdcc99 to CFLAGS
7218         * src/mcs51/gen.c (gen51Code): show final register usage after
7219         fillGaps in asm with --i-code-in-asm
7220         * src/SDCClrange.c (sequenceiCode, setLiveFrom, setLiveTo,
7221         markLiveRanges, markAlive, findNextUseSym, findNextUse, unvisitBlocks,
7222         incUsed, rliveClear, adjustIChain): made static,
7223         (setFromRange): excluded because it's unused,
7224         (findPrevUseSym, markWholeLoop): added,
7225         (findPrevUse): rewritten; fixes bug 895992; now a complete search
7226         through all branches of predecessors enables sdcc to emit the warning
7227         W_LOCAL_NOINIT, marking of outermost loop was incomplete,
7228         (rlivePoint): made static, added parameter emitWarnings which is only
7229         true during the first run out of two,
7230         (findRecursiveSucc, findRecursivePred): removed,
7231         (computeLiveRanges): made static, added parameter emitWarnings,
7232         (dumpIcRlive): added for debugging only
7233         * src/SDCClrange.h: added boolean parameter to computeLiveRanges(),
7234         removed prototype of setFromRange()
7235         * src/SDCCopt.c (eBBlockFromiCode): added new parameter emitWarnings
7236         in call of computeLiveRanges()
7237         * support/regression/tests/bug-895992.c: added
7238         * support/regression/tests/bug-971834.c: added
7239         * support/valdiag/tests/bug-895992.c: added
7240         * support/valdiag/tests/bug-971834.c: added
7241
7242 2005-12-18 Raphael Neider <rneider AT web.de>
7243
7244         * src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
7245           (genUnpackBits): improved code for direct operands,
7246           (genPackBits): improved code for literal assignment to bitfields
7247             and for direct destination operands (no FSR indirection),
7248             prevented redundant AND, fixes #1362800,
7249           (AccLsh): added parameter to disable masking of the result
7250         * src/pic16/pcode.c (pic16_safepCodeUnlink): fixed to work with
7251           skip instructions with side-effects (like incfsz),
7252           (pic16_pCodeIsAlive): suppress verbose output unless pcode_verbose,
7253         * src/pic16/pcoderegs.c (RemoveRegsFromSet): removed annoying warning
7254         * device/lib/pic16/Makefile.common.in: added --asm=@GPASM@ to CC,
7255           fixes #1375263
7256
7257 2005-12-11 Bernhard Held <bernhard AT bernhardheld.de>
7258
7259         * src/SDCCicode.c (geniCodeAssign): fixed bug 11369874, don't use
7260         volatile variables as spill location
7261
7262 2005-12-10 Bernhard Held <bernhard AT bernhardheld.de>
7263
7264         * src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to
7265         replacing literals
7266         * support/regression/tests/bug-1376320.c: added
7267
7268 2005-12-08 Raphael Neider <rneider AT web.de>
7269
7270         * src/pic/device.c: renamed is_shared to pic14_is_shared
7271         * src/pic/gen.c (genIfx): re-enabled handling of sbits
7272         * src/pic/glue.c (emitSymbolToFile): added workaround for sbits,
7273           (is_valid_identifier): added for above workaround
7274
7275 2005-12-07 Maarten Brock <sourceforge.brock AT dse.nl>
7276
7277         * device/lib/Makefile.in: fixed to enable port-specific-objects
7278         * device/lib/ds390/i2c390.c (BitOutI2C): optimized by making bout unsigned
7279           char, thanks Hubert Sack
7280         * doc/sdccman.lyx: documented --xstack-loc,
7281           elaborated a bit more on interrupts and pitfalls,
7282           removed "setjmp/longjmp unsupported",
7283           documented some unsupported C99 features
7284         * src/SDCCmain.c (linkEdit): adapted default lib path for --stack-auto
7285         * src/SDCCpeeph.c (readRules): inserted patch 1367130 for finding missing
7286           if, thanks Hubert Sack
7287         * src/mcs51/gen.c (genEndFunction): enabled "pop psw" for regbank 0 isr
7288         * support/regression/Makefile.in: test-mcs51-stack-auto no longer needs to
7289           make make_library
7290         * support/regression/get_ticks.py: new, get cpu cycles and code size, so
7291           regression tests can report resource usage (rfe 700441)
7292         * support/regression/collate-results.py: report resource usage
7293         * support/regression/ports/ds390/spec.mk,
7294         * support/regression/ports/hc08/spec.mk,
7295         * support/regression/ports/mcs51/spec.mk,
7296         * support/regression/ports/ucz80/spec.mk: run sim output through get_ticks
7297         * support/regression/ports/ds390/uCsim.cmd,
7298         * support/regression/ports/hc08/uCsim.cmd,
7299         * support/regression/ports/mcs51/uCsim.cmd,
7300         * support/regression/ports/ucz80/uCsim.cmd: inserted "state" to report time
7301         * support/regression/ports/mcs51-stack-auto/spec.mk: no need to build the
7302           library, use the default one
7303         * support/regression/ports/mcs51-xstack-auto/spec.mk: inserted rules for
7304           building the library
7305
7306 2005-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
7307
7308         * config.dsp: added dependency on .version and configure_vc.awk
7309         * device/include/setjmp.h: updated for --stack-auto and --xstack
7310         * device/include/mcs51/at89c51snd1c.h: corrected line endings
7311         * device/include/mcs51/XC866.h: added, thanks Llewellyn van Zyl
7312         * device/lib/_setjmp.c: updated for --stack-auto and --xstack
7313         * device/lib/libsdcc.lib: added _setjmp
7314         * src/SDCCast.c (createIvalCharPtr): fixed warnings,
7315           (decorateType): fixed bug 1372851,
7316           (optimizeGetHbit): fixed warning
7317         * src/SDCCglue.c (printIvalChar, printIvalArray): adapted for flexible
7318           array initialisation
7319         * support/regression/tests/bug1057979.c: added test for bug 1358192
7320         * support/regression/tests/setjmp.c: added, test for setjmp/longjmp
7321
7322 2005-12-03 Borut Razem <borut.razem AT siol.net>
7323
7324         * support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
7325           command since the NSIS was upgraded to version 2.11 on CF x86-linux2
7326
7327 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
7328
7329         * src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr,
7330         createIval): implement symbol independant "flexible array member",
7331         (createIvalCharPtr): implemented flexible array initialisation with a
7332         string
7333         * src/SDCCsymt.c (copyStruct): removed,
7334         (getSize): fixed misleading comment,
7335         (getAllocSize): removed, the additional allocation size is now in
7336         sym->flexArrayLength,
7337         (checkStructFlexArray): new, syntax checks for flexible array members,
7338         (compStructSize): added syntax checks for "flexible array members"
7339         (copyStruct): removed,
7340         (copyLinkChain): removed inefficient fix for bug 770487
7341         * src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
7342         * src/SDCCsymt.h: added structdef.b_flexArrayMember and
7343         symbol->flexArrayLength
7344         * src/SDCCerr.c,
7345         * src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY,
7346         E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
7347         * support/regression/tests/structflexarray.c: added
7348         * support/valdiag/tests/structflexiblearray.c: added
7349
7350 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
7351
7352         * src/SDCCast.c (decorateType): fixed bug 1368489
7353         * support/Util/SDCCerr.c,
7354         * support/Util/SDCCerr.h: added warning W_CMP_SU_CHAR
7355
7356 2005-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7357
7358         * device/include/mcs51/at89c51snd1c.h: added file submitted by
7359           Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001
7360
7361 2005-11-27 Borut Razem <borut.razem AT siol.net>
7362
7363         * support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
7364           support/cpp2/mkdeps.h: added command line option
7365           -obj-ext=<extension> to SDCPP to define object file externion, used
7366           for generation of make dependencies (-M)
7367         * src/SDCCmain.c: pass -obj-ext=<extension> to SDCPP
7368
7369 2005-11-26 Borut Razem <borut.razem AT siol.net>
7370
7371         * support/scripts/sdcc.nsi: added small-stack-auto libraries,
7372           added missing device/lib/mcs51/crt*.asm, pic and pic16 sources,
7373           added pic and pic16 libraries
7374
7375 2005-11-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7376
7377         * device/include/float.h: Corrected typo in prototype of __fsgt
7378
7379 2005-11-25 Borut Razem <borut.razem AT siol.net>
7380
7381         * sdcc/device/lib/Makefile.in, sdcc/device/lib/incl.mk:
7382           added creation of model-mcs51-stack-auto libraries
7383
7384 2005-11-24 Bernhard Held <bernhard AT bernhardheld.de>
7385
7386         * src/SDCCsymt.c (copyLinkChain): fixed bug 770487, copy structdef
7387         and fields-list too
7388         * src/SDCCast.c (createIvalArray): removed obsolete comment
7389
7390 2005-11-24 Borut Razem <borut.razem AT siol.net>
7391
7392         * sdcc/device/lib/Makefile.in: remove all unnecessary files, 2nd try...,
7393           added missing device/lib/mcs51/crt*.asm sources
7394
7395 2005-11-23 Bernhard Held <bernhard AT bernhardheld.de>
7396
7397         * src/SDCCast.c (createIvalCharPtr): fixed bug 1348271
7398
7399 2005-11-22 Maarten Brock <sourceforge.brock AT dse.nl>
7400
7401         * device/lib/_fs2schar.c,
7402         * device/lib/_fs2sint.c,
7403         * device/lib/_fs2slong.c: optimized inline asm
7404
7405 2005-11-21 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7406
7407         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
7408           Better handling of floats between -1.0 and 0.0.
7409
7410 2005-11-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7411
7412         * src/mcs51/peeph.def: added missing "if"s as noted by Hubert Sack.
7413           (the missing "if"s prohibited removal of redundant labels)
7414
7415 2005-11-19 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7416
7417         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
7418           Properly convert floats between -1.0 and 0.0 to long, int, and char
7419           types (max integer value of negative floats tends to zero).
7420         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
7421           Removed changes made so to work properly with floats between
7422           -1.0 and 0.0, as the problem is fixed in _fs2slong.c, _fs2sint.c,
7423           and _fs2char.c
7424
7425 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
7426
7427         * src/SDCCcse.c (ReplaceOpWithCheaperOp): minor fix for debugging only
7428         * src/mcs51/gen.c (genUnpackBits): better code and a fix,
7429         (genCast) cosmetic change
7430         * src/ds390/gen.c (genUnpackBits, ): ported from mcs51
7431         * src/ds390/ralloc.c (packRegsForAssign): ported fix for bitfields
7432         from mcs51
7433         * support/regression/tests/bitfields (testSignedBitfields): added
7434
7435 2005-11-18 Borut Razem <borut.razem AT siol.net>
7436
7437         * sdcc/device/lib/Makefile.in: remove all unnecessary files
7438         * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
7439           introduced SILENT option to make building of pic16 libraries less
7440
7441 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7442
7443         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
7444           Now they work properly with floats between -1.0 and 0.0
7445         * device/lib/printf_large.c: Removed temporary patch for bug 1358192
7446
7447 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
7448
7449         * src/SDCCicode.c (printOperand): added missing else
7450
7451 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
7452
7453         * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
7454         reformatted for better readability
7455         * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
7456         signed bitfields
7457
7458 2005-11-17 Borut Razem <borut.razem AT siol.net>
7459
7460         * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
7461           introduced SILENT option to make building of pic16 libraries less
7462           verbose - used for nightly snapshot build
7463         * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
7464           available on Win32 platforms.
7465         * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
7466           medium, large, pic and pic16
7467
7468 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7469
7470         * device/lib/printf_large.c: Temporary patch for bug 1358192:
7471           printf("%f"...) sets fraction to zero.
7472
7473 2005-11-16 Raphael Neider <rneider AT web.de>
7474
7475         * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
7476           fixes #1357221
7477         * src/pic/gen.c (genIfx): implemented for CARRY bit
7478         * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
7479           to generic pointers, fixes #1357332,
7480           (pic16_movLit2f): NEW,
7481           (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
7482
7483 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
7484
7485         * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
7486
7487 2005-11-11 Raphael Neider <rneider AT web.de>
7488
7489         * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
7490         * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
7491           compute pointer's type from operand,
7492           (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
7493           improved single bit reads, fixes bug #1353379
7494
7495 2005-11-09 Borut Razem <borut.razem AT siol.net>
7496
7497         * support/scripts/sdcc.nsi: added lib/pic to the package
7498
7499 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
7500
7501         * src/SDCCval.c (valUnaryPM): fixed bug 1350699
7502
7503 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
7504
7505         * support/regression/tests/bug1348008.c: added
7506         * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
7507         * support/regression/tests/bug1337835.c: updated comment
7508
7509 2005-11-06 Borut Razem <borut.razem AT siol.net>
7510
7511         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
7512           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
7513           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
7514           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
7515           sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
7516           dynamic construction of cl_error_class and derivates - 2.nd try
7517
7518 2005-11-05 Borut Razem <borut.razem AT siol.net>
7519
7520         * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
7521           bug, which caused Bus Errors on sparc solaris
7522
7523 2005-11-04 Borut Razem <borut.razem AT siol.net>
7524
7525         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
7526           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
7527           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
7528           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
7529           sim/ucsim/cmd.src/cmdconf.cc: dynamic construction of cl_error_class
7530           and derivates to resolve the initialization problem on OSX
7531
7532 2005-11-02 Borut Razem <borut.razem AT siol.net>
7533
7534         * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
7535           corrected typo - #include <winsock2.h>
7536
7537 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
7538
7539         * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
7540           (_asxxxx_mapping): added org directive for future enhancements
7541
7542 2005-11-01 Borut Razem <borut.razem AT siol.net>
7543
7544         * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
7545           enabled sockets on WIN32
7546         * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
7547
7548 2005-10-31 Borut Razem <borut.razem AT siol.net>
7549
7550         * support/regression/generate-cases.py: escape backslashes in {testcase}:
7551           WIN32 backslash path delimiters should be escaped when used in C strings
7552         * support/regression/tests/bitfields.c: exclude failing assertions for
7553           __CYGWIN32__ and __MINGW32__ hosts
7554
7555 2005-10-30 Borut Razem <borut.razem AT siol.net>
7556
7557         * src/SDCCutil.c: corrected double comparison typo
7558
7559 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
7560
7561         * device/lib/medium/Makefile: added for new memory model medium
7562         * device/include/asm/mcs51/features.h: updated for medium/pdata
7563         * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
7564           added Multiply & Accumulate sbit's and MAC0_PAGE define
7565         * device/include/mcs51/c8051f300.h: added sfr16 definitions
7566         * device/include/mcs51/c8051f310.h: added sfr16 definitions
7567         * device/lib/_mullong.c: update for medium model
7568         * device/lib/incl.mk: added medium model
7569         * doc/sdccman.lyx: documented medium model
7570         * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
7571         * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
7572         * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
7573         * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
7574           (allocParms): set SCLS and OCLS to pdata for medium model
7575         * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
7576           for pdata,
7577           (powof2): return <0 if not power of 2
7578         * src/avr/gen.c (genBitWise): use updated powof2
7579         * src/mcs51/gen.c (genMinusDec): use acc if necessary,
7580           (shiftR2Left2Result): small optimization in setup, save acc when storing,
7581           (shiftLLeftOrResult): use B if necessary
7582         * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
7583         * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
7584         * src/pic/main.c (_pic14_do_link): made void parameter list explicit
7585         * support/regression/Makefile.in: added test-mcs51-medium
7586         * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
7587
7588 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
7589
7590         * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
7591         specifier unsigned
7592         * device/lib/time.c (mktime): fixed bug 1334315
7593
7594 2005-10-28 Raphael Neider <rneider AT web.de>
7595
7596         * device/include/pic/p16f_common.inc: added common declarations
7597         * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
7598
7599 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
7600
7601         * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
7602           (aopPutUsesAcc): added to predict accumulator use,
7603           (assignResultValue): save acc if necessary,
7604           (genMinusDec): store result if indirectly addressed,
7605           (genDivOneByte):  save acc if necessary,
7606           (movLeft2Result): bugfix if left already in acc,
7607           (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
7608             attention to accumulator use (esp. pdata),
7609           (genReceive): receive pdata correctly
7610         * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
7611         * src/SDCCicode.h: added isOperandInPagedSpace prototype
7612
7613 2005-10-27 Raphael Neider <rneider AT web.de>
7614
7615         * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
7616
7617 2005-10-27 Raphael Neider <rneider AT web.de>
7618
7619         * .version: changed version to 2.5.4
7620         * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
7621         * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
7622           (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
7623             arithmetics support routines
7624         * device/lib/pic/Makefile.rules: have assembler sources preprocessed
7625         * device/lib/Makefile.in: also create installdir for pic
7626
7627         * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
7628           pic14 port as well
7629         * src/pic/device.c (dump_sfr): rewritten to delegate register
7630           placement to the linker (use `extern sym' rather than sym EQU addr),
7631           (validAddress): fixed to check last specified address
7632         * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
7633           (popGetLit): truncate literal value to 8 bit,
7634           (popGet): moved assert to more appropriate place
7635           (popGetExternal): create pCode operand from and mark the according
7636             symbol as being `extern'
7637           (popGetAddr): added sanity check on immediate's offset, provide
7638             GPOINTER tag on demand
7639           (aopPut): fixed for immediates,
7640           (mov2w_op): move operand's address or contents to WREG (depending on
7641             operand type), safer variant of mov2w,
7642           (movwf,call_libraryfunc): NEW, handy abbreviations,
7643           (get_argument_pcop,get_return_val_pcop,pass_argument,
7644           get_returnvalue): interface for accessing function parameters and
7645             return values,
7646           (assignResultValuei,genRet): use new parameter/return value interface
7647           (pic14_getDataSize): back to old version handling generic pointers,
7648           (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
7649             provided implementation and/or fixed old one,
7650           (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
7651             calls, removed legacy 8051 reference code
7652           (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
7653           (loadSignToC): NEW, move the operands sign bit to CARRY,
7654           (genGenericShift): NEW, replaces genLeftShift, genRightShift and
7655             genRightShiftSigned, accepts negative shift counts,
7656           (setup_fsr): load FSR and adjust IRP (indirect memory access),
7657           (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
7658             generic pointers, __data pointers and __code pointers,
7659           (genUnpackBits,genPackBits): rewritten to work with generic pointers
7660             and signed bitfields, limit bitfields to 8 bit,
7661           (genDataPointerGet): fixed number of bytes read,
7662           (genGenPointerGet,genConstPointerGet): fixed bitfield access,
7663           (genPointerGet,genPointerSet): fixed handling of __code pointers,
7664             pointers to constant data are no longer assumed to point to __code
7665             space, removed invalid pointer types,
7666           (bitpatternFromVal): retrieve the PICs representation of an integer
7667             or float literal,
7668           (genDataPointerSet): fixed assigning to po_immediate operands,
7669           (genGenPointerSet): implemented as library call,
7670           (genIfx): fixed incorrect condition,
7671           (genAddrOf): limit generic pointers' addresses to 2 bytes,
7672             provide GPOINTER tag according to destination's storage class,
7673           (genCast): added code to handle casting to generic pointers, added
7674             sign-/zero extension of the result
7675           (aop_isLitLike,op_isLitLike): fixed handling of immediates
7676         * src/pic/gen.h: added macros to access IRP bit in STATUS register
7677         * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
7678           extend the result
7679         * src/pic/glue.c (is_shared_address,is_shared): check whether a given
7680           address/register resides in the shared banks
7681           (emitSymbolToFile): improved to handle global and `pinned' symbols,
7682             put all variables into separate sections (have the linker arrange
7683             them)
7684           (picglue): put init code and interrupt handlers in separate sections
7685         * src/pic/main.c: added port specific options table, modified to PORT
7686           structure to make GPOINTERs 3 byte, added pic14_options
7687           (_pic14_do_link): private linking routine (update paths to libraries,
7688             add libsdcc.lib by default)
7689         * src/pic/main.h: declare pic14_options
7690         * src/pic/pcode.c: fixed instructions i/o relations,
7691           (RegCond): reverted to correct version,
7692           (newpCodeOpLit): truncate literals to 8 bit,
7693           (genericPrint): added debug output,
7694           (getRegFromInstruction): fixed for various operand types, simplified
7695           (BuildFlow): fixed broken handling of isntructions with labels
7696           (LinkFlow): start at last instruction in flow (skip trailing comments),
7697             pass the flow on to the next instruction after CALL
7698           (pCodeReplace): NEW, replace a pCode and move meta data to the new one
7699           (insertPCodeInstruction): fixed inserting after a skip instruction,
7700           (DoBankSelect): fixed for labeled instructions
7701           (OptimizepBlock): honor --nopeep switch
7702           (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
7703         * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
7704         * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
7705           (pCodeOptime2pCodes): allow disabling this optimization via
7706             --no-pcode-opt due seldomly occuring bugs, fixed some conditions
7707             but is still buggy), started implementation of a dataflow based
7708             pCode optimization (CSE + dead code elimination)
7709           (pCodeRegMapLiveRangesInFlow): removed bogus inCond
7710         * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
7711           names are independant of the stack location and therefore portable across
7712           devices
7713
7714 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
7715
7716         * src/mcs51/ralloc.c (bitType): added to detect bit variables,
7717           (selectSpil): fixed bug 1337835 by not spilling bit variables
7718         * support/regression/tests/bug1337835.c: added test for this bug
7719         * src/mcs51/peeph.def: restart after rule 3.c,
7720           addded rules 263.x to optimize loading constants
7721
7722 2005-10-26 Raphael Neider <rneider AT web.de>
7723
7724         * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
7725         * src/pic16/gen.c (genUnpackBits): support signed bitfields,
7726           (genAssign): emit warning when casting literals to generic pointer
7727             type, also applies when taking the address of a fixed variable,
7728           (genCast): improved casting to generic pointers
7729         * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
7730           extern variables, added verbose error message
7731         * device/include/pic16/{string.h,errno.h}: added #pragma library c
7732
7733 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
7734
7735         * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
7736         carry must be complemented too
7737         * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
7738         could be emitted by genMinus
7739         * src/SDCCval.c (constVal): fixed bug 1305065
7740
7741 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
7742
7743         * src/SDCCast.c (addCast): added promotion for bit variables
7744         (decorateType): emit W_COMPLEMENT before the problem vanishes behind
7745         promotion casts + optimisation
7746         (optimizeGetWord): fix warning 'i' might be used uninitialized
7747         * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
7748         * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
7749
7750 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
7751
7752         * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
7753         all chars are promoted to int; promotion should be handled in SDCCast.c
7754
7755 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7756
7757         * device/lib/_strcmp.c: Fixed bug 1326457
7758
7759 2005-10-11 Raphael Neider <rneider AT web.de>
7760
7761         * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
7762         * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
7763
7764 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
7765
7766         * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
7767         * support/regression/tests/sfr16.c: added test for the sfr32 bug
7768
7769 2005-10-04 Raphael Neider <rneider AT web.de>
7770
7771         * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
7772           device/lib/pic16/pics.all: added pic18f1320
7773         * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
7774
7775 2005-09-30 Raphael Neider <rneider AT web.de>
7776
7777         * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
7778         * src/pic16/devices.inc: NEW, provides device descriptions
7779         * src/pic16/gen.c (genInline): fixed handling of ';'-comments
7780
7781 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
7782
7783         * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
7784           GETHBIT
7785
7786 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
7787
7788         * doc/sdccman.lyx: updated Highest Order Bit documentation,
7789           documented Any Order Bit, Higher Order Byte and Higher Order Word
7790         * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
7791         * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
7792           (optimizeGetAbit): new, to get any bit, not only the high bit,
7793           (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
7794           (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
7795           (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
7796           (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
7797             RIGHT_OP: also try GETBYTE, GETWORD optimization,
7798             GETABIT, GETBYTE, GETWORD: decorate them,
7799           (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
7800           (ast_print): added GETABIT, GETBYTE, GETWORD
7801         * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
7802         * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
7803           (geniCodeBinary): new generic binary icode,
7804           (ast2iCode): added GETABIT, GETBYTE, GETWORD
7805         * src/port.h: updated comment for PORT.hasExtBitOp
7806         * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
7807           (genGetByte): new, to get a single byte,
7808           (genGetWord): new, to get a word from a long,
7809           (gen51Code): added GETABIT, GETBYTE, GETWORD
7810         * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
7811
7812 2005-09-23 Raphael Neider <rneider AT web.de>
7813
7814         * configure.in, configure: have device/lib/pic configured
7815         * device/lib/Makefile.in: added model-pic14
7816         * device/lib/clean.mk: added pic/ to clean rule
7817         * device/lib/pic: added rudimentary pic14 library providing support
7818           functions for multiplication/division/generic pointer access
7819         * src/SDCCopt.c (convilong): mark support functions as extern
7820           for pic14 port as well
7821         * src/pic/gen.c (genMult): added assertions,
7822           (genpic14Code): emit warning on unhandled iCodes
7823         * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
7824         * src/pic/pcode.c (pCodeOpCopy),
7825         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
7826           pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
7827           SFR_REGISTER}), made safe for future extensions
7828         * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
7829           instructions even if preceeded by SKIP instructions (also remove
7830           them); removed unused code
7831         * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
7832           prevents leaving parts of the structure uninitialized after copying
7833
7834 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
7835
7836         * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
7837           ago by me
7838         * support/regression/tests/addsub.c: added test for the bug
7839
7840 2005-09-21 Raphael Neider <rneider AT web.de>
7841
7842         * device/include/pic16/pic18f1220.h,
7843           device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
7844         * device/lib/pic16/Makefile.rules: added missing opening paren
7845         * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
7846           are provided in genutils.c,
7847           (genUminusFloat,genUminus,genCmpEq): added asserts on different
7848           operand/result sizes,
7849           (genCmp): assert on NULL pointers first, then check deref'ed values
7850         * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
7851           result size
7852
7853 2005-09-18 Raphael Neider <rneider AT web.de>
7854
7855         * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
7856           as these are now unused,
7857           (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
7858         * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
7859           local, avoids uninitialized pointer dereference on r->name
7860         * src/pic16/ralloc.c (newReg): fixed indentation
7861
7862 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
7863
7864         * src/SDCCval.c (constVal): fixed bug 730366
7865         * support/Util/SDCCerr.c,
7866         * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
7867
7868 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
7869
7870         * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
7871
7872 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
7873
7874         * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
7875
7876 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
7877
7878         * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
7879           (hex2dec): made hex_digit unsigned char, removed ascii dependance
7880         * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
7881           (hex2dec): made hex_digit unsigned char, removed ascii dependance
7882         * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
7883         * packihx/packihx.c (hexDigit): made c unsigned char
7884         * as/mcs51/lklibr.c (fndsym),
7885         * link/z80/lkgb.c (gb),
7886         * link/z80/lklibr.c (fndsym),
7887         * link/z80/lkrloc.c (relr),
7888         * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
7889         * src/SDCC.lex (checkCurrFile, process_pragma),
7890         * src/SDCCglue.c (spacesToUnderscores),
7891         * src/SDCCmain.c (setParseWithComma, processFile),
7892         * src/asm.c (tvsprintf, printCLine),
7893         * src/avr/gen.c (emitcode, aopPut),
7894         * src/ds390/gen.c (emitcode),
7895         * src/hc08/gen.c (emitcode, emitinline),
7896         * src/mcs51/gen.c (emitcode, genInline),
7897         * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
7898           tokenizeLineNode),
7899         * src/pic/ralloc.c (debugLog),
7900         * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
7901           tokenizeLineNode),
7902         * src/pic16/ralloc.c (debugLog),
7903         * src/z80/main.c (_process_pragma):
7904            made all ctype.h function calls safe
7905         * src/SDCCopt.c: include math.h for fabs
7906         * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
7907           and used them throughout the code to make ctype.h function calls safe
7908         * src/ds390/main.c (asmLineNodeFromLineNode),
7909         * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
7910         * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
7911            unsigned char*
7912         * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
7913           (newpCodeAsmDir): made ctype.h function calls safe
7914         * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
7915           pic16_emitcode):  made lbp unsigned char*
7916         * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
7917           (pic16_newpCodeAsmDir): made ctype.h function calls safe
7918         * src/xa51/gen.c (emitcode),
7919         * src/z80/gen.c (_emit2): made lbp unsigned char*
7920         * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
7921            char*
7922
7923 2005-09-05 Raphael Neider <rneider AT web.de>
7924
7925         * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
7926           access bank splitpoint
7927
7928 2005-09-05 Raphael Neider <rneider AT web.de>
7929
7930         * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
7931
7932 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
7933
7934         * .version: changed to version 2.5.3
7935         * doc/sdccman.lyx: changed version to 2.5.3,
7936           documented --codeseg and --constseg and pragma codeseg and constseg,
7937           documented bit parameters (reentrant) and bit returning
7938         * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
7939            currFunc->recvSize, but is this ok for all ports?
7940           (ast2iCode): result of ~ on unsigned char must be cast to int for
7941            bool to work
7942         * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
7943           function pointers in bit space
7944         * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
7945           (processFuncArgs): call port.reg_parm() with reentrancy info
7946         * src/port.h,
7947         * src/avr/main.c,
7948         * src/ds390/main.c,
7949         * src/hc08/main.c,
7950         * src/pic/main.c,
7951         * src/pic16/main.c,
7952         * src/xa51/main.c,
7953         * src/z80/main.c: port.reg_parm prototype extended with
7954           "bool reentrant" parameter
7955         * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
7956           options.stackAuto for allocating bit register parameters
7957         * src/mcs51/gen.c (genNot): optimized complementing direct bit,
7958           (genSend): set BitBankUsed if it is,
7959           (selectRegBank): factored out of genCall for use in genPcall,
7960           (genCall): removed redundant dtype assignmen, use selectRegBank,
7961           (genPcall): handle returning in Carry properly, save in F0 if needed,
7962           (genReceive): handle bit register parameters
7963         * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
7964           (mcs51_assignRegisters): enable bit registers for all reentrant
7965            functions and don't set BitBankUsed unconditionally
7966         * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
7967         * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
7968         * support/regression/tests/funptrs.c: added tests for BOOL and for return
7969
7970 2005-08-27 Borut Razem <borut.razem AT siol.net>
7971
7972         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
7973         ppc-osx (Darwin) does not support -u option. It seems that it is
7974         supported only on Linux - GNU cp
7975
7976 2005-08-25 Borut Razem <borut.razem AT siol.net>
7977
7978         * sim/ucsim/gui.src/serio.src/Makefile.in,
7979           sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
7980           sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
7981           sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
7982           install and strip, since the strip at /usr/ccs/bin should be used
7983           on solaris
7984
7985 2005-08-24 Borut Razem <borut.razem AT siol.net>
7986
7987         * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
7988
7989 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
7990
7991         * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
7992         ffffffffu
7993
7994 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
7995
7996         * as/mcs51/aslink.h: completed lkrloc.c prototypes
7997         * as/mcs51/lkmain.c (link_main): fixed warning
7998         * device/include/stdbool.h: ds390 has no advanced bit support yet
7999         * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
8000         * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
8001         * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
8002           and updated their macros
8003         * src/SDCCval.c (constVal): updated comment for renamed b_long
8004
8005 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
8006
8007         * as/mcs51/asdata.c: changed ctype['['] to BINOP
8008         * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
8009           (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
8010           (oprio): set priority for '['
8011         * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
8012            and adb_24_bit
8013         * as/mcs51/asm.h: added defines R_BIT and S_BIT
8014         * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
8015         * as/mcs51/lkdata.c: changed ctype['['] to BINOP
8016         * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
8017           added overlayable BIT_BANK area
8018         * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
8019           (summary2): explain 'T' in legenda
8020         * as/mcs51/lkrloc.c: replaced old K&R style,
8021           (relr): added R_BIT processing,
8022           (errmsg): added "Bit-addressable relocation error",
8023           (adb_bit): added for converting from byte- to bit-addressable space,
8024           (adb_24_bit): added for converting from byte- to bit-addressable space
8025         * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
8026            used in reentrant functions now even as return value
8027         * device/lib/_gptrput.c (_gptrput): removed obsolete code
8028         * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
8029           (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
8030         * src/SDCCglobl.h: added indicator BitBankUsed
8031         * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
8032            the bit registers b0-b7
8033         * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
8034           (geniCodeCast): fixed bug 1263853,
8035           (geniCodeLogicAndOr): put result in bool or char,
8036           (geniCodeReceive): added parameter func for accessing the return type,
8037           (geniCodeFunctionBody): pass func to geniCodeReceive
8038         * src/SDCCmain.c: added indicator BitBankUsed
8039         * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
8040         * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
8041           (checkSClass): don't put automatic bool/bit on stack,
8042           (checkFunction): removed check on function cannot return bit
8043         * src/SDCCsymt.h: added newBoolLink prototype
8044         * src/mcs51/gen.c (rb1regs): added bit registers,
8045           (movc): created for assigning to carry,
8046           (pushReg, popReg): created for pushing registers,
8047           (sameRegs): check both AOP_REG and AOP_CRY types,
8048           (aopOp): handle bit registers,
8049           (aopPut): optimization no self-assign,
8050           (saveRegisters): push reg->base (bits) only once for bit registers,
8051            and use pushReg,
8052           (unsaveRegisters): pop reg->base only once and use popReg,
8053           (assignResultValue): added parameter func and return in carry for bits,
8054           (genIpush): optimization no reload in A if not changed,
8055           (genSend): bit parameters in reentrant functions are passed in bit
8056            registers by first assigning to bits in B, then save registers and
8057            copy B to bits,
8058           (genCall): handle returning in Carry properly, save it in F0 if needed,
8059           (genPcall): updated assignResultValue call, this is not safe yet for bit
8060            returning function !!!
8061           (genFunction): don't generate equ's for bit registers and use pushReg,
8062           (genEndFunction): take care of bit returning functions and use popReg,
8063           (genRet): return bit in Carry,
8064           (genIfx): optimize bit registers and other directly addressable bits,
8065           (genReceive): updated assignResultValue call
8066         * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
8067           (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
8068            registers when using stack-auto
8069         * src/mcs51/ralloc.c (_G): added allBitregs,
8070           (regs8051): added the bit registers,
8071           (createStackSpil): use macro IS_BIT,
8072           (getRegBit): added to allocate a bit register, else spill,
8073           (getRegBitNoSpil): added to allocate a bit register, else a gpr,
8074           (updateRegUsage): factored out to ease stepping while debugging,
8075           (serialRegAssign): use updateRegUsage, only spill bits if necessary,
8076            also allocate bit registers,
8077           (fillGaps): handle bit registers,
8078           (findAllBitregs): added to create bit vector with all bit registers,
8079           (mcs51_allBitregs): returns this bit vector,
8080           (mcs51_assignRegisters): when using stack-auto use bit registers for
8081            passing parameters and creating local variables
8082         * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
8083
8084 2005-08-22 Borut Razem <borut.razem AT siol.net>
8085
8086         * device/lib/Makefile.in: replaced find option -or with -o
8087           to make it run on solaris
8088
8089 2005-08-22 Raphael Neider <rneider AT web.de>
8090
8091         * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
8092           fixes #1265442 (crash on Solaris)
8093
8094 2005-08-20 Borut Razem <borut.razem AT siol.net>
8095
8096         * configure, configure.in: added tests for libsocket and libnsl libraries,
8097           requred by sdcdb on sparc-solaris; generate support/regression/Makefile
8098           from support/regression/Makefile.in
8099         * support/regression/Makefile.in: added
8100         * device/lib/pic16/Makefile.common.in: force make to use bash shell
8101         * sim/ucsim/libtool: regenerated on sparc-solaris
8102         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
8103           sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
8104           sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
8105           -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
8106           sparc-solaris, which doesn't use GNU ld linker
8107         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
8108         * as/Makefile: find on sparc-solaris does not support -maxdepth option
8109
8110 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
8111
8112         * src/mcs51/peeph.def: updated comments
8113
8114 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8115
8116         * device/lib/_gptrget.c,
8117         * device/lib/_gptrput.c: slightly shorter
8118         * doc/sdccman.lyx: incremented version
8119         * src/mcs51/peeph.def: moved peephole comments to the line of first
8120           change to better keep line correlation, reanimated 186.e
8121         * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
8122
8123 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
8124
8125         * src/pic/pcode.c : Pasted ".line" assembly directives patch from
8126           David Saxton with quotes around file name.
8127
8128 2005-08-15 Borut Razem <borut.razem AT siol.net>
8129
8130         * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
8131           support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
8132           support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
8133           make tests run on x86_64 platform
8134
8135 2005-08-13 Raphael Neider <rneider AT web.de>
8136
8137         * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
8138           as it might be executed DURING a build (parallel make is wonderful)
8139
8140 2005-08-13 Raphael Neider <rneider AT web.de>
8141
8142         * device/lib/Makefile.in (port-specific-objects-pic16):
8143           revert to cp $(PORT)/bin/*.* $(PORTDIR)
8144         * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
8145           dependency
8146         * device/lib/pic16/Makefile.rules: build subdirs before creating
8147           the library, removed builddir rule, create $(builddir) early in
8148           recurse rule, use empty recurse rule for leaf directories
8149         * device/lib/pic16/Makefile.subdir: added phony targets, ignore
8150           mkdir errors (race condition), removed duplicate suffix "hex"
8151           from clean rules
8152         * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
8153         * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
8154           prevents mkdir -p from aborting on Alpha
8155
8156 2005-08-12 Raphael Neider <rneider AT web.de>
8157
8158         * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
8159           db-statements in order to allow for arrays of pointers in code
8160           sections to be placed without interspersed 0-padding, fixes
8161           bug #1256215
8162         * (emitStatistics): fixed division by zero for pic18f1220
8163         * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
8164           unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
8165         * (pic16_emitDS): respect DB_ITEMS_PER_LINE
8166         * (pic16_pCodeConstString): keep track of already emitted string
8167           literals to prevent "duplicate definitions of symbol _str_NR"
8168         * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
8169           debug message
8170         * device/lib/Makefile.in: ignore failing PIC16 library builds
8171         * device/lib/pic16/Makefile: do not build if gputils are missing
8172         * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
8173
8174 2005-08-10 Raphael Neider <rneider AT web.de>
8175
8176         * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
8177           my last commit)
8178
8179 2005-08-10 Raphael Neider <rneider AT web.de>
8180
8181         * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
8182           Rokas' patch to add the new fixed point type "__fixed16x16"
8183         * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
8184           functions for __fixed16x16 arithmetics
8185         * device/lib/pic16: reimplemented the build system to support
8186           a separate build directory, better handling of libio (create
8187           the library in a separate subdir for each architecture) and
8188           easier configuration (centralized in Makefile.common)
8189
8190 2005-08-07 Raphael Neider <rneider AT web.de>
8191
8192         * src/pic16/gen.c (genrshTwo): fixed sign extension
8193         * src/pic16/device.c: added pic18f2320, 4220 and 4320
8194         * device/include/pic16/pic18f2220.h: changed some bit definitions,
8195           added T0CONbits
8196         * device/include/pic16/pic18f4220.h: NEW, header for
8197           pic18f4220 and pic18f4320
8198         * device/include/pic16/pic18fregs.h: added new devices,
8199           embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
8200         * device/include/pic16/signal.h: resolved name clashes
8201           on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
8202           to also allow testing for interrupt enable bits, added
8203           comments on how to use the macros
8204         * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
8205         * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
8206           register definitions for the devices
8207         * device/lib/pic16/pics.all: added new devices
8208         * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
8209           allocated memory
8210         * device/lib/pic16/libc/stdlib/memfree: do not count
8211           the block header as free memory
8212         * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
8213           simplified and added missing end-of-blocklist-marker
8214           (reported by Peter Onion, fixes #1252814)
8215         * (_mergeHeapBlock): fixed loop condition
8216         * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
8217           len==0, restructured code
8218         * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
8219           up a bit, reduced bitfield accesses, prevent endless loops
8220           in case of heap corruption
8221         * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
8222           "unreferenced arguments/must return a value" warnings
8223         * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
8224           replaced BAUDREG with SPBRG
8225         * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
8226           device/lib/pic16/debug/gstack/gstack.c: replaced
8227           _naked, _asm, _endasm with __naked, __asm, __endasm
8228
8229 2005-08-05 Raphael Neider <rneider AT web.de>
8230
8231         * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
8232           AOP_PCODE operands, fixes multibyte union-bitfield-accesses
8233
8234 2005-08-05 Borut Razem <borut.razem AT siol.net>
8235
8236         * device/lib/Makefile.in: added missing ';'
8237         * configure: removed ^M characters
8238
8239 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8240
8241         * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
8242           device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
8243           License
8244
8245 2005-08-04 Borut Razem <borut.razem AT siol.net>
8246
8247         * configure.in: pic16 libraries build 2nd try - enable running
8248           configure in device/lib/pic16
8249         * configure: regenerated from configure.in
8250         * device/lib/Makefile.in: create $(PORT)/bin directory
8251
8252 2005-08-03 Raphael Neider <rneider AT web.de>
8253
8254         * src/pic16/gen.c (pic16_derefPtr): NEW, single place
8255           to get/set values via pointers
8256         * (genUnpackBits,genPackBits): changed detection of
8257           ptr->bitfield vs. sym.bitfield, fixed access via generic
8258           pointers, removed dead (wrong) code for multibyte bitfields
8259         * (genNearPointerGet, genGenPointerGet): removed useless code,
8260           fixed bitfield detection, fixes #1250594
8261         * (genNearPointerSet): removed useless code
8262         * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
8263           and introduced macro pic16_emitpcode that conditionally emits
8264           the origin of the following pCode (useful for debugging SDCC)
8265         * src/pic16/pcode.c: changed (and disabled) some debug outputs
8266         * (createDefmap): fixed handling of LFSR for --optimize-df
8267
8268 2005-08-02 Borut Razem <borut.razem AT siol.net>
8269
8270         * device/lib/Makefile.in: pic16 libraries build enabled since
8271           gputils-0.13.2 are now localy installed at sourceforge's compile farm
8272
8273 2005-08-02 Raphael Neider <rneider AT web.de>
8274
8275         * src/pic16/gen.c (genPackBits): removed deprecated warning
8276         * (genGenPointerSet): fixed bitfield detection
8277
8278 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8279
8280         * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
8281
8282 2005-07-31 Raphael Neider <rneider AT web.de>
8283
8284         * device/lib/pic16/libdev/pic18f458.c,
8285           device/include/pic16/pic18f458.h: added missing T0CONbits
8286
8287 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
8288
8289         * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
8290
8291 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
8292
8293         * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
8294
8295 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8296
8297         * device/include/mcs51/at89c51ed2.h: added.
8298
8299 2005-07-23 Raphael Neider <rneider AT web.de>
8300
8301         * src/pic/gen.h: added emitpcode macro for debugging
8302         * src/pic/gen.c (emitpcode): renamed to emitpcode_real
8303           and replace by macro adding debug information on demand
8304         * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
8305         * (gencjne): tried to fix; replaced with correct (slower) code
8306         * (gen{Unp,P}ackBits): fixed single bit access
8307         * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
8308         * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
8309           previous instruction
8310         * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
8311           register has to be handled with care (forbidding movement
8312           of assignments/uses, removing assignments completely, ...)
8313         * (pCodeOptime2pCodes): make use of regIsSpecial
8314         * added lots of debugging output (commented out)
8315         * src/pic/rallloc.c (deassignLRs): prevent operand registers
8316           from being reused as result UNLESS it is known to work
8317
8318 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
8319
8320         * support/Util/dbuf.h: include <stddef.h> for size_t
8321         * .version: changed to version 2.5.2
8322
8323 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8324
8325         * src/SDCCloop.c (loopInvariants): fixed bug #1234048
8326
8327 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8328
8329         * src/hc08/gen.c (genMinus): fixed bug #1241835,
8330           (genModOneByte): removed needless psha/pula
8331
8332 2005-07-22 Raphael Neider <rneider AT web.de>
8333
8334         * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
8335           have PIC14 handled like PIC16, fixes broken pic14 linker calls
8336         * src/pic/gen.c (resolveIfx): do not "invent" labels
8337         * (genSkipc): changed to positive logic
8338         * (genSkipCond): removed as no longer needed
8339         * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
8340           backport from PIC16
8341         * (genLeftShift): check operands are in different registers
8342         * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
8343           INCF does not update CARRY...
8344         * src/pic/main.c: fixed _linkCmd
8345         * src/pic/pcode.c (unlinkpCode): added inactive code
8346         * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
8347           alive (do not assign result and operand overlapping registers)
8348
8349 2005-07-22 Raphael Neider <rneider AT web.de>
8350
8351         * src/pic/device.c (dump_sfr): replaced register declaration with
8352           call to emitSymbolToFile() to avoid duplicate symbols
8353         * (assignRelocatableRegisters): do not declare external symbols
8354         * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
8355           right (take size of type, not etype)
8356         * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
8357         * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
8358         * (packRegsForAccUse): disabled assignment of WREG as
8359           the result reg to prevent occurence of just fixed #1235003,
8360           fixes #1242954
8361         * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
8362           symbols (avoids duplicate symbols in .asm file)
8363         * (pic14emitRegularMap): use emitSymbolToFile()
8364         * src/pic/gen.c (aopOp): fixed spillLocation handling
8365         * (gen{Unp,P}ackBits): fixed acquiring bit-operands
8366         * (genDataPointerSet): removed unneccessary variables/output
8367
8368 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
8369
8370         * as/mcs51/lkarea.c: enlarged codemap for banked memory
8371         * device/lib/mcs51/crtbank.asm: added # to 0x0F
8372
8373 2005-07-21 Raphael Neider <rneider AT web.de>
8374
8375         * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
8376           architecture cannot handle them efficiently, fixes bug #1235003
8377         * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
8378           check for empty sets before using them (fixes bug #1232190)
8379
8380 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
8381
8382         * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
8383           (lnksect2): generate warnings for memory overlap
8384         * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
8385           constseg to set the name of these segments so you can instruct the linker
8386           to place them in banks
8387         * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
8388         * src/SDCCglobl.h: added MODEL_HUGE to enum,
8389           added code_seg and const_seg to options
8390         * src/SDCCglue.c (emitMaps): use options.const_seg,
8391           (createInterruptVect): put interrupt vectors in segment HOME,
8392           (glue): put HOME before static segment and put the main glue in HOME,
8393           (glue): use options.code_seg
8394         * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
8395         * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
8396           these segments so you can instruct the linker to place them in banks
8397           (linkEdit): use code_loc for HOME segment which should be the first
8398           segment in code memory now
8399         * src/SDCCmem.c: fixed more stuff like bug 1238386
8400         * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
8401           (changePointer): don't change function pointers to code pointers for
8402           banked functions,
8403           (compareType): added exceptional check for banked function pointers
8404         * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
8405         * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
8406           after static in code memory
8407         * src/mcs51/gen.c: added aopLiteralLong prototype,
8408           (aopForSym): use getSize for functions,
8409           (genCall): generate banked calls over one trampoline __sdcc_banked_call
8410           in HOME with lsb of address in r0, msb in r1 and bank in r2, use
8411           -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
8412           the segment,
8413           (genPcall): use call for literal function pointers and generate banked
8414           calls over the one trampoline so there's only one place for the user to
8415           modify according to his/hers hardware,
8416           (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
8417           (genPlusIncr): moved check icount>4 beyond inc dptr optimization
8418         * src/mcs51/main.c: added keyword banked,
8419           (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
8420         * support/Util/SDCCerr.c,
8421         * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
8422           needed for passing the bank and address to the trampoline
8423         * device/lib/mcs51/crtbank.asm: added for bankswitching
8424         * device/lib/mcs51/Makefile: added crtbank
8425
8426 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8427
8428         * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
8429           for fields at offset 0 of a struct or union as reported
8430           on 2005-07-07 in the developer mailing list.
8431
8432 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
8433
8434         * src/SDCCmem.c: fixed bug 1238386
8435
8436 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8437
8438         * src/mcs51/peeph.def: added labelrefcounting for peepholes
8439           (patch #1144962), added peephole 300, enabled 259.x
8440         * doc/sdccman.lyx: removed screenshot and provided link instead
8441
8442 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8443
8444         * doc/sdccman.lyx: added section about debugging with ddd
8445         * doc/figures/ddd_example.eps: screenshot of debugging session
8446
8447 2005-07-04 Raphael Neider <rneider AT web.de>
8448
8449         * src/pic/gen.c (genPointerGet): handle pointers to CONST values
8450           like CODE pointers, fixes #1115683
8451         * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
8452           call, fixes bugs #1232211, #1228110,
8453           fixed wrong casts to pCodeFlow from pCodeInstructions
8454
8455 2005-07-04 Raphael Neider <rneider AT web.de>
8456
8457         * src/pic/gen.c (popGet): changed assert to allow for
8458           bit operands
8459         * (popGetAddr): changed signature to provide
8460           an additional index, patched all call sites
8461         * (genCmpEq): handle literal-like operands correctly
8462         * (genAddrOf): added sanity checks on __code/__data pointers
8463         * (genAssign): added handling of symbols from __code section
8464         * (gencjne): do not generate code for comparisons whose result
8465           is neither stored nor used, fixes bug #1171114
8466         * (AccLsh, AccRsh): operate on operand instead of WREG
8467         * (shift{Left,Right}_Left2ResultLit): NEW, size independant
8468           replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
8469           by known count
8470         * rewrote complete shift-by-literal logic, commented unused
8471           functions out
8472         * (genConstPointerGet): get multiple bytes (if result size > 1),
8473           fixed handling of non-immediate addresses
8474         * (genPointerGet): handle CODE pointers like CONST pointers
8475         * (genpic14Code): insert C-SRC lines as Cource-pCodes
8476         * ({aop,op}_isLitLike): NEW, single place to decide whether an
8477           operand is to be treated as a literal or not
8478         * (mov2w,genPcall,genCmpEq),
8479           src/pic/genarith.c: use aop_isLitLike() to decide between
8480           literal/register contents
8481         * (addSign): added missing offset
8482         * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
8483           only emit comment in debug-mode,
8484           use {aop,op}_isLitLike throughout the file
8485         * src/pic/glue.c: fix initializers for pointers (work in progress)
8486         * src/pic/pcode.c (get_op): honor index on _const symbols
8487         * ({reset,dump}pCodeStatistics): NEW, estimate code size
8488         * (dumppBlock): added pCode size estimation
8489         * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
8490           check for IS_SYMOP before OP_SYMBOL'ing
8491         * fixed indentation, compacted switch-statements
8492         * (allocReg): find free register and allocate it instead of
8493           allocating new registers all the time
8494         * (deassignLRs): prevent POINTER_GET's from being assigned the same
8495           registers as its operands (necessary only for multibyte GETs)
8496
8497 2005-07-01 Raphael Neider <rneider AT web.de>
8498
8499         * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
8500           debugging .asm-output macros FENTRY + FEXIT
8501         * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
8502           way... I wonder...
8503         * (emitpComment): NEW, printf to pCode
8504         * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
8505           offset handling
8506         * (popGetAddr): NEW, variant of popGet to access an immediates
8507           high(er) bytes instead of the n'th byte of memory they reference,
8508           replaced popGet with popGetAddr where neccessary
8509         * (genDataPointerGet): reactivated and fixed implementation
8510         * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
8511           accesses
8512         * (genDataPointerSet): fixed multibyte assignments
8513         * (genpic14Code): fixed --i-code-in-asm handling
8514         * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
8515         * (genPlus): fixed index-out-of-bounds error
8516         * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
8517         * src/pic/ralloc.c: added debugging output macro FENTRY2
8518         * (spillThis): fixed indentation, enbraced for-body for clarity
8519         * (rematStr): commented out as now unused
8520         * (regTypeNum): commented out special spill case (overwrites
8521           arbitrary values)
8522         * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
8523
8524 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
8525
8526         * doc/sdccman.lyx: documented sfr16/sfr32,
8527           added example for using storage class with function pointers
8528         * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
8529
8530 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
8531
8532         * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
8533         * device/lib/_itoa.c,
8534         * device/lib/_ltoa.c: optimized codesize
8535         * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
8536           but don't know how to suppress the double warning.
8537         * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
8538         * support/Util/SDCCerr.c,
8539         * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
8540
8541 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
8542
8543         * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
8544           fixed old K&R prototypes
8545         * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
8546         * device/lib/_gptrget.c,
8547         * device/lib/_gptrgetc.c,
8548         * device/lib/_gptrput.c: changed versions for new memory indicator values,
8549           also new versions for small generic pointers and banked generic pointers
8550         * src/port.h: added const_name
8551         * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
8552         * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
8553         * src/SDCCcse.c (findPrevIc): check all associative operators
8554         * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
8555         * src/SDCCicode.h: added macro IS_ASSOCIATIVE
8556         * src/SDCCmem.c: updated comments,
8557           set far-space to 0 for pdata, results in optimized code
8558         * src/SDCCmem.h: added macro CONST_NAME
8559         * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
8560           moving the info into the highest bits, see also gptrget/gptrput
8561         * src/src.dsp: added sdcc.ico to project files
8562         * src/avr/gen.c (genCast): fixed bug 0x%d
8563         * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
8564         * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
8565           relation between ptr_type and DCL_TYPE,
8566           (genCast): fixed bug 0x%d
8567         * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
8568           (CODE)" for const_name
8569         * src/hc08/gen.c (genCast): fixed bug 0x%d
8570         * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
8571           (hc08_port): added "CONST (CODE)" for const_name
8572         * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
8573           (aopForRemat, adjustArithmeticResult): disconnected direct relation
8574           between ptr_type and DCL_TYPE,
8575           (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
8576           operand* and took AOP() inside function so sfr-ness can be checked,
8577           (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
8578           new prototype,
8579           (genFunction, genEndFunction): optimized stack setup,
8580           (genMinus): optimized for literals with ending zeroes (in bytes),
8581           (genCast): fixed bug 0x%d
8582         * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
8583           (mcs51_port): added "CONST (CODE)" for const_name
8584         * src/mcs51/peeph.def: made rule 226 more generic
8585         * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
8586         * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
8587         * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
8588         * src/z80/main.c (z80_port): added NULL for const_name,
8589           (gbz80_port): added NULL for const_name
8590         * support/regression/tests/bug663539.c,
8591         * support/regression/tests/sfr16.c: new tests
8592
8593 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8594
8595         * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
8596
8597 2005-06-24 Raphael Neider <rneider AT web.de>
8598
8599         * device/lib/pic16/libdev/pic18f[68][567]20.c:
8600           corrected typos...
8601         * device/include/pic16/signal.h: added USBIF
8602           and SIG_USB
8603
8604 2005-06-24 Raphael Neider <rneider AT web.de>
8605
8606         * device/lib/pic16/libdev/pic18f2455.c,
8607           device/include/pic16/pic18f2455.h: NEW
8608         * device/include/pic16/pic18fregs.h,
8609           device/lib/pic16/pics.all,
8610           src/pic16/device.c: added 18f2455
8611         * device/lib/pic16/libdev/pic18f[68][567]20.c,
8612           device/include/pic16/{pic18f[68][567].h,usart.h}:
8613           replaced MULTIPLE_USARTS define with more relaible
8614           compatibility sfrs (for USART access)
8615
8616 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
8617
8618         * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
8619           and the output asm file line is printed on two lines.
8620
8621 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8622
8623         * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
8624           BGT, BLE, BHI, and BLS instructions
8625         * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
8626           genCmpEq): removed
8627         * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
8628           negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
8629           fixes bug #1216342
8630         * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
8631
8632 2005-06-15 Raphael Neider <rneider AT web.de>
8633
8634         * src/pic16/NOTES: moved Vangelis from active developers to people to contact
8635         * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
8636         * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
8637           fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
8638           OP_SYM_TYPE() instead of OP_SYM_ETYPE()
8639
8640 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8641
8642         * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
8643           Marcel Telka in bug #1215704
8644
8645 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
8646
8647         * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
8648           located in shared memory bank.
8649
8650 2005-05-31 Raphael Neider <rneider AT web.de>
8651
8652         * src/pic16/{gen.c,genarith.c}: replaced sign-extension
8653           "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
8654           "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
8655
8656 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
8657
8658         * device/lib/_strncpy.c: fixed the fix
8659
8660 2005-05-26 Raphael Neider <rneider AT web.de>
8661
8662         * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
8663           initializers with \0, bug #1208187
8664         * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
8665           intializers with \0, bug #1208187
8666
8667 2005-05-26 Raphael Neider <rneider AT web.de>
8668
8669         * src/pic16/glue.c (pic16_printIvalChar): fixed string
8670           initializers with \0, bug #1208187
8671         * src/pic16/main.c (_process_pragma): added sanity checks
8672           for stack position and size, emit warnings when appropriate
8673
8674 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
8675
8676         * device/lib/_strncpy.c: fixed not filling with \0
8677
8678 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8679
8680         * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
8681           createFunction),
8682         * src/SDCC.y (external_definition, enumerator, parameter_declaration,
8683           compound_statement),
8684         * src/SDCCsymt.h,
8685         * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
8686
8687 2005-05-24 Raphael Neider <rneider AT web.de>
8688
8689         * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
8690
8691 2005-05-24 Raphael Neider <rneider AT web.de>
8692
8693         * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
8694           TRISE definitions, closes bug #1162453
8695
8696 2005-05-22 Raphael Neider <rneider AT web.de>
8697
8698         * src/pic16/main.c (_process_pragma): check for missing
8699           arguments to pragmas code and udata
8700         * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
8701           consistency fixes to match other headers (thanks to Jim Paris)
8702         * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
8703
8704 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
8705
8706         * src/SDCCicode.c (isOperandEqual): fixed missing ;
8707
8708 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
8709
8710         * support/regression/tests/bug1198642.c: new test
8711         * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
8712         * src/SDCCcse.c (findPrevIc): added comment, please have a look
8713         * support/scripts/resource.h,
8714         * support/scripts/resource.rc,
8715         * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
8716         * support/scripts/sdcc.ico: added 32x32 icon
8717
8718 2005-05-18 Raphael Neider <rneider AT web.de>
8719
8720         * device/lib/pic16/libdev/pic18f*.c,
8721         * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
8722           keywords to "__sfr" and "__at (X)"
8723         * device/include/pic16/pic18fregs.h: added pic18f4520
8724         * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
8725           #1203088 (MPLAB compatibility)
8726
8727 2005-05-17 Raphael Neider <rneider AT web.de>
8728
8729         * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
8730         * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
8731         * device/lib/pic16/pics.all: added new devices
8732         * src/pic16/device.c: added support for pic18f4520
8733
8734 2005-05-16 Raphael Neider <rneider AT web.de>
8735         * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
8736         * src/pic16/genarith.c (genAddLit): fixed bug 1202480
8737         * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
8738           convenience function for bit access
8739
8740 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
8741
8742         * device/lib/printf_large.c: fixed bug 1193299
8743         * support/regression/tests/bug1057979.c: added test %3.3s
8744
8745 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8746
8747         * device/include/mcs51/8051.h,
8748         * device/include/mcs51/8052.h: made parseable with lint
8749         * device/include/mcs51/lint.h: added include file for (sp)lint
8750         * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
8751         * doc/cdbfileformat.lyx,
8752         * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
8753
8754 2005-05-14 Raphael Neider <rneider AT web.de>
8755
8756         * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
8757         * device/lib/pic16/libc/stdlib/itoa.c (new)
8758         * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
8759         * device/lib/pic16/libio/Makefile: exclude subdir according to
8760           ${subdir}.ignore for certain PICs (lacking e.g. i2c)
8761         * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
8762         * src/pic16/gen.c (genFunction): prevent annoying warning
8763         * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
8764           nameclashes on BeOS
8765         * support/cpp2/cppmain.c (cpp_output_string): new
8766         * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
8767           fixes bug 1116802
8768
8769 2005-05-13 Borut Razem <borut.razem AT siol.net>
8770
8771         * src/SDCCmain.c (linkEdit): fixed bug 1195202
8772
8773 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8774
8775         * .version: changed to version 2.5.1; back to bleeding edge development
8776
8777 2005-05-11 Borut Razem <borut.razem AT siol.net>
8778
8779         * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
8780           generate PDF version 1.3 documents
8781
8782 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8783
8784         * .version: changed to version 2.5.0
8785
8786 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8787
8788         * doc/sdccman.lyx: updated weblinks, index and smaller updates
8789
8790 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8791
8792         * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
8793         --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
8794         well as many smaller updates.
8795         * .version: changed to version 2.5.0-pre1
8796
8797 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8798
8799         * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
8800
8801 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
8802
8803         * support/regression/tests/bug1185672.c: added
8804         * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
8805           bug 1185672
8806         * src/mcs51/gen.c (genCall): added comments, made it look safer
8807         * src/mcs51/gen.c (genEndFunction): simplified
8808
8809 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
8810
8811         * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
8812
8813 2005-04-14 Borut Razem <borut.razem AT siol.net>
8814
8815         * fixed bug 1045046 - SIGSEGV with really simple code?:
8816           src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
8817           src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
8818
8819 2005-04-14 Borut Razem <borut.razem AT siol.net>
8820
8821         * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
8822           src/pic16/device.h: temporarily disabled experimental #inline pragma
8823           for 2.5.0 release
8824
8825 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
8826
8827         * device/include/z80/stdio.h,
8828         * device/include/z80/string.h: removed these highly incomplete files so
8829           SDCC can use the default ones in device/include/
8830
8831 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8832
8833         * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
8834         gcc warning.
8835         * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
8836         fix sdcpp warnings.
8837
8838 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
8839
8840         * device/include/malloc.h: removed redundant __reentrant prototypes
8841         * device/lib/_mullong.c: added working xstack variant in asm (C version
8842           doesn't pass regression tests)
8843         * device/lib/bpx.c: used __data and made bpx char for mcs51
8844         * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
8845           (createFunction): fixed bug with xstackPtr
8846         * src/SDCCcse.c: corrected comments
8847         * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
8848           (killDeadCode, eBBlockFromiCode): removed unused code
8849         * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
8850           corrected comments
8851         * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
8852           assignResultValue, genCall, genFunction, genEndFunction, genAnd,
8853           genOr, genXor, genAddrOf): fixed several bugs concerning xstack
8854           (genModOneByte): fixed warning in MSVC
8855         * src/mcs51/main.c (): added comments
8856         * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
8857
8858 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
8859
8860         * src/SDCCmain.c (linkEdit): oops, changed one line too many
8861
8862 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
8863
8864         * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
8865
8866 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
8867
8868         * src/pic16/glue.c (printIvalChar): fixed bug when emitting
8869         characters arrays of larger size than the declared one.
8870
8871 2005-04-10 Borut Razem <borut.razem AT siol.net>
8872
8873         * src/pic/gen.c (genInline),
8874           src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
8875           (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
8876           (findNextInstruction), (findPrevInstruction),
8877           (findInstructionUsingLabel),
8878           src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
8879         * src/pic/pcode.c (findLabel): added missing '\n'
8880         * src/src.dsp: added SDCCdwarf2.c to the project
8881
8882 2005-04-09 Borut Razem <borut.razem AT siol.net>
8883
8884         * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
8885
8886 2005-04-08 Raphael Neider <rneider AT web.de>
8887
8888         * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
8889           into the chain after a given one) and mergeDefmapSymbols (combine
8890           defmap entries for each symbol per pcode)
8891         * (createDefmap): have defmap entries merged in the end
8892         * (defmapReplaceSymRef): split defmap entries covering two accesses to
8893           a symbol before replacing one access type's symbol, merge symbols in
8894           the end (replacement symbol might already have an entry)
8895         * (assignValnums): keep reference to written WREG intact
8896
8897 2005-04-08 Raphael Neider <rneider AT web.de>
8898
8899         * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
8900           Alpha)
8901
8902 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
8903
8904         * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
8905         bytes
8906
8907 2005-04-07 Raphael Neider <rneider AT web.de>
8908
8909         * device/include/pic16/usart.h: added compatibility defines for
8910           devices with more than one USART
8911         * device/include/pic16/pic18f[68][567]20.h: activated above defines
8912
8913 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
8914
8915         * device/lib/Makefile.in: updated for port specific include
8916
8917 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
8918
8919         * support/regression/ports/mcs51/spec.mk: added mcs51 include
8920
8921 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
8922
8923         * device/include/8051.h,
8924         * device/include/8052.h,
8925         * device/include/at89S8252.h,
8926         * device/include/at89c55.h,
8927         * device/include/at89x051.h,
8928         * device/include/at89x51.h,
8929         * device/include/at89x52.h,
8930         * device/include/mcs51reg.h,
8931         * device/include/reg51.h,
8932         * device/include/reg764.h,
8933         * device/include/regc515c.h,
8934         * device/include/sab80515.h: (re)moved these 12 files
8935         * device/include/mcs51/8051.h,
8936         * device/include/mcs51/8052.h,
8937         * device/include/mcs51/at89S8252.h,
8938         * device/include/mcs51/at89c55.h,
8939         * device/include/mcs51/at89x051.h,
8940         * device/include/mcs51/at89x51.h,
8941         * device/include/mcs51/at89x52.h,
8942         * device/include/mcs51/mcs51reg.h,
8943         * device/include/mcs51/reg51.h,
8944         * device/include/mcs51/reg764.h,
8945         * device/include/mcs51/regc515c.h,
8946         * device/include/mcs51/sab80515.h: and added them here
8947
8948 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
8949
8950         * device/include/stdarg.h: changed SDCC specific keywords to double
8951           underlined form.
8952         * device/include/stdint.h: changed intptr_t and uintptr_t for others than
8953           mcs51 and ds390.
8954         * device/include/hc08/mc68hc908gp32.h,
8955         * device/include/hc08/mc68hc908jb8.h,
8956         * device/include/hc08/mc68hc908jkjl.h,
8957         * device/include/hc08/mc68hc908qy.h: fixed comments
8958         * device/include/mcs51/README: updated
8959         * device/include/mcs51/c8051f120.h: added PINRSF
8960         * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
8961         * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
8962           amidst code. Also inline is not supported.
8963
8964 2005-04-06 Raphael Neider <rneider AT web.de>
8965
8966         * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
8967         * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
8968           callers stack/frame pointers
8969
8970 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
8971
8972         * device/include/pic16/usart.h: added, missing in previous commit,
8973         * device/include/pic16/adc.h: fixed typo,
8974         * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
8975         commit,
8976         * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
8977         <p18fxxx.inc>
8978         * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
8979         uninitialized because a bug appears with gplink
8980         * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
8981         COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
8982         complains for unrecognised option
8983
8984 2005-04-05 Raphael Neider <rneider AT web.de>
8985
8986         * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
8987           structs as well (using memcpy)
8988         * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
8989           on ISRs (GOTO has no label)
8990         * src/pic16/device.h: added OF_OPTIMIZE_DF
8991         * src/pic16/main.c: added compiler switch --optimize-df to enable the
8992           new data flow analysis/optimization
8993         * src/pic16/pcode.c: added (prototypes for and implementation of)
8994           dataflow analysis functions, fixed pCodeInstructions' inCond and
8995           outCond values, made RCALL a branch instruction
8996         * (pic16_unlinkpCode): keep C line if possible
8997         * (pic16_pCodeUnlink): removed cast on left side of assignment, have
8998           C line moved if possible
8999         * (pic16_getRegFrompCodeOp): NEW, improved version of...
9000         * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
9001           to use new pic16_getRegFrompCodeOp (works for more SFRs)
9002         * (pic16_BuildFlow): fixed skip instructions with label (did not start
9003           new flow)
9004         * (pic16_getJumptabpCode): NEW, needed in...
9005         * (LinkFlow): fixed handling of jumptables, calls and conditional
9006           branches
9007         * (pic16_InsertCommentAfter): NEW
9008         * (pic16_pCodeReplace): made verbose and flow preserving
9009         * (AnalyzeFlow): added call to data flow analysis
9010         * src/pic16/pcode.h: added defmaps to pCodeFlow struct
9011         * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
9012         * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
9013
9014 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9015
9016         * src/SDCCast.c (decorateType): fixed bug #1105626
9017
9018 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
9019
9020         * device/include/asm/pic16/features.h,
9021         * pic18f*.h headers,
9022         * device/include/pic16/adc.h,
9023         * device/include/pic16/delay.h,
9024         * device/include/pic16/i2c.h,
9025         * device/include/pic16/malloc.h,
9026         * device/include/pic16/stdio.h,
9027         * device/include/pic16/stdlib.h,
9028         * device/include/pic16/string.h,
9029         * device/lib/pic16/libc/stdio/printf_tiny.c,
9030         * device/lib/pic16/libc/stdio/printf_small.c,
9031         * device/lib/pic16/libc/stdio/strmgpsim.c,
9032         * device/lib/pic16/libc/stdio/strmmssp.c,
9033         * device/lib/pic16/libc/stdio/strmusart.c,
9034         * device/lib/pic16/libc/stdio/vfprintf.c,
9035         * device/lib/pic16/libc/stdlib/ltoa.c,
9036         * device/lib/pic16/libc/stdlib/putchar.c,
9037         * device/lib/pic16/libc/stdlib/x_ftoa.c,
9038         * device/lib/pic16/libc/stdlib/memchrpgm.c,
9039         * device/lib/pic16/libc/stdlib/memchrram.c,
9040         * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
9041         * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
9042         * device/lib/pic16/libio/adc/adcbusy.c,
9043         * device/lib/pic16/libio/adc/adcread.c,
9044         * device/lib/pic16/libio/adc/adcsetch.c,
9045         * device/lib/pic16/libio/usart/ubaud.c,
9046         * device/lib/pic16/libio/usart/ubusy.c,
9047         * device/lib/pic16/libio/usart/udrdy.c,
9048         * device/lib/pic16/libio/usart/uopen.c,
9049         * device/lib/pic16/libio/usart/uputc.c,
9050         * device/lib/pic16/libsdcc/gptr/gptrget1.c,
9051         * device/lib/pic16/libsdcc/gptr/gptrget2.c,
9052         * device/lib/pic16/libsdcc/gptr/gptrget3.c,
9053         * device/lib/pic16/libsdcc/gptr/gptrget4.c,
9054         * device/lib/pic16/libsdcc/gptr/gptrput1.c,
9055         * device/lib/pic16/libsdcc/gptr/gptrput2.c,
9056         * device/lib/pic16/libsdcc/gptr/gptrput3.c,
9057         * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
9058         specific keywords to double underlined form,
9059         * device/lib/pic16/libc/Makefile.rules,
9060         * device/lib/pic16/libsdcc/Makefile.rules,
9061         * device/lib/pic16/libm/Makefile,
9062         * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
9063         to compile with C standard set in Makefile.common
9064         * device/lib/pic16/libc/stdlib/Makefile: added new C sources
9065         rand.c and crc.c in compilation process,
9066         * device/lib/pic16/libsdcc/int/divuint.c,
9067         * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
9068         `c' from signed to unsigned,
9069         * device/lib/pic16/startup/crt0.c,
9070         * device/lib/pic16/startup/crt0i.c,
9071         * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
9072         keywords to double underlined form, bug fixes in _do_cinit function
9073         which prevented the correct initialization of the .idata segment,
9074         * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
9075         core to enter a infinite loop
9076         * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
9077
9078 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9079
9080         * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
9081
9082 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9083
9084         * device/include/Makefile.in: add support for hc08 subdirectory
9085         * device/include/hc08/: new subdirectory
9086         * device/include/hc08/mc68hc908jkjl.h: new header contributed by
9087         Lucas Loizaga, thanks!
9088         * device/include/hc08/mc68hc908qy.h,
9089         * device/include/hc08/mc68hc908gp32.h,
9090         * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
9091         their own directory. Changed internal macro names to use the compiler
9092         reserved namespace. Changed SDCC specific keywords to double
9093         underlined form.
9094         * device/include/math.h,
9095         * device/include/malloc.h,
9096         * device/include/stdarg.h,
9097         * device/include/stdbool.h
9098         * device/include/string.h,
9099         * device/include/tinibios.h,
9100         * device/include/ds400rom.h,
9101         * device/include/8051.h,
9102         * device/include/8052.h,
9103         * device/include/80c51xa.h,
9104         * device/include/at89c55.h,
9105         * device/include/at89S8252.h,
9106         * device/include/at89x51.h,
9107         * device/include/at89x52.h,
9108         * device/include/ds80c390.h,
9109         * device/include/reg764.h,
9110         * device/include/regc515c.h,
9111         * device/include/sab80515.h,
9112         * device/include/mcs51/c8051f000.h,
9113         * device/include/mcs51/c8051f018.h,
9114         * device/include/mcs51/c8051f020.h,
9115         * device/include/mcs51/c8051f040.h,
9116         * device/include/mcs51/c8051f060.h,
9117         * device/include/mcs51/c8051f120.h,
9118         * device/include/mcs51/c8051f300.h,
9119         * device/include/mcs51/c8051f310.h,
9120         * device/include/mcs51/c8051f320.h,
9121         * device/include/mcs51/c8051f330.h,
9122         * device/include/mcs51/c8051f350.h,
9123         * device/include/z180.h: Changed SDCC specific keywords to double
9124         underlined form.
9125
9126 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
9127
9128         * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
9129         18F4455,
9130         * (pic16_assignConfigWordValue): disable testing of configuration
9131         register value with config mask,
9132         * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
9133         function with port->fun_prefix,
9134         * (genFunction): when generating a naked interrupt function never
9135         create an absolute segment placed in interrupt vector address, place
9136         the actual interrupt function at IVA instead, when an interrupt
9137         function is generated with unspecified interrupt then do not create
9138         the absolute section,
9139         * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
9140         code for generating a call to generic pointer get/put function with
9141         a call to function pic16_callGenericPointer(),
9142         * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
9143         the call to the generic pointer get/put functions with prefixing the
9144         function name with port->fun_prefix,
9145         * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
9146         * src/pic16/main.c (_process_pragma): prefix function with
9147         port->fun_prefix,
9148         * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
9149         calling assembler, old 18Fxxxx macro is deprecated,
9150         * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
9151         PC_ASMDIR in while condition,
9152         * (findInstruction): add PC_ASMDIR in while condition,
9153         * (buildCallTree): prefix main with port->fun_prefix,
9154         * (pic16_pCode2str): fixed bug that didn't emit the memory access
9155         identifier for variable with banked access in instructions BTFSS,
9156         BTFSC, BCF, BSF, BTG
9157         * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
9158         * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
9159         * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
9160         perform optimization when enviroment variable NO_REG_OPT is set,
9161         * (insideLRBlock): NEW, return 1 if register is inside an
9162         INF_LOCALREGS block,
9163         * (RemoveRegFromLRBlock): remove a register that is completely
9164         eliminated by register optimization, but it is still left in local
9165         register store/restore in/from stack block,
9166         * (Remove2pcodes): after removing register, check to see if it
9167         should be removed from local register store/restore in/from stack
9168         block,
9169         * src/pic16/ralloc.c (pic16_decodeOp): added decode for
9170         DUMMY_READ_VOLATILE,
9171
9172         * device/include/pic16/adc.h: minor prototype modifications and
9173         update,
9174         * device/include/pic16/malloc.h: added GPL notice various
9175         modifications,
9176         * device/include/pic16/stdint.h: NEW, standard header for ints
9177         * device/include/pic16/delay.h: NEW, header for delay functions,
9178         delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
9179         delay1mtcy,
9180         * device/include/pic16/signal.h: NEW, header providing helper macros
9181         for implementing signal handlers,
9182         * device/include/pic16/stdio.h: added prototypes for functions,
9183         printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
9184         prototypes for stdin and stdout, added macro PUTCHAR to
9185         automatically implement putchar function prototype,
9186         * device/include/pic16/usart.h: modified and updated USART library,
9187         * device/lib/pic16/libio/adc/,
9188         * device/lib/pic16/libio/i2c: some modifications to improve library
9189         performance,
9190         * device/lib/pic16/libc/stdio/: modifications for the new printf*
9191         family of functions,
9192         * device/lib/pic16/libc/stdlib/: various modifications in the malloc
9193         family of functions and other sources,
9194         * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
9195         of the PIC18Fxx[28] devices,
9196         * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
9197         * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
9198         * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
9199         _do_cinit function, because the previous failed when local variables
9200         where not placed in the same memory bank,
9201         * device/lib/pic16/libsdcc/char/: various modifications to improve
9202         library performance,
9203         * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
9204         information on the new functions of the c library and more...
9205
9206 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9207
9208         * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
9209
9210 2005-03-26 Raphael Neider <rneider AT web.de>
9211
9212         * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
9213           if condition == CARRY)
9214         * (genCmp): adapted to new genSkipc semantics
9215         * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
9216           on rIfx (genCmp was broken)
9217
9218 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9219
9220         * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
9221         * src/z80/main.c (_keywords[]),
9222         * src/SDCCglobal.h (struct options),
9223         * src/SDCC.y,
9224         * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
9225         to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
9226         std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
9227         --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
9228         always available in leading double underscore form. The C99 support is
9229         mostly missing, but it's a start.
9230         * support/regression/tests/bug-227710.c: fixed nonconforming use of
9231         reserved identifier "__data".
9232
9233 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
9234
9235         * src/mcs51/peeph.def: fixed bug 1170013
9236
9237 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
9238
9239         * device/include/mcs51reg.h: fixed bug 842007
9240
9241 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9242
9243         * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
9244         last time.
9245
9246 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9247
9248         * src/port.h (struct PORT),
9249         * src/avr/ralloc.c (avr_assignRegisters),
9250         * src/avr/main.c,
9251         * src/ds390/ralloc.c (ds390_assignRegisters),
9252         * src/ds390/main.c,
9253         * src/hc08/ralloc.c (hc08_assignRegisters),
9254         * src/hc08/main.c,
9255         * src/mcs51/ralloc.c (mcs51_assignRegisters),
9256         * src/mcs51/main.c,
9257         * src/pic/ralloc.c (pic14_assignRegisters),
9258         * src/pic/main.c,
9259         * src/pic16/ralloc.c (pic16_assignRegisters),
9260         * src/pic16/main.c,
9261         * src/xa51/ralloc.c (xa51_assignRegisters),
9262         * src/xa51/main.c,
9263         * src/z80/ralloc.c (z80_assignRegisters),
9264         * src/z80/ralloc.h,
9265         * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
9266         * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
9267         * src/SDCCcse.h,
9268         * src/SDCCdflow.c (computeDataFlow),
9269         * src/SDCCdflow.h,
9270         * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
9271         * src/SDCCloop.h,
9272         * src/SDCCcflow.c (*),
9273         * src/SDCCcflow.h,
9274         * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
9275         * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
9276         of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
9277         immedDom() returning wrong block; probably fixes bug #1160833)
9278
9279 2005-03-20 Borut Razem <borut.razem AT siol.net>
9280
9281         * support/scripts/inc2h.pl: WIN32 port
9282
9283 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
9284
9285         * device/lib/makefile.in: added abs.c and labs.c
9286
9287 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
9288
9289         * device/include/stdint.h: added
9290         * device/lib/abs.c: added
9291         * device/lib/labs.c: added
9292         * device/include/stdlib.h: added abs() and labs() prototypes
9293         * device/lib/libsdcc.lib: added abs and labs
9294         * device/include/float.h,
9295         * device/lib/_fsmul.c,
9296         * device/lib/printf_fast.c,
9297         * device/lib/printf_tiny.c: updated comments
9298
9299 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9300
9301         * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
9302         bug #1164313
9303
9304 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9305
9306         * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
9307         * src/SDCCast.c (isLoopCountable): fixed bug #1161985
9308
9309 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
9310
9311         * device/lib/printf_large.c: removed inline assembly for portability and
9312           readability. Use printf_fast if speed or size are more important.
9313         * src/pic16/gen.c: removed conditions around use of DEBUGpc
9314         * src/pic16/genutils.h: added define for DEBUGpc for MSVC
9315
9316 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
9317
9318         * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
9319         prevent compiler warning
9320
9321 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
9322
9323         * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
9324         moved to level 0 and declared as static. Also they are explicit
9325         placed in access bank. This was necessery because some times they
9326         might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
9327         * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
9328         optimizations. Currently only compare to unsigned char is implemented,
9329         * src/pic16/gen.c: added fReturnIdx array,
9330         * (struct resolvedIfx) is moved to gen.h and made public,
9331         * (struct _G): added sregsAlloc and sregsAllocSet fields,
9332         * (aopForSym): added an optimization to directly store in stack of
9333         the operand of a SEND iCode,
9334         * (pic16_aopOp): don't return return registers as strings (AOP_STR)
9335         but as registers instead (AOP_REG) using the fReturnIdx array,
9336         * (pic16_freeAsmop): remove the freed register from the
9337         _G.sregsAlloc field,
9338         * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
9339         a compare of 'WREG',
9340         * (pic16_popGetTempRegCond): changed function prototype, now
9341         function takes also a bitVector argument v which holds the current
9342         set of registers that are allocated for stack access by aopForSym,
9343         registers allocated in aopForSym for accessing stack symbols are not
9344         any more part of the functions usedRegs field,
9345         * (genCall): some times aopOp is called for a stack variable to be
9346         send, aopForSym might perform the push, if this is true make sure
9347         that genCall doesn't push the variable twice by testing _G.resDirect,
9348         * (genFunction): changed testing for unspecified interrupt number
9349         from 256 to INTNO_UNSPEC,
9350         * modified selection scheme of frame pointer generation. Previously
9351         if function did use local registers a frame pointer was generated,
9352         now a frame pointer is generated only if function has arguments
9353         (that need PLUSW2 register access), or has stack arguments, or the
9354         compiler is not instructed to omit the frame pointer,
9355         * (genEndFunction): before restoring local registers that were saved
9356         in the function preamble, also restore the registers that *might*
9357         have been allocated for stack access,
9358         * (genRet): removed some old comments,
9359         * (genCmp, the active (RN's) version): added a call to the
9360         pic16_genCmp_special function to perform the compare with a more
9361         robust and optimized way,
9362         * (genInline): a feature has been added in inline code generation,
9363         which allows a wildcard variable substitution when writing inline
9364         assembly. Code is incomplete and experimental therefore undocumented,
9365         * (genCast): changed order of aopOp for result and right to allow
9366         aopForSym to directly load the result if possible,
9367         * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
9368         perform an optimized compare on some selected special occasions,
9369         * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
9370         * src/pic16/glue.c (pic16createInterrupVect): make sure we never
9371         generate an IVT any more,
9372         * src/pic16/main.c (pic16_optionsTable): added command line option
9373         --optimize-cmp,
9374         * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
9375         macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
9376         macros,
9377         * src/pic16/NOTES: Raphael Neider added in list of active developers
9378         * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
9379         jumptable_end to prevent bug #,
9380         * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
9381         inCond and outCond fields,
9382         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
9383         * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
9384         turn off register spilling,
9385         * (packRegsForOneUse): synced with other ports' versions although it
9386         is not used currently,
9387         * (pic16_packRegisters): added an optimization while reading
9388         structure bitfields, some registers may be saved (malloc code is
9389         decreased by 80 bytes)
9390
9391 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
9392
9393         * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
9394         left is a bitfield, if yes, then don't optimize assignment. Perhaps
9395         this can be optimized more?
9396
9397 2005-03-10 Raphael Neider <rneider AT web.de>
9398
9399         * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
9400           genNearPointerGet): (hopefully) fixed access to bitfields via
9401           pointers (p->bitN = x; and x = p->bitN; failed)
9402
9403 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
9404
9405         * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
9406
9407 2005-03-09 Raphael Neider <rneider AT web.de>
9408
9409         * src/SDCCopt.c (killDeadCode): fixed bug #1156016
9410
9411 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
9412
9413         * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
9414         * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
9415           (regTypeNum): set REG_BIT type if necessary
9416         * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
9417         * support/regression/tests/critical.c: check bug 1144613
9418
9419 2005-03-02 Raphael Neider <rneider AT web.de>
9420
9421         * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
9422
9423 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9424
9425         * src/avr/ralloc.c (serialRegAssign),
9426         * src/ds390/ralloc.c (serialRegAssign),
9427         * src/hc08/ralloc.c (serialRegAssign),
9428         * src/mcs51/ralloc.c (serialRegAssign),
9429         * src/pic/ralloc.c (serialRegAssign),
9430         * src/pic16/ralloc.c (serialRegAssign),
9431         * src/xa51/ralloc.c (serialRegAssign),
9432         * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
9433
9434 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
9435
9436         * src/SDCCast.c (decorateType): fixed bug 1124787
9437
9438 2005-02-20 Hubert Sack <sack AT digiplan.de>
9439         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9440
9441         * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
9442         patch #1121755
9443
9444 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9445
9446         * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
9447         to keep the correct label reference count when adding/removing references
9448         to labels. A peephole file using this is appended to patch #1144962.
9449
9450 2005-02-14 Raphael Neider <rneider AT web.de>
9451
9452         * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
9453         * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
9454         * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
9455           retrievals of result operand's value on assignment
9456
9457 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
9458
9459         * device/include/pic16/string.h: modified prototype for memccpy()
9460         to memccpy(void *, void *, char, size_t)
9461         * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
9462         check whether to omit frame pointer or not,
9463         * (genInline): convert all occurences of "\n" to LF in inline
9464         assembler blocks, this helps formatting the inline text,
9465         * (pic16_loadFSR0): modified prototype,
9466         * (genNearPointerGet, genNearPointerSet): reorganization of code,
9467         removed some 8051 legacy code,
9468         * (genPackBits): enabled handling bitfields exceeding one byte in size,
9469         * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
9470         before allocating temporary registers in functions,
9471
9472 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
9473
9474         * support/regression/tests/bitvars.c: corrected the "fix"
9475
9476 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
9477
9478         * support/regression/tests/bitvars.c,
9479         * support/regression/tests/bitwise.c,
9480         * support/regression/tests/rotate.c: "fixed" problems on Alpha
9481
9482 2005-02-10 Raphael Neider <rneider AT web.de>
9483
9484         * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
9485           different size for Alpha
9486         * src/pic16/gen.c (genCmpEq) : improved compare with 0
9487
9488 2005-02-09 Raphael Neider <rneider AT web.de>
9489
9490         * src/SDCC.lex(doPragma) : save and restore warning options as well
9491           (also added new stack plus clone- and copyAndFreeSDCCERRG())
9492         * have #pragma less_pedantic set the errorlevel to WARNING
9493           (fixes #1117001)
9494         * (cloneOptimize) : fixed wrong malloc's size
9495         * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
9496           facilitate correct handling of #pragma (save|restore)
9497
9498 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
9499
9500         * src/mcs51/gen.c: removed non-standard C nameless struct/union
9501
9502 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
9503
9504         * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
9505
9506 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
9507
9508         * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
9509
9510 2005-02-02 Raphael Neider <rneider AT web.de>
9511
9512         * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
9513         * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
9514         * (pic16_storeForReturn): fixed to allow returning function pointers
9515         * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
9516         * device/include/pic16/{stddef.h,stdbool.h}: added
9517
9518 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
9519
9520         * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
9521
9522 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
9523
9524         * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
9525         * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
9526          appeared to be required
9527
9528 2005-01-31 Borut Razem <borut.razem AT siol.net>
9529
9530         * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
9531           include/mcs51 and include/z80 directories to the package
9532
9533 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9534
9535         * src/hc08/gen.c (genFunction): fixed bug #1112752
9536
9537 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9538
9539         * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
9540
9541 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9542
9543         * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
9544
9545 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
9546
9547         * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
9548
9549 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
9550
9551         * device/include/c8051fxxx.h: removed these 6 files
9552         * device/include/mcs51/c8051fxxx.h: added these 11 new files
9553
9554 2005-01-26 Raphael Neider <rneider AT web.de>
9555
9556         * src/pic16/gen.c (genAssign): fixed assignment from longs
9557           in codespace (were cut to three bytes)
9558         * (genDummyRead): implemented (except for CODESPACE...),
9559           fixed bug #1108575
9560         * src/pic16/glue.c (emitStatistics): beautified
9561         * device/lib/pic16/libm/Makefile: added include path
9562
9563 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9564
9565         * src/z80/gen.c (aopPut): fixed bug #1103902
9566
9567 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9568
9569         * device/lib/expf.c: fixed bug #1095792
9570
9571 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
9572
9573         * device/lib/pic16/libm: added Math library sources
9574
9575 2005-01-24 Raphael Neider <rneider AT web.de>
9576
9577         * src/pic16/pcode.h: added second memory operand to pCodeOpReg
9578           to enable upcast to pCodeOpReg2 (there is no type tag to
9579           differenciate the two and pic16_popGet2p cast into PCOR2)
9580         * src/pic16/main.c (_process_pragma): fixed another malloc bug
9581           (sizeof(sectNames) changed to sizeof(sectName))
9582           Both patches fix segfaults under MinGW.
9583
9584 2005-01-23 Raphael Neider <rneider AT web.de>
9585
9586         * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
9587           Safe_[mc]?alloc()'ed variables
9588         * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
9589           of (byte sized) temporaries (assign them to WREG for now)
9590         * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
9591           (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
9592           this might fix SIGSEGVs on MinGW...
9593         * src/SDCCopt.c (killDeadCode): restored original behaviour
9594           (volatile operands might get thrown away though)
9595
9596 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
9597
9598         * src/pic16/gen.c: fixed bug #1106975,
9599         * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
9600         pointer update, INTCON is saved, global interrupts are disabled and
9601         restored after updateing TOS.
9602         * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
9603         * added function attribute 'shadowregs' to take advantage of shadow
9604         registers,
9605         * added function attribute 'wparam' as an alternative to the wparam
9606         pragma,
9607         * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
9608         user declares a non-ISR function as 'shadowregs',
9609         * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
9610
9611 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
9612
9613         * .version: bumped version number to 2.4.8
9614         * device/lib/pic16/pics.all: list of PIC18F devices supported by
9615         pic16 port,
9616         * device/lib/pic16/libio/i2c/: I2C module support library,
9617         * device/include/pic16/i2c.h: I2C support library header,
9618         * device/lib/pic16/libc/stdio/: standard IO support sources,
9619         * (printf_small.c): printf_small() source, supports float print,
9620         * (printf_tiny.c): printf_tiny() source, does not support floats,
9621         * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
9622         enable global optimizations for entire library source, other
9623         Makefiles in the source tree are also modified to reflect this,
9624         * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
9625         function,
9626         * doc/sdccman.lyx: updated to reflect new changes,
9627         * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
9628         sym->onStack if-case,
9629         * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
9630         sbit, idata, _idata, xdata, _xdata,
9631         * added pragma library, to link an external library, (see doc),
9632         * removed command line options, --pomit-config-words, --pomit-ivt,
9633         --pleave-reset-vector,
9634         * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
9635         when calling assembler to reflect memory model used, also define
9636         macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
9637         reflect stack model used,
9638         * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
9639         on stack return NULL,
9640
9641 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
9642
9643         * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
9644           of the operands is volatile. Fixes #1020220
9645
9646 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
9647
9648         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
9649         * (OptimizeRegUsage): make sure that there is really no other flow where
9650           the first pCode is used
9651
9652 2005-01-22 Raphael Neider <rneider AT web.de>
9653
9654         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
9655           to fix #1106967 (pCode->seq are not set up correctly)
9656
9657 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9658
9659         * src/SDCCglue.c (glue): make sure code area is declared before the
9660         static initialization area.
9661
9662 2005-01-21 Raphael Neider <rneider AT web.de>
9663
9664         * device/lib/Makefile.in: fixed test for pic16 install dir
9665         * device/lib/pic16/*/Makefile*: modified compile flags to enable
9666           optimizations
9667         * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
9668           added --optimize-goto compiler switch and pragma wparam documentation
9669         * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
9670         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
9671           and PRODH closing bug #1071770 (peephole optimizer)
9672
9673 2005-01-19 Raphael Neider <rneider AT web.de>
9674
9675         * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
9676           cmdLine buffers (used when calling sdcpp...) are large enough
9677           (MAX_PATH=256 truncates arguments leading to system halts when
9678           used in MinGW...)
9679         * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
9680         * (genUminus): rewritten to for efficiency
9681         * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
9682           used uninitialized in some cases)
9683         * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
9684           copy the third byte from the int -- now assumes 0x80 (data memory)
9685         * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
9686           operands (genAddLit expects the iCode's operands to swapped as
9687           well), fixed leftover bytes (crashed for short left operands)
9688         * (pic16_genMinusDec): performance improvements, removed false
9689           PIC14 emitSKPNCs
9690         * (pic16_genMinus): fixed to cope with differently sized operands
9691         * src/pic16/glue.c (pic16_glue): added new banksel optimization
9692           for --obanksel > 1
9693         * src/pic16/pcode.c: implemented (first phase of) banksel optimization
9694         * src/pic16/graph.[ch]: implementation of directed graphs, used by
9695           new banksel optimization
9696         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
9697           analysis for temporary registers (segfaults...)
9698         * src/pic16/peeph.def: added rule
9699
9700 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
9701
9702         * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
9703         which converts a float number to its ASCII representation
9704         * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
9705         functions to convert the fractional and integer part of a float to ASCII,
9706         * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
9707         realloc.c): added _MALLOC_SPEC to explicit place variables in data
9708         ram
9709         * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
9710         _STATMEM macros,
9711         * device/include/pic16/adc.h: added GPL info,
9712         * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
9713         a pCodeOp as tested operand,
9714         * (genNearPointerGet): optimized bit testing, does not use
9715         intermediate register for bit value, test directly instead with
9716         BTFSS, BTFSC, works only for single bits,
9717         * (genpic16Code): dump the name of the iCode in the asm,
9718         * src/pic16/ralloc.c (decodeOp): removed static declaration and
9719         renamed to pic16_decodeOp,
9720         * (serialRegAssign): do not allocate a temporary register for iCode
9721         sequences that test a single bit for 1/0
9722
9723 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
9724
9725         * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
9726         pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
9727         access stack and frame pointers. They are initially assigned to
9728         point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
9729         accessing SFRs. Updated all occurences of modification of stack or
9730         frame pointer in gen.c and pcode.c,
9731         * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
9732         assigning of a literal value to pointers,
9733         * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
9734         flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
9735         selected
9736
9737 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
9738
9739         * doc/sdccman.lyx: update documentation about stack pragma, added
9740         some info for stack memory models
9741
9742 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9743
9744         * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
9745
9746 2005-01-08 Raphael Neider <rneider AT web.de>
9747
9748         * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
9749           udata sections to fix bug #1097823
9750
9751 2005-01-05 Raphael Neider <rneider AT web.de>
9752
9753         * src/pic16/gen.c (genGenericShift): added handling of differently
9754           sized left operand and result
9755
9756 2005-01-04 Raphael Neider <rneider AT web.de>
9757
9758         * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
9759         * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
9760           to hold the condition bit)
9761         * added new version of genCmp (old code available via #define)
9762         * added new version of genShiftLeft/genShiftRight in a generic
9763           way, now supports shifting by negative values
9764         * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
9765           shiftCount (expected by genGenericShift)
9766         * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
9767         * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
9768           dump
9769         * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
9770           is an invalid literal too...)
9771
9772 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
9773
9774         * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
9775         from Raphael Neider,
9776         * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
9777         for 8-bit literals. This fixes some literal operands which are sign
9778         extended to 16-bits ints when instruction needs only 8-bits.
9779
9780 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
9781
9782         * device/lib/logf.c: added mcs51 assembly version
9783         * device/lib/expf.c: added mcs51 assembly version
9784         * device/lib/_logexpf.c: new shared asm code for expf and logf
9785         * device/include/math.h: add defines for assembly math library
9786         * device/lib/Makefile.in: build new _logexpf.c
9787         * device/lib/libfloat.lib: use new _logexpf.c
9788
9789 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
9790
9791         * src/pic/device.c
9792         * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
9793           device types which have less than 0x7f registers.
9794
9795 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
9796
9797         * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
9798
9799 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
9800
9801         * device/lib/printf_fast.c: only build on supported arch.
9802         * device/lib/printf_tiny.c: only build on supported arch.
9803         * device/lib/printf_fast_f.c: only build if asm float lib
9804         * device/lib/_fsget1arg.c: only build if asm float lib
9805         * device/lib/_fsget2args.c: only build if asm float lib
9806         * device/lib/_fsnormalize.c: only build if asm float lib
9807         * device/lib/_fsreturnval.c: only build if asm float lib
9808         * device/lib/_fsrshift.c: only build if asm float lib
9809         * device/lib/_fsswapargs.c: only build if asm float lib
9810         * device/include/stdio.h: don't provide print_fast,
9811           print_fast_f, print_tiny prototypes if --xstack used
9812
9813 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
9814
9815         * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
9816         * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
9817           to the SOURCES
9818
9819 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
9820
9821         * device/lib/printf_fast_f.c: same as printf_fast, but
9822           with floating point enabled
9823         * device/lib/printf_fast.c: minor tweaks
9824         * device/include/stdio.h: add printf_fast_f
9825
9826 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
9827
9828         * src/SDCCmain.c: make --float-reent default for mcs51
9829         * device/lib/_fsadd.c: added mcs51 assembly version
9830         * device/lib/_fssub.c: added mcs51 assembly version
9831         * device/lib/_fsmul.c: added mcs51 assembly version
9832         * device/lib/_fsdiv.c: added mcs51 assembly version
9833         * device/lib/_fseq.c: added mcs51 assembly version
9834         * device/lib/_fsneq.c: added mcs51 assembly version
9835         * device/lib/_fsgt.c: added mcs51 assembly version
9836         * device/lib/_fslt.c: added mcs51 assembly version
9837         * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
9838         * device/lib/Makefile.in: add _fscmp to build
9839         * device/lib/libfloat.lib: add _fscmp to build
9840
9841 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
9842
9843         * device/lib/_fs2slong.c: added mcs51 assembly version
9844         * device/lib/_fs2sint.c: added mcs51 assembly version
9845         * device/lib/_fs2schar.c: added mcs51 assembly version
9846         * device/lib/_fs2ulong.c: added mcs51 assembly version
9847         * device/lib/_fs2uint.c: added mcs51 assembly version
9848         * device/lib/_fs2uchar.c: added mcs51 assembly version
9849         * device/lib/_slong2fs.c: added mcs51 assembly version
9850         * device/lib/_sint2fs.c: added mcs51 assembly version
9851         * device/lib/_schar2fs.c: added mcs51 assembly version
9852         * device/lib/_ulong2fs.c: added mcs51 assembly version
9853         * device/lib/_uint2fs.c: added mcs51 assembly version
9854         * device/lib/_uchar2fs.c: added mcs51 assembly version
9855         * device/include/float.h: added #define to select asm vs c
9856
9857 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
9858
9859         * device/lib/printf_fast.c: improvements to float output
9860         * device/include/float.h: add defines for assembly float library
9861         * device/lib/_fsget1arg.c: receive 1 float arg
9862         * device/lib/_fsget2args.c: receive 2 float args (reentrant)
9863         * device/lib/_fsnormalize.c: normalize a float
9864         * device/lib/_fsreturnval.c: return float, various helper routines
9865         * device/lib/_fsrshift.c: right shift a float's mantissa
9866         * device/lib/_fsswapargs.c: swap 2 floats
9867         * device/lib/Makefile.in: build these 6 new files for mcs51
9868         * device/lib/libfloat.lib: add these 6 files to the library
9869
9870 2004-12-26 Borut Razem <borut.razem AT siol.net>
9871
9872         * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
9873           built by gcc 3.4.2
9874
9875 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
9876
9877         * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
9878           and fully reentrant and register bank neutral.
9879         * device/lib/printf_fast.c: added float (not enabled by default),
9880           added compact/slower integer (also not enabled by default),
9881           improved size/speed of fast integer code, other minor changes
9882         * device/include/stdio.h, device/lib/Makefile.in,
9883           device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
9884
9885 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
9886
9887         * src/pic16/pcode.c: declaring variables other than at the start of a
9888           block is not supported in C by VC6.
9889
9890 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
9891
9892         * applied a previous patch from Raphael Neider that wasn't included
9893         in the previous commits, which fixes infinite loops within jumptable
9894         improvements,
9895         * made some fixes that previous patches introduced
9896
9897 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
9898
9899         * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
9900         that fixes an issue with AOP_PCODE asmop's offset,
9901         * (pic16_popCopyReg): update instance field too,
9902         * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
9903         function of pic port,
9904         * (genCmp, genAnd, genAssign),
9905         * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
9906
9907 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
9908
9909         * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
9910         variables initial values to idata section,
9911         * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
9912         variables in some functions. This utilizes parmBytes field of iCode
9913         structure to hold the offset of the variable in stack. (might be
9914         able to use the stack field too?)
9915         * applied patch from Raphael Neider # ### , # ###
9916         * src/pic16/glue.c (pic16emitRegularMap): fix to print static
9917         variable initial values in idata section,
9918         * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
9919         for static variables with initial value
9920         * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
9921         applied fix in while loop from Raphael Neider.
9922
9923 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
9924
9925         * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
9926         * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
9927         * src/ds390/ralloc.c (serialRegAssign): spill bits
9928         * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
9929         * support/Util/SDCCerr.c,
9930         * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
9931         * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
9932         * support/regression/tests/bitwise.c: added test for bitwise complement(~)
9933
9934 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
9935
9936         * device/include/sdcc-lib.h: inserted LGPL, added includes
9937           asm/ds390/features.h and asm/mcs51/features.h
9938         * device/include/asm/default/features.h,
9939         * device/include/asm/gbz80/features.h,
9940         * device/include/asm/z80/features.h: added empty _AUTOMEM
9941           and _STATMEM
9942         * device/include/asm/ds390/features.h,
9943         * device/include/asm/mcs51/features.h: added files with defines for
9944           _AUTOMEM and _STATMEM indicating automatic and static storage class
9945         * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
9946         * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
9947         * src/SDCCicode.c (geniCodeCast),
9948         * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
9949         * src/SDCCloop.c (loopInduction): removed unused variable lr
9950         * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
9951           to convertToFcall to include char modulo (RFE 1065037), added check
9952           if left operand is unsigned and use abs of literal value
9953         * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
9954           as it doesn't work after conversion from peephole.def to peephole.rul
9955         * src/mcs51/gen.c (toBoolean): added check for size,
9956           (genModOneByte): optimized code for signed char modulo a literal
9957           power of 2 (thanks to Hubert Sack),
9958           (genRRC): removed unnecessary "clr c",
9959           (genRLC): replaced "add a,acc" with cheaper "rlc a"
9960         * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
9961           jump optimization,
9962           swapped rules 256.c and 256.d,
9963           extended 256.d by using new multiple checks (thanks Erik),
9964           added rules 256.e and 256.f,
9965           updated rule 261.a and 261.b to new generated code
9966         * support/regression/tests/muldiv.c: added test div/mod by a power of 2
9967
9968 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9969
9970         * src/SDCCloop.c (basicInduction, loopInduction): fixed several
9971           induction related bugs, including first part of bug #1074377
9972
9973 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
9974
9975         * applied patch from bug-report #1076292,
9976         * applied patches for genAnd and Goto-optimizations for Raphael
9977         Neider,
9978         * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
9979         dump a less iCode information,
9980         * src/pic16/device.h (pic16_options_t): added field debgen,
9981         * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
9982         DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
9983         * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
9984         puclic,
9985         * (various functions): added macros FENTRY and FENTRY2 to functions,
9986         to emit function prologue,
9987         * (various functions): fixed indentation,
9988         * (genNearPointerGet): fixed loading of FSR0,
9989         * (genPackBits): applied patch from Raphael Neider to fix updating
9990         of FSR0 and touching only the modified bits,
9991         * src/pic16/genarith.c (various functions): added macros FENTRY to
9992         emit function prologue in comments,
9993         * src/pic16/pcode.h: added functions debugf2, debugf3,
9994         * src/pic16/ralloc.c: partial fix for packForPush caused
9995         segmentation fault,
9996
9997 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9998
9999         * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
10000           <stsp AT users.sourceforge.net> with reversed byte order
10001         * support/regression/tests/rotate.c: added (ds390 skips some tests)
10002
10003 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10004
10005         * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
10006           bug #1074377
10007         * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
10008         * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
10009
10010 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
10011
10012         * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
10013
10014 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10015
10016         * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
10017           conditions,
10018           (setFromConditionArgs): friendly operand parser for peephole rules,
10019           (operandBaseName, operandsNotRelated): new peephole condition
10020           "operandsNotRelated" -- similar to "operandsNotSame", but takes
10021           architecture specific register naming into account, handles n-way
10022           comparisons, and supports quoted literals
10023         * src/mcs51/peeph.def: restored rule 177.d with an extra condition
10024
10025 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10026
10027         * src/mcs51/peeph.def: fixed bug #1076940
10028
10029 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
10030
10031         * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
10032
10033 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10034
10035         Adding support for replacing ljmps with sjmps in jumptables
10036         generated for switch statements. For now you need to set the
10037         environment variable SDCC_SJMP_JUMPTABLE to enable this.
10038         Now 4 algorithms for mcs51 jumptable generation are used:
10039         ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
10040         addresses loaded pc-relative for up to 112 cases and stack-pushing
10041         target addresses loaded with offset from dptr for up to 256 cases.
10042
10043         * src/SDCCpeeph.c: added peephole conditional labelJTInRange
10044         * src/mcs51/main.c: adapted constants for switch table generation
10045         * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
10046
10047 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
10048
10049         * device/lib/printf_large.c (_print_format): fixed bug 1073386
10050         * support/regression/tests/bug1057979.c: added test for bug 1073386
10051
10052 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
10053
10054         * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
10055         compilers
10056
10057 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
10058
10059         * src/pic16/device.h,
10060         * src/pic16/genarith.c,
10061         * src/pic16/glue.c,
10062         * src/pic16/main.c,
10063         * src/pic16/pcode.c: applied patches #1068154 and #1070213
10064
10065 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
10066
10067         Large cummulative patch for pic16 port.
10068         * device/lib/pic16/gstack.h: NEW, user can specify its own handler
10069         to call when a stack overflow occurs,
10070         * (malloc.h): added CVS Id tag,
10071         * (pic18f{242,252,442,452}.h): added T0CONbits structure and
10072         variable,
10073         * added libc directory. The current version of LibC contains string
10074         functions, ctype functions and macros and some functions of the
10075         stdlib set (like malloc/free/atof/atoi etc...). All functions are to
10076         be extensively tested in the future. Standard disclaimer here.
10077         Library is not automatically build yet. But one can build it by
10078         invoking 'make' inside the libc directory.
10079         * added ADC library under libio. Preliminary version yet.
10080
10081         * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
10082         * src/pic16/gen.c (aopForRemat): asmop size is filled by
10083         aopForRemat() now and not by pic16_aopOp(),
10084         * (pic16_popGetTempReg): removed warning messgae when allocating
10085         temporary registers, its a buggy feature and will be removed,
10086         * (pic16_popGet): set register instance field in AOP_CRY,
10087         * (pic16_outBitC): fixed for results in size greater than 1,
10088         * (genUminusFloat): fixed for pic16, ported code from mcs51,
10089         * (pic16_storeForReturn): optimized return of 0,
10090         * (genCmp): experimental code for new genCmp which uses PIC18's
10091         special compare&skip instructions. Initial tests fail some times
10092         with variables grater than 1 byte in size, so new code is disabled,
10093         * (genUnpackBits, genPackBits): more optimizations in reading/writing,
10094         a single bit,
10095         * (genCast): began a fix to optimize the casting of a bit to another
10096         bit, now assigning a bitfield to another bitfield will fail, sorry,
10097         * src/pic16/main.c: disabled the use of lr-support feature,
10098         * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
10099         * added some function prototypes, added function _debugf prototype,
10100         * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
10101         bits with offset (case PO_GPR_BIT),
10102         * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
10103         command line,
10104         * (isBankInstruction): modified to return 0 for no banking instruction,
10105         and 1 for banking instruction,
10106         * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
10107         caused stop processing pCodes after a inline assembly block,
10108         * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
10109         * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
10110         registers when it shouldn't,
10111         * src/pic16/ralloc.c (allocReg): add preliminary support for
10112         supporting a limited set of temporary registers,
10113
10114 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10115
10116         * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
10117           genDataPointerSet): ensure assignments always copy in MSB to LSB
10118           order,
10119           (loadRegFromAop): recognize CLRH optimization,
10120           (genFunction): optimize RECEIVE iCodes in reentrant functions
10121
10122 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10123
10124         * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
10125           --out-fmt-s19 turning into --out-fmt-elf if s19 was already
10126           selected.
10127         * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
10128         * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
10129           contiguous with data
10130
10131 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10132
10133         * device/lib/_gptrget.c (_gptrget),
10134         * device/lib/_gptrgetc.c (_gptrgetc),
10135         * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
10136           instead of sjmp to ret
10137         * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
10138           by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
10139
10140 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
10141
10142         * .version: bumped version to 2.4.7
10143         * device/lib/_gptrget.c (_gptrget): is now _naked
10144         * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
10145         * device/lib/_gptrput.c (_gptrput): is now _naked
10146         * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
10147           (createFunction): fixed xstack
10148         * src/SDCCglue.c (emitMaps): set allocation required for bit area
10149         * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
10150           or bit either,
10151           (geniCodeCritical): store original interrupt state in an iTemp bit
10152           var unless stack-auto
10153         * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
10154         * src/SDCCmain.c (setIncludePath): added include/target to search path
10155         * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
10156         * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
10157           prototype,
10158           (processFuncArgs): put bit vars in bit area
10159         * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
10160           unsaveRBank): fixed xstack,
10161           (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
10162           (genFunction, genEndFunction): fixed xstack,
10163           (genAssign): optimization don't walk backwards through mem
10164         * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
10165         * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
10166         * support/regression/Makefile: also make library (for stack-auto) when
10167           making "all" and added "test-mcs51-xstack-auto"
10168         * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
10169         * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
10170         * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
10171         * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
10172         * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
10173           make-library by MAKE_LIBRARY
10174         * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
10175           regression tests for xstack
10176         * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
10177         * support/regression/tests/critical.c: test for critical on mcs51
10178
10179 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10180
10181         * support/regression/ports/ucz80/spec.mk: use include and lib files from
10182           built version of sdcc instead of installed version
10183
10184 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
10185
10186         * src/mcs51/gen.c (toBoolean): fixed bug 1065458
10187         * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
10188           vprintf.c now
10189         * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
10190         * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
10191           WARNING: remove device/lib/build/z80/printf.o by hand when
10192           updating from previous build!
10193         * device/lib/z80/printf.c: updated comment
10194         * support/regression/tests/bug1057979.c: test all ports now
10195         * support/regression/tests/bug1065458.c: file added
10196
10197 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10198
10199         * src/z80/gen.c (genFunction, genEndFunction): avoided generating
10200           *_start and *_end symbols for static functions
10201
10202 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
10203
10204         * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
10205           and search crt0.o in all library paths,
10206           (setIncludePath): proper handling of --nostdinc,
10207           (setLibPath): proper handling of --nostdlib
10208         * support/regression/Makefile,
10209         * support/regression/ports/ds390/spec.mk,
10210         * support/regression/ports/gbz80/spec.mk,
10211         * support/regression/ports/hc08/spec.mk,
10212         * support/regression/ports/mcs51/spec.mk,
10213         * support/regression/ports/mcs51-large/spec.mk,
10214         * support/regression/ports/mcs51-stack-auto/spec.mk,
10215         * support/regression/ports/z80/spec.mk: use include and lib files from
10216           built version of sdcc instead of installed version
10217         * doc/sdccman.lyx: fixed typo in --nostdinc
10218
10219 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
10220
10221         * src/pic/pcode.c,
10222         * src/pic/device.c,
10223         * src/pic/ralloc.c,
10224         * src/pic/gen.c : added support to generate code for struct bit fields.
10225
10226 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
10227
10228         * as/xa51/xa_version.h,
10229         * device/include/errno.h,
10230         * device/include/regc515c.h,
10231         * device/lib/_itoa.c,
10232         * device/lib/_ltoa.c,
10233         * device/lib/ser_ir_cts_rts.c,
10234         * sim/ucsim/xa.src/glob.cc,
10235         * sim/ucsim/xa.src/inst_gen.cc,
10236         * sim/ucsim/xa.src/xa_bit.cc,
10237         * sim/ucsim/xa.src/xa_sfr.cc,
10238         * sim/ucsim/z80.src/inst_dd.cc,
10239         * sim/ucsim/z80.src/inst_fdcb.cc,
10240         * support/scripts/keil2sdcc.pl,
10241         * src/pic16/pic16.dsp,
10242         * src/pic16/pic16a.dsp: corrected cvs line endings
10243         * device/lib/printf_large.c: fixed bug 1057979
10244         * src/pic16/gen.c: fixed non-C standard code
10245         * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
10246         * src/SDCCglobl.h: changed pack_iram to no_pack_iram
10247         * support/regression/ports/mcs51/support.c: reload T1 asap
10248         * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
10249           pdata use and clear idata startup behaviour
10250         * support/regression/tests/bug1057979.c: added
10251
10252 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
10253
10254         * device/examples/ds390/ow390/ad26.h,
10255         * device/examples/ds390/ow390/cnt1d.h,
10256         * device/examples/ds390/ow390/crcutil.c,
10257         * device/examples/ds390/ow390/ownet.h,
10258         * device/examples/ds390/ow390/owsesu.c,
10259         * device/examples/ds390/ow390/swt12.h,
10260         * device/examples/ds390/ow390/swtoper.c,
10261         * device/examples/ds390/ow390/temp10.h,
10262         * device/examples/ds390/ow390/thermodl.c,
10263         * device/examples/ds390/tinitalk/tinitalk.dsp,
10264         * device/examples/ds390/tinitalk/tinitalk.dsw,
10265         * device/examples/mcs51/clock/hw.h,
10266         * device/examples/mcs51/simple2/go.bat,
10267         * device/examples/serialcomm/windows/serial.h,
10268         * device/examples/xa51/dummy.c,
10269         * device/examples/xa51/hello.c,
10270         * device/include/80c51xa.h,
10271         * device/include/at89x051.h: corrected cvs line endings
10272
10273 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
10274
10275         * src/pic16/main.c (options): added command line --gstack, to trace
10276         stack over/under flows,
10277         * added pragma 'wparam' to allow passing first byte of function
10278         parameters via WREG, syntax is #pragma wparam my_function[, func2...]
10279         * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
10280         call to __gstack_test function and sets up the symbol as extern,
10281         * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
10282         * popaop): added call to pic16_testStackOverflow,
10283         * (wParamCmp, inWparamList): NEW, test existence of a symbol in
10284         wparamList list,
10285         * (genCall, genPcall): now all parameters are passed via stack
10286         except in functions that are pass to wparam pragma in which WREG is
10287         used too,
10288         * (genPcall): REENTRANT flag is checked to see if variable prototype
10289         contains reentrant keyword, don't call a non-reentrant function, via
10290         a reentrant function pointer or vice versa, functions are never
10291         passed via WREG,
10292         * (genJumpTab): applied patch from bug #1057478 by R.Neider and
10293         D.Winkler,
10294         * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
10295         SIGSEGV when accessing a NULL register stucture,
10296         * (pic16_printGPointerType): modified to handle UPPER modifier for
10297         function initializers, changed prototype of function to simpler one,
10298         * (pic16_printIvalFuncPtr): check to see if function is already
10299         added in externs list,
10300         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
10301         optimized a move from W to SFR with a move to the same register
10302         later after a CALL,
10303         * device/lib/pic16/debug: NEW directory, contains debug features
10304         which are enabled when linking with libdebug.lib, currently command
10305         line option --gstack enables stack pointer tracing for over/under
10306         flow, corresponding sources are in debug/gstack
10307
10308 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
10309
10310         * doc/sdccman.lyx: updated SDCC version,
10311         * (PIC16 port): update list of command line options,
10312         * src/pic16/device.h (structure pic16_options_t): added field gstack
10313         to enable stack overflow tracing on push/pops,
10314         * src/pic16/device.c (statistics structure): added statistics
10315         structure,
10316         * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
10317         pic16_dump_int_registers): increase statistics counters for each
10318         * variable which is encountered
10319         * (pic16_dump_usection): emit each .udata variable to its own udata
10320         section,
10321         * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
10322         when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
10323         parameters via stack, otherwise use old scheme,
10324         * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
10325         assembler output file,
10326         * src/pic16/main.c: added command line options --gstack to enable
10327         push/pop tracing for stack overflow,
10328         * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
10329         instructions): added size of each instruction,
10330         * (pic16_countInstruction): estimate size of instructions in
10331         the_pFile list, inline assembly blocks are not counted,
10332         * (pic16_FixRegisterBanking): trace previous register usage, when
10333         banksel optimizations is greater than 0, don't emit a redudant
10334         banksel directive,
10335
10336 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
10337
10338         * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
10339         * src/pic16/ralloc.c : applied same fix for pic16.
10340         * src/pic/gen.c : tidied it up a little.
10341
10342 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10343
10344         * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
10345         thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
10346
10347 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10348
10349         * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
10350
10351 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10352
10353         * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
10354         non-reentrant function __modsint in the interrupt function (thus
10355         corrupting math operations during serial I/O)
10356         * device/lib/ser_ir.c: as above, changed buffersize
10357         * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
10358         256.c,d for zeroing
10359         * doc/Makefile: added option -t for rsync
10360
10361 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10362
10363         * src/SDCCast.h (struct ast),
10364         * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
10365
10366 2004-10-20 Borut Razem <borut.razem AT siol.net>
10367
10368         * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
10369         package
10370
10371 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
10372
10373         * device/lib/pic16/libsdcc/Makefile: added lregs directory in
10374         makefile targets,
10375         * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
10376         support functions to replace long sequences of MOVFF's from access
10377         bank registers to stack and vice versa,
10378         * src/pic16/device.h: added new field opt_flags, where optimization
10379         flags can be set to enable certain features,
10380         * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
10381         * pBlock, (genFunction, genEndFunction): surroung loop for
10382         saving/loading used registers in stack with PC_INFO pCodes,
10383         INF_LREGS. Code in between can then be optimized by pCode optimizer
10384         to support function calls,
10385         * (genDataPointerSet): fixed bug which loaded float fields in
10386         structures with corrupt data,
10387         * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
10388         in a standard way debug info on stderr. Feature used for developing
10389         and debugging only,
10390         * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
10391         obsolete chunks of code,
10392         * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
10393         * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
10394         * pic16/src/pcode.c (pic16_newpCodeInfo,
10395         * (pic16_newpCodeOpLocalRegs),
10396         * (pic16_convertLocalRegs2Support): NEW, to support new optimization
10397         feature,
10398         * (pic16_pCodeConstString): printing of the initial value of a
10399         symbol as a comment is inhibited since parsing was already done by
10400         copyStr and output is corrupt,
10401         * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
10402
10403 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10404
10405         * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
10406
10407 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
10408
10409         * as/mcs51/lkarea.c: removed old K&R style,
10410           (lnksect): changed check on boundary error,
10411           (lnksect2): changed check on boundary error,
10412           (lnksect2): extend XSTK to end of page if size = 1
10413         * as/mcs51/lkmain.c: removed old K&R style,
10414           (Areas51): create l_IRAM symbol
10415         * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
10416         * device/lib/Makefile.in: renamed model-mcs51-reentrant to
10417           model-mcs51-stack-auto, added model-mcs51-xstack-auto
10418         * device/lib/_mullong.c: added version to be compiled with xstack
10419         * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
10420         * device/lib/mcs51/crtxclear.asm: clear pdata as well
10421         * device/lib/mcs51/crtxstack.asm: fixed comment
10422         * src/SDCCglue.c: maxInterrupts defaults to 0,
10423           (emitMaps): added pdata,
10424           (createInterruptVect): (re)moved default,
10425           (glue): added pdata,
10426           (glue): moved __start__xstack to XSTK with default size 1
10427         * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
10428           and options.float_rent when options.stackAuto is set,
10429           (linkEdit): only write XDATA_NAME if provided on command line
10430         * src/SDCCmem.h,
10431         * src/SDCCmem.c: added pdata
10432         * src/port.h: added pdata_name to PORT
10433         * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
10434           (saveRegisters, unsaveRegisters): removed usage of B,
10435           (genMinus): fixed accumulator clash,
10436           (genJumpTab): added comment, this needs another look
10437         * src/mcs51/gen.c: added check for "B in use" paranoia,
10438           added pushB() and popB()
10439         * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
10440           chance
10441         * src/avr/main.c,
10442         * src/ds390/main.c,
10443         * src/hc08/main.c,
10444         * src/mcs51/main.c,
10445         * src/pic/main.c,
10446         * src/pic16/main.c,
10447         * src/xa51/main.c,
10448         * src/z80/main.c: (reset_regparms) made void parameter explicit and
10449           added PSEG (PAG,XDATA) or NULL to port specifier
10450         * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
10451         * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
10452           (_mcs51_genInitStartup): removed __start__xstack equ,
10453           (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
10454         * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
10455         * src/z80/gen.c (_rleAppend): fixed warnings
10456         * support/regression/tests/zeropad.c: added pdata test
10457         * .version: bumped to 2.4.6
10458
10459 2004-10-17 Borut Razem <borut.razem AT siol.net>
10460
10461         * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
10462         as a part of nightly build
10463
10464 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
10465
10466         * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
10467         WREG holds the first byte function parameters,
10468         * (aopForSym): take special case for symbols which are in FARSPACE
10469         but in CODESPACE too,
10470         * (assignResultValue): modified to take into account _G.useWreg,
10471         * (genCall): don't use wreg for parameter passing when function is
10472         declared as reentrant, too, added optimization INCF to stack
10473         pointer when stack parameter count is 1,
10474         * (genFunction, genEndFunction): refurnished and fixed to not using
10475         wreg for passing parameters when function has varargs or is
10476         reentrant, fixed bug with symbol name compare for generating
10477         functions in absolute address,
10478         * (pic16_storeForReturn): refurnished,
10479         * (genCmp): began writing a new version of the function, not ready
10480         yet, therefore it is disabled,
10481         * (genAssign): do not read code memory when assigning a function to
10482         a pointer function,
10483         * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
10484         array of characters, not pointer,
10485         * (pic16initialComments): in debug mode emit an .ident directive for
10486         the assembler,
10487         * (_process_pragma): emit a new warning type (internal to pic16)
10488         when setting stack to default length, emit a similar warning when
10489         placing a function at absolute address and address is not word aligned
10490         * (_pic16_parseOptions): added 'return TRUE' statement,
10491         * (_pic16_linkEdit): if compiling a source, then add the source's
10492         file object, first in the list of objects to link,
10493
10494 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
10495
10496         * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
10497         * src/pic/main.c : removed VC warning.
10498         * src/pic/gen.c : changed comment.
10499
10500 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
10501
10502         * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
10503         reference to a deprecated symbol _GPTRREG was causing failure to
10504         link. Thanks G. M. Gallant for the info.
10505
10506 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
10507
10508         * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
10509         comments for Bugs item #954788.
10510
10511 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
10512
10513         * src/pic16/device.c (pic16_dump_gsection,
10514         * pic16_groupRegistersInSection): handle symbols declared to be in
10515         access bank differently,
10516         * src/pic16/gen.c (struct _G): added field resDirect,
10517         * (aopForSym): if symbol on stack and iCode is '=' and result exists,
10518         send values read from stack directly to result and don't allocate
10519         temporary values,
10520         * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
10521         same registers,
10522         * (pic16_sameRegsOfs): NEW,
10523         * (freeAsmop): if _G.resDirect is set then do not mark registers as
10524         free because they were not allocated from temporary pool,
10525         * pic16_popRegFromString): workaround to fix a problem with
10526         allocating variables twice or never,
10527         * (genGenPointerGet): using PRODL instead of FSR0H,
10528         * (genGenPointerSet): using POSTDEC1 (that is a stack location)
10529         instead of FSR0H,
10530         * (genAssign): take advantage of the _G.resDirect flag,
10531         * (genCast): around line 11844, use mov2f instead of directly
10532         MOVFF'ing between operands to account for literal values,
10533         * src/pic16/genutils.c: some new debug functions for gpsim have been
10534         added,
10535         * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
10536         float with integer part only,
10537         * src/pic16/main.c (_process_pragma): handle pragma udata access to
10538         place variables in access bank
10539         * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
10540         updated sources to reflect recent changes in gen.c
10541
10542 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
10543
10544         * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
10545         sources that searched for headers in installation path, now the
10546         device/include/pic16 is used,
10547         * src/pic16/glue.c (pic16glue),
10548         * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
10549         .line directives if not in debug mode, this suppresses assembler's
10550         warnings for ignored directives
10551
10552 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
10553
10554         * src/port.h: made reset_regparms prototype void parameter explicit.
10555         * src/SDCCsymt.c (processFuncArgs): removed argument "func".
10556         * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
10557         * doc/sdccman.lyx: documented warning disabling and how to use
10558           printf_large to make it print floats.
10559         * device/include/stdbool.h: NEW
10560         * device/lib/_atof.c,
10561         * device/lib/_divuint.c,
10562         * device/lib/_divulong.c,
10563         * device/lib/expf.c,
10564         * device/lib/printf_large.c,
10565         * device/lib/sincosf.c,
10566         * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
10567         * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
10568           a completely reentrant lib.
10569
10570 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
10571
10572         * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
10573         * device/include/pic16/stdio.h: fixed bug with colon
10574
10575 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
10576
10577         * device/include/pic16/stdio.h,
10578         * device/include/pic16/stdlib.h,
10579         * device/include/pic16/math.h: NEW
10580         * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
10581         declared as _naked to reduce overhead
10582         * device/lib/Makefile.in (target port-specific-objects-pic16):
10583         changed * to *.* so to ignore the CVS directory,
10584         * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
10585         stacked variables back in stack,
10586         * (genEndFunction): fixed bug reported by G.M. Gallant with stack
10587         corruption
10588
10589 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
10590
10591         * .version: bumped version number to 2.4.5
10592         * support/Util/SDCCerr.h: added warning W_POSSBUG2.
10593         * support/Util/SDCCerr.c (messages structure): added entry for
10594         W_POSSBUG2
10595
10596         Large cumulative patch for pic16 port and libraries.
10597         * device/include/pic16/sdcc-lib.h,
10598         * device/include/pic16/stdarg.h,
10599         * device/include/asm/pic16/features.h,
10600         * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
10601         * device/include/pic16/float.h: changes reentrant keyword with
10602         _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
10603         * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
10604         updated target build-libraries to include objects from gptr,
10605         * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
10606         _IL_REENTRANT to all function headings, included sdcc-lib.h header,
10607         * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
10608         all function headings,
10609         * src/SDCCmain.c: added global parameter userIncDirsSet,
10610         * (parseCmdLine): when option -I is encountered add directory to
10611         userIncDirsSet too,
10612         * src/version.awk: added space between control and long,
10613         * src/pic16/NOTES: added some notes for the port,
10614         * src/pic16/gen.c: added prototype for mov2fp function,
10615         * (fReturnpic16[]): properly named return value registers,
10616         * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
10617         * (aopForSym): added code to handle symbols with onStack flag set,
10618         symbols onStack are allocated PTRSIZE bytes,
10619         * (aopFreeAsmop): handles special case where asmops are stack objects,
10620         * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
10621         * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
10622         added argument lock to trace flaws in allocating temporary registers
10623         when developing port,
10624         * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
10625         * (pic16_popRegFromString): reenabled allocating a direct register
10626         from string,
10627         * (assignResultValue): various beautifications,
10628         * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
10629         referenced function argument,
10630         * (genIpush): reenabled to allow stacked arguments, handles only
10631         ic->parmPush iCodes,
10632         * (genCall, genPcall): major changes to allow for variable argument
10633         functions, fixed a bug with falsely restoring stack pointer after
10634         returning from call,
10635         * (genFunction): pending code for critical function,
10636         * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
10637         * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
10638         * (genNearPointerGet): fixed bug with indirect reading, was always
10639         reading from INDF0
10640         * (genGenPointerGet, genGenPointerSet): rewrote to support generic
10641         pointers,
10642         * (genAddrOf): rewrote code to take address of a stacked function parameter
10643         * (genCast): fixed casting to generic pointer type,
10644         * src/pic16/gen.h: added AOP_STA,
10645         * (struct asmop): added field stk,
10646         * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
10647         * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
10648         * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
10649         * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
10650         * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
10651         * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
10652         generic pointers,
10653         * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
10654         and library paths,
10655         * (pic16_port structure): generic pointer size is set to 3,
10656         * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
10657         * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
10658         compiler warning,
10659         * src/pic16/ralloc.c (allocReg): prevent allocating register when
10660         operand is an iTemp,
10661
10662 2004-09-24 Martin Helmling <mh AT octo-soft.de>
10663
10664         * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
10665         * debugger/mcs51/simi.c: addapt new syntax of s51
10666
10667 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
10668
10669         * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
10670         * src/pic16/pcode.c: commented out some calls to free() in order to
10671         fix bug #989576,
10672
10673 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10674
10675         * src/SDCCicode.h,
10676         * src/SDCCicode.c (isiCodeInFunctionCall),
10677         * src/avr/ralloc.c (selectSpil),
10678         * src/pic/ralloc.c (selectSpil),
10679         * src/pic16/ralloc.c (selectSpil),
10680         * src/ds390/ralloc.c (selectSpil),
10681         * src/hc08/ralloc.c (selectSpil),
10682         * src/xa51/ralloc.c (selectSpil),
10683         * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
10684         stack in the middle of a function call sequence (fixes bug #1020268)
10685         * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
10686         costs associated with the minimum switch case.
10687
10688 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10689
10690         * src/SDCC.lex: fixed bug #1030549
10691
10692 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10693
10694         * src/SDCCcse.h (struct cseDef),
10695         * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
10696         over a function call if the CSE is derived from a symbol whose
10697         address has been taken (fixes bug #1029883)
10698         * support/regression/tests/bug-1029883: a new regression test for
10699         this bug
10700
10701 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10702
10703         * src/hc08/gen.c (emitinline): fixed bug #1029778
10704         * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
10705         to a cast object is no longer a syntax error ("fixes" bug #1030006,
10706         and starts toward RFE #905167)
10707
10708 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
10709
10710         * src/pic16/gen.c (mov2f): New function to move an operand to
10711         another without considering if it is a literal or a register,
10712         * (pic16_sameRegs): don't check if they are both AOP_REG,
10713         * (AccRsh): removed andmask=0 lines,
10714         * (genLeftShift): duplicated to be improved in future versions,
10715         * src/pic16/main.c (_process_pragma): emit stack default size in hex,
10716         * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
10717         in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
10718         * (pic16initMnemonics): added initialization for POC_INFSNZW,
10719         * (insertBankSwitch): fixed inserting banksel directives algorithm
10720         for instructions that follow a skip instruction, this fixes a report
10721         for broken subtraction code generation,
10722         * src/pic16/ralloc.c (deassignLRs): do not free register if current
10723         iCode is a left op, just in case result and right share the same
10724         registers
10725
10726 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10727
10728         * src/hc08/main.c,
10729         * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
10730         preservation of HX
10731         * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
10732         * src/mcs51/ralloc.c (packRegisters): removed the patch applied
10733         on 2004-09-12; it was buggy
10734
10735 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
10736
10737         * src/SDCCsymt.h: removed RESULT_CHECK
10738         * src/SDCCast.c,
10739         * src/SDCCglue.c,
10740         * src/SDCCval.c,
10741         * src/pic/glue.c,
10742         * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
10743
10744 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
10745
10746         * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
10747         * src/pic16/device.c (pic16_assignConfigWordValues): wrong
10748         configuration values no more rejected by compiler, they are assigned
10749         to configuration registers with a warning message instead,
10750         * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
10751         the for-loop so last conf register is emitted too,
10752         * (_pic16_initPaths): link library libsdcc.lib by default,
10753         * (_hasNativeMulFor): modified test for multiplication according to
10754         Raphael Neider's remarks. Integer multiplication is also done with
10755         support functions,
10756         * device/include/pic16/pic18fregs.h: corrected type error in while
10757         testing and including 18f6720 header file
10758
10759 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
10760
10761         * src/pic16/device.h (pic16_options): removed field use_crt,
10762         * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
10763         until an optimization to handle single bits is added,
10764         * (pic16_loadFSR0): moved before genUnpackBits,
10765         * (genAnd): some white lines removed,
10766         * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
10767         leave_reset flags in pic16_options when using crt modules,
10768
10769 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
10770
10771         * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
10772           for bugs 898889 & 979599. Also used some safer print instructions.
10773
10774 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
10775
10776         * src/pic16/device.h (pic16_options_t): added field use_crt,
10777         crt_name, no_crt,
10778         * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
10779         catch a probable future bug,
10780         * src/pic16/gen.c: aopIdx function commented out,
10781         * (genAssign): commented out old code which used aopIdx,
10782         * src/pic16/glue.c (pic16glue): removed some legacy fragments of
10783         code, added if conditionals to take into account the --use-crt
10784         command line options,
10785         * src/pic16/main.c (pic16_optionsTable): added new command line
10786         options, --use-crt= and --no-crt,
10787         * (_pic16_linkEdit): now the proper crt object is added in the
10788         linker command line except than when --no-crt is specified,
10789         * src/pic16/pcode.c,
10790         * src/pic16/pcode.h: added some structures and functions for a new
10791         optimization scheme to compansate for instruction overhead between
10792         same iCodes, this scheme is currently under development and is not
10793         working in any way,
10794         * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
10795         to && operator,
10796         * device/lib/pic16/startup/crt0i.c,
10797         * device/lib/pic16/startup/crt0iz.c: added global char variable
10798         __uflags to force the generation of an idata section
10799
10800 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
10801
10802         * doc/Makefile,
10803         * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
10804         * doc/sdccman.lyx: updated sdcc version to 2.4.4
10805
10806 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10807
10808         * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
10809         Frieder) and clarified the default code optimization mode
10810
10811 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10812
10813         * src/SDCC.lex (doPragma, process_pragma),
10814         * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
10815         "opt_code_size", and "opt_code_balanced"
10816         * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
10817         regrouped options by category, added support for category headers
10818         * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
10819         and "--opt-code-size"
10820         * doc/sdccman.lyx: documented these new options and pragmas
10821         * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
10822         preference into account
10823
10824 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
10825
10826         * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
10827           geniCodePreDec): Fixed bug 904237 by generating a warning
10828         * src/SDCCerr.h,
10829         * src/SDCCerr.c: added warning W_SIZEOF_VOID
10830
10831 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
10832
10833         * src/pic/device.c : When no max ram set validate full memory range.
10834         * src/pic/pcode.c,
10835         * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
10836
10837 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
10838
10839         * device/lib/_gptrget.c,
10840         * device/lib/_gptrput.c: updated comment
10841         * device/lib/calloc.c,
10842         * device/lib/free.c,
10843         * device/lib/malloc.c,
10844         * device/lib/realloc.c: added LGPL, made them reentrant-safe
10845         * src/SDCCcse.c (cseBBlock),
10846         * src/SDCCicode.c (printOperand, geniCodeArray),
10847         * src/SDCCicode.h (struct operand): fixed bug 868103
10848         * support/regression/tests/bug-868103.c: added
10849         * src/SDCCast.c (searchLitOp),
10850         * src/SDCCcse.h (struct cseDef),
10851         * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
10852         * src/SDCCicode.h (struct operand),
10853         * src/SDCCsymt.h (struct sym_link),
10854         * src/avr/gen.c (hasInc),
10855         * src/ds390/gen.c (hasInc),
10856         * src/hc08/gen.c (genPlusIncr, hasInc),
10857         * src/mcs51/gen.c (hasInc),
10858         * src/pic16/glue.c (pic16_printIvalChar),
10859         * src/pic16/ralloc.c (regWithIdx),
10860         * src/xa51/gen.c (hasInc) : removed warnings
10861         * src/SDCCast.c (createBlock): added comment ???
10862         * src/hc08/ralloc.c: updated comments
10863
10864 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10865
10866         * doc/sdccman.lyx: updated section on switch statements, added
10867         section about semaphore locking
10868         * doc/Makefile: added option -info for latex2html
10869         * device/lib/_gptrget.c,
10870         * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
10871
10872 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
10873
10874         * src/pic/device.h,
10875         * src/pic/device.c,
10876         * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
10877          maxram is less than 0x100.
10878
10879 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
10880
10881         * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
10882
10883 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10884
10885         * src/port.h,
10886         * src/mcs51/main.c,
10887         * src/ds390/main.c,
10888         * src/z80/main.c,
10889         * src/hc08/main.c,
10890         * src/pic/main.c,
10891         * src/pic16/main.c,
10892         * src/avr/main.c,
10893         * src/xa51/main.c
10894         * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
10895         a jump table is the best form for a switch statement, including
10896         automatic insertion of missing cases to make the case range
10897         continuous. Developed in collaboration with Frieder Ferlemann.
10898
10899 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10900
10901         * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
10902         accumulator result if it needs sign extension
10903
10904 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
10905
10906         * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
10907
10908 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
10909
10910         * device/lib/gbz80/printf.c,
10911         * device/lib/z80/printf.c: removed define for NULL
10912
10913 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
10914
10915         * as/xa51/xa_link.c,
10916         * device/examples/ds390/ow390/ad26.c,
10917         * device/examples/ds390/ow390/cnt1d.c,
10918         * device/examples/ds390/ow390/counter.c,
10919         * device/examples/ds390/ow390/ds2480.h,
10920         * device/examples/ds390/ow390/ds2480ut.c,
10921         * device/examples/ds390/ow390/findtype.c,
10922         * device/examples/ds390/ow390/gethumd.c,
10923         * device/examples/ds390/ow390/owllu.c,
10924         * device/examples/ds390/ow390/ownetu.c,
10925         * device/examples/ds390/ow390/swt12.c,
10926         * device/examples/ds390/ow390/swtloop.c,
10927         * device/examples/ds390/ow390/temp.c,
10928         * device/examples/ds390/ow390/temp10.c,
10929         * device/examples/ds390/ow390/thermo21.c,
10930         * device/examples/ds390/ow390/tinilnk.c,
10931         * device/examples/ds390/ow390/tstfind.c,
10932         * device/examples/serialcomm/windows/serial.cpp,
10933         * device/examples/serialcomm/windows/test_serialcomm.cpp,
10934         * device/include/reg51.h: fixed line endings for cvs
10935
10936 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10937
10938         * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
10939         packRegsForAccUse, packRegisters): new accumulator register
10940         packing algorithm
10941         * support/regression/ports/hc08/support.c (_putchar): suppress
10942         warning of unused variable
10943         * src/SDCCicode.c: added SWAP entry to codeTable
10944
10945 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
10946
10947         * device/lib/sprintf.c: forgot to add this file before previous commit
10948
10949 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
10950
10951         * src/pic16/gen.c (genPackBits): added operand right in function
10952         parameters, load result directly if p_type is POINTER (that is
10953         called by genNearPointerSet)
10954         * (genUnPackBits): added operand left in function parameters,
10955         * (genNearPointerGet, genNearPointerSet): prevent the loading of
10956         FSR0 if accessing bitfields,
10957
10958 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
10959
10960         * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
10961           _print_format; updated printf, sprintf, vsprintf
10962         * device/include/asm/default/features.h: corrected comment/define
10963         * device/lib/Makefile.in: added sprintf.c
10964         * device/lib/libsdcc.lib: added sprintf module
10965         * device/lib/printf_large.c,
10966         * device/lib/vprintf.c,
10967         * device/lib/sprintf.c: totally refactored printf_large and vprintf
10968           into these 3 files
10969         * support/regression/Makefile: changed ALL_PORTS into a usefull default
10970         * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
10971         * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
10972           hc08 test
10973         * support/regression/tests/zeropad.c: define idata as data for hc08
10974
10975 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10976
10977         * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
10978         * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
10979         labels are referenced at least once (even if a reference is not found)
10980         * src/hc08/gen.c (emitcode): set isComment flag for comments
10981         * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
10982         loads), rules 6a..6b (optimize jumps to return)
10983
10984 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10985
10986         * device/lib/acosf.c (acosf),
10987         * device/lib/asinf.c (asinf),
10988         * device/lib/atanf.c (atanf),
10989         * device/lib/ceilf.c (ceilf),
10990         * device/lib/cosf.c (cosf),
10991         * device/lib/coshf.c (coshf),
10992         * device/lib/cotf.c (cotf),
10993         * device/lib/fabsf.c (fabsf),
10994         * device/lib/floorf.c (floorf),
10995         * device/lib/log10f.c (log10f),
10996         * device/lib/logf.c (logf),
10997         * device/lib/sinf.c (sinf),
10998         * device/lib/sinhf.c (sinhf),
10999         * device/lib/sqrtf.c (sqrtf),
11000         * device/lib/tanf.c (tanf),
11001         * device/lib/tanhf.c (tanhf),
11002         * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
11003         replaced all instances of "reentrant" in the library functions
11004         defined in math.h with this macro.
11005         * support/regression/tests/float_trans.c: reenabled test for hc08
11006
11007 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
11008
11009         * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
11010         erroneously deleted
11011
11012 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11013
11014         * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
11015         * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
11016         multi-byte volatile operands are used
11017         * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
11018         * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
11019         initialization to area GSINIT0 so that it would always precede
11020         any static initializers in GSINIT
11021         * support/regression/tests/zeropad.c: fixed idata define for hc08
11022         * support/regression/tests/bug-927659.c,
11023         * support/regression/tests/float_trans.c: disabled tests for hc08
11024         pending missing library routines
11025         * .version: increased version number to 2.4.4 - hc08 port now passes
11026         regression tests
11027
11028
11029 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
11030
11031         * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
11032         * Makefile.common.in,
11033         * as/Makefile,
11034         * as/hc08/Makefile.in,
11035         * as/mcs51/Makefile.in,
11036         * as/z80/Makefile.in,
11037         * debugger/mcs51/Makefile.in,
11038         * device/include/Makefile.in,
11039         * device/lib/Makefile.in,
11040         * doc/Makefile,
11041         * link/Makefile,
11042         * link/z80/Makefile.in,
11043         * packihx/Makefile.in,
11044         * sim/ucsim/main_in.mk,
11045         * sim/ucsim/avr.src/Makefile.in,
11046         * sim/ucsim/doc/Makefile.in,
11047         * sim/ucsim/gui.src/serio.src/Makefile.in,
11048         * sim/ucsim/hc08.src/Makefile.in,
11049         * sim/ucsim/s51.src/Makefile.in,
11050         * sim/ucsim/xa.src/Makefile.in,
11051         * sim/ucsim/z80.src/Makefile.in,
11052         * src/Makefile.in,
11053         * support/cpp2/Makefile.in,
11054         * support/librarian/Makefile,
11055         * support/makebin/Makefile: added DESTDIR to the install path proposed
11056         by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
11057         * doc/sdccman.lyx: added DESTDIR documentation
11058
11059 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
11060
11061         * src/pic16/gen.c (genFunction, genEndFunction): fixed return
11062         instruction for interrupt handlers, use fast returns when returning
11063         from high priority interrupts
11064
11065 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11066
11067         * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
11068         code generation
11069         * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
11070         * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
11071         bugs, ported much of Bernhard's code from mcs51
11072         * src/mcs51/gen.c (genSend),
11073         * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
11074         than one when calling a reentrant function
11075         * device/lib/_mullong.c: defined an alternate struct layout for big
11076         endian ports (hc08)
11077
11078 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11079
11080         * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
11081         test
11082
11083 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11084
11085         * src/SDCCsymt.c (processFuncArgs): make sure parameter types
11086         are sane and complete before asking the port its prefered parameter
11087         passing method (fixes bug #1017633)
11088         * device/lib/hc08/_ret.c: added "data" storage class to _ret2
11089         and _ret3
11090
11091 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11092
11093         * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
11094         problem in bitfields >= 8 bits.
11095
11096 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
11097
11098         * src/SDCCsymt.c: undid changes that were not meant to be committed
11099
11100 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
11101
11102         * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
11103
11104 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
11105
11106         * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
11107           copied and wrong bit got inverted
11108
11109 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11110
11111         * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
11112         genFarPointerSet into genPointerSet; eliminated genFarPointerSet
11113         * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
11114         genFarPointerGet into genPointerGet; eliminated genFarPointerGet
11115         * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
11116         assignments to bitfields at known addresses
11117         * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
11118         reads from bitfields at known addresses
11119         * src/hc08/ralloc.c (packRegisters),
11120         * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
11121         genhc08Code): optimize pointer get values used as conditionals
11122         * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
11123         and branch
11124
11125 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11126
11127         * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
11128         genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
11129         * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
11130         as conditionals
11131
11132 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11133
11134         * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
11135
11136 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11137
11138         * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
11139         related problems
11140
11141 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
11142
11143         * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
11144
11145 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11146
11147         * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
11148         mcs51 port
11149
11150 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
11151
11152         * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
11153
11154 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11155
11156         * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
11157         cases use more compact code.
11158
11159 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
11160
11161         * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
11162
11163 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11164
11165         * src/SDCClrange.c (findPrevUse): fixed bug #1007371
11166
11167 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11168
11169         * src/SDCCsymt.h,
11170         * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
11171         parameter of changePointer() from symbol* to sym_link*
11172         * src/SDCCast.c (decorateType): call changePointer() for CAST op
11173         * src/SDCCsymt.c (compareType): void* type is castable to other
11174         pointers, but not necesarily an exact match.
11175         * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
11176         is no longer blindly treated as an exact match.
11177         * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
11178
11179 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
11180
11181         * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
11182
11183 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
11184
11185         * src/pic/gen.c,
11186         * src/pic/pcode.c,
11187         * src/pic/ralloc.h,
11188         * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
11189
11190 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
11191
11192         * src/pic/device.c,
11193         * src/pic/device.h,
11194         * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
11195
11196 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11197
11198         * src/mcs51/gen.c (emitcode): fixed bug #992819
11199
11200 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
11201
11202         * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
11203           there's no need to make it worse
11204
11205 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11206
11207         * src/mcs51/ralloc.c (deassignLR),
11208         * src/ds390/ralloc.c (deassignLR),
11209         * src/hc08/ralloc.c (deassignLR),
11210         * src/z80/ralloc.c (deassignLR),
11211         * src/pic/ralloc.c (deassignLR),
11212         * src/pic16/ralloc.c (deassignLR),
11213         * src/avr/ralloc.c (deassignLR),
11214         * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
11215         rlivePoint): fixed another part of bug #971834
11216
11217 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11218
11219         * src/z80/main.c: enabled "critical" keyword
11220         * src/z80/mappings.i,
11221         * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
11222         functions (fixes bug #979646)
11223         * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
11224
11225 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11226
11227         * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
11228           such as c:\mydir.
11229
11230 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
11231
11232         * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
11233           doesn't disable too much optimizations
11234
11235 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
11236
11237         * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
11238
11239 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
11240
11241         * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
11242
11243 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
11244
11245         * src/pic/gen.c tidied up tabs
11246         * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
11247         * src/pic/main.c tidied up tabs
11248         * src/pic/pcode.c tidied up tabs and disabled verbose code generation
11249         * src/pic/pcoderegs.c tidied up tabs
11250         * src/pic/ralloc.c tidied up tabs
11251
11252 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
11253
11254         * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
11255         to S_FIXED for pic16 port and when symbol is not in level 0,
11256         allocate for S_REGISTER storage class and pic16 port, too,
11257         * src/pic16/device.h: prototype for checkSym,
11258         * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
11259         * (pic16_assignConfigWordValue): test the value and the mask to
11260         validate that the value is suitable for the configuration word,
11261         * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
11262         collect extern declared symbols, don't emit symbol twice, check
11263         first if symbol is in publics set first,
11264         * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
11265         * added command line '--fstack' which enables an experimental
11266         feature for stack access, too buggy to be used yet...
11267         * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
11268         * (pic16_allocDirReg): when register has storage class S_REGISTER
11269         allocate in pic16_dynAccessRegs,
11270         * device/include/pic16/pic18f????.h: modified configuration word
11271         naming convention, words started as CONFIG0H but should be CONFIG1H
11272
11273 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
11274
11275         * device/include/mcs51reg.h: fixed bug 970993
11276
11277 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
11278
11279         * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
11280         * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
11281         * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
11282         * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
11283         * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
11284         * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
11285           error/warning numbers,
11286           added function setWarningDisabled()
11287         * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
11288         * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
11289           _memcmp.c _memmove.c calloc.c realloc.c free.c
11290         * support/regression/tests/malloc.c: added tests for new functionality
11291         * support/regression/tests/zeropad.c: added tests for truncated initializers
11292           and initialized char arrays starting with '\x0'
11293         * src/mcs51/peeph.def: fixed regression, added peephole 177.f
11294
11295 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
11296
11297         * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
11298
11299 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11300
11301         * doc/sdccman.lyx: updated example in section "Absolute Addressing"
11302         * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
11303         peephole 177.e. Thanks to anonymous
11304
11305 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
11306
11307         * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
11308         function isn't used in the source but referenced as a
11309         variable initializer then declare it as extern in .asm file
11310
11311 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
11312
11313         * .version: increased version number to 2.4.3
11314
11315         Adding version extension according to ChangeLog CVS revision
11316         * src/Makefile.in (target all): added dependency 'version.h'
11317         * (rule version.h): added rule to create version.h from ChangeLog,
11318         * (rule dep): added dependency version.h,
11319         * src/version.awk: AWK script to create version.h
11320         * src/SDCCdwarf2.c (dwWriteModule),
11321         * src/SDCCglue.c (initialComments),
11322         * src/SDCCmain.c (printVersionInfo): modified to write after
11323         version string the version extension number,
11324         * src/SDCCutil.c: included "version.h"
11325         * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
11326         number,
11327         * src/SDCCutil.h: added prototype for getBuildNumber
11328
11329         * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
11330         includeDirsSet, too,
11331         * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
11332         const char [] is found in function prototype...
11333
11334         * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
11335         moving to WREG with source is already in WREG,
11336         * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
11337         * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
11338         * (aopForSym): stack'ed symbols are partially supported, added
11339         if-clause to support symbols in FARSPACE,
11340         * (sameRegs): added test for AOP_ACC to see if registers are same,
11341         * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
11342         * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
11343         * (pic16_popRegFromString): will not allocate a new register if it
11344         doesn't find one by name, bug may have introduced...
11345         * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
11346         * (genIpush): revived to use pic16 port's stack,
11347         * (genAddrOf): added incomplete case for stack'ed operand,
11348         * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
11349         * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
11350         can handle multibyte operands,
11351         * src/pic16/glue.c (pic16_printIval*): some debug info added,
11352         * (pic16initialComments): added message for MPLAB compatibility
11353         mode enabled,
11354         * src/pic16/main.h: prototype for pic16_mplab_comp,
11355         * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
11356         which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
11357         * (_pic16_linkEdit): NEW, handles link stage, transferred here
11358         because of increased complexity of procedure,
11359         * (_process_pragma): stack pragma changed to format 'stack pos len',
11360         emit symbol '_stack_end' to conform with gplink,
11361         * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
11362         to search for register,
11363         * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
11364         PO_GPR_REGISTER,
11365         * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
11366         #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
11367         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
11368         case for PO_GPR_REGISTER,
11369         * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
11370         dies, the new era is ahead !...
11371         * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
11372         pic16_dynInternalRegs,
11373         * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
11374         * (pic16_allocDirReg): minor optimizations and bug fixes,
11375         * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
11376
11377         * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
11378         load stack and frame pointer with address of 'stack_end' symbol
11379
11380 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
11381
11382         * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
11383         without source code but only variable initializers
11384
11385 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
11386
11387         * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
11388         external are not declared as extern to reduce overhead while linking
11389
11390 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
11391
11392         * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
11393
11394 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
11395
11396         * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
11397           Yee Keat for the patch
11398         * src/SDCCast.c (decorateType): fixed bug #979599
11399         * src/ds390/gen.h: removed local fReturnSizeDS390
11400         * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
11401         * src/ds390/gen.c (genAnd, genOr, genXor),
11402         * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
11403
11404 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
11405
11406         * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
11407         add relFilesSet to $3, manipulate $2 to handle linking of object
11408         files without source files in command line,
11409         * device/include/pic16 (all headers): added ID location macros,
11410         * src/pic16/device.c (struct PIC16_device Pics16[]): added field
11411         entries for ID location bytes,
11412         * (pic16_assignIdByteValue): NEW,
11413         * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
11414         added field dumpcalltree to pic16_options_t,
11415         * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
11416         is used instead of pic16_Gstack_base_addr, check if (ifx) before
11417         emitting rFalseIfx label after check_carry label,
11418         * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
11419         pic16_emitDIRegs), NEW
11420         * (pic16glue): dump .calltree file when option --calltree found,
11421         * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
11422         * (_pic16_genAssemblerPreamble): emit ID locations after
11423         configuration registers,
11424         * (pic16_linkCmd): modifications of the link command,
11425         * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
11426         * (pic16_pCodeInitRegisters): don't init stack registers,
11427         * (pic16_findPrevInstruction): fixed bug,
11428         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
11429         bug with immediate registers,
11430         * (buildCallTree): traces stack push and pop,
11431         * (pct2): dump also stack usage for each function,
11432         * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
11433         * (pic16_allocDirReg): various modifications,
11434         * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
11435         fixed to 1,
11436
11437 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
11438
11439         * src/pic16/pcode.c: removed buggy double colon
11440
11441 2004-07-01 Borut Razem <borut.razem AT siol.net>
11442
11443         * support/scripts/sdcc.nsi: added include/pic16 to setup
11444
11445 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
11446
11447         * device/lib/Makefile.in: fixed bug in target objects-pic16,
11448         * device/lib/pic16/Makefile: prefixed with dash (-) command under
11449         target 'clean',
11450         * doc/sdccman.lyx: changed version to 2.4.2 and added some port
11451         specific command line arguments. Also added sample lkr script
11452         for placing a variable at a specific memory bank.
11453         * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
11454         at a specific memory bank,
11455         * (pic16_dump_isection): fixed bug which caused string literals to
11456         be omitted when dumping idata section,
11457         * (pic16_groupRegistersInSection): added code to handle registers
11458         in specific memory banks,
11459         * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
11460         public, all references are renamed too,
11461         * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
11462         AOP_DPTR2,
11463         * (pic16_storeForReturn): added case to handle when dest is WREG,
11464         * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
11465         * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
11466         pic16_rel_udata, check to see if that register is marked as being
11467         a member of a specific memory bank,
11468         * (pic16_printIvalCharPtr): added code to add string literals either
11469         to code or the idata sections,
11470         * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
11471         also accept the 'udata' pragma,
11472         * src/pic16/main.h: new structure types sectName and sectSym
11473         * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
11474         * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
11475         * (pic16_findPrevInstruction): fixed, it returned nothing,
11476         * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
11477         instruction combinations,
11478         * (pic16_FixRegisterBanking): heavily reorganised,
11479         * (pic16_AnalyzeBanking): if generating banksel directives is
11480         disabled, then don't call FixRegisterBanking at all,
11481         * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
11482         completely removed,
11483         * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
11484
11485 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
11486
11487         * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
11488         Phuah Yee Keat <yk.phuah AT nestac.com>
11489
11490 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
11491
11492         * src/pic16/glue.c (pic16createInterruptVect): function now emits
11493         correctly the IVT even if it is relocated to some other location
11494
11495 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
11496
11497         * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
11498         * device/include/pic16/pic18f2220.h: NEW,
11499         * device/lib/pic16/libdev/pic18f2220.c: NEW,
11500         * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
11501         * src/pic16/device.c (struct Pics16): added info for 18f2220,
11502         * src/pic16/device.h (struct pic16_options): added ivt_loc and
11503         nodefaultlibs, ivt_loc is the location of the interrupt vector
11504         table, and nodefaultlibs signs that default libraries should not be
11505         linked in link stage,
11506         * src/pic16/gen.c (genFunction): relocate interrupt vector functions
11507         according to --ivt-loc argument,
11508         * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
11509         when pragma stack is found,
11510
11511 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11512
11513         * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
11514         256 (range check), 257 (do while), 258.a-f (bit banging
11515         f.e. on 3-wire SPI bus)
11516
11517 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11518
11519         * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
11520         variables used exclusively within a loop
11521
11522 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
11523
11524         * src/mcs51/gen.c (genCpl): quick fix for bug #974835
11525
11526 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11527
11528         * src/SDCClrange.c (computeClash): fixed bug #971834
11529
11530 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11531
11532         * src/mcs51/gen.c (genCmp): fixed bug #975903
11533         * src/hc08/gen.c (operandsEqu),
11534         * src/ds390/gen.c (operandsEqu),
11535         * src/z80/gen.c (operandsEqu),
11536         * src/pic/gen.c (operandsEqu),
11537         * src/pic16/gen.c (operandsEqu),
11538         * src/mcs51/gen.c (operandsEqu): fixed bug #976283
11539         * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
11540
11541 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11542
11543         * src/SDCCcse.c (cseBBlock): fixed bug #966963
11544
11545 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
11546
11547         * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
11548         default case in switch statement,
11549         * glue.c (pic16_initPointer): expr is initialised via decoarteType
11550         to eliminate problem with initialisation of pointers, but problem
11551         still exists,
11552         * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
11553         * (emitStaticSegment): removed various lines emitting debug info,
11554         * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
11555         added processor registers for utilizing EEPROM,
11556         * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
11557         configurable and set 8
11558
11559 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
11560
11561         * .version: increased version number to 2.4.2,
11562
11563         Cumulative patch for pic16 port
11564         * src/pic16/device.c: changed scheme to dump initial values for
11565         variables in idata segment, all print_idata* functions were removed,
11566         now the pic16_printIval* will be called,
11567         * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
11568         * _pic16_printPointerType, pic16_printPointerType,
11569         * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
11570         * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
11571         NEW, similar to the respective functions in SDCCglue.c,
11572         * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
11573         way, emitting hex bytes,
11574         * (pic16_emitDS): NEW, emits a string for pointer initialisation,
11575
11576 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11577
11578         * src/avr/ralloc.c (serialRegAssign),
11579         * src/xa51/ralloc.c (serialRegAssign),
11580         * src/pic/ralloc.c (serialRegAssign),
11581         * src/pic16/ralloc.c (serialRegAssign),
11582         * src/hc08/ralloc.c (serialRegAssign),
11583         * src/z80/ralloc.c (serialRegAssign),
11584         * src/ds390/ralloc.c (serialRegAssign),
11585         * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
11586
11587 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11588
11589         * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
11590         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
11591
11592 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
11593
11594         Cumulative patch for pic16 port:
11595         * src/pic16/device.h (typedef PIC16_device) modified fields for
11596         defining microcontrollers,
11597         * src/pic16/device.c: added new info for all devices in Pics16 array,
11598         * src/pic16/gen.c (genPcall): fixed bug that caused the return label
11599         to be optimised out by the pCode optimiser,
11600         * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
11601         specially, bug reported by G.M. Gallant,
11602         * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
11603         as force'd so that cannot be optimised out by pCode optimiser,
11604         * src/pic16/pcode.c,
11605         * src/pic16/pcodepeeph.c,
11606         * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
11607         they are disabled by default, but can be enabled explicit with
11608         command argument --denable-peeps, for testing,
11609         * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
11610         --pomit-ivt in COMPILE_FLAGS
11611
11612 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
11613
11614         * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
11615           compilation on MSVC
11616
11617 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
11618
11619         * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
11620
11621 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11622
11623         device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
11624         0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
11625
11626 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
11627
11628         * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
11629         would only assign 0x300001 register.
11630
11631 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
11632
11633         * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
11634         in COMPILE_FLAGS. Thanks to G. Gallant for report.
11635
11636 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11637
11638         * doc/sdccman.lyx: minor changes, mentioned beta vendor support
11639         for ds80c400
11640         * src/mcs51/peeph.def: ran unexpand -a over peeph.def
11641         * src/mcs51/peeph.def: removed obsolete peephole 100.a,
11642         added peephole 254 (left shift), 255 (jump table)
11643
11644 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
11645
11646         * device/lib/Makefile.in: removed comment line with model-pic16,
11647         * (target port-specific-objects-pic16): the libraries and objects
11648         are copied to the build directory form the device/lib/pic16/bin
11649         directory
11650
11651         Cumulative patch concerning pic16 port:
11652         * library directory has been re-organized,
11653         * added support for PIC18F1220,
11654         * added headers and library sources for chips 18f1220,18f6520,
11655         18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
11656
11657         * configuration registers setting has changed, now each supported
11658         device has a complete description of the registers it uses,
11659         * all initialisations are moved to idata sections, these section
11660         can be absolute or relocatable,
11661         * fixed initialisation of codespace variables,
11662         * fixed warning about PCLATU and gpsim,
11663         * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
11664         * (genAssign): use table reads when assigning from variables in codespace,
11665         * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
11666         char/int variables placed in codespace,
11667         * (pic16_emitConfigRegs): NEW, emits a list with configuration
11668         registers set in .asm file, no need for --pomit-config-words anymore,
11669         * (pic16glue): some 8051 legacy segments are commented out
11670         (to be removed completely),
11671         * added support for alternative assembler and linker with --asm=
11672         and --link= command line arguments,
11673         * peepholes are disabled automatically in the port, no need to
11674         specify on command line,
11675         * port supports natively char/int/long multiplication, but converts
11676         all divisions to support functions,
11677         * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
11678         to the file set in variable $2,
11679         * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
11680         strings in ASCII format and not in hex,
11681         * ralloc.c (serialRegAssign): added a triplet of conditional calls
11682         to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
11683         allocate proper register if iCodes aren't temporary,
11684
11685 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
11686
11687         * support/regression/tests/zeropad.c: added TEST_G macro for alpha
11688
11689 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
11690
11691         * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
11692         is commented out
11693
11694 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11695
11696         * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
11697         computed address is reused
11698         * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
11699         multi-byte bitfields
11700
11701 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
11702
11703         * src/z80/gen.c: (genArrayInit): must check for pointers too
11704
11705 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
11706
11707         * support/regression/tests/zeropad.c: never meant to commit the
11708           nestedstruct test: removed, added check for GCC version
11709
11710 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
11711
11712         * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
11713         * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
11714         * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
11715           printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
11716           bugs 928906 and 954082 half-empty initializers
11717         * src/SDCCsymt.h,
11718         * src/SDCCsymt.c (getAllocSize): added for above fix
11719         * src/z80/gen.c (genArrayInit): fixed bug 741044
11720         * support/regression/tests/zeropad.c: added tests
11721
11722 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
11723
11724         * src/pic16/device.c (pic16_dump_section): corrected bug which
11725         caused some symbols of the libraries to be misplaced
11726
11727 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
11728
11729         * src/pic16/glue.c,
11730         * src/pic16/ralloc.h,
11731         * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
11732         to fix conflict with pic port
11733
11734 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
11735
11736         * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
11737         externs configuration variables,
11738         * src/pic16/ralloc.h,
11739         * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
11740         prototype in header, commented out some debug messages
11741
11742 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
11743
11744         * src/pic16/glue.c,
11745         * src/pic16/main.c,
11746         * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
11747         for gpasm COFF object generation. Thanks to D. Hawkins for
11748         his patch info
11749
11750 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11751
11752         * src/ds390/main.c,
11753         * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
11754         Brock for spotting this)
11755         * src/ds390/gen.c (genEndFunction),
11756         * src/mcs51/gen.c (genEndFunction): always save psw if function is an
11757         interrupt handler and critical. Disable push/pop optimizations when
11758         peephole optimizations disabled.
11759
11760 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
11761
11762         Updated pic16 library sources and headers.
11763         * device/lib/pic16/pic18f*/ ,
11764         * device/include/pic16/*.h: modified to handle structured SFR
11765         definitions
11766
11767 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
11768
11769         * src/port.h (PORT structure): added hook initPaths, now each
11770         port can declare its own default search paths,
11771         which can been seen with the --print-search-dirs option,
11772         see pic16 port for example,
11773         * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
11774         setDataPaths): test to options.printSearchDirs is ifdef'ed out,
11775         * (doPrintSearchDirs): NEW, replaces in a central manner the
11776         printing of search dirs which was split in set*Paths functions,
11777         * (main): added call to port->initPaths and doPrintSearchDirs,
11778         * src/avr/main.c,
11779         * src/ds390/main.c,
11780         * src/hc08/main.c,
11781         * src/izt/i186.c,
11782         * src/izt/tlcs900h.c,
11783         * src/mcs51/main.c,
11784         * src/pic/main.c,
11785         * src/pic16/main.c: modified port structures to reflect addition of
11786         initPaths hook,
11787
11788         * src/pic16/device.c (regCompare): registers are finally sorted by name,
11789         * (pic16_dump_section): for registers in same address reserve memory once,
11790         * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
11791         to no_banksel,
11792         * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
11793         result is greater in size than right or left,
11794         * (pic16_genUMult8X8_8): there are some cases where the result can
11795         be 16 bits size, so handle these,
11796         * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
11797         * (pic16_outBitC): modified to emit pcodes,
11798         * (pic16_storeForReturn): using is_LitOp to see if operand is literal
11799         or not,
11800         * (genDivOneByte): implemented algorithm to divide 8-bits,
11801         * (genCmp): uncommented goto, but issues still exist,
11802         * (genAnd): fixed a bug with variables >8bits,
11803         * (genPackBits): optimization added that uses BCF/BSF to change a
11804         single bit,
11805         * (genAssign): fixed bug when assigning floating point literals,
11806         * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
11807         __sdcc_gsinit_startup label,
11808         * src/pic16/main.c (_pic16_init): removed search directory
11809         initialisations,
11810         * (_pic16_initPaths): NEW, used to initialise search directories,
11811         * (_hasNativeMulFor): support functions for all except char/int
11812         multiplication, and char division,
11813         * (PIC16_port struct): modified entry for native mul support,
11814         * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
11815         no_banksel option,
11816         * (buildCallTree): call to register_usage is ifdef'ed out,
11817
11818 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11819
11820         * device/include/string.h: applied Stas Sergeev's patch to make this
11821         header file compatible with the preprocessor -Wundef option
11822         * src/SDCCmain.c (main): abort compilation if preprocessor reports
11823         failure (fixes bug #941458)
11824
11825 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11826
11827         * src/SDCCopt.c (killDeadCode): fixed bug #907733
11828         * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
11829         that the variable, not the function, should be static
11830         * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
11831         to be consistent with non-literal case
11832
11833 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11834
11835         * src/SDCCast.c (isConformingBody): fixed bug #949967
11836         * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
11837         convilong): fixed bug #952086
11838
11839 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11840
11841         * src/SDCCmem.c (allocVariables): fixed bug #955321
11842
11843 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11844
11845         * src/hc08/main.c (_hc08_genAssemblerEnd),
11846         * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
11847         dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
11848         completely eliminated the use of a temporary file
11849         * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
11850         when more than one file linked
11851         * src/SDCCloop.c (pointerAssigned): fixed bug #954163
11852
11853 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11854
11855         * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
11856         which fixes bug #543481
11857         * support/regression/tests/bug-751703.c: fixed comments left from a
11858         cut and paste error
11859         * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
11860         * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
11861         * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
11862         scopes
11863         * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
11864         * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
11865         are now changed to underscores in moduleName
11866
11867 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11868
11869         * as/mcs51/lkmem.c: better fix for bug #954173
11870
11871 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
11872         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11873
11874         * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
11875         * device/include/c8051f000.h,
11876         * device/include/c8051f120.h,
11877         * device/include/c8051f300.h,
11878         * device/include/c8051f310.h,
11879         * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
11880         PWM16) and detab'ed
11881
11882 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11883
11884         * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
11885         and mailing lists, doc'ed --no-peep-comments, removed reference
11886         to knoppix (newest version has no LyX/LaTeX), other minor changes
11887         * src/SDCCglue.c (glue): save 2 bytes stack space with
11888         option --main-return. The ljmp could probably be avoided too
11889
11890 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11891
11892         * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
11893
11894 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11895
11896         * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
11897         * src/SDCCopt.c (isLocalWithoutDef),
11898         * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
11899         which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
11900         (credit to Maarten Brock for patch #949363, on which this is based)
11901         * support/regression/tests/bug-751703.c: some test cases of extern used
11902         within inner scopes.
11903
11904 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11905
11906         * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
11907         SPEC_STRUCT
11908         * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
11909         struct definitions
11910         * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
11911         dwWriteLabel): fix to create valid debugger symbols even when
11912         the module name has non-alphanumeric symbols in it
11913         * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
11914         when a variable's allocation has been optimized away
11915
11916
11917 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11918
11919         * src/hc08/gen.c (hc08_emitDebuggerSymbol),
11920         * src/hc08/main.c,
11921         * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
11922         * src/mcs51/main.c,
11923         * src/ds390/gen.c (ds390_emitDebuggerSymbol),
11924         * src/ds390/main.c,
11925         * src/z80/gen.c (z80_emitDebuggerSymbol),
11926         * src/z80/main.c,
11927         * src/pic/gen.c (pic14_emitDebuggerSymbol),
11928         * src/pic/main.c,
11929         * src/pic16/gen.c (pic14_emitDebuggerSymbol),
11930         * src/pic16/main.c,
11931         * src/avr/gen.c (avr_emitDebuggerSymbol),
11932         * src/avr/main.c,
11933         * src/xa51/gen.c (xa51_emitDebuggerSymbol),
11934         * src/xa51/main.c,
11935         * src/SDCCdebug.c (emitDebuggerSymbol),
11936         * src/SDCCdebug.h,
11937         * src/port.h: added a debugger struct to the port struct. Added a
11938         callback for defining debugger symbols
11939
11940         * src/SDCCast.c (createLabel),
11941         * src/SDCC.y (labeled_statement): mark all compiler generated labels
11942         with isitmp = 1
11943         * src/SDCCicode.h,
11944         * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
11945         iCode back to the ast for the function
11946
11947         * src/hc08/ralloc.c (hc08_assignRegisters),
11948         * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
11949         unneeded fields from the regs struct.
11950         * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
11951         pushReg() & pullReg() functions instead of emitcode()
11952
11953         * src/hc08/gen.c (genLabel, genhc08Code),
11954         * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
11955
11956         * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
11957         debugger hooks
11958
11959         * src/hc08/gen.c (genEndFunction, genhc08Code),
11960         * src/hc08/gen.h,
11961         * src/mcs51/gen.c (genEndFunction, gen51Code),
11962         * src/mcs51/gen.h,
11963         * src/ds390/gen.c (genEndFunction, gen390Code),
11964         * src/ds390/gen.h,
11965         * src/z80/gen.c (genEndFunction, genZ80Code),
11966         * src/z80/gen.h,
11967         * src/z80/z80.h,
11968         * src/pic/gen.c (genEndFunction, genpic14Code),
11969         * src/pic/gen.h,
11970         * src/pic16/gen.c (genEndFunction, genpic16Code),
11971         * src/pic16/gen.h,
11972         * src/avr/gen.c (genEndFunction, genAVRCode),
11973         * src/avr/gen.h,
11974         * src/xa51/gen.c (genEndFunction, genXA51Code),
11975         * src/xa51/gen.h,
11976         * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
11977         specific code to cdbFile.c and out of the backend code generators
11978
11979         * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
11980         * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
11981         starting address is now 0
11982
11983         * as/hc08/asm.h,
11984         * as/hc08/m08pst.c,
11985         * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
11986         assembler directive for DWARF support
11987         * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
11988
11989         * src/src.dsp,
11990         * src/Makefile.in,
11991         * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
11992
11993 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11994
11995         * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
11996         and inappropriate peephole optimization in jump tables
11997
11998 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11999
12000         * as/hc08/m08pst.c,
12001         * src/SDCCglue.c: sdccopt works for the hc08 port now
12002
12003 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
12004
12005         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
12006
12007 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12008
12009         * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
12010
12011 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12012
12013         * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
12014         rules
12015         * src/SDCCmain.c,
12016         * src/SDCCglobl.h,
12017         * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
12018         comments from the peephole optimizer replacement rules
12019         * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
12020         symbols
12021         * src/SDCCcse.c (updateSpillLocation),
12022         * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
12023         equivalents
12024         * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
12025         * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
12026         objects far pointers
12027
12028 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12029
12030         * src/SDCCsymt.h: a missing part of my last change
12031         * src/pic/ralloc.c (regTypeNum),
12032         * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
12033
12034 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12035
12036         * src/SDCCicode.h,
12037         * src/SDCCicode.c (aggrToPtrDclType),
12038         * src/SDCCptropt.h,
12039         * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
12040         ptrPseudoSymConvert),
12041         * src/pic/ralloc.c (regTypeNum),
12042         * src/pic16/ralloc.c (regTypeNum),
12043         * src/hc08/ralloc.c (regTypeNum),
12044         * src/ds390/ralloc.c (regTypeNum),
12045         * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
12046         creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
12047
12048 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12049
12050         * link/z80/lkmain.c (afile),
12051         * as/hc08/lkmain.c (afile),
12052         * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
12053         prevent a pointer problem when a filename has no directory and
12054         no extension specified.
12055
12056 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12057
12058         * link/z80/lkmain.c (afile): allow periods in directory names
12059         * link/z80/lkmain.c (afile),
12060         * as/mcs51/lkmain.c (afile),
12061         * as/hc08/lkmain.c (afile): allow linker script file to have an
12062         extension other than ".lnk"
12063         * link/z80/lklex.c (getfid),
12064         * link/z80/lkmain.c (parse),
12065         * as/mcs51/lklex.c (getfid),
12066         * as/mcs51/lkmain.c (parse),
12067         * as/hc08/lklex.c (getfid),
12068         * as/hc08/lkmain.c (parse): Support comments in the linker script
12069         file on lines by themselves and after filenames
12070
12071 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12072
12073         * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
12074
12075 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12076
12077         * src/z80/peeph-z80.def: removed some peephole rules that don't
12078         work with multibyte arithmetic (fixed bug #937126)
12079         * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
12080         to registers and not global variables
12081         * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
12082         geniCodePreInc, geniCodePostDec, geniCodePreDec,
12083         geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
12084         checking for assignments not internally generated (fixed bug #931895)
12085         * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
12086         structure member (fixed bug #930072)
12087
12088 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12089
12090         * src/SDCCmain.c (linkEdit),
12091         * src/hc08/main.c (_hc08_parseOptions),
12092         * as/hc08/Makefile.in,
12093         * as/hc08/aslink.h,
12094         * as/hc08/asm.h,
12095         * as/hc08/m08pst.c,
12096         * as/hc08/lkrloc.c (relr, rele),
12097         * as/hc08/lkarea.c (lnkarea)
12098         * as/hc08/lkmain.c (afile, parse),
12099         * as/hc08/lkelf.c: support for ELF output
12100         * as/hc08/lks19.c (s19),
12101         * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
12102
12103 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12104
12105         * as/mcs51/lkihx.c: Fixed bug #899105.
12106
12107 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12108
12109         * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
12110         .dsp files from Unix to DOS.
12111
12112 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12113
12114         * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
12115         function pointers; we have been compliant for several months now.
12116         * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
12117         change that was accidently commented out
12118         * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
12119         genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
12120         bug #922319
12121
12122 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12123
12124         * src/hc08/gen.c: output of all of the internal debugging information
12125         is now controlled by the D() macro; it is disabled by default
12126
12127 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12128
12129         * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
12130         harder to keep the same registers during a CAST iCode
12131         * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
12132         long via int can be done in a single cast, if the signedness is
12133         correct.
12134         * support/regression/tests/bug-927659.c: fixed to avoid conflict with
12135         putchar() in tinibios.c in ds390's library
12136
12137 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
12138
12139         * src/SDCCast.c (decorateType): fixed bug #898889,
12140         cast result of a literal complement too
12141         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
12142         fixed check for bitfields
12143
12144 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
12145
12146         * src/SDCCicode.c (geniCodeLogic): made it static,
12147         (geniCodeLogicAndOr): added in order to fix bug #905492,
12148         (ast2iCode): fixed bug #905492
12149         * support/regression/tests/bug-905492.c: added
12150         * src/SDCCast.c (decorateType): don't decorate/process parms twice,
12151         (processParms): fixed bug #927659: don't copy parms, this will clear
12152         decorated flag
12153         * support/regression/tests/bug-927659.c: added
12154
12155 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
12156
12157         * src/SDCCast.c (addCast): don't cast float to char
12158         * device/lib/libsdcc.lib: added _memmove
12159
12160 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
12161
12162         * device/lib/large/Makefile: fixed parallel execution by
12163         replacing `make` by `$(MAKE)`
12164
12165 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12166
12167         * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
12168         offsets (fixes bug #923936)
12169
12170 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
12171
12172         * device/lib/small/Makefile: fixed parallel execution by
12173         replacing `make` by `$(MAKE)`
12174
12175 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
12176
12177         * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
12178
12179 2004-03-23  Scott Dattalo  <scott AT dattalo.com>
12180
12181         * src/pic/gen.c (genCpl): multi-byte complements were not working.
12182         * src/regression/Makefile: Regression test was not running.
12183
12184 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
12185
12186         * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
12187         complement if possible
12188         * src/SDCCval.c (valComplement),
12189         * src/SDCCicode.c (operandOperation): fixed complement of literal
12190         * support/regression/tests/onebyte.c (testComplement): added
12191
12192 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
12193
12194         * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
12195         return an optimized tree; actually replace actParm with the new tree
12196         * src/SDCCast.h: added some parantheses to remove side effects
12197         * support/regression/tests/bug-920866.c
12198
12199 2004-03-21  Scott Dattalo  <scott AT dattalo.com>
12200         * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
12201         Bit operands were not being handled properly in the pic14 port.
12202         (now src/regression/add.c passes again).
12203
12204 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12205
12206         * src/SDCC.y (labeled_statement): case and default no longer require
12207         a following statement (RFE #893037)
12208
12209 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12210
12211         * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
12212         use MOVA macro to avoid "mov a,acc" when peephole optimizer is
12213         disabled (fixes bug #916294)
12214         * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
12215         "mov a,acc"; patch provided by Lenny Story
12216         * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
12217
12218 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12219
12220         * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
12221         functions
12222         * src/ds390/gen.c (genFunction, genEndFunction),
12223         * src/ds390/ralloc.c (ds390_assignRegisters),
12224         * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
12225         * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
12226         pushed if there are parameters passed on the stack. Also, a cleaner
12227         way to decide if r0/r1 should be pushed/popped. (Together they fix
12228         bug #918693)
12229
12230 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12231
12232         * doc/sdccman.lyx,
12233         * device/lib/mcs51/crtpagesfr.asm,
12234         * device/lib/mcs51/crtxinit.asm,
12235         * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
12236         to avoid confusion with Si Lab's SFRPAGE register.
12237
12238 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12239
12240         * src/SDCCglue.c (emitMaps): allow public sfr variables
12241         * src/SDCCglue.c (initialComments): include compiler build date
12242         with compiler version and put the timestamp of the generated
12243         assembly file on a serperate line to be less confusing.
12244         * src/port.h: added genInitStartup hook
12245         * src/avr/main.c,
12246         * src/ds390/main.c,
12247         * src/hc08/main.c,
12248         * src/pic/main.c,
12249         * src/pic16/main.c,
12250         * src/xa51/main.c,
12251         * src/z80/main.c: genInitStartup initialize as NULL (default to
12252         historical behaviour)
12253         * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
12254         * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
12255         _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
12256         library instead of hard coding it into the compiler.
12257         * support/regression/ports/mcs51-stack-auto/spec.mk,
12258         * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
12259         * device/lib/mcs51/Makefile,
12260         * device/lib/small/Makefile,
12261         * device/lib/large/Makefile,
12262         * device/lib/mcs51/crtpagesfr.asm,
12263         * device/lib/mcs51/crtstart.asm,
12264         * device/lib/mcs51/crtxclear.asm,
12265         * device/lib/mcs51/crtxinit.asm,
12266         * device/lib/mcs51/crtclear.asm,
12267         * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
12268         startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
12269         and into user configurable files.
12270         * device/lib/clean.mk: clean mcs51 directory too
12271         * support/regression/tests/longlit.c: added static to T1 declaration
12272         * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
12273         accesses in the initialization code
12274
12275 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12276
12277         * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
12278         OSCTRIMVAL as noted in bug #916008
12279
12280 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12281
12282         * src/SDCCloop.c (basicInduction): fixed bug with loop induction
12283         in loops with multiple exits (reported as incorrect registers
12284         used by Martin Helmling in Sdcc-user list)
12285
12286 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12287
12288         * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
12289         made ds390 register extensions look less like error messages
12290
12291 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12292
12293         * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
12294         reported by Adam Wozniak in Sdcc-user list
12295
12296 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
12297
12298         * src/SDCCast.c (decorateType): fixed with bug and promotion in
12299         arithmetic optimizations, added debug output
12300
12301 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
12302
12303         * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
12304         * sdcc.spec: updated and split sdcc into 3 rpms
12305         * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
12306         needed for literals of LEFT_OP and '+'
12307         * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
12308         introduced RESULT_TYPE_NOPROM
12309         (geniCodeMultiply): fixed logic for decision if mul is optimized to
12310         left shift
12311         * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
12312         limited promotion to int only for '*'
12313         * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
12314
12315 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
12316
12317         * src/pic16/gen.c (genSkip),
12318         (genc16bit2lit), (gencjneshort): commented out
12319         (is_LitOp): new helper function, checks operand type
12320         (genCmpEq): rewritten
12321
12322 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
12323
12324         * support/regression/tests/bug-908454.c: added
12325
12326 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
12327
12328         * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
12329         * src/SDCCicode.c (usualBinaryConversions): op needs int type
12330         (geniCodeCast): cosmetic, don't preserve bit storage class
12331         (geniCodeLeftShift): added promotion
12332         (geniCodeLogic): fixed regression
12333         * src/SDCCsymt.c (computeTypeOr): accept bits too
12334         (compareType): 2nd part of fix for bug #908454, needed for bitfields
12335
12336 2004-03-07  Borut Razem <borut.razem AT siol.net>
12337
12338         * support/Util/findme.c: alloca() replaced with malloc()/free() pair
12339
12340 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
12341
12342         * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
12343         version of pic16_genPackRegisters which does not check if ic is a
12344         CAST operator,
12345         * src/pic16/gen.c (ifxForOp): disabled new and untested code in
12346         function cause string1.c regression test fails
12347
12348 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
12349
12350         * sim/ucsim/configure.in,
12351         * sim/ucsim/configure,
12352         * sim/ucsim/doc/Makefile.in: use docdir
12353         * src/SDCC.y: fixed sbit atrributes
12354         * src/SDCCast.c (getResultTypeFromType): added support for bitfields
12355         * src/SDCCast.c (decorateType): |^& need special promotion handling
12356         * src/SDCCast.h,
12357         * src/SDCCsymt.h: moved definition of RESULT_TYPE
12358         * src/SDCCsymt.h (computeType),
12359         * src/SDCCicode.c: computeType() needs op
12360         * src/SDCCsymt.c (checkTypeSanity),
12361         * doc/sddman.lyx: "plain" bitfields are unsigned
12362         * src/SDCCsymt.c (computeTypeOr): added
12363         * src/SDCCsymt.c (computeType): added support for bitfields, fixed
12364         |^& ops
12365         * src/SDCCval.c (val*): computeType() needs op
12366         * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
12367         * support/regression/tests/onebyte.c: added tests for |^&
12368
12369 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
12370
12371         * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
12372         for writing icode into asm output.
12373
12374 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
12375
12376         * src/pic16/device.c: added some debug lines enabled
12377         with macro DEBUG_CHECK,
12378         * src/pic16/genarith.c: more debug in genPlus,
12379         * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
12380         * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
12381         * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
12382         * (aopForSym): onStack symbols are re-placed in data memspace,
12383         and onStack flag is cleared,
12384         * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
12385         copy temporary pcodeop,
12386         * (genPcall): added warning for not updating PCLATU,
12387         * (genFunction): removed test with IFFUNC_CALLEESAVES, its
12388         always true for pic16 port,
12389         * (genMultOneWord): NEW, supports integer multiplication,
12390         * (genMult): modified to call genMultOneWord,
12391         * (ifxForOp): added warning when return NULL,
12392         * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
12393         flag is set before call to operandFromSymbol for implicit
12394         added structures,
12395         * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
12396         options.intlong_rent are set by default,
12397         * (_hasNativeMulFor): modified to allow port generation of integer
12398         multiplication,
12399         * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
12400         set regtype to REG_SFR for all registers, restricting seting the
12401         accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
12402
12403 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12404
12405         * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
12406         more than 500 times in the regression tests
12407
12408 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12409
12410         * support/Util/SDCCerr.h,
12411         * support/Util/SDCCerr.c,
12412         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
12413         enumerator_list),
12414         * src/SDCCsymt.c (addSymChain): show location of oriignal definition
12415         for symbol conflicts.
12416         * support/valdiags/tests/enum.c,
12417         * support/valdiags/tests/tentdecl.c,
12418         * support/valdiags/tests/struct.c: expect possible error messages
12419         referring to original symbol definitions.
12420         * src/SDCC.y (struct_or_union_specifier, struct_declarator),
12421         * src/SDCCsymt.h,
12422         * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
12423
12424 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
12425
12426         * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
12427
12428 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
12429
12430         * src/pic16/ralloc.c (newReg): fixed bug #908929
12431
12432 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12433
12434         * src/ds390/gen.c: added missing #include "main.h"
12435
12436 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
12437
12438         * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
12439         checking if symbol is already in set,
12440         * src/pic16/device.h: prototype for checkAddSym,
12441         * src/pic16/gen.c: (_G): added entry interruptvector,
12442         * (assignResultValue): removed some commented out lines,
12443         * (genFunction): check for ISR via sym->type, absolute section for
12444         interrupt code is created via a new pBlock, the goto instruction is
12445         placed now correctly at the interrupt vector position, changed all
12446         references from ivec to _G.interruptvector,
12447         * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
12448         is the interrupt is a high priority one, same for return from ISR,
12449         * src/pic16/glue.c: changed all calls of addSetHead for publics and
12450         externs to calls of checkAddSym,
12451         * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
12452         pic16_pcode_verbose flag is set,
12453         * src/pic16/pcode.h: extern to pic16_pcode_verbose,
12454         * src/pic16/pcoderegs.c: message about how many registers are saved
12455         will only be emitted if pic16_pcode_verbose flag is set,
12456
12457 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12458
12459         * src/ds390/ralloc.h,
12460         * src/ds390/ralloc.c (ds390_regWithIdx),
12461         * src/ds390/gen.c (emitcode),
12462         * src/ds390/main.h,
12463         * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
12464         ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
12465         ds390operandCompare, getRegsRead, getRegsWritten,
12466         initializeAsmLineNode): customized instruction size calculation for
12467         ds390, started basis for some register optimizations
12468         * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
12469         corresponding assembly output
12470         * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
12471         missing push/pop of r0/r1. Optimized push/pops
12472
12473 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12474
12475         * src/mcs51/main.c (instructionSize): fixed ACALL size
12476         * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
12477
12478 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
12479
12480         * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
12481         the sorting of rlist with NULL elements
12482         * (print_idataType, print_idata): NEW to create idata sections
12483         * src/pic16/device.h: idataSymSet new variable
12484         * src/pic16/gen.c (genFunction): fixed some bugs in string
12485         comparing, improved the absolute section creation for ISRs,
12486         added FSR0L/FSR0H in registers that are saved in an ISR,
12487         * (genInline): fixed the processing of inline snippets,
12488         now they undergo no process by the peephole optimizer
12489         * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
12490         are placed in idataSymSet,
12491         * (pic16emitStaticSeg): extern symbols are added in externs,
12492         * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
12493         switching when aboslute variables are placed in access bank memory
12494         * (pic16_writeUsedRegs): added call to pic16_dump_idata,
12495         * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
12496         commented out with #if,
12497         * (pic16_packRegisters): reintroduce the check for CAST because some
12498         symbols are not correctly handled,
12499         * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
12500         pCodeInstruction instead of pCode,
12501         * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
12502         pCodeAsmDir definition,
12503         * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
12504         directive, then the argument directive is emitted without the leading
12505         tab, hack for inline labels which must be in the first column,
12506         * (compareLabel,pic16_findNextInstruction),
12507         * (pic16_findPrevInstruction): added case for PO_ASMDIR,
12508         * (insertBankSwitch): modified for the new pCodeAsmDir,
12509
12510 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
12511         patch applied by Vangelis Rokas <vrokas AT otenet.gr>
12512
12513         * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
12514         instance,
12515         * (pushSide): commented out with #if,
12516         * (assignResultValue): fixed some typos in saving
12517         registers,
12518         * (genPcall): FIXED and sync'ed with genCall,
12519         * (genDataPointerGet,genDataPointerSet): using offset not leoffset
12520         * (genNearPointerGet): fixed to handle some more cases,
12521         implementation scheme via table reads,
12522         * (genConstPointerGet): modified to access code memory correct,
12523         * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
12524         and improved to handle some cases
12525         * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
12526         instead of "RETLW" for init data
12527         * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
12528         not IN_DIRSPACE, work around to reduce bank switching when aboslute
12529         variables are placed in access bank memory (<0x80 and >=0xf80),
12530         * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
12531         TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
12532         TBLWT_POSTDEC,TBLWT_PREINC
12533         * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
12534         * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
12535         directives
12536         * (pic16_pCodeConstString): use "DB" instead of "RETLW"
12537         * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
12538         pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
12539         * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
12540
12541 2004-02-29  Borut Razem <borut.razem AT siol.net>
12542
12543         * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
12544         support/Util/findme.h, support/Util/system.h: enhance binary relative
12545         search for lib and include by using findProgramPath()
12546
12547 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12548
12549         * src/SDCCpeeph.h,
12550         * src/SDCCpeeph.c (pcDistance),
12551         * src/port.h,
12552         * src/mcs51/ralloc.h,
12553         * src/mcs51/ralloc.c (mcs51_regWithIdx),
12554         * src/mcs51/main.h,
12555         * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
12556         mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
12557         mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
12558         size calculation port specific, started basis for some register
12559         optimizations
12560         * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
12561         missing push/pop of r0/r1. Optimized push/pops
12562         * src/mcs51/ralloc.c (packregisters): fixed bug #727095
12563         * device/lib/_modsint.c (_modsint),
12564         * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
12565         and stack version so regression tests pass
12566
12567 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
12568
12569         * src/Makefile.in (dep): include SLIBOBJS in dependency check
12570         * src/SDCCast.c (decorateType): catch another small optimization
12571         with '?' operator
12572         * src/SDCCsymt.c (computeType): added comments and cosmetic changes
12573         * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
12574         modified to finally use computeType() all over SDCC,
12575         see Feature Request #877103
12576         * src/SDCCval.h: cosmetic
12577         * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
12578         valCompare(); regression tested in muldiv.c
12579         * support/regression/tests/muldiv.c (testMod): mod sign follows
12580         dividend only
12581
12582 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
12583
12584         * src/SDCCast.c (decorateType): fixed bug #902362
12585         * doc/INSTALL.txt: fixed install instructions for win32
12586
12587 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
12588
12589         * device/include/Makefile.in (install): fixed by replacing spaces
12590         by tabs
12591         * doc/README.txt,
12592         * doc/INSTALL.txt: updated for release
12593         * doc/sdccman.lyx: added warning for --xstack being buggy
12594
12595 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
12596
12597         * src/pic16/ralloc.c (packRegsForAccUse):  disabled functions with #if
12598         to eliminate build warnings.
12599         * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
12600
12601 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
12602            Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
12603
12604         * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
12605         removed -penable-stack, added comment for stack pragma, added
12606         warning for not initializing the stack/frame registers, removed
12607         comment at interrupts section
12608
12609         Stack is made permanent, there is no ability to disable stack usage.
12610         * src/pic16/device.h,
12611         * src/pic16/device.c: removed all references to USE_STACK macro,
12612         * src/pic16/device.c (pic16_dump_section): when no elements in
12613         rlist, free rlist before return,
12614         * (pic16_dump_int_registers): NEW, internal registers are a new set
12615         of general purpose registers reused by each function,
12616         * (checkAddReg): returns 1 if registers is added to set,
12617         * (pic16_groupRegistersInSection): when a registers is of type
12618         PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
12619         * src/pic16/device.h: memRange and Assigned Memory are deleted,
12620         SRCASECMP macro is moved here from device.c
12621         * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
12622         PO_PCLATU, PO_PRODL, PO_PRODH,
12623         * (pic16_pCodeOpType, genMinus,
12624         changed compares to "a" register, with AOP_ACC,
12625         * (pic16_genPlus): fixed some bugs and indented properly,
12626         * (pic16_addSign): changed size to size+offset in the MOVWF
12627         instruction,
12628         * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
12629         multiply 8-bit operand by literal, result is 8-bit,
12630         * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
12631         multiply 2 8-bit operand, result is 8-bit,
12632         * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
12633         genUMult8X*_16,
12634         * src/pic16/gen.c: changed accUse to contain WREG only,
12635         * (pic16_emitcomment): renamed to pic16_emitpcomment,
12636         * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
12637         true, do not use immediate addressing any more unless sym is a
12638         pointer in codespace,
12639         * (aopForRemat): do not use immediate addressing when symbol not in
12640         codespace and when symbol's address is requested,
12641         * (aopOp): for-loop in if(sym->accUse) is modified for the new
12642         accUse size (= 1),
12643         * (aopGet): added case for AOP_ACC and don't return "accumulator
12644         bug" but WREG instead,
12645         * (popGetTempReg): pushes contents of temporary register in stack,
12646         * (popReleaseTempReg): pops contents of temporary register from
12647         stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
12648         * (pic16_popGet): separated case AOP_ACC to return register WREG
12649         from processor registers, AOP_PCODE not checks if pcop is PO_DIR
12650         or PO_IMMEDIATE and initializes their instance/offset appropriately,
12651         * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
12652         the use of immediate pointers to certain cases only.
12653
12654         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
12655         * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
12656         * (assignResultValue, genCall, genRet): modified to use the new
12657         function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
12658         genPcall is still broken,
12659         * (genFunction): added code to create 'A' type pBlocks when
12660         interrupt functions are generated, code not extensively tested yet,
12661         ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
12662         * (genEndFunction): modified so ISRs pop stored registers from stack,
12663         * (genMultOneByte): cleanup,
12664         * (AccRsh): added flag andmask, to and result with appropriate mask,
12665         * (genUnpackBits,genPackBits): fixed and can handle bit fields,
12666         * (genDataPointerGet): fixed and reenabled its use,
12667         * (genNearDataPointerGet): bugs fixed,
12668         * (genDataPointerSet): bugs fixed,
12669         * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
12670         pic16_DumpSymbol, pic16_DumpOp,
12671         * src/pic16/genutils.h: function prototypes for the above functions,
12672         * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
12673         pointers,
12674         * (pic16emitRegularMap): many many many improvements, but needs a
12675         major cleanup,
12676         * src/pic16/main.c: enable_stack in pic16_options is removed,
12677         * (_pic16_parseOptions): removed command line options -penable-stack,
12678         * (_process_pragma): emit stack symbol only when stack pragma is
12679         processed,
12680         * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
12681         redirected to FSR0L/FSR0H pair,
12682         * (pic16_get_op, pic16_get_op2): modifications and improvements,
12683         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
12684         cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
12685         for immediates,
12686         * (insertBankSwitch): modified to handle cases like: (alfa + 1)
12687         * (dumpPicOptype): NEW,
12688         * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
12689         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
12690         with movff instruction,
12691         * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
12692         added pic16_int_regs, some packRegsFor* functions are commented out,
12693         because produce errors,
12694         * src/pic16/NOTES: minor modifications
12695
12696 2004-02-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12697
12698         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
12699         as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
12700         --pack-iram.
12701         * doc/sdccman.lyx: described options --stack-size and --pack-iram.
12702         * as/mcs51/lkaomf51.c: fixed bug #895763
12703
12704 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
12705
12706         * device/include/c8051f320.h: added. Contributed by Maarten Brock.
12707
12708 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12709
12710         * doc/sdccman.lyx: added details about the HC08 storage classes and
12711         interrupts, fixed the register usage info for z80 & gbz80
12712
12713 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
12714
12715         * doc/sdccman.lyx: added more pic16 port documentation
12716         * device/include/pic16/: added header pic18fregs.h
12717
12718 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
12719
12720         * doc/sdccman.lyx: added Vangelis' contribution
12721
12722 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12723
12724         * src/SDCClrange.c (rlivePoint): live range of SEND operand should
12725         extend to the next CALL or PCALL, not just to the next CALL.
12726
12727 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
12728
12729         * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
12730
12731 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12732
12733         * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
12734         bug #895752 and a better fix for bug #716790
12735
12736 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12737
12738         * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
12739
12740 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12741
12742         * doc/sdccman.lyx: minor changes, minor changed
12743
12744 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
12745
12746         * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
12747         which can't handle SDCC_NEWONEBYTEOPS,
12748         (geniCodeMultiply): removed conversion from mult to shift for pic14
12749         and pic16
12750
12751 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12752
12753         * src/hc08/gen.h,
12754         * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
12755         rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
12756         thus fixing bug #895406
12757
12758 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
12759
12760         * device/lib/_modsint.c,
12761         * device/lib/_modslong.c: sign follows divisor only
12762         * src/hc08/gen.c (genMultOneByte): if result size is 1,
12763         signs or signedness can be ignored
12764         * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
12765         * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
12766         added optimization for IFX,
12767         (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
12768         arguments;
12769         reenabled optimization for IFX, which was removed on 2004-01-11
12770         * src/SDCCast.h: added return type IFX
12771         * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
12772         arguments with 8 or 16 bit results; pic14 and pic16 ports use old
12773         promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
12774         SDCC_OLDONEBYTEOPS selects the old behaviour
12775         * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
12776         changed again and commented promotion rule
12777         * src/SDCCval.c (valDiv): promotion no longer necessary
12778         * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
12779         * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
12780         rewritten
12781         * support/regression/tests/onebyte.c: added
12782
12783 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
12784
12785         * gen.c (genInline): reverted to old code for assemnling inline
12786         code because of bug reported James Chadd
12787
12788 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
12789
12790         * ralloc.h: missing declarations from previous patch,
12791         seems that patch for ralloc.h was never applied, fixed
12792
12793 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
12794            patch committed by Vangelis Rokas <vrokas AT otenet.gr>
12795
12796         * pcode.c,
12797         * pcode.h,
12798         * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
12799         indirect addressing. Marked FSR0 as deprecated
12800         * gen.c (pointerCode): commented out, not needed now
12801         (pic16_popGet2p): new MOVFF helper function
12802         (genGenPointerGet),
12803         (genGenPointerSet): reimplemented with MOVFF and POSTINC0
12804         (shiftRLong): removed duplicate debugging info
12805
12806 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12807
12808         * src/ds390/gen.c (genNearPointerGet),
12809         * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
12810         optimization with bits, but not bitfields.
12811         * src/ds390/ralloc.c (packRegisters),
12812         * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
12813
12814 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
12815
12816         * src/SDCCcse.c (algebraicOpts): copy operands before modification
12817
12818 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12819
12820         * src/SDCCsymt.h,
12821         * src/SDCCicode.c (operandFromSymbol),
12822         * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
12823         * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
12824         * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
12825         * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
12826         * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
12827         * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
12828         bug #892038
12829         * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
12830         * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
12831         printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
12832         * src/SDCCsymt.c (newSymbol),
12833         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
12834         enumerator_list),
12835         * src/SDCCval.h,
12836         * src/SDCCval.c (newiList): fixed bug #885705
12837
12838 2004-02-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12839
12840         * doc/sdccman.lyx: added section 3.1.4: sdcclib.
12841         * as/mcs51/lkmem.c: report the size of the stack in .mem file.
12842
12843 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12844
12845         * device/include/c8051f120.h,
12846         * device/include/c8051f300.h,
12847         * device/include/c8051f310.h: added/updated header files for Silicon
12848         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
12849         * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
12850         in new section Submitting patches
12851
12852 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12853
12854         * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
12855         genFarPointerGet, genCodePointerGet, genGenPointerGet,
12856         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
12857         genGenPointerSet),
12858         * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
12859         genFarPointerGet, genCodePointerGet, genGenPointerGet,
12860         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
12861         genGenPointerSet),
12862         * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
12863         genFarPointerGet, genCodePointerGet, genGenPointerGet,
12864         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
12865         genGenPointerSet),
12866         * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
12867         genFarPointerGet, genCodePointerGet, genGenPointerGet,
12868         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
12869         genGenPointerSet): fixed bug #892400
12870         * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
12871         to eliminate build warnings.
12872         * src/SDCCast.c (processParms),
12873         * src/SDCC.y (function_declarator2, declarator2_function_attributes):
12874         fixed bug 751859
12875         * support/valdiag/valdiag.py: added GCC to the list of defines active
12876         when compiling with gcc
12877
12878 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12879
12880         * support/Util/SDCCerr.h,
12881         * support/Util/SDCCerr.c,
12882         * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
12883         with an incomplete type (fixed bug #883734)
12884         * src/SDCCicode.c (geniCodeCast): fixed bug #890510
12885
12886 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12887
12888         * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
12889
12890 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12891
12892         * src/SDCCast.c (decorateType),
12893         * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
12894         function pointer implementation
12895         * support/regression/tests/funptrs.c: added tests to verify both forms
12896         of function pointers work correctly. Added tests to verify parameters
12897         are passed in the correct order.
12898
12899 2004-02-06  Vangelis Rokas <vrokas AT otenet.gr>
12900
12901         * device.c (regCompare): registers are sorted by ascending
12902         address and increasing size,
12903         * main.c (_pic16_finaliseOptions): removed the declaration
12904         of compiler macro MCU. Now a macro of the format pic18fxxxx
12905         will be defined from the command line
12906
12907 2004-02-06  Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
12908             patch committed by Vangelis Rokas <vrokas AT otenet.gr>
12909
12910         * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
12911         PCOP_RLCF was overwritten!
12912         * gen.c (genSkip): commented out calls to pic16_emitcode,
12913         * (genCmpEQ): fixed "long" compares, only high word did get compared,
12914         * (genlshTwo),
12915         * (genRRC): added debugging info,
12916         * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
12917         overwritten while shifting,
12918         * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
12919         overwritten while shifting,
12920         * (AccLsh),
12921         * (AccRsh),
12922         * (shiftLLeftOrResult),
12923         * (shiftRLeftOrResult),
12924         * (shiftRLong),
12925         * (shiftLLong): Implemented with pic16_emitpcode
12926         * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
12927         * (genLeftShift): Fixed bug, operand for shift by variable always
12928         was "and"ed with 0x0f,
12929         * (genLeftShiftLiteral),
12930         * (genrshTwo),
12931         * (genRightShiftLiteral): added debugging info,
12932         * (genrshFour): added comment,
12933         * (genRightShift): determined signedness from operand "left"
12934         instead of "result"
12935
12936 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12937
12938         * src/SDCCicode.c (geniCodeParms),
12939         * src/SDCCast.c (decorateType, processParms): support for ANSI-style
12940         function pointers, fixed function pointer bugs #861242 and #861896
12941
12942 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12943
12944         * device/include/c8051f000.h,
12945         * device/include/c8051f120.h,
12946         * device/include/c8051f300.h: added header files for Silicon
12947         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
12948
12949 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
12950
12951         * src/SDCCast.c (processParams): added new type flow and restructured
12952         (gatherAutoInit): added new type flow
12953         (addCast): cosmetic changes
12954         (getLeftResultType): added new type flow for array indices, patch
12955         provided by Stas, see FR #877103
12956         (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
12957         array index patch by Stas
12958         * src/SDCCast.h: added prototype getResultTypeFromType()
12959         * src/SDCCval.h,
12960         * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
12961         * src/pic/glue.c (pic14emitStaticSeg),
12962         * src/pic16/glue.c (pic16emitStaticSeg),
12963         * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
12964         for initialization of symbols
12965         * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
12966         * support/Util/SDCCerr.h:
12967         * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
12968         * .version: bumped version number to 2.3.8
12969         * device/include/Makefile.in (install),
12970         * doc/Makefile (install): changed to 'rm `find ...`' construct to
12971         avoid warnings
12972
12973 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
12974
12975         * support/regression/tests/libmullong.c: fixed for 64 bit hosts
12976         Slade Rich fixed an optimization bug
12977         * src/pic/pcodepeep.c,
12978         * src/pic/pcoderegs.c
12979         * doc/Makefile (install): added test for directory
12980
12981 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12982
12983         * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
12984         * src/ds390/ralloc.c (getRegPtr, getRegGpr),
12985         * src/pic/ralloc.c (getRegPtr, getRegGpr),
12986         * src/pic16/ralloc.c (getRegPtr, getRegGpr),
12987         * src/z80/ralloc.c (getRegGpr): fixed bug #883361
12988         * as/mcs51/asexpr.c (term),
12989         * as/hc08/asexpr.c (term): fixed bug #887146
12990
12991 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12992
12993         * src/z80/gen.c (genMult): handle single byte result product
12994         * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
12995         DUMMY_READ_VOLATILE (fixed bug #886367)
12996
12997 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
12998
12999         * support/regression/tests/libmullong.c: fixed logic, on little endian
13000         hosts we ended without a mullong_wrapper()
13001
13002 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13003
13004         * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
13005         virus/worm forged address usage.
13006
13007 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
13008
13009         Fixed promotion, it should be done on AST level:
13010         * src/SDCCast.c (addCast): added promotion to int
13011         (decorateType): updated call to upCast()
13012         * src/SDCCicode.c (geniCodeLeftShift): removed call to
13013         usualUnaryConversions()
13014
13015 2004-01-26  Michael Hope  <michaelh AT juju.net.nz>
13016
13017         * support/regression/tests/literalop.c (mulWrapper): Added a
13018         wrapper to remove integer overflow warnings.
13019
13020         * support/regression/tests/float_trans.c: Made work on host.
13021
13022         * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
13023         location of sz80.
13024
13025         * support/regression/generate-cases.py (main): Changed from inline
13026         to a main method.
13027
13028         * doc/Makefile (install): Changed to depth first to get rid of
13029         missing directory install warning.
13030
13031         * as/Makefile (install-doc): Made work on Mac.
13032
13033 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
13034
13035         * src/SDCCast.c: added an additional type flow in decorateType() of
13036         opposite direction, see feature request #860006; it's enabled at runtime
13037         by setting the environment variable SDCC_NEWTYPEFLOW
13038         * src/SDCCast.h: changed prototype of decorateType()
13039         * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
13040         * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
13041         'char' to 'int' can be omitted, if both operands are 'unsigned char';
13042         see feature request #877103
13043         * src/SDCCval.c: updated call of decorateType()
13044         (valBitwise): fixed bug #882876
13045         (valMinus): added promotion
13046         (valLogicAndOr): result is unsigned
13047         (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
13048         * src/SDCCsymt.c (computeType),
13049         * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
13050         must not cause an unsigned operation
13051         * src/pic/glue (pic14emitRegularMap),
13052         * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
13053
13054 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
13055
13056         * src/pic/pcode.c (PCodeID): commented out left over debug code
13057
13058 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
13059
13060         * support/valdiag/tests/overflow.c: added shift tests
13061         * src/pic/device.c,
13062         * src/pic/gen.c,
13063         * src/pic/gen.h,
13064         * src/pic/glue.c,
13065         * src/pic/main.c,
13066         * src/pic/pcode.c,
13067         * src/pic/pcode.h,
13068         * src/pic/pcodepeep.c,
13069         * src/pic/pcoderegs.c,
13070         * src/pic/ralloc.c,
13071         * src/pic/ralloc.h: applied patch from Slade Rich;
13072         added support for multiple code pages and multiple RAM banks on the
13073         PIC 14 port. The ASM files now no longer simply assume all the
13074         code / RAM are in the same page / bank. This means the linker can
13075         safely allocate code/RAM of separate ASM files to different pages/banks.
13076         * doc/sdccman.lyx: added Slade's tips
13077         * src/mcs51/peeph.def: fixed bug #880768
13078
13079 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13080
13081         * src/hc08/ralloc.c (rematStr): fixed bug #879282
13082         * src/SDCCast.c (decorateType): fixed bug #880197
13083
13084 2004-01-20  Michael Hope  <michaelh AT juju.net.nz>
13085
13086         * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
13087         getopt.h.
13088
13089         * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
13090         strtof is not part of C89 and isn't included with Mac OS X.
13091
13092 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13093
13094         * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
13095         shiftL2Left2Result): fixed bug #879326
13096         (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
13097         (genMultOneByte): fixed bug in signed vs unsigned multiplication
13098         * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
13099         address fetch for clr instruction
13100         * device/lib/hc08/_mulint.c: created optimized assembly version
13101         * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
13102
13103 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
13104
13105         * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
13106         proposed in FR #877103
13107
13108 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
13109
13110         * src/SDCCval.c (cheapestVal): added missing checks
13111         * src/SDCCicode.c (usualBinaryConversions): fixed condition
13112         * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
13113
13114 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
13115
13116         * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
13117         equal operands
13118
13119 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
13120
13121         * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
13122         loaded with the linker search paths (-L arguments) and the libraries
13123         to be linked with the current source (-l arguments). Changes
13124         currently will affect only the pic16 port.
13125         * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
13126         include path the port specific paths and port specific libraries,
13127         * gplink command now contains the $3 argument,
13128         * src/pic16/device.h,
13129         * src/pic16/device.c,: structure PIC_device is made public and
13130         renamed to PIC16_device, the same for variable Pics which is renamed
13131         to Pics16. Updated all references to them.
13132         * src/pic16/glue.c (pic16glue): corrected bug with code
13133         initialization which bypassed the variable initializations block.
13134
13135         * device/lib/pic16/Makefile.rules: removed --penable-stack from
13136         COMPILE_FLAGS and added the --nostdinc option
13137
13138 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13139
13140         * device/include/mc68hc908jb8.h: Register defs for another member
13141         of the hc08 family. Contributed by Bjorn Bringert - thanks!
13142
13143 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
13144
13145         Documenting changes from previous commits.
13146         * configure.in (version 1.56),
13147         * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
13148         when generating output files to configure the pic16 library,
13149         but now I've commented it out, since gputils aren't installed in the
13150         SF compile farm, so library won't compile
13151
13152         * device/lib/Makefile.in (version 1.56): initially I've added in
13153         target 'all' the prerequestive 'model-pic16' so it compiled the
13154         pic16 library, but now I've commented it out for the same reasons
13155         above,
13156         * added targets 'model-pic16' and 'objects-pic16' to compile the
13157         library
13158         * added target 'port-specific-objects-pic16' to handle the
13159         generated libraries and copy them into the build/ directory
13160         * added target 'clean-intermediate-pic16' to clean intermediate
13161         files into pic16 directory
13162         * in target 'installdirs' added line to create directory pic16 in
13163         the installation path
13164
13165         * device/include/Makefile.in (version 1.11): in target 'install'
13166         added lines to copy all header files to installation path,
13167         * in target 'installdirs' added line create directory for pic16
13168         headers in the installation path
13169
13170 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
13171
13172         * src/ds390/gen.c (genCall): fixed a double use of acc and b after
13173          a function call
13174
13175 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
13176
13177         * configure,
13178         * device/lib/configure.in,
13179         * device/lib/configure: fixed for autoconf 2.57
13180
13181 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13182
13183         * src/z80/main.c (_parseOptions): fixed the portmode= command line
13184         option so that it actually works. Made it specific to the z80, since
13185         the gbz80 doesn't have these kinds of I/O ports.
13186
13187 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13188
13189         * device/include/z180.h,
13190         * device/lib/_memcpy.c,
13191         * device/lib/_memmove.c,
13192         * device/lib/_mulint.c,
13193         * device/lib/ser_ir.c,
13194         * device/lib/ser_ir_cts_rts.c,
13195         * device/lib/_strcmp.c,
13196         * device/lib/_strtok.c: fixed pragmas to non-deprecated form
13197         * src/z80/main.c (_process_pragma): add support for pragmas bank and
13198         portmode; added deprecation warning for bank= and protmode= forms.
13199         Also, guard against buffer overflow.
13200         * src/z80/gen.c (aopGet): generate better code for sfr banked read
13201
13202 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13203
13204         * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
13205         changed interrupt vector table generation to only emit declared vectors.
13206         * device/include/Makefile.in: added missing backslash
13207         * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
13208
13209 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
13210
13211         Mainly changes to support compilation of the device libraries
13212         * src/pic16/device.c: stack is allocated via symbol and not
13213         via literal number. The symbol is placed in the corresponding
13214         position of the data ram
13215         * (pic16_dump_section): relocatable and absolute uninitialized
13216         data are now emitted in sorted order to reduce section naming,
13217         * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
13218         weren't marked as being in the access bank,
13219
13220 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
13221
13222         Added portion of GNU PIC Library under the directory
13223         device/include/pic16 and device/lib/pic16. These files
13224         contain the declarations of SFRs for the PIC18Fxx2 devices.
13225         The directory is initialized via configure from toplevel.
13226
13227 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
13228
13229         * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
13230         the spilllocations to be compared correctly
13231
13232 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
13233
13234         * src/SDCCast.c (decorateType): fixed bug introduced today
13235
13236 2004-01-12  Borut Razem <borut.razem AT siol.net>
13237
13238         * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
13239         doc/sdccman.lyx: upper case pragmas are deprecated
13240
13241 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
13242
13243         * src/SDCCast.c (decorateType): replacing 'ul > 0' by  '!ul' results
13244         in simpler and even better code
13245
13246 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
13247
13248         * src/SDCCicode.c (operandOperation): fixed bug #874819
13249         * src/SDCCast.c (decorateType): fixed
13250         char foo (unsigned long ul) { return ul > 0; }
13251
13252 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13253
13254         * doc/sdccman.lyx: Moved and added some sections, small changes
13255         all over. Telling LaTeX to be less strict with word spacing
13256         to better keep the right margin. Changed some notes about
13257         maintainance of the ports in section 3.2.1 - is it OK like this?
13258
13259 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
13260
13261         SDCC source changes:
13262         * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
13263         convilong): modified to inform the pic16 port that builtin functions
13264         are external
13265
13266         PIC16 PORT specific changes:
13267         * src/pic16/device.c pic16_dump_equates() added,
13268         processor registers declared internally by the port are emitted in
13269         the translation as equates,
13270         * src/pic16/gen.c: inline code is passed unprocessed to the
13271         translation,
13272         * (pic16_popGetLit2): fnuction modified to take second operand as
13273         pCodeOp pointer and not as literal,
13274         * (popRegFromIdx): prefixed with pic16_,
13275         * (pic16_popCombine2): modified to receive already allocated pCode
13276         operands,
13277         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
13278         * (genFunction): initializes local stack frame and pushes on stack
13279         all the registers used by this function,
13280         * (genEndFunction): restores all registers from stack and restores
13281         stack frame,
13282         * src/pic16/glue.c (pic16emitRegularMap): various changes and
13283         improvements,
13284         * (pic16glue): changed the program startup sequence,
13285         * added new dbName code 'A' for functions placed in absolute section
13286         * src/pic16/main.c: added function attribute _naked,
13287         * added pragma 'code' to place a fnuction at an absolute address,
13288         * added command line arguments --debug-ralloc and --pcode-verbose,
13289         * (_pic16_finiliseOptions): options.all_callee_saves is set by default
13290         * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
13291         * (pic16_newpCodeOpLit2): modified to take the second operand as
13292         pCodeOp pointer,
13293         * (pic16_printpBlock): modified to emit each function in a separate
13294         section,
13295         * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
13296         UPPER for immediate operands,
13297         * src/pic16/pcodepeeph.c: added peephole support for the LFSR
13298         instruction,
13299         * src/pic16/peeph.def: all peepholes with movff are commented out,
13300         because there is a problem in the pcode peep optimizer,
13301         * src/pic16/ralloc.c: the register allocator can now reuse local
13302         function symbols for another function. This saves register usage.
13303         * src/pic16/ralloc.h: added flag isLocal in structure regs,
13304
13305         Added file src/pic16/NOTES with information about program writing on
13306         the current port version.
13307
13308 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13309
13310         * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
13311         and peephole 252 (array access)
13312
13313 2004-01-09  Borut Razem <borut.razem AT siol.net>
13314
13315         * src/SDCCmain.c : fixed #872250: -l command line defined library
13316           files are scanned before standard library files
13317
13318 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13319
13320         * src/SDCCast.c (decorateType): fixed bug #874046
13321
13322 2004-01-09  Borut Razem <borut.razem AT siol.net>
13323
13324         * support/scripts/sdcc.nsi: remove previous installation
13325
13326 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13327
13328         * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
13329         bytes for last interrupt vector (mcs51)
13330         * sdcc.spec: fixed typo
13331
13332 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13333
13334         * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
13335         gen51Code): more efficient parameter receive for --model-large
13336         ("bug" #845294)
13337
13338 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13339
13340         * src/ds390/main.c,
13341         * src/z80/main.c: added missed needLinkerScript flags (more than
13342         one port structure defined in these file)
13343         * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
13344         bug #795325
13345
13346 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
13347
13348         * src/SDCCmain.c: removed various references to DEFAULT_PORT
13349         * src/port.h: added flag needLinkerScript in port->linker
13350         structure to inform whether to create a .lnk file or not,
13351         * src/avr/main.c,
13352         * src/ds390/main.c,
13353         * src/hc08/main.c,
13354         * src/mcs51/main.c,
13355         * src/pic/main.c,
13356         * src/pic16/main.c,
13357         * src/xa51/main.c,
13358         * src/z80/main.c: changed appropriately to configure
13359         needLinkerScript flag
13360         * src/pic/gen.c,
13361         * src/pic16/gen.c (genAddrOf): fixed bug #863624
13362         * src/pic/glue.c: added variable udata_section_name to
13363         override default uninitialized data segment definition for
13364         devices only with SHAREBANK memory (reported from Erik Epetrich)
13365         * (pic14emitOverlay): modified to emit a commented overlay segment
13366         directive when no overlay data exist
13367         * (picglue): modified to emit uninitialized data segment
13368         according to udata_section_name
13369         * src/pic/main.c (_pic14_parseOptions): added command line
13370         options --udata-section-name=[name] to override default
13371         udata definition name
13372         * modified _linkCmd and _asmCmd to include compiler passed
13373         arguments via -W option
13374         * src/pic16/main.c: added $l in _asmCmd, changed extension for
13375         object file from '.rel' to '.o' in port->linker structure,
13376         changed size of fptr from 2 to 3 in port structure
13377
13378 2004-01-07  Borut Razem <borut.razem AT siol.net>
13379
13380         * support/scripts/sdcc.nsi: update PATH
13381         * support/scripts/sdcc.ico: craeted
13382
13383 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
13384
13385         * device/include/Makefile.in: fix install
13386         * doc/Makefile: fix install
13387
13388 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13389
13390         * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
13391         in bug #860505
13392         * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
13393         how the function variable allocation summary is displayed; also
13394         include information about variables allocated to the overlay
13395         segment
13396
13397 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13398
13399         * as/mcs51/lkmain.c: Help about -Y option
13400         * as/mcs51/lkarea.c: Fixed gcc warnings
13401
13402 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
13403
13404         * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
13405         fixed warning
13406         * support/valdiag/tests/overflow.c: added
13407         * src/SDCCast.c (decorateType),
13408         * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
13409         LEFT_OP (left shift)
13410
13411 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13412
13413         * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
13414         (default behaviour).
13415
13416 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13417
13418         A python script to validate compiler diagnostic messages. It can be
13419         used to verify that sdcc complains about bad c source code and
13420         gives a good location of the error.
13421         * support/valdiag/Makefile,
13422         * support/valdiag/valdiag.py,
13423         * support/valdiag/tests/*
13424
13425 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13426
13427         * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
13428         * src/SDCCsymt.c (newEnumType),
13429         * src/SDCCsymt.h
13430         * support/Util/SDCCerr.c,
13431         * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
13432         enum related bugs.
13433         * support/regression/tests/enum.c: added test for enum values that
13434         require at least 2 bytes of storage.
13435
13436 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
13437
13438         * src/common.h: added ifndef/define/endif macros
13439         around the header file.
13440         Bug reported from Jesus Calvino-Fraga
13441
13442 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
13443
13444         * sdcc.spec: updated
13445         * device/include/Makefile.in: don't install CVS directories
13446         * device/lib/Makefile.in: added removal of CVS directories after install
13447         * doc/Makefile: fixed install, added local_icons
13448         * sim/ucsim/gui.src/Makefile.in: fixed an old typo
13449         * src/mcs51/gen.c (genRightShift): fixed bug #870788
13450         * src/ds390/gen.c (genRightShift): fixed bug #870788
13451         * src/SDCCast.c (decorateType): fixed bug #870781
13452
13453 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
13454
13455         PIC16 port related changes:
13456         * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
13457         added variable stackPos,
13458
13459         * gen.c: genCall, assignResultValue: added support for
13460         pushing/retrieving function parameters to/from stack,
13461         genFunction,genEndFunction: setup stack frame for the
13462         generated function,
13463         genAddrOf: will be changed according to bug 863624
13464
13465         * added files genutils.c and genutils.h which contain gen*
13466         debugged and optimised functions extracted from gen.c
13467
13468         * glue.c: added variable 'externs' which holds extern symbols,
13469         pic16emitRegularMap: is modified to properly handle relocatable
13470          symbols under the new scheme,
13471         pic16createInterruptVect: is modified
13472         pic16printPublics: is modified to emit 'global' assembler directives,
13473         added pic16_printExterns to print extern symbols,
13474         pic16glue: initializes stack/frame pointer in the beginning of
13475         the assembly output. Temporary hack, will be corrected later,
13476         because gplink yet does not support stack and SDCC does not
13477         yet support a type of crt0.o object to create the final binary.
13478
13479         * Removed many lines that contain 8051 legacy code.
13480         * The code is finally placed under a 'code' directive.
13481         * Added port specific options.
13482
13483         * _process_pragma: simplified since now we do not need *special*
13484         include file to define SFR registers. But a separate header
13485         will be needed. This will be developed later.
13486         * _pic16_parseOptions: added, parses port specific options:
13487         --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
13488         --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
13489         --preplace-udata-with=
13490
13491         * _pic16_setDefaultOptions: modified to initialize section names,
13492         but hack is temporarly out of order since it needs improvement.
13493         * _pic16_genAssemblerPreamble: configuration words are emitted by
13494         their address instead of their name. This part is incomplete and
13495         supports only the 18Fxx2 devices. Other devices will emit an error
13496         during assembly since they do not contain the same set of config
13497         registers
13498         * _pic16_genIVT: is modified,
13499
13500         * pcode.c: added definitions for some hardware registers that are needed
13501         for stack support
13502         * added flag is2LitOp and variable pci_magic in pCodeInstruction.
13503         All PCI entries are updated. Now LFSR is supported.
13504         * Removed pic16_pciTRIS is mentioned by mdubuc in source
13505         * added pic16_newpCodeOpLit2 to support instructions with
13506         two literal arguments
13507         * pic16_pCode2str: corrected code that emits assembler instructions
13508         with two literal operands and those that have an access bit modifier
13509         * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
13510         this fixes a bug which caused some labels to be lost, when an
13511         assembler directive was added, i.e. banksel,
13512         * pic16_FixRegisterBanking: improved logic that causes the insertion
13513         of bank switching,
13514         * InlineFunction: functions that are called once, are not any more
13515         inlined. This can be a port option in the future,
13516
13517         * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
13518
13519         * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
13520         hold the corresponding uninitialized symbols,
13521         * pic16_allocProcessorRegister: registers have explicit marked the
13522         accessBank field,
13523         * pic16_allocInternalRegister: registers are explicit marked as
13524         not used,
13525         * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
13526         processing list, so bit registers were lost,
13527         *
13528
13529         * ralloc.h: added field 'accessBank' and original symbol operand
13530         in register definition,
13531         * removed the field isMapped from register definition,
13532
13533         ** Several functions have been removed from various sources:
13534         BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
13535         pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
13536         isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
13537         pic16_assignRelocatableRegisters
13538
13539         ** others have been introduced:
13540         pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
13541         pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
13542
13543 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
13544
13545         * support/scripts/inc2h.pl: changed definition of BIT_AT
13546         to emit 'sbit at' instead of 'bit at'. This was a request.
13547
13548         PIC16 port related preliminary changes:
13549         * gen.c: prefixed function popRegFromString with
13550         pic16_ and all references to it corrected
13551         * pcode.c: all pic16_pc_* hardware registers prefixed
13552         with underscore (_),
13553         pic16_popCopyGPR2Bit(): function sets register wasUsed=1
13554         * ralloc.c: newReg(): when register is REG_SFR then
13555         set address to rIdx,
13556         pic16_allocProcessorRegister(): marks register wasUsed=0
13557         pic16_writeUsedRegs(): added a call to assign processor
13558         registers via pic16_assignFixedRegisters
13559
13560 2004-01-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13561
13562         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
13563         as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
13564         variables in unused register banks.  Also the SSEG is placed
13565         wherever there is enough space for it, and IDATA can be anywhere
13566         in internal RAM.  For now compile using -Wl-Y[stack_size].
13567         The mem file is different for this option as well, since it
13568         makes no sense of talking about DSEG lenght.
13569
13570 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
13571
13572         * src/SDCClrange.c: fixed bug 869095 that caused segfault
13573         in certain cases, e.g. when ROM assignment, patch provided
13574         from Albert den Haan.
13575
13576 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
13577
13578         Many signedness and type propagation fixes:
13579         * src/SDCCicode.c: made geniCodeCast() static
13580         replaced SPEC_ by IS_ (cosmetic)
13581         (operandOperation): fixed div and mod operation
13582         (usualBinaryConversions): added support for promotion of char
13583         (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
13584         (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
13585         (geniCodeAdd): an array index will stay unsigned, even if promoted
13586         from char to int
13587         (geniCodeArray): ditto
13588         * src/SDCCicode.h: made geniCodeCast() static: removed prototype
13589         * src/SDCCsymt.c (computeType): added more support for char;
13590         promotion of char is selectable by promoteCharToInt, fixed signedness
13591         for all cases
13592         (powof2): replaced (unsigned long) by (TYPE_UDWORD)
13593         * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
13594         * src/SDCCval (val*): replaced signedness calculation by
13595         computeType()
13596         rearranged if-branches (cosmetic)
13597         (valShift): added warning W_SHIFT_CHANGED
13598         (valCompare): fixed problem with different types
13599         * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
13600         * support/regression/tests/literalop.c: added many cases
13601         * support/regression/tests/ast_constant_folding.c: changed finally to
13602         'unsigned int'
13603         * .version: new year, new version: 2.3.7
13604         * src/SDCCmain.c (main): applied patch #866468
13605         * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
13606         provided by Scott Bronson
13607         * doc/sdccman.lyx: updated documentation for sdcdb
13608         updated and added chapter tips
13609
13610 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13611
13612         * src/SDCCsymt.h: missing from yesterday's commits
13613
13614 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13615
13616         * src/SDCC.y (struct_or_union_specifier),
13617         * support/Util/SDCCerr.c,
13618         * support/Util/SDCCerr.h: verify that struct & union tags are used
13619         as declared.
13620
13621 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13622
13623         * src/SDCCglobl.h: missing from yesterday's commits
13624
13625 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13626
13627         * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
13628         sft_attributes, struct_declaration, parameter_declaration,
13629         type_name, start_block, declaration_list),
13630         * src/SDCC.lex (check_type): support redefinition of typedef names
13631
13632 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13633
13634         * src/mcs51/gen.c (genPlus): added special handling for 256 byte
13635         aligned xdata arrays. Erik helped me with the if clause.
13636
13637 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13638
13639         * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
13640         warning
13641
13642 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13643
13644         * src/SDCCast.h,
13645         * src/SDCCast.c (newAst_),
13646         * src/SDCCicode.h,
13647         * src/SDCCicode.c (ast2iCode, newiCode),
13648         * src/SDCCglobl.h,
13649         * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
13650         expr, statement, expression_statement, selection_statement,
13651         iteration_statement, expr_opt, jump_statement): foundation for tracking
13652         sequence points
13653         * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
13654         point code too)
13655
13656 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13657
13658         * support/Util/SDCCerr.c,
13659         * src/SDCCast.h,
13660         * src/SDCCast.c (createCase, createDefault, decorateType),
13661         * src/SDCClabel.c (labelUnreach),
13662         * src/SDCC.y (labeled_statement, jump_statement): More improvements
13663         to error messages.
13664         * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
13665         (with thanks to Stas Sergeev)
13666         * device/include/time.h,
13667         * device/lib/time.c (CheckTime): suppress unreachable code warning
13668
13669 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13670
13671         * src/SDCCast.c (createIvalCharPtr),
13672         * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
13673         bug #753752)
13674         * support/regression/tests/nullstring.c: tests for these two bugs
13675
13676 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13677
13678         * support/Util/SDCCerr.h,
13679         * support/Util/SDCCerr.c (E_NOT_ALLOWED),
13680         * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
13681         about storage class and 'at' used inside struct or union
13682         * src/SDCCBBlock.c (iCodeFromeBBlock),
13683         * src/SDCCcse.c (ifxOptimize),
13684         * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
13685         printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
13686         printIval, emitStaticSeg, emitOverlay),
13687         * src/SDCClabel.c (deleteIfx),
13688         * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
13689         * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
13690         gatherAutoInit, processParms),
13691         * support/Util/SDCCerr.h,
13692         * support/Util/SDCCerr.c (werrorfl): Support for better error location
13693         reporting for post-parse errors.
13694
13695 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13696
13697         * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
13698         implicit casts via union; they don't work on big endian systems
13699         (possible fix for bug #861138)
13700
13701 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13702
13703         (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
13704         * src/mcs51/main.c: fixed the fix for bug #737001
13705
13706 2003-12-15  Borut Razem <borut.razem AT siol.net>
13707
13708         * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
13709
13710 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13711
13712         * support/makebin/makebin.c: put output in binary mode
13713
13714 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13715
13716         * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
13717         xdata and data memory on startup. Set the environment variable
13718         SDCC_NOGENRAMCLEAR to disable this.
13719         * src/mcs51/peephole.def,
13720         * src/ds390/peephole.def: using the atomic test and clear instruction jbc
13721         (allows non-interrupt and interrupt code to safely compete for a resource
13722         without the non-interrupt code having to disable interrupts)
13723
13724 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13725
13726         * src/SDCCicode.c (geniCodeAdd),
13727         * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
13728         with valFromType if type might be a pointer and host is big endian).
13729         * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
13730         types, not just integer types.
13731         * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
13732         multiply defined with mismatching "at" address.
13733
13734 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13735
13736         * src/ds390/main.c (PORT tininative_port): fixed bug #858416
13737         * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
13738         * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
13739         with embedded nulls (fixed bug #753752)
13740
13741 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13742
13743         * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
13744         Apparently this did not see much testing (endless loop)
13745
13746 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13747
13748         * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
13749
13750 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13751
13752         * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
13753         gracefully handle NULL memmap pointers
13754
13755 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13756
13757         * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
13758         instead of deleting the iCode when an operand is volatile
13759         * src/z80/gen.c (genDummyRead),
13760         * src/mcs51/gen.c (genDummyRead),
13761         * src/ds390/gen.c (genDummyRead),
13762         * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
13763         not just IC_RIGHT
13764         * src/SDCCicode.c (geniCodeCall): fixed bug #851607
13765         * src/SDCC.y: fixed bug #850420
13766
13767 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13768
13769         Applied z80 i/o port patch from Peter Townson and fixed some operators
13770         to better handle operands in A register.
13771         * device/include/z180.h
13772         * src/SDCC.y
13773         * src/SDCCglue.c
13774         * src/z80/gen.c
13775         * src/z80/gen.h
13776         * src/z80/main.c
13777         * src/z80/peeph-z80.def
13778         * src/z80/peeph.def
13779         * src/z80/z80.h
13780
13781 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13782
13783         * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
13784
13785 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13786
13787         * device/lib/hc08/_mullong.c: Removed extra #endif
13788
13789 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13790
13791         * sim/ucsim/hc08.src/inst.cc,
13792         * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
13793         carries from x to h
13794         * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
13795         * src/hc08/gen.c (XAccRsh): fixed problem with right shift
13796         * device/include/stdarg.h: fixed varargs for hc08
13797         * device/lib/Makefile.in,
13798         * device/lib/hc08/Makefile,
13799         * device/lib/hc08/_mulint.c,
13800         * device/lib/hc08/_mullong.c: fixed some endian problems
13801
13802 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13803
13804         * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
13805         * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
13806         * device/lib/_gptrget.c,
13807         * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
13808
13809 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13810
13811         * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
13812         * src/SDCCast.c (astErrors): fixed bug #846007
13813         * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
13814
13815 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13816
13817         * src/SDCCast.c (decorateType): disabled a transformation I added in
13818         revision 1.188 (access to fields of a structure at an absolute address);
13819         it breaks with bitfields, extern declarations, and gcse analysis.
13820         * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
13821         could be assigned through a pointer, so don't complain.
13822         * src/SDCCast.c (astErrors),
13823         * src/SDCCast.h,
13824         * src/SDCCglue.c (emitRegularMap): fixed bug #847813
13825
13826 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
13827
13828         * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
13829         * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
13830         output of __config directives, since gpasm now supports them
13831         * src/pic16/main.c (_pic16_finaliseOptions): define MCU
13832         pre-processor macro, i.e. -DMCU=p18f452
13833         * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
13834         and modified to handle 'cast' icode similarly to '=' icode
13835         * src/pic16/device.h (typedef struct PIC_device): added field
13836         'extMIface' to indicate that chip has external memory interface
13837         * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
13838         18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
13839         18F8720
13840
13841 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13842
13843         * src/SDCC.y (pointer): fixed bug #846006
13844         * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
13845         * src/SDCCast.c (decorateType): fixed bug #846009
13846         * src/ds390/peeph.def,
13847         * src/ds390/gen.c (genAnd, genOr),
13848         * src/mcs51/peeph.def,
13849         * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
13850
13851 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13852
13853         Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
13854         * src/SDCCdflow.c
13855         * src/SDCCcse.c
13856         * src/SDCCcse.h
13857         * src/SDCCBBlock.h
13858         * src/SDCCBBlock.c
13859
13860 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
13861
13862         fixed bug #845089
13863         * src/SDCCbitv.h,
13864         * src/SDCCbitv.c: added function to free a bitvector
13865         * src/SDCClrange.h,
13866         * src/SDCClrange.c: added function to recompute the liveranges
13867         * src/avr/ralloc.c,
13868         * src/ds390/ralloc.c,
13869         * src/hc08/ralloc.c,
13870         * src/mcs51/ralloc.c,
13871         * src/pic/ralloc.c,
13872         * src/pic16/ralloc.c,
13873         * src/xa51/ralloc.c,
13874         * src/z80/ralloc.c: recompute the liveranges after register packing
13875
13876 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
13877
13878         * src/SDCCloop.c (newInduction): fixed bug #845630
13879
13880 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13881
13882         * src/SDCCsymt.c (compareTypesExact): disabled debugging output
13883         inadvertantly left behind from my 2003-11-12 change
13884
13885 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13886
13887         Updated headers I neglected to commit yesterday.
13888         * src/SDCClrange.h,
13889         * src/SDCCicode.h
13890
13891 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13892
13893         * src/SDCCcse.c (algebraicOpts): fixed bug #773153
13894         * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
13895         * src/SDCCopt.c (eBBlockFromiCode),
13896         * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
13897         the creation of the key hash table from the sequencing so it can be used
13898         earlier (for some GCSE bug fixes still pending)
13899
13900 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13901
13902         * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
13903         * support/regression/tests/addsub.c: testing genPlus shortcut
13904
13905 2003-11-15  Borut Razem <borut.razem AT siol.net>
13906
13907         * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
13908
13909 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13910
13911         * src/SDCCcse.c (cseBBlock): fixed bug #527779
13912         * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
13913         ordering is immaterial.
13914         * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
13915
13916 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13917
13918         * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
13919         * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
13920         (SIGSEV) of bug #840381
13921         * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
13922         unlink new file before rename if new and old filenames are the same)
13923
13924 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13925
13926         * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
13927         uninitialized variables) for the mcs51. Set environment variable
13928         SDCC_GENRAMCLEAR to test.
13929         xdata initialization slightly shorter
13930
13931 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13932
13933         * src/SDCCsymt.h,
13934         * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
13935         #838241 & 780691 (basicly the same bug)
13936         * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
13937         * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
13938
13939 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
13940
13941         * src/SDCCmain.c (linkEdit): "fix" #834252
13942
13943 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13944
13945         * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
13946         * src/SDCCast.h,
13947         * src/SDCC.y: fixed bug #819403
13948
13949 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13950
13951         * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
13952         the reentrant attribute.
13953         * src/hc08/gen.c (genPackBits): added missing stack readjustment
13954         * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
13955         simulation
13956         * src/SDCCast.c (decorateType): fixed bug with storage class not being
13957         updated during pointer dereference; f.e. ~(((char *)1)*) was being
13958         erroneously reduced to a literal.
13959         * src/hc08/ralloc.c (packRegisters, rematStr),
13960         * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
13961         some cases
13962
13963 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13964
13965         * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
13966         * doc/sdccman.lyx: changed from 'article' to 'book'
13967         * doc/Makefile: readded test_suite_spec and cdbfileformat
13968
13969 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
13970
13971         * device/include/stdlib.h: include malloc.h to comply with ANSI
13972         * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
13973
13974 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13975
13976         * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
13977         * doc/clean.mk: also remove *.out files
13978         * doc/sdccman.lyx: some additions, larger top/bottom margins
13979
13980 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13981
13982         * src/SDCC.y: fixed bug #837365
13983         * support/regression/tests/bitopcse.c
13984         * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
13985         a symbol (might be valop instead)
13986         * device/lib/Makefile.in: added errno.c to HC08SOURCES
13987         * device/lib/clean.mk: added hc08 to the cleaning list
13988
13989 2003-11-04  Borut Razem <borut.razem AT siol.net>
13990
13991         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
13992           made 2003-11-04
13993         * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
13994           as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
13995           malloc is declared in standard stdlib.h
13996
13997 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13998
13999         * device/lib/hc08/Makefile: need to clean .rel not .o files
14000         * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
14001
14002 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14003
14004         * src/port.h,
14005         * src/hc08/main.c,
14006         * src/mcs51/main.c,
14007         * src/ds390/main.c,
14008         * src/z80/main.c,
14009         * src/avr/main.c,
14010         * src/pic/main.c,
14011         * src/pic16/main.c,
14012         * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
14013         * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
14014         tests (which uses the port's oclsExpense function)
14015         * src/SDCC.y,
14016         * src/SDCCast.c,
14017         * src/SDCCicode.c,
14018         * src/hc08/gen.c,
14019         * src/ds390/gen.c,
14020         * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
14021
14022 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14023
14024         * src/SDCCcse.c (ifxOptimize),
14025         * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
14026         an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
14027         deleting the IFX iCode.
14028         * src/hc08/ralloc.c: reduced unneeded slocs
14029         * src/hc08/gen.c: fixed bug in asmopToBoolean
14030
14031 2003-11-04  Borut Razem <borut.razem AT siol.net>
14032
14033         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
14034           support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
14035           as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
14036           transferred to configure
14037
14038 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
14039
14040         Use headers defined in the C[++] standards:
14041         * sim/ucsim/gui.src/serio.src/fileio.cc
14042         * sim/ucsim/gui.src/serio.src/frontend.cc
14043         * sim/ucsim/gui.src/serio.src/main.cc
14044         * sim/ucsim/gui.src/serio.src/posix_signal.cc
14045         * support/Util/NewAlloc.c
14046         * as/hc08/lklibr.c
14047         * as/mcs51/lklibr.c
14048         * as/z80/aslist.c
14049         * as/z80/assym.c
14050
14051 2003-11-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14052
14053         * Added MSVC projects for hc08 assembler and linker:
14054         all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
14055         /as/hc08/link_hc08.dsp
14056
14057 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
14058
14059         * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
14060
14061 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
14062
14063         * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
14064
14065 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14066
14067         * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
14068
14069 2003-10-31  Borut Razem <borut.razem AT siol.net>
14070
14071         * support/cpp2/cpplib.h,
14072           support/cpp2/cpplib.c,
14073           support/cpp2/cpplex.c,
14074           support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
14075           to switch _asm block preprocessing on / off. Default is
14076           #pragma preproc_asm +
14077
14078 2003-10-31  Borut Razem <borut.razem AT siol.net>
14079
14080         * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
14081           when outputting comment blocks (when executed with -C option) and
14082           _asm (SDCPP specific) blocks
14083
14084 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14085
14086         * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
14087
14088 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
14089
14090         * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
14091
14092 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
14093
14094         * src/SDCCmain.c (linkEdit): "fixed" bug #833605
14095         * src/SDCCast.c (decorateType): fixed bug #832664
14096
14097 2003-10-31  Borut Razem <borut.razem AT siol.net>
14098
14099         * support/cpp2/cpplex.c: fixed for SDCPP:
14100           comments(when executed with -C option) and _asm blocks
14101           were included even if they where in skipped #if block.
14102           Applied solution from GCC cpp 3.3.2
14103
14104 2003-10-31  Borut Razem <borut.razem AT siol.net>
14105
14106         * src/SDCC.lex: sdcc now understands both formats:
14107           '# <line_number> <file_name>' and
14108           '#line <line_number> <file_name>'
14109         * support/cpp2/cppmain.c: sdcpp now generates the standard
14110           '# <line_number> <file_name>' instead of former
14111           '#line <line_number> <file_name>'
14112
14113 2003-10-30  Borut Razem <borut.razem AT siol.net>
14114
14115         * support/cpp2/cpphash.h,
14116         * support/cpp2/cpplib.h
14117         * support/cpp2/cpplex.c,
14118         * support/cpp2/cppmain.c,
14119         * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
14120
14121 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14122
14123         Fixed a number of problems revealed by bug #827883.
14124         * src/SDCCloop.c (loopInvariants): Spill location of the
14125         result operand should be recomputed if extracted from
14126         a loop. Also, don't extract assignments of an iTemp
14127         from a literal.
14128         * src/SDCCast.c (isConformingBody): loop reversal should
14129         not occur if the control variable is involved with a
14130         relational operator.
14131
14132 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
14133
14134         * .version: bumped to 2.3.6 to reflect the big improvements
14135         made by Erik and Klaus. Thanks!
14136
14137 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
14138
14139         Replaced the livrange code.
14140         * src/SDCClrange.c: added new LR code
14141         * src/SDCCloop.c,
14142         * src/SDCCBBlock.h: removed remainig parts from old LR code
14143         * src/ds390/ralloc.c,
14144         * src/ds390/gen.c: minor fixes to make it work with new code
14145
14146 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14147
14148         * as/hc08/asm.h,
14149         * as/hc08/lkrloc.c,
14150         * src/hc08/gen.c,
14151         * src/hc08/ralloc.c: Fix various warnings related to the hc08
14152         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
14153         (tweaked fix for bug #818696)
14154
14155 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14156
14157         * src/z80/ralloc.c (joinPushes): Fixed bug #828742
14158
14159 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14160
14161         * src/SDCCmain.c,
14162         * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
14163         * src/mcs51/gen.c (gencjneshort),
14164         * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
14165         more efficient (per Scott Bronson's suggestion)
14166
14167 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14168
14169         Extended the semantics of the critical keyword to include
14170         individual statements. See RFE #827755 and #799831
14171         * src/SDCC.y
14172         * src/SDCCicode.c
14173         * src/SDCCopt.c
14174         * src/SDCCast.c
14175         * support/Util/SDCCerr.c
14176         * support/Util/SDCCerr.h
14177         * src/mcs51/gen.c
14178         * src/ds390/gen.c
14179         * src/hc08/gen.c
14180
14181 2003-10-19  Borut Razem <borut.razem AT siol.net>
14182
14183         * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
14184
14185 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14186
14187         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
14188         Fixed bug #818696
14189         * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
14190         and predecrement operand is displayed
14191
14192 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
14193
14194         * src/SDCCval.c (valMinus): fixed bug #826041
14195
14196 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14197
14198         Some hc08 related updates that I missed earlier
14199         * sim/ucsim/stypes.h
14200         * support/regression/ports/hc08/spec.mk
14201
14202 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14203
14204         New target "hc08" for the Motorola 68hc08 family of micros
14205
14206         * configure
14207         * configure.in
14208         * Makefile
14209         * src/hc08/*
14210         * src/SDCCmain.c
14211         * src/port.h
14212         * sim/ucsim/hc08.src/*
14213         * sim/ucsim/configure.in
14214         * src/ucsim/configure
14215         * sim/ucsim/packages_in.mk
14216         * as/hc08/*
14217         * as/Makefile
14218         * device/include/mc68hc908qy.h
14219         * device/lib/hc08/*
14220         * device/lib/Makefile.in
14221         * support/regression/ports/hc08/*
14222         * support/regression/Makefile
14223
14224 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14225
14226         * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
14227         regression test
14228         * src/ds390/gen.c (genCast): fixed bug #821957
14229
14230 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
14231
14232         * device/lib/logf.c: "fixed" overlay bug
14233         * support/regression/ports/host/spec.mk: added m library
14234         * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
14235         * support/regression/tests/float_trans: added (for Eric)
14236
14237 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
14238
14239         * src/mcs51/gen.c (genCpl): fixed bug
14240         http://sf.net/mailarchive/message.php?msg_id=6263915
14241
14242 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
14243
14244         * src/SDCCast.c (decorateType): added extended constant folding
14245         * src/SDCCsymt.c (computeType): cleanup
14246         * src/SDCCval.c (valShift): minor optimization
14247         * support/regression/tests/ast_constant_folding.c: added
14248
14249 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14250
14251         * src/SDCCmain.c: removed some unintended changes
14252
14253 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14254
14255         * src/SDCCmain.c (setParseWithComma): fixed bug #816685
14256         * src/z80/gen.c: fixed part of bug #817589
14257         * src/SDCCsymt.c (checkFunction): fixed bug #817895
14258
14259 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
14260
14261         Replaced cast (void **) with (void *) to avoid gcc 3 warning:
14262         * src/SDCCcflow.c
14263         * src/SDCCcse.c
14264         * src/SDCCdflow.c
14265         * src/SDCClabel.c
14266         * src/SDCClrange.c
14267         * src/SDCCmem.c
14268         * src/SDCCopt.c
14269         * src/SDCCpeeph.c
14270         * src/SDCCset.c
14271         * src/avr/ralloc.c
14272         * src/ds390/ralloc.c
14273         * src/izt/ralloc.c
14274         * src/mcs51/ralloc.c
14275         * src/pic/ralloc.c
14276         * src/pic16/ralloc.c
14277         * src/xa51/ralloc.c
14278         * src/z80/ralloc.c
14279         * src/z80/gen.c: removed unused label "release:"
14280
14281 2003-10-06  Borut Razem <borut.razem AT siol.net>
14282
14283         * src/SDCC.lex: removed definition of unused variables
14284           save_optimize and save_options
14285
14286 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
14287
14288         * clean.mk: removed '=' in "-maxdepth=1"
14289         * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
14290         * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
14291
14292 2003-10-06  Borut Razem <borut.razem AT siol.net>
14293
14294         * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
14295           my_unput() replaced by unput()
14296
14297 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
14298
14299         * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
14300         setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
14301         type-punned pointer will break strict-aliasing rules"
14302         Old LR behaviour is again default; Klaus' LR can be choosen by
14303         defining the environment variable LRKLAUS
14304         * src/SDCCBBlock.h
14305         * src/SDCCloop.c
14306         * src/SDCClrange.c
14307         * src/ds390/ralloc.c (spillThis): applied Klaus' patch
14308         * clean.mk: fixed removal of files in bin/CVS/
14309         * device/lib/clean.mk: fixed removal of directories small and large
14310         * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
14311         * src/SDCCicode.c,
14312         * src/SDCCval.c: removed superflous test for pedantic
14313
14314 2003-10-05  Borut Razem <borut.razem AT siol.net>
14315
14316         * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
14317           Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
14318           message "unmatched #pragma SAVE and #pragma RESTORE"
14319
14320 2003-10-04  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14321
14322         * doc/sdccman.lyx: various additions and updates (interrupts, inline
14323           assembly, critical functions, atomic, nojtbound)
14324
14325 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
14326
14327         Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
14328         * src/SDCCBBlock.h
14329         * src/SDCCloop.c
14330         * src/SDCCloop.h
14331         * src/SDCClrange.c
14332
14333 2003-10-03  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14334
14335         * src/z80/gen.h,
14336         * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
14337         * src/mcs51/gen.h
14338         * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
14339         * src/ds390/gen.h
14340         * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
14341         * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
14342         * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
14343
14344 2003-10-02  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14345
14346         * src/z80/gen.c (genRet): fixed bug #524753
14347         * src/z80/gen.c (genCast): fixed internal error on cast from
14348         pointer to long
14349         * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
14350         fix for bug #477835 to the z80
14351         * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
14352         for tracking iCodes in the peephole optimizer for z80
14353
14354 2003-10-01  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14355
14356         * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
14357         the other part of bug #814548
14358         * src/SDCCpeeph.c (labelInRange): fixed bug #814558
14359
14360 2003-09-30  Bernhard Held <bernhard AT bernhardheld.de>
14361
14362         * src/SDCCcse.c: fixed part of bug #814548
14363
14364 2003-09-28  Borut Razem <borut.razem AT siol.net>
14365
14366         * src/asm.c: rewrite of printILine() to use temporary file instead
14367           a pipe
14368         * src/xa51/main.c: commented out declaration of int rewinds
14369
14370 2003-09-27  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14371
14372         * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
14373
14374 2003-09-26  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14375
14376         * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
14377         * src/asm.c (printILine): Fixed bug #811015
14378
14379 2003-09-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14380
14381         *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
14382         freeing.
14383
14384 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14385
14386         * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
14387         * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
14388         to correctly handle general case of AOP_PAIRPTR
14389         * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
14390
14391 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14392
14393         * src/mcs51/ralloc.c (fillGaps),
14394         * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
14395         register positioning bug)
14396
14397 2003-09-21  Bernhard Held <bernhard AT bernhardheld.de>
14398
14399         * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
14400
14401 2003-09-19  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14402
14403         * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
14404         genCodePointerGet, genGenPointerGet, genFarPointerSet,
14405         genGenPointerSet): handle AOP_DPTR correctly when loading dptr
14406         (ralloc doesn't intentionally do this now, but perhaps later)
14407         * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
14408         * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
14409         register positioning bugs (Fixed bug #762602 and #795325)
14410         * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
14411         (Fixed bug #808779)
14412         * src/z80/gen.c: increased _vemit2's buffer[] to handle long
14413         lines that --i-code-in-asm generates
14414
14415 2003-09-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14416
14417         *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
14418         trying to fclose a FILE* that was already closed.
14419
14420 2003-09-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14421
14422         * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
14423         of const struct should be treated as if const themselves)
14424
14425 2003-09-18  Bernhard Held <bernhard AT bernhardheld.de>
14426
14427         * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
14428
14429 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14430
14431         * support/librarian/sdcclib.c: Generate correct offsets for libraries with
14432         Unix (/n) and DOS (/r/n) line terminations.
14433
14434 2003-09-17  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14435
14436         * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
14437         bug #613775
14438
14439 2003-09-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14440
14441         * src/mcs51/gen.c (genFunction, genEndFunction),
14442         * src/ds390/gen.c (genFunction, genEndFunction): Moved save
14443         and restore of EA so that stack offsets to parameters are
14444         correct when using both critical and reentrant/stack-auto.
14445         * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
14446         size (can be triggered in error if sloc is shared between
14447         different sized objects)
14448         * device/include/float.h: fixed macros to explicitly use
14449         unsigned long where needed
14450
14451 2003-09-15  Bernhard Held <bernhard AT bernhardheld.de>
14452
14453         Feature req. 799831: added code to allow nesting of critical functions
14454         * src/mcs51/gen.c (genFunction, genEndFunction)
14455         * src/ds390/gen.c (genFunction, genEndFunction)
14456
14457 2003-09-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14458
14459         * src/SDCCsymt.c (sclsFromPtr),
14460         * src/SDCCsymt.h,
14461         * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
14462         support for standard C idiom of memory mapped variables; for
14463         example, *((xdata int*)0x1234) = 1 is now internally equivalent
14464         to xdata int at 0x1234 tempvar = 1.
14465         * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
14466         provided by Akiya ISHIDA
14467
14468 2003-09-13  Bernhard Held <bernhard AT bernhardheld.de>
14469
14470         * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
14471         * src/SDCCval.c (constVal): added reduction from int to char
14472         * src/SDCCval.c (valMult, valDiv): fixed sign handling
14473         * src/SDCCval.c (valShift): fixed after change of cheapestVal()
14474         * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
14475         to ignore the sign
14476         * support/regression/tests/shifts.c: fixed
14477
14478 2003-09-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14479
14480         * src/z80/gen.c (genXor): Fixed bug #805445
14481
14482 2003-09-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14483
14484         Fixed bug #621531 (const & volatile confusion in the type chain).
14485         DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
14486         refer to the const or volatile state of the pointer itself.
14487
14488         * src/SDCCast.c
14489         * src/SDCCglue.c
14490         * src/SDCCicode.c
14491         * src/SDCCsymt.c
14492         * src/SDCCval.c
14493         * src/SDCC.y
14494         * src/SDCCsymt.h
14495         * src/pic/gen.c
14496         * src/pic/ralloc.c
14497         * src/pic16/gen.c
14498         * src/pic16/ralloc.c
14499         * support/regression/tests/const.c
14500
14501 2003-09-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14502
14503         When checking for duplicated modules, use absolute paths
14504         instead of relative paths.  Files changed:
14505
14506         * as/mcs51/lklib.c
14507         * link/z80/lklib.c
14508
14509 2003-09-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14510
14511         * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
14512
14513 2003-09-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14514
14515         * device/include/string.h: added size_t typedef, changed
14516         prototypes to use size_t, eliminated separate reentrant and
14517         non-reentrant declarations, added _memmove declaration
14518         * device/lib/_memcpy.c: changed to use size_t instead of int,
14519         changed /4 to >>2 to avoid division library call
14520         * device/lib/_memcmp.c,
14521         * device/lib/_memset.c,
14522         * device/lib/_strncat.c,
14523         * device/lib/_strncpy.c,
14524         * device/lib/_strncmp.c: changed to use size_t instead of int
14525         * device/lib/_memmove.c: new file (fixed bug #772294)
14526         * device/lib/Makefile.in: added _memmove.c
14527         * device/lib/z80/asm_strings.s: fixed bug #772290
14528         * support/regression/tests/bitfields.c: attempt to fix host assertion
14529         failure on amd64-unknown-linux2.2
14530
14531 2003-09-06  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14532
14533         * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
14534         * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
14535         * as/z80/asmain.c (main): fixed bug #801766
14536
14537 2003-09-06  Bernhard Held <bernhard AT bernhardheld.de>
14538
14539         * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
14540         compilers
14541
14542 2003-09-05  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14543
14544         * src/SDCCast.c (isConformingBody): fixed loop reversal bug
14545         reported in bug #800609
14546
14547 2003-09-04  Vangelis Rokas <vrokas AT otenet.gr>
14548
14549         * Top header beautifications in src/pic16 directory:
14550           device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
14551           pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
14552           pcoderegs.h, ralloc.c, ralloc.h
14553         * main.c: added top header and GPL license notice
14554         * pcode.c: fixed the if-conditional warning
14555
14556 2003-09-04  Bernhard Held <bernhard AT bernhardheld.de>
14557
14558         * device/lib/_mullong.c: replaced int by short for gcc
14559
14560 2003-08-31  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14561
14562         * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
14563         and JUMPTABLE iCodes properly now (worked by accident before)
14564         * src/mcs51/gen.c (leftRightUseAcc),
14565         * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
14566         iCode properly now. Use getSize instead of nRegs since a & b
14567         aren't part of the nRegs tally.
14568
14569 2003-08-31  Vangelis Rokas <vrokas AT otenet.gr>
14570
14571         * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
14572         * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
14573           before instructions that use the _STATUS register
14574
14575 2003-08-31  Bernhard Held <bernhard AT bernhardheld.de>
14576
14577         * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
14578         * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
14579         fetching of the pointer
14580         * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
14581         copied from genNearPointerSet()
14582         * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
14583         * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
14584         If they pop r0/r1 they must be called in the opposite order than aopOp().
14585         * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
14586         (resp. --stack-auto), prepared for --xstack
14587
14588 2003-08-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14589
14590         * doc/sdccman.lyx: reverted tables to those in cvs 1.64
14591
14592 2003-08-28  Bernhard Held <bernhard AT bernhardheld.de>
14593
14594         * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
14595         these ports have their own __sdcc_external_start()
14596
14597 2003-08-26  Bernhard Held <bernhard AT bernhardheld.de>
14598
14599         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
14600         * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
14601         type for bits was changed. It resulted in bit variables becoming
14602         global, which is not permitted in PIC 14 assembly output.
14603
14604 2003-08-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14605
14606         * doc/sdccman.lyx: various additions and updates. Rearranged sections
14607
14608 2003-08-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14609
14610         Z80 and MCS51 linkers complaint if a public symbol is defined
14611         in more than one library module:
14612
14613         * as/mcs51/lklib.c
14614         * link/z80/lklib.c
14615         * as/mcs51/Makefile.in
14616
14617 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14618
14619         A few small changes that speed up the peephole optimizer.
14620
14621         * src/SDCCpeeph.c
14622
14623 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14624
14625         Try to make the peephole optimizer smarter by maintaining
14626         an association between the assembly source code and the
14627         iCodes that originated them. Put this information to use
14628         with a new peephole rule condition "notVolatile" so that
14629         the rules can be aggressive yet still safe.
14630
14631         * src/SDCCpeeph.c
14632         * src/SDCCpeeph.h
14633         * src/mcs51/gen.c
14634         * src/mcs51/peeph.def
14635
14636 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14637
14638         Fixed bug #741761
14639
14640         * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
14641         * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
14642         if the left or right operand symbols have the accuse flag set.
14643
14644 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14645
14646         Changed the type of the result of the ! (NOT) operator to char;
14647         previously it returned the same type as the source. This allows
14648         us to eliminate all the genFloatNot functions (all of its target
14649         implementations were very buggy) since !float can use the same
14650         code as !long now.
14651
14652         * src/SDCCicode.c (ast2iCode): ! returns char
14653         * src/mcs51/gen.c (genNot, genNotFloat),
14654         * src/ds390/gen.c (genNot, genNotFloat),
14655         * src/z80/gen.c (genNot, genNotFloat),
14656         * src/pic/gen.c (genNot, genNotFloat),
14657         * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
14658
14659 2003-08-19  Bernhard Held <bernhard AT bernhardheld.de>
14660
14661         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
14662         1. Interrupt would not compile properly. Ensure PCLATH register is saved
14663            during interrupts. Ensure WSAVE is located at a shared bank address.
14664         2. Fixed page selection in some places
14665         3. Fixed BTFSS/C to where necessary use registers directly and not simply
14666            the registers name strings.
14667         4. Fixed "signed / unsigned compare" compiler warnings.
14668         5. The PIC port manages its own allocation of the general purpose
14669            registers, but makes no attempt to reuse them. As a result when
14670            compiling it soon runs out of general purpose registers. Some
14671            additional code was added to the files pcode.c and device.c to walk
14672            through the function call tree and rename the registers so that they
14673            get reused.
14674
14675         * src/pic/device.c
14676         * src/pic/gen.c
14677         * src/pic/glue.c
14678         * src/pic/pcode.c
14679         * src/pic/pcode.h
14680         * src/pic/ralloc.c
14681         * src/pic/ralloc.h
14682         * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
14683         genPlus() & genMinus() when the result is the same as left or right
14684
14685 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14686
14687         * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
14688
14689 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14690
14691         Made bitfield a distinct type from bit so that bitfields
14692         convert as per ANSI C and bits retain their traditional
14693         boolean style behaviour. Implemented bitfield support in
14694         the z80 port.
14695
14696         * src/SDCCsymt.h,
14697         * src/SDCCsymt.c,
14698         * src/SDCCast.c,
14699         * src/cdbFile.c,
14700         * src/mcs51/gen.c,
14701         * src/ds390/gen.c: bit v bitfield split
14702         * src/z80/gen.c: New support for bitfields
14703         * support/regression/tests/bitfields.c: reenabled z80,
14704         added more tests
14705
14706 2003-08-17  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14707
14708         Rules 246.x, 247.x relate to bitfields, the others speed up
14709         access to xdata mapped I/O devices.
14710
14711         * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
14712
14713 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14714
14715         Cleaned up genPackBits and genUnpackBits and added two helper
14716         functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
14717         for literal assignments in genPackBits (thanks to Frieder for
14718         reminding me).
14719
14720         * src/mcs51/gen.c
14721         * src/ds390/gen.c
14722
14723 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14724
14725         Fixed bug #748310 (pointer to function type mishandled when the
14726         function name is omitted). Also fixed a SIGSEGV when a function
14727         attribute (reentrant, etc) is used on a non-function or on a
14728         function but misplaced before the parameter list.
14729
14730         * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
14731         bug #748310
14732         * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
14733         * support/Util/SDCCerr.h,
14734         * support/Util/SDCCerr.c: Added func attr misuse error msg
14735
14736 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
14737
14738         Fixed bug #787649 by anonymous
14739         * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
14740         * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
14741
14742 2003-08-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14743
14744         Fixed numerous bitfield problems.
14745
14746         * src/SDCC.y: More bitfield related error checking
14747         * src/SDCCsymt.h,
14748         * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
14749         * support/Util/SDCCerr.h,
14750         * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
14751         * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
14752         * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
14753         * support/regression/tests/bitfields.c: tests added
14754
14755 2003-08-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14756
14757         Made the constant following the "interrupt" keyword optional. If
14758         omitted, the function will not automatically be given an entry
14759         in the interrupt vector table (similar to #pragma NOIV, but
14760         less syntacticly kludgy). The interrupt number is also now
14761         range checked. Also fixed a bug in the high order bit example
14762         in the manual.
14763
14764         * src/SDCC.y
14765         * src/SDCCmem.c
14766         * src/SDCCglue.c
14767         * src/SDCCsymt.h
14768         * support/Util/SDCCerr.c
14769         * support/Util/SDCCerr.h
14770         * doc/sdccman.lyx
14771
14772 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
14773
14774         * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
14775         * src/SDCCicode.c (operandOperation): rewritten some ops
14776         (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
14777         * src/SDCCsymt.c (computeType): literals are handled the same way as any
14778         other type
14779         * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
14780         be re-activated by defining REDUCE_LITERALS)
14781         * src/SDCCval.c (constVal): fixed; hex and octal constants can be
14782         unsigned, but are signed by default
14783         * src/SDCCval.c (constVal): rearranged
14784         * src/SDCCval.c (valMod): preliminary fix
14785         * src/SDCCval.c (valCastLiteral): use TYPE_* types
14786         * support/regression/literalop.c: added, work in progress
14787
14788 2003-08-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14789
14790         Generate warnings for useless declarations like "char data;"
14791         that don't do what new users expect.
14792
14793         * src/SDCC.y
14794         * support/Util/SDCCerr.h
14795         * support/Util/SDCCerr.c
14796
14797 2003-08-09  Bernhard Held <bernhard AT bernhardheld.de>
14798
14799         * src/SDCCval.c (valMult): fix overflow detection of negative int
14800
14801 2003-08-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14802
14803         * src/z80/ralloc.c (joinPushes): made compatible with new signedness
14804
14805         Changes to support big endian targets:
14806
14807         * src/ports.h
14808         * src/SDCCglue.c
14809         * src/avr/main.c
14810         * src/ds390/main.c
14811         * src/izt/i186.c
14812         * src/mcs51/main.c
14813         * src/pic/main.c
14814         * src/pic16/main.c
14815         * src/xa51/main.c
14816         * src/z80/main.c
14817
14818 2003-08-06  Bernhard Held <bernhard AT bernhardheld.de>
14819
14820         * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
14821         * device/lib/time.c: fixed warning "integer overflow in expression"
14822
14823 2003-08-05  Bernhard Held <bernhard AT bernhardheld.de>
14824
14825         * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
14826         * src/SDCCval.c (constVal): changed default to signed; hex and octal
14827         constants are unsigned; added recognition of "u" flag for unsigned
14828         * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
14829         * src/SDCCval.c (valDiv, valMod): fixed signdness
14830         * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
14831         signedness of modulo, left and right shift
14832         * support/Util/SDCCerr.c: added warning "integer overflow in expression"
14833         * support/Util/SDCCerr.h: added warning W_INT_OVL
14834         * src/SDCCast.c (decorateType): fixed gcc3.3 warning
14835         * src/SDCCast.c (ast_print): improved output of constants
14836
14837 2003-08-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14838
14839         Fixed some warnings when building with MSVC:
14840
14841         * as/mcs51/asdata.c
14842         * as/z80/asdata.c
14843         * as/mcs51/asm.h
14844         * as/z80/asm.h
14845         * link/z80/aslink.h
14846         * link/z80/lkdata.c
14847         * link/z80/lkeval.c
14848         * link/z80/lkgb.c
14849         * link/z80/lkihx.c
14850         * link/z80/lks19.c
14851         * link/z80/lksym.c
14852         * support/cpp2/cpplib.c
14853         * src/ds390/gen.c
14854         * src/mcs51/gen.c
14855
14856 2003-08-03  Bernhard Held <bernhard AT bernhardheld.de>
14857
14858         * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
14859
14860 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14861
14862         * support/librarian/clean.mk: Do not remove Makefile.
14863         * support/librarian/Makefile: added.
14864
14865 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14866
14867         Added librarian to MSVC build:
14868         * all.dsp
14869         * sdcc.dsw
14870         * support/librarian/librarian.dsp
14871
14872         'configure' not needed for librarian, removed:
14873         * support/librarian/configure
14874         * support/librarian/configure.in
14875         * support/librarian/config_in.h
14876         * support/librarian/Makefile.in
14877
14878         Hopefully these ones built the librarian and the rest of sdcc properly:
14879         * Makefile
14880         * Makefile.common.in
14881
14882         Messed up 'configure', so revert to previous version:
14883         * configure
14884         * configure.in
14885
14886 2003-07-31  Bernhard Held <bernhard AT bernhardheld.de>
14887
14888         * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
14889         there, while the mantissa of a double is "only" 53 bits wide.
14890
14891 2003-07-31  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14892
14893         Adding sdcclib to the build.  MSVC project coming soon.
14894         Files added/changed:
14895
14896         * support/librarian/clean.mk
14897         * support/librarian/configure
14898         * support/librarian/configure.in
14899         * support/librarian/config_in.h
14900         * support/librarian/Makefile.bcc
14901         * support/librarian/Makefile.in
14902         * support/librarian/sdcclib.c
14903         * Makefile.bcc
14904         * Makefile
14905         * Makefile.common.in
14906         * configure
14907         * configure.in
14908
14909 2003-07-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14910
14911         Linker now complaints if linked modules have conflicting options, for
14912         example, one compiled using --model-large and another one compiled with
14913         --model-small.  The following files were modified:
14914
14915         * as/mcs51/asdata.c
14916         * as/mcs51/aslink.h
14917         * as/mcs51/asm.h
14918         * as/mcs51/asmain.c
14919         * as/mcs51/asout.c
14920         * as/mcs51/i51pst.c
14921         * as/mcs51/lkdata.c
14922         * as/mcs51/lklibr.c
14923         * as/mcs51/lkmain.c
14924         * as/z80/asdata.c
14925         * as/z80/asm.h
14926         * as/z80/asmain.c
14927         * as/z80/asout.c
14928         * as/z80/z80pst.c
14929         * link/z80/aslink.h
14930         * link/z80/lkdata.c
14931         * link/z80/lklibr.c
14932         * link/z80/lkmain.c
14933         * src/SDCCglue.c
14934
14935 2003-07-28  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14936
14937         *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
14938         as/mcs51/lklibr.c: Generate a warning when a library is not found.
14939
14940 2003-07-28  Bernhard Held <bernhard AT bernhardheld.de>
14941
14942         * src/z80/mappings.i: fix _mul[us][int,long] entries
14943
14944 2003-07-26  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14945
14946         *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
14947
14948 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
14949
14950         * src/SDCCicode.c (operandOperation): really fixed problem with bitops
14951         * support/regression/tests/bitopcse.c: added
14952         fixed warning:
14953         * src/avr/gen.c:
14954         * src/pic/gen.c:
14955         * src/pic16/gen.c:
14956         * src/z80/gen.c:
14957         * src/xa51/gen.c:
14958
14959 2003-07-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14960
14961         added support for new library format to z80, gbz80 linkers:
14962         *link/z80/aslink.h
14963         *link/z80/lklex.c
14964         *link/z80/lklib.c
14965         *link/z80/lklist.c
14966
14967 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
14968
14969         * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
14970         after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
14971
14972 2003-07-23  Bernhard Held <bernhard AT bernhardheld.de>
14973
14974         added DUMMY_READ_VOLATILE:
14975         * src/SDCC.y:
14976         * src/avr/gen.c:
14977         * src/xa51/gen.c:
14978         * src/z80/gen.c:
14979         * src/pic/gen.c:
14980         * src/pic16/gen.c:
14981         * src/mcs51/gen.c:
14982         * src/ds390/gen.c:
14983         * src/SDCCcse.c (algebraicOpts): many improvements
14984         * src/SDCCcse.h: removed algebraicOpts()
14985         * src/SDCCicode.c (picDummyRead): added
14986
14987 2003-07-23  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14988
14989         * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
14990         "Insufficient space in data memory".
14991
14992 2003-07-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14993
14994         * src/mcs51/gen.c: fixed bug #771358
14995         * src/z80/gen.c: fixed bug #759087
14996
14997 2003-07-20  Bernhard Held <bernhard AT bernhardheld.de>
14998
14999         * src/pic16/glue.c: minor cleanup by Vangelis
15000
15001 2003-07-19  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15002
15003         * device/include/regc515c.h: fixed #758477
15004         * device/lib/_gptrget.c: saving some cycles in generic pointer get
15005         * device/lib/_gptrput.c: saved a few bytes
15006         * my tab spacing is 8, yours too?)
15007         * device/lib/_ser.c: process RX bytes earlier than TX bytes
15008         * device/lib/serial.c: process RX bytes earlier than TX bytes
15009         * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
15010
15011 2003-07-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
15012
15013         * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
15014
15015 2003-07-17  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15016
15017         * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
15018
15019 2003-07-17  Bernhard Held <bernhard AT bernhardheld.de>
15020
15021         * device/lib/Makefile.in: bad fix, reverted to 1.43
15022
15023 2003-07-16  Bernhard Held <bernhard AT bernhardheld.de>
15024
15025         * device/lib/Makefile.in: added missing z80 object files
15026
15027 2003-07-14  Bernhard Held <bernhard AT bernhardheld.de>
15028
15029         * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
15030         pic16 progress by Vangelis:
15031         * src/SDCCglobl.h:
15032         * src/SDCCmain.c:
15033         * src/pic/Makefile:
15034         * src/pic:
15035         * pic/Makefile:
15036         * pic16/device.c:
15037         * pic16/device.h:
15038         * pic16/gen.c:
15039         * pic16/gen.h:
15040         * pic16/genarith.c:
15041         * pic16/glue.c:
15042         * pic16/main.c:
15043         * pic16/pcode.c:
15044         * pic16/pcode.h:
15045         * pic16/pcodepeep.c:
15046         * pic16/peeph.def:
15047
15048 2003-07-13  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15049
15050         * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
15051
15052 2003-07-12  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15053
15054         * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
15055         added gbz80 build to MSVC project.
15056         * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
15057         link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
15058         from 8051 stuff and setup so it links using a .lnk file.
15059
15060 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15061
15062         * support/librarian/sdcclib.c: sdcc librarian.
15063         * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
15064         with sdcclib.
15065
15066 2003-07-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15067
15068         * as/mcs51/lkmain.c: properly handle extensions in function afile.
15069
15070 2003-07-02  Borut Razem <borut.razem AT siol.net>
15071
15072         * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
15073         src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
15074         src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
15075         src/xa51/main.c, src/z80/main.c:
15076         virtualization of glue() function: each port has it's own glue function,
15077         which is accessed by do_glue function pointer in PORT.general structure
15078
15079 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
15080
15081         * DS800C400 fun, improved ROM interface and tinibios.
15082
15083 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
15084
15085         * More support for DS80C400. Now includes beginning of interface to ROM.
15086
15087 2003-06-25  Bernhard Held <bernhard AT bernhardheld.de>
15088
15089         * src/mcs51/gen.c (gencjneshort): fixed bug #760345
15090
15091 2003-06-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15092
15093         * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
15094
15095 2003-06-19  Borut Razem <borut.razem AT siol.net>
15096
15097         * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
15098
15099 2003-06-19  Borut Razem <borut.razem AT siol.net>
15100
15101         * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
15102         fixed Z80 port - crt0.o: cannot open.
15103
15104 2003-06-19  Bernhard Held <bernhard AT bernhardheld.de>
15105
15106         * support/Util/MySystem.c (merge_command): revert bad fix
15107
15108 2003-06-18  Borut Razem <borut.razem AT siol.net>
15109
15110         * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
15111
15112 2003-06-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15113
15114         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
15115         option --use-stdout sends errors to stdout instead of stderr.
15116
15117 2003-06-18  Bernhard Held <bernhard AT bernhardheld.de>
15118
15119         * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
15120
15121 2003-06-15  Borut Razem <borut.razem AT siol.net>
15122
15123         * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
15124         * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
15125         * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
15126         fixed width array of pointers replaced with sets;
15127         multiple include and lib paths ared transferred to preprocessor and linker
15128         * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
15129         * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
15130         fixed width array of pointers
15131         * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
15132         removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
15133         fixupPath(), getPathDifference()
15134         * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function  inExcludeList() by using sets instead
15135         fixed width array of pointers
15136
15137 2003-06-11  Bernhard Held <bernhard AT bernhardheld.de>
15138
15139         * src/pic16/ralloc.c: fix warnings
15140         * src/pic16/pcode.c: fix warning
15141
15142 2003-06-10  Scott Dattalo  <scott AT dattalo.com>
15143
15144          Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
15145         know all the details, but essentially this set of changes enable
15146         the pic16 port to generate movff instructions and generate assembler
15147         directives,
15148         * src/SDCCmain.c:
15149         * src/pic16/gen.c:
15150         * src/pic16/glue.c:
15151         * src/pic16/pcode.c:
15152         * src/pic16/device.c:
15153         * src/pic16/main.c:
15154         * src/pic16/pcode.h:
15155         * src/pic16/pcoderegs.c:
15156         * src/pic16/ralloc.c:
15157         * src/pic16/ralloc.h:
15158
15159 2003-06-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15160
15161         * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
15162         added option --vc, so sdcc errors and warnings are compatible with
15163         Microsoft Visual Studio.
15164
15165 2003-06-07  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15166
15167         * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
15168           device/lib/libfloat.lib: added atof function.
15169
15170 2003-06-04  Bernhard Held <bernhard AT bernhardheld.de>
15171
15172         * doc/sdccman.lyx: updated to Lyx 1.3
15173         * doc/cdbfileformat.lyx: updated to Lyx 1.3
15174         * doc/test_suite_spec.lyx: updated to Lyx 1.3
15175         * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
15176
15177 2003-06-03  Bernhard Held <bernhard AT bernhardheld.de>
15178
15179         * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
15180
15181 2003-06-02  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15182
15183         * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
15184           additions to the "related tools/documentation" section
15185
15186 2003-06-02  Bernhard Held <bernhard AT bernhardheld.de>
15187
15188         * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
15189
15190 2003-05-29  Bernhard Held <bernhard AT bernhardheld.de>
15191
15192         * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
15193         * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
15194
15195 2003-05-28  Bernhard Held <bernhard AT bernhardheld.de>
15196
15197         * doc/sdccman.lyx: fix double dash and other minor things
15198         * doc/Makefile: fix double dash
15199
15200 2003-05-28  Karl Bongers(patches from Martin Helmling)
15201         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
15202           condition and ignore commands.
15203
15204 2003-05-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15205
15206         * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
15207           is in parts still quite out of date, I did changes as far as I felt makes sense
15208           for a non-native english speaker.
15209           Please feel free to add to the manual or to correct my changes.
15210         * doc/Makefile: undid touching the date of intermediate tex files.
15211
15212 2003-05-26  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15213
15214         * doc/sdccman.lyx: Manual has an index now
15215
15216 2003-05-25  Bernhard Held <bernhard AT bernhardheld.de>
15217
15218         Finalize muluint/mulsint and mululong/mulslong merging:
15219         * device/lib/_mulint.c
15220         * device/lib/_mullong.c
15221         * device/lib/gbz80/mul.s
15222         * device/lib/gbz80/stubs.s
15223         * device/lib/z80/mul.s
15224         * device/lib/z80/stubs.s
15225         * src/SDCCsymt.c (initCSupport)
15226
15227 2003-05-25  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15228
15229         * as/mcs51/lkaomf51.c: Address space 'z' was missing.
15230         * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
15231           src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
15232           src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
15233           instead of /Zm500.
15234
15235 2003-05-25  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15236
15237         * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
15238           the regression tests I'm not brave enough to enable 245.b, 245.c
15239         * doc/sdccman.lyx: added latex preamble for hyperref package.
15240           Using pdflatex this will give you a hyperlinked pdf file with
15241           bookmarks. (prepend '%' before /usepackage if this breaks something)
15242
15243 2003-05-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15244
15245          * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
15246
15247 2003-05-22  Bernhard Held <bernhard AT bernhardheld.de>
15248
15249         * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
15250
15251 2003-05-21    <johan AT balder>
15252
15253         * src/SDCCglue.c (printIval): fixed bug #739934
15254
15255 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
15256
15257         Applied patch from bug 737905 (renamed yylineo to mylineno):
15258         * src/altlex.c
15259         * src/SDCCast.c
15260         * src/SDCglobl.h
15261         * src/SDCC.lex
15262         * src/SDCCsymt.c
15263         * src/SDCCval.c
15264         * src/pic16/pcode.c: Cleaned warnings
15265         * src/pic16/pcodeflow.c: Cleaned warnings
15266         * src/pic16/pcoderegs.c: Cleaned warnings
15267
15268 2003-05-19  Scott Dattalo  <scott AT dattalo.com>
15269
15270         * src/pic16/pcode.c: Cleaned warnings
15271         * src/pic16/pcodepeep.c: Cleaned warnings
15272         * src/pic16/ralloc.c: Cleaned warnings
15273
15274 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
15275
15276         * doc/sdccman.lyx: fixed bug 739745
15277         * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
15278
15279 2003-05-18  Bernhard Held <bernhard AT bernhardheld.de>
15280
15281         * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
15282         it can be defined with CFLAGS when running configure
15283         * src/SDCCmain.c: fixed compiling + linking with object files
15284
15285 2003-05-18  Vangelis Rokas (vrokas AT otenet.gr)
15286
15287         * configure.in: configure for pic16 port,
15288             added --disable-pic16-port
15289         * sdccconf_in.h: added macro OPT_DISABLE_PIC16
15290         * src/SDCCmain.c: linkOptions is changed to set *,
15291             added if/endif conditional macros to remove options help
15292             messages from optionsTable when a port is not configured, added
15293             support for the PIc16 port in the ports table, when executing
15294             the compiler with no port specified on command line, a default
15295             port is selected with the new macro DEFAULT_PORT which is
15296             defined in port.h, in setDefaultOptions() linkOptions is removed
15297             from initialization assignment, since now it is a set,
15298             parseCmdLine uses setParseWithComma for linkOptions, in
15299             linkEdit() linkOptions are accessed with new function indexSet()
15300             which returns the i'th item of a set variable. See SDCCset.c, in
15301             linkEdit() when calling buildCmdLine(), added linkOptions as
15302             last argument. Now users can pass arguments to gplink via the
15303             -Wl option, main() uses pic16glue() to glue up pic16 programs
15304         * src/SDCCpeeph.c: various changes to support pic16
15305         * src/SDCCset.c: added function  void *indexSet(set *, int)  to
15306             return the i'th item of the set
15307         * src/SDCCset.h: added function prototype for indexSet()
15308         * src/SDCCsymt.c: in checkSClass(), added support for PIC16
15309         * src/clean.mk: added pic16 in CLEANALLPORTS variable
15310         * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
15311             added macro DEFAULT_PORT
15312         * src/pic/main.c: corrected arguments of gplnk in _linkCmd
15313         * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
15314             generated
15315         * src/pic16/glue.c: commented out some error producing lines
15316         * src/pic16/main.c: __config directives are commented out to stop
15317             gpasm complaining and test the linkage with gplink, _linkCmd and
15318             _asmCmd changed to be more gplink and gpasm friendly
15319         * src/pic16/peeph.def: peep rule 3 is commented out, since it
15320             produced an error when parsed, peep rule 12 is added to utilize
15321             movff, but it is commented out since the pCode does not support
15322             yet a command with 2 address arguments
15323
15324 2003-05-18    <johan AT balder>
15325
15326         * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
15327         * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
15328 2003-05-17  Karl Bongers(apply patches from Martin Helmling)
15329
15330         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
15331         Added feature to script commands from file.
15332
15333 2003-05-14  Bernhard Held <bernhard AT bernhardheld.de>
15334
15335         * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
15336         * src/SDCCutil.c: include ctype.h for win32
15337
15338 2003-05-13  Bernhard Held <bernhard AT bernhardheld.de>
15339
15340         * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
15341
15342 2003-05-12  Karl Bongers(apply development patches from Martin Helmling)
15343
15344         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
15345         Fixed so you can set breakpoints prior to run, run does not stop
15346         on entry now.  Add tbreak.  Other enhancements and fixes for use
15347         with ddd.
15348
15349 2003-05-12  Borut Razem <borut.razem AT siol.net>
15350
15351         * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
15352
15353 2003-05-11  Borut Razem <borut.razem AT siol.net>
15354
15355         * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
15356         the path of bin directory, so that PATH is the only env. variable, which has to be set
15357         in case of standard installation.
15358         * src/ds390/ds390.dsp: increased value of /Zm option to 1000
15359         * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
15360         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
15361
15362 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
15363
15364         * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
15365         * support/regression/Makefile: inter-port-clean is no longer nesessary, the
15366         temp files are in the port dir; clean the gen/test directory when
15367         generating new test.c
15368         * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
15369         * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
15370         * support/regression/tests/zeropad.c: added
15371
15372 2003-05-09    <johan AT balder>
15373
15374         * src/SDCCglue.c: fixed bug #597940
15375
15376 2003-05-05  Karl Bongers(apply patches from Martin Helmling)
15377
15378         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
15379         cache sfr, optimize next,step, fix off by one sourceline,
15380         support ddd list function.
15381         * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
15382
15383 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
15384
15385         * support/regression/HTMLgen.py: added compare_s2f()
15386         * support/regression/Makefile: redo 1.27
15387         * support/regression/generate-cases.py: redo 1.5
15388
15389 2003-04-30  Bernhard Held <bernhard AT bernhardheld.de>
15390
15391         * support/regression/tests/float.c: workaround 33 bit hex constant
15392         * support/regression/tests/simplefloat.c: fix division for host
15393
15394 2003-04-29  Scott Dattalo  <scott AT dattalo.com>
15395
15396         * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
15397         that tame's the PIC's over-aggressive optimizer.
15398
15399 2003-04-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15400
15401          * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
15402          support for MSVC.
15403
15404 2003-04-29  Kevin Vigor <kevin AT vigor.nu>
15405
15406         Initial support for DS80C400. "Hello world" runs on TINIm400
15407         (with polled I/O).
15408
15409 2003-04-28  Karl Bongers(apply patches for Martin Helmling)
15410
15411          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
15412          * Some notes on ddd usage added in debugger/README
15413          Martin Helmling adding more features and fixes for ddd GUI debugger.
15414          Code added for nexti, stepi, up, down, and other adjustments.
15415
15416 2003-04-28  Scott Dattalo  <scott AT DATTALO.COM>
15417
15418         * src/pic/pCodepeep.c non-wildcard asmops are now handled
15419         * src/pic/peeph.def Added two rules to optimize carry manipulation
15420         * src/pic/* removed debug printfs
15421
15422 2003-04-28  Bernhard Held <bernhard AT bernhardheld.de>
15423
15424         * debugger/mcs51/cmd.c: added header newalloc.h
15425
15426 2003-04-26  Bernhard Held <bernhard AT bernhardheld.de>
15427
15428         * as/Makefile: new EXEEXT
15429         * as/z80/Makefile: remove trailing slash of BUILDIR
15430         * as/z80/clean.mk: new EXEEXT
15431         * Makefile.common.in: add to CFLAGS (and others), don't replace it
15432         * support/cpp2/Makefile.in: new EXEEXT
15433         * src/pic/glue.c (pic14emitRegularMap): fixed warning
15434
15435 2003-04-24  Bernhard Held <bernhard AT bernhardheld.de>
15436
15437         Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
15438         EXEEXT was introduced to fix all related problems with targets
15439         "clean", "install" and "uninstall"; a couple of further flaws
15440         especially with "clean" have been fixed too
15441         * as/mcs51/Makefile.in
15442         * as/mcs51/clean.mk
15443         * as/z80/Makefile
15444         * Makefile
15445         * clean.mk
15446         * debugger/mcs51/Makefile.in
15447         * debugger/mcs51/clean.mk
15448         * link/z80/Makefile
15449         * link/z80/Makefile.in
15450         * link/z80/clean.mk
15451         * link/Makefile
15452         * packihx/Makefile.in
15453         * packihx/clean.mk
15454         * sim/ucsim/Makefile
15455         * sim/ucsim/clean.mk
15456         * sim/ucsim/avr.src/Makefile.in
15457         * sim/ucsim/avr.src/clean.mk
15458         * sim/ucsim/s51.src/Makefile.in
15459         * sim/ucsim/s51.src/clean.mk
15460         * sim/ucsim/xa.src/Makefile.in
15461         * sim/ucsim/xa.src/clean.mk
15462         * sim/ucsim/z80.src/Makefile.in
15463         * sim/ucsim/z80.src/clean.mk
15464         * sim/ucsim/main_in.mk
15465         * sim/ucsim/packages_in.mk
15466         * sim/ucsim/gui.src/Makefile.in
15467         * sim/ucsim/gui.src/serio.src/Makefile.in
15468         * sim/ucsim/gui.src/serio.src/clean.mk
15469         * src/Makefile.in
15470         * src/clean.mk
15471         * support/cpp2/Makefile.in
15472         * support/cpp2/clean.mk
15473         * support/makebin/Makefile
15474         * support/makebin/clean.mk
15475         * support/scripts/sdcc_mingw32: --program-suffix no longer needed
15476         * doc/sdccman.lyx: --program-suffix no longer needed
15477
15478 2003-04-23  Karl Bongers(apply patches for Martin Helmling)
15479
15480          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
15481          Martin Helmling added support for ddd GUI debugger.
15482          Code added to display assembly, set variables, and other commands
15483          to interface to ddd.
15484
15485 2003-04-23  Bernhard Held <bernhard AT bernhardheld.de>
15486
15487         * as/Makefile: fix target clean
15488         * as/clean.mk: fix target clean
15489         * as/z80/clean.mk: fix target clean
15490
15491 2003-04-22  Bernhard Held <bernhard AT bernhardheld.de>
15492
15493         * Makefile.common.in: added  AT EXEEXT AT
15494         * configure.in: removed all mingw32 stuff
15495         * configure: rebuilt from configure.in
15496         * doc/sdccman.lyx: updated section "installation"
15497         * support/scripts/sdcc_mingw32: adapted to configure
15498         * support/scripts/sdcc_cygwin_mingw32: added
15499
15500 2003-04-22  Scott Dattalo  <scott AT dattalo.com>
15501
15502         * src/pic Added object file support for the PIC port
15503         * src/pic Applied patch from Craig Franklin (this started the object file support)
15504         * src/regression Updated the PIC regression tests for object files
15505
15506 2003-04-20  Borut Razem <borut.razem AT siol.net>
15507
15508         * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
15509           lklex.c: In function `getfid':
15510           lklex.c:203: warning: array subscript has type `char'
15511         * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
15512           with MSVC with global optimization enabled (probably an cl compiler bug ;-)
15513         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
15514           stack handling macros
15515
15516 2003-04-19  Borut Razem <borut.razem AT siol.net>
15517
15518         * "handling space characters in file path" task:
15519         * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
15520         * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
15521         * support/Util/MySystem.h: make it self-sufficient
15522         * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
15523           src/z80/main.c, sdcc/as/mcs51/lklex.c:
15524           handling space characters in file path
15525         * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
15526           (it will be used by assemblers, which have their own includes, e.g. gpasm)
15527         * support/Util/MySystem.c: handling space characters in executable's path
15528
15529 2003-04-19  Bernhard Held <bernhard AT bernhardheld.de>
15530
15531         * as/z80/Makefile: fix permanent rebuild of z80
15532         * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
15533         * support/regression/tests/bitfields.c: added Johan's bitfields.c
15534
15535 2003-04-18      Kevin Vigor <kevin AT vigor.nu>
15536
15537         * src/SDCCopt.c: add special case optimization to replace modulo by
15538           a power of two with a bitwise AND.
15539
15540 2003-04-18    <johan AT balder>
15541
15542         * src/mcs51/gen.c (getFreePtr): fixed bug #635354
15543
15544 2003-04-17    <johan AT balder>
15545
15546         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
15547         * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
15548
15549 2003-04-13  Borut Razem <borut.razem AT siol.net>
15550
15551         * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
15552         * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
15553           fixed mingw problem in adl_NORMALIZE_PATH
15554
15555 2003-04-12  Borut Razem <borut.razem AT siol.net>
15556
15557         * fixed "#pragma SAVE/RESTORE can not be nested":
15558         * src/SDCC.lex: reworked pragma handling functions
15559         * sdcc/src/SDCCglobl.h: reworked stack handling macros
15560         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
15561
15562 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
15563
15564         * src/SDCCutil.c (pathEquivalent): defined but not used
15565         * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
15566         * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
15567         * configure: rebuilt from configure.in
15568         * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
15569         * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
15570         * device/include/Makefile.in: replace sdcc_datadir
15571         * device/lib/Makefile.in: replace sdcc_datadir
15572         * Makefile.common.in: add LDFLAGS from configure
15573         * packihx/Makefile.in: use LDFLAGS
15574         * src/Makefile.in: use LDFLAGS
15575         * support/cpp2/Makefile.in: add LDFLAGS from configure
15576         * support/makebin/Makefile: use LDFLAGS
15577         * .version: bumped version number to 2.3.5
15578
15579 2003-04-12  Borut Razem <borut.razem AT siol.net>
15580
15581         * completed "different paths" task:
15582         * src/SDCCmacro.c: fixed bug in handling quotes
15583         * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
15584         * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
15585
15586 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
15587
15588         * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
15589
15590 2003-04-11 kevin Vigor <kevin AT vigor.nu>
15591
15592         * ds390/gen.c ds390/peeph.def: fix bug 706781
15593
15594 2003-04-11  Borut Razem <borut.razem AT siol.net>
15595
15596         * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
15597
15598 2003-04-10  Scott Dattalo  <scott AT dattalo.com>
15599
15600         * src/pic/* Applied the pointer-to-function patch from Steve Tell.
15601         * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
15602          set - this bit used to not be set...).
15603         * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
15604           bad code in PIC Port
15605         * src/regression/and2.c added to test bug 609268
15606         * src/regression/Makefile added and2.c to regression test
15607
15608
15609 2003-04-08    <johan AT CP255758-A>
15610
15611         * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
15612         * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
15613         * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
15614
15615 2003-04-07  Bernhard Held <bernhard AT bernhardheld.de>
15616
15617         * configure.in: fully support prefix, exec_prefix, datadir, docdir;
15618         fix bug #487815
15619         * support/cpp2/Makefile.in: fix bug #487815
15620         * configure: rebuilt from configure.in
15621         * Makefile.common.in: docdir changed, new path suffixes
15622         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
15623         * sdcc_vc_in.h: reflect changes from sdccconf.h
15624         * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
15625         * src/SDCCutil.h: remove BINDIR hack
15626         * doc/sdccman.lyx: update new path hierarchy
15627
15628 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
15629
15630         * src/SDCCpeeph.c: added okToRemoveSLOC test
15631
15632 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
15633
15634         * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
15635
15636 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
15637
15638         * src/SDCCpeeph.c: added labelIsReturnOnly test
15639         * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
15640
15641 2003-04-05    <johan AT balder>
15642
15643         * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
15644         * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
15645         * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
15646         * src/SDCCast.c: fixed a warning
15647         * src/SDCCast.h: fixed a warning
15648         * src/SDCCicode.c (operandFromAst): fixed a warning
15649
15650 2003-04-04    <johan AT balder>
15651
15652         * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
15653         * src/SDCCast.c (decorateType): fixed bug #715076
15654         * src/SDCC.y: fixed bug #702907
15655
15656 2003-04-03    <johan AT balder>
15657
15658         * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
15659         * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
15660         * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
15661         * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
15662         * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
15663
15664 2003-04-03  Bernhard Held <bernhard AT bernhardheld.de>
15665
15666         * _decdptr.c: fix return values
15667         * _gptrget.c: fix return values
15668         * _gptrgetc.c: fix return values
15669         * _gptrput.c: fix return values
15670         * _mulint.c: fix return values
15671         * as/z80/Makefile: fix 'make -j' problem
15672
15673 2003-04-02  Bernhard Held <bernhard AT bernhardheld.de>
15674
15675         * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
15676         * configure.in: big cleanup, updated to autoconf 2.5x
15677         * configure: rebuilt from configure.in
15678         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
15679         * sdcc_vc_in.h: reflect changes from sdccconf.h
15680         * doc/Makefile: fixed a flaw in "make install"
15681
15682 2003-04-02    <johan AT balder>
15683
15684         * src/ds390/gen.c (genCmp): no comments
15685         * src/mcs51/gen.c (genCmp): no comments
15686         * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
15687         * src/SDCCast.c (ast_print): fixed the function type in --dumptree
15688
15689 2003-04-01  Bernhard Held <bernhard AT bernhardheld.de>
15690
15691         * support/regression/generate-cases.py: place generated file in given sub directory
15692         * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
15693         * support/regression/Makefile: improvements for 'make -j';
15694         side effect: it's simpler and faster now
15695
15696 2003-03-31  Borut Razem <borut.razem AT siol.net>
15697
15698         * src/z80/main.c: link-{port} and as-{port} defined without path
15699         * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
15700
15701 2003-03-31  Bernhard Held <bernhard AT bernhardheld.de>
15702
15703         * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
15704
15705 2003-03-30  Borut Razem <borut.razem AT siol.net>
15706
15707         * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
15708           changed type of list parameter to set
15709         * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
15710         * src/port.h: changed type of do_assemble() parameter to set
15711         * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
15712           sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
15713           definition of "cppoutfilename" macro with NULL value in preProcess()
15714         * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
15715         * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
15716         * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
15717           replaced with set *binPathSet
15718         * shash_add() deallocates the item, if allready exsists, before adding the new one
15719         * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
15720
15721 2003-03-30  Scott Dattalo  <scott AT dattalo.com>
15722
15723         * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
15724           a nested for loop bug in the PIC port
15725         * src/regression/nestfor.c: new regression test file Steve wrote to test nested
15726           for loops
15727
15728 2003-03-29  Bernhard Held <bernhard AT bernhardheld.de>
15729
15730         * support/Util/dbuf.h: remove C++ stuff to make it portable
15731
15732 2003-03-28  Borut Razem <borut.razem AT siol.net>
15733
15734         * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
15735           literal strings in stringLiteral()
15736         * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
15737         * src/Makefile.bcc, src/Makefile.in, src/src.dsp: added support/Util/dbuf.c
15738           to the project
15739
15740 2003-03-27  Paul Stoffregen <paul AT pjrc.com>
15741
15742         * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
15743
15744 2003-03-26    <johan AT balder>
15745
15746         * src/mcs51/gen.c (saveRegisters): catched symbol abuse
15747         * src/ds390/gen.c (saveRegisters): catched symbol abuse
15748         * src/SDCCast.c (decorateType): fixed " -v < 3"
15749
15750 2003-03-23  Bernhard Held <bernhard AT bernhardheld.de>
15751
15752         * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
15753         Added Lenny Story's debug infrastructure changes:
15754         * src/Makefile.in:  added new files cdbFile.c and SDCCdebug.c
15755         * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
15756         * src/cdbFile.c: added
15757         * src/SDCCdebug.c: added
15758         * src/SDCCdebug.h: added
15759         * src/SDCCast.c (createFunction)
15760         * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
15761         * src/SDCCmain.c (parseCmdLine, main)
15762         * src/SDCCmem.c (redoStackOffsets)
15763         * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
15764         * src/SDCCsymt.h
15765         * src/common.h
15766         * src/avr/gen.c (genAVRCode)
15767         * src/ds390/gen.c (gen390Code)
15768         * src/mcs51/gen.c (gen51Code)
15769         * src/pic/gen.c (genpic14Code)
15770         * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
15771         * src/xa51/gen.c (genXA51Code)
15772         * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
15773
15774 2003-03-22  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15775
15776         * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
15777         * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
15778
15779 2003-03-22    <johan AT balder>
15780
15781         * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
15782
15783 2003-03-21  Bernhard Held <bernhard AT bernhardheld.de>
15784
15785         * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
15786         * doc/cdbfileformat.lyx: added, written by Lenny Story
15787         * doc/Makefile: added cdbfileformat.lyx
15788         * doc/clean.mk: added cdbfileformat.lyx
15789
15790 2003-03-20  Bernhard Held <bernhard AT bernhardheld.de>
15791
15792         * src/mcs51/peeph.def: fix bug #705773
15793
15794 2003-03-20    <johan AT balder>
15795
15796         An sfr/sbit can have an "at #" AND an initializer
15797         * src/SDCCsymt.c (checkSClass):
15798         * src/SDCCmem.c (allocGlobal):
15799         * src/SDCCmem.c (allocLocal):
15800         * src/SDCCast.c (createBlock):
15801
15802 2003-03-17  Bernhard Held <bernhard AT bernhardheld.de>
15803
15804         * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
15805
15806 2003-03-16    <johan AT balder>
15807
15808         Undid the hackup of const and volatile, the problem is much bigger
15809         * src/SDCC.y:1.65
15810         * src/SDCCast.c:1.171
15811         * src/SDCCglue.c:1.138
15812         * src/SDCCicode.c:1.146
15813         * src/SDCCsymt.c:1.150
15814         * src/SDCCval.c:1.65
15815
15816 2003-03-15  Bernhard Held <bernhard AT bernhardheld.de>
15817
15818         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
15819         * src/ds390/gen.c (genAddrOf): fixed bug #704087
15820
15821 2003-03-13    <johan AT balder>
15822
15823         Hackup const and volatile modifiers in type chains a bit:
15824         * src/SDCC.y:1.63
15825         * src/SDCCast.c:1.169
15826         * src/SDCCglue.c:1.136
15827         * src/SDCCicode.c:1.143
15828         * src/SDCCsymt.c1.146
15829         * src/SDCCsymt.h1.59
15830         * src/SDCCval.c:1.63
15831
15832 2003-03-12    <johan AT balder>
15833
15834         * src/SDCCBBlock.h: more LRH debugging junk
15835         * src/SDCCcflow.h: more LRH debugging junk
15836         * src/SDCCloop.c: more LRH debugging junk
15837         * src/SDCC.y (struct_declaration): fixed bug #697590
15838         * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
15839         * src/ds390/gen.c (aopForRemat): fixed bug #700031
15840         * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
15841
15842 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
15843         * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
15844         test function names must now match exactly).
15845         * src/SDCCcse.c: added special case in findCheaperOp to allow
15846         extending a short integer. Makes less awful code for bug 700121 test case.
15847
15848 2003-03-11  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15849
15850         * as/mcs51/lkmain.c: Added ASlink-Warning to messages
15851         * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
15852
15853 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
15854
15855         * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
15856         actually called (operandsNotEqual() was called for all
15857         operandsNotEqualX tests).
15858
15859 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
15860
15861         * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
15862         with shorter literals. Fixes bug 700121.
15863
15864 2003-03-11    <johan AT balder>
15865
15866         * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
15867
15868 2003-03-11  Bernhard Held <bernhard AT bernhardheld.de>
15869
15870         * src/SDCCloop.c (mergeRegions): an evil beast is dead
15871         * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
15872
15873 2003-03-10  Borut Razem <borut.razem AT siol.net>
15874
15875         * src/SDCCmain.c: pipe preprocessor's output
15876         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
15877         * sdcc_vc_in.h: define pclose as _pclose for WIN32
15878         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
15879         which closes all pipes in pipeSet set
15880         * src/SDCCset.c: free deleted item in function deleteSetItem()
15881         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
15882         moved from z80 to src subproject
15883         * .version: increased version number to 2.3.4
15884
15885 2003-03-10  Bernhard Held <bernhard AT bernhardheld.de>
15886
15887         * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
15888         * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
15889         * support/regression/ports/xa51/spec.mk: fix typo
15890
15891 2003-03-09  Bernhard Held <bernhard AT bernhardheld.de>
15892
15893         * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
15894
15895 2003-03-09  Borut Razem <borut.razem AT siol.net>
15896
15897         * src/SDCCmain.c: pipe preprocessor's output
15898         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
15899         * sdcc_vc_in.h: define pclose as _pclose for WIN32
15900         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
15901         which closes all pipes in pipeSet set
15902         * src/SDCCset.c: free deleted item in function deleteSetItem()
15903         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
15904         moved from z80 to src subproject
15905
15906 2003-03-09  Borut Razem <borut.razem AT siol.net>
15907
15908         * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
15909         * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
15910         * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
15911         * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
15912         * src/SDCCglobl.h: unification of WIN32 native definitions
15913
15914 2003-03-09  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15915
15916         * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
15917
15918 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
15919
15920         * src/configure.in:   check for endianess (even while cross-compiling)
15921         * src/configure:      check for endianess (even while cross-compiling)
15922         * src/configure_in.h: check for endianess (even while cross-compiling)
15923         * src/avr/gen.c:        remove old endianess stuff
15924         * src/mcs51/gen.c:      remove old endianess stuff
15925         * src/ds390/gen.c:      remove old endianess stuff
15926         * src/pic/gen.c:        remove old endianess stuff
15927         * src/pic/genarith.c:   remove old endianess stuff
15928         * src/pic/glue.c:       fix endianess check
15929         * src/pic16/gen.c:      remove old endianess stuff
15930         * src/pic16/genarith.c: remove old endianess stuff
15931         * src/pic16/glue.c:     fix endianess check
15932         * src/xa51/gen.c:       remove old endianess stuff
15933         * src/z80/gen.c:        fix endianess check
15934         * src/SDCCglue.c:       fix endianess check
15935         * src/ds390/peeph.def: fix bug 700036
15936
15937 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
15938
15939         * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
15940         * src/configure: find appropriate data-types on host for SDCC's int and long
15941         * src/configure.in: find appropriate data-types on host for SDCC's int and long
15942         * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
15943         * src/xa51/gen.c: use %d, not %ld for 4 byte variables
15944
15945 2003-03-07    <johan AT balder>
15946
15947         Just a big NOOP:
15948                 some minor cleanups before the big shot
15949                 OP_DEFS and OP_USES now use Kevin's protection
15950                 new option --nolabelopt
15951
15952         * src/SDCCBBlock.c:
15953         * src/SDCCast.c,:
15954         * src/SDCCcflow.c:
15955         * src/SDCCcse.c:
15956         * src/SDCCicode.c:
15957         * src/SDCCicode.h:
15958         * src/SDCClabel.c:
15959         * src/SDCCloop.c:
15960         * src/SDCCmain.c:
15961         * src/ds390/ralloc.c:
15962         * src/mcs51/ralloc.c:
15963         * src/pic/ralloc.c:
15964         * src/xa51/ralloc.c:
15965         * src/z80/ralloc.c:
15966
15967 2003-03-06  Bernhard Held <bernhard AT bernhardheld.de>
15968
15969         * src/pic/pcode.c (get_op): fix 64 bit warnings
15970         * src/pic/pcode.c (pCode2str): fix 64 bit warnings
15971         * src/SDCChasht.c (newHashTable): fix 64 bit warnings
15972         * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
15973         * support/regression/tests/malloc.c: fix 64 bit warnings
15974
15975 2003-03-04  Bernhard Held <bernhard AT bernhardheld.de>
15976
15977         * src/mcs51/gen.c (genMinus): fixed bug 696436
15978
15979 2003-03-02  Borut Razem <borut.razem AT siol.net>
15980
15981         * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
15982
15983 2003-02-26  Bernhard Held <bernhard AT bernhardheld.de>
15984
15985         * configure.in: test for mkstemp
15986         * sdccconf_in.h: add HAVE_MKSTEMP
15987
15988 2003-02-24  Bernhard Held <bernhard AT bernhardheld.de>
15989
15990         * device/include/ctype.h: removed warning while using --stack-auto
15991         * device/include/malloc.h: removed warning while using --stack-auto
15992         * device/include/string.h: removed warning while using --stack-auto
15993
15994 2003-02-23  Borut Razem <borut.razem AT siol.net>
15995
15996         * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
15997         because NDEBUG is defined (see man assert)
15998         * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
15999
16000 2003-02-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
16001
16002         * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
16003         * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
16004
16005 2003-02-18  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
16006
16007         * src/SDCCpeeph.c: added peephole conditions testing for same arguments
16008         * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
16009
16010 2003-02-18    <johan AT balder>
16011
16012         * as/mcs51/asmain.c (asmbl): module can start with a digit
16013         * as/z80/asmain.c (asmbl): module can start with a digit
16014
16015 2003-02-16  Bernhard Held <bernhard AT bernhardheld.de>
16016
16017         * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
16018         * src/asm.c: fix pipe() for Mingw32
16019
16020 2003-02-15  Bernhard Held <bernhard AT bernhardheld.de>
16021
16022         * src/SDCCglue.h: make tmpfileNameSet available for preOutName
16023         * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
16024         make -V work again; --c1mode reads now from stdin
16025         * doc/sdccman.lyx: added --c1mode
16026         * support/Util/SDCCerr.c: new messages for c1 mode
16027         * support/Util/SDCCerr.h: new messages for c1 mode
16028         * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
16029
16030 2003-02-15    <johan AT balder>
16031
16032         * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
16033
16034 2003-02-14  Bernhard Held <bernhard AT bernhardheld.de>
16035
16036         * doc/sdccman.lyx: Environment variables, -o and other minor things
16037
16038 2003-02-14    <johan AT balder>
16039
16040         * src/xa51/main.c: before anyone really tries to use it :)
16041
16042         * Install doc's in share/sdcc/doc
16043         * removed some obsolete files
16044         * Do a proper make distclean and uninstall
16045         M Makefile.common.in
16046         R sdccbuild.sh
16047         M as/Makefile
16048         M device/include/Makefile.in
16049         M device/lib/Makefile.in
16050         M doc/sdccman.lyx
16051         M link/Makefile
16052         M sim/ucsim/doc/Makefile.in
16053         M src/clean.mk
16054         R src/avr/peeph.rul
16055         R src/xa51/peeph.rul
16056         M support/cpp2/Makefile.in
16057         M support/makebin/Makefile
16058
16059
16060 2003-02-13  Bernhard Held <bernhard AT bernhardheld.de>
16061
16062         * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
16063
16064 2003-02-10  Borut Razem <borut.razem AT siol.net>
16065
16066         * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
16067         support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
16068         * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
16069         device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
16070         support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
16071         src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
16072         src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
16073         src/z80/Makefile.bcc: Borland Makefile cleanup
16074         * as/z80/Makefile.bcc: Added Borland Makefile
16075         * support/cpp2/borland.h: Removed
16076
16077 2003-02-10  Bernhard Held <bernhard AT bernhardheld.de>
16078
16079         * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
16080         * src/SDCC.lex: new pragma NOIV
16081         * src/SDCCglobl.h: new pragma NOIV
16082         * src/SDCCmem.c: new pragma NOIV
16083
16084 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
16085
16086         * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
16087
16088 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
16089
16090         * src/SDCCmain.c: signal handling is switched off by --debug
16091         * doc/Makefile: small fix for install; use clean.mk again
16092         * doc/clean.mk: clean *.pdf and *.html too
16093
16094 2003-02-08  Bernhard Held <bernhard AT bernhardheld.de>
16095
16096         * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
16097         * device/lib/printfl.c: fix a ds390 bug by making it portable
16098         * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
16099         * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
16100         * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
16101         * debugger/mcs51/cmd.c: converted multi-line string literals
16102         * sim/ucsim/globals.cc: converted multi-line string literals
16103         * src/SDCCmain.c: introduced signal handler to remove temp files
16104         * doc/Makefile: small tweaks, implement clean
16105         * doc: removed generated files
16106
16107 2003-02-05  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16108
16109         * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
16110         patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
16111         Address Record is not correctly generated for DS390."
16112
16113 2003-02-02  Borut Razem <borut.razem AT siol.net>
16114
16115         * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
16116         * as/mcs51/asm.h: fixed compilation with Borland C
16117         * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
16118         * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
16119         * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
16120         * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
16121         src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
16122         src/z80/Makefile.bcc: delete $(LIB) only if exist
16123         * src/Makefile.bcc, src/pic/Makefile.bcc:  fixed compilation with Borland C
16124
16125 2003-02-02  Bernhard Held <bernhard AT bernhardheld.de>
16126
16127         * device/include/malloc.h: introduced NULL
16128         * device/include/string.h: introduced NULL
16129         * device/include/stdlib.h: introduced NULL
16130         * device/lib/_memcpy.c: removed NULL
16131         * device/lib/_strcat.c: removed NULL
16132         * device/lib/_strchr.c: removed NULL
16133         * device/lib/_strcmp.c: removed NULL
16134         * device/lib/_strcpy.c: removed NULL
16135         * device/lib/_strcspn.c: removed NULL
16136         * device/lib/_strlen.c: removed NULL
16137         * device/lib/_strncat.c: removed NULL
16138         * device/lib/_strncmp.c: removed NULL
16139         * device/lib/_strncpy.c: removed NULL
16140         * device/lib/_strpbrk.c: removed NULL
16141         * device/lib/_strrchr.c: removed NULL
16142         * device/lib/_strspn.c: removed NULL
16143         * device/lib/_strstr.c: removed NULL
16144         * device/lib/_strtok.c: removed NULL
16145         * device/lib/malloc.c: removed NULL, include own header
16146
16147 2003-02-02    <johan AT balder>
16148
16149         * 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
16150         * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
16151         * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
16152         * src/z80/gen.c (genZ80Code): added c-lines in asm comments
16153         * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
16154         * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
16155
16156 2003-02-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16157
16158         * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
16159         area 'DATA'"
16160
16161 2003-02-01    <johan AT balder>
16162
16163         * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
16164
16165 2003-01-31    <johan AT CP255758-A>
16166
16167         * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
16168
16169 2003-01-30    <johan AT balder>
16170
16171         * src/SDCCBBlock.c: automatic bug detection
16172         * src/SDCCicode.c: automatic bug detection
16173
16174 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16175
16176         * src/SDCCglobl.h:   now --xram-size 0 works
16177         * src/SDCCmain.c:    now --xram-size 0 works
16178
16179 2003-01-29    <johan AT balder>
16180
16181         * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
16182
16183 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16184
16185         * as/mcs51/aslink.h: Added options --xram-size and --code-size
16186         * as/mcs51/lkdata.c: Added options --xram-size and --code-size
16187         * as/mcs51/lkmain.c: Added options --xram-size and --code-size
16188         * as/mcs51/lkmem.c:  Added options --xram-size and --code-size
16189         * src/SDCCglobl.h:   Added options --xram-size and --code-size
16190         * src/SDCCmain.c:    Added options --xram-size and --code-size
16191
16192 2003-01-28  Bernhard Held <bernhard AT bernhardheld.de>
16193
16194         * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
16195         * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
16196
16197 2003-01-27    <johan AT balder>
16198
16199         * src/SDCC.y: fixed bug #613764
16200
16201 2003-01-26    <johan AT balder>
16202
16203         * src/SDCClrange.c:  fixed Bernhard's "char * code ptr = &c"
16204         * src/SDCCsymt.h: fixed bug #673374
16205         * src/SDCCglue.c: fixed bug #661910
16206         * src/SDCCast.c: fixed bug #458099 and 673374
16207
16208 2003-01-26  Bernhard Held <bernhard AT bernhardheld.de>
16209
16210         * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
16211         * as/mcs51/strcmpi.h: added
16212         * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
16213         * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
16214         * as/mcs51/asmain.c: strcmpi -> as_strcmpi
16215         * as/mcs51/assym.c: strcmpi -> as_strcmpi
16216         * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
16217         * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
16218         * as/mcs51/lksym.c: strcmpi -> as_strcmpi
16219         * as/mcs51/Makefile.aslink: new module strcmpi
16220         * as/mcs51/Makefile.asx8051: new module strcmpi
16221         * as/mcs51/Makefil.bcc: new module strcmpi
16222         * as/mcs51/Makefile.in: new module strcmpi
16223         * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
16224
16225 2003-01-26    <johan AT balder>
16226
16227         * src/SDCCglue.c: reverted back to 1.124
16228         * src/SDCCast.c: reverted back to 1.156
16229         * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
16230
16231 2003-01-25    <johan AT balder>
16232
16233         * src/SDCCglue.c: A better fix for bug #661910
16234         * src/SDCCast.c: A better fix for bug #661910
16235         * src/SDCCglue.c (emitRegularMap): That was a little too efficient
16236
16237 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
16238
16239         * src/Makefile.in: remove spawn.o
16240         * src/SDCCmain.c: remove spawn.h
16241         * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
16242         * src/spawn.c: removed
16243         * src/spawn.h: removed
16244         * support/regression/ports/ds390/spec.mk: link with -r
16245
16246 2003-01-24    <johan AT CP255758-A>
16247
16248         * src/ds390/gen.c (aopOp): fixed bug #667458
16249         * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
16250         * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
16251         (createIvalCharPtr): an ival doesn't always have a storage class anymore
16252
16253 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
16254
16255         * src/mcs51/peeph.def: better assembler identation by Frieder
16256         * src/mcs51/gen.c: better assembler identation by Frieder
16257
16258 2003-01-22  Bernhard Held <bernhard AT bernhardheld.de>
16259
16260         * as/z80/string.h: removed for gcc 3.2
16261         * support/makebin/makebin.c: #include <string.h> for gcc 3.2
16262         * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
16263
16264 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
16265
16266         * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
16267         * src/SDCCpeeph.c (replaceRule): fix bug #663503
16268         * support/regression/Makefile: separate temp files for ports
16269         * support/regression/generate-cases.py: separate temp files for ports
16270         * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
16271         * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
16272
16273 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
16274
16275         * moved tinitalk to device/examples/ds390
16276
16277 2003-01-14  Bernhard Held <bernhard AT bernhardheld.de>
16278
16279         * as/mcs51/lkmem.c: rflag is for DS390
16280         * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
16281         * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
16282                          (linkEdit): move mem- and map-files the same way as ihx-files
16283         * src/z80/main.c (_setDefaultOptions): removed --generic
16284         * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
16285         * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
16286         * src/pic/glue.c (picglue): --c1mode works again
16287         * src/pic16/glue.c (pic16glue): --c1mode works again
16288         * src/asm.c (printCLine): fix #660034
16289
16290 2003-01-13  Bernhard Held <bernhard AT bernhardheld.de>
16291
16292         * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
16293         * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
16294         * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
16295         * as/mcs51/lkmem (summary): better fix for sp problem
16296         * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
16297         * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
16298         * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
16299                                               remove --stack-after-data
16300
16301 2003-01-12  Bernhard Held <bernhard AT bernhardheld.de>
16302
16303         * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
16304         * src/SDCCutil.c (join): ugly bug: missing '\0'
16305         * as/mcs51/lkmem.c (summary): sp on address 7 is safe
16306
16307 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
16308
16309         * src/SDCCmain.c (assemble, linkEdit): preparations for -o
16310         * src/port.h: typo
16311         * src/pic/main.c (_asmCmd): gpasm supports -o
16312         * src/z80/main.c: more general macros
16313         * device/lib/Makefile.in: remove intermediate files
16314
16315 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
16316
16317         * .version: Bumped version number to 2.3.3
16318         * src/SDCCBBlock.c: new option -o
16319         * src/SDCCglobl.h: new option -o
16320         * src/SDCCglue.c: new option -o
16321         * src/SDCCmain.c: new option -o
16322         * src/asm.c: new option -o
16323         * src/ds390/main.c: new option -o
16324         * src/pic/glue.c: new option -o
16325         * src/pic/pcode.c: new option -o
16326         * src/pic/ralloc.c: new option -o
16327         * src/pic16/glue.c: new option -o
16328         * src/pic16/pcode.c: new option -o
16329         * src/pic16/ralloc.c: new option -o
16330         * src/z80/main.c: new option -o
16331         * device/lib/Makefile.in: use -o
16332         * support/regression/ports/ds390/spec.mk: use -o
16333         * support/regression/ports/gbz80/spec.mk: use -o
16334         * support/regression/ports/mcs51/spec.mk: use -o
16335         * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
16336         * support/regression/ports/z80/spec.mk: use -o
16337         * support/regression/ports/ucz80/spec.mk: use -o
16338         * support/regression/ports/xa51/spec.mk: use -o
16339         * support/regression/fwk/lib/timeout.c: fix usage string
16340
16341 2003-01-09  Bernhard Held <bernhard AT bernhardheld.de>
16342         * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
16343
16344 2003-01-07    <johan AT balder>
16345
16346         * src/SDCCast.c (decorateType): fixed bug #600035
16347
16348 2003-01-07  Bernhard Held <bernhard AT bernhardheld.de>
16349         * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
16350         * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
16351         * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
16352         * src/pic/pcode.c: outcommented unused variable to remove warnings
16353         * src/pic/ralloc.c: outcommented unused variable to remove warnings
16354
16355 2003-01-06    <karl AT turbobit.com>
16356         * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
16357         regression tests.
16358
16359 2003-01-06    <johan AT balder>
16360
16361         * src/SDCCicode.c: fixed array add
16362
16363 2002-01-05  Bernhard Held <bernhard AT bernhardheld.de>
16364         * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
16365         * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
16366
16367 2003-01-04    <johan AT balder>
16368
16369         * src/SDCCval.c (getNelements): fixed the initialized array of structures
16370
16371 2002-12-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16372         * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
16373
16374 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
16375         * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
16376         * support/regression/tests/bug-524697.c: fit mem usage into 8032
16377
16378 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
16379         * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
16380
16381 2002-12-27  Bernhard Held <bernhard AT bernhardheld.de>
16382         * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
16383
16384 2002-12-26  Bernhard Held <bernhard AT bernhardheld.de>
16385         * src/mcs51/main.c: removed {bindir}{sep} from aslink
16386
16387 2002-12-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16388
16389         * in /sdcc/as/mcs51/ changed these files in order to create an
16390         aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
16391         lkmain.c.  Also added: lkmem.c and lkaomf51.c.  Changed the
16392         following files to include the previous two files: aslink.dsp,
16393         Makefile.aslink, Makefile.bcc, and Makefile.in.
16394
16395         * Changed /sdcc/src/SDCCmain.c so it creates files with extension
16396         .adb instead of .cdb
16397
16398 2002-11-09  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16399
16400         * /sdcc/as/mcs51/lklist.c: Now reports memory usage using the
16401         value from option --iram-size.
16402
16403 2002-09-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16404
16405         * /sdcc/as/mcs51/lklist.c: added boundary check before using
16406         dram[] array.
16407
16408 2002-09-18    <wiml AT hhhh.org>
16409
16410         * SDCClrange.h: exposed setFromRange() and setToRange()
16411         * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
16412           packRegsForAccUse() (bug 542397)
16413         * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
16414           multiple times and emitting the fetch operations more than once
16415           added aopGetUsesAcc() function to allow binary operators to
16416           fetch their operands in the correct order; made genMinus() emit
16417           compact code for X = LITERAL - Y
16418
16419 2002-09-00  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16420         * /sdcc/as/mcs51/lklist.c: Fixed incorrect number of parameters to
16421         sprintf() in line 1267.
16422
16423 2002-09-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16424         * /sdcc/src/SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
16425         like ports.
16426
16427 2002-09-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16428         Changes to aslink (All the changes are marked with 'JCF'):
16429
16430         * /sdcc/as/mcs51/aslink.h: External definition of sflag and
16431         summary().
16432
16433         * /sdcc/as/mcs51/lkarea.c: Computes the size of area BSEG_BYTES from
16434         area BSEG.  Also moves, if possible, the DATA area down into the internal
16435         ram so more space is available.
16436
16437         * /sdcc/as/mcs51/lkdata.c: Definition of memory summary output flag
16438         sflag.
16439
16440         * /sdcc/as/mcs51/lklist.c: For the BSEG area report the size in bits,
16441         not bytes.  Function summary() which creates a memory usage summary
16442         file with extension .mem.  Reports of overlaping stack and small stack
16443         size.  If the space for the stack is less than 16 bytes aslink trows a
16444         warning.
16445
16446         * /sdcc/as/mcs51/lkmain.c: Creation of some of the default areas for
16447         the 8051.  Option 'y' for memory summary output file.
16448
16449         Changes to sdcc (All the changes are marked with 'JCF'):
16450
16451         * /sdcc/src/SDCCglobl.h: External definition of RegBankUsed[4].
16452
16453         * /sdcc/src/SDCCglue.c:  If a register bank is used, creates an
16454         overlaying area for it (uses RegBankUsed[4]).
16455
16456         * /sdcc/src/SDCCmain.c: Definition RegBankUsed[4]; marks register
16457         bank zero as used by default.  By default aslink locates the stack
16458         (equivalent to --stack-after-data).  Pass option 'y' to aslink for
16459         the creation of the .mem file.  Delegates the allocation of data area
16460         to aslink (it is not longer 0x30 by default).  If --stack-loc passes
16461         the begining of the stack area to aslink.
16462
16463         * /sdcc/src/SDCCmem.c:  If a register bank is used, marks it so
16464         glue() in SDCCglue.c creates an area for it.
16465
16466 2002-09-03  Borut Razem <borut.razem AT siol.net>
16467         * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
16468         sdcc/src/pic/glue.c:
16469         introduced atexit() handler for teporay files removal in case of
16470         errors, assertions, ...
16471
16472 2002-08-29  Borut Razem <borut.razem AT siol.net>
16473         * sdcc/support/cpp2/auto-host_vc_in.h:
16474         re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
16475         with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
16476         Maybe there is a similar problem with BORLANDC? It should be checked!
16477
16478         * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
16479         corrected improper use of assert: the assignment to clr variable was done inside the assert.
16480         In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
16481         was not executed, and the compiler (cl) launched a warning:
16482         ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
16483
16484 2002-08-28  Bernhard Held <bernhard AT bernhardheld.de>
16485         * src/SDCCglue.c (printIvalArray): iterative calculation of array length
16486
16487 2002-08-28  Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
16488         * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
16489
16490         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
16491           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
16492           sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
16493           sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
16494           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
16495           sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
16496           sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
16497         - added Release configuration in VS projects
16498         - review of compiler an linker options
16499         - VC .exe files are generated in bin_vc directory, not to interfere
16500           with binaries generated from other projects (cygwin, mingw, bcc ...)
16501
16502         * sdcc/src/yacc.dsp: added
16503
16504         * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
16505         added - genarate sdcc_vc.h using sdcc_vc_in.h as template
16506         and insert the version number definitions from .version
16507
16508         * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
16509
16510         * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
16511         added - genarate auto-host.h using auto-host_vc_in.h as template
16512
16513         * sdcc/sdcc_vc.h,
16514         removed from CVS, generated automatically
16515
16516 2002-08-25  Bernhard Held <bernhard AT bernhardheld.de>
16517         * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
16518
16519 2002-08-11  Borut Razem <borut.razem AT siol.net>
16520         * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
16521
16522 2002-08-10  Borut Razem <borut.razem AT siol.net>
16523         * src/SDCCmain.c (main):
16524         file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
16525         platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
16526         The consequence was that some temporary files were not removed.
16527
16528         * src/SDCCglue.c:
16529         unification of code in functions tempfilename() and tempfile():
16530         function tempnam() is defined in Visual Studio 6.0 and .NET
16531
16532         * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
16533
16534         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
16535           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
16536         - removed compiler command line option /WX: Treats all warnings as errors
16537         - update a list of source files, included into the project
16538
16539         * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
16540           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
16541         changed project type to Generic Project so that can be correcly converted to VS.NET project
16542
16543         * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
16544
16545         * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
16546
16547         * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
16548
16549         * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
16550         added return 0 statements after assert() to make compiler happy
16551
16552         * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
16553         added newline in the def file to keep MSC compiler satisfied
16554
16555         * sdcc/src/z80/gen.c:
16556         - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
16557           so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
16558         - solved MSC error in function aopDump()
16559
16560         * sdcc_vc.h: define PREFIX as "\\sdcc"
16561
16562 2002-07-18  Bernhard Held <bernhard AT bernhardheld.de>
16563         * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
16564
16565 2002-06-22  Scott Dattalo <scott AT dattalo.com>
16566         * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
16567         - Rewrote the register banking algorithm.
16568         - Added pCode live-range analysis to registers (for now, only non-used and
16569         singly-used registers optimized away)
16570
16571         * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
16572
16573         * 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.
16574
16575 2002-05-10  Scott Dattalo <scott AT dattalo.com>
16576         * src/pic/*: Added support for multiplication. Fixed many,many bugs.
16577
16578 2002-04-22  Michael Hope  <michaelh AT vroom>
16579
16580         * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
16581
16582         * configure.in (DD_COPT): Added include support required for gbdk.
16583
16584         * .version: Bumped version number just to increase it.
16585
16586         * src/SDCCmain.c: Added -nostdinc to the default options.
16587
16588 2002-04-15  Michael Hope  <michaelh AT vroom>
16589
16590         * device/lib/z80/printf.c (sprintf): Added.
16591
16592         * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
16593
16594         * src/z80/peeph.def: Added transpose redundent load rule.
16595
16596         * src/z80/main.c: Added force callee saves for jaune.
16597
16598         * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
16599
16600         * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
16601
16602 2002-03-28  Johan Knol  <johan AT balder>
16603
16604         * src/SDCCval.c: fixed bug #532436
16605
16606 2002-03-14  Scott Dattalo <scott AT dattalo.com>
16607         * /src/port.h:
16608         Added "char *Processor" field to the port structure.
16609
16610         * /src/SDCCmain.c:
16611         Added -p option. Allows port dependent processor to be specified.
16612
16613         * all ports:
16614         Initialized the new field char *Processor field to NULL in all ports
16615
16616         * /src/pic/*:
16617         Compiler generated registers for interrupt context saving
16618         were not getting allocated.
16619
16620 2002-03-16  Sandeep Dutta  <sandeep AT ddi.com>
16621
16622         * /src/SDCCast.c:
16623         Fixed left shift. Will promote the left side of a left shift
16624         if a) left shifting more than size of operand or b) when assigned
16625         to something size > size of left side
16626
16627 2002-03-14  Scott Dattalo <scott AT dattalo.com>
16628         * src/pic/*
16629         tons of changes. Register allocation has been
16630         rewritten. Added customization for the various PICs. Flow
16631         analysis is restructured. ...
16632
16633         * src/pic/device.h:
16634         Added
16635
16636         * src/pic/device.c:
16637         Added. device.c is a PIC port hack to accomodate variations
16638         in PIC devices.
16639
16640 2002-03-13  Michael Hope  <michaelh AT vroom>
16641
16642         * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled.  Yeah.
16643
16644 2002-03-04  johanknol  <johanknol AT manik>
16645
16646         * /src/SDCCval.c: fixed
16647
16648         const unsigned char arr[][2] = { { 0, 1 } };
16649         t18.c:1: error: Initializer element is not constant
16650
16651 2002-03-04  bela  <bela AT manik>
16652
16653         * /device/include/mcs51reg.h:
16654         ds89c420 register definition update
16655
16656 2002-03-03    <johan AT FRIJA>
16657
16658         * support/Util/SDCCerr.c: did something, but don't no why anymore
16659
16660         * support/regression/tests/bug-524691.c: made it a little less shy
16661
16662         * src/SDCCast.c (decorateType): fixed bug #524697
16663
16664         * src/SDCCast.c: made some lineno improvements
16665
16666         * src/SDCCval.c (getNelements): changed warning to error
16667
16668         * src/SDCCglue.c (printIvalArray): changed warning to error
16669
16670         * src/SDCCicode.c: fixed a warning for mingw
16671
16672         * src/SDCCast.c (decorateType): fixed the << promotion for ops
16673
16674         * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
16675
16676 2002-03-02  Sandeep Dutta  <sandeep AT ddi.com>
16677
16678         * src/ds390/peeph.def:
16679         Added some more peephole rules
16680
16681         * src/ds390/gen.c: Various fixes & enhancements
16682
16683         * src/SDCClrange.c, src/SDCClrange.h:
16684         functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
16685
16686         * src/ds390/ralloc.c:
16687         various fixes & enhancements (ds390) specific
16688
16689         * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
16690         Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
16691         from rallocs.
16692
16693         * sdcc/src/SDCCcse.c: Better fix for bug # 514308
16694
16695 2002-03-02    <johan AT FRIJA>
16696
16697         * src/SDCCast.c (decorateType): fixed bug #524708
16698
16699         * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
16700
16701         * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
16702
16703 2002-03-01  Michael Hope  <michaelh AT vroom>
16704
16705         * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
16706
16707         * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
16708
16709 2002-03-01    <johan AT FRIJA>
16710
16711         * src/SDCCglue.c (printIvalPtr): fixed bug #524211
16712
16713         * src/SDCCast.c (decorateType): fixed bug #524209
16714
16715         * src/SDCCval.c (valNot): fixed bug #524195
16716
16717 2002-02-26    <johan AT balder>
16718
16719         * src/xa51/gen.c: fixed a warning
16720
16721         * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
16722
16723         * src/SDCCast.c (decorateType): fixed bug #522534
16724
16725 2002-02-23    <johan AT balder>
16726
16727         * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
16728
16729 2002-02-22    <johan AT balder>
16730
16731         * src/SDCCast.c: fixed bug #514865
16732
16733         * src/SDCCy.c ("SDCC.y"): fixed bug #516625
16734
16735 2002-02-21  Sandeep Dutta  <sandeep AT ddi.com>
16736
16737         * sdcc/src/SDCCloop.c:
16738         Previous fix was not good. basic blocks that have "break" or "return" are
16739         not really partof a loop , but live ranges used in these blocks should
16740         be live thru the entire loop, so set partOfLoop but don't add them to
16741         loop region
16742
16743 2002-02-21    <johan AT FRIJA>
16744
16745         * src/SDCCcse.c: fixed bug #514308
16746
16747 2002-02-20  Sandeep Dutta  <sandeep AT ddi.com>
16748
16749         * src/SDCCloop.c:
16750         Fixed BUG #519583. If a conditional block ended in a return/break
16751         statement inside a loop, it was not being considered part of the loop.
16752
16753         * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
16754
16755 2002-02-10  Karl Bongers <karl AT turbobit.com>
16756
16757         * debugger/*:
16758         Fixed up SDCDB debugger somewhat.  Updated debugger/README
16759         with lots of comments and notes.
16760
16761         * device/examples/test2.c:
16762         Fix bug, "red" variable not being initialized(compiler complained).
16763
16764         * device/examples/Makefile, examples/test3.c:
16765         Add Makefile in device/examples folder, compiles test3.c
16766         for use as a multiple module SDCDB test case.
16767
16768         * sim/ucsim/cmd.src/cmdset.cc:
16769         Took out debug printfs in ucsim "next" command.
16770
16771         * sim/ucsim/xa.src:
16772         Karl and Johan start ucsim XA support.  Most dissassembly working,
16773         about 75% emulation done(plenty of work remaining).
16774
16775         * sim/ucsim/z80.src:
16776         Add Z80 support to ucsim, add test-ucz80 regression test,
16777         notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
16778         Notice z80 compiler fails on examples/test3.c/crc code.
16779
16780 2002-01-30  Sandeep Dutta  <sandeep AT ddi.com>
16781
16782         * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
16783         Added support for --parms-in-bank1
16784
16785         * src/ds390/peeph.def:
16786         added a few more peephole optimzations
16787
16788         * src/ds390/main.c:
16789         1) added __builtin_inp & __builtin_outp used to read in data of given length
16790            from a memory mapped port
16791         2) added __builtin_memcmp
16792         3) added __builtin_swapw swap bytes of a short
16793
16794         * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
16795         1) handle multiple send & receives from register bank1
16796         2) ralloc can now allocate DPTR1 to some liveRanges
16797
16798         * src/SDCCsymt.c, src/SDCCsymt.h:
16799         changes to handle multiple sends & receives
16800
16801         * src/SDCCptropt.h:
16802         added some pointer arithmetic optimization
16803
16804         * src/SDCCptropt.c:
16805         added some pointer arithmetic optimizations but not stable yet so not
16806         called from anywhere (will get this working shortly)
16807
16808         * src/SDCCopt.c: fixed for multiple sends & receives
16809
16810         * src/SDCCmain.c:
16811         1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
16812         2) preprocessing done AFTER port->finalizeoptions . This allows ports to
16813            set preprocessor defines (depending on options)
16814
16815         * src/SDCCicode.c, src/SDCCicode.h:
16816         changes made to handle multiple sends & receives
16817
16818         * src/SDCCglobl.h:
16819         Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
16820
16821         * src/SDCCcse.c, src/SDCCcse.h:
16822         added function findbackward def (to be used in upcoming optimization)
16823
16824         * src/SDCCcflow.c, src/SDCCcflow.h:
16825         added function returnAtEnd - to determine if a basic block terminates with
16826         a RETURN iCode
16827
16828         * src/SDCCast.c, src/SDCCast.h:
16829         added option parms-in-bank1
16830
16831         * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
16832         * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
16833         * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
16834         adjusted for --parms-in-bank1 option
16835
16836         * device/include/string.h:
16837         donot redefine "reentrant" keyword
16838
16839         * device/include/ds80c390.h: Added some more SFRs
16840
16841 2002-01-28  Bernhard Held  <bernhard AT bernhardheld.de>
16842
16843         * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
16844
16845 2002-01-26  Bernhard Held  <bernhard AT bernhardheld.de>
16846
16847         * src/SDCCast.c (funcOfType): fix usage of double --float-reent
16848
16849 2002-01-22  Bernhard Held  <bernhard AT bernhardheld.de>
16850
16851         * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
16852
16853 2002-01-18  Paul Stoffregen  <paul AT pjrc.com>
16854
16855         * Added --xram-movc option
16856
16857 2002-01-13  Bernhard Held  <bernhard AT bernhardheld.de>
16858
16859         * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
16860
16861 2002-01-11  Johan Knol
16862
16863         * Added math lib of Jesus Calvino-Fraga
16864
16865 2002-01-08  Bernhard Held  <bernhard AT bernhardheld.de>
16866
16867         * src/SDCCmain.c (processFile): fix processing of ../../src.c
16868         * support/regression/Makefile: new target test-mcs51-stack-auto
16869         * support/regression/ports/mcs51-stack-auto/spec.mk: added
16870
16871 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
16872
16873         * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
16874
16875 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
16876
16877         * support/regression/ports/mcs51/support.c: correct setup of timer / UART
16878
16879 2002-01-03  Bernhard Held  <bernhard AT bernhardheld.de>
16880
16881         * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
16882
16883         * src/SDCCglue.h: add definition for printIvalChar()
16884
16885 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
16886
16887         * src/SDCCast.c: fix #498138 by Johan
16888
16889         * src/SDCCglue.c: fix #498138 by Johan
16890
16891 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
16892
16893         * support/regression/Makefile: fix clean
16894
16895         * support/regression/ports/ds390/support.c: fix transmission of last character
16896
16897 2001-12-29  Sandeep Dutta  <sandeep AT ddi.com>
16898
16899         * /sdcc/src/ds390/gen.c:
16900         a) improved computing address of stack variable
16901         b) took out some #if 0 code
16902         c) improved parmBytes adjustment
16903         d) improved genPlusIncr & genMinusIncr
16904         e) genCmp could generate bad code (when left assigned to DPTR)
16905         f) Fixed bug in hasInc
16906
16907         * /sdcc/src/ds390/ralloc.c:
16908         a) packRegsForSupport could mess up live information (Fixed)
16909         b) packRegsDPTRuse could be incorrect for left & right shift
16910
16911         * /sdcc/src/mcs51/ralloc.c:
16912         packRegsForSupport could mess up the live information (Fixed)
16913
16914         * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
16915
16916         * /sdcc/src/SDCCast.c:
16917         can reverse a loop even if function call is present as long
16918         as the loop control variable is local & is not passed as parameter
16919
16920 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
16921
16922         * /sdcc/ChangeLog: *** empty log message ***
16923
16924         * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
16925         More builtin function additions for TININative
16926
16927         * /sdcc/src/ds390/ralloc.c:
16928         Had broken the regression testsuite
16929
16930         * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
16931
16932         * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
16933         Added funcattr hasStackParms will be set for reentrant functions when there
16934         are paramteres on the stack, this helps in minimizing frame pointer generation
16935         typeFromStr can handle function pointers now
16936
16937         * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
16938         *** empty log message ***
16939
16940 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
16941
16942         * /src/ds390/gen.c, /src/ds390/main.c:
16943         More builtin function additions for TININative
16944
16945         * /src/ds390/ralloc.c:
16946         Had broken the regression testsuite
16947
16948         * /src/SDCCast.c: Fixed a bug in dumptree
16949
16950         * /src/SDCCsymt.c, /src/SDCCsymt.h:
16951         Added funcattr hasStackParms will be set for reentrant functions when there
16952         are paramteres on the stack, this helps in minimizing frame pointer generation
16953         typeFromStr can handle function pointers now
16954
16955         * /doc/builtins.txt, /doc/TININative.txt:
16956         *** empty log message ***
16957
16958
16959 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
16960
16961         * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
16962         ALPHA version for -mTININative
16963
16964         * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
16965         updated to reflect changes in the port structure
16966
16967         * /src/port.h:
16968         added function do_assemble (similar to do_link) if non-null this function
16969         will be called to do assembly (-mTININative) requires a multi command
16970         assembly
16971         added function genAssemblerEnd will be called to generate assembler Epilogue
16972
16973         * /src/SDCCsymt.c:
16974         added _JavaNative to debug info printing
16975
16976         * /src/SDCCmain.c: added option --tini-libid
16977         added port->do_assemble function (-mTININative) has a multi command assemble
16978
16979         * /src/SDCCglue.c: Disabled "constExpr" check
16980         added port->genAssemblerEnd function
16981
16982         * /src/SDCCglobl.h: Added option --tini-libid value
16983
16984         * /src/SDCCast.h:
16985         tookout optimizeCompare from the header (has no external references)
16986
16987         * /src/SDCCast.c: made one more function "static"
16988
16989 2001-12-23  Michael Hope  <michaelh AT juju.net.nz>
16990
16991         * src/z80/mappings.i: Added z80asm support.
16992
16993         * src/z80/main.c: Added z80asm support on --asm=z80asm
16994
16995         * src/z80/gen.c: Fixed asm portability issues.
16996
16997         * src/asm.c (tvsprintf): Removed old code, added 'N' for function name.  For extern support.
16998
16999         * src/SDCCglue.c (printExterns): Added global/extern split.
17000
17001 2001-12-17  Bernhard Held  <bernhard AT bernhardheld.de>
17002
17003         * support/regression/Makefile: added test for mcs51 model large
17004
17005         * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
17006
17007         * support/regression/ports/gbz80/spec.mk: added -mgbz80
17008
17009 2001-12-05  Michael Hope  <michaelh AT juju.net.nz>
17010
17011         * src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.
17012
17013 1904-01-06  Michael Hope  <michaelh AT juju.net.nz>
17014
17015         * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
17016
17017         * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
17018
17019 2001-12-02  Bernhard Held  <bernhard AT bernhardheld.de>
17020
17021         * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
17022
17023         * support/regression/tests/simplefloat.c: Port to mcs51.
17024
17025 2001-11-25  Michael Hope  <michaelh AT juju.net.nz>
17026         * support/regression/tests/bug-485362.c: Added.
17027
17028         * support/regression/tests/simplefloat.c (testDivNearOne): Added.
17029
17030         * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
17031
17032         * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
17033
17034         * src/z80/gen.c (aopDump): Added a dump function.
17035
17036 2001-11-25  Bernhard Held  <bernhard AT bernhardheld.de>
17037         * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
17038
17039         * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
17040
17041         * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
17042
17043         * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
17044
17045         * sim/ucsim/s51.src/uc390cl.h: Work in progress.
17046
17047         * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
17048
17049         * support/regression/fwk/lib/testfwk.c: Run with tinibios.
17050
17051         * support/regression/ports/mcs51/spec.mk: Fine tuninig.
17052
17053         * support/regression/ports/ds390/support.c: Use tinibios.
17054
17055         * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
17056
17057 2001-11-23  Michael Hope  <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
17058
17059         * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
17060         (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
17061
17062         * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
17063
17064         * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
17065
17066 2001-11-18  Michael Hope  <michaelh AT juju.net.nz>
17067
17068         * src/z80/gen.c (genCmp): Fixed compare on unsigned.
17069
17070         * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
17071         (packRegsForIYUse): Created and optimised.
17072
17073 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
17074
17075         * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
17076 2001-11-18  Bernhard Held  <bernhard AT bernhardheld.de>
17077
17078         * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
17079
17080         * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
17081
17082         * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
17083
17084 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
17085
17086         * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
17087
17088         * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
17089
17090 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
17091
17092         * sdcc/sim/ucsim/globals.cc: New: IXRAM.
17093
17094         * sdcc/sim/ucsim/stypes.h: New: IXRAM.
17095
17096         * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
17097
17098 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
17099
17100         * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
17101         (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
17102         (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
17103
17104         * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
17105
17106         * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
17107         (genNotFloat): Added.
17108         (genUminusFloat): Added.
17109
17110         * device/lib/z80/Makefile: Added floating pt stubs.
17111
17112         * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
17113
17114         * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
17115
17116         * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
17117
17118 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
17119
17120         * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
17121
17122         * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
17123
17124         * sdcc/support/regression/Makefile: Add port ds390.
17125
17126         * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
17127
17128         * sdcc/support/regression/ports/z80/spec.mk: Minor change.
17129
17130         * sdcc/support/regression/ports/ds390/spec.mk: Added.
17131
17132         * sdcc/support/regression/ports/ds390/support.c: Added.
17133
17134         * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
17135
17136         * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
17137
17138         * sdcc/support/regression/fwk/lib/timeout.c: Paste.
17139
17140 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
17141
17142         * device/include/malloc.h: Added z80 and gbz80 support.
17143
17144         * device/lib/gbz80/heap.s: Added.
17145
17146         * device/lib/z80/heap.s: Added.
17147
17148         * device/lib/malloc.c: Added z80 and gbz80 support.
17149
17150         * support/regression/tests/malloc.c (testMalloc): Added.
17151
17152         * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
17153
17154         * support/regression/tests/bug-478094.c: Added.
17155
17156         * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
17157
17158 2001-11-04  Bernhard Held  <bernhard AT bernhardheld.de>
17159
17160         * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
17161
17162         * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
17163
17164         * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
17165
17166         * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
17167
17168         * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
17169
17170 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
17171
17172         * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
17173
17174 2001-11-03  Michael Hope  <michaelh AT juju.net.nz>
17175
17176         * support/regression/tests/bug-477927.c: Added.
17177
17178         * src/z80/peeph.def: Added minor rules.
17179
17180         * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
17181
17182         * src/z80/peeph.def: Added jump optimisation modification.
17183
17184 2001-11-01  Michael Hope  <michaelh AT juju.net.nz>
17185
17186         * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
17187
17188 2001-10-30  Michael Hope  <michaelh AT juju.net.nz>
17189
17190         * support/regression/tests/funptrs.c: Added.
17191
17192 2001-10-29  Michael Hope  <michaelh AT juju.net.nz>
17193
17194         * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
17195
17196 2001-10-28  Michael Hope  <michaelh AT juju.net.nz>
17197
17198         * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
17199
17200         * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
17201
17202         * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
17203         (movLeft2ResultLong): Created.
17204
17205         * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
17206         (joinPushes): Added.  Joins two char pushes into a word push.
17207
17208 2001-10-27  Michael Hope  <michaelh AT juju.net.nz>
17209
17210         * support/cpp2/Makefile.in (install): Added creation of dest dir.
17211
17212         * support/makebin/Makefile (install): Added creation of dest dir.
17213
17214 2001-10-24 Karl Bongers <karl AT turbobit.com>
17215
17216         * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
17217
17218 2001-10-21  Michael Hope  <michaelh AT juju.net.nz>
17219
17220         * src/z80/ralloc.c: Turned off faulty pack for one use.
17221
17222         * src/z80/peeph-gbz80.def: Removed redundent restart options.
17223
17224         * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
17225
17226 2001-10-21  Bernhard Held  <bernhard AT bernhardheld.de>
17227
17228         * support/regression/Makefile: Improved clean
17229
17230         * support/regression/ports/gbz80/spec.mk: Added clean
17231
17232         * support/regression/ports/host/spec.mk: Added clean
17233
17234         * support/regression/ports/z80/spec.mk: Added clean
17235
17236         * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
17237
17238         * support/regression/ports/mcs51/timeout.c: little improvements
17239
17240 2001-10-17  Michael Hope  <michaelh AT juju.net.nz>
17241
17242         * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
17243
17244         * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
17245
17246         * support/regression/generate-cases.py: Fixed up to use function pts correctly.
17247
17248 2001-10-16  Bernhard Held  <bernhard AT bernhardheld.de>
17249
17250         * support/regression/port/mcs51/spec.mk: add timeout for uCsim
17251
17252         * support/regression/port/mcs51/timeout.c: add timeout for uCsim
17253
17254 2001-10-13  Michael Hope  <michaelh AT juju.net.nz>
17255         * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
17256
17257         * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
17258
17259         * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
17260
17261         * src/mcs51/main.c (_linkCmd): Added bin path to command.
17262
17263         * src/SDCCmain.c (initValues): Added support for when it it called just to link.
17264
17265         * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
17266
17267         * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
17268
17269         * support/regression/tests/longor.c: Added.
17270
17271 2001-10-11  Bernhard Held  <bernhard AT bernhardheld.de>
17272
17273         * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
17274
17275         * as/mcs51/aslink.h: define PATH_MAX
17276
17277         * as/mcs51/asm.h: define PATH_MAX
17278
17279         * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
17280
17281         * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
17282
17283         * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
17284
17285         * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
17286
17287         * src/SDCCglobl.h: define PATH_MAX
17288
17289         * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
17290
17291         * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
17292
17293 2001-10-11  Michael Hope  <michaelh AT juju.net.nz>
17294
17295         * src/z80/gen.c (gencjneshort): Fixed
17296
17297         * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
17298
17299 2001-10-09  Michael Hope  <michaelh AT juju.net.nz>
17300
17301         * support/regression/tests/bug-469671.c: Added.
17302
17303         * src/z80/gen.c (shiftIntoPair): Fixed up warning.
17304
17305 2001-10-08  Michael Hope  <michaelh AT juju.net.nz>
17306
17307         * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
17308
17309         * src/z80/gen.c (genPlus): Fixed to work with extended stack.  Also fixed genMinus, genCmp.  genUMinus is still left.
17310
17311 2001-10-08  Bernhar Held  <bernhard AT bernhardheld.de>
17312
17313         * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
17314
17315         * src/device/lib/_mulint.c  : removed hint: nooverlay bug
17316
17317         * src/device/lib/_mullong.c : removed hint: nooverlay bug
17318
17319         * src/device/lib/_divuint.c : removed hint: nooverlay bug
17320
17321         * src/device/lib/_divulong.c: removed hint: nooverlay bug
17322
17323         * src/device/lib/_moduint.c : removed hint: nooverlay bug
17324
17325         * src/device/lib/_modulong.c: removed hint: nooverlay bug
17326
17327 2001-10-07  Michael Hope  <michaelh AT juju.net.nz>
17328
17329         * 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.
17330
17331         * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.
17332
17333         * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
17334
17335 2001-10-07    <johan AT FRIJA>
17336
17337         * device/lib/gets.c (gets): fixed the return value.
17338
17339 2001-10-06  Michael Hope  <michaelh AT juju.net.nz>
17340         * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
17341
17342         * 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.
17343
17344         * 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.
17345
17346         * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
17347
17348         * src/pic/gen.c: Removed Safe_strdup.
17349
17350         * configure.in: Added option to enable libgc support.
17351
17352         * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
17353         (bitVectUnion): Optimised.
17354         (bitVectIntersect): Optimised.
17355         (bitVectBitsInCommon): Optimised.
17356         (bitVectCplAnd): Optimised.
17357
17358         * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.
17359
17360 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
17361
17362         * src/SDCCmain.c: distinguish between assembler debug and plain options
17363
17364         * src/avr/main.c:   remove standard assembler options
17365
17366         * src/ds390/main.c: remove standard assembler options
17367
17368         * src/mcs51/main.c: remove standard assembler options
17369
17370         * src/port.h: removed "PENDING" comment
17371
17372 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
17373
17374         * src/device/lib/_mulint.c  : new, with assember functions
17375
17376         * src/device/lib/_mullong.c : new, with assember functions
17377
17378         * src/device/lib/_divuint.c : with assember functions
17379
17380         * src/device/lib/_divsint.c : with assember functions
17381
17382         * src/device/lib/_divulong.c: with assember functions
17383
17384         * src/device/lib/_divslong.c: with assember functions
17385
17386         * src/device/lib/_moduint.c : with assember functions
17387
17388         * src/device/lib/_modsint.c : with assember functions
17389
17390         * src/device/lib/_modulong.c: with assember functions
17391
17392         * src/device/lib/_modslong.c: with assember functions
17393
17394         * src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c
17395
17396         * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
17397
17398         * src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
17399                                       replaced _mululong.c and _mulslong.c by _mullong.c
17400
17401 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
17402
17403         * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
17404
17405 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
17406
17407         * src/SDCCglue.c: test, if win32api is available for MINGW
17408
17409 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
17410
17411         * src/SDCCsymt.c: no more _modifier in printTypeChain()
17412         * support/regression/tests/driverstruct.c: REENTRANT for mcs51
17413         * support/regression/ports/gbz80/spec.mk: removed GENERIC
17414         * support/regression/ports/host/spec.mk: removed GENERIC
17415         * support/regression/ports/mcs51/spec.mk: removed GENERIC
17416         * support/regression/ports/z80/spec.mk: removed GENERIC
17417
17418 2001-10-01  Michael Hope  <michaelh AT juju.net.nz>
17419
17420         * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
17421
17422         * support/regression/tests/bug-467035.c: Created.
17423
17424 2001-10-01    <johan AT FRIJA>
17425
17426         * src/SDCC.y: fixed bug #466586 part 1
17427
17428 2001-10-01  Johan Knol <johan.knol AT iduna.nl>
17429
17430         * SDCCicode.c: z80 has no generic pointers
17431         * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
17432
17433 2001-09-30  Michael Hope  <michaelh AT juju.net.nz>
17434
17435         * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
17436
17437 2001-09-29  Michael Hope  <michaelh AT juju.net.nz>
17438
17439         * Makefile (sdcc-libs): Added makebin to the list of standard targets.
17440
17441         * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
17442
17443 2001-09-25  Michael Hope  <michaelh AT juju.net.nz>
17444
17445         * configure.in: Fixed up so that ucsim is only configured once.
17446
17447         * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
17448
17449         * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
17450         (getPathDifference): As above.
17451
17452         * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.
17453
17454         * src/SDCCglue.c (tempfilename): Added function for pre-processor.
17455
17456 2001-09-23  Michael Hope  <michaelh AT juju.net.nz>
17457         * .version: Updated to 2.3.1
17458
17459         * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
17460         Added copyright header.
17461
17462         * src/SDCCmain.c: Shifted various functions into SDCCutil.c
17463         (assemble): Added support for macro based assembler commands.
17464         (linkEdit): Added support for macro based linker commands.
17465         (preProcess): Changed the pre-processor to use macros.
17466         (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
17467         (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
17468
17469         * device/lib/z80/crt0.s: Added module name for debugging.
17470
17471 2001-09-20  Michael Hope  <michaelh AT juju.net.nz>
17472
17473         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
17474
17475         * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
17476
17477         * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
17478
17479         * src/Makefile.in: Added SDCCmacro and SDCCutil
17480
17481 2001-09-19  Michael Hope  <michaelh AT juju.net.nz>
17482
17483         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
17484
17485 2001-09-16    <johan AT FRIJA>
17486
17487         * 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.
17488
17489 2001-09-15    <johan AT FRIJA>
17490
17491         * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
17492         * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
17493
17494 2001-09-11    <johan AT FRIJA>
17495
17496         * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
17497
17498 2001-09-10  Michael Hope  <michaelh AT juju.net.nz>
17499
17500         * support/regression/tests/bug-460444.c: Added test case.
17501
17502         * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
17503         (genCast): Added justification for all of the asserts.
17504
17505 2001-09-10  Bernhard Held <bernhard AT bernhardheld.de>
17506
17507         * support/regression/support.c: _xdata replaced by xdata
17508
17509         * support/regression/spec.mk: removed _generic
17510
17511 2001-09-09  Michael Hope  <michaelh AT juju.net.nz>
17512
17513         * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
17514
17515         * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
17516         (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
17517
17518         * src/z80/peeph.def: Added a rule to optimise shift then compare.
17519
17520         * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
17521
17522         * support/regression/tests/bug-460010.c: Added test case.
17523
17524         * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
17525
17526 2001-09-09  Bernhard Held <bernhard AT bernhardheld.de>
17527
17528         * support/regression/Makefile: inter-port-clean adjusted for mcs51
17529
17530         * support/regression/testfwk.c: removed workaround for bug #436344
17531
17532         * support/regression/tests/bp.c: use less memory with mcs51
17533
17534         * support/regression/tests/bug-441448.c: use less memory
17535
17536         * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
17537
17538         * support/regression/collate-results.py: typo
17539
17540 2001-09-08  Michael Hope  <michaelh AT juju.net.nz>
17541
17542         * support/regression/tests/fetchoverlap.c: Added new test case.
17543
17544         * support/regression/tests/bp.c: Added new test case.
17545
17546         * support/regression/tests/bug-448984.c: Added new test case.
17547
17548         * support/regression/tests/pow2shifts.c: Added new test case.
17549
17550         * src/z80/gen.c: Turned off the noise it normally generates for the release.
17551         (genlshTwo): Fixed right shift for count > 8.
17552
17553         * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
17554
17555 2001-09-08    <johan AT FRIJA>
17556
17557         * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
17558
17559 2001-09-07    <johan AT FRIJA>
17560
17561         * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
17562
17563         * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
17564
17565 2001-09-06    <johan AT FRIJA>
17566
17567         * src/SDCC.y: this could be a fix for bug #458744 (1.37)
17568         * bernhard noted me at this: "() equals to (void)" (1.38)
17569
17570 2001-09-05    <johan AT FRIJA>
17571
17572         * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
17573
17574 2001-09-04    <johan AT FRIJA>
17575
17576         * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
17577
17578
17579 2001-09-04  Paul Stoffregen  <paul AT pjrc.com>
17580
17581         * pragma noinduction broke memcpy on mcs51 large model.  Moved it inside z80 optimization
17582
17583 2001-09-03  Michael Hope  <michaelh AT juju.net.nz>
17584
17585         * link/z80/aslink.h: Fixed path for PATH_MAX
17586
17587 2001-09-02  Michael Hope  <michaelh AT juju.net.nz>
17588
17589         * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
17590
17591         * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
17592
17593         * support/regression/tests/uminus.c: Added a test for the unary minus operator.
17594
17595         * 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.
17596
17597 2001-09-01  Michael Hope  <michaelh AT juju.net.nz>
17598
17599         * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
17600         (genCmp): Fixed up genCmp for the GB with longs.
17601
17602         * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
17603
17604         * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
17605
17606         * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
17607
17608         * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
17609
17610 2001-08-30  Paul Stoffregen  <paul AT pjrc.com>
17611
17612         * added peepholes 223 to 231 to mcs51 port.  These improve code when using large model.
17613
17614 2001-08-30  Michael Hope  <michaelh AT juju.net.nz>
17615
17616         * 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.
17617
17618         * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
17619
17620 2001-08-29  Michael Hope  <michaelh AT juju.net.nz>
17621
17622         * link/z80/aslink.h: Fixed long file name support.  Is now based off PATH_MAX instead of a constant.
17623
17624         * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
17625
17626 2001-08-30 Bernhard Held   <bernhard AT bernhardheld.de>
17627
17628         * sim/ucsim/configure:    little improvement of Cygwin-detection
17629         * sim/ucsim/configure.in: little improvement of Cygwin-detection
17630         * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
17631         * support/regression/tests/bug-221100.c: small changes for mcs51
17632         * support/regression/tests/bug-221168.c: small changes for mcs51
17633         * support/regression/tests/bug-227710.c: small changes for mcs51
17634         * support/regression/tests/staticinit.c: small changes for mcs51
17635         * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
17636         * as/mcs51/lklex.c:  accept everything as symbol name in rel-files, bug fix ID 452601
17637         * as/mcs51/lksym.c:  accept everything as symbol name in rel-files, bug fix ID 452601
17638
17639 $Revision$