7faafa69f981646f9b03abab7e32855b5aec3278
[fw/sdcc] / ChangeLog
1 2009-04-03 Philipp Klaus Krause <pkk AT spth.de>
2
3         * src/z80/peeph-z80.def:
4           Reenabled peephole 0t.
5
6 2009-04-03 Philipp Klaus Krause <pkk AT spth.de>
7
8         * src/z80/gen.c:
9           Fixed bugs #2728224, #2728218.
10           src/z80/peeph-z80.def:
11           Workaround for bug #2728445.
12           support/regression/tests/memory.c:
13           Added test for memcmp().
14
15 2009-04-03 Philipp Klaus Krause <pkk AT spth.de>
16
17         * device/lib/z80/mul.s,
18           device/lib/z80/memmove.s,
19           device/lib/z80/strlen.s:
20           Minor improvements, code cleanup and license clarification.
21
22 2009-04-01 Philipp Klaus Krause <pkk AT spth.de>
23
24         * device/lib/z80/mul.s: 
25           Minor improvement in Z80 16x16 bit multiplication.
26
27 2009-03-23 Borut Razem <borut.razem AT siol.net>
28
29         * src/SDCCval.c, src/SDCCmain.c, device/include/limits.h,
30           device/include/pic/limits.h, device/include/pic16/limits.h,
31           device/lib/_fs2schar.c, device/lib/pic/libsdcc/fs2schar.c,
32           device/lib/pic16/libsdcc/float/fs2schar.c, doc/sdccman.lyx,
33           support/regression/tests/funsigned-char.c:
34           applied patch 2704189: character constant sign fix
35           thanks to Robert Larice
36
37 2009-03-22 Borut Razem <borut.razem AT siol.net>
38
39         * Small Device C Compiler 2.9.0 released
40         * .version, doc/sdccman.lyx: changed sdcc version to 2.9.1
41
42 2009-03-15 Borut Razem <borut.razem AT siol.net>
43
44         * support/scripts/repack_release.sh: added
45
46 2009-03-13 Borut Razem <borut.razem AT siol.net>
47
48         * doc/sdccman.lyx: "freeware" replaced with "free open source"
49
50 2009-03-12 Borut Razem <borut.razem AT siol.net>
51
52         * src/z80/peep.c: #2652979: --debug crashes sdcc
53
54 2009-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
55
56         * src/SDCCglue.c,
57           support/regression/tests/bug2655200.c:
58           applied modified patch from Robert Larice <larice AT vidisys.de>
59           fixing original report of bug #2655200: pointer to pdata memory
60           not correctly initialized
61
62 2009-03-11 Borut Razem <borut.razem AT siol.net>
63
64         * as/asranlib/asranlib.c: retain the original file mode
65
66 2009-03-10 Borut Razem <borut.razem AT siol.net>
67
68         * src/mcs51/gen.c, src/z80/gen.c, src/hc08/gen.c, src/ds390/gen.c,
69           support/regression/tests/bug1875933.c:
70           fixed bug #1875933: Evelyn jumps into the void
71           thanks to Robert Larice
72
73 2009-03-10 Raphael Neider <rneider AT web.de>
74
75         * src/pic16/pcode.c (LinkFlow): fix invalid cast from pCodeLabel
76           to pCodeInstruction to avoid a segmentation fault
77
78 2009-03-03 Borut Razem <borut.razem AT siol.net>
79
80         * device/lib/printf_large.c: fixed bug #2656821: bug in printf
81
82 2009-03-03 Raphael Neider <rneider AT web.de>
83
84         * device/lib/pic/libdev/Makefile.in: build device-specific
85           libraries for the correct processor, fixes #2654585
86
87 2009-03-01 Raphael Neider <rneider AT web.de>
88
89         * device/lib/Makefile.in: fixed parallel builds (i.e., make -jN, N>1)
90
91 2009-03-01 Borut Razem <borut.razem AT siol.net>
92
93         * src/z80/peep.c: fixed bug #2648964: --i-code-in-asm crashes sdcc
94         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
95           changed sdcc version to 2.9.0
96
97 2009-03-01 Maarten Brock <sourceforge.brock AT dse.nl>
98
99         * src/mcs51/ralloc.c (spillThis, spilSomething): fixed bug 2435941
100           (serialRegAssign): do not spil bit registers
101           throughout cosmetic changes
102         * support/regression/tests/bug2435941.c: new, added
103
104 2009-02-28 Raphael Neider <rneider AT web.de>
105
106         * src/regression/compare10.c,
107           src/regression/compare7.c,
108           src/regression/compare8.c,
109           src/regression/compare9.c: reset watchdog timer in time
110         * src/regression/configword.c: apply patch from #2488150
111         * src/pic/glue.c (pic14createInterruptVect): pin RESET vector
112           handler to 0x0000 as the linker no longer knows STARTUP sections
113         * src/pic/pcode.c (register_reassign, ReuseReg): applied modified
114           patch #2512926 to (mostly) fix #1762626, cosmetic changes
115         * src/pic/pcodepeep.c: remove reference to nonexisting function
116
117 2009-02-28 Raphael Neider <rneider AT web.de>
118
119         * device/include/pic16/signal.h: avoid multiline inline
120           assembler statements in macros, addresses #2644965
121
122 2009-02-27 Raphael Neider <rneider AT web.de>
123
124         * device/include/pic16/pic18f[24][3456]k20.h,
125           device/include/pic16/pic18f[68][567]j50.h,
126           device/include/pic16/pic18f[68]6j55.h,
127           device/lib/pic16/libdev/pic18f[24][3456]k20.c,
128           device/lib/pic16/libdev/pic18f[68][567]j50.c,
129           device/lib/pic16/libdev/pic18f[68]6j55.c,
130           device/include/pic16/pic18fregs.h,
131           device/include/pic16/pic16devices.txt,
132           device/lib/pic16/pics.all,
133           device/lib/pic16/libdev/Makefile.am,
134           device/lib/pic16/libio/Makefile.am: added/re-enabled many device
135           families (87j50 family contributed by Robert Wuest)
136
137         * device/include/pic16/adc.h,
138           device/lib/pic16/libio/adc/adcbusy.c,
139           device/lib/pic16/libio/adc/adcclose.c,
140           device/lib/pic16/libio/adc/adcconv.c,
141           device/lib/pic16/libio/adc/adcopen.c,
142           device/lib/pic16/libio/adc/adcsetch.c: added 65j50-style ADC
143
144         * doc/sdccman.lyx: updated list of supported devices, fixed typo
145         * device/lib/pic16/Makefile.common: do not suppress assembler warnings
146
147         * device/lib/pic16/Makefile.in,
148           device/lib/pic16/libm/Makefile.in,
149           device/lib/pic16/debug/Makefile.in,
150           device/lib/pic16/libio/Makefile.in,
151           device/lib/pic16/startup/Makefile.in,
152           device/lib/pic16/libsdcc/Makefile.in,
153           device/lib/pic16/libdev/Makefile.in,
154           device/lib/pic16/libc/Makefile.in: regenerated
155
156 2009-02-27 Borut Razem <borut.razem AT siol.net>
157
158         * as/z80/asexpr.c, as/z80/z80mch.c: re-fixed bugs
159           #1829678 and #1704376 in the way proposed by Alan Baldwin
160
161 2009-02-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
162
163         * device/include/mcs51/at89c51ed2.h: Fixed address of SFR P5. Thanks
164           to Steve Qu for the fix.
165
166 2009-02-23 Borut Razem <borut.razem AT siol.net>
167
168         * as/z80/asexpr.c: fixed bug #1829678: Z-80 CP A,<xxx> assembly
169           it is already fixed for mcs51 and hc08 targets
170         * as/z80/z80mch.c: fixed bug #1704376: missing as-z80 errors
171
172 2009-02-22 Borut Razem <borut.razem AT siol.net>
173
174         * device/lib/Makefile.in: fixed parenthesis error
175         * doc/sdccman.lyx: fixed webdocs bug #2071421: error in the manual,
176           fixed webdocs bug #1967920: --version
177
178 2009-02-18 Maarten Brock <sourceforge.brock AT dse.nl>
179
180         * device/include/mcs51/at89c51ed2.h: fixed bug #2071949 bitmask RBCK wrong
181
182 2009-02-17 Maarten Brock <sourceforge.brock AT dse.nl>
183
184         * as/link/mcs51/lkihx.c (hexRecord): bugfix do not insert extended address
185           when addresses are unsorted
186
187 2009-02-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
188
189         * device/include/mcs51/p89v66x.h: added ENBOOT thanks
190           Gudjon Gudjonsson <gudjon AT gudjon.org>
191         * device/include/mcs51/p89c66x.h: fixed some defines
192         * device/include/mcs51/p89v66x.h: fixed some sbit addresses
193         * doc/sdccman.lyx: added <NO FLOAT> to index, try to reanimate
194           svn keywords
195
196 2009-02-14 Borut Razem <borut.razem AT siol.net>
197
198         * doc/sdccman.lyx: corrected cpp info
199
200 2009-02-13 Borut Razem <borut.razem AT siol.net>
201
202         * as/Makefile.in: *.doc renamed to *.txt
203
204 2009-02-11 Borut Razem <borut.razem AT siol.net>
205
206         * as/doc/aslnk.doc, as/doc/abstra.doc: renamed to *.txt
207         * as/doc/aslnk.txt, as/doc/asxhtml.html: changed licens to GPLv3
208
209 2009-02-11 Borut Razem <borut.razem AT siol.net>
210
211         * doc/sdccman.lyx: documented ar format libraries
212
213 2009-02-10 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
214
215         * support/regression/tests/float_single.c: added regression
216           test. Some testpoints for probably rarely used functions
217           (acosf, sinhf, tanf, expf) disabled for some targets
218
219 2009-02-10 Raphael Neider <rneider AT web.de>
220
221         * src/pic16/gen.c (pic16_freeAsmop): avoid NULL pointer dereference,
222           (genAssign): fixed for operands on the stack
223
224         * device/lib/pic16/libc/stdio/vfprintf.c,
225           device/lib/pic16/configure.ac,
226           device/lib/pic16/Makefile.common: add configurable support for
227           printing floats via ./configure --enable-floats
228         * device/lib/pic16/configure,
229           device/lib/pic16/Makefile.in,
230           device/lib/pic16/libm/Makefile.in,
231           device/lib/pic16/debug/Makefile.in,
232           device/lib/pic16/libio/Makefile.in,
233           device/lib/pic16/startup/Makefile.in,
234           device/lib/pic16/libsdcc/Makefile.in,
235           device/lib/pic16/libdev/Makefile.in,
236           device/lib/pic16/libc/Makefile.in: regenerated
237         * doc/sdccman.lyx: documented float support and how to get it
238         * doc/Makefile.in: fixed race condition on parallel builds
239
240         * device/lib/pic16/libc/stdio/sprintf.c,
241           device/lib/pic16/libc/stdio/vsprintf.c: do not mess up the user's
242           pointer to the string buffer, enlarge buffer for x_ftoa()
243
244 2009-02-10 Borut Razem <borut.razem AT siol.net>
245
246         * device/lib/printf_tiny.c: replaced non-C89 comments '//' with '/* */'
247
248 2009-02-10 Raphael Neider <rneider AT web.de>
249
250         * device/include/pic16/pic18f*.h: add bit aliases in INTCONbits_t
251
252 2009-02-09 Raphael Neider <rneider AT web.de>
253
254         * src/pic16/pcode.c (assignToSameBank): add force argument to ignore
255           artificial bank size limits for compound data (structs, arrays),
256           avoids assert if --obanksel=N, N > 1, is given
257
258 2009-02-09 Borut Razem <borut.razem AT siol.net>
259
260         * as/asranlib/asranlib.c, link/lkar.c: don't check the padding bytes since
261           the openSUSE GNU ar (GNU Binutils; openSUSE 11.0) 2.18.50.20080409-11.1
262           uses '`' character instead '\n' for padding
263         * as/asranlib/asranlib.c: made it more robust
264
265 2009-02-08 Borut Razem <borut.razem AT siol.net>
266
267         * as/COPYING3: added
268         * support/scripts/sdcc.nsi: added COPYING3.txt to the package
269         * device/lib/Makefile.in: reenable floating point in model-xstack-auto
270           libraries
271
272 2009-02-07 Borut Razem <borut.razem AT siol.net>
273
274         * as/asranlib/asranlib.c: fixed BSD header length calculation
275         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.9
276           due sdcc asxxxx license change to GPLv3
277
278 2009-02-05 Borut Razem <borut.razem AT siol.net>
279
280         * as/asranlib/asranlib.c, link/lkar.h, link/lkar.c:
281           added support for BSD (Mac OS X) ar format
282         * as/asxxsrc/aslex.c, as/as/asxxsrc/asnoice.c, as/as/asxxsrc/assym.c,
283           as/as/hc08/asdata.c, as/hc08/asexpr.c, as/hc08/aslist.c,
284           as/hc08/asm.h, as/hc08/asmain.c, as/hc08/asout.c, as/hc08/assubr.c,
285           as/hc08/m08adr.c, as/hc08/m08ext.c, as/hc08/m08mch.c,
286           as/hc08/m08pst.c, as/hc08/m6808.h, as/link/aslink.h,
287           as/link/hc08/lkarea.c, as/link/hc08/lkelf.c, as/link/hc08/lkihx.c,
288           as/link/hc08/lkmain.c, as/link/hc08/lkmem.c, as/link/hc08/lkrloc.c,
289           as/link/hc08/lks19.c, as/link/lkaomf51.c, as/link/lkdata.c,
290           as/link/lkeval.c, as/link/lkhead.c, as/link/lklex.c, as/link/lklib.c,
291           as/link/lklibr.c, as/link/lklibr.h, as/link/lklist.c,
292           as/link/lknoice.c, as/link/lkrel.c, as/link/lkrel.h,
293           as/link/lksdcclib.c, as/link/lkstore.c, as/link/lksym.c,
294           as/link/mcs51/lkarea.c, as/link/mcs51/lkihx.c,
295           as/link/mcs51/lkmain.c, as/link/mcs51/lkmem.c,
296           as/link/mcs51/lkrloc.c, as/link/mcs51/lks19.c, as/link/z80/lkarea.c,
297           as/link/z80/lkgb.c, as/link/z80/lkgg.c, as/link/z80/lkihx.c,
298           as/link/z80/lkmain.c, as/link/z80/lkrloc.c, as/link/z80/lks19.c,
299           as/mcs51/asdata.c, as/mcs51/asexpr.c, as/mcs51/aslist.c,
300           as/mcs51/asm.h, as/mcs51/asmain.c, as/mcs51/asout.c,
301           as/mcs51/assubr.c, as/mcs51/i51adr.c, as/mcs51/i51ext.c,
302           as/mcs51/i51mch.c, as/mcs51/i51pst.c, as/mcs51/i8051.h,
303           as/xa51/xa_link.c, as/xa51/xa_main.c, as/xa51/xa_main.h,
304           as/xa51/xa_rasm.l, as/xa51/xa_rasm.y, as/xa51/xa_version.h,
305           as/z80/asdata.c, as/z80/asexpr.c, as/z80/aslist.c, as/z80/asm.h,
306           as/z80/asmain.c, as/z80/asout.c, as/z80/assubr.c, as/z80/z80.h,
307           as/z80/z80adr.c, as/z80/z80ext.c, as/z80/z80mch.c, as/z80/z80pst.c:
308           changed license to GPL either version 3, or (at your option) any
309           later version
310
311 2009-02-05 Borut Razem <borut.razem AT siol.net>
312
313         * as/asranlib/asranlib.c, link/lkar.h, link/lkar.c:
314           added support for BSD (Mac OS X) ar format
315
316 2009-02-02 Borut Razem <borut.razem AT siol.net>
317
318         * device/lib/gbz80/Makefile.in, device/lib/hc08/Makefile.in,
319           device/lib/z80/Makefile.in:
320           chose source files in the PORT directory if they are available
321
322 2009-02-01 Raphael Neider <rneider AT web.de>
323
324         * device/lib/pic16/libdev/pic18f1220.c,
325         * device/lib/pic16/libdev/pic18f4450.c:
326           define SSPBUF to allow use of printf
327
328 2009-02-01 Borut Razem <borut.razem AT siol.net>
329
330         * device/lib/Makefile.in, device/lib/gbz80/Makefile.in,
331           device/lib/hc08/Makefile.in, device/lib/incl.mk,
332           device/lib/z80/Makefile.in:
333           don't remake libraries
334         * support/regression/tests/snprintf.c:
335           reenable floating point in small-xstack-auto library
336
337 2009-01-26 Raphael Neider <rneider AT web.de>
338
339         * src/pic16/ralloc.c (packForPush): disabled to fix #2496919
340
341 2009-01-25 Raphael Neider <rneider AT web.de>
342
343         * src/pic16/main.c (_pic16_linkEdit): prepend -L paths to linker
344           search path instead of appending them
345
346 2009-01-24 Borut Razem <borut.razem AT siol.net>
347
348         * as/asranlib/asranlib.h: changed type of offset to unsigned int to
349           make it work on ppc Mac OS X (off_t is 64 bit and is not converted
350           to 32 bit unsigned int when calling sputl() since it is a macro
351         * as/link/lkar.c: changed the initialization of This->loaded
352
353 2009-01-23 Borut Razem <borut.razem AT siol.net>
354
355         * as/link/lkar.h: changed type of ar_size to size_t to make it work on
356           ppc Mac OS X (off_t is 64 bit and is not converted to 32 bit
357           unsigned int when calling new(), since asxxxx doesn't use function
358           prototypes)
359
360 2009-01-21 Borut Razem <borut.razem AT siol.net>
361
362         * as/link/lkar.h: sgetl and sputl are independent of endianness
363         * as/link/sdxxxx_config.h.in: removed endianness detection
364
365 2009-01-20 Borut Razem <borut.razem AT siol.net>
366
367         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.8
368           due creation of ar format libraries
369         * support/scripts/sdcc.nsi:
370           don't add nonexistent object files to the package
371
372 2009-01-19 Borut Razem <borut.razem AT siol.net>
373
374         * Makefile.in, configure.in, configure,
375           device/lib/Makefile.in, device/lib/ds390/Makefile.in,
376           device/lib/ds400/Makefile.in, device/lib/gbz80/Makefile.in,
377           device/lib/hc08/Makefile.in, device/lib/large/Makefile.in,
378           device/lib/mcs51/Makefile.in, device/lib/medium/Makefile.in,
379           device/lib/small/Makefile.in,
380           device/lib/z80/Makefile.in: create ar format libraries
381         * support/regression/ports/mcs51-xstack-auto/spec.mk:
382           use device/lib/Makefile to create library
383         * support/regression/tests/snprintf.c:
384           floating point is not enabled in small-xstack-auto library
385         * device/lib/libfloat.lib, device/lib/libint.lib,
386           device/lib/liblong.lib, device/lib/libsdcc.lib: removed
387
388 2009-01-18 Borut Razem <borut.razem AT siol.net>
389
390         * support/cpp/auto-host.h: fixed warning: "__STDC__" redefined,
391           warning: extra tokens at end of #endif directive
392
393 2009-01-11 Borut Razem <borut.razem AT siol.net>
394
395         * Makefile.in: added SDCC_ASRANLIB to PKGS
396
397 2009-01-10 Borut Razem <borut.razem AT siol.net>
398
399         * support/scripts/sdcc.nsi: added asranlib.exe to the install package
400         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.7
401           due added support for ar format libraries
402
403 2009-01-09 Borut Razem <borut.razem AT siol.net>
404
405         * as/asranlib/Makefile.in, as/asranlib/asranlib.dsp,
406           as/asranlib/asranlib.c: added asranlib
407         * as/link/lkar.c, as/link/lkar.h: added support for ar format libraries
408         * Makefile.in, as/link/hc08/Makefile.in,
409           as/link/hc08/link_hc08.dsp, as/link/lklib.c, as/link/lklibr.c,
410           as/link/lklibr.h, as/link/lkrel.c, as/link/lkrel.h,
411           as/link/lksdcclib.c, as/link/mcs51/Makefile.in,
412           as/link/mcs51/aslink.dsp, as/link/z80/Makefile.in,
413           as/link/z80/linkgbz80.dsp, as/link/z80/linkz80.dsp, configure,
414           configure.in, sdcc.dsw: modified to support ar format libraries
415
416 2009-01-08 Maarten Brock <sourceforge.brock AT dse.nl>
417
418         * src/SDCCast.c (decorateType RETURN): use RESULT_TYPE_GPTR for generic
419           pointer return
420
421 2009-01-05 Philipp Klaus Krause <pkk AT spth.de>
422
423         * sim/ucsim/z80.src/inst_ed.cc:
424           Fixed bug #2488074, which made regression tests fail.
425
426 2009-01-05 Philipp Klaus Krause <pkk AT spth.de>
427
428         * device/lib/z80/mod.s,
429           device/lib/z80/div.s,
430           device/lib/z80/mulchar.s,
431           device/lib/z80/mul.s,
432           device/lib/z80/divsigned.s,
433           device/lib/z80/Makefile.in:
434           Implemented RFE #1702376.
435
436 2009-01-05 Borut Razem <borut.razem AT siol.net>
437
438         * as/link/lksdcclib.c:
439           fixed linker hanging in INDEXLIB is not defined (hc08)
440
441 2009-01-04 Philipp Klaus Krause <pkk AT spth.de>
442
443         * src/z80/gen.c:
444           Implemented RFE #2485684, and some further improvements of HL caching
445           including a bugfix.
446         * src/z80/peeph-z80.def:
447           Fixed a bug exposed by implementing RFE #2485684.
448
449 2009-01-04 Philipp Klaus Krause <pkk AT spth.de>
450
451         * src/z80/peeph-z80.def:
452           Peephole improvements.
453         * src/z80/gen.c,
454           src/z80/main.c,
455           device/include/string.h,
456           device/lib/z80/memmove.s:
457           Minor code cleanup.
458         * device/lib/z80/Makefile.in,
459           device/lib/Makefile.in,
460           support/regression/tests/memory.c,
461           device/lib/z80/strlen.s:
462           Partially implemented RFE #2471534.
463
464 2009-01-04 Borut Razem <borut.razem AT siol.net>
465
466         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.6
467           due changes in sdcc asxxxx linkers - it sholud be done 2 days ago :(
468         * doc/README.txt: updated John Hartman's e-mail address
469         * as/link/lkrel.c, as/link/lksdcclib.c:
470           fixed bug #2484677: Linker hangs
471         * src/z80/peep.c: fixed msvc warning C4047:
472           'return' : 'int ' differs in levels of indirection from 'char *'
473         * config.dsp: as/lib corrected to as/link
474
475 2009-01-04 Philipp Klaus Krause <pkk AT spth.de>
476
477         * src/z80/peep.c:
478           Implemented RFE #2484693.
479         * src/z80/peeph-z80.def:
480           Some peephole improvements.
481
482 2009-01-03 Borut Razem <borut.razem AT siol.net>
483
484         * as/link/lklibr.c:
485           fixed warning: 'ret' may be used uninitialized in this function
486
487 2009-01-02 Borut Razem <borut.razem AT siol.net>
488
489         * as/link/lklib.c, as/link/lksdcclib.c, as/link/lklibr.h,
490           as/link/getline.[ch], as/link/lkrel.[ch]: added,
491           made support for differnet library formats more flexible,
492           preparation for support of ar format
493         * as/link/lklibr.c, as/link/z80/Makefile.in,
494           as/link/z80/linkgbz80.dsp, as/link/z80/linkz80.dsp,
495           as/link/hc08/link_hc08.dsp, as/link/hc08/Makefile.in,
496           as/link/mcs51/aslink.dsp, as/link/mcs51/Makefile.in,
497           as/link/hc08/lkelf.c, as/link/aslink.h:
498           made support for differnet library formats more flexible,
499           preparation for support of ar format
500
501 2009-01-01 Borut Razem <borut.razem AT siol.net>
502
503         * as/link/asxxxx_config.h.in:
504           fixed warning: extra tokens at end of #endif directive
505         * src/z80/peep.c:
506           fixed warning: suggest parentheses around && within ||
507         * device/lib/Makefile.in: allow whitespaces at the end of lines in
508           ports.build, in order to make it work on cygwin - it seems to be a
509           bug in cygwin grep: CR is not treated as part of end-of-line
510
511 2008-12-31 Borut Razem <borut.razem AT siol.net>
512
513         * configure, configure.in, config.dsp, config_vc.awk,
514           as/link/asxxxx_config.h.in, as/link/hc08/lkelf.c, as/link/aslink.h,
515           as/link/hc08/Makefile.in, as/link/mcs51/Makefile.in:
516           introduced asxxxx_config.h.in
517
518 2008-12-30 Philipp Klaus Krause <pkk AT spth.de>
519
520         * src/z80/gen.c,
521           src/z80/peeph-z80.def:
522           Minor addition improvement.
523
524 2008-12-30 Raphael Neider <rneider AT web.de>
525
526         * as/link/hc08/lkelf.c, as/link/lkaomf51.c, as/link/lklibr.c,
527           as/link/z80/lkgb.c, debugger/mcs51/cmd.c, sim/ucsim/utils.cc,
528           src/SDCCasm.c, support/Util/dbuf_string.c, support/cpp/c-ppoutput.c,
529           support/cpp/libcpp/lex.c, support/cpp/libcpp/macro.c,
530           support/librarian/sdcclib.c, support/makebin/makebin.c:
531           partially revert changes from r5293..r5295
532
533 2008-12-29 Philipp Klaus Krause <pkk AT spth.de>
534
535         * src/z80/peeph-z80.def:
536           Minor peephole improvement.
537
538 2008-12-29 Raphael Neider <rneider AT web.de>
539
540         * src/pic/pcode.c (insertBankSel, FixRegisterBanking): emit
541           incorrectly discarded BANKSELs
542
543 2008-12-29 Philipp Klaus Krause <pkk AT spth.de>
544
545         * support/regression/tests/memory.c:
546           Added simple test for memset(), memcpy() and memmove()
547
548 2008-12-29 Borut Razem <borut.razem AT siol.net>
549
550         * sdcc/support/scripts/sdcc.nsi: removed $INSTDIR\lib\src\z80\*.c
551
552 2008-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
553
554         * src/mcs51/peeph.def (177.e): replaced notVolatile(%3) with
555           operandsNotRelated(%1 %3), had to change (a)r%1 to (a)%1 for this to work
556           (177.j): added new rule
557         * src/SDCCsymt.h: added RESULT_TYPE_GPTR
558         * src/SDCCast.c (processParms): use RESULT_TYPE_GPTR for generic ptr parms,
559           (decorateType CAST): propagate storage class to generic pointer results
560
561 2008-12-27 Philipp Klaus Krause <pkk AT spth.de>
562
563         * device/lib/z80/string.c,
564           device/lib/z80/printf.c,
565           device/lib/z80/mul.s:
566           z80 library cleanup
567         * src/z80/gen.c:
568           Fixed code generation bug exposed by builtin memcpy().
569
570 2008-12-27 Philipp Klaus Krause <pkk AT spth.de>
571
572         * device/lib/_memcpy.c:
573           fixed conflict with builtin memcpy()
574
575 2008-12-26 Borut Razem <borut.razem AT siol.net>
576
577         * support/librarian/sdcclib.c:
578           fixed bug 2466950: "sdcclib broken"
579           by removing fgets return value check
580
581 2008-12-26 Philipp Klaus Krause <pkk AT spth.de>
582         * src/z80/main.c,
583           src/z80/gen.c,
584           device/include/string.h: Implemented RFE #1914254
585
586 2008-12-26 Philipp Klaus Krause <pkk AT spth.de>
587         * device/lib/z80/Makefile.in,
588           device/lib/Makefile.in,
589           device/lib/z80/memmove.s: Implemented RFE #1914256
590
591 2008-12-26 Philipp Klaus Krause <pkk AT spth.de>
592
593         * src/z80/peeph-z80.def: fixed a bug in peephole 0zf
594         * src/z80/peep.c: improved checks for unused data
595         * src/z80/gen.c,
596           src/z80/main.c: Implemented RFE #1899189
597
598 2008-12-25 Borut Razem <borut.razem AT siol.net>
599
600         * support/regression/Makefile.in:
601           add -I$(INC_DIR) to SDCCFLAGS only if INC_DIR is defined
602
603 2008-12-25 Philipp Klaus Krause <pkk AT spth.de>
604
605         * src/z80/peeph-z80.def: minor peephole improvements
606
607 2008-12-21 Borut Razem <borut.razem AT siol.net>
608
609         * support/librarian/sdcclib.c: fixed build failure on Mac OS X
610           due to redefinition of symbol __assert
611           sdcclib.c:53:1:warning: "__assert" redefined
612           /Xcode2.5/SDKs/MacOSX10.4u.sdk/usr/include/assert.h:80:1:
613           warning: this is the location of the previous definition
614
615 2008-12-20 Raphael Neider <rneider AT web.de>
616
617         * debugger/mcs51/break.c, debugger/mcs51/cmd.c,
618           debugger/mcs51/simi.c, debugger/mcs51/symtab.c,
619           support/cpp/libcpp/macro.c: fix format string errors
620
621         * sim/ucsim/s51.src/timer2.cc: add clarifying parens
622
623         * src/pic/device.c: partial rewrite using strtok,
624           quieten compiler warnings, adopt SDCC coding style
625
626         * as/link/hc08/lkelf.c, as/link/lkaomf51.c, as/link/lklibr.c,
627           as/link/z80/lkgb.c, as/z80/asout.c, debugger/mcs51/cmd.c,
628           sim/ucsim/utils.cc, src/SDCCasm.c, support/Util/dbuf_string.c,
629           support/cpp/c-ppoutput.c, support/cpp/libcpp/lex.c,
630           support/librarian/sdcclib.c, support/makebin/makebin.c:
631           quieten most compiler warnings
632
633         * sim/ucsim/avr.src/arith_inst.cc: quieten compiler warnings,
634           probably fix operator precedence bug
635
636         * doc/clean.mk: quieten rm if no .lyx is present
637
638 2008-12-19 Borut Razem <borut.razem AT siol.net>
639
640         * doc/sdccman.lyx, doc/random-notes.txt, doc/avr/avr_design.txt,
641           doc/TININative.txt, doc/macro-sys-design.txt, doc/libdoc.txt,
642           doc/README.txt, doc/test_suite_spec.lyx:
643           applied patch 2446381: Dcoumentation spelling correcitons
644           thanks to Steven Borley
645
646 2008-12-16 Raphael Neider <rneider AT web.de>
647
648         * device/include/pic/pic12f629.h,
649           device/include/pic/pic12f675.h,
650           device/lib/pic/libdev/pic12f629.c,
651           device/lib/pic/libdev/pic12f675.c: consolidated, added TRISIO bits
652
653 2008-12-14 Borut Razem <borut.razem AT siol.net>
654
655         * doc/sdccman.lyx, cdbfileformat.lyx, test_suite_spec.lyx:
656           converted to LyX 1.5.7 (\lyxformat 276) format
657
658 2008-12-07 Borut Razem <borut.razem AT siol.net>
659
660         * support/regression/tests/bitfields.c:
661           added test case for bug #2366757
662
663 2008-12-07 Raphael Neider <rneider AT web.de>
664
665         * src/pic16/glue.c (pic16_printIvalBitFields): prevent
666           NULL pointer dereference, closes #2366757
667
668 2008-11-25 Raphael Neider <rneider AT web.de>
669
670         * device/include/pic16/pic16devices.txt,
671           sdcc/src/pic16/device.c,
672           sdcc/src/pic16/device.h: implicitly disable XINST
673           whenever CONFIG4L is set via an additional optional
674           argument to the configword directive in pic16devices.txt
675
676 2008-11-24 Raphael Neider <rneider AT web.de>
677
678         * device/lib/pic16/configure.ac,
679           device/lib/pic16/Makefile.common: fixed quoting issues
680
681         * device/lib/pic16/configure,
682           device/lib/pic16/debug/Makefile.in,
683           device/lib/pic16/libc/Makefile.in,
684           device/lib/pic16/libdev/Makefile.in,
685           device/lib/pic16/libio/Makefile.in,
686           device/lib/pic16/libm/Makefile.in,
687           device/lib/pic16/libsdcc/Makefile.in,
688           device/lib/pic16/Makefile.in,
689           device/lib/pic16/startup/Makefile.in: regenerated
690
691         * src/pic16/main.c (_pic16_finaliseOptions): revert to
692           variant of r5216
693
694 2008-11-24 Raphael Neider <rneider AT web.de>
695
696         * src/pic16/main.c (_pic16_finaliseOptions): do not quote the
697           argument of --asm= or --link= to allow for
698           --asm="sh script --options", the user can double quote the
699           argument if needed: --asm="'c:/program files/gpasm' -q",
700           also fix some potential buffer overflows
701
702 2008-11-19 Borut Razem <borut.razem AT siol.net>
703
704         * doc/sdccman.lyx:
705           fixed 2314467: sdccman.lyx: fix "--" in command line parameters
706           thanks Mauro Giachero
707
708 2008-11-16 Borut Razem <borut.razem AT siol.net>
709
710         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.5
711         * doc/sdccman.lyx: documented fixed unnamed bit-field initialization
712
713 2008-11-15 Borut Razem <borut.razem AT siol.net>
714
715         * src/pic16/glue.c, src/SDCC.y, src/SDCCast.c, src/SDCCglue.c,
716           src/SDCCsymt.c, src/SDCCsymt.h:
717           fixed RFE #2291335 : Unnamed bit-field initialization
718         * support/regression/tests/bitfields.c:
719           added test case for RFE #2291335
720         * support/regression/tests/bug-1981238.c:
721           don't initialize unnamed bit-fields
722
723 2008-11-11 Raphael Neider <rneider AT web.de>
724
725         * device/include/pic16/pic18f25j10.h,
726           device/include/pic16/pic18f45j10.h: remove useless boilerplate
727
728         * device/include/pic16/adc.h,
729           device/lib/pic16/libio/adc/adcbusy.c,
730           device/lib/pic16/libio/adc/adcclose.c,
731           device/lib/pic16/libio/adc/adcconv.c,
732           device/lib/pic16/libio/adc/adcopen.c,
733           device/lib/pic16/libio/adc/adcread.c,
734           device/lib/pic16/libio/adc/adcsetch.c: generalized, documented,
735           and fixed ADC routines to work for more target devices,
736           incorporates patch #2036130 by Nick Materer
737
738 2008-11-10 Steven Borley <steven.borley AT partnerelectronics.com>
739
740         * device/include/ctype.h,
741         * device/include/ds400rom.h,
742         * device/include/ds80c390.h,
743         * device/include/float.h,
744         * device/include/math.h,
745         * device/include/serial.h,
746         * device/include/stdbool.h,
747         * device/include/tinibios.h: replaced non-C89 '//' with '/* */',
748           patch 2195343
749         * device/include/mcs51/C8051F336.h,
750         * device/include/mcs51/C8051T600.h,
751         * device/include/mcs51/C8051T610.h,
752         * device/include/mcs51/C8051T630.h: new, added, patch 2183334
753           (svn commit by Maarten Brock <sourceforge.brock AT dse.nl>)
754
755 2008-11-10 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
756
757         * device/include/mcs51/P89LPC922.h: fixed #2255989, thanks kubi57
758
759 2008-11-10 Raphael Neider <rneider AT web.de>
760
761         * device/lib/pic16/libdev/mkmk.sh: obey pics.all
762         * device/lib/pic16/libio/mkmk.sh: properly match whole lines in
763           .ignore files, fixes IO libs for 18f242, 18f252, 18f442, and 18f452
764           (patch by Nick Materer, #2253980)
765
766         * device/lib/pic16/libio/adc.ignore,
767           device/lib/pic16/libio/i2c.ignore,
768           device/lib/pic16/libio/usart.ignore,
769           device/lib/pic16/pics.all: updated to build more device libs
770
771         * device/lib/pic16/libdev/Makefile.am,
772           device/lib/pic16/libdev/Makefile.in,
773           device/lib/pic16/libio/Makefile.am,
774           device/lib/pic16/libio/Makefile.in: regenerated
775
776         * src/pic16/device.c (pic16_dump_usection): fixed output of multiple
777           names per memory location, applied SDCC style to more functions
778
779 2008-11-09 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
780
781         * device/include/mcs51/p89lpc933_4.h: new NXP header file
782         * device/include/mcs51/p89lpc935_6.h: new NXP header file
783         * device/include/mcs51/p89v66x.h: minor changes
784           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
785
786 2008-11-09 Raphael Neider <rneider AT web.de>
787
788         * device/include/pic/pic14devices.txt: fixed memory description for
789           12f629 and 12f675, closes #2236240
790
791 2008-11-06 Borut Razem <borut.razem AT siol.net>
792
793         * src/SDCCmain.c: fixed bug #2224960: sdcc -MM no working correctly
794           pass system include paths with -isystem to sdcpp
795         * src/SDCCglue.c, src/pic/glue.c, src/pic16/glue.c: removed unneeded
796           functions (closePipes), (closeTmpFiles) and (rmTmpFiles)
797
798 2008-11-02 Raphael Neider <rneider AT web.de>
799
800         * doc/sdccman.lyx: updated the sections on the library build process
801           and on how to add support for new devices, and documented known
802           problems with the extended instruction set including a workaround
803
804 2008-11-01 Raphael Neider <rneider AT web.de>
805
806         * device/include/pic16/adc.h,
807           device/include/pic16/pic16devices.txt,
808           device/include/pic16/pic18f2410.h,
809           device/include/pic16/pic18f2510.h,
810           device/include/pic16/pic18f2515.h,
811           device/include/pic16/pic18f2610.h,
812           device/include/pic16/pic18f4410.h,
813           device/include/pic16/pic18f4510.h,
814           device/include/pic16/pic18f4515.h,
815           device/include/pic16/pic18f4610.h,
816           device/include/pic16/pic18fregs.h,
817           device/lib/pic16/libdev/Makefile.am,
818           device/lib/pic16/libdev/Makefile.in,
819           device/lib/pic16/libdev/pic18f2410.c,
820           device/lib/pic16/libdev/pic18f2510.c,
821           device/lib/pic16/libdev/pic18f2515.c,
822           device/lib/pic16/libdev/pic18f2610.c,
823           device/lib/pic16/libdev/pic18f4410.c,
824           device/lib/pic16/libdev/pic18f4510.c,
825           device/lib/pic16/libdev/pic18f4515.c,
826           device/lib/pic16/libdev/pic18f4610.c,
827           device/lib/pic16/libio/Makefile.am,
828           device/lib/pic16/libio/Makefile.in,
829           device/lib/pic16/pics.all: added support for 18f[24][456]10
830           and 18f[24]515 devices
831         * doc/sdccman.lyx: updated list of supported PIC16 devices
832
833         * src/pic/glue.c, src/pic/pcode.c, src/pic/pcodeflow.c,
834           src/pic16/glue.c, src/pic16/pcode.c, src/pic16/pcodeflow.c,
835           src/xa51/gen.c: avoid compiler warnings
836         * support/scripts/inc2h-pic16.pl: removed trailing whitespace
837
838 2008-10-22 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
839
840         * device/include/mcs51/p89v66x.h: NXP header file
841         * device/include/mcs51/p89c66x.h: fixed an SBIT definition
842           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
843
844 2008-10-14 Raphael Neider <rneider AT web.de>
845
846         * device/lib/pic16/libdev/Makefile.am,
847           device/lib/pic16/libio/Makefile.am: enable building libraries for
848           18f2321, 18f4321, 18f2523, 18f4620, 18f66j60, 18f66j65, 18f67j60,
849           18f86j60, 18f86j65, 18f87j60, 18f96j60, 18f96j65, and 18f97j60
850         * device/lib/pic16/libdev/Makefile.in,
851           device/lib/pic16/libio/Makefile.in: regenerated
852
853 2008-10-14 Raphael Neider <rneider AT web.de>
854
855         * device/include/pic16/pic18f2450.h,
856           device/include/pic16/pic18f4450.h,
857           device/lib/pic16/libdev/pic18f2450.c,
858           device/lib/pic16/libdev/pic18f4450.c,
859           device/include/pic16/adc.h,
860           device/include/pic16/pic16devices.txt,
861           device/include/pic16/pic18fregs.h,
862           device/lib/pic16/libdev/Makefile.am,
863           device/lib/pic16/libdev/Makefile.in,
864           device/lib/pic16/libio/Makefile.am,
865           device/lib/pic16/libio/Makefile.in,
866           device/lib/pic16/pics.all: added 18f2450 and 18f4450, closes #1844525
867
868         * device/lib/pic16/libsdcc/stack/stack.S: there is no need to pin the
869           stack to a fixed location, relax it to automatically work with all
870           but the smallest devices (256 byte RAM devices need #pragma stack)
871
872 2008-10-09 Maarten Brock <sourceforge.brock AT dse.nl>
873
874         * debugger/mcs51/break.c: bugfix from patch 1989966, thanks Risto Huotari
875         * debugger/mcs51/simi.c: bugfix from patch 1989972, thanks Risto Huotari
876         * device/lib/_strcspn.c: fixed bug 2140931
877
878 2008-10-06 Raphael Neider <rneider AT web.de>
879
880         * device/include/pic16/stdio.h,
881           device/lib/pic16/libc/stdio/putchar.c: putchar should not be
882           declared __naked for convenience, named all arguments
883         * device/lib/pic16/libc/stdio/strmgpsim.c,
884           device/lib/pic16/libc/stdio/strmmssp.c,
885           device/lib/pic16/libc/stdio/strmusart.c: cosmetic changes
886
887         * src/pic16/pcode.c (createReachingDefinitions): avoid segfault on
888           empty __naked functions,
889         * (pCodeLabelDestruct, pic16_unlinkpCode, pic16_pCodeUnlink): fix
890           corner cases (unlink first/last pCode in list), reuse more code
891
892 2008-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
893
894         * src/ds390/main.c (_ds390_genInitStartup): added
895         * src/SDCCpeeph.c (getPatternVar): new, added,
896           (labelInRange): fixed bug 2115959
897         * src/mcs51/peeph.def (rules 193.x to 198.x): check for labelInRange
898         * src/SDCCicode.h: added newiTempOperand
899         * src/SDCCcse.c (algebraicOpts): fixed bug for x*-1,
900           added optimizations for 0/x and x/-1, see also patch 2142900
901         * support/regression/tests/onebyte.c (testMul): added test cases
902
903 2008-09-20 Borut Razem <borut.razem AT siol.net>
904
905         * src/pic16/glue.c:
906           definition of absolute address symbols without initial value,
907           fixed SDCC crash "do not know how to intialize symbol"
908
909 2008-09-16 Maarten Brock <sourceforge.brock AT dse.nl>
910
911         * device/lib/z80/mul.s (__mulsuchar_rrx_s, __muluschar_rrx_s),
912         * device/lib/z80/div.s (__divsuchar_rrx_s, __modsuchar_rrx_s,
913           __divuschar_rrx_s, __moduschar_rrx_s): added mixed signedness versions
914         * device/lib/z80/stubs.s: added stubs for above functions
915         * src/SDCCopt.c (convilong),
916         * src/SDCCsymt.c (initCSupport): fixed bug 1900961
917         * src/SDCCsymt.h (__muldiv): enlarged for mixed signedness
918         * src/z80/main.c (_hasNativeMulFor): fixed bug, I think
919         * support/regression/tests/onebyte.c: enabled all tests for z80
920
921 2008-09-15 Borut Razem <borut.razem AT siol.net>
922
923         * device/include/pic16/stdio.h, device/lib/pic16/libc/stdio/streams.c,
924           device/lib/pic16/libc/stdio/printf.c,
925           device/lib/pic16/libc/stdio/strmusart.c,
926           device/lib/pic16/libc/stdio/printf_tiny.c,
927           device/lib/pic16/libc/stdio/sprintf.c,
928           device/lib/pic16/libc/stdio/strmgpsim.c,
929           device/lib/pic16/libc/stdio/putchar.c,
930           device/lib/pic16/libc/stdio/fprintf.c,
931           device/lib/pic16/libc/stdio/strmmssp.c,
932           device/device/lib/pic16/libc/stdio/vprintf.c,
933           device/lib/pic16/libc/stdio/printf_small.c,
934           device/lib/pic16/libc/stdio/vsprintf.c,
935           device/lib/pic16/libc/stdio/strmputchar.c,
936           device/lib/pic16/libc/Makefile.am,
937           device/lib/pic16/libc/Makefile.in:
938           *printf now returns int, puchar.c moved from stdlib to stdio,
939           *printf format parameter type changed from char * to const char *,
940           added GNU link excetion text to library source files,
941           applyed GNU coding style, removed useless svn ids,
942           added BINARY_SPECIFIER macro re-enables the use of the removed 'b'
943           binary specifier: "%b", "%hb" and "%lb"
944         * device/lib/pic16/libc/stdio/vfprintf.c:
945           applied patch #2044424: PIC16: vfprintf
946           thanks Mauro Giachero
947         * support/regression/tests/bug1057979.c:
948           removed old pic16 sprintf specifics
949         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.4
950         * doc/sdccman.lyx: documented 'b' binary format specifier removal
951
952 2008-09-15 Raphael Neider <rneider AT web.de>
953
954         * src/pic16/device.c (pic16_dump_usection): force udata sections
955           into the addressable range (0..0xFFF), workaround for a gpsim
956           bug preventing simulation of regtest bug1750318
957         * src/pic16/ralloc.c (deassignLRs): cosmetic changes,
958           (serialRegAssign): fixed regtest bug-971834,
959           (pic16_packRegisters): avoid null-pointer dereference
960
961 2008-09-14 Raphael Neider <rneider AT web.de>
962
963         * src/pic16/gen.c, src/pic16/ralloc.c: use
964           SYM_SPIL_LOC/SPIL_LOC macros, no functional changes
965         * src/pic16/ralloc.c (rematStr): reimplemented, fixes #1818857
966
967 2008-09-12 Borut Razem <borut.razem AT siol.net>
968
969         * support/regression/fwk/testfwk.h:
970           define pdata as data for pic16 target
971           thanks Mauro Giachero
972
973 2008-09-11 Borut Razem <borut.razem AT siol.net>
974
975         * support/regression/tests/bug-221100.c, support/regression/shifts.c,
976           support/regression/absolute.c:
977           applied patch #2105615: Some PIC16 testcase fixlets
978           thanks Mauro Giachero
979
980 2008-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
981
982         * src/z80/gen.c (genCmpGt, genCmpLt): fixed bug 2094505
983         * support/regression/tests/bug2094505.c: new, added
984
985 2008-09-07 Borut Razem <borut.razem AT siol.net>
986
987         * src/SDCCglue.c, src/SDCCast.c:
988           fixed throw of "excess elements" warning for char arrays
989         * support/regression/tests/nullstring.c:
990           disable warning about excess elements in array of chars initializer
991
992 2008-09-07 Maarten Brock <sourceforge.brock AT dse.nl>
993
994         * as/z80/aslist.c (lstsym): changed old K&R to ANSI
995         * src/SDCCicode.c (geniCodeCritical): fixed bug for hc08
996         * src/z80/gen.c (genCritical, genEndCritical): fixed bug 2077267
997         * support/regression/tests/bug2077267.c: new, added
998
999 2008-09-05 Raphael Neider <rneider AT web.de>
1000
1001         * configure.in, Makefile.common.in: add support for ccache,
1002           remove spurious $VERSION output, detect doc-tools even without
1003           --enable-doc to facilitate later manual doc-builds, minor cleanup
1004         * configure: regenerated
1005
1006         * doc/Makefile.in: quieten pdflatex, makeindex, and latex2html,
1007           avoid races in parallel VPATH builds
1008         * doc/clean.mk: remove .lyx files in the builddir for VPATH builds
1009         * doc/sdccman.lyx: mention --without-ccache configure option
1010
1011 2008-09-01 Raphael Neider <rneider AT web.de>
1012
1013         * src/pic16/gen.c (pic16_derefPtr): handle CPOINTERs as well
1014         * (genConstPointerGet): fix reading bitfields from __code space
1015         * src/pic16/glue.c (pic16_printIvalBitFields): correctly mask
1016           bitfield initializers (fix regression test bug1856409.c)
1017         * (pic16_printIvalCharPtr,pic16_printIvalPtr): generalized to support
1018           arbitrary sizes
1019
1020 2008-08-31 Raphael Neider <rneider AT web.de>
1021
1022         * src/pic16/gen.c (genAssign): removed useless compiler output
1023         * (genPointerGet,genPointerSet,genCast),
1024           src/pic16/glue.c (pic16_printGPointerType):
1025           also handle PPOINTERs just to avoid spurious asserts
1026         * (pic16_printIvalType,pic16_printIvalBitFields):
1027           generalized to arbitrary type/bitfield sizes, allows compilation of
1028           regression test bug-1981238.c
1029         * (pic16_printIvalChar): fix regression test structflexarray.c
1030         * (pic16_printIvalArray): avoid SIGSEGV on uninitialized strings
1031           in initialized structs and fix #1843745
1032         * (pic16_printIvalStruct): always output initializers for all fields,
1033           even those not explicitly given, fixes zeropad.c regression test
1034         * (pic16_printIvalUnion): fix union initializers (bug1426356.c,
1035           #2073635, #1567098, and #1485812)
1036         * src/pic16/main.c (_pic16_keywords): remove unsupported 'pdata'
1037
1038 2008-08-31 Borut Razem <borut.razem AT siol.net>
1039
1040         * support/regression/tests/bug-895992.c,
1041           support/regression/tests/onebyte.c:
1042           enabled pic16 regression testing since the bugs
1043           1511794: pic16: regression test bug-895992.c fails
1044           1444425: onebyte.c regression tes fails on pic16
1045           are fixed, probably by fixing
1046           2048464: PIC16: fix genUminus - addresses not.c regression test
1047         * src/SDCCsymt.c, src/SDCCglue.c,
1048           support/regression/tests/bug-1981238.c:
1049           applied patch 2076664: fix #1981238 + SIGSEGV in SDCCGlue.c
1050           thanks to RvS
1051
1052 2008-08-30 Borut Razem <borut.razem AT siol.net>
1053
1054         * support/cpp/libcpp/files.c: SDCPP synchronized with GCC CPP
1055           release version 4.3.2
1056
1057 2008-08-24 Raphael Neider <rneider AT web.de>
1058
1059         * device/lib/pic16/configure, device/lib/pic16/configure.ac:
1060           always use the sdcc from the current build tree (ignore $CC from
1061           the environment, fixes compile farm builds)
1062         * device/lib/Makefile.in: rename .a into .lib for compatibility,
1063           remove more build products from install directory
1064         * sdcc/src/pic16/main.c (_pic16_linkEdit,_pic16_finaliseOptions)
1065         * sdcc/support/scripts/sdcc.nsi: revert to .lib extension for libs
1066
1067 2008-08-24 Borut Razem <borut.razem AT siol.net>
1068
1069         * src/SDCC.y: applied patch
1070           2050245: Fix # 1963382
1071           for bug
1072           1963382: Listing File - C file comment is incorrect
1073           thanks to RvS
1074
1075 2008-08-23 Borut Razem <borut.razem AT siol.net>
1076
1077         * src/pic16/gen.c: applied patch
1078           2048464: PIC16: fix genUminus - addresses not.c regression test
1079           thanks Mauro Giachero
1080
1081 2008-08-22 Borut Razem <borut.razem AT siol.net>
1082
1083         * device/lib/pic16/configure, device/lib/pic16/configure.ac,
1084           src/pic16/main.c: allow spaces in gpasm and gplink paths
1085
1086 2008-08-15 Philipp Klaus Krause <pkk AT spth.de>
1087
1088         * src/z80/peep.c,
1089         * src/z80/peeph-z80.def: minor peephole improvement
1090
1091 2008-08-15 Raphael Neider <rneider AT web.de>
1092
1093         * src/z80/gen.c (_vemit2): suppress compiler warning
1094
1095         * src/pic/*.[ch]: make proper use of header files and avoid
1096           ad-hoc extern declarations, mark module-local helpers 'static',
1097           removed dead/replaced code, no functional changes
1098         * src/pic16/pcode.c: disentangled from pic14 backend
1099
1100 2008-08-14 Philipp Klaus Krause <pkk AT spth.de>
1101
1102         * src/z80/gen.c: fixed #2051348
1103         * support/regression/tests/bug-2051348.c: regression test for #2051348
1104
1105 2008-08-10 Raphael Neider <rneider AT web.de>
1106
1107         * configure.in,
1108         * Makefile.common.in: export PACKAGE for $docdir,
1109           fixes #1957036, avoid some "underquoted definition" warnings
1110         * configure: regenerated
1111
1112 2008-08-10 Raphael Neider <rneider AT web.de>
1113
1114         * device/lib/pic16/**: build pic16 library using autotools for
1115           improved dependency tracking
1116
1117         * device/lib/Makefile.in,
1118         * src/pic16/main.c,
1119         * support/scripts/sdcc.nsi: adapt to changes in filenames (s/.lib/.a/)
1120
1121 2008-08-10 Raphael Neider <rneider AT web.de>
1122
1123         * src/pic/pcode.c (ReuseReg): do not overlay the registers used for
1124           local variables if --nooverlay is given, workaround for #2023121
1125
1126 2008-08-08 Raphael Neider <rneider AT web.de>
1127
1128         * src/pic16/genarith.c (genAddLit): fix structure access (#1888004)
1129
1130 2008-08-08 Raphael Neider <rneider AT web.de>
1131
1132         * src/pic/pcoderegs.c,
1133         * src/pic/pcode.c,
1134         * src/pic16/pcode.c: replace own SAFE_snprintf with common SNPRINTF
1135
1136 2008-08-07 Borut Razem <borut.razem AT siol.net>
1137
1138         * src/SDCCval.c, src/SDCCmain.c, src/SDCC.lex,
1139           device/lib/pic/Makefile.rules, device/lib/ds390/Makefile.in,
1140           device/lib/ds400/Makefile.in, device/lib/hc08/Makefile.in,
1141           support/cpp/libcpp/lex.c,  doc/sdccman.lyx:
1142           applied modified patch 2038174: Add support for binary constants v2
1143           thanks Mauro Giachero
1144         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.3
1145
1146 2008-08-04 Raphael Neider <rneider AT web.de>
1147
1148         * doc/sdccman.lyx,
1149         * src/pic16/device.h,
1150         * src/pic16/glue.c,
1151         * src/pic16/main.c: enable --optimize-goto by default
1152
1153         * device/lib/pic16/Makefile.common.in: suppress removed option
1154
1155         * src/pic16/gen.c,
1156         * src/pic16/genutils.c: avoid too long relative branches (#2031890)
1157
1158 2008-07-30 Borut Razem <borut.razem AT siol.net>
1159
1160         * src/pic16/device.c, src/pic16/glue.c, src/pic16/pcode.c:
1161           applied patch 22032433: PIC16: fix constant strings,
1162           thanks Mauro Giachero
1163
1164 2008-07-29 Borut Razem <borut.razem AT siol.net>
1165
1166         * src/pic16/gen.c: applied patches:
1167           2030306: [1/3] PIC16: fix failing rotate.c tests on 16-bit variables,
1168           2030307: [2/3] PIC16: fix failing rotate.c tests for 32-bit var (1),
1169           2030310: [3/3] PIC16: fix failing rotate.c tests for 32-bit var (2),
1170           thanks Mauro Giachero
1171
1172 2008-07-13 Philipp Klaus Krause <pkk AT spth.de>
1173
1174         * src/port.h: Fixed typo in comment
1175
1176 2008-07-12 Philipp Klaus Krause <pkk AT spth.de>
1177
1178         * src/z80/mappings.i: Implemented RFE #1919415
1179         * src/z80/peeph-z80.def: Implemented RFE #1919415, #1861376,
1180           #1880202, #1914434, prepared for RFE #1703943
1181
1182 2008-07-12 Philipp Klaus Krause <pkk AT spth.de>
1183
1184         * src/z80/peeph.def,
1185         * src/z80/peeph-z80.def,
1186         * src/z80/peeph-gbz80.def: separate Z80 from GBZ80 peepholes in
1187           preparation for Z80 peephole improvements
1188
1189 2008-06-21 Raphael Neider <rneider AT web.de>
1190
1191         * device/include/pic16/pic18f66j60.h,
1192         * device/include/pic16/pic18f66j65.h,
1193         * device/include/pic16/pic18f67j60.h,
1194         * device/include/pic16/pic18f86j60.h,
1195         * device/include/pic16/pic18f86j65.h,
1196         * device/include/pic16/pic18f87j60.h,
1197         * device/include/pic16/pic18f96j60.h,
1198         * device/include/pic16/pic18f96j65.h,
1199         * device/include/pic16/pic18f97j60.h,
1200         * device/lib/pic16/libdev/pic18f66j60.c,
1201         * device/lib/pic16/libdev/pic18f66j65.c,
1202         * device/lib/pic16/libdev/pic18f67j60.c,
1203         * device/lib/pic16/libdev/pic18f86j60.c,
1204         * device/lib/pic16/libdev/pic18f86j65.c,
1205         * device/lib/pic16/libdev/pic18f87j60.c,
1206         * device/lib/pic16/libdev/pic18f96j60.c,
1207         * device/lib/pic16/libdev/pic18f96j65.c,
1208         * device/lib/pic16/libdev/pic18f97j60.c,
1209         * device/include/pic16/pic16devices.txt,
1210         * device/include/pic16/pic18fregs.h,
1211         * device/lib/pic16/pics.all: added new devices
1212
1213         * device/include/pic16/adc.h,
1214         * device/lib/pic16/libio/adc/adcbusy.c,
1215         * device/lib/pic16/libio/adc/adcopen.c,
1216         * device/lib/pic16/libio/adc/adcsetch.c,
1217         * device/lib/pic16/libio/i2c/i2copen.c,
1218         * device/lib/pic16/libio/usart/uopen.c: adapted to new devices,
1219           all changes from a patch by Anton Strobl
1220
1221 2008-06-12 Borut Razem <borut.razem AT siol.net>
1222
1223         * sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/bp.cc,
1224           sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
1225           sim/ucsim/z80.src/z80cl.h, sim/ucsim/z80.src/z80.cc,
1226           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
1227           sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
1228           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/uc390.cc,
1229           sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/uc390cl.h,
1230           sim/ucsim/avr.src/avrcl.h, sim/ucsim/avr.src/avr.cc:
1231           fixed bug 1990586: s51 simulator, uc::disass() unimplemented
1232           by applying the modified patch from Risto Huotari
1233
1234 2008-06-04 Maarten Brock <sourceforge.brock AT dse.nl>
1235
1236         * .version,
1237         * doc/sdccman.lyx: bumped sdcc version to 2.8.2
1238         * src/ds390/gen.c (aopPutUsesAcc, genAddrOf): fixed bug 1015185
1239         * src/mcs51/gen.c (genNearPointerGet, genNearPointerSet): fixed bug 1938300
1240         * support/regression/tests/bug1938300.c: new, added
1241
1242 2008-06-03 Maarten Brock <sourceforge.brock AT dse.nl>
1243
1244         * device/include/asm/ds390/features.h,
1245         * device/include/asm/mcs51/features.h,
1246         * device/include/mcs51/regc515c.h: inserted LGPL notice
1247
1248 2008-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
1249
1250         * device/lib/gbz80/div.s,
1251         * device/lib/z80/div.s: fixed bug 1904314 by applying a modified part of
1252           patch 1597883, Thanks Robert Ramey
1253
1254 2008-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
1255
1256         * src/SDCCast.c (createIvalType, createIvalStruct, createIvalArray,
1257           createIvalCharPtr, createIvalPtr, createIval),
1258         * src/SDCCval.h
1259         * src/SDCCval.c (convertIListToConstList, list2expr): handle incomplete
1260           initializers for local auto variables
1261         * support/regression/tests/zeropad.c: added testcase for auto initializers
1262
1263 2008-05-26 Raphael Neider <rneider AT web.de>
1264
1265         * device/lib/pic16/startup/crt0.c,
1266         * device/lib/pic16/startup/crt0i.c,
1267         * device/lib/pic16/startup/crt0iz.c: clean up, make use of access bank
1268           explicit, fixed curr_entry loop for >= 256 initializer records,
1269           removed debug code (write to 0xf7e)
1270
1271 2008-05-25 Raphael Neider <rneider AT web.de>
1272
1273         * device/include/pic/pic16f627a.h,
1274         * device/include/pic/pic16f628a.h,
1275         * device/include/pic/pic16f648a.h: added missing ports
1276
1277 2008-05-20 Maarten Brock <sourceforge.brock AT dse.nl>
1278
1279         * device/include/float.h: added __INFINITY
1280         * device/lib/_fsadd.c: handle overflows
1281         * device/lib/_fsmul.c,
1282         * device/lib/_fsdiv.c: use __INFINITY
1283         * device/lib/_fseq.c,
1284         * device/lib/_fsneq.c: handle -0.0
1285         * sim/ucsim/s51.src/uc89c51r.cc,
1286         * sim/ucsim/s51.src/uc89c51rcl.h: fixed bug 1385430
1287         * sim/ucsim/sim.src/hwcl.h: */* confuses VC
1288         * src/mcs51/gen.c (genSend): fixed bug with --xstack
1289         * support/regression/ports/mcs51-xstack-auto/spec.mk: print floats
1290         * support/regression/tests/snprintf.c: test bug with --xstack
1291
1292 2008-05-19  Philipp Klaus Krause <pkk AT spth.de>
1293
1294         * src/SDCCpeeph.c (callFuncByName):
1295           Support nested parenthesis in peephole function arguments (#1967300)
1296
1297 2008-05-19 Raphael Neider <rneider AT web.de>
1298
1299         * src/pic16/gen.c (pic16_emitpLabel,pic16_emitpLabelFORCE):
1300           fixed duplicate labels (#1911325)
1301
1302 2008-05-19 Raphael Neider <rneider AT web.de>
1303
1304         * src/regression/empty.c: suppress warning
1305         * src/regression/pointer1.c: enabled index_by_pointer()
1306         * src/regression/inline.c: now works for pic16 as well
1307
1308         * src/pic16/device.c: include dbuf declarations
1309         * src/pic16/device.h: removed obsolete prototypes
1310
1311         * src/pic16/gen.c, src/pic16/gen.h: moved generic pointer tags
1312         * src/pic16/glue.c: made purely local functions static,
1313           (pic16_printGPointerType, pic16_printIvalCharPtr,
1314           pic16_printIvalFuncPtr, pic16_printIvalPtr): fixed initialized
1315           generic pointers' tags (#1961866)
1316
1317         * src/pic16/pcode.c (assignValnums): optimize literal assignments
1318
1319 2008-05-19 Borut Razem <borut.razem AT siol.net>
1320
1321         * support/scripts/sdcc.nsi: remove uninstall.exe after uninstallation,
1322           fixed typo, uninstall include/pic16/pic16devices.txt
1323
1324 2008-05-18 Borut Razem <borut.razem AT siol.net>
1325
1326         * support/Utils/dbuf_string.[ch]: added dbuf_chomp(),
1327           the buffer is null terminated
1328         * src/device/pic16.c:
1329           applied modified patch 1965676: Patch for Win32 16 bit PIC
1330         * sdcc_vc_in.h: defined YY_NO_UNISTD_H
1331
1332 2008-05-16 Maarten Brock <sourceforge.brock AT dse.nl>
1333
1334         * src/SDCC.lex (check_type),
1335         * src/SDCC.y (type_specifier2 TYPE_NAME): fixed bug 1925942
1336         * as/hc08/clean.mk,
1337         * as/mcs51/clean.mk,
1338         * as/z80/clean.mk: also clean *.dep
1339         * device/lib/pic16/libsdcc/stack/Makefile,
1340         * sim/ucsim/libtool: removed as they are rebuild by configure
1341         * src/clean.mk: removed izt, so Makefile is not deleted for distclean
1342
1343 2008-05-13 Maarten Brock <sourceforge.brock AT dse.nl>
1344
1345         * src/SDCCast.c (fixupInline, createFunction): save currBlockno in
1346           fixupInline instead of createFunction to fix bug 1864577
1347           (inlineFindMaxBlockno): removed, use global blockNo
1348         * src/SDCCglobl.h: added blockNo
1349         * src/z80/peep.c,
1350         * src/z80/peep.h: modified properties
1351         * support/regression/tests/bug1864577.c: new, added
1352
1353 2008-05-07 Maarten Brock <sourceforge.brock AT dse.nl>
1354
1355         * as/mcs51/asdata.c,
1356         * as/mcs51/asm.h: added org_cnt
1357         * as/mcs51/asmain.c (main, asmbl): fixed bug 1957716, changed old K&R to ANSI
1358         * as/mcs51/asout.c: changed old K&R to ANSI
1359         * as/mcs51/Makefile.in: use common identifiers
1360         * as/hc08/asdata.c,
1361         * as/hc08/asexpr.c,
1362         * as/hc08/asm.h,
1363         * as/hc08/asmain.c,
1364         * as/hc08/asout.c,
1365         * as/hc08/Makefile.bcc,
1366         * as/hc08/Makefile.in: synchronized with as/mcs51/*
1367         * sdcc_vc_in.h: added define __func__
1368         * src/SDCCast.c (expandInlineFuncs): applied patch 1957148 to fix bug 1717305,
1369           Thanks Ruud van Silfhout
1370         * support/regression/tests/bug1717305.c: new, added
1371
1372 2008-05-05 Borut Razem <borut.razem AT siol.net>
1373
1374         * support/regression/Makefile.in,
1375           support/regression/ports/ds390/spec.mk,
1376           support/regression/ports/hc08/spec.mk,
1377           support/regression/ports/mcs51-common/spec.mk,
1378           support/regression/ports/pic14/spec.mk,
1379           support/regression/ports/pic16/spec.mk,
1380           support/regression/ports/ucz80/spec.mk,
1381           support/regression/ports/z80/spec.mk:
1382           added INC_DIR and LIBDIR paths
1383         * src/ds390/gen.c: removed duplicated selicolon
1384
1385 2008-05-04 Borut Razem <borut.razem AT siol.net>
1386
1387         * support/regression/Makefile.in,
1388           support/regression/fwk/lib/testfwk.c,
1389           support/regression/ports/ds390/spec.mk,
1390           support/regression/ports/hc08/spec.mk,
1391           support/regression/ports/mcs51-common/spec.mk,
1392           support/regression/ports/mcs51-large/spec.mk,
1393           support/regression/ports/mcs51-medium/spec.mk,
1394           support/regression/ports/mcs51-small/spec.mk,
1395           support/regression/ports/mcs51-stack-auto/spec.mk,
1396           support/regression/ports/mcs51-xstack-auto/spec.mk,
1397           support/regression/ports/pic14/spec.mk,
1398           support/regression/ports/pic16/spec.mk,
1399           support/regression/ports/ucz80/spec.mk:
1400           added possibility to define the sdcc binary directory SDCC_BIN_PATH
1401           used to run regeression tests
1402
1403 2008-05-01 Raphael Neider <rneider AT web.de>
1404
1405         * doc/sdccman.lyx, support/scripts/inc2h-pic16.pl: updated list of
1406           supported devices and instructions to add new ones
1407
1408 2008-05-01 Raphael Neider <rneider AT web.de>
1409
1410         * device/include/pic16/adc.h,
1411           device/lib/pic16/libio/adc/adcbusy.c,
1412           device/lib/pic16/libio/adc/adcopen.c,
1413           device/lib/pic16/libio/adc/adcsetch.c: support old 18f242 and new
1414           18f2455 style ADC devices, based on patch #1776197
1415         * device/lib/pic16/libio/adc/adcclose.c,
1416           device/lib/pic16/libio/adc/adcconv.c,
1417           device/lib/pic16/libio/adc/adcread.c: cosmetic changes
1418         * device/include/pic16/{pic18f2331.h,pic18f2431.h},
1419           device/lib/pic16/libdev/{pic18f2331.c,pic18f2431.c}: reuse 18f4331
1420         * device/include/pic16/pic18f4431.h,
1421           device/lib/pic16/libdev/pic18f4431.c: remove outdated comments
1422         * device/lib/pic16/libio/adc.ignore: forbid unhandled devices
1423
1424 2008-05-01 Raphael Neider <rneider AT web.de>
1425
1426         * src/pic16/device.h: removed unused field PIC16_device.sfrRange,
1427           moved xinst flag into pic16_options_t
1428         * src/pic16/device.c (default_device, pic16_list_devices,
1429           pic16_find_device): removed references to sfrrange
1430         * src/pic16/gen.c (genFunction),
1431           src/pic16/glue.c (pic16initialComments),
1432           src/pic16/main.c (pic16_optionsTable),
1433           src/pic16/ralloc.c (newReg, pic16_writeUsedRegs): updated references
1434           to xinst
1435         * device/include/pic16/pic16devices.txt: removed sfrrange lines
1436
1437 2008-04-29 Raphael Neider <rneider AT web.de>
1438
1439         * src/pic16/devices.inc,
1440           device/include/pic16/pic16devices.txt: replaced compiled-in list
1441           of devices with a variant parsed at runtime
1442         * src/pic16/device.c: added support for parsing pic16devices.txt,
1443           clean up
1444         * src/pic16/device.h: removed (now) unused fields from PIC_device
1445         * src/pic16/main.c: removed #pragma maxram,
1446           (_pic16_initPaths): removed bogus generation of search paths,
1447           setup the port proper only after the search paths (for
1448           pic16devices.txt) are set up,
1449           (_pic16_finaliseOptions): moved processor dependant code here
1450           from _pic16_initPaths(), clean up
1451         * src/pic16/ralloc.c (pic16_init_stack),
1452         * src/pic16/ralloc.h,
1453         * src/pic16/pcode.c: clean up
1454         * device/include/Makefile.in,
1455           support/scripts/sdcc.nsi: also install/package pic16devices.txt
1456         * support/scripts/inc2h-pic16.pl: updated instructions
1457
1458 2008-04-29 Raphael Neider <rneider AT web.de>
1459
1460         * device/include/pic16/{pic18f2480.h, pic18f2580.h, pic18f4423.h,
1461           pic18f4480.h, pic18f4523.h, pic18f4580.h, pic18f6585.h, pic18f8585.h},
1462           device/lib/pic16/libdev/{pic18f2480.c, pic18f2580.c, pic18f4423.c,
1463           pic18f4480.c, pic18f4523.c, pic18f4580.c, pic18f6585.c, pic18f8585.c}:
1464           added missing family members and 18f2480/2580/4480/4580 family
1465         * device/include/pic16/{pic18f2423.h, pic18f2523.h}: use 18f4523.h
1466         * device/include/pic16/pic18f2525.h: use 18f4620.h
1467         * device/include/pic16/pic18f6680.h: use 18f8680.h
1468         * device/include/pic16/pic18fregs.h,
1469           device/lib/pic16/pics.all,
1470           src/pic16/devices.inc: add new devices
1471         * device/lib/pic16/libdev/{pic18f2423.c, pic18f2523.c}: use 18f4523.c
1472         * device/lib/pic16/libdev/pic18f2525.c: use 18f4620.c
1473         * device/lib/pic16/libdev/pic18f6680.c: uso 18f8680.c
1474         * device/lib/pic16/libio/{adc.ignore, i2c.ignore, usart.ignore}:
1475           prevent attempting to build the libio for some new devices
1476
1477 2008-04-29 Raphael Neider <rneider AT web.de>
1478
1479         * debugger/mcs51/Makefile.in: fixed paths to sources
1480
1481 2008-04-25 Borut Razem <borut.razem AT siol.net>
1482
1483         * as/link/lklibr.c: moved from as/link/z80/lklibr.c
1484         * as/link/hc08/lklibr.c, as/link/mcs51/lklibr.c: deleted
1485         * as/link/hc08/Makefile.bcc, as/link/hc08/Makefile.in,
1486         * as/link/hc08/link_hc08.dsp, as/link/mcs51/Makefile.bcc,
1487           as/link/mcs51/Makefile.in, as/link/mcs51/aslink.dsp,
1488           as/link/z80/Makefile.in, as/link/z80/linkgbz80.dsp,
1489           as/link/z80/linkz80.dsp: lklibr.c moved
1490         * doc/INSTALL.txt: binary archives in bz2 format
1491         * support/cpp/auto-host_vc_in.h: CPP2 replaced with CPP
1492
1493 2008-04-23 Maarten Brock <sourceforge.brock AT dse.nl>
1494
1495         * src/SDCCglue.c (printIvalType, printIvalBitFields): fixed bug 1856409
1496         * support/regression/tests/bug1856409.c: new, added
1497
1498 2008-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
1499
1500         * src/z80/peep.c,
1501         * src/mcs51/peep.c: Use werror for error messages.
1502         * src/SDCCicode.c (geniCodeConditional),
1503         * src/SDCCsymt.c (structElemType): fixed bug 1839321
1504         * src/z80/Makefile.bcc,
1505         * src/z80/z80.dsp: added src/z80/peep.c/h
1506         * support/regression/tests/bug1839321.c: new, added
1507
1508 2008-04-20 Raphael Neider <rneider AT web.de>
1509
1510         * device/include/pic16/pic18f2455.h: added bitfields for port C
1511
1512 2008-04-20 Philipp Klaus Krause <pkk AT spth.de>
1513
1514         * src/z80/peep.c: Use werror for error messages.
1515
1516 2008-04-19 Philipp Klaus Krause <pkk AT spth.de>
1517
1518         * src/z80/peep.h (declaration of notUsed()),
1519         * src/z80/main.c (enabled notUsed() for z80 port, documented z80_port
1520           struct),
1521         * src/z80/z80.h (added dependency on peep.h),
1522         * src/z80/peep.c (definition of notUsed()): Implemented RFE #1880202
1523           for Z80.
1524
1525 2008-04-19 Philipp Klaus Krause <pkk AT spth.de>
1526
1527         * src/SDCCpeeph.c (added support for notUsed()),
1528         * src/mcs51/main.c (added dependency on peep.h, documented mcs51_port
1529           struct),
1530         * src/port.h (removed dependency on mcs51/peep.h, added declaration
1531           for notUsed()): Implemented generic (that is not port-specific) part
1532           of RFE #1880202.
1533
1534 2008-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
1535
1536         * as/link/mcs51/lkmem.c (summary2): fixed bug 1796077
1537         * device/lib/libsdcc.lib,
1538         * device/lib/Makefile.in,
1539         * support/regression/ports/mcs51-xstack-auto/spec.mk,
1540         * device/lib/calloc.c: renamed to _calloc.c
1541         * device/lib/free.c: renamed to _free.c
1542         * device/lib/malloc.c: renamed to _malloc.c
1543         * device/lib/realloc.c: renamed to _realloc.c
1544         * src/ds390/gen.c (aopGet, aopPut, genPlusBits, genDataPointerSet,
1545           genNearPointerSet, genPagedPointerSet): synchronized with mcs51/gen.c
1546         * src/ds390/gen.c (popForBranch, genIfxJump, genCmp, genCmpEq, ifxForOp,
1547           genAnd, genOr, genXor, genIfx, gen390Code): fixed bug 1509084
1548         * src/mcs51/gen.c (popForBranch, genIfxJump, genCmp, genCmpEq,
1549           ifxForOp, genAnd, genOr, genXor, genNearPointerGet,
1550           genPagedPointerGet, genFarPointerGet, genCodePointerGet,
1551           genGenPointerGet, genIfx, gen51Code): fixed bug 1509084
1552         * src/ds390/gen.c,
1553         * src/mcs51/gen.c: throughout cosmetic changes for syncing both
1554         * src/SDCCsymt.h: updated IS_OP_RUONLY, IS_OP_ACCUSE
1555         * support/regression/tests/bug1509084.c: new, added
1556
1557 2008-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
1558
1559         * device/include/mcs51/cc2510fx.h: added _XPAGE
1560         * device/include/mcs51/compiler.h: cosmetic changes
1561
1562 2008-03-31 Maarten Brock <sourceforge.brock AT dse.nl>
1563
1564         * sdcc.dsw: adapted for moved cpp2, added dependency for as_z80 on
1565           config
1566
1567 2008-03-31 Borut Razem <borut.razem AT siol.net>
1568
1569         * support/cpp2 renamed to support/cpp
1570         * support/cpp2/libiberty/filenames.h, support/cpp2/libiberty/hex.c,
1571           support/cpp2/libiberty/splay-tree.c,
1572           support/cpp2/libiberty/splay-tree.h, support/cpp2/libcpp/macro.c,
1573           support/cpp2/libcpp/directives.c,
1574           support/cpp2/libcpp/include/cpplib.h,
1575           support/cpp2/libcpp/include/symtab.h,
1576           support/cpp2/libcpp/include/line-map.h,
1577           support/cpp2/libcpp/line-map.c, support/cpp2/libcpp/files.c,
1578           support/cpp2/libcpp/init.c, support/cpp2/libcpp/traditional.c,
1579           support/cpp2/libcpp/expr.c, support/cpp2/libcpp/internal.h,
1580           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/system.h,
1581           support/cpp2/libcpp/charset.c: SDCPP synchronized with GCC CPP
1582           release version 4.3.0
1583         * configure.in, configure, Makefile.in, Makefile.bcc:
1584           adapted for moved cpp2
1585
1586 2008-03-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1587
1588         * device/include/hc08/mc68hc908jkjl.h: committed fix for bug #1929739,
1589           thanks Alejandro Pustowka <alejo_pustowka AT yahoo.com.mx>
1590
1591 2008-03-30 Maarten Brock <sourceforge.brock AT dse.nl>
1592
1593         * src/SDCCloop.c (loopInvariants): applied fix for bug 1717943, thanks
1594           Robert Larice
1595         * support/regression/tests/bug1717943.c: new, added
1596
1597 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
1598
1599         * src/z80/gen.c (assignResultValue): Reverted reversal of order of
1600           bytewise return value assignments introduced in last commit.
1601
1602 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
1603
1604         * src/z80/gen.c (emitDebug, assignResultValue, genPlus, genMinus,
1605           genMult, genJumpTab):
1606           Use 16-bit instructions for addition in some additional cases,
1607           implemented RFEs #1914251, #1914245, #1922090, #1921382, #1918323.
1608
1609 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
1610
1611         * src/z80/ralloc.c (serialRegAssign, allocReg, tryAllocatingRegPair):
1612           Implemented RFE #1921450, changed some debug messages.
1613
1614 2008-03-30 Borut Razem <borut.razem AT siol.net>
1615
1616         * Small Device C Compiler 2.8.0 released
1617         * .version, doc/sdccman.lyx: changed sdcc version to 2.8.1
1618         * support/scripts/sdcc.nsi: added finish page; this version
1619           was used for 2.8.0 release
1620         * doc/knownbugs.html: removed; magically generated by the build
1621           process using gen_known_bugs.pl from now on
1622
1623 2008-03-23 Borut Razem <borut.razem AT siol.net>
1624
1625         * src/pic/gen.h: Q&D solution for the bug, found by Jim Paris
1626           and reverted it, since it was already fixed by Raphael ;-)
1627         * doc/knownbugs.html: updated for RC2
1628
1629 2008-03-22 Raphael Neider <rneider AT web.de>
1630
1631         * src/SDCCicode.c (getPtrType): avoid unnecessary extra assignments
1632           for PIC16 targets
1633
1634 2008-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
1635
1636         * src/mcs51/gen.c (adjustArithmeticResult): fixed bug 1839299
1637         * support/regression/tests/bug1839277.c: added related testBug1839299
1638
1639 2008-03-21 Maarten Brock <sourceforge.brock AT dse.nl>
1640
1641         * src/ds390/gen.c (opIsGptr, adjustArithmeticResult, genAddrOf, genAssign),
1642         * src/mcs51/gen.c (opIsGptr, adjustArithmeticResult, genAddrOf, genAssign):
1643           fixed bug 1839277
1644         * src/mcs51/gen.c: throughout only output hex constants
1645         * src/SDCCicode.c (getPtrType, geniCodeCast): fixed code size regression
1646         * support/regression/tests/bug1839277.c: new, added
1647
1648 2008-03-21 Philipp Klaus Krause <pkk AT spth.de>
1649
1650         * src/z80/ralloc.c (callFuncByName): Used // instead of /**/ to fix
1651           compilation warning about nested comments.
1652
1653 2008-03-20 Maarten Brock <sourceforge.brock AT dse.nl>
1654
1655         * src/SDCCsymt.c (comparePtrType): fixed bug 1921073
1656         * support/regression/tests/bug1921073.c: new, added
1657
1658 2008-03-17 Philipp Klaus Krause <pkk AT spth.de>
1659
1660         * src/z80/SDCCpeeph.c.c (callFuncByName):
1661           Commented function parameters.
1662
1663 2008-03-17 Philipp Klaus Krause <pkk AT spth.de>
1664
1665         * src/z80/ralloc.c (packRegsForAccUse2):
1666           disabled a broken accumulator packing optimization (fixed #1292721).
1667         * support/regression/tests/bug-1292721: Regression test for #1292721.
1668
1669 2008-03-16 Raphael Neider <rneider AT web.de>
1670
1671         * src/pic/gen.c (SetIrp,genNearPointerGet,genNearPointerSet):
1672           fixed code bloat regression using a variant of patch #1915618
1673
1674 2008-03-16 Borut Razem <borut.razem AT siol.net>
1675
1676         * support/scripts/sdcc.nsi: added section debugging macros, added SDCC
1677           icon, changed startup menu for release distribution, code cleaning,
1678           create url files instead links in startup menu
1679
1680 2008-03-16 Maarten Brock <sourceforge.brock AT dse.nl>
1681
1682         * src/SDCCcse.c (algebraicOpts): fixed bug 1579949
1683         * support/regression/tests/bug1579949.c: new, added
1684
1685 2008-03-14 Paul Stoffregen <paul AT pjrc.com>
1686
1687         * device/lib/printf_fast.c: fixed bug 1255403
1688
1689 2008-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
1690
1691         * doc/sdccman.lyx: enhanced paragraph about bankswitching for mcs51
1692         * src/cdbFile.c (cdbWriteBasicSymbol): fixed bug 1909409 for locals
1693
1694 2008-03-14 Borut Razem <borut.razem AT siol.net>
1695
1696         * as/doc/asmlnk.doc, as/doc/asxhtm.html: updated link-xx and aslink
1697           command line options
1698         * as/link/hc08/lkmain.c: converted tabs to spaces so that the usage
1699           is correctly displayed
1700         * as/link/z80/lkmain.c: usage line commented out
1701
1702 2008-03-13 Borut Razem <borut.razem AT siol.net>
1703
1704         * doc/sdccman.lyx: corrected to be able to convert to PDF,
1705           updated the list pf supported pic14 devices
1706
1707 2008-03-12 Maarten Brock <sourceforge.brock AT dse.nl>
1708
1709         * doc/sdccman.lyx: added paragraph about bankswitching for mcs51
1710
1711 2008-03-12 Borut Razem <borut.razem AT siol.net>
1712
1713         * as/doc/asmlnk.doc, as/doc/asxhtm.html: updated command line options,
1714           fixed documentation request #1718191
1715         * as/hc80/asmain.c, as/mcs51/asmain.c: added option -c to usage
1716         * doc/sdccman.lyx: added description of --no-std-crt0 gbz80
1717           command line option
1718
1719 2008-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
1720
1721         * src/SDCCast.c (isConformingBody): fixed bug 1505811, thanks Robert Larice
1722         * support/regression/tests/bug1505811.c: new, added
1723
1724 2008-03-09 Raphael Neider <rneider AT web.de>
1725
1726         * device/include/pic16/pic18f2620.h,
1727         * device/include/pic16/pic18f4620.h,
1728         * device/lib/pic16/libdev/pic18f2620.c,
1729         * device/lib/pic16/libdev/pic18f4525.c,
1730         * device/lib/pic16/libdev/pic18f4620.c: merged 18f2525/2620/4525/4620
1731           family to consistently use pic18f4620.[ch], fixes #1832562
1732
1733 2008-03-09 Borut Razem <borut.razem AT siol.net>
1734
1735         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
1736           changed sdcc version to 2.8.0
1737         * knownbugs.html: regenerated
1738         * support/scripts/gen_known_bugs.pl: added number of open bugs
1739
1740 2008-03-09 Raphael Neider <rneider AT web.de>
1741
1742         * src/pic16/gen.c (pic16_mov2w_volatile): NEW, read volatile operands,
1743           (genOr): read volatile operand even if the result is known,
1744           closes #1511838
1745           (genOr,genXor): removed unused legacy code,
1746           (genDummyRead): use pic16_mov2w_volatile()
1747
1748 2008-03-08 Borut Razem <borut.razem AT siol.net>
1749
1750         * src/SDCCglue.c: fixed bug #1864582: multiple definition of char
1751           cons w. --model-large
1752         * support/regression/staticinit.c: added regression test for bug
1753           #1864582
1754
1755 2008-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
1756
1757         * src/ds390/gen.c (pushSide, genPcall),
1758         * src/hc08/gen.c (pushSide, genPcall): synchronized with mcs51
1759         * src/mcs51/gen.c: cosmetic changes
1760         * support/regression/fwk/include/testfwk.h: added macro reentrant
1761         * support/regression/tests/bug1908493.c: new, added
1762
1763 2008-03-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1764
1765         * src/SDCCdebug.c:, as/link/lkaomf51.c: Fixed bug 1909409: Pdata in OMF file
1766
1767 2008-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
1768
1769         * src/mcs51/gen.c (pushSide, genPcall): fixed bug 1908493
1770         * src/SDCCmain.c (preProcess): removed -DSDCC_PARMS_IN_BANK1 because it is
1771           already set in ds390/main.c and mcs51/main.c
1772
1773 2008-03-07 Raphael Neider <rneider AT web.de>
1774
1775         * src/regression/init0.c: new test for initialized arrays of function
1776           pointers
1777         * src/regression/Makefile: made a bit more flexible, added init0.c
1778         * src/pic/glue.c (emitIvals): hacky fix for initializing from function
1779           pointers, closes #1427663
1780
1781 2008-03-05 Borut Razem <borut.razem AT siol.net>
1782
1783         * dos/sdccman.lyx: docummented predefined macros SDCC_REVISION,
1784           SDCC_PARMS_IN_BANK1, SDCC_FLOAT_REENT and SDCC_INT_LONG_REENT
1785
1786 2008-03-05 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1787
1788         * support/librarian/sdcclib.c:Added feature request 1908061:
1789           Synchronise sdcclib commands with ar.
1790
1791 2008-03-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1792
1793         * src/SDCCmain.c: added predefined macros SDCC_REVISION (RFE #1907229),
1794           and (depending on corresponding compiler option) SDCC_PARMS_IN_BANK1,
1795           SDCC_FLOAT_REENT, SDCC_INT_LONG_REENT
1796         * device/include/mcs51/compiler.h: removed umlauts, added double
1797           underscore
1798
1799 2008-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
1800
1801         * src/SDCCptropt.c (ptrPseudoSymConvert): fixed bug 1536762
1802         * support/regression/tests/bug1536762.c: new, added
1803         * src/SDCCutil.c,
1804         * src/SDCCutil.h: added getBuildDate()
1805         * src/SDCCmain.c (printVersionInfo),
1806         * src/SDCCglue.c (initialComments): use getBuildDate() instead of
1807           __DATE__
1808         * src/*/ralloc.c: removed IS_OP_RUONLY macro
1809         * src/ds390/ralloc.c (packRegisters),
1810         * src/mcs51/ralloc.c (packRegisters),
1811         * src/z80/ralloc.c (packRegisters): applied fix for bug 1618050, thanks
1812           Robert Larice
1813         * support/regression/tests/bug1618050.c: new, added
1814         * src/SDCCsymt.h: fixed typo in DECLSPEC2TXT
1815         * support/regression/fwk/include/testfwk.h,
1816         * support/regression/tests/bug1838000.c: moved _AUTOMEM and _STATMEM to
1817           testfwk.h
1818
1819 2008-03-04 Raphael Neider <rneider AT web.de>
1820
1821         * src/pic/gen.c: removed unused prototypes, prevent internal errors
1822           on accessing OP_SYM_TYPE(op)
1823         * src/pic/gen.h: removed unused prototype of genMinusDec()
1824         * src/pic/genarith.c (genMinus): cosmetic changes, rewritten to
1825           fix #1876953 (invalid subtraction code), removed unused code
1826
1827 2008-03-03 Raphael Neider <rneider AT web.de>
1828
1829         * src/pic/gen.c,
1830         * src/pic/gen.h,
1831         * src/pic/genarith.c,
1832         * src/pic/ralloc.c,
1833         * src/pic/ralloc.h: removed AOP_R0, AOP_R1, AOP_DPTR, AOP_DPTR2,
1834           AOP_ACC, and *_IDX and adjusted code, removed unused legacy code
1835
1836 2008-03-03 Raphael Neider <rneider AT web.de>
1837
1838         * src/pic/device.c (find_device): search user-specified paths first
1839           for pic14devices.txt, fixes #1900827
1840
1841 2008-03-02 Borut Razem <borut.razem AT siol.net>
1842
1843         * support/scripts/sdcc.nsi: fixed bug in IsNT, LogicLib-isation of
1844           AddToPath and RemoveFromPath
1845
1846 2008-03-01 Borut Razem <borut.razem AT siol.net>
1847
1848         * support/scripts/sdcc.nsi: reverted MULTIUSER page since it didn't
1849           work correctly, added debugging support if -DSDCC.DEBUG command line
1850           option is defined
1851
1852 2008-02-28 Borut Razem <borut.razem AT siol.net>
1853
1854         * doc/sdccman.lyx: cosmetic changes
1855
1856 2008-02-28 Maarten Brock <sourceforge.brock AT dse.nl>
1857
1858         * src/mcs51/ralloc.c (fillGaps): fixed bug 1839671
1859         * doc/sdccman.lyx: fixed unmeant removal of spaces
1860
1861 2008-02-27 Borut Razem <borut.razem AT siol.net>
1862
1863         * support/scripts/sdcc.nsi: corrected installation directory for
1864           current user installation mode
1865         * doc/README.txt: added Philipp Klaus Krause to the developers list
1866
1867 2008-02-27 Maarten Brock <sourceforge.brock AT dse.nl>
1868
1869         * src/mcs51/gen.c (genUnpackBits): don't generate ifxJump, instead
1870           return ifx condition
1871           (genNearPointerGet, genPagedPointerGet, genFarPointerGet,
1872           genCodePointerGet, genGenPointerGet): cleanup aop before generating
1873             ifxJump to fix bug 1838000
1874         * src/SDCCsymt.c (aggregateToPointer): fix problem for xstack
1875         * support/regression/tests/bug1838000.c: new, added
1876         * device/include/mcs51/cc1110.h: new, added, thanks to Pravin Angolkar
1877
1878 2008-02-26 Borut Razem <borut.razem AT siol.net>
1879
1880         * src/SDCCast.c, doc/sdccman.lyx: fixed RFE #1901171: inerger promotion
1881           of casted varargs
1882         * support/scripts/sdcc.nsi: added MULTIUSER page,
1883           NSIS upgraded to version 2.35
1884
1885 2008-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
1886
1887         * src/mcs51/ralloc.c (isSpiltOnStack): fixed bug 1565152
1888         * support/regression/tests/bug1565152.c: new, added
1889
1890 2008-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
1891
1892         * src/mcs51/gen.c (genPagedPointerSet): fixed bug 1670148
1893         * support/regression/ports/mcs51-xstack-auto/spec.mk: added expf.c
1894         * support/regression/tests/bug1670148.c: new, added
1895
1896 2008-02-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1897
1898         * device/include/mcs51/at89c51ed2.h: fixed bug 1901469.
1899
1900 2008-02-24 Borut Razem <borut.razem AT siol.net>
1901
1902         * src/SDCCast.c, src/SDCCast.h: fixed bug #1874922: explicit typecast
1903           is ineffective for unsigned char parameter
1904
1905 2008-02-24 Maarten Brock <sourceforge.brock AT dse.nl>
1906
1907         * src/SDCCast.c (expandInlineFuncs): fixed bug 1875869
1908         * src/SDCCglue.c (printIvalBitFields): fixed bug 1806631
1909         * support/regression/tests/bitopcse.c: removed hc08 exception, see testfwk.h
1910         * support/Util/MySystem.c (my_system): output errorcode when verbose
1911
1912 2008-02-22 Philipp Klaus Krause <pkk AT spth.de>
1913
1914         * src/z80/gen.c (genMult): Rewrote 8-bit multiplication by constant,
1915           implements #1898231
1916
1917 2008-02-22 Philipp Klaus Krause <pkk AT spth.de>
1918
1919         * device/lib/z80/mul.s: Rewrote __muluchar_rrx_s, to improve 8-bit mult.,
1920           implements #1896290
1921
1922 2008-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
1923
1924         * src/SDCCast.c (createIvalStruct): fixed bug 1466761
1925
1926 2008-02-21 Borut Razem <borut.razem AT siol.net>
1927
1928         * support/regression/Makefile.in,
1929           support/regression/ports/ds390/spec.mk,
1930           support/regression/ports/hc08/spec.mk,
1931           support/regression/ports/mcs51-common/spec.mk,
1932           support/regression/ports/pic14/spec.mk,
1933           support/regression/ports/pic16/spec.mk,
1934           support/regression/ports/ucz80/spec.mk,
1935           support/regression/ports/xa51/spec.mk:
1936           added CFLAGS when compiling timeout
1937
1938 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
1939
1940         * support/regression/tests/bugs-1596270-1736867.c: Regression test for
1941           #1596270, #1736867
1942
1943 2008-02-20 Maarten Brock <sourceforge.brock AT dse.nl>
1944
1945         * src/SDCClrange.c (findPrevUse): fixed bug 1888147
1946         * support/regression/tests/bug1888147.c: new, added
1947
1948 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
1949
1950         * src/z80/gen.c: fixed bugs #1596270, #1736867
1951
1952 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
1953
1954         * src/z80/gen.c: fixed bug in register pair loading when swapping register
1955           contents, mostly fixes #1596270
1956
1957 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
1958
1959         * src/z80/peeph.def,
1960         * src/z80/peeph-z80.def: moved peephole that breaks gbz80 to z80-specific
1961           peepholes, fixes #1806565
1962
1963 2008-02-20 Maarten Brock <sourceforge.brock AT dse.nl>
1964
1965         * src/SDCCpeeph.c (operandBaseName): added check for @Ri
1966         * src/mcs51/peeph.def (rule 177.c): added operandsNotRelated(%1 %3)
1967           fixes bug 1739475, thanks Robert Larice
1968           (rule 271): new, added
1969
1970 2008-02-18 Borut Razem <borut.razem AT siol.net>
1971
1972         * sim/ucsim/s51.src/Makefile.in: fixed error made in previous commit
1973
1974 2008-02-17 Maarten Brock <sourceforge.brock AT dse.nl>
1975
1976         * src/SDCCmain.c (linkEdit): emit -z when using --debug for z80
1977
1978 2008-02-17 Raphael Neider <rneider AT web.de>
1979
1980         * src/pic16/genarith.c,
1981         * src/pic16/gen.c,
1982         * src/pic16/gen.h,
1983         * src/pic16/genutils.c: removed unused legacy code,
1984           removed unused fields from struct asmop and struct _G
1985
1986 2008-02-17 Raphael Neider <rneider AT web.de>
1987
1988         * src/pic16/gen.c (AccRsh): cosmetic changes,
1989           (shiftR1Left2ResultSigned,shiftR1Left2Result,shiftL1Left2Result,
1990           genRightShiftLiteral): fixed to work with SFRs as result by
1991           assigning only once to result,
1992           removed a lot of unused/excluded code fragments
1993
1994 2008-02-17 Raphael Neider <rneider AT web.de>
1995
1996         * device/include/pic/pic16f88.h,
1997         * device/include/pic/pic16f886.h,
1998         * device/include/pic/pic16f887.h: added TRISA6 and TRISA7
1999
2000 2008-02-17 Borut Razem <borut.razem AT siol.net>
2001
2002         * src/z80/peeph.def: applied patch
2003           #1893626: Optimize tail calls on Z80, thanks to Philipp Krause
2004         * src/z80/gen.c, src/z80/peeph.def: applied patch
2005           #1893510: Improve logical left shift on Z80, thanks to Philipp Krause
2006         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
2007           sim/ucsim/s51.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
2008           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
2009           sim/ucsim/main_in.mk: renamed libutil.a to libucsimutil.a in order to
2010           enable compilation on Mac OS X 10.5 (Leopard) and XCode v3.0
2011
2012 2008-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
2013
2014         * as/link/mcs51/aslink.dsp: removed SDK define
2015         * as/link/z80/clean.mk: brought in sync with other ports
2016         * as/link/z80/lklibr.c (SdccLib, fndsym): handle the dflag here too
2017         * as/hc08/Makefile.bcc,
2018         * as/mcs51/Makefile.bcc,
2019         * as/z80/Makefile.bcc: noice.c was moved to as/asxxsrc/
2020         * src/z80/main.c (_setValues): use the now capitalized -Z,
2021           (z80_port, gbz80_port): generate debug information when asked
2022
2023 2008-02-16 Borut Razem <borut.razem AT siol.net>
2024
2025         * as/z80/asmain.c, as/z80/asm.h, as/z80/asdata.c,
2026           as/link/z80/lkmain.c, as/z80/as_gbz80.dsp, as/z80/as_z80.dsp,
2027           as/z80/Makefile.in. as/z80/Makefile.bcc:
2028           applied patch #1893393: patch for as-z80 and link-z80 to generate
2029           cdb, thanks to Armin Diehl
2030         * as/*/asnoice.c, as/hc08/as_hc08.dsp, as/hc08/Makefile.in,
2031           as/mcs51/asx8051.dsp, as/mcs51/Makefile.in:
2032           asnoice.c moved to as/asxxsrc/asnoice.c
2033         * src/z80/peeph-gbz80.def: applied patch
2034           #1880235: Z80 return peephole, thanks to Philipp Krause
2035
2036 2008-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
2037
2038         * .version,
2039         * doc/sdccman.lyx: bumped version to 2.7.5
2040         * src/SDCCsymt.c (compareType, comparePtrType): fixed bug 1281583
2041
2042 2008-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
2043
2044         * device/include/pic16/stdlib.h,
2045         * device/lib/pic16/libc/stdlib/ltoa.c,
2046         * device/lib/pic16/libc/stdio/vfprintf.c: ascii strings are char*
2047
2048 2008-02-13 Borut Razem <borut.razem AT siol.net>
2049
2050         * src/SDCCmain.c, src/SDCCglue.c: fixed --c1mode
2051         * src/pic16/glue.c, src/SDCCast.c, src/SDCCast.h, src/SDCCBBlock.c,
2052           src/SDCCcse.c, src/SDCCglue.c, src/SDCCicode.c, src/SDCCloop.c,
2053           src/SDCCopt.c,  src/SDCCval.c:
2054           fixed bug #1890273: SDCC Warning 154 shows wrong filename
2055
2056 2008-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
2057
2058         * src/SDCCsymt.c (compareType): fixed bug 1309013
2059
2060 2008-02-09 Borut Razem <borut.razem AT siol.net>
2061
2062         * src/SDCCval.c, src/SDCCval.h:
2063           code cleaning, added function constChrVal()
2064         * src/SDCCglue.c, src/pic/glue.c, src/pic16/glue.c, src/SDCCast.c, src/SDCC.y:
2065           call constChrVal() instead constVal()
2066
2067 2008-02-01 Maarten Brock <sourceforge.brock AT dse.nl>
2068
2069         * src/SDCCast.c (resolveSymbols): added reentrancy check for parameters
2070           of function pointer
2071         * src/SDCCerr.h,
2072         * src/SDCCerr.c: changed warning W_NONRENT_ARGS to error E_NONRENT_ARGS
2073         * support/regression/tests/absolute.c: added TestStruct TestVar (see also
2074           bug 1859853)
2075
2076 2008-02-01 Raphael Neider <rneider AT web.de>
2077
2078         * device/include/pic/pic16f886.h,
2079         * device/include/pic/pic16f887.h: added RA6 and RA7
2080
2081 2008-01-24 Raphael Neider <rneider AT web.de>
2082
2083         * device/include/pic/pic16f88.h: added RA6 and RA7
2084         * device/lib/pic/libdev/disabled_pic16f886.c,
2085         * device/lib/pic/libdev/disabled_pic16f887.c: renamed and enabled
2086
2087         * src/pic16/devices.inc,
2088         * device/include/pic16/pic18f2423.h,
2089         * device/include/pic16/pic18f2523.h,
2090         * device/include/pic16/pic18fregs.h,
2091         * device/lib/pic16/pics.all
2092         * device/lib/pic16/libdev/pic18f2423.c,
2093         * device/lib/pic16/libdev/pic18f2523.c: added 18f2423 and 18f2523
2094         * device/lib/pic16/libio/i2c.ignore,
2095         * device/lib/pic16/libio/usart.ignore,
2096         * device/lib/pic16/libio/adc.ignore: ignore new devices
2097
2098 2008-01-23 Maarten Brock <sourceforge.brock AT dse.nl>
2099
2100         * src/SDCCast.c (createRMW): fixed bug 1582651
2101
2102 2008-01-20 Borut Razem <borut.razem AT siol.net>
2103
2104         * src/SDCCcse.c: partially fixed enhancement request
2105           #1793872 - multiply by -1 not collapsed
2106         * support/regression/tests/arithcsi.c: added regression test
2107
2108 2008-01-19 Maarten Brock <sourceforge.brock AT dse.nl>
2109
2110         * as/mcs51/asx8051.dsp: removed define SDK
2111         * as/mcs51/i51mch.c (machine): fixed bug 1865114
2112         * device/include/asm/ds390/features.h: fixed bug with ds390 & stack-auto
2113         * as/link/lklex.c,
2114         * as/link/mcs51/lkmain.c: used LKDIRSEP, LKDIRSEPSTR and LKOBJEXT,
2115           cosmetic changes, brought more in sync, changed old K&R to ANSI
2116
2117 2008-01-13 Borut Razem <borut.razem AT siol.net>
2118
2119         * support/scripts/sdcc.nsi: added Uninstall/reinstall page, ...
2120         * src/SDCCicode.c: fixed bug #1870216 - Error 122: dividing by zero
2121
2122 2007-12-30 Borut Razem <borut.razem AT siol.net>
2123
2124         * src/pic16/gen.c: fixed implementation of bitwise operations for
2125           pic16 target
2126         * support/regression/tests/bitwise.c: added test cases
2127
2128 2007-12-29 Borut Razem <borut.razem AT siol.net>
2129
2130         * src/SDCCasm.[ch]: renamed from asm[ch], use dbuf_getline(), ...
2131         * src/src.dsp, src/Makefile.bcc, src/Makefile.in, src/common.h,
2132           src/SDCCglue.c, src/xa51/main.c: asm.[ch] renamed to SDCCasm.[ch]
2133         * support/Util/dbuf_string.[ch]: added function dbuf_getline()
2134         * src/ds390/gen.c, src/hc08/gen.c, src/mcs51/gen.c, src/pic16/gen.c,
2135           src/pic/gen.c, src/z80/gen.c, src/xa51/gen.c, src/pic16/ralloc.c,
2136           src/pic16/pcode.[ch]: added const qualifier
2137         * as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
2138           as/mcs51/Makefile.bcc, as/mcs51/Makefile.in, as/mcs51/asx8051.dsp,
2139           as/z80/Makefile.bcc, as/z80/Makefile.in, as/z80/as_gbz80.dsp,
2140           as/z80/as_z80.dsp: added dbuf.[ch] and dbuf_string[ch] to project
2141         * as/asxxsrc/aslex.c: use dbuf_getline()
2142         * as/hc08/asdata.c, as/hc08/asexpr.c, as/hc08/asm.h, as/hc08/m08adr.c,
2143           as/mcs51/asdata.c, as/mcs51/asexpr.c, as/mcs51/asm.h,
2144           as/mcs51/i51adr.c, as/z80/asdata.c, as/z80/asexpr.c, as/z80/aslist.c,
2145           as/z80/asm.h, as/z80/z80adr.c:
2146           changed type of ib and ip to const char *
2147
2148 2007-12-28 Borut Razem <borut.razem AT siol.net>
2149
2150         * as/asxxsrc/aslex.c: moved from as/mcs51/aslex.c;
2151           introduced (readlin) - long lines are turuncated
2152         * as/hc08/as_hc08.dsp, as/mcs51/asx8051.dsp, as/z80/as_gbz80.dsp,
2153           as/z80/as_z80.dsp, as/hc08/Makefile.in, as/mcs51/Makefile.in,
2154           as/z80/Makefile.in: moved aslex.c to asxxsrc
2155         * as/hc08/aslex.c, as/z80/aslex.c: deleted
2156         * as/hc08/asmain.c, as/mcs51/asmain.c:
2157           added missing initialization of a_addr field
2158         * support/regression/tests/long_asm_line.c: added regtest for long
2159           assembler line
2160
2161 2007-12-22 Borut Razem <borut.razem AT siol.net>
2162
2163         * src/SDCC.lex: fixed bug #1852894: # character hangs the compiler
2164
2165 2007-12-20 Maarten Brock <sourceforge.brock AT dse.nl>
2166
2167         * src/SDCCsymt.c (computeType): fixed bug, thanks Fan Weiguang
2168
2169 2007-12-16 Borut Razem <borut.razem AT siol.net>
2170
2171         * device/include/pic16/stdbool.h: removed, since already exists in
2172          device/include/; this also fixes bitopcse.c regression test for pic16
2173          target
2174         * support/regression/fwk/inclusw/testfwk.h: added macro ASSERT_FAILED
2175         * src/pic16/glue.c: fixed bug #1851855: generic static pointer
2176           dereference doesn't work; covered by regression test bug1399290
2177
2178 2007-12-05 Borut Razem <borut.razem AT siol.net>
2179
2180         * doc/sdccman.lyx: fixed bug #1844509 - Correction to Manual 4.6.9
2181           Adding new PIC16
2182
2183 2007-12-01 Borut Razem <borut.razem AT siol.net>
2184
2185         * sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/mem.cc:
2186           corrected handling of the highest_valid_address
2187
2188 2007-11-17 Raphael Neider <rneider AT web.de>
2189
2190         * src/pic/main.c (_asmCmd): include debug arguments (-g as $3)
2191         * src/pic/glue.c (picglue): emit .file if --debug is given
2192
2193 2007-11-17 Raphael Neider <rneider AT web.de>
2194
2195         * src/pic16/genarith.c (pic16_genPlus, pic16_genMinus): take special
2196         care when left or right operand resides in result, fixes #1830220
2197
2198 2007-11-17 Borut Razem <borut.razem AT siol.net>
2199
2200         * src/SDCCglue.c, src/pic16/glue.c: reverted fix for bug
2201           #983491 - "Merge duplicate strings function is ineffective"
2202         * support/regression/tests/bug-983491.c: regtest disabled
2203         * as/asxxsrc: created
2204           as/asxxsrc/assym.c, as/asxxsrc/strcmpi.c: moved
2205           as/hc08/assym.c, as/mcs51/assym.c, as/strcmpi.c,
2206           as/z80/assym.c, as/hc08/asstore.c, as/mcs51/asstore.c: deleted
2207           as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
2208           as/hc08/asm.h, as/link/hc08/Makefile.bcc, as/link/hc08/Makefile.in,
2209           as/link/hc08/link_hc08.dsp, as/link/mcs51/Makefile.bcc,
2210           as/link/mcs51/Makefile.in, as/link/mcs51/aslink.dsp,
2211           as/link/z80/Makefile.in, as/link/z80/linkgbz80.dsp,
2212           as/link/z80/linkz80.dsp, as/mcs51/Makefile.bcc, as/mcs51/Makefile.in,
2213           as/mcs51/asm.h, as/mcs51/asx8051.dsp, as/z80/Makefile.bcc,
2214           as/z80/Makefile.in, as/z80/as_gbz80.dsp, as/z80/as_z80.dsp,
2215           as/z80/Makefile.as_hc08, as/mcs51/Makefile.asx8051: modified
2216           created as/asxxsrc directory, assym.c and strcpi.c moved into it
2217
2218 2007-11-15 Maarten Brock <sourceforge.brock AT dse.nl>
2219
2220         * device/include/stdarg.h: added and removed some casts
2221         * src/SDCCsymt.c (compareType): Fully check types between generic and
2222           non-generic pointers, also accept ptr-ptr to void-ptr assignments
2223
2224 2007-11-13 Borut Razem <borut.razem AT siol.net>
2225
2226         * support/regression/tests/bug-1817005.c:
2227           added regtest for bug #1817005 - as-z80 chokes on long labels
2228
2229 2007-11-12 Borut Razem <borut.razem AT siol.net>
2230
2231         * as/z80/asmain.c, as/z80/asm.h, as/z80/assym.c, as/z80/asdata.c,
2232           as/z80/asout.c, as/z80/aslist.c:
2233           fixed bug #1817005 - as-z80 chokes on long labels
2234
2235 2007-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
2236
2237         * as/hc08/asmain.c,
2238         * as/z80/asmain.c: cosmetic changes
2239         * as/hc08/alloc.h,
2240         * as/mcs51/alloc.h,
2241         * as/z80/alloc.h: removed
2242         * as/hc08/assym.c,
2243         * as/mcs51/assym.c: replaced alloc.h with stdlib.h
2244         * as/link/aslink.h: added LKDIRSEP and, LKDIRSEPSTR
2245         * as/link/hc08/Makefile.in,
2246         * as/link/mcs51/Makefile.in,
2247         * as/link/z80/Makefile.in: added -DUNIX to CFLAGS
2248         * as/link/lklex.c,
2249         * as/link/mcs51/lkarea.c,
2250         * as/link/mcs51/lkmain.c: cosmetic changes
2251         * as/link/hc08/lklibr.c,
2252         * as/link/z80/lklibr.c,
2253         * as/link/mcs51/lklibr.c: used LKDIRSEP, LKDIRSEPSTR and LKOBJEXT,
2254           used cygwin_conv_to_full_posix_path,
2255           added warnings, cosmetic changes, brought more in sync
2256           changed old K&R into ANSI function declarations
2257         * as/link/z80/lklibr.c (loadAdb): added
2258         * as/link/z80/lkmain.c: removed -- option from usage text
2259
2260 2007-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
2261
2262         * src/mcs51/gen.c (outBitC): optimized for no result
2263
2264 2007-10-31 Borut Razem <borut.razem AT siol.net>
2265
2266         * src/SDCCsymt.c: fixed (hopeful properly) bug
2267           #1805702 - order of extern matters
2268         * support/regression/tests/bug-1805702.c: enabled regtest for bug
2269           #1805702
2270
2271 2007-10-29 Borut Razem <borut.razem AT siol.net>
2272
2273         * src/SDCCsymt.c: reverted bad fixed of bug #1805702
2274           - order of extern matters
2275         * support/regression/tests/bug-1805702.c: disabled regtest for bug
2276           #1805702
2277
2278 2007-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
2279
2280         * src/ds390/peeph.def: replaced 24bitModeAndPortDS390 by
2281           24bitMode, portIsDS390
2282         * src/mcs51/gen.c (genOr): optimized for RFE 1750727
2283         * src/SDCCpeeph.c (flat24bitModeAndPortDS390): removed
2284           (notVolatileVariable): also check sloc names,
2285           (callFuncByName): moved ftab[] out of function and sorted it by use
2286
2287 2007-10-28 Maarten Brock <sourceforge.brock AT dse.nl>
2288
2289         * device/include/stdarg.h: fixed bug in va_start macro for --xstack
2290         * src/hc08/gen.c (aopForRemat): aop->aopu.aop_immd.from_cast_remat not set,
2291           aop->aopu.aop_immd.aop_immd2 not filled with (generic) pointer type
2292         * src/SDCCicode.c (geniCodeCast): fixed bug 880197
2293         * support/regression/tests/bug-880197.c: new, added
2294
2295 2007-10-28 Borut Razem <borut.razem AT siol.net>
2296
2297         * support/regression/Makefile.in,
2298           support/regression/ports/mcs51-large/spec.mk,
2299           support/regression/ports/mcs51-xstack-auto/spec.mk,
2300           support/regression/ports/mcs51-stack-auto/spec.mk,
2301           support/regression/ports/mcs51-medium/spec.mk,
2302           support/regression/ports/mcs51-common/spec.mk,
2303           support/regression/ports/mcs51-common/*,
2304           support/regression/ports/mcs51-small/*:
2305           mcs51 renamed to mcs51-common, created mcs51-small
2306         * src/SDCCsymt.c: fixed bug #1805702 - order of extern matters
2307         * support/regression/tests/bug-1805702.c: added regtest for bug
2308           #1805702
2309
2310 2007-10-26 Maarten Brock <sourceforge.brock AT dse.nl>
2311
2312         * src/mcs51/peeph.def: moved rules 257.x to 253.x and re-enabled 253.b,
2313           added new rules 265 - 270
2314         * support/regression/tests/bug1721024.c:new, added
2315         * support/regression/Makefile.in: renamed test-mcs51 to test-mcs51-small,
2316           introduced new test-mcs51 to run all mcs51 tests
2317
2318 2007-10-25 Maarten Brock <sourceforge.brock AT dse.nl>
2319
2320         * support/regression/tests/bug1816470.c: new, added
2321
2322 2007-10-21 Maarten Brock <sourceforge.brock AT dse.nl>
2323
2324         * src/SDCCast.c (resultTypePropagate): do propagate for LEFT_OP, do not
2325           propagate for *,+,- with float, fixed bug 1816470
2326           (decorateType): cast to resultTypeProp instead of resultType
2327
2328 2007-10-19 Borut Razem <borut.razem AT siol.net>
2329
2330         * src/pic16/glue.c: fixed bug #983491 - "Merge duplicate strings
2331           function is ineffective" for pic16 tareget
2332         * support/scripts/listerr.c: corrected include path
2333         * device/lib/_itoa.c: fixed bug #1806402 - _itoa and _uitoa leak to
2334           adjacent memory
2335
2336 2007-10-18 Maarten Brock <sourceforge.brock AT dse.nl>
2337
2338         * support/regression/tests/using.c: new, added
2339         * support/regression/tests/vaargs.c: fixed and enabled test
2340
2341 2007-10-18 Borut Razem <borut.razem AT siol.net>
2342
2343         * src/SDCCglue.c: fixed bug #983491 - Merge duplicate strings function
2344           is ineffective
2345         * support/regression/tests/bug-983491.c: added regtest for bug #983491
2346
2347 2007-10-18 Maarten Brock <sourceforge.brock AT dse.nl>
2348
2349         * doc/sdccman.lyx: documented option --Werror
2350         * src/SDCCsymt.c (checkFunction): fixed bug 1815418 by setting
2351           RegBankUsed[] earlier
2352
2353 2007-10-14 Maarten Brock <sourceforge.brock AT dse.nl>
2354
2355         * device/include/mcs51/p89lpc938.h: new, added, thanks Kyle Guinn
2356         * src/pic/glue.c,
2357         * src/SDCCval.c,
2358         * src/SDCCast.c,
2359         * src/SDCCast.h: replaced AST_LIT_VALUE with AST_FLOAT_VALUE and
2360           AST_ULONG_VALUE
2361         * src/SDCCast.c (decorateType): improved optimization of tri-op
2362         * src/SDCCerr.c (vwerror, setWError),
2363         * src/SDCCerr.h,
2364         * src/SDCCmain.c (parseCmdLine): added option --Werror to treat all
2365           warnings as errors, thanks Stas Sergeev for PATCH 1813211
2366
2367 2007-10-13 Maarten Brock <sourceforge.brock AT dse.nl>
2368
2369         * src/mcs51/gen.c (leftRightUseAcc): use macro IS_OP_ACCUSE
2370         * src/SDCCast.c (decorateType): optimize bit=cond?1:0, RFE 1738430
2371         * support/regression/tests/bug-223113.c,
2372         * support/regression/tests/bug-426632.c,
2373         * support/regression/tests/bug-468811.c,
2374         * support/regression/tests/bug-477835.c,
2375         * support/regression/tests/bug-478094.c,
2376         * support/regression/tests/bug-499644.c,
2377         * support/regression/tests/bug-524209.c,
2378         * support/regression/tests/bug-524211.c,
2379         * support/regression/tests/packcast.c,
2380         * support/regression/tests/structidx.c: added empty tests
2381         * support/regression/tests/bug-607243.c: enabled test
2382
2383 2007-10-06 Borut Razem <borut.razem AT siol.net>
2384
2385         * .version, doc/sdccman.lyx: bumped version to 2.7.4 to indicate the full
2386            support of universal binaries on Mac OS X
2387
2388 2007-10-02 Borut Razem <borut.razem AT siol.net>
2389
2390         * src/SDCCval.h: unified double2ul macro for all platforms
2391         * src/SDCCval.c: fixed bug #1777758 - applied Maarten's patch
2392         * support/regression/tests/bitwise.c: added regtest for bug #1777758
2393
2394 2007-09-30 Borut Razem <borut.razem AT siol.net>
2395
2396         * src/SDCCval.h: fixed bug #1739860 - sdcc does not work correctly on some
2397           platforms
2398         * sdcc_vc_in.h: enabled warnings
2399         * src/hc08/gen.c: fixed MSVC warning C4146: unary minus operator applied to
2400           unsigned type, result still unsigned
2401         * src/mcs51/peep.c: fixed gcc warning: suggest parentheses around && within ||
2402
2403 2007-09-28 Raphael Neider <rneider AT web.de>
2404
2405         * src/pic/device.c (find_device): prevent buffer underflow error
2406         * src/pic/pcoderegs.c (OptimizeRegUsage): avoid dereferencing
2407           the just destroyed list entry
2408
2409 2007-09-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2410
2411         * doc/sdccman.lyx: there's a dedicated wiki page for cmake and sdcc, thanks
2412           Alexander Neundorf
2413
2414 2007-09-18 Borut Razem <borut.razem AT siol.net>
2415
2416         * src/SDCCval.c: fixed MSVC warning C4146: unary minus operator
2417          applied to unsigned type, result still unsigned
2418
2419 2007-09-17 Borut Razem <borut.razem AT siol.net>
2420
2421         * src/SDCC.y, src/SDCCast.c, src/SDCCcse.c, src/SDCCglue.c,
2422           src/SDCCicode.c, src/SDCCopt.c, src/SDCCsymt.c, src/SDCCval.c,
2423           src/SDCCval.h, src/hc08/gen.c, src/avr/gen.c, src/ds390/gen.c,
2424           src/mcs51/gen.c, src/pic/gen.c, src/pic/genarith.c, src/pic/glue.c,
2425           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/genarith.c,
2426           src/pic16/genutils.c, src/pic16/glue.c, src/pic16/main.c,
2427           src/z80/gen.c, src/z80/ralloc.c:
2428           fixed bug #1739860 - sdcc does not work correctly on some platforms
2429           (not finished)
2430           introduced and used ulFromVal(), double2ul(), used strtod() instead sscanf()
2431
2432 2007-09-17 Raphael Neider <rneider AT web.de>
2433
2434         * src/pic16/device.c: reverted to previous version
2435         * device/lib/pic16/Makefile.common.in: quieten gpasm via -Wa,-q
2436
2437 2007-09-16 Raphael Neider <rneider AT web.de>
2438
2439         * src/pic16/device.c (pic16_dump_usection): do not reserve 0 bytes,
2440           as this raises a ton of gpasm warnings, just emit a second label
2441         * src/pic16/devices.inc,
2442         * device/lib/pic16/pics.all,
2443         * device/lib/pic16/libdev/pic18f2585.c,
2444         * device/lib/pic16/libdev/pic18f2680.c,
2445         * device/lib/pic16/libdev/pic18f2682.c,
2446         * device/lib/pic16/libdev/pic18f2685.c,
2447         * device/lib/pic16/libdev/pic18f4585.c,
2448         * device/lib/pic16/libdev/pic18f4680.c,
2449         * device/lib/pic16/libdev/pic18f4682.c,
2450         * device/lib/pic16/libdev/pic18f4685.c,
2451         * device/include/pic16/pic18f2585.h,
2452         * device/include/pic16/pic18f2680.h,
2453         * device/include/pic16/pic18f2682.h,
2454         * device/include/pic16/pic18f2685.h,
2455         * device/include/pic16/pic18f4585.h,
2456         * device/include/pic16/pic18f4680.h,
2457         * device/include/pic16/pic18f4682.h,
2458         * device/include/pic16/pic18f4685.h,
2459         * device/include/pic16/pic18fregs.h: added 18f2585, 18f2680,
2460           18f2682, 18f2685, 18f4585, 18f4680, 18f4682, 18f4685,
2461           patch contributed by Anton Strobl, applied with changes
2462
2463 2007-09-16 Raphael Neider <rneider AT web.de>
2464
2465         * device/include/pic16/pic18f2431.h,
2466         * device/include/pic16/pic18f25j10.h,
2467         * device/include/pic16/pic18f4431.h,
2468         * device/include/pic16/pic18f45j10.h: adopted common include style
2469         * device/include/pic16/pic18f1320.h,
2470         * device/include/pic16/pic18f2320.h,
2471         * device/include/pic16/pic18f2525.h,
2472         * device/include/pic16/pic18f4320.h,
2473         * device/include/pic16/pic18f4525.h: NEW, just include proper .h file
2474         * device/include/pic16/pic18fregs.h: prepared for automatic include
2475           file selection by having DEVICE.h for every DEVICE
2476         * device/lib/pic16/libdev/pic18f2320.c,
2477         * device/lib/pic16/libdev/pic18f4320.c: just include proper .c file
2478
2479         * device/lib/pic16/configure.in,
2480         * device/lib/pic16/configure: use rm -rf instead of rmdir
2481         * device/lib/pic16/Makefile.in: use RMDIR to remove build directories
2482         * device/lib/pic16/libc/stdlib/free.c: avoid warning on pointer cast
2483
2484 2007-09-09 Borut Razem <borut.razem AT siol.net>
2485
2486         * src/SDCCmain.c, src/SDCCutil.c: print newline after printVersionInfo(),
2487           distingush between i386 and ppc Mac OS X versions
2488
2489 2007-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
2490
2491         * src/mcs51/gen.c (genReceive): fixed bug 1788177
2492         * support/regression/tests/bug1788177.c: new, added
2493
2494 2007-09-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2495
2496         * doc/sdccman.lyx: mentioned d52 and cmake, customizing startup code
2497         * device/include/mcs51/lint.h added keyword __naked
2498
2499 2007-09-04 Maarten Brock <sourceforge.brock AT dse.nl>
2500
2501         * src/pic16/glue.c,
2502         * src/pic/glue.c,
2503         * src/SDCCmem.h: removed maxRegBank
2504         * src/SDCCmem.c (allocVariables): removed maxRegBank and moved setting
2505           RegBankUsed[] to checkFunction() in SDCCsymt.c to fix bug 1759839
2506         * src/SDCCsymt.c (checkFunction): set RegBankUsed[] here
2507         * src/mcs51/peep.c (isCallerSaveFunc, termScanAtFunc): changed function
2508           name and behaviour to handle banked functions
2509           (scan4op): and use it to fix bug 1786213
2510
2511 2007-09-03 Raphael Neider <rneider AT web.de>
2512
2513         * device/include/pic16/pic18f248.h,
2514         * device/include/pic16/pic18f258.h,
2515         * device/include/pic16/pic18f448.h,
2516         * device/lib/pic16/libdev/pic18f248.c,
2517         * device/lib/pic16/libdev/pic18f258.c,
2518         * device/lib/pic16/libdev/pic18f448.c: fixed TRISEbits,
2519           added T0CONbits, fixes #1786891
2520
2521 2007-08-29 Maarten Brock <sourceforge.brock AT dse.nl>
2522
2523         * src/ds390/gen.c (genFarPointerSet),
2524         * src/hc08/ralloc.c (packRegisters),
2525         * src/mcs51/ralloc.c (packRegisters),
2526         * src/SDCCcse.c (cseBBlock): check if result is a symbol first to fix
2527           bug 1750318
2528         * src/SDCCicode.h: POINTER_SET can be true for literals too
2529         * support/regression/tests/bug1750318.c: new, added
2530
2531 2007-08-23 Borut Razem <borut.razem AT siol.net>
2532
2533         * debugger/mcs51/sdcdb.c: fixed compilation with older readline
2534           library versions without the completition functionality
2535
2536 2007-08-22 Raphael Neider <rneider AT web.de>
2537
2538         * device/include/pic16/pic18f1220.h,
2539         * device/lib/pic16/libdev/pic18f1220.c: applied patch #1776191
2540
2541 2007-08-12 Borut Razem <borut.razem AT siol.net>
2542
2543         * debugger/mcs51/Makefile.in: support/Util/SDCCerr.[ch] moved to src
2544
2545 2007-08-11 Borut Razem <borut.razem AT siol.net>
2546
2547         * support/Util/SDCCerr.c, support/Util/SDCCerr.h, src/src.dsp,
2548           src/Makefile.in, src/Makefile.bcc, support/scripts/listerr.c:
2549           support/Util/SDCCerr.[ch] moved to src
2550         * as/hc08/as_hc08.dsp, as/link/hc08/link_hc08.dsp,
2551           as/link/z80/linkgbz80.dsp, as/link/z80/linkz80.dsp,
2552           device/examples/ds390/tinitalk/tinitalk.dsp,
2553           device/examples/serialcomm/windows/serialcomm.dsp,
2554           support/librarian/librarian.dsp:
2555           removed linking of unused odbc32.lib and odbccp32.lib
2556         * support/scripts/winres.h:
2557           added for compilation with Visual C++ 2005 Express Edition
2558
2559 2007-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2560
2561         * device/include/mcs51/at89c51ed.h: Fixed typo in declarations of CKCON0
2562           and CKCON1.
2563
2564 2007-08-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2565
2566         * sdccconf_in.h: update the endian test so that SPARC Solaris
2567           does not throw syntax errors
2568
2569 2007-08-06 Borut Razem <borut.razem AT siol.net>
2570
2571         * doc/sdccman.lyx: removed two index entries which prevented the
2572           generation of sdcc doc archive
2573
2574 2007-08-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2575
2576         * doc/sdccman.lyx: Same changes made 2007-07-28 but using lyx 1.4.4
2577           instead of lyx 1.5.0.
2578
2579 2007-07-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2580
2581         * device/include/hc08/mc68hc908apxx.h: new header contributed by
2582           Lucas Loizaga, with minor modifications. Thanks!
2583
2584 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2585
2586         * doc/sdccman.lyx: Documented --acall-ajmp and described new features
2587           in sdcclib.
2588
2589 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2590
2591         * src/SDCCglobl.h, src/SDCCpeeph.c, src/SDCCglue.c, src/mcs51/main.c,
2592           src/mcs51/peeph.def: Added option --acall-ajmp: replaces lcall/ljmp
2593           with acall/ajmp.
2594
2595 2007-07-22 Borut Razem <borut.razem AT siol.net>
2596
2597         * configure.in, configure: re-introduced .version
2598         * sdcc.spec, doc/INSTALL.txt: they are used only for releases;
2599           the version reverted to 2.7.0
2600
2601 2007-07-18 Maarten Brock <sourceforge.brock AT dse.nl>
2602
2603         * configure.in,
2604         * doc/sdccman.lyx: bumped version to 2.7.3
2605         * device/include/mcs51/compiler.h: fixed elif->else
2606         * src/mcs51/gen.c (genAnd, genOr): handle accuse for pure bit operands
2607         * src/mcs51/ralloc.c (createStackSpil): fixed SCLS bug with sloc for sbit,
2608           (operandUsesAcc, packRegsForAccUse): added parameter allowBitspace to
2609            enable accuse for bit operands
2610         * src/SDCCmain.c (printVersionInfo),
2611         * src/SDCCutil.c (getBuildEnvironment): factored out creation of build
2612           environment descriptor
2613         * src/SDCCutil.h: added getBuildEnvironment
2614         * src/SDCCglue.c (initialComments): use getBuildEnvironment
2615         * support/regression/tests/bug1464657.c: enabled test test_Peephole251
2616         * support/regression/tests/bug-408972.c: enabled test leftShiftLong
2617         * support/regression/tests/bug1348008.c,
2618         * support/regression/tests/bug1496419.c,
2619         * support/regression/tests/bug1503067.c,
2620         * support/regression/tests/preproc.c: added empty tests
2621
2622 2007-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
2623
2624         * support/regression/tests/bug1678803.c: new, added
2625
2626 2007-07-14 Maarten Brock <sourceforge.brock AT dse.nl>
2627
2628         * as/link/aslink.h,
2629         * as/link/hc08/lkihx.c,
2630         * as/link/hc08/lkrloc.c,
2631         * as/link/mcs51/lkihx.c,
2632         * as/link/mcs51/lkrloc.c: renamed ihxEntendedLinearAddress to
2633           ihxExtendedLinearAddress
2634         * as/link/mcs51/lkrloc.c (relr),
2635         * as/mcs51/asout.c (outr11, outr19): handle absolute destination for
2636           acall/ajmp, see bug 830513
2637
2638 2007-07-13 Maarten Brock <sourceforge.brock AT dse.nl>
2639
2640         * src/SDCCcse.c (replaceAllSymBySym): renamed siaddr to isaddr,
2641           (cseBBlock): remember aggr2ptr has been used
2642         * src/SDCCicode.c (operandSize): added function to handle aggr2ptr,
2643           (geniCodeAssign): fixed bug 868103
2644         * src/SDCCicode.h: made operand.aggr2ptr 2 bits wide,
2645           added operandSize prototype
2646         * src/mcs51/gen.c (aopOp): use operandSize to fix bug 868103,
2647           (genDataPointerSet): use max of size of right and result,
2648           (gencjne): added parameter useCarry for optimization,
2649           (genCmpEq): use carry if appropriate,
2650           (genXor): check if operand already in carry
2651         * support/regression/tests/bug-868103.c: enabled test
2652
2653 2007-07-12 Raphael Neider <rneider AT web.de>
2654
2655         * src/pic16/gen.c (genNearPointerSet): fixed handling of literals
2656
2657 2007-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
2658
2659         * src/SDCCsymt.c (compareType): fixed bugs 1738367 and 1745717 with patch
2660           from Robert Larice, thanks
2661         * support/regression/tests/bitopcse.c,
2662         * support/regression/tests/bitvars.c,
2663         * support/regression/tests/bug-908454.c: use <stdbool.h> for the bit types
2664         * support/regression/tests/bug-927659.c: enabled test for z80
2665         * support/regression/tests/bug1738367.c: added extra tests by Frieder
2666         * support/regression/tests/bug1745717.c: new, added
2667         * support/regression/tests/literalop.c,
2668         * support/regression/tests/nullstring.c: removed storage definitions that
2669           are now in testfwk.h
2670
2671 2007-07-10 Maarten Brock <sourceforge.brock AT dse.nl>
2672
2673         * device/include/stdbool.h: do not define __bool_true_false_are_defined
2674           and bool for targets that do not fully support it.
2675         * support/regression/tests/bug1546986.c,
2676         * support/regression/tests/bug1723128.c,
2677         * support/regression/tests/bug1734654.c,
2678         * support/regression/tests/bug1738367.c,
2679         * support/regression/tests/constantRange.c: only use bool if allowed
2680
2681 2007-07-09 Maarten Brock <sourceforge.brock AT dse.nl>
2682
2683         * src/mcs51/peep.c (isCallerSaveFunc): fixed bug 1749275, thanks Robert
2684           Larice, also handle function pointers
2685         * support/regression/tests/bug1749275.c: new, added
2686
2687 2007-07-03 Borut Razem <borut.razem AT siol.net>
2688
2689         * src/mcs51/gen.c, src/avr/gen.c, src/pic/gen.c, src/z80/gen.c,
2690           src/pic16/gen.c, src/hc08/gen.c, src/ds390/gen.c: fixed RFE
2691           #1746528: SDCC should ignore ':' in inline assembler comments
2692         * device/include/typeof.h: fixed bug #1747142: typeof.h needs fixing
2693
2694 2007-07-02 Maarten Brock <sourceforge.brock AT dse.nl>
2695
2696         * device/include/mcs51/C8051F360.h: fixed bug #1746410, thanks Chris Jones
2697         * device/lib/mcs51/crtxclear.asm: do not set __XPAGE unconditionally
2698
2699 2007-06-29 Borut Razem <borut.razem AT siol.net>
2700
2701         * src/SDCCmain.c: fixed bug
2702           #1744746: SDCC #4867: broken option --xram-size
2703
2704 2007-06-28 Borut Razem <borut.razem AT siol.net>
2705
2706         * sim/ucsim/configure.in, sim/ucsim/configure, sim/ucsim/ddconfig_in.h:
2707           find out the endianess of host machine for ucsim
2708
2709 2007-06-27 Borut Razem <borut.razem AT siol.net>
2710
2711         * support/regression/generate-cases.py: corrected the file name
2712           in warning
2713         * configure.in, configure, sdccconf_in.h: find out the endianess of
2714           host machine
2715         * src/SDCC.y: fixed bug #1744146: Crash when compiling array of
2716           negative size
2717
2718 2007-06-27 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
2719
2720         * device/include/mcs51/p89c66x.h: NXP header file, OK to change licence
2721
2722 2007-06-26 Borut Razem <borut.razem AT siol.net>
2723
2724         * support/regression/generate-cases.py: display warning if function
2725           list is empty; implemented more flexible rule for detection of
2726           testing functions, allowing return type 'void' in the same line as
2727           the function name in the function definition
2728         * support/regression/tests/bug-1654060.c: corrected test
2729         * support/librarian/sdcclib.c: fixed warning:
2730           format '%s' expects type 'char *', but argument 2 has type 'int'
2731
2732 2007-06-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2733
2734         * support/librarian/sdcclib.c: Added feature Requests [1510635]
2735           Multiple infiles for sdcclib.
2736
2737 2007-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2738
2739         * src/SDCCast.c (inlineFindMaxBlockno, createFunction): fixed
2740           bug 1731741
2741
2742 2007-06-18 Borut Razem <borut.razem AT siol.net>
2743
2744         * src/SDCCmain.c: removed option -C since SDCC compiler doesn't know
2745           how to handle comments, so they have to be removed by the
2746           preprocessor; fixed bug #1738926:SDCC #4852: broken option -V
2747         * src/SDCCmain.c, src/SDCCargs.h, src/ds390/main.c, src/mcs15/main.c,
2748           src/pic16/main.c, src/pic/main.c, src/z80/main.c,
2749           support/Util/SDCCerr.c, support/Util/SDCCerr.h:
2750           table driven option hadling
2751
2752 2007-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
2753
2754         * src/SDCCast.c (decorateType),
2755         * src/SDCCicode.c (geniCodeConditional): moved optimization for '?' from
2756           iCode to ast level to fix bug 1738367
2757         * support/regression/tests/bug1738367.c: new, added
2758
2759 2007-06-15 Raphael Neider <rneider AT web.de>
2760
2761         * src/pic16/devices.inc,
2762         * device/lib/pic16/pics.all,
2763         * device/include/pic16/pic18fregs.h,
2764         * device/include/pic16/pic18f[24][45]20.h,
2765         * device/lib/pic16/libdev/pic18f[24][45]20.c: added support for
2766           18f2420, 18f2520, and 18f4420 devices, updated 18f4520 definitions
2767         * device/lib/pic16/Makefile.in: faster cleanup
2768
2769 2007-06-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2770
2771         * src/mcs51/peeph.def: added 177.i (mov from a is slightly cheaper)
2772
2773 2007-06-13 Raphael Neider <rneider AT web.de>
2774
2775         * src/SDCCmain.c: prevent NULL pointer dereference, avoid warning
2776
2777 2007-06-12 Raphael Neider <rneider AT web.de>
2778
2779         * support/scripts/inc2h.pl: conditionally emit defines for SFR bits,
2780           suppress bit defines if NO_BIT_DEFINES is #define'd
2781         * device/include/pic/pic*.h: recreated all headers to include
2782           conditional bit defines
2783         * device/include/pic/pic16f886.h,
2784         * device/include/pic/pic16f887.h: fixed based on newer .inc file
2785         * device/include/pic/recreate.sh: script to recreate the complete
2786           device library files based on the currently supported devices
2787
2788 2007-06-12 Borut Razem <borut.razem AT siol.net>
2789
2790         * src/pic16/main.c, src/SDCCargs.h, SDCCmain.c,
2791           support/regression/Makefile.in, support/scripts/build.mak,
2792           support/scripts/Makefile.snapshot:
2793           use new svn URL scheme
2794         * doc/sdccman.lyx: SDCC Wiki moved to
2795           http://sdcc.wiki.sourceforge.net/
2796
2797 2007-06-10 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2798
2799         * src/mcs51/peeph.def: disabled rule 132.d to fix #1734654
2800         * support/regression/tests/bug1734654.c: added
2801
2802 2007-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
2803
2804         * src/SDCCast.c (decorateType): optimized '?' for equal operands
2805         * src/SDCCicode.c (geniCodeConditional): optimization for bit result
2806           with literal operands
2807
2808 2007-06-10 Borut Razem <borut.razem AT siol.net>
2809
2810         * as/link/z80/lklibr.c: fixed mingw build warning
2811           lklibr.c:575: warning: implicit declaration of function 'tolower'
2812         * src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c,
2813           src/z80/main.c: move target specific options from src/SDCCmain.c
2814           to src/<target>/main.c
2815
2816 2007-06-09 Borut Razem <borut.razem AT siol.net>
2817
2818         * src/z80/gen.c: fixed bug #1294691: nested ifs make compiler crash;
2819           removed unused swap_sense; removed outBitCLong, replaced with outBitC
2820         * support/regression/tests/bug-1294691.c: added
2821
2822 2007-06-09 Maarten Brock <sourceforge.brock AT dse.nl>
2823
2824         * src/SDCCmem.c (allocDefault): removed check sym->level==0 for SPEC_ABSA,
2825           can also be static, fixes bug 1733438
2826         * src/SDCCsymt.c (checkSClass): static local vars in reentrant funcs can
2827           have absolute address too
2828           (computeType): added optimization for 'cond ? true : false'
2829         * support/regression/tests/absolute.c: added test for static absolute var
2830
2831 2007-06-08 Raphael Neider <rneider AT web.de>
2832
2833         * src/regression/Makefile: suppress parallel builds, allow easy
2834           switching between pic14/pic16 ports
2835         * src/regression/picregs.h: added pic14/16 header file switch
2836         * src/regression/{compare7.c,compare8.c,compare9.c,compare10.c,
2837           inline.c,nestfor.c,string1.c}: include "picregs.h"
2838
2839 2007-06-07 Borut Razem <borut.razem AT siol.net>
2840
2841         * sim/ucsim/*.[ch], sim/ucsim/configure, sim/ucsim/configure.in:
2842           permanent solution to suppress GCC 4.2.0 c++ warning:
2843           deprecated conversion from string constant to `char *'
2844           use 'const char *' where ever required
2845         * support/regression/generate-cases.py: implemented more flexible rule
2846           for detection of testing functions, allowing white-spaces surrounding
2847           the function name and the 'void' parameter.
2848         * support/regression/tests/constantRange.c,
2849           support/regression/tests/scott-compare3.c: fixed failing regression
2850           tests, uncovered by implementation of more flexible rule for detection
2851           of testing functions
2852
2853 2007-06-04 Maarten Brock <sourceforge.brock AT dse.nl>
2854
2855         * src/SDCCast.c(decorateType): better optimize '!!' and comparisons
2856
2857 2007-06-04 Borut Razem <borut.razem AT siol.net>
2858
2859         * configure.in, configure, config_vc.awk: sdcc version number is now
2860           stored in configure.in; removed .version
2861         * configure.in, configure, sdcc.spec, doc/sdccman.lyx, doc/sdccman.lyx,
2862           doc/INSTALL.txt: version bumped to 2.7.2
2863         * sim/ucsim/configure.in, sim/ucsim/configure:
2864           use "read" to read from .version
2865
2866 2007-06-03 Borut Razem <borut.razem AT siol.net>
2867
2868         * */Makefile.in: removed annoying warning:
2869           Makefile:xx: Makefile.dep: No such file or directory
2870
2871 2007-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
2872
2873         * src/mcs51/gen.c (outBitC, genRet): used IS_OP_RUONLY,
2874           (genNot, genXor): used toCarry, also fixes a bug for c = bit ^ val
2875         * src/mcs51/ralloc.c: removed IS_OP_RUONLY + some cosmetic changes
2876         * src/SDCCast.c (resultTypePropagate): propagate for '!',
2877           (decorateType): also optimize comparisons with RESULT_TYPE_BIT,
2878           bugfix: only use newBoolLink for bit result type
2879         * src/SDCCicode.c (geniCodeLogic): added param tree,
2880           bugfix: use newBoolLink if tree is bit type, bug appears when ruonly,
2881           (geniCodeLogicAndOr): use IS_BIT,
2882           (geniCodeJumpTable, geniCodeSwitch): added NULL param to geniCodeLogic,
2883           (ast2iCode): added tree param to geniCodeLogic for comparisons
2884         * src/SDCCsymt.h: added IS_OP_RUONLY and IS_OP_ACCUSE
2885         * support/regression/tests/bug1723128.c: added test NotZero
2886
2887 2007-06-01 Borut Razem <borut.razem AT siol.net>
2888
2889         * SDCPP synchronized with GCC CPP release version 4.2.0,
2890           currently the latest release:
2891         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
2892           support/cpp2/c-ppoutput.c, support/cpp2/cppdefault.c,
2893           support/cpp2/cppdefault.h, support/cpp2/except.h,
2894           support/cpp2/libcpp/directives.c, support/cpp2/libcpp/expr.c,
2895           support/cpp2/libcpp/files.c, support/cpp2/libcpp/include/cpplib.h,
2896           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
2897           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/macro.c,
2898           support/cpp2/libcpp/mkdeps.c, support/cpp2/libiberty/getpwd.c,
2899           support/cpp2/libiberty/hashtab.c, support/cpp2/optc-gen.awk,
2900           support/cpp2/opth-gen.awk, support/cpp2/opts.c,
2901           support/cpp2/opts.h, support/cpp2/output.h,
2902           support/cpp2/prefix.c, support/cpp2/sdcpp-opts.c,
2903           support/cpp2/sdcpp.dsp, support/cpp2/sdcpp.opt,
2904           support/cpp2/system.h, support/cpp2/version.c,
2905           support/cpp2/Makefile.in: modified
2906         * support/cpp2/opts-common.c: added
2907         * device/lib/pic16/libdev/pic18f[24][45]j10.c: fixed svn atrributes
2908         * device/lib/pic16/libdev/pic18f[24]5j10.c:
2909           search for included source file in local directory
2910         * sim/ucsim/configure, sim/ucsim/configure.in:
2911           temporary solution to suppress GCC 4.2.0 c++ warning:
2912           deprecated conversion from string constant to `char *'
2913
2914 2007-06-01 Raphael Neider <rneider AT web.de>
2915
2916         * device/lib/pic/libdev/pic12f683.c,
2917         * device/include/pic/pic12f683.h: added GPIO bits
2918
2919 2007-06-01 Raphael Neider <rneider AT web.de>
2920
2921         * doc/sdccman.lyx: added --disable-pic16-port, fixed some `--' and
2922           quotation marks, clarified role of PIC14 vs. PIC16 ports
2923         * src/pic16/devices.inc,
2924         * device/include/pic16/pic18fregs.h,
2925         * device/include/pic16/pic18f[24][45]j10.h,
2926         * device/lib/pic16/pics.all,
2927         * device/lib/pic16/libdev/pic18f[24][45]j10.c: added support for
2928           18f24j10, 18f25j10, 18f44j10, and 18f45j10
2929         * device/lib/pic16/libio/{i2c,adc,usart}.ignore: do not build IO libs
2930           for new devices as they are not yet supported by gputils
2931
2932 2007-05-31 Borut Razem <borut.razem AT siol.net>
2933
2934         * Small Device C Compiler 2.7.0 released
2935         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
2936           changed sdcc version to 2.7.1
2937         * support/scripts/sdcc.nsi: added How to create WIN32 release
2938           setup.exe package
2939
2940 2007-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
2941
2942         * doc/sdccman.lyx: documented initialization and allocation of absolute
2943           variables, bit parameter passing, the need for function pointers to be
2944           reentrant and alpha quality support of inline and retrict
2945
2946 2007-05-26 Borut Razem <borut.razem AT siol.net>
2947
2948         * support/regression/tests/bug1057979.c, support/regression/tests/malloc.c,
2949           support/regression/fwk/include/testfwk.h: fixed compilation on Mac OS x
2950         * docs/knownbugs.html: updated
2951
2952 2007-05-25 Maarten Brock <sourceforge.brock AT dse.nl>
2953
2954         * doc/sdccman.lyx: inserted footnotes about inline assembler labels,
2955           thanks Jan Waclawek
2956         * src/mcs51/gen.c (aopPut): fixed part of bug 1723128 when result is
2957           AOP_CRY and ruonly
2958           (gencjneshort): optimized when left is AOP_DIR
2959         * src/SDCCglue.c (printIvalStruct): fixed other part of bug 1723128 for
2960           initializing unions in a struct/array
2961         * support/regression/fwk/include/testfwk.h: added defines for data, near
2962           and far for host and z80
2963         * support/regression/tests/bug1723128.c: new, added
2964
2965 2007-05-22 Borut Razem <borut.razem AT siol.net>
2966
2967         * doc/knownbugs.html: updated
2968
2969 2007-05-21 Raphael Neider <rneider AT web.de>
2970
2971         * src/pic16/glue.c (pic16_initPointer): avoid assertion, emit better
2972           error message instead
2973         * src/pic/pcoderegs.c (pCodeOptime2pCodes): keep register state intact
2974
2975 2007-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
2976
2977         * src/mcs51/peeph.def (257.b): disabled to fix bug 1721024
2978
2979 2007-05-21 Raphael Neider <rneider AT web.de>
2980
2981         * src/pic/pcoderegs.c (pCodeOptime2pCodes): fixed bogus optimization,
2982           closes #1722392
2983         * src/regression/gpsim_assert.h,
2984         * src/regression/Makefile,
2985         * src/regression/pcodeopt.c: regression test for the above fix
2986
2987 2007-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
2988
2989         * src/SDCCpeeph.c (labelIsUncondJump): ignore identical labels for
2990           jumps to self, fixed bug 1717281
2991
2992 2007-05-10 Borut Razem <borut.razem AT siol.net>
2993
2994         * support/scripts/gen_known_bugs.pl: cosmetic fix
2995         * doc/knownbugs.html: generated by gen_known_bugs.pl
2996
2997 2007-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2998
2999         * src/SDCCast.c (createFunction): also generate non-inlined version of
3000           function for functions declared as "static inline"
3001         * src/SDCCast.c (fixupInline, inlineAddDecl): reset symbol state so
3002           function can be inlined after non-inlined version generated.
3003
3004 2007-05-10 Borut Razem <borut.razem AT siol.net>
3005
3006         * support/scripts/gen_known_bugs.pl: added script
3007           which generates knownbugs.html
3008
3009 2007-05-09 Maarten Brock <sourceforge.brock AT dse.nl>
3010
3011         * doc/knownbugs.html: updated for release 2.7.0
3012
3013 2007-05-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3014
3015         * device/include/mcs51/uPSD33xx.h: Added patch by Jan Waclawek.
3016
3017 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
3018
3019         * src/ds390/gen.c (emitcode): don't change properties of previous lines,
3020           (throughout): updated generating comments
3021         * src/mcs51/gen.c (emitcode): don't change properties of previous lines,
3022           (throughout): updated generating comments
3023         * src/SDCCpeeph.c (peepHole): continue searching at the first replaced
3024           rule instead of at the second, or it might skip lines when removing the
3025           complete match
3026         * support/regression/tests/bug1714204.c: changed test to foo
3027
3028 2007-05-08 Borut Razem <borut.razem AT siol.net>
3029
3030         * doc/sdccman.lyx: changed sdcc version to 2.7.0,
3031           thanks to SDCC Distributed Compile Farm members,
3032           added Z80 and GBZ80 command line options
3033         * .version, doc/INSTALL.txt, sdcc.spec: changed sdcc version to 2.7.0
3034
3035 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
3036
3037         * device/lib/mcs51/crtxinit.asm: added disabled version for dual dptr
3038         * device/include/mcs51/uPSD33xx.h: added sfr DPS as alias for DPTC
3039         * support/regression/tests/longlit.c: modified to be tested at all and
3040           to pass the actual test
3041
3042 2007-05-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3043
3044         * device/include/mcs51/uPSD33xx.h: Added.
3045
3046 2007-05-07 Maarten Brock <sourceforge.brock AT dse.nl>
3047
3048         * device/lib/_gptrput.c,
3049         * device/lib/_gptrget.c: removed old code,
3050          (_gptrgetWord),
3051         * src/ds390/gen.c (genGenPointerGet): fixed bug 1714204
3052         * support/regression/tests/bug1714204.c: new, added
3053
3054 2007-05-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3055
3056         * support/regression/tests/regtrack.c: test was never executed
3057           because of the regression test being picky about white spaces.
3058         * device/lib/mcs51/crtclear.asm: added comment
3059
3060 2007-05-06 Raphael Neider <rneider AT web.de>
3061
3062         * device/lib/pic/Makefile.rules,
3063         * device/lib/pic16/Makefile.rules: make sure *.ignore file exists,
3064           made "&> /dev/null" redirection sh-safe ("> /dev/null 2>&1")
3065
3066 2007-05-06 Raphael Neider <rneider AT web.de>
3067
3068         * src/pic16/device.h,
3069         * src/pic16/main.h,
3070         * src/pic16/main.c (pic16_optionsTable,_pic16_parseOptions,
3071           _pic16_setDefaultOptions): removed/reordered command-line args
3072         * doc/sdccman.lyx: updated PIC14 and PIC16 documentation (supported
3073           devices, regrouped command line args, environment variables),
3074           clarified sone points, added sections on how to add devices to the
3075           PIC14/PIC16 ports
3076
3077 2007-05-06 Maarten Brock <sourceforge.brock AT dse.nl>
3078
3079         * src/z80/peeph.def: fixed bug in rule 2
3080
3081 2007-05-05 Maarten Brock <sourceforge.brock AT dse.nl>
3082
3083         * src/port.h: added TARGET_MCS51_LIKE
3084         * src/SDCCpeeph.c (labelIsUncondJump): new, added, other targets could
3085           take advantage of it too
3086         * src/z80/gen.c (genIpush): push b, d or h directly instead of using a,
3087           (shiftR2Left2Result): Optimized: don't check shifting by 0
3088         * src/z80/peeph-z80.def,
3089         * src/z80/peeph.def: whole set of new rules by Philipp Krause with some
3090           modifications, see patch 1700823
3091         * src/mcs51/peep.c (): fixed bug 1712928
3092         * support/regression/tests/bug1712928.c: new, added
3093
3094 2007-05-05 Borut Razem <borut.razem AT siol.net>
3095
3096         * device/lib/pic16/Makefile.common.in,
3097           device/lib/pic/Makefile.common.in, sim/ucsim/cmd.src/Makefile.in:
3098           removed bash dependencies
3099
3100 2007-05-01 Borut Razem <borut.razem AT siol.net>
3101
3102         * src/SDCCicode.c:
3103           fixed bug #1710507: --i-code-in-asm makes compile fail
3104           all iCode comments are now one liners
3105         * src/mcs51/gen.c: fixed memory leak
3106
3107 2007-05-01 Raphael Neider <rneider AT web.de>
3108
3109         * device/lib/pic/libdev/*.c
3110         * device/include/pic/*.h: regenerated all device libs from updated
3111           .inc files
3112         * support/scripts/inc2h.pl: documented usage, now uses strict to
3113           catch more bugs
3114
3115 2007-04-30 Borut Razem <borut.razem AT siol.net>
3116
3117         * doc/sdccman.lyx:
3118           fixed bug #1669175: Problem with space in output paths
3119           documented how to use paths with spaces for Windows users
3120
3121 2007-04-29 Borut Razem <borut.razem AT siol.net>
3122
3123         * Fixed svn:eol-style and svn:keywords properties
3124         * src/SDCCval.c: fixed bug
3125           #1592871: Segfault with "large" const arrays of characters
3126           replaced recursion with iteration
3127         * Removed svn:executable property from non-executable files
3128
3129 2007-04-29 Maarten Brock <sourceforge.brock AT dse.nl>
3130
3131         * src/mcs51/gen.c (genRet): fixed bug 1707003
3132
3133 2007-04-27 Raphael Neider <rneider AT web.de>
3134
3135         * src/pic16/pcode.c (pBlockRemoveUnusedLabels,pic16_pBlockAddInval,
3136           createReachingDefinitions,assignValnums,pic16_destructDF,
3137           pic16_createDF,pic16_vcg_dumpedges,pic16_vcg_dump_default):
3138           prevent NULL pointer dereferences
3139         * device/lib/pic/libdev/pic16f886.c,
3140         * device/lib/pic/libdev/pic16f887.c: svn mv'ed to disabled_* to
3141           prevent building them, gputils do not really support them yet
3142
3143 2007-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3144
3145         * device/lib/_ltoa.c: 36 bytes less __data mem. This really
3146           helps printf_small. 32 bytes more __idata mem.
3147
3148 2007-04-27 Raphael Neider <rneider AT web.de>
3149
3150         * src/pic/pcode.c (addpCode2pBlock,LinkFlow,pBlockRemoveUnusedLabels):
3151           return early when pb or pb->pcHead is NULL (patch #1708427)
3152         * src/regression/empty.c,
3153         * src/regression/Makefile: added test with empty functions
3154         * support/Util/SDCCerr.c: fixed typo in E_INIT_STRUCT message
3155
3156 2007-04-27 Borut Razem <borut.razem AT siol.net>
3157
3158         * src/SDCCast.c: fixed feature request
3159           #1547512: Redundant strings linked when using sizeof("abc")
3160
3161 2007-04-23 Borut Razem <borut.razem AT siol.net>
3162
3163         * doc/sdccman.lyx, src/SDCCmain.c:
3164           peep-hole comments are generated only if --fverbose-asm option is
3165           specified and --no-peep-comments is not, as proposed by Frieder.
3166         * support/regression/Makefile.in: compile regression tests with
3167           --fverbose-asm option so one can "grep" whether a new (or an old)
3168           peephole is (still) applied; requested by Frieder.
3169
3170 2007-04-23 Kevin Buettner <kevin AT buettner.to>
3171
3172         * device/include/pic/pic16f886.h,
3173         * device/include/pic/pic16f887.h,
3174         * device/lib/pic/libdev/pic16f886.c,
3175         * device/lib/pic/libdev/pic16f887.c,
3176         * device/include/pic/pic14devices.txt,
3177         * device/lib/pic/libdev/devices.txt: Add 16f886 and 16f887.
3178
3179 2007-04-23 Kevin Buettner <kevin AT buettner.to>
3180
3181         * device/lib/pic/libsdcc/idata.c: PAGESEL _main before going there,
3182           fixes #1704666
3183
3184 2007-04-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3185
3186         * device/lib/_memset.c: assembler version for mcs51
3187
3188 2007-04-22 Borut Razem <borut.razem AT siol.net>
3189
3190         * support/scripts/listerr.c: program to create the list of errors and
3191           warnings list from - added
3192         * doc/sdccman.lyx: removed the note
3193           "For list of warnings and corresponding codes, see err_warn.txt"
3194         * src/SDCCsymt.c: fixed bug #1699804:
3195           Bug with some uses of sizeof(static local array) (MCS51)
3196         * support/regression/tests/bug-1699804.c: added
3197
3198 2007-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
3199
3200         * as/mcs51/asmain.c (search_path_append, search_path_fopen): new, added,
3201           (main): added option -i,
3202           (asmbl, case S_INCL): use search_path_fopen,
3203           mostly from patch 1579668 by Peter Miller, thanks
3204         * src/z80/main.c: fixed typo --callee-saves-bc
3205         * device/include/mcs51/compiler.h: added sfrword for Tasking
3206
3207 2007-04-20 Borut Razem <borut.razem AT siol.net>
3208
3209         * src/z80/main.c: replaced reserved keyword asm with asmblr
3210
3211 2007-04-19 Borut Razem <borut.razem AT siol.net>
3212
3213         * src/port.h: use const pointers to strings
3214         * src/SDCCargs.h: declared getStringArg() and getIntArg()
3215         * src/pic16/main.c: include SDCCargs.h
3216         * src/SDCCglobl.h: code_seg and const_seg are not pointers to
3217           const char, since the strings are dynamically allocated
3218         * src/SDCCmain.c: options.code_seg and options.const_seg are
3219           dynamically allocated; check port specific command line options
3220           before the general ones
3221         * src/z80/main.c: fixed bug #1631895: codeseg/constseg #pragma fail
3222
3223 2007-04-18 Maarten Brock <sourceforge.brock AT dse.nl>
3224
3225         * device/include/ds400rom.h,
3226         * device/lib/ds390/lcd390.c,
3227         * device/lib/ds390/memcpyx.c,
3228         * device/lib/ds390/rtc390.c,
3229         * device/lib/ds400/ds400rom.c,
3230         * device/lib/ds400/memcpyx.c,
3231         * device/lib/hc08/_ret.c: more replacements of keywords with their
3232           double underscore equivalents
3233         * device/lib/ds390/Makefile.in,
3234         * device/lib/ds400/Makefile.in,
3235         * device/lib/gbz80/Makefile.in,
3236         * device/lib/hc08/Makefile.in,
3237         * device/lib/mcs51/Makefile.in,
3238         * device/lib/z80/Makefile.in: added --std-c89 to CFLAGS
3239
3240 2007-04-17 Borut Razem <borut.razem AT siol.net>
3241
3242         * doc/sdccman.lyx, src/SDCCmain.c, src/SDCCglobal.h, src/ds390/gen.c,
3243           src/hc08/gen.c, src/mcs51/gen.c, src/mcs51/rtrack.c:
3244           fixed #1493816: option --no-gen-comments: --no-gen-comments renamed
3245           to --fverbose-asm, to be gcc'ish
3246
3247 2007-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
3248
3249         * src/mcs51/gen.c (aopOp): set size to 1 for ruonly, fixes bug 1699455
3250
3251 2007-04-17 Borut Razem <borut.razem AT siol.net>
3252
3253         * doc/sdccman.lyx: fixed #1701874: Mac OSX references in SDCC manual
3254         * device/lib/ds400/tinibios.c, device/lib/hc08/_divuint.c,
3255           device/lib/hc08/_divulong.c: replaced _asm and _endasm keywords
3256           with their double underscore equivalent
3257
3258 2007-04-14 Borut Razem <borut.razem AT siol.net>
3259
3260         * doc/sdccman.lyx: some additional "freeware" replaced with "free open
3261           source"
3262
3263 2007-04-13 Borut Razem <borut.razem AT siol.net>
3264
3265         * doc/sdccman.lyx: -pedantic-parse-number is not in conformance with
3266           C99 standard
3267         * device/examples/serialcomm/windows/serial.[ch],
3268           device/examples/serialcomm/windows/test_serialcomm.cpp:
3269           updated by Bela Torok
3270         * device/examples/serialcomm/windows/serialcomm.dsw,
3271           device/examples/serialcomm/windows/serialcomm.dsp: added
3272
3273 2007-04-13 Jan Waclawek <wek AT efton.sk>
3274
3275         * doc/sdccman.lyx: additions and changes at various places
3276           (submitted as #1697136).
3277           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
3278
3279 2007-04-10 Borut Razem <borut.razem AT siol.net>
3280
3281         * doc/cdbfileformat.lyx, doc/sdccman.lyx, doc/test_suite_spec.lyx:
3282           LyX file format changed to 245
3283         * doc/sdccman.lyx, doc/README.txt, sdc/SDCC.lex, src/SDCCglue.c:
3284           "FreeWare" replaced with "free open source"
3285
3286 2007-04-10 Maarten Brock <sourceforge.brock AT dse.nl>
3287
3288         * device/include/mcs51/C8051F120.h: added some defines for bits in RSTSRC
3289
3290 2007-04-08 Maarten Brock <sourceforge.brock AT dse.nl>
3291
3292         * device/include/pic16/pic18fregs.h,
3293         * device/lib/_bp.c,
3294         * device/lib/_decdptr.c,
3295         * device/lib/_divsint.c,
3296         * device/lib/_divslong.c,
3297         * device/lib/_divuint.c,
3298         * device/lib/_divulong.c,
3299         * device/lib/_fs2schar.c,
3300         * device/lib/_fs2sint.c,
3301         * device/lib/_fs2slong.c,
3302         * device/lib/_fs2uchar.c,
3303         * device/lib/_fs2uint.c,
3304         * device/lib/_fs2ulong.c,
3305         * device/lib/_fsadd.c,
3306         * device/lib/_fscmp.c,
3307         * device/lib/_fsdiv.c,
3308         * device/lib/_fseq.c,
3309         * device/lib/_fsget1arg.c,
3310         * device/lib/_fsget2args.c,
3311         * device/lib/_fsgt.c,
3312         * device/lib/_fslt.c,
3313         * device/lib/_fsmul.c,
3314         * device/lib/_fsneq.c,
3315         * device/lib/_fsnormalize.c,
3316         * device/lib/_fsreturnval.c,
3317         * device/lib/_fsrshift.c,
3318         * device/lib/_fssub.c,
3319         * device/lib/_fsswapargs.c,
3320         * device/lib/_gptrget.c,
3321         * device/lib/_gptrgetc.c,
3322         * device/lib/_gptrput.c,
3323         * device/lib/_logexpf.c,
3324         * device/lib/_modsint.c,
3325         * device/lib/_modslong.c,
3326         * device/lib/_moduint.c,
3327         * device/lib/_modulong.c,
3328         * device/lib/_mulint.c,
3329         * device/lib/_mullong.c,
3330         * device/lib/_schar2fs.c,
3331         * device/lib/_ser.c,
3332         * device/lib/_setjmp.c,
3333         * device/lib/_sint2fs.c,
3334         * device/lib/_slong2fs.c,
3335         * device/lib/_spx.c,
3336         * device/lib/_uchar2fs.c,
3337         * device/lib/_uint2fs.c,
3338         * device/lib/_ulong2fs.c,
3339         * device/lib/asincosf.c,
3340         * device/lib/atanf.c,
3341         * device/lib/calloc.c,
3342         * device/lib/ds390/tinibios.c,
3343         * device/lib/ds400/tinibios.c,
3344         * device/lib/expf.c,
3345         * device/lib/free.c,
3346         * device/lib/hc08/_mulint.c,
3347         * device/lib/logf.c,
3348         * device/lib/malloc.c,
3349         * device/lib/printf_fast.c,
3350         * device/lib/printf_tiny.c,
3351         * device/lib/printfl.c,
3352         * device/lib/realloc.c,
3353         * device/lib/ser_ir.c,
3354         * device/lib/serial.c,
3355         * support/regression/tests/libmullong.c: replaced all special keywords
3356           with their double underscore equivalent
3357         * support/regression/ports/mcs51-xstack-auto/spec.mk,
3358         * device/lib/Makefile.in: compile libs with --std-c99 instead of
3359           --std-sdcc99
3360         * src/mcs51/gen.c (outBitC): don't store if result is return-use-only,
3361           (genRet): if the bit-symbol is ruonly it already is in the carry
3362         * src/mcs51/ralloc.c (regTypeNum): make regType REG_CND for ruonly bit
3363         * src/SDCCast.c (createFunction): applied patch 887171 by Stas Sergeev
3364         * src/SDCCicode.c (ast2iCode): '!', GETHBIT, GETABIT: only set operand
3365           type UCHAR if dest is not bit
3366
3367 2007-04-03 Maarten Brock <sourceforge.brock AT dse.nl>
3368
3369         * device/include/math.h,
3370         * device/lib/cotf.c,
3371         * device/lib/expf.c,
3372         * device/lib/sincoshf.c: changed XMAX to C99 HUGE_VALF
3373
3374 2007-04-01 Borut Razem <borut.razem AT siol.net>
3375
3376         * src/SDCC.lex, src/SDCCmain.c, support/cpp2/sdcpp.c:
3377           fixed bug #1692042: input buffer overflow...scanner uses REJECT
3378         * support/cpp2/sdcpp.c: fixed recursion bug - internal_error() called
3379           gcc_unreachable() called internal_error()...
3380
3381 2007-03-30 Raphael Neider <rneider AT web.de>
3382
3383         * src/pic/ralloc.c (isData): suppress garbage debug output
3384
3385 2007-03-28 Borut Razem <borut.razem AT siol.net>
3386
3387         * doc/sdccman.lyx:
3388           "Nightly Snapshots" replaced with "Snapshot Builds", since the SDCC
3389           is developed, built and used worldwide, and the word "night" doesn't
3390           make any sense.
3391
3392 2007-03-28 Maarten Brock <sourceforge.brock AT dse.nl>
3393
3394         * device/include/mcs51/C8051F360.h: new, added
3395         * device/include/mcs51/C8051F520.h: fixed buggy sbit addresses SPI0CN
3396
3397 2007-03-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3398
3399         * src/SDCC.y (declaration_specifiers, function_specifier),
3400         * support/Util/SDCCerr.c,
3401         * support/Util/SDCCerr.h,
3402         * src/SDCCsymt.h,
3403         * src/SDCCsymt.c (mergeSpec, checkFunction): Parse and validate the
3404           inline keyword
3405         * src/SDCCmem.c (deallocParms),
3406         * src/SDCCast.c: support for function inlining, not quite complete
3407         * src/SDCCsymt.c (printTypeChain, printTypeChainRaw): display
3408           'restrict' qualifier
3409
3410 2007-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
3411
3412         * src/mcs51/gen.c (saveRegisters, unsaveRegisters): free some bitVects,
3413           (saveRBank, unsaveRBank): don't save bits,
3414           (genFunction, genEndFunction): save bits exactly once, fix bug 1535242
3415         * support/regression/tests/bug1535242.c: new, added
3416         * device/include/assert.h: applied patch 1686533 to fix bug 1686528,
3417           thanks Alexey Shamrin <shamrin AT gmail.com>,
3418           made assert.h header ANSI compliant (added a check for NDEBUG macro,
3419           removed header guard)
3420         * .version,
3421         * sdcc.spec: bumped version to 2.6.5
3422         * src/SDCCmain.c(parseCmdLine): fixed bug 1677144
3423
3424 2007-03-22 Borut Razem <borut.razem AT siol.net>
3425
3426         * debugger/mcs51/cmd.c, debugger/mcs51/sdcdb.c:
3427           fixed bug #1653671: sdcdb integration into ddd is broken
3428
3429 2007-03-22 Raphael Neider <rneider AT web.de>
3430
3431         * src/pic/gen.c (popGetExternal): augmented to also create references
3432           to external variables (not only labels),
3433           (genCall): comment on plan to reduce PAGESEL overhead,
3434           (genFunction, genEndFunction): also save/restore FSR around interrupt
3435           handling code, removed lots of unused code
3436           (genDivOneByte): release acquired temp register
3437         * src/pic/glue.c (pic14createInterruptVect): adapt to new signature
3438           of popGetExternal
3439         * device/lib/pic/libsdcc/shadowregs.c: NEW, provide storage location
3440           for registers that need to be saved during interrupts (FSR, STATUS,
3441           PCLATH; W needs special handling), currently only FSR is used
3442
3443 2007-03-22 Raphael Neider <rneider AT web.de>
3444
3445         * device/include/pic/pic14devices.txt: 16f688 has only one config word
3446
3447 2007-03-19 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3448
3449         * /as/link/mcs51/aslink.dsp: Object extension for mcs51 is 'rel' not 'o'.
3450
3451 2007-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
3452
3453         * src/mcs51/peeph.def (263.x): fixed bug for volatile variables
3454
3455 2007-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
3456
3457         * as/link/aslink.h: added LKOBJEXT
3458         * as/link/hc08/link_hc08.dsp,
3459         * as/link/hc08/Makefile.bcc,
3460         * as/link/hc08/Makefile.in,
3461         * as/link/mcs51/aslink.dsp,
3462         * as/link/mcs51/Makefile.bcc,
3463         * as/link/mcs51/Makefile.in: moved lkamof51.c and lkdata.c
3464         * as/link/hc08/lkaomf51.c,      as/link/mcs51/lkaomf51.c,
3465         * as/link/lkaomf51.c: merged and moved
3466         * as/link/hc08/lkdata.c,        as/link/mcs51/lkdata.c,
3467         * as/link/z80/lkdata.c,
3468         * as/link/lkdata.c: merged and moved
3469         * as/link/hc08/lkmain.c,
3470         * as/link/mcs51/lkmain.c: cosmetic changes
3471         * as/link/z80/lkeval.c,         as/link/lkeval.c: merged
3472         * as/link/lklex.c: use LKOBJEXT
3473         * as/link/z80/lklist.c,         as/link/lklist.c: merged,
3474           ANSI-fied functions, removed bubble-sorts
3475         * as/link/z80/lksym.c           as/link/lksym.c: merged,
3476           ANSI-fied functions
3477         * as/link/z80/linkgbz80.dsp,
3478         * as/link/z80/linkz80.dsp,
3479         * as/link/z80/Makefile.in: added lkaomf51.c and lknoice.c,
3480           moved lkdata.c, lkeval.c, lkhead.c, lklex.x, lklist.c, lksym.c
3481         * as/link/z80/lkhead.c,
3482         * as/link/z80/lklex.c: deleted
3483         * as/link/z80/lklibr.c: moved LKOBJEXT to aslink.h
3484         * as/link/z80/lkmain.c: added copyfile()
3485
3486 2007-03-13 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3487
3488         * device/include/mcs51/P89LPC925.h: Added missing P1_6 and P1_7.
3489
3490 2007-03-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3491
3492         * device/lib/_strlen.c: assembler version for mcs51
3493
3494 2007-03-13 Raphael Neider <rneider AT web.de>
3495
3496         * device/include/pic16/pic18f2221.h,
3497         * device/include/pic16/pic18f2321.h,
3498         * device/include/pic16/pic18f2331.h,
3499         * device/include/pic16/pic18f4221.h,
3500         * device/include/pic16/pic18f4321.h,
3501         * device/include/pic16/pic18f4331.h: fixed config byte location names
3502         * support/scripts/inc2h-pic16.pl: removed debug output, emit
3503           consistently named config byte locations
3504
3505 2007-03-13 Borut Razem <borut.razem AT siol.net>
3506
3507         * src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
3508           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/s51.src/Makefile.in,
3509           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
3510           as/link/z80/Makefile.in, as/z80/Makefile.in:
3511           introduced LDFLAGS
3512
3513 2007-03-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3514
3515         * device/lib/printfl.c: 13 bytes less __data mem (12 more __idata)
3516         * device/lib/printf_large.c: pointer was converted to generic
3517         pointer for mcs51 models other than model-small (Maarten noticed)
3518
3519 2007-03-10 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3520
3521         * device/include/mcs51/ADuC84x.h: Added.
3522
3523 2007-03-10 Borut Razem <borut.razem AT siol.net>
3524
3525         * src/SDCC.lex, src/SDCCutil.[ch], src/SDCCval:
3526           fixed RFE #1624219: double backslashes in filenames;
3527           functions hexEscape(), octalEscape() and copyStr() moved from
3528           SDCCval.c to SDCCutil.c and made them glovbally available
3529
3530 2007-03-09 Borut Razem <borut.razem AT siol.net>
3531
3532         * src/SDCC.lex, src/SDCCast.c. src/SDCCglobl.c, src/SDCCsymt.c,
3533           src/SDCCval.c: fixed bugs #1676768: Wrong line number reported and
3534           1673361: Missaligned comments in output files
3535
3536 2007-03-09 Raphael Neider <rneider AT web.de>
3537
3538         * device/include/pic/pic14devices.txt: fixed confsiz of 16f91[3467]
3539
3540 2007-03-09 Raphael Neider <rneider AT web.de>
3541
3542         * src/pic/gen.c,
3543         * src/pic/glue.c,
3544         * src/pic/ralloc.c: suppress undesired debug output
3545         * src/SDCCmain.c (linkEdit): initialize c to quieten compiler
3546
3547 2007-03-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3548
3549         * device/lib/printf_large.c: 6 bytes less __data mem (6 more __idata)
3550
3551 2007-03-07 Borut Razem <borut.razem AT siol.net>
3552
3553         * device/lib/pic16/libdev/pic18f[24][34]31.c:
3554           search include files in the current directory
3555
3556 2007-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
3557
3558         * src/SDCCglue.c (emitMaps, glue),
3559         * src/SDCCmem.c (initMem, allocDefault): added x_abs for initialized
3560           absolute xdata
3561         * support/regression/tests/absolute.c: added xdata test
3562
3563 2007-03-03 Maarten Brock <sourceforge.brock AT dse.nl>
3564
3565         * src/SDCCmain.c (parseCmdLine): only set options.xstack_loc for mcs51,
3566           added condition to macro, fixes bug 1666080
3567
3568 2007-03-02 Raphael Neider <rneider AT web.de>
3569
3570         * src/pic/gen.c (genGenPointerSet): removed bogus assertion
3571
3572 2007-02-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3573
3574         * device/lib/mcs51/crtxclear.asm: pdata segment of 256 byte would not
3575         be cleared. Unconditionally set __XPAGE
3576         * src/hc08/gen.c: --no-gen-comments (RFE #1493816) for hc08
3577
3578 2007-02-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3579
3580         * src/SDCCglobl.h,
3581         * src/SDCCmain.c,
3582         * src/mcs51/gen.c,
3583         * src/mcs51/rtrack.c,
3584         * src/ds390/gen.c,
3585         * doc/sdccman.lyx: added --no-gen-comments
3586         * src/mcs51/peeph.def: added 192.b, disabled 185
3587
3588 2007-02-25 Raphael Neider <rneider AT web.de>
3589
3590         * src/pic16/gen.c (genCast): fixed typo
3591         * device/lib/pic16/Makefile.subdir: only install existing files
3592         * device/lib/pic16/libdev/Makefile.in: build serially, avoid races
3593
3594 2007-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
3595
3596         * device/lib/mcs51/crtcall.asm: new, added for indirect calls
3597         * device/lib/mcs51/crtclear.asm,
3598         * device/lib/mcs51/crtxclear.asm: renumbered labels
3599         * device/lib/mcs51/Makefile.in: added crtcall.asm
3600         * doc/sdccman.lyx: documented mcs51 crt* library startup code
3601         * src/mcs51/gen.c (movc): removed,
3602           (aopGet, genPlusBits): clear a after loading the carry (possibly from
3603             acc.x or psw.x),
3604           (toCarry, genSend, genRet): added function toCarry,
3605           (genPcall): use "lcall @a+dptr" for functions w/o parameters,
3606           (assignBit, genAssign, genCast): added function assignBit
3607         * src/mcs51/Makefile.bcc: added rtrack.c
3608         * src/mcs51/ralloc.h: made valueKnown a bitfield
3609         * src/mcs51/rtrack.c (getReg, rtrackUpdate): added getReg,
3610           fixed "jbc acc" and "cpl acc" bug, enhanced "cjne", "jnz" and "djnz",
3611           disabled InvalidateAllRx for lcall __gptrput, added "xch a,rn"
3612         * src/pic/pcode.c (FixRegisterBanking): fixed warning used uninitialized
3613         * src/z80/gen.c: added AOP_IS_PAIRPTR,
3614           (_pop): only pop valid pairs, see gencjneshort,
3615           (gencjneshort): return pair that still needs to be popped, restructured,
3616           (gencjne, genCmpEq): call _pop
3617
3618 2007-02-23 Raphael Neider <rneider AT web.de>
3619
3620         * device/include/pic/pic14devices.txt: 16f684 has only one config word
3621
3622 2007-02-22 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3623
3624         * device/include/mcs51/P89LPC925.h: Added.
3625
3626 2007-02-18 Raphael Neider <rneider AT web.de>
3627
3628         * src/pic/glue.c (emitInitVal): fixed #1659894 (SIGSEGV on arrays)
3629
3630 2007-02-17 Borut Razem <borut.razem AT siol.net>
3631
3632         * support/cpp2/directives.c, support/cpp2/version.c:
3633           synchronized with GCC CPP 4.1.2
3634
3635 2007-02-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3636
3637         * src/mcs51/rtrack.h,
3638         * src/mcs51/rtrack.c: added register tracking for the mcs51 port,
3639           by checking the strings passed by emitcode() to the assembler.
3640           Feel free to change. This in part addresses RFE #482179.
3641           Set environment variable SDCC_RTRACK to enable.
3642         * src/mcs51/gen.c: inserted hooks
3643         * src/mcs51/ralloc.h: added two members to struct regs
3644         * support/regression/tests/regtrack.c: added
3645
3646 2007-02-14 Borut Razem <borut.razem AT siol.net>
3647
3648         * src/SDCC.y: fixed bug #1291133: duplicate members across enum(s)
3649         * Makefile.in: applied patch from Makefile related part of
3650           #1469393: Compiler does not initialize static data
3651
3652 2007-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
3653
3654         * src/SDCCicode.c (geniCodeAssign): return (itemp) right instead of left
3655           for better fix of bug 1273984, compiles pic16 rand.c
3656
3657 2007-02-12 Borut Razem <borut.razem AT siol.net>
3658
3659         * src/pic16/main.c: fixed pic16 standard library directory bug
3660
3661 2007-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
3662
3663         * src/hc08/gen.c (genSwap): fix swap regression test
3664
3665 2007-02-10 Borut Razem <borut.razem AT siol.net>
3666
3667         * src/SDCCsymt.c: fixed bug #1159134: invalid duplicate declarations
3668           with same scope
3669         * support/regression/tests/bug-1654060.c: added regression test for
3670           #1654060
3671
3672 2007-02-09 Bernhard Held <bernhard AT bernhardheld.de>
3673
3674         * src/mcs51/gen.c (genRet): fixed RFE 1652561: added code for bit to
3675         bit moves in return statement
3676
3677 2007-02-09 Borut Razem <borut.razem AT siol.net>
3678
3679         * src/SDCC.y: fixed bug #1654060 typedef within function causes
3680           syntax error
3681
3682 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
3683
3684         * src/mcs51/gen.c (aopPut): use direct name for pushing registers
3685         * src/SDCCmain.c (parseCmdLine): dbuf_s path must be initialised
3686
3687 2007-02-07 Raphael Neider <rneider AT web.de>
3688
3689         * src/pic16/devices.inc,
3690         * device/include/pic16/pic18fregs.h,
3691         * device/include/pic16/pic18f[24][34]31.h,
3692         * device/lib/pic16/libdev/pic18f[24][34]31.c,
3693         * device/lib/pic16/pics.all: added 18f[24][34]31 family
3694         * device/lib/pic16/libio/i2c.ignore: do not build i2c
3695
3696 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
3697
3698         * device/lib/printf_large.c (_print_format): fixed compare/assign bug, how
3699           can this have lived here for so many years?
3700         * src/SDCCicode.c (ast2iCode): return left instead of right for assignment,
3701           fixes bug 1273984, see also patch 1645121, thanks Gnther Jehle
3702         * support/regression/tests/bug1273984.c: new, added, thanks Gnther Jehle
3703
3704 2007-02-06 Bernhard Held <bernhard AT bernhardheld.de>
3705
3706         * src/SDCCBlock.c (addiCodeToeBBlock): fixed bug 1652207: GOTO icodes
3707         appended by loop induction must be at the very end of the eBBlock
3708
3709 2007-02-05 Kevin Vigor
3710
3711         * src/ds390/gen.c, src/ds390/main.c: Address bug 1469393.
3712
3713 2007-02-05 Borut Razem <borut.razem AT siol.net>
3714
3715         * support/regression/fwk/lib/timeout.c: native WIN32 port,
3716           implemented #1651830 Reg. tests: rewrite timeout.c to use WIN32 API
3717
3718 2007-02-03 Borut Razem <borut.razem AT siol.net>
3719
3720         * src/SDCC.y, src/SDCCmain.c, src/SDCCglobl.h, doc/sdccman.lyx:
3721           applied patch #1646602 option to set default signedness of char to
3722           unsigned, added -funsigned-char command line option,
3723           thanks to Gunther Jehle
3724         * device/lib/Makefile.in: added the -f option to rm so it doesn't
3725           prompt for file deletion a few hundred times (especially the
3726           subversion files, which have ro permissions so it asks for
3727           confirmation), thanks to Simon McAuliffe;
3728           added {} + option to find in order to remove multiple files from a
3729           single rm commad
3730
3731 2007-02-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3732
3733         * device/include/mcs51/SST89x5xRDx.h: Added.
3734
3735 2007-02-02 Raphael Neider <rneider AT web.de>
3736
3737         * src/pic/glue.c (emitSymbolSet): check sym->etype before use
3738         * src/regression/Makefile: use --no-pcode-opt, ignore failing tests
3739
3740 2007-02-01 Raphael Neider <rneider AT web.de>
3741
3742         * src/pic/glue.c (picglue,emitSymbolSet,showAllMemmaps): emit the
3743           config words again
3744
3745 2007-01-31 Borut Razem <borut.razem AT siol.net>
3746
3747         * support/Util/dbuf_string.h: added ATTRIBUTE_PRINTF to dbuf_printf()
3748           if compiled with GCC. Thanks to Raphael Neider
3749
3750 2007-01-31 Raphael Neider <rneider AT web.de>
3751
3752         * src/pic/pcode.c (isValidIdChar,bankCompare): fuzzy matching of
3753             operand names, handles name and (name + n) for all n,
3754           (sameBank): restructured, also check bank allocation policy,
3755         * src/pic/glue.c (emitPseudoStack): fixed printf arguments,
3756           (pic14_operandsAllocatedInSameBank): check whether to operands
3757             will be allocated into the same bank (i.e., section) to reduce
3758             BANKSEL overhead, queried from pcode.c:sameBank,
3759           (pic14printLocals): reintroduced clustering registers into a single
3760             section: all compiler generated symbols will now reside in one
3761             bank (per file), reducing BANKSEL overhead and code size,
3762           (showAllMemmaps): use local dbuf where possible
3763
3764 2007-01-29 Raphael Neider <rneider AT web.de>
3765
3766         * src/pic/gen.c (popGetExternal): simplified, mark symbol as used,
3767           (call_libraryfunc): retrieve/create symbol and mark as used,
3768           (genFunction): mark defined functions as non-extern and add again
3769            to code memmap for later output
3770         * src/pic/glue.c (emitPseudoStack): put into own subroutine,
3771           (pic14printLocals): reworked for new symbol emission,
3772           (emitIfNew,pic14_constructAbsMap,emitIvalLabel,emitIvals,emitInitVal,
3773           showAllMemmaps): reworked symbol output using dbufs, added handling
3774             of string literals (still incomplete),
3775           (picglue): removed symbol emission, moved into showAllMemmaps,
3776           (emitSymbolSet): new workhorse for symbol output,
3777           (pic14emitMaps,pic14printPublics,pic14printExterns): commented out
3778
3779 2007-01-29 Borut Razem <borut.razem AT siol.net>
3780
3781         * src/SDCCmain.c, src/SDCCutil.c: dbuf_splitFile: file extension
3782           component contains the extension separator.
3783
3784 2007-01-28 Borut Razem <borut.razem AT siol.net>
3785
3786         * sim/ucsim/cmd.src/cmdutil.cc: NUL device is detected as CG_FILE type
3787           on WIN32
3788         * src/SDCCdwarf2.c, src/SDCCglobl.h, src/SDCCmain.c, src/SDCCutil.c,
3789           src/SDCCutil.h, src/avr/gen.c, src/ds390/gen.c, src/hc08/gen.c,
3790           src/mcs51/gen.c, src/pic/device.c, src/pic/gen.c, src/pic/pcode.c,
3791           src/pic/pcodepeep.c, src/pic/ralloc.c, src/pic16/device.h,
3792           src/pic16/gen.c, src/pic16/main.c, src/pic16/pcode.c,
3793           src/pic16/pcodepeep.c, src/pic16/ralloc.c, src/xa51/gen.c,
3794           src/z80/gen.c, support/Util/MySystem.c:
3795           accept slash and backslash as directory separator on WIN32 and
3796           Cygwin ports
3797
3798 2007-01-28 Raphael Neider <rneider AT web.de>
3799
3800         * src/pic16/devices.inc,
3801         * device/include/pic16/pic18f[24][23]21.h,
3802         * device/include/pic16/pic18fregs.h,
3803         * device/lib/pic16/libdev/pic18f[24][23]21.c,
3804         * device/lib/pic16/pics.all: added support for the 18f[24][23]21 family
3805         * device/lib/pic16/libio/adc.ignore,
3806         * device/lib/pic16/libio/i2c.ignore,
3807         * device/lib/pic16/libio/usart.ignore: do not build I/O lib for new
3808           family, as gputils do not yet support the devices
3809         * device/lib/pic16/Makefile.subdir: ignore errors on install
3810         * support/scripts/inc2h-pic16.pl: script to generate pic16 device
3811           headers and libraries from gputils .inc files
3812
3813 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
3814
3815         * doc/sdccman.lyx: add printf_fast_f precision limitation note
3816
3817 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
3818
3819         * doc/sdccman.lyx: add printf benchmarks
3820
3821 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
3822
3823         * device/lib/printf_fast.c: fix %c, char promoted to int
3824         * device/lib/printf_tiny.c: fix %c, char promoted to int
3825
3826 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
3827
3828         * device/lib/printf_fast.c: fix float overflow check, bug #1525093
3829
3830 2007-01-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3831
3832         * support/regression/tests/swap.c: 64 bit hosts failed
3833         * doc/sdccman.lyx: added preliminary mcs51 printf feature matrix
3834
3835 2007-01-25 Raphael Neider <rneider AT web.de>
3836
3837         * src/pic/pcode.c (sameBank,FixRegisterBanking): optimize banksels
3838           based on absolute register address, patch by Alex Blond
3839
3840 2007-01-22 Raphael Neider <rneider AT web.de>
3841
3842         * src/pic/glue.c (pic14emitRegularMap): mark initialized symbols as
3843           emitted, do not emit them again...
3844
3845 2007-01-22 Raphael Neider <rneider AT web.de>
3846
3847         * src/regression/bank1.c, src/regression/compare6.c,
3848           src/regression/add.c: cosmetic changes
3849         * src/pic/pcode.h: moved GPTRTAG_* here from gen.c
3850         * src/pic/gen.c: fixed global zero and one,
3851           (aopForSym): removed unued code,
3852           (aopGet): assert aop is defined, check and use `index' of
3853             pCodeImmd operands (fixes #1630908),
3854         * src/pic/pcode.c (get_op): added output of generic pointer tag,
3855           (register_reassign): prevent accidental register unification,
3856           (ReuseReg): cosmetic changes (also above)
3857         * src/pic/glue.c (pic14_constructAbsMap,pic14emitRegularMap,
3858           pic14emitStaticSeg): do not emit initialized data,
3859           (printIval*): replaced with working versions,
3860           (pic14createInterruptVect,picglue): use idata for initialized data,
3861             now init data should work in all modules (not only main()),
3862         * device/lib/pic/libsdcc/idata.c: NEW, handle initialized data
3863
3864 2007-01-21 Borut Razem <borut.razem AT siol.net>
3865
3866         * sim/ucsim/configure.in: introduced macro DD_COPT_NO_IGNORE,
3867           use -fPIC or -fpic if they are supported and not ignored
3868         * src/SDCCval.c: fixed bug introduced by me in rev. #4577
3869         * support/cpp2/libcpp/lex.c: fixed gcc 4.1.1 warnings
3870
3871 2007-01-20 Borut Razem <borut.razem AT siol.net>
3872
3873         * src/SDCC.lex, src/SDCCmain.c, sdc/SDCCglobl.h, doc/sdccman.lyx:
3874           implemented RFE #1470316: allow "$" in variable names
3875
3876 2007-01-20 Raphael Neider <rneider AT web.de>
3877
3878         * device/include/pic/pic14regs.h: reverted accidental wipe of the file
3879
3880 2007-01-20 Raphael Neider <rneider AT web.de>
3881
3882         * device/lib/pic/libdev/devices.txt: device list for mkall.sh
3883         * device/lib/pic/libdev/mkall.sh: script to rebuild all device libs
3884         * device/lib/pic/libdev/pic14ports.txt: device PORT specifications
3885         * support/scripts/inc2h.pl: fixed major .inc parsing bugs,
3886           applied patch from Robert Tate (#1629249) to add PORTs and TRISs
3887         * device/lib/pic/libdev/pic*.c,
3888         * device/include/pic/pic*.h: regenerated with enhanced inc2h.pl
3889         * device/lib/pic/libdev/Makefile.in: show progress
3890
3891 2007-01-19 Bernhard Held <bernhard AT bernhardheld.de>
3892
3893         * doc/sdccman.lyx: updated "configure options" for autoconf 2.6
3894         * support/scripts/sdcc_cygwin_mingw32,
3895         * support/scripts/sdcc_mingw32,
3896         * support/scripts/build.mak: replaced --datadir by --datarootdir for
3897         conformance with autoconf 2.6
3898
3899 2007-01-19 Raphael Neider <rneider AT web.de>
3900
3901         * src/pic/device.c (register_map): fixed list construction
3902         * src/pic/gen.c (genDivOneByte,genModOneByte): accept result > 1 byte,
3903           (genMod): removed case for genModbits,
3904           (genModbits): removed as now unused/unimplemented
3905         * src/pic/glue.c (picglue): prevent name clash with sources 'init.c'
3906
3907 2007-01-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3908
3909         * support/regression/tests/swap.c: added in response to #1638622
3910         * doc/sdccman.lyx: synced version, minor changes
3911
3912 2007-01-18 Borut Razem <borut.razem AT siol.net>
3913
3914         * SDCClabel.c: fixed bug #1638651: wrong linenumber presented in warning,
3915           thanks to Gunther Jehle
3916         * src/asm.c: don't die if the file drfined in #line couldn't be opened
3917         * src/SDCC.lex, src/SDCCglobal.h, src/SDCCicode.c, src/SDCCsymt.c,
3918           src/SDCCval.c: removed redundant definitions of currFname and mylineno;
3919           use filename in lineno instead.
3920         * SDCCast.c: removed MSVC warning C4018: '==' : signed/unsigned mismatch,
3921           print the file name in ast_print()
3922
3923 2007-01-18 Borut Razem <borut.razem AT siol.net>
3924
3925         * support/Util/dbuf_string.c: removed (PTR) cast since it is not
3926           defined in MSVC
3927         * src/SDCC.lex: stringLiteral() returns const char pointer,
3928           EOF detection in stringLiteral(), fixed asmbuf memory leak,
3929           fixed column counting
3930         * src/SDCCval.[ch]: constVal(), value *strVal() and charVal()
3931           accept const char pointer as parameter
3932         * src/SDCCdwarf2.c: corrected buffer size
3933
3934 2007-01-17 Borut Razem <borut.razem AT siol.net>
3935
3936         * support/Util/dbuf_string.c: fixed for amd64
3937
3938 2007-01-15 Borut Razem <borut.razem AT siol.net>
3939
3940         * src/pic16/ralloc.c, src/pic/ralloc.c, src/SDCC.y:
3941           removed terminal symbol ELIPSIS, since it was never generated by the
3942           lexer and it was wrongly used in parameter_identifier_list rule
3943
3944 2007-01-15 Raphael Neider <rneider AT web.de>
3945
3946         * doc/sdccman.lyx: updated PIC14/16 command line args, updated PIC14
3947             code page and data banking description
3948         * src/pic/genarith.c,
3949         * src/pic/gen.h: removed bit arithmetic functions,
3950             updated exit(1) to exit(EXIT_FAILURE)
3951         * device/lib/pic16/libsdcc/stack/stack.S: default to 256 byte stack
3952         * device/include/pic16/pic18f2455.h,
3953         * device/lib/pic16/libdev/pic18f2455.c: added PORTD, LATD, LATE,
3954             TRISD and TRISE, fixed/added some bit names
3955         * device/lib/pic16/libdev/pic18f{2550,4550,4455}.c,
3956         * device/include/pic16/pic18f{2550,4550,4455}.h: simply include
3957             updated pic18f2455.{c,h} instead of duplicating them
3958
3959 2007-01-14 Borut Razem <borut.razem AT siol.net>
3960
3961         * as/mcs51/asnoice.c, as/hc08/asnoice.c: fixed bug #1447412:
3962           Cannot debug files that contain spaces in the path name
3963           by converting spaces in asm file name to underscores
3964
3965 2007-01-13 Borut Razem <borut.razem AT siol.net>
3966
3967         * doc/sdccman.lyx: fixed format errors
3968
3969 2007-01-10 Borut Razem <borut.razem AT siol.net>
3970
3971         * src/SDCC.lex, src/SDCCmain.c: fixed bug #1631895:
3972           codeseg/constseg #pragma fail
3973         * suppoprt/cpp2/Makefile.bcc: reenable Borland C compilation
3974         * suppoprt/cpp2/configure.in, suppoprt/cpp2/libcpp/lex.c,
3975           suppoprt/cpp2/Makefile.in, suppoprt/cpp2/sdcpp-opts,
3976           suppoprt/cpp2/sdcpp.[ch]: house cleaning
3977
3978 2007-01-09 Borut Razem <borut.razem AT siol.net>
3979
3980         * get rid of diagnistic.[ch], pretty-print.[ch],
3981           c-pretty-print.[ch], ... used just for error, warning, ...
3982           message formatting
3983         * suppoprt/cpp2/pretty-print.[ch], suppoprt/cpp2/diagnostic.[ch],
3984           suppoprt/cpp2/diagnostic.def, suppoprt/cpp2/input.h,
3985           suppoprt/cpp2/pretty-print.[ch]:
3986           removed
3987         * suppoprt/cpp2/Makefile.in, suppoprt/cpp2/opts.c,
3988           suppoprt/cpp2/sdcpp-opts.c, suppoprt/cpp2/sdcpp.[ch],
3989           suppoprt/cpp2/sdcpp.dsp:
3990           changed
3991
3992 2007-01-08 Maarten Brock <sourceforge.brock AT dse.nl>
3993
3994         * device/lib/printf_large.c (output_float): removed recursion,
3995           use smaller buffer on stack for mcs51,
3996           fixed bug printing 1.96
3997         * support/regression/tests/snprintf.c: added test
3998
3999 2007-01-07 Borut Razem <borut.razem AT siol.net>
4000
4001         * use dynamic memory buffers instead temporary files
4002         * support/Util/dbuf_string.c, support/Util/dbuf_string.h:
4003           added
4004         * src/Makefile.in, src/SDCC.lex, src/SDCCast.c, src/SDCCast.h,
4005           src/SDCCcse.c, src/SDCCglobl.h, src/SDCCglue.c, src/SDCCglue.h,
4006           src/SDCCicode.c, src/SDCCicode.h, src/SDCCmain.c, src/SDCCmem.c,
4007           src/SDCCmem.h, src/SDCCpeeph.c, src/SDCCpeeph.h, src/SDCCsymt.c,
4008           src/SDCCsymt.h, src/SDCCutil.c, src/asm.c, src/asm.h, src/avr/gen.c,
4009           src/avr/main.c, src/ds390/gen.c, src/ds390/main.c, src/hc08/gen.c,
4010           src/hc08/main.c, src/izt/gen.c, src/mcs51/gen.c, src/mcs51/main.c,
4011           src/pic/device.c, src/pic/gen.c, src/pic/glue.c, src/pic/main.c,
4012           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/glue.c,
4013           src/pic16/main.c, src/pic16/ralloc.c, src/port.h, src/src.dsp,
4014           src/xa51/gen.c, src/xa51/main.c, src/z80/gen.c, src/z80/main.c,
4015           support/Util/dbuf.c, support/Util/dbuf.h:
4016           modified
4017         * .version, sdcc.spec: bumped version to 2.6.4
4018
4019 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
4020
4021         * src/port.h: added TARGET_Z80_LIKE macro
4022         * src/SDCCmain.c (linkEdit): use TARGET_Z80_LIKE,
4023           output PSEG location if --xram-loc or --xstack-loc was used
4024         * as/link/mcs51/lkarea.c (lnksect2): set segment address afterwards
4025
4026 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
4027
4028         * as/as_gbz80.dsp, as/z80/as_gbz80.dsp,
4029         * as/as_z80.dsp,   as/z80/as_z80.dsp,
4030         * as/asx8051.dsp,  as/mcs51/asx8051.dsp,
4031         * sdcc.dsw: moved project files into subdir
4032         * as/hc08/as_hc08.dsp,
4033         * as/hc08/Makefile.bcc,
4034         * as/hc08/Makefile.in,
4035         * as/mcs51/Makefile.bcc,
4036         * as/mcs51/Makefile.in,
4037         * as/z80/Makefile.bcc,
4038         * as/z80/Makefile.in,
4039         * as/link/mcs51/Makefile.bcc: use as/strcmpi.c
4040         * as/hc08/asm.h,
4041         * as/mcs51/asm.h,
4042         * as/z80/asm.h: added as_strcmpi() and as_strncmpi() prototypes
4043         * as/hc08/asmain.c,
4044         * as/hc08/assym.c,
4045         * as/mcs51/asmain.c,
4046         * as/mcs51/assym.c,
4047         * as/z80/assym.c: removed include "strcmpi.h"
4048         * as/hc08/strcmpi.c,
4049         * as/hc08/strcmpi.h,
4050         * as/mcs51/strcmpi.c,
4051         * as/mcs51/strcmpi.h,
4052         * support/Util/strcmpi.c,
4053         * support/Util/strcmpi.h: removed files
4054         * as/strcmpi.c: added as_strncmpi()
4055
4056 2007-01-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4057
4058         * sdcc.dsw: Added some dependencies on project config.dsp
4059
4060 2007-01-05 Maarten Brock <sourceforge.brock AT dse.nl>
4061
4062         * as/link/mcs51/lkarea.c (lnkarea2, lnksect2): replaced [di]seg_ap->a_addr
4063           with [di]ram_start to fix a regresion
4064
4065 2007-01-03 Bernhard Held <bernhard AT bernhardheld.de>
4066
4067         * configure.in: added missing mcs51 in status output
4068         * Makefile.in: add support/regression to SDCC_EXTRA to distclean this
4069         directory
4070         * debugger/mcs51/clean.mk (distclean): remove config.h
4071         * src/clean.mk (clean): remove SDCCy.c, SDCCy.h, SDCClex.c
4072         * support/cpp2/Makefile.in (clean): remove s-options, optionlist,
4073         options.h, s-options-h and options.c
4074         * support/cpp2/clean.mk: unused, removed
4075         * Makefile.common.in,
4076         * main_in.mk,
4077         * as/Makefile.in,
4078         * as/hc08/Makefile.in,
4079         * as/hc08/clean.mk,
4080         * as/mcs51/Makefile.in,
4081         * as/mcs51/clean.mk,
4082         * as/z80/clean.mk,
4083         * as/z80/conf.mk,
4084         * as/z80/Makefile.in,
4085         * as/z80/clean.mk,
4086         * as/link/Makefile.in,
4087         * as/link/hc08/Makefile.in,
4088         * as/link/hc08/clean.mk,
4089         * as/link/mcs51/Makefile.in,
4090         * as/link/mcs51/clean.mk,
4091         * as/link/z80/Makefile.in,
4092         * as/link/z80/clean.mk,
4093         * as/link/z80/conf.mk,
4094         * debugger/mcs51/Makefile.in,
4095         * debugger/mcs51/clean.mk,
4096         * device/include/Makefile.in,
4097         * device/lib/Makefile.in,
4098         * device/lib/mcs51/Makefile.in,
4099         * device/lib/pic/Makefile.in,
4100         * device/lib/pic/Makefile.common.in,
4101         * device/lib/pic/Makefile.subdir,
4102         * device/lib/pic/Makefile.rules,
4103         * device/lib/pic16/libio/Makefile.in,
4104         * device/lib/pic16/Makefile.subdir,
4105         * device/lib/pic16/libdev/Makefile.in,
4106         * device/lib/pic16/Makefile.rules,
4107         * device/lib/pic16/Makefile.common.in,
4108         * sim/ucsim/avr.src/Makefile.in,
4109         * sim/ucsim/main_in.mk,
4110         * sim/ucsim/cmd.src/Makefile.in,
4111         * sim/ucsim/doc/Makefile.in,
4112         * sim/ucsim/gui.src/Makefile.in,
4113         * sim/ucsim/gui.src/obsolete/portmon.src/Makefile.in,
4114         * sim/ucsim/gui.src/serio.src/Makefile.in,
4115         * sim/ucsim/hc08.src/Makefile.in,
4116         * sim/ucsim/libltdl/Makefile.in,
4117         * sim/ucsim/s51.src/Makefile.in,
4118         * sim/ucsim/sim.src/Makefile.in,
4119         * sim/ucsim/sim.src/conf.mk,
4120         * sim/ucsim/xa.src/Makefile.in,
4121         * sim/ucsim/z80.src/Makefile.in,
4122         * src/Makefile.in,
4123         * src/clean.mk,
4124         * src/port.mk,
4125         * support/cpp2/Makefile.in,
4126         * support/librarian/Makefile.in,
4127         * support/librarian/clean.mk,
4128         * support/makebin/Makefile.in,
4129         * support/makebin/clean.mk,
4130         * support/packihx/Makefile.in,
4131         * support/regression/Makefile.in,
4132         * support/regression/ports/ds390/spec.mk,
4133         * support/regression/ports/gbz80/spec.mk,
4134         * support/regression/ports/hc08/spec.mk,
4135         * support/regression/ports/mcs51/spec.mk,
4136         * support/regression/ports/mcs51-large/spec.mk,
4137         * support/regression/ports/mcs51-medium/spec.mk,
4138         * support/regression/ports/mcs51-xstack-auto/spec.mk,
4139         * support/regression/ports/pic14/spec.mk,
4140         * support/regression/ports/pic16/spec.mk,
4141         * support/regression/ports/mcs51-stack-auto/spec.mk,
4142         * support/regression/ports/ucz80/spec.mk,
4143         * support/regression/ports/xa51/spec.mk,
4144         * support/regression/ports/z80/spec.mk: fixed for autoconf 2.6x by
4145         adding a slash after $(top_builddir) and/or adding @datarootdir@
4146         * configure.in,
4147         * debugger/mcs51/configure.in,
4148         * device/lib/pic/configure.in,
4149         * device/lib/pic16/configure.in,
4150         * sim/ucsim/configure.in,
4151         * support/cpp2/configure.in,
4152         * support/packihx/configure.in: changed AC_PREREQ to 2.60
4153         * configure,
4154         * debugger/mcs51/configure,
4155         * device/lib/pic/configure,
4156         * device/lib/pic16/configure,
4157         * sim/ucsim/configure,
4158         * support/cpp2/configure,
4159         * support/packihx/configure: generated with autoconf 2.60
4160
4161 2007-01-02 Maarten Brock <sourceforge.brock AT dse.nl>
4162
4163         * as/link/hc08/lkihx.c (newArea),
4164         * as/link/hc08/lkrloc.c: renamed newArea() to ihxNewArea()
4165
4166 2007-01-02 Borut Razem <borut.razem AT siol.net>
4167
4168         * doc/sdccman.lyx: documented #pragma sdcc_hash
4169         * support/cpp2/sdcpp.c: allow_naked_hash (value of #pragma sdcc_hash)
4170           initialized to 0
4171         * support/cpp2/c-ppoutput.c: fixed warning: no newline at end of file
4172
4173 2007-01-01 Bernhard Held <bernhard AT bernhardheld.de>
4174
4175         * src/SDCCast.c (createDo): backPatchLabels() needs falseLabel in
4176         empty 'while'-loop to work correctly, see regression test 'while.c'
4177         * support/regression/tests/while.c: added
4178
4179 2007-01-01 Borut Razem <borut.razem AT siol.net>
4180
4181         * support/cpp2/libcpp/directives.c, support/cpp2/libcpp/identifiers.c,
4182           support/cpp2/libcpp/init.c, support/cpp2/libcpp/sdcpp-opts.c,
4183           support/cpp2/libcpp/sdcpp.c:
4184           sdcpp specific pragma/directive/option handling moved to sdcpp.c
4185         * doc/sdccman.lyx: reference to the GCC 4.1.1 CPP Manual
4186         * support/cpp2/libcpp/mkdeps.c: synchronized with GCC CPP 4.1.1
4187
4188 2006-12-31 Borut Razem <borut.razem AT siol.net>
4189
4190         * SDCPP synchronized with GCC CPP release version 4.1.1,
4191           currently the latest release:
4192         * support/cpp2/libcpp, support/cpp2/libcpp/include,
4193           support/cpp2/libcpp/include/cpp-id-data.h
4194           support/cpp2/libiberty/fopen_unlocked.c
4195           support/cpp2/libiberty/md5.c
4196           support/cpp2/md5.h
4197           support/cpp2/opt-functions.awk
4198           support/cpp2/opt-gather.awk
4199           support/cpp2/optc-gen.awk
4200           support/cpp2/opth-gen.awk:
4201           added
4202         * support/cpp2/Makefile.in, support/cpp2/auto-host_vc_in.h,
4203           support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
4204           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
4205           support/cpp2/c-pretty-print.h, support/cpp2/cppdefault.c,
4206           support/cpp2/cppdefault.h, support/cpp2/diagnostic.c,
4207           support/cpp2/diagnostic.h, support/cpp2/except.h,
4208           support/cpp2/hwint.h, support/cpp2/input.h,
4209           support/cpp2/intl.h, support/cpp2/move-if-change,
4210           support/cpp2/opts.c, support/cpp2/opts.h,
4211           support/cpp2/output.h, support/cpp2/prefix.c,
4212           support/cpp2/prefix.h, support/cpp2/pretty-print.c,
4213           support/cpp2/pretty-print.h, support/cpp2/sdcpp-opts.c,
4214           support/cpp2/sdcpp.c, support/cpp2/sdcpp.dsp,
4215           support/cpp2/sdcpp.h, support/cpp2/sdcpp.opt,
4216           support/cpp2/sdcppa.dsp, support/cpp2/symcat.h,
4217           support/cpp2/version.c:
4218           modified
4219         * support/cpp2/libcpp/charset.c, support/cpp2/libcpp/directives.c,
4220           support/cpp2/libcpp/errors.c, support/cpp2/libcpp/expr.c,
4221           support/cpp2/libcpp/files.c, support/cpp2/libcpp/identifiers.c,
4222           support/cpp2/libcpp/include/cpplib.h, support/cpp2/libcpp/include/line-map.h,
4223           support/cpp2/libcpp/include/mkdeps.h, support/cpp2/libcpp/include/symtab.h,
4224           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
4225           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/line-map.c,
4226           support/cpp2/libcpp/macro.c, support/cpp2/libcpp/mkdeps.c,
4227           support/cpp2/libcpp/symtab.c, support/cpp2/libcpp/system.h,
4228           support/cpp2/libcpp/traditional.c, support/cpp2/libcpp/ucnid.h,
4229           support/cpp2/libiberty/hashtab.c, support/cpp2/libiberty/hashtab.h:
4230           moved
4231         * support/cpp2/cppcharset.c, support/cpp2/cpperror.c,
4232           support/cpp2/cppexp.c, support/cpp2/cppfiles.c,
4233           support/cpp2/cpphash.c, support/cpp2/cpphash.h,
4234           support/cpp2/cppinit.c, support/cpp2/cpplex.c,
4235           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
4236           support/cpp2/cppmacro.c, support/cpp2/cpptrad.c,
4237           support/cpp2/cppucnid.h, support/cpp2/hashtab.c,
4238           support/cpp2/hashtab.h, support/cpp2/hashtable.c,
4239           support/cpp2/hashtable.h, support/cpp2/line-map.c,
4240           support/cpp2/line-map.h, support/cpp2/mkdeps.c,
4241           support/cpp2/mkdeps.h, support/cpp2/options_vc_in.c,
4242           support/cpp2/options_vc_in.h, support/cpp2/opts.sh,
4243           support/cpp2/system.h:
4244           deleted / moved
4245
4246 2006-12-31 Borut Razem <borut.razem AT siol.net>
4247
4248         * configure.in, configure: fixed bug #1538756: configure dies if bison
4249           and flex are not installed, 2nd try
4250
4251 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
4252
4253         * src/mcs51/peeph.def: renamed rule 400 to 500, moved rule 253.x to
4254         400.x for better code in RFE 899102
4255
4256 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
4257
4258         * src/SDCCpeeph.c (deadMove),
4259         * src/port.h,
4260         * src/mcs51/peep.h: renamed 'op' by 'reg'
4261         * src/mcs51/peep.c (isFunc, isCallerSaveFunc): added,
4262         (scan4op): small change for removeDeadMove(), added support for
4263         'callee saves' and/or PACLL function calls,
4264         (removeDeadMove): added, removes superflous 'mov r%1,%2',
4265         (removeDeadPopPush): renamed from mcs51DeadMove(), common parts
4266         left in new dispatcher mcs51DeadMove()
4267         (mcs51DeadMove): dispatcher for removeDeadPopPush() and new
4268         removeDeadMove()
4269         * src/mcs51/peeph.def: added rule 301 removing superflous 'mov r%1,%2'
4270
4271 2006-12-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4272
4273         * support/cpp2/options_vc_in.h, support/cpp2/options_vc_in.c,
4274           support/cpp2/sdcppa.dsp: create 'options.h' and 'options.c' under MSVC.
4275
4276 2006-12-30 Borut Razem <borut.razem AT siol.net>
4277
4278         * support/cpp2/spacs.h: deleted from svn
4279         * configure.in, configure: fixed bug #1538756: configure dies if bison
4280           and flex are not installed
4281
4282 2006-12-29 Maarten Brock <sourceforge.brock AT dse.nl>
4283
4284         * src/z80/gen.c (assignResultValue): fixed bug when registers overlap,
4285           with this z80 passes printf float test when enabled
4286         * support/regression/tests/bug1057979.c: typo disabled ds390 float test
4287
4288 2006-12-28 Borut Razem <borut.razem AT siol.net>
4289
4290         * support/cpp2/config.in, support/cpp2/configure.in,
4291           support/cpp2/configure, support/cpp2/Makefile.in:
4292           fix for the solaris build
4293
4294 2006-12-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4295
4296         * src/SDCC.y (type_specifier2, pointer),
4297         * src/SDCCsymt.h,
4298         * src/SDCCsymt.c (mergeSpec, checkSClass),
4299         * support/Util/SDCCerr.c,
4300         * support/Util/SDCCerr.h: Parse and validate the restrict keyword
4301         * support/valdiag/valdiag.py: Allow test cases to specify
4302           required language standard
4303         * support/valdiag/tests/restrict.c: New file to test restrict keyword
4304         * support/valdiag/tests/tentdecl.c: Supress empty source file error
4305
4306 2006-12-27 Borut Razem <borut.razem AT siol.net>
4307
4308         * support/cpp2/cppmain.c, support/cpp2/mbchar.[ch]: removed
4309         * support/cpp2/libiberty/Makefile.in, support/cpp2/libiberty/sdcpp.dsp:
4310           mbchar removed
4311         * support/cpp2/libiberty/getpwd.c, support/cpp2/sdcpp.h:
4312           fixed for borland C
4313         * support/cpp2/libiberty/Makefile.bcc: updated
4314         * src/pic16/main.c: fixed #pragma udata handling
4315         * src/mcs51/mcs51.dsp: added peep.[ch] to the project
4316
4317 2006-12-26 Bernhard Held <bernhard AT bernhardheld.de>
4318
4319         * src/SDCCpeeph.c: made labelHashEntry global,
4320         made pcDistance, FBYNAME static,
4321         (pcDistance): made static, use isComment and isLabel,
4322         (deadMove): added,
4323         (getLabelRef): added, extracted from labelRefCount(),
4324         (labelRefCount): use new getLabelRef(),
4325         (callFuncByName): made static, added deadMove,
4326         use isComment and isLabel,
4327         (newPeepRule): made static, set isLabel,
4328         (isLabelDefinition): added parameter isPeepRule to allow '%' in
4329         labels from peephole rules,
4330         (buildLabelRefCountHash): speed up by running isLabelDefinition() only
4331         when isComment or isLabel is set
4332         * src/SDCCpeeph.h: added "isLabel" and "visited" to struct lineNode,
4333         added labelHashEntry, isLabelDefinition, labelHash and getLabelRef
4334         to make them global
4335         * src/mcs51/peep.h: added
4336         * src/mcs51/peep.c: added, implements mcs51DeadMove()
4337         * src/port.h: added peep->deadMove to port structure
4338         * src/mcs51/main.c: initialize peep->deadMove with mcs51DeadMove
4339         * src/mcs51/peeph.def: renumbered rule 300 to 400, added new rule 300
4340         deadMove, finally removed no. 1 and 2
4341         * src/mcs51/gen.c,
4342         * src/pic/gen.c,
4343         * src/z80/gen.c,
4344         * src/z80/ralloc.c,
4345         * src/pic16/gen.c,
4346         * src/ds390/gen.c,
4347         * src/hc08/gen.c: mark lines with isComment or isLabel
4348         * sim/ucsim/s51.src/uc390hw.cc: don't waist 65535 ticks before CKRDY
4349         * .version,
4350         * sdcc.spec: bumped version to 2.6.3
4351
4352 2006-12-26 Borut Razem <borut.razem AT siol.net>
4353
4354         * support/cpp2/Makefile.in: added dependency on options.h
4355         * configure: regenerated
4356         * support/cpp2/sdcpp.opt, support/cpp2/move-if-change: svn:eol-style native
4357         * support/cpp2/Makefile.in: added vasprintf.c
4358
4359 2006-12-25 Borut Razem <borut.razem AT siol.net>
4360
4361         * SDCPP synchronized with GCC CPP release version 3.4.6,
4362           the latest release before 4.x:
4363         * support/cpp2/Makefile.in, support/cpp2/config.h,
4364           support/cpp2/configure, support/cpp2/configure.in,
4365           support/cpp2/cppdefault.c, support/cpp2/cppdefault.h,
4366           support/cpp2/cpperror.c, support/cpp2/cppexp.c,
4367           support/cpp2/cppfiles.c, support/cpp2/cpphash.c,
4368           support/cpp2/cpphash.h, support/cpp2/cppinit.c,
4369           support/cpp2/cpplex.c, support/cpp2/cpplib.c,
4370           support/cpp2/cpplib.h, support/cpp2/cppmacro.c,
4371           support/cpp2/cpptrad.c, support/cpp2/except.h,
4372           support/cpp2/hashtable.c, support/cpp2/hashtable.h,
4373           support/cpp2/hwint.h, support/cpp2/intl.h,
4374           support/cpp2/line-map.c, support/cpp2/line-map.h,
4375           support/cpp2/mkdeps.c, support/cpp2/mkdeps.h,
4376           support/cpp2/output.h, support/cpp2/prefix.c,
4377           support/cpp2/prefix.h, support/cpp2/sdcpp.dsp,
4378           support/cpp2/system.h, support/cpp2/version.c:
4379           modified
4380         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
4381           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
4382           support/cpp2/c-pretty-print.h, support/cpp2/cppcharset.c,
4383           support/cpp2/cppucnid.h, support/cpp2/diagnostic.c,
4384           support/cpp2/diagnostic.def, support/cpp2/diagnostic.h,
4385           support/cpp2/hashtab.c, support/cpp2/hashtab.h,
4386           support/cpp2/input.h, support/cpp2/libiberty/getpwd.c,
4387           support/cpp2/libiberty/vasprintf.c, support/cpp2/libiberty/xmemdup.c,
4388           support/cpp2/move-if-change, support/cpp2/opts.c,
4389           support/cpp2/opts.h, support/cpp2/opts.sh,
4390           support/cpp2/pretty-print.c, support/cpp2/pretty-print.h,
4391           support/cpp2/sdcpp.opt, support/cpp2/sdcpp-opts.c,
4392           support/cpp2/win32, support/cpp2/win32/dirent.c,
4393           support/cpp2/win32/dirent.h:
4394           added
4395         * support/cpp2/sdcpp.c: renamed from sdcppmain.c
4396         * support/cpp2/sdcpp.h: renamed from sdcc.h
4397         * sdcppinit.c: deleted
4398
4399 2006-12-23 Borut Razem <borut.razem AT siol.net>
4400
4401         * support/cpp2/cpphash.h, support/cpp2/cpplex.c,
4402           support/cpp2/cpplib.[ch], support/cpp2/sdcppinit.c, doc/sdccman.lyx,
4403           preproc.c: an other try to fix bug #982435: introduced
4404           -pedantic-parse-number command line option and pedantic_parse_number
4405           pragma
4406
4407 2006-12-21 Maarten Brock <sourceforge.brock AT dse.nl>
4408
4409         * as/link/mcs51/lkarea.c (lnkarea2): handle absolute areas, restructured
4410            BSEG handling,
4411           (lnksect2): use --data-loc and --idata-loc as lower bound for ramstart,
4412            corrected overlayed areax addresses, warn about memory overlaps
4413         * as/mcs51/asmain.c (asmbl): create a new area for every .org directive
4414         * src/avr/main.c,
4415         * src/ds390/main.c,
4416         * src/hc08/main.c,
4417         * src/mcs51/main.c,
4418         * src/pic16/main.c,
4419         * src/pic/main.c,
4420         * src/xa51/main.c,
4421         * src/z80/main.c,
4422         * src/port.h: added xabs_name and iabs_name
4423         * src/SDCCglue.c (emitRegularMap): allocate for absolutes with initializer
4424           (glue, emitMaps): create and emit maps d_abs and i_abs
4425         * src/SDCCglue.h: cosmetic changes
4426         * src/SDCCmain.c (setDefaultOptions): idata can start below 0x80
4427         * src/SDCCmem.h,
4428         * src/SDCCmem.c (initMem): added x_abs, i_abs and d_abs
4429           (allocDefault): put absolute, initialized globals in them
4430         * support/regression/tests/absolute.c: added absolute bdata test
4431         * device/lib/printf_large.c (output_float): moved fpBuffer to stack/xdata
4432
4433 2006-12-20 Borut Razem <borut.razem AT siol.net>
4434
4435         * support/cpp2/cpphash.h, support/cpp2/cpplex.c: fixed bug #982435
4436         * support/regression/tests/preproc.c: renamed from bug-1351710.c,
4437           added regression test for bug #982435
4438
4439 2006-12-18 Borut Razem <borut.razem AT siol.net>
4440
4441         * src/SDCCutil.c: fixed a bug in (get_pragma_token)
4442         * src/pic16/main.c, src/SDCC.lex, src/z80/main.c:
4443           small cosmetic changes
4444         * src/SDCC.lex: (stringLiteral) fixed bug #1351710
4445         * support/regression/tests/bug-1351710.c: added regression test
4446
4447 2006-12-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4448
4449         * doc/sdccman.lyx: added the long missed iCode table
4450           "<where is figure II?>", added links to wiki
4451
4452 2006-12-17 Borut Razem <borut.razem AT siol.net>
4453
4454         * doc/sdccman.lyx, src/pic16/main.c, src/pic/main.c, src/port.h,
4455           src/SDCC.lex, src/SDCCutil.[ch], src/z80/main.c,
4456           support/Util/SDCCerr.[ch]: removed deprecated pragmas,
4457           unified table driven pragma handling, pragma argument type checking
4458         * support/Util/dbuf.c: (dbuf_set_size) allow to set size equal to the
4459           current one - version 1.1.3
4460         * src/SDCCmain.c: (setParseWithComma) substituted brain damaged strtok
4461
4462 2006-12-13 Raphael Neider <rneider AT web.de>
4463
4464         * src/pic/device.h: removed AssignedMemory structure and macros
4465         * src/pic/device.c: removed global finalMapping (linker assigns
4466             memory locations),
4467           (register_map): add SFRs to remembered memRanges
4468           (addMemRange,isSFR,dump_map,dump_sfr,mapRegister,assignRegister,
4469           assignFixedRegisters,assignRelocatableRegisters): removed,
4470           (setMaxRAM,validAddress): adapted accordingly,
4471           (pic14_hasSharebank,pic14_getSharedStack): only report and use
4472             reasonably sized sharebanks,
4473         * src/pic/ralloc.c (writeUsedRegs): stripped down (remove?),
4474           (allDefsOutOfRange): removed unused code,
4475         * src/pic/main.c (_process_pragma): removed memmap/maxram pragma
4476             handling
4477         * src/pic/pcode.c (register_reassign): removed recursion warning,
4478             fired far too often,
4479         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap): modified
4480             to use existing pic14_stringInSet() to avoid duplicate symbols,
4481             tidied up the code a bit,
4482           (pic14printLocals): added in symmetry to printExterns, replaces
4483             writeUsedRegs more or less,
4484           (picglue): call new pic14_printLocals(),
4485         * device/include/pic/pic*.h: removed #pragma memmap directives,
4486             information gathered from include/pic/pic14devices.txt
4487         * support/scripts/inc2h.pl: do not emit #pragma memmap lines
4488
4489 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
4490
4491         * device/include/mcs51/C8051F520.h: fixed buggy CPT0MX
4492
4493 2006-12-11 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4494
4495         * device/include/mcs51/cc2430.h: fixed missing ';'
4496
4497 2006-12-10 Raphael Neider <rneider AT web.de>
4498
4499         * device/lib/pic16/libc/stdio/vfprintf.c,
4500         * device/lib/pic16/libc/stdio/printf_small.c,
4501         * device/lib/pic16/libc/stdio/printf_timy.c: pop int from stack for
4502           char arguments, as char varargs are cast to int by the caller,
4503           hopefully fixes #1604915 (other device libraries are still affected)
4504
4505 2006-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4506
4507         * src/mcs51/ralloc.c (packRegsForAssign),
4508         * src/hc08/ralloc.c (packRegsForAssign): fixed bug #1605880
4509
4510 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
4511
4512         * device/include/malloc.h: removed init_dynamic_memory
4513         * device/lib/malloc.c: made init_dynamic_memory static and automatically
4514           call it once from malloc. Also use _sdcc_heap[] from _heap.c
4515         * device/lib/_heap.c: new, added, contains _sdcc_heap[]
4516         * device/lib/libsdcc.lib,
4517         * device/lib/Makefile.in,
4518         * support/regression/ports/mcs51-xstack-auto/spec.mk: added _heap.c
4519         * doc/sdccman.lyx: documented use of new _heap.c
4520         * support/regression/tests/malloc.c: removed init_dynamic_memory
4521         * src/cdbFile.c(spacesToUnderscores): new function,
4522           (cdbWriteEndFunction, cdbWriteCLine): use spacesToUnderscores, fixes bug
4523           1068030
4524         * device/include/tinibios.h: removed defines for putchar and getchar
4525         * device/lib/ds390/Makefile.in: added putchar.c
4526         * device/lib/ds390/putchar.c: new, added, fixes bug 1465671
4527
4528 2006-12-09 Borut Razem <borut.razem AT siol.net>
4529
4530         * support/cpp2/sdcc.h: prevent multiple inclusion
4531         * support/cpp2/options.h: deleted
4532
4533 2006-12-08 Borut Razem <borut.razem AT siol.net>
4534
4535         * support/cpp2/sdcc.h: removed x*alloc() macros
4536         * support/cpp2/libiberty.h: uncommented out x*alloc() declarations
4537         * support/cpp2/Makefile.bcc, support/cpp2/Makefile.in,
4538           support/cpp2/sdcpp.sdc: x*alloc files added to the project
4539         * support/cpp2/system.h: moved #include "sdcc.h"
4540         * support/cpp2/libiberty/xexit.c, support/cpp2/libiberty/xmalloc.c,
4541           support/cpp2/libiberty/xstrdup.c, support/cpp2/libiberty/xstrerror.c:
4542           added
4543         * support/cpp2/sdcppinit.c: added -isysroot, -fsigned-char,
4544           -funsigned-char options
4545         * support/cpp2/sdcppmain.c: fixed bug 1611411
4546
4547 2006-12-07 Borut Razem <borut.razem AT siol.net>
4548
4549         * support/cpp2/cpplib.c: reverted sdcpp special handling of _Pragma()
4550           directive
4551
4552 2006-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
4553
4554         * src/SDCCsymt.c (addDecl): fixed bug 1609244
4555         * src/SDCCmain.c (linkEdit): fixed bug 1609279
4556         * doc/sdccman.lyx,
4557         * .version: bumped to 2.6.2 because a) it's been a while
4558           b) the linker sources have moved c) the preprocessor is upgraded
4559
4560 2006-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4561
4562         * support/regression/tests/snprintf.c: some checks
4563         * lib/src/printf_large.c: %bc: read char instead of int from stack
4564
4565 2006-12-03 Maarten Brock <sourceforge.brock AT dse.nl>
4566
4567         * device/include/mcs51/cc2430.h: inserted _XPAGE
4568
4569 2006-12-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4570
4571         * device/include/mcs51/cc2430.h: added
4572
4573 2006-12-02 Maarten Brock <sourceforge.brock AT dse.nl>
4574
4575         * device/include/asm/default/features.h,
4576         * device/include/asm/ds390/features.h,
4577         * device/include/mcs51/at89s53.h,
4578         * device/include/ser.h,
4579         * device/include/ser_ir.h,
4580         * device/include/serial.h: changed keywords to double underscore variants,
4581           fixes bug 1590261 some more, thanks Steven Borley
4582
4583 2006-12-01 Raphael Neider <rneider AT web.de>
4584
4585         * src/pic/pcode.c (register_reassign): do not crash on recursive code
4586           but emit warning (recursion is not supported for pic14)
4587
4588 2006-11-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4589
4590         * src/mcs51/peeph.def: added 101.a,b (moves to int/long xdata)
4591         * doc/sdccman.lyx: various small changes, acknowledged Sourceforge
4592
4593 2006-11-30 Raphael Neider <rneider AT web.de>
4594
4595         * src/pic/device.c (dump_sfr): always emit symbols
4596         * src/pic/glue.c (pic14printPublics): fixed typo
4597
4598 2006-11-30 Raphael Neider <rneider AT web.de>
4599
4600         * src/pic/device.c (create_pic,ram_map): add memRange entries to PIC
4601           (pic14_getSharebankSize, pic14_getSharebankAddress): replaced with
4602           (pic14_hasSharebank,pic14_isShared,pic14_allRAMShared,
4603            pic14_getSharedStack): NEW, evaluate the memRange entries to locate
4604            a sharebank, use a non-shared bank for the stack if none available
4605         * src/pic/device.h (struct memRange): added linked list next field,
4606           added prototypes for above functions
4607         * src/pic/ralloc.c (initStack): handle shared and banked stacks,
4608           (typeRegWithIdx): accept fixed and unfixed stack registers
4609         * src/pic/pcode.c (pCodeInitRegisters): use new functions to create
4610           the stack, handle shared and banked stack (except for WSAVE),
4611           (insertBankSel): removed useless optimization (will never fire),
4612           (FixRegisterBanking): added optimization for devices with only one
4613           possibly aliased bank of memory, like 16f84
4614         * src/pic/glue.c (pic14_constructAbsMap): back to udata_ovr, as some
4615           devices have no SHAREBANK in the linker script
4616         * device/include/pic/pic14devices.txt: documented memmap
4617         * device/lib/pic/libdev/Makefile.in: removed --stack-loc again
4618
4619 2006-11-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4620
4621         * src/hc08/gen.c (transferRegReg, loadRegFromAop, forceStackedAop,
4622           storeRegToAop, freeAsmop, genPlusIncr, genPlus, genPointerGetSetOfs,
4623           genAnd, genOr, genXor, genLeftShiftLiteral, genRightShiftLiteral,
4624           genhc08Code): switched most of the D (debug) macros to DD (detailed
4625           debug) macros to better control clutter in the generated .asm file.
4626         * src/hc08/gen.c: (forceStackedAop, genUminus, genLeftShift,
4627           genRightShift): fixed bug with non-constant bit shift stored to
4628           a volatile result (SF Open Discussion forum thread #1616749).
4629           Single byte case is not yet optimized.
4630
4631 2006-11-28 Maarten Brock <sourceforge.brock AT dse.nl>
4632
4633         * device/include/asm/mcs51/features.h,
4634         * device/include/malloc.h,
4635         * device/include/stdio.h: changed keywords to double underscore variants,
4636           fixes bug 1590261
4637
4638 2006-11-27 Borut Razem <borut.razem AT siol.net>
4639
4640         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
4641           support/cpp2/Makefile.in, support/cpp2/cppfiles.c,
4642           support/cpp2/output.h, support/cpp2/cppinit.c,
4643           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
4644           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
4645           support/cpp2/cppdefault.c, support/cpp2/system.h,
4646           support/cpp2/cpphash.h, support/cpp2/cpplex.c,
4647           support/cpp2/cppdefault.h, support/cpp2/mbchar.c,
4648           support/cpp2/prefix.c, support/cpp2/except.h,
4649           support/cpp2/hwint.h, support/cpp2/cppmacro.c,
4650           support/cpp2/line-map.h, support/cpp2/sdcpp.dsp,
4651           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
4652           support/cpp2/version.c, support/cpp2/cppmain.c,
4653           support/cpp2/version.h, support/cpp2/hashtable.c,
4654           support/cpp2/cpperror.c:
4655           synchronized with GCC CPP release version 3.3.6,
4656           the latest where cppmain.c still exists.
4657         * support/cpp2/cpptrad.c, support/cpp2/sdcppmain.c,
4658           support/cpp2/sdcppinit.c: added
4659
4660 2006-11-27 Borut Razem <borut.razem AT siol.net>
4661
4662         * support/cpp2/cpplex.c:
4663           fixed _asm ... _endasm handling bug, introduce with GCC CPP
4664           synchronization
4665         * support/cpp2/cpplib.c: removed definitions of unused variables
4666
4667 2006-11-26 Borut Razem <borut.razem AT siol.net>
4668
4669         * support/cpp2/libiberty.h: commented out x*alloc() declarations
4670           since they are redefined by macros in support/cpp2/sdcc.h
4671         * support/cpp2/sdcc.h: x*alloc macro redefinition
4672
4673 2006-11-25 Borut Razem <borut.razem AT siol.net>
4674
4675         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
4676           support/cpp2/configure, support/cpp2/Makefile.in,
4677           support/cpp2/cppfiles.c, support/cpp2/output.h,
4678           support/cpp2/cppinit.c, support/cpp2/cpplib.c,
4679           support/cpp2/config.h, support/cpp2/cpplib.h,
4680           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
4681           support/cpp2/cppdefault.c, support/cpp2/config.in,
4682           support/cpp2/system.h, support/cpp2/cpplex.c,
4683           support/cpp2/cpphash.h, support/cpp2/mbchar.c,
4684           support/cpp2/cppdefault.h, support/cpp2/prefix.c
4685           support/cpp2/hwint.h, support/cpp2/mbchar.h,
4686           support/cpp2/prefix.h, support/cpp2/cppmacro.c,
4687           support/cpp2/configure.in, support/cpp2/intl.h,
4688           support/cpp2/sdcpp.dsp, support/cpp2/acconfig.h,
4689           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
4690           support/cpp2/version.c, support/cpp2/cppmain.c,
4691           support/cpp2/ansidecl.h, support/cpp2/libiberty.h,
4692           support/cpp2/hashtable.c, support/cpp2/aclocal.m4,
4693           support/cpp2/cpperror.c,
4694           support/cpp2/libiberty/safe-ctype.c,
4695           support/cpp2/libiberty/safe-ctype.h,
4696           support/cpp2/libiberty/splay-tree.c,
4697           support/cpp2/libiberty/obstack.c,
4698           support/cpp2/libiberty/lbasename.c,
4699           support/cpp2/libiberty/splay-tree.h,
4700           support/cpp2/libiberty/obstack.h:
4701           synchronized with GCC CPP release version 3.2.3,
4702           the latest before integration of cpp into gcc
4703         * support/cpp2/except.h, support/cpp2/line-map.c,
4704           support/cpp2/line-map.h,
4705           support/cpp2/libiberty/hex.c,
4706           support/cpp2/libiberty/concat.c,
4707           support/cpp2/libiberty/filenames.h: added
4708         * support/cpp2/intl.c: deleted
4709
4710 2006-11-24 Borut Razem <borut.razem AT siol.net>
4711
4712         * src/SDCC.y: enabled compilation of empty source file
4713         * support/Util/SDCCerr.[ch]: added sdcc warning 190 -
4714           "ISO C forbids an empty source file"
4715         * device/lib/_startup.c, device/lib/printf_tiny.c: disable warning 190
4716           if all the code is ifdefed out.
4717
4718 2006-11-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4719
4720         * src/hc08/gen.c (genPcall): fix for bug #1601032
4721
4722 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
4723
4724         * device/include/mcs51/c8051f000.h, device/include/mcs51/C8051F000.h,
4725         * device/include/mcs51/c8051f018.h, device/include/mcs51/C8051F018.h,
4726         * device/include/mcs51/c8051f020.h, device/include/mcs51/C8051F020.h,
4727         * device/include/mcs51/c8051f040.h, device/include/mcs51/C8051F040.h,
4728         * device/include/mcs51/c8051f060.h, device/include/mcs51/C8051F060.h,
4729         * device/include/mcs51/c8051f120.h, device/include/mcs51/C8051F120.h,
4730         * device/include/mcs51/c8051f200.h, device/include/mcs51/C8051F200.h,
4731         * device/include/mcs51/c8051f300.h, device/include/mcs51/C8051F300.h,
4732         * device/include/mcs51/c8051f310.h, device/include/mcs51/C8051F310.h,
4733         * device/include/mcs51/c8051f320.h, device/include/mcs51/C8051F320.h,
4734         * device/include/mcs51/c8051f326.h, device/include/mcs51/C8051F326.h,
4735         * device/include/mcs51/c8051f330.h, device/include/mcs51/C8051F330.h,
4736         * device/include/mcs51/c8051f340.h, device/include/mcs51/C8051F340.h,
4737         * device/include/mcs51/c8051f350.h, device/include/mcs51/C8051F350.h,
4738         * device/include/mcs51/c8051f410.h, device/include/mcs51/C8051F410.h:
4739           Renamed to all upper case as per the standard set by SiLabs
4740
4741 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
4742
4743         * device/include/mcs51/C8051F520.h: new, added
4744         * device/include/mcs51/compiler.h: added link about predefined macros
4745
4746 2006-11-23 Raphael Neider <rneider AT web.de>
4747
4748         * src/regression/Makefile: add -L path to fresh library
4749         * src/regression/simulate: emphasize FAILED output
4750         * src/regression/create_stc: output _failures from gpsim
4751         * src/regression/compare4.c,
4752         * src/regression/rotate6.c: fixed char literals,
4753           all compile, all run =8-D
4754
4755         * src/pic/pcode.h: added isPCASMDIR macro
4756         * src/pic/gen.c (genAnd): fixed bit offset
4757         * src/pic/ralloc.c (allocNewDirReg,allocDirReg,allocRegByName,
4758           packBits): unified register numbering schemes,
4759           (newReg): do not insert stack registers into hash table,
4760           (initStack): unpinned pseudo stack, simplified,
4761           (typeRegWithIdx): fixed retrieval of stack registers,
4762         * src/pic/pcode.c (addpCodeComment,sameBank): added,
4763           (pCodeReplace): removed invalid assertion,
4764           (insertPCodeInstruction): fixed newly added labels,
4765           (insertBankSwitch,BankSelect,IsBankChange,DoBankSelect,
4766           FixRegisterBankingInFlow,compareBankFlow,FixBankFlow,
4767           DumpFlow): removed unsed (broken?) code,
4768           (insertBankSel): prevent STATUS from being BANKSELed,
4769           (FixRegisterBanking): rewritten from scratch, implemented generic
4770             optimizations (suppress BANKSELs to same register and to registers
4771             present in all banks),
4772           (AnalyzeBanking): update flow after BANKSELection
4773
4774         * src/pic/glue.c (pic14_constructAbsMap): emit pseudo stack in
4775             sharebank, let linker place it, mark STKxx symbols as emitted
4776
4777 2006-11-21 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4778
4779         * src/regression/arrays.c,
4780         * src/regression/bank1.c,
4781         * src/regression/bool2.c,
4782         * src/regression/compare7.c,
4783         * src/regression/compare8.c,
4784         * src/regression/compare9.c,
4785         * src/regression/compare10.c,
4786         * src/regression/configword.c,
4787         * src/regression/for.c,
4788         * src/regression/mult1.c,
4789         * src/regression/pointer1.c,
4790         * src/regression/rotate6.c,
4791         * src/regression/string1.c,
4792         * src/regression/struct1.c,
4793         * src/regression/Makefile: make PIC14 regression tests run again
4794           (3 fail, 6 won't compile)
4795
4796 2006-11-21 Raphael Neider <rneider AT web.de>
4797
4798         * device/include/pic16/pic18f4550.h,
4799         * device/include/pic16/pic18f4455.h,
4800         * device/lib/pic16/libdev/pic18f4550.c,
4801         * device/lib/pic16/libdev/pic18f4455.c: fixed #1578591 and #1595144
4802         * configure.in: removed superfluous closing bracket
4803
4804 2006-11-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4805
4806         * device/lib/expf.c: Fixed bug 1599523: result of expf(x) is
4807           always positive.
4808
4809 2006-11-21 Raphael Neider <rneider AT web.de>
4810
4811         * src/pic/device.{c,h}: added pic14_getPIC()
4812         * src/pic/gen.c (continueIfTrue,jumpIfTrue): added PIC code,
4813           (genAnd): added PIC code for one case, fixes #1597044
4814         * src/pic/pcode.c (BankSelect): Ohoh, added generic optimization for
4815           SFRs that are present in all banks (e.g., STATUS)
4816
4817 2006-11-20 Raphael Neider <rneider AT web.de>
4818
4819         * src/pic/pcode.c: changed inverted ops for DECFSZ/DECFSZW and
4820           INCFSZ/INCFSZW and declared them as changing Z bit,
4821           (insertPCodeInstruction): correctly invert the above instructions,
4822           fixes #1599333,
4823           (DoBankSelect): don't panic on po_immediates
4824
4825 2006-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
4826
4827         * as/link/aslink.h,
4828         * as/link/mcs51/lkihx.c (newArea),
4829         * as/link/mcs51/lkrloc.c: renamed newArea() to ihxNewArea()
4830         * as/link/mcs51/lkihx.c (ihx): output reset vector as start address
4831
4832 2006-11-11 Raphael Neider <rneider AT web.de>
4833
4834         * src/pic/pcode.c (newpCodeOpBit): search SymbolTab for referenced
4835           bitfield symbols, fixes #1579535 (once more...).
4836
4837 2006-11-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4838
4839         * support/regression/generate-cases.py,
4840         * support/regression/fwk/include/testfwk.h,
4841         * support/regression/fwk/lib/testfwk.c: used code pointers,
4842           (about 50kByte less code generated for mcs51)
4843
4844 2006-11-06 Borut Razem <borut.razem AT siol.net>
4845
4846         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
4847           debugger/mcs51/configure: fixed failed check because the function
4848           rl_function_of_keyseq isn't in Readline 5.2. Thanks to Ilya Goldberg
4849           who submitted the patch for gpsim.
4850         * debugger/mcs51/configure.in: removed the result message
4851         * debugger/mcs51/Makefile.in: fixed the config.status warning
4852           "... seems to ignore the --datarootdir setting"
4853
4854 2006-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
4855
4856         * device/include/mcs51/c8051f020.h,
4857         * device/include/mcs51/c8051f040.h,
4858         * device/include/mcs51/c8051f060.h,
4859         * device/include/mcs51/c8051f120.h: added PS0, fixed bug 1589279
4860         * src/z80/gen.c (gencjneshort),
4861         * src/z80/peeph.def: applied patch 1571373, thanks Philipp Krause
4862
4863 2006-10-31 Borut Razem <borut.razem AT siol.net>
4864
4865         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
4866           debugger/mcs51/configure: get readline version
4867
4868 2006-10-30 Borut Razem <borut.razem AT siol.net>
4869
4870         * debugger/mcs51/sdcdb.c: replaced hardcoded "/" with DIR_SEPARATOR_STRING
4871         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
4872           debugger/mcs51/configure: locate readline even when cross compiling
4873         * support/scripts/sdcc.nsi: include readline5.dll into the setup package
4874
4875 2006-10-29 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4876
4877         * device/include/mcs51/serial_IO.h: putchar() and getchar() using
4878           serial port.
4879
4880 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
4881
4882         * device/include/malloc.h,
4883         * device/lib/calloc.c,
4884         * device/lib/free.c,
4885         * device/lib/malloc.c,
4886         * device/lib/realloc.c: moved definition of struct into sources
4887         * support/regression/tests/malloc.c: use void* for init_dynamic_memory()
4888
4889 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
4890
4891         * as/asx8051.dsp: corrected output directories
4892         * as/link/hc08: new directory for hc08 linker
4893         * as/hc08/aslink.h,             as/link/aslink.h,
4894         * as/hc08/aslink.mak,           as/link/hc08/aslink.mak,
4895         * as/hc08/clean.mk,             as/link/hc08/clean.mk,
4896         * as/hc08/link_hc08.dsp,        as/link/hc08/link_hc08.dsp,
4897         * as/hc08/lkaomf51.c,           as/link/hc08/lkaomf51.c,
4898         * as/hc08/lkarea.c,             as/link/hc08/lkarea.c,
4899         * as/hc08/lkdata.c,             as/link/hc08/lkdata.c,
4900         * as/hc08/lkelf.c,              as/link/hc08/lkelf.c,
4901         * as/hc08/lkihx.c,              as/link/hc08/lkihx.c,
4902         * as/hc08/lklibr.c,             as/link/hc08/lklibr.c,
4903         * as/hc08/lkmain.c,             as/link/hc08/lkmain.c,
4904         * as/hc08/lkmem.c,              as/link/hc08/lkmem.c,
4905         * as/hc08/lkrloc.c,             as/link/hc08/lkrloc.c,
4906         * as/hc08/lks19.c,              as/link/hc08/lks19.c,
4907         * as/hc08/Makefile.aslink,      as/link/hc08/Makefile.aslink,
4908         * as/hc08/Makefile.bcc,         as/link/hc08/Makefile.bcc,
4909         * as/hc08/Makefile.in,          as/link/hc08/Makefile.in,
4910         * as/link/hc08/conf.mk,
4911         * configure,
4912         * configure.in,
4913         * Makefile.in,
4914         * sdcc.dsw: moved hc08 linker to as/link/hc08
4915         * as/hc08/lkeval.c,     as/link/mcs51/lkeval.c,     as/link/lkeval.c,
4916         * as/hc08/lkhead.c,     as/link/mcs51/lkhead.c,     as/link/lkhead.c,
4917         * as/hc08/lklex.c,      as/link/mcs51/lklex.c,      as/link/lklex.c,
4918         * as/hc08/lklist.c,     as/link/mcs51/lklist.c,     as/link/lklist.c,
4919         * as/hc08/lknoice.c,    as/link/mcs51/lknoice.c,    as/link/lknoice.c,
4920         * as/hc08/lksym.c,      as/link/mcs51/lksym.c,      as/link/lksym.c,
4921         * as/link/mcs51/aslink.dsp,
4922         * as/link/mcs51/Makefile.in: factored out the common files
4923         * as/hc08/lkstore.c: deleted, use the one already in as/link/
4924         * as/clean.mk: extra cleaning common files
4925         * as/link/mcs51/strcmpi.c,      as/strcmpi.c: moved
4926         * as/link/mcs51/strcmpi.h: deleted, moved protoype to aslink.h
4927         * as/mcs51/asm.h: include sdccconf.h or sdcc_vc.h
4928
4929 2006-10-29 Raphael Neider <rneider AT web.de>
4930
4931         * src/pic/ralloc.c (newReg): create aliases for registers with
4932           multiple names to fix #1579535 and #1584001,
4933           (regWithIdx,dirregWithName): resolve aliases on lookup
4934         * src/pic/pcode.c (DoBankSelect): die with error message on failing
4935           bankselect
4936         * device/lib/pic/libdev/Makefile.in: move pseudo stack down to 0x4f
4937           to prevent build errors on small devices
4938
4939 2006-10-28 Raphael Neider <rneider AT web.de>
4940
4941         * src/pic/gen.c (genFunction,genCall): drop "same code page"
4942           assumption within interrupt handlers, fixes #1584940
4943         * src/pic/glue.c (pic14_constructAbsMap): mark absolute symbols as
4944           "emitted" to avoid emitting them again in udata
4945
4946 2006-10-27 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4947
4948         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
4949         Removed.
4950
4951 2006-10-26 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4952
4953         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
4954         Initialize uart only if SM0 and SM1 are zero.  Also, use flag to turn
4955         on/off CR to CRLF conversion.
4956
4957 2006-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4958
4959         * doc/sdccman.lyx: updated IRQ section
4960
4961 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4962
4963         * device/lib/serial_io.c: removed
4964         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c
4965         replacements for serial_io.c
4966
4967 2006-10-24 Maarten Brock <sourceforge.brock AT dse.nl>
4968
4969         * src/z80/main.c (_process_pragma, _parseOptions): fixed bug 1583318
4970
4971 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4972
4973         * device/lib/serial_io.c: Default putchar() and getchar() for
4974           mcs51 uses serial port.
4975
4976 2006-10-23 Maarten Brock <sourceforge.brock AT dse.nl>
4977
4978         * src/mcs51/gen.c (movc): improved check for 0 and 1, see RFE 1582704
4979
4980 2006-10-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4981
4982         * support/regression/ports/mcs51/support.c: smaller
4983         _sdcc_external_startup()
4984         * device/lib/mcs51/crtxclear.asm: don't check high byte of l_PSEG
4985
4986 2006-10-20 Maarten Brock <sourceforge.brock AT dse.nl>
4987
4988         * device/lib/gbz80/crt0.s,
4989         * device/lib/gbz80/crt0_rle.s,
4990         * device/lib/gbz80/div.s,
4991         * device/lib/gbz80/fstubs.s,
4992         * device/lib/gbz80/heap.s,
4993         * device/lib/gbz80/mul.s,
4994         * device/lib/gbz80/putchar.s,
4995         * device/lib/gbz80/stubs.s,
4996         * device/lib/z80/crt0.s,
4997         * device/lib/z80/crt0_rle.s,
4998         * device/lib/z80/div.s,
4999         * device/lib/z80/fstubs.s,
5000         * device/lib/z80/heap.s,
5001         * device/lib/z80/mul.s,
5002         * device/lib/z80/putchar.s,
5003         * device/lib/z80/stubs.s: reverted, I was mistaken
5004
5005 2006-10-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5006
5007         * src/mcs51/peeph.def: peephole 238.x added check for notvolatile
5008         * support/regression/ports/mcs51/support.c: removed race
5009         condition on TI in _putchar allowing to use serial port mode 0
5010
5011 2006-10-20 Borut Razem <borut.razem AT siol.net>
5012
5013         * debugger/mcs51/sdcdb.c: replaced isblank() with isspace()
5014
5015 2006-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
5016
5017         * device/lib/gbz80/crt0.s,
5018         * device/lib/gbz80/crt0_rle.s,
5019         * device/lib/gbz80/div.s,
5020         * device/lib/gbz80/fstubs.s,
5021         * device/lib/gbz80/heap.s,
5022         * device/lib/gbz80/mul.s,
5023         * device/lib/gbz80/putchar.s,
5024         * device/lib/gbz80/stubs.s,
5025         * device/lib/z80/crt0.s,
5026         * device/lib/z80/crt0_rle.s,
5027         * device/lib/z80/div.s,
5028         * device/lib/z80/fstubs.s,
5029         * device/lib/z80/heap.s,
5030         * device/lib/z80/mul.s,
5031         * device/lib/z80/putchar.s,
5032         * device/lib/z80/stubs.s: removed all leading underscores from area names
5033
5034 2006-10-17 Maarten Brock <sourceforge.brock AT dse.nl>
5035
5036         * support/regression/ports/mcs51/support.c: use highest baudrate so the
5037           regression tests are not waiting in the simulator for simulated
5038           transmission of debug output
5039
5040 2006-10-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5041
5042         * device/lib/printf_large.c: slightly smaller
5043         * doc/sdccman.lyx: do not use spaces within html links
5044
5045 2006-10-16 Borut Razem <borut.razem AT siol.net>
5046
5047         * configure.in, configure, sdccconf_in.h, src/SDCCglobal,
5048           debugger/mcs51/Makefile.in, debugger/mcs51/sdcdb.[ch],
5049           debugger/mcs51/aclocal.m4, debugger/mcs51/acinclide.m4,
5050           debugger/mcs51/config.h.in, debugger/mcs51/configure.in,
5051           debugger/mcs51/configure:
5052           [ 1185668 ] add gnu readline support to sdcdb - enabled
5053
5054 2006-10-16 Raphael Neider <rneider AT web.de>
5055
5056         * src/pic/pcode.c (BankSelect): another fix on (partial) BANKSELs,
5057           fixes #1577882, removes close to all banking optimizations
5058
5059 2006-10-15 Maarten Brock <sourceforge.brock AT dse.nl>
5060
5061         * src/SDCCsymt.c (checkSClass): no error for uninitialised absolute
5062           variables in code memory
5063         * support/regression/tests/absolute.c: added test for this
5064
5065 2006-10-15 Raphael Neider <rneider AT web.de>
5066
5067         * src/pic/pcode.c (InsertBankSel): suppress BANKSELs for one bank
5068           devices,
5069           (BankSelect): emit BANKSEL before touching linker-placed regs,
5070           fixes #1570934
5071
5072 2006-10-10 Raphael Neider <rneider AT web.de>
5073
5074         * src/SDCCmain.c (optionsTable): accept --stack-size for PICs,
5075         * src/pic/device.c (pic14_getSharebankSize,pic14_getSharebankAddress),
5076         * src/pic/main.c (_pic14_parseOptions),
5077         * src/pic/main.h: mostly reverted to previous state, now use results
5078             from SDCCmain.c's argument parsing
5079
5080 2006-10-10 Borut Razem <borut.razem AT siol.net>
5081
5082         * debugger/mcs51/break.[ch], debugger/mcs51/cmd.c,
5083           debugger/mcs51/sdcdb.[ch], debugger/mcs51/simi.c:
5084           [ 1185668 ] add gnu readline support to sdcdb -
5085           prepared for READLINE, not enabled yet,
5086           thanks to <tal.bav AT gmail.com>
5087
5088 2006-10-10 Raphael Neider <rneider AT web.de>
5089
5090         * src/pic16/pcode.c (pic16_pCode2str): use isACCESS_BANK macro
5091         * src/pic16/devices.inc,
5092         * device/include/pic16 (pic18f[24]620.h),
5093         * device/include/pic18fregs.h,
5094         * device/lib/pic16/pics.all,
5095         * device/lib/pic16/libdev/pic18f[24]{620,525}.c): added support for
5096             18f2620, 18f4620, 18f2525, and 18f4525 devices, thanks to
5097             Gary Plumbridge and Anton Strobl
5098
5099 2006-10-10 Raphael Neider <rneider AT web.de>
5100
5101         * src/pic/main.c (_pic14_parseOptions): added --stack-loc=NUM and
5102           --stack-siz=NUM options to configure the argument passing stack
5103         * src/pic/main.h: added stackLocation and stackSize to pic14_options_t
5104         * src/pic/device.c (mapRegister): catch out-of-memory SIGSEGVs,
5105           (pic14_getSharebankSize): obey --stack-siz=NUM,
5106           (pic14_getSharebankAddress): obey --stack-loc=NUM
5107
5108 2006-10-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5109
5110         * doc/sdccman.lyx: added to the manual
5111         * doc/figures/ddd_example.png: added (neither pdflatex nor
5112         most browsers seem to like the .eps file)
5113
5114 2006-10-06 Bernhard Held <bernhard AT bernhardheld.de>
5115
5116         * src/SDCCglue.c (tempfileandname): changed un*x tmp search paths
5117         to /tmp and /var/tmp acc. LSB
5118         * src/SDCCast.c (addCast): Fixed bug 1571231: promote in case of
5119         RESULT_TYPE_IFX
5120         * support/regression/tests/onebyte.c: added test
5121
5122 2006-10-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5123
5124         * src/mcs51/gen.c: emitcode for "add a,0x%02x" requires only 8 bits.
5125
5126 2006-10-05 Borut Razem <borut.razem AT siol.net>
5127
5128         * partially fixed [ 1570701 ] peephole - not replacing code from multiline macros,
5129           thanks to dfulab:
5130           - sdcc.dsw: changed property eol-style to CRLF
5131           - support/scripts/resource.rc: replaced references to "afxres.h" with "winres.h"
5132
5133 2006-10-04 Raphael Neider <rneider AT web.de>
5134
5135         * device/include/pic/{pic16f84.h,pic16f84a.h},
5136         * device/lib/pic/libdev/{pic16f84.c,pic16f84a.c}: added PORT[AB]_bits
5137           from patch #1522504, thanks to Robas Teodor
5138
5139 2006-10-02 Maarten Brock <sourceforge.brock AT dse.nl>
5140
5141         * as/link/z80/lkarea.c: essentially reverted lnksect() to #4380 which
5142           fixes bug 1566015
5143
5144 2006-10-01 Maarten Brock <sourceforge.brock AT dse.nl>
5145
5146         * src/pic16/glue.c (pic16emitMaps),
5147         * src/pic/glue.c (pic14emitMaps): hopefully fixed bug 1568779
5148         * device/lib/gets.c: fixed bug 1568829,thanks Philipp Krause
5149         * device/lib/pic16/libc/string/memcpypgm2ram.c,
5150         * device/lib/pic16/libc/string/memcpyram2ram.c: fixed bug 1568836, thanks
5151           Philipp Krause
5152         * as/mcs51/asmain.c (asmbl, newdot): fixed problems with absolute areas
5153         * as/link/mcs51/lkmem.c (summary2): reverted, do do count abs segments
5154
5155 2006-09-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5156
5157         * support/librarian/sdcclib.c: Added option -l.
5158         * as/link/mcs51/lkmem.c: don't use absolute segments to compute memory
5159           usage totals.
5160         * device/lib/make51lib.bat: added.  Allows building mcs51 libraries easily
5161           using Windows command prompt.
5162
5163 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
5164
5165         * device/lib/libsdcc.lib: added module rand
5166         * src/ds390/ralloc.c (rematStr),
5167         * src/hc08/ralloc.c (rematStr),
5168         * src/mcs51/ralloc.c (rematStr),
5169         * src/z80/ralloc.c (rematStr): made output more consistent
5170         * src/mcs51/gen.c: cosmetic changes
5171
5172 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
5173
5174         * src/port.h: added mem.cabs_name to PORT
5175         * src/ds390/main.c,
5176         * src/hc08/main.c,
5177         * src/mcs51/main.c,
5178         * src/pic16/main.c,
5179         * src/pic/main.c,
5180         * src/xa51/main.c,
5181         * src/z80/main.c: added cabs_name initializers
5182         * src/SDCCglue.c (emitStaticSeg): allocate and initialize absolute
5183           constants
5184           (emitMaps): emit absolutes in code memory into cabs_name
5185         * src/SDCCmem.c,
5186         * src/SDCCmem.h: added memory map c_abs and defined CABS_NAME
5187         * src/ds390/gen.c (genCodePointerGet): fixed bug if left is a literal
5188         * support/regression/fwk/include/testfwk.h: added define for at
5189         * support/regression/tests/absolute.c: added, new
5190
5191 2006-09-29 Maarten Brock <sourceforge.brock AT dse.nl>
5192
5193         * src/mcs51/gen.c (genPlusIncr, genMinusDec, genAddrOf): small
5194           optimizations, see also patch 887161 by Stas Sergeev
5195         * src/mcs51/peeph.def(104, 207, 209, 212): disabled as they do not seem
5196           to be necessary anymore,
5197           (102, 103, 104, 127): renamed all occurances of bp to _bp
5198
5199 2006-09-27 Maarten Brock <sourceforge.brock AT dse.nl>
5200
5201         * device/include/mcs51/at89c51snd1c.h: fixed MSK_SREQ definition
5202           thanks Weston T. Schmidt for patch 1555221
5203         * src/mcs51/peeph.def: renamed rule 257 to 257.a, added 257.b
5204         * src/SDCCicode.c(geniCodeMultiply): small optimization
5205
5206 2006-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
5207
5208         * device/include/stdlib.h: added rand prototypes
5209         * device/lib/rand.c: new, added
5210         * device/lib/Makefile.in: added rand.c
5211         * src/z80/peeph.def,
5212         * src/z80/peeph-gbz80.def,
5213         * src/z80/peeph-z80.def: updated conditonals, fixed bug 1565908
5214
5215 2006-09-20 Raphael Neider <rneider AT web.de>
5216
5217         * device/lib/pic16/libio/i2c/i2cnack.c (i2c_nack): fixed ACKDT bit
5218
5219 2006-09-19 Maarten Brock <sourceforge.brock AT dse.nl>
5220
5221         * as/link/aslink.h: cosmetic changes
5222         * as/link/mcs51/Makefile.in,
5223         * as/link/z80/Makefile.in: fixed build on CF where VPATH is used
5224
5225 2006-09-17 Maarten Brock <sourceforge.brock AT dse.nl>
5226
5227         * as/link/aslink.h,
5228         * as/link/mcs51/aslink.h,
5229         * as/link/z80/aslink.h: merged and moved to as/link/
5230         * as/link/lkstore.c,
5231         * as/link/mcs51/lkstore.c: moved to as/link/
5232         * as/link/clean.mk: remove *.o
5233         * as/link/mcs51/alloc.h: deleted
5234         * as/link/mcs51/lkarea.c: added lnksect prototype
5235         * as/link/mcs51/lkdata.c,
5236         * as/link/mcs51/lklex.c,
5237         * as/link/mcs51/lkmain.c: renamed as_getline to lk_getline
5238         * as/link/mcs51/lkmem.c,
5239         * as/link/mcs51/lknoice.c: removed include strcmpi.h
5240         * as/link/mcs51/lksym.c: include stdlib.h instead of malloc.h or alloc.h
5241         * as/link/mcs51/aslink.dsp,
5242         * as/link/mcs51/Makefile.aslink,
5243         * as/link/mcs51/Makefile.bcc,
5244         * as/link/mcs51/Makefile.in: updated for moved files
5245         * as/link/z80/lkarea.c,
5246         * as/link/z80/lkhead.c,
5247         * as/link/z80/lklex.c,
5248         * as/link/z80/lklibr.c,
5249         * as/link/z80/lklist.c,
5250         * as/link/z80/lkmain.c,
5251         * as/link/z80/lkrloc.c,
5252         * as/link/z80/lksym.c: synced with mcs51
5253         * as/link/z80/lkdata.c,
5254         * as/link/z80/lkeval.c,
5255         * as/link/z80/lkihx.c,
5256         * as/link/z80/lks19.c: cosmetic changes
5257         * as/link/z80/Makefile.in,
5258         * as/link/z80/linkgbz80.dsp,
5259         * as/link/z80/linkz80.dsp: updated for moved files
5260
5261 2006-09-16 Borut Razem <borut.razem AT siol.net>
5262
5263         * debugger/mcs51/sdcdb.c: partially fixed
5264           [ 1203664 ] sdcdb fails to open files w. two "." periods
5265         * debugger/mcs51/simi.c, debugger/mcs51/symtab.c,
5266           debugger/mcs51/symtab.h: fixed indenting
5267         * configure.in, configure: up to date with latest Maarten's changes
5268
5269 2006-09-15 Maarten Brock <sourceforge.brock AT dse.nl>
5270
5271         as/link/mcs51
5272         as/aslink.dsp,                  as/link/mcs51/aslink.dsp,
5273         as/link/mcs51/aslink.h,         as/mcs51/aslink.h,
5274         as/link/mcs51/aslink.mak,       as/mcs51/aslink.mak,
5275         as/link/mcs51/lkaomf51.c,       as/mcs51/lkaomf51.c,
5276         as/link/mcs51/lkarea.c,         as/mcs51/lkarea.c,
5277         as/link/mcs51/lkdata.c,         as/mcs51/lkdata.c,
5278         as/link/mcs51/lkeval.c,         as/mcs51/lkeval.c,
5279         as/link/mcs51/lkhead.c,         as/mcs51/lkhead.c,
5280         as/link/mcs51/lkihx.c,          as/mcs51/lkihx.c,
5281         as/link/mcs51/lklex.c,          as/mcs51/lklex.c,
5282         as/link/mcs51/lklibr.c,         as/mcs51/lklibr.c,
5283         as/link/mcs51/lklist.c,         as/mcs51/lklist.c,
5284         as/link/mcs51/lkmain.c,         as/mcs51/lkmain.c,
5285         as/link/mcs51/lkmem.c,          as/mcs51/lkmem.c,
5286         as/link/mcs51/lknoice.c,        as/mcs51/lknoice.c,
5287         as/link/mcs51/lkrloc.c,         as/mcs51/lkrloc.c,
5288         as/link/mcs51/lks19.c,          as/mcs51/lks19.c,
5289         as/link/mcs51/lkstore.c,        as/mcs51/lkstore.c,
5290         as/link/mcs51/lksym.c,          as/mcs51/lksym.c,
5291         as/link/mcs51/Makefile.aslink,  as/mcs51/Makefile.aslink,
5292         as/link/mcs51/alloc.h,
5293         as/link/mcs51/clean.mk,
5294         as/link/mcs51/conf.mk,
5295         as/link/mcs51/Makefile.bcc,
5296         as/link/mcs51/Makefile.in,
5297         as/link/mcs51/readme.390,
5298         as/link/mcs51/strcmpi.c,
5299         as/link/mcs51/strcmpi.h,
5300         as/mcs51/clean.mk,
5301         as/mcs51/Makefile.bcc,
5302         as/mcs51/Makefile.in,
5303         configure,
5304         Makefile.in,
5305         sdcc.dsw: moved mcs51 linker to as/link/mcs51
5306
5307 2006-09-14 Maarten Brock <sourceforge.brock AT dse.nl>
5308
5309         * as/link,
5310         * as/link/Makefile.in,
5311         * as/link/z80/linkgbz80.dsp,
5312         * as/link/z80/linkz80.dsp,
5313         * configure,
5314         * link,
5315         * link/clean.mk,
5316         * link/Makefile.in,
5317         * link/README,
5318         * link/z80,
5319         * link/z80/aslink.h,
5320         * link/z80/clean.mk,
5321         * link/z80/conf.mk,
5322         * link/z80/linkgbz80.dsp,
5323         * link/z80/linkz80.dsp,
5324         * link/z80/lkarea.c,
5325         * link/z80/lkdata.c,
5326         * link/z80/lkeval.c,
5327         * link/z80/lkgb.c,
5328         * link/z80/lkgg.c,
5329         * link/z80/lkhead.c,
5330         * link/z80/lkihx.c,
5331         * link/z80/lklex.c,
5332         * link/z80/lklibr.c,
5333         * link/z80/lklist.c,
5334         * link/z80/lkmain.c,
5335         * link/z80/lkrloc.c,
5336         * link/z80/lks19.c,
5337         * link/z80/lksym.c,
5338         * link/z80/Makefile.in,
5339         * Makefile.in,
5340         * sdcc.dsw: moved link/ to as/link/
5341
5342 2006-09-11 Maarten Brock <sourceforge.brock AT dse.nl>
5343
5344         * as/mcs51/i51mch.c (machine): fixed warning
5345
5346 2006-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
5347
5348         * as/mcs51/i51mch.c (machine): S_DJNZ fixed bug 1554318
5349
5350 2006-09-09 Borut Razem <borut.razem AT siol.net>
5351
5352         * debugger/mcs51/sdcdb.c, debugger/mcs51/simi.c:
5353           sdcdb WIN32 native port
5354         * src/clean.mk: fixed
5355
5356 2006-09-08 Borut Razem <borut.razem AT siol.net>
5357
5358         * doc/sdccman.lyx: SDCDB and ucSim are available on Win32 platforms.
5359
5360 2006-09-08 Raphael Neider <rneider AT web.de>
5361
5362         * src/pic16/main.c (_pic16_linkEdit,pic16_linkCmd),
5363         * src/pic/main.c(_pic14_do_link, linkCmd): pass "-w" and "-r"
5364             to gplink to disable processor mismatch warning and to allow
5365             the use of devices with only aliased (shared) memory banks,
5366           (_pic16_genAssemblerPreamble): include pXXX.inc on --mplab-comp
5367
5368 2006-09-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5369
5370         * doc/sdccman.lyx: Some re-formating plus example on using
5371           #pragma preproc_asm +/-
5372
5373 2006-09-07 Borut Razem <borut.razem AT siol.net>
5374
5375         * support/scripts/sdcc.nsi: added SDCDB executables in a separate
5376           section
5377
5378 2006-09-06 Borut Razem <borut.razem AT siol.net>
5379
5380         * support/scripts/sdcc.nsi: fixed Error: unterminated string parsing
5381           line at sdcc.nsi:153
5382         * sdcc/debugger/mcs51/simi.c: argsToCmdLine() fixes
5383
5384 2006-09-05 Borut Razem <borut.razem AT siol.net>
5385
5386         * configure.in, configure: support for winsock2
5387         * debugger/mcs51/break.h, debugger/mcs51/cmd.c,
5388           debugger/mcs51/cmd.h, debugger/mcs51/sdcdb.c,
5389           debugger/mcs51/sdcdb.h, debugger/mcs51/simi.c,
5390           debugger/mcs51/simi.h, debugger/mcs51/symtab.c,
5391           debugger/mcs51/symtab.h: sdcdb WIN32 native port
5392
5393 2006-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
5394
5395         * src/SDCCopt.c (cnvToFcall): fixed bug 1551947 by updating OP_USES
5396           and OP_DEFS
5397         * support/regression/tests/bug1551947.c: new, added
5398         * src/SDCCsymt.h: strings are char* not byte*
5399
5400 2006-09-05 Raphael Neider <rneider AT web.de>
5401
5402         * device/lib/pic16/libdev/pic18f4550.c,
5403           device/include/pic16/pic18f4550.h: added PORTD/TRISD
5404             declarations/definitions from patch #1520949
5405
5406 2006-09-05 Raphael Neider <rneider AT web.de>
5407
5408         * src/pic16/gen.c (genPackBits): fix assignment to 8-bit,
5409           byte-aligned bitfields, fixes #1539278
5410
5411 2006-09-05 Raphael Neider <rneider AT web.de>
5412
5413         * src/pic/gen.c (genReceive): skip unreferenced arguments,
5414           fixes #1544120
5415
5416 2006-09-04 Borut Razem <borut.razem AT siol.net>
5417
5418         * support/scripts/sdcc.nsi: move ucSim executables to a separate section
5419         * support/scripts/sdcc_cygwin_mingw32: don't disable ucsim,
5420           -mno-cygwin is a part of the compiler name
5421         * support/scripts/sdcc_mingw32: don't disable ucsim
5422
5423 2006-09-03 Borut Razem <borut.razem AT siol.net>
5424
5425         * sdcc.spec: corrected for 2.6.0. Thanks to Christer Weinigel.
5426         * device/lib/Makefile.in device/lib/clean.mk: small but essential corrections
5427
5428 2006-09-03 Raphael Neider <rneider AT web.de>
5429
5430         * src/pic/ralloc.c,
5431         * src/pic/pcode.c (InitReuseRegs): allocate registers with pseudo
5432           indices >= 0x1000 to disambiguate them from fixed regs __at(addr),
5433           fixes #1550049
5434
5435 2006-09-01 Borut Razem <borut.razem AT siol.net>
5436
5437         * sim/ucsim/cmd.src/cmdutil.cc: #include <sys/time.h> and <unistd.h>
5438           to make ppc-osx happy
5439
5440 2006-08-31 Borut Razem <borut.razem AT siol.net>
5441
5442         * sim/ucsim/cmd.src/newcmdposix.cc: #include <assert.h>
5443         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
5444         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
5445         * support/regression/ports/ds390/spec.mk,
5446           support/regression/ports/mcs51/spec.mk,
5447           support/regression/ports/xa51/spec.mk: introduced DEV_NULL variable.
5448           To run regression tests in mingw environment:
5449           make DEV_NULL=NUL CC=gcc
5450
5451 2006-08-30 Borut Razem <borut.razem AT siol.net>
5452
5453         * sim/ucsim/cmd.src/newcmdposix.cc, sim/ucsim/cmd.src/newcmdposixcl.h,
5454           sim/ucsim/cmd.src/newcmdwin32.cc, sim/ucsim/cmd.src/newcmdwin32cl.h,
5455           sim/ucsim/app.cc, sim/ucsim/appcl.h, sim/ucsim/configure,
5456           sim/ucsim/configure.in, sim/ucsim/ddconfig_in.h, sim/ucsim/error.cc,
5457           sim/ucsim/errorcl.h, sim/ucsim/option.cc, sim/ucsim/optioncl.h,
5458           sim/ucsim/utils.cc, sim/ucsim/utils.h, sim/ucsim/cmd.src/Makefile.in,
5459           sim/ucsim/avr.src/avr.cc, sim/ucsim/avr.src/avrcl.h,
5460           sim/ucsim/cmd.src/bp.cc, sim/ucsim/cmd.src/bpcl.h,
5461           sim/ucsim/cmd.src/cmdconf.cc, sim/ucsim/cmd.src/cmdgui.cc,
5462           sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/cmdset.cc,
5463           sim/ucsim/cmd.src/cmdsetcl.h, sim/ucsim/cmd.src/cmdstat.cc,
5464           sim/ucsim/cmd.src/cmduc.cc, sim/ucsim/cmd.src/cmduccl.h,
5465           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
5466           sim/ucsim/cmd.src/command.cc, sim/ucsim/cmd.src/commandcl.h,
5467           sim/ucsim/cmd.src/get.cc, sim/ucsim/cmd.src/getcl.h,
5468           sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/newcmd.cc,
5469           sim/ucsim/cmd.src/newcmdcl.h, sim/ucsim/cmd.src/set.cc,
5470           sim/ucsim/cmd.src/show.cc, sim/ucsim/cmd.src/timer.cc,
5471           sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
5472           sim/ucsim/s51.src/Makefile.in, sim/ucsim/s51.src/interrupt.cc,
5473           sim/ucsim/s51.src/interruptcl.h, sim/ucsim/s51.src/pca.cc,
5474           sim/ucsim/s51.src/pcacl.h, sim/ucsim/s51.src/port.cc,
5475           sim/ucsim/s51.src/portcl.h, sim/ucsim/s51.src/serial.cc,
5476           sim/ucsim/s51.src/serialcl.h, sim/ucsim/s51.src/timer0.cc,
5477           sim/ucsim/s51.src/timer0cl.h, sim/ucsim/s51.src/timer1.cc,
5478           sim/ucsim/s51.src/timer1cl.h, sim/ucsim/s51.src/timer2.cc,
5479           sim/ucsim/s51.src/timer2cl.h, sim/ucsim/s51.src/uc390.cc,
5480           sim/ucsim/s51.src/uc390cl.h, sim/ucsim/s51.src/uc390hw.cc,
5481           sim/ucsim/s51.src/uc390hwcl.h, sim/ucsim/s51.src/uc51.cc,
5482           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/wdt.cc,
5483           sim/ucsim/s51.src/wdtcl.h, sim/ucsim/sim.src/hw.cc,
5484           sim/ucsim/sim.src/hwcl.h, sim/ucsim/sim.src/mem.cc,
5485           sim/ucsim/sim.src/memcl.h, sim/ucsim/sim.src/obsolete.cc,
5486           sim/ucsim/sim.src/obsolete.h, sim/ucsim/sim.src/sim.cc,
5487           sim/ucsim/sim.src/simcl.h, sim/ucsim/sim.src/stack.cc,
5488           sim/ucsim/sim.src/stackcl.h, sim/ucsim/sim.src/test_mem_speed.cc,
5489           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
5490           sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
5491           sim/ucsim/z80.src/z80.cc, sim/ucsim/z80.src/z80cl.h:
5492           ucsim WIN32 native port
5493
5494 2006-08-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5495
5496         * doc/sdccman.lyx: added note on dynamic memory heap initialization
5497
5498 2006-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
5499
5500         * src/mcs51/gen.c (genAnd, genOr, genXor): fixed bug 1546986
5501         * src/ds390/gen.c (aopGetUsesAcc): handle AOP_DPTR2 and AOP_DPTRn too
5502
5503 2006-08-26 Maarten Brock <sourceforge.brock AT dse.nl>
5504
5505         * src/ds390/gen.c (genAnd, genOr, genXor): fixed bug 1546986
5506         * support/regression/tests/bug1546986.c: new, added
5507         * as/mcs51/.cvsignore,
5508         * debugger/mcs51/.cvsignore,
5509         * src/.cvsignore: deleted
5510
5511 2006-08-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5512
5513         * device/include/mcs51/P89c51RD2.h: fixed bug 1546936 (error in sbit
5514           definitions)
5515
5516 2006-08-20 Borut Razem <borut.razem AT siol.net>
5517
5518         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h:
5519           removed cl_listen_console::match(), cl_console::match(),
5520           restructured cl_commander::proc_input()
5521
5522 2006-08-16 Borut Razem <borut.razem AT siol.net>
5523
5524         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h,
5525           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
5526           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/uc.cc: code cleaning
5527
5528 2006-08-14 Borut Razem <borut.razem AT siol.net>
5529
5530         * support/regression/Makefile.in,
5531           support/regression/ports/pic14/gpsim.cmd,
5532           support/regression/ports/pic14/spec.mk,
5533           support/regression/ports/pic14/support.c:
5534           added pic14 regression test
5535
5536 2006-08-14 Maarten Brock <sourceforge.brock AT dse.nl>
5537
5538         * as/doc/asxhtm.html: documented changed ABS behaviour
5539         * as/doc/README: fixed some typos
5540
5541 2006-08-13 Maarten Brock <sourceforge.brock AT dse.nl>
5542
5543         * support/regression/tests/float_trans.c: disabled test if __STDC_IEC_559__
5544           not defined on host
5545
5546 2006-08-12 Borut Razem <borut.razem AT siol.net>
5547
5548         * support/regression/fwk/include/testfwk.h,
5549           support/regression/fwk/lib/testfwk.c,
5550           support/regression/generate-cases.py,
5551           support/regression/Makefile.in:
5552           regression test framework does not depend on function pointers and
5553           variable arguments
5554
5555 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
5556
5557         * device/include/stddef.h: c temporary hack to fix bug 1518273
5558
5559 2006-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5560
5561         * device/include/mcs51/cc2510fx.h: added
5562         * src/z80/z80.dsp, src/gbz80/gbz80.dsp: added support/Util/strcmpi.ch
5563           to projects.
5564
5565 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
5566
5567         * as/z80/assym.c (mlookup): ignore case when looking up mnemonics
5568         * as/z80/Makefile.in: added strcmpi.c
5569         * as/z80/z80adr.c: added upper case registers and lower case conditionals
5570         * support/Util/strcmpi.ch: added with intention to remove from mcs51/hc08
5571
5572 2006-08-08 Maarten Brock <sourceforge.brock AT dse.nl>
5573
5574         * device/lib/gbz80/asm_strings.s,
5575         * device/lib/gbz80/crt0_rle.s,
5576         * device/lib/gbz80/div.s,
5577         * device/lib/gbz80/mul.s,
5578         * device/lib/gbz80/shift.s,
5579         * device/lib/z80/asm_strings.s,
5580         * device/lib/z80/crt0_rle.s,
5581         * device/lib/z80/div.s,
5582         * device/lib/z80/mul.s,
5583         * device/lib/z80/shift.s: changed to all lower case menmonics except the
5584           flags which are all upper case
5585
5586 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
5587
5588         * as/z80/asm.h: made CASE_SENSITIVE 1
5589         * link/z80/aslink.h: made CASE_SENSITIVE 1
5590         * src/z80/gen.c (throughout): made all conditionals upper case
5591         * support/regression/tests/bug1503067.c: new
5592
5593 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
5594
5595         * src/z80/gen.c (aopPut): fixed bug !*ixy should be !*iyx,
5596           (shiftIntoPair): added case 2 for PAIR_IY,
5597           (setupToPreserveCarry): replaced parameters with iCode and check if
5598            PAIR_DE is in use to fix bug 1399290,
5599           (genPlus, genMinus): updated call to setupToPreserveCarry
5600         * support/regression/tests/bug1399290.c: new
5601
5602 2006-08-06 Maarten Brock <sourceforge.brock AT dse.nl>
5603
5604         * device/lib/Makefile.in (Z80SOURCES): enabled float support
5605         * sim/ucsim/z80.src/inst.cc (inst_rst): generate breakpoint on RST8,ACC==0
5606         * src/ds390/gen.c (shiftRLong),
5607         * src/hc08/gen.c (shiftLLong, shiftRLong): fixed bug 1533966
5608         * src/mcs51/gen.c (sameReg): changed to sameByte,
5609           (xch_a_aopGet): new,
5610           (shiftL2Left2Result, shiftR2Left2Result, shiftRLeftOrResult, shiftLLong,
5611            shiftRLong): fixed bug 1533966
5612         * src/z80/gen.c (shiftR2Left2Result, shiftL2Left2Result, genlshTwo,
5613           genLeftShiftLiteral, genrshTwo, genRightShiftLiteral): fixed bug 1533966
5614         * support/regression/Makefile.in: disabled z80, enabled ucz80
5615         * support/regression/tests/float_trans.c: enabled test for z80 and host
5616         * support/regression/tests/shifts2.c: new, for testing bug 1533966
5617
5618 2006-08-01 Borut Razem <borut.razem AT siol.net>
5619
5620         * src/mcs51/gen.c, src/dc390/gen.c: fixed warning:
5621           comparison is always false due to limited range of data type
5622           on PPC64 machine (openpower-linux1) where "char = unsigned char"
5623
5624 2006-08-01 Maarten Brock <sourceforge.brock AT dse.nl>
5625
5626         * sim/ucsim/hc08.src/hc08mac.h: removed faulty and unused add_u16_disp
5627         * sim/ucsim/hc08.src/hc08.cc: removed faulty and unused int8
5628         * sim/ucsim/z80.src/z80mac.h (add_u16_disp): use explicit signed char cast
5629         * sim/ucsim/z80.src/z80.cc: removed faulty and unused int8
5630
5631 2006-07-31 Borut Razem <borut.razem AT siol.net>
5632
5633         * sim/ucsim/configure, sim/ucsim/cmd.src/newcmdcl.h,
5634           sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/cmdutil.cc,
5635           sim/ucsim/z80.src/Makefile.in, sim/ucsim/configure.in,
5636           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/hc08.src/hc08.cc,
5637           sim/ucsim/ddconfig_in.h, sim/ucsim/s51.src/Makefile.in,
5638           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/serialcl.h,
5639           sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/serial.cc,
5640           sim/ucsim/app.cc, sim/ucsim/avr.src/Makefile.in:
5641           enable ucsim mingw compilation. Serial port is disabled,
5642           since it uses termios.h API, which is not available on native
5643           WIN32
5644
5645 2006-07-31 Borut Razem <borut.razem AT siol.net>
5646
5647         * Small Device C Compiler 2.6.0 released
5648         * support/scripts/sdcc.nsi: added FULL_DOC option
5649         * .version, doc/sdccman.lyx: changed sdcc version to 2.6.1
5650
5651 2006-07-28 Borut Razem <borut.razem AT siol.net>
5652
5653         * support/scripts/sdcc.nsi: remove $INSTDIR/include/asm/pic16/*.h
5654         * doc/INSTALL.txt: updated
5655
5656 2006-07-27 Borut Razem <borut.razem AT siol.net>
5657
5658         * device/lib/pic/Makefile.in, device/lib/pic/Makefile.subdir,
5659           device/lib/pic/libdev/Makefile.in: fixed bug
5660           [ 1438354 ] pic libsdcc: distclean doesn't work
5661         * device/lib/pic16/Makefile.in, device/lib/pic16/Makefile.subdir,
5662           device/lib/pic16/libio/Makefile.in: fixed bug
5663           [ 1438344 ] pic16 lib: clean doesn't work properly
5664         * doc/knownbugs.html removed [ 1438354 ] and [ 1438344 ] from the list
5665
5666 2006-07-26 Maarten Brock <sourceforge.brock AT dse.nl>
5667
5668         * device/lib/pic/libsdcc/fsdiv.c,
5669         * device/lib/pic/libsdcc/fsmul.c,
5670         * device/lib/pic16/libsdcc/float/fsdiv.c,
5671         * device/lib/pic16/libsdcc/float/fsmul.c,
5672         * device/lib/_fsdiv.c,
5673         * device/lib/_fsmul.c: bugfix, handle too large and too small numbers
5674         * support/regression/tests/bug1520966.c: added
5675         * doc/knownbugs.html: removed [ 1520966 ] from the list
5676
5677 2006-07-25 Borut Razem <borut.razem AT siol.net>
5678
5679         * configure.in, configure, sdccconf_in.h: fixed bug
5680           [ 1519095 ] regression test onebyte.c fails on ppc64 host
5681         * doc/knownbugs.html: removed [ 1519095 ] from the list
5682
5683 2006-07-25 Maarten Brock <sourceforge.brock AT dse.nl>
5684
5685         * doc/knownbugs.html: added, contains list of known bugs at release
5686         * device/include/mcs51/compiler.h: fixed SFR32 for SDCC
5687
5688 2006-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
5689
5690         * device/include/mcs51/compiler.h: added SFRX for xdata based special
5691           function registers and corrected defaults with additional warning
5692         * device/lib/malloc.c: cosmetic changes
5693         * device/lib/realloc.c: bugfix for bug #1496907, Thanks Efim Monyak
5694         * src/ds390/ralloc.c (getRegBitNoSpil): reenabled,
5695           (fillGaps): and used it
5696
5697 2006-07-20 Raphael Neider <rneider AT web.de>
5698
5699         * src/pic/device.c (addMemRange,assignRegister): suppress verbose
5700           output unless SDCCPICDEBUG is set
5701         * device/lib/pic16/Makefile.rules (%.lib target): suppress verbose
5702           output if SILENT is set
5703
5704 2006-07-11 Borut Razem <borut.razem AT siol.net>
5705
5706         * doc/README.txt: updated
5707
5708 2006-07-10 Borut Razem <borut.razem AT siol.net>
5709
5710         * support/scripts/sdcc.nsi: added device/include/asm/pic/features.h and
5711           device/lib/src/pic/libm/*.c and device/lib/src/pic16/libsdcc/stack/*.S
5712           in WIN32 installation
5713         * .version, sdcc.spec, doc/sdccman.lyx: changed sdcc version to 2.6.0 -
5714           release candidate 1
5715
5716 2006-07-08 Maarten Brock <sourceforge.brock AT dse.nl>
5717
5718         * device/include/mcs51/XC866.h: added sbit definitions for Px_x, P1_x, P2_x
5719         * src/pic16/glue.c (initPointer): fixed bug 1496419 for pic16
5720
5721 2006-07-06 Maarten Brock <sourceforge.brock AT dse.nl>
5722
5723         * src/hc08/gen.c (genAddrOf): fixed bug when offset on stack is >127
5724
5725 2006-07-06 Borut Razem <borut.razem AT siol.net>
5726
5727         * support/regression/tests/bitfields.c:
5728           fixed bug [ 1518322 ] regression test bitfields fails on ppc hosts
5729         * support/regression/tests/constantRange.c:
5730           fixed bug [ 1518317 ] regression test constantRange fails on alpha host
5731
5732 2006-07-04 Borut Razem <borut.razem AT siol.net>
5733
5734         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in,
5735           src/port.mk,
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           reverted changes from 2006-07-03
5740         * Makefile.common.in: added @CPPFLAGS@ to CPPFLAGS
5741         * support/regression/Makefile.in, support/regression/ports/host/spec.mk:
5742           added CPPFLAGS, used by the host port
5743
5744 2006-07-03 Bernhard Held <bernhard AT bernhardheld.de>
5745
5746         * support/regression/valdiag/tests/switch.c,
5747         * support/regression/valdiag/tests/constantRange.c: adapted to gcc 4
5748         * support/regression/tests/libmullong.c: fixed for host
5749         * support/regression/ports/host/spec.mk: disable all warnings for host,
5750         SDCC runs with --less-pedantic too
5751
5752 2006-07-03 Borut Razem <borut.razem AT siol.net>
5753
5754         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in:
5755           defined CPPFLAGS
5756         * src/port.mk: defined CPPFLAGS, renamed to src/port.mk.in
5757         * src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
5758           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
5759           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
5760           include ../port.mk
5761         * sim/ucsim/main_in.mk, sim/ucsim/avr.src/Makefile.in,
5762           sim/ucsim/gui.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
5763           sim/ucsim/s52.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
5764           sim/ucsim/xa.src/Makefile.in: ignore header files for dependencies
5765
5766 2006-07-02 Raphael Neider <rneider AT web.de>
5767
5768         * src/pic16/devices.inc,
5769         * device/include/pic16/pic18fregs.h,
5770         * device/include/pic16/pic18f4550.h,
5771         * device/lib/pic16/pics.all,
5772         * device/lib/pic16/libdev/pic18f4550.c: added support for 18f4550
5773
5774 2006-07-01 Bernhard Held <bernhard AT bernhardheld.de>
5775
5776         * as/hc08/lkaomf51.c (OutputName),
5777         * as/mcs51/lkaomf51.c (OutputName),
5778         * as/z80/asmain.c (asmbl),
5779         * src/ds390/main.c (asmLineNodeFromLineNode),
5780         * src/hc08/ralloc.c (hc08_assignRegisters),
5781         * src/mcs51/main.c (asmLineNodeFromLineNode),
5782         * src/xa51/ralloc.c (checkRegMask),
5783         * src/xa51/gen.c (emitcode),
5784         * src/z80/gen.c (_emit2),
5785         * src/SDCCast.c (searchLitOp),
5786         * src/SDCCglobl.h,
5787         * support/packihx/packihx.c,
5788         * support/Util/MySystem.c (split_command): fix gcc 4 warnings
5789         * src/ds390/gen.c (aopPutUsesAcc),
5790         * src/ds390/ralloc.c (getRegBitNoSpil): unused, therefore disabled
5791         * support/regression/tests/libmullong.c (mullong_wrapper),
5792         * src/SDCCsymt.c (powof2),
5793         * src/SDCCast.c,
5794         * src/SDCCicode.c: renamed TYPE_WORD by TYPE_TARGET_INT and so on
5795         * src/SDCCsymt.h: added TYPE_TARGET_*
5796         * src/SDCCutil.c (doubleFromFixed16x16, fixed16x16FromDouble),
5797         * src/SDCCutil.h (doubleFromFixed16x16, fixed16x16FromDouble): moved to
5798         SDCCast because 1) header problems 2) this is the right place
5799         * src/SDCCast.c (doubleFromFixed16x16, fixed16x16FromDouble): added
5800         * src/SDCCval.h (doubleFromFixed16x16, fixed16x16FromDouble): added
5801         prototype
5802
5803 2006-06-29 Bernhard Held <bernhard AT bernhardheld.de>
5804
5805         * src/SDCCicode.h: removed buggy semicolon in unused macro
5806         * src/SDCClrange.c (findPrevUseSym, rlivePoint): fixed bug #1486853,
5807         search for previous definiton of auto symbols too,
5808         (findPrevUse): fixed logic of emitWarnings
5809
5810 2006-06-26 Raphael Neider <rneider AT web.de>
5811
5812         * src/pic16/gen.c (genFunction, genEndFunction): also preserve
5813           PCLATH and PCLATU on interrupts, potentially fixes #1505141
5814
5815 2006-06-25 Raphael Neider <rneider AT web.de>
5816
5817         * device/lib/pic/libm: NEW, added math library functions
5818         * device/lib/pic/libsdcc: NEW; added float support functions
5819         * device/lib/pic/{Makefile.in,configure.in,configure}: added libm/
5820         * device/include/pic/{limits.h,errno.h,sdcc-lib.h,float.h,math.h}:
5821           NEW, added math related headers
5822         * device/include/asm/pic/features.h: NEW
5823         * src/pic/gen.c (emitpcode_real): emit warning on NULL pCodeOp,
5824           (popGet): allow larger offsets for AOP_PCODE,
5825           (genDataPointerSet): handle literals explicitly, more debug output,
5826           (genAssign): fixed for float using aopLiteral ;-)
5827         * src/pic/glue.c (pic14createInterruptVect): inserted pagesel before
5828           GOTO initialisation routine
5829         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): set wasUsed
5830           flag on registers, fixes #1469043 (local variables do not work)
5831         * src/pic/main.c (_pic14_do_link),
5832         * src/pic16/main.c (_pic16_linkEdit): use fullDstFileName if
5833           available
5834
5835 2006-06-25 Borut Razem <borut.razem AT siol.net>
5836
5837         * device/lib/pic16/libc/stdio/sprintf.c: return the number of
5838           characters printed (not including the trailing '\0' used to end
5839           output to strings). Problem detected in regression test bug-927659.c.
5840           NOTE: printf() family functions should return int instead
5841           unsigned int!
5842         * device/lib/pic16/libc/stdio/vfprintf.c: "%%" prints "%", unknown
5843           specifier are printed as themselves
5844         * sdcc/support/regression/tests/bug1057979.c: pic16 printf doesn't
5845           support flags, width and precision specifiers
5846
5847 2006-06-24 Borut Razem <borut.razem AT siol.net>
5848
5849         * sdcc/support/regression/tests/bitvars.c: added gbz80, pic16 and pic16
5850           to the list of sdcc tagrets not supporting bit type
5851         * sdcc/support/regression/tests/bug-905992.c.c: excluded regression
5852           testfor pic16 due to bug:
5853           [ 1511794 ] pic16: regression test bug-895992.c fails
5854
5855 2006-06-24 Maarten Brock <sourceforge.brock AT dse.nl>
5856
5857         * src/mcs51/gen.c (genCmp): optimization for RFE 1162453
5858         * src/SDCCglue.c (initPointer), fixed bug 1496419
5859         * support/regression/tests/bug1496419.c: new, added
5860
5861 2006-06-22 Borut Razem <borut.razem AT siol.net>
5862
5863         * support/regression/ports/pic16/support.c: use gpsim usart module from
5864           libgpsim_modules library
5865
5866 2006-06-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5867
5868         * device/include/mcs51/at89c51ed2.h: Fixed bug 1510144 changed
5869         IP0H to IPH0.
5870
5871 2006-06-19 Raphael Neider <rneider AT web.de>
5872
5873         * src/pic/glue.h,src/pic16/glue.h: added prototypes
5874         * src/pic/glue.c,src/pic16/glue.c (pic1x_stringInSet,
5875           pic1x_emitSymbolIfNew): NEW, check for a string in a set,
5876           (pic14printExterns,pic14printPublics,pic16printPublics,
5877           pic16_printExterns): use new functions to emit symbols
5878           (picglue,pic16glue): emit publics before emitting externs
5879         * src/pic/gen.c,src/pic16/gen.c (genFunction): remember the names of
5880           locally defined functions to avoid bug #1443651
5881         * support/regression/tests/bug-716242.c: removed pic16 workaround
5882         * support/regression/ports/pic16/spec.mk: ignore errors during build
5883
5884 2006-06-19 Raphael Neider <rneider AT web.de>
5885
5886         * src/pic/glue.h: added pic14aopLiteral prototype
5887         * src/pic/glue.c (pic14aopLiteral): return unsigned int
5888         * src/pic/gen.c: removed stdint.h dependency
5889           (aopGet): use Safe_strdup()
5890           (bitpatternFromVal): removed, replaced use with pic14aopLiteral
5891           (genDataPointerSet): use pic14aopLiteral()
5892         * src/pic16/glue.h, src/pic16/glue.c, src/pic16/gen.c: similar changes
5893           for pic16; thanks to Bernhard and Maarten
5894
5895 2006-06-18 Borut Razem <borut.razem AT siol.net>
5896
5897         * support/regression/tests/structflexarray.c: flexible array members
5898           not supported by gcc < 3
5899         * sim/ucsim/configure, sim/ucsim/configure.in: do not compile serio
5900           GUI tool by default
5901         * src/pic/gen.c: don't include [p]strdin.h on solaris
5902         * support/Util/pstdint.h: addad svn attributes
5903         * support/regression/tests/constantRange.c,
5904           support/regression/tests/rotate.c: include inttypes.h instead
5905           stdint.h on solaris, addad svn attributes
5906
5907 2006-06-18 Raphael Neider <rneider AT web.de>
5908
5909         * src/SDCCsymt.c (initCSupport): change return type of divschar to
5910           int for PIC16
5911         * src/pic16/genarith.c (genAddLit): sign-extend via standard routine
5912           (pic16_genMinusBits): simplified sign-extension
5913           (pic16_genUMult8XLit_8,pic16_genUMult8X8_8): renamed to
5914             pic16_genMult8XLit_n resp. pic16_genMult8X8_n, fixed and
5915             adjusted to correctly handle mixed-signed operands, disabled
5916             now unused multiplciation routines
5917         * src/pic16/gen.c (pic16_pushpCodeOp): fixed to handle literals
5918           (assignResultValue): added argument denoting the size of the result
5919             as returned by the function (fixes upcasts in assigning from
5920             function calls: char foo(); int i = foo();)
5921           (genCall,genPcall,genGenPointerGet,genReceive): pass size of
5922             function result to assignResultValue
5923           (genMult): disabled inlined multiplication code
5924           (genDiv): augmented to also handle the modulus operator, fixed to
5925             handle mixed-signed operands correctly
5926           (genMod): simply call genDiv, disabled unused code
5927           (genAssign): fixed missing (sign-)extension on result
5928         * src/pic16/main.c (_hasNativeMulFor): accept literals [-128..256) as
5929             valid char operands, allow signed operands for native code, added
5930             division and modulo operator handling
5931         * device/lib/pic16/libsdcc/char/divschar.c: divschar returns an int
5932
5933         As a consequence, onebyte.c (if split into two files) and muldiv.c
5934         pass regression tests.
5935
5936 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5937
5938         * doc/Makefile.in: two runs of makeindex seem needed to get
5939         correct page references in the index of sdccman.pdf
5940         * doc/sdccman.lyx: mentioned cmon51, added links, small changes
5941
5942 2006-06-17 Borut Razem <borut.razem AT siol.net>
5943
5944         * sdcc/device/lib/Makefile.in: corrected PORTINCDIR path
5945
5946 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5947
5948         * doc/sdccman.lyx: updated, added (porting source code, debugging),
5949         mentioned ec2drv and paulmon
5950
5951 2006-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
5952
5953         * as/mcs51/lkarea.c (lnkarea2): clear new xdatamap, bugfix for two
5954           consecutive abs areas
5955           (find_empty_space, allocate_space): added map to handle codemap or
5956            xdatamap,
5957           (lnksect2): renamed rloc to locIndex, fixed bug 960060 by handling
5958            absolute idata and xdata
5959         * as/mcs51/lkmem.c (summary2): updated legend
5960
5961 2006-06-16 Raphael Neider <rneider AT web.de>
5962
5963         * src/pic16/gen.c (shiftR2Left2Result): fixed bug #1507127
5964
5965 2006-06-13 Maarten Brock <sourceforge.brock AT dse.nl>
5966
5967         * debugger/mcs51/cmd.c (cmdListFunctions): fixed bugs 1181163 and
5968           1208515
5969         * src/SDCClrange.c (findPrevUse): fixed bug 1294475
5970
5971 2006-06-13 Vangelis Rokas <vrokas AT users.sourceforge.net>
5972
5973         * src/port.h (struct PORT): added field gp_tags, to hold the tag
5974         value of generic pointers,
5975         * src/avr/main.c,
5976           src/ds390/main.c,
5977           src/hc08/main.c,
5978           src/izt/i186.c,
5979           src/izt/tlcs900h.c,
5980           src/mcs51/main.c,
5981           src/pic/main.c,
5982           src/pic16/main.c,
5983           src/xa51/main.c,
5984           src/z80/main.c: PORT structure, added elements for gp_tags field,
5985         * src/SDCCsymt.h: replaced hardwired values of GPTYPE_* macros with
5986         fields in the PORT structure of each port,
5987         * src/SDCCast.c (decorateType): allow processing of generic pointers
5988         for PIC16 port (FPTRSIZE equals GPTRSIZE), also set GPTYPE_NEAR for
5989         S_FIXED symbols
5990
5991 2006-06-12 Maarten Brock <sourceforge.brock AT dse.nl>
5992
5993         * link/z80/lkgb.c,
5994         * link/z80/lkgg.c,
5995         * src/pic16/gen.c,
5996         * src/pic16/main.c,
5997         * src/pic16/pcode.c,
5998         * src/pic/main.c,
5999         * src/pic/pcoderegs.c,
6000         * src/SDCCicode.c,
6001         * src/SDCCmain.c,
6002         * src/SDCCsymt.c: replaced all exit(-1) by exit(EXIT_FAILURE) to fix
6003           bug 1504689 on minGW
6004
6005 2006-06-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6006
6007         * device/lib/printf_tiny.c: fixed bug #1465675 (%x format specifier)
6008
6009 2006-06-12 Bernhard Held <bernhard AT bernhardheld.de>
6010
6011         * src/SDCCast.c (backPatchLabels): fixed bug #1504636
6012
6013 2006-06-11 Maarten Brock <sourceforge.brock AT dse.nl>
6014
6015         * device/lib/printf_large.c (OUTPUT_CHAR, _output_char): added and used
6016           for optimization
6017
6018 2006-06-11 Vangelis Rokas <vrokas AT users.sourceforge.net>
6019
6020         * src/pic16/gen.c (genCast): fixed bug with assignment of a pointer
6021         to a char variable. Fixed bug #1504211
6022         * device/include/pic16/adc.h,
6023         device/include/lib/pic16/libio/adc/adcopen.c: applied patch #1364387
6024         and fixed bug #1364390
6025
6026 2006-06-10 Borut Razem <borut.razem AT siol.net>
6027
6028         * CVSROOT: removed the CVS left-over
6029
6030 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
6031
6032         * as/hc08/asmain.c (asexit),
6033         * as/hc08/lkmain.c (lkexit),
6034         * as/mcs51/asmain.c (asexit),
6035         * as/mcs51/lkmain.c (lkexit),
6036         * src/SDCCglue.c (DEFSETFUNC),
6037         * src/SDCCmain.c (linkEdit, assemble),
6038         * support/librarian/sdcclib.c (AddRel),
6039           replaced unlink() by standard C remove()
6040         * src/SDCC.y: replaced removePostIncDecOps() by createRMW()
6041         * src/SDCCast.c (replaceAstWithTemporary, createRMW,
6042           gatherImplicitVariables): new, added to fix bug 608752,
6043           (createFunction): added gatherImplicitVariables()
6044         * src/SDCCast.h: added createRMW prototype
6045         * src/SDCCsymt.h (struct symbol): added infertype
6046         * support/regression/tests/bug608752.c: new, added
6047
6048 2006-06-10 Raphael Neider <rneider AT web.de>
6049
6050         * src/pic16/gen.c (pic16_aopOp): use WREG as destination even for
6051           multibyte dummy reads (fixes #1503234)
6052
6053 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
6054
6055         * device/include/mcs51/compiler.h: new, added header file to enable
6056           creating common sfr definition header files for different compilers
6057
6058 2006-06-05 Raphael Neider <rneider AT web.de>
6059
6060         * src/pic16/{pcode.h,genarith.c}:
6061           introduced pCodeOp combining any two pCodeOps (previously only
6062           two register operands could be combined), removed pcop2 from
6063           pCodepReg, replaced pCodeOpReg2 with pCodeOp2, fixes #1492366
6064         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): added case for PO_TWO_OPS
6065         * src/pic16/gen.c (pic16_popGet2,pic16_popGet2p,pic16_popCombine2):
6066           rewritten to use new PO_TWO_OPS
6067         * src/pic16/main.c (_hasNativeMulFor): cover more cases natively,
6068         * src/pic16/pcode.c (pic16_newpCodeOpImmd): initialize rIdx field,
6069           (pic16_newpCodeOp): catch invalid attempts on PO_TWO_OPS,
6070           (pic16_newpCodeOp2): NEW, create combined pCodeOp,
6071           (pic16_get_op): embraced return arg to allow #define return(x),
6072             added new case for combined opcodes
6073           (pic16_get_op2): reduced to use pic16_get_op() on second pCodeOp,
6074           (pic16_pCode2str,pic16_getRegFrompCodeOp,
6075            pic16_getRegFromInstruction2): fixed/added handling of new pCodeOp
6076
6077 2006-06-04 Bernhard Held <bernhard AT bernhardheld.de>
6078
6079         * src/SDCCval.c (checkConstantRange): added
6080         * src/SDCCval.h: added checkConstantRange
6081         * support/Util/SDCCerr.c,
6082         * support/Util/SDCCerr.h: replaced unused W_IF_NEVER_TRUE and
6083         W_IF_ALWAYS_TRUE by W_COMP_RANGE and W_LIT_OVERFLOW
6084         * src/SDCC.y: moved early 'condition transformations' to SDCCast.c
6085         * src/SDCCast.c (decorateType): added checkConstantRange,
6086         added 'condition transformations' from SDCC.y so that now W_COMP_RANGE
6087         can be emitted with the correct always true/false warning,
6088         added optimization for double '!';
6089         result of decorateType() must be assigned back to the tree, because
6090         decorateType() can change the tree
6091         * src/SDCCicode.c (geniCodeLogic),
6092         (geniCodeAssign): replaced new checkConstantRange, added warnings,
6093         (checkConstantRange): removed, it was only a fragment which never
6094         emitted a warning
6095         * src/SDCCsymt.c (computeType): fixed promotion for
6096         "-1 < (unsigned bit) b"
6097         * src/pic/ralloc.c (packRegsForAssign),
6098         * src/pic16/ralloc.c (packRegsForAssign),
6099         * src/hc08/ralloc.c (packRegsForAssign),
6100         * src/z80/ralloc.c (packRegsForAssign): ported fix for bug #930931
6101         from mcs51
6102         * src/mcs51/ralloc.c (packRegsForAssign): removed outcommented source
6103         * support/regression/tests/constantRange.c: added
6104         * support/valdiag/tests/constantRange.c: added
6105         * support/valdiag/valdiag.py: added -DPORT_HOST=1
6106
6107 2006-06-02 Borut Razem <borut.razem AT siol.net>
6108
6109         * support/regression/ports/pic16/support.c: increase stack size
6110           to 255 bytes
6111         * support/regression/Makefile.in: sort tests by name so that the
6112           resutlts can be compared on different machines / platforms
6113
6114 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
6115
6116         * device/lib/printf_large.c (output_digit): optimized further, Tnx Frieder
6117         * src/ds390/gen.c (emitLabel): new, added,
6118           (genDjnz): fixed stack overflow bug,
6119           (throughout): cosmetic changes to sync with mcs51/gen.c,
6120           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl)
6121         * src/mcs51/gen.c (genEndFunction): small optimization,
6122           (throughout): cosmetic changes to sync with ds390/gen.c
6123
6124 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
6125
6126         * device/lib/printf_large.c (output_digit, calculate_digit): optimized,
6127           (_print_format): fixed printing pointers
6128         * src/mcs51/gen.c (emitLabel, movb): new, added,
6129           (genAssign): small optimization,
6130           (genDjnz): fixed stack overflow bug,
6131           (throughout): replaced sprintf with SNPRINTF,
6132           replaced mcs51_regWithIdx with REG_WITH_INDEX,
6133           replaced emitcode("mov", "b,...") with MOVB(...),
6134           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl),
6135           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
6136         * src/mcs51/peeph.def: added rules 140 and 264
6137         * src/SDCCmem.c (allocLocal): store register declared locals in DSEG/OSEG
6138           so they may get optimized into registers
6139
6140 2006-05-30 Maarten Brock <sourceforge.brock AT dse.nl>
6141
6142         * src/SDCCmain.c (optionsTable, parseCmdLine): handle --use-stdout
6143           immediately when encountered,
6144           (printUsage): always use stderr even on windows
6145
6146 2006-05-30 Bernhard Held <bernhard AT bernhardheld.de>
6147
6148         * src/SDCCast.c (isLoopCountable): fixed bug #1478316
6149         (processParms): fixed bug #1247551
6150         * src/SDCCmain.c (printVersionInfo, printOptions, printUsage,
6151         parseCmdLine, main): print '--version' to stdout,
6152         print 'help' to stdout if --help is given,
6153         print 'help' to stderr and exit with EXIT_FAILURE if no or bad
6154         arguments are given; fixed --help
6155
6156 2006-05-27 Bernhard Held <bernhard AT bernhardheld.de>
6157
6158         * src/SDCCcse.c (findPointerSet): fixed bug #1493710
6159         * support/regression/tests/bug-1493710.c: added
6160
6161 2006-05-27 Borut Razem <borut.razem AT siol.net>
6162
6163         * support/regression/fwk/lib/testfwk.c: define array in _printn() as
6164           static instead auto
6165         * support/regression/ports/pic16/support.c: increase stack size
6166           from default 64 bytes to 128 bytes
6167         * support/regression/tests/staticinit.c,
6168           support/regression/tests/float.c: regression tests fully enabled
6169           for pic16 port by putting the initialized data arrays into the code
6170           section
6171         * support/regression/ports/pic16/spec.mk: don't link default libraries.
6172           This was changed by mistake in the previous version.
6173
6174 2006-05-28 Vangelis Rokas <vrokas AT users.sourceforge.net>
6175
6176         * src/pic16/gen.c (genFunction, genEndFunction): some
6177         beautifications, fixed bug with falsely restoring FSR2 in large
6178         stack model, thanks to Beau E. Cox for reporting the bug
6179
6180 2006-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
6181
6182         * debugger/mcs51/break.c,
6183         * debugger/mcs51/cmd.c (throughout): removed unused variables and labels,
6184           use %p to print pointers, made address variables unsigned
6185         * debugger/mcs51/cmd.c (infoSymbols): added missing parameter to printf
6186         * debugger/mcs51/symtab.c (parseSymbol): must return something
6187         * src/mcs51/gen.c (aopForSym): small optimization,
6188            moved declarations mcs51_ptrRegReq and mcs51_nRegs to ralloc.h,
6189           (freeAsmop): added missing break,
6190           (aopPut): removed parameter bvolatile, determine it inside the function,
6191           (saveRegisters, unsaveRegisters): small optimization,
6192           (genIpush): removed pointless check,
6193           (throughout): replaced Safe_calloc, strcpy with Safe_strdup,
6194           replaced sprintf with SNPRINTF,
6195           replaced strcpy with strncpyz,
6196           updated aopPut calls,
6197           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
6198         * src/mcs51/ralloc.h:  added declarations mcs51_ptrRegReq and mcs51_nRegs
6199
6200 2006-05-24 Borut Razem <borut.razem AT siol.net>
6201
6202         * support/regression/tests/bug-221100.c: fixed xdata problem caused by
6203           modification of test for the pic16 port, put the array to the code
6204           memory for pic16port; thanks to Maarten Brock and Frieder Ferlemann
6205
6206 2006-05-23 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
6207
6208         * src/pic/gen.c: MSC 6 does not have <stdint.h>.  Use pstdint.h instead.
6209         * support/Util/pstdint.h: added
6210
6211 2006-05-22 Borut Razem <borut.razem AT siol.net>
6212
6213         * src/regression/Makefile: removed bool2.c test, added -q linker option
6214         * src/regression/add2.c, src/regression/add3.c, src/regression/bool1.c,
6215           src/regression/bool3.c, src/regression/nestfor.c, src/regression/ptrfunc.c,
6216           src/regression/compare.c, src/regression/or1.c, src/regression/compare2.c,
6217           src/regression/while.c, src/regression/compare3.c, src/regression/compare4.c,
6218           src/regression/compare5.c, src/regression/sub2.c, src/regression/rotate1.c,
6219           src/regression/rotate2.c, src/regression/rotate3.c, src/regression/rotate4.c,
6220           src/regression/switch1.c, src/regression/rotate5.c, src/regression/for.c,
6221           src/regression/add.c, src/regression/sub.c, src/regression/call1.c:
6222           define SUPPORT_BIT_TYPES 0, removed unused bit variables
6223
6224 2006-05-22 Raphael Neider <rneider AT web.de>
6225
6226         * src/pic16/gen.c (pic16_storeForReturn): fragile fix for
6227           bug #1492360 (problematic due to generic pointers, see code)
6228
6229 2006-05-22 Borut Razem <borut.razem AT siol.net>
6230
6231         * support/regression/ports/pic16/specs.mk: removed stack size linker
6232           directive
6233         * support/regression/tests/array.c,
6234           support/regression/tests/bitopcse.c,
6235           support/regression/tests/bug-908454.c,
6236           support/regression/tests/malloc.c: modified for pic16 regression test
6237         * support/regression/tests/bitfields.c:
6238           pic16 - excluded bitfileds of size > 8
6239         * support/regression/tests/bp.c: pic16 - reduced data size
6240         * support/regression/tests/bug-221100.c: pic16 - reduced data size
6241         * support/regression/tests/bug-460010.c:
6242           pic16 - used the absolute address the fits in memory
6243         * support/regression/tests/bug-716242.c:
6244           bug [ 1443651 ] pic 16: redefining symbol that cannot be redefined.
6245         * support/regression/tests/float.c:
6246           pic16 - excluded - data size too big
6247         * support/regression/tests/onebyte.c:
6248           pic16 - bug [ 1444425 ] onebyte.c regression tes fails on pic16
6249         * support/regression/tests/shifts.c:
6250           pic16 - function names probably have to differ in first X characters
6251           (gpasm limitation?)
6252         * support/regression/tests/staticinit.c:
6253           pic16 - excluded some tests due error: no target memory available for
6254           section ".idata"
6255
6256 2006-05-22 Borut Razem <borut.razem AT siol.net>
6257
6258         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
6259           second try. Thanks Stas Sergeev once more.
6260
6261 2006-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
6262
6263         * src/hc08/gen.c (transferAopAop): aop forced to stack was not restored,
6264           (genLeftShift, genRightShift): fixed bug 1491627
6265         * src/hc08/peeph.def (rules 7, 8.x): added
6266         * support/regression/tests/shifts.c (ShiftLeftByParam,
6267           ShiftRightByParam, testShiftByParam): added to test variable shifting
6268
6269 2006-05-20 Raphael Neider <rneider AT web.de>
6270
6271         * src/pic/gen.c (bitpatternFromVal): fixed for 64-bit machines
6272         * src/pic16/ralloc.c (newReg): use correct name in hashtable,
6273           (allocReg): add only new registers to dynAllocRegs,
6274           (pic16_assignRegisters): do not reset dynrIdx, fixes bugs
6275             #1489055, #1445850, and probably #1483693
6276
6277 2006-05-19 Vangelis Rokas <vrokas AT users.sourceforge.net>
6278
6279         * src/pic16/glue.c (pic16_emitConfigRegs, pic16_emitIDRegs): fixed
6280         bug in for-loop that didn't emit the last of CONFIG and ID registers
6281
6282 2006-05-18 Maarten Brock <sourceforge.brock AT dse.nl>
6283
6284         * src/mcs51/gen.c (genCodePointerGet): inc dptr instead of loading acc
6285           with offset
6286         * src/mcs51/peeph.def (186.x): updated and reenabled to fix bugs
6287           1489016, 1434401 and 1490124
6288         * src/ds390/peeph.def (186.x, 227.x): updated and reenabled to fix bugs
6289           1489016, 1434401 and 1490124
6290
6291 2006-05-17 Borut Razem <borut.razem AT siol.net>
6292
6293         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
6294           thanks Stas Sergeev
6295
6296 2006-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
6297
6298         * device/include/mcs51/P89c51RD2.h,
6299         * device/include/mcs51/P89LPC901.h,
6300         * device/include/mcs51/P89LPC922.h,
6301         * device/include/mcs51/P89LPC932.h: added, thanks Omar Espinosa
6302
6303 2006-05-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
6304
6305         * device/lib/pic16/libsdcc/stack/{stack.S, Makefile.in}: add workaround
6306         to fix missing stack pragma in compiled binary object file,
6307
6308 2006-05-14 Bernhard Held <bernhard AT bernhardheld.de>
6309
6310         * support/packihx/configure.in,
6311         * support/packihx/configure: removed warning, autoconf >= 2.5x can
6312         determine sizeof basic types even while cross compiling
6313
6314 2006-05-13 Bernhard Held <bernhard AT bernhardheld.de>
6315
6316         * src/avr/gen.c (aopop),
6317         * src/ds390/gen.c (aopOp),
6318         * src/hc08/gen.c (aopOp),
6319         * src/mcs51/gen.c (aopop),
6320         * src/pic16/gen.c (pic16_aopOp),
6321         * src/pic/gen.c (aopOp),
6322         * src/z80/gen.c (aopop): fix for bug #1479882; use new, exclusive asmop
6323         if size of operand is smaller than spill location
6324
6325 2006-05-12 Borut Razem <borut.razem AT siol.net>
6326
6327         * *.dsw, *.dsp: changed property svn:eol-style to CRLF since they
6328           have to have CR/LF line endings even if they are checked out on *nix
6329           or on WIN32 in cygwin binmode
6330
6331 2006-05-12 Maarten Brock <sourceforge.brock AT dse.nl>
6332
6333         * doc/sdccman.lyx: documented numeric ranges, WEBDOC #1442369
6334         * device/include/ds80c390.h: added sfr16 definitions
6335         * src/ds390/gen.c,
6336         * src/ds390/gen.h,
6337         * src/ds390/main.c,
6338         * src/ds390/ralloc.c,
6339         * src/ds390/ralloc.h: changes all over the place to sync with mcs51
6340           fixing several bugs and adding sfr16/sfr32, reentrant bit params,
6341           bit returning functions
6342         * support/regression/tests/sfr16.c: enabled test on ds390
6343
6344 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6345
6346         * src/hc08/gen.c (asmopToBool, genIfx): fix for bug #1429722
6347         * src/hc08/gen.c (storeRegToAop): fix for bug #1439894
6348
6349 2006-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
6350
6351         * sim/ucsim/sim.src/memcl.h: added get_decoder() to cl_address_space
6352         * sim/ucsim/sim.src/mem.cc: implemented cl_address_space::get_decoder,
6353           (cl_address_space constructor): removed expensive initialization,
6354           (cl_address_space::get_cell): extended for late initialization,
6355           (cl_address_space::*): use late initialization,
6356           (cl_address_decoder::activate): removed expensive initialization,
6357           This reduced regression test running time by 25%
6358
6359 2006-05-11 Bernhard Held <bernhard AT bernhardheld.de>
6360
6361         * packihx/,
6362         * configure.in,
6363         * configure,
6364         * sdcc.dsw,
6365         * Makefile.bcc,
6366         * Makefile.in,
6367         * support/packihx/Makefile.in,
6368         * support/packihx/clean.mk,
6369         * support/packihx/Makefile.bcc,
6370         * support/packihx/PackIhx.dsp: moved packihx to support/packihx
6371
6372 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6373
6374         * src/SDCCval.c (valNot): fix for regression test failure
6375           of not.c on big endian hosts
6376
6377 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
6378
6379         * device/inlcude/mcs51/msc1210.h: new, added, thanks Philippe Latu
6380
6381 2006-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6382
6383         * device/lib/mcs51/Makefile.in: changed string comparison operator
6384           to = for POSIX compliance; == is bash extension
6385
6386 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
6387
6388         * device/lib/hc08/_mulint.c: applied patch 1485428, thanks
6389           kosmonaut_pirx
6390
6391 2006-05-09 Vangelis Rokas <vrokas AT users.sourceforge.net>
6392
6393         * src/pic16/gen.c (pic16_freeAsmop): release any temp registers
6394         allocated by aopForSym thus fixing bug #1478657 about failed testfwk.c
6395         * src/pic16/main.c (_pic16_keywords): added 'sfr16' keyword,
6396         * src/pic16/ralloc.c (pic16_allocWithIdx): also a fix for bug exposed by
6397         bug report #1478657,
6398
6399 2006-05-05 Borut Razem <borut.razem AT siol.net>
6400
6401         * doc/Makefile.in: remove of WARNINGS and labels.pl immediately after
6402           making the html
6403
6404 2006-05-02 Borut Razem <borut.razem AT siol.net>
6405
6406         * doc/Makefile.in: removed *.ind dependency since there is no rule to
6407           create *.ind, which made make to fail if invoked with -j 2
6408
6409 2006-05-01 Maarten Brock <sourceforge.brock AT dse.nl>
6410
6411         * src/SDCCglue.c (emitRegularMap): partial fix for bug 1477149, thanks
6412           Hubert Sack for patch 1479782
6413
6414 2006-05-01 Vangelis Rokas <vrokas AT users.sourceforge.net>
6415
6416         * src/pic16/glue.c (pic16_printIvalStruct): fixed bug #1445929
6417
6418 2006-05-01 Raphael Neider <rneider AT web.de>
6419
6420         * src/pic/device.c (sanitise_processor_name): only remove p(ic) prefix,
6421           (create_pic): store only prefix-free device name,
6422           (init_pic): check for device names with "16" prefix,
6423           (list_valid_pics),
6424         * src/pic/device.h (struct PIC_device),
6425         * src/pic/main.c (_pic14_genAssemblerPreamble): adapted to single
6426             stored device name,
6427         * device/include/pic/pic12f{635,675,629,683}.h,
6428         * device/lib/pic/libdev/pic12f{635,675,629,683}.c: NEW device libraries
6429         * device/lib/pic/libdev/Makefile.in: allow pic12* devices,
6430         * device/include/pic/pic16f505.h,
6431         * device/lib/pic/libdev/pic16f505.c: removed
6432         * device/include/pic/pic14devices.txt: added support for pic12f
6433             devices, removed unsupported non 16-bit devices
6434             [above changes provided by patch from Zik Saleeba]
6435         * src/pic/*, src/pic16/*, device/include/pic16/*,
6436           device/lib/pic/**, device/lib/pic16/**: obfuscated email address
6437
6438 2006-05-01 Borut Razem <borut.razem AT siol.net>
6439
6440         * configure.in, configure, doc/Makefile.in:
6441           sync with nightly build makefile - latex, dvipdf and dvips
6442           not needed any more
6443
6444 2006-04-30 Bernhard Held <bernhard AT bernhardheld.de>
6445
6446         * support/scripts/sdcc.nsi: removed all Readmes and Makefiles
6447         in the library source
6448
6449 2006-04-30 Maarten Brock <sourceforge.brock AT dse.nl>
6450
6451         * support/regression/ports/hc08/spec.mk: fixed bug 1478892
6452
6453 2006-04-28 Raphael Neider <rneider AT web.de>
6454
6455         * src/pic16/pcode.c (pic16_newpCodeOpLit12),
6456         * src/pic16/gen.c (pic16_popGetLit12): NEW, create 12 bit literal,
6457           (pic16_loadFSR0): handle 12 bit literals correctly, fixes #1440527
6458         * src/pic16/pcode.h: added prototype for pic16_newpCodeOpLit12()
6459
6460 2006-04-28 Bernhard Held <bernhard AT bernhardheld.de>
6461
6462         * device/lib/pic/libdev/Makefile.in,
6463         * device/lib/hc08/Makefile.in,
6464         * device/lib/gbz80/Makefile.in,
6465         * device/lib/z80/Makefile.in,
6466         * device/lib/ds390/Makefile.in,
6467         * device/lib/ds400/Makefile.in: added srcdir to include search path,
6468         thanks to Borut for the bug report
6469         * configure.in,
6470         * configure: always create doc/Makefile independent from --enable-doc
6471         * Makefile.in: always install from directory doc independent from
6472         --enable-doc
6473         * device/lib/pic/Makefile.in: added libdev again, it was erroneously
6474         removed
6475         * device/lib/pic/libdev/Makefile.in: fixed VPATH build
6476         * doc/Makefile.in: install *.txt if present
6477         * device/include/Makefile.in (install): added installation of pic/*.inc
6478         and pic/*.txt files again, they were erroneously removed
6479
6480 2006-04-28 Raphael Neider <rneider AT web.de>
6481
6482         * src/pic/{gen.c,main.h,pcode.c},
6483         * src/pic16/{gen.c,pcode.c}: quietened compiler warnings
6484             concerning signedness with casts
6485
6486 2006-04-28 Raphael Neider <rneider AT web.de>
6487
6488         * src/pic/gen.c (genFunction): set global pic14_hasInterrupt on
6489             definition of an interrupt handler,
6490         * src/pic/glue.c (pic14_emitInterruptHandler): moved output of
6491             interrupt handler stuff from picglue() to separate routine,
6492           (picglue): enabled definition of intr handlers in files w/o main()
6493
6494 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
6495
6496         * support/librarian/sdcclib.c: moved include <limits.h> up to enable
6497           compilation with MSVC 2005 Express Edition (VC8)
6498
6499 2006-04-26 Bernhard Held <bernhard AT bernhardheld.de>
6500
6501         * device/lib/Makefile: fixed build of gbz80 lib
6502
6503 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
6504
6505         * support/regression/tests/bug-460010.c,
6506         * support/regression/tests/bug-524691.c,
6507         * support/regression/tests/bug-716242.c: removed conditional defines
6508           that are already in testfwk.h
6509
6510 2006-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
6511
6512         * src/ds390/gen.c (AccAXRrl1, AccAXLrl1): changed to real rotate by 1,
6513           (AccAXRsh1): added, shift right by 1,
6514           (AccAXLsh, AccAXRsh, AccAXRshS): updated for AccAXRrl1, AccAXRsh1 and
6515            AccAXLrl1
6516         * support/regression/tests/rotate.c: use <stdint.h> and enabled ds390
6517
6518 2006-04-25 Bernhard Held <bernhard AT bernhardheld.de>
6519
6520         * src/SDCCast.c (decorateType): partial fix for RFE 1475769,
6521         remove cast to same type
6522         * src/SDCCast.c (decorateType): fix for RFE 1475742,
6523         optimize 'ifx (op == 0)' resp. 'ifx (op != 0)'
6524         * as/z80/Makefile,
6525         * link/z80/Makefile: removed, they have moved to
6526         Makefile.in files
6527         * configure,
6528         * configure.in: replaced duplicate message about ucsim by missing sdcpp
6529         * install-sh: fix bug #1204398 by setting umask 0022
6530         * device/lib/Makefile: separate build of z80 and gbz80 lib
6531
6532 2006-04-24 Bernhard Held <bernhard AT bernhardheld.de>
6533
6534         Enabled VPATH feature: changed nearly all Makefiles (149 files).
6535         See sdccman.lyx '2.4.10 VPATH feature' about how to use it.
6536
6537         One basic decision: e.g. src/clean.mk includes further files. In order
6538         to make this work there are two solutions:
6539         - rename another dozen clean.mk to clean_in.mk, add srcdir to them and
6540           run configure on them. This way they can use
6541           'include $(srcdir)/port-clean.mk'
6542         - always include clean.mk by the Makefile at the same level. To avoid
6543           that `make clean` tries to include and build Makefile.dep the
6544           MAKECMDGOALS are examined (see e.g. src/Makefile.in). This has been
6545           implemented, because now even `make uninstall` doesn't create
6546           Makefile.in. clean.mk could be eliminated by pasting it in
6547           Makefile.in.
6548
6549         * debugger/mcs51/Makefile.in: build own objects from library sources
6550         (SLIB, SDCC) in current directory
6551
6552         * configure, configure.in: renamed --disable-device-lib-build in
6553         --disable-device-lib; added --enable-doc, the required tools are
6554         searched by configure; added result message; the toolchain for the
6555         belonging ports are now only built, if the port is enabled.
6556
6557         * support/regression/*: all output is written in directory gen, because
6558         the fwk and ports directories don't livet in the build tree using vpath
6559
6560         * doc/sdccman.lyx: renamed --disable-device-lib-build to
6561         --disable-device-lib, added --enable-doc, added section VPATH
6562
6563         * sim/ucsim/configure.in,
6564         * sim/ucsim/configure.in: hc08 couldn't be disabled, now hc08 and
6565         z80 are enabled by default
6566
6567 2006-04-24 Raphael Neider <rneider AT web.de>
6568
6569         * src/pic/device.c (pic14_assignConfigWordValue): remember assignments
6570             to config word, "pic14_"-prefixed some extern functions
6571           (pic14_emitConfigWord): emit __config directive(s) if assignment to
6572             config word has been found
6573         * src/pic/device.h: added prototypes
6574         * src/pic/pcode.c: added "pic14_"-prefix where needed
6575         * src/pic/ralloc.c (IS_CONFIG_ADDRESS,pic14_assignRegisters): cosmetic
6576             fixup
6577         * src/pic/glue.c (pic14_constructAbsMap): handle assignments to config
6578             words,
6579           (pic14emitRegularMap): ignore config words,
6580           (pic14createInterruptVect): moved generating __config directives away
6581           (picglue): have __config directives emitted
6582
6583 2006-04-24 Borut Razem <borut.razem AT siol.net>
6584
6585         * doc/Makefile: sync with nightly build makefile
6586
6587 2006-04-24 Raphael Neider <rneider AT web.de>
6588
6589         * src/pic/pcoderegs.c (OptimizeRegUsage): do not optimize
6590             registers that have not been assigned proper liveranges,
6591             fixes #1469504 and #1474602,
6592           (pCodeRegOptimizeRegUsage): fixed typo in comment
6593
6594 2006-04-24 Borut Razem <borut.razem AT siol.net>
6595
6596         * device/examples/main8051.c: deleted - it was removed from CVS
6597           24.mar.2000 and after that modified 18.feb.2001, so it reappered
6598           after the transition to Subversion
6599         * src/SDCCalloc.h: deleted - it was removed  from CVS
6600           3.feb.2001 and after that modified 18.feb.2001, so it reappered
6601           after the transition to Subversion
6602         * sim/ucsim/cpu.gif, sim/ucsim/interrupt.gif, sim/ucsim/new.gif,
6603           sim/ucsim/serial1.gif, sim/ucsim/serial2.gif,
6604           sim/ucsim/term_cpuopt.gif, sim/ucsim/timers.gif, sim/ucsim/wins.gif,
6605           sim/ucsim/post.jpg, sim/ucsim/UCsim.jpg: corrected
6606
6607 2006-04-22 Maarten Brock <sourceforge.brock AT dse.nl>
6608
6609         * as/asx8051.dsp: added mcs51/strcmpi.h
6610         * as/hc08/as_hc08.dsp: added asm.h, m6808.h, strcmpi.h
6611         * as/hc08/aslink.h: updated lnksect prototype
6612         * as/hc08/asm.h,
6613         * as/mcs51/asm.h: added a_addr to struct area and s_org to struct sym
6614         * as/hc08/asmain.c,
6615         * as/mcs51/asmain.c (asmbl): init dot.s_org for S_ORG,
6616           (newdot): handle A_ABS
6617         * as/hc08/asout.c,
6618         * as/mcs51/asout.c (outarea): output address
6619         * as/hc08/lkaomf51.c,
6620         * as/mcs51/lkaomf51.c: disabled unused array UsageType
6621         * as/hc08/m08pst.c,
6622         * as/mcs51/i51pst.c,
6623         * as/z80/z80pst.c: "ABS" is not A_OVR
6624         * as/hc08/lkarea.c (newarea): read a_addr,
6625           (lnkarea): added codemap array, sort absolute areas to the front,
6626            combine all GSINITx/GSFINAL,
6627           (find_empty_space, allocate_space): new functions,
6628           (lnksect): return next address, handle absolute sections
6629         * as/mcs51/lkarea.c (newarea): read a_addr,
6630           lnksect2 prototype changed,
6631           (lnkarea2): define codemap unsigned, combine all GSINITx/GSFINAL,
6632           (find_empty_space, allocate_space): new, factored out of lnksect2,
6633           (lnksect2): return next address, handle absolute sections
6634         * as/hc08/lkhead.c,
6635         * as/mcs51/lkhead.c (newhead): head is absolute but not overlay
6636         * as/hc08/lklibr.c (addfile, fndsym),
6637         * as/mcs51/lklibr.c (addfile, buildlibraryindex, fndsym): prevent
6638           index out of range and detect both '\' and '/'
6639         * device/include/mcs51/c8051f200.h: added _XPAGE, removed bad comment
6640         * device/include/stdbool.h: removed SDCC_ds390 from check to pass
6641           regression tests (ds390 cannot return bool yet)
6642         * doc/sdccman.lyx: changed version number, document changed --no-peep,
6643           document critical interrupts on z80, document changed SDCC define
6644         * src/asm.c (_asxxxx_mapping): fixed .org directive,
6645           (_a390_mapping): added .org directive
6646         * src/hc08/gen.c (transferAopAop): made bytemask log to fix warning,
6647           (genMultOneByte): fixed warnings
6648         * src/hc08/hc08.dsp: lowered warning level to 2 to suppress pedantic
6649           ones
6650         * src/pic16/device.c: removed newReg prototype, removed BYTE_IN_LONG
6651         * src/pic16/gen.c (pic16_popGetLabel): made parameter key signed,
6652           (pic16_genLeftShiftLiteral, genRightShiftLiteral): fixed warnings
6653         * src/pic16/gen.h: changed prototype for pic16_popGetLabel
6654         * src/pic16/main.c: removed newReg prototype
6655         * src/pic16/pcode.c,
6656         * src/pic16/pcode.h (pic16_emitDB): changed parameter c to int to fix
6657           warnings
6658         * src/pic16/pic16.dsp: lowered warning level to 2 to suppress pedantic
6659           ones
6660         * src/pic16/ralloc.c
6661         * src/pic16/ralloc.h (newReg): changed type to int and size to unsigned
6662           to fix warnings
6663         * src/pic/pcode.c (allocInternalRegister): changed parameter optype
6664           from short to PIC_OPTYPE
6665         * src/pic/pic.dsp: lowered warning level to 2 to suppress pedantic ones
6666         * src/pic/ralloc.c (newReg, allocInternalRegister): changed parameter
6667           optype from short to PIC_OPTYPE
6668         * src/port.h: made int_size unsigned to fix warnings
6669         * src/SDCC.y: fixed warning on MSVC
6670         * src/SDCCicode.c (getArraySizePtr): return unsigned int
6671         * src/SDCCopt.c (convertToFcall): fixed warnings
6672         * src/SDCCsymt.h: removed double prototype for genSymName
6673         * src/xa51/ralloc.c (allocReg): made size unsigned int, type int and
6674           offset int to fix warnings
6675
6676 2006-04-22 Borut Razem <borut.razem AT siol.net>
6677
6678         * doc/sdccman.lyx, */Makefile, */Makefile.in:
6679           references to CVS replaced with Subversion
6680
6681 2006-04-21 Borut Razem <borut.razem AT siol.net>
6682
6683         * doc/sdccman.lyx, */Makefile, */Makefile.in:
6684           references to CVS replaced with Subversion
6685
6686 2006-04-19 Borut Razem <borut.razem AT siol.net>
6687
6688         * src/version.awk: adapted for svn
6689         * /asxxxx/asxhtml/*.gif: set property svn:mime-type to image/gif
6690           sim/ucsim/doc/*.gif: set property svn:mime-type to image/gif
6691           sim/ucsim/doc/*.jpg: set property svn:mime-type to image/jpeg
6692           /binutils-avr/etc/*.vi, *.jin: removed all properties
6693           support/scripts/sdcc.ico: set property svn:mime-type to image/x-icon
6694
6695 2006-04-19 Borut Razem <borut.razem AT siol.net>
6696
6697         * CVS to Subversion migration completed
6698
6699 2006-04-18 Borut Razem <borut.razem AT siol.net>
6700
6701         * support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}/lib/pic/*.o,
6702           ${DEV_ROOT}/lib/src/pic/libdev/*.S, ${DEV_ROOT}/lib/src/pic/libdev/*.inc
6703
6704 2006-04-17 Borut Razem <borut.razem AT siol.net>
6705
6706         * device/include/Makefile.in: added pic/*.inc to the installation
6707
6708 2006-04-15 Bernhard Held <bernhard AT bernhardheld.de>
6709
6710         * support/regression/collate-results.py: fixed output in case of
6711         a valdiag error
6712         * support/regression/generate-cases.py: fixed splitting of pathnames
6713         with dots
6714         * as/hc08/lklibr.c (addfile),
6715         * as/mcs51/lklibr.c (addfile): fixed off-by-one bug
6716
6717 2006-04-11 Raphael Neider <rneider AT web.de>
6718
6719         * src/pic16/gen.c (getFreePtr, pic16_popRegFromString),
6720         * src/pic16/ralloc.c (pic16_allocregWithName): removed debug output
6721         * src/pic16/pcode.c (assignValnums): fixed #1460578
6722
6723 2006-04-11 Raphael Neider <rneider AT web.de>
6724
6725         * device/lib/pic/libdev/*.c,
6726         * device/include/pic/*.h: replaced sfr and data with __sfr and __data,
6727           fixes #1468739, enables compilation in --std-c99 mode
6728         * support/scripts/inc2h.pl: emit __sfr/__data instead of sfr/data
6729
6730 2006-04-11 Raphael Neider <rneider AT web.de>
6731
6732         * src/pic/device.c (find_device): removed debug output
6733           (list_valid_pics): enabled verbose listing of supported devices
6734         * device/include/stdbool.h: define bool as char for pic14/16 as well
6735
6736 2006-04-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6737
6738         * src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)"
6739
6740 2006-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
6741
6742         * .version: bumped version to 2.5.6
6743         * src/pic/ralloc.c (newReg): MSVC doesn't support __builtin_return_address
6744
6745 2006-04-06 Raphael Neider <rneider AT web.de>
6746
6747         * .version: bumped version to 2.5.6 (pic14 ABI changed)
6748         * src/SDCCmain.c: add -DSDCC_PROCESSOR=<id> for pic14 port
6749         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap,
6750           pic14emitRegularMap,pic14emitMaps): moved output for absolute symbols to
6751             pic14_constructAbsMap
6752           (pic14printPublics): declare absolute global symbols as global
6753           (pic14createInterruptVect),
6754         * src/pic/ralloc.c (IS_CONFIG_ADDRESS): support second config word,
6755           (newReg): assume new registers unused, use correct name in
6756             hashtable (reg->name instead of name), more debugLog output
6757         * src/pic/device.h (PIC_device): added fields for verbose output
6758         * src/pic/device.c: moved device definition to pic14devices.txt,
6759             added routines for runtime parsing of pic14devices.txt,
6760             added support for second config word
6761         * src/pic/main.c (_process_pragma): removed #pragma maxram,
6762           (_pic14_keywords): no longer accept "bit" and "sbit" keywords
6763           (_pic14_initPaths): add search paths with "pic" suffix (not "pic14")
6764           (_pic14_parseOptions): moved pCodeInitRegisters here
6765           (_pic14_do_link): add "pic$(ARCH).lib" to linker arguments
6766         * src/pic/pcode.c (AnalyzeBanking): bail out on unset processor,
6767           (pCodeInitRegisters): rewrapped comments, perpared new approach to
6768             handling the pseudo stack
6769         * device/lib/Makefile.in: ignore failures in objects-pic16,
6770         * device/lib/pic/{configure,configure.in,Makefile}: added libdev/
6771         * device/lib/pic/NEWS: document new dependency on picXXX.lib
6772         * device/lib/pic/Makefile.subdir,
6773         * device/lib/pic16/Makefile.subdir: improved clean rules
6774         * device/lib/pic/libdev/: NEW, pic14 device libraries
6775         * device/lib/pic/libsdcc/_gptr{get,put}{1,2,3,4}.S: use _X not X
6776         * device/lib/pic/libsdcc/macros.inc: use _X not X, declare default SFRs
6777         * device/include/Makefile.in: create subdir and install pic14 headers
6778         * device/include/pic/p16f_common.inc: removed unused declarations
6779         * device/include/pic/pic16*.h: added header files for 100+ 14 bit
6780             PICs from inc2h.pl v1.6,
6781             replaced BIT_AT macros with struct declarations
6782         * device/include/pic/pic14devices.txt: definition of supported devices,
6783             all above improvements contributed by Zik Saleeba, thanks
6784         * support/scripts/inc2h.pl: removed BIT_AT, replaced with structs
6785         * support/scripts/sdcc.nsi: also install pic14 device libraries and
6786             headers
6787
6788 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
6789
6790         * device/include/mcs51/c8051f410.h: added interrupt numbers,
6791         * device/include/mcs51/c8051f200.h: old SiLabs mcu completes the list,
6792           thanks to Charles Olds
6793
6794 2006-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6795
6796         * debugger/mcs51/cmd.c (infoRegisters): show return address on stack
6797
6798 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
6799
6800         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug 1464657
6801         * src/mcs51/gen.c (genJumpTab): fixed bug in medium model
6802         * support/regression/bug1464657.c: added, new test
6803
6804 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
6805
6806         * src/SDCCmain.c (preProcess): implemented RFE 1449908, define SDCC as the
6807           version number
6808
6809 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
6810
6811         * src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
6812           --no-peep and --peep-file <file> are used don't use default rules but
6813           do use the <file>
6814
6815 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
6816
6817         * src/mcs51/gen.c (genCall): fixed bug 1457608
6818
6819 2006-03-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6820
6821         * doc/sdccman.lyx: reverted to version 1.129 of december as my latest
6822         changes seem to cause (trigger?) problems with the build system.
6823
6824 2006-03-29 Maarten Brock <sourceforge.brock AT dse.nl>
6825
6826         * src/SDCCpeeph.c (operandsLiteral): new, added,
6827           (callFuncByName): inserted operandsLiteral
6828         * src/mcs51/peeph.def: reenabled 132.e, added extra check to 132.x
6829
6830 2006-03-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6831
6832         * doc/sdccman.lyx: added paragraph "Use of SDCC in Education"
6833         * src/mcs51/peeph.def: disabled rule 132.e fixing bug #1453093
6834
6835 2006-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
6836
6837         * src/z80/gen.c (genFunction, genEndFunction): fixed bug 1160666,
6838           implemented patch 1120823 Thanks to Willy De la Court (normal
6839           interrupts need an interrupt number now if they are made critical),
6840           and enabled nesting of critical functions though not for gbz80
6841           (genCritical, genEndCritical): added functions
6842           (genZ80Code): added cases for CRITICAL and ENDCRITICAL
6843         * src/z80/mappings.i: added "ei" to all mappings
6844
6845 2006-03-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6846
6847         * sim/ucsim/cmd.src/newcmdcl.h: applied patch fixing GCC 4.1 build
6848         submitted by the Debian SDCC maintainer Aurelien Jarno:
6849         "Credits goes to Martin Michlmayr, who rebuilt the whole Debian
6850         archive with gcc 4.1 on mips and wrote the patch"
6851
6852 2006-03-16 Raphael Neider <rneider AT web.de>
6853
6854         * src/pic16/genarith.c (genAddLit): simplified and fixed case where
6855           the left operand is shorter than the result (c* = lit-c* + int),
6856           fixes bug #1450796
6857         * src/pic16/gen.c (genRightShift): check IS_SYMOP before accessing
6858           OP_SYMBOL
6859
6860 2006-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
6861
6862         * src/.version: increased version number to 2.5.5
6863         * src/SDCCmain.c (linkEdit): do not test for PIC16 target since, PIC16
6864         linking is done manually in pic16 port's _linkEdit,
6865         * src/SDCCsymt.c (compStructSize): for target PIC16 and shell variable
6866         PIC16_PACKED_BITFIELDS, compact bitfield structures as much as possible,
6867         * src/pic16/gen.c (aopForSym): when direct register name is WREG then
6868         allocate asmop as AOP_ACC,
6869         (aopForRemat): added parameter 'bool result' in function declaration,
6870         (pic16_aopGet): return AOP_ACC when accessing WREG,
6871         (pic16_popGetTempReg): minor modification,
6872         (pic16_popRegFromIdx): first try with 'pic16_regWithIdx' then with
6873         'pic16_allocWithIdx',
6874         (genPcall): removed ftype, usage of OP_SYM_TYPE asserted error when
6875         calling function in absolute addresses,
6876         (genAssign): take into account AOP_ACC asmop,
6877         * src/pic16/pcode.c (pic16_newpCodeOpReg): minor modifications,
6878         * src/pic16/pcoderegs.c: some debug functions and lines added,
6879         * src/pic16/ralloc.c (decodeRegType): added but commented out,
6880         * (pic16_typeRegWithIdx): search 'pic16_dynInternalRegs' for given
6881         register too,
6882         * (pic16_findFreeReg, pic16_findFreeRegNext): allocate new register via
6883         call to allocReg, not by manually allocating a new one,
6884         (pic16_assignRegisters): now before going through the register
6885         allocating functions mark all registers as free. This eliminates some
6886         side effects resulting from peephole parser done earlier in the backbone
6887
6888 2006-03-13 Maarten Brock <sourceforge.brock AT dse.nl>
6889
6890         * src/SDCCicode.c (geniCodeLogic),
6891         * src/SDCCast.c (decorateType): applied patch by Bernhard for rfe 1422617
6892
6893 2006-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
6894
6895         * src/mcs51/gen.c (sameReg): new, checks if two aop regs are the same,
6896           (genSend): bugfix, do not allocate and free twice,
6897           (shiftRLong): handle partially overlapping aops
6898         * support/regression/tests/bitopcse.c: fixed warning redefined idata
6899
6900 2006-03-08 Borut Razem <borut.razem AT siol.net>
6901
6902         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata
6903           for pic16
6904
6905 2006-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
6906
6907         * support/regression/tests/bug1409955.c: new, added
6908         * src/mcs51/gen.h: changed asmop.freed:1 to asmop.allocated for tracking
6909         * src/mcs51/gen.c (newAsmop): set asmop.allocated to 1,
6910           (aopForSym, aopOp): increment asmop.allocated if reused,
6911           (freeAsmop): decrement asmop.allocated and check for zero instead of
6912           using asmop.freed,
6913           (freeForBranchAsmop): use asmop.allocated instead of asmop.freed,
6914           (genNot, genCpl, genUminus, genMinus, genMult, genDiv, genMod, genCmpGt,
6915            genCmpLt, genAndOp, genOrOp, genAnd, genOr, genXor, genRRC, genRLC,
6916            genGetHbit, genGetAbit, genGetByte, genGetWord, genSwap,
6917            genLeftShiftLiteral, genLeftShift, genRightShiftLiteral,
6918            genSignedRightShift, genRightShift, genDataPointerGet,
6919            genPagedPointerGet, genFarPointerGet, genCodePointerGet,
6920            genGenPointerGet, genDataPointerSet, genAssign, genCast): free asmop's
6921             in reverse order from allocation,
6922           (genPlus, genCmpEq): free asmop's in reverse order from allocation and
6923             added swappedLR to keep track
6924         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata,
6925           pdata & code for GCC, z80, gbz80 & hc08
6926         * support/regression/tests/zeropad.c: moved defines to testfwk.h
6927
6928 2006-03-08 Raphael Neider <rneider AT web.de>
6929
6930         * src/pic16/main.c (_hasNativeMulFor): fixed bug #1444425
6931
6932 2006-03-07 Maarten Brock <sourceforge.brock AT dse.nl>
6933
6934         * device/include/mcs51/c8051f410.h: new SiLabs mcu
6935         * src/ds390/peeph.def: disabled 186.d and 227.a as fix for #1434401
6936         * support/regression/tests/array.c: added parenthesis, made arrays unsigned
6937
6938 2006-03-06 Borut Razem <borut.razem AT siol.net>
6939
6940         * support/regression/ports/pic16/spec.mk: link with libm18f.lib,
6941           made the linker quiet
6942
6943 2006-03-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
6944
6945         * src/pic16/gen.c (genPcall): fixed bug #1443644
6946         * src/pic16/device.h (struct pic16_options_t): added 'int CATregs' flag
6947         which dumps before the function entry point a data byte which represents
6948         the number of the local variables used by the specified function, added
6949         'xinst' for initial support for Extended Instruction Support,
6950         * src/pic16/gen.c (aopForSym, pic16_aopGet): beautifications,
6951         (pic16_testStackOverflow): do not prefix GSTACK_TEST_NAME with
6952         port->fun_prefix anymore (may change later),
6953         (genFunction, genEndFunction): do not store/restore local registers for
6954         _main (this should take care the --main-return command line option in
6955         the future),
6956         (genOr): removed some legacy pic-port instructions,
6957         * src/pic16/genarith.c (genAddLit): re-enabled old code because
6958         performing operations with SFR's causes data to be written more than
6959         once to each SFR. Perhaps SFRs should be handled in special cases...
6960         * src/pic16/glue.c: macros BIG_ENDIAN and BYTE_IN_LONG are moved to
6961         pcode.h
6962         * src/pic16/main.c (_process_pragma): stack bound checking did not take
6963         into account for stack starting position,
6964         (struct OPTIONS pic16_optionsTable): added command line argument
6965         --extended or -y for Extended Instruction Support,
6966         * src/pic16/ralloc.c (pic16_decodeOp): added case for FUNCTION,
6967         (deassignLRs): *** perhaps the most important change, old 'for' code
6968         (commented out for reference), didn't account for some registers which
6969         were left marked 'not free' after a pointer operation. The change
6970         reduces register usage a lot in some cases
6971
6972 2006-03-04 Borut Razem <borut.razem AT siol.net>
6973
6974         * support/regression/ports/hc08/spec.mk: remove *.asm in traget
6975           _clean
6976         * support/regression/tests/bug-524697.c: decreased array size for
6977           mcs51 to fit into the internal RAM
6978         * support/regression/Makefile.in: a little bit more verbose
6979
6980 2006-03-03 Borut Razem <borut.razem AT siol.net>
6981
6982         * support/regression/fwk/lib/testfwk.c,
6983           support/regression/fwk/include/testfwk.h: introduced function
6984           _prints(), nonrecursive _printn(), call _initEmu() from main()
6985         * support/regression/ports/gbz80/support.asm,
6986           support/regression/ports/ucz80/support.asm,
6987           support/regression/ports/z80/support.asm,
6988           support/regression/ports/ds390/support.c,
6989           support/regression/ports/hc08/support.c,
6990           support/regression/ports/host/support.c,
6991           support/regression/ports/mcs51/support.c,
6992           support/regression/ports/xa51/support.c: added empty _initEmu()
6993           function
6994         * support/regression/ports/pic16/gpsim.cmd,
6995           support/regression/ports/pic16/spec.mk,
6996           support/regression/ports/pic16/support.c,
6997           support/regression/Makefile.in: added pic16 regression test
6998
6999 2006-03-01 Raphael Neider <rneider AT web.de>
7000
7001         * src/pic16/gen.c (genPcall,pic16_derefPtr,genGenPointerGet,
7002           genConstPointerGet): use safe way of generating MOVFF to cover
7003             literals as well as registers, fixes bug #1440527
7004         * src/pic16/glue.c (pic16_printIvalBitFields): prevent NULL pointer
7005             dereference
7006           (pic16_printIvalUnion,pic16_isUnion): NEW, handle initialized unions
7007             more correctly, fixes bug #1232186
7008           (pic16_printIval): use pic16_printIvalUnion() for initialized unions
7009         * src/pic16/main.c (_pic16_linkEdit): reorder linker arguments to make
7010             gplink guess the correct processor in more cases, applied patch
7011             from Till Riedel attached to and fixing bug #1436552
7012
7013 2006-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7014
7015         * support/regression/tests/array.c: added, contains check for #1434401
7016         * src/mcs51/peeph.def: disabled 186.d as temporary fix for #1434401
7017
7018 2006-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
7019
7020         * device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
7021         * device/include/mcs51/at89S8252.h: fixed, thanks to Krzysztof Polomka
7022         * device/include/mcs51/c8051f326.h,
7023         * device/include/mcs51/c8051f340.h: new SiLabs mcu's
7024         * device/include/mcs51/c8051f000.h,
7025         * device/include/mcs51/c8051f018.h,
7026         * device/include/mcs51/c8051f020.h: used () with __at, renamed IDLE,STOP to
7027           PCON_IDLE,PCON_STOP and added sfr16 definitions
7028
7029 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
7030
7031         * src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
7032           genGetWord): fixed bug 1409955
7033
7034 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
7035
7036         * device/include/hc08/mc68hc908gp32.h,
7037         * device/include/hc08/mc68hc908jb8.h: removed AWUL, added PTA6 & PTA7
7038
7039 2006-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
7040
7041         * src/SDCCast.c (constExprValue): return NULL if not a value
7042         * src/SDCCglue.c (printIvalArray): fixed bug 1225568
7043         * src/hc08/gen.c(genUnpackBits, genUnpackBitsImmed): fixed bug 1019480
7044         * support/regression/tests/bitfields.c: enabled signed bitfield for all
7045
7046 2006-02-13 Borut Razem <borut.razem AT siol.net>
7047
7048         * src/regression/ptrarg.c: added, fails due to bug #1430967
7049         * src/regression/Makefile: ptrarg.c added, ...
7050
7051 2006-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
7052
7053         * src/z80/gen.c (genUnpackBits): fixed bug 1019480
7054         * support/regression/tests/bitfields.c: enabled signed bitfield for z80
7055
7056 2006-02-11 Borut Razem <borut.razem AT siol.net>
7057
7058         * src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
7059           print "Processor: xxx" message to stdout only if --verbose
7060
7061 2006-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
7062
7063         * src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
7064         * support/regression/tests/bug1426356.c: added
7065         * support/regression/tests/bitfields.c: removed 2 tests
7066
7067 2006-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
7068
7069         * device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
7070         * device/include/mcs51/c8051f330.h,
7071         * device/include/mcs51/c8051f350.h: used () with __at, renamed IDLE,STOP to
7072           PCON_IDLE,PCON_STOP and added sfr16 definitions
7073         * device/lib/_divsint.c,
7074         * device/lib/_divuint.c,
7075         * device/lib/_divulong.c,
7076         * device/lib/_divulong.c: renamed a,b to x,y to avoid confusion, fixed
7077           register bank bug for small stackauto
7078
7079 2006-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
7080
7081         * support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()
7082
7083 2006-02-08 Maarten Brock <sourceforge.brock AT dse.nl>
7084
7085         * support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
7086         * all.dsp: corrected several bin paths
7087         * device/include/mcs51/c8051f120.h,
7088         * device/include/mcs51/c8051f300.h,
7089         * device/include/mcs51/c8051f310.h: used () with __at and renamed IDLE,STOP
7090           to PCON_IDLE,PCON_STOP
7091         * device/include/mcs51/c8051f320.h: see above, also added sfr16 definitions
7092         * device/lib/printf_large.c (output_float): fixed bug 1388703
7093         * support/regression/tests/bug1057979.c: added test for bug 1388703
7094
7095 2006-02-08 Raphael Neider <rneider AT web.de>
7096
7097         * src/pic/pcode.c (pciTRIS): fixed typo,
7098           (BuildFlow,LinkFlow_pCode): added (disabled) debug output,
7099           (LinkFlow): fixed handling of flows that end in a call,
7100           (ReuseReg): perform safety check earlier
7101         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed
7102             to work with flows at the beginning of a pBlock,
7103             fixes #1426557 (Symbol not previously defined),
7104           (pic14_ReMapLiveRanges): NEW, destroy and rebuild register
7105             usage information
7106           (RemoveUnusedRegisters): update register usage info
7107         * src/pic/ralloc.c (newReg): prevent duplicate registers from being
7108             created, reuse existing ones instead
7109         * src/pic/gen.c (genPcall): fixed #1424719
7110
7111 2006-02-07 Bernhard Held <bernhard AT bernhardheld.de>
7112
7113         * link/z80/lkmain.c,
7114         * link/z80/lklex.c,
7115         * link/z80/lkdata.c,
7116         * link/z80/aslink.h: fixed build on current cygwin:
7117         replaced getline() by lk_getline()
7118
7119 2006-02-01 Borut Razem <borut.razem AT siol.net>
7120
7121         * src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
7122           src/regression/add4.c, src/regression/and1.c, src/regression/and2.c,
7123           src/regression/arrays.c, src/regression/b.c, src/regression/bank1.c,
7124           src/regression/bool1.c, src/regression/bool2.c,
7125           src/regression/bool3.c, src/regression/call1.c,
7126           src/regression/compare.c, src/regression/compare10.c,
7127           src/regression/compare2.c, src/regression/compare3.c,
7128           src/regression/compare4.c, src/regression/compare5.c,
7129           src/regression/compare6.c, src/regression/compare7.c,
7130           src/regression/compare8.c, src/regression/compare9.c,
7131           src/regression/configword.c, src/regression/for.c,
7132           src/regression/inline.c, src/regression/mult1.c,
7133           src/regression/nestfor.c, src/regression/or1.c,
7134           src/regression/pointer1.c, src/regression/ptrfunc.c,
7135           src/regression/rotate1.c, src/regression/rotate2.c,
7136           src/regression/rotate3.c, src/regression/rotate4.c,
7137           src/regression/rotate5.c, src/regression/rotate6.c,
7138           src/regression/rotate7.c, src/regression/string1.c,
7139           src/regression/struct1.c, src/regression/sub.c,
7140           src/regression/sub2.c, src/regression/switch1.c,
7141           src/regression/while.c, src/regression/xor.c,
7142           src/regression/create_stc, src/regression/simulate,
7143           src/regression/rt.sh, src/regression/Makefile: reenabled Scott's PIC14
7144           regression tests
7145         * src/regression/gpsim_assert.h: added
7146
7147 2006-01-28 Bernhard Held <bernhard AT bernhardheld.de>
7148
7149         * src/ds390/gen.c (unsaveRegisters): fixed literal function pointer
7150         ((void (code *) (void)) 0) ();
7151         * as/hc08/aslex.c,
7152         * as/hc08/aslink.h,
7153         * as/hc08/asm.h,
7154         * as/hc08/asmain.c,
7155         * as/hc08/lkdata.c,
7156         * as/hc08/lklex.c,
7157         * as/hc08/lkmain.c,
7158         * as/mcs51/aslex.c,
7159         * as/mcs51/aslink.h,
7160         * as/mcs51/asm.h,
7161         * as/mcs51/asmain.c,
7162         * as/mcs51/lkdata.c,
7163         * as/mcs51/lklex.c,
7164         * as/mcs51/lkmain.c,
7165         * as/z80/aslex.c,
7166         * as/z80/asm.h,
7167         * as/z80/asmain.c: fixed build on current cygwin:
7168         replaced getline() by as_getline()
7169
7170 2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
7171
7172         * src/SDCC.y: fixed bug #716242, exchanged pointer and function
7173         declarator in the symbol chain
7174         * src/SDCCsymt.h,
7175         * src/SDCCsymt.c (processFuncPtrArgs): added, removes "(void)"
7176         parameter list for function pointers
7177         * src/SDCCast.c (decorateType): added call of processFuncPtrArgs()
7178         * support/regression/tests/bug-716242.c: added
7179
7180 2006-01-20 Bernhard Held <bernhard AT bernhardheld.de>
7181
7182         * src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array
7183         offset if possible
7184         * src/SDCCast.c (getLeftResultType): 255 fits in char, not 256
7185
7186 2006-01-18 Bernhard Held <bernhard AT bernhardheld.de>
7187
7188         * src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it
7189         inifinitely recurseable, added static
7190         * support/regression/tests/bug-1408066.c: added
7191
7192 2006-01-17 Bernhard Held <bernhard AT bernhardheld.de>
7193
7194         * src/SDCCicode.h,
7195         * src/SDCCicode.c (newiTempPreheaderLabel, newiTempLoopHeaderLabel):
7196         renamed, added possibility to create "postLoopLbl"-labels
7197         * src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to
7198         newiTempLoopHeaderLabel
7199         * src/SDCCloop.c (newInduction, newRegion, backEdges, insertIntoLoop,
7200         isNotInBlocks, addToExitsMarkDepth, createLoop, dominatedBy,
7201         addDefInExprs, assignmentsToSym, isOperandInvariant, pointerAssigned,
7202         hasNonPtrUse, loopInvariants, addressTaken, findInduction,
7203         findDefInRegion, mergeRegions, ifMerged, mergeInnerLoops): made static,
7204         (pinduction, pregion, hasIncomingDefs, findLoopEndSeq): disabled,
7205         (basicInduction): fixed bug #136564, made static,
7206         (loopInduction): changed parameter of basicInduction, made static,
7207         (addPostLoopBlock): added
7208         * src/SDCCloop.h: removed backEdges, pregion, pinduction,
7209         loopOptimizations, addressTaken, findDefInRegion, hasIncomingDefs,
7210         findLoopEndSeq
7211         * support/regression/tests/bug-136564.c: added
7212         * support/regression/ports/mcs51-xstack-auto/spec.mk: added
7213         --std-sdcc99 to LIBSDCCFLAGS
7214
7215 2006-01-16 Bernhard Held <bernhard AT bernhardheld.de>
7216
7217         * src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false
7218         while loop
7219         * support/regression/tests/bug-1406131.c: added
7220
7221 2005-12-31 Bernhard Held <bernhard AT bernhardheld.de>
7222
7223         * src/SDCCast.c (decorateType): fix promotion of unary minus
7224         * src/SDCCsymt.c (computeType): beautified
7225         * src/SDCCval.c (cheapestVal): beautified, old non-Ansi version removed,
7226         (valUnaryPM, valComplement): fix sign and promotion,
7227         (valNot): ANSI: result type is int (SDCC: unsigned char)
7228         * support/regression/tests/uminus.c: speedup by removing superflous
7229         test case 'int'
7230         * support/regression/tests/onebyte.c: added promotion and signedness
7231         tests for unary minus
7232         * support/regressions/tests/bug-477927.c: disable warning about
7233         uninitialized variables
7234         * support/regression/tests/not.c: added
7235
7236 2005-12-28 Bernhard Held <bernhard AT bernhardheld.de>
7237
7238         * device/lib/Makefile.in: added --std-sdcc99 to CFLAGS
7239         * src/mcs51/gen.c (gen51Code): show final register usage after
7240         fillGaps in asm with --i-code-in-asm
7241         * src/SDCClrange.c (sequenceiCode, setLiveFrom, setLiveTo,
7242         markLiveRanges, markAlive, findNextUseSym, findNextUse, unvisitBlocks,
7243         incUsed, rliveClear, adjustIChain): made static,
7244         (setFromRange): excluded because it's unused,
7245         (findPrevUseSym, markWholeLoop): added,
7246         (findPrevUse): rewritten; fixes bug 895992; now a complete search
7247         through all branches of predecessors enables sdcc to emit the warning
7248         W_LOCAL_NOINIT, marking of outermost loop was incomplete,
7249         (rlivePoint): made static, added parameter emitWarnings which is only
7250         true during the first run out of two,
7251         (findRecursiveSucc, findRecursivePred): removed,
7252         (computeLiveRanges): made static, added parameter emitWarnings,
7253         (dumpIcRlive): added for debugging only
7254         * src/SDCClrange.h: added boolean parameter to computeLiveRanges(),
7255         removed prototype of setFromRange()
7256         * src/SDCCopt.c (eBBlockFromiCode): added new parameter emitWarnings
7257         in call of computeLiveRanges()
7258         * support/regression/tests/bug-895992.c: added
7259         * support/regression/tests/bug-971834.c: added
7260         * support/valdiag/tests/bug-895992.c: added
7261         * support/valdiag/tests/bug-971834.c: added
7262
7263 2005-12-18 Raphael Neider <rneider AT web.de>
7264
7265         * src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
7266           (genUnpackBits): improved code for direct operands,
7267           (genPackBits): improved code for literal assignment to bitfields
7268             and for direct destination operands (no FSR indirection),
7269             prevented redundant AND, fixes #1362800,
7270           (AccLsh): added parameter to disable masking of the result
7271         * src/pic16/pcode.c (pic16_safepCodeUnlink): fixed to work with
7272           skip instructions with side-effects (like incfsz),
7273           (pic16_pCodeIsAlive): suppress verbose output unless pcode_verbose,
7274         * src/pic16/pcoderegs.c (RemoveRegsFromSet): removed annoying warning
7275         * device/lib/pic16/Makefile.common.in: added --asm=@GPASM@ to CC,
7276           fixes #1375263
7277
7278 2005-12-11 Bernhard Held <bernhard AT bernhardheld.de>
7279
7280         * src/SDCCicode.c (geniCodeAssign): fixed bug 11369874, don't use
7281         volatile variables as spill location
7282
7283 2005-12-10 Bernhard Held <bernhard AT bernhardheld.de>
7284
7285         * src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to
7286         replacing literals
7287         * support/regression/tests/bug-1376320.c: added
7288
7289 2005-12-08 Raphael Neider <rneider AT web.de>
7290
7291         * src/pic/device.c: renamed is_shared to pic14_is_shared
7292         * src/pic/gen.c (genIfx): re-enabled handling of sbits
7293         * src/pic/glue.c (emitSymbolToFile): added workaround for sbits,
7294           (is_valid_identifier): added for above workaround
7295
7296 2005-12-07 Maarten Brock <sourceforge.brock AT dse.nl>
7297
7298         * device/lib/Makefile.in: fixed to enable port-specific-objects
7299         * device/lib/ds390/i2c390.c (BitOutI2C): optimized by making bout unsigned
7300           char, thanks Hubert Sack
7301         * doc/sdccman.lyx: documented --xstack-loc,
7302           elaborated a bit more on interrupts and pitfalls,
7303           removed "setjmp/longjmp unsupported",
7304           documented some unsupported C99 features
7305         * src/SDCCmain.c (linkEdit): adapted default lib path for --stack-auto
7306         * src/SDCCpeeph.c (readRules): inserted patch 1367130 for finding missing
7307           if, thanks Hubert Sack
7308         * src/mcs51/gen.c (genEndFunction): enabled "pop psw" for regbank 0 isr
7309         * support/regression/Makefile.in: test-mcs51-stack-auto no longer needs to
7310           make make_library
7311         * support/regression/get_ticks.py: new, get cpu cycles and code size, so
7312           regression tests can report resource usage (rfe 700441)
7313         * support/regression/collate-results.py: report resource usage
7314         * support/regression/ports/ds390/spec.mk,
7315         * support/regression/ports/hc08/spec.mk,
7316         * support/regression/ports/mcs51/spec.mk,
7317         * support/regression/ports/ucz80/spec.mk: run sim output through get_ticks
7318         * support/regression/ports/ds390/uCsim.cmd,
7319         * support/regression/ports/hc08/uCsim.cmd,
7320         * support/regression/ports/mcs51/uCsim.cmd,
7321         * support/regression/ports/ucz80/uCsim.cmd: inserted "state" to report time
7322         * support/regression/ports/mcs51-stack-auto/spec.mk: no need to build the
7323           library, use the default one
7324         * support/regression/ports/mcs51-xstack-auto/spec.mk: inserted rules for
7325           building the library
7326
7327 2005-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
7328
7329         * config.dsp: added dependency on .version and configure_vc.awk
7330         * device/include/setjmp.h: updated for --stack-auto and --xstack
7331         * device/include/mcs51/at89c51snd1c.h: corrected line endings
7332         * device/include/mcs51/XC866.h: added, thanks Llewellyn van Zyl
7333         * device/lib/_setjmp.c: updated for --stack-auto and --xstack
7334         * device/lib/libsdcc.lib: added _setjmp
7335         * src/SDCCast.c (createIvalCharPtr): fixed warnings,
7336           (decorateType): fixed bug 1372851,
7337           (optimizeGetHbit): fixed warning
7338         * src/SDCCglue.c (printIvalChar, printIvalArray): adapted for flexible
7339           array initialisation
7340         * support/regression/tests/bug1057979.c: added test for bug 1358192
7341         * support/regression/tests/setjmp.c: added, test for setjmp/longjmp
7342
7343 2005-12-03 Borut Razem <borut.razem AT siol.net>
7344
7345         * support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
7346           command since the NSIS was upgraded to version 2.11 on CF x86-linux2
7347
7348 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
7349
7350         * src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr,
7351         createIval): implement symbol independant "flexible array member",
7352         (createIvalCharPtr): implemented flexible array initialisation with a
7353         string
7354         * src/SDCCsymt.c (copyStruct): removed,
7355         (getSize): fixed misleading comment,
7356         (getAllocSize): removed, the additional allocation size is now in
7357         sym->flexArrayLength,
7358         (checkStructFlexArray): new, syntax checks for flexible array members,
7359         (compStructSize): added syntax checks for "flexible array members"
7360         (copyStruct): removed,
7361         (copyLinkChain): removed inefficient fix for bug 770487
7362         * src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
7363         * src/SDCCsymt.h: added structdef.b_flexArrayMember and
7364         symbol->flexArrayLength
7365         * src/SDCCerr.c,
7366         * src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY,
7367         E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
7368         * support/regression/tests/structflexarray.c: added
7369         * support/valdiag/tests/structflexiblearray.c: added
7370
7371 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
7372
7373         * src/SDCCast.c (decorateType): fixed bug 1368489
7374         * support/Util/SDCCerr.c,
7375         * support/Util/SDCCerr.h: added warning W_CMP_SU_CHAR
7376
7377 2005-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7378
7379         * device/include/mcs51/at89c51snd1c.h: added file submitted by
7380           Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001
7381
7382 2005-11-27 Borut Razem <borut.razem AT siol.net>
7383
7384         * support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
7385           support/cpp2/mkdeps.h: added command line option
7386           -obj-ext=<extension> to SDCPP to define object file externion, used
7387           for generation of make dependencies (-M)
7388         * src/SDCCmain.c: pass -obj-ext=<extension> to SDCPP
7389
7390 2005-11-26 Borut Razem <borut.razem AT siol.net>
7391
7392         * support/scripts/sdcc.nsi: added small-stack-auto libraries,
7393           added missing device/lib/mcs51/crt*.asm, pic and pic16 sources,
7394           added pic and pic16 libraries
7395
7396 2005-11-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7397
7398         * device/include/float.h: Corrected typo in prototype of __fsgt
7399
7400 2005-11-25 Borut Razem <borut.razem AT siol.net>
7401
7402         * sdcc/device/lib/Makefile.in, sdcc/device/lib/incl.mk:
7403           added creation of model-mcs51-stack-auto libraries
7404
7405 2005-11-24 Bernhard Held <bernhard AT bernhardheld.de>
7406
7407         * src/SDCCsymt.c (copyLinkChain): fixed bug 770487, copy structdef
7408         and fields-list too
7409         * src/SDCCast.c (createIvalArray): removed obsolete comment
7410
7411 2005-11-24 Borut Razem <borut.razem AT siol.net>
7412
7413         * sdcc/device/lib/Makefile.in: remove all unnecessary files, 2nd try...,
7414           added missing device/lib/mcs51/crt*.asm sources
7415
7416 2005-11-23 Bernhard Held <bernhard AT bernhardheld.de>
7417
7418         * src/SDCCast.c (createIvalCharPtr): fixed bug 1348271
7419
7420 2005-11-22 Maarten Brock <sourceforge.brock AT dse.nl>
7421
7422         * device/lib/_fs2schar.c,
7423         * device/lib/_fs2sint.c,
7424         * device/lib/_fs2slong.c: optimized inline asm
7425
7426 2005-11-21 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7427
7428         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
7429           Better handling of floats between -1.0 and 0.0.
7430
7431 2005-11-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7432
7433         * src/mcs51/peeph.def: added missing "if"s as noted by Hubert Sack.
7434           (the missing "if"s prohibited removal of redundant labels)
7435
7436 2005-11-19 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7437
7438         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
7439           Properly convert floats between -1.0 and 0.0 to long, int, and char
7440           types (max integer value of negative floats tends to zero).
7441         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
7442           Removed changes made so to work properly with floats between
7443           -1.0 and 0.0, as the problem is fixed in _fs2slong.c, _fs2sint.c,
7444           and _fs2char.c
7445
7446 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
7447
7448         * src/SDCCcse.c (ReplaceOpWithCheaperOp): minor fix for debugging only
7449         * src/mcs51/gen.c (genUnpackBits): better code and a fix,
7450         (genCast) cosmetic change
7451         * src/ds390/gen.c (genUnpackBits, ): ported from mcs51
7452         * src/ds390/ralloc.c (packRegsForAssign): ported fix for bitfields
7453         from mcs51
7454         * support/regression/tests/bitfields (testSignedBitfields): added
7455
7456 2005-11-18 Borut Razem <borut.razem AT siol.net>
7457
7458         * sdcc/device/lib/Makefile.in: remove all unnecessary files
7459         * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
7460           introduced SILENT option to make building of pic16 libraries less
7461
7462 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7463
7464         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
7465           Now they work properly with floats between -1.0 and 0.0
7466         * device/lib/printf_large.c: Removed temporary patch for bug 1358192
7467
7468 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
7469
7470         * src/SDCCicode.c (printOperand): added missing else
7471
7472 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
7473
7474         * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
7475         reformatted for better readability
7476         * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
7477         signed bitfields
7478
7479 2005-11-17 Borut Razem <borut.razem AT siol.net>
7480
7481         * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
7482           introduced SILENT option to make building of pic16 libraries less
7483           verbose - used for nightly snapshot build
7484         * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
7485           available on Win32 platforms.
7486         * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
7487           medium, large, pic and pic16
7488
7489 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7490
7491         * device/lib/printf_large.c: Temporary patch for bug 1358192:
7492           printf("%f"...) sets fraction to zero.
7493
7494 2005-11-16 Raphael Neider <rneider AT web.de>
7495
7496         * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
7497           fixes #1357221
7498         * src/pic/gen.c (genIfx): implemented for CARRY bit
7499         * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
7500           to generic pointers, fixes #1357332,
7501           (pic16_movLit2f): NEW,
7502           (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
7503
7504 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
7505
7506         * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
7507
7508 2005-11-11 Raphael Neider <rneider AT web.de>
7509
7510         * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
7511         * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
7512           compute pointer's type from operand,
7513           (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
7514           improved single bit reads, fixes bug #1353379
7515
7516 2005-11-09 Borut Razem <borut.razem AT siol.net>
7517
7518         * support/scripts/sdcc.nsi: added lib/pic to the package
7519
7520 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
7521
7522         * src/SDCCval.c (valUnaryPM): fixed bug 1350699
7523
7524 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
7525
7526         * support/regression/tests/bug1348008.c: added
7527         * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
7528         * support/regression/tests/bug1337835.c: updated comment
7529
7530 2005-11-06 Borut Razem <borut.razem AT siol.net>
7531
7532         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
7533           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
7534           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
7535           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
7536           sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
7537           dynamic construction of cl_error_class and derivates - 2.nd try
7538
7539 2005-11-05 Borut Razem <borut.razem AT siol.net>
7540
7541         * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
7542           bug, which caused Bus Errors on sparc solaris
7543
7544 2005-11-04 Borut Razem <borut.razem AT siol.net>
7545
7546         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
7547           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
7548           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
7549           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
7550           sim/ucsim/cmd.src/cmdconf.cc: dynamic construction of cl_error_class
7551           and derivates to resolve the initialization problem on OSX
7552
7553 2005-11-02 Borut Razem <borut.razem AT siol.net>
7554
7555         * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
7556           corrected typo - #include <winsock2.h>
7557
7558 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
7559
7560         * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
7561           (_asxxxx_mapping): added org directive for future enhancements
7562
7563 2005-11-01 Borut Razem <borut.razem AT siol.net>
7564
7565         * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
7566           enabled sockets on WIN32
7567         * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
7568
7569 2005-10-31 Borut Razem <borut.razem AT siol.net>
7570
7571         * support/regression/generate-cases.py: escape backslashes in {testcase}:
7572           WIN32 backslash path delimiters should be escaped when used in C strings
7573         * support/regression/tests/bitfields.c: exclude failing assertions for
7574           __CYGWIN32__ and __MINGW32__ hosts
7575
7576 2005-10-30 Borut Razem <borut.razem AT siol.net>
7577
7578         * src/SDCCutil.c: corrected double comparison typo
7579
7580 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
7581
7582         * device/lib/medium/Makefile: added for new memory model medium
7583         * device/include/asm/mcs51/features.h: updated for medium/pdata
7584         * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
7585           added Multiply & Accumulate sbit's and MAC0_PAGE define
7586         * device/include/mcs51/c8051f300.h: added sfr16 definitions
7587         * device/include/mcs51/c8051f310.h: added sfr16 definitions
7588         * device/lib/_mullong.c: update for medium model
7589         * device/lib/incl.mk: added medium model
7590         * doc/sdccman.lyx: documented medium model
7591         * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
7592         * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
7593         * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
7594         * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
7595           (allocParms): set SCLS and OCLS to pdata for medium model
7596         * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
7597           for pdata,
7598           (powof2): return <0 if not power of 2
7599         * src/avr/gen.c (genBitWise): use updated powof2
7600         * src/mcs51/gen.c (genMinusDec): use acc if necessary,
7601           (shiftR2Left2Result): small optimization in setup, save acc when storing,
7602           (shiftLLeftOrResult): use B if necessary
7603         * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
7604         * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
7605         * src/pic/main.c (_pic14_do_link): made void parameter list explicit
7606         * support/regression/Makefile.in: added test-mcs51-medium
7607         * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
7608
7609 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
7610
7611         * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
7612         specifier unsigned
7613         * device/lib/time.c (mktime): fixed bug 1334315
7614
7615 2005-10-28 Raphael Neider <rneider AT web.de>
7616
7617         * device/include/pic/p16f_common.inc: added common declarations
7618         * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
7619
7620 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
7621
7622         * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
7623           (aopPutUsesAcc): added to predict accumulator use,
7624           (assignResultValue): save acc if necessary,
7625           (genMinusDec): store result if indirectly addressed,
7626           (genDivOneByte):  save acc if necessary,
7627           (movLeft2Result): bugfix if left already in acc,
7628           (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
7629             attention to accumulator use (esp. pdata),
7630           (genReceive): receive pdata correctly
7631         * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
7632         * src/SDCCicode.h: added isOperandInPagedSpace prototype
7633
7634 2005-10-27 Raphael Neider <rneider AT web.de>
7635
7636         * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
7637
7638 2005-10-27 Raphael Neider <rneider AT web.de>
7639
7640         * .version: changed version to 2.5.4
7641         * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
7642         * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
7643           (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
7644             arithmetics support routines
7645         * device/lib/pic/Makefile.rules: have assembler sources preprocessed
7646         * device/lib/Makefile.in: also create installdir for pic
7647
7648         * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
7649           pic14 port as well
7650         * src/pic/device.c (dump_sfr): rewritten to delegate register
7651           placement to the linker (use `extern sym' rather than sym EQU addr),
7652           (validAddress): fixed to check last specified address
7653         * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
7654           (popGetLit): truncate literal value to 8 bit,
7655           (popGet): moved assert to more appropriate place
7656           (popGetExternal): create pCode operand from and mark the according
7657             symbol as being `extern'
7658           (popGetAddr): added sanity check on immediate's offset, provide
7659             GPOINTER tag on demand
7660           (aopPut): fixed for immediates,
7661           (mov2w_op): move operand's address or contents to WREG (depending on
7662             operand type), safer variant of mov2w,
7663           (movwf,call_libraryfunc): NEW, handy abbreviations,
7664           (get_argument_pcop,get_return_val_pcop,pass_argument,
7665           get_returnvalue): interface for accessing function parameters and
7666             return values,
7667           (assignResultValuei,genRet): use new parameter/return value interface
7668           (pic14_getDataSize): back to old version handling generic pointers,
7669           (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
7670             provided implementation and/or fixed old one,
7671           (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
7672             calls, removed legacy 8051 reference code
7673           (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
7674           (loadSignToC): NEW, move the operands sign bit to CARRY,
7675           (genGenericShift): NEW, replaces genLeftShift, genRightShift and
7676             genRightShiftSigned, accepts negative shift counts,
7677           (setup_fsr): load FSR and adjust IRP (indirect memory access),
7678           (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
7679             generic pointers, __data pointers and __code pointers,
7680           (genUnpackBits,genPackBits): rewritten to work with generic pointers
7681             and signed bitfields, limit bitfields to 8 bit,
7682           (genDataPointerGet): fixed number of bytes read,
7683           (genGenPointerGet,genConstPointerGet): fixed bitfield access,
7684           (genPointerGet,genPointerSet): fixed handling of __code pointers,
7685             pointers to constant data are no longer assumed to point to __code
7686             space, removed invalid pointer types,
7687           (bitpatternFromVal): retrieve the PICs representation of an integer
7688             or float literal,
7689           (genDataPointerSet): fixed assigning to po_immediate operands,
7690           (genGenPointerSet): implemented as library call,
7691           (genIfx): fixed incorrect condition,
7692           (genAddrOf): limit generic pointers' addresses to 2 bytes,
7693             provide GPOINTER tag according to destination's storage class,
7694           (genCast): added code to handle casting to generic pointers, added
7695             sign-/zero extension of the result
7696           (aop_isLitLike,op_isLitLike): fixed handling of immediates
7697         * src/pic/gen.h: added macros to access IRP bit in STATUS register
7698         * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
7699           extend the result
7700         * src/pic/glue.c (is_shared_address,is_shared): check whether a given
7701           address/register resides in the shared banks
7702           (emitSymbolToFile): improved to handle global and `pinned' symbols,
7703             put all variables into separate sections (have the linker arrange
7704             them)
7705           (picglue): put init code and interrupt handlers in separate sections
7706         * src/pic/main.c: added port specific options table, modified to PORT
7707           structure to make GPOINTERs 3 byte, added pic14_options
7708           (_pic14_do_link): private linking routine (update paths to libraries,
7709             add libsdcc.lib by default)
7710         * src/pic/main.h: declare pic14_options
7711         * src/pic/pcode.c: fixed instructions i/o relations,
7712           (RegCond): reverted to correct version,
7713           (newpCodeOpLit): truncate literals to 8 bit,
7714           (genericPrint): added debug output,
7715           (getRegFromInstruction): fixed for various operand types, simplified
7716           (BuildFlow): fixed broken handling of isntructions with labels
7717           (LinkFlow): start at last instruction in flow (skip trailing comments),
7718             pass the flow on to the next instruction after CALL
7719           (pCodeReplace): NEW, replace a pCode and move meta data to the new one
7720           (insertPCodeInstruction): fixed inserting after a skip instruction,
7721           (DoBankSelect): fixed for labeled instructions
7722           (OptimizepBlock): honor --nopeep switch
7723           (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
7724         * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
7725         * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
7726           (pCodeOptime2pCodes): allow disabling this optimization via
7727             --no-pcode-opt due seldomly occuring bugs, fixed some conditions
7728             but is still buggy), started implementation of a dataflow based
7729             pCode optimization (CSE + dead code elimination)
7730           (pCodeRegMapLiveRangesInFlow): removed bogus inCond
7731         * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
7732           names are independant of the stack location and therefore portable across
7733           devices
7734
7735 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
7736
7737         * src/mcs51/ralloc.c (bitType): added to detect bit variables,
7738           (selectSpil): fixed bug 1337835 by not spilling bit variables
7739         * support/regression/tests/bug1337835.c: added test for this bug
7740         * src/mcs51/peeph.def: restart after rule 3.c,
7741           addded rules 263.x to optimize loading constants
7742
7743 2005-10-26 Raphael Neider <rneider AT web.de>
7744
7745         * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
7746         * src/pic16/gen.c (genUnpackBits): support signed bitfields,
7747           (genAssign): emit warning when casting literals to generic pointer
7748             type, also applies when taking the address of a fixed variable,
7749           (genCast): improved casting to generic pointers
7750         * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
7751           extern variables, added verbose error message
7752         * device/include/pic16/{string.h,errno.h}: added #pragma library c
7753
7754 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
7755
7756         * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
7757         carry must be complemented too
7758         * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
7759         could be emitted by genMinus
7760         * src/SDCCval.c (constVal): fixed bug 1305065
7761
7762 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
7763
7764         * src/SDCCast.c (addCast): added promotion for bit variables
7765         (decorateType): emit W_COMPLEMENT before the problem vanishes behind
7766         promotion casts + optimisation
7767         (optimizeGetWord): fix warning 'i' might be used uninitialized
7768         * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
7769         * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
7770
7771 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
7772
7773         * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
7774         all chars are promoted to int; promotion should be handled in SDCCast.c
7775
7776 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7777
7778         * device/lib/_strcmp.c: Fixed bug 1326457
7779
7780 2005-10-11 Raphael Neider <rneider AT web.de>
7781
7782         * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
7783         * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
7784
7785 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
7786
7787         * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
7788         * support/regression/tests/sfr16.c: added test for the sfr32 bug
7789
7790 2005-10-04 Raphael Neider <rneider AT web.de>
7791
7792         * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
7793           device/lib/pic16/pics.all: added pic18f1320
7794         * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
7795
7796 2005-09-30 Raphael Neider <rneider AT web.de>
7797
7798         * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
7799         * src/pic16/devices.inc: NEW, provides device descriptions
7800         * src/pic16/gen.c (genInline): fixed handling of ';'-comments
7801
7802 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
7803
7804         * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
7805           GETHBIT
7806
7807 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
7808
7809         * doc/sdccman.lyx: updated Highest Order Bit documentation,
7810           documented Any Order Bit, Higher Order Byte and Higher Order Word
7811         * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
7812         * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
7813           (optimizeGetAbit): new, to get any bit, not only the high bit,
7814           (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
7815           (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
7816           (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
7817           (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
7818             RIGHT_OP: also try GETBYTE, GETWORD optimization,
7819             GETABIT, GETBYTE, GETWORD: decorate them,
7820           (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
7821           (ast_print): added GETABIT, GETBYTE, GETWORD
7822         * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
7823         * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
7824           (geniCodeBinary): new generic binary icode,
7825           (ast2iCode): added GETABIT, GETBYTE, GETWORD
7826         * src/port.h: updated comment for PORT.hasExtBitOp
7827         * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
7828           (genGetByte): new, to get a single byte,
7829           (genGetWord): new, to get a word from a long,
7830           (gen51Code): added GETABIT, GETBYTE, GETWORD
7831         * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
7832
7833 2005-09-23 Raphael Neider <rneider AT web.de>
7834
7835         * configure.in, configure: have device/lib/pic configured
7836         * device/lib/Makefile.in: added model-pic14
7837         * device/lib/clean.mk: added pic/ to clean rule
7838         * device/lib/pic: added rudimentary pic14 library providing support
7839           functions for multiplication/division/generic pointer access
7840         * src/SDCCopt.c (convilong): mark support functions as extern
7841           for pic14 port as well
7842         * src/pic/gen.c (genMult): added assertions,
7843           (genpic14Code): emit warning on unhandled iCodes
7844         * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
7845         * src/pic/pcode.c (pCodeOpCopy),
7846         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
7847           pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
7848           SFR_REGISTER}), made safe for future extensions
7849         * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
7850           instructions even if preceeded by SKIP instructions (also remove
7851           them); removed unused code
7852         * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
7853           prevents leaving parts of the structure uninitialized after copying
7854
7855 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
7856
7857         * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
7858           ago by me
7859         * support/regression/tests/addsub.c: added test for the bug
7860
7861 2005-09-21 Raphael Neider <rneider AT web.de>
7862
7863         * device/include/pic16/pic18f1220.h,
7864           device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
7865         * device/lib/pic16/Makefile.rules: added missing opening paren
7866         * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
7867           are provided in genutils.c,
7868           (genUminusFloat,genUminus,genCmpEq): added asserts on different
7869           operand/result sizes,
7870           (genCmp): assert on NULL pointers first, then check deref'ed values
7871         * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
7872           result size
7873
7874 2005-09-18 Raphael Neider <rneider AT web.de>
7875
7876         * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
7877           as these are now unused,
7878           (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
7879         * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
7880           local, avoids uninitialized pointer dereference on r->name
7881         * src/pic16/ralloc.c (newReg): fixed indentation
7882
7883 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
7884
7885         * src/SDCCval.c (constVal): fixed bug 730366
7886         * support/Util/SDCCerr.c,
7887         * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
7888
7889 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
7890
7891         * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
7892
7893 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
7894
7895         * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
7896
7897 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
7898
7899         * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
7900           (hex2dec): made hex_digit unsigned char, removed ascii dependance
7901         * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
7902           (hex2dec): made hex_digit unsigned char, removed ascii dependance
7903         * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
7904         * packihx/packihx.c (hexDigit): made c unsigned char
7905         * as/mcs51/lklibr.c (fndsym),
7906         * link/z80/lkgb.c (gb),
7907         * link/z80/lklibr.c (fndsym),
7908         * link/z80/lkrloc.c (relr),
7909         * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
7910         * src/SDCC.lex (checkCurrFile, process_pragma),
7911         * src/SDCCglue.c (spacesToUnderscores),
7912         * src/SDCCmain.c (setParseWithComma, processFile),
7913         * src/asm.c (tvsprintf, printCLine),
7914         * src/avr/gen.c (emitcode, aopPut),
7915         * src/ds390/gen.c (emitcode),
7916         * src/hc08/gen.c (emitcode, emitinline),
7917         * src/mcs51/gen.c (emitcode, genInline),
7918         * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
7919           tokenizeLineNode),
7920         * src/pic/ralloc.c (debugLog),
7921         * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
7922           tokenizeLineNode),
7923         * src/pic16/ralloc.c (debugLog),
7924         * src/z80/main.c (_process_pragma):
7925            made all ctype.h function calls safe
7926         * src/SDCCopt.c: include math.h for fabs
7927         * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
7928           and used them throughout the code to make ctype.h function calls safe
7929         * src/ds390/main.c (asmLineNodeFromLineNode),
7930         * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
7931         * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
7932            unsigned char*
7933         * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
7934           (newpCodeAsmDir): made ctype.h function calls safe
7935         * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
7936           pic16_emitcode):  made lbp unsigned char*
7937         * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
7938           (pic16_newpCodeAsmDir): made ctype.h function calls safe
7939         * src/xa51/gen.c (emitcode),
7940         * src/z80/gen.c (_emit2): made lbp unsigned char*
7941         * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
7942            char*
7943
7944 2005-09-05 Raphael Neider <rneider AT web.de>
7945
7946         * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
7947           access bank splitpoint
7948
7949 2005-09-05 Raphael Neider <rneider AT web.de>
7950
7951         * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
7952
7953 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
7954
7955         * .version: changed to version 2.5.3
7956         * doc/sdccman.lyx: changed version to 2.5.3,
7957           documented --codeseg and --constseg and pragma codeseg and constseg,
7958           documented bit parameters (reentrant) and bit returning
7959         * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
7960            currFunc->recvSize, but is this ok for all ports?
7961           (ast2iCode): result of ~ on unsigned char must be cast to int for
7962            bool to work
7963         * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
7964           function pointers in bit space
7965         * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
7966           (processFuncArgs): call port.reg_parm() with reentrancy info
7967         * src/port.h,
7968         * src/avr/main.c,
7969         * src/ds390/main.c,
7970         * src/hc08/main.c,
7971         * src/pic/main.c,
7972         * src/pic16/main.c,
7973         * src/xa51/main.c,
7974         * src/z80/main.c: port.reg_parm prototype extended with
7975           "bool reentrant" parameter
7976         * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
7977           options.stackAuto for allocating bit register parameters
7978         * src/mcs51/gen.c (genNot): optimized complementing direct bit,
7979           (genSend): set BitBankUsed if it is,
7980           (selectRegBank): factored out of genCall for use in genPcall,
7981           (genCall): removed redundant dtype assignmen, use selectRegBank,
7982           (genPcall): handle returning in Carry properly, save in F0 if needed,
7983           (genReceive): handle bit register parameters
7984         * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
7985           (mcs51_assignRegisters): enable bit registers for all reentrant
7986            functions and don't set BitBankUsed unconditionally
7987         * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
7988         * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
7989         * support/regression/tests/funptrs.c: added tests for BOOL and for return
7990
7991 2005-08-27 Borut Razem <borut.razem AT siol.net>
7992
7993         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
7994         ppc-osx (Darwin) does not support -u option. It seems that it is
7995         supported only on Linux - GNU cp
7996
7997 2005-08-25 Borut Razem <borut.razem AT siol.net>
7998
7999         * sim/ucsim/gui.src/serio.src/Makefile.in,
8000           sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
8001           sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
8002           sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
8003           install and strip, since the strip at /usr/ccs/bin should be used
8004           on solaris
8005
8006 2005-08-24 Borut Razem <borut.razem AT siol.net>
8007
8008         * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
8009
8010 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
8011
8012         * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
8013         ffffffffu
8014
8015 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
8016
8017         * as/mcs51/aslink.h: completed lkrloc.c prototypes
8018         * as/mcs51/lkmain.c (link_main): fixed warning
8019         * device/include/stdbool.h: ds390 has no advanced bit support yet
8020         * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
8021         * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
8022         * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
8023           and updated their macros
8024         * src/SDCCval.c (constVal): updated comment for renamed b_long
8025
8026 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
8027
8028         * as/mcs51/asdata.c: changed ctype['['] to BINOP
8029         * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
8030           (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
8031           (oprio): set priority for '['
8032         * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
8033            and adb_24_bit
8034         * as/mcs51/asm.h: added defines R_BIT and S_BIT
8035         * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
8036         * as/mcs51/lkdata.c: changed ctype['['] to BINOP
8037         * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
8038           added overlayable BIT_BANK area
8039         * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
8040           (summary2): explain 'T' in legenda
8041         * as/mcs51/lkrloc.c: replaced old K&R style,
8042           (relr): added R_BIT processing,
8043           (errmsg): added "Bit-addressable relocation error",
8044           (adb_bit): added for converting from byte- to bit-addressable space,
8045           (adb_24_bit): added for converting from byte- to bit-addressable space
8046         * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
8047            used in reentrant functions now even as return value
8048         * device/lib/_gptrput.c (_gptrput): removed obsolete code
8049         * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
8050           (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
8051         * src/SDCCglobl.h: added indicator BitBankUsed
8052         * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
8053            the bit registers b0-b7
8054         * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
8055           (geniCodeCast): fixed bug 1263853,
8056           (geniCodeLogicAndOr): put result in bool or char,
8057           (geniCodeReceive): added parameter func for accessing the return type,
8058           (geniCodeFunctionBody): pass func to geniCodeReceive
8059         * src/SDCCmain.c: added indicator BitBankUsed
8060         * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
8061         * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
8062           (checkSClass): don't put automatic bool/bit on stack,
8063           (checkFunction): removed check on function cannot return bit
8064         * src/SDCCsymt.h: added newBoolLink prototype
8065         * src/mcs51/gen.c (rb1regs): added bit registers,
8066           (movc): created for assigning to carry,
8067           (pushReg, popReg): created for pushing registers,
8068           (sameRegs): check both AOP_REG and AOP_CRY types,
8069           (aopOp): handle bit registers,
8070           (aopPut): optimization no self-assign,
8071           (saveRegisters): push reg->base (bits) only once for bit registers,
8072            and use pushReg,
8073           (unsaveRegisters): pop reg->base only once and use popReg,
8074           (assignResultValue): added parameter func and return in carry for bits,
8075           (genIpush): optimization no reload in A if not changed,
8076           (genSend): bit parameters in reentrant functions are passed in bit
8077            registers by first assigning to bits in B, then save registers and
8078            copy B to bits,
8079           (genCall): handle returning in Carry properly, save it in F0 if needed,
8080           (genPcall): updated assignResultValue call, this is not safe yet for bit
8081            returning function !!!
8082           (genFunction): don't generate equ's for bit registers and use pushReg,
8083           (genEndFunction): take care of bit returning functions and use popReg,
8084           (genRet): return bit in Carry,
8085           (genIfx): optimize bit registers and other directly addressable bits,
8086           (genReceive): updated assignResultValue call
8087         * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
8088           (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
8089            registers when using stack-auto
8090         * src/mcs51/ralloc.c (_G): added allBitregs,
8091           (regs8051): added the bit registers,
8092           (createStackSpil): use macro IS_BIT,
8093           (getRegBit): added to allocate a bit register, else spill,
8094           (getRegBitNoSpil): added to allocate a bit register, else a gpr,
8095           (updateRegUsage): factored out to ease stepping while debugging,
8096           (serialRegAssign): use updateRegUsage, only spill bits if necessary,
8097            also allocate bit registers,
8098           (fillGaps): handle bit registers,
8099           (findAllBitregs): added to create bit vector with all bit registers,
8100           (mcs51_allBitregs): returns this bit vector,
8101           (mcs51_assignRegisters): when using stack-auto use bit registers for
8102            passing parameters and creating local variables
8103         * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
8104
8105 2005-08-22 Borut Razem <borut.razem AT siol.net>
8106
8107         * device/lib/Makefile.in: replaced find option -or with -o
8108           to make it run on solaris
8109
8110 2005-08-22 Raphael Neider <rneider AT web.de>
8111
8112         * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
8113           fixes #1265442 (crash on Solaris)
8114
8115 2005-08-20 Borut Razem <borut.razem AT siol.net>
8116
8117         * configure, configure.in: added tests for libsocket and libnsl libraries,
8118           requred by sdcdb on sparc-solaris; generate support/regression/Makefile
8119           from support/regression/Makefile.in
8120         * support/regression/Makefile.in: added
8121         * device/lib/pic16/Makefile.common.in: force make to use bash shell
8122         * sim/ucsim/libtool: regenerated on sparc-solaris
8123         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
8124           sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
8125           sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
8126           -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
8127           sparc-solaris, which doesn't use GNU ld linker
8128         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
8129         * as/Makefile: find on sparc-solaris does not support -maxdepth option
8130
8131 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
8132
8133         * src/mcs51/peeph.def: updated comments
8134
8135 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8136
8137         * device/lib/_gptrget.c,
8138         * device/lib/_gptrput.c: slightly shorter
8139         * doc/sdccman.lyx: incremented version
8140         * src/mcs51/peeph.def: moved peephole comments to the line of first
8141           change to better keep line correlation, reanimated 186.e
8142         * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
8143
8144 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
8145
8146         * src/pic/pcode.c : Pasted ".line" assembly directives patch from
8147           David Saxton with quotes around file name.
8148
8149 2005-08-15 Borut Razem <borut.razem AT siol.net>
8150
8151         * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
8152           support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
8153           support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
8154           make tests run on x86_64 platform
8155
8156 2005-08-13 Raphael Neider <rneider AT web.de>
8157
8158         * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
8159           as it might be executed DURING a build (parallel make is wonderful)
8160
8161 2005-08-13 Raphael Neider <rneider AT web.de>
8162
8163         * device/lib/Makefile.in (port-specific-objects-pic16):
8164           revert to cp $(PORT)/bin/*.* $(PORTDIR)
8165         * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
8166           dependency
8167         * device/lib/pic16/Makefile.rules: build subdirs before creating
8168           the library, removed builddir rule, create $(builddir) early in
8169           recurse rule, use empty recurse rule for leaf directories
8170         * device/lib/pic16/Makefile.subdir: added phony targets, ignore
8171           mkdir errors (race condition), removed duplicate suffix "hex"
8172           from clean rules
8173         * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
8174         * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
8175           prevents mkdir -p from aborting on Alpha
8176
8177 2005-08-12 Raphael Neider <rneider AT web.de>
8178
8179         * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
8180           db-statements in order to allow for arrays of pointers in code
8181           sections to be placed without interspersed 0-padding, fixes
8182           bug #1256215
8183         * (emitStatistics): fixed division by zero for pic18f1220
8184         * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
8185           unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
8186         * (pic16_emitDS): respect DB_ITEMS_PER_LINE
8187         * (pic16_pCodeConstString): keep track of already emitted string
8188           literals to prevent "duplicate definitions of symbol _str_NR"
8189         * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
8190           debug message
8191         * device/lib/Makefile.in: ignore failing PIC16 library builds
8192         * device/lib/pic16/Makefile: do not build if gputils are missing
8193         * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
8194
8195 2005-08-10 Raphael Neider <rneider AT web.de>
8196
8197         * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
8198           my last commit)
8199
8200 2005-08-10 Raphael Neider <rneider AT web.de>
8201
8202         * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
8203           Rokas' patch to add the new fixed point type "__fixed16x16"
8204         * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
8205           functions for __fixed16x16 arithmetics
8206         * device/lib/pic16: reimplemented the build system to support
8207           a separate build directory, better handling of libio (create
8208           the library in a separate subdir for each architecture) and
8209           easier configuration (centralized in Makefile.common)
8210
8211 2005-08-07 Raphael Neider <rneider AT web.de>
8212
8213         * src/pic16/gen.c (genrshTwo): fixed sign extension
8214         * src/pic16/device.c: added pic18f2320, 4220 and 4320
8215         * device/include/pic16/pic18f2220.h: changed some bit definitions,
8216           added T0CONbits
8217         * device/include/pic16/pic18f4220.h: NEW, header for
8218           pic18f4220 and pic18f4320
8219         * device/include/pic16/pic18fregs.h: added new devices,
8220           embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
8221         * device/include/pic16/signal.h: resolved name clashes
8222           on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
8223           to also allow testing for interrupt enable bits, added
8224           comments on how to use the macros
8225         * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
8226         * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
8227           register definitions for the devices
8228         * device/lib/pic16/pics.all: added new devices
8229         * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
8230           allocated memory
8231         * device/lib/pic16/libc/stdlib/memfree: do not count
8232           the block header as free memory
8233         * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
8234           simplified and added missing end-of-blocklist-marker
8235           (reported by Peter Onion, fixes #1252814)
8236         * (_mergeHeapBlock): fixed loop condition
8237         * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
8238           len==0, restructured code
8239         * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
8240           up a bit, reduced bitfield accesses, prevent endless loops
8241           in case of heap corruption
8242         * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
8243           "unreferenced arguments/must return a value" warnings
8244         * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
8245           replaced BAUDREG with SPBRG
8246         * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
8247           device/lib/pic16/debug/gstack/gstack.c: replaced
8248           _naked, _asm, _endasm with __naked, __asm, __endasm
8249
8250 2005-08-05 Raphael Neider <rneider AT web.de>
8251
8252         * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
8253           AOP_PCODE operands, fixes multibyte union-bitfield-accesses
8254
8255 2005-08-05 Borut Razem <borut.razem AT siol.net>
8256
8257         * device/lib/Makefile.in: added missing ';'
8258         * configure: removed ^M characters
8259
8260 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8261
8262         * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
8263           device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
8264           License
8265
8266 2005-08-04 Borut Razem <borut.razem AT siol.net>
8267
8268         * configure.in: pic16 libraries build 2nd try - enable running
8269           configure in device/lib/pic16
8270         * configure: regenerated from configure.in
8271         * device/lib/Makefile.in: create $(PORT)/bin directory
8272
8273 2005-08-03 Raphael Neider <rneider AT web.de>
8274
8275         * src/pic16/gen.c (pic16_derefPtr): NEW, single place
8276           to get/set values via pointers
8277         * (genUnpackBits,genPackBits): changed detection of
8278           ptr->bitfield vs. sym.bitfield, fixed access via generic
8279           pointers, removed dead (wrong) code for multibyte bitfields
8280         * (genNearPointerGet, genGenPointerGet): removed useless code,
8281           fixed bitfield detection, fixes #1250594
8282         * (genNearPointerSet): removed useless code
8283         * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
8284           and introduced macro pic16_emitpcode that conditionally emits
8285           the origin of the following pCode (useful for debugging SDCC)
8286         * src/pic16/pcode.c: changed (and disabled) some debug outputs
8287         * (createDefmap): fixed handling of LFSR for --optimize-df
8288
8289 2005-08-02 Borut Razem <borut.razem AT siol.net>
8290
8291         * device/lib/Makefile.in: pic16 libraries build enabled since
8292           gputils-0.13.2 are now localy installed at sourceforge's compile farm
8293
8294 2005-08-02 Raphael Neider <rneider AT web.de>
8295
8296         * src/pic16/gen.c (genPackBits): removed deprecated warning
8297         * (genGenPointerSet): fixed bitfield detection
8298
8299 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8300
8301         * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
8302
8303 2005-07-31 Raphael Neider <rneider AT web.de>
8304
8305         * device/lib/pic16/libdev/pic18f458.c,
8306           device/include/pic16/pic18f458.h: added missing T0CONbits
8307
8308 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
8309
8310         * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
8311
8312 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
8313
8314         * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
8315
8316 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8317
8318         * device/include/mcs51/at89c51ed2.h: added.
8319
8320 2005-07-23 Raphael Neider <rneider AT web.de>
8321
8322         * src/pic/gen.h: added emitpcode macro for debugging
8323         * src/pic/gen.c (emitpcode): renamed to emitpcode_real
8324           and replace by macro adding debug information on demand
8325         * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
8326         * (gencjne): tried to fix; replaced with correct (slower) code
8327         * (gen{Unp,P}ackBits): fixed single bit access
8328         * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
8329         * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
8330           previous instruction
8331         * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
8332           register has to be handled with care (forbidding movement
8333           of assignments/uses, removing assignments completely, ...)
8334         * (pCodeOptime2pCodes): make use of regIsSpecial
8335         * added lots of debugging output (commented out)
8336         * src/pic/rallloc.c (deassignLRs): prevent operand registers
8337           from being reused as result UNLESS it is known to work
8338
8339 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
8340
8341         * support/Util/dbuf.h: include <stddef.h> for size_t
8342         * .version: changed to version 2.5.2
8343
8344 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8345
8346         * src/SDCCloop.c (loopInvariants): fixed bug #1234048
8347
8348 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8349
8350         * src/hc08/gen.c (genMinus): fixed bug #1241835,
8351           (genModOneByte): removed needless psha/pula
8352
8353 2005-07-22 Raphael Neider <rneider AT web.de>
8354
8355         * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
8356           have PIC14 handled like PIC16, fixes broken pic14 linker calls
8357         * src/pic/gen.c (resolveIfx): do not "invent" labels
8358         * (genSkipc): changed to positive logic
8359         * (genSkipCond): removed as no longer needed
8360         * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
8361           backport from PIC16
8362         * (genLeftShift): check operands are in different registers
8363         * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
8364           INCF does not update CARRY...
8365         * src/pic/main.c: fixed _linkCmd
8366         * src/pic/pcode.c (unlinkpCode): added inactive code
8367         * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
8368           alive (do not assign result and operand overlapping registers)
8369
8370 2005-07-22 Raphael Neider <rneider AT web.de>
8371
8372         * src/pic/device.c (dump_sfr): replaced register declaration with
8373           call to emitSymbolToFile() to avoid duplicate symbols
8374         * (assignRelocatableRegisters): do not declare external symbols
8375         * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
8376           right (take size of type, not etype)
8377         * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
8378         * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
8379         * (packRegsForAccUse): disabled assignment of WREG as
8380           the result reg to prevent occurence of just fixed #1235003,
8381           fixes #1242954
8382         * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
8383           symbols (avoids duplicate symbols in .asm file)
8384         * (pic14emitRegularMap): use emitSymbolToFile()
8385         * src/pic/gen.c (aopOp): fixed spillLocation handling
8386         * (gen{Unp,P}ackBits): fixed acquiring bit-operands
8387         * (genDataPointerSet): removed unneccessary variables/output
8388
8389 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
8390
8391         * as/mcs51/lkarea.c: enlarged codemap for banked memory
8392         * device/lib/mcs51/crtbank.asm: added # to 0x0F
8393
8394 2005-07-21 Raphael Neider <rneider AT web.de>
8395
8396         * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
8397           architecture cannot handle them efficiently, fixes bug #1235003
8398         * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
8399           check for empty sets before using them (fixes bug #1232190)
8400
8401 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
8402
8403         * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
8404           (lnksect2): generate warnings for memory overlap
8405         * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
8406           constseg to set the name of these segments so you can instruct the linker
8407           to place them in banks
8408         * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
8409         * src/SDCCglobl.h: added MODEL_HUGE to enum,
8410           added code_seg and const_seg to options
8411         * src/SDCCglue.c (emitMaps): use options.const_seg,
8412           (createInterruptVect): put interrupt vectors in segment HOME,
8413           (glue): put HOME before static segment and put the main glue in HOME,
8414           (glue): use options.code_seg
8415         * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
8416         * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
8417           these segments so you can instruct the linker to place them in banks
8418           (linkEdit): use code_loc for HOME segment which should be the first
8419           segment in code memory now
8420         * src/SDCCmem.c: fixed more stuff like bug 1238386
8421         * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
8422           (changePointer): don't change function pointers to code pointers for
8423           banked functions,
8424           (compareType): added exceptional check for banked function pointers
8425         * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
8426         * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
8427           after static in code memory
8428         * src/mcs51/gen.c: added aopLiteralLong prototype,
8429           (aopForSym): use getSize for functions,
8430           (genCall): generate banked calls over one trampoline __sdcc_banked_call
8431           in HOME with lsb of address in r0, msb in r1 and bank in r2, use
8432           -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
8433           the segment,
8434           (genPcall): use call for literal function pointers and generate banked
8435           calls over the one trampoline so there's only one place for the user to
8436           modify according to his/hers hardware,
8437           (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
8438           (genPlusIncr): moved check icount>4 beyond inc dptr optimization
8439         * src/mcs51/main.c: added keyword banked,
8440           (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
8441         * support/Util/SDCCerr.c,
8442         * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
8443           needed for passing the bank and address to the trampoline
8444         * device/lib/mcs51/crtbank.asm: added for bankswitching
8445         * device/lib/mcs51/Makefile: added crtbank
8446
8447 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8448
8449         * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
8450           for fields at offset 0 of a struct or union as reported
8451           on 2005-07-07 in the developer mailing list.
8452
8453 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
8454
8455         * src/SDCCmem.c: fixed bug 1238386
8456
8457 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8458
8459         * src/mcs51/peeph.def: added labelrefcounting for peepholes
8460           (patch #1144962), added peephole 300, enabled 259.x
8461         * doc/sdccman.lyx: removed screenshot and provided link instead
8462
8463 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8464
8465         * doc/sdccman.lyx: added section about debugging with ddd
8466         * doc/figures/ddd_example.eps: screenshot of debugging session
8467
8468 2005-07-04 Raphael Neider <rneider AT web.de>
8469
8470         * src/pic/gen.c (genPointerGet): handle pointers to CONST values
8471           like CODE pointers, fixes #1115683
8472         * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
8473           call, fixes bugs #1232211, #1228110,
8474           fixed wrong casts to pCodeFlow from pCodeInstructions
8475
8476 2005-07-04 Raphael Neider <rneider AT web.de>
8477
8478         * src/pic/gen.c (popGet): changed assert to allow for
8479           bit operands
8480         * (popGetAddr): changed signature to provide
8481           an additional index, patched all call sites
8482         * (genCmpEq): handle literal-like operands correctly
8483         * (genAddrOf): added sanity checks on __code/__data pointers
8484         * (genAssign): added handling of symbols from __code section
8485         * (gencjne): do not generate code for comparisons whose result
8486           is neither stored nor used, fixes bug #1171114
8487         * (AccLsh, AccRsh): operate on operand instead of WREG
8488         * (shift{Left,Right}_Left2ResultLit): NEW, size independant
8489           replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
8490           by known count
8491         * rewrote complete shift-by-literal logic, commented unused
8492           functions out
8493         * (genConstPointerGet): get multiple bytes (if result size > 1),
8494           fixed handling of non-immediate addresses
8495         * (genPointerGet): handle CODE pointers like CONST pointers
8496         * (genpic14Code): insert C-SRC lines as Cource-pCodes
8497         * ({aop,op}_isLitLike): NEW, single place to decide whether an
8498           operand is to be treated as a literal or not
8499         * (mov2w,genPcall,genCmpEq),
8500           src/pic/genarith.c: use aop_isLitLike() to decide between
8501           literal/register contents
8502         * (addSign): added missing offset
8503         * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
8504           only emit comment in debug-mode,
8505           use {aop,op}_isLitLike throughout the file
8506         * src/pic/glue.c: fix initializers for pointers (work in progress)
8507         * src/pic/pcode.c (get_op): honor index on _const symbols
8508         * ({reset,dump}pCodeStatistics): NEW, estimate code size
8509         * (dumppBlock): added pCode size estimation
8510         * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
8511           check for IS_SYMOP before OP_SYMBOL'ing
8512         * fixed indentation, compacted switch-statements
8513         * (allocReg): find free register and allocate it instead of
8514           allocating new registers all the time
8515         * (deassignLRs): prevent POINTER_GET's from being assigned the same
8516           registers as its operands (necessary only for multibyte GETs)
8517
8518 2005-07-01 Raphael Neider <rneider AT web.de>
8519
8520         * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
8521           debugging .asm-output macros FENTRY + FEXIT
8522         * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
8523           way... I wonder...
8524         * (emitpComment): NEW, printf to pCode
8525         * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
8526           offset handling
8527         * (popGetAddr): NEW, variant of popGet to access an immediates
8528           high(er) bytes instead of the n'th byte of memory they reference,
8529           replaced popGet with popGetAddr where neccessary
8530         * (genDataPointerGet): reactivated and fixed implementation
8531         * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
8532           accesses
8533         * (genDataPointerSet): fixed multibyte assignments
8534         * (genpic14Code): fixed --i-code-in-asm handling
8535         * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
8536         * (genPlus): fixed index-out-of-bounds error
8537         * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
8538         * src/pic/ralloc.c: added debugging output macro FENTRY2
8539         * (spillThis): fixed indentation, enbraced for-body for clarity
8540         * (rematStr): commented out as now unused
8541         * (regTypeNum): commented out special spill case (overwrites
8542           arbitrary values)
8543         * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
8544
8545 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
8546
8547         * doc/sdccman.lyx: documented sfr16/sfr32,
8548           added example for using storage class with function pointers
8549         * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
8550
8551 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
8552
8553         * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
8554         * device/lib/_itoa.c,
8555         * device/lib/_ltoa.c: optimized codesize
8556         * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
8557           but don't know how to suppress the double warning.
8558         * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
8559         * support/Util/SDCCerr.c,
8560         * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
8561
8562 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
8563
8564         * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
8565           fixed old K&R prototypes
8566         * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
8567         * device/lib/_gptrget.c,
8568         * device/lib/_gptrgetc.c,
8569         * device/lib/_gptrput.c: changed versions for new memory indicator values,
8570           also new versions for small generic pointers and banked generic pointers
8571         * src/port.h: added const_name
8572         * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
8573         * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
8574         * src/SDCCcse.c (findPrevIc): check all associative operators
8575         * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
8576         * src/SDCCicode.h: added macro IS_ASSOCIATIVE
8577         * src/SDCCmem.c: updated comments,
8578           set far-space to 0 for pdata, results in optimized code
8579         * src/SDCCmem.h: added macro CONST_NAME
8580         * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
8581           moving the info into the highest bits, see also gptrget/gptrput
8582         * src/src.dsp: added sdcc.ico to project files
8583         * src/avr/gen.c (genCast): fixed bug 0x%d
8584         * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
8585         * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
8586           relation between ptr_type and DCL_TYPE,
8587           (genCast): fixed bug 0x%d
8588         * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
8589           (CODE)" for const_name
8590         * src/hc08/gen.c (genCast): fixed bug 0x%d
8591         * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
8592           (hc08_port): added "CONST (CODE)" for const_name
8593         * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
8594           (aopForRemat, adjustArithmeticResult): disconnected direct relation
8595           between ptr_type and DCL_TYPE,
8596           (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
8597           operand* and took AOP() inside function so sfr-ness can be checked,
8598           (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
8599           new prototype,
8600           (genFunction, genEndFunction): optimized stack setup,
8601           (genMinus): optimized for literals with ending zeroes (in bytes),
8602           (genCast): fixed bug 0x%d
8603         * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
8604           (mcs51_port): added "CONST (CODE)" for const_name
8605         * src/mcs51/peeph.def: made rule 226 more generic
8606         * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
8607         * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
8608         * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
8609         * src/z80/main.c (z80_port): added NULL for const_name,
8610           (gbz80_port): added NULL for const_name
8611         * support/regression/tests/bug663539.c,
8612         * support/regression/tests/sfr16.c: new tests
8613
8614 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8615
8616         * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
8617
8618 2005-06-24 Raphael Neider <rneider AT web.de>
8619
8620         * device/lib/pic16/libdev/pic18f[68][567]20.c:
8621           corrected typos...
8622         * device/include/pic16/signal.h: added USBIF
8623           and SIG_USB
8624
8625 2005-06-24 Raphael Neider <rneider AT web.de>
8626
8627         * device/lib/pic16/libdev/pic18f2455.c,
8628           device/include/pic16/pic18f2455.h: NEW
8629         * device/include/pic16/pic18fregs.h,
8630           device/lib/pic16/pics.all,
8631           src/pic16/device.c: added 18f2455
8632         * device/lib/pic16/libdev/pic18f[68][567]20.c,
8633           device/include/pic16/{pic18f[68][567].h,usart.h}:
8634           replaced MULTIPLE_USARTS define with more relaible
8635           compatibility sfrs (for USART access)
8636
8637 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
8638
8639         * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
8640           and the output asm file line is printed on two lines.
8641
8642 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8643
8644         * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
8645           BGT, BLE, BHI, and BLS instructions
8646         * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
8647           genCmpEq): removed
8648         * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
8649           negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
8650           fixes bug #1216342
8651         * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
8652
8653 2005-06-15 Raphael Neider <rneider AT web.de>
8654
8655         * src/pic16/NOTES: moved Vangelis from active developers to people to contact
8656         * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
8657         * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
8658           fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
8659           OP_SYM_TYPE() instead of OP_SYM_ETYPE()
8660
8661 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8662
8663         * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
8664           Marcel Telka in bug #1215704
8665
8666 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
8667
8668         * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
8669           located in shared memory bank.
8670
8671 2005-05-31 Raphael Neider <rneider AT web.de>
8672
8673         * src/pic16/{gen.c,genarith.c}: replaced sign-extension
8674           "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
8675           "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
8676
8677 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
8678
8679         * device/lib/_strncpy.c: fixed the fix
8680
8681 2005-05-26 Raphael Neider <rneider AT web.de>
8682
8683         * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
8684           initializers with \0, bug #1208187
8685         * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
8686           intializers with \0, bug #1208187
8687
8688 2005-05-26 Raphael Neider <rneider AT web.de>
8689
8690         * src/pic16/glue.c (pic16_printIvalChar): fixed string
8691           initializers with \0, bug #1208187
8692         * src/pic16/main.c (_process_pragma): added sanity checks
8693           for stack position and size, emit warnings when appropriate
8694
8695 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
8696
8697         * device/lib/_strncpy.c: fixed not filling with \0
8698
8699 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8700
8701         * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
8702           createFunction),
8703         * src/SDCC.y (external_definition, enumerator, parameter_declaration,
8704           compound_statement),
8705         * src/SDCCsymt.h,
8706         * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
8707
8708 2005-05-24 Raphael Neider <rneider AT web.de>
8709
8710         * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
8711
8712 2005-05-24 Raphael Neider <rneider AT web.de>
8713
8714         * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
8715           TRISE definitions, closes bug #1162453
8716
8717 2005-05-22 Raphael Neider <rneider AT web.de>
8718
8719         * src/pic16/main.c (_process_pragma): check for missing
8720           arguments to pragmas code and udata
8721         * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
8722           consistency fixes to match other headers (thanks to Jim Paris)
8723         * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
8724
8725 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
8726
8727         * src/SDCCicode.c (isOperandEqual): fixed missing ;
8728
8729 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
8730
8731         * support/regression/tests/bug1198642.c: new test
8732         * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
8733         * src/SDCCcse.c (findPrevIc): added comment, please have a look
8734         * support/scripts/resource.h,
8735         * support/scripts/resource.rc,
8736         * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
8737         * support/scripts/sdcc.ico: added 32x32 icon
8738
8739 2005-05-18 Raphael Neider <rneider AT web.de>
8740
8741         * device/lib/pic16/libdev/pic18f*.c,
8742         * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
8743           keywords to "__sfr" and "__at (X)"
8744         * device/include/pic16/pic18fregs.h: added pic18f4520
8745         * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
8746           #1203088 (MPLAB compatibility)
8747
8748 2005-05-17 Raphael Neider <rneider AT web.de>
8749
8750         * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
8751         * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
8752         * device/lib/pic16/pics.all: added new devices
8753         * src/pic16/device.c: added support for pic18f4520
8754
8755 2005-05-16 Raphael Neider <rneider AT web.de>
8756         * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
8757         * src/pic16/genarith.c (genAddLit): fixed bug 1202480
8758         * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
8759           convenience function for bit access
8760
8761 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
8762
8763         * device/lib/printf_large.c: fixed bug 1193299
8764         * support/regression/tests/bug1057979.c: added test %3.3s
8765
8766 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8767
8768         * device/include/mcs51/8051.h,
8769         * device/include/mcs51/8052.h: made parseable with lint
8770         * device/include/mcs51/lint.h: added include file for (sp)lint
8771         * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
8772         * doc/cdbfileformat.lyx,
8773         * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
8774
8775 2005-05-14 Raphael Neider <rneider AT web.de>
8776
8777         * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
8778         * device/lib/pic16/libc/stdlib/itoa.c (new)
8779         * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
8780         * device/lib/pic16/libio/Makefile: exclude subdir according to
8781           ${subdir}.ignore for certain PICs (lacking e.g. i2c)
8782         * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
8783         * src/pic16/gen.c (genFunction): prevent annoying warning
8784         * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
8785           nameclashes on BeOS
8786         * support/cpp2/cppmain.c (cpp_output_string): new
8787         * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
8788           fixes bug 1116802
8789
8790 2005-05-13 Borut Razem <borut.razem AT siol.net>
8791
8792         * src/SDCCmain.c (linkEdit): fixed bug 1195202
8793
8794 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8795
8796         * .version: changed to version 2.5.1; back to bleeding edge development
8797
8798 2005-05-11 Borut Razem <borut.razem AT siol.net>
8799
8800         * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
8801           generate PDF version 1.3 documents
8802
8803 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8804
8805         * .version: changed to version 2.5.0
8806
8807 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8808
8809         * doc/sdccman.lyx: updated weblinks, index and smaller updates
8810
8811 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8812
8813         * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
8814         --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
8815         well as many smaller updates.
8816         * .version: changed to version 2.5.0-pre1
8817
8818 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8819
8820         * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
8821
8822 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
8823
8824         * support/regression/tests/bug1185672.c: added
8825         * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
8826           bug 1185672
8827         * src/mcs51/gen.c (genCall): added comments, made it look safer
8828         * src/mcs51/gen.c (genEndFunction): simplified
8829
8830 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
8831
8832         * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
8833
8834 2005-04-14 Borut Razem <borut.razem AT siol.net>
8835
8836         * fixed bug 1045046 - SIGSEGV with really simple code?:
8837           src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
8838           src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
8839
8840 2005-04-14 Borut Razem <borut.razem AT siol.net>
8841
8842         * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
8843           src/pic16/device.h: temporarily disabled experimental #inline pragma
8844           for 2.5.0 release
8845
8846 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
8847
8848         * device/include/z80/stdio.h,
8849         * device/include/z80/string.h: removed these highly incomplete files so
8850           SDCC can use the default ones in device/include/
8851
8852 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8853
8854         * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
8855         gcc warning.
8856         * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
8857         fix sdcpp warnings.
8858
8859 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
8860
8861         * device/include/malloc.h: removed redundant __reentrant prototypes
8862         * device/lib/_mullong.c: added working xstack variant in asm (C version
8863           doesn't pass regression tests)
8864         * device/lib/bpx.c: used __data and made bpx char for mcs51
8865         * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
8866           (createFunction): fixed bug with xstackPtr
8867         * src/SDCCcse.c: corrected comments
8868         * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
8869           (killDeadCode, eBBlockFromiCode): removed unused code
8870         * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
8871           corrected comments
8872         * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
8873           assignResultValue, genCall, genFunction, genEndFunction, genAnd,
8874           genOr, genXor, genAddrOf): fixed several bugs concerning xstack
8875           (genModOneByte): fixed warning in MSVC
8876         * src/mcs51/main.c (): added comments
8877         * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
8878
8879 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
8880
8881         * src/SDCCmain.c (linkEdit): oops, changed one line too many
8882
8883 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
8884
8885         * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
8886
8887 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
8888
8889         * src/pic16/glue.c (printIvalChar): fixed bug when emitting
8890         characters arrays of larger size than the declared one.
8891
8892 2005-04-10 Borut Razem <borut.razem AT siol.net>
8893
8894         * src/pic/gen.c (genInline),
8895           src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
8896           (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
8897           (findNextInstruction), (findPrevInstruction),
8898           (findInstructionUsingLabel),
8899           src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
8900         * src/pic/pcode.c (findLabel): added missing '\n'
8901         * src/src.dsp: added SDCCdwarf2.c to the project
8902
8903 2005-04-09 Borut Razem <borut.razem AT siol.net>
8904
8905         * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
8906
8907 2005-04-08 Raphael Neider <rneider AT web.de>
8908
8909         * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
8910           into the chain after a given one) and mergeDefmapSymbols (combine
8911           defmap entries for each symbol per pcode)
8912         * (createDefmap): have defmap entries merged in the end
8913         * (defmapReplaceSymRef): split defmap entries covering two accesses to
8914           a symbol before replacing one access type's symbol, merge symbols in
8915           the end (replacement symbol might already have an entry)
8916         * (assignValnums): keep reference to written WREG intact
8917
8918 2005-04-08 Raphael Neider <rneider AT web.de>
8919
8920         * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
8921           Alpha)
8922
8923 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
8924
8925         * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
8926         bytes
8927
8928 2005-04-07 Raphael Neider <rneider AT web.de>
8929
8930         * device/include/pic16/usart.h: added compatibility defines for
8931           devices with more than one USART
8932         * device/include/pic16/pic18f[68][567]20.h: activated above defines
8933
8934 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
8935
8936         * device/lib/Makefile.in: updated for port specific include
8937
8938 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
8939
8940         * support/regression/ports/mcs51/spec.mk: added mcs51 include
8941
8942 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
8943
8944         * device/include/8051.h,
8945         * device/include/8052.h,
8946         * device/include/at89S8252.h,
8947         * device/include/at89c55.h,
8948         * device/include/at89x051.h,
8949         * device/include/at89x51.h,
8950         * device/include/at89x52.h,
8951         * device/include/mcs51reg.h,
8952         * device/include/reg51.h,
8953         * device/include/reg764.h,
8954         * device/include/regc515c.h,
8955         * device/include/sab80515.h: (re)moved these 12 files
8956         * device/include/mcs51/8051.h,
8957         * device/include/mcs51/8052.h,
8958         * device/include/mcs51/at89S8252.h,
8959         * device/include/mcs51/at89c55.h,
8960         * device/include/mcs51/at89x051.h,
8961         * device/include/mcs51/at89x51.h,
8962         * device/include/mcs51/at89x52.h,
8963         * device/include/mcs51/mcs51reg.h,
8964         * device/include/mcs51/reg51.h,
8965         * device/include/mcs51/reg764.h,
8966         * device/include/mcs51/regc515c.h,
8967         * device/include/mcs51/sab80515.h: and added them here
8968
8969 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
8970
8971         * device/include/stdarg.h: changed SDCC specific keywords to double
8972           underlined form.
8973         * device/include/stdint.h: changed intptr_t and uintptr_t for others than
8974           mcs51 and ds390.
8975         * device/include/hc08/mc68hc908gp32.h,
8976         * device/include/hc08/mc68hc908jb8.h,
8977         * device/include/hc08/mc68hc908jkjl.h,
8978         * device/include/hc08/mc68hc908qy.h: fixed comments
8979         * device/include/mcs51/README: updated
8980         * device/include/mcs51/c8051f120.h: added PINRSF
8981         * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
8982         * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
8983           amidst code. Also inline is not supported.
8984
8985 2005-04-06 Raphael Neider <rneider AT web.de>
8986
8987         * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
8988         * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
8989           callers stack/frame pointers
8990
8991 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
8992
8993         * device/include/pic16/usart.h: added, missing in previous commit,
8994         * device/include/pic16/adc.h: fixed typo,
8995         * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
8996         commit,
8997         * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
8998         <p18fxxx.inc>
8999         * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
9000         uninitialized because a bug appears with gplink
9001         * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
9002         COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
9003         complains for unrecognised option
9004
9005 2005-04-05 Raphael Neider <rneider AT web.de>
9006
9007         * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
9008           structs as well (using memcpy)
9009         * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
9010           on ISRs (GOTO has no label)
9011         * src/pic16/device.h: added OF_OPTIMIZE_DF
9012         * src/pic16/main.c: added compiler switch --optimize-df to enable the
9013           new data flow analysis/optimization
9014         * src/pic16/pcode.c: added (prototypes for and implementation of)
9015           dataflow analysis functions, fixed pCodeInstructions' inCond and
9016           outCond values, made RCALL a branch instruction
9017         * (pic16_unlinkpCode): keep C line if possible
9018         * (pic16_pCodeUnlink): removed cast on left side of assignment, have
9019           C line moved if possible
9020         * (pic16_getRegFrompCodeOp): NEW, improved version of...
9021         * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
9022           to use new pic16_getRegFrompCodeOp (works for more SFRs)
9023         * (pic16_BuildFlow): fixed skip instructions with label (did not start
9024           new flow)
9025         * (pic16_getJumptabpCode): NEW, needed in...
9026         * (LinkFlow): fixed handling of jumptables, calls and conditional
9027           branches
9028         * (pic16_InsertCommentAfter): NEW
9029         * (pic16_pCodeReplace): made verbose and flow preserving
9030         * (AnalyzeFlow): added call to data flow analysis
9031         * src/pic16/pcode.h: added defmaps to pCodeFlow struct
9032         * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
9033         * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
9034
9035 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9036
9037         * src/SDCCast.c (decorateType): fixed bug #1105626
9038
9039 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
9040
9041         * device/include/asm/pic16/features.h,
9042         * pic18f*.h headers,
9043         * device/include/pic16/adc.h,
9044         * device/include/pic16/delay.h,
9045         * device/include/pic16/i2c.h,
9046         * device/include/pic16/malloc.h,
9047         * device/include/pic16/stdio.h,
9048         * device/include/pic16/stdlib.h,
9049         * device/include/pic16/string.h,
9050         * device/lib/pic16/libc/stdio/printf_tiny.c,
9051         * device/lib/pic16/libc/stdio/printf_small.c,
9052         * device/lib/pic16/libc/stdio/strmgpsim.c,
9053         * device/lib/pic16/libc/stdio/strmmssp.c,
9054         * device/lib/pic16/libc/stdio/strmusart.c,
9055         * device/lib/pic16/libc/stdio/vfprintf.c,
9056         * device/lib/pic16/libc/stdlib/ltoa.c,
9057         * device/lib/pic16/libc/stdlib/putchar.c,
9058         * device/lib/pic16/libc/stdlib/x_ftoa.c,
9059         * device/lib/pic16/libc/stdlib/memchrpgm.c,
9060         * device/lib/pic16/libc/stdlib/memchrram.c,
9061         * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
9062         * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
9063         * device/lib/pic16/libio/adc/adcbusy.c,
9064         * device/lib/pic16/libio/adc/adcread.c,
9065         * device/lib/pic16/libio/adc/adcsetch.c,
9066         * device/lib/pic16/libio/usart/ubaud.c,
9067         * device/lib/pic16/libio/usart/ubusy.c,
9068         * device/lib/pic16/libio/usart/udrdy.c,
9069         * device/lib/pic16/libio/usart/uopen.c,
9070         * device/lib/pic16/libio/usart/uputc.c,
9071         * device/lib/pic16/libsdcc/gptr/gptrget1.c,
9072         * device/lib/pic16/libsdcc/gptr/gptrget2.c,
9073         * device/lib/pic16/libsdcc/gptr/gptrget3.c,
9074         * device/lib/pic16/libsdcc/gptr/gptrget4.c,
9075         * device/lib/pic16/libsdcc/gptr/gptrput1.c,
9076         * device/lib/pic16/libsdcc/gptr/gptrput2.c,
9077         * device/lib/pic16/libsdcc/gptr/gptrput3.c,
9078         * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
9079         specific keywords to double underlined form,
9080         * device/lib/pic16/libc/Makefile.rules,
9081         * device/lib/pic16/libsdcc/Makefile.rules,
9082         * device/lib/pic16/libm/Makefile,
9083         * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
9084         to compile with C standard set in Makefile.common
9085         * device/lib/pic16/libc/stdlib/Makefile: added new C sources
9086         rand.c and crc.c in compilation process,
9087         * device/lib/pic16/libsdcc/int/divuint.c,
9088         * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
9089         `c' from signed to unsigned,
9090         * device/lib/pic16/startup/crt0.c,
9091         * device/lib/pic16/startup/crt0i.c,
9092         * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
9093         keywords to double underlined form, bug fixes in _do_cinit function
9094         which prevented the correct initialization of the .idata segment,
9095         * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
9096         core to enter a infinite loop
9097         * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
9098
9099 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9100
9101         * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
9102
9103 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9104
9105         * device/include/Makefile.in: add support for hc08 subdirectory
9106         * device/include/hc08/: new subdirectory
9107         * device/include/hc08/mc68hc908jkjl.h: new header contributed by
9108         Lucas Loizaga, thanks!
9109         * device/include/hc08/mc68hc908qy.h,
9110         * device/include/hc08/mc68hc908gp32.h,
9111         * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
9112         their own directory. Changed internal macro names to use the compiler
9113         reserved namespace. Changed SDCC specific keywords to double
9114         underlined form.
9115         * device/include/math.h,
9116         * device/include/malloc.h,
9117         * device/include/stdarg.h,
9118         * device/include/stdbool.h
9119         * device/include/string.h,
9120         * device/include/tinibios.h,
9121         * device/include/ds400rom.h,
9122         * device/include/8051.h,
9123         * device/include/8052.h,
9124         * device/include/80c51xa.h,
9125         * device/include/at89c55.h,
9126         * device/include/at89S8252.h,
9127         * device/include/at89x51.h,
9128         * device/include/at89x52.h,
9129         * device/include/ds80c390.h,
9130         * device/include/reg764.h,
9131         * device/include/regc515c.h,
9132         * device/include/sab80515.h,
9133         * device/include/mcs51/c8051f000.h,
9134         * device/include/mcs51/c8051f018.h,
9135         * device/include/mcs51/c8051f020.h,
9136         * device/include/mcs51/c8051f040.h,
9137         * device/include/mcs51/c8051f060.h,
9138         * device/include/mcs51/c8051f120.h,
9139         * device/include/mcs51/c8051f300.h,
9140         * device/include/mcs51/c8051f310.h,
9141         * device/include/mcs51/c8051f320.h,
9142         * device/include/mcs51/c8051f330.h,
9143         * device/include/mcs51/c8051f350.h,
9144         * device/include/z180.h: Changed SDCC specific keywords to double
9145         underlined form.
9146
9147 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
9148
9149         * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
9150         18F4455,
9151         * (pic16_assignConfigWordValue): disable testing of configuration
9152         register value with config mask,
9153         * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
9154         function with port->fun_prefix,
9155         * (genFunction): when generating a naked interrupt function never
9156         create an absolute segment placed in interrupt vector address, place
9157         the actual interrupt function at IVA instead, when an interrupt
9158         function is generated with unspecified interrupt then do not create
9159         the absolute section,
9160         * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
9161         code for generating a call to generic pointer get/put function with
9162         a call to function pic16_callGenericPointer(),
9163         * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
9164         the call to the generic pointer get/put functions with prefixing the
9165         function name with port->fun_prefix,
9166         * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
9167         * src/pic16/main.c (_process_pragma): prefix function with
9168         port->fun_prefix,
9169         * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
9170         calling assembler, old 18Fxxxx macro is deprecated,
9171         * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
9172         PC_ASMDIR in while condition,
9173         * (findInstruction): add PC_ASMDIR in while condition,
9174         * (buildCallTree): prefix main with port->fun_prefix,
9175         * (pic16_pCode2str): fixed bug that didn't emit the memory access
9176         identifier for variable with banked access in instructions BTFSS,
9177         BTFSC, BCF, BSF, BTG
9178         * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
9179         * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
9180         * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
9181         perform optimization when enviroment variable NO_REG_OPT is set,
9182         * (insideLRBlock): NEW, return 1 if register is inside an
9183         INF_LOCALREGS block,
9184         * (RemoveRegFromLRBlock): remove a register that is completely
9185         eliminated by register optimization, but it is still left in local
9186         register store/restore in/from stack block,
9187         * (Remove2pcodes): after removing register, check to see if it
9188         should be removed from local register store/restore in/from stack
9189         block,
9190         * src/pic16/ralloc.c (pic16_decodeOp): added decode for
9191         DUMMY_READ_VOLATILE,
9192
9193         * device/include/pic16/adc.h: minor prototype modifications and
9194         update,
9195         * device/include/pic16/malloc.h: added GPL notice various
9196         modifications,
9197         * device/include/pic16/stdint.h: NEW, standard header for ints
9198         * device/include/pic16/delay.h: NEW, header for delay functions,
9199         delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
9200         delay1mtcy,
9201         * device/include/pic16/signal.h: NEW, header providing helper macros
9202         for implementing signal handlers,
9203         * device/include/pic16/stdio.h: added prototypes for functions,
9204         printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
9205         prototypes for stdin and stdout, added macro PUTCHAR to
9206         automatically implement putchar function prototype,
9207         * device/include/pic16/usart.h: modified and updated USART library,
9208         * device/lib/pic16/libio/adc/,
9209         * device/lib/pic16/libio/i2c: some modifications to improve library
9210         performance,
9211         * device/lib/pic16/libc/stdio/: modifications for the new printf*
9212         family of functions,
9213         * device/lib/pic16/libc/stdlib/: various modifications in the malloc
9214         family of functions and other sources,
9215         * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
9216         of the PIC18Fxx[28] devices,
9217         * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
9218         * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
9219         * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
9220         _do_cinit function, because the previous failed when local variables
9221         where not placed in the same memory bank,
9222         * device/lib/pic16/libsdcc/char/: various modifications to improve
9223         library performance,
9224         * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
9225         information on the new functions of the c library and more...
9226
9227 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9228
9229         * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
9230
9231 2005-03-26 Raphael Neider <rneider AT web.de>
9232
9233         * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
9234           if condition == CARRY)
9235         * (genCmp): adapted to new genSkipc semantics
9236         * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
9237           on rIfx (genCmp was broken)
9238
9239 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9240
9241         * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
9242         * src/z80/main.c (_keywords[]),
9243         * src/SDCCglobal.h (struct options),
9244         * src/SDCC.y,
9245         * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
9246         to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
9247         std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
9248         --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
9249         always available in leading double underscore form. The C99 support is
9250         mostly missing, but it's a start.
9251         * support/regression/tests/bug-227710.c: fixed nonconforming use of
9252         reserved identifier "__data".
9253
9254 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
9255
9256         * src/mcs51/peeph.def: fixed bug 1170013
9257
9258 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
9259
9260         * device/include/mcs51reg.h: fixed bug 842007
9261
9262 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9263
9264         * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
9265         last time.
9266
9267 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9268
9269         * src/port.h (struct PORT),
9270         * src/avr/ralloc.c (avr_assignRegisters),
9271         * src/avr/main.c,
9272         * src/ds390/ralloc.c (ds390_assignRegisters),
9273         * src/ds390/main.c,
9274         * src/hc08/ralloc.c (hc08_assignRegisters),
9275         * src/hc08/main.c,
9276         * src/mcs51/ralloc.c (mcs51_assignRegisters),
9277         * src/mcs51/main.c,
9278         * src/pic/ralloc.c (pic14_assignRegisters),
9279         * src/pic/main.c,
9280         * src/pic16/ralloc.c (pic16_assignRegisters),
9281         * src/pic16/main.c,
9282         * src/xa51/ralloc.c (xa51_assignRegisters),
9283         * src/xa51/main.c,
9284         * src/z80/ralloc.c (z80_assignRegisters),
9285         * src/z80/ralloc.h,
9286         * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
9287         * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
9288         * src/SDCCcse.h,
9289         * src/SDCCdflow.c (computeDataFlow),
9290         * src/SDCCdflow.h,
9291         * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
9292         * src/SDCCloop.h,
9293         * src/SDCCcflow.c (*),
9294         * src/SDCCcflow.h,
9295         * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
9296         * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
9297         of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
9298         immedDom() returning wrong block; probably fixes bug #1160833)
9299
9300 2005-03-20 Borut Razem <borut.razem AT siol.net>
9301
9302         * support/scripts/inc2h.pl: WIN32 port
9303
9304 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
9305
9306         * device/lib/makefile.in: added abs.c and labs.c
9307
9308 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
9309
9310         * device/include/stdint.h: added
9311         * device/lib/abs.c: added
9312         * device/lib/labs.c: added
9313         * device/include/stdlib.h: added abs() and labs() prototypes
9314         * device/lib/libsdcc.lib: added abs and labs
9315         * device/include/float.h,
9316         * device/lib/_fsmul.c,
9317         * device/lib/printf_fast.c,
9318         * device/lib/printf_tiny.c: updated comments
9319
9320 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9321
9322         * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
9323         bug #1164313
9324
9325 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9326
9327         * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
9328         * src/SDCCast.c (isLoopCountable): fixed bug #1161985
9329
9330 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
9331
9332         * device/lib/printf_large.c: removed inline assembly for portability and
9333           readability. Use printf_fast if speed or size are more important.
9334         * src/pic16/gen.c: removed conditions around use of DEBUGpc
9335         * src/pic16/genutils.h: added define for DEBUGpc for MSVC
9336
9337 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
9338
9339         * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
9340         prevent compiler warning
9341
9342 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
9343
9344         * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
9345         moved to level 0 and declared as static. Also they are explicit
9346         placed in access bank. This was necessery because some times they
9347         might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
9348         * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
9349         optimizations. Currently only compare to unsigned char is implemented,
9350         * src/pic16/gen.c: added fReturnIdx array,
9351         * (struct resolvedIfx) is moved to gen.h and made public,
9352         * (struct _G): added sregsAlloc and sregsAllocSet fields,
9353         * (aopForSym): added an optimization to directly store in stack of
9354         the operand of a SEND iCode,
9355         * (pic16_aopOp): don't return return registers as strings (AOP_STR)
9356         but as registers instead (AOP_REG) using the fReturnIdx array,
9357         * (pic16_freeAsmop): remove the freed register from the
9358         _G.sregsAlloc field,
9359         * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
9360         a compare of 'WREG',
9361         * (pic16_popGetTempRegCond): changed function prototype, now
9362         function takes also a bitVector argument v which holds the current
9363         set of registers that are allocated for stack access by aopForSym,
9364         registers allocated in aopForSym for accessing stack symbols are not
9365         any more part of the functions usedRegs field,
9366         * (genCall): some times aopOp is called for a stack variable to be
9367         send, aopForSym might perform the push, if this is true make sure
9368         that genCall doesn't push the variable twice by testing _G.resDirect,
9369         * (genFunction): changed testing for unspecified interrupt number
9370         from 256 to INTNO_UNSPEC,
9371         * modified selection scheme of frame pointer generation. Previously
9372         if function did use local registers a frame pointer was generated,
9373         now a frame pointer is generated only if function has arguments
9374         (that need PLUSW2 register access), or has stack arguments, or the
9375         compiler is not instructed to omit the frame pointer,
9376         * (genEndFunction): before restoring local registers that were saved
9377         in the function preamble, also restore the registers that *might*
9378         have been allocated for stack access,
9379         * (genRet): removed some old comments,
9380         * (genCmp, the active (RN's) version): added a call to the
9381         pic16_genCmp_special function to perform the compare with a more
9382         robust and optimized way,
9383         * (genInline): a feature has been added in inline code generation,
9384         which allows a wildcard variable substitution when writing inline
9385         assembly. Code is incomplete and experimental therefore undocumented,
9386         * (genCast): changed order of aopOp for result and right to allow
9387         aopForSym to directly load the result if possible,
9388         * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
9389         perform an optimized compare on some selected special occasions,
9390         * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
9391         * src/pic16/glue.c (pic16createInterrupVect): make sure we never
9392         generate an IVT any more,
9393         * src/pic16/main.c (pic16_optionsTable): added command line option
9394         --optimize-cmp,
9395         * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
9396         macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
9397         macros,
9398         * src/pic16/NOTES: Raphael Neider added in list of active developers
9399         * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
9400         jumptable_end to prevent bug #,
9401         * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
9402         inCond and outCond fields,
9403         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
9404         * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
9405         turn off register spilling,
9406         * (packRegsForOneUse): synced with other ports' versions although it
9407         is not used currently,
9408         * (pic16_packRegisters): added an optimization while reading
9409         structure bitfields, some registers may be saved (malloc code is
9410         decreased by 80 bytes)
9411
9412 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
9413
9414         * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
9415         left is a bitfield, if yes, then don't optimize assignment. Perhaps
9416         this can be optimized more?
9417
9418 2005-03-10 Raphael Neider <rneider AT web.de>
9419
9420         * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
9421           genNearPointerGet): (hopefully) fixed access to bitfields via
9422           pointers (p->bitN = x; and x = p->bitN; failed)
9423
9424 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
9425
9426         * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
9427
9428 2005-03-09 Raphael Neider <rneider AT web.de>
9429
9430         * src/SDCCopt.c (killDeadCode): fixed bug #1156016
9431
9432 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
9433
9434         * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
9435         * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
9436           (regTypeNum): set REG_BIT type if necessary
9437         * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
9438         * support/regression/tests/critical.c: check bug 1144613
9439
9440 2005-03-02 Raphael Neider <rneider AT web.de>
9441
9442         * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
9443
9444 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9445
9446         * src/avr/ralloc.c (serialRegAssign),
9447         * src/ds390/ralloc.c (serialRegAssign),
9448         * src/hc08/ralloc.c (serialRegAssign),
9449         * src/mcs51/ralloc.c (serialRegAssign),
9450         * src/pic/ralloc.c (serialRegAssign),
9451         * src/pic16/ralloc.c (serialRegAssign),
9452         * src/xa51/ralloc.c (serialRegAssign),
9453         * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
9454
9455 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
9456
9457         * src/SDCCast.c (decorateType): fixed bug 1124787
9458
9459 2005-02-20 Hubert Sack <sack AT digiplan.de>
9460         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9461
9462         * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
9463         patch #1121755
9464
9465 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9466
9467         * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
9468         to keep the correct label reference count when adding/removing references
9469         to labels. A peephole file using this is appended to patch #1144962.
9470
9471 2005-02-14 Raphael Neider <rneider AT web.de>
9472
9473         * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
9474         * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
9475         * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
9476           retrievals of result operand's value on assignment
9477
9478 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
9479
9480         * device/include/pic16/string.h: modified prototype for memccpy()
9481         to memccpy(void *, void *, char, size_t)
9482         * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
9483         check whether to omit frame pointer or not,
9484         * (genInline): convert all occurences of "\n" to LF in inline
9485         assembler blocks, this helps formatting the inline text,
9486         * (pic16_loadFSR0): modified prototype,
9487         * (genNearPointerGet, genNearPointerSet): reorganization of code,
9488         removed some 8051 legacy code,
9489         * (genPackBits): enabled handling bitfields exceeding one byte in size,
9490         * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
9491         before allocating temporary registers in functions,
9492
9493 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
9494
9495         * support/regression/tests/bitvars.c: corrected the "fix"
9496
9497 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
9498
9499         * support/regression/tests/bitvars.c,
9500         * support/regression/tests/bitwise.c,
9501         * support/regression/tests/rotate.c: "fixed" problems on Alpha
9502
9503 2005-02-10 Raphael Neider <rneider AT web.de>
9504
9505         * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
9506           different size for Alpha
9507         * src/pic16/gen.c (genCmpEq) : improved compare with 0
9508
9509 2005-02-09 Raphael Neider <rneider AT web.de>
9510
9511         * src/SDCC.lex(doPragma) : save and restore warning options as well
9512           (also added new stack plus clone- and copyAndFreeSDCCERRG())
9513         * have #pragma less_pedantic set the errorlevel to WARNING
9514           (fixes #1117001)
9515         * (cloneOptimize) : fixed wrong malloc's size
9516         * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
9517           facilitate correct handling of #pragma (save|restore)
9518
9519 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
9520
9521         * src/mcs51/gen.c: removed non-standard C nameless struct/union
9522
9523 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
9524
9525         * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
9526
9527 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
9528
9529         * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
9530
9531 2005-02-02 Raphael Neider <rneider AT web.de>
9532
9533         * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
9534         * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
9535         * (pic16_storeForReturn): fixed to allow returning function pointers
9536         * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
9537         * device/include/pic16/{stddef.h,stdbool.h}: added
9538
9539 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
9540
9541         * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
9542
9543 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
9544
9545         * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
9546         * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
9547          appeared to be required
9548
9549 2005-01-31 Borut Razem <borut.razem AT siol.net>
9550
9551         * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
9552           include/mcs51 and include/z80 directories to the package
9553
9554 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9555
9556         * src/hc08/gen.c (genFunction): fixed bug #1112752
9557
9558 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9559
9560         * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
9561
9562 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9563
9564         * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
9565
9566 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
9567
9568         * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
9569
9570 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
9571
9572         * device/include/c8051fxxx.h: removed these 6 files
9573         * device/include/mcs51/c8051fxxx.h: added these 11 new files
9574
9575 2005-01-26 Raphael Neider <rneider AT web.de>
9576
9577         * src/pic16/gen.c (genAssign): fixed assignment from longs
9578           in codespace (were cut to three bytes)
9579         * (genDummyRead): implemented (except for CODESPACE...),
9580           fixed bug #1108575
9581         * src/pic16/glue.c (emitStatistics): beautified
9582         * device/lib/pic16/libm/Makefile: added include path
9583
9584 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9585
9586         * src/z80/gen.c (aopPut): fixed bug #1103902
9587
9588 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9589
9590         * device/lib/expf.c: fixed bug #1095792
9591
9592 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
9593
9594         * device/lib/pic16/libm: added Math library sources
9595
9596 2005-01-24 Raphael Neider <rneider AT web.de>
9597
9598         * src/pic16/pcode.h: added second memory operand to pCodeOpReg
9599           to enable upcast to pCodeOpReg2 (there is no type tag to
9600           differenciate the two and pic16_popGet2p cast into PCOR2)
9601         * src/pic16/main.c (_process_pragma): fixed another malloc bug
9602           (sizeof(sectNames) changed to sizeof(sectName))
9603           Both patches fix segfaults under MinGW.
9604
9605 2005-01-23 Raphael Neider <rneider AT web.de>
9606
9607         * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
9608           Safe_[mc]?alloc()'ed variables
9609         * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
9610           of (byte sized) temporaries (assign them to WREG for now)
9611         * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
9612           (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
9613           this might fix SIGSEGVs on MinGW...
9614         * src/SDCCopt.c (killDeadCode): restored original behaviour
9615           (volatile operands might get thrown away though)
9616
9617 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
9618
9619         * src/pic16/gen.c: fixed bug #1106975,
9620         * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
9621         pointer update, INTCON is saved, global interrupts are disabled and
9622         restored after updateing TOS.
9623         * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
9624         * added function attribute 'shadowregs' to take advantage of shadow
9625         registers,
9626         * added function attribute 'wparam' as an alternative to the wparam
9627         pragma,
9628         * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
9629         user declares a non-ISR function as 'shadowregs',
9630         * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
9631
9632 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
9633
9634         * .version: bumped version number to 2.4.8
9635         * device/lib/pic16/pics.all: list of PIC18F devices supported by
9636         pic16 port,
9637         * device/lib/pic16/libio/i2c/: I2C module support library,
9638         * device/include/pic16/i2c.h: I2C support library header,
9639         * device/lib/pic16/libc/stdio/: standard IO support sources,
9640         * (printf_small.c): printf_small() source, supports float print,
9641         * (printf_tiny.c): printf_tiny() source, does not support floats,
9642         * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
9643         enable global optimizations for entire library source, other
9644         Makefiles in the source tree are also modified to reflect this,
9645         * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
9646         function,
9647         * doc/sdccman.lyx: updated to reflect new changes,
9648         * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
9649         sym->onStack if-case,
9650         * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
9651         sbit, idata, _idata, xdata, _xdata,
9652         * added pragma library, to link an external library, (see doc),
9653         * removed command line options, --pomit-config-words, --pomit-ivt,
9654         --pleave-reset-vector,
9655         * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
9656         when calling assembler to reflect memory model used, also define
9657         macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
9658         reflect stack model used,
9659         * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
9660         on stack return NULL,
9661
9662 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
9663
9664         * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
9665           of the operands is volatile. Fixes #1020220
9666
9667 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
9668
9669         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
9670         * (OptimizeRegUsage): make sure that there is really no other flow where
9671           the first pCode is used
9672
9673 2005-01-22 Raphael Neider <rneider AT web.de>
9674
9675         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
9676           to fix #1106967 (pCode->seq are not set up correctly)
9677
9678 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9679
9680         * src/SDCCglue.c (glue): make sure code area is declared before the
9681         static initialization area.
9682
9683 2005-01-21 Raphael Neider <rneider AT web.de>
9684
9685         * device/lib/Makefile.in: fixed test for pic16 install dir
9686         * device/lib/pic16/*/Makefile*: modified compile flags to enable
9687           optimizations
9688         * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
9689           added --optimize-goto compiler switch and pragma wparam documentation
9690         * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
9691         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
9692           and PRODH closing bug #1071770 (peephole optimizer)
9693
9694 2005-01-19 Raphael Neider <rneider AT web.de>
9695
9696         * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
9697           cmdLine buffers (used when calling sdcpp...) are large enough
9698           (MAX_PATH=256 truncates arguments leading to system halts when
9699           used in MinGW...)
9700         * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
9701         * (genUminus): rewritten to for efficiency
9702         * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
9703           used uninitialized in some cases)
9704         * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
9705           copy the third byte from the int -- now assumes 0x80 (data memory)
9706         * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
9707           operands (genAddLit expects the iCode's operands to swapped as
9708           well), fixed leftover bytes (crashed for short left operands)
9709         * (pic16_genMinusDec): performance improvements, removed false
9710           PIC14 emitSKPNCs
9711         * (pic16_genMinus): fixed to cope with differently sized operands
9712         * src/pic16/glue.c (pic16_glue): added new banksel optimization
9713           for --obanksel > 1
9714         * src/pic16/pcode.c: implemented (first phase of) banksel optimization
9715         * src/pic16/graph.[ch]: implementation of directed graphs, used by
9716           new banksel optimization
9717         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
9718           analysis for temporary registers (segfaults...)
9719         * src/pic16/peeph.def: added rule
9720
9721 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
9722
9723         * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
9724         which converts a float number to its ASCII representation
9725         * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
9726         functions to convert the fractional and integer part of a float to ASCII,
9727         * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
9728         realloc.c): added _MALLOC_SPEC to explicit place variables in data
9729         ram
9730         * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
9731         _STATMEM macros,
9732         * device/include/pic16/adc.h: added GPL info,
9733         * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
9734         a pCodeOp as tested operand,
9735         * (genNearPointerGet): optimized bit testing, does not use
9736         intermediate register for bit value, test directly instead with
9737         BTFSS, BTFSC, works only for single bits,
9738         * (genpic16Code): dump the name of the iCode in the asm,
9739         * src/pic16/ralloc.c (decodeOp): removed static declaration and
9740         renamed to pic16_decodeOp,
9741         * (serialRegAssign): do not allocate a temporary register for iCode
9742         sequences that test a single bit for 1/0
9743
9744 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
9745
9746         * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
9747         pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
9748         access stack and frame pointers. They are initially assigned to
9749         point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
9750         accessing SFRs. Updated all occurences of modification of stack or
9751         frame pointer in gen.c and pcode.c,
9752         * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
9753         assigning of a literal value to pointers,
9754         * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
9755         flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
9756         selected
9757
9758 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
9759
9760         * doc/sdccman.lyx: update documentation about stack pragma, added
9761         some info for stack memory models
9762
9763 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9764
9765         * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
9766
9767 2005-01-08 Raphael Neider <rneider AT web.de>
9768
9769         * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
9770           udata sections to fix bug #1097823
9771
9772 2005-01-05 Raphael Neider <rneider AT web.de>
9773
9774         * src/pic16/gen.c (genGenericShift): added handling of differently
9775           sized left operand and result
9776
9777 2005-01-04 Raphael Neider <rneider AT web.de>
9778
9779         * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
9780         * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
9781           to hold the condition bit)
9782         * added new version of genCmp (old code available via #define)
9783         * added new version of genShiftLeft/genShiftRight in a generic
9784           way, now supports shifting by negative values
9785         * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
9786           shiftCount (expected by genGenericShift)
9787         * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
9788         * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
9789           dump
9790         * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
9791           is an invalid literal too...)
9792
9793 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
9794
9795         * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
9796         from Raphael Neider,
9797         * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
9798         for 8-bit literals. This fixes some literal operands which are sign
9799         extended to 16-bits ints when instruction needs only 8-bits.
9800
9801 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
9802
9803         * device/lib/logf.c: added mcs51 assembly version
9804         * device/lib/expf.c: added mcs51 assembly version
9805         * device/lib/_logexpf.c: new shared asm code for expf and logf
9806         * device/include/math.h: add defines for assembly math library
9807         * device/lib/Makefile.in: build new _logexpf.c
9808         * device/lib/libfloat.lib: use new _logexpf.c
9809
9810 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
9811
9812         * src/pic/device.c
9813         * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
9814           device types which have less than 0x7f registers.
9815
9816 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
9817
9818         * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
9819
9820 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
9821
9822         * device/lib/printf_fast.c: only build on supported arch.
9823         * device/lib/printf_tiny.c: only build on supported arch.
9824         * device/lib/printf_fast_f.c: only build if asm float lib
9825         * device/lib/_fsget1arg.c: only build if asm float lib
9826         * device/lib/_fsget2args.c: only build if asm float lib
9827         * device/lib/_fsnormalize.c: only build if asm float lib
9828         * device/lib/_fsreturnval.c: only build if asm float lib
9829         * device/lib/_fsrshift.c: only build if asm float lib
9830         * device/lib/_fsswapargs.c: only build if asm float lib
9831         * device/include/stdio.h: don't provide print_fast,
9832           print_fast_f, print_tiny prototypes if --xstack used
9833
9834 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
9835
9836         * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
9837         * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
9838           to the SOURCES
9839
9840 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
9841
9842         * device/lib/printf_fast_f.c: same as printf_fast, but
9843           with floating point enabled
9844         * device/lib/printf_fast.c: minor tweaks
9845         * device/include/stdio.h: add printf_fast_f
9846
9847 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
9848
9849         * src/SDCCmain.c: make --float-reent default for mcs51
9850         * device/lib/_fsadd.c: added mcs51 assembly version
9851         * device/lib/_fssub.c: added mcs51 assembly version
9852         * device/lib/_fsmul.c: added mcs51 assembly version
9853         * device/lib/_fsdiv.c: added mcs51 assembly version
9854         * device/lib/_fseq.c: added mcs51 assembly version
9855         * device/lib/_fsneq.c: added mcs51 assembly version
9856         * device/lib/_fsgt.c: added mcs51 assembly version
9857         * device/lib/_fslt.c: added mcs51 assembly version
9858         * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
9859         * device/lib/Makefile.in: add _fscmp to build
9860         * device/lib/libfloat.lib: add _fscmp to build
9861
9862 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
9863
9864         * device/lib/_fs2slong.c: added mcs51 assembly version
9865         * device/lib/_fs2sint.c: added mcs51 assembly version
9866         * device/lib/_fs2schar.c: added mcs51 assembly version
9867         * device/lib/_fs2ulong.c: added mcs51 assembly version
9868         * device/lib/_fs2uint.c: added mcs51 assembly version
9869         * device/lib/_fs2uchar.c: added mcs51 assembly version
9870         * device/lib/_slong2fs.c: added mcs51 assembly version
9871         * device/lib/_sint2fs.c: added mcs51 assembly version
9872         * device/lib/_schar2fs.c: added mcs51 assembly version
9873         * device/lib/_ulong2fs.c: added mcs51 assembly version
9874         * device/lib/_uint2fs.c: added mcs51 assembly version
9875         * device/lib/_uchar2fs.c: added mcs51 assembly version
9876         * device/include/float.h: added #define to select asm vs c
9877
9878 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
9879
9880         * device/lib/printf_fast.c: improvements to float output
9881         * device/include/float.h: add defines for assembly float library
9882         * device/lib/_fsget1arg.c: receive 1 float arg
9883         * device/lib/_fsget2args.c: receive 2 float args (reentrant)
9884         * device/lib/_fsnormalize.c: normalize a float
9885         * device/lib/_fsreturnval.c: return float, various helper routines
9886         * device/lib/_fsrshift.c: right shift a float's mantissa
9887         * device/lib/_fsswapargs.c: swap 2 floats
9888         * device/lib/Makefile.in: build these 6 new files for mcs51
9889         * device/lib/libfloat.lib: add these 6 files to the library
9890
9891 2004-12-26 Borut Razem <borut.razem AT siol.net>
9892
9893         * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
9894           built by gcc 3.4.2
9895
9896 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
9897
9898         * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
9899           and fully reentrant and register bank neutral.
9900         * device/lib/printf_fast.c: added float (not enabled by default),
9901           added compact/slower integer (also not enabled by default),
9902           improved size/speed of fast integer code, other minor changes
9903         * device/include/stdio.h, device/lib/Makefile.in,
9904           device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
9905
9906 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
9907
9908         * src/pic16/pcode.c: declaring variables other than at the start of a
9909           block is not supported in C by VC6.
9910
9911 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
9912
9913         * applied a previous patch from Raphael Neider that wasn't included
9914         in the previous commits, which fixes infinite loops within jumptable
9915         improvements,
9916         * made some fixes that previous patches introduced
9917
9918 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
9919
9920         * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
9921         that fixes an issue with AOP_PCODE asmop's offset,
9922         * (pic16_popCopyReg): update instance field too,
9923         * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
9924         function of pic port,
9925         * (genCmp, genAnd, genAssign),
9926         * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
9927
9928 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
9929
9930         * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
9931         variables initial values to idata section,
9932         * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
9933         variables in some functions. This utilizes parmBytes field of iCode
9934         structure to hold the offset of the variable in stack. (might be
9935         able to use the stack field too?)
9936         * applied patch from Raphael Neider # ### , # ###
9937         * src/pic16/glue.c (pic16emitRegularMap): fix to print static
9938         variable initial values in idata section,
9939         * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
9940         for static variables with initial value
9941         * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
9942         applied fix in while loop from Raphael Neider.
9943
9944 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
9945
9946         * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
9947         * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
9948         * src/ds390/ralloc.c (serialRegAssign): spill bits
9949         * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
9950         * support/Util/SDCCerr.c,
9951         * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
9952         * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
9953         * support/regression/tests/bitwise.c: added test for bitwise complement(~)
9954
9955 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
9956
9957         * device/include/sdcc-lib.h: inserted LGPL, added includes
9958           asm/ds390/features.h and asm/mcs51/features.h
9959         * device/include/asm/default/features.h,
9960         * device/include/asm/gbz80/features.h,
9961         * device/include/asm/z80/features.h: added empty _AUTOMEM
9962           and _STATMEM
9963         * device/include/asm/ds390/features.h,
9964         * device/include/asm/mcs51/features.h: added files with defines for
9965           _AUTOMEM and _STATMEM indicating automatic and static storage class
9966         * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
9967         * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
9968         * src/SDCCicode.c (geniCodeCast),
9969         * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
9970         * src/SDCCloop.c (loopInduction): removed unused variable lr
9971         * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
9972           to convertToFcall to include char modulo (RFE 1065037), added check
9973           if left operand is unsigned and use abs of literal value
9974         * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
9975           as it doesn't work after conversion from peephole.def to peephole.rul
9976         * src/mcs51/gen.c (toBoolean): added check for size,
9977           (genModOneByte): optimized code for signed char modulo a literal
9978           power of 2 (thanks to Hubert Sack),
9979           (genRRC): removed unnecessary "clr c",
9980           (genRLC): replaced "add a,acc" with cheaper "rlc a"
9981         * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
9982           jump optimization,
9983           swapped rules 256.c and 256.d,
9984           extended 256.d by using new multiple checks (thanks Erik),
9985           added rules 256.e and 256.f,
9986           updated rule 261.a and 261.b to new generated code
9987         * support/regression/tests/muldiv.c: added test div/mod by a power of 2
9988
9989 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9990
9991         * src/SDCCloop.c (basicInduction, loopInduction): fixed several
9992           induction related bugs, including first part of bug #1074377
9993
9994 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
9995
9996         * applied patch from bug-report #1076292,
9997         * applied patches for genAnd and Goto-optimizations for Raphael
9998         Neider,
9999         * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
10000         dump a less iCode information,
10001         * src/pic16/device.h (pic16_options_t): added field debgen,
10002         * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
10003         DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
10004         * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
10005         puclic,
10006         * (various functions): added macros FENTRY and FENTRY2 to functions,
10007         to emit function prologue,
10008         * (various functions): fixed indentation,
10009         * (genNearPointerGet): fixed loading of FSR0,
10010         * (genPackBits): applied patch from Raphael Neider to fix updating
10011         of FSR0 and touching only the modified bits,
10012         * src/pic16/genarith.c (various functions): added macros FENTRY to
10013         emit function prologue in comments,
10014         * src/pic16/pcode.h: added functions debugf2, debugf3,
10015         * src/pic16/ralloc.c: partial fix for packForPush caused
10016         segmentation fault,
10017
10018 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10019
10020         * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
10021           <stsp AT users.sourceforge.net> with reversed byte order
10022         * support/regression/tests/rotate.c: added (ds390 skips some tests)
10023
10024 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10025
10026         * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
10027           bug #1074377
10028         * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
10029         * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
10030
10031 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
10032
10033         * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
10034
10035 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10036
10037         * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
10038           conditions,
10039           (setFromConditionArgs): friendly operand parser for peephole rules,
10040           (operandBaseName, operandsNotRelated): new peephole condition
10041           "operandsNotRelated" -- similar to "operandsNotSame", but takes
10042           architecture specific register naming into account, handles n-way
10043           comparisons, and supports quoted literals
10044         * src/mcs51/peeph.def: restored rule 177.d with an extra condition
10045
10046 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10047
10048         * src/mcs51/peeph.def: fixed bug #1076940
10049
10050 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
10051
10052         * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
10053
10054 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10055
10056         Adding support for replacing ljmps with sjmps in jumptables
10057         generated for switch statements. For now you need to set the
10058         environment variable SDCC_SJMP_JUMPTABLE to enable this.
10059         Now 4 algorithms for mcs51 jumptable generation are used:
10060         ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
10061         addresses loaded pc-relative for up to 112 cases and stack-pushing
10062         target addresses loaded with offset from dptr for up to 256 cases.
10063
10064         * src/SDCCpeeph.c: added peephole conditional labelJTInRange
10065         * src/mcs51/main.c: adapted constants for switch table generation
10066         * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
10067
10068 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
10069
10070         * device/lib/printf_large.c (_print_format): fixed bug 1073386
10071         * support/regression/tests/bug1057979.c: added test for bug 1073386
10072
10073 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
10074
10075         * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
10076         compilers
10077
10078 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
10079
10080         * src/pic16/device.h,
10081         * src/pic16/genarith.c,
10082         * src/pic16/glue.c,
10083         * src/pic16/main.c,
10084         * src/pic16/pcode.c: applied patches #1068154 and #1070213
10085
10086 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
10087
10088         Large cummulative patch for pic16 port.
10089         * device/lib/pic16/gstack.h: NEW, user can specify its own handler
10090         to call when a stack overflow occurs,
10091         * (malloc.h): added CVS Id tag,
10092         * (pic18f{242,252,442,452}.h): added T0CONbits structure and
10093         variable,
10094         * added libc directory. The current version of LibC contains string
10095         functions, ctype functions and macros and some functions of the
10096         stdlib set (like malloc/free/atof/atoi etc...). All functions are to
10097         be extensively tested in the future. Standard disclaimer here.
10098         Library is not automatically build yet. But one can build it by
10099         invoking 'make' inside the libc directory.
10100         * added ADC library under libio. Preliminary version yet.
10101
10102         * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
10103         * src/pic16/gen.c (aopForRemat): asmop size is filled by
10104         aopForRemat() now and not by pic16_aopOp(),
10105         * (pic16_popGetTempReg): removed warning messgae when allocating
10106         temporary registers, its a buggy feature and will be removed,
10107         * (pic16_popGet): set register instance field in AOP_CRY,
10108         * (pic16_outBitC): fixed for results in size greater than 1,
10109         * (genUminusFloat): fixed for pic16, ported code from mcs51,
10110         * (pic16_storeForReturn): optimized return of 0,
10111         * (genCmp): experimental code for new genCmp which uses PIC18's
10112         special compare&skip instructions. Initial tests fail some times
10113         with variables grater than 1 byte in size, so new code is disabled,
10114         * (genUnpackBits, genPackBits): more optimizations in reading/writing,
10115         a single bit,
10116         * (genCast): began a fix to optimize the casting of a bit to another
10117         bit, now assigning a bitfield to another bitfield will fail, sorry,
10118         * src/pic16/main.c: disabled the use of lr-support feature,
10119         * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
10120         * added some function prototypes, added function _debugf prototype,
10121         * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
10122         bits with offset (case PO_GPR_BIT),
10123         * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
10124         command line,
10125         * (isBankInstruction): modified to return 0 for no banking instruction,
10126         and 1 for banking instruction,
10127         * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
10128         caused stop processing pCodes after a inline assembly block,
10129         * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
10130         * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
10131         registers when it shouldn't,
10132         * src/pic16/ralloc.c (allocReg): add preliminary support for
10133         supporting a limited set of temporary registers,
10134
10135 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10136
10137         * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
10138           genDataPointerSet): ensure assignments always copy in MSB to LSB
10139           order,
10140           (loadRegFromAop): recognize CLRH optimization,
10141           (genFunction): optimize RECEIVE iCodes in reentrant functions
10142
10143 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10144
10145         * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
10146           --out-fmt-s19 turning into --out-fmt-elf if s19 was already
10147           selected.
10148         * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
10149         * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
10150           contiguous with data
10151
10152 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10153
10154         * device/lib/_gptrget.c (_gptrget),
10155         * device/lib/_gptrgetc.c (_gptrgetc),
10156         * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
10157           instead of sjmp to ret
10158         * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
10159           by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
10160
10161 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
10162
10163         * .version: bumped version to 2.4.7
10164         * device/lib/_gptrget.c (_gptrget): is now _naked
10165         * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
10166         * device/lib/_gptrput.c (_gptrput): is now _naked
10167         * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
10168           (createFunction): fixed xstack
10169         * src/SDCCglue.c (emitMaps): set allocation required for bit area
10170         * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
10171           or bit either,
10172           (geniCodeCritical): store original interrupt state in an iTemp bit
10173           var unless stack-auto
10174         * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
10175         * src/SDCCmain.c (setIncludePath): added include/target to search path
10176         * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
10177         * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
10178           prototype,
10179           (processFuncArgs): put bit vars in bit area
10180         * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
10181           unsaveRBank): fixed xstack,
10182           (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
10183           (genFunction, genEndFunction): fixed xstack,
10184           (genAssign): optimization don't walk backwards through mem
10185         * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
10186         * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
10187         * support/regression/Makefile: also make library (for stack-auto) when
10188           making "all" and added "test-mcs51-xstack-auto"
10189         * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
10190         * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
10191         * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
10192         * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
10193         * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
10194           make-library by MAKE_LIBRARY
10195         * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
10196           regression tests for xstack
10197         * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
10198         * support/regression/tests/critical.c: test for critical on mcs51
10199
10200 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10201
10202         * support/regression/ports/ucz80/spec.mk: use include and lib files from
10203           built version of sdcc instead of installed version
10204
10205 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
10206
10207         * src/mcs51/gen.c (toBoolean): fixed bug 1065458
10208         * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
10209           vprintf.c now
10210         * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
10211         * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
10212           WARNING: remove device/lib/build/z80/printf.o by hand when
10213           updating from previous build!
10214         * device/lib/z80/printf.c: updated comment
10215         * support/regression/tests/bug1057979.c: test all ports now
10216         * support/regression/tests/bug1065458.c: file added
10217
10218 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10219
10220         * src/z80/gen.c (genFunction, genEndFunction): avoided generating
10221           *_start and *_end symbols for static functions
10222
10223 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
10224
10225         * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
10226           and search crt0.o in all library paths,
10227           (setIncludePath): proper handling of --nostdinc,
10228           (setLibPath): proper handling of --nostdlib
10229         * support/regression/Makefile,
10230         * support/regression/ports/ds390/spec.mk,
10231         * support/regression/ports/gbz80/spec.mk,
10232         * support/regression/ports/hc08/spec.mk,
10233         * support/regression/ports/mcs51/spec.mk,
10234         * support/regression/ports/mcs51-large/spec.mk,
10235         * support/regression/ports/mcs51-stack-auto/spec.mk,
10236         * support/regression/ports/z80/spec.mk: use include and lib files from
10237           built version of sdcc instead of installed version
10238         * doc/sdccman.lyx: fixed typo in --nostdinc
10239
10240 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
10241
10242         * src/pic/pcode.c,
10243         * src/pic/device.c,
10244         * src/pic/ralloc.c,
10245         * src/pic/gen.c : added support to generate code for struct bit fields.
10246
10247 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
10248
10249         * as/xa51/xa_version.h,
10250         * device/include/errno.h,
10251         * device/include/regc515c.h,
10252         * device/lib/_itoa.c,
10253         * device/lib/_ltoa.c,
10254         * device/lib/ser_ir_cts_rts.c,
10255         * sim/ucsim/xa.src/glob.cc,
10256         * sim/ucsim/xa.src/inst_gen.cc,
10257         * sim/ucsim/xa.src/xa_bit.cc,
10258         * sim/ucsim/xa.src/xa_sfr.cc,
10259         * sim/ucsim/z80.src/inst_dd.cc,
10260         * sim/ucsim/z80.src/inst_fdcb.cc,
10261         * support/scripts/keil2sdcc.pl,
10262         * src/pic16/pic16.dsp,
10263         * src/pic16/pic16a.dsp: corrected cvs line endings
10264         * device/lib/printf_large.c: fixed bug 1057979
10265         * src/pic16/gen.c: fixed non-C standard code
10266         * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
10267         * src/SDCCglobl.h: changed pack_iram to no_pack_iram
10268         * support/regression/ports/mcs51/support.c: reload T1 asap
10269         * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
10270           pdata use and clear idata startup behaviour
10271         * support/regression/tests/bug1057979.c: added
10272
10273 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
10274
10275         * device/examples/ds390/ow390/ad26.h,
10276         * device/examples/ds390/ow390/cnt1d.h,
10277         * device/examples/ds390/ow390/crcutil.c,
10278         * device/examples/ds390/ow390/ownet.h,
10279         * device/examples/ds390/ow390/owsesu.c,
10280         * device/examples/ds390/ow390/swt12.h,
10281         * device/examples/ds390/ow390/swtoper.c,
10282         * device/examples/ds390/ow390/temp10.h,
10283         * device/examples/ds390/ow390/thermodl.c,
10284         * device/examples/ds390/tinitalk/tinitalk.dsp,
10285         * device/examples/ds390/tinitalk/tinitalk.dsw,
10286         * device/examples/mcs51/clock/hw.h,
10287         * device/examples/mcs51/simple2/go.bat,
10288         * device/examples/serialcomm/windows/serial.h,
10289         * device/examples/xa51/dummy.c,
10290         * device/examples/xa51/hello.c,
10291         * device/include/80c51xa.h,
10292         * device/include/at89x051.h: corrected cvs line endings
10293
10294 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
10295
10296         * src/pic16/main.c (options): added command line --gstack, to trace
10297         stack over/under flows,
10298         * added pragma 'wparam' to allow passing first byte of function
10299         parameters via WREG, syntax is #pragma wparam my_function[, func2...]
10300         * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
10301         call to __gstack_test function and sets up the symbol as extern,
10302         * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
10303         * popaop): added call to pic16_testStackOverflow,
10304         * (wParamCmp, inWparamList): NEW, test existence of a symbol in
10305         wparamList list,
10306         * (genCall, genPcall): now all parameters are passed via stack
10307         except in functions that are pass to wparam pragma in which WREG is
10308         used too,
10309         * (genPcall): REENTRANT flag is checked to see if variable prototype
10310         contains reentrant keyword, don't call a non-reentrant function, via
10311         a reentrant function pointer or vice versa, functions are never
10312         passed via WREG,
10313         * (genJumpTab): applied patch from bug #1057478 by R.Neider and
10314         D.Winkler,
10315         * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
10316         SIGSEGV when accessing a NULL register stucture,
10317         * (pic16_printGPointerType): modified to handle UPPER modifier for
10318         function initializers, changed prototype of function to simpler one,
10319         * (pic16_printIvalFuncPtr): check to see if function is already
10320         added in externs list,
10321         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
10322         optimized a move from W to SFR with a move to the same register
10323         later after a CALL,
10324         * device/lib/pic16/debug: NEW directory, contains debug features
10325         which are enabled when linking with libdebug.lib, currently command
10326         line option --gstack enables stack pointer tracing for over/under
10327         flow, corresponding sources are in debug/gstack
10328
10329 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
10330
10331         * doc/sdccman.lyx: updated SDCC version,
10332         * (PIC16 port): update list of command line options,
10333         * src/pic16/device.h (structure pic16_options_t): added field gstack
10334         to enable stack overflow tracing on push/pops,
10335         * src/pic16/device.c (statistics structure): added statistics
10336         structure,
10337         * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
10338         pic16_dump_int_registers): increase statistics counters for each
10339         * variable which is encountered
10340         * (pic16_dump_usection): emit each .udata variable to its own udata
10341         section,
10342         * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
10343         when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
10344         parameters via stack, otherwise use old scheme,
10345         * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
10346         assembler output file,
10347         * src/pic16/main.c: added command line options --gstack to enable
10348         push/pop tracing for stack overflow,
10349         * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
10350         instructions): added size of each instruction,
10351         * (pic16_countInstruction): estimate size of instructions in
10352         the_pFile list, inline assembly blocks are not counted,
10353         * (pic16_FixRegisterBanking): trace previous register usage, when
10354         banksel optimizations is greater than 0, don't emit a redudant
10355         banksel directive,
10356
10357 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
10358
10359         * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
10360         * src/pic16/ralloc.c : applied same fix for pic16.
10361         * src/pic/gen.c : tidied it up a little.
10362
10363 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10364
10365         * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
10366         thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
10367
10368 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10369
10370         * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
10371
10372 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10373
10374         * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
10375         non-reentrant function __modsint in the interrupt function (thus
10376         corrupting math operations during serial I/O)
10377         * device/lib/ser_ir.c: as above, changed buffersize
10378         * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
10379         256.c,d for zeroing
10380         * doc/Makefile: added option -t for rsync
10381
10382 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10383
10384         * src/SDCCast.h (struct ast),
10385         * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
10386
10387 2004-10-20 Borut Razem <borut.razem AT siol.net>
10388
10389         * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
10390         package
10391
10392 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
10393
10394         * device/lib/pic16/libsdcc/Makefile: added lregs directory in
10395         makefile targets,
10396         * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
10397         support functions to replace long sequences of MOVFF's from access
10398         bank registers to stack and vice versa,
10399         * src/pic16/device.h: added new field opt_flags, where optimization
10400         flags can be set to enable certain features,
10401         * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
10402         * pBlock, (genFunction, genEndFunction): surroung loop for
10403         saving/loading used registers in stack with PC_INFO pCodes,
10404         INF_LREGS. Code in between can then be optimized by pCode optimizer
10405         to support function calls,
10406         * (genDataPointerSet): fixed bug which loaded float fields in
10407         structures with corrupt data,
10408         * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
10409         in a standard way debug info on stderr. Feature used for developing
10410         and debugging only,
10411         * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
10412         obsolete chunks of code,
10413         * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
10414         * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
10415         * pic16/src/pcode.c (pic16_newpCodeInfo,
10416         * (pic16_newpCodeOpLocalRegs),
10417         * (pic16_convertLocalRegs2Support): NEW, to support new optimization
10418         feature,
10419         * (pic16_pCodeConstString): printing of the initial value of a
10420         symbol as a comment is inhibited since parsing was already done by
10421         copyStr and output is corrupt,
10422         * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
10423
10424 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10425
10426         * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
10427
10428 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
10429
10430         * as/mcs51/lkarea.c: removed old K&R style,
10431           (lnksect): changed check on boundary error,
10432           (lnksect2): changed check on boundary error,
10433           (lnksect2): extend XSTK to end of page if size = 1
10434         * as/mcs51/lkmain.c: removed old K&R style,
10435           (Areas51): create l_IRAM symbol
10436         * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
10437         * device/lib/Makefile.in: renamed model-mcs51-reentrant to
10438           model-mcs51-stack-auto, added model-mcs51-xstack-auto
10439         * device/lib/_mullong.c: added version to be compiled with xstack
10440         * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
10441         * device/lib/mcs51/crtxclear.asm: clear pdata as well
10442         * device/lib/mcs51/crtxstack.asm: fixed comment
10443         * src/SDCCglue.c: maxInterrupts defaults to 0,
10444           (emitMaps): added pdata,
10445           (createInterruptVect): (re)moved default,
10446           (glue): added pdata,
10447           (glue): moved __start__xstack to XSTK with default size 1
10448         * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
10449           and options.float_rent when options.stackAuto is set,
10450           (linkEdit): only write XDATA_NAME if provided on command line
10451         * src/SDCCmem.h,
10452         * src/SDCCmem.c: added pdata
10453         * src/port.h: added pdata_name to PORT
10454         * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
10455           (saveRegisters, unsaveRegisters): removed usage of B,
10456           (genMinus): fixed accumulator clash,
10457           (genJumpTab): added comment, this needs another look
10458         * src/mcs51/gen.c: added check for "B in use" paranoia,
10459           added pushB() and popB()
10460         * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
10461           chance
10462         * src/avr/main.c,
10463         * src/ds390/main.c,
10464         * src/hc08/main.c,
10465         * src/mcs51/main.c,
10466         * src/pic/main.c,
10467         * src/pic16/main.c,
10468         * src/xa51/main.c,
10469         * src/z80/main.c: (reset_regparms) made void parameter explicit and
10470           added PSEG (PAG,XDATA) or NULL to port specifier
10471         * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
10472         * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
10473           (_mcs51_genInitStartup): removed __start__xstack equ,
10474           (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
10475         * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
10476         * src/z80/gen.c (_rleAppend): fixed warnings
10477         * support/regression/tests/zeropad.c: added pdata test
10478         * .version: bumped to 2.4.6
10479
10480 2004-10-17 Borut Razem <borut.razem AT siol.net>
10481
10482         * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
10483         as a part of nightly build
10484
10485 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
10486
10487         * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
10488         WREG holds the first byte function parameters,
10489         * (aopForSym): take special case for symbols which are in FARSPACE
10490         but in CODESPACE too,
10491         * (assignResultValue): modified to take into account _G.useWreg,
10492         * (genCall): don't use wreg for parameter passing when function is
10493         declared as reentrant, too, added optimization INCF to stack
10494         pointer when stack parameter count is 1,
10495         * (genFunction, genEndFunction): refurnished and fixed to not using
10496         wreg for passing parameters when function has varargs or is
10497         reentrant, fixed bug with symbol name compare for generating
10498         functions in absolute address,
10499         * (pic16_storeForReturn): refurnished,
10500         * (genCmp): began writing a new version of the function, not ready
10501         yet, therefore it is disabled,
10502         * (genAssign): do not read code memory when assigning a function to
10503         a pointer function,
10504         * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
10505         array of characters, not pointer,
10506         * (pic16initialComments): in debug mode emit an .ident directive for
10507         the assembler,
10508         * (_process_pragma): emit a new warning type (internal to pic16)
10509         when setting stack to default length, emit a similar warning when
10510         placing a function at absolute address and address is not word aligned
10511         * (_pic16_parseOptions): added 'return TRUE' statement,
10512         * (_pic16_linkEdit): if compiling a source, then add the source's
10513         file object, first in the list of objects to link,
10514
10515 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
10516
10517         * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
10518         * src/pic/main.c : removed VC warning.
10519         * src/pic/gen.c : changed comment.
10520
10521 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
10522
10523         * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
10524         reference to a deprecated symbol _GPTRREG was causing failure to
10525         link. Thanks G. M. Gallant for the info.
10526
10527 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
10528
10529         * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
10530         comments for Bugs item #954788.
10531
10532 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
10533
10534         * src/pic16/device.c (pic16_dump_gsection,
10535         * pic16_groupRegistersInSection): handle symbols declared to be in
10536         access bank differently,
10537         * src/pic16/gen.c (struct _G): added field resDirect,
10538         * (aopForSym): if symbol on stack and iCode is '=' and result exists,
10539         send values read from stack directly to result and don't allocate
10540         temporary values,
10541         * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
10542         same registers,
10543         * (pic16_sameRegsOfs): NEW,
10544         * (freeAsmop): if _G.resDirect is set then do not mark registers as
10545         free because they were not allocated from temporary pool,
10546         * pic16_popRegFromString): workaround to fix a problem with
10547         allocating variables twice or never,
10548         * (genGenPointerGet): using PRODL instead of FSR0H,
10549         * (genGenPointerSet): using POSTDEC1 (that is a stack location)
10550         instead of FSR0H,
10551         * (genAssign): take advantage of the _G.resDirect flag,
10552         * (genCast): around line 11844, use mov2f instead of directly
10553         MOVFF'ing between operands to account for literal values,
10554         * src/pic16/genutils.c: some new debug functions for gpsim have been
10555         added,
10556         * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
10557         float with integer part only,
10558         * src/pic16/main.c (_process_pragma): handle pragma udata access to
10559         place variables in access bank
10560         * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
10561         updated sources to reflect recent changes in gen.c
10562
10563 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
10564
10565         * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
10566         sources that searched for headers in installation path, now the
10567         device/include/pic16 is used,
10568         * src/pic16/glue.c (pic16glue),
10569         * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
10570         .line directives if not in debug mode, this suppresses assembler's
10571         warnings for ignored directives
10572
10573 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
10574
10575         * src/port.h: made reset_regparms prototype void parameter explicit.
10576         * src/SDCCsymt.c (processFuncArgs): removed argument "func".
10577         * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
10578         * doc/sdccman.lyx: documented warning disabling and how to use
10579           printf_large to make it print floats.
10580         * device/include/stdbool.h: NEW
10581         * device/lib/_atof.c,
10582         * device/lib/_divuint.c,
10583         * device/lib/_divulong.c,
10584         * device/lib/expf.c,
10585         * device/lib/printf_large.c,
10586         * device/lib/sincosf.c,
10587         * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
10588         * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
10589           a completely reentrant lib.
10590
10591 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
10592
10593         * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
10594         * device/include/pic16/stdio.h: fixed bug with colon
10595
10596 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
10597
10598         * device/include/pic16/stdio.h,
10599         * device/include/pic16/stdlib.h,
10600         * device/include/pic16/math.h: NEW
10601         * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
10602         declared as _naked to reduce overhead
10603         * device/lib/Makefile.in (target port-specific-objects-pic16):
10604         changed * to *.* so to ignore the CVS directory,
10605         * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
10606         stacked variables back in stack,
10607         * (genEndFunction): fixed bug reported by G.M. Gallant with stack
10608         corruption
10609
10610 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
10611
10612         * .version: bumped version number to 2.4.5
10613         * support/Util/SDCCerr.h: added warning W_POSSBUG2.
10614         * support/Util/SDCCerr.c (messages structure): added entry for
10615         W_POSSBUG2
10616
10617         Large cumulative patch for pic16 port and libraries.
10618         * device/include/pic16/sdcc-lib.h,
10619         * device/include/pic16/stdarg.h,
10620         * device/include/asm/pic16/features.h,
10621         * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
10622         * device/include/pic16/float.h: changes reentrant keyword with
10623         _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
10624         * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
10625         updated target build-libraries to include objects from gptr,
10626         * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
10627         _IL_REENTRANT to all function headings, included sdcc-lib.h header,
10628         * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
10629         all function headings,
10630         * src/SDCCmain.c: added global parameter userIncDirsSet,
10631         * (parseCmdLine): when option -I is encountered add directory to
10632         userIncDirsSet too,
10633         * src/version.awk: added space between control and long,
10634         * src/pic16/NOTES: added some notes for the port,
10635         * src/pic16/gen.c: added prototype for mov2fp function,
10636         * (fReturnpic16[]): properly named return value registers,
10637         * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
10638         * (aopForSym): added code to handle symbols with onStack flag set,
10639         symbols onStack are allocated PTRSIZE bytes,
10640         * (aopFreeAsmop): handles special case where asmops are stack objects,
10641         * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
10642         * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
10643         added argument lock to trace flaws in allocating temporary registers
10644         when developing port,
10645         * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
10646         * (pic16_popRegFromString): reenabled allocating a direct register
10647         from string,
10648         * (assignResultValue): various beautifications,
10649         * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
10650         referenced function argument,
10651         * (genIpush): reenabled to allow stacked arguments, handles only
10652         ic->parmPush iCodes,
10653         * (genCall, genPcall): major changes to allow for variable argument
10654         functions, fixed a bug with falsely restoring stack pointer after
10655         returning from call,
10656         * (genFunction): pending code for critical function,
10657         * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
10658         * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
10659         * (genNearPointerGet): fixed bug with indirect reading, was always
10660         reading from INDF0
10661         * (genGenPointerGet, genGenPointerSet): rewrote to support generic
10662         pointers,
10663         * (genAddrOf): rewrote code to take address of a stacked function parameter
10664         * (genCast): fixed casting to generic pointer type,
10665         * src/pic16/gen.h: added AOP_STA,
10666         * (struct asmop): added field stk,
10667         * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
10668         * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
10669         * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
10670         * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
10671         * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
10672         * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
10673         generic pointers,
10674         * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
10675         and library paths,
10676         * (pic16_port structure): generic pointer size is set to 3,
10677         * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
10678         * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
10679         compiler warning,
10680         * src/pic16/ralloc.c (allocReg): prevent allocating register when
10681         operand is an iTemp,
10682
10683 2004-09-24 Martin Helmling <mh AT octo-soft.de>
10684
10685         * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
10686         * debugger/mcs51/simi.c: addapt new syntax of s51
10687
10688 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
10689
10690         * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
10691         * src/pic16/pcode.c: commented out some calls to free() in order to
10692         fix bug #989576,
10693
10694 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10695
10696         * src/SDCCicode.h,
10697         * src/SDCCicode.c (isiCodeInFunctionCall),
10698         * src/avr/ralloc.c (selectSpil),
10699         * src/pic/ralloc.c (selectSpil),
10700         * src/pic16/ralloc.c (selectSpil),
10701         * src/ds390/ralloc.c (selectSpil),
10702         * src/hc08/ralloc.c (selectSpil),
10703         * src/xa51/ralloc.c (selectSpil),
10704         * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
10705         stack in the middle of a function call sequence (fixes bug #1020268)
10706         * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
10707         costs associated with the minimum switch case.
10708
10709 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10710
10711         * src/SDCC.lex: fixed bug #1030549
10712
10713 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10714
10715         * src/SDCCcse.h (struct cseDef),
10716         * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
10717         over a function call if the CSE is derived from a symbol whose
10718         address has been taken (fixes bug #1029883)
10719         * support/regression/tests/bug-1029883: a new regression test for
10720         this bug
10721
10722 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10723
10724         * src/hc08/gen.c (emitinline): fixed bug #1029778
10725         * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
10726         to a cast object is no longer a syntax error ("fixes" bug #1030006,
10727         and starts toward RFE #905167)
10728
10729 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
10730
10731         * src/pic16/gen.c (mov2f): New function to move an operand to
10732         another without considering if it is a literal or a register,
10733         * (pic16_sameRegs): don't check if they are both AOP_REG,
10734         * (AccRsh): removed andmask=0 lines,
10735         * (genLeftShift): duplicated to be improved in future versions,
10736         * src/pic16/main.c (_process_pragma): emit stack default size in hex,
10737         * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
10738         in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
10739         * (pic16initMnemonics): added initialization for POC_INFSNZW,
10740         * (insertBankSwitch): fixed inserting banksel directives algorithm
10741         for instructions that follow a skip instruction, this fixes a report
10742         for broken subtraction code generation,
10743         * src/pic16/ralloc.c (deassignLRs): do not free register if current
10744         iCode is a left op, just in case result and right share the same
10745         registers
10746
10747 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10748
10749         * src/hc08/main.c,
10750         * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
10751         preservation of HX
10752         * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
10753         * src/mcs51/ralloc.c (packRegisters): removed the patch applied
10754         on 2004-09-12; it was buggy
10755
10756 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
10757
10758         * src/SDCCsymt.h: removed RESULT_CHECK
10759         * src/SDCCast.c,
10760         * src/SDCCglue.c,
10761         * src/SDCCval.c,
10762         * src/pic/glue.c,
10763         * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
10764
10765 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
10766
10767         * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
10768         * src/pic16/device.c (pic16_assignConfigWordValues): wrong
10769         configuration values no more rejected by compiler, they are assigned
10770         to configuration registers with a warning message instead,
10771         * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
10772         the for-loop so last conf register is emitted too,
10773         * (_pic16_initPaths): link library libsdcc.lib by default,
10774         * (_hasNativeMulFor): modified test for multiplication according to
10775         Raphael Neider's remarks. Integer multiplication is also done with
10776         support functions,
10777         * device/include/pic16/pic18fregs.h: corrected type error in while
10778         testing and including 18f6720 header file
10779
10780 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
10781
10782         * src/pic16/device.h (pic16_options): removed field use_crt,
10783         * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
10784         until an optimization to handle single bits is added,
10785         * (pic16_loadFSR0): moved before genUnpackBits,
10786         * (genAnd): some white lines removed,
10787         * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
10788         leave_reset flags in pic16_options when using crt modules,
10789
10790 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
10791
10792         * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
10793           for bugs 898889 & 979599. Also used some safer print instructions.
10794
10795 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
10796
10797         * src/pic16/device.h (pic16_options_t): added field use_crt,
10798         crt_name, no_crt,
10799         * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
10800         catch a probable future bug,
10801         * src/pic16/gen.c: aopIdx function commented out,
10802         * (genAssign): commented out old code which used aopIdx,
10803         * src/pic16/glue.c (pic16glue): removed some legacy fragments of
10804         code, added if conditionals to take into account the --use-crt
10805         command line options,
10806         * src/pic16/main.c (pic16_optionsTable): added new command line
10807         options, --use-crt= and --no-crt,
10808         * (_pic16_linkEdit): now the proper crt object is added in the
10809         linker command line except than when --no-crt is specified,
10810         * src/pic16/pcode.c,
10811         * src/pic16/pcode.h: added some structures and functions for a new
10812         optimization scheme to compansate for instruction overhead between
10813         same iCodes, this scheme is currently under development and is not
10814         working in any way,
10815         * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
10816         to && operator,
10817         * device/lib/pic16/startup/crt0i.c,
10818         * device/lib/pic16/startup/crt0iz.c: added global char variable
10819         __uflags to force the generation of an idata section
10820
10821 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
10822
10823         * doc/Makefile,
10824         * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
10825         * doc/sdccman.lyx: updated sdcc version to 2.4.4
10826
10827 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10828
10829         * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
10830         Frieder) and clarified the default code optimization mode
10831
10832 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10833
10834         * src/SDCC.lex (doPragma, process_pragma),
10835         * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
10836         "opt_code_size", and "opt_code_balanced"
10837         * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
10838         regrouped options by category, added support for category headers
10839         * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
10840         and "--opt-code-size"
10841         * doc/sdccman.lyx: documented these new options and pragmas
10842         * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
10843         preference into account
10844
10845 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
10846
10847         * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
10848           geniCodePreDec): Fixed bug 904237 by generating a warning
10849         * src/SDCCerr.h,
10850         * src/SDCCerr.c: added warning W_SIZEOF_VOID
10851
10852 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
10853
10854         * src/pic/device.c : When no max ram set validate full memory range.
10855         * src/pic/pcode.c,
10856         * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
10857
10858 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
10859
10860         * device/lib/_gptrget.c,
10861         * device/lib/_gptrput.c: updated comment
10862         * device/lib/calloc.c,
10863         * device/lib/free.c,
10864         * device/lib/malloc.c,
10865         * device/lib/realloc.c: added LGPL, made them reentrant-safe
10866         * src/SDCCcse.c (cseBBlock),
10867         * src/SDCCicode.c (printOperand, geniCodeArray),
10868         * src/SDCCicode.h (struct operand): fixed bug 868103
10869         * support/regression/tests/bug-868103.c: added
10870         * src/SDCCast.c (searchLitOp),
10871         * src/SDCCcse.h (struct cseDef),
10872         * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
10873         * src/SDCCicode.h (struct operand),
10874         * src/SDCCsymt.h (struct sym_link),
10875         * src/avr/gen.c (hasInc),
10876         * src/ds390/gen.c (hasInc),
10877         * src/hc08/gen.c (genPlusIncr, hasInc),
10878         * src/mcs51/gen.c (hasInc),
10879         * src/pic16/glue.c (pic16_printIvalChar),
10880         * src/pic16/ralloc.c (regWithIdx),
10881         * src/xa51/gen.c (hasInc) : removed warnings
10882         * src/SDCCast.c (createBlock): added comment ???
10883         * src/hc08/ralloc.c: updated comments
10884
10885 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10886
10887         * doc/sdccman.lyx: updated section on switch statements, added
10888         section about semaphore locking
10889         * doc/Makefile: added option -info for latex2html
10890         * device/lib/_gptrget.c,
10891         * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
10892
10893 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
10894
10895         * src/pic/device.h,
10896         * src/pic/device.c,
10897         * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
10898          maxram is less than 0x100.
10899
10900 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
10901
10902         * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
10903
10904 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10905
10906         * src/port.h,
10907         * src/mcs51/main.c,
10908         * src/ds390/main.c,
10909         * src/z80/main.c,
10910         * src/hc08/main.c,
10911         * src/pic/main.c,
10912         * src/pic16/main.c,
10913         * src/avr/main.c,
10914         * src/xa51/main.c
10915         * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
10916         a jump table is the best form for a switch statement, including
10917         automatic insertion of missing cases to make the case range
10918         continuous. Developed in collaboration with Frieder Ferlemann.
10919
10920 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10921
10922         * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
10923         accumulator result if it needs sign extension
10924
10925 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
10926
10927         * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
10928
10929 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
10930
10931         * device/lib/gbz80/printf.c,
10932         * device/lib/z80/printf.c: removed define for NULL
10933
10934 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
10935
10936         * as/xa51/xa_link.c,
10937         * device/examples/ds390/ow390/ad26.c,
10938         * device/examples/ds390/ow390/cnt1d.c,
10939         * device/examples/ds390/ow390/counter.c,
10940         * device/examples/ds390/ow390/ds2480.h,
10941         * device/examples/ds390/ow390/ds2480ut.c,
10942         * device/examples/ds390/ow390/findtype.c,
10943         * device/examples/ds390/ow390/gethumd.c,
10944         * device/examples/ds390/ow390/owllu.c,
10945         * device/examples/ds390/ow390/ownetu.c,
10946         * device/examples/ds390/ow390/swt12.c,
10947         * device/examples/ds390/ow390/swtloop.c,
10948         * device/examples/ds390/ow390/temp.c,
10949         * device/examples/ds390/ow390/temp10.c,
10950         * device/examples/ds390/ow390/thermo21.c,
10951         * device/examples/ds390/ow390/tinilnk.c,
10952         * device/examples/ds390/ow390/tstfind.c,
10953         * device/examples/serialcomm/windows/serial.cpp,
10954         * device/examples/serialcomm/windows/test_serialcomm.cpp,
10955         * device/include/reg51.h: fixed line endings for cvs
10956
10957 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10958
10959         * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
10960         packRegsForAccUse, packRegisters): new accumulator register
10961         packing algorithm
10962         * support/regression/ports/hc08/support.c (_putchar): suppress
10963         warning of unused variable
10964         * src/SDCCicode.c: added SWAP entry to codeTable
10965
10966 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
10967
10968         * device/lib/sprintf.c: forgot to add this file before previous commit
10969
10970 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
10971
10972         * src/pic16/gen.c (genPackBits): added operand right in function
10973         parameters, load result directly if p_type is POINTER (that is
10974         called by genNearPointerSet)
10975         * (genUnPackBits): added operand left in function parameters,
10976         * (genNearPointerGet, genNearPointerSet): prevent the loading of
10977         FSR0 if accessing bitfields,
10978
10979 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
10980
10981         * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
10982           _print_format; updated printf, sprintf, vsprintf
10983         * device/include/asm/default/features.h: corrected comment/define
10984         * device/lib/Makefile.in: added sprintf.c
10985         * device/lib/libsdcc.lib: added sprintf module
10986         * device/lib/printf_large.c,
10987         * device/lib/vprintf.c,
10988         * device/lib/sprintf.c: totally refactored printf_large and vprintf
10989           into these 3 files
10990         * support/regression/Makefile: changed ALL_PORTS into a usefull default
10991         * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
10992         * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
10993           hc08 test
10994         * support/regression/tests/zeropad.c: define idata as data for hc08
10995
10996 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10997
10998         * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
10999         * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
11000         labels are referenced at least once (even if a reference is not found)
11001         * src/hc08/gen.c (emitcode): set isComment flag for comments
11002         * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
11003         loads), rules 6a..6b (optimize jumps to return)
11004
11005 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11006
11007         * device/lib/acosf.c (acosf),
11008         * device/lib/asinf.c (asinf),
11009         * device/lib/atanf.c (atanf),
11010         * device/lib/ceilf.c (ceilf),
11011         * device/lib/cosf.c (cosf),
11012         * device/lib/coshf.c (coshf),
11013         * device/lib/cotf.c (cotf),
11014         * device/lib/fabsf.c (fabsf),
11015         * device/lib/floorf.c (floorf),
11016         * device/lib/log10f.c (log10f),
11017         * device/lib/logf.c (logf),
11018         * device/lib/sinf.c (sinf),
11019         * device/lib/sinhf.c (sinhf),
11020         * device/lib/sqrtf.c (sqrtf),
11021         * device/lib/tanf.c (tanf),
11022         * device/lib/tanhf.c (tanhf),
11023         * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
11024         replaced all instances of "reentrant" in the library functions
11025         defined in math.h with this macro.
11026         * support/regression/tests/float_trans.c: reenabled test for hc08
11027
11028 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
11029
11030         * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
11031         erroneously deleted
11032
11033 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11034
11035         * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
11036         * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
11037         multi-byte volatile operands are used
11038         * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
11039         * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
11040         initialization to area GSINIT0 so that it would always precede
11041         any static initializers in GSINIT
11042         * support/regression/tests/zeropad.c: fixed idata define for hc08
11043         * support/regression/tests/bug-927659.c,
11044         * support/regression/tests/float_trans.c: disabled tests for hc08
11045         pending missing library routines
11046         * .version: increased version number to 2.4.4 - hc08 port now passes
11047         regression tests
11048
11049
11050 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
11051
11052         * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
11053         * Makefile.common.in,
11054         * as/Makefile,
11055         * as/hc08/Makefile.in,
11056         * as/mcs51/Makefile.in,
11057         * as/z80/Makefile.in,
11058         * debugger/mcs51/Makefile.in,
11059         * device/include/Makefile.in,
11060         * device/lib/Makefile.in,
11061         * doc/Makefile,
11062         * link/Makefile,
11063         * link/z80/Makefile.in,
11064         * packihx/Makefile.in,
11065         * sim/ucsim/main_in.mk,
11066         * sim/ucsim/avr.src/Makefile.in,
11067         * sim/ucsim/doc/Makefile.in,
11068         * sim/ucsim/gui.src/serio.src/Makefile.in,
11069         * sim/ucsim/hc08.src/Makefile.in,
11070         * sim/ucsim/s51.src/Makefile.in,
11071         * sim/ucsim/xa.src/Makefile.in,
11072         * sim/ucsim/z80.src/Makefile.in,
11073         * src/Makefile.in,
11074         * support/cpp2/Makefile.in,
11075         * support/librarian/Makefile,
11076         * support/makebin/Makefile: added DESTDIR to the install path proposed
11077         by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
11078         * doc/sdccman.lyx: added DESTDIR documentation
11079
11080 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
11081
11082         * src/pic16/gen.c (genFunction, genEndFunction): fixed return
11083         instruction for interrupt handlers, use fast returns when returning
11084         from high priority interrupts
11085
11086 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11087
11088         * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
11089         code generation
11090         * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
11091         * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
11092         bugs, ported much of Bernhard's code from mcs51
11093         * src/mcs51/gen.c (genSend),
11094         * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
11095         than one when calling a reentrant function
11096         * device/lib/_mullong.c: defined an alternate struct layout for big
11097         endian ports (hc08)
11098
11099 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11100
11101         * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
11102         test
11103
11104 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11105
11106         * src/SDCCsymt.c (processFuncArgs): make sure parameter types
11107         are sane and complete before asking the port its prefered parameter
11108         passing method (fixes bug #1017633)
11109         * device/lib/hc08/_ret.c: added "data" storage class to _ret2
11110         and _ret3
11111
11112 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11113
11114         * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
11115         problem in bitfields >= 8 bits.
11116
11117 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
11118
11119         * src/SDCCsymt.c: undid changes that were not meant to be committed
11120
11121 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
11122
11123         * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
11124
11125 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
11126
11127         * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
11128           copied and wrong bit got inverted
11129
11130 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11131
11132         * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
11133         genFarPointerSet into genPointerSet; eliminated genFarPointerSet
11134         * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
11135         genFarPointerGet into genPointerGet; eliminated genFarPointerGet
11136         * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
11137         assignments to bitfields at known addresses
11138         * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
11139         reads from bitfields at known addresses
11140         * src/hc08/ralloc.c (packRegisters),
11141         * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
11142         genhc08Code): optimize pointer get values used as conditionals
11143         * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
11144         and branch
11145
11146 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11147
11148         * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
11149         genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
11150         * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
11151         as conditionals
11152
11153 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11154
11155         * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
11156
11157 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11158
11159         * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
11160         related problems
11161
11162 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
11163
11164         * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
11165
11166 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11167
11168         * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
11169         mcs51 port
11170
11171 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
11172
11173         * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
11174
11175 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11176
11177         * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
11178         cases use more compact code.
11179
11180 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
11181
11182         * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
11183
11184 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11185
11186         * src/SDCClrange.c (findPrevUse): fixed bug #1007371
11187
11188 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11189
11190         * src/SDCCsymt.h,
11191         * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
11192         parameter of changePointer() from symbol* to sym_link*
11193         * src/SDCCast.c (decorateType): call changePointer() for CAST op
11194         * src/SDCCsymt.c (compareType): void* type is castable to other
11195         pointers, but not necesarily an exact match.
11196         * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
11197         is no longer blindly treated as an exact match.
11198         * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
11199
11200 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
11201
11202         * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
11203
11204 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
11205
11206         * src/pic/gen.c,
11207         * src/pic/pcode.c,
11208         * src/pic/ralloc.h,
11209         * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
11210
11211 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
11212
11213         * src/pic/device.c,
11214         * src/pic/device.h,
11215         * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
11216
11217 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11218
11219         * src/mcs51/gen.c (emitcode): fixed bug #992819
11220
11221 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
11222
11223         * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
11224           there's no need to make it worse
11225
11226 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11227
11228         * src/mcs51/ralloc.c (deassignLR),
11229         * src/ds390/ralloc.c (deassignLR),
11230         * src/hc08/ralloc.c (deassignLR),
11231         * src/z80/ralloc.c (deassignLR),
11232         * src/pic/ralloc.c (deassignLR),
11233         * src/pic16/ralloc.c (deassignLR),
11234         * src/avr/ralloc.c (deassignLR),
11235         * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
11236         rlivePoint): fixed another part of bug #971834
11237
11238 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11239
11240         * src/z80/main.c: enabled "critical" keyword
11241         * src/z80/mappings.i,
11242         * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
11243         functions (fixes bug #979646)
11244         * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
11245
11246 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11247
11248         * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
11249           such as c:\mydir.
11250
11251 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
11252
11253         * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
11254           doesn't disable too much optimizations
11255
11256 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
11257
11258         * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
11259
11260 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
11261
11262         * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
11263
11264 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
11265
11266         * src/pic/gen.c tidied up tabs
11267         * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
11268         * src/pic/main.c tidied up tabs
11269         * src/pic/pcode.c tidied up tabs and disabled verbose code generation
11270         * src/pic/pcoderegs.c tidied up tabs
11271         * src/pic/ralloc.c tidied up tabs
11272
11273 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
11274
11275         * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
11276         to S_FIXED for pic16 port and when symbol is not in level 0,
11277         allocate for S_REGISTER storage class and pic16 port, too,
11278         * src/pic16/device.h: prototype for checkSym,
11279         * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
11280         * (pic16_assignConfigWordValue): test the value and the mask to
11281         validate that the value is suitable for the configuration word,
11282         * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
11283         collect extern declared symbols, don't emit symbol twice, check
11284         first if symbol is in publics set first,
11285         * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
11286         * added command line '--fstack' which enables an experimental
11287         feature for stack access, too buggy to be used yet...
11288         * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
11289         * (pic16_allocDirReg): when register has storage class S_REGISTER
11290         allocate in pic16_dynAccessRegs,
11291         * device/include/pic16/pic18f????.h: modified configuration word
11292         naming convention, words started as CONFIG0H but should be CONFIG1H
11293
11294 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
11295
11296         * device/include/mcs51reg.h: fixed bug 970993
11297
11298 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
11299
11300         * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
11301         * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
11302         * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
11303         * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
11304         * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
11305         * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
11306           error/warning numbers,
11307           added function setWarningDisabled()
11308         * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
11309         * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
11310           _memcmp.c _memmove.c calloc.c realloc.c free.c
11311         * support/regression/tests/malloc.c: added tests for new functionality
11312         * support/regression/tests/zeropad.c: added tests for truncated initializers
11313           and initialized char arrays starting with '\x0'
11314         * src/mcs51/peeph.def: fixed regression, added peephole 177.f
11315
11316 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
11317
11318         * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
11319
11320 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11321
11322         * doc/sdccman.lyx: updated example in section "Absolute Addressing"
11323         * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
11324         peephole 177.e. Thanks to anonymous
11325
11326 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
11327
11328         * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
11329         function isn't used in the source but referenced as a
11330         variable initializer then declare it as extern in .asm file
11331
11332 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
11333
11334         * .version: increased version number to 2.4.3
11335
11336         Adding version extension according to ChangeLog CVS revision
11337         * src/Makefile.in (target all): added dependency 'version.h'
11338         * (rule version.h): added rule to create version.h from ChangeLog,
11339         * (rule dep): added dependency version.h,
11340         * src/version.awk: AWK script to create version.h
11341         * src/SDCCdwarf2.c (dwWriteModule),
11342         * src/SDCCglue.c (initialComments),
11343         * src/SDCCmain.c (printVersionInfo): modified to write after
11344         version string the version extension number,
11345         * src/SDCCutil.c: included "version.h"
11346         * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
11347         number,
11348         * src/SDCCutil.h: added prototype for getBuildNumber
11349
11350         * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
11351         includeDirsSet, too,
11352         * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
11353         const char [] is found in function prototype...
11354
11355         * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
11356         moving to WREG with source is already in WREG,
11357         * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
11358         * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
11359         * (aopForSym): stack'ed symbols are partially supported, added
11360         if-clause to support symbols in FARSPACE,
11361         * (sameRegs): added test for AOP_ACC to see if registers are same,
11362         * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
11363         * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
11364         * (pic16_popRegFromString): will not allocate a new register if it
11365         doesn't find one by name, bug may have introduced...
11366         * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
11367         * (genIpush): revived to use pic16 port's stack,
11368         * (genAddrOf): added incomplete case for stack'ed operand,
11369         * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
11370         * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
11371         can handle multibyte operands,
11372         * src/pic16/glue.c (pic16_printIval*): some debug info added,
11373         * (pic16initialComments): added message for MPLAB compatibility
11374         mode enabled,
11375         * src/pic16/main.h: prototype for pic16_mplab_comp,
11376         * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
11377         which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
11378         * (_pic16_linkEdit): NEW, handles link stage, transferred here
11379         because of increased complexity of procedure,
11380         * (_process_pragma): stack pragma changed to format 'stack pos len',
11381         emit symbol '_stack_end' to conform with gplink,
11382         * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
11383         to search for register,
11384         * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
11385         PO_GPR_REGISTER,
11386         * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
11387         #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
11388         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
11389         case for PO_GPR_REGISTER,
11390         * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
11391         dies, the new era is ahead !...
11392         * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
11393         pic16_dynInternalRegs,
11394         * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
11395         * (pic16_allocDirReg): minor optimizations and bug fixes,
11396         * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
11397
11398         * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
11399         load stack and frame pointer with address of 'stack_end' symbol
11400
11401 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
11402
11403         * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
11404         without source code but only variable initializers
11405
11406 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
11407
11408         * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
11409         external are not declared as extern to reduce overhead while linking
11410
11411 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
11412
11413         * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
11414
11415 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
11416
11417         * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
11418           Yee Keat for the patch
11419         * src/SDCCast.c (decorateType): fixed bug #979599
11420         * src/ds390/gen.h: removed local fReturnSizeDS390
11421         * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
11422         * src/ds390/gen.c (genAnd, genOr, genXor),
11423         * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
11424
11425 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
11426
11427         * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
11428         add relFilesSet to $3, manipulate $2 to handle linking of object
11429         files without source files in command line,
11430         * device/include/pic16 (all headers): added ID location macros,
11431         * src/pic16/device.c (struct PIC16_device Pics16[]): added field
11432         entries for ID location bytes,
11433         * (pic16_assignIdByteValue): NEW,
11434         * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
11435         added field dumpcalltree to pic16_options_t,
11436         * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
11437         is used instead of pic16_Gstack_base_addr, check if (ifx) before
11438         emitting rFalseIfx label after check_carry label,
11439         * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
11440         pic16_emitDIRegs), NEW
11441         * (pic16glue): dump .calltree file when option --calltree found,
11442         * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
11443         * (_pic16_genAssemblerPreamble): emit ID locations after
11444         configuration registers,
11445         * (pic16_linkCmd): modifications of the link command,
11446         * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
11447         * (pic16_pCodeInitRegisters): don't init stack registers,
11448         * (pic16_findPrevInstruction): fixed bug,
11449         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
11450         bug with immediate registers,
11451         * (buildCallTree): traces stack push and pop,
11452         * (pct2): dump also stack usage for each function,
11453         * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
11454         * (pic16_allocDirReg): various modifications,
11455         * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
11456         fixed to 1,
11457
11458 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
11459
11460         * src/pic16/pcode.c: removed buggy double colon
11461
11462 2004-07-01 Borut Razem <borut.razem AT siol.net>
11463
11464         * support/scripts/sdcc.nsi: added include/pic16 to setup
11465
11466 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
11467
11468         * device/lib/Makefile.in: fixed bug in target objects-pic16,
11469         * device/lib/pic16/Makefile: prefixed with dash (-) command under
11470         target 'clean',
11471         * doc/sdccman.lyx: changed version to 2.4.2 and added some port
11472         specific command line arguments. Also added sample lkr script
11473         for placing a variable at a specific memory bank.
11474         * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
11475         at a specific memory bank,
11476         * (pic16_dump_isection): fixed bug which caused string literals to
11477         be omitted when dumping idata section,
11478         * (pic16_groupRegistersInSection): added code to handle registers
11479         in specific memory banks,
11480         * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
11481         public, all references are renamed too,
11482         * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
11483         AOP_DPTR2,
11484         * (pic16_storeForReturn): added case to handle when dest is WREG,
11485         * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
11486         * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
11487         pic16_rel_udata, check to see if that register is marked as being
11488         a member of a specific memory bank,
11489         * (pic16_printIvalCharPtr): added code to add string literals either
11490         to code or the idata sections,
11491         * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
11492         also accept the 'udata' pragma,
11493         * src/pic16/main.h: new structure types sectName and sectSym
11494         * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
11495         * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
11496         * (pic16_findPrevInstruction): fixed, it returned nothing,
11497         * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
11498         instruction combinations,
11499         * (pic16_FixRegisterBanking): heavily reorganised,
11500         * (pic16_AnalyzeBanking): if generating banksel directives is
11501         disabled, then don't call FixRegisterBanking at all,
11502         * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
11503         completely removed,
11504         * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
11505
11506 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
11507
11508         * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
11509         Phuah Yee Keat <yk.phuah AT nestac.com>
11510
11511 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
11512
11513         * src/pic16/glue.c (pic16createInterruptVect): function now emits
11514         correctly the IVT even if it is relocated to some other location
11515
11516 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
11517
11518         * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
11519         * device/include/pic16/pic18f2220.h: NEW,
11520         * device/lib/pic16/libdev/pic18f2220.c: NEW,
11521         * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
11522         * src/pic16/device.c (struct Pics16): added info for 18f2220,
11523         * src/pic16/device.h (struct pic16_options): added ivt_loc and
11524         nodefaultlibs, ivt_loc is the location of the interrupt vector
11525         table, and nodefaultlibs signs that default libraries should not be
11526         linked in link stage,
11527         * src/pic16/gen.c (genFunction): relocate interrupt vector functions
11528         according to --ivt-loc argument,
11529         * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
11530         when pragma stack is found,
11531
11532 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11533
11534         * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
11535         256 (range check), 257 (do while), 258.a-f (bit banging
11536         f.e. on 3-wire SPI bus)
11537
11538 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11539
11540         * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
11541         variables used exclusively within a loop
11542
11543 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
11544
11545         * src/mcs51/gen.c (genCpl): quick fix for bug #974835
11546
11547 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11548
11549         * src/SDCClrange.c (computeClash): fixed bug #971834
11550
11551 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11552
11553         * src/mcs51/gen.c (genCmp): fixed bug #975903
11554         * src/hc08/gen.c (operandsEqu),
11555         * src/ds390/gen.c (operandsEqu),
11556         * src/z80/gen.c (operandsEqu),
11557         * src/pic/gen.c (operandsEqu),
11558         * src/pic16/gen.c (operandsEqu),
11559         * src/mcs51/gen.c (operandsEqu): fixed bug #976283
11560         * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
11561
11562 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11563
11564         * src/SDCCcse.c (cseBBlock): fixed bug #966963
11565
11566 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
11567
11568         * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
11569         default case in switch statement,
11570         * glue.c (pic16_initPointer): expr is initialised via decoarteType
11571         to eliminate problem with initialisation of pointers, but problem
11572         still exists,
11573         * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
11574         * (emitStaticSegment): removed various lines emitting debug info,
11575         * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
11576         added processor registers for utilizing EEPROM,
11577         * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
11578         configurable and set 8
11579
11580 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
11581
11582         * .version: increased version number to 2.4.2,
11583
11584         Cumulative patch for pic16 port
11585         * src/pic16/device.c: changed scheme to dump initial values for
11586         variables in idata segment, all print_idata* functions were removed,
11587         now the pic16_printIval* will be called,
11588         * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
11589         * _pic16_printPointerType, pic16_printPointerType,
11590         * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
11591         * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
11592         NEW, similar to the respective functions in SDCCglue.c,
11593         * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
11594         way, emitting hex bytes,
11595         * (pic16_emitDS): NEW, emits a string for pointer initialisation,
11596
11597 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11598
11599         * src/avr/ralloc.c (serialRegAssign),
11600         * src/xa51/ralloc.c (serialRegAssign),
11601         * src/pic/ralloc.c (serialRegAssign),
11602         * src/pic16/ralloc.c (serialRegAssign),
11603         * src/hc08/ralloc.c (serialRegAssign),
11604         * src/z80/ralloc.c (serialRegAssign),
11605         * src/ds390/ralloc.c (serialRegAssign),
11606         * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
11607
11608 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11609
11610         * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
11611         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
11612
11613 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
11614
11615         Cumulative patch for pic16 port:
11616         * src/pic16/device.h (typedef PIC16_device) modified fields for
11617         defining microcontrollers,
11618         * src/pic16/device.c: added new info for all devices in Pics16 array,
11619         * src/pic16/gen.c (genPcall): fixed bug that caused the return label
11620         to be optimised out by the pCode optimiser,
11621         * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
11622         specially, bug reported by G.M. Gallant,
11623         * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
11624         as force'd so that cannot be optimised out by pCode optimiser,
11625         * src/pic16/pcode.c,
11626         * src/pic16/pcodepeeph.c,
11627         * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
11628         they are disabled by default, but can be enabled explicit with
11629         command argument --denable-peeps, for testing,
11630         * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
11631         --pomit-ivt in COMPILE_FLAGS
11632
11633 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
11634
11635         * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
11636           compilation on MSVC
11637
11638 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
11639
11640         * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
11641
11642 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11643
11644         device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
11645         0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
11646
11647 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
11648
11649         * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
11650         would only assign 0x300001 register.
11651
11652 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
11653
11654         * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
11655         in COMPILE_FLAGS. Thanks to G. Gallant for report.
11656
11657 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11658
11659         * doc/sdccman.lyx: minor changes, mentioned beta vendor support
11660         for ds80c400
11661         * src/mcs51/peeph.def: ran unexpand -a over peeph.def
11662         * src/mcs51/peeph.def: removed obsolete peephole 100.a,
11663         added peephole 254 (left shift), 255 (jump table)
11664
11665 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
11666
11667         * device/lib/Makefile.in: removed comment line with model-pic16,
11668         * (target port-specific-objects-pic16): the libraries and objects
11669         are copied to the build directory form the device/lib/pic16/bin
11670         directory
11671
11672         Cumulative patch concerning pic16 port:
11673         * library directory has been re-organized,
11674         * added support for PIC18F1220,
11675         * added headers and library sources for chips 18f1220,18f6520,
11676         18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
11677
11678         * configuration registers setting has changed, now each supported
11679         device has a complete description of the registers it uses,
11680         * all initialisations are moved to idata sections, these section
11681         can be absolute or relocatable,
11682         * fixed initialisation of codespace variables,
11683         * fixed warning about PCLATU and gpsim,
11684         * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
11685         * (genAssign): use table reads when assigning from variables in codespace,
11686         * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
11687         char/int variables placed in codespace,
11688         * (pic16_emitConfigRegs): NEW, emits a list with configuration
11689         registers set in .asm file, no need for --pomit-config-words anymore,
11690         * (pic16glue): some 8051 legacy segments are commented out
11691         (to be removed completely),
11692         * added support for alternative assembler and linker with --asm=
11693         and --link= command line arguments,
11694         * peepholes are disabled automatically in the port, no need to
11695         specify on command line,
11696         * port supports natively char/int/long multiplication, but converts
11697         all divisions to support functions,
11698         * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
11699         to the file set in variable $2,
11700         * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
11701         strings in ASCII format and not in hex,
11702         * ralloc.c (serialRegAssign): added a triplet of conditional calls
11703         to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
11704         allocate proper register if iCodes aren't temporary,
11705
11706 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
11707
11708         * support/regression/tests/zeropad.c: added TEST_G macro for alpha
11709
11710 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
11711
11712         * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
11713         is commented out
11714
11715 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11716
11717         * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
11718         computed address is reused
11719         * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
11720         multi-byte bitfields
11721
11722 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
11723
11724         * src/z80/gen.c: (genArrayInit): must check for pointers too
11725
11726 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
11727
11728         * support/regression/tests/zeropad.c: never meant to commit the
11729           nestedstruct test: removed, added check for GCC version
11730
11731 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
11732
11733         * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
11734         * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
11735         * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
11736           printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
11737           bugs 928906 and 954082 half-empty initializers
11738         * src/SDCCsymt.h,
11739         * src/SDCCsymt.c (getAllocSize): added for above fix
11740         * src/z80/gen.c (genArrayInit): fixed bug 741044
11741         * support/regression/tests/zeropad.c: added tests
11742
11743 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
11744
11745         * src/pic16/device.c (pic16_dump_section): corrected bug which
11746         caused some symbols of the libraries to be misplaced
11747
11748 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
11749
11750         * src/pic16/glue.c,
11751         * src/pic16/ralloc.h,
11752         * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
11753         to fix conflict with pic port
11754
11755 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
11756
11757         * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
11758         externs configuration variables,
11759         * src/pic16/ralloc.h,
11760         * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
11761         prototype in header, commented out some debug messages
11762
11763 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
11764
11765         * src/pic16/glue.c,
11766         * src/pic16/main.c,
11767         * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
11768         for gpasm COFF object generation. Thanks to D. Hawkins for
11769         his patch info
11770
11771 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11772
11773         * src/ds390/main.c,
11774         * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
11775         Brock for spotting this)
11776         * src/ds390/gen.c (genEndFunction),
11777         * src/mcs51/gen.c (genEndFunction): always save psw if function is an
11778         interrupt handler and critical. Disable push/pop optimizations when
11779         peephole optimizations disabled.
11780
11781 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
11782
11783         Updated pic16 library sources and headers.
11784         * device/lib/pic16/pic18f*/ ,
11785         * device/include/pic16/*.h: modified to handle structured SFR
11786         definitions
11787
11788 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
11789
11790         * src/port.h (PORT structure): added hook initPaths, now each
11791         port can declare its own default search paths,
11792         which can been seen with the --print-search-dirs option,
11793         see pic16 port for example,
11794         * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
11795         setDataPaths): test to options.printSearchDirs is ifdef'ed out,
11796         * (doPrintSearchDirs): NEW, replaces in a central manner the
11797         printing of search dirs which was split in set*Paths functions,
11798         * (main): added call to port->initPaths and doPrintSearchDirs,
11799         * src/avr/main.c,
11800         * src/ds390/main.c,
11801         * src/hc08/main.c,
11802         * src/izt/i186.c,
11803         * src/izt/tlcs900h.c,
11804         * src/mcs51/main.c,
11805         * src/pic/main.c,
11806         * src/pic16/main.c: modified port structures to reflect addition of
11807         initPaths hook,
11808
11809         * src/pic16/device.c (regCompare): registers are finally sorted by name,
11810         * (pic16_dump_section): for registers in same address reserve memory once,
11811         * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
11812         to no_banksel,
11813         * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
11814         result is greater in size than right or left,
11815         * (pic16_genUMult8X8_8): there are some cases where the result can
11816         be 16 bits size, so handle these,
11817         * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
11818         * (pic16_outBitC): modified to emit pcodes,
11819         * (pic16_storeForReturn): using is_LitOp to see if operand is literal
11820         or not,
11821         * (genDivOneByte): implemented algorithm to divide 8-bits,
11822         * (genCmp): uncommented goto, but issues still exist,
11823         * (genAnd): fixed a bug with variables >8bits,
11824         * (genPackBits): optimization added that uses BCF/BSF to change a
11825         single bit,
11826         * (genAssign): fixed bug when assigning floating point literals,
11827         * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
11828         __sdcc_gsinit_startup label,
11829         * src/pic16/main.c (_pic16_init): removed search directory
11830         initialisations,
11831         * (_pic16_initPaths): NEW, used to initialise search directories,
11832         * (_hasNativeMulFor): support functions for all except char/int
11833         multiplication, and char division,
11834         * (PIC16_port struct): modified entry for native mul support,
11835         * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
11836         no_banksel option,
11837         * (buildCallTree): call to register_usage is ifdef'ed out,
11838
11839 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11840
11841         * device/include/string.h: applied Stas Sergeev's patch to make this
11842         header file compatible with the preprocessor -Wundef option
11843         * src/SDCCmain.c (main): abort compilation if preprocessor reports
11844         failure (fixes bug #941458)
11845
11846 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11847
11848         * src/SDCCopt.c (killDeadCode): fixed bug #907733
11849         * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
11850         that the variable, not the function, should be static
11851         * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
11852         to be consistent with non-literal case
11853
11854 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11855
11856         * src/SDCCast.c (isConformingBody): fixed bug #949967
11857         * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
11858         convilong): fixed bug #952086
11859
11860 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11861
11862         * src/SDCCmem.c (allocVariables): fixed bug #955321
11863
11864 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11865
11866         * src/hc08/main.c (_hc08_genAssemblerEnd),
11867         * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
11868         dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
11869         completely eliminated the use of a temporary file
11870         * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
11871         when more than one file linked
11872         * src/SDCCloop.c (pointerAssigned): fixed bug #954163
11873
11874 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11875
11876         * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
11877         which fixes bug #543481
11878         * support/regression/tests/bug-751703.c: fixed comments left from a
11879         cut and paste error
11880         * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
11881         * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
11882         * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
11883         scopes
11884         * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
11885         * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
11886         are now changed to underscores in moduleName
11887
11888 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11889
11890         * as/mcs51/lkmem.c: better fix for bug #954173
11891
11892 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
11893         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11894
11895         * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
11896         * device/include/c8051f000.h,
11897         * device/include/c8051f120.h,
11898         * device/include/c8051f300.h,
11899         * device/include/c8051f310.h,
11900         * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
11901         PWM16) and detab'ed
11902
11903 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11904
11905         * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
11906         and mailing lists, doc'ed --no-peep-comments, removed reference
11907         to knoppix (newest version has no LyX/LaTeX), other minor changes
11908         * src/SDCCglue.c (glue): save 2 bytes stack space with
11909         option --main-return. The ljmp could probably be avoided too
11910
11911 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11912
11913         * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
11914
11915 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11916
11917         * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
11918         * src/SDCCopt.c (isLocalWithoutDef),
11919         * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
11920         which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
11921         (credit to Maarten Brock for patch #949363, on which this is based)
11922         * support/regression/tests/bug-751703.c: some test cases of extern used
11923         within inner scopes.
11924
11925 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11926
11927         * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
11928         SPEC_STRUCT
11929         * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
11930         struct definitions
11931         * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
11932         dwWriteLabel): fix to create valid debugger symbols even when
11933         the module name has non-alphanumeric symbols in it
11934         * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
11935         when a variable's allocation has been optimized away
11936
11937
11938 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11939
11940         * src/hc08/gen.c (hc08_emitDebuggerSymbol),
11941         * src/hc08/main.c,
11942         * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
11943         * src/mcs51/main.c,
11944         * src/ds390/gen.c (ds390_emitDebuggerSymbol),
11945         * src/ds390/main.c,
11946         * src/z80/gen.c (z80_emitDebuggerSymbol),
11947         * src/z80/main.c,
11948         * src/pic/gen.c (pic14_emitDebuggerSymbol),
11949         * src/pic/main.c,
11950         * src/pic16/gen.c (pic14_emitDebuggerSymbol),
11951         * src/pic16/main.c,
11952         * src/avr/gen.c (avr_emitDebuggerSymbol),
11953         * src/avr/main.c,
11954         * src/xa51/gen.c (xa51_emitDebuggerSymbol),
11955         * src/xa51/main.c,
11956         * src/SDCCdebug.c (emitDebuggerSymbol),
11957         * src/SDCCdebug.h,
11958         * src/port.h: added a debugger struct to the port struct. Added a
11959         callback for defining debugger symbols
11960
11961         * src/SDCCast.c (createLabel),
11962         * src/SDCC.y (labeled_statement): mark all compiler generated labels
11963         with isitmp = 1
11964         * src/SDCCicode.h,
11965         * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
11966         iCode back to the ast for the function
11967
11968         * src/hc08/ralloc.c (hc08_assignRegisters),
11969         * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
11970         unneeded fields from the regs struct.
11971         * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
11972         pushReg() & pullReg() functions instead of emitcode()
11973
11974         * src/hc08/gen.c (genLabel, genhc08Code),
11975         * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
11976
11977         * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
11978         debugger hooks
11979
11980         * src/hc08/gen.c (genEndFunction, genhc08Code),
11981         * src/hc08/gen.h,
11982         * src/mcs51/gen.c (genEndFunction, gen51Code),
11983         * src/mcs51/gen.h,
11984         * src/ds390/gen.c (genEndFunction, gen390Code),
11985         * src/ds390/gen.h,
11986         * src/z80/gen.c (genEndFunction, genZ80Code),
11987         * src/z80/gen.h,
11988         * src/z80/z80.h,
11989         * src/pic/gen.c (genEndFunction, genpic14Code),
11990         * src/pic/gen.h,
11991         * src/pic16/gen.c (genEndFunction, genpic16Code),
11992         * src/pic16/gen.h,
11993         * src/avr/gen.c (genEndFunction, genAVRCode),
11994         * src/avr/gen.h,
11995         * src/xa51/gen.c (genEndFunction, genXA51Code),
11996         * src/xa51/gen.h,
11997         * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
11998         specific code to cdbFile.c and out of the backend code generators
11999
12000         * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
12001         * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
12002         starting address is now 0
12003
12004         * as/hc08/asm.h,
12005         * as/hc08/m08pst.c,
12006         * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
12007         assembler directive for DWARF support
12008         * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
12009
12010         * src/src.dsp,
12011         * src/Makefile.in,
12012         * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
12013
12014 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12015
12016         * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
12017         and inappropriate peephole optimization in jump tables
12018
12019 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12020
12021         * as/hc08/m08pst.c,
12022         * src/SDCCglue.c: sdccopt works for the hc08 port now
12023
12024 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
12025
12026         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
12027
12028 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12029
12030         * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
12031
12032 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12033
12034         * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
12035         rules
12036         * src/SDCCmain.c,
12037         * src/SDCCglobl.h,
12038         * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
12039         comments from the peephole optimizer replacement rules
12040         * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
12041         symbols
12042         * src/SDCCcse.c (updateSpillLocation),
12043         * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
12044         equivalents
12045         * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
12046         * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
12047         objects far pointers
12048
12049 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12050
12051         * src/SDCCsymt.h: a missing part of my last change
12052         * src/pic/ralloc.c (regTypeNum),
12053         * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
12054
12055 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12056
12057         * src/SDCCicode.h,
12058         * src/SDCCicode.c (aggrToPtrDclType),
12059         * src/SDCCptropt.h,
12060         * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
12061         ptrPseudoSymConvert),
12062         * src/pic/ralloc.c (regTypeNum),
12063         * src/pic16/ralloc.c (regTypeNum),
12064         * src/hc08/ralloc.c (regTypeNum),
12065         * src/ds390/ralloc.c (regTypeNum),
12066         * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
12067         creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
12068
12069 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12070
12071         * link/z80/lkmain.c (afile),
12072         * as/hc08/lkmain.c (afile),
12073         * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
12074         prevent a pointer problem when a filename has no directory and
12075         no extension specified.
12076
12077 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12078
12079         * link/z80/lkmain.c (afile): allow periods in directory names
12080         * link/z80/lkmain.c (afile),
12081         * as/mcs51/lkmain.c (afile),
12082         * as/hc08/lkmain.c (afile): allow linker script file to have an
12083         extension other than ".lnk"
12084         * link/z80/lklex.c (getfid),
12085         * link/z80/lkmain.c (parse),
12086         * as/mcs51/lklex.c (getfid),
12087         * as/mcs51/lkmain.c (parse),
12088         * as/hc08/lklex.c (getfid),
12089         * as/hc08/lkmain.c (parse): Support comments in the linker script
12090         file on lines by themselves and after filenames
12091
12092 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12093
12094         * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
12095
12096 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12097
12098         * src/z80/peeph-z80.def: removed some peephole rules that don't
12099         work with multibyte arithmetic (fixed bug #937126)
12100         * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
12101         to registers and not global variables
12102         * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
12103         geniCodePreInc, geniCodePostDec, geniCodePreDec,
12104         geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
12105         checking for assignments not internally generated (fixed bug #931895)
12106         * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
12107         structure member (fixed bug #930072)
12108
12109 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12110
12111         * src/SDCCmain.c (linkEdit),
12112         * src/hc08/main.c (_hc08_parseOptions),
12113         * as/hc08/Makefile.in,
12114         * as/hc08/aslink.h,
12115         * as/hc08/asm.h,
12116         * as/hc08/m08pst.c,
12117         * as/hc08/lkrloc.c (relr, rele),
12118         * as/hc08/lkarea.c (lnkarea)
12119         * as/hc08/lkmain.c (afile, parse),
12120         * as/hc08/lkelf.c: support for ELF output
12121         * as/hc08/lks19.c (s19),
12122         * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
12123
12124 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12125
12126         * as/mcs51/lkihx.c: Fixed bug #899105.
12127
12128 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12129
12130         * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
12131         .dsp files from Unix to DOS.
12132
12133 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12134
12135         * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
12136         function pointers; we have been compliant for several months now.
12137         * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
12138         change that was accidently commented out
12139         * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
12140         genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
12141         bug #922319
12142
12143 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12144
12145         * src/hc08/gen.c: output of all of the internal debugging information
12146         is now controlled by the D() macro; it is disabled by default
12147
12148 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12149
12150         * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
12151         harder to keep the same registers during a CAST iCode
12152         * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
12153         long via int can be done in a single cast, if the signedness is
12154         correct.
12155         * support/regression/tests/bug-927659.c: fixed to avoid conflict with
12156         putchar() in tinibios.c in ds390's library
12157
12158 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
12159
12160         * src/SDCCast.c (decorateType): fixed bug #898889,
12161         cast result of a literal complement too
12162         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
12163         fixed check for bitfields
12164
12165 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
12166
12167         * src/SDCCicode.c (geniCodeLogic): made it static,
12168         (geniCodeLogicAndOr): added in order to fix bug #905492,
12169         (ast2iCode): fixed bug #905492
12170         * support/regression/tests/bug-905492.c: added
12171         * src/SDCCast.c (decorateType): don't decorate/process parms twice,
12172         (processParms): fixed bug #927659: don't copy parms, this will clear
12173         decorated flag
12174         * support/regression/tests/bug-927659.c: added
12175
12176 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
12177
12178         * src/SDCCast.c (addCast): don't cast float to char
12179         * device/lib/libsdcc.lib: added _memmove
12180
12181 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
12182
12183         * device/lib/large/Makefile: fixed parallel execution by
12184         replacing `make` by `$(MAKE)`
12185
12186 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12187
12188         * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
12189         offsets (fixes bug #923936)
12190
12191 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
12192
12193         * device/lib/small/Makefile: fixed parallel execution by
12194         replacing `make` by `$(MAKE)`
12195
12196 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
12197
12198         * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
12199
12200 2004-03-23  Scott Dattalo  <scott AT dattalo.com>
12201
12202         * src/pic/gen.c (genCpl): multi-byte complements were not working.
12203         * src/regression/Makefile: Regression test was not running.
12204
12205 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
12206
12207         * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
12208         complement if possible
12209         * src/SDCCval.c (valComplement),
12210         * src/SDCCicode.c (operandOperation): fixed complement of literal
12211         * support/regression/tests/onebyte.c (testComplement): added
12212
12213 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
12214
12215         * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
12216         return an optimized tree; actually replace actParm with the new tree
12217         * src/SDCCast.h: added some parantheses to remove side effects
12218         * support/regression/tests/bug-920866.c
12219
12220 2004-03-21  Scott Dattalo  <scott AT dattalo.com>
12221         * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
12222         Bit operands were not being handled properly in the pic14 port.
12223         (now src/regression/add.c passes again).
12224
12225 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12226
12227         * src/SDCC.y (labeled_statement): case and default no longer require
12228         a following statement (RFE #893037)
12229
12230 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12231
12232         * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
12233         use MOVA macro to avoid "mov a,acc" when peephole optimizer is
12234         disabled (fixes bug #916294)
12235         * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
12236         "mov a,acc"; patch provided by Lenny Story
12237         * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
12238
12239 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12240
12241         * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
12242         functions
12243         * src/ds390/gen.c (genFunction, genEndFunction),
12244         * src/ds390/ralloc.c (ds390_assignRegisters),
12245         * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
12246         * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
12247         pushed if there are parameters passed on the stack. Also, a cleaner
12248         way to decide if r0/r1 should be pushed/popped. (Together they fix
12249         bug #918693)
12250
12251 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12252
12253         * doc/sdccman.lyx,
12254         * device/lib/mcs51/crtpagesfr.asm,
12255         * device/lib/mcs51/crtxinit.asm,
12256         * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
12257         to avoid confusion with Si Lab's SFRPAGE register.
12258
12259 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12260
12261         * src/SDCCglue.c (emitMaps): allow public sfr variables
12262         * src/SDCCglue.c (initialComments): include compiler build date
12263         with compiler version and put the timestamp of the generated
12264         assembly file on a serperate line to be less confusing.
12265         * src/port.h: added genInitStartup hook
12266         * src/avr/main.c,
12267         * src/ds390/main.c,
12268         * src/hc08/main.c,
12269         * src/pic/main.c,
12270         * src/pic16/main.c,
12271         * src/xa51/main.c,
12272         * src/z80/main.c: genInitStartup initialize as NULL (default to
12273         historical behaviour)
12274         * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
12275         * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
12276         _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
12277         library instead of hard coding it into the compiler.
12278         * support/regression/ports/mcs51-stack-auto/spec.mk,
12279         * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
12280         * device/lib/mcs51/Makefile,
12281         * device/lib/small/Makefile,
12282         * device/lib/large/Makefile,
12283         * device/lib/mcs51/crtpagesfr.asm,
12284         * device/lib/mcs51/crtstart.asm,
12285         * device/lib/mcs51/crtxclear.asm,
12286         * device/lib/mcs51/crtxinit.asm,
12287         * device/lib/mcs51/crtclear.asm,
12288         * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
12289         startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
12290         and into user configurable files.
12291         * device/lib/clean.mk: clean mcs51 directory too
12292         * support/regression/tests/longlit.c: added static to T1 declaration
12293         * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
12294         accesses in the initialization code
12295
12296 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12297
12298         * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
12299         OSCTRIMVAL as noted in bug #916008
12300
12301 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12302
12303         * src/SDCCloop.c (basicInduction): fixed bug with loop induction
12304         in loops with multiple exits (reported as incorrect registers
12305         used by Martin Helmling in Sdcc-user list)
12306
12307 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12308
12309         * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
12310         made ds390 register extensions look less like error messages
12311
12312 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12313
12314         * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
12315         reported by Adam Wozniak in Sdcc-user list
12316
12317 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
12318
12319         * src/SDCCast.c (decorateType): fixed with bug and promotion in
12320         arithmetic optimizations, added debug output
12321
12322 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
12323
12324         * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
12325         * sdcc.spec: updated and split sdcc into 3 rpms
12326         * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
12327         needed for literals of LEFT_OP and '+'
12328         * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
12329         introduced RESULT_TYPE_NOPROM
12330         (geniCodeMultiply): fixed logic for decision if mul is optimized to
12331         left shift
12332         * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
12333         limited promotion to int only for '*'
12334         * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
12335
12336 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
12337
12338         * src/pic16/gen.c (genSkip),
12339         (genc16bit2lit), (gencjneshort): commented out
12340         (is_LitOp): new helper function, checks operand type
12341         (genCmpEq): rewritten
12342
12343 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
12344
12345         * support/regression/tests/bug-908454.c: added
12346
12347 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
12348
12349         * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
12350         * src/SDCCicode.c (usualBinaryConversions): op needs int type
12351         (geniCodeCast): cosmetic, don't preserve bit storage class
12352         (geniCodeLeftShift): added promotion
12353         (geniCodeLogic): fixed regression
12354         * src/SDCCsymt.c (computeTypeOr): accept bits too
12355         (compareType): 2nd part of fix for bug #908454, needed for bitfields
12356
12357 2004-03-07  Borut Razem <borut.razem AT siol.net>
12358
12359         * support/Util/findme.c: alloca() replaced with malloc()/free() pair
12360
12361 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
12362
12363         * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
12364         version of pic16_genPackRegisters which does not check if ic is a
12365         CAST operator,
12366         * src/pic16/gen.c (ifxForOp): disabled new and untested code in
12367         function cause string1.c regression test fails
12368
12369 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
12370
12371         * sim/ucsim/configure.in,
12372         * sim/ucsim/configure,
12373         * sim/ucsim/doc/Makefile.in: use docdir
12374         * src/SDCC.y: fixed sbit atrributes
12375         * src/SDCCast.c (getResultTypeFromType): added support for bitfields
12376         * src/SDCCast.c (decorateType): |^& need special promotion handling
12377         * src/SDCCast.h,
12378         * src/SDCCsymt.h: moved definition of RESULT_TYPE
12379         * src/SDCCsymt.h (computeType),
12380         * src/SDCCicode.c: computeType() needs op
12381         * src/SDCCsymt.c (checkTypeSanity),
12382         * doc/sddman.lyx: "plain" bitfields are unsigned
12383         * src/SDCCsymt.c (computeTypeOr): added
12384         * src/SDCCsymt.c (computeType): added support for bitfields, fixed
12385         |^& ops
12386         * src/SDCCval.c (val*): computeType() needs op
12387         * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
12388         * support/regression/tests/onebyte.c: added tests for |^&
12389
12390 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
12391
12392         * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
12393         for writing icode into asm output.
12394
12395 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
12396
12397         * src/pic16/device.c: added some debug lines enabled
12398         with macro DEBUG_CHECK,
12399         * src/pic16/genarith.c: more debug in genPlus,
12400         * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
12401         * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
12402         * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
12403         * (aopForSym): onStack symbols are re-placed in data memspace,
12404         and onStack flag is cleared,
12405         * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
12406         copy temporary pcodeop,
12407         * (genPcall): added warning for not updating PCLATU,
12408         * (genFunction): removed test with IFFUNC_CALLEESAVES, its
12409         always true for pic16 port,
12410         * (genMultOneWord): NEW, supports integer multiplication,
12411         * (genMult): modified to call genMultOneWord,
12412         * (ifxForOp): added warning when return NULL,
12413         * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
12414         flag is set before call to operandFromSymbol for implicit
12415         added structures,
12416         * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
12417         options.intlong_rent are set by default,
12418         * (_hasNativeMulFor): modified to allow port generation of integer
12419         multiplication,
12420         * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
12421         set regtype to REG_SFR for all registers, restricting seting the
12422         accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
12423
12424 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12425
12426         * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
12427         more than 500 times in the regression tests
12428
12429 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12430
12431         * support/Util/SDCCerr.h,
12432         * support/Util/SDCCerr.c,
12433         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
12434         enumerator_list),
12435         * src/SDCCsymt.c (addSymChain): show location of oriignal definition
12436         for symbol conflicts.
12437         * support/valdiags/tests/enum.c,
12438         * support/valdiags/tests/tentdecl.c,
12439         * support/valdiags/tests/struct.c: expect possible error messages
12440         referring to original symbol definitions.
12441         * src/SDCC.y (struct_or_union_specifier, struct_declarator),
12442         * src/SDCCsymt.h,
12443         * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
12444
12445 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
12446
12447         * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
12448
12449 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
12450
12451         * src/pic16/ralloc.c (newReg): fixed bug #908929
12452
12453 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12454
12455         * src/ds390/gen.c: added missing #include "main.h"
12456
12457 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
12458
12459         * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
12460         checking if symbol is already in set,
12461         * src/pic16/device.h: prototype for checkAddSym,
12462         * src/pic16/gen.c: (_G): added entry interruptvector,
12463         * (assignResultValue): removed some commented out lines,
12464         * (genFunction): check for ISR via sym->type, absolute section for
12465         interrupt code is created via a new pBlock, the goto instruction is
12466         placed now correctly at the interrupt vector position, changed all
12467         references from ivec to _G.interruptvector,
12468         * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
12469         is the interrupt is a high priority one, same for return from ISR,
12470         * src/pic16/glue.c: changed all calls of addSetHead for publics and
12471         externs to calls of checkAddSym,
12472         * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
12473         pic16_pcode_verbose flag is set,
12474         * src/pic16/pcode.h: extern to pic16_pcode_verbose,
12475         * src/pic16/pcoderegs.c: message about how many registers are saved
12476         will only be emitted if pic16_pcode_verbose flag is set,
12477
12478 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12479
12480         * src/ds390/ralloc.h,
12481         * src/ds390/ralloc.c (ds390_regWithIdx),
12482         * src/ds390/gen.c (emitcode),
12483         * src/ds390/main.h,
12484         * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
12485         ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
12486         ds390operandCompare, getRegsRead, getRegsWritten,
12487         initializeAsmLineNode): customized instruction size calculation for
12488         ds390, started basis for some register optimizations
12489         * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
12490         corresponding assembly output
12491         * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
12492         missing push/pop of r0/r1. Optimized push/pops
12493
12494 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12495
12496         * src/mcs51/main.c (instructionSize): fixed ACALL size
12497         * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
12498
12499 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
12500
12501         * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
12502         the sorting of rlist with NULL elements
12503         * (print_idataType, print_idata): NEW to create idata sections
12504         * src/pic16/device.h: idataSymSet new variable
12505         * src/pic16/gen.c (genFunction): fixed some bugs in string
12506         comparing, improved the absolute section creation for ISRs,
12507         added FSR0L/FSR0H in registers that are saved in an ISR,
12508         * (genInline): fixed the processing of inline snippets,
12509         now they undergo no process by the peephole optimizer
12510         * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
12511         are placed in idataSymSet,
12512         * (pic16emitStaticSeg): extern symbols are added in externs,
12513         * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
12514         switching when aboslute variables are placed in access bank memory
12515         * (pic16_writeUsedRegs): added call to pic16_dump_idata,
12516         * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
12517         commented out with #if,
12518         * (pic16_packRegisters): reintroduce the check for CAST because some
12519         symbols are not correctly handled,
12520         * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
12521         pCodeInstruction instead of pCode,
12522         * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
12523         pCodeAsmDir definition,
12524         * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
12525         directive, then the argument directive is emitted without the leading
12526         tab, hack for inline labels which must be in the first column,
12527         * (compareLabel,pic16_findNextInstruction),
12528         * (pic16_findPrevInstruction): added case for PO_ASMDIR,
12529         * (insertBankSwitch): modified for the new pCodeAsmDir,
12530
12531 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
12532         patch applied by Vangelis Rokas <vrokas AT otenet.gr>
12533
12534         * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
12535         instance,
12536         * (pushSide): commented out with #if,
12537         * (assignResultValue): fixed some typos in saving
12538         registers,
12539         * (genPcall): FIXED and sync'ed with genCall,
12540         * (genDataPointerGet,genDataPointerSet): using offset not leoffset
12541         * (genNearPointerGet): fixed to handle some more cases,
12542         implementation scheme via table reads,
12543         * (genConstPointerGet): modified to access code memory correct,
12544         * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
12545         and improved to handle some cases
12546         * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
12547         instead of "RETLW" for init data
12548         * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
12549         not IN_DIRSPACE, work around to reduce bank switching when aboslute
12550         variables are placed in access bank memory (<0x80 and >=0xf80),
12551         * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
12552         TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
12553         TBLWT_POSTDEC,TBLWT_PREINC
12554         * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
12555         * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
12556         directives
12557         * (pic16_pCodeConstString): use "DB" instead of "RETLW"
12558         * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
12559         pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
12560         * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
12561
12562 2004-02-29  Borut Razem <borut.razem AT siol.net>
12563
12564         * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
12565         support/Util/findme.h, support/Util/system.h: enhance binary relative
12566         search for lib and include by using findProgramPath()
12567
12568 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12569
12570         * src/SDCCpeeph.h,
12571         * src/SDCCpeeph.c (pcDistance),
12572         * src/port.h,
12573         * src/mcs51/ralloc.h,
12574         * src/mcs51/ralloc.c (mcs51_regWithIdx),
12575         * src/mcs51/main.h,
12576         * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
12577         mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
12578         mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
12579         size calculation port specific, started basis for some register
12580         optimizations
12581         * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
12582         missing push/pop of r0/r1. Optimized push/pops
12583         * src/mcs51/ralloc.c (packregisters): fixed bug #727095
12584         * device/lib/_modsint.c (_modsint),
12585         * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
12586         and stack version so regression tests pass
12587
12588 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
12589
12590         * src/Makefile.in (dep): include SLIBOBJS in dependency check
12591         * src/SDCCast.c (decorateType): catch another small optimization
12592         with '?' operator
12593         * src/SDCCsymt.c (computeType): added comments and cosmetic changes
12594         * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
12595         modified to finally use computeType() all over SDCC,
12596         see Feature Request #877103
12597         * src/SDCCval.h: cosmetic
12598         * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
12599         valCompare(); regression tested in muldiv.c
12600         * support/regression/tests/muldiv.c (testMod): mod sign follows
12601         dividend only
12602
12603 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
12604
12605         * src/SDCCast.c (decorateType): fixed bug #902362
12606         * doc/INSTALL.txt: fixed install instructions for win32
12607
12608 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
12609
12610         * device/include/Makefile.in (install): fixed by replacing spaces
12611         by tabs
12612         * doc/README.txt,
12613         * doc/INSTALL.txt: updated for release
12614         * doc/sdccman.lyx: added warning for --xstack being buggy
12615
12616 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
12617
12618         * src/pic16/ralloc.c (packRegsForAccUse):  disabled functions with #if
12619         to eliminate build warnings.
12620         * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
12621
12622 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
12623            Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
12624
12625         * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
12626         removed -penable-stack, added comment for stack pragma, added
12627         warning for not initializing the stack/frame registers, removed
12628         comment at interrupts section
12629
12630         Stack is made permanent, there is no ability to disable stack usage.
12631         * src/pic16/device.h,
12632         * src/pic16/device.c: removed all references to USE_STACK macro,
12633         * src/pic16/device.c (pic16_dump_section): when no elements in
12634         rlist, free rlist before return,
12635         * (pic16_dump_int_registers): NEW, internal registers are a new set
12636         of general purpose registers reused by each function,
12637         * (checkAddReg): returns 1 if registers is added to set,
12638         * (pic16_groupRegistersInSection): when a registers is of type
12639         PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
12640         * src/pic16/device.h: memRange and Assigned Memory are deleted,
12641         SRCASECMP macro is moved here from device.c
12642         * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
12643         PO_PCLATU, PO_PRODL, PO_PRODH,
12644         * (pic16_pCodeOpType, genMinus,
12645         changed compares to "a" register, with AOP_ACC,
12646         * (pic16_genPlus): fixed some bugs and indented properly,
12647         * (pic16_addSign): changed size to size+offset in the MOVWF
12648         instruction,
12649         * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
12650         multiply 8-bit operand by literal, result is 8-bit,
12651         * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
12652         multiply 2 8-bit operand, result is 8-bit,
12653         * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
12654         genUMult8X*_16,
12655         * src/pic16/gen.c: changed accUse to contain WREG only,
12656         * (pic16_emitcomment): renamed to pic16_emitpcomment,
12657         * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
12658         true, do not use immediate addressing any more unless sym is a
12659         pointer in codespace,
12660         * (aopForRemat): do not use immediate addressing when symbol not in
12661         codespace and when symbol's address is requested,
12662         * (aopOp): for-loop in if(sym->accUse) is modified for the new
12663         accUse size (= 1),
12664         * (aopGet): added case for AOP_ACC and don't return "accumulator
12665         bug" but WREG instead,
12666         * (popGetTempReg): pushes contents of temporary register in stack,
12667         * (popReleaseTempReg): pops contents of temporary register from
12668         stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
12669         * (pic16_popGet): separated case AOP_ACC to return register WREG
12670         from processor registers, AOP_PCODE not checks if pcop is PO_DIR
12671         or PO_IMMEDIATE and initializes their instance/offset appropriately,
12672         * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
12673         the use of immediate pointers to certain cases only.
12674
12675         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
12676         * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
12677         * (assignResultValue, genCall, genRet): modified to use the new
12678         function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
12679         genPcall is still broken,
12680         * (genFunction): added code to create 'A' type pBlocks when
12681         interrupt functions are generated, code not extensively tested yet,
12682         ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
12683         * (genEndFunction): modified so ISRs pop stored registers from stack,
12684         * (genMultOneByte): cleanup,
12685         * (AccRsh): added flag andmask, to and result with appropriate mask,
12686         * (genUnpackBits,genPackBits): fixed and can handle bit fields,
12687         * (genDataPointerGet): fixed and reenabled its use,
12688         * (genNearDataPointerGet): bugs fixed,
12689         * (genDataPointerSet): bugs fixed,
12690         * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
12691         pic16_DumpSymbol, pic16_DumpOp,
12692         * src/pic16/genutils.h: function prototypes for the above functions,
12693         * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
12694         pointers,
12695         * (pic16emitRegularMap): many many many improvements, but needs a
12696         major cleanup,
12697         * src/pic16/main.c: enable_stack in pic16_options is removed,
12698         * (_pic16_parseOptions): removed command line options -penable-stack,
12699         * (_process_pragma): emit stack symbol only when stack pragma is
12700         processed,
12701         * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
12702         redirected to FSR0L/FSR0H pair,
12703         * (pic16_get_op, pic16_get_op2): modifications and improvements,
12704         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
12705         cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
12706         for immediates,
12707         * (insertBankSwitch): modified to handle cases like: (alfa + 1)
12708         * (dumpPicOptype): NEW,
12709         * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
12710         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
12711         with movff instruction,
12712         * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
12713         added pic16_int_regs, some packRegsFor* functions are commented out,
12714         because produce errors,
12715         * src/pic16/NOTES: minor modifications
12716
12717 2004-02-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12718
12719         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
12720         as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
12721         --pack-iram.
12722         * doc/sdccman.lyx: described options --stack-size and --pack-iram.
12723         * as/mcs51/lkaomf51.c: fixed bug #895763
12724
12725 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
12726
12727         * device/include/c8051f320.h: added. Contributed by Maarten Brock.
12728
12729 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12730
12731         * doc/sdccman.lyx: added details about the HC08 storage classes and
12732         interrupts, fixed the register usage info for z80 & gbz80
12733
12734 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
12735
12736         * doc/sdccman.lyx: added more pic16 port documentation
12737         * device/include/pic16/: added header pic18fregs.h
12738
12739 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
12740
12741         * doc/sdccman.lyx: added Vangelis' contribution
12742
12743 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12744
12745         * src/SDCClrange.c (rlivePoint): live range of SEND operand should
12746         extend to the next CALL or PCALL, not just to the next CALL.
12747
12748 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
12749
12750         * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
12751
12752 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12753
12754         * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
12755         bug #895752 and a better fix for bug #716790
12756
12757 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12758
12759         * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
12760
12761 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12762
12763         * doc/sdccman.lyx: minor changes, minor changed
12764
12765 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
12766
12767         * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
12768         which can't handle SDCC_NEWONEBYTEOPS,
12769         (geniCodeMultiply): removed conversion from mult to shift for pic14
12770         and pic16
12771
12772 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12773
12774         * src/hc08/gen.h,
12775         * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
12776         rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
12777         thus fixing bug #895406
12778
12779 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
12780
12781         * device/lib/_modsint.c,
12782         * device/lib/_modslong.c: sign follows divisor only
12783         * src/hc08/gen.c (genMultOneByte): if result size is 1,
12784         signs or signedness can be ignored
12785         * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
12786         * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
12787         added optimization for IFX,
12788         (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
12789         arguments;
12790         reenabled optimization for IFX, which was removed on 2004-01-11
12791         * src/SDCCast.h: added return type IFX
12792         * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
12793         arguments with 8 or 16 bit results; pic14 and pic16 ports use old
12794         promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
12795         SDCC_OLDONEBYTEOPS selects the old behaviour
12796         * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
12797         changed again and commented promotion rule
12798         * src/SDCCval.c (valDiv): promotion no longer necessary
12799         * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
12800         * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
12801         rewritten
12802         * support/regression/tests/onebyte.c: added
12803
12804 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
12805
12806         * gen.c (genInline): reverted to old code for assemnling inline
12807         code because of bug reported James Chadd
12808
12809 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
12810
12811         * ralloc.h: missing declarations from previous patch,
12812         seems that patch for ralloc.h was never applied, fixed
12813
12814 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
12815            patch committed by Vangelis Rokas <vrokas AT otenet.gr>
12816
12817         * pcode.c,
12818         * pcode.h,
12819         * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
12820         indirect addressing. Marked FSR0 as deprecated
12821         * gen.c (pointerCode): commented out, not needed now
12822         (pic16_popGet2p): new MOVFF helper function
12823         (genGenPointerGet),
12824         (genGenPointerSet): reimplemented with MOVFF and POSTINC0
12825         (shiftRLong): removed duplicate debugging info
12826
12827 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12828
12829         * src/ds390/gen.c (genNearPointerGet),
12830         * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
12831         optimization with bits, but not bitfields.
12832         * src/ds390/ralloc.c (packRegisters),
12833         * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
12834
12835 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
12836
12837         * src/SDCCcse.c (algebraicOpts): copy operands before modification
12838
12839 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12840
12841         * src/SDCCsymt.h,
12842         * src/SDCCicode.c (operandFromSymbol),
12843         * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
12844         * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
12845         * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
12846         * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
12847         * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
12848         * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
12849         bug #892038
12850         * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
12851         * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
12852         printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
12853         * src/SDCCsymt.c (newSymbol),
12854         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
12855         enumerator_list),
12856         * src/SDCCval.h,
12857         * src/SDCCval.c (newiList): fixed bug #885705
12858
12859 2004-02-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12860
12861         * doc/sdccman.lyx: added section 3.1.4: sdcclib.
12862         * as/mcs51/lkmem.c: report the size of the stack in .mem file.
12863
12864 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12865
12866         * device/include/c8051f120.h,
12867         * device/include/c8051f300.h,
12868         * device/include/c8051f310.h: added/updated header files for Silicon
12869         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
12870         * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
12871         in new section Submitting patches
12872
12873 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12874
12875         * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
12876         genFarPointerGet, genCodePointerGet, genGenPointerGet,
12877         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
12878         genGenPointerSet),
12879         * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
12880         genFarPointerGet, genCodePointerGet, genGenPointerGet,
12881         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
12882         genGenPointerSet),
12883         * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
12884         genFarPointerGet, genCodePointerGet, genGenPointerGet,
12885         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
12886         genGenPointerSet),
12887         * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
12888         genFarPointerGet, genCodePointerGet, genGenPointerGet,
12889         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
12890         genGenPointerSet): fixed bug #892400
12891         * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
12892         to eliminate build warnings.
12893         * src/SDCCast.c (processParms),
12894         * src/SDCC.y (function_declarator2, declarator2_function_attributes):
12895         fixed bug 751859
12896         * support/valdiag/valdiag.py: added GCC to the list of defines active
12897         when compiling with gcc
12898
12899 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12900
12901         * support/Util/SDCCerr.h,
12902         * support/Util/SDCCerr.c,
12903         * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
12904         with an incomplete type (fixed bug #883734)
12905         * src/SDCCicode.c (geniCodeCast): fixed bug #890510
12906
12907 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12908
12909         * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
12910
12911 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12912
12913         * src/SDCCast.c (decorateType),
12914         * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
12915         function pointer implementation
12916         * support/regression/tests/funptrs.c: added tests to verify both forms
12917         of function pointers work correctly. Added tests to verify parameters
12918         are passed in the correct order.
12919
12920 2004-02-06  Vangelis Rokas <vrokas AT otenet.gr>
12921
12922         * device.c (regCompare): registers are sorted by ascending
12923         address and increasing size,
12924         * main.c (_pic16_finaliseOptions): removed the declaration
12925         of compiler macro MCU. Now a macro of the format pic18fxxxx
12926         will be defined from the command line
12927
12928 2004-02-06  Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
12929             patch committed by Vangelis Rokas <vrokas AT otenet.gr>
12930
12931         * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
12932         PCOP_RLCF was overwritten!
12933         * gen.c (genSkip): commented out calls to pic16_emitcode,
12934         * (genCmpEQ): fixed "long" compares, only high word did get compared,
12935         * (genlshTwo),
12936         * (genRRC): added debugging info,
12937         * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
12938         overwritten while shifting,
12939         * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
12940         overwritten while shifting,
12941         * (AccLsh),
12942         * (AccRsh),
12943         * (shiftLLeftOrResult),
12944         * (shiftRLeftOrResult),
12945         * (shiftRLong),
12946         * (shiftLLong): Implemented with pic16_emitpcode
12947         * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
12948         * (genLeftShift): Fixed bug, operand for shift by variable always
12949         was "and"ed with 0x0f,
12950         * (genLeftShiftLiteral),
12951         * (genrshTwo),
12952         * (genRightShiftLiteral): added debugging info,
12953         * (genrshFour): added comment,
12954         * (genRightShift): determined signedness from operand "left"
12955         instead of "result"
12956
12957 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12958
12959         * src/SDCCicode.c (geniCodeParms),
12960         * src/SDCCast.c (decorateType, processParms): support for ANSI-style
12961         function pointers, fixed function pointer bugs #861242 and #861896
12962
12963 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12964
12965         * device/include/c8051f000.h,
12966         * device/include/c8051f120.h,
12967         * device/include/c8051f300.h: added header files for Silicon
12968         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
12969
12970 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
12971
12972         * src/SDCCast.c (processParams): added new type flow and restructured
12973         (gatherAutoInit): added new type flow
12974         (addCast): cosmetic changes
12975         (getLeftResultType): added new type flow for array indices, patch
12976         provided by Stas, see FR #877103
12977         (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
12978         array index patch by Stas
12979         * src/SDCCast.h: added prototype getResultTypeFromType()
12980         * src/SDCCval.h,
12981         * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
12982         * src/pic/glue.c (pic14emitStaticSeg),
12983         * src/pic16/glue.c (pic16emitStaticSeg),
12984         * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
12985         for initialization of symbols
12986         * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
12987         * support/Util/SDCCerr.h:
12988         * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
12989         * .version: bumped version number to 2.3.8
12990         * device/include/Makefile.in (install),
12991         * doc/Makefile (install): changed to 'rm `find ...`' construct to
12992         avoid warnings
12993
12994 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
12995
12996         * support/regression/tests/libmullong.c: fixed for 64 bit hosts
12997         Slade Rich fixed an optimization bug
12998         * src/pic/pcodepeep.c,
12999         * src/pic/pcoderegs.c
13000         * doc/Makefile (install): added test for directory
13001
13002 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13003
13004         * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
13005         * src/ds390/ralloc.c (getRegPtr, getRegGpr),
13006         * src/pic/ralloc.c (getRegPtr, getRegGpr),
13007         * src/pic16/ralloc.c (getRegPtr, getRegGpr),
13008         * src/z80/ralloc.c (getRegGpr): fixed bug #883361
13009         * as/mcs51/asexpr.c (term),
13010         * as/hc08/asexpr.c (term): fixed bug #887146
13011
13012 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13013
13014         * src/z80/gen.c (genMult): handle single byte result product
13015         * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
13016         DUMMY_READ_VOLATILE (fixed bug #886367)
13017
13018 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
13019
13020         * support/regression/tests/libmullong.c: fixed logic, on little endian
13021         hosts we ended without a mullong_wrapper()
13022
13023 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13024
13025         * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
13026         virus/worm forged address usage.
13027
13028 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
13029
13030         Fixed promotion, it should be done on AST level:
13031         * src/SDCCast.c (addCast): added promotion to int
13032         (decorateType): updated call to upCast()
13033         * src/SDCCicode.c (geniCodeLeftShift): removed call to
13034         usualUnaryConversions()
13035
13036 2004-01-26  Michael Hope  <michaelh AT juju.net.nz>
13037
13038         * support/regression/tests/literalop.c (mulWrapper): Added a
13039         wrapper to remove integer overflow warnings.
13040
13041         * support/regression/tests/float_trans.c: Made work on host.
13042
13043         * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
13044         location of sz80.
13045
13046         * support/regression/generate-cases.py (main): Changed from inline
13047         to a main method.
13048
13049         * doc/Makefile (install): Changed to depth first to get rid of
13050         missing directory install warning.
13051
13052         * as/Makefile (install-doc): Made work on Mac.
13053
13054 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
13055
13056         * src/SDCCast.c: added an additional type flow in decorateType() of
13057         opposite direction, see feature request #860006; it's enabled at runtime
13058         by setting the environment variable SDCC_NEWTYPEFLOW
13059         * src/SDCCast.h: changed prototype of decorateType()
13060         * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
13061         * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
13062         'char' to 'int' can be omitted, if both operands are 'unsigned char';
13063         see feature request #877103
13064         * src/SDCCval.c: updated call of decorateType()
13065         (valBitwise): fixed bug #882876
13066         (valMinus): added promotion
13067         (valLogicAndOr): result is unsigned
13068         (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
13069         * src/SDCCsymt.c (computeType),
13070         * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
13071         must not cause an unsigned operation
13072         * src/pic/glue (pic14emitRegularMap),
13073         * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
13074
13075 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
13076
13077         * src/pic/pcode.c (PCodeID): commented out left over debug code
13078
13079 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
13080
13081         * support/valdiag/tests/overflow.c: added shift tests
13082         * src/pic/device.c,
13083         * src/pic/gen.c,
13084         * src/pic/gen.h,
13085         * src/pic/glue.c,
13086         * src/pic/main.c,
13087         * src/pic/pcode.c,
13088         * src/pic/pcode.h,
13089         * src/pic/pcodepeep.c,
13090         * src/pic/pcoderegs.c,
13091         * src/pic/ralloc.c,
13092         * src/pic/ralloc.h: applied patch from Slade Rich;
13093         added support for multiple code pages and multiple RAM banks on the
13094         PIC 14 port. The ASM files now no longer simply assume all the
13095         code / RAM are in the same page / bank. This means the linker can
13096         safely allocate code/RAM of separate ASM files to different pages/banks.
13097         * doc/sdccman.lyx: added Slade's tips
13098         * src/mcs51/peeph.def: fixed bug #880768
13099
13100 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13101
13102         * src/hc08/ralloc.c (rematStr): fixed bug #879282
13103         * src/SDCCast.c (decorateType): fixed bug #880197
13104
13105 2004-01-20  Michael Hope  <michaelh AT juju.net.nz>
13106
13107         * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
13108         getopt.h.
13109
13110         * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
13111         strtof is not part of C89 and isn't included with Mac OS X.
13112
13113 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13114
13115         * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
13116         shiftL2Left2Result): fixed bug #879326
13117         (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
13118         (genMultOneByte): fixed bug in signed vs unsigned multiplication
13119         * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
13120         address fetch for clr instruction
13121         * device/lib/hc08/_mulint.c: created optimized assembly version
13122         * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
13123
13124 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
13125
13126         * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
13127         proposed in FR #877103
13128
13129 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
13130
13131         * src/SDCCval.c (cheapestVal): added missing checks
13132         * src/SDCCicode.c (usualBinaryConversions): fixed condition
13133         * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
13134
13135 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
13136
13137         * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
13138         equal operands
13139
13140 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
13141
13142         * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
13143         loaded with the linker search paths (-L arguments) and the libraries
13144         to be linked with the current source (-l arguments). Changes
13145         currently will affect only the pic16 port.
13146         * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
13147         include path the port specific paths and port specific libraries,
13148         * gplink command now contains the $3 argument,
13149         * src/pic16/device.h,
13150         * src/pic16/device.c,: structure PIC_device is made public and
13151         renamed to PIC16_device, the same for variable Pics which is renamed
13152         to Pics16. Updated all references to them.
13153         * src/pic16/glue.c (pic16glue): corrected bug with code
13154         initialization which bypassed the variable initializations block.
13155
13156         * device/lib/pic16/Makefile.rules: removed --penable-stack from
13157         COMPILE_FLAGS and added the --nostdinc option
13158
13159 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13160
13161         * device/include/mc68hc908jb8.h: Register defs for another member
13162         of the hc08 family. Contributed by Bjorn Bringert - thanks!
13163
13164 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
13165
13166         Documenting changes from previous commits.
13167         * configure.in (version 1.56),
13168         * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
13169         when generating output files to configure the pic16 library,
13170         but now I've commented it out, since gputils aren't installed in the
13171         SF compile farm, so library won't compile
13172
13173         * device/lib/Makefile.in (version 1.56): initially I've added in
13174         target 'all' the prerequestive 'model-pic16' so it compiled the
13175         pic16 library, but now I've commented it out for the same reasons
13176         above,
13177         * added targets 'model-pic16' and 'objects-pic16' to compile the
13178         library
13179         * added target 'port-specific-objects-pic16' to handle the
13180         generated libraries and copy them into the build/ directory
13181         * added target 'clean-intermediate-pic16' to clean intermediate
13182         files into pic16 directory
13183         * in target 'installdirs' added line to create directory pic16 in
13184         the installation path
13185
13186         * device/include/Makefile.in (version 1.11): in target 'install'
13187         added lines to copy all header files to installation path,
13188         * in target 'installdirs' added line create directory for pic16
13189         headers in the installation path
13190
13191 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
13192
13193         * src/ds390/gen.c (genCall): fixed a double use of acc and b after
13194          a function call
13195
13196 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
13197
13198         * configure,
13199         * device/lib/configure.in,
13200         * device/lib/configure: fixed for autoconf 2.57
13201
13202 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13203
13204         * src/z80/main.c (_parseOptions): fixed the portmode= command line
13205         option so that it actually works. Made it specific to the z80, since
13206         the gbz80 doesn't have these kinds of I/O ports.
13207
13208 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13209
13210         * device/include/z180.h,
13211         * device/lib/_memcpy.c,
13212         * device/lib/_memmove.c,
13213         * device/lib/_mulint.c,
13214         * device/lib/ser_ir.c,
13215         * device/lib/ser_ir_cts_rts.c,
13216         * device/lib/_strcmp.c,
13217         * device/lib/_strtok.c: fixed pragmas to non-deprecated form
13218         * src/z80/main.c (_process_pragma): add support for pragmas bank and
13219         portmode; added deprecation warning for bank= and protmode= forms.
13220         Also, guard against buffer overflow.
13221         * src/z80/gen.c (aopGet): generate better code for sfr banked read
13222
13223 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13224
13225         * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
13226         changed interrupt vector table generation to only emit declared vectors.
13227         * device/include/Makefile.in: added missing backslash
13228         * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
13229
13230 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
13231
13232         Mainly changes to support compilation of the device libraries
13233         * src/pic16/device.c: stack is allocated via symbol and not
13234         via literal number. The symbol is placed in the corresponding
13235         position of the data ram
13236         * (pic16_dump_section): relocatable and absolute uninitialized
13237         data are now emitted in sorted order to reduce section naming,
13238         * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
13239         weren't marked as being in the access bank,
13240
13241 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
13242
13243         Added portion of GNU PIC Library under the directory
13244         device/include/pic16 and device/lib/pic16. These files
13245         contain the declarations of SFRs for the PIC18Fxx2 devices.
13246         The directory is initialized via configure from toplevel.
13247
13248 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
13249
13250         * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
13251         the spilllocations to be compared correctly
13252
13253 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
13254
13255         * src/SDCCast.c (decorateType): fixed bug introduced today
13256
13257 2004-01-12  Borut Razem <borut.razem AT siol.net>
13258
13259         * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
13260         doc/sdccman.lyx: upper case pragmas are deprecated
13261
13262 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
13263
13264         * src/SDCCast.c (decorateType): replacing 'ul > 0' by  '!ul' results
13265         in simpler and even better code
13266
13267 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
13268
13269         * src/SDCCicode.c (operandOperation): fixed bug #874819
13270         * src/SDCCast.c (decorateType): fixed
13271         char foo (unsigned long ul) { return ul > 0; }
13272
13273 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13274
13275         * doc/sdccman.lyx: Moved and added some sections, small changes
13276         all over. Telling LaTeX to be less strict with word spacing
13277         to better keep the right margin. Changed some notes about
13278         maintainance of the ports in section 3.2.1 - is it OK like this?
13279
13280 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
13281
13282         SDCC source changes:
13283         * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
13284         convilong): modified to inform the pic16 port that builtin functions
13285         are external
13286
13287         PIC16 PORT specific changes:
13288         * src/pic16/device.c pic16_dump_equates() added,
13289         processor registers declared internally by the port are emitted in
13290         the translation as equates,
13291         * src/pic16/gen.c: inline code is passed unprocessed to the
13292         translation,
13293         * (pic16_popGetLit2): fnuction modified to take second operand as
13294         pCodeOp pointer and not as literal,
13295         * (popRegFromIdx): prefixed with pic16_,
13296         * (pic16_popCombine2): modified to receive already allocated pCode
13297         operands,
13298         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
13299         * (genFunction): initializes local stack frame and pushes on stack
13300         all the registers used by this function,
13301         * (genEndFunction): restores all registers from stack and restores
13302         stack frame,
13303         * src/pic16/glue.c (pic16emitRegularMap): various changes and
13304         improvements,
13305         * (pic16glue): changed the program startup sequence,
13306         * added new dbName code 'A' for functions placed in absolute section
13307         * src/pic16/main.c: added function attribute _naked,
13308         * added pragma 'code' to place a fnuction at an absolute address,
13309         * added command line arguments --debug-ralloc and --pcode-verbose,
13310         * (_pic16_finiliseOptions): options.all_callee_saves is set by default
13311         * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
13312         * (pic16_newpCodeOpLit2): modified to take the second operand as
13313         pCodeOp pointer,
13314         * (pic16_printpBlock): modified to emit each function in a separate
13315         section,
13316         * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
13317         UPPER for immediate operands,
13318         * src/pic16/pcodepeeph.c: added peephole support for the LFSR
13319         instruction,
13320         * src/pic16/peeph.def: all peepholes with movff are commented out,
13321         because there is a problem in the pcode peep optimizer,
13322         * src/pic16/ralloc.c: the register allocator can now reuse local
13323         function symbols for another function. This saves register usage.
13324         * src/pic16/ralloc.h: added flag isLocal in structure regs,
13325
13326         Added file src/pic16/NOTES with information about program writing on
13327         the current port version.
13328
13329 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13330
13331         * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
13332         and peephole 252 (array access)
13333
13334 2004-01-09  Borut Razem <borut.razem AT siol.net>
13335
13336         * src/SDCCmain.c : fixed #872250: -l command line defined library
13337           files are scanned before standard library files
13338
13339 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13340
13341         * src/SDCCast.c (decorateType): fixed bug #874046
13342
13343 2004-01-09  Borut Razem <borut.razem AT siol.net>
13344
13345         * support/scripts/sdcc.nsi: remove previous installation
13346
13347 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13348
13349         * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
13350         bytes for last interrupt vector (mcs51)
13351         * sdcc.spec: fixed typo
13352
13353 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13354
13355         * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
13356         gen51Code): more efficient parameter receive for --model-large
13357         ("bug" #845294)
13358
13359 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13360
13361         * src/ds390/main.c,
13362         * src/z80/main.c: added missed needLinkerScript flags (more than
13363         one port structure defined in these file)
13364         * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
13365         bug #795325
13366
13367 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
13368
13369         * src/SDCCmain.c: removed various references to DEFAULT_PORT
13370         * src/port.h: added flag needLinkerScript in port->linker
13371         structure to inform whether to create a .lnk file or not,
13372         * src/avr/main.c,
13373         * src/ds390/main.c,
13374         * src/hc08/main.c,
13375         * src/mcs51/main.c,
13376         * src/pic/main.c,
13377         * src/pic16/main.c,
13378         * src/xa51/main.c,
13379         * src/z80/main.c: changed appropriately to configure
13380         needLinkerScript flag
13381         * src/pic/gen.c,
13382         * src/pic16/gen.c (genAddrOf): fixed bug #863624
13383         * src/pic/glue.c: added variable udata_section_name to
13384         override default uninitialized data segment definition for
13385         devices only with SHAREBANK memory (reported from Erik Epetrich)
13386         * (pic14emitOverlay): modified to emit a commented overlay segment
13387         directive when no overlay data exist
13388         * (picglue): modified to emit uninitialized data segment
13389         according to udata_section_name
13390         * src/pic/main.c (_pic14_parseOptions): added command line
13391         options --udata-section-name=[name] to override default
13392         udata definition name
13393         * modified _linkCmd and _asmCmd to include compiler passed
13394         arguments via -W option
13395         * src/pic16/main.c: added $l in _asmCmd, changed extension for
13396         object file from '.rel' to '.o' in port->linker structure,
13397         changed size of fptr from 2 to 3 in port structure
13398
13399 2004-01-07  Borut Razem <borut.razem AT siol.net>
13400
13401         * support/scripts/sdcc.nsi: update PATH
13402         * support/scripts/sdcc.ico: craeted
13403
13404 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
13405
13406         * device/include/Makefile.in: fix install
13407         * doc/Makefile: fix install
13408
13409 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13410
13411         * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
13412         in bug #860505
13413         * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
13414         how the function variable allocation summary is displayed; also
13415         include information about variables allocated to the overlay
13416         segment
13417
13418 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13419
13420         * as/mcs51/lkmain.c: Help about -Y option
13421         * as/mcs51/lkarea.c: Fixed gcc warnings
13422
13423 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
13424
13425         * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
13426         fixed warning
13427         * support/valdiag/tests/overflow.c: added
13428         * src/SDCCast.c (decorateType),
13429         * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
13430         LEFT_OP (left shift)
13431
13432 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13433
13434         * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
13435         (default behaviour).
13436
13437 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13438
13439         A python script to validate compiler diagnostic messages. It can be
13440         used to verify that sdcc complains about bad c source code and
13441         gives a good location of the error.
13442         * support/valdiag/Makefile,
13443         * support/valdiag/valdiag.py,
13444         * support/valdiag/tests/*
13445
13446 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13447
13448         * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
13449         * src/SDCCsymt.c (newEnumType),
13450         * src/SDCCsymt.h
13451         * support/Util/SDCCerr.c,
13452         * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
13453         enum related bugs.
13454         * support/regression/tests/enum.c: added test for enum values that
13455         require at least 2 bytes of storage.
13456
13457 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
13458
13459         * src/common.h: added ifndef/define/endif macros
13460         around the header file.
13461         Bug reported from Jesus Calvino-Fraga
13462
13463 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
13464
13465         * sdcc.spec: updated
13466         * device/include/Makefile.in: don't install CVS directories
13467         * device/lib/Makefile.in: added removal of CVS directories after install
13468         * doc/Makefile: fixed install, added local_icons
13469         * sim/ucsim/gui.src/Makefile.in: fixed an old typo
13470         * src/mcs51/gen.c (genRightShift): fixed bug #870788
13471         * src/ds390/gen.c (genRightShift): fixed bug #870788
13472         * src/SDCCast.c (decorateType): fixed bug #870781
13473
13474 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
13475
13476         PIC16 port related changes:
13477         * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
13478         added variable stackPos,
13479
13480         * gen.c: genCall, assignResultValue: added support for
13481         pushing/retrieving function parameters to/from stack,
13482         genFunction,genEndFunction: setup stack frame for the
13483         generated function,
13484         genAddrOf: will be changed according to bug 863624
13485
13486         * added files genutils.c and genutils.h which contain gen*
13487         debugged and optimised functions extracted from gen.c
13488
13489         * glue.c: added variable 'externs' which holds extern symbols,
13490         pic16emitRegularMap: is modified to properly handle relocatable
13491          symbols under the new scheme,
13492         pic16createInterruptVect: is modified
13493         pic16printPublics: is modified to emit 'global' assembler directives,
13494         added pic16_printExterns to print extern symbols,
13495         pic16glue: initializes stack/frame pointer in the beginning of
13496         the assembly output. Temporary hack, will be corrected later,
13497         because gplink yet does not support stack and SDCC does not
13498         yet support a type of crt0.o object to create the final binary.
13499
13500         * Removed many lines that contain 8051 legacy code.
13501         * The code is finally placed under a 'code' directive.
13502         * Added port specific options.
13503
13504         * _process_pragma: simplified since now we do not need *special*
13505         include file to define SFR registers. But a separate header
13506         will be needed. This will be developed later.
13507         * _pic16_parseOptions: added, parses port specific options:
13508         --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
13509         --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
13510         --preplace-udata-with=
13511
13512         * _pic16_setDefaultOptions: modified to initialize section names,
13513         but hack is temporarly out of order since it needs improvement.
13514         * _pic16_genAssemblerPreamble: configuration words are emitted by
13515         their address instead of their name. This part is incomplete and
13516         supports only the 18Fxx2 devices. Other devices will emit an error
13517         during assembly since they do not contain the same set of config
13518         registers
13519         * _pic16_genIVT: is modified,
13520
13521         * pcode.c: added definitions for some hardware registers that are needed
13522         for stack support
13523         * added flag is2LitOp and variable pci_magic in pCodeInstruction.
13524         All PCI entries are updated. Now LFSR is supported.
13525         * Removed pic16_pciTRIS is mentioned by mdubuc in source
13526         * added pic16_newpCodeOpLit2 to support instructions with
13527         two literal arguments
13528         * pic16_pCode2str: corrected code that emits assembler instructions
13529         with two literal operands and those that have an access bit modifier
13530         * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
13531         this fixes a bug which caused some labels to be lost, when an
13532         assembler directive was added, i.e. banksel,
13533         * pic16_FixRegisterBanking: improved logic that causes the insertion
13534         of bank switching,
13535         * InlineFunction: functions that are called once, are not any more
13536         inlined. This can be a port option in the future,
13537
13538         * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
13539
13540         * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
13541         hold the corresponding uninitialized symbols,
13542         * pic16_allocProcessorRegister: registers have explicit marked the
13543         accessBank field,
13544         * pic16_allocInternalRegister: registers are explicit marked as
13545         not used,
13546         * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
13547         processing list, so bit registers were lost,
13548         *
13549
13550         * ralloc.h: added field 'accessBank' and original symbol operand
13551         in register definition,
13552         * removed the field isMapped from register definition,
13553
13554         ** Several functions have been removed from various sources:
13555         BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
13556         pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
13557         isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
13558         pic16_assignRelocatableRegisters
13559
13560         ** others have been introduced:
13561         pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
13562         pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
13563
13564 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
13565
13566         * support/scripts/inc2h.pl: changed definition of BIT_AT
13567         to emit 'sbit at' instead of 'bit at'. This was a request.
13568
13569         PIC16 port related preliminary changes:
13570         * gen.c: prefixed function popRegFromString with
13571         pic16_ and all references to it corrected
13572         * pcode.c: all pic16_pc_* hardware registers prefixed
13573         with underscore (_),
13574         pic16_popCopyGPR2Bit(): function sets register wasUsed=1
13575         * ralloc.c: newReg(): when register is REG_SFR then
13576         set address to rIdx,
13577         pic16_allocProcessorRegister(): marks register wasUsed=0
13578         pic16_writeUsedRegs(): added a call to assign processor
13579         registers via pic16_assignFixedRegisters
13580
13581 2004-01-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13582
13583         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
13584         as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
13585         variables in unused register banks.  Also the SSEG is placed
13586         wherever there is enough space for it, and IDATA can be anywhere
13587         in internal RAM.  For now compile using -Wl-Y[stack_size].
13588         The mem file is different for this option as well, since it
13589         makes no sense of talking about DSEG lenght.
13590
13591 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
13592
13593         * src/SDCClrange.c: fixed bug 869095 that caused segfault
13594         in certain cases, e.g. when ROM assignment, patch provided
13595         from Albert den Haan.
13596
13597 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
13598
13599         Many signedness and type propagation fixes:
13600         * src/SDCCicode.c: made geniCodeCast() static
13601         replaced SPEC_ by IS_ (cosmetic)
13602         (operandOperation): fixed div and mod operation
13603         (usualBinaryConversions): added support for promotion of char
13604         (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
13605         (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
13606         (geniCodeAdd): an array index will stay unsigned, even if promoted
13607         from char to int
13608         (geniCodeArray): ditto
13609         * src/SDCCicode.h: made geniCodeCast() static: removed prototype
13610         * src/SDCCsymt.c (computeType): added more support for char;
13611         promotion of char is selectable by promoteCharToInt, fixed signedness
13612         for all cases
13613         (powof2): replaced (unsigned long) by (TYPE_UDWORD)
13614         * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
13615         * src/SDCCval (val*): replaced signedness calculation by
13616         computeType()
13617         rearranged if-branches (cosmetic)
13618         (valShift): added warning W_SHIFT_CHANGED
13619         (valCompare): fixed problem with different types
13620         * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
13621         * support/regression/tests/literalop.c: added many cases
13622         * support/regression/tests/ast_constant_folding.c: changed finally to
13623         'unsigned int'
13624         * .version: new year, new version: 2.3.7
13625         * src/SDCCmain.c (main): applied patch #866468
13626         * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
13627         provided by Scott Bronson
13628         * doc/sdccman.lyx: updated documentation for sdcdb
13629         updated and added chapter tips
13630
13631 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13632
13633         * src/SDCCsymt.h: missing from yesterday's commits
13634
13635 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13636
13637         * src/SDCC.y (struct_or_union_specifier),
13638         * support/Util/SDCCerr.c,
13639         * support/Util/SDCCerr.h: verify that struct & union tags are used
13640         as declared.
13641
13642 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13643
13644         * src/SDCCglobl.h: missing from yesterday's commits
13645
13646 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13647
13648         * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
13649         sft_attributes, struct_declaration, parameter_declaration,
13650         type_name, start_block, declaration_list),
13651         * src/SDCC.lex (check_type): support redefinition of typedef names
13652
13653 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13654
13655         * src/mcs51/gen.c (genPlus): added special handling for 256 byte
13656         aligned xdata arrays. Erik helped me with the if clause.
13657
13658 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13659
13660         * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
13661         warning
13662
13663 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13664
13665         * src/SDCCast.h,
13666         * src/SDCCast.c (newAst_),
13667         * src/SDCCicode.h,
13668         * src/SDCCicode.c (ast2iCode, newiCode),
13669         * src/SDCCglobl.h,
13670         * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
13671         expr, statement, expression_statement, selection_statement,
13672         iteration_statement, expr_opt, jump_statement): foundation for tracking
13673         sequence points
13674         * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
13675         point code too)
13676
13677 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13678
13679         * support/Util/SDCCerr.c,
13680         * src/SDCCast.h,
13681         * src/SDCCast.c (createCase, createDefault, decorateType),
13682         * src/SDCClabel.c (labelUnreach),
13683         * src/SDCC.y (labeled_statement, jump_statement): More improvements
13684         to error messages.
13685         * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
13686         (with thanks to Stas Sergeev)
13687         * device/include/time.h,
13688         * device/lib/time.c (CheckTime): suppress unreachable code warning
13689
13690 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13691
13692         * src/SDCCast.c (createIvalCharPtr),
13693         * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
13694         bug #753752)
13695         * support/regression/tests/nullstring.c: tests for these two bugs
13696
13697 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13698
13699         * support/Util/SDCCerr.h,
13700         * support/Util/SDCCerr.c (E_NOT_ALLOWED),
13701         * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
13702         about storage class and 'at' used inside struct or union
13703         * src/SDCCBBlock.c (iCodeFromeBBlock),
13704         * src/SDCCcse.c (ifxOptimize),
13705         * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
13706         printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
13707         printIval, emitStaticSeg, emitOverlay),
13708         * src/SDCClabel.c (deleteIfx),
13709         * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
13710         * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
13711         gatherAutoInit, processParms),
13712         * support/Util/SDCCerr.h,
13713         * support/Util/SDCCerr.c (werrorfl): Support for better error location
13714         reporting for post-parse errors.
13715
13716 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13717
13718         * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
13719         implicit casts via union; they don't work on big endian systems
13720         (possible fix for bug #861138)
13721
13722 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13723
13724         (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
13725         * src/mcs51/main.c: fixed the fix for bug #737001
13726
13727 2003-12-15  Borut Razem <borut.razem AT siol.net>
13728
13729         * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
13730
13731 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13732
13733         * support/makebin/makebin.c: put output in binary mode
13734
13735 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13736
13737         * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
13738         xdata and data memory on startup. Set the environment variable
13739         SDCC_NOGENRAMCLEAR to disable this.
13740         * src/mcs51/peephole.def,
13741         * src/ds390/peephole.def: using the atomic test and clear instruction jbc
13742         (allows non-interrupt and interrupt code to safely compete for a resource
13743         without the non-interrupt code having to disable interrupts)
13744
13745 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13746
13747         * src/SDCCicode.c (geniCodeAdd),
13748         * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
13749         with valFromType if type might be a pointer and host is big endian).
13750         * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
13751         types, not just integer types.
13752         * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
13753         multiply defined with mismatching "at" address.
13754
13755 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13756
13757         * src/ds390/main.c (PORT tininative_port): fixed bug #858416
13758         * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
13759         * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
13760         with embedded nulls (fixed bug #753752)
13761
13762 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13763
13764         * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
13765         Apparently this did not see much testing (endless loop)
13766
13767 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13768
13769         * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
13770
13771 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13772
13773         * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
13774         gracefully handle NULL memmap pointers
13775
13776 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13777
13778         * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
13779         instead of deleting the iCode when an operand is volatile
13780         * src/z80/gen.c (genDummyRead),
13781         * src/mcs51/gen.c (genDummyRead),
13782         * src/ds390/gen.c (genDummyRead),
13783         * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
13784         not just IC_RIGHT
13785         * src/SDCCicode.c (geniCodeCall): fixed bug #851607
13786         * src/SDCC.y: fixed bug #850420
13787
13788 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13789
13790         Applied z80 i/o port patch from Peter Townson and fixed some operators
13791         to better handle operands in A register.
13792         * device/include/z180.h
13793         * src/SDCC.y
13794         * src/SDCCglue.c
13795         * src/z80/gen.c
13796         * src/z80/gen.h
13797         * src/z80/main.c
13798         * src/z80/peeph-z80.def
13799         * src/z80/peeph.def
13800         * src/z80/z80.h
13801
13802 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13803
13804         * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
13805
13806 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13807
13808         * device/lib/hc08/_mullong.c: Removed extra #endif
13809
13810 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13811
13812         * sim/ucsim/hc08.src/inst.cc,
13813         * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
13814         carries from x to h
13815         * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
13816         * src/hc08/gen.c (XAccRsh): fixed problem with right shift
13817         * device/include/stdarg.h: fixed varargs for hc08
13818         * device/lib/Makefile.in,
13819         * device/lib/hc08/Makefile,
13820         * device/lib/hc08/_mulint.c,
13821         * device/lib/hc08/_mullong.c: fixed some endian problems
13822
13823 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13824
13825         * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
13826         * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
13827         * device/lib/_gptrget.c,
13828         * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
13829
13830 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13831
13832         * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
13833         * src/SDCCast.c (astErrors): fixed bug #846007
13834         * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
13835
13836 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13837
13838         * src/SDCCast.c (decorateType): disabled a transformation I added in
13839         revision 1.188 (access to fields of a structure at an absolute address);
13840         it breaks with bitfields, extern declarations, and gcse analysis.
13841         * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
13842         could be assigned through a pointer, so don't complain.
13843         * src/SDCCast.c (astErrors),
13844         * src/SDCCast.h,
13845         * src/SDCCglue.c (emitRegularMap): fixed bug #847813
13846
13847 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
13848
13849         * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
13850         * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
13851         output of __config directives, since gpasm now supports them
13852         * src/pic16/main.c (_pic16_finaliseOptions): define MCU
13853         pre-processor macro, i.e. -DMCU=p18f452
13854         * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
13855         and modified to handle 'cast' icode similarly to '=' icode
13856         * src/pic16/device.h (typedef struct PIC_device): added field
13857         'extMIface' to indicate that chip has external memory interface
13858         * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
13859         18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
13860         18F8720
13861
13862 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13863
13864         * src/SDCC.y (pointer): fixed bug #846006
13865         * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
13866         * src/SDCCast.c (decorateType): fixed bug #846009
13867         * src/ds390/peeph.def,
13868         * src/ds390/gen.c (genAnd, genOr),
13869         * src/mcs51/peeph.def,
13870         * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
13871
13872 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13873
13874         Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
13875         * src/SDCCdflow.c
13876         * src/SDCCcse.c
13877         * src/SDCCcse.h
13878         * src/SDCCBBlock.h
13879         * src/SDCCBBlock.c
13880
13881 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
13882
13883         fixed bug #845089
13884         * src/SDCCbitv.h,
13885         * src/SDCCbitv.c: added function to free a bitvector
13886         * src/SDCClrange.h,
13887         * src/SDCClrange.c: added function to recompute the liveranges
13888         * src/avr/ralloc.c,
13889         * src/ds390/ralloc.c,
13890         * src/hc08/ralloc.c,
13891         * src/mcs51/ralloc.c,
13892         * src/pic/ralloc.c,
13893         * src/pic16/ralloc.c,
13894         * src/xa51/ralloc.c,
13895         * src/z80/ralloc.c: recompute the liveranges after register packing
13896
13897 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
13898
13899         * src/SDCCloop.c (newInduction): fixed bug #845630
13900
13901 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13902
13903         * src/SDCCsymt.c (compareTypesExact): disabled debugging output
13904         inadvertantly left behind from my 2003-11-12 change
13905
13906 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13907
13908         Updated headers I neglected to commit yesterday.
13909         * src/SDCClrange.h,
13910         * src/SDCCicode.h
13911
13912 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13913
13914         * src/SDCCcse.c (algebraicOpts): fixed bug #773153
13915         * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
13916         * src/SDCCopt.c (eBBlockFromiCode),
13917         * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
13918         the creation of the key hash table from the sequencing so it can be used
13919         earlier (for some GCSE bug fixes still pending)
13920
13921 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13922
13923         * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
13924         * support/regression/tests/addsub.c: testing genPlus shortcut
13925
13926 2003-11-15  Borut Razem <borut.razem AT siol.net>
13927
13928         * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
13929
13930 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13931
13932         * src/SDCCcse.c (cseBBlock): fixed bug #527779
13933         * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
13934         ordering is immaterial.
13935         * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
13936
13937 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13938
13939         * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
13940         * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
13941         (SIGSEV) of bug #840381
13942         * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
13943         unlink new file before rename if new and old filenames are the same)
13944
13945 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13946
13947         * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
13948         uninitialized variables) for the mcs51. Set environment variable
13949         SDCC_GENRAMCLEAR to test.
13950         xdata initialization slightly shorter
13951
13952 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13953
13954         * src/SDCCsymt.h,
13955         * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
13956         #838241 & 780691 (basicly the same bug)
13957         * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
13958         * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
13959
13960 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
13961
13962         * src/SDCCmain.c (linkEdit): "fix" #834252
13963
13964 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13965
13966         * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
13967         * src/SDCCast.h,
13968         * src/SDCC.y: fixed bug #819403
13969
13970 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13971
13972         * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
13973         the reentrant attribute.
13974         * src/hc08/gen.c (genPackBits): added missing stack readjustment
13975         * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
13976         simulation
13977         * src/SDCCast.c (decorateType): fixed bug with storage class not being
13978         updated during pointer dereference; f.e. ~(((char *)1)*) was being
13979         erroneously reduced to a literal.
13980         * src/hc08/ralloc.c (packRegisters, rematStr),
13981         * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
13982         some cases
13983
13984 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13985
13986         * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
13987         * doc/sdccman.lyx: changed from 'article' to 'book'
13988         * doc/Makefile: readded test_suite_spec and cdbfileformat
13989
13990 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
13991
13992         * device/include/stdlib.h: include malloc.h to comply with ANSI
13993         * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
13994
13995 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13996
13997         * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
13998         * doc/clean.mk: also remove *.out files
13999         * doc/sdccman.lyx: some additions, larger top/bottom margins
14000
14001 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14002
14003         * src/SDCC.y: fixed bug #837365
14004         * support/regression/tests/bitopcse.c
14005         * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
14006         a symbol (might be valop instead)
14007         * device/lib/Makefile.in: added errno.c to HC08SOURCES
14008         * device/lib/clean.mk: added hc08 to the cleaning list
14009
14010 2003-11-04  Borut Razem <borut.razem AT siol.net>
14011
14012         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
14013           made 2003-11-04
14014         * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
14015           as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
14016           malloc is declared in standard stdlib.h
14017
14018 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14019
14020         * device/lib/hc08/Makefile: need to clean .rel not .o files
14021         * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
14022
14023 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14024
14025         * src/port.h,
14026         * src/hc08/main.c,
14027         * src/mcs51/main.c,
14028         * src/ds390/main.c,
14029         * src/z80/main.c,
14030         * src/avr/main.c,
14031         * src/pic/main.c,
14032         * src/pic16/main.c,
14033         * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
14034         * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
14035         tests (which uses the port's oclsExpense function)
14036         * src/SDCC.y,
14037         * src/SDCCast.c,
14038         * src/SDCCicode.c,
14039         * src/hc08/gen.c,
14040         * src/ds390/gen.c,
14041         * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
14042
14043 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14044
14045         * src/SDCCcse.c (ifxOptimize),
14046         * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
14047         an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
14048         deleting the IFX iCode.
14049         * src/hc08/ralloc.c: reduced unneeded slocs
14050         * src/hc08/gen.c: fixed bug in asmopToBoolean
14051
14052 2003-11-04  Borut Razem <borut.razem AT siol.net>
14053
14054         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
14055           support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
14056           as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
14057           transferred to configure
14058
14059 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
14060
14061         Use headers defined in the C[++] standards:
14062         * sim/ucsim/gui.src/serio.src/fileio.cc
14063         * sim/ucsim/gui.src/serio.src/frontend.cc
14064         * sim/ucsim/gui.src/serio.src/main.cc
14065         * sim/ucsim/gui.src/serio.src/posix_signal.cc
14066         * support/Util/NewAlloc.c
14067         * as/hc08/lklibr.c
14068         * as/mcs51/lklibr.c
14069         * as/z80/aslist.c
14070         * as/z80/assym.c
14071
14072 2003-11-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14073
14074         * Added MSVC projects for hc08 assembler and linker:
14075         all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
14076         /as/hc08/link_hc08.dsp
14077
14078 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
14079
14080         * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
14081
14082 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
14083
14084         * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
14085
14086 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14087
14088         * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
14089
14090 2003-10-31  Borut Razem <borut.razem AT siol.net>
14091
14092         * support/cpp2/cpplib.h,
14093           support/cpp2/cpplib.c,
14094           support/cpp2/cpplex.c,
14095           support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
14096           to switch _asm block preprocessing on / off. Default is
14097           #pragma preproc_asm +
14098
14099 2003-10-31  Borut Razem <borut.razem AT siol.net>
14100
14101         * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
14102           when outputting comment blocks (when executed with -C option) and
14103           _asm (SDCPP specific) blocks
14104
14105 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14106
14107         * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
14108
14109 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
14110
14111         * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
14112
14113 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
14114
14115         * src/SDCCmain.c (linkEdit): "fixed" bug #833605
14116         * src/SDCCast.c (decorateType): fixed bug #832664
14117
14118 2003-10-31  Borut Razem <borut.razem AT siol.net>
14119
14120         * support/cpp2/cpplex.c: fixed for SDCPP:
14121           comments(when executed with -C option) and _asm blocks
14122           were included even if they where in skipped #if block.
14123           Applied solution from GCC cpp 3.3.2
14124
14125 2003-10-31  Borut Razem <borut.razem AT siol.net>
14126
14127         * src/SDCC.lex: sdcc now understands both formats:
14128           '# <line_number> <file_name>' and
14129           '#line <line_number> <file_name>'
14130         * support/cpp2/cppmain.c: sdcpp now generates the standard
14131           '# <line_number> <file_name>' instead of former
14132           '#line <line_number> <file_name>'
14133
14134 2003-10-30  Borut Razem <borut.razem AT siol.net>
14135
14136         * support/cpp2/cpphash.h,
14137         * support/cpp2/cpplib.h
14138         * support/cpp2/cpplex.c,
14139         * support/cpp2/cppmain.c,
14140         * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
14141
14142 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14143
14144         Fixed a number of problems revealed by bug #827883.
14145         * src/SDCCloop.c (loopInvariants): Spill location of the
14146         result operand should be recomputed if extracted from
14147         a loop. Also, don't extract assignments of an iTemp
14148         from a literal.
14149         * src/SDCCast.c (isConformingBody): loop reversal should
14150         not occur if the control variable is involved with a
14151         relational operator.
14152
14153 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
14154
14155         * .version: bumped to 2.3.6 to reflect the big improvements
14156         made by Erik and Klaus. Thanks!
14157
14158 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
14159
14160         Replaced the livrange code.
14161         * src/SDCClrange.c: added new LR code
14162         * src/SDCCloop.c,
14163         * src/SDCCBBlock.h: removed remainig parts from old LR code
14164         * src/ds390/ralloc.c,
14165         * src/ds390/gen.c: minor fixes to make it work with new code
14166
14167 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14168
14169         * as/hc08/asm.h,
14170         * as/hc08/lkrloc.c,
14171         * src/hc08/gen.c,
14172         * src/hc08/ralloc.c: Fix various warnings related to the hc08
14173         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
14174         (tweaked fix for bug #818696)
14175
14176 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14177
14178         * src/z80/ralloc.c (joinPushes): Fixed bug #828742
14179
14180 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14181
14182         * src/SDCCmain.c,
14183         * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
14184         * src/mcs51/gen.c (gencjneshort),
14185         * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
14186         more efficient (per Scott Bronson's suggestion)
14187
14188 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14189
14190         Extended the semantics of the critical keyword to include
14191         individual statements. See RFE #827755 and #799831
14192         * src/SDCC.y
14193         * src/SDCCicode.c
14194         * src/SDCCopt.c
14195         * src/SDCCast.c
14196         * support/Util/SDCCerr.c
14197         * support/Util/SDCCerr.h
14198         * src/mcs51/gen.c
14199         * src/ds390/gen.c
14200         * src/hc08/gen.c
14201
14202 2003-10-19  Borut Razem <borut.razem AT siol.net>
14203
14204         * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
14205
14206 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14207
14208         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
14209         Fixed bug #818696
14210         * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
14211         and predecrement operand is displayed
14212
14213 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
14214
14215         * src/SDCCval.c (valMinus): fixed bug #826041
14216
14217 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14218
14219         Some hc08 related updates that I missed earlier
14220         * sim/ucsim/stypes.h
14221         * support/regression/ports/hc08/spec.mk
14222
14223 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14224
14225         New target "hc08" for the Motorola 68hc08 family of micros
14226
14227         * configure
14228         * configure.in
14229         * Makefile
14230         * src/hc08/*
14231         * src/SDCCmain.c
14232         * src/port.h
14233         * sim/ucsim/hc08.src/*
14234         * sim/ucsim/configure.in
14235         * src/ucsim/configure
14236         * sim/ucsim/packages_in.mk
14237         * as/hc08/*
14238         * as/Makefile
14239         * device/include/mc68hc908qy.h
14240         * device/lib/hc08/*
14241         * device/lib/Makefile.in
14242         * support/regression/ports/hc08/*
14243         * support/regression/Makefile
14244
14245 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14246
14247         * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
14248         regression test
14249         * src/ds390/gen.c (genCast): fixed bug #821957
14250
14251 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
14252
14253         * device/lib/logf.c: "fixed" overlay bug
14254         * support/regression/ports/host/spec.mk: added m library
14255         * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
14256         * support/regression/tests/float_trans: added (for Eric)
14257
14258 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
14259
14260         * src/mcs51/gen.c (genCpl): fixed bug
14261         http://sf.net/mailarchive/message.php?msg_id=6263915
14262
14263 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
14264
14265         * src/SDCCast.c (decorateType): added extended constant folding
14266         * src/SDCCsymt.c (computeType): cleanup
14267         * src/SDCCval.c (valShift): minor optimization
14268         * support/regression/tests/ast_constant_folding.c: added
14269
14270 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14271
14272         * src/SDCCmain.c: removed some unintended changes
14273
14274 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14275
14276         * src/SDCCmain.c (setParseWithComma): fixed bug #816685
14277         * src/z80/gen.c: fixed part of bug #817589
14278         * src/SDCCsymt.c (checkFunction): fixed bug #817895
14279
14280 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
14281
14282         Replaced cast (void **) with (void *) to avoid gcc 3 warning:
14283         * src/SDCCcflow.c
14284         * src/SDCCcse.c
14285         * src/SDCCdflow.c
14286         * src/SDCClabel.c
14287         * src/SDCClrange.c
14288         * src/SDCCmem.c
14289         * src/SDCCopt.c
14290         * src/SDCCpeeph.c
14291         * src/SDCCset.c
14292         * src/avr/ralloc.c
14293         * src/ds390/ralloc.c
14294         * src/izt/ralloc.c
14295         * src/mcs51/ralloc.c
14296         * src/pic/ralloc.c
14297         * src/pic16/ralloc.c
14298         * src/xa51/ralloc.c
14299         * src/z80/ralloc.c
14300         * src/z80/gen.c: removed unused label "release:"
14301
14302 2003-10-06  Borut Razem <borut.razem AT siol.net>
14303
14304         * src/SDCC.lex: removed definition of unused variables
14305           save_optimize and save_options
14306
14307 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
14308
14309         * clean.mk: removed '=' in "-maxdepth=1"
14310         * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
14311         * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
14312
14313 2003-10-06  Borut Razem <borut.razem AT siol.net>
14314
14315         * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
14316           my_unput() replaced by unput()
14317
14318 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
14319
14320         * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
14321         setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
14322         type-punned pointer will break strict-aliasing rules"
14323         Old LR behaviour is again default; Klaus' LR can be choosen by
14324         defining the environment variable LRKLAUS
14325         * src/SDCCBBlock.h
14326         * src/SDCCloop.c
14327         * src/SDCClrange.c
14328         * src/ds390/ralloc.c (spillThis): applied Klaus' patch
14329         * clean.mk: fixed removal of files in bin/CVS/
14330         * device/lib/clean.mk: fixed removal of directories small and large
14331         * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
14332         * src/SDCCicode.c,
14333         * src/SDCCval.c: removed superflous test for pedantic
14334
14335 2003-10-05  Borut Razem <borut.razem AT siol.net>
14336
14337         * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
14338           Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
14339           message "unmatched #pragma SAVE and #pragma RESTORE"
14340
14341 2003-10-04  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14342
14343         * doc/sdccman.lyx: various additions and updates (interrupts, inline
14344           assembly, critical functions, atomic, nojtbound)
14345
14346 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
14347
14348         Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
14349         * src/SDCCBBlock.h
14350         * src/SDCCloop.c
14351         * src/SDCCloop.h
14352         * src/SDCClrange.c
14353
14354 2003-10-03  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14355
14356         * src/z80/gen.h,
14357         * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
14358         * src/mcs51/gen.h
14359         * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
14360         * src/ds390/gen.h
14361         * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
14362         * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
14363         * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
14364
14365 2003-10-02  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14366
14367         * src/z80/gen.c (genRet): fixed bug #524753
14368         * src/z80/gen.c (genCast): fixed internal error on cast from
14369         pointer to long
14370         * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
14371         fix for bug #477835 to the z80
14372         * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
14373         for tracking iCodes in the peephole optimizer for z80
14374
14375 2003-10-01  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14376
14377         * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
14378         the other part of bug #814548
14379         * src/SDCCpeeph.c (labelInRange): fixed bug #814558
14380
14381 2003-09-30  Bernhard Held <bernhard AT bernhardheld.de>
14382
14383         * src/SDCCcse.c: fixed part of bug #814548
14384
14385 2003-09-28  Borut Razem <borut.razem AT siol.net>
14386
14387         * src/asm.c: rewrite of printILine() to use temporary file instead
14388           a pipe
14389         * src/xa51/main.c: commented out declaration of int rewinds
14390
14391 2003-09-27  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14392
14393         * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
14394
14395 2003-09-26  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14396
14397         * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
14398         * src/asm.c (printILine): Fixed bug #811015
14399
14400 2003-09-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14401
14402         *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
14403         freeing.
14404
14405 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14406
14407         * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
14408         * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
14409         to correctly handle general case of AOP_PAIRPTR
14410         * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
14411
14412 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14413
14414         * src/mcs51/ralloc.c (fillGaps),
14415         * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
14416         register positioning bug)
14417
14418 2003-09-21  Bernhard Held <bernhard AT bernhardheld.de>
14419
14420         * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
14421
14422 2003-09-19  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14423
14424         * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
14425         genCodePointerGet, genGenPointerGet, genFarPointerSet,
14426         genGenPointerSet): handle AOP_DPTR correctly when loading dptr
14427         (ralloc doesn't intentionally do this now, but perhaps later)
14428         * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
14429         * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
14430         register positioning bugs (Fixed bug #762602 and #795325)
14431         * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
14432         (Fixed bug #808779)
14433         * src/z80/gen.c: increased _vemit2's buffer[] to handle long
14434         lines that --i-code-in-asm generates
14435
14436 2003-09-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14437
14438         *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
14439         trying to fclose a FILE* that was already closed.
14440
14441 2003-09-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14442
14443         * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
14444         of const struct should be treated as if const themselves)
14445
14446 2003-09-18  Bernhard Held <bernhard AT bernhardheld.de>
14447
14448         * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
14449
14450 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14451
14452         * support/librarian/sdcclib.c: Generate correct offsets for libraries with
14453         Unix (/n) and DOS (/r/n) line terminations.
14454
14455 2003-09-17  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14456
14457         * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
14458         bug #613775
14459
14460 2003-09-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14461
14462         * src/mcs51/gen.c (genFunction, genEndFunction),
14463         * src/ds390/gen.c (genFunction, genEndFunction): Moved save
14464         and restore of EA so that stack offsets to parameters are
14465         correct when using both critical and reentrant/stack-auto.
14466         * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
14467         size (can be triggered in error if sloc is shared between
14468         different sized objects)
14469         * device/include/float.h: fixed macros to explicitly use
14470         unsigned long where needed
14471
14472 2003-09-15  Bernhard Held <bernhard AT bernhardheld.de>
14473
14474         Feature req. 799831: added code to allow nesting of critical functions
14475         * src/mcs51/gen.c (genFunction, genEndFunction)
14476         * src/ds390/gen.c (genFunction, genEndFunction)
14477
14478 2003-09-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14479
14480         * src/SDCCsymt.c (sclsFromPtr),
14481         * src/SDCCsymt.h,
14482         * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
14483         support for standard C idiom of memory mapped variables; for
14484         example, *((xdata int*)0x1234) = 1 is now internally equivalent
14485         to xdata int at 0x1234 tempvar = 1.
14486         * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
14487         provided by Akiya ISHIDA
14488
14489 2003-09-13  Bernhard Held <bernhard AT bernhardheld.de>
14490
14491         * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
14492         * src/SDCCval.c (constVal): added reduction from int to char
14493         * src/SDCCval.c (valMult, valDiv): fixed sign handling
14494         * src/SDCCval.c (valShift): fixed after change of cheapestVal()
14495         * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
14496         to ignore the sign
14497         * support/regression/tests/shifts.c: fixed
14498
14499 2003-09-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14500
14501         * src/z80/gen.c (genXor): Fixed bug #805445
14502
14503 2003-09-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14504
14505         Fixed bug #621531 (const & volatile confusion in the type chain).
14506         DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
14507         refer to the const or volatile state of the pointer itself.
14508
14509         * src/SDCCast.c
14510         * src/SDCCglue.c
14511         * src/SDCCicode.c
14512         * src/SDCCsymt.c
14513         * src/SDCCval.c
14514         * src/SDCC.y
14515         * src/SDCCsymt.h
14516         * src/pic/gen.c
14517         * src/pic/ralloc.c
14518         * src/pic16/gen.c
14519         * src/pic16/ralloc.c
14520         * support/regression/tests/const.c
14521
14522 2003-09-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14523
14524         When checking for duplicated modules, use absolute paths
14525         instead of relative paths.  Files changed:
14526
14527         * as/mcs51/lklib.c
14528         * link/z80/lklib.c
14529
14530 2003-09-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14531
14532         * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
14533
14534 2003-09-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14535
14536         * device/include/string.h: added size_t typedef, changed
14537         prototypes to use size_t, eliminated separate reentrant and
14538         non-reentrant declarations, added _memmove declaration
14539         * device/lib/_memcpy.c: changed to use size_t instead of int,
14540         changed /4 to >>2 to avoid division library call
14541         * device/lib/_memcmp.c,
14542         * device/lib/_memset.c,
14543         * device/lib/_strncat.c,
14544         * device/lib/_strncpy.c,
14545         * device/lib/_strncmp.c: changed to use size_t instead of int
14546         * device/lib/_memmove.c: new file (fixed bug #772294)
14547         * device/lib/Makefile.in: added _memmove.c
14548         * device/lib/z80/asm_strings.s: fixed bug #772290
14549         * support/regression/tests/bitfields.c: attempt to fix host assertion
14550         failure on amd64-unknown-linux2.2
14551
14552 2003-09-06  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14553
14554         * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
14555         * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
14556         * as/z80/asmain.c (main): fixed bug #801766
14557
14558 2003-09-06  Bernhard Held <bernhard AT bernhardheld.de>
14559
14560         * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
14561         compilers
14562
14563 2003-09-05  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14564
14565         * src/SDCCast.c (isConformingBody): fixed loop reversal bug
14566         reported in bug #800609
14567
14568 2003-09-04  Vangelis Rokas <vrokas AT otenet.gr>
14569
14570         * Top header beautifications in src/pic16 directory:
14571           device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
14572           pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
14573           pcoderegs.h, ralloc.c, ralloc.h
14574         * main.c: added top header and GPL license notice
14575         * pcode.c: fixed the if-conditional warning
14576
14577 2003-09-04  Bernhard Held <bernhard AT bernhardheld.de>
14578
14579         * device/lib/_mullong.c: replaced int by short for gcc
14580
14581 2003-08-31  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14582
14583         * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
14584         and JUMPTABLE iCodes properly now (worked by accident before)
14585         * src/mcs51/gen.c (leftRightUseAcc),
14586         * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
14587         iCode properly now. Use getSize instead of nRegs since a & b
14588         aren't part of the nRegs tally.
14589
14590 2003-08-31  Vangelis Rokas <vrokas AT otenet.gr>
14591
14592         * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
14593         * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
14594           before instructions that use the _STATUS register
14595
14596 2003-08-31  Bernhard Held <bernhard AT bernhardheld.de>
14597
14598         * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
14599         * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
14600         fetching of the pointer
14601         * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
14602         copied from genNearPointerSet()
14603         * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
14604         * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
14605         If they pop r0/r1 they must be called in the opposite order than aopOp().
14606         * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
14607         (resp. --stack-auto), prepared for --xstack
14608
14609 2003-08-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14610
14611         * doc/sdccman.lyx: reverted tables to those in cvs 1.64
14612
14613 2003-08-28  Bernhard Held <bernhard AT bernhardheld.de>
14614
14615         * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
14616         these ports have their own __sdcc_external_start()
14617
14618 2003-08-26  Bernhard Held <bernhard AT bernhardheld.de>
14619
14620         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
14621         * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
14622         type for bits was changed. It resulted in bit variables becoming
14623         global, which is not permitted in PIC 14 assembly output.
14624
14625 2003-08-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14626
14627         * doc/sdccman.lyx: various additions and updates. Rearranged sections
14628
14629 2003-08-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14630
14631         Z80 and MCS51 linkers complaint if a public symbol is defined
14632         in more than one library module:
14633
14634         * as/mcs51/lklib.c
14635         * link/z80/lklib.c
14636         * as/mcs51/Makefile.in
14637
14638 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14639
14640         A few small changes that speed up the peephole optimizer.
14641
14642         * src/SDCCpeeph.c
14643
14644 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14645
14646         Try to make the peephole optimizer smarter by maintaining
14647         an association between the assembly source code and the
14648         iCodes that originated them. Put this information to use
14649         with a new peephole rule condition "notVolatile" so that
14650         the rules can be aggressive yet still safe.
14651
14652         * src/SDCCpeeph.c
14653         * src/SDCCpeeph.h
14654         * src/mcs51/gen.c
14655         * src/mcs51/peeph.def
14656
14657 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14658
14659         Fixed bug #741761
14660
14661         * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
14662         * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
14663         if the left or right operand symbols have the accuse flag set.
14664
14665 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14666
14667         Changed the type of the result of the ! (NOT) operator to char;
14668         previously it returned the same type as the source. This allows
14669         us to eliminate all the genFloatNot functions (all of its target
14670         implementations were very buggy) since !float can use the same
14671         code as !long now.
14672
14673         * src/SDCCicode.c (ast2iCode): ! returns char
14674         * src/mcs51/gen.c (genNot, genNotFloat),
14675         * src/ds390/gen.c (genNot, genNotFloat),
14676         * src/z80/gen.c (genNot, genNotFloat),
14677         * src/pic/gen.c (genNot, genNotFloat),
14678         * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
14679
14680 2003-08-19  Bernhard Held <bernhard AT bernhardheld.de>
14681
14682         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
14683         1. Interrupt would not compile properly. Ensure PCLATH register is saved
14684            during interrupts. Ensure WSAVE is located at a shared bank address.
14685         2. Fixed page selection in some places
14686         3. Fixed BTFSS/C to where necessary use registers directly and not simply
14687            the registers name strings.
14688         4. Fixed "signed / unsigned compare" compiler warnings.
14689         5. The PIC port manages its own allocation of the general purpose
14690            registers, but makes no attempt to reuse them. As a result when
14691            compiling it soon runs out of general purpose registers. Some
14692            additional code was added to the files pcode.c and device.c to walk
14693            through the function call tree and rename the registers so that they
14694            get reused.
14695
14696         * src/pic/device.c
14697         * src/pic/gen.c
14698         * src/pic/glue.c
14699         * src/pic/pcode.c
14700         * src/pic/pcode.h
14701         * src/pic/ralloc.c
14702         * src/pic/ralloc.h
14703         * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
14704         genPlus() & genMinus() when the result is the same as left or right
14705
14706 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14707
14708         * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
14709
14710 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14711
14712         Made bitfield a distinct type from bit so that bitfields
14713         convert as per ANSI C and bits retain their traditional
14714         boolean style behaviour. Implemented bitfield support in
14715         the z80 port.
14716
14717         * src/SDCCsymt.h,
14718         * src/SDCCsymt.c,
14719         * src/SDCCast.c,
14720         * src/cdbFile.c,
14721         * src/mcs51/gen.c,
14722         * src/ds390/gen.c: bit v bitfield split
14723         * src/z80/gen.c: New support for bitfields
14724         * support/regression/tests/bitfields.c: reenabled z80,
14725         added more tests
14726
14727 2003-08-17  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14728
14729         Rules 246.x, 247.x relate to bitfields, the others speed up
14730         access to xdata mapped I/O devices.
14731
14732         * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
14733
14734 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14735
14736         Cleaned up genPackBits and genUnpackBits and added two helper
14737         functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
14738         for literal assignments in genPackBits (thanks to Frieder for
14739         reminding me).
14740
14741         * src/mcs51/gen.c
14742         * src/ds390/gen.c
14743
14744 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14745
14746         Fixed bug #748310 (pointer to function type mishandled when the
14747         function name is omitted). Also fixed a SIGSEGV when a function
14748         attribute (reentrant, etc) is used on a non-function or on a
14749         function but misplaced before the parameter list.
14750
14751         * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
14752         bug #748310
14753         * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
14754         * support/Util/SDCCerr.h,
14755         * support/Util/SDCCerr.c: Added func attr misuse error msg
14756
14757 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
14758
14759         Fixed bug #787649 by anonymous
14760         * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
14761         * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
14762
14763 2003-08-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14764
14765         Fixed numerous bitfield problems.
14766
14767         * src/SDCC.y: More bitfield related error checking
14768         * src/SDCCsymt.h,
14769         * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
14770         * support/Util/SDCCerr.h,
14771         * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
14772         * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
14773         * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
14774         * support/regression/tests/bitfields.c: tests added
14775
14776 2003-08-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14777
14778         Made the constant following the "interrupt" keyword optional. If
14779         omitted, the function will not automatically be given an entry
14780         in the interrupt vector table (similar to #pragma NOIV, but
14781         less syntacticly kludgy). The interrupt number is also now
14782         range checked. Also fixed a bug in the high order bit example
14783         in the manual.
14784
14785         * src/SDCC.y
14786         * src/SDCCmem.c
14787         * src/SDCCglue.c
14788         * src/SDCCsymt.h
14789         * support/Util/SDCCerr.c
14790         * support/Util/SDCCerr.h
14791         * doc/sdccman.lyx
14792
14793 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
14794
14795         * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
14796         * src/SDCCicode.c (operandOperation): rewritten some ops
14797         (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
14798         * src/SDCCsymt.c (computeType): literals are handled the same way as any
14799         other type
14800         * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
14801         be re-activated by defining REDUCE_LITERALS)
14802         * src/SDCCval.c (constVal): fixed; hex and octal constants can be
14803         unsigned, but are signed by default
14804         * src/SDCCval.c (constVal): rearranged
14805         * src/SDCCval.c (valMod): preliminary fix
14806         * src/SDCCval.c (valCastLiteral): use TYPE_* types
14807         * support/regression/literalop.c: added, work in progress
14808
14809 2003-08-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14810
14811         Generate warnings for useless declarations like "char data;"
14812         that don't do what new users expect.
14813
14814         * src/SDCC.y
14815         * support/Util/SDCCerr.h
14816         * support/Util/SDCCerr.c
14817
14818 2003-08-09  Bernhard Held <bernhard AT bernhardheld.de>
14819
14820         * src/SDCCval.c (valMult): fix overflow detection of negative int
14821
14822 2003-08-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14823
14824         * src/z80/ralloc.c (joinPushes): made compatible with new signedness
14825
14826         Changes to support big endian targets:
14827
14828         * src/ports.h
14829         * src/SDCCglue.c
14830         * src/avr/main.c
14831         * src/ds390/main.c
14832         * src/izt/i186.c
14833         * src/mcs51/main.c
14834         * src/pic/main.c
14835         * src/pic16/main.c
14836         * src/xa51/main.c
14837         * src/z80/main.c
14838
14839 2003-08-06  Bernhard Held <bernhard AT bernhardheld.de>
14840
14841         * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
14842         * device/lib/time.c: fixed warning "integer overflow in expression"
14843
14844 2003-08-05  Bernhard Held <bernhard AT bernhardheld.de>
14845
14846         * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
14847         * src/SDCCval.c (constVal): changed default to signed; hex and octal
14848         constants are unsigned; added recognition of "u" flag for unsigned
14849         * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
14850         * src/SDCCval.c (valDiv, valMod): fixed signdness
14851         * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
14852         signedness of modulo, left and right shift
14853         * support/Util/SDCCerr.c: added warning "integer overflow in expression"
14854         * support/Util/SDCCerr.h: added warning W_INT_OVL
14855         * src/SDCCast.c (decorateType): fixed gcc3.3 warning
14856         * src/SDCCast.c (ast_print): improved output of constants
14857
14858 2003-08-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14859
14860         Fixed some warnings when building with MSVC:
14861
14862         * as/mcs51/asdata.c
14863         * as/z80/asdata.c
14864         * as/mcs51/asm.h
14865         * as/z80/asm.h
14866         * link/z80/aslink.h
14867         * link/z80/lkdata.c
14868         * link/z80/lkeval.c
14869         * link/z80/lkgb.c
14870         * link/z80/lkihx.c
14871         * link/z80/lks19.c
14872         * link/z80/lksym.c
14873         * support/cpp2/cpplib.c
14874         * src/ds390/gen.c
14875         * src/mcs51/gen.c
14876
14877 2003-08-03  Bernhard Held <bernhard AT bernhardheld.de>
14878
14879         * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
14880
14881 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14882
14883         * support/librarian/clean.mk: Do not remove Makefile.
14884         * support/librarian/Makefile: added.
14885
14886 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14887
14888         Added librarian to MSVC build:
14889         * all.dsp
14890         * sdcc.dsw
14891         * support/librarian/librarian.dsp
14892
14893         'configure' not needed for librarian, removed:
14894         * support/librarian/configure
14895         * support/librarian/configure.in
14896         * support/librarian/config_in.h
14897         * support/librarian/Makefile.in
14898
14899         Hopefully these ones built the librarian and the rest of sdcc properly:
14900         * Makefile
14901         * Makefile.common.in
14902
14903         Messed up 'configure', so revert to previous version:
14904         * configure
14905         * configure.in
14906
14907 2003-07-31  Bernhard Held <bernhard AT bernhardheld.de>
14908
14909         * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
14910         there, while the mantissa of a double is "only" 53 bits wide.
14911
14912 2003-07-31  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14913
14914         Adding sdcclib to the build.  MSVC project coming soon.
14915         Files added/changed:
14916
14917         * support/librarian/clean.mk
14918         * support/librarian/configure
14919         * support/librarian/configure.in
14920         * support/librarian/config_in.h
14921         * support/librarian/Makefile.bcc
14922         * support/librarian/Makefile.in
14923         * support/librarian/sdcclib.c
14924         * Makefile.bcc
14925         * Makefile
14926         * Makefile.common.in
14927         * configure
14928         * configure.in
14929
14930 2003-07-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14931
14932         Linker now complaints if linked modules have conflicting options, for
14933         example, one compiled using --model-large and another one compiled with
14934         --model-small.  The following files were modified:
14935
14936         * as/mcs51/asdata.c
14937         * as/mcs51/aslink.h
14938         * as/mcs51/asm.h
14939         * as/mcs51/asmain.c
14940         * as/mcs51/asout.c
14941         * as/mcs51/i51pst.c
14942         * as/mcs51/lkdata.c
14943         * as/mcs51/lklibr.c
14944         * as/mcs51/lkmain.c
14945         * as/z80/asdata.c
14946         * as/z80/asm.h
14947         * as/z80/asmain.c
14948         * as/z80/asout.c
14949         * as/z80/z80pst.c
14950         * link/z80/aslink.h
14951         * link/z80/lkdata.c
14952         * link/z80/lklibr.c
14953         * link/z80/lkmain.c
14954         * src/SDCCglue.c
14955
14956 2003-07-28  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14957
14958         *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
14959         as/mcs51/lklibr.c: Generate a warning when a library is not found.
14960
14961 2003-07-28  Bernhard Held <bernhard AT bernhardheld.de>
14962
14963         * src/z80/mappings.i: fix _mul[us][int,long] entries
14964
14965 2003-07-26  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14966
14967         *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
14968
14969 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
14970
14971         * src/SDCCicode.c (operandOperation): really fixed problem with bitops
14972         * support/regression/tests/bitopcse.c: added
14973         fixed warning:
14974         * src/avr/gen.c:
14975         * src/pic/gen.c:
14976         * src/pic16/gen.c:
14977         * src/z80/gen.c:
14978         * src/xa51/gen.c:
14979
14980 2003-07-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14981
14982         added support for new library format to z80, gbz80 linkers:
14983         *link/z80/aslink.h
14984         *link/z80/lklex.c
14985         *link/z80/lklib.c
14986         *link/z80/lklist.c
14987
14988 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
14989
14990         * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
14991         after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
14992
14993 2003-07-23  Bernhard Held <bernhard AT bernhardheld.de>
14994
14995         added DUMMY_READ_VOLATILE:
14996         * src/SDCC.y:
14997         * src/avr/gen.c:
14998         * src/xa51/gen.c:
14999         * src/z80/gen.c:
15000         * src/pic/gen.c:
15001         * src/pic16/gen.c:
15002         * src/mcs51/gen.c:
15003         * src/ds390/gen.c:
15004         * src/SDCCcse.c (algebraicOpts): many improvements
15005         * src/SDCCcse.h: removed algebraicOpts()
15006         * src/SDCCicode.c (picDummyRead): added
15007
15008 2003-07-23  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15009
15010         * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
15011         "Insufficient space in data memory".
15012
15013 2003-07-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
15014
15015         * src/mcs51/gen.c: fixed bug #771358
15016         * src/z80/gen.c: fixed bug #759087
15017
15018 2003-07-20  Bernhard Held <bernhard AT bernhardheld.de>
15019
15020         * src/pic16/glue.c: minor cleanup by Vangelis
15021
15022 2003-07-19  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15023
15024         * device/include/regc515c.h: fixed #758477
15025         * device/lib/_gptrget.c: saving some cycles in generic pointer get
15026         * device/lib/_gptrput.c: saved a few bytes
15027         * my tab spacing is 8, yours too?)
15028         * device/lib/_ser.c: process RX bytes earlier than TX bytes
15029         * device/lib/serial.c: process RX bytes earlier than TX bytes
15030         * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
15031
15032 2003-07-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
15033
15034         * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
15035
15036 2003-07-17  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15037
15038         * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
15039
15040 2003-07-17  Bernhard Held <bernhard AT bernhardheld.de>
15041
15042         * device/lib/Makefile.in: bad fix, reverted to 1.43
15043
15044 2003-07-16  Bernhard Held <bernhard AT bernhardheld.de>
15045
15046         * device/lib/Makefile.in: added missing z80 object files
15047
15048 2003-07-14  Bernhard Held <bernhard AT bernhardheld.de>
15049
15050         * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
15051         pic16 progress by Vangelis:
15052         * src/SDCCglobl.h:
15053         * src/SDCCmain.c:
15054         * src/pic/Makefile:
15055         * src/pic:
15056         * pic/Makefile:
15057         * pic16/device.c:
15058         * pic16/device.h:
15059         * pic16/gen.c:
15060         * pic16/gen.h:
15061         * pic16/genarith.c:
15062         * pic16/glue.c:
15063         * pic16/main.c:
15064         * pic16/pcode.c:
15065         * pic16/pcode.h:
15066         * pic16/pcodepeep.c:
15067         * pic16/peeph.def:
15068
15069 2003-07-13  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15070
15071         * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
15072
15073 2003-07-12  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15074
15075         * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
15076         added gbz80 build to MSVC project.
15077         * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
15078         link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
15079         from 8051 stuff and setup so it links using a .lnk file.
15080
15081 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15082
15083         * support/librarian/sdcclib.c: sdcc librarian.
15084         * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
15085         with sdcclib.
15086
15087 2003-07-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15088
15089         * as/mcs51/lkmain.c: properly handle extensions in function afile.
15090
15091 2003-07-02  Borut Razem <borut.razem AT siol.net>
15092
15093         * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
15094         src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
15095         src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
15096         src/xa51/main.c, src/z80/main.c:
15097         virtualization of glue() function: each port has it's own glue function,
15098         which is accessed by do_glue function pointer in PORT.general structure
15099
15100 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
15101
15102         * DS800C400 fun, improved ROM interface and tinibios.
15103
15104 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
15105
15106         * More support for DS80C400. Now includes beginning of interface to ROM.
15107
15108 2003-06-25  Bernhard Held <bernhard AT bernhardheld.de>
15109
15110         * src/mcs51/gen.c (gencjneshort): fixed bug #760345
15111
15112 2003-06-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15113
15114         * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
15115
15116 2003-06-19  Borut Razem <borut.razem AT siol.net>
15117
15118         * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
15119
15120 2003-06-19  Borut Razem <borut.razem AT siol.net>
15121
15122         * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
15123         fixed Z80 port - crt0.o: cannot open.
15124
15125 2003-06-19  Bernhard Held <bernhard AT bernhardheld.de>
15126
15127         * support/Util/MySystem.c (merge_command): revert bad fix
15128
15129 2003-06-18  Borut Razem <borut.razem AT siol.net>
15130
15131         * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
15132
15133 2003-06-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15134
15135         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
15136         option --use-stdout sends errors to stdout instead of stderr.
15137
15138 2003-06-18  Bernhard Held <bernhard AT bernhardheld.de>
15139
15140         * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
15141
15142 2003-06-15  Borut Razem <borut.razem AT siol.net>
15143
15144         * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
15145         * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
15146         * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
15147         fixed width array of pointers replaced with sets;
15148         multiple include and lib paths ared transferred to preprocessor and linker
15149         * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
15150         * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
15151         fixed width array of pointers
15152         * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
15153         removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
15154         fixupPath(), getPathDifference()
15155         * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function  inExcludeList() by using sets instead
15156         fixed width array of pointers
15157
15158 2003-06-11  Bernhard Held <bernhard AT bernhardheld.de>
15159
15160         * src/pic16/ralloc.c: fix warnings
15161         * src/pic16/pcode.c: fix warning
15162
15163 2003-06-10  Scott Dattalo  <scott AT dattalo.com>
15164
15165          Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
15166         know all the details, but essentially this set of changes enable
15167         the pic16 port to generate movff instructions and generate assembler
15168         directives,
15169         * src/SDCCmain.c:
15170         * src/pic16/gen.c:
15171         * src/pic16/glue.c:
15172         * src/pic16/pcode.c:
15173         * src/pic16/device.c:
15174         * src/pic16/main.c:
15175         * src/pic16/pcode.h:
15176         * src/pic16/pcoderegs.c:
15177         * src/pic16/ralloc.c:
15178         * src/pic16/ralloc.h:
15179
15180 2003-06-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15181
15182         * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
15183         added option --vc, so sdcc errors and warnings are compatible with
15184         Microsoft Visual Studio.
15185
15186 2003-06-07  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15187
15188         * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
15189           device/lib/libfloat.lib: added atof function.
15190
15191 2003-06-04  Bernhard Held <bernhard AT bernhardheld.de>
15192
15193         * doc/sdccman.lyx: updated to Lyx 1.3
15194         * doc/cdbfileformat.lyx: updated to Lyx 1.3
15195         * doc/test_suite_spec.lyx: updated to Lyx 1.3
15196         * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
15197
15198 2003-06-03  Bernhard Held <bernhard AT bernhardheld.de>
15199
15200         * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
15201
15202 2003-06-02  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15203
15204         * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
15205           additions to the "related tools/documentation" section
15206
15207 2003-06-02  Bernhard Held <bernhard AT bernhardheld.de>
15208
15209         * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
15210
15211 2003-05-29  Bernhard Held <bernhard AT bernhardheld.de>
15212
15213         * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
15214         * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
15215
15216 2003-05-28  Bernhard Held <bernhard AT bernhardheld.de>
15217
15218         * doc/sdccman.lyx: fix double dash and other minor things
15219         * doc/Makefile: fix double dash
15220
15221 2003-05-28  Karl Bongers(patches from Martin Helmling)
15222         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
15223           condition and ignore commands.
15224
15225 2003-05-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15226
15227         * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
15228           is in parts still quite out of date, I did changes as far as I felt makes sense
15229           for a non-native english speaker.
15230           Please feel free to add to the manual or to correct my changes.
15231         * doc/Makefile: undid touching the date of intermediate tex files.
15232
15233 2003-05-26  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15234
15235         * doc/sdccman.lyx: Manual has an index now
15236
15237 2003-05-25  Bernhard Held <bernhard AT bernhardheld.de>
15238
15239         Finalize muluint/mulsint and mululong/mulslong merging:
15240         * device/lib/_mulint.c
15241         * device/lib/_mullong.c
15242         * device/lib/gbz80/mul.s
15243         * device/lib/gbz80/stubs.s
15244         * device/lib/z80/mul.s
15245         * device/lib/z80/stubs.s
15246         * src/SDCCsymt.c (initCSupport)
15247
15248 2003-05-25  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15249
15250         * as/mcs51/lkaomf51.c: Address space 'z' was missing.
15251         * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
15252           src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
15253           src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
15254           instead of /Zm500.
15255
15256 2003-05-25  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15257
15258         * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
15259           the regression tests I'm not brave enough to enable 245.b, 245.c
15260         * doc/sdccman.lyx: added latex preamble for hyperref package.
15261           Using pdflatex this will give you a hyperlinked pdf file with
15262           bookmarks. (prepend '%' before /usepackage if this breaks something)
15263
15264 2003-05-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15265
15266          * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
15267
15268 2003-05-22  Bernhard Held <bernhard AT bernhardheld.de>
15269
15270         * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
15271
15272 2003-05-21    <johan AT balder>
15273
15274         * src/SDCCglue.c (printIval): fixed bug #739934
15275
15276 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
15277
15278         Applied patch from bug 737905 (renamed yylineo to mylineno):
15279         * src/altlex.c
15280         * src/SDCCast.c
15281         * src/SDCglobl.h
15282         * src/SDCC.lex
15283         * src/SDCCsymt.c
15284         * src/SDCCval.c
15285         * src/pic16/pcode.c: Cleaned warnings
15286         * src/pic16/pcodeflow.c: Cleaned warnings
15287         * src/pic16/pcoderegs.c: Cleaned warnings
15288
15289 2003-05-19  Scott Dattalo  <scott AT dattalo.com>
15290
15291         * src/pic16/pcode.c: Cleaned warnings
15292         * src/pic16/pcodepeep.c: Cleaned warnings
15293         * src/pic16/ralloc.c: Cleaned warnings
15294
15295 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
15296
15297         * doc/sdccman.lyx: fixed bug 739745
15298         * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
15299
15300 2003-05-18  Bernhard Held <bernhard AT bernhardheld.de>
15301
15302         * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
15303         it can be defined with CFLAGS when running configure
15304         * src/SDCCmain.c: fixed compiling + linking with object files
15305
15306 2003-05-18  Vangelis Rokas (vrokas AT otenet.gr)
15307
15308         * configure.in: configure for pic16 port,
15309             added --disable-pic16-port
15310         * sdccconf_in.h: added macro OPT_DISABLE_PIC16
15311         * src/SDCCmain.c: linkOptions is changed to set *,
15312             added if/endif conditional macros to remove options help
15313             messages from optionsTable when a port is not configured, added
15314             support for the PIc16 port in the ports table, when executing
15315             the compiler with no port specified on command line, a default
15316             port is selected with the new macro DEFAULT_PORT which is
15317             defined in port.h, in setDefaultOptions() linkOptions is removed
15318             from initialization assignment, since now it is a set,
15319             parseCmdLine uses setParseWithComma for linkOptions, in
15320             linkEdit() linkOptions are accessed with new function indexSet()
15321             which returns the i'th item of a set variable. See SDCCset.c, in
15322             linkEdit() when calling buildCmdLine(), added linkOptions as
15323             last argument. Now users can pass arguments to gplink via the
15324             -Wl option, main() uses pic16glue() to glue up pic16 programs
15325         * src/SDCCpeeph.c: various changes to support pic16
15326         * src/SDCCset.c: added function  void *indexSet(set *, int)  to
15327             return the i'th item of the set
15328         * src/SDCCset.h: added function prototype for indexSet()
15329         * src/SDCCsymt.c: in checkSClass(), added support for PIC16
15330         * src/clean.mk: added pic16 in CLEANALLPORTS variable
15331         * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
15332             added macro DEFAULT_PORT
15333         * src/pic/main.c: corrected arguments of gplnk in _linkCmd
15334         * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
15335             generated
15336         * src/pic16/glue.c: commented out some error producing lines
15337         * src/pic16/main.c: __config directives are commented out to stop
15338             gpasm complaining and test the linkage with gplink, _linkCmd and
15339             _asmCmd changed to be more gplink and gpasm friendly
15340         * src/pic16/peeph.def: peep rule 3 is commented out, since it
15341             produced an error when parsed, peep rule 12 is added to utilize
15342             movff, but it is commented out since the pCode does not support
15343             yet a command with 2 address arguments
15344
15345 2003-05-18    <johan AT balder>
15346
15347         * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
15348         * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
15349 2003-05-17  Karl Bongers(apply patches from Martin Helmling)
15350
15351         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
15352         Added feature to script commands from file.
15353
15354 2003-05-14  Bernhard Held <bernhard AT bernhardheld.de>
15355
15356         * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
15357         * src/SDCCutil.c: include ctype.h for win32
15358
15359 2003-05-13  Bernhard Held <bernhard AT bernhardheld.de>
15360
15361         * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
15362
15363 2003-05-12  Karl Bongers(apply development patches from Martin Helmling)
15364
15365         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
15366         Fixed so you can set breakpoints prior to run, run does not stop
15367         on entry now.  Add tbreak.  Other enhancements and fixes for use
15368         with ddd.
15369
15370 2003-05-12  Borut Razem <borut.razem AT siol.net>
15371
15372         * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
15373
15374 2003-05-11  Borut Razem <borut.razem AT siol.net>
15375
15376         * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
15377         the path of bin directory, so that PATH is the only env. variable, which has to be set
15378         in case of standard installation.
15379         * src/ds390/ds390.dsp: increased value of /Zm option to 1000
15380         * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
15381         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
15382
15383 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
15384
15385         * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
15386         * support/regression/Makefile: inter-port-clean is no longer nesessary, the
15387         temp files are in the port dir; clean the gen/test directory when
15388         generating new test.c
15389         * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
15390         * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
15391         * support/regression/tests/zeropad.c: added
15392
15393 2003-05-09    <johan AT balder>
15394
15395         * src/SDCCglue.c: fixed bug #597940
15396
15397 2003-05-05  Karl Bongers(apply patches from Martin Helmling)
15398
15399         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
15400         cache sfr, optimize next,step, fix off by one sourceline,
15401         support ddd list function.
15402         * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
15403
15404 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
15405
15406         * support/regression/HTMLgen.py: added compare_s2f()
15407         * support/regression/Makefile: redo 1.27
15408         * support/regression/generate-cases.py: redo 1.5
15409
15410 2003-04-30  Bernhard Held <bernhard AT bernhardheld.de>
15411
15412         * support/regression/tests/float.c: workaround 33 bit hex constant
15413         * support/regression/tests/simplefloat.c: fix division for host
15414
15415 2003-04-29  Scott Dattalo  <scott AT dattalo.com>
15416
15417         * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
15418         that tame's the PIC's over-aggressive optimizer.
15419
15420 2003-04-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15421
15422          * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
15423          support for MSVC.
15424
15425 2003-04-29  Kevin Vigor <kevin AT vigor.nu>
15426
15427         Initial support for DS80C400. "Hello world" runs on TINIm400
15428         (with polled I/O).
15429
15430 2003-04-28  Karl Bongers(apply patches for Martin Helmling)
15431
15432          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
15433          * Some notes on ddd usage added in debugger/README
15434          Martin Helmling adding more features and fixes for ddd GUI debugger.
15435          Code added for nexti, stepi, up, down, and other adjustments.
15436
15437 2003-04-28  Scott Dattalo  <scott AT DATTALO.COM>
15438
15439         * src/pic/pCodepeep.c non-wildcard asmops are now handled
15440         * src/pic/peeph.def Added two rules to optimize carry manipulation
15441         * src/pic/* removed debug printfs
15442
15443 2003-04-28  Bernhard Held <bernhard AT bernhardheld.de>
15444
15445         * debugger/mcs51/cmd.c: added header newalloc.h
15446
15447 2003-04-26  Bernhard Held <bernhard AT bernhardheld.de>
15448
15449         * as/Makefile: new EXEEXT
15450         * as/z80/Makefile: remove trailing slash of BUILDIR
15451         * as/z80/clean.mk: new EXEEXT
15452         * Makefile.common.in: add to CFLAGS (and others), don't replace it
15453         * support/cpp2/Makefile.in: new EXEEXT
15454         * src/pic/glue.c (pic14emitRegularMap): fixed warning
15455
15456 2003-04-24  Bernhard Held <bernhard AT bernhardheld.de>
15457
15458         Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
15459         EXEEXT was introduced to fix all related problems with targets
15460         "clean", "install" and "uninstall"; a couple of further flaws
15461         especially with "clean" have been fixed too
15462         * as/mcs51/Makefile.in
15463         * as/mcs51/clean.mk
15464         * as/z80/Makefile
15465         * Makefile
15466         * clean.mk
15467         * debugger/mcs51/Makefile.in
15468         * debugger/mcs51/clean.mk
15469         * link/z80/Makefile
15470         * link/z80/Makefile.in
15471         * link/z80/clean.mk
15472         * link/Makefile
15473         * packihx/Makefile.in
15474         * packihx/clean.mk
15475         * sim/ucsim/Makefile
15476         * sim/ucsim/clean.mk
15477         * sim/ucsim/avr.src/Makefile.in
15478         * sim/ucsim/avr.src/clean.mk
15479         * sim/ucsim/s51.src/Makefile.in
15480         * sim/ucsim/s51.src/clean.mk
15481         * sim/ucsim/xa.src/Makefile.in
15482         * sim/ucsim/xa.src/clean.mk
15483         * sim/ucsim/z80.src/Makefile.in
15484         * sim/ucsim/z80.src/clean.mk
15485         * sim/ucsim/main_in.mk
15486         * sim/ucsim/packages_in.mk
15487         * sim/ucsim/gui.src/Makefile.in
15488         * sim/ucsim/gui.src/serio.src/Makefile.in
15489         * sim/ucsim/gui.src/serio.src/clean.mk
15490         * src/Makefile.in
15491         * src/clean.mk
15492         * support/cpp2/Makefile.in
15493         * support/cpp2/clean.mk
15494         * support/makebin/Makefile
15495         * support/makebin/clean.mk
15496         * support/scripts/sdcc_mingw32: --program-suffix no longer needed
15497         * doc/sdccman.lyx: --program-suffix no longer needed
15498
15499 2003-04-23  Karl Bongers(apply patches for Martin Helmling)
15500
15501          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
15502          Martin Helmling added support for ddd GUI debugger.
15503          Code added to display assembly, set variables, and other commands
15504          to interface to ddd.
15505
15506 2003-04-23  Bernhard Held <bernhard AT bernhardheld.de>
15507
15508         * as/Makefile: fix target clean
15509         * as/clean.mk: fix target clean
15510         * as/z80/clean.mk: fix target clean
15511
15512 2003-04-22  Bernhard Held <bernhard AT bernhardheld.de>
15513
15514         * Makefile.common.in: added  AT EXEEXT AT
15515         * configure.in: removed all mingw32 stuff
15516         * configure: rebuilt from configure.in
15517         * doc/sdccman.lyx: updated section "installation"
15518         * support/scripts/sdcc_mingw32: adapted to configure
15519         * support/scripts/sdcc_cygwin_mingw32: added
15520
15521 2003-04-22  Scott Dattalo  <scott AT dattalo.com>
15522
15523         * src/pic Added object file support for the PIC port
15524         * src/pic Applied patch from Craig Franklin (this started the object file support)
15525         * src/regression Updated the PIC regression tests for object files
15526
15527 2003-04-20  Borut Razem <borut.razem AT siol.net>
15528
15529         * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
15530           lklex.c: In function `getfid':
15531           lklex.c:203: warning: array subscript has type `char'
15532         * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
15533           with MSVC with global optimization enabled (probably an cl compiler bug ;-)
15534         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
15535           stack handling macros
15536
15537 2003-04-19  Borut Razem <borut.razem AT siol.net>
15538
15539         * "handling space characters in file path" task:
15540         * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
15541         * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
15542         * support/Util/MySystem.h: make it self-sufficient
15543         * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
15544           src/z80/main.c, sdcc/as/mcs51/lklex.c:
15545           handling space characters in file path
15546         * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
15547           (it will be used by assemblers, which have their own includes, e.g. gpasm)
15548         * support/Util/MySystem.c: handling space characters in executable's path
15549
15550 2003-04-19  Bernhard Held <bernhard AT bernhardheld.de>
15551
15552         * as/z80/Makefile: fix permanent rebuild of z80
15553         * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
15554         * support/regression/tests/bitfields.c: added Johan's bitfields.c
15555
15556 2003-04-18      Kevin Vigor <kevin AT vigor.nu>
15557
15558         * src/SDCCopt.c: add special case optimization to replace modulo by
15559           a power of two with a bitwise AND.
15560
15561 2003-04-18    <johan AT balder>
15562
15563         * src/mcs51/gen.c (getFreePtr): fixed bug #635354
15564
15565 2003-04-17    <johan AT balder>
15566
15567         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
15568         * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
15569
15570 2003-04-13  Borut Razem <borut.razem AT siol.net>
15571
15572         * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
15573         * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
15574           fixed mingw problem in adl_NORMALIZE_PATH
15575
15576 2003-04-12  Borut Razem <borut.razem AT siol.net>
15577
15578         * fixed "#pragma SAVE/RESTORE can not be nested":
15579         * src/SDCC.lex: reworked pragma handling functions
15580         * sdcc/src/SDCCglobl.h: reworked stack handling macros
15581         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
15582
15583 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
15584
15585         * src/SDCCutil.c (pathEquivalent): defined but not used
15586         * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
15587         * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
15588         * configure: rebuilt from configure.in
15589         * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
15590         * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
15591         * device/include/Makefile.in: replace sdcc_datadir
15592         * device/lib/Makefile.in: replace sdcc_datadir
15593         * Makefile.common.in: add LDFLAGS from configure
15594         * packihx/Makefile.in: use LDFLAGS
15595         * src/Makefile.in: use LDFLAGS
15596         * support/cpp2/Makefile.in: add LDFLAGS from configure
15597         * support/makebin/Makefile: use LDFLAGS
15598         * .version: bumped version number to 2.3.5
15599
15600 2003-04-12  Borut Razem <borut.razem AT siol.net>
15601
15602         * completed "different paths" task:
15603         * src/SDCCmacro.c: fixed bug in handling quotes
15604         * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
15605         * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
15606
15607 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
15608
15609         * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
15610
15611 2003-04-11 kevin Vigor <kevin AT vigor.nu>
15612
15613         * ds390/gen.c ds390/peeph.def: fix bug 706781
15614
15615 2003-04-11  Borut Razem <borut.razem AT siol.net>
15616
15617         * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
15618
15619 2003-04-10  Scott Dattalo  <scott AT dattalo.com>
15620
15621         * src/pic/* Applied the pointer-to-function patch from Steve Tell.
15622         * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
15623          set - this bit used to not be set...).
15624         * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
15625           bad code in PIC Port
15626         * src/regression/and2.c added to test bug 609268
15627         * src/regression/Makefile added and2.c to regression test
15628
15629
15630 2003-04-08    <johan AT CP255758-A>
15631
15632         * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
15633         * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
15634         * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
15635
15636 2003-04-07  Bernhard Held <bernhard AT bernhardheld.de>
15637
15638         * configure.in: fully support prefix, exec_prefix, datadir, docdir;
15639         fix bug #487815
15640         * support/cpp2/Makefile.in: fix bug #487815
15641         * configure: rebuilt from configure.in
15642         * Makefile.common.in: docdir changed, new path suffixes
15643         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
15644         * sdcc_vc_in.h: reflect changes from sdccconf.h
15645         * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
15646         * src/SDCCutil.h: remove BINDIR hack
15647         * doc/sdccman.lyx: update new path hierarchy
15648
15649 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
15650
15651         * src/SDCCpeeph.c: added okToRemoveSLOC test
15652
15653 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
15654
15655         * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
15656
15657 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
15658
15659         * src/SDCCpeeph.c: added labelIsReturnOnly test
15660         * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
15661
15662 2003-04-05    <johan AT balder>
15663
15664         * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
15665         * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
15666         * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
15667         * src/SDCCast.c: fixed a warning
15668         * src/SDCCast.h: fixed a warning
15669         * src/SDCCicode.c (operandFromAst): fixed a warning
15670
15671 2003-04-04    <johan AT balder>
15672
15673         * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
15674         * src/SDCCast.c (decorateType): fixed bug #715076
15675         * src/SDCC.y: fixed bug #702907
15676
15677 2003-04-03    <johan AT balder>
15678
15679         * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
15680         * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
15681         * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
15682         * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
15683         * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
15684
15685 2003-04-03  Bernhard Held <bernhard AT bernhardheld.de>
15686
15687         * _decdptr.c: fix return values
15688         * _gptrget.c: fix return values
15689         * _gptrgetc.c: fix return values
15690         * _gptrput.c: fix return values
15691         * _mulint.c: fix return values
15692         * as/z80/Makefile: fix 'make -j' problem
15693
15694 2003-04-02  Bernhard Held <bernhard AT bernhardheld.de>
15695
15696         * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
15697         * configure.in: big cleanup, updated to autoconf 2.5x
15698         * configure: rebuilt from configure.in
15699         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
15700         * sdcc_vc_in.h: reflect changes from sdccconf.h
15701         * doc/Makefile: fixed a flaw in "make install"
15702
15703 2003-04-02    <johan AT balder>
15704
15705         * src/ds390/gen.c (genCmp): no comments
15706         * src/mcs51/gen.c (genCmp): no comments
15707         * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
15708         * src/SDCCast.c (ast_print): fixed the function type in --dumptree
15709
15710 2003-04-01  Bernhard Held <bernhard AT bernhardheld.de>
15711
15712         * support/regression/generate-cases.py: place generated file in given sub directory
15713         * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
15714         * support/regression/Makefile: improvements for 'make -j';
15715         side effect: it's simpler and faster now
15716
15717 2003-03-31  Borut Razem <borut.razem AT siol.net>
15718
15719         * src/z80/main.c: link-{port} and as-{port} defined without path
15720         * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
15721
15722 2003-03-31  Bernhard Held <bernhard AT bernhardheld.de>
15723
15724         * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
15725
15726 2003-03-30  Borut Razem <borut.razem AT siol.net>
15727
15728         * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
15729           changed type of list parameter to set
15730         * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
15731         * src/port.h: changed type of do_assemble() parameter to set
15732         * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
15733           sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
15734           definition of "cppoutfilename" macro with NULL value in preProcess()
15735         * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
15736         * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
15737         * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
15738           replaced with set *binPathSet
15739         * shash_add() deallocates the item, if allready exsists, before adding the new one
15740         * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
15741
15742 2003-03-30  Scott Dattalo  <scott AT dattalo.com>
15743
15744         * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
15745           a nested for loop bug in the PIC port
15746         * src/regression/nestfor.c: new regression test file Steve wrote to test nested
15747           for loops
15748
15749 2003-03-29  Bernhard Held <bernhard AT bernhardheld.de>
15750
15751         * support/Util/dbuf.h: remove C++ stuff to make it portable
15752
15753 2003-03-28  Borut Razem <borut.razem AT siol.net>
15754
15755         * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
15756           literal strings in stringLiteral()
15757         * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
15758         * src/Makefile.bcc, src/Makefile.in, src/src.dsp: added support/Util/dbuf.c
15759           to the project
15760
15761 2003-03-27  Paul Stoffregen <paul AT pjrc.com>
15762
15763         * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
15764
15765 2003-03-26    <johan AT balder>
15766
15767         * src/mcs51/gen.c (saveRegisters): catched symbol abuse
15768         * src/ds390/gen.c (saveRegisters): catched symbol abuse
15769         * src/SDCCast.c (decorateType): fixed " -v < 3"
15770
15771 2003-03-23  Bernhard Held <bernhard AT bernhardheld.de>
15772
15773         * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
15774         Added Lenny Story's debug infrastructure changes:
15775         * src/Makefile.in:  added new files cdbFile.c and SDCCdebug.c
15776         * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
15777         * src/cdbFile.c: added
15778         * src/SDCCdebug.c: added
15779         * src/SDCCdebug.h: added
15780         * src/SDCCast.c (createFunction)
15781         * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
15782         * src/SDCCmain.c (parseCmdLine, main)
15783         * src/SDCCmem.c (redoStackOffsets)
15784         * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
15785         * src/SDCCsymt.h
15786         * src/common.h
15787         * src/avr/gen.c (genAVRCode)
15788         * src/ds390/gen.c (gen390Code)
15789         * src/mcs51/gen.c (gen51Code)
15790         * src/pic/gen.c (genpic14Code)
15791         * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
15792         * src/xa51/gen.c (genXA51Code)
15793         * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
15794
15795 2003-03-22  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15796
15797         * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
15798         * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
15799
15800 2003-03-22    <johan AT balder>
15801
15802         * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
15803
15804 2003-03-21  Bernhard Held <bernhard AT bernhardheld.de>
15805
15806         * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
15807         * doc/cdbfileformat.lyx: added, written by Lenny Story
15808         * doc/Makefile: added cdbfileformat.lyx
15809         * doc/clean.mk: added cdbfileformat.lyx
15810
15811 2003-03-20  Bernhard Held <bernhard AT bernhardheld.de>
15812
15813         * src/mcs51/peeph.def: fix bug #705773
15814
15815 2003-03-20    <johan AT balder>
15816
15817         An sfr/sbit can have an "at #" AND an initializer
15818         * src/SDCCsymt.c (checkSClass):
15819         * src/SDCCmem.c (allocGlobal):
15820         * src/SDCCmem.c (allocLocal):
15821         * src/SDCCast.c (createBlock):
15822
15823 2003-03-17  Bernhard Held <bernhard AT bernhardheld.de>
15824
15825         * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
15826
15827 2003-03-16    <johan AT balder>
15828
15829         Undid the hackup of const and volatile, the problem is much bigger
15830         * src/SDCC.y:1.65
15831         * src/SDCCast.c:1.171
15832         * src/SDCCglue.c:1.138
15833         * src/SDCCicode.c:1.146
15834         * src/SDCCsymt.c:1.150
15835         * src/SDCCval.c:1.65
15836
15837 2003-03-15  Bernhard Held <bernhard AT bernhardheld.de>
15838
15839         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
15840         * src/ds390/gen.c (genAddrOf): fixed bug #704087
15841
15842 2003-03-13    <johan AT balder>
15843
15844         Hackup const and volatile modifiers in type chains a bit:
15845         * src/SDCC.y:1.63
15846         * src/SDCCast.c:1.169
15847         * src/SDCCglue.c:1.136
15848         * src/SDCCicode.c:1.143
15849         * src/SDCCsymt.c1.146
15850         * src/SDCCsymt.h1.59
15851         * src/SDCCval.c:1.63
15852
15853 2003-03-12    <johan AT balder>
15854
15855         * src/SDCCBBlock.h: more LRH debugging junk
15856         * src/SDCCcflow.h: more LRH debugging junk
15857         * src/SDCCloop.c: more LRH debugging junk
15858         * src/SDCC.y (struct_declaration): fixed bug #697590
15859         * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
15860         * src/ds390/gen.c (aopForRemat): fixed bug #700031
15861         * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
15862
15863 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
15864         * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
15865         test function names must now match exactly).
15866         * src/SDCCcse.c: added special case in findCheaperOp to allow
15867         extending a short integer. Makes less awful code for bug 700121 test case.
15868
15869 2003-03-11  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15870
15871         * as/mcs51/lkmain.c: Added ASlink-Warning to messages
15872         * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
15873
15874 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
15875
15876         * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
15877         actually called (operandsNotEqual() was called for all
15878         operandsNotEqualX tests).
15879
15880 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
15881
15882         * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
15883         with shorter literals. Fixes bug 700121.
15884
15885 2003-03-11    <johan AT balder>
15886
15887         * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
15888
15889 2003-03-11  Bernhard Held <bernhard AT bernhardheld.de>
15890
15891         * src/SDCCloop.c (mergeRegions): an evil beast is dead
15892         * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
15893
15894 2003-03-10  Borut Razem <borut.razem AT siol.net>
15895
15896         * src/SDCCmain.c: pipe preprocessor's output
15897         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
15898         * sdcc_vc_in.h: define pclose as _pclose for WIN32
15899         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
15900         which closes all pipes in pipeSet set
15901         * src/SDCCset.c: free deleted item in function deleteSetItem()
15902         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
15903         moved from z80 to src subproject
15904         * .version: increased version number to 2.3.4
15905
15906 2003-03-10  Bernhard Held <bernhard AT bernhardheld.de>
15907
15908         * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
15909         * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
15910         * support/regression/ports/xa51/spec.mk: fix typo
15911
15912 2003-03-09  Bernhard Held <bernhard AT bernhardheld.de>
15913
15914         * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
15915
15916 2003-03-09  Borut Razem <borut.razem AT siol.net>
15917
15918         * src/SDCCmain.c: pipe preprocessor's output
15919         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
15920         * sdcc_vc_in.h: define pclose as _pclose for WIN32
15921         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
15922         which closes all pipes in pipeSet set
15923         * src/SDCCset.c: free deleted item in function deleteSetItem()
15924         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
15925         moved from z80 to src subproject
15926
15927 2003-03-09  Borut Razem <borut.razem AT siol.net>
15928
15929         * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
15930         * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
15931         * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
15932         * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
15933         * src/SDCCglobl.h: unification of WIN32 native definitions
15934
15935 2003-03-09  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15936
15937         * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
15938
15939 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
15940
15941         * src/configure.in:   check for endianess (even while cross-compiling)
15942         * src/configure:      check for endianess (even while cross-compiling)
15943         * src/configure_in.h: check for endianess (even while cross-compiling)
15944         * src/avr/gen.c:        remove old endianess stuff
15945         * src/mcs51/gen.c:      remove old endianess stuff
15946         * src/ds390/gen.c:      remove old endianess stuff
15947         * src/pic/gen.c:        remove old endianess stuff
15948         * src/pic/genarith.c:   remove old endianess stuff
15949         * src/pic/glue.c:       fix endianess check
15950         * src/pic16/gen.c:      remove old endianess stuff
15951         * src/pic16/genarith.c: remove old endianess stuff
15952         * src/pic16/glue.c:     fix endianess check
15953         * src/xa51/gen.c:       remove old endianess stuff
15954         * src/z80/gen.c:        fix endianess check
15955         * src/SDCCglue.c:       fix endianess check
15956         * src/ds390/peeph.def: fix bug 700036
15957
15958 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
15959
15960         * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
15961         * src/configure: find appropriate data-types on host for SDCC's int and long
15962         * src/configure.in: find appropriate data-types on host for SDCC's int and long
15963         * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
15964         * src/xa51/gen.c: use %d, not %ld for 4 byte variables
15965
15966 2003-03-07    <johan AT balder>
15967
15968         Just a big NOOP:
15969                 some minor cleanups before the big shot
15970                 OP_DEFS and OP_USES now use Kevin's protection
15971                 new option --nolabelopt
15972
15973         * src/SDCCBBlock.c:
15974         * src/SDCCast.c,:
15975         * src/SDCCcflow.c:
15976         * src/SDCCcse.c:
15977         * src/SDCCicode.c:
15978         * src/SDCCicode.h:
15979         * src/SDCClabel.c:
15980         * src/SDCCloop.c:
15981         * src/SDCCmain.c:
15982         * src/ds390/ralloc.c:
15983         * src/mcs51/ralloc.c:
15984         * src/pic/ralloc.c:
15985         * src/xa51/ralloc.c:
15986         * src/z80/ralloc.c:
15987
15988 2003-03-06  Bernhard Held <bernhard AT bernhardheld.de>
15989
15990         * src/pic/pcode.c (get_op): fix 64 bit warnings
15991         * src/pic/pcode.c (pCode2str): fix 64 bit warnings
15992         * src/SDCChasht.c (newHashTable): fix 64 bit warnings
15993         * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
15994         * support/regression/tests/malloc.c: fix 64 bit warnings
15995
15996 2003-03-04  Bernhard Held <bernhard AT bernhardheld.de>
15997
15998         * src/mcs51/gen.c (genMinus): fixed bug 696436
15999
16000 2003-03-02  Borut Razem <borut.razem AT siol.net>
16001
16002         * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
16003
16004 2003-02-26  Bernhard Held <bernhard AT bernhardheld.de>
16005
16006         * configure.in: test for mkstemp
16007         * sdccconf_in.h: add HAVE_MKSTEMP
16008
16009 2003-02-24  Bernhard Held <bernhard AT bernhardheld.de>
16010
16011         * device/include/ctype.h: removed warning while using --stack-auto
16012         * device/include/malloc.h: removed warning while using --stack-auto
16013         * device/include/string.h: removed warning while using --stack-auto
16014
16015 2003-02-23  Borut Razem <borut.razem AT siol.net>
16016
16017         * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
16018         because NDEBUG is defined (see man assert)
16019         * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
16020
16021 2003-02-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
16022
16023         * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
16024         * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
16025
16026 2003-02-18  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
16027
16028         * src/SDCCpeeph.c: added peephole conditions testing for same arguments
16029         * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
16030
16031 2003-02-18    <johan AT balder>
16032
16033         * as/mcs51/asmain.c (asmbl): module can start with a digit
16034         * as/z80/asmain.c (asmbl): module can start with a digit
16035
16036 2003-02-16  Bernhard Held <bernhard AT bernhardheld.de>
16037
16038         * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
16039         * src/asm.c: fix pipe() for Mingw32
16040
16041 2003-02-15  Bernhard Held <bernhard AT bernhardheld.de>
16042
16043         * src/SDCCglue.h: make tmpfileNameSet available for preOutName
16044         * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
16045         make -V work again; --c1mode reads now from stdin
16046         * doc/sdccman.lyx: added --c1mode
16047         * support/Util/SDCCerr.c: new messages for c1 mode
16048         * support/Util/SDCCerr.h: new messages for c1 mode
16049         * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
16050
16051 2003-02-15    <johan AT balder>
16052
16053         * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
16054
16055 2003-02-14  Bernhard Held <bernhard AT bernhardheld.de>
16056
16057         * doc/sdccman.lyx: Environment variables, -o and other minor things
16058
16059 2003-02-14    <johan AT balder>
16060
16061         * src/xa51/main.c: before anyone really tries to use it :)
16062
16063         * Install doc's in share/sdcc/doc
16064         * removed some obsolete files
16065         * Do a proper make distclean and uninstall
16066         M Makefile.common.in
16067         R sdccbuild.sh
16068         M as/Makefile
16069         M device/include/Makefile.in
16070         M device/lib/Makefile.in
16071         M doc/sdccman.lyx
16072         M link/Makefile
16073         M sim/ucsim/doc/Makefile.in
16074         M src/clean.mk
16075         R src/avr/peeph.rul
16076         R src/xa51/peeph.rul
16077         M support/cpp2/Makefile.in
16078         M support/makebin/Makefile
16079
16080
16081 2003-02-13  Bernhard Held <bernhard AT bernhardheld.de>
16082
16083         * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
16084
16085 2003-02-10  Borut Razem <borut.razem AT siol.net>
16086
16087         * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
16088         support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
16089         * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
16090         device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
16091         support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
16092         src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
16093         src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
16094         src/z80/Makefile.bcc: Borland Makefile cleanup
16095         * as/z80/Makefile.bcc: Added Borland Makefile
16096         * support/cpp2/borland.h: Removed
16097
16098 2003-02-10  Bernhard Held <bernhard AT bernhardheld.de>
16099
16100         * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
16101         * src/SDCC.lex: new pragma NOIV
16102         * src/SDCCglobl.h: new pragma NOIV
16103         * src/SDCCmem.c: new pragma NOIV
16104
16105 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
16106
16107         * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
16108
16109 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
16110
16111         * src/SDCCmain.c: signal handling is switched off by --debug
16112         * doc/Makefile: small fix for install; use clean.mk again
16113         * doc/clean.mk: clean *.pdf and *.html too
16114
16115 2003-02-08  Bernhard Held <bernhard AT bernhardheld.de>
16116
16117         * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
16118         * device/lib/printfl.c: fix a ds390 bug by making it portable
16119         * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
16120         * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
16121         * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
16122         * debugger/mcs51/cmd.c: converted multi-line string literals
16123         * sim/ucsim/globals.cc: converted multi-line string literals
16124         * src/SDCCmain.c: introduced signal handler to remove temp files
16125         * doc/Makefile: small tweaks, implement clean
16126         * doc: removed generated files
16127
16128 2003-02-05  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16129
16130         * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
16131         patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
16132         Address Record is not correctly generated for DS390."
16133
16134 2003-02-02  Borut Razem <borut.razem AT siol.net>
16135
16136         * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
16137         * as/mcs51/asm.h: fixed compilation with Borland C
16138         * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
16139         * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
16140         * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
16141         * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
16142         src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
16143         src/z80/Makefile.bcc: delete $(LIB) only if exist
16144         * src/Makefile.bcc, src/pic/Makefile.bcc:  fixed compilation with Borland C
16145
16146 2003-02-02  Bernhard Held <bernhard AT bernhardheld.de>
16147
16148         * device/include/malloc.h: introduced NULL
16149         * device/include/string.h: introduced NULL
16150         * device/include/stdlib.h: introduced NULL
16151         * device/lib/_memcpy.c: removed NULL
16152         * device/lib/_strcat.c: removed NULL
16153         * device/lib/_strchr.c: removed NULL
16154         * device/lib/_strcmp.c: removed NULL
16155         * device/lib/_strcpy.c: removed NULL
16156         * device/lib/_strcspn.c: removed NULL
16157         * device/lib/_strlen.c: removed NULL
16158         * device/lib/_strncat.c: removed NULL
16159         * device/lib/_strncmp.c: removed NULL
16160         * device/lib/_strncpy.c: removed NULL
16161         * device/lib/_strpbrk.c: removed NULL
16162         * device/lib/_strrchr.c: removed NULL
16163         * device/lib/_strspn.c: removed NULL
16164         * device/lib/_strstr.c: removed NULL
16165         * device/lib/_strtok.c: removed NULL
16166         * device/lib/malloc.c: removed NULL, include own header
16167
16168 2003-02-02    <johan AT balder>
16169
16170         * 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
16171         * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
16172         * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
16173         * src/z80/gen.c (genZ80Code): added c-lines in asm comments
16174         * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
16175         * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
16176
16177 2003-02-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16178
16179         * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
16180         area 'DATA'"
16181
16182 2003-02-01    <johan AT balder>
16183
16184         * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
16185
16186 2003-01-31    <johan AT CP255758-A>
16187
16188         * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
16189
16190 2003-01-30    <johan AT balder>
16191
16192         * src/SDCCBBlock.c: automatic bug detection
16193         * src/SDCCicode.c: automatic bug detection
16194
16195 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16196
16197         * src/SDCCglobl.h:   now --xram-size 0 works
16198         * src/SDCCmain.c:    now --xram-size 0 works
16199
16200 2003-01-29    <johan AT balder>
16201
16202         * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
16203
16204 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16205
16206         * as/mcs51/aslink.h: Added options --xram-size and --code-size
16207         * as/mcs51/lkdata.c: Added options --xram-size and --code-size
16208         * as/mcs51/lkmain.c: Added options --xram-size and --code-size
16209         * as/mcs51/lkmem.c:  Added options --xram-size and --code-size
16210         * src/SDCCglobl.h:   Added options --xram-size and --code-size
16211         * src/SDCCmain.c:    Added options --xram-size and --code-size
16212
16213 2003-01-28  Bernhard Held <bernhard AT bernhardheld.de>
16214
16215         * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
16216         * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
16217
16218 2003-01-27    <johan AT balder>
16219
16220         * src/SDCC.y: fixed bug #613764
16221
16222 2003-01-26    <johan AT balder>
16223
16224         * src/SDCClrange.c:  fixed Bernhard's "char * code ptr = &c"
16225         * src/SDCCsymt.h: fixed bug #673374
16226         * src/SDCCglue.c: fixed bug #661910
16227         * src/SDCCast.c: fixed bug #458099 and 673374
16228
16229 2003-01-26  Bernhard Held <bernhard AT bernhardheld.de>
16230
16231         * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
16232         * as/mcs51/strcmpi.h: added
16233         * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
16234         * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
16235         * as/mcs51/asmain.c: strcmpi -> as_strcmpi
16236         * as/mcs51/assym.c: strcmpi -> as_strcmpi
16237         * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
16238         * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
16239         * as/mcs51/lksym.c: strcmpi -> as_strcmpi
16240         * as/mcs51/Makefile.aslink: new module strcmpi
16241         * as/mcs51/Makefile.asx8051: new module strcmpi
16242         * as/mcs51/Makefil.bcc: new module strcmpi
16243         * as/mcs51/Makefile.in: new module strcmpi
16244         * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
16245
16246 2003-01-26    <johan AT balder>
16247
16248         * src/SDCCglue.c: reverted back to 1.124
16249         * src/SDCCast.c: reverted back to 1.156
16250         * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
16251
16252 2003-01-25    <johan AT balder>
16253
16254         * src/SDCCglue.c: A better fix for bug #661910
16255         * src/SDCCast.c: A better fix for bug #661910
16256         * src/SDCCglue.c (emitRegularMap): That was a little too efficient
16257
16258 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
16259
16260         * src/Makefile.in: remove spawn.o
16261         * src/SDCCmain.c: remove spawn.h
16262         * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
16263         * src/spawn.c: removed
16264         * src/spawn.h: removed
16265         * support/regression/ports/ds390/spec.mk: link with -r
16266
16267 2003-01-24    <johan AT CP255758-A>
16268
16269         * src/ds390/gen.c (aopOp): fixed bug #667458
16270         * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
16271         * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
16272         (createIvalCharPtr): an ival doesn't always have a storage class anymore
16273
16274 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
16275
16276         * src/mcs51/peeph.def: better assembler identation by Frieder
16277         * src/mcs51/gen.c: better assembler identation by Frieder
16278
16279 2003-01-22  Bernhard Held <bernhard AT bernhardheld.de>
16280
16281         * as/z80/string.h: removed for gcc 3.2
16282         * support/makebin/makebin.c: #include <string.h> for gcc 3.2
16283         * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
16284
16285 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
16286
16287         * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
16288         * src/SDCCpeeph.c (replaceRule): fix bug #663503
16289         * support/regression/Makefile: separate temp files for ports
16290         * support/regression/generate-cases.py: separate temp files for ports
16291         * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
16292         * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
16293
16294 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
16295
16296         * moved tinitalk to device/examples/ds390
16297
16298 2003-01-14  Bernhard Held <bernhard AT bernhardheld.de>
16299
16300         * as/mcs51/lkmem.c: rflag is for DS390
16301         * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
16302         * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
16303                          (linkEdit): move mem- and map-files the same way as ihx-files
16304         * src/z80/main.c (_setDefaultOptions): removed --generic
16305         * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
16306         * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
16307         * src/pic/glue.c (picglue): --c1mode works again
16308         * src/pic16/glue.c (pic16glue): --c1mode works again
16309         * src/asm.c (printCLine): fix #660034
16310
16311 2003-01-13  Bernhard Held <bernhard AT bernhardheld.de>
16312
16313         * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
16314         * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
16315         * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
16316         * as/mcs51/lkmem (summary): better fix for sp problem
16317         * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
16318         * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
16319         * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
16320                                               remove --stack-after-data
16321
16322 2003-01-12  Bernhard Held <bernhard AT bernhardheld.de>
16323
16324         * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
16325         * src/SDCCutil.c (join): ugly bug: missing '\0'
16326         * as/mcs51/lkmem.c (summary): sp on address 7 is safe
16327
16328 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
16329
16330         * src/SDCCmain.c (assemble, linkEdit): preparations for -o
16331         * src/port.h: typo
16332         * src/pic/main.c (_asmCmd): gpasm supports -o
16333         * src/z80/main.c: more general macros
16334         * device/lib/Makefile.in: remove intermediate files
16335
16336 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
16337
16338         * .version: Bumped version number to 2.3.3
16339         * src/SDCCBBlock.c: new option -o
16340         * src/SDCCglobl.h: new option -o
16341         * src/SDCCglue.c: new option -o
16342         * src/SDCCmain.c: new option -o
16343         * src/asm.c: new option -o
16344         * src/ds390/main.c: new option -o
16345         * src/pic/glue.c: new option -o
16346         * src/pic/pcode.c: new option -o
16347         * src/pic/ralloc.c: new option -o
16348         * src/pic16/glue.c: new option -o
16349         * src/pic16/pcode.c: new option -o
16350         * src/pic16/ralloc.c: new option -o
16351         * src/z80/main.c: new option -o
16352         * device/lib/Makefile.in: use -o
16353         * support/regression/ports/ds390/spec.mk: use -o
16354         * support/regression/ports/gbz80/spec.mk: use -o
16355         * support/regression/ports/mcs51/spec.mk: use -o
16356         * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
16357         * support/regression/ports/z80/spec.mk: use -o
16358         * support/regression/ports/ucz80/spec.mk: use -o
16359         * support/regression/ports/xa51/spec.mk: use -o
16360         * support/regression/fwk/lib/timeout.c: fix usage string
16361
16362 2003-01-09  Bernhard Held <bernhard AT bernhardheld.de>
16363         * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
16364
16365 2003-01-07    <johan AT balder>
16366
16367         * src/SDCCast.c (decorateType): fixed bug #600035
16368
16369 2003-01-07  Bernhard Held <bernhard AT bernhardheld.de>
16370         * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
16371         * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
16372         * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
16373         * src/pic/pcode.c: outcommented unused variable to remove warnings
16374         * src/pic/ralloc.c: outcommented unused variable to remove warnings
16375
16376 2003-01-06    <karl AT turbobit.com>
16377         * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
16378         regression tests.
16379
16380 2003-01-06    <johan AT balder>
16381
16382         * src/SDCCicode.c: fixed array add
16383
16384 2002-01-05  Bernhard Held <bernhard AT bernhardheld.de>
16385         * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
16386         * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
16387
16388 2003-01-04    <johan AT balder>
16389
16390         * src/SDCCval.c (getNelements): fixed the initialized array of structures
16391
16392 2002-12-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16393         * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
16394
16395 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
16396         * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
16397         * support/regression/tests/bug-524697.c: fit mem usage into 8032
16398
16399 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
16400         * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
16401
16402 2002-12-27  Bernhard Held <bernhard AT bernhardheld.de>
16403         * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
16404
16405 2002-12-26  Bernhard Held <bernhard AT bernhardheld.de>
16406         * src/mcs51/main.c: removed {bindir}{sep} from aslink
16407
16408 2002-12-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16409
16410         * in /sdcc/as/mcs51/ changed these files in order to create an
16411         aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
16412         lkmain.c.  Also added: lkmem.c and lkaomf51.c.  Changed the
16413         following files to include the previous two files: aslink.dsp,
16414         Makefile.aslink, Makefile.bcc, and Makefile.in.
16415
16416         * Changed /sdcc/src/SDCCmain.c so it creates files with extension
16417         .adb instead of .cdb
16418
16419 2002-11-09  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16420
16421         * /sdcc/as/mcs51/lklist.c: Now reports memory usage using the
16422         value from option --iram-size.
16423
16424 2002-09-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16425
16426         * /sdcc/as/mcs51/lklist.c: added boundary check before using
16427         dram[] array.
16428
16429 2002-09-18    <wiml AT hhhh.org>
16430
16431         * SDCClrange.h: exposed setFromRange() and setToRange()
16432         * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
16433           packRegsForAccUse() (bug 542397)
16434         * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
16435           multiple times and emitting the fetch operations more than once
16436           added aopGetUsesAcc() function to allow binary operators to
16437           fetch their operands in the correct order; made genMinus() emit
16438           compact code for X = LITERAL - Y
16439
16440 2002-09-00  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16441         * /sdcc/as/mcs51/lklist.c: Fixed incorrect number of parameters to
16442         sprintf() in line 1267.
16443
16444 2002-09-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16445         * /sdcc/src/SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
16446         like ports.
16447
16448 2002-09-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16449         Changes to aslink (All the changes are marked with 'JCF'):
16450
16451         * /sdcc/as/mcs51/aslink.h: External definition of sflag and
16452         summary().
16453
16454         * /sdcc/as/mcs51/lkarea.c: Computes the size of area BSEG_BYTES from
16455         area BSEG.  Also moves, if possible, the DATA area down into the internal
16456         ram so more space is available.
16457
16458         * /sdcc/as/mcs51/lkdata.c: Definition of memory summary output flag
16459         sflag.
16460
16461         * /sdcc/as/mcs51/lklist.c: For the BSEG area report the size in bits,
16462         not bytes.  Function summary() which creates a memory usage summary
16463         file with extension .mem.  Reports of overlaping stack and small stack
16464         size.  If the space for the stack is less than 16 bytes aslink trows a
16465         warning.
16466
16467         * /sdcc/as/mcs51/lkmain.c: Creation of some of the default areas for
16468         the 8051.  Option 'y' for memory summary output file.
16469
16470         Changes to sdcc (All the changes are marked with 'JCF'):
16471
16472         * /sdcc/src/SDCCglobl.h: External definition of RegBankUsed[4].
16473
16474         * /sdcc/src/SDCCglue.c:  If a register bank is used, creates an
16475         overlaying area for it (uses RegBankUsed[4]).
16476
16477         * /sdcc/src/SDCCmain.c: Definition RegBankUsed[4]; marks register
16478         bank zero as used by default.  By default aslink locates the stack
16479         (equivalent to --stack-after-data).  Pass option 'y' to aslink for
16480         the creation of the .mem file.  Delegates the allocation of data area
16481         to aslink (it is not longer 0x30 by default).  If --stack-loc passes
16482         the begining of the stack area to aslink.
16483
16484         * /sdcc/src/SDCCmem.c:  If a register bank is used, marks it so
16485         glue() in SDCCglue.c creates an area for it.
16486
16487 2002-09-03  Borut Razem <borut.razem AT siol.net>
16488         * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
16489         sdcc/src/pic/glue.c:
16490         introduced atexit() handler for teporay files removal in case of
16491         errors, assertions, ...
16492
16493 2002-08-29  Borut Razem <borut.razem AT siol.net>
16494         * sdcc/support/cpp2/auto-host_vc_in.h:
16495         re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
16496         with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
16497         Maybe there is a similar problem with BORLANDC? It should be checked!
16498
16499         * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
16500         corrected improper use of assert: the assignment to clr variable was done inside the assert.
16501         In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
16502         was not executed, and the compiler (cl) launched a warning:
16503         ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
16504
16505 2002-08-28  Bernhard Held <bernhard AT bernhardheld.de>
16506         * src/SDCCglue.c (printIvalArray): iterative calculation of array length
16507
16508 2002-08-28  Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
16509         * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
16510
16511         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
16512           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
16513           sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
16514           sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
16515           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
16516           sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
16517           sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
16518         - added Release configuration in VS projects
16519         - review of compiler an linker options
16520         - VC .exe files are generated in bin_vc directory, not to interfere
16521           with binaries generated from other projects (cygwin, mingw, bcc ...)
16522
16523         * sdcc/src/yacc.dsp: added
16524
16525         * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
16526         added - genarate sdcc_vc.h using sdcc_vc_in.h as template
16527         and insert the version number definitions from .version
16528
16529         * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
16530
16531         * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
16532         added - genarate auto-host.h using auto-host_vc_in.h as template
16533
16534         * sdcc/sdcc_vc.h,
16535         removed from CVS, generated automatically
16536
16537 2002-08-25  Bernhard Held <bernhard AT bernhardheld.de>
16538         * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
16539
16540 2002-08-11  Borut Razem <borut.razem AT siol.net>
16541         * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
16542
16543 2002-08-10  Borut Razem <borut.razem AT siol.net>
16544         * src/SDCCmain.c (main):
16545         file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
16546         platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
16547         The consequence was that some temporary files were not removed.
16548
16549         * src/SDCCglue.c:
16550         unification of code in functions tempfilename() and tempfile():
16551         function tempnam() is defined in Visual Studio 6.0 and .NET
16552
16553         * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
16554
16555         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
16556           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
16557         - removed compiler command line option /WX: Treats all warnings as errors
16558         - update a list of source files, included into the project
16559
16560         * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
16561           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
16562         changed project type to Generic Project so that can be correcly converted to VS.NET project
16563
16564         * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
16565
16566         * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
16567
16568         * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
16569
16570         * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
16571         added return 0 statements after assert() to make compiler happy
16572
16573         * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
16574         added newline in the def file to keep MSC compiler satisfied
16575
16576         * sdcc/src/z80/gen.c:
16577         - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
16578           so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
16579         - solved MSC error in function aopDump()
16580
16581         * sdcc_vc.h: define PREFIX as "\\sdcc"
16582
16583 2002-07-18  Bernhard Held <bernhard AT bernhardheld.de>
16584         * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
16585
16586 2002-06-22  Scott Dattalo <scott AT dattalo.com>
16587         * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
16588         - Rewrote the register banking algorithm.
16589         - Added pCode live-range analysis to registers (for now, only non-used and
16590         singly-used registers optimized away)
16591
16592         * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
16593
16594         * 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.
16595
16596 2002-05-10  Scott Dattalo <scott AT dattalo.com>
16597         * src/pic/*: Added support for multiplication. Fixed many,many bugs.
16598
16599 2002-04-22  Michael Hope  <michaelh AT vroom>
16600
16601         * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
16602
16603         * configure.in (DD_COPT): Added include support required for gbdk.
16604
16605         * .version: Bumped version number just to increase it.
16606
16607         * src/SDCCmain.c: Added -nostdinc to the default options.
16608
16609 2002-04-15  Michael Hope  <michaelh AT vroom>
16610
16611         * device/lib/z80/printf.c (sprintf): Added.
16612
16613         * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
16614
16615         * src/z80/peeph.def: Added transpose redundent load rule.
16616
16617         * src/z80/main.c: Added force callee saves for jaune.
16618
16619         * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
16620
16621         * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
16622
16623 2002-03-28  Johan Knol  <johan AT balder>
16624
16625         * src/SDCCval.c: fixed bug #532436
16626
16627 2002-03-14  Scott Dattalo <scott AT dattalo.com>
16628         * /src/port.h:
16629         Added "char *Processor" field to the port structure.
16630
16631         * /src/SDCCmain.c:
16632         Added -p option. Allows port dependent processor to be specified.
16633
16634         * all ports:
16635         Initialized the new field char *Processor field to NULL in all ports
16636
16637         * /src/pic/*:
16638         Compiler generated registers for interrupt context saving
16639         were not getting allocated.
16640
16641 2002-03-16  Sandeep Dutta  <sandeep AT ddi.com>
16642
16643         * /src/SDCCast.c:
16644         Fixed left shift. Will promote the left side of a left shift
16645         if a) left shifting more than size of operand or b) when assigned
16646         to something size > size of left side
16647
16648 2002-03-14  Scott Dattalo <scott AT dattalo.com>
16649         * src/pic/*
16650         tons of changes. Register allocation has been
16651         rewritten. Added customization for the various PICs. Flow
16652         analysis is restructured. ...
16653
16654         * src/pic/device.h:
16655         Added
16656
16657         * src/pic/device.c:
16658         Added. device.c is a PIC port hack to accomodate variations
16659         in PIC devices.
16660
16661 2002-03-13  Michael Hope  <michaelh AT vroom>
16662
16663         * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled.  Yeah.
16664
16665 2002-03-04  johanknol  <johanknol AT manik>
16666
16667         * /src/SDCCval.c: fixed
16668
16669         const unsigned char arr[][2] = { { 0, 1 } };
16670         t18.c:1: error: Initializer element is not constant
16671
16672 2002-03-04  bela  <bela AT manik>
16673
16674         * /device/include/mcs51reg.h:
16675         ds89c420 register definition update
16676
16677 2002-03-03    <johan AT FRIJA>
16678
16679         * support/Util/SDCCerr.c: did something, but don't no why anymore
16680
16681         * support/regression/tests/bug-524691.c: made it a little less shy
16682
16683         * src/SDCCast.c (decorateType): fixed bug #524697
16684
16685         * src/SDCCast.c: made some lineno improvements
16686
16687         * src/SDCCval.c (getNelements): changed warning to error
16688
16689         * src/SDCCglue.c (printIvalArray): changed warning to error
16690
16691         * src/SDCCicode.c: fixed a warning for mingw
16692
16693         * src/SDCCast.c (decorateType): fixed the << promotion for ops
16694
16695         * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
16696
16697 2002-03-02  Sandeep Dutta  <sandeep AT ddi.com>
16698
16699         * src/ds390/peeph.def:
16700         Added some more peephole rules
16701
16702         * src/ds390/gen.c: Various fixes & enhancements
16703
16704         * src/SDCClrange.c, src/SDCClrange.h:
16705         functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
16706
16707         * src/ds390/ralloc.c:
16708         various fixes & enhancements (ds390) specific
16709
16710         * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
16711         Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
16712         from rallocs.
16713
16714         * sdcc/src/SDCCcse.c: Better fix for bug # 514308
16715
16716 2002-03-02    <johan AT FRIJA>
16717
16718         * src/SDCCast.c (decorateType): fixed bug #524708
16719
16720         * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
16721
16722         * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
16723
16724 2002-03-01  Michael Hope  <michaelh AT vroom>
16725
16726         * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
16727
16728         * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
16729
16730 2002-03-01    <johan AT FRIJA>
16731
16732         * src/SDCCglue.c (printIvalPtr): fixed bug #524211
16733
16734         * src/SDCCast.c (decorateType): fixed bug #524209
16735
16736         * src/SDCCval.c (valNot): fixed bug #524195
16737
16738 2002-02-26    <johan AT balder>
16739
16740         * src/xa51/gen.c: fixed a warning
16741
16742         * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
16743
16744         * src/SDCCast.c (decorateType): fixed bug #522534
16745
16746 2002-02-23    <johan AT balder>
16747
16748         * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
16749
16750 2002-02-22    <johan AT balder>
16751
16752         * src/SDCCast.c: fixed bug #514865
16753
16754         * src/SDCCy.c ("SDCC.y"): fixed bug #516625
16755
16756 2002-02-21  Sandeep Dutta  <sandeep AT ddi.com>
16757
16758         * sdcc/src/SDCCloop.c:
16759         Previous fix was not good. basic blocks that have "break" or "return" are
16760         not really partof a loop , but live ranges used in these blocks should
16761         be live thru the entire loop, so set partOfLoop but don't add them to
16762         loop region
16763
16764 2002-02-21    <johan AT FRIJA>
16765
16766         * src/SDCCcse.c: fixed bug #514308
16767
16768 2002-02-20  Sandeep Dutta  <sandeep AT ddi.com>
16769
16770         * src/SDCCloop.c:
16771         Fixed BUG #519583. If a conditional block ended in a return/break
16772         statement inside a loop, it was not being considered part of the loop.
16773
16774         * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
16775
16776 2002-02-10  Karl Bongers <karl AT turbobit.com>
16777
16778         * debugger/*:
16779         Fixed up SDCDB debugger somewhat.  Updated debugger/README
16780         with lots of comments and notes.
16781
16782         * device/examples/test2.c:
16783         Fix bug, "red" variable not being initialized(compiler complained).
16784
16785         * device/examples/Makefile, examples/test3.c:
16786         Add Makefile in device/examples folder, compiles test3.c
16787         for use as a multiple module SDCDB test case.
16788
16789         * sim/ucsim/cmd.src/cmdset.cc:
16790         Took out debug printfs in ucsim "next" command.
16791
16792         * sim/ucsim/xa.src:
16793         Karl and Johan start ucsim XA support.  Most dissassembly working,
16794         about 75% emulation done(plenty of work remaining).
16795
16796         * sim/ucsim/z80.src:
16797         Add Z80 support to ucsim, add test-ucz80 regression test,
16798         notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
16799         Notice z80 compiler fails on examples/test3.c/crc code.
16800
16801 2002-01-30  Sandeep Dutta  <sandeep AT ddi.com>
16802
16803         * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
16804         Added support for --parms-in-bank1
16805
16806         * src/ds390/peeph.def:
16807         added a few more peephole optimzations
16808
16809         * src/ds390/main.c:
16810         1) added __builtin_inp & __builtin_outp used to read in data of given length
16811            from a memory mapped port
16812         2) added __builtin_memcmp
16813         3) added __builtin_swapw swap bytes of a short
16814
16815         * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
16816         1) handle multiple send & receives from register bank1
16817         2) ralloc can now allocate DPTR1 to some liveRanges
16818
16819         * src/SDCCsymt.c, src/SDCCsymt.h:
16820         changes to handle multiple sends & receives
16821
16822         * src/SDCCptropt.h:
16823         added some pointer arithmetic optimization
16824
16825         * src/SDCCptropt.c:
16826         added some pointer arithmetic optimizations but not stable yet so not
16827         called from anywhere (will get this working shortly)
16828
16829         * src/SDCCopt.c: fixed for multiple sends & receives
16830
16831         * src/SDCCmain.c:
16832         1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
16833         2) preprocessing done AFTER port->finalizeoptions . This allows ports to
16834            set preprocessor defines (depending on options)
16835
16836         * src/SDCCicode.c, src/SDCCicode.h:
16837         changes made to handle multiple sends & receives
16838
16839         * src/SDCCglobl.h:
16840         Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
16841
16842         * src/SDCCcse.c, src/SDCCcse.h:
16843         added function findbackward def (to be used in upcoming optimization)
16844
16845         * src/SDCCcflow.c, src/SDCCcflow.h:
16846         added function returnAtEnd - to determine if a basic block terminates with
16847         a RETURN iCode
16848
16849         * src/SDCCast.c, src/SDCCast.h:
16850         added option parms-in-bank1
16851
16852         * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
16853         * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
16854         * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
16855         adjusted for --parms-in-bank1 option
16856
16857         * device/include/string.h:
16858         donot redefine "reentrant" keyword
16859
16860         * device/include/ds80c390.h: Added some more SFRs
16861
16862 2002-01-28  Bernhard Held  <bernhard AT bernhardheld.de>
16863
16864         * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
16865
16866 2002-01-26  Bernhard Held  <bernhard AT bernhardheld.de>
16867
16868         * src/SDCCast.c (funcOfType): fix usage of double --float-reent
16869
16870 2002-01-22  Bernhard Held  <bernhard AT bernhardheld.de>
16871
16872         * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
16873
16874 2002-01-18  Paul Stoffregen  <paul AT pjrc.com>
16875
16876         * Added --xram-movc option
16877
16878 2002-01-13  Bernhard Held  <bernhard AT bernhardheld.de>
16879
16880         * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
16881
16882 2002-01-11  Johan Knol
16883
16884         * Added math lib of Jesus Calvino-Fraga
16885
16886 2002-01-08  Bernhard Held  <bernhard AT bernhardheld.de>
16887
16888         * src/SDCCmain.c (processFile): fix processing of ../../src.c
16889         * support/regression/Makefile: new target test-mcs51-stack-auto
16890         * support/regression/ports/mcs51-stack-auto/spec.mk: added
16891
16892 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
16893
16894         * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
16895
16896 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
16897
16898         * support/regression/ports/mcs51/support.c: correct setup of timer / UART
16899
16900 2002-01-03  Bernhard Held  <bernhard AT bernhardheld.de>
16901
16902         * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
16903
16904         * src/SDCCglue.h: add definition for printIvalChar()
16905
16906 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
16907
16908         * src/SDCCast.c: fix #498138 by Johan
16909
16910         * src/SDCCglue.c: fix #498138 by Johan
16911
16912 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
16913
16914         * support/regression/Makefile: fix clean
16915
16916         * support/regression/ports/ds390/support.c: fix transmission of last character
16917
16918 2001-12-29  Sandeep Dutta  <sandeep AT ddi.com>
16919
16920         * /sdcc/src/ds390/gen.c:
16921         a) improved computing address of stack variable
16922         b) took out some #if 0 code
16923         c) improved parmBytes adjustment
16924         d) improved genPlusIncr & genMinusIncr
16925         e) genCmp could generate bad code (when left assigned to DPTR)
16926         f) Fixed bug in hasInc
16927
16928         * /sdcc/src/ds390/ralloc.c:
16929         a) packRegsForSupport could mess up live information (Fixed)
16930         b) packRegsDPTRuse could be incorrect for left & right shift
16931
16932         * /sdcc/src/mcs51/ralloc.c:
16933         packRegsForSupport could mess up the live information (Fixed)
16934
16935         * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
16936
16937         * /sdcc/src/SDCCast.c:
16938         can reverse a loop even if function call is present as long
16939         as the loop control variable is local & is not passed as parameter
16940
16941 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
16942
16943         * /sdcc/ChangeLog: *** empty log message ***
16944
16945         * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
16946         More builtin function additions for TININative
16947
16948         * /sdcc/src/ds390/ralloc.c:
16949         Had broken the regression testsuite
16950
16951         * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
16952
16953         * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
16954         Added funcattr hasStackParms will be set for reentrant functions when there
16955         are paramteres on the stack, this helps in minimizing frame pointer generation
16956         typeFromStr can handle function pointers now
16957
16958         * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
16959         *** empty log message ***
16960
16961 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
16962
16963         * /src/ds390/gen.c, /src/ds390/main.c:
16964         More builtin function additions for TININative
16965
16966         * /src/ds390/ralloc.c:
16967         Had broken the regression testsuite
16968
16969         * /src/SDCCast.c: Fixed a bug in dumptree
16970
16971         * /src/SDCCsymt.c, /src/SDCCsymt.h:
16972         Added funcattr hasStackParms will be set for reentrant functions when there
16973         are paramteres on the stack, this helps in minimizing frame pointer generation
16974         typeFromStr can handle function pointers now
16975
16976         * /doc/builtins.txt, /doc/TININative.txt:
16977         *** empty log message ***
16978
16979
16980 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
16981
16982         * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
16983         ALPHA version for -mTININative
16984
16985         * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
16986         updated to reflect changes in the port structure
16987
16988         * /src/port.h:
16989         added function do_assemble (similar to do_link) if non-null this function
16990         will be called to do assembly (-mTININative) requires a multi command
16991         assembly
16992         added function genAssemblerEnd will be called to generate assembler Epilogue
16993
16994         * /src/SDCCsymt.c:
16995         added _JavaNative to debug info printing
16996
16997         * /src/SDCCmain.c: added option --tini-libid
16998         added port->do_assemble function (-mTININative) has a multi command assemble
16999
17000         * /src/SDCCglue.c: Disabled "constExpr" check
17001         added port->genAssemblerEnd function
17002
17003         * /src/SDCCglobl.h: Added option --tini-libid value
17004
17005         * /src/SDCCast.h:
17006         tookout optimizeCompare from the header (has no external references)
17007
17008         * /src/SDCCast.c: made one more function "static"
17009
17010 2001-12-23  Michael Hope  <michaelh AT juju.net.nz>
17011
17012         * src/z80/mappings.i: Added z80asm support.
17013
17014         * src/z80/main.c: Added z80asm support on --asm=z80asm
17015
17016         * src/z80/gen.c: Fixed asm portability issues.
17017
17018         * src/asm.c (tvsprintf): Removed old code, added 'N' for function name.  For extern support.
17019
17020         * src/SDCCglue.c (printExterns): Added global/extern split.
17021
17022 2001-12-17  Bernhard Held  <bernhard AT bernhardheld.de>
17023
17024         * support/regression/Makefile: added test for mcs51 model large
17025
17026         * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
17027
17028         * support/regression/ports/gbz80/spec.mk: added -mgbz80
17029
17030 2001-12-05  Michael Hope  <michaelh AT juju.net.nz>
17031
17032         * src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.
17033
17034 1904-01-06  Michael Hope  <michaelh AT juju.net.nz>
17035
17036         * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
17037
17038         * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
17039
17040 2001-12-02  Bernhard Held  <bernhard AT bernhardheld.de>
17041
17042         * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
17043
17044         * support/regression/tests/simplefloat.c: Port to mcs51.
17045
17046 2001-11-25  Michael Hope  <michaelh AT juju.net.nz>
17047         * support/regression/tests/bug-485362.c: Added.
17048
17049         * support/regression/tests/simplefloat.c (testDivNearOne): Added.
17050
17051         * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
17052
17053         * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
17054
17055         * src/z80/gen.c (aopDump): Added a dump function.
17056
17057 2001-11-25  Bernhard Held  <bernhard AT bernhardheld.de>
17058         * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
17059
17060         * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
17061
17062         * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
17063
17064         * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
17065
17066         * sim/ucsim/s51.src/uc390cl.h: Work in progress.
17067
17068         * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
17069
17070         * support/regression/fwk/lib/testfwk.c: Run with tinibios.
17071
17072         * support/regression/ports/mcs51/spec.mk: Fine tuninig.
17073
17074         * support/regression/ports/ds390/support.c: Use tinibios.
17075
17076         * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
17077
17078 2001-11-23  Michael Hope  <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
17079
17080         * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
17081         (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
17082
17083         * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
17084
17085         * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
17086
17087 2001-11-18  Michael Hope  <michaelh AT juju.net.nz>
17088
17089         * src/z80/gen.c (genCmp): Fixed compare on unsigned.
17090
17091         * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
17092         (packRegsForIYUse): Created and optimised.
17093
17094 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
17095
17096         * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
17097 2001-11-18  Bernhard Held  <bernhard AT bernhardheld.de>
17098
17099         * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
17100
17101         * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
17102
17103         * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
17104
17105 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
17106
17107         * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
17108
17109         * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
17110
17111 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
17112
17113         * sdcc/sim/ucsim/globals.cc: New: IXRAM.
17114
17115         * sdcc/sim/ucsim/stypes.h: New: IXRAM.
17116
17117         * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
17118
17119 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
17120
17121         * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
17122         (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
17123         (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
17124
17125         * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
17126
17127         * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
17128         (genNotFloat): Added.
17129         (genUminusFloat): Added.
17130
17131         * device/lib/z80/Makefile: Added floating pt stubs.
17132
17133         * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
17134
17135         * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
17136
17137         * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
17138
17139 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
17140
17141         * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
17142
17143         * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
17144
17145         * sdcc/support/regression/Makefile: Add port ds390.
17146
17147         * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
17148
17149         * sdcc/support/regression/ports/z80/spec.mk: Minor change.
17150
17151         * sdcc/support/regression/ports/ds390/spec.mk: Added.
17152
17153         * sdcc/support/regression/ports/ds390/support.c: Added.
17154
17155         * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
17156
17157         * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
17158
17159         * sdcc/support/regression/fwk/lib/timeout.c: Paste.
17160
17161 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
17162
17163         * device/include/malloc.h: Added z80 and gbz80 support.
17164
17165         * device/lib/gbz80/heap.s: Added.
17166
17167         * device/lib/z80/heap.s: Added.
17168
17169         * device/lib/malloc.c: Added z80 and gbz80 support.
17170
17171         * support/regression/tests/malloc.c (testMalloc): Added.
17172
17173         * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
17174
17175         * support/regression/tests/bug-478094.c: Added.
17176
17177         * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
17178
17179 2001-11-04  Bernhard Held  <bernhard AT bernhardheld.de>
17180
17181         * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
17182
17183         * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
17184
17185         * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
17186
17187         * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
17188
17189         * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
17190
17191 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
17192
17193         * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
17194
17195 2001-11-03  Michael Hope  <michaelh AT juju.net.nz>
17196
17197         * support/regression/tests/bug-477927.c: Added.
17198
17199         * src/z80/peeph.def: Added minor rules.
17200
17201         * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
17202
17203         * src/z80/peeph.def: Added jump optimisation modification.
17204
17205 2001-11-01  Michael Hope  <michaelh AT juju.net.nz>
17206
17207         * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
17208
17209 2001-10-30  Michael Hope  <michaelh AT juju.net.nz>
17210
17211         * support/regression/tests/funptrs.c: Added.
17212
17213 2001-10-29  Michael Hope  <michaelh AT juju.net.nz>
17214
17215         * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
17216
17217 2001-10-28  Michael Hope  <michaelh AT juju.net.nz>
17218
17219         * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
17220
17221         * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
17222
17223         * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
17224         (movLeft2ResultLong): Created.
17225
17226         * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
17227         (joinPushes): Added.  Joins two char pushes into a word push.
17228
17229 2001-10-27  Michael Hope  <michaelh AT juju.net.nz>
17230
17231         * support/cpp2/Makefile.in (install): Added creation of dest dir.
17232
17233         * support/makebin/Makefile (install): Added creation of dest dir.
17234
17235 2001-10-24 Karl Bongers <karl AT turbobit.com>
17236
17237         * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
17238
17239 2001-10-21  Michael Hope  <michaelh AT juju.net.nz>
17240
17241         * src/z80/ralloc.c: Turned off faulty pack for one use.
17242
17243         * src/z80/peeph-gbz80.def: Removed redundent restart options.
17244
17245         * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
17246
17247 2001-10-21  Bernhard Held  <bernhard AT bernhardheld.de>
17248
17249         * support/regression/Makefile: Improved clean
17250
17251         * support/regression/ports/gbz80/spec.mk: Added clean
17252
17253         * support/regression/ports/host/spec.mk: Added clean
17254
17255         * support/regression/ports/z80/spec.mk: Added clean
17256
17257         * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
17258
17259         * support/regression/ports/mcs51/timeout.c: little improvements
17260
17261 2001-10-17  Michael Hope  <michaelh AT juju.net.nz>
17262
17263         * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
17264
17265         * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
17266
17267         * support/regression/generate-cases.py: Fixed up to use function pts correctly.
17268
17269 2001-10-16  Bernhard Held  <bernhard AT bernhardheld.de>
17270
17271         * support/regression/port/mcs51/spec.mk: add timeout for uCsim
17272
17273         * support/regression/port/mcs51/timeout.c: add timeout for uCsim
17274
17275 2001-10-13  Michael Hope  <michaelh AT juju.net.nz>
17276         * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
17277
17278         * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
17279
17280         * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
17281
17282         * src/mcs51/main.c (_linkCmd): Added bin path to command.
17283
17284         * src/SDCCmain.c (initValues): Added support for when it it called just to link.
17285
17286         * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
17287
17288         * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
17289
17290         * support/regression/tests/longor.c: Added.
17291
17292 2001-10-11  Bernhard Held  <bernhard AT bernhardheld.de>
17293
17294         * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
17295
17296         * as/mcs51/aslink.h: define PATH_MAX
17297
17298         * as/mcs51/asm.h: define PATH_MAX
17299
17300         * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
17301
17302         * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
17303
17304         * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
17305
17306         * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
17307
17308         * src/SDCCglobl.h: define PATH_MAX
17309
17310         * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
17311
17312         * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
17313
17314 2001-10-11  Michael Hope  <michaelh AT juju.net.nz>
17315
17316         * src/z80/gen.c (gencjneshort): Fixed
17317
17318         * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
17319
17320 2001-10-09  Michael Hope  <michaelh AT juju.net.nz>
17321
17322         * support/regression/tests/bug-469671.c: Added.
17323
17324         * src/z80/gen.c (shiftIntoPair): Fixed up warning.
17325
17326 2001-10-08  Michael Hope  <michaelh AT juju.net.nz>
17327
17328         * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
17329
17330         * src/z80/gen.c (genPlus): Fixed to work with extended stack.  Also fixed genMinus, genCmp.  genUMinus is still left.
17331
17332 2001-10-08  Bernhar Held  <bernhard AT bernhardheld.de>
17333
17334         * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
17335
17336         * src/device/lib/_mulint.c  : removed hint: nooverlay bug
17337
17338         * src/device/lib/_mullong.c : removed hint: nooverlay bug
17339
17340         * src/device/lib/_divuint.c : removed hint: nooverlay bug
17341
17342         * src/device/lib/_divulong.c: removed hint: nooverlay bug
17343
17344         * src/device/lib/_moduint.c : removed hint: nooverlay bug
17345
17346         * src/device/lib/_modulong.c: removed hint: nooverlay bug
17347
17348 2001-10-07  Michael Hope  <michaelh AT juju.net.nz>
17349
17350         * 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.
17351
17352         * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.
17353
17354         * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
17355
17356 2001-10-07    <johan AT FRIJA>
17357
17358         * device/lib/gets.c (gets): fixed the return value.
17359
17360 2001-10-06  Michael Hope  <michaelh AT juju.net.nz>
17361         * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
17362
17363         * 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.
17364
17365         * 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.
17366
17367         * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
17368
17369         * src/pic/gen.c: Removed Safe_strdup.
17370
17371         * configure.in: Added option to enable libgc support.
17372
17373         * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
17374         (bitVectUnion): Optimised.
17375         (bitVectIntersect): Optimised.
17376         (bitVectBitsInCommon): Optimised.
17377         (bitVectCplAnd): Optimised.
17378
17379         * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.
17380
17381 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
17382
17383         * src/SDCCmain.c: distinguish between assembler debug and plain options
17384
17385         * src/avr/main.c:   remove standard assembler options
17386
17387         * src/ds390/main.c: remove standard assembler options
17388
17389         * src/mcs51/main.c: remove standard assembler options
17390
17391         * src/port.h: removed "PENDING" comment
17392
17393 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
17394
17395         * src/device/lib/_mulint.c  : new, with assember functions
17396
17397         * src/device/lib/_mullong.c : new, with assember functions
17398
17399         * src/device/lib/_divuint.c : with assember functions
17400
17401         * src/device/lib/_divsint.c : with assember functions
17402
17403         * src/device/lib/_divulong.c: with assember functions
17404
17405         * src/device/lib/_divslong.c: with assember functions
17406
17407         * src/device/lib/_moduint.c : with assember functions
17408
17409         * src/device/lib/_modsint.c : with assember functions
17410
17411         * src/device/lib/_modulong.c: with assember functions
17412
17413         * src/device/lib/_modslong.c: with assember functions
17414
17415         * src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c
17416
17417         * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
17418
17419         * src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
17420                                       replaced _mululong.c and _mulslong.c by _mullong.c
17421
17422 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
17423
17424         * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
17425
17426 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
17427
17428         * src/SDCCglue.c: test, if win32api is available for MINGW
17429
17430 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
17431
17432         * src/SDCCsymt.c: no more _modifier in printTypeChain()
17433         * support/regression/tests/driverstruct.c: REENTRANT for mcs51
17434         * support/regression/ports/gbz80/spec.mk: removed GENERIC
17435         * support/regression/ports/host/spec.mk: removed GENERIC
17436         * support/regression/ports/mcs51/spec.mk: removed GENERIC
17437         * support/regression/ports/z80/spec.mk: removed GENERIC
17438
17439 2001-10-01  Michael Hope  <michaelh AT juju.net.nz>
17440
17441         * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
17442
17443         * support/regression/tests/bug-467035.c: Created.
17444
17445 2001-10-01    <johan AT FRIJA>
17446
17447         * src/SDCC.y: fixed bug #466586 part 1
17448
17449 2001-10-01  Johan Knol <johan.knol AT iduna.nl>
17450
17451         * SDCCicode.c: z80 has no generic pointers
17452         * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
17453
17454 2001-09-30  Michael Hope  <michaelh AT juju.net.nz>
17455
17456         * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
17457
17458 2001-09-29  Michael Hope  <michaelh AT juju.net.nz>
17459
17460         * Makefile (sdcc-libs): Added makebin to the list of standard targets.
17461
17462         * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
17463
17464 2001-09-25  Michael Hope  <michaelh AT juju.net.nz>
17465
17466         * configure.in: Fixed up so that ucsim is only configured once.
17467
17468         * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
17469
17470         * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
17471         (getPathDifference): As above.
17472
17473         * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.
17474
17475         * src/SDCCglue.c (tempfilename): Added function for pre-processor.
17476
17477 2001-09-23  Michael Hope  <michaelh AT juju.net.nz>
17478         * .version: Updated to 2.3.1
17479
17480         * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
17481         Added copyright header.
17482
17483         * src/SDCCmain.c: Shifted various functions into SDCCutil.c
17484         (assemble): Added support for macro based assembler commands.
17485         (linkEdit): Added support for macro based linker commands.
17486         (preProcess): Changed the pre-processor to use macros.
17487         (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
17488         (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
17489
17490         * device/lib/z80/crt0.s: Added module name for debugging.
17491
17492 2001-09-20  Michael Hope  <michaelh AT juju.net.nz>
17493
17494         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
17495
17496         * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
17497
17498         * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
17499
17500         * src/Makefile.in: Added SDCCmacro and SDCCutil
17501
17502 2001-09-19  Michael Hope  <michaelh AT juju.net.nz>
17503
17504         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
17505
17506 2001-09-16    <johan AT FRIJA>
17507
17508         * 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.
17509
17510 2001-09-15    <johan AT FRIJA>
17511
17512         * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
17513         * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
17514
17515 2001-09-11    <johan AT FRIJA>
17516
17517         * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
17518
17519 2001-09-10  Michael Hope  <michaelh AT juju.net.nz>
17520
17521         * support/regression/tests/bug-460444.c: Added test case.
17522
17523         * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
17524         (genCast): Added justification for all of the asserts.
17525
17526 2001-09-10  Bernhard Held <bernhard AT bernhardheld.de>
17527
17528         * support/regression/support.c: _xdata replaced by xdata
17529
17530         * support/regression/spec.mk: removed _generic
17531
17532 2001-09-09  Michael Hope  <michaelh AT juju.net.nz>
17533
17534         * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
17535
17536         * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
17537         (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
17538
17539         * src/z80/peeph.def: Added a rule to optimise shift then compare.
17540
17541         * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
17542
17543         * support/regression/tests/bug-460010.c: Added test case.
17544
17545         * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
17546
17547 2001-09-09  Bernhard Held <bernhard AT bernhardheld.de>
17548
17549         * support/regression/Makefile: inter-port-clean adjusted for mcs51
17550
17551         * support/regression/testfwk.c: removed workaround for bug #436344
17552
17553         * support/regression/tests/bp.c: use less memory with mcs51
17554
17555         * support/regression/tests/bug-441448.c: use less memory
17556
17557         * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
17558
17559         * support/regression/collate-results.py: typo
17560
17561 2001-09-08  Michael Hope  <michaelh AT juju.net.nz>
17562
17563         * support/regression/tests/fetchoverlap.c: Added new test case.
17564
17565         * support/regression/tests/bp.c: Added new test case.
17566
17567         * support/regression/tests/bug-448984.c: Added new test case.
17568
17569         * support/regression/tests/pow2shifts.c: Added new test case.
17570
17571         * src/z80/gen.c: Turned off the noise it normally generates for the release.
17572         (genlshTwo): Fixed right shift for count > 8.
17573
17574         * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
17575
17576 2001-09-08    <johan AT FRIJA>
17577
17578         * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
17579
17580 2001-09-07    <johan AT FRIJA>
17581
17582         * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
17583
17584         * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
17585
17586 2001-09-06    <johan AT FRIJA>
17587
17588         * src/SDCC.y: this could be a fix for bug #458744 (1.37)
17589         * bernhard noted me at this: "() equals to (void)" (1.38)
17590
17591 2001-09-05    <johan AT FRIJA>
17592
17593         * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
17594
17595 2001-09-04    <johan AT FRIJA>
17596
17597         * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
17598
17599
17600 2001-09-04  Paul Stoffregen  <paul AT pjrc.com>
17601
17602         * pragma noinduction broke memcpy on mcs51 large model.  Moved it inside z80 optimization
17603
17604 2001-09-03  Michael Hope  <michaelh AT juju.net.nz>
17605
17606         * link/z80/aslink.h: Fixed path for PATH_MAX
17607
17608 2001-09-02  Michael Hope  <michaelh AT juju.net.nz>
17609
17610         * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
17611
17612         * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
17613
17614         * support/regression/tests/uminus.c: Added a test for the unary minus operator.
17615
17616         * 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.
17617
17618 2001-09-01  Michael Hope  <michaelh AT juju.net.nz>
17619
17620         * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
17621         (genCmp): Fixed up genCmp for the GB with longs.
17622
17623         * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
17624
17625         * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
17626
17627         * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
17628
17629         * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
17630
17631 2001-08-30  Paul Stoffregen  <paul AT pjrc.com>
17632
17633         * added peepholes 223 to 231 to mcs51 port.  These improve code when using large model.
17634
17635 2001-08-30  Michael Hope  <michaelh AT juju.net.nz>
17636
17637         * 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.
17638
17639         * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
17640
17641 2001-08-29  Michael Hope  <michaelh AT juju.net.nz>
17642
17643         * link/z80/aslink.h: Fixed long file name support.  Is now based off PATH_MAX instead of a constant.
17644
17645         * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
17646
17647 2001-08-30 Bernhard Held   <bernhard AT bernhardheld.de>
17648
17649         * sim/ucsim/configure:    little improvement of Cygwin-detection
17650         * sim/ucsim/configure.in: little improvement of Cygwin-detection
17651         * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
17652         * support/regression/tests/bug-221100.c: small changes for mcs51
17653         * support/regression/tests/bug-221168.c: small changes for mcs51
17654         * support/regression/tests/bug-227710.c: small changes for mcs51
17655         * support/regression/tests/staticinit.c: small changes for mcs51
17656         * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
17657         * as/mcs51/lklex.c:  accept everything as symbol name in rel-files, bug fix ID 452601
17658         * as/mcs51/lksym.c:  accept everything as symbol name in rel-files, bug fix ID 452601
17659
17660 $Revision$