Promote varargs pointers to RESULT_TYPE_GPTR
[fw/sdcc] / ChangeLog
1 2009-04-27 Borut Razem <borut.razem AT siol.net>
2
3         * support/cpp/output.h, support/cpp/opts-common.c,
4           support/cpp/c-ppoutput.c, support/cpp/cppdefault.c,
5           support/cpp/system.h, support/cpp/cppdefault.h,
6           support/cpp/prefix.c, support/cpp/except.h, support/cpp/hwint.h,
7           support/cpp/prefix.h, support/cpp/libiberty/safe-ctype.h,
8           support/cpp/libiberty/filenames.h, support/cpp/libiberty/xstrdup.c,
9           support/cpp/libiberty/md5.c, support/cpp/libiberty/obstack.h,
10           support/cpp/sdcpp.c, support/cpp/intl.h, support/cpp/sdcpp.h
11           support/cpp/libcpp/symtab.c, support/cpp/libcpp/directives.c,
12           support/cpp/libcpp/macro.c, support/cpp/libcpp/include/cpplib.h,
13           support/cpp/libcpp/include/symtab.h,
14           support/cpp/libcpp/include/line-map.h,
15           support/cpp/libcpp/include/cpp-id-data.h,
16           support/cpp/libcpp/include/mkdeps.h, support/cpp/libcpp/files.c,
17           support/cpp/libcpp/line-map.c, support/cpp/libcpp/init.c,
18           support/cpp/libcpp/identifiers.c, support/cpp/libcpp/ucnid.h,
19           support/cpp/libcpp/traditional.c, support/cpp/libcpp/errors.c,
20           support/cpp/libcpp/expr.c, support/cpp/libcpp/internal.h,
21           support/cpp/libcpp/mkdeps.c, support/cpp/libcpp/lex.c,
22           support/cpp/libcpp/system.h, support/cpp/libcpp/charset.c,
23           support/cpp/opts.h, support/cpp/sdcpp-opts.c:
24           SDCPP synchronized with GCC CPP release version 4.4.0
25
26 2009-04-28 Borut Razem <borut.razem AT siol.net>
27
28         * fixed GCC 4.4.0 mingw compilation:
29           sim/ucsim/cmd.src/cmdlex.cc: regenerated - added #include <stdio.h>
30         * src/SDCCsymt.c: fixed warning:
31           suggest parentheses around operand of '!' or change '&' to '&&' or
32           '!' to '~'
33         * support/scripts/sdcc_mingw32: sync with sdcc-build
34
35 2009-04-27 Raphael Neider <rneider AT web.de>
36
37         * src/pic16/gen.c (genNearPointerGet): fix double indirect
38           access to bitfields (#2782405)
39
40 2009-04-27 Borut Razem <borut.razem AT siol.net>
41
42         * fixed GCC 4.4.0 mingw compilation:
43         * sim/ucsim/cmd.src/cmdlex.l: added #include <stdio.h>
44         * support/cpp/sdcpp-opts.c: fixed warning:
45           unknown conversion type character 'm' in format,
46           use strerror(errno) instead of %m glibc extension format specifier
47         * src/SDCCsymt.c: fixed warning:
48           suggest parentheses around operand of '!' or change '&' to '&&' or
49           '!' to '~'
50         * src/pic16/pcode.c, src/pic16/glue.c: fixed warning:
51           unknown conversion type character 'h' in format,
52           replaced hh printf format specifier with parameter casting to
53           unsigned char
54
55 2009-04-19 Philipp Klaus Krause <pkk AT spth.de>
56
57         * device/lib/z80/shift.s,
58           device/lib/z80/memmove.s,
59           device/lib/z80/mul.s,
60           device/lib/z80/mulchar.s,
61           device/lib/z80/div.s,
62           device/lib/z80/mod.s:
63           Applied patch #2762516 from Marco Bodrato containing minor
64           improvements of many Z80 asm routines.
65
66 2009-04-19 Philipp Klaus Krause <pkk AT spth.de>
67
68         * support/regression/tests/strtok.c,
69           support/regression/tests/strstr.c,
70           support/regression/tests/strspn.c,
71           support/regression/tests/strncmp.c,
72           support/regression/tests/strcpy.c,
73           support/regression/tests/strcmp.c:
74           Added some regression tests by Ruud van Silfhout from patch #2321830.
75
76 2009-04-13 Borut Razem <borut.razem AT siol.net>
77
78         * device/lib/Makefile.in, device/lib/ds390/Makefile.in,
79           device/lib/ds400/Makefile.in, device/lib/gbz80/Makefile.in,
80           device/lib/hc08/Makefile.in, device/lib/mcs51/Makefile.in,
81           device/lib/z80/Makefile.in: override PORTDIR in sub-makefiles
82
83 2009-04-13 Raphael Neider <rneider AT web.de>
84
85         * device/lib/pic16/bootstrap.sh: avoid symlinks
86         * device/lib/pic16/configure.ac,
87           device/lib/pic16/configure.gnu: removed obsolete configure-wrapper
88
89 2009-04-13 Borut Razem <borut.razem AT siol.net>
90
91         * device/lib/Makefile.in: remove abspath for PORTDIR, introduced in
92           svn revision #5341, since it makes asranlib to fail on cygming and
93           mingw builds: win32 native asranlib doesn't understand cygwin paths.
94
95 2009-04-10 Raphael Neider <rneider AT web.de>
96
97         * device/lib/pic/libsdcc/fs2ulong.c, device/lib/pic/libsdcc/fsadd.c,
98           device/lib/pic/libsdcc/fsdiv.c, device/lib/pic/libsdcc/fseq.c,
99           device/lib/pic/libsdcc/fsgt.c, device/lib/pic/libsdcc/fslt.c,
100           device/lib/pic/libsdcc/fsmul.c, device/lib/pic/libsdcc/fsneq.c,
101           device/lib/pic/libsdcc/fssub.c, device/lib/pic/libsdcc/ulong2fs.c,
102           device/lib/pic16/libsdcc/float/fs2ulong.c,
103           device/lib/pic16/libsdcc/float/fsadd.c,
104           device/lib/pic16/libsdcc/float/fsdiv.c,
105           device/lib/pic16/libsdcc/float/fsmul.c: fixed pic14 libraries, merge
106           changes from the pic16 port, minor code cleanup
107         * src/pic/gen.c: implemented genUminusFloat(), fixed warning and style
108
109 2009-04-09 Philipp Klaus Krause <pkk AT spth.de>
110
111         * device/lib/z80/mod.s,
112           device/lib/z80/Makefile.in,
113           device/lib/z80/div.s,
114           device/lib/z80/modsigned.s,
115           device/lib/z80/divsigned.s:
116           Applied patch #2741451 from Marco Bodrato
117           and moved functions for signed modulo into
118           separate file.
119
120 2009-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
121
122         * src/mcs51/peeph.def: disabled rule 270, fixing bug #2736282
123
124 2009-04-04 Philipp Klaus Krause <pkk AT spth.de>
125
126         * src/z80/gen.c,
127           src/z80/peeph-z80.def:
128           Improved caching of pointers in hl and iy.
129           device/lib/z80/div.s:
130           Applied patch #2727917 from Marco Bodrato.
131
132 2009-04-03 Philipp Klaus Krause <pkk AT spth.de>
133
134         * src/z80/ralloc.c:
135           Enabled use of hl as inter-i-code temporary.
136
137 2009-04-03 Philipp Klaus Krause <pkk AT spth.de>
138
139         * src/z80/peeph-z80.def:
140           Reenabled peephole 0t.
141
142 2009-04-03 Philipp Klaus Krause <pkk AT spth.de>
143
144         * src/z80/gen.c:
145           Fixed bugs #2728224, #2728218.
146           src/z80/peeph-z80.def:
147           Workaround for bug #2728445.
148           support/regression/tests/memory.c:
149           Added test for memcmp().
150
151 2009-04-03 Philipp Klaus Krause <pkk AT spth.de>
152
153         * device/lib/z80/mul.s,
154           device/lib/z80/memmove.s,
155           device/lib/z80/strlen.s:
156           Minor improvements, code cleanup and license clarification.
157
158 2009-04-01 Philipp Klaus Krause <pkk AT spth.de>
159
160         * device/lib/z80/mul.s: 
161           Minor improvement in Z80 16x16 bit multiplication.
162
163 2009-03-23 Borut Razem <borut.razem AT siol.net>
164
165         * src/SDCCval.c, src/SDCCmain.c, device/include/limits.h,
166           device/include/pic/limits.h, device/include/pic16/limits.h,
167           device/lib/_fs2schar.c, device/lib/pic/libsdcc/fs2schar.c,
168           device/lib/pic16/libsdcc/float/fs2schar.c, doc/sdccman.lyx,
169           support/regression/tests/funsigned-char.c:
170           applied patch 2704189: character constant sign fix
171           thanks to Robert Larice
172
173 2009-03-22 Borut Razem <borut.razem AT siol.net>
174
175         * Small Device C Compiler 2.9.0 released
176         * .version, doc/sdccman.lyx: changed sdcc version to 2.9.1
177
178 2009-03-15 Borut Razem <borut.razem AT siol.net>
179
180         * support/scripts/repack_release.sh: added
181
182 2009-03-13 Borut Razem <borut.razem AT siol.net>
183
184         * doc/sdccman.lyx: "freeware" replaced with "free open source"
185
186 2009-03-12 Borut Razem <borut.razem AT siol.net>
187
188         * src/z80/peep.c: #2652979: --debug crashes sdcc
189
190 2009-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
191
192         * src/SDCCglue.c,
193           support/regression/tests/bug2655200.c:
194           applied modified patch from Robert Larice <larice AT vidisys.de>
195           fixing original report of bug #2655200: pointer to pdata memory
196           not correctly initialized
197
198 2009-03-11 Borut Razem <borut.razem AT siol.net>
199
200         * as/asranlib/asranlib.c: retain the original file mode
201
202 2009-03-10 Borut Razem <borut.razem AT siol.net>
203
204         * src/mcs51/gen.c, src/z80/gen.c, src/hc08/gen.c, src/ds390/gen.c,
205           support/regression/tests/bug1875933.c:
206           fixed bug #1875933: Evelyn jumps into the void
207           thanks to Robert Larice
208
209 2009-03-10 Raphael Neider <rneider AT web.de>
210
211         * src/pic16/pcode.c (LinkFlow): fix invalid cast from pCodeLabel
212           to pCodeInstruction to avoid a segmentation fault
213
214 2009-03-03 Borut Razem <borut.razem AT siol.net>
215
216         * device/lib/printf_large.c: fixed bug #2656821: bug in printf
217
218 2009-03-03 Raphael Neider <rneider AT web.de>
219
220         * device/lib/pic/libdev/Makefile.in: build device-specific
221           libraries for the correct processor, fixes #2654585
222
223 2009-03-01 Raphael Neider <rneider AT web.de>
224
225         * device/lib/Makefile.in: fixed parallel builds (i.e., make -jN, N>1)
226
227 2009-03-01 Borut Razem <borut.razem AT siol.net>
228
229         * src/z80/peep.c: fixed bug #2648964: --i-code-in-asm crashes sdcc
230         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
231           changed sdcc version to 2.9.0
232
233 2009-03-01 Maarten Brock <sourceforge.brock AT dse.nl>
234
235         * src/mcs51/ralloc.c (spillThis, spilSomething): fixed bug 2435941
236           (serialRegAssign): do not spil bit registers
237           throughout cosmetic changes
238         * support/regression/tests/bug2435941.c: new, added
239
240 2009-02-28 Raphael Neider <rneider AT web.de>
241
242         * src/regression/compare10.c,
243           src/regression/compare7.c,
244           src/regression/compare8.c,
245           src/regression/compare9.c: reset watchdog timer in time
246         * src/regression/configword.c: apply patch from #2488150
247         * src/pic/glue.c (pic14createInterruptVect): pin RESET vector
248           handler to 0x0000 as the linker no longer knows STARTUP sections
249         * src/pic/pcode.c (register_reassign, ReuseReg): applied modified
250           patch #2512926 to (mostly) fix #1762626, cosmetic changes
251         * src/pic/pcodepeep.c: remove reference to nonexisting function
252
253 2009-02-28 Raphael Neider <rneider AT web.de>
254
255         * device/include/pic16/signal.h: avoid multiline inline
256           assembler statements in macros, addresses #2644965
257
258 2009-02-27 Raphael Neider <rneider AT web.de>
259
260         * device/include/pic16/pic18f[24][3456]k20.h,
261           device/include/pic16/pic18f[68][567]j50.h,
262           device/include/pic16/pic18f[68]6j55.h,
263           device/lib/pic16/libdev/pic18f[24][3456]k20.c,
264           device/lib/pic16/libdev/pic18f[68][567]j50.c,
265           device/lib/pic16/libdev/pic18f[68]6j55.c,
266           device/include/pic16/pic18fregs.h,
267           device/include/pic16/pic16devices.txt,
268           device/lib/pic16/pics.all,
269           device/lib/pic16/libdev/Makefile.am,
270           device/lib/pic16/libio/Makefile.am: added/re-enabled many device
271           families (87j50 family contributed by Robert Wuest)
272
273         * device/include/pic16/adc.h,
274           device/lib/pic16/libio/adc/adcbusy.c,
275           device/lib/pic16/libio/adc/adcclose.c,
276           device/lib/pic16/libio/adc/adcconv.c,
277           device/lib/pic16/libio/adc/adcopen.c,
278           device/lib/pic16/libio/adc/adcsetch.c: added 65j50-style ADC
279
280         * doc/sdccman.lyx: updated list of supported devices, fixed typo
281         * device/lib/pic16/Makefile.common: do not suppress assembler warnings
282
283         * device/lib/pic16/Makefile.in,
284           device/lib/pic16/libm/Makefile.in,
285           device/lib/pic16/debug/Makefile.in,
286           device/lib/pic16/libio/Makefile.in,
287           device/lib/pic16/startup/Makefile.in,
288           device/lib/pic16/libsdcc/Makefile.in,
289           device/lib/pic16/libdev/Makefile.in,
290           device/lib/pic16/libc/Makefile.in: regenerated
291
292 2009-02-27 Borut Razem <borut.razem AT siol.net>
293
294         * as/z80/asexpr.c, as/z80/z80mch.c: re-fixed bugs
295           #1829678 and #1704376 in the way proposed by Alan Baldwin
296
297 2009-02-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
298
299         * device/include/mcs51/at89c51ed2.h: Fixed address of SFR P5. Thanks
300           to Steve Qu for the fix.
301
302 2009-02-23 Borut Razem <borut.razem AT siol.net>
303
304         * as/z80/asexpr.c: fixed bug #1829678: Z-80 CP A,<xxx> assembly
305           it is already fixed for mcs51 and hc08 targets
306         * as/z80/z80mch.c: fixed bug #1704376: missing as-z80 errors
307
308 2009-02-22 Borut Razem <borut.razem AT siol.net>
309
310         * device/lib/Makefile.in: fixed parenthesis error
311         * doc/sdccman.lyx: fixed webdocs bug #2071421: error in the manual,
312           fixed webdocs bug #1967920: --version
313
314 2009-02-18 Maarten Brock <sourceforge.brock AT dse.nl>
315
316         * device/include/mcs51/at89c51ed2.h: fixed bug #2071949 bitmask RBCK wrong
317
318 2009-02-17 Maarten Brock <sourceforge.brock AT dse.nl>
319
320         * as/link/mcs51/lkihx.c (hexRecord): bugfix do not insert extended address
321           when addresses are unsorted
322
323 2009-02-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
324
325         * device/include/mcs51/p89v66x.h: added ENBOOT thanks
326           Gudjon Gudjonsson <gudjon AT gudjon.org>
327         * device/include/mcs51/p89c66x.h: fixed some defines
328         * device/include/mcs51/p89v66x.h: fixed some sbit addresses
329         * doc/sdccman.lyx: added <NO FLOAT> to index, try to reanimate
330           svn keywords
331
332 2009-02-14 Borut Razem <borut.razem AT siol.net>
333
334         * doc/sdccman.lyx: corrected cpp info
335
336 2009-02-13 Borut Razem <borut.razem AT siol.net>
337
338         * as/Makefile.in: *.doc renamed to *.txt
339
340 2009-02-11 Borut Razem <borut.razem AT siol.net>
341
342         * as/doc/aslnk.doc, as/doc/abstra.doc: renamed to *.txt
343         * as/doc/aslnk.txt, as/doc/asxhtml.html: changed licens to GPLv3
344
345 2009-02-11 Borut Razem <borut.razem AT siol.net>
346
347         * doc/sdccman.lyx: documented ar format libraries
348
349 2009-02-10 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
350
351         * support/regression/tests/float_single.c: added regression
352           test. Some testpoints for probably rarely used functions
353           (acosf, sinhf, tanf, expf) disabled for some targets
354
355 2009-02-10 Raphael Neider <rneider AT web.de>
356
357         * src/pic16/gen.c (pic16_freeAsmop): avoid NULL pointer dereference,
358           (genAssign): fixed for operands on the stack
359
360         * device/lib/pic16/libc/stdio/vfprintf.c,
361           device/lib/pic16/configure.ac,
362           device/lib/pic16/Makefile.common: add configurable support for
363           printing floats via ./configure --enable-floats
364         * device/lib/pic16/configure,
365           device/lib/pic16/Makefile.in,
366           device/lib/pic16/libm/Makefile.in,
367           device/lib/pic16/debug/Makefile.in,
368           device/lib/pic16/libio/Makefile.in,
369           device/lib/pic16/startup/Makefile.in,
370           device/lib/pic16/libsdcc/Makefile.in,
371           device/lib/pic16/libdev/Makefile.in,
372           device/lib/pic16/libc/Makefile.in: regenerated
373         * doc/sdccman.lyx: documented float support and how to get it
374         * doc/Makefile.in: fixed race condition on parallel builds
375
376         * device/lib/pic16/libc/stdio/sprintf.c,
377           device/lib/pic16/libc/stdio/vsprintf.c: do not mess up the user's
378           pointer to the string buffer, enlarge buffer for x_ftoa()
379
380 2009-02-10 Borut Razem <borut.razem AT siol.net>
381
382         * device/lib/printf_tiny.c: replaced non-C89 comments '//' with '/* */'
383
384 2009-02-10 Raphael Neider <rneider AT web.de>
385
386         * device/include/pic16/pic18f*.h: add bit aliases in INTCONbits_t
387
388 2009-02-09 Raphael Neider <rneider AT web.de>
389
390         * src/pic16/pcode.c (assignToSameBank): add force argument to ignore
391           artificial bank size limits for compound data (structs, arrays),
392           avoids assert if --obanksel=N, N > 1, is given
393
394 2009-02-09 Borut Razem <borut.razem AT siol.net>
395
396         * as/asranlib/asranlib.c, link/lkar.c: don't check the padding bytes since
397           the openSUSE GNU ar (GNU Binutils; openSUSE 11.0) 2.18.50.20080409-11.1
398           uses '`' character instead '\n' for padding
399         * as/asranlib/asranlib.c: made it more robust
400
401 2009-02-08 Borut Razem <borut.razem AT siol.net>
402
403         * as/COPYING3: added
404         * support/scripts/sdcc.nsi: added COPYING3.txt to the package
405         * device/lib/Makefile.in: reenable floating point in model-xstack-auto
406           libraries
407
408 2009-02-07 Borut Razem <borut.razem AT siol.net>
409
410         * as/asranlib/asranlib.c: fixed BSD header length calculation
411         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.9
412           due sdcc asxxxx license change to GPLv3
413
414 2009-02-05 Borut Razem <borut.razem AT siol.net>
415
416         * as/asranlib/asranlib.c, link/lkar.h, link/lkar.c:
417           added support for BSD (Mac OS X) ar format
418         * as/asxxsrc/aslex.c, as/as/asxxsrc/asnoice.c, as/as/asxxsrc/assym.c,
419           as/as/hc08/asdata.c, as/hc08/asexpr.c, as/hc08/aslist.c,
420           as/hc08/asm.h, as/hc08/asmain.c, as/hc08/asout.c, as/hc08/assubr.c,
421           as/hc08/m08adr.c, as/hc08/m08ext.c, as/hc08/m08mch.c,
422           as/hc08/m08pst.c, as/hc08/m6808.h, as/link/aslink.h,
423           as/link/hc08/lkarea.c, as/link/hc08/lkelf.c, as/link/hc08/lkihx.c,
424           as/link/hc08/lkmain.c, as/link/hc08/lkmem.c, as/link/hc08/lkrloc.c,
425           as/link/hc08/lks19.c, as/link/lkaomf51.c, as/link/lkdata.c,
426           as/link/lkeval.c, as/link/lkhead.c, as/link/lklex.c, as/link/lklib.c,
427           as/link/lklibr.c, as/link/lklibr.h, as/link/lklist.c,
428           as/link/lknoice.c, as/link/lkrel.c, as/link/lkrel.h,
429           as/link/lksdcclib.c, as/link/lkstore.c, as/link/lksym.c,
430           as/link/mcs51/lkarea.c, as/link/mcs51/lkihx.c,
431           as/link/mcs51/lkmain.c, as/link/mcs51/lkmem.c,
432           as/link/mcs51/lkrloc.c, as/link/mcs51/lks19.c, as/link/z80/lkarea.c,
433           as/link/z80/lkgb.c, as/link/z80/lkgg.c, as/link/z80/lkihx.c,
434           as/link/z80/lkmain.c, as/link/z80/lkrloc.c, as/link/z80/lks19.c,
435           as/mcs51/asdata.c, as/mcs51/asexpr.c, as/mcs51/aslist.c,
436           as/mcs51/asm.h, as/mcs51/asmain.c, as/mcs51/asout.c,
437           as/mcs51/assubr.c, as/mcs51/i51adr.c, as/mcs51/i51ext.c,
438           as/mcs51/i51mch.c, as/mcs51/i51pst.c, as/mcs51/i8051.h,
439           as/xa51/xa_link.c, as/xa51/xa_main.c, as/xa51/xa_main.h,
440           as/xa51/xa_rasm.l, as/xa51/xa_rasm.y, as/xa51/xa_version.h,
441           as/z80/asdata.c, as/z80/asexpr.c, as/z80/aslist.c, as/z80/asm.h,
442           as/z80/asmain.c, as/z80/asout.c, as/z80/assubr.c, as/z80/z80.h,
443           as/z80/z80adr.c, as/z80/z80ext.c, as/z80/z80mch.c, as/z80/z80pst.c:
444           changed license to GPL either version 3, or (at your option) any
445           later version
446
447 2009-02-05 Borut Razem <borut.razem AT siol.net>
448
449         * as/asranlib/asranlib.c, link/lkar.h, link/lkar.c:
450           added support for BSD (Mac OS X) ar format
451
452 2009-02-02 Borut Razem <borut.razem AT siol.net>
453
454         * device/lib/gbz80/Makefile.in, device/lib/hc08/Makefile.in,
455           device/lib/z80/Makefile.in:
456           chose source files in the PORT directory if they are available
457
458 2009-02-01 Raphael Neider <rneider AT web.de>
459
460         * device/lib/pic16/libdev/pic18f1220.c,
461         * device/lib/pic16/libdev/pic18f4450.c:
462           define SSPBUF to allow use of printf
463
464 2009-02-01 Borut Razem <borut.razem AT siol.net>
465
466         * device/lib/Makefile.in, device/lib/gbz80/Makefile.in,
467           device/lib/hc08/Makefile.in, device/lib/incl.mk,
468           device/lib/z80/Makefile.in:
469           don't remake libraries
470         * support/regression/tests/snprintf.c:
471           reenable floating point in small-xstack-auto library
472
473 2009-01-26 Raphael Neider <rneider AT web.de>
474
475         * src/pic16/ralloc.c (packForPush): disabled to fix #2496919
476
477 2009-01-25 Raphael Neider <rneider AT web.de>
478
479         * src/pic16/main.c (_pic16_linkEdit): prepend -L paths to linker
480           search path instead of appending them
481
482 2009-01-24 Borut Razem <borut.razem AT siol.net>
483
484         * as/asranlib/asranlib.h: changed type of offset to unsigned int to
485           make it work on ppc Mac OS X (off_t is 64 bit and is not converted
486           to 32 bit unsigned int when calling sputl() since it is a macro
487         * as/link/lkar.c: changed the initialization of This->loaded
488
489 2009-01-23 Borut Razem <borut.razem AT siol.net>
490
491         * as/link/lkar.h: changed type of ar_size to size_t to make it work on
492           ppc Mac OS X (off_t is 64 bit and is not converted to 32 bit
493           unsigned int when calling new(), since asxxxx doesn't use function
494           prototypes)
495
496 2009-01-21 Borut Razem <borut.razem AT siol.net>
497
498         * as/link/lkar.h: sgetl and sputl are independent of endianness
499         * as/link/sdxxxx_config.h.in: removed endianness detection
500
501 2009-01-20 Borut Razem <borut.razem AT siol.net>
502
503         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.8
504           due creation of ar format libraries
505         * support/scripts/sdcc.nsi:
506           don't add nonexistent object files to the package
507
508 2009-01-19 Borut Razem <borut.razem AT siol.net>
509
510         * Makefile.in, configure.in, configure,
511           device/lib/Makefile.in, device/lib/ds390/Makefile.in,
512           device/lib/ds400/Makefile.in, device/lib/gbz80/Makefile.in,
513           device/lib/hc08/Makefile.in, device/lib/large/Makefile.in,
514           device/lib/mcs51/Makefile.in, device/lib/medium/Makefile.in,
515           device/lib/small/Makefile.in,
516           device/lib/z80/Makefile.in: create ar format libraries
517         * support/regression/ports/mcs51-xstack-auto/spec.mk:
518           use device/lib/Makefile to create library
519         * support/regression/tests/snprintf.c:
520           floating point is not enabled in small-xstack-auto library
521         * device/lib/libfloat.lib, device/lib/libint.lib,
522           device/lib/liblong.lib, device/lib/libsdcc.lib: removed
523
524 2009-01-18 Borut Razem <borut.razem AT siol.net>
525
526         * support/cpp/auto-host.h: fixed warning: "__STDC__" redefined,
527           warning: extra tokens at end of #endif directive
528
529 2009-01-11 Borut Razem <borut.razem AT siol.net>
530
531         * Makefile.in: added SDCC_ASRANLIB to PKGS
532
533 2009-01-10 Borut Razem <borut.razem AT siol.net>
534
535         * support/scripts/sdcc.nsi: added asranlib.exe to the install package
536         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.7
537           due added support for ar format libraries
538
539 2009-01-09 Borut Razem <borut.razem AT siol.net>
540
541         * as/asranlib/Makefile.in, as/asranlib/asranlib.dsp,
542           as/asranlib/asranlib.c: added asranlib
543         * as/link/lkar.c, as/link/lkar.h: added support for ar format libraries
544         * Makefile.in, as/link/hc08/Makefile.in,
545           as/link/hc08/link_hc08.dsp, as/link/lklib.c, as/link/lklibr.c,
546           as/link/lklibr.h, as/link/lkrel.c, as/link/lkrel.h,
547           as/link/lksdcclib.c, as/link/mcs51/Makefile.in,
548           as/link/mcs51/aslink.dsp, as/link/z80/Makefile.in,
549           as/link/z80/linkgbz80.dsp, as/link/z80/linkz80.dsp, configure,
550           configure.in, sdcc.dsw: modified to support ar format libraries
551
552 2009-01-08 Maarten Brock <sourceforge.brock AT dse.nl>
553
554         * src/SDCCast.c (decorateType RETURN): use RESULT_TYPE_GPTR for generic
555           pointer return
556
557 2009-01-05 Philipp Klaus Krause <pkk AT spth.de>
558
559         * sim/ucsim/z80.src/inst_ed.cc:
560           Fixed bug #2488074, which made regression tests fail.
561
562 2009-01-05 Philipp Klaus Krause <pkk AT spth.de>
563
564         * device/lib/z80/mod.s,
565           device/lib/z80/div.s,
566           device/lib/z80/mulchar.s,
567           device/lib/z80/mul.s,
568           device/lib/z80/divsigned.s,
569           device/lib/z80/Makefile.in:
570           Implemented RFE #1702376.
571
572 2009-01-05 Borut Razem <borut.razem AT siol.net>
573
574         * as/link/lksdcclib.c:
575           fixed linker hanging in INDEXLIB is not defined (hc08)
576
577 2009-01-04 Philipp Klaus Krause <pkk AT spth.de>
578
579         * src/z80/gen.c:
580           Implemented RFE #2485684, and some further improvements of HL caching
581           including a bugfix.
582         * src/z80/peeph-z80.def:
583           Fixed a bug exposed by implementing RFE #2485684.
584
585 2009-01-04 Philipp Klaus Krause <pkk AT spth.de>
586
587         * src/z80/peeph-z80.def:
588           Peephole improvements.
589         * src/z80/gen.c,
590           src/z80/main.c,
591           device/include/string.h,
592           device/lib/z80/memmove.s:
593           Minor code cleanup.
594         * device/lib/z80/Makefile.in,
595           device/lib/Makefile.in,
596           support/regression/tests/memory.c,
597           device/lib/z80/strlen.s:
598           Partially implemented RFE #2471534.
599
600 2009-01-04 Borut Razem <borut.razem AT siol.net>
601
602         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.6
603           due changes in sdcc asxxxx linkers - it sholud be done 2 days ago :(
604         * doc/README.txt: updated John Hartman's e-mail address
605         * as/link/lkrel.c, as/link/lksdcclib.c:
606           fixed bug #2484677: Linker hangs
607         * src/z80/peep.c: fixed msvc warning C4047:
608           'return' : 'int ' differs in levels of indirection from 'char *'
609         * config.dsp: as/lib corrected to as/link
610
611 2009-01-04 Philipp Klaus Krause <pkk AT spth.de>
612
613         * src/z80/peep.c:
614           Implemented RFE #2484693.
615         * src/z80/peeph-z80.def:
616           Some peephole improvements.
617
618 2009-01-03 Borut Razem <borut.razem AT siol.net>
619
620         * as/link/lklibr.c:
621           fixed warning: 'ret' may be used uninitialized in this function
622
623 2009-01-02 Borut Razem <borut.razem AT siol.net>
624
625         * as/link/lklib.c, as/link/lksdcclib.c, as/link/lklibr.h,
626           as/link/getline.[ch], as/link/lkrel.[ch]: added,
627           made support for differnet library formats more flexible,
628           preparation for support of ar format
629         * as/link/lklibr.c, as/link/z80/Makefile.in,
630           as/link/z80/linkgbz80.dsp, as/link/z80/linkz80.dsp,
631           as/link/hc08/link_hc08.dsp, as/link/hc08/Makefile.in,
632           as/link/mcs51/aslink.dsp, as/link/mcs51/Makefile.in,
633           as/link/hc08/lkelf.c, as/link/aslink.h:
634           made support for differnet library formats more flexible,
635           preparation for support of ar format
636
637 2009-01-01 Borut Razem <borut.razem AT siol.net>
638
639         * as/link/asxxxx_config.h.in:
640           fixed warning: extra tokens at end of #endif directive
641         * src/z80/peep.c:
642           fixed warning: suggest parentheses around && within ||
643         * device/lib/Makefile.in: allow whitespaces at the end of lines in
644           ports.build, in order to make it work on cygwin - it seems to be a
645           bug in cygwin grep: CR is not treated as part of end-of-line
646
647 2008-12-31 Borut Razem <borut.razem AT siol.net>
648
649         * configure, configure.in, config.dsp, config_vc.awk,
650           as/link/asxxxx_config.h.in, as/link/hc08/lkelf.c, as/link/aslink.h,
651           as/link/hc08/Makefile.in, as/link/mcs51/Makefile.in:
652           introduced asxxxx_config.h.in
653
654 2008-12-30 Philipp Klaus Krause <pkk AT spth.de>
655
656         * src/z80/gen.c,
657           src/z80/peeph-z80.def:
658           Minor addition improvement.
659
660 2008-12-30 Raphael Neider <rneider AT web.de>
661
662         * as/link/hc08/lkelf.c, as/link/lkaomf51.c, as/link/lklibr.c,
663           as/link/z80/lkgb.c, debugger/mcs51/cmd.c, sim/ucsim/utils.cc,
664           src/SDCCasm.c, support/Util/dbuf_string.c, support/cpp/c-ppoutput.c,
665           support/cpp/libcpp/lex.c, support/cpp/libcpp/macro.c,
666           support/librarian/sdcclib.c, support/makebin/makebin.c:
667           partially revert changes from r5293..r5295
668
669 2008-12-29 Philipp Klaus Krause <pkk AT spth.de>
670
671         * src/z80/peeph-z80.def:
672           Minor peephole improvement.
673
674 2008-12-29 Raphael Neider <rneider AT web.de>
675
676         * src/pic/pcode.c (insertBankSel, FixRegisterBanking): emit
677           incorrectly discarded BANKSELs
678
679 2008-12-29 Philipp Klaus Krause <pkk AT spth.de>
680
681         * support/regression/tests/memory.c:
682           Added simple test for memset(), memcpy() and memmove()
683
684 2008-12-29 Borut Razem <borut.razem AT siol.net>
685
686         * sdcc/support/scripts/sdcc.nsi: removed $INSTDIR\lib\src\z80\*.c
687
688 2008-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
689
690         * src/mcs51/peeph.def (177.e): replaced notVolatile(%3) with
691           operandsNotRelated(%1 %3), had to change (a)r%1 to (a)%1 for this to work
692           (177.j): added new rule
693         * src/SDCCsymt.h: added RESULT_TYPE_GPTR
694         * src/SDCCast.c (processParms): use RESULT_TYPE_GPTR for generic ptr parms,
695           (decorateType CAST): propagate storage class to generic pointer results
696
697 2008-12-27 Philipp Klaus Krause <pkk AT spth.de>
698
699         * device/lib/z80/string.c,
700           device/lib/z80/printf.c,
701           device/lib/z80/mul.s:
702           z80 library cleanup
703         * src/z80/gen.c:
704           Fixed code generation bug exposed by builtin memcpy().
705
706 2008-12-27 Philipp Klaus Krause <pkk AT spth.de>
707
708         * device/lib/_memcpy.c:
709           fixed conflict with builtin memcpy()
710
711 2008-12-26 Borut Razem <borut.razem AT siol.net>
712
713         * support/librarian/sdcclib.c:
714           fixed bug 2466950: "sdcclib broken"
715           by removing fgets return value check
716
717 2008-12-26 Philipp Klaus Krause <pkk AT spth.de>
718         * src/z80/main.c,
719           src/z80/gen.c,
720           device/include/string.h: Implemented RFE #1914254
721
722 2008-12-26 Philipp Klaus Krause <pkk AT spth.de>
723         * device/lib/z80/Makefile.in,
724           device/lib/Makefile.in,
725           device/lib/z80/memmove.s: Implemented RFE #1914256
726
727 2008-12-26 Philipp Klaus Krause <pkk AT spth.de>
728
729         * src/z80/peeph-z80.def: fixed a bug in peephole 0zf
730         * src/z80/peep.c: improved checks for unused data
731         * src/z80/gen.c,
732           src/z80/main.c: Implemented RFE #1899189
733
734 2008-12-25 Borut Razem <borut.razem AT siol.net>
735
736         * support/regression/Makefile.in:
737           add -I$(INC_DIR) to SDCCFLAGS only if INC_DIR is defined
738
739 2008-12-25 Philipp Klaus Krause <pkk AT spth.de>
740
741         * src/z80/peeph-z80.def: minor peephole improvements
742
743 2008-12-21 Borut Razem <borut.razem AT siol.net>
744
745         * support/librarian/sdcclib.c: fixed build failure on Mac OS X
746           due to redefinition of symbol __assert
747           sdcclib.c:53:1:warning: "__assert" redefined
748           /Xcode2.5/SDKs/MacOSX10.4u.sdk/usr/include/assert.h:80:1:
749           warning: this is the location of the previous definition
750
751 2008-12-20 Raphael Neider <rneider AT web.de>
752
753         * debugger/mcs51/break.c, debugger/mcs51/cmd.c,
754           debugger/mcs51/simi.c, debugger/mcs51/symtab.c,
755           support/cpp/libcpp/macro.c: fix format string errors
756
757         * sim/ucsim/s51.src/timer2.cc: add clarifying parens
758
759         * src/pic/device.c: partial rewrite using strtok,
760           quieten compiler warnings, adopt SDCC coding style
761
762         * as/link/hc08/lkelf.c, as/link/lkaomf51.c, as/link/lklibr.c,
763           as/link/z80/lkgb.c, as/z80/asout.c, debugger/mcs51/cmd.c,
764           sim/ucsim/utils.cc, src/SDCCasm.c, support/Util/dbuf_string.c,
765           support/cpp/c-ppoutput.c, support/cpp/libcpp/lex.c,
766           support/librarian/sdcclib.c, support/makebin/makebin.c:
767           quieten most compiler warnings
768
769         * sim/ucsim/avr.src/arith_inst.cc: quieten compiler warnings,
770           probably fix operator precedence bug
771
772         * doc/clean.mk: quieten rm if no .lyx is present
773
774 2008-12-19 Borut Razem <borut.razem AT siol.net>
775
776         * doc/sdccman.lyx, doc/random-notes.txt, doc/avr/avr_design.txt,
777           doc/TININative.txt, doc/macro-sys-design.txt, doc/libdoc.txt,
778           doc/README.txt, doc/test_suite_spec.lyx:
779           applied patch 2446381: Dcoumentation spelling correcitons
780           thanks to Steven Borley
781
782 2008-12-16 Raphael Neider <rneider AT web.de>
783
784         * device/include/pic/pic12f629.h,
785           device/include/pic/pic12f675.h,
786           device/lib/pic/libdev/pic12f629.c,
787           device/lib/pic/libdev/pic12f675.c: consolidated, added TRISIO bits
788
789 2008-12-14 Borut Razem <borut.razem AT siol.net>
790
791         * doc/sdccman.lyx, cdbfileformat.lyx, test_suite_spec.lyx:
792           converted to LyX 1.5.7 (\lyxformat 276) format
793
794 2008-12-07 Borut Razem <borut.razem AT siol.net>
795
796         * support/regression/tests/bitfields.c:
797           added test case for bug #2366757
798
799 2008-12-07 Raphael Neider <rneider AT web.de>
800
801         * src/pic16/glue.c (pic16_printIvalBitFields): prevent
802           NULL pointer dereference, closes #2366757
803
804 2008-11-25 Raphael Neider <rneider AT web.de>
805
806         * device/include/pic16/pic16devices.txt,
807           sdcc/src/pic16/device.c,
808           sdcc/src/pic16/device.h: implicitly disable XINST
809           whenever CONFIG4L is set via an additional optional
810           argument to the configword directive in pic16devices.txt
811
812 2008-11-24 Raphael Neider <rneider AT web.de>
813
814         * device/lib/pic16/configure.ac,
815           device/lib/pic16/Makefile.common: fixed quoting issues
816
817         * device/lib/pic16/configure,
818           device/lib/pic16/debug/Makefile.in,
819           device/lib/pic16/libc/Makefile.in,
820           device/lib/pic16/libdev/Makefile.in,
821           device/lib/pic16/libio/Makefile.in,
822           device/lib/pic16/libm/Makefile.in,
823           device/lib/pic16/libsdcc/Makefile.in,
824           device/lib/pic16/Makefile.in,
825           device/lib/pic16/startup/Makefile.in: regenerated
826
827         * src/pic16/main.c (_pic16_finaliseOptions): revert to
828           variant of r5216
829
830 2008-11-24 Raphael Neider <rneider AT web.de>
831
832         * src/pic16/main.c (_pic16_finaliseOptions): do not quote the
833           argument of --asm= or --link= to allow for
834           --asm="sh script --options", the user can double quote the
835           argument if needed: --asm="'c:/program files/gpasm' -q",
836           also fix some potential buffer overflows
837
838 2008-11-19 Borut Razem <borut.razem AT siol.net>
839
840         * doc/sdccman.lyx:
841           fixed 2314467: sdccman.lyx: fix "--" in command line parameters
842           thanks Mauro Giachero
843
844 2008-11-16 Borut Razem <borut.razem AT siol.net>
845
846         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.5
847         * doc/sdccman.lyx: documented fixed unnamed bit-field initialization
848
849 2008-11-15 Borut Razem <borut.razem AT siol.net>
850
851         * src/pic16/glue.c, src/SDCC.y, src/SDCCast.c, src/SDCCglue.c,
852           src/SDCCsymt.c, src/SDCCsymt.h:
853           fixed RFE #2291335 : Unnamed bit-field initialization
854         * support/regression/tests/bitfields.c:
855           added test case for RFE #2291335
856         * support/regression/tests/bug-1981238.c:
857           don't initialize unnamed bit-fields
858
859 2008-11-11 Raphael Neider <rneider AT web.de>
860
861         * device/include/pic16/pic18f25j10.h,
862           device/include/pic16/pic18f45j10.h: remove useless boilerplate
863
864         * device/include/pic16/adc.h,
865           device/lib/pic16/libio/adc/adcbusy.c,
866           device/lib/pic16/libio/adc/adcclose.c,
867           device/lib/pic16/libio/adc/adcconv.c,
868           device/lib/pic16/libio/adc/adcopen.c,
869           device/lib/pic16/libio/adc/adcread.c,
870           device/lib/pic16/libio/adc/adcsetch.c: generalized, documented,
871           and fixed ADC routines to work for more target devices,
872           incorporates patch #2036130 by Nick Materer
873
874 2008-11-10 Steven Borley <steven.borley AT partnerelectronics.com>
875
876         * device/include/ctype.h,
877         * device/include/ds400rom.h,
878         * device/include/ds80c390.h,
879         * device/include/float.h,
880         * device/include/math.h,
881         * device/include/serial.h,
882         * device/include/stdbool.h,
883         * device/include/tinibios.h: replaced non-C89 '//' with '/* */',
884           patch 2195343
885         * device/include/mcs51/C8051F336.h,
886         * device/include/mcs51/C8051T600.h,
887         * device/include/mcs51/C8051T610.h,
888         * device/include/mcs51/C8051T630.h: new, added, patch 2183334
889           (svn commit by Maarten Brock <sourceforge.brock AT dse.nl>)
890
891 2008-11-10 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
892
893         * device/include/mcs51/P89LPC922.h: fixed #2255989, thanks kubi57
894
895 2008-11-10 Raphael Neider <rneider AT web.de>
896
897         * device/lib/pic16/libdev/mkmk.sh: obey pics.all
898         * device/lib/pic16/libio/mkmk.sh: properly match whole lines in
899           .ignore files, fixes IO libs for 18f242, 18f252, 18f442, and 18f452
900           (patch by Nick Materer, #2253980)
901
902         * device/lib/pic16/libio/adc.ignore,
903           device/lib/pic16/libio/i2c.ignore,
904           device/lib/pic16/libio/usart.ignore,
905           device/lib/pic16/pics.all: updated to build more device libs
906
907         * device/lib/pic16/libdev/Makefile.am,
908           device/lib/pic16/libdev/Makefile.in,
909           device/lib/pic16/libio/Makefile.am,
910           device/lib/pic16/libio/Makefile.in: regenerated
911
912         * src/pic16/device.c (pic16_dump_usection): fixed output of multiple
913           names per memory location, applied SDCC style to more functions
914
915 2008-11-09 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
916
917         * device/include/mcs51/p89lpc933_4.h: new NXP header file
918         * device/include/mcs51/p89lpc935_6.h: new NXP header file
919         * device/include/mcs51/p89v66x.h: minor changes
920           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
921
922 2008-11-09 Raphael Neider <rneider AT web.de>
923
924         * device/include/pic/pic14devices.txt: fixed memory description for
925           12f629 and 12f675, closes #2236240
926
927 2008-11-06 Borut Razem <borut.razem AT siol.net>
928
929         * src/SDCCmain.c: fixed bug #2224960: sdcc -MM no working correctly
930           pass system include paths with -isystem to sdcpp
931         * src/SDCCglue.c, src/pic/glue.c, src/pic16/glue.c: removed unneeded
932           functions (closePipes), (closeTmpFiles) and (rmTmpFiles)
933
934 2008-11-02 Raphael Neider <rneider AT web.de>
935
936         * doc/sdccman.lyx: updated the sections on the library build process
937           and on how to add support for new devices, and documented known
938           problems with the extended instruction set including a workaround
939
940 2008-11-01 Raphael Neider <rneider AT web.de>
941
942         * device/include/pic16/adc.h,
943           device/include/pic16/pic16devices.txt,
944           device/include/pic16/pic18f2410.h,
945           device/include/pic16/pic18f2510.h,
946           device/include/pic16/pic18f2515.h,
947           device/include/pic16/pic18f2610.h,
948           device/include/pic16/pic18f4410.h,
949           device/include/pic16/pic18f4510.h,
950           device/include/pic16/pic18f4515.h,
951           device/include/pic16/pic18f4610.h,
952           device/include/pic16/pic18fregs.h,
953           device/lib/pic16/libdev/Makefile.am,
954           device/lib/pic16/libdev/Makefile.in,
955           device/lib/pic16/libdev/pic18f2410.c,
956           device/lib/pic16/libdev/pic18f2510.c,
957           device/lib/pic16/libdev/pic18f2515.c,
958           device/lib/pic16/libdev/pic18f2610.c,
959           device/lib/pic16/libdev/pic18f4410.c,
960           device/lib/pic16/libdev/pic18f4510.c,
961           device/lib/pic16/libdev/pic18f4515.c,
962           device/lib/pic16/libdev/pic18f4610.c,
963           device/lib/pic16/libio/Makefile.am,
964           device/lib/pic16/libio/Makefile.in,
965           device/lib/pic16/pics.all: added support for 18f[24][456]10
966           and 18f[24]515 devices
967         * doc/sdccman.lyx: updated list of supported PIC16 devices
968
969         * src/pic/glue.c, src/pic/pcode.c, src/pic/pcodeflow.c,
970           src/pic16/glue.c, src/pic16/pcode.c, src/pic16/pcodeflow.c,
971           src/xa51/gen.c: avoid compiler warnings
972         * support/scripts/inc2h-pic16.pl: removed trailing whitespace
973
974 2008-10-22 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
975
976         * device/include/mcs51/p89v66x.h: NXP header file
977         * device/include/mcs51/p89c66x.h: fixed an SBIT definition
978           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
979
980 2008-10-14 Raphael Neider <rneider AT web.de>
981
982         * device/lib/pic16/libdev/Makefile.am,
983           device/lib/pic16/libio/Makefile.am: enable building libraries for
984           18f2321, 18f4321, 18f2523, 18f4620, 18f66j60, 18f66j65, 18f67j60,
985           18f86j60, 18f86j65, 18f87j60, 18f96j60, 18f96j65, and 18f97j60
986         * device/lib/pic16/libdev/Makefile.in,
987           device/lib/pic16/libio/Makefile.in: regenerated
988
989 2008-10-14 Raphael Neider <rneider AT web.de>
990
991         * device/include/pic16/pic18f2450.h,
992           device/include/pic16/pic18f4450.h,
993           device/lib/pic16/libdev/pic18f2450.c,
994           device/lib/pic16/libdev/pic18f4450.c,
995           device/include/pic16/adc.h,
996           device/include/pic16/pic16devices.txt,
997           device/include/pic16/pic18fregs.h,
998           device/lib/pic16/libdev/Makefile.am,
999           device/lib/pic16/libdev/Makefile.in,
1000           device/lib/pic16/libio/Makefile.am,
1001           device/lib/pic16/libio/Makefile.in,
1002           device/lib/pic16/pics.all: added 18f2450 and 18f4450, closes #1844525
1003
1004         * device/lib/pic16/libsdcc/stack/stack.S: there is no need to pin the
1005           stack to a fixed location, relax it to automatically work with all
1006           but the smallest devices (256 byte RAM devices need #pragma stack)
1007
1008 2008-10-09 Maarten Brock <sourceforge.brock AT dse.nl>
1009
1010         * debugger/mcs51/break.c: bugfix from patch 1989966, thanks Risto Huotari
1011         * debugger/mcs51/simi.c: bugfix from patch 1989972, thanks Risto Huotari
1012         * device/lib/_strcspn.c: fixed bug 2140931
1013
1014 2008-10-06 Raphael Neider <rneider AT web.de>
1015
1016         * device/include/pic16/stdio.h,
1017           device/lib/pic16/libc/stdio/putchar.c: putchar should not be
1018           declared __naked for convenience, named all arguments
1019         * device/lib/pic16/libc/stdio/strmgpsim.c,
1020           device/lib/pic16/libc/stdio/strmmssp.c,
1021           device/lib/pic16/libc/stdio/strmusart.c: cosmetic changes
1022
1023         * src/pic16/pcode.c (createReachingDefinitions): avoid segfault on
1024           empty __naked functions,
1025         * (pCodeLabelDestruct, pic16_unlinkpCode, pic16_pCodeUnlink): fix
1026           corner cases (unlink first/last pCode in list), reuse more code
1027
1028 2008-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
1029
1030         * src/ds390/main.c (_ds390_genInitStartup): added
1031         * src/SDCCpeeph.c (getPatternVar): new, added,
1032           (labelInRange): fixed bug 2115959
1033         * src/mcs51/peeph.def (rules 193.x to 198.x): check for labelInRange
1034         * src/SDCCicode.h: added newiTempOperand
1035         * src/SDCCcse.c (algebraicOpts): fixed bug for x*-1,
1036           added optimizations for 0/x and x/-1, see also patch 2142900
1037         * support/regression/tests/onebyte.c (testMul): added test cases
1038
1039 2008-09-20 Borut Razem <borut.razem AT siol.net>
1040
1041         * src/pic16/glue.c:
1042           definition of absolute address symbols without initial value,
1043           fixed SDCC crash "do not know how to intialize symbol"
1044
1045 2008-09-16 Maarten Brock <sourceforge.brock AT dse.nl>
1046
1047         * device/lib/z80/mul.s (__mulsuchar_rrx_s, __muluschar_rrx_s),
1048         * device/lib/z80/div.s (__divsuchar_rrx_s, __modsuchar_rrx_s,
1049           __divuschar_rrx_s, __moduschar_rrx_s): added mixed signedness versions
1050         * device/lib/z80/stubs.s: added stubs for above functions
1051         * src/SDCCopt.c (convilong),
1052         * src/SDCCsymt.c (initCSupport): fixed bug 1900961
1053         * src/SDCCsymt.h (__muldiv): enlarged for mixed signedness
1054         * src/z80/main.c (_hasNativeMulFor): fixed bug, I think
1055         * support/regression/tests/onebyte.c: enabled all tests for z80
1056
1057 2008-09-15 Borut Razem <borut.razem AT siol.net>
1058
1059         * device/include/pic16/stdio.h, device/lib/pic16/libc/stdio/streams.c,
1060           device/lib/pic16/libc/stdio/printf.c,
1061           device/lib/pic16/libc/stdio/strmusart.c,
1062           device/lib/pic16/libc/stdio/printf_tiny.c,
1063           device/lib/pic16/libc/stdio/sprintf.c,
1064           device/lib/pic16/libc/stdio/strmgpsim.c,
1065           device/lib/pic16/libc/stdio/putchar.c,
1066           device/lib/pic16/libc/stdio/fprintf.c,
1067           device/lib/pic16/libc/stdio/strmmssp.c,
1068           device/device/lib/pic16/libc/stdio/vprintf.c,
1069           device/lib/pic16/libc/stdio/printf_small.c,
1070           device/lib/pic16/libc/stdio/vsprintf.c,
1071           device/lib/pic16/libc/stdio/strmputchar.c,
1072           device/lib/pic16/libc/Makefile.am,
1073           device/lib/pic16/libc/Makefile.in:
1074           *printf now returns int, puchar.c moved from stdlib to stdio,
1075           *printf format parameter type changed from char * to const char *,
1076           added GNU link excetion text to library source files,
1077           applyed GNU coding style, removed useless svn ids,
1078           added BINARY_SPECIFIER macro re-enables the use of the removed 'b'
1079           binary specifier: "%b", "%hb" and "%lb"
1080         * device/lib/pic16/libc/stdio/vfprintf.c:
1081           applied patch #2044424: PIC16: vfprintf
1082           thanks Mauro Giachero
1083         * support/regression/tests/bug1057979.c:
1084           removed old pic16 sprintf specifics
1085         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.4
1086         * doc/sdccman.lyx: documented 'b' binary format specifier removal
1087
1088 2008-09-15 Raphael Neider <rneider AT web.de>
1089
1090         * src/pic16/device.c (pic16_dump_usection): force udata sections
1091           into the addressable range (0..0xFFF), workaround for a gpsim
1092           bug preventing simulation of regtest bug1750318
1093         * src/pic16/ralloc.c (deassignLRs): cosmetic changes,
1094           (serialRegAssign): fixed regtest bug-971834,
1095           (pic16_packRegisters): avoid null-pointer dereference
1096
1097 2008-09-14 Raphael Neider <rneider AT web.de>
1098
1099         * src/pic16/gen.c, src/pic16/ralloc.c: use
1100           SYM_SPIL_LOC/SPIL_LOC macros, no functional changes
1101         * src/pic16/ralloc.c (rematStr): reimplemented, fixes #1818857
1102
1103 2008-09-12 Borut Razem <borut.razem AT siol.net>
1104
1105         * support/regression/fwk/testfwk.h:
1106           define pdata as data for pic16 target
1107           thanks Mauro Giachero
1108
1109 2008-09-11 Borut Razem <borut.razem AT siol.net>
1110
1111         * support/regression/tests/bug-221100.c, support/regression/shifts.c,
1112           support/regression/absolute.c:
1113           applied patch #2105615: Some PIC16 testcase fixlets
1114           thanks Mauro Giachero
1115
1116 2008-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
1117
1118         * src/z80/gen.c (genCmpGt, genCmpLt): fixed bug 2094505
1119         * support/regression/tests/bug2094505.c: new, added
1120
1121 2008-09-07 Borut Razem <borut.razem AT siol.net>
1122
1123         * src/SDCCglue.c, src/SDCCast.c:
1124           fixed throw of "excess elements" warning for char arrays
1125         * support/regression/tests/nullstring.c:
1126           disable warning about excess elements in array of chars initializer
1127
1128 2008-09-07 Maarten Brock <sourceforge.brock AT dse.nl>
1129
1130         * as/z80/aslist.c (lstsym): changed old K&R to ANSI
1131         * src/SDCCicode.c (geniCodeCritical): fixed bug for hc08
1132         * src/z80/gen.c (genCritical, genEndCritical): fixed bug 2077267
1133         * support/regression/tests/bug2077267.c: new, added
1134
1135 2008-09-05 Raphael Neider <rneider AT web.de>
1136
1137         * configure.in, Makefile.common.in: add support for ccache,
1138           remove spurious $VERSION output, detect doc-tools even without
1139           --enable-doc to facilitate later manual doc-builds, minor cleanup
1140         * configure: regenerated
1141
1142         * doc/Makefile.in: quieten pdflatex, makeindex, and latex2html,
1143           avoid races in parallel VPATH builds
1144         * doc/clean.mk: remove .lyx files in the builddir for VPATH builds
1145         * doc/sdccman.lyx: mention --without-ccache configure option
1146
1147 2008-09-01 Raphael Neider <rneider AT web.de>
1148
1149         * src/pic16/gen.c (pic16_derefPtr): handle CPOINTERs as well
1150         * (genConstPointerGet): fix reading bitfields from __code space
1151         * src/pic16/glue.c (pic16_printIvalBitFields): correctly mask
1152           bitfield initializers (fix regression test bug1856409.c)
1153         * (pic16_printIvalCharPtr,pic16_printIvalPtr): generalized to support
1154           arbitrary sizes
1155
1156 2008-08-31 Raphael Neider <rneider AT web.de>
1157
1158         * src/pic16/gen.c (genAssign): removed useless compiler output
1159         * (genPointerGet,genPointerSet,genCast),
1160           src/pic16/glue.c (pic16_printGPointerType):
1161           also handle PPOINTERs just to avoid spurious asserts
1162         * (pic16_printIvalType,pic16_printIvalBitFields):
1163           generalized to arbitrary type/bitfield sizes, allows compilation of
1164           regression test bug-1981238.c
1165         * (pic16_printIvalChar): fix regression test structflexarray.c
1166         * (pic16_printIvalArray): avoid SIGSEGV on uninitialized strings
1167           in initialized structs and fix #1843745
1168         * (pic16_printIvalStruct): always output initializers for all fields,
1169           even those not explicitly given, fixes zeropad.c regression test
1170         * (pic16_printIvalUnion): fix union initializers (bug1426356.c,
1171           #2073635, #1567098, and #1485812)
1172         * src/pic16/main.c (_pic16_keywords): remove unsupported 'pdata'
1173
1174 2008-08-31 Borut Razem <borut.razem AT siol.net>
1175
1176         * support/regression/tests/bug-895992.c,
1177           support/regression/tests/onebyte.c:
1178           enabled pic16 regression testing since the bugs
1179           1511794: pic16: regression test bug-895992.c fails
1180           1444425: onebyte.c regression tes fails on pic16
1181           are fixed, probably by fixing
1182           2048464: PIC16: fix genUminus - addresses not.c regression test
1183         * src/SDCCsymt.c, src/SDCCglue.c,
1184           support/regression/tests/bug-1981238.c:
1185           applied patch 2076664: fix #1981238 + SIGSEGV in SDCCGlue.c
1186           thanks to RvS
1187
1188 2008-08-30 Borut Razem <borut.razem AT siol.net>
1189
1190         * support/cpp/libcpp/files.c: SDCPP synchronized with GCC CPP
1191           release version 4.3.2
1192
1193 2008-08-24 Raphael Neider <rneider AT web.de>
1194
1195         * device/lib/pic16/configure, device/lib/pic16/configure.ac:
1196           always use the sdcc from the current build tree (ignore $CC from
1197           the environment, fixes compile farm builds)
1198         * device/lib/Makefile.in: rename .a into .lib for compatibility,
1199           remove more build products from install directory
1200         * sdcc/src/pic16/main.c (_pic16_linkEdit,_pic16_finaliseOptions)
1201         * sdcc/support/scripts/sdcc.nsi: revert to .lib extension for libs
1202
1203 2008-08-24 Borut Razem <borut.razem AT siol.net>
1204
1205         * src/SDCC.y: applied patch
1206           2050245: Fix # 1963382
1207           for bug
1208           1963382: Listing File - C file comment is incorrect
1209           thanks to RvS
1210
1211 2008-08-23 Borut Razem <borut.razem AT siol.net>
1212
1213         * src/pic16/gen.c: applied patch
1214           2048464: PIC16: fix genUminus - addresses not.c regression test
1215           thanks Mauro Giachero
1216
1217 2008-08-22 Borut Razem <borut.razem AT siol.net>
1218
1219         * device/lib/pic16/configure, device/lib/pic16/configure.ac,
1220           src/pic16/main.c: allow spaces in gpasm and gplink paths
1221
1222 2008-08-15 Philipp Klaus Krause <pkk AT spth.de>
1223
1224         * src/z80/peep.c,
1225         * src/z80/peeph-z80.def: minor peephole improvement
1226
1227 2008-08-15 Raphael Neider <rneider AT web.de>
1228
1229         * src/z80/gen.c (_vemit2): suppress compiler warning
1230
1231         * src/pic/*.[ch]: make proper use of header files and avoid
1232           ad-hoc extern declarations, mark module-local helpers 'static',
1233           removed dead/replaced code, no functional changes
1234         * src/pic16/pcode.c: disentangled from pic14 backend
1235
1236 2008-08-14 Philipp Klaus Krause <pkk AT spth.de>
1237
1238         * src/z80/gen.c: fixed #2051348
1239         * support/regression/tests/bug-2051348.c: regression test for #2051348
1240
1241 2008-08-10 Raphael Neider <rneider AT web.de>
1242
1243         * configure.in,
1244         * Makefile.common.in: export PACKAGE for $docdir,
1245           fixes #1957036, avoid some "underquoted definition" warnings
1246         * configure: regenerated
1247
1248 2008-08-10 Raphael Neider <rneider AT web.de>
1249
1250         * device/lib/pic16/**: build pic16 library using autotools for
1251           improved dependency tracking
1252
1253         * device/lib/Makefile.in,
1254         * src/pic16/main.c,
1255         * support/scripts/sdcc.nsi: adapt to changes in filenames (s/.lib/.a/)
1256
1257 2008-08-10 Raphael Neider <rneider AT web.de>
1258
1259         * src/pic/pcode.c (ReuseReg): do not overlay the registers used for
1260           local variables if --nooverlay is given, workaround for #2023121
1261
1262 2008-08-08 Raphael Neider <rneider AT web.de>
1263
1264         * src/pic16/genarith.c (genAddLit): fix structure access (#1888004)
1265
1266 2008-08-08 Raphael Neider <rneider AT web.de>
1267
1268         * src/pic/pcoderegs.c,
1269         * src/pic/pcode.c,
1270         * src/pic16/pcode.c: replace own SAFE_snprintf with common SNPRINTF
1271
1272 2008-08-07 Borut Razem <borut.razem AT siol.net>
1273
1274         * src/SDCCval.c, src/SDCCmain.c, src/SDCC.lex,
1275           device/lib/pic/Makefile.rules, device/lib/ds390/Makefile.in,
1276           device/lib/ds400/Makefile.in, device/lib/hc08/Makefile.in,
1277           support/cpp/libcpp/lex.c,  doc/sdccman.lyx:
1278           applied modified patch 2038174: Add support for binary constants v2
1279           thanks Mauro Giachero
1280         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.3
1281
1282 2008-08-04 Raphael Neider <rneider AT web.de>
1283
1284         * doc/sdccman.lyx,
1285         * src/pic16/device.h,
1286         * src/pic16/glue.c,
1287         * src/pic16/main.c: enable --optimize-goto by default
1288
1289         * device/lib/pic16/Makefile.common.in: suppress removed option
1290
1291         * src/pic16/gen.c,
1292         * src/pic16/genutils.c: avoid too long relative branches (#2031890)
1293
1294 2008-07-30 Borut Razem <borut.razem AT siol.net>
1295
1296         * src/pic16/device.c, src/pic16/glue.c, src/pic16/pcode.c:
1297           applied patch 22032433: PIC16: fix constant strings,
1298           thanks Mauro Giachero
1299
1300 2008-07-29 Borut Razem <borut.razem AT siol.net>
1301
1302         * src/pic16/gen.c: applied patches:
1303           2030306: [1/3] PIC16: fix failing rotate.c tests on 16-bit variables,
1304           2030307: [2/3] PIC16: fix failing rotate.c tests for 32-bit var (1),
1305           2030310: [3/3] PIC16: fix failing rotate.c tests for 32-bit var (2),
1306           thanks Mauro Giachero
1307
1308 2008-07-13 Philipp Klaus Krause <pkk AT spth.de>
1309
1310         * src/port.h: Fixed typo in comment
1311
1312 2008-07-12 Philipp Klaus Krause <pkk AT spth.de>
1313
1314         * src/z80/mappings.i: Implemented RFE #1919415
1315         * src/z80/peeph-z80.def: Implemented RFE #1919415, #1861376,
1316           #1880202, #1914434, prepared for RFE #1703943
1317
1318 2008-07-12 Philipp Klaus Krause <pkk AT spth.de>
1319
1320         * src/z80/peeph.def,
1321         * src/z80/peeph-z80.def,
1322         * src/z80/peeph-gbz80.def: separate Z80 from GBZ80 peepholes in
1323           preparation for Z80 peephole improvements
1324
1325 2008-06-21 Raphael Neider <rneider AT web.de>
1326
1327         * device/include/pic16/pic18f66j60.h,
1328         * device/include/pic16/pic18f66j65.h,
1329         * device/include/pic16/pic18f67j60.h,
1330         * device/include/pic16/pic18f86j60.h,
1331         * device/include/pic16/pic18f86j65.h,
1332         * device/include/pic16/pic18f87j60.h,
1333         * device/include/pic16/pic18f96j60.h,
1334         * device/include/pic16/pic18f96j65.h,
1335         * device/include/pic16/pic18f97j60.h,
1336         * device/lib/pic16/libdev/pic18f66j60.c,
1337         * device/lib/pic16/libdev/pic18f66j65.c,
1338         * device/lib/pic16/libdev/pic18f67j60.c,
1339         * device/lib/pic16/libdev/pic18f86j60.c,
1340         * device/lib/pic16/libdev/pic18f86j65.c,
1341         * device/lib/pic16/libdev/pic18f87j60.c,
1342         * device/lib/pic16/libdev/pic18f96j60.c,
1343         * device/lib/pic16/libdev/pic18f96j65.c,
1344         * device/lib/pic16/libdev/pic18f97j60.c,
1345         * device/include/pic16/pic16devices.txt,
1346         * device/include/pic16/pic18fregs.h,
1347         * device/lib/pic16/pics.all: added new devices
1348
1349         * device/include/pic16/adc.h,
1350         * device/lib/pic16/libio/adc/adcbusy.c,
1351         * device/lib/pic16/libio/adc/adcopen.c,
1352         * device/lib/pic16/libio/adc/adcsetch.c,
1353         * device/lib/pic16/libio/i2c/i2copen.c,
1354         * device/lib/pic16/libio/usart/uopen.c: adapted to new devices,
1355           all changes from a patch by Anton Strobl
1356
1357 2008-06-12 Borut Razem <borut.razem AT siol.net>
1358
1359         * sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/bp.cc,
1360           sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
1361           sim/ucsim/z80.src/z80cl.h, sim/ucsim/z80.src/z80.cc,
1362           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
1363           sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
1364           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/uc390.cc,
1365           sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/uc390cl.h,
1366           sim/ucsim/avr.src/avrcl.h, sim/ucsim/avr.src/avr.cc:
1367           fixed bug 1990586: s51 simulator, uc::disass() unimplemented
1368           by applying the modified patch from Risto Huotari
1369
1370 2008-06-04 Maarten Brock <sourceforge.brock AT dse.nl>
1371
1372         * .version,
1373         * doc/sdccman.lyx: bumped sdcc version to 2.8.2
1374         * src/ds390/gen.c (aopPutUsesAcc, genAddrOf): fixed bug 1015185
1375         * src/mcs51/gen.c (genNearPointerGet, genNearPointerSet): fixed bug 1938300
1376         * support/regression/tests/bug1938300.c: new, added
1377
1378 2008-06-03 Maarten Brock <sourceforge.brock AT dse.nl>
1379
1380         * device/include/asm/ds390/features.h,
1381         * device/include/asm/mcs51/features.h,
1382         * device/include/mcs51/regc515c.h: inserted LGPL notice
1383
1384 2008-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
1385
1386         * device/lib/gbz80/div.s,
1387         * device/lib/z80/div.s: fixed bug 1904314 by applying a modified part of
1388           patch 1597883, Thanks Robert Ramey
1389
1390 2008-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
1391
1392         * src/SDCCast.c (createIvalType, createIvalStruct, createIvalArray,
1393           createIvalCharPtr, createIvalPtr, createIval),
1394         * src/SDCCval.h
1395         * src/SDCCval.c (convertIListToConstList, list2expr): handle incomplete
1396           initializers for local auto variables
1397         * support/regression/tests/zeropad.c: added testcase for auto initializers
1398
1399 2008-05-26 Raphael Neider <rneider AT web.de>
1400
1401         * device/lib/pic16/startup/crt0.c,
1402         * device/lib/pic16/startup/crt0i.c,
1403         * device/lib/pic16/startup/crt0iz.c: clean up, make use of access bank
1404           explicit, fixed curr_entry loop for >= 256 initializer records,
1405           removed debug code (write to 0xf7e)
1406
1407 2008-05-25 Raphael Neider <rneider AT web.de>
1408
1409         * device/include/pic/pic16f627a.h,
1410         * device/include/pic/pic16f628a.h,
1411         * device/include/pic/pic16f648a.h: added missing ports
1412
1413 2008-05-20 Maarten Brock <sourceforge.brock AT dse.nl>
1414
1415         * device/include/float.h: added __INFINITY
1416         * device/lib/_fsadd.c: handle overflows
1417         * device/lib/_fsmul.c,
1418         * device/lib/_fsdiv.c: use __INFINITY
1419         * device/lib/_fseq.c,
1420         * device/lib/_fsneq.c: handle -0.0
1421         * sim/ucsim/s51.src/uc89c51r.cc,
1422         * sim/ucsim/s51.src/uc89c51rcl.h: fixed bug 1385430
1423         * sim/ucsim/sim.src/hwcl.h: */* confuses VC
1424         * src/mcs51/gen.c (genSend): fixed bug with --xstack
1425         * support/regression/ports/mcs51-xstack-auto/spec.mk: print floats
1426         * support/regression/tests/snprintf.c: test bug with --xstack
1427
1428 2008-05-19  Philipp Klaus Krause <pkk AT spth.de>
1429
1430         * src/SDCCpeeph.c (callFuncByName):
1431           Support nested parenthesis in peephole function arguments (#1967300)
1432
1433 2008-05-19 Raphael Neider <rneider AT web.de>
1434
1435         * src/pic16/gen.c (pic16_emitpLabel,pic16_emitpLabelFORCE):
1436           fixed duplicate labels (#1911325)
1437
1438 2008-05-19 Raphael Neider <rneider AT web.de>
1439
1440         * src/regression/empty.c: suppress warning
1441         * src/regression/pointer1.c: enabled index_by_pointer()
1442         * src/regression/inline.c: now works for pic16 as well
1443
1444         * src/pic16/device.c: include dbuf declarations
1445         * src/pic16/device.h: removed obsolete prototypes
1446
1447         * src/pic16/gen.c, src/pic16/gen.h: moved generic pointer tags
1448         * src/pic16/glue.c: made purely local functions static,
1449           (pic16_printGPointerType, pic16_printIvalCharPtr,
1450           pic16_printIvalFuncPtr, pic16_printIvalPtr): fixed initialized
1451           generic pointers' tags (#1961866)
1452
1453         * src/pic16/pcode.c (assignValnums): optimize literal assignments
1454
1455 2008-05-19 Borut Razem <borut.razem AT siol.net>
1456
1457         * support/scripts/sdcc.nsi: remove uninstall.exe after uninstallation,
1458           fixed typo, uninstall include/pic16/pic16devices.txt
1459
1460 2008-05-18 Borut Razem <borut.razem AT siol.net>
1461
1462         * support/Utils/dbuf_string.[ch]: added dbuf_chomp(),
1463           the buffer is null terminated
1464         * src/device/pic16.c:
1465           applied modified patch 1965676: Patch for Win32 16 bit PIC
1466         * sdcc_vc_in.h: defined YY_NO_UNISTD_H
1467
1468 2008-05-16 Maarten Brock <sourceforge.brock AT dse.nl>
1469
1470         * src/SDCC.lex (check_type),
1471         * src/SDCC.y (type_specifier2 TYPE_NAME): fixed bug 1925942
1472         * as/hc08/clean.mk,
1473         * as/mcs51/clean.mk,
1474         * as/z80/clean.mk: also clean *.dep
1475         * device/lib/pic16/libsdcc/stack/Makefile,
1476         * sim/ucsim/libtool: removed as they are rebuild by configure
1477         * src/clean.mk: removed izt, so Makefile is not deleted for distclean
1478
1479 2008-05-13 Maarten Brock <sourceforge.brock AT dse.nl>
1480
1481         * src/SDCCast.c (fixupInline, createFunction): save currBlockno in
1482           fixupInline instead of createFunction to fix bug 1864577
1483           (inlineFindMaxBlockno): removed, use global blockNo
1484         * src/SDCCglobl.h: added blockNo
1485         * src/z80/peep.c,
1486         * src/z80/peep.h: modified properties
1487         * support/regression/tests/bug1864577.c: new, added
1488
1489 2008-05-07 Maarten Brock <sourceforge.brock AT dse.nl>
1490
1491         * as/mcs51/asdata.c,
1492         * as/mcs51/asm.h: added org_cnt
1493         * as/mcs51/asmain.c (main, asmbl): fixed bug 1957716, changed old K&R to ANSI
1494         * as/mcs51/asout.c: changed old K&R to ANSI
1495         * as/mcs51/Makefile.in: use common identifiers
1496         * as/hc08/asdata.c,
1497         * as/hc08/asexpr.c,
1498         * as/hc08/asm.h,
1499         * as/hc08/asmain.c,
1500         * as/hc08/asout.c,
1501         * as/hc08/Makefile.bcc,
1502         * as/hc08/Makefile.in: synchronized with as/mcs51/*
1503         * sdcc_vc_in.h: added define __func__
1504         * src/SDCCast.c (expandInlineFuncs): applied patch 1957148 to fix bug 1717305,
1505           Thanks Ruud van Silfhout
1506         * support/regression/tests/bug1717305.c: new, added
1507
1508 2008-05-05 Borut Razem <borut.razem AT siol.net>
1509
1510         * support/regression/Makefile.in,
1511           support/regression/ports/ds390/spec.mk,
1512           support/regression/ports/hc08/spec.mk,
1513           support/regression/ports/mcs51-common/spec.mk,
1514           support/regression/ports/pic14/spec.mk,
1515           support/regression/ports/pic16/spec.mk,
1516           support/regression/ports/ucz80/spec.mk,
1517           support/regression/ports/z80/spec.mk:
1518           added INC_DIR and LIBDIR paths
1519         * src/ds390/gen.c: removed duplicated selicolon
1520
1521 2008-05-04 Borut Razem <borut.razem AT siol.net>
1522
1523         * support/regression/Makefile.in,
1524           support/regression/fwk/lib/testfwk.c,
1525           support/regression/ports/ds390/spec.mk,
1526           support/regression/ports/hc08/spec.mk,
1527           support/regression/ports/mcs51-common/spec.mk,
1528           support/regression/ports/mcs51-large/spec.mk,
1529           support/regression/ports/mcs51-medium/spec.mk,
1530           support/regression/ports/mcs51-small/spec.mk,
1531           support/regression/ports/mcs51-stack-auto/spec.mk,
1532           support/regression/ports/mcs51-xstack-auto/spec.mk,
1533           support/regression/ports/pic14/spec.mk,
1534           support/regression/ports/pic16/spec.mk,
1535           support/regression/ports/ucz80/spec.mk:
1536           added possibility to define the sdcc binary directory SDCC_BIN_PATH
1537           used to run regeression tests
1538
1539 2008-05-01 Raphael Neider <rneider AT web.de>
1540
1541         * doc/sdccman.lyx, support/scripts/inc2h-pic16.pl: updated list of
1542           supported devices and instructions to add new ones
1543
1544 2008-05-01 Raphael Neider <rneider AT web.de>
1545
1546         * device/include/pic16/adc.h,
1547           device/lib/pic16/libio/adc/adcbusy.c,
1548           device/lib/pic16/libio/adc/adcopen.c,
1549           device/lib/pic16/libio/adc/adcsetch.c: support old 18f242 and new
1550           18f2455 style ADC devices, based on patch #1776197
1551         * device/lib/pic16/libio/adc/adcclose.c,
1552           device/lib/pic16/libio/adc/adcconv.c,
1553           device/lib/pic16/libio/adc/adcread.c: cosmetic changes
1554         * device/include/pic16/{pic18f2331.h,pic18f2431.h},
1555           device/lib/pic16/libdev/{pic18f2331.c,pic18f2431.c}: reuse 18f4331
1556         * device/include/pic16/pic18f4431.h,
1557           device/lib/pic16/libdev/pic18f4431.c: remove outdated comments
1558         * device/lib/pic16/libio/adc.ignore: forbid unhandled devices
1559
1560 2008-05-01 Raphael Neider <rneider AT web.de>
1561
1562         * src/pic16/device.h: removed unused field PIC16_device.sfrRange,
1563           moved xinst flag into pic16_options_t
1564         * src/pic16/device.c (default_device, pic16_list_devices,
1565           pic16_find_device): removed references to sfrrange
1566         * src/pic16/gen.c (genFunction),
1567           src/pic16/glue.c (pic16initialComments),
1568           src/pic16/main.c (pic16_optionsTable),
1569           src/pic16/ralloc.c (newReg, pic16_writeUsedRegs): updated references
1570           to xinst
1571         * device/include/pic16/pic16devices.txt: removed sfrrange lines
1572
1573 2008-04-29 Raphael Neider <rneider AT web.de>
1574
1575         * src/pic16/devices.inc,
1576           device/include/pic16/pic16devices.txt: replaced compiled-in list
1577           of devices with a variant parsed at runtime
1578         * src/pic16/device.c: added support for parsing pic16devices.txt,
1579           clean up
1580         * src/pic16/device.h: removed (now) unused fields from PIC_device
1581         * src/pic16/main.c: removed #pragma maxram,
1582           (_pic16_initPaths): removed bogus generation of search paths,
1583           setup the port proper only after the search paths (for
1584           pic16devices.txt) are set up,
1585           (_pic16_finaliseOptions): moved processor dependant code here
1586           from _pic16_initPaths(), clean up
1587         * src/pic16/ralloc.c (pic16_init_stack),
1588         * src/pic16/ralloc.h,
1589         * src/pic16/pcode.c: clean up
1590         * device/include/Makefile.in,
1591           support/scripts/sdcc.nsi: also install/package pic16devices.txt
1592         * support/scripts/inc2h-pic16.pl: updated instructions
1593
1594 2008-04-29 Raphael Neider <rneider AT web.de>
1595
1596         * device/include/pic16/{pic18f2480.h, pic18f2580.h, pic18f4423.h,
1597           pic18f4480.h, pic18f4523.h, pic18f4580.h, pic18f6585.h, pic18f8585.h},
1598           device/lib/pic16/libdev/{pic18f2480.c, pic18f2580.c, pic18f4423.c,
1599           pic18f4480.c, pic18f4523.c, pic18f4580.c, pic18f6585.c, pic18f8585.c}:
1600           added missing family members and 18f2480/2580/4480/4580 family
1601         * device/include/pic16/{pic18f2423.h, pic18f2523.h}: use 18f4523.h
1602         * device/include/pic16/pic18f2525.h: use 18f4620.h
1603         * device/include/pic16/pic18f6680.h: use 18f8680.h
1604         * device/include/pic16/pic18fregs.h,
1605           device/lib/pic16/pics.all,
1606           src/pic16/devices.inc: add new devices
1607         * device/lib/pic16/libdev/{pic18f2423.c, pic18f2523.c}: use 18f4523.c
1608         * device/lib/pic16/libdev/pic18f2525.c: use 18f4620.c
1609         * device/lib/pic16/libdev/pic18f6680.c: uso 18f8680.c
1610         * device/lib/pic16/libio/{adc.ignore, i2c.ignore, usart.ignore}:
1611           prevent attempting to build the libio for some new devices
1612
1613 2008-04-29 Raphael Neider <rneider AT web.de>
1614
1615         * debugger/mcs51/Makefile.in: fixed paths to sources
1616
1617 2008-04-25 Borut Razem <borut.razem AT siol.net>
1618
1619         * as/link/lklibr.c: moved from as/link/z80/lklibr.c
1620         * as/link/hc08/lklibr.c, as/link/mcs51/lklibr.c: deleted
1621         * as/link/hc08/Makefile.bcc, as/link/hc08/Makefile.in,
1622         * as/link/hc08/link_hc08.dsp, as/link/mcs51/Makefile.bcc,
1623           as/link/mcs51/Makefile.in, as/link/mcs51/aslink.dsp,
1624           as/link/z80/Makefile.in, as/link/z80/linkgbz80.dsp,
1625           as/link/z80/linkz80.dsp: lklibr.c moved
1626         * doc/INSTALL.txt: binary archives in bz2 format
1627         * support/cpp/auto-host_vc_in.h: CPP2 replaced with CPP
1628
1629 2008-04-23 Maarten Brock <sourceforge.brock AT dse.nl>
1630
1631         * src/SDCCglue.c (printIvalType, printIvalBitFields): fixed bug 1856409
1632         * support/regression/tests/bug1856409.c: new, added
1633
1634 2008-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
1635
1636         * src/z80/peep.c,
1637         * src/mcs51/peep.c: Use werror for error messages.
1638         * src/SDCCicode.c (geniCodeConditional),
1639         * src/SDCCsymt.c (structElemType): fixed bug 1839321
1640         * src/z80/Makefile.bcc,
1641         * src/z80/z80.dsp: added src/z80/peep.c/h
1642         * support/regression/tests/bug1839321.c: new, added
1643
1644 2008-04-20 Raphael Neider <rneider AT web.de>
1645
1646         * device/include/pic16/pic18f2455.h: added bitfields for port C
1647
1648 2008-04-20 Philipp Klaus Krause <pkk AT spth.de>
1649
1650         * src/z80/peep.c: Use werror for error messages.
1651
1652 2008-04-19 Philipp Klaus Krause <pkk AT spth.de>
1653
1654         * src/z80/peep.h (declaration of notUsed()),
1655         * src/z80/main.c (enabled notUsed() for z80 port, documented z80_port
1656           struct),
1657         * src/z80/z80.h (added dependency on peep.h),
1658         * src/z80/peep.c (definition of notUsed()): Implemented RFE #1880202
1659           for Z80.
1660
1661 2008-04-19 Philipp Klaus Krause <pkk AT spth.de>
1662
1663         * src/SDCCpeeph.c (added support for notUsed()),
1664         * src/mcs51/main.c (added dependency on peep.h, documented mcs51_port
1665           struct),
1666         * src/port.h (removed dependency on mcs51/peep.h, added declaration
1667           for notUsed()): Implemented generic (that is not port-specific) part
1668           of RFE #1880202.
1669
1670 2008-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
1671
1672         * as/link/mcs51/lkmem.c (summary2): fixed bug 1796077
1673         * device/lib/libsdcc.lib,
1674         * device/lib/Makefile.in,
1675         * support/regression/ports/mcs51-xstack-auto/spec.mk,
1676         * device/lib/calloc.c: renamed to _calloc.c
1677         * device/lib/free.c: renamed to _free.c
1678         * device/lib/malloc.c: renamed to _malloc.c
1679         * device/lib/realloc.c: renamed to _realloc.c
1680         * src/ds390/gen.c (aopGet, aopPut, genPlusBits, genDataPointerSet,
1681           genNearPointerSet, genPagedPointerSet): synchronized with mcs51/gen.c
1682         * src/ds390/gen.c (popForBranch, genIfxJump, genCmp, genCmpEq, ifxForOp,
1683           genAnd, genOr, genXor, genIfx, gen390Code): fixed bug 1509084
1684         * src/mcs51/gen.c (popForBranch, genIfxJump, genCmp, genCmpEq,
1685           ifxForOp, genAnd, genOr, genXor, genNearPointerGet,
1686           genPagedPointerGet, genFarPointerGet, genCodePointerGet,
1687           genGenPointerGet, genIfx, gen51Code): fixed bug 1509084
1688         * src/ds390/gen.c,
1689         * src/mcs51/gen.c: throughout cosmetic changes for syncing both
1690         * src/SDCCsymt.h: updated IS_OP_RUONLY, IS_OP_ACCUSE
1691         * support/regression/tests/bug1509084.c: new, added
1692
1693 2008-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
1694
1695         * device/include/mcs51/cc2510fx.h: added _XPAGE
1696         * device/include/mcs51/compiler.h: cosmetic changes
1697
1698 2008-03-31 Maarten Brock <sourceforge.brock AT dse.nl>
1699
1700         * sdcc.dsw: adapted for moved cpp2, added dependency for as_z80 on
1701           config
1702
1703 2008-03-31 Borut Razem <borut.razem AT siol.net>
1704
1705         * support/cpp2 renamed to support/cpp
1706         * support/cpp2/libiberty/filenames.h, support/cpp2/libiberty/hex.c,
1707           support/cpp2/libiberty/splay-tree.c,
1708           support/cpp2/libiberty/splay-tree.h, support/cpp2/libcpp/macro.c,
1709           support/cpp2/libcpp/directives.c,
1710           support/cpp2/libcpp/include/cpplib.h,
1711           support/cpp2/libcpp/include/symtab.h,
1712           support/cpp2/libcpp/include/line-map.h,
1713           support/cpp2/libcpp/line-map.c, support/cpp2/libcpp/files.c,
1714           support/cpp2/libcpp/init.c, support/cpp2/libcpp/traditional.c,
1715           support/cpp2/libcpp/expr.c, support/cpp2/libcpp/internal.h,
1716           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/system.h,
1717           support/cpp2/libcpp/charset.c: SDCPP synchronized with GCC CPP
1718           release version 4.3.0
1719         * configure.in, configure, Makefile.in, Makefile.bcc:
1720           adapted for moved cpp2
1721
1722 2008-03-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1723
1724         * device/include/hc08/mc68hc908jkjl.h: committed fix for bug #1929739,
1725           thanks Alejandro Pustowka <alejo_pustowka AT yahoo.com.mx>
1726
1727 2008-03-30 Maarten Brock <sourceforge.brock AT dse.nl>
1728
1729         * src/SDCCloop.c (loopInvariants): applied fix for bug 1717943, thanks
1730           Robert Larice
1731         * support/regression/tests/bug1717943.c: new, added
1732
1733 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
1734
1735         * src/z80/gen.c (assignResultValue): Reverted reversal of order of
1736           bytewise return value assignments introduced in last commit.
1737
1738 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
1739
1740         * src/z80/gen.c (emitDebug, assignResultValue, genPlus, genMinus,
1741           genMult, genJumpTab):
1742           Use 16-bit instructions for addition in some additional cases,
1743           implemented RFEs #1914251, #1914245, #1922090, #1921382, #1918323.
1744
1745 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
1746
1747         * src/z80/ralloc.c (serialRegAssign, allocReg, tryAllocatingRegPair):
1748           Implemented RFE #1921450, changed some debug messages.
1749
1750 2008-03-30 Borut Razem <borut.razem AT siol.net>
1751
1752         * Small Device C Compiler 2.8.0 released
1753         * .version, doc/sdccman.lyx: changed sdcc version to 2.8.1
1754         * support/scripts/sdcc.nsi: added finish page; this version
1755           was used for 2.8.0 release
1756         * doc/knownbugs.html: removed; magically generated by the build
1757           process using gen_known_bugs.pl from now on
1758
1759 2008-03-23 Borut Razem <borut.razem AT siol.net>
1760
1761         * src/pic/gen.h: Q&D solution for the bug, found by Jim Paris
1762           and reverted it, since it was already fixed by Raphael ;-)
1763         * doc/knownbugs.html: updated for RC2
1764
1765 2008-03-22 Raphael Neider <rneider AT web.de>
1766
1767         * src/SDCCicode.c (getPtrType): avoid unnecessary extra assignments
1768           for PIC16 targets
1769
1770 2008-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
1771
1772         * src/mcs51/gen.c (adjustArithmeticResult): fixed bug 1839299
1773         * support/regression/tests/bug1839277.c: added related testBug1839299
1774
1775 2008-03-21 Maarten Brock <sourceforge.brock AT dse.nl>
1776
1777         * src/ds390/gen.c (opIsGptr, adjustArithmeticResult, genAddrOf, genAssign),
1778         * src/mcs51/gen.c (opIsGptr, adjustArithmeticResult, genAddrOf, genAssign):
1779           fixed bug 1839277
1780         * src/mcs51/gen.c: throughout only output hex constants
1781         * src/SDCCicode.c (getPtrType, geniCodeCast): fixed code size regression
1782         * support/regression/tests/bug1839277.c: new, added
1783
1784 2008-03-21 Philipp Klaus Krause <pkk AT spth.de>
1785
1786         * src/z80/ralloc.c (callFuncByName): Used // instead of /**/ to fix
1787           compilation warning about nested comments.
1788
1789 2008-03-20 Maarten Brock <sourceforge.brock AT dse.nl>
1790
1791         * src/SDCCsymt.c (comparePtrType): fixed bug 1921073
1792         * support/regression/tests/bug1921073.c: new, added
1793
1794 2008-03-17 Philipp Klaus Krause <pkk AT spth.de>
1795
1796         * src/z80/SDCCpeeph.c.c (callFuncByName):
1797           Commented function parameters.
1798
1799 2008-03-17 Philipp Klaus Krause <pkk AT spth.de>
1800
1801         * src/z80/ralloc.c (packRegsForAccUse2):
1802           disabled a broken accumulator packing optimization (fixed #1292721).
1803         * support/regression/tests/bug-1292721: Regression test for #1292721.
1804
1805 2008-03-16 Raphael Neider <rneider AT web.de>
1806
1807         * src/pic/gen.c (SetIrp,genNearPointerGet,genNearPointerSet):
1808           fixed code bloat regression using a variant of patch #1915618
1809
1810 2008-03-16 Borut Razem <borut.razem AT siol.net>
1811
1812         * support/scripts/sdcc.nsi: added section debugging macros, added SDCC
1813           icon, changed startup menu for release distribution, code cleaning,
1814           create url files instead links in startup menu
1815
1816 2008-03-16 Maarten Brock <sourceforge.brock AT dse.nl>
1817
1818         * src/SDCCcse.c (algebraicOpts): fixed bug 1579949
1819         * support/regression/tests/bug1579949.c: new, added
1820
1821 2008-03-14 Paul Stoffregen <paul AT pjrc.com>
1822
1823         * device/lib/printf_fast.c: fixed bug 1255403
1824
1825 2008-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
1826
1827         * doc/sdccman.lyx: enhanced paragraph about bankswitching for mcs51
1828         * src/cdbFile.c (cdbWriteBasicSymbol): fixed bug 1909409 for locals
1829
1830 2008-03-14 Borut Razem <borut.razem AT siol.net>
1831
1832         * as/doc/asmlnk.doc, as/doc/asxhtm.html: updated link-xx and aslink
1833           command line options
1834         * as/link/hc08/lkmain.c: converted tabs to spaces so that the usage
1835           is correctly displayed
1836         * as/link/z80/lkmain.c: usage line commented out
1837
1838 2008-03-13 Borut Razem <borut.razem AT siol.net>
1839
1840         * doc/sdccman.lyx: corrected to be able to convert to PDF,
1841           updated the list pf supported pic14 devices
1842
1843 2008-03-12 Maarten Brock <sourceforge.brock AT dse.nl>
1844
1845         * doc/sdccman.lyx: added paragraph about bankswitching for mcs51
1846
1847 2008-03-12 Borut Razem <borut.razem AT siol.net>
1848
1849         * as/doc/asmlnk.doc, as/doc/asxhtm.html: updated command line options,
1850           fixed documentation request #1718191
1851         * as/hc80/asmain.c, as/mcs51/asmain.c: added option -c to usage
1852         * doc/sdccman.lyx: added description of --no-std-crt0 gbz80
1853           command line option
1854
1855 2008-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
1856
1857         * src/SDCCast.c (isConformingBody): fixed bug 1505811, thanks Robert Larice
1858         * support/regression/tests/bug1505811.c: new, added
1859
1860 2008-03-09 Raphael Neider <rneider AT web.de>
1861
1862         * device/include/pic16/pic18f2620.h,
1863         * device/include/pic16/pic18f4620.h,
1864         * device/lib/pic16/libdev/pic18f2620.c,
1865         * device/lib/pic16/libdev/pic18f4525.c,
1866         * device/lib/pic16/libdev/pic18f4620.c: merged 18f2525/2620/4525/4620
1867           family to consistently use pic18f4620.[ch], fixes #1832562
1868
1869 2008-03-09 Borut Razem <borut.razem AT siol.net>
1870
1871         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
1872           changed sdcc version to 2.8.0
1873         * knownbugs.html: regenerated
1874         * support/scripts/gen_known_bugs.pl: added number of open bugs
1875
1876 2008-03-09 Raphael Neider <rneider AT web.de>
1877
1878         * src/pic16/gen.c (pic16_mov2w_volatile): NEW, read volatile operands,
1879           (genOr): read volatile operand even if the result is known,
1880           closes #1511838
1881           (genOr,genXor): removed unused legacy code,
1882           (genDummyRead): use pic16_mov2w_volatile()
1883
1884 2008-03-08 Borut Razem <borut.razem AT siol.net>
1885
1886         * src/SDCCglue.c: fixed bug #1864582: multiple definition of char
1887           cons w. --model-large
1888         * support/regression/staticinit.c: added regression test for bug
1889           #1864582
1890
1891 2008-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
1892
1893         * src/ds390/gen.c (pushSide, genPcall),
1894         * src/hc08/gen.c (pushSide, genPcall): synchronized with mcs51
1895         * src/mcs51/gen.c: cosmetic changes
1896         * support/regression/fwk/include/testfwk.h: added macro reentrant
1897         * support/regression/tests/bug1908493.c: new, added
1898
1899 2008-03-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1900
1901         * src/SDCCdebug.c:, as/link/lkaomf51.c: Fixed bug 1909409: Pdata in OMF file
1902
1903 2008-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
1904
1905         * src/mcs51/gen.c (pushSide, genPcall): fixed bug 1908493
1906         * src/SDCCmain.c (preProcess): removed -DSDCC_PARMS_IN_BANK1 because it is
1907           already set in ds390/main.c and mcs51/main.c
1908
1909 2008-03-07 Raphael Neider <rneider AT web.de>
1910
1911         * src/regression/init0.c: new test for initialized arrays of function
1912           pointers
1913         * src/regression/Makefile: made a bit more flexible, added init0.c
1914         * src/pic/glue.c (emitIvals): hacky fix for initializing from function
1915           pointers, closes #1427663
1916
1917 2008-03-05 Borut Razem <borut.razem AT siol.net>
1918
1919         * dos/sdccman.lyx: docummented predefined macros SDCC_REVISION,
1920           SDCC_PARMS_IN_BANK1, SDCC_FLOAT_REENT and SDCC_INT_LONG_REENT
1921
1922 2008-03-05 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1923
1924         * support/librarian/sdcclib.c:Added feature request 1908061:
1925           Synchronise sdcclib commands with ar.
1926
1927 2008-03-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1928
1929         * src/SDCCmain.c: added predefined macros SDCC_REVISION (RFE #1907229),
1930           and (depending on corresponding compiler option) SDCC_PARMS_IN_BANK1,
1931           SDCC_FLOAT_REENT, SDCC_INT_LONG_REENT
1932         * device/include/mcs51/compiler.h: removed umlauts, added double
1933           underscore
1934
1935 2008-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
1936
1937         * src/SDCCptropt.c (ptrPseudoSymConvert): fixed bug 1536762
1938         * support/regression/tests/bug1536762.c: new, added
1939         * src/SDCCutil.c,
1940         * src/SDCCutil.h: added getBuildDate()
1941         * src/SDCCmain.c (printVersionInfo),
1942         * src/SDCCglue.c (initialComments): use getBuildDate() instead of
1943           __DATE__
1944         * src/*/ralloc.c: removed IS_OP_RUONLY macro
1945         * src/ds390/ralloc.c (packRegisters),
1946         * src/mcs51/ralloc.c (packRegisters),
1947         * src/z80/ralloc.c (packRegisters): applied fix for bug 1618050, thanks
1948           Robert Larice
1949         * support/regression/tests/bug1618050.c: new, added
1950         * src/SDCCsymt.h: fixed typo in DECLSPEC2TXT
1951         * support/regression/fwk/include/testfwk.h,
1952         * support/regression/tests/bug1838000.c: moved _AUTOMEM and _STATMEM to
1953           testfwk.h
1954
1955 2008-03-04 Raphael Neider <rneider AT web.de>
1956
1957         * src/pic/gen.c: removed unused prototypes, prevent internal errors
1958           on accessing OP_SYM_TYPE(op)
1959         * src/pic/gen.h: removed unused prototype of genMinusDec()
1960         * src/pic/genarith.c (genMinus): cosmetic changes, rewritten to
1961           fix #1876953 (invalid subtraction code), removed unused code
1962
1963 2008-03-03 Raphael Neider <rneider AT web.de>
1964
1965         * src/pic/gen.c,
1966         * src/pic/gen.h,
1967         * src/pic/genarith.c,
1968         * src/pic/ralloc.c,
1969         * src/pic/ralloc.h: removed AOP_R0, AOP_R1, AOP_DPTR, AOP_DPTR2,
1970           AOP_ACC, and *_IDX and adjusted code, removed unused legacy code
1971
1972 2008-03-03 Raphael Neider <rneider AT web.de>
1973
1974         * src/pic/device.c (find_device): search user-specified paths first
1975           for pic14devices.txt, fixes #1900827
1976
1977 2008-03-02 Borut Razem <borut.razem AT siol.net>
1978
1979         * support/scripts/sdcc.nsi: fixed bug in IsNT, LogicLib-isation of
1980           AddToPath and RemoveFromPath
1981
1982 2008-03-01 Borut Razem <borut.razem AT siol.net>
1983
1984         * support/scripts/sdcc.nsi: reverted MULTIUSER page since it didn't
1985           work correctly, added debugging support if -DSDCC.DEBUG command line
1986           option is defined
1987
1988 2008-02-28 Borut Razem <borut.razem AT siol.net>
1989
1990         * doc/sdccman.lyx: cosmetic changes
1991
1992 2008-02-28 Maarten Brock <sourceforge.brock AT dse.nl>
1993
1994         * src/mcs51/ralloc.c (fillGaps): fixed bug 1839671
1995         * doc/sdccman.lyx: fixed unmeant removal of spaces
1996
1997 2008-02-27 Borut Razem <borut.razem AT siol.net>
1998
1999         * support/scripts/sdcc.nsi: corrected installation directory for
2000           current user installation mode
2001         * doc/README.txt: added Philipp Klaus Krause to the developers list
2002
2003 2008-02-27 Maarten Brock <sourceforge.brock AT dse.nl>
2004
2005         * src/mcs51/gen.c (genUnpackBits): don't generate ifxJump, instead
2006           return ifx condition
2007           (genNearPointerGet, genPagedPointerGet, genFarPointerGet,
2008           genCodePointerGet, genGenPointerGet): cleanup aop before generating
2009             ifxJump to fix bug 1838000
2010         * src/SDCCsymt.c (aggregateToPointer): fix problem for xstack
2011         * support/regression/tests/bug1838000.c: new, added
2012         * device/include/mcs51/cc1110.h: new, added, thanks to Pravin Angolkar
2013
2014 2008-02-26 Borut Razem <borut.razem AT siol.net>
2015
2016         * src/SDCCast.c, doc/sdccman.lyx: fixed RFE #1901171: inerger promotion
2017           of casted varargs
2018         * support/scripts/sdcc.nsi: added MULTIUSER page,
2019           NSIS upgraded to version 2.35
2020
2021 2008-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
2022
2023         * src/mcs51/ralloc.c (isSpiltOnStack): fixed bug 1565152
2024         * support/regression/tests/bug1565152.c: new, added
2025
2026 2008-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
2027
2028         * src/mcs51/gen.c (genPagedPointerSet): fixed bug 1670148
2029         * support/regression/ports/mcs51-xstack-auto/spec.mk: added expf.c
2030         * support/regression/tests/bug1670148.c: new, added
2031
2032 2008-02-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2033
2034         * device/include/mcs51/at89c51ed2.h: fixed bug 1901469.
2035
2036 2008-02-24 Borut Razem <borut.razem AT siol.net>
2037
2038         * src/SDCCast.c, src/SDCCast.h: fixed bug #1874922: explicit typecast
2039           is ineffective for unsigned char parameter
2040
2041 2008-02-24 Maarten Brock <sourceforge.brock AT dse.nl>
2042
2043         * src/SDCCast.c (expandInlineFuncs): fixed bug 1875869
2044         * src/SDCCglue.c (printIvalBitFields): fixed bug 1806631
2045         * support/regression/tests/bitopcse.c: removed hc08 exception, see testfwk.h
2046         * support/Util/MySystem.c (my_system): output errorcode when verbose
2047
2048 2008-02-22 Philipp Klaus Krause <pkk AT spth.de>
2049
2050         * src/z80/gen.c (genMult): Rewrote 8-bit multiplication by constant,
2051           implements #1898231
2052
2053 2008-02-22 Philipp Klaus Krause <pkk AT spth.de>
2054
2055         * device/lib/z80/mul.s: Rewrote __muluchar_rrx_s, to improve 8-bit mult.,
2056           implements #1896290
2057
2058 2008-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
2059
2060         * src/SDCCast.c (createIvalStruct): fixed bug 1466761
2061
2062 2008-02-21 Borut Razem <borut.razem AT siol.net>
2063
2064         * support/regression/Makefile.in,
2065           support/regression/ports/ds390/spec.mk,
2066           support/regression/ports/hc08/spec.mk,
2067           support/regression/ports/mcs51-common/spec.mk,
2068           support/regression/ports/pic14/spec.mk,
2069           support/regression/ports/pic16/spec.mk,
2070           support/regression/ports/ucz80/spec.mk,
2071           support/regression/ports/xa51/spec.mk:
2072           added CFLAGS when compiling timeout
2073
2074 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
2075
2076         * support/regression/tests/bugs-1596270-1736867.c: Regression test for
2077           #1596270, #1736867
2078
2079 2008-02-20 Maarten Brock <sourceforge.brock AT dse.nl>
2080
2081         * src/SDCClrange.c (findPrevUse): fixed bug 1888147
2082         * support/regression/tests/bug1888147.c: new, added
2083
2084 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
2085
2086         * src/z80/gen.c: fixed bugs #1596270, #1736867
2087
2088 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
2089
2090         * src/z80/gen.c: fixed bug in register pair loading when swapping register
2091           contents, mostly fixes #1596270
2092
2093 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
2094
2095         * src/z80/peeph.def,
2096         * src/z80/peeph-z80.def: moved peephole that breaks gbz80 to z80-specific
2097           peepholes, fixes #1806565
2098
2099 2008-02-20 Maarten Brock <sourceforge.brock AT dse.nl>
2100
2101         * src/SDCCpeeph.c (operandBaseName): added check for @Ri
2102         * src/mcs51/peeph.def (rule 177.c): added operandsNotRelated(%1 %3)
2103           fixes bug 1739475, thanks Robert Larice
2104           (rule 271): new, added
2105
2106 2008-02-18 Borut Razem <borut.razem AT siol.net>
2107
2108         * sim/ucsim/s51.src/Makefile.in: fixed error made in previous commit
2109
2110 2008-02-17 Maarten Brock <sourceforge.brock AT dse.nl>
2111
2112         * src/SDCCmain.c (linkEdit): emit -z when using --debug for z80
2113
2114 2008-02-17 Raphael Neider <rneider AT web.de>
2115
2116         * src/pic16/genarith.c,
2117         * src/pic16/gen.c,
2118         * src/pic16/gen.h,
2119         * src/pic16/genutils.c: removed unused legacy code,
2120           removed unused fields from struct asmop and struct _G
2121
2122 2008-02-17 Raphael Neider <rneider AT web.de>
2123
2124         * src/pic16/gen.c (AccRsh): cosmetic changes,
2125           (shiftR1Left2ResultSigned,shiftR1Left2Result,shiftL1Left2Result,
2126           genRightShiftLiteral): fixed to work with SFRs as result by
2127           assigning only once to result,
2128           removed a lot of unused/excluded code fragments
2129
2130 2008-02-17 Raphael Neider <rneider AT web.de>
2131
2132         * device/include/pic/pic16f88.h,
2133         * device/include/pic/pic16f886.h,
2134         * device/include/pic/pic16f887.h: added TRISA6 and TRISA7
2135
2136 2008-02-17 Borut Razem <borut.razem AT siol.net>
2137
2138         * src/z80/peeph.def: applied patch
2139           #1893626: Optimize tail calls on Z80, thanks to Philipp Krause
2140         * src/z80/gen.c, src/z80/peeph.def: applied patch
2141           #1893510: Improve logical left shift on Z80, thanks to Philipp Krause
2142         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
2143           sim/ucsim/s51.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
2144           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
2145           sim/ucsim/main_in.mk: renamed libutil.a to libucsimutil.a in order to
2146           enable compilation on Mac OS X 10.5 (Leopard) and XCode v3.0
2147
2148 2008-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
2149
2150         * as/link/mcs51/aslink.dsp: removed SDK define
2151         * as/link/z80/clean.mk: brought in sync with other ports
2152         * as/link/z80/lklibr.c (SdccLib, fndsym): handle the dflag here too
2153         * as/hc08/Makefile.bcc,
2154         * as/mcs51/Makefile.bcc,
2155         * as/z80/Makefile.bcc: noice.c was moved to as/asxxsrc/
2156         * src/z80/main.c (_setValues): use the now capitalized -Z,
2157           (z80_port, gbz80_port): generate debug information when asked
2158
2159 2008-02-16 Borut Razem <borut.razem AT siol.net>
2160
2161         * as/z80/asmain.c, as/z80/asm.h, as/z80/asdata.c,
2162           as/link/z80/lkmain.c, as/z80/as_gbz80.dsp, as/z80/as_z80.dsp,
2163           as/z80/Makefile.in. as/z80/Makefile.bcc:
2164           applied patch #1893393: patch for as-z80 and link-z80 to generate
2165           cdb, thanks to Armin Diehl
2166         * as/*/asnoice.c, as/hc08/as_hc08.dsp, as/hc08/Makefile.in,
2167           as/mcs51/asx8051.dsp, as/mcs51/Makefile.in:
2168           asnoice.c moved to as/asxxsrc/asnoice.c
2169         * src/z80/peeph-gbz80.def: applied patch
2170           #1880235: Z80 return peephole, thanks to Philipp Krause
2171
2172 2008-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
2173
2174         * .version,
2175         * doc/sdccman.lyx: bumped version to 2.7.5
2176         * src/SDCCsymt.c (compareType, comparePtrType): fixed bug 1281583
2177
2178 2008-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
2179
2180         * device/include/pic16/stdlib.h,
2181         * device/lib/pic16/libc/stdlib/ltoa.c,
2182         * device/lib/pic16/libc/stdio/vfprintf.c: ascii strings are char*
2183
2184 2008-02-13 Borut Razem <borut.razem AT siol.net>
2185
2186         * src/SDCCmain.c, src/SDCCglue.c: fixed --c1mode
2187         * src/pic16/glue.c, src/SDCCast.c, src/SDCCast.h, src/SDCCBBlock.c,
2188           src/SDCCcse.c, src/SDCCglue.c, src/SDCCicode.c, src/SDCCloop.c,
2189           src/SDCCopt.c,  src/SDCCval.c:
2190           fixed bug #1890273: SDCC Warning 154 shows wrong filename
2191
2192 2008-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
2193
2194         * src/SDCCsymt.c (compareType): fixed bug 1309013
2195
2196 2008-02-09 Borut Razem <borut.razem AT siol.net>
2197
2198         * src/SDCCval.c, src/SDCCval.h:
2199           code cleaning, added function constChrVal()
2200         * src/SDCCglue.c, src/pic/glue.c, src/pic16/glue.c, src/SDCCast.c, src/SDCC.y:
2201           call constChrVal() instead constVal()
2202
2203 2008-02-01 Maarten Brock <sourceforge.brock AT dse.nl>
2204
2205         * src/SDCCast.c (resolveSymbols): added reentrancy check for parameters
2206           of function pointer
2207         * src/SDCCerr.h,
2208         * src/SDCCerr.c: changed warning W_NONRENT_ARGS to error E_NONRENT_ARGS
2209         * support/regression/tests/absolute.c: added TestStruct TestVar (see also
2210           bug 1859853)
2211
2212 2008-02-01 Raphael Neider <rneider AT web.de>
2213
2214         * device/include/pic/pic16f886.h,
2215         * device/include/pic/pic16f887.h: added RA6 and RA7
2216
2217 2008-01-24 Raphael Neider <rneider AT web.de>
2218
2219         * device/include/pic/pic16f88.h: added RA6 and RA7
2220         * device/lib/pic/libdev/disabled_pic16f886.c,
2221         * device/lib/pic/libdev/disabled_pic16f887.c: renamed and enabled
2222
2223         * src/pic16/devices.inc,
2224         * device/include/pic16/pic18f2423.h,
2225         * device/include/pic16/pic18f2523.h,
2226         * device/include/pic16/pic18fregs.h,
2227         * device/lib/pic16/pics.all
2228         * device/lib/pic16/libdev/pic18f2423.c,
2229         * device/lib/pic16/libdev/pic18f2523.c: added 18f2423 and 18f2523
2230         * device/lib/pic16/libio/i2c.ignore,
2231         * device/lib/pic16/libio/usart.ignore,
2232         * device/lib/pic16/libio/adc.ignore: ignore new devices
2233
2234 2008-01-23 Maarten Brock <sourceforge.brock AT dse.nl>
2235
2236         * src/SDCCast.c (createRMW): fixed bug 1582651
2237
2238 2008-01-20 Borut Razem <borut.razem AT siol.net>
2239
2240         * src/SDCCcse.c: partially fixed enhancement request
2241           #1793872 - multiply by -1 not collapsed
2242         * support/regression/tests/arithcsi.c: added regression test
2243
2244 2008-01-19 Maarten Brock <sourceforge.brock AT dse.nl>
2245
2246         * as/mcs51/asx8051.dsp: removed define SDK
2247         * as/mcs51/i51mch.c (machine): fixed bug 1865114
2248         * device/include/asm/ds390/features.h: fixed bug with ds390 & stack-auto
2249         * as/link/lklex.c,
2250         * as/link/mcs51/lkmain.c: used LKDIRSEP, LKDIRSEPSTR and LKOBJEXT,
2251           cosmetic changes, brought more in sync, changed old K&R to ANSI
2252
2253 2008-01-13 Borut Razem <borut.razem AT siol.net>
2254
2255         * support/scripts/sdcc.nsi: added Uninstall/reinstall page, ...
2256         * src/SDCCicode.c: fixed bug #1870216 - Error 122: dividing by zero
2257
2258 2007-12-30 Borut Razem <borut.razem AT siol.net>
2259
2260         * src/pic16/gen.c: fixed implementation of bitwise operations for
2261           pic16 target
2262         * support/regression/tests/bitwise.c: added test cases
2263
2264 2007-12-29 Borut Razem <borut.razem AT siol.net>
2265
2266         * src/SDCCasm.[ch]: renamed from asm[ch], use dbuf_getline(), ...
2267         * src/src.dsp, src/Makefile.bcc, src/Makefile.in, src/common.h,
2268           src/SDCCglue.c, src/xa51/main.c: asm.[ch] renamed to SDCCasm.[ch]
2269         * support/Util/dbuf_string.[ch]: added function dbuf_getline()
2270         * src/ds390/gen.c, src/hc08/gen.c, src/mcs51/gen.c, src/pic16/gen.c,
2271           src/pic/gen.c, src/z80/gen.c, src/xa51/gen.c, src/pic16/ralloc.c,
2272           src/pic16/pcode.[ch]: added const qualifier
2273         * as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
2274           as/mcs51/Makefile.bcc, as/mcs51/Makefile.in, as/mcs51/asx8051.dsp,
2275           as/z80/Makefile.bcc, as/z80/Makefile.in, as/z80/as_gbz80.dsp,
2276           as/z80/as_z80.dsp: added dbuf.[ch] and dbuf_string[ch] to project
2277         * as/asxxsrc/aslex.c: use dbuf_getline()
2278         * as/hc08/asdata.c, as/hc08/asexpr.c, as/hc08/asm.h, as/hc08/m08adr.c,
2279           as/mcs51/asdata.c, as/mcs51/asexpr.c, as/mcs51/asm.h,
2280           as/mcs51/i51adr.c, as/z80/asdata.c, as/z80/asexpr.c, as/z80/aslist.c,
2281           as/z80/asm.h, as/z80/z80adr.c:
2282           changed type of ib and ip to const char *
2283
2284 2007-12-28 Borut Razem <borut.razem AT siol.net>
2285
2286         * as/asxxsrc/aslex.c: moved from as/mcs51/aslex.c;
2287           introduced (readlin) - long lines are turuncated
2288         * as/hc08/as_hc08.dsp, as/mcs51/asx8051.dsp, as/z80/as_gbz80.dsp,
2289           as/z80/as_z80.dsp, as/hc08/Makefile.in, as/mcs51/Makefile.in,
2290           as/z80/Makefile.in: moved aslex.c to asxxsrc
2291         * as/hc08/aslex.c, as/z80/aslex.c: deleted
2292         * as/hc08/asmain.c, as/mcs51/asmain.c:
2293           added missing initialization of a_addr field
2294         * support/regression/tests/long_asm_line.c: added regtest for long
2295           assembler line
2296
2297 2007-12-22 Borut Razem <borut.razem AT siol.net>
2298
2299         * src/SDCC.lex: fixed bug #1852894: # character hangs the compiler
2300
2301 2007-12-20 Maarten Brock <sourceforge.brock AT dse.nl>
2302
2303         * src/SDCCsymt.c (computeType): fixed bug, thanks Fan Weiguang
2304
2305 2007-12-16 Borut Razem <borut.razem AT siol.net>
2306
2307         * device/include/pic16/stdbool.h: removed, since already exists in
2308          device/include/; this also fixes bitopcse.c regression test for pic16
2309          target
2310         * support/regression/fwk/inclusw/testfwk.h: added macro ASSERT_FAILED
2311         * src/pic16/glue.c: fixed bug #1851855: generic static pointer
2312           dereference doesn't work; covered by regression test bug1399290
2313
2314 2007-12-05 Borut Razem <borut.razem AT siol.net>
2315
2316         * doc/sdccman.lyx: fixed bug #1844509 - Correction to Manual 4.6.9
2317           Adding new PIC16
2318
2319 2007-12-01 Borut Razem <borut.razem AT siol.net>
2320
2321         * sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/mem.cc:
2322           corrected handling of the highest_valid_address
2323
2324 2007-11-17 Raphael Neider <rneider AT web.de>
2325
2326         * src/pic/main.c (_asmCmd): include debug arguments (-g as $3)
2327         * src/pic/glue.c (picglue): emit .file if --debug is given
2328
2329 2007-11-17 Raphael Neider <rneider AT web.de>
2330
2331         * src/pic16/genarith.c (pic16_genPlus, pic16_genMinus): take special
2332         care when left or right operand resides in result, fixes #1830220
2333
2334 2007-11-17 Borut Razem <borut.razem AT siol.net>
2335
2336         * src/SDCCglue.c, src/pic16/glue.c: reverted fix for bug
2337           #983491 - "Merge duplicate strings function is ineffective"
2338         * support/regression/tests/bug-983491.c: regtest disabled
2339         * as/asxxsrc: created
2340           as/asxxsrc/assym.c, as/asxxsrc/strcmpi.c: moved
2341           as/hc08/assym.c, as/mcs51/assym.c, as/strcmpi.c,
2342           as/z80/assym.c, as/hc08/asstore.c, as/mcs51/asstore.c: deleted
2343           as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
2344           as/hc08/asm.h, as/link/hc08/Makefile.bcc, as/link/hc08/Makefile.in,
2345           as/link/hc08/link_hc08.dsp, as/link/mcs51/Makefile.bcc,
2346           as/link/mcs51/Makefile.in, as/link/mcs51/aslink.dsp,
2347           as/link/z80/Makefile.in, as/link/z80/linkgbz80.dsp,
2348           as/link/z80/linkz80.dsp, as/mcs51/Makefile.bcc, as/mcs51/Makefile.in,
2349           as/mcs51/asm.h, as/mcs51/asx8051.dsp, as/z80/Makefile.bcc,
2350           as/z80/Makefile.in, as/z80/as_gbz80.dsp, as/z80/as_z80.dsp,
2351           as/z80/Makefile.as_hc08, as/mcs51/Makefile.asx8051: modified
2352           created as/asxxsrc directory, assym.c and strcpi.c moved into it
2353
2354 2007-11-15 Maarten Brock <sourceforge.brock AT dse.nl>
2355
2356         * device/include/stdarg.h: added and removed some casts
2357         * src/SDCCsymt.c (compareType): Fully check types between generic and
2358           non-generic pointers, also accept ptr-ptr to void-ptr assignments
2359
2360 2007-11-13 Borut Razem <borut.razem AT siol.net>
2361
2362         * support/regression/tests/bug-1817005.c:
2363           added regtest for bug #1817005 - as-z80 chokes on long labels
2364
2365 2007-11-12 Borut Razem <borut.razem AT siol.net>
2366
2367         * as/z80/asmain.c, as/z80/asm.h, as/z80/assym.c, as/z80/asdata.c,
2368           as/z80/asout.c, as/z80/aslist.c:
2369           fixed bug #1817005 - as-z80 chokes on long labels
2370
2371 2007-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
2372
2373         * as/hc08/asmain.c,
2374         * as/z80/asmain.c: cosmetic changes
2375         * as/hc08/alloc.h,
2376         * as/mcs51/alloc.h,
2377         * as/z80/alloc.h: removed
2378         * as/hc08/assym.c,
2379         * as/mcs51/assym.c: replaced alloc.h with stdlib.h
2380         * as/link/aslink.h: added LKDIRSEP and, LKDIRSEPSTR
2381         * as/link/hc08/Makefile.in,
2382         * as/link/mcs51/Makefile.in,
2383         * as/link/z80/Makefile.in: added -DUNIX to CFLAGS
2384         * as/link/lklex.c,
2385         * as/link/mcs51/lkarea.c,
2386         * as/link/mcs51/lkmain.c: cosmetic changes
2387         * as/link/hc08/lklibr.c,
2388         * as/link/z80/lklibr.c,
2389         * as/link/mcs51/lklibr.c: used LKDIRSEP, LKDIRSEPSTR and LKOBJEXT,
2390           used cygwin_conv_to_full_posix_path,
2391           added warnings, cosmetic changes, brought more in sync
2392           changed old K&R into ANSI function declarations
2393         * as/link/z80/lklibr.c (loadAdb): added
2394         * as/link/z80/lkmain.c: removed -- option from usage text
2395
2396 2007-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
2397
2398         * src/mcs51/gen.c (outBitC): optimized for no result
2399
2400 2007-10-31 Borut Razem <borut.razem AT siol.net>
2401
2402         * src/SDCCsymt.c: fixed (hopeful properly) bug
2403           #1805702 - order of extern matters
2404         * support/regression/tests/bug-1805702.c: enabled regtest for bug
2405           #1805702
2406
2407 2007-10-29 Borut Razem <borut.razem AT siol.net>
2408
2409         * src/SDCCsymt.c: reverted bad fixed of bug #1805702
2410           - order of extern matters
2411         * support/regression/tests/bug-1805702.c: disabled regtest for bug
2412           #1805702
2413
2414 2007-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
2415
2416         * src/ds390/peeph.def: replaced 24bitModeAndPortDS390 by
2417           24bitMode, portIsDS390
2418         * src/mcs51/gen.c (genOr): optimized for RFE 1750727
2419         * src/SDCCpeeph.c (flat24bitModeAndPortDS390): removed
2420           (notVolatileVariable): also check sloc names,
2421           (callFuncByName): moved ftab[] out of function and sorted it by use
2422
2423 2007-10-28 Maarten Brock <sourceforge.brock AT dse.nl>
2424
2425         * device/include/stdarg.h: fixed bug in va_start macro for --xstack
2426         * src/hc08/gen.c (aopForRemat): aop->aopu.aop_immd.from_cast_remat not set,
2427           aop->aopu.aop_immd.aop_immd2 not filled with (generic) pointer type
2428         * src/SDCCicode.c (geniCodeCast): fixed bug 880197
2429         * support/regression/tests/bug-880197.c: new, added
2430
2431 2007-10-28 Borut Razem <borut.razem AT siol.net>
2432
2433         * support/regression/Makefile.in,
2434           support/regression/ports/mcs51-large/spec.mk,
2435           support/regression/ports/mcs51-xstack-auto/spec.mk,
2436           support/regression/ports/mcs51-stack-auto/spec.mk,
2437           support/regression/ports/mcs51-medium/spec.mk,
2438           support/regression/ports/mcs51-common/spec.mk,
2439           support/regression/ports/mcs51-common/*,
2440           support/regression/ports/mcs51-small/*:
2441           mcs51 renamed to mcs51-common, created mcs51-small
2442         * src/SDCCsymt.c: fixed bug #1805702 - order of extern matters
2443         * support/regression/tests/bug-1805702.c: added regtest for bug
2444           #1805702
2445
2446 2007-10-26 Maarten Brock <sourceforge.brock AT dse.nl>
2447
2448         * src/mcs51/peeph.def: moved rules 257.x to 253.x and re-enabled 253.b,
2449           added new rules 265 - 270
2450         * support/regression/tests/bug1721024.c:new, added
2451         * support/regression/Makefile.in: renamed test-mcs51 to test-mcs51-small,
2452           introduced new test-mcs51 to run all mcs51 tests
2453
2454 2007-10-25 Maarten Brock <sourceforge.brock AT dse.nl>
2455
2456         * support/regression/tests/bug1816470.c: new, added
2457
2458 2007-10-21 Maarten Brock <sourceforge.brock AT dse.nl>
2459
2460         * src/SDCCast.c (resultTypePropagate): do propagate for LEFT_OP, do not
2461           propagate for *,+,- with float, fixed bug 1816470
2462           (decorateType): cast to resultTypeProp instead of resultType
2463
2464 2007-10-19 Borut Razem <borut.razem AT siol.net>
2465
2466         * src/pic16/glue.c: fixed bug #983491 - "Merge duplicate strings
2467           function is ineffective" for pic16 tareget
2468         * support/scripts/listerr.c: corrected include path
2469         * device/lib/_itoa.c: fixed bug #1806402 - _itoa and _uitoa leak to
2470           adjacent memory
2471
2472 2007-10-18 Maarten Brock <sourceforge.brock AT dse.nl>
2473
2474         * support/regression/tests/using.c: new, added
2475         * support/regression/tests/vaargs.c: fixed and enabled test
2476
2477 2007-10-18 Borut Razem <borut.razem AT siol.net>
2478
2479         * src/SDCCglue.c: fixed bug #983491 - Merge duplicate strings function
2480           is ineffective
2481         * support/regression/tests/bug-983491.c: added regtest for bug #983491
2482
2483 2007-10-18 Maarten Brock <sourceforge.brock AT dse.nl>
2484
2485         * doc/sdccman.lyx: documented option --Werror
2486         * src/SDCCsymt.c (checkFunction): fixed bug 1815418 by setting
2487           RegBankUsed[] earlier
2488
2489 2007-10-14 Maarten Brock <sourceforge.brock AT dse.nl>
2490
2491         * device/include/mcs51/p89lpc938.h: new, added, thanks Kyle Guinn
2492         * src/pic/glue.c,
2493         * src/SDCCval.c,
2494         * src/SDCCast.c,
2495         * src/SDCCast.h: replaced AST_LIT_VALUE with AST_FLOAT_VALUE and
2496           AST_ULONG_VALUE
2497         * src/SDCCast.c (decorateType): improved optimization of tri-op
2498         * src/SDCCerr.c (vwerror, setWError),
2499         * src/SDCCerr.h,
2500         * src/SDCCmain.c (parseCmdLine): added option --Werror to treat all
2501           warnings as errors, thanks Stas Sergeev for PATCH 1813211
2502
2503 2007-10-13 Maarten Brock <sourceforge.brock AT dse.nl>
2504
2505         * src/mcs51/gen.c (leftRightUseAcc): use macro IS_OP_ACCUSE
2506         * src/SDCCast.c (decorateType): optimize bit=cond?1:0, RFE 1738430
2507         * support/regression/tests/bug-223113.c,
2508         * support/regression/tests/bug-426632.c,
2509         * support/regression/tests/bug-468811.c,
2510         * support/regression/tests/bug-477835.c,
2511         * support/regression/tests/bug-478094.c,
2512         * support/regression/tests/bug-499644.c,
2513         * support/regression/tests/bug-524209.c,
2514         * support/regression/tests/bug-524211.c,
2515         * support/regression/tests/packcast.c,
2516         * support/regression/tests/structidx.c: added empty tests
2517         * support/regression/tests/bug-607243.c: enabled test
2518
2519 2007-10-06 Borut Razem <borut.razem AT siol.net>
2520
2521         * .version, doc/sdccman.lyx: bumped version to 2.7.4 to indicate the full
2522            support of universal binaries on Mac OS X
2523
2524 2007-10-02 Borut Razem <borut.razem AT siol.net>
2525
2526         * src/SDCCval.h: unified double2ul macro for all platforms
2527         * src/SDCCval.c: fixed bug #1777758 - applied Maarten's patch
2528         * support/regression/tests/bitwise.c: added regtest for bug #1777758
2529
2530 2007-09-30 Borut Razem <borut.razem AT siol.net>
2531
2532         * src/SDCCval.h: fixed bug #1739860 - sdcc does not work correctly on some
2533           platforms
2534         * sdcc_vc_in.h: enabled warnings
2535         * src/hc08/gen.c: fixed MSVC warning C4146: unary minus operator applied to
2536           unsigned type, result still unsigned
2537         * src/mcs51/peep.c: fixed gcc warning: suggest parentheses around && within ||
2538
2539 2007-09-28 Raphael Neider <rneider AT web.de>
2540
2541         * src/pic/device.c (find_device): prevent buffer underflow error
2542         * src/pic/pcoderegs.c (OptimizeRegUsage): avoid dereferencing
2543           the just destroyed list entry
2544
2545 2007-09-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2546
2547         * doc/sdccman.lyx: there's a dedicated wiki page for cmake and sdcc, thanks
2548           Alexander Neundorf
2549
2550 2007-09-18 Borut Razem <borut.razem AT siol.net>
2551
2552         * src/SDCCval.c: fixed MSVC warning C4146: unary minus operator
2553          applied to unsigned type, result still unsigned
2554
2555 2007-09-17 Borut Razem <borut.razem AT siol.net>
2556
2557         * src/SDCC.y, src/SDCCast.c, src/SDCCcse.c, src/SDCCglue.c,
2558           src/SDCCicode.c, src/SDCCopt.c, src/SDCCsymt.c, src/SDCCval.c,
2559           src/SDCCval.h, src/hc08/gen.c, src/avr/gen.c, src/ds390/gen.c,
2560           src/mcs51/gen.c, src/pic/gen.c, src/pic/genarith.c, src/pic/glue.c,
2561           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/genarith.c,
2562           src/pic16/genutils.c, src/pic16/glue.c, src/pic16/main.c,
2563           src/z80/gen.c, src/z80/ralloc.c:
2564           fixed bug #1739860 - sdcc does not work correctly on some platforms
2565           (not finished)
2566           introduced and used ulFromVal(), double2ul(), used strtod() instead sscanf()
2567
2568 2007-09-17 Raphael Neider <rneider AT web.de>
2569
2570         * src/pic16/device.c: reverted to previous version
2571         * device/lib/pic16/Makefile.common.in: quieten gpasm via -Wa,-q
2572
2573 2007-09-16 Raphael Neider <rneider AT web.de>
2574
2575         * src/pic16/device.c (pic16_dump_usection): do not reserve 0 bytes,
2576           as this raises a ton of gpasm warnings, just emit a second label
2577         * src/pic16/devices.inc,
2578         * device/lib/pic16/pics.all,
2579         * device/lib/pic16/libdev/pic18f2585.c,
2580         * device/lib/pic16/libdev/pic18f2680.c,
2581         * device/lib/pic16/libdev/pic18f2682.c,
2582         * device/lib/pic16/libdev/pic18f2685.c,
2583         * device/lib/pic16/libdev/pic18f4585.c,
2584         * device/lib/pic16/libdev/pic18f4680.c,
2585         * device/lib/pic16/libdev/pic18f4682.c,
2586         * device/lib/pic16/libdev/pic18f4685.c,
2587         * device/include/pic16/pic18f2585.h,
2588         * device/include/pic16/pic18f2680.h,
2589         * device/include/pic16/pic18f2682.h,
2590         * device/include/pic16/pic18f2685.h,
2591         * device/include/pic16/pic18f4585.h,
2592         * device/include/pic16/pic18f4680.h,
2593         * device/include/pic16/pic18f4682.h,
2594         * device/include/pic16/pic18f4685.h,
2595         * device/include/pic16/pic18fregs.h: added 18f2585, 18f2680,
2596           18f2682, 18f2685, 18f4585, 18f4680, 18f4682, 18f4685,
2597           patch contributed by Anton Strobl, applied with changes
2598
2599 2007-09-16 Raphael Neider <rneider AT web.de>
2600
2601         * device/include/pic16/pic18f2431.h,
2602         * device/include/pic16/pic18f25j10.h,
2603         * device/include/pic16/pic18f4431.h,
2604         * device/include/pic16/pic18f45j10.h: adopted common include style
2605         * device/include/pic16/pic18f1320.h,
2606         * device/include/pic16/pic18f2320.h,
2607         * device/include/pic16/pic18f2525.h,
2608         * device/include/pic16/pic18f4320.h,
2609         * device/include/pic16/pic18f4525.h: NEW, just include proper .h file
2610         * device/include/pic16/pic18fregs.h: prepared for automatic include
2611           file selection by having DEVICE.h for every DEVICE
2612         * device/lib/pic16/libdev/pic18f2320.c,
2613         * device/lib/pic16/libdev/pic18f4320.c: just include proper .c file
2614
2615         * device/lib/pic16/configure.in,
2616         * device/lib/pic16/configure: use rm -rf instead of rmdir
2617         * device/lib/pic16/Makefile.in: use RMDIR to remove build directories
2618         * device/lib/pic16/libc/stdlib/free.c: avoid warning on pointer cast
2619
2620 2007-09-09 Borut Razem <borut.razem AT siol.net>
2621
2622         * src/SDCCmain.c, src/SDCCutil.c: print newline after printVersionInfo(),
2623           distingush between i386 and ppc Mac OS X versions
2624
2625 2007-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
2626
2627         * src/mcs51/gen.c (genReceive): fixed bug 1788177
2628         * support/regression/tests/bug1788177.c: new, added
2629
2630 2007-09-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2631
2632         * doc/sdccman.lyx: mentioned d52 and cmake, customizing startup code
2633         * device/include/mcs51/lint.h added keyword __naked
2634
2635 2007-09-04 Maarten Brock <sourceforge.brock AT dse.nl>
2636
2637         * src/pic16/glue.c,
2638         * src/pic/glue.c,
2639         * src/SDCCmem.h: removed maxRegBank
2640         * src/SDCCmem.c (allocVariables): removed maxRegBank and moved setting
2641           RegBankUsed[] to checkFunction() in SDCCsymt.c to fix bug 1759839
2642         * src/SDCCsymt.c (checkFunction): set RegBankUsed[] here
2643         * src/mcs51/peep.c (isCallerSaveFunc, termScanAtFunc): changed function
2644           name and behaviour to handle banked functions
2645           (scan4op): and use it to fix bug 1786213
2646
2647 2007-09-03 Raphael Neider <rneider AT web.de>
2648
2649         * device/include/pic16/pic18f248.h,
2650         * device/include/pic16/pic18f258.h,
2651         * device/include/pic16/pic18f448.h,
2652         * device/lib/pic16/libdev/pic18f248.c,
2653         * device/lib/pic16/libdev/pic18f258.c,
2654         * device/lib/pic16/libdev/pic18f448.c: fixed TRISEbits,
2655           added T0CONbits, fixes #1786891
2656
2657 2007-08-29 Maarten Brock <sourceforge.brock AT dse.nl>
2658
2659         * src/ds390/gen.c (genFarPointerSet),
2660         * src/hc08/ralloc.c (packRegisters),
2661         * src/mcs51/ralloc.c (packRegisters),
2662         * src/SDCCcse.c (cseBBlock): check if result is a symbol first to fix
2663           bug 1750318
2664         * src/SDCCicode.h: POINTER_SET can be true for literals too
2665         * support/regression/tests/bug1750318.c: new, added
2666
2667 2007-08-23 Borut Razem <borut.razem AT siol.net>
2668
2669         * debugger/mcs51/sdcdb.c: fixed compilation with older readline
2670           library versions without the completition functionality
2671
2672 2007-08-22 Raphael Neider <rneider AT web.de>
2673
2674         * device/include/pic16/pic18f1220.h,
2675         * device/lib/pic16/libdev/pic18f1220.c: applied patch #1776191
2676
2677 2007-08-12 Borut Razem <borut.razem AT siol.net>
2678
2679         * debugger/mcs51/Makefile.in: support/Util/SDCCerr.[ch] moved to src
2680
2681 2007-08-11 Borut Razem <borut.razem AT siol.net>
2682
2683         * support/Util/SDCCerr.c, support/Util/SDCCerr.h, src/src.dsp,
2684           src/Makefile.in, src/Makefile.bcc, support/scripts/listerr.c:
2685           support/Util/SDCCerr.[ch] moved to src
2686         * as/hc08/as_hc08.dsp, as/link/hc08/link_hc08.dsp,
2687           as/link/z80/linkgbz80.dsp, as/link/z80/linkz80.dsp,
2688           device/examples/ds390/tinitalk/tinitalk.dsp,
2689           device/examples/serialcomm/windows/serialcomm.dsp,
2690           support/librarian/librarian.dsp:
2691           removed linking of unused odbc32.lib and odbccp32.lib
2692         * support/scripts/winres.h:
2693           added for compilation with Visual C++ 2005 Express Edition
2694
2695 2007-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2696
2697         * device/include/mcs51/at89c51ed.h: Fixed typo in declarations of CKCON0
2698           and CKCON1.
2699
2700 2007-08-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2701
2702         * sdccconf_in.h: update the endian test so that SPARC Solaris
2703           does not throw syntax errors
2704
2705 2007-08-06 Borut Razem <borut.razem AT siol.net>
2706
2707         * doc/sdccman.lyx: removed two index entries which prevented the
2708           generation of sdcc doc archive
2709
2710 2007-08-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2711
2712         * doc/sdccman.lyx: Same changes made 2007-07-28 but using lyx 1.4.4
2713           instead of lyx 1.5.0.
2714
2715 2007-07-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2716
2717         * device/include/hc08/mc68hc908apxx.h: new header contributed by
2718           Lucas Loizaga, with minor modifications. Thanks!
2719
2720 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2721
2722         * doc/sdccman.lyx: Documented --acall-ajmp and described new features
2723           in sdcclib.
2724
2725 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2726
2727         * src/SDCCglobl.h, src/SDCCpeeph.c, src/SDCCglue.c, src/mcs51/main.c,
2728           src/mcs51/peeph.def: Added option --acall-ajmp: replaces lcall/ljmp
2729           with acall/ajmp.
2730
2731 2007-07-22 Borut Razem <borut.razem AT siol.net>
2732
2733         * configure.in, configure: re-introduced .version
2734         * sdcc.spec, doc/INSTALL.txt: they are used only for releases;
2735           the version reverted to 2.7.0
2736
2737 2007-07-18 Maarten Brock <sourceforge.brock AT dse.nl>
2738
2739         * configure.in,
2740         * doc/sdccman.lyx: bumped version to 2.7.3
2741         * device/include/mcs51/compiler.h: fixed elif->else
2742         * src/mcs51/gen.c (genAnd, genOr): handle accuse for pure bit operands
2743         * src/mcs51/ralloc.c (createStackSpil): fixed SCLS bug with sloc for sbit,
2744           (operandUsesAcc, packRegsForAccUse): added parameter allowBitspace to
2745            enable accuse for bit operands
2746         * src/SDCCmain.c (printVersionInfo),
2747         * src/SDCCutil.c (getBuildEnvironment): factored out creation of build
2748           environment descriptor
2749         * src/SDCCutil.h: added getBuildEnvironment
2750         * src/SDCCglue.c (initialComments): use getBuildEnvironment
2751         * support/regression/tests/bug1464657.c: enabled test test_Peephole251
2752         * support/regression/tests/bug-408972.c: enabled test leftShiftLong
2753         * support/regression/tests/bug1348008.c,
2754         * support/regression/tests/bug1496419.c,
2755         * support/regression/tests/bug1503067.c,
2756         * support/regression/tests/preproc.c: added empty tests
2757
2758 2007-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
2759
2760         * support/regression/tests/bug1678803.c: new, added
2761
2762 2007-07-14 Maarten Brock <sourceforge.brock AT dse.nl>
2763
2764         * as/link/aslink.h,
2765         * as/link/hc08/lkihx.c,
2766         * as/link/hc08/lkrloc.c,
2767         * as/link/mcs51/lkihx.c,
2768         * as/link/mcs51/lkrloc.c: renamed ihxEntendedLinearAddress to
2769           ihxExtendedLinearAddress
2770         * as/link/mcs51/lkrloc.c (relr),
2771         * as/mcs51/asout.c (outr11, outr19): handle absolute destination for
2772           acall/ajmp, see bug 830513
2773
2774 2007-07-13 Maarten Brock <sourceforge.brock AT dse.nl>
2775
2776         * src/SDCCcse.c (replaceAllSymBySym): renamed siaddr to isaddr,
2777           (cseBBlock): remember aggr2ptr has been used
2778         * src/SDCCicode.c (operandSize): added function to handle aggr2ptr,
2779           (geniCodeAssign): fixed bug 868103
2780         * src/SDCCicode.h: made operand.aggr2ptr 2 bits wide,
2781           added operandSize prototype
2782         * src/mcs51/gen.c (aopOp): use operandSize to fix bug 868103,
2783           (genDataPointerSet): use max of size of right and result,
2784           (gencjne): added parameter useCarry for optimization,
2785           (genCmpEq): use carry if appropriate,
2786           (genXor): check if operand already in carry
2787         * support/regression/tests/bug-868103.c: enabled test
2788
2789 2007-07-12 Raphael Neider <rneider AT web.de>
2790
2791         * src/pic16/gen.c (genNearPointerSet): fixed handling of literals
2792
2793 2007-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
2794
2795         * src/SDCCsymt.c (compareType): fixed bugs 1738367 and 1745717 with patch
2796           from Robert Larice, thanks
2797         * support/regression/tests/bitopcse.c,
2798         * support/regression/tests/bitvars.c,
2799         * support/regression/tests/bug-908454.c: use <stdbool.h> for the bit types
2800         * support/regression/tests/bug-927659.c: enabled test for z80
2801         * support/regression/tests/bug1738367.c: added extra tests by Frieder
2802         * support/regression/tests/bug1745717.c: new, added
2803         * support/regression/tests/literalop.c,
2804         * support/regression/tests/nullstring.c: removed storage definitions that
2805           are now in testfwk.h
2806
2807 2007-07-10 Maarten Brock <sourceforge.brock AT dse.nl>
2808
2809         * device/include/stdbool.h: do not define __bool_true_false_are_defined
2810           and bool for targets that do not fully support it.
2811         * support/regression/tests/bug1546986.c,
2812         * support/regression/tests/bug1723128.c,
2813         * support/regression/tests/bug1734654.c,
2814         * support/regression/tests/bug1738367.c,
2815         * support/regression/tests/constantRange.c: only use bool if allowed
2816
2817 2007-07-09 Maarten Brock <sourceforge.brock AT dse.nl>
2818
2819         * src/mcs51/peep.c (isCallerSaveFunc): fixed bug 1749275, thanks Robert
2820           Larice, also handle function pointers
2821         * support/regression/tests/bug1749275.c: new, added
2822
2823 2007-07-03 Borut Razem <borut.razem AT siol.net>
2824
2825         * src/mcs51/gen.c, src/avr/gen.c, src/pic/gen.c, src/z80/gen.c,
2826           src/pic16/gen.c, src/hc08/gen.c, src/ds390/gen.c: fixed RFE
2827           #1746528: SDCC should ignore ':' in inline assembler comments
2828         * device/include/typeof.h: fixed bug #1747142: typeof.h needs fixing
2829
2830 2007-07-02 Maarten Brock <sourceforge.brock AT dse.nl>
2831
2832         * device/include/mcs51/C8051F360.h: fixed bug #1746410, thanks Chris Jones
2833         * device/lib/mcs51/crtxclear.asm: do not set __XPAGE unconditionally
2834
2835 2007-06-29 Borut Razem <borut.razem AT siol.net>
2836
2837         * src/SDCCmain.c: fixed bug
2838           #1744746: SDCC #4867: broken option --xram-size
2839
2840 2007-06-28 Borut Razem <borut.razem AT siol.net>
2841
2842         * sim/ucsim/configure.in, sim/ucsim/configure, sim/ucsim/ddconfig_in.h:
2843           find out the endianess of host machine for ucsim
2844
2845 2007-06-27 Borut Razem <borut.razem AT siol.net>
2846
2847         * support/regression/generate-cases.py: corrected the file name
2848           in warning
2849         * configure.in, configure, sdccconf_in.h: find out the endianess of
2850           host machine
2851         * src/SDCC.y: fixed bug #1744146: Crash when compiling array of
2852           negative size
2853
2854 2007-06-27 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
2855
2856         * device/include/mcs51/p89c66x.h: NXP header file, OK to change licence
2857
2858 2007-06-26 Borut Razem <borut.razem AT siol.net>
2859
2860         * support/regression/generate-cases.py: display warning if function
2861           list is empty; implemented more flexible rule for detection of
2862           testing functions, allowing return type 'void' in the same line as
2863           the function name in the function definition
2864         * support/regression/tests/bug-1654060.c: corrected test
2865         * support/librarian/sdcclib.c: fixed warning:
2866           format '%s' expects type 'char *', but argument 2 has type 'int'
2867
2868 2007-06-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2869
2870         * support/librarian/sdcclib.c: Added feature Requests [1510635]
2871           Multiple infiles for sdcclib.
2872
2873 2007-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2874
2875         * src/SDCCast.c (inlineFindMaxBlockno, createFunction): fixed
2876           bug 1731741
2877
2878 2007-06-18 Borut Razem <borut.razem AT siol.net>
2879
2880         * src/SDCCmain.c: removed option -C since SDCC compiler doesn't know
2881           how to handle comments, so they have to be removed by the
2882           preprocessor; fixed bug #1738926:SDCC #4852: broken option -V
2883         * src/SDCCmain.c, src/SDCCargs.h, src/ds390/main.c, src/mcs15/main.c,
2884           src/pic16/main.c, src/pic/main.c, src/z80/main.c,
2885           support/Util/SDCCerr.c, support/Util/SDCCerr.h:
2886           table driven option hadling
2887
2888 2007-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
2889
2890         * src/SDCCast.c (decorateType),
2891         * src/SDCCicode.c (geniCodeConditional): moved optimization for '?' from
2892           iCode to ast level to fix bug 1738367
2893         * support/regression/tests/bug1738367.c: new, added
2894
2895 2007-06-15 Raphael Neider <rneider AT web.de>
2896
2897         * src/pic16/devices.inc,
2898         * device/lib/pic16/pics.all,
2899         * device/include/pic16/pic18fregs.h,
2900         * device/include/pic16/pic18f[24][45]20.h,
2901         * device/lib/pic16/libdev/pic18f[24][45]20.c: added support for
2902           18f2420, 18f2520, and 18f4420 devices, updated 18f4520 definitions
2903         * device/lib/pic16/Makefile.in: faster cleanup
2904
2905 2007-06-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2906
2907         * src/mcs51/peeph.def: added 177.i (mov from a is slightly cheaper)
2908
2909 2007-06-13 Raphael Neider <rneider AT web.de>
2910
2911         * src/SDCCmain.c: prevent NULL pointer dereference, avoid warning
2912
2913 2007-06-12 Raphael Neider <rneider AT web.de>
2914
2915         * support/scripts/inc2h.pl: conditionally emit defines for SFR bits,
2916           suppress bit defines if NO_BIT_DEFINES is #define'd
2917         * device/include/pic/pic*.h: recreated all headers to include
2918           conditional bit defines
2919         * device/include/pic/pic16f886.h,
2920         * device/include/pic/pic16f887.h: fixed based on newer .inc file
2921         * device/include/pic/recreate.sh: script to recreate the complete
2922           device library files based on the currently supported devices
2923
2924 2007-06-12 Borut Razem <borut.razem AT siol.net>
2925
2926         * src/pic16/main.c, src/SDCCargs.h, SDCCmain.c,
2927           support/regression/Makefile.in, support/scripts/build.mak,
2928           support/scripts/Makefile.snapshot:
2929           use new svn URL scheme
2930         * doc/sdccman.lyx: SDCC Wiki moved to
2931           http://sdcc.wiki.sourceforge.net/
2932
2933 2007-06-10 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2934
2935         * src/mcs51/peeph.def: disabled rule 132.d to fix #1734654
2936         * support/regression/tests/bug1734654.c: added
2937
2938 2007-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
2939
2940         * src/SDCCast.c (decorateType): optimized '?' for equal operands
2941         * src/SDCCicode.c (geniCodeConditional): optimization for bit result
2942           with literal operands
2943
2944 2007-06-10 Borut Razem <borut.razem AT siol.net>
2945
2946         * as/link/z80/lklibr.c: fixed mingw build warning
2947           lklibr.c:575: warning: implicit declaration of function 'tolower'
2948         * src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c,
2949           src/z80/main.c: move target specific options from src/SDCCmain.c
2950           to src/<target>/main.c
2951
2952 2007-06-09 Borut Razem <borut.razem AT siol.net>
2953
2954         * src/z80/gen.c: fixed bug #1294691: nested ifs make compiler crash;
2955           removed unused swap_sense; removed outBitCLong, replaced with outBitC
2956         * support/regression/tests/bug-1294691.c: added
2957
2958 2007-06-09 Maarten Brock <sourceforge.brock AT dse.nl>
2959
2960         * src/SDCCmem.c (allocDefault): removed check sym->level==0 for SPEC_ABSA,
2961           can also be static, fixes bug 1733438
2962         * src/SDCCsymt.c (checkSClass): static local vars in reentrant funcs can
2963           have absolute address too
2964           (computeType): added optimization for 'cond ? true : false'
2965         * support/regression/tests/absolute.c: added test for static absolute var
2966
2967 2007-06-08 Raphael Neider <rneider AT web.de>
2968
2969         * src/regression/Makefile: suppress parallel builds, allow easy
2970           switching between pic14/pic16 ports
2971         * src/regression/picregs.h: added pic14/16 header file switch
2972         * src/regression/{compare7.c,compare8.c,compare9.c,compare10.c,
2973           inline.c,nestfor.c,string1.c}: include "picregs.h"
2974
2975 2007-06-07 Borut Razem <borut.razem AT siol.net>
2976
2977         * sim/ucsim/*.[ch], sim/ucsim/configure, sim/ucsim/configure.in:
2978           permanent solution to suppress GCC 4.2.0 c++ warning:
2979           deprecated conversion from string constant to `char *'
2980           use 'const char *' where ever required
2981         * support/regression/generate-cases.py: implemented more flexible rule
2982           for detection of testing functions, allowing white-spaces surrounding
2983           the function name and the 'void' parameter.
2984         * support/regression/tests/constantRange.c,
2985           support/regression/tests/scott-compare3.c: fixed failing regression
2986           tests, uncovered by implementation of more flexible rule for detection
2987           of testing functions
2988
2989 2007-06-04 Maarten Brock <sourceforge.brock AT dse.nl>
2990
2991         * src/SDCCast.c(decorateType): better optimize '!!' and comparisons
2992
2993 2007-06-04 Borut Razem <borut.razem AT siol.net>
2994
2995         * configure.in, configure, config_vc.awk: sdcc version number is now
2996           stored in configure.in; removed .version
2997         * configure.in, configure, sdcc.spec, doc/sdccman.lyx, doc/sdccman.lyx,
2998           doc/INSTALL.txt: version bumped to 2.7.2
2999         * sim/ucsim/configure.in, sim/ucsim/configure:
3000           use "read" to read from .version
3001
3002 2007-06-03 Borut Razem <borut.razem AT siol.net>
3003
3004         * */Makefile.in: removed annoying warning:
3005           Makefile:xx: Makefile.dep: No such file or directory
3006
3007 2007-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
3008
3009         * src/mcs51/gen.c (outBitC, genRet): used IS_OP_RUONLY,
3010           (genNot, genXor): used toCarry, also fixes a bug for c = bit ^ val
3011         * src/mcs51/ralloc.c: removed IS_OP_RUONLY + some cosmetic changes
3012         * src/SDCCast.c (resultTypePropagate): propagate for '!',
3013           (decorateType): also optimize comparisons with RESULT_TYPE_BIT,
3014           bugfix: only use newBoolLink for bit result type
3015         * src/SDCCicode.c (geniCodeLogic): added param tree,
3016           bugfix: use newBoolLink if tree is bit type, bug appears when ruonly,
3017           (geniCodeLogicAndOr): use IS_BIT,
3018           (geniCodeJumpTable, geniCodeSwitch): added NULL param to geniCodeLogic,
3019           (ast2iCode): added tree param to geniCodeLogic for comparisons
3020         * src/SDCCsymt.h: added IS_OP_RUONLY and IS_OP_ACCUSE
3021         * support/regression/tests/bug1723128.c: added test NotZero
3022
3023 2007-06-01 Borut Razem <borut.razem AT siol.net>
3024
3025         * SDCPP synchronized with GCC CPP release version 4.2.0,
3026           currently the latest release:
3027         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
3028           support/cpp2/c-ppoutput.c, support/cpp2/cppdefault.c,
3029           support/cpp2/cppdefault.h, support/cpp2/except.h,
3030           support/cpp2/libcpp/directives.c, support/cpp2/libcpp/expr.c,
3031           support/cpp2/libcpp/files.c, support/cpp2/libcpp/include/cpplib.h,
3032           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
3033           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/macro.c,
3034           support/cpp2/libcpp/mkdeps.c, support/cpp2/libiberty/getpwd.c,
3035           support/cpp2/libiberty/hashtab.c, support/cpp2/optc-gen.awk,
3036           support/cpp2/opth-gen.awk, support/cpp2/opts.c,
3037           support/cpp2/opts.h, support/cpp2/output.h,
3038           support/cpp2/prefix.c, support/cpp2/sdcpp-opts.c,
3039           support/cpp2/sdcpp.dsp, support/cpp2/sdcpp.opt,
3040           support/cpp2/system.h, support/cpp2/version.c,
3041           support/cpp2/Makefile.in: modified
3042         * support/cpp2/opts-common.c: added
3043         * device/lib/pic16/libdev/pic18f[24][45]j10.c: fixed svn atrributes
3044         * device/lib/pic16/libdev/pic18f[24]5j10.c:
3045           search for included source file in local directory
3046         * sim/ucsim/configure, sim/ucsim/configure.in:
3047           temporary solution to suppress GCC 4.2.0 c++ warning:
3048           deprecated conversion from string constant to `char *'
3049
3050 2007-06-01 Raphael Neider <rneider AT web.de>
3051
3052         * device/lib/pic/libdev/pic12f683.c,
3053         * device/include/pic/pic12f683.h: added GPIO bits
3054
3055 2007-06-01 Raphael Neider <rneider AT web.de>
3056
3057         * doc/sdccman.lyx: added --disable-pic16-port, fixed some `--' and
3058           quotation marks, clarified role of PIC14 vs. PIC16 ports
3059         * src/pic16/devices.inc,
3060         * device/include/pic16/pic18fregs.h,
3061         * device/include/pic16/pic18f[24][45]j10.h,
3062         * device/lib/pic16/pics.all,
3063         * device/lib/pic16/libdev/pic18f[24][45]j10.c: added support for
3064           18f24j10, 18f25j10, 18f44j10, and 18f45j10
3065         * device/lib/pic16/libio/{i2c,adc,usart}.ignore: do not build IO libs
3066           for new devices as they are not yet supported by gputils
3067
3068 2007-05-31 Borut Razem <borut.razem AT siol.net>
3069
3070         * Small Device C Compiler 2.7.0 released
3071         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
3072           changed sdcc version to 2.7.1
3073         * support/scripts/sdcc.nsi: added How to create WIN32 release
3074           setup.exe package
3075
3076 2007-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
3077
3078         * doc/sdccman.lyx: documented initialization and allocation of absolute
3079           variables, bit parameter passing, the need for function pointers to be
3080           reentrant and alpha quality support of inline and retrict
3081
3082 2007-05-26 Borut Razem <borut.razem AT siol.net>
3083
3084         * support/regression/tests/bug1057979.c, support/regression/tests/malloc.c,
3085           support/regression/fwk/include/testfwk.h: fixed compilation on Mac OS x
3086         * docs/knownbugs.html: updated
3087
3088 2007-05-25 Maarten Brock <sourceforge.brock AT dse.nl>
3089
3090         * doc/sdccman.lyx: inserted footnotes about inline assembler labels,
3091           thanks Jan Waclawek
3092         * src/mcs51/gen.c (aopPut): fixed part of bug 1723128 when result is
3093           AOP_CRY and ruonly
3094           (gencjneshort): optimized when left is AOP_DIR
3095         * src/SDCCglue.c (printIvalStruct): fixed other part of bug 1723128 for
3096           initializing unions in a struct/array
3097         * support/regression/fwk/include/testfwk.h: added defines for data, near
3098           and far for host and z80
3099         * support/regression/tests/bug1723128.c: new, added
3100
3101 2007-05-22 Borut Razem <borut.razem AT siol.net>
3102
3103         * doc/knownbugs.html: updated
3104
3105 2007-05-21 Raphael Neider <rneider AT web.de>
3106
3107         * src/pic16/glue.c (pic16_initPointer): avoid assertion, emit better
3108           error message instead
3109         * src/pic/pcoderegs.c (pCodeOptime2pCodes): keep register state intact
3110
3111 2007-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
3112
3113         * src/mcs51/peeph.def (257.b): disabled to fix bug 1721024
3114
3115 2007-05-21 Raphael Neider <rneider AT web.de>
3116
3117         * src/pic/pcoderegs.c (pCodeOptime2pCodes): fixed bogus optimization,
3118           closes #1722392
3119         * src/regression/gpsim_assert.h,
3120         * src/regression/Makefile,
3121         * src/regression/pcodeopt.c: regression test for the above fix
3122
3123 2007-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
3124
3125         * src/SDCCpeeph.c (labelIsUncondJump): ignore identical labels for
3126           jumps to self, fixed bug 1717281
3127
3128 2007-05-10 Borut Razem <borut.razem AT siol.net>
3129
3130         * support/scripts/gen_known_bugs.pl: cosmetic fix
3131         * doc/knownbugs.html: generated by gen_known_bugs.pl
3132
3133 2007-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3134
3135         * src/SDCCast.c (createFunction): also generate non-inlined version of
3136           function for functions declared as "static inline"
3137         * src/SDCCast.c (fixupInline, inlineAddDecl): reset symbol state so
3138           function can be inlined after non-inlined version generated.
3139
3140 2007-05-10 Borut Razem <borut.razem AT siol.net>
3141
3142         * support/scripts/gen_known_bugs.pl: added script
3143           which generates knownbugs.html
3144
3145 2007-05-09 Maarten Brock <sourceforge.brock AT dse.nl>
3146
3147         * doc/knownbugs.html: updated for release 2.7.0
3148
3149 2007-05-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3150
3151         * device/include/mcs51/uPSD33xx.h: Added patch by Jan Waclawek.
3152
3153 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
3154
3155         * src/ds390/gen.c (emitcode): don't change properties of previous lines,
3156           (throughout): updated generating comments
3157         * src/mcs51/gen.c (emitcode): don't change properties of previous lines,
3158           (throughout): updated generating comments
3159         * src/SDCCpeeph.c (peepHole): continue searching at the first replaced
3160           rule instead of at the second, or it might skip lines when removing the
3161           complete match
3162         * support/regression/tests/bug1714204.c: changed test to foo
3163
3164 2007-05-08 Borut Razem <borut.razem AT siol.net>
3165
3166         * doc/sdccman.lyx: changed sdcc version to 2.7.0,
3167           thanks to SDCC Distributed Compile Farm members,
3168           added Z80 and GBZ80 command line options
3169         * .version, doc/INSTALL.txt, sdcc.spec: changed sdcc version to 2.7.0
3170
3171 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
3172
3173         * device/lib/mcs51/crtxinit.asm: added disabled version for dual dptr
3174         * device/include/mcs51/uPSD33xx.h: added sfr DPS as alias for DPTC
3175         * support/regression/tests/longlit.c: modified to be tested at all and
3176           to pass the actual test
3177
3178 2007-05-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3179
3180         * device/include/mcs51/uPSD33xx.h: Added.
3181
3182 2007-05-07 Maarten Brock <sourceforge.brock AT dse.nl>
3183
3184         * device/lib/_gptrput.c,
3185         * device/lib/_gptrget.c: removed old code,
3186          (_gptrgetWord),
3187         * src/ds390/gen.c (genGenPointerGet): fixed bug 1714204
3188         * support/regression/tests/bug1714204.c: new, added
3189
3190 2007-05-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3191
3192         * support/regression/tests/regtrack.c: test was never executed
3193           because of the regression test being picky about white spaces.
3194         * device/lib/mcs51/crtclear.asm: added comment
3195
3196 2007-05-06 Raphael Neider <rneider AT web.de>
3197
3198         * device/lib/pic/Makefile.rules,
3199         * device/lib/pic16/Makefile.rules: make sure *.ignore file exists,
3200           made "&> /dev/null" redirection sh-safe ("> /dev/null 2>&1")
3201
3202 2007-05-06 Raphael Neider <rneider AT web.de>
3203
3204         * src/pic16/device.h,
3205         * src/pic16/main.h,
3206         * src/pic16/main.c (pic16_optionsTable,_pic16_parseOptions,
3207           _pic16_setDefaultOptions): removed/reordered command-line args
3208         * doc/sdccman.lyx: updated PIC14 and PIC16 documentation (supported
3209           devices, regrouped command line args, environment variables),
3210           clarified sone points, added sections on how to add devices to the
3211           PIC14/PIC16 ports
3212
3213 2007-05-06 Maarten Brock <sourceforge.brock AT dse.nl>
3214
3215         * src/z80/peeph.def: fixed bug in rule 2
3216
3217 2007-05-05 Maarten Brock <sourceforge.brock AT dse.nl>
3218
3219         * src/port.h: added TARGET_MCS51_LIKE
3220         * src/SDCCpeeph.c (labelIsUncondJump): new, added, other targets could
3221           take advantage of it too
3222         * src/z80/gen.c (genIpush): push b, d or h directly instead of using a,
3223           (shiftR2Left2Result): Optimized: don't check shifting by 0
3224         * src/z80/peeph-z80.def,
3225         * src/z80/peeph.def: whole set of new rules by Philipp Krause with some
3226           modifications, see patch 1700823
3227         * src/mcs51/peep.c (): fixed bug 1712928
3228         * support/regression/tests/bug1712928.c: new, added
3229
3230 2007-05-05 Borut Razem <borut.razem AT siol.net>
3231
3232         * device/lib/pic16/Makefile.common.in,
3233           device/lib/pic/Makefile.common.in, sim/ucsim/cmd.src/Makefile.in:
3234           removed bash dependencies
3235
3236 2007-05-01 Borut Razem <borut.razem AT siol.net>
3237
3238         * src/SDCCicode.c:
3239           fixed bug #1710507: --i-code-in-asm makes compile fail
3240           all iCode comments are now one liners
3241         * src/mcs51/gen.c: fixed memory leak
3242
3243 2007-05-01 Raphael Neider <rneider AT web.de>
3244
3245         * device/lib/pic/libdev/*.c
3246         * device/include/pic/*.h: regenerated all device libs from updated
3247           .inc files
3248         * support/scripts/inc2h.pl: documented usage, now uses strict to
3249           catch more bugs
3250
3251 2007-04-30 Borut Razem <borut.razem AT siol.net>
3252
3253         * doc/sdccman.lyx:
3254           fixed bug #1669175: Problem with space in output paths
3255           documented how to use paths with spaces for Windows users
3256
3257 2007-04-29 Borut Razem <borut.razem AT siol.net>
3258
3259         * Fixed svn:eol-style and svn:keywords properties
3260         * src/SDCCval.c: fixed bug
3261           #1592871: Segfault with "large" const arrays of characters
3262           replaced recursion with iteration
3263         * Removed svn:executable property from non-executable files
3264
3265 2007-04-29 Maarten Brock <sourceforge.brock AT dse.nl>
3266
3267         * src/mcs51/gen.c (genRet): fixed bug 1707003
3268
3269 2007-04-27 Raphael Neider <rneider AT web.de>
3270
3271         * src/pic16/pcode.c (pBlockRemoveUnusedLabels,pic16_pBlockAddInval,
3272           createReachingDefinitions,assignValnums,pic16_destructDF,
3273           pic16_createDF,pic16_vcg_dumpedges,pic16_vcg_dump_default):
3274           prevent NULL pointer dereferences
3275         * device/lib/pic/libdev/pic16f886.c,
3276         * device/lib/pic/libdev/pic16f887.c: svn mv'ed to disabled_* to
3277           prevent building them, gputils do not really support them yet
3278
3279 2007-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3280
3281         * device/lib/_ltoa.c: 36 bytes less __data mem. This really
3282           helps printf_small. 32 bytes more __idata mem.
3283
3284 2007-04-27 Raphael Neider <rneider AT web.de>
3285
3286         * src/pic/pcode.c (addpCode2pBlock,LinkFlow,pBlockRemoveUnusedLabels):
3287           return early when pb or pb->pcHead is NULL (patch #1708427)
3288         * src/regression/empty.c,
3289         * src/regression/Makefile: added test with empty functions
3290         * support/Util/SDCCerr.c: fixed typo in E_INIT_STRUCT message
3291
3292 2007-04-27 Borut Razem <borut.razem AT siol.net>
3293
3294         * src/SDCCast.c: fixed feature request
3295           #1547512: Redundant strings linked when using sizeof("abc")
3296
3297 2007-04-23 Borut Razem <borut.razem AT siol.net>
3298
3299         * doc/sdccman.lyx, src/SDCCmain.c:
3300           peep-hole comments are generated only if --fverbose-asm option is
3301           specified and --no-peep-comments is not, as proposed by Frieder.
3302         * support/regression/Makefile.in: compile regression tests with
3303           --fverbose-asm option so one can "grep" whether a new (or an old)
3304           peephole is (still) applied; requested by Frieder.
3305
3306 2007-04-23 Kevin Buettner <kevin AT buettner.to>
3307
3308         * device/include/pic/pic16f886.h,
3309         * device/include/pic/pic16f887.h,
3310         * device/lib/pic/libdev/pic16f886.c,
3311         * device/lib/pic/libdev/pic16f887.c,
3312         * device/include/pic/pic14devices.txt,
3313         * device/lib/pic/libdev/devices.txt: Add 16f886 and 16f887.
3314
3315 2007-04-23 Kevin Buettner <kevin AT buettner.to>
3316
3317         * device/lib/pic/libsdcc/idata.c: PAGESEL _main before going there,
3318           fixes #1704666
3319
3320 2007-04-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3321
3322         * device/lib/_memset.c: assembler version for mcs51
3323
3324 2007-04-22 Borut Razem <borut.razem AT siol.net>
3325
3326         * support/scripts/listerr.c: program to create the list of errors and
3327           warnings list from - added
3328         * doc/sdccman.lyx: removed the note
3329           "For list of warnings and corresponding codes, see err_warn.txt"
3330         * src/SDCCsymt.c: fixed bug #1699804:
3331           Bug with some uses of sizeof(static local array) (MCS51)
3332         * support/regression/tests/bug-1699804.c: added
3333
3334 2007-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
3335
3336         * as/mcs51/asmain.c (search_path_append, search_path_fopen): new, added,
3337           (main): added option -i,
3338           (asmbl, case S_INCL): use search_path_fopen,
3339           mostly from patch 1579668 by Peter Miller, thanks
3340         * src/z80/main.c: fixed typo --callee-saves-bc
3341         * device/include/mcs51/compiler.h: added sfrword for Tasking
3342
3343 2007-04-20 Borut Razem <borut.razem AT siol.net>
3344
3345         * src/z80/main.c: replaced reserved keyword asm with asmblr
3346
3347 2007-04-19 Borut Razem <borut.razem AT siol.net>
3348
3349         * src/port.h: use const pointers to strings
3350         * src/SDCCargs.h: declared getStringArg() and getIntArg()
3351         * src/pic16/main.c: include SDCCargs.h
3352         * src/SDCCglobl.h: code_seg and const_seg are not pointers to
3353           const char, since the strings are dynamically allocated
3354         * src/SDCCmain.c: options.code_seg and options.const_seg are
3355           dynamically allocated; check port specific command line options
3356           before the general ones
3357         * src/z80/main.c: fixed bug #1631895: codeseg/constseg #pragma fail
3358
3359 2007-04-18 Maarten Brock <sourceforge.brock AT dse.nl>
3360
3361         * device/include/ds400rom.h,
3362         * device/lib/ds390/lcd390.c,
3363         * device/lib/ds390/memcpyx.c,
3364         * device/lib/ds390/rtc390.c,
3365         * device/lib/ds400/ds400rom.c,
3366         * device/lib/ds400/memcpyx.c,
3367         * device/lib/hc08/_ret.c: more replacements of keywords with their
3368           double underscore equivalents
3369         * device/lib/ds390/Makefile.in,
3370         * device/lib/ds400/Makefile.in,
3371         * device/lib/gbz80/Makefile.in,
3372         * device/lib/hc08/Makefile.in,
3373         * device/lib/mcs51/Makefile.in,
3374         * device/lib/z80/Makefile.in: added --std-c89 to CFLAGS
3375
3376 2007-04-17 Borut Razem <borut.razem AT siol.net>
3377
3378         * doc/sdccman.lyx, src/SDCCmain.c, src/SDCCglobal.h, src/ds390/gen.c,
3379           src/hc08/gen.c, src/mcs51/gen.c, src/mcs51/rtrack.c:
3380           fixed #1493816: option --no-gen-comments: --no-gen-comments renamed
3381           to --fverbose-asm, to be gcc'ish
3382
3383 2007-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
3384
3385         * src/mcs51/gen.c (aopOp): set size to 1 for ruonly, fixes bug 1699455
3386
3387 2007-04-17 Borut Razem <borut.razem AT siol.net>
3388
3389         * doc/sdccman.lyx: fixed #1701874: Mac OSX references in SDCC manual
3390         * device/lib/ds400/tinibios.c, device/lib/hc08/_divuint.c,
3391           device/lib/hc08/_divulong.c: replaced _asm and _endasm keywords
3392           with their double underscore equivalent
3393
3394 2007-04-14 Borut Razem <borut.razem AT siol.net>
3395
3396         * doc/sdccman.lyx: some additional "freeware" replaced with "free open
3397           source"
3398
3399 2007-04-13 Borut Razem <borut.razem AT siol.net>
3400
3401         * doc/sdccman.lyx: -pedantic-parse-number is not in conformance with
3402           C99 standard
3403         * device/examples/serialcomm/windows/serial.[ch],
3404           device/examples/serialcomm/windows/test_serialcomm.cpp:
3405           updated by Bela Torok
3406         * device/examples/serialcomm/windows/serialcomm.dsw,
3407           device/examples/serialcomm/windows/serialcomm.dsp: added
3408
3409 2007-04-13 Jan Waclawek <wek AT efton.sk>
3410
3411         * doc/sdccman.lyx: additions and changes at various places
3412           (submitted as #1697136).
3413           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
3414
3415 2007-04-10 Borut Razem <borut.razem AT siol.net>
3416
3417         * doc/cdbfileformat.lyx, doc/sdccman.lyx, doc/test_suite_spec.lyx:
3418           LyX file format changed to 245
3419         * doc/sdccman.lyx, doc/README.txt, sdc/SDCC.lex, src/SDCCglue.c:
3420           "FreeWare" replaced with "free open source"
3421
3422 2007-04-10 Maarten Brock <sourceforge.brock AT dse.nl>
3423
3424         * device/include/mcs51/C8051F120.h: added some defines for bits in RSTSRC
3425
3426 2007-04-08 Maarten Brock <sourceforge.brock AT dse.nl>
3427
3428         * device/include/pic16/pic18fregs.h,
3429         * device/lib/_bp.c,
3430         * device/lib/_decdptr.c,
3431         * device/lib/_divsint.c,
3432         * device/lib/_divslong.c,
3433         * device/lib/_divuint.c,
3434         * device/lib/_divulong.c,
3435         * device/lib/_fs2schar.c,
3436         * device/lib/_fs2sint.c,
3437         * device/lib/_fs2slong.c,
3438         * device/lib/_fs2uchar.c,
3439         * device/lib/_fs2uint.c,
3440         * device/lib/_fs2ulong.c,
3441         * device/lib/_fsadd.c,
3442         * device/lib/_fscmp.c,
3443         * device/lib/_fsdiv.c,
3444         * device/lib/_fseq.c,
3445         * device/lib/_fsget1arg.c,
3446         * device/lib/_fsget2args.c,
3447         * device/lib/_fsgt.c,
3448         * device/lib/_fslt.c,
3449         * device/lib/_fsmul.c,
3450         * device/lib/_fsneq.c,
3451         * device/lib/_fsnormalize.c,
3452         * device/lib/_fsreturnval.c,
3453         * device/lib/_fsrshift.c,
3454         * device/lib/_fssub.c,
3455         * device/lib/_fsswapargs.c,
3456         * device/lib/_gptrget.c,
3457         * device/lib/_gptrgetc.c,
3458         * device/lib/_gptrput.c,
3459         * device/lib/_logexpf.c,
3460         * device/lib/_modsint.c,
3461         * device/lib/_modslong.c,
3462         * device/lib/_moduint.c,
3463         * device/lib/_modulong.c,
3464         * device/lib/_mulint.c,
3465         * device/lib/_mullong.c,
3466         * device/lib/_schar2fs.c,
3467         * device/lib/_ser.c,
3468         * device/lib/_setjmp.c,
3469         * device/lib/_sint2fs.c,
3470         * device/lib/_slong2fs.c,
3471         * device/lib/_spx.c,
3472         * device/lib/_uchar2fs.c,
3473         * device/lib/_uint2fs.c,
3474         * device/lib/_ulong2fs.c,
3475         * device/lib/asincosf.c,
3476         * device/lib/atanf.c,
3477         * device/lib/calloc.c,
3478         * device/lib/ds390/tinibios.c,
3479         * device/lib/ds400/tinibios.c,
3480         * device/lib/expf.c,
3481         * device/lib/free.c,
3482         * device/lib/hc08/_mulint.c,
3483         * device/lib/logf.c,
3484         * device/lib/malloc.c,
3485         * device/lib/printf_fast.c,
3486         * device/lib/printf_tiny.c,
3487         * device/lib/printfl.c,
3488         * device/lib/realloc.c,
3489         * device/lib/ser_ir.c,
3490         * device/lib/serial.c,
3491         * support/regression/tests/libmullong.c: replaced all special keywords
3492           with their double underscore equivalent
3493         * support/regression/ports/mcs51-xstack-auto/spec.mk,
3494         * device/lib/Makefile.in: compile libs with --std-c99 instead of
3495           --std-sdcc99
3496         * src/mcs51/gen.c (outBitC): don't store if result is return-use-only,
3497           (genRet): if the bit-symbol is ruonly it already is in the carry
3498         * src/mcs51/ralloc.c (regTypeNum): make regType REG_CND for ruonly bit
3499         * src/SDCCast.c (createFunction): applied patch 887171 by Stas Sergeev
3500         * src/SDCCicode.c (ast2iCode): '!', GETHBIT, GETABIT: only set operand
3501           type UCHAR if dest is not bit
3502
3503 2007-04-03 Maarten Brock <sourceforge.brock AT dse.nl>
3504
3505         * device/include/math.h,
3506         * device/lib/cotf.c,
3507         * device/lib/expf.c,
3508         * device/lib/sincoshf.c: changed XMAX to C99 HUGE_VALF
3509
3510 2007-04-01 Borut Razem <borut.razem AT siol.net>
3511
3512         * src/SDCC.lex, src/SDCCmain.c, support/cpp2/sdcpp.c:
3513           fixed bug #1692042: input buffer overflow...scanner uses REJECT
3514         * support/cpp2/sdcpp.c: fixed recursion bug - internal_error() called
3515           gcc_unreachable() called internal_error()...
3516
3517 2007-03-30 Raphael Neider <rneider AT web.de>
3518
3519         * src/pic/ralloc.c (isData): suppress garbage debug output
3520
3521 2007-03-28 Borut Razem <borut.razem AT siol.net>
3522
3523         * doc/sdccman.lyx:
3524           "Nightly Snapshots" replaced with "Snapshot Builds", since the SDCC
3525           is developed, built and used worldwide, and the word "night" doesn't
3526           make any sense.
3527
3528 2007-03-28 Maarten Brock <sourceforge.brock AT dse.nl>
3529
3530         * device/include/mcs51/C8051F360.h: new, added
3531         * device/include/mcs51/C8051F520.h: fixed buggy sbit addresses SPI0CN
3532
3533 2007-03-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3534
3535         * src/SDCC.y (declaration_specifiers, function_specifier),
3536         * support/Util/SDCCerr.c,
3537         * support/Util/SDCCerr.h,
3538         * src/SDCCsymt.h,
3539         * src/SDCCsymt.c (mergeSpec, checkFunction): Parse and validate the
3540           inline keyword
3541         * src/SDCCmem.c (deallocParms),
3542         * src/SDCCast.c: support for function inlining, not quite complete
3543         * src/SDCCsymt.c (printTypeChain, printTypeChainRaw): display
3544           'restrict' qualifier
3545
3546 2007-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
3547
3548         * src/mcs51/gen.c (saveRegisters, unsaveRegisters): free some bitVects,
3549           (saveRBank, unsaveRBank): don't save bits,
3550           (genFunction, genEndFunction): save bits exactly once, fix bug 1535242
3551         * support/regression/tests/bug1535242.c: new, added
3552         * device/include/assert.h: applied patch 1686533 to fix bug 1686528,
3553           thanks Alexey Shamrin <shamrin AT gmail.com>,
3554           made assert.h header ANSI compliant (added a check for NDEBUG macro,
3555           removed header guard)
3556         * .version,
3557         * sdcc.spec: bumped version to 2.6.5
3558         * src/SDCCmain.c(parseCmdLine): fixed bug 1677144
3559
3560 2007-03-22 Borut Razem <borut.razem AT siol.net>
3561
3562         * debugger/mcs51/cmd.c, debugger/mcs51/sdcdb.c:
3563           fixed bug #1653671: sdcdb integration into ddd is broken
3564
3565 2007-03-22 Raphael Neider <rneider AT web.de>
3566
3567         * src/pic/gen.c (popGetExternal): augmented to also create references
3568           to external variables (not only labels),
3569           (genCall): comment on plan to reduce PAGESEL overhead,
3570           (genFunction, genEndFunction): also save/restore FSR around interrupt
3571           handling code, removed lots of unused code
3572           (genDivOneByte): release acquired temp register
3573         * src/pic/glue.c (pic14createInterruptVect): adapt to new signature
3574           of popGetExternal
3575         * device/lib/pic/libsdcc/shadowregs.c: NEW, provide storage location
3576           for registers that need to be saved during interrupts (FSR, STATUS,
3577           PCLATH; W needs special handling), currently only FSR is used
3578
3579 2007-03-22 Raphael Neider <rneider AT web.de>
3580
3581         * device/include/pic/pic14devices.txt: 16f688 has only one config word
3582
3583 2007-03-19 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3584
3585         * /as/link/mcs51/aslink.dsp: Object extension for mcs51 is 'rel' not 'o'.
3586
3587 2007-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
3588
3589         * src/mcs51/peeph.def (263.x): fixed bug for volatile variables
3590
3591 2007-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
3592
3593         * as/link/aslink.h: added LKOBJEXT
3594         * as/link/hc08/link_hc08.dsp,
3595         * as/link/hc08/Makefile.bcc,
3596         * as/link/hc08/Makefile.in,
3597         * as/link/mcs51/aslink.dsp,
3598         * as/link/mcs51/Makefile.bcc,
3599         * as/link/mcs51/Makefile.in: moved lkamof51.c and lkdata.c
3600         * as/link/hc08/lkaomf51.c,      as/link/mcs51/lkaomf51.c,
3601         * as/link/lkaomf51.c: merged and moved
3602         * as/link/hc08/lkdata.c,        as/link/mcs51/lkdata.c,
3603         * as/link/z80/lkdata.c,
3604         * as/link/lkdata.c: merged and moved
3605         * as/link/hc08/lkmain.c,
3606         * as/link/mcs51/lkmain.c: cosmetic changes
3607         * as/link/z80/lkeval.c,         as/link/lkeval.c: merged
3608         * as/link/lklex.c: use LKOBJEXT
3609         * as/link/z80/lklist.c,         as/link/lklist.c: merged,
3610           ANSI-fied functions, removed bubble-sorts
3611         * as/link/z80/lksym.c           as/link/lksym.c: merged,
3612           ANSI-fied functions
3613         * as/link/z80/linkgbz80.dsp,
3614         * as/link/z80/linkz80.dsp,
3615         * as/link/z80/Makefile.in: added lkaomf51.c and lknoice.c,
3616           moved lkdata.c, lkeval.c, lkhead.c, lklex.x, lklist.c, lksym.c
3617         * as/link/z80/lkhead.c,
3618         * as/link/z80/lklex.c: deleted
3619         * as/link/z80/lklibr.c: moved LKOBJEXT to aslink.h
3620         * as/link/z80/lkmain.c: added copyfile()
3621
3622 2007-03-13 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3623
3624         * device/include/mcs51/P89LPC925.h: Added missing P1_6 and P1_7.
3625
3626 2007-03-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3627
3628         * device/lib/_strlen.c: assembler version for mcs51
3629
3630 2007-03-13 Raphael Neider <rneider AT web.de>
3631
3632         * device/include/pic16/pic18f2221.h,
3633         * device/include/pic16/pic18f2321.h,
3634         * device/include/pic16/pic18f2331.h,
3635         * device/include/pic16/pic18f4221.h,
3636         * device/include/pic16/pic18f4321.h,
3637         * device/include/pic16/pic18f4331.h: fixed config byte location names
3638         * support/scripts/inc2h-pic16.pl: removed debug output, emit
3639           consistently named config byte locations
3640
3641 2007-03-13 Borut Razem <borut.razem AT siol.net>
3642
3643         * src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
3644           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/s51.src/Makefile.in,
3645           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
3646           as/link/z80/Makefile.in, as/z80/Makefile.in:
3647           introduced LDFLAGS
3648
3649 2007-03-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3650
3651         * device/lib/printfl.c: 13 bytes less __data mem (12 more __idata)
3652         * device/lib/printf_large.c: pointer was converted to generic
3653         pointer for mcs51 models other than model-small (Maarten noticed)
3654
3655 2007-03-10 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3656
3657         * device/include/mcs51/ADuC84x.h: Added.
3658
3659 2007-03-10 Borut Razem <borut.razem AT siol.net>
3660
3661         * src/SDCC.lex, src/SDCCutil.[ch], src/SDCCval:
3662           fixed RFE #1624219: double backslashes in filenames;
3663           functions hexEscape(), octalEscape() and copyStr() moved from
3664           SDCCval.c to SDCCutil.c and made them glovbally available
3665
3666 2007-03-09 Borut Razem <borut.razem AT siol.net>
3667
3668         * src/SDCC.lex, src/SDCCast.c. src/SDCCglobl.c, src/SDCCsymt.c,
3669           src/SDCCval.c: fixed bugs #1676768: Wrong line number reported and
3670           1673361: Missaligned comments in output files
3671
3672 2007-03-09 Raphael Neider <rneider AT web.de>
3673
3674         * device/include/pic/pic14devices.txt: fixed confsiz of 16f91[3467]
3675
3676 2007-03-09 Raphael Neider <rneider AT web.de>
3677
3678         * src/pic/gen.c,
3679         * src/pic/glue.c,
3680         * src/pic/ralloc.c: suppress undesired debug output
3681         * src/SDCCmain.c (linkEdit): initialize c to quieten compiler
3682
3683 2007-03-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3684
3685         * device/lib/printf_large.c: 6 bytes less __data mem (6 more __idata)
3686
3687 2007-03-07 Borut Razem <borut.razem AT siol.net>
3688
3689         * device/lib/pic16/libdev/pic18f[24][34]31.c:
3690           search include files in the current directory
3691
3692 2007-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
3693
3694         * src/SDCCglue.c (emitMaps, glue),
3695         * src/SDCCmem.c (initMem, allocDefault): added x_abs for initialized
3696           absolute xdata
3697         * support/regression/tests/absolute.c: added xdata test
3698
3699 2007-03-03 Maarten Brock <sourceforge.brock AT dse.nl>
3700
3701         * src/SDCCmain.c (parseCmdLine): only set options.xstack_loc for mcs51,
3702           added condition to macro, fixes bug 1666080
3703
3704 2007-03-02 Raphael Neider <rneider AT web.de>
3705
3706         * src/pic/gen.c (genGenPointerSet): removed bogus assertion
3707
3708 2007-02-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3709
3710         * device/lib/mcs51/crtxclear.asm: pdata segment of 256 byte would not
3711         be cleared. Unconditionally set __XPAGE
3712         * src/hc08/gen.c: --no-gen-comments (RFE #1493816) for hc08
3713
3714 2007-02-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3715
3716         * src/SDCCglobl.h,
3717         * src/SDCCmain.c,
3718         * src/mcs51/gen.c,
3719         * src/mcs51/rtrack.c,
3720         * src/ds390/gen.c,
3721         * doc/sdccman.lyx: added --no-gen-comments
3722         * src/mcs51/peeph.def: added 192.b, disabled 185
3723
3724 2007-02-25 Raphael Neider <rneider AT web.de>
3725
3726         * src/pic16/gen.c (genCast): fixed typo
3727         * device/lib/pic16/Makefile.subdir: only install existing files
3728         * device/lib/pic16/libdev/Makefile.in: build serially, avoid races
3729
3730 2007-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
3731
3732         * device/lib/mcs51/crtcall.asm: new, added for indirect calls
3733         * device/lib/mcs51/crtclear.asm,
3734         * device/lib/mcs51/crtxclear.asm: renumbered labels
3735         * device/lib/mcs51/Makefile.in: added crtcall.asm
3736         * doc/sdccman.lyx: documented mcs51 crt* library startup code
3737         * src/mcs51/gen.c (movc): removed,
3738           (aopGet, genPlusBits): clear a after loading the carry (possibly from
3739             acc.x or psw.x),
3740           (toCarry, genSend, genRet): added function toCarry,
3741           (genPcall): use "lcall @a+dptr" for functions w/o parameters,
3742           (assignBit, genAssign, genCast): added function assignBit
3743         * src/mcs51/Makefile.bcc: added rtrack.c
3744         * src/mcs51/ralloc.h: made valueKnown a bitfield
3745         * src/mcs51/rtrack.c (getReg, rtrackUpdate): added getReg,
3746           fixed "jbc acc" and "cpl acc" bug, enhanced "cjne", "jnz" and "djnz",
3747           disabled InvalidateAllRx for lcall __gptrput, added "xch a,rn"
3748         * src/pic/pcode.c (FixRegisterBanking): fixed warning used uninitialized
3749         * src/z80/gen.c: added AOP_IS_PAIRPTR,
3750           (_pop): only pop valid pairs, see gencjneshort,
3751           (gencjneshort): return pair that still needs to be popped, restructured,
3752           (gencjne, genCmpEq): call _pop
3753
3754 2007-02-23 Raphael Neider <rneider AT web.de>
3755
3756         * device/include/pic/pic14devices.txt: 16f684 has only one config word
3757
3758 2007-02-22 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3759
3760         * device/include/mcs51/P89LPC925.h: Added.
3761
3762 2007-02-18 Raphael Neider <rneider AT web.de>
3763
3764         * src/pic/glue.c (emitInitVal): fixed #1659894 (SIGSEGV on arrays)
3765
3766 2007-02-17 Borut Razem <borut.razem AT siol.net>
3767
3768         * support/cpp2/directives.c, support/cpp2/version.c:
3769           synchronized with GCC CPP 4.1.2
3770
3771 2007-02-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3772
3773         * src/mcs51/rtrack.h,
3774         * src/mcs51/rtrack.c: added register tracking for the mcs51 port,
3775           by checking the strings passed by emitcode() to the assembler.
3776           Feel free to change. This in part addresses RFE #482179.
3777           Set environment variable SDCC_RTRACK to enable.
3778         * src/mcs51/gen.c: inserted hooks
3779         * src/mcs51/ralloc.h: added two members to struct regs
3780         * support/regression/tests/regtrack.c: added
3781
3782 2007-02-14 Borut Razem <borut.razem AT siol.net>
3783
3784         * src/SDCC.y: fixed bug #1291133: duplicate members across enum(s)
3785         * Makefile.in: applied patch from Makefile related part of
3786           #1469393: Compiler does not initialize static data
3787
3788 2007-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
3789
3790         * src/SDCCicode.c (geniCodeAssign): return (itemp) right instead of left
3791           for better fix of bug 1273984, compiles pic16 rand.c
3792
3793 2007-02-12 Borut Razem <borut.razem AT siol.net>
3794
3795         * src/pic16/main.c: fixed pic16 standard library directory bug
3796
3797 2007-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
3798
3799         * src/hc08/gen.c (genSwap): fix swap regression test
3800
3801 2007-02-10 Borut Razem <borut.razem AT siol.net>
3802
3803         * src/SDCCsymt.c: fixed bug #1159134: invalid duplicate declarations
3804           with same scope
3805         * support/regression/tests/bug-1654060.c: added regression test for
3806           #1654060
3807
3808 2007-02-09 Bernhard Held <bernhard AT bernhardheld.de>
3809
3810         * src/mcs51/gen.c (genRet): fixed RFE 1652561: added code for bit to
3811         bit moves in return statement
3812
3813 2007-02-09 Borut Razem <borut.razem AT siol.net>
3814
3815         * src/SDCC.y: fixed bug #1654060 typedef within function causes
3816           syntax error
3817
3818 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
3819
3820         * src/mcs51/gen.c (aopPut): use direct name for pushing registers
3821         * src/SDCCmain.c (parseCmdLine): dbuf_s path must be initialised
3822
3823 2007-02-07 Raphael Neider <rneider AT web.de>
3824
3825         * src/pic16/devices.inc,
3826         * device/include/pic16/pic18fregs.h,
3827         * device/include/pic16/pic18f[24][34]31.h,
3828         * device/lib/pic16/libdev/pic18f[24][34]31.c,
3829         * device/lib/pic16/pics.all: added 18f[24][34]31 family
3830         * device/lib/pic16/libio/i2c.ignore: do not build i2c
3831
3832 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
3833
3834         * device/lib/printf_large.c (_print_format): fixed compare/assign bug, how
3835           can this have lived here for so many years?
3836         * src/SDCCicode.c (ast2iCode): return left instead of right for assignment,
3837           fixes bug 1273984, see also patch 1645121, thanks Gnther Jehle
3838         * support/regression/tests/bug1273984.c: new, added, thanks Gnther Jehle
3839
3840 2007-02-06 Bernhard Held <bernhard AT bernhardheld.de>
3841
3842         * src/SDCCBlock.c (addiCodeToeBBlock): fixed bug 1652207: GOTO icodes
3843         appended by loop induction must be at the very end of the eBBlock
3844
3845 2007-02-05 Kevin Vigor
3846
3847         * src/ds390/gen.c, src/ds390/main.c: Address bug 1469393.
3848
3849 2007-02-05 Borut Razem <borut.razem AT siol.net>
3850
3851         * support/regression/fwk/lib/timeout.c: native WIN32 port,
3852           implemented #1651830 Reg. tests: rewrite timeout.c to use WIN32 API
3853
3854 2007-02-03 Borut Razem <borut.razem AT siol.net>
3855
3856         * src/SDCC.y, src/SDCCmain.c, src/SDCCglobl.h, doc/sdccman.lyx:
3857           applied patch #1646602 option to set default signedness of char to
3858           unsigned, added -funsigned-char command line option,
3859           thanks to Gunther Jehle
3860         * device/lib/Makefile.in: added the -f option to rm so it doesn't
3861           prompt for file deletion a few hundred times (especially the
3862           subversion files, which have ro permissions so it asks for
3863           confirmation), thanks to Simon McAuliffe;
3864           added {} + option to find in order to remove multiple files from a
3865           single rm commad
3866
3867 2007-02-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3868
3869         * device/include/mcs51/SST89x5xRDx.h: Added.
3870
3871 2007-02-02 Raphael Neider <rneider AT web.de>
3872
3873         * src/pic/glue.c (emitSymbolSet): check sym->etype before use
3874         * src/regression/Makefile: use --no-pcode-opt, ignore failing tests
3875
3876 2007-02-01 Raphael Neider <rneider AT web.de>
3877
3878         * src/pic/glue.c (picglue,emitSymbolSet,showAllMemmaps): emit the
3879           config words again
3880
3881 2007-01-31 Borut Razem <borut.razem AT siol.net>
3882
3883         * support/Util/dbuf_string.h: added ATTRIBUTE_PRINTF to dbuf_printf()
3884           if compiled with GCC. Thanks to Raphael Neider
3885
3886 2007-01-31 Raphael Neider <rneider AT web.de>
3887
3888         * src/pic/pcode.c (isValidIdChar,bankCompare): fuzzy matching of
3889             operand names, handles name and (name + n) for all n,
3890           (sameBank): restructured, also check bank allocation policy,
3891         * src/pic/glue.c (emitPseudoStack): fixed printf arguments,
3892           (pic14_operandsAllocatedInSameBank): check whether to operands
3893             will be allocated into the same bank (i.e., section) to reduce
3894             BANKSEL overhead, queried from pcode.c:sameBank,
3895           (pic14printLocals): reintroduced clustering registers into a single
3896             section: all compiler generated symbols will now reside in one
3897             bank (per file), reducing BANKSEL overhead and code size,
3898           (showAllMemmaps): use local dbuf where possible
3899
3900 2007-01-29 Raphael Neider <rneider AT web.de>
3901
3902         * src/pic/gen.c (popGetExternal): simplified, mark symbol as used,
3903           (call_libraryfunc): retrieve/create symbol and mark as used,
3904           (genFunction): mark defined functions as non-extern and add again
3905            to code memmap for later output
3906         * src/pic/glue.c (emitPseudoStack): put into own subroutine,
3907           (pic14printLocals): reworked for new symbol emission,
3908           (emitIfNew,pic14_constructAbsMap,emitIvalLabel,emitIvals,emitInitVal,
3909           showAllMemmaps): reworked symbol output using dbufs, added handling
3910             of string literals (still incomplete),
3911           (picglue): removed symbol emission, moved into showAllMemmaps,
3912           (emitSymbolSet): new workhorse for symbol output,
3913           (pic14emitMaps,pic14printPublics,pic14printExterns): commented out
3914
3915 2007-01-29 Borut Razem <borut.razem AT siol.net>
3916
3917         * src/SDCCmain.c, src/SDCCutil.c: dbuf_splitFile: file extension
3918           component contains the extension separator.
3919
3920 2007-01-28 Borut Razem <borut.razem AT siol.net>
3921
3922         * sim/ucsim/cmd.src/cmdutil.cc: NUL device is detected as CG_FILE type
3923           on WIN32
3924         * src/SDCCdwarf2.c, src/SDCCglobl.h, src/SDCCmain.c, src/SDCCutil.c,
3925           src/SDCCutil.h, src/avr/gen.c, src/ds390/gen.c, src/hc08/gen.c,
3926           src/mcs51/gen.c, src/pic/device.c, src/pic/gen.c, src/pic/pcode.c,
3927           src/pic/pcodepeep.c, src/pic/ralloc.c, src/pic16/device.h,
3928           src/pic16/gen.c, src/pic16/main.c, src/pic16/pcode.c,
3929           src/pic16/pcodepeep.c, src/pic16/ralloc.c, src/xa51/gen.c,
3930           src/z80/gen.c, support/Util/MySystem.c:
3931           accept slash and backslash as directory separator on WIN32 and
3932           Cygwin ports
3933
3934 2007-01-28 Raphael Neider <rneider AT web.de>
3935
3936         * src/pic16/devices.inc,
3937         * device/include/pic16/pic18f[24][23]21.h,
3938         * device/include/pic16/pic18fregs.h,
3939         * device/lib/pic16/libdev/pic18f[24][23]21.c,
3940         * device/lib/pic16/pics.all: added support for the 18f[24][23]21 family
3941         * device/lib/pic16/libio/adc.ignore,
3942         * device/lib/pic16/libio/i2c.ignore,
3943         * device/lib/pic16/libio/usart.ignore: do not build I/O lib for new
3944           family, as gputils do not yet support the devices
3945         * device/lib/pic16/Makefile.subdir: ignore errors on install
3946         * support/scripts/inc2h-pic16.pl: script to generate pic16 device
3947           headers and libraries from gputils .inc files
3948
3949 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
3950
3951         * doc/sdccman.lyx: add printf_fast_f precision limitation note
3952
3953 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
3954
3955         * doc/sdccman.lyx: add printf benchmarks
3956
3957 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
3958
3959         * device/lib/printf_fast.c: fix %c, char promoted to int
3960         * device/lib/printf_tiny.c: fix %c, char promoted to int
3961
3962 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
3963
3964         * device/lib/printf_fast.c: fix float overflow check, bug #1525093
3965
3966 2007-01-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3967
3968         * support/regression/tests/swap.c: 64 bit hosts failed
3969         * doc/sdccman.lyx: added preliminary mcs51 printf feature matrix
3970
3971 2007-01-25 Raphael Neider <rneider AT web.de>
3972
3973         * src/pic/pcode.c (sameBank,FixRegisterBanking): optimize banksels
3974           based on absolute register address, patch by Alex Blond
3975
3976 2007-01-22 Raphael Neider <rneider AT web.de>
3977
3978         * src/pic/glue.c (pic14emitRegularMap): mark initialized symbols as
3979           emitted, do not emit them again...
3980
3981 2007-01-22 Raphael Neider <rneider AT web.de>
3982
3983         * src/regression/bank1.c, src/regression/compare6.c,
3984           src/regression/add.c: cosmetic changes
3985         * src/pic/pcode.h: moved GPTRTAG_* here from gen.c
3986         * src/pic/gen.c: fixed global zero and one,
3987           (aopForSym): removed unued code,
3988           (aopGet): assert aop is defined, check and use `index' of
3989             pCodeImmd operands (fixes #1630908),
3990         * src/pic/pcode.c (get_op): added output of generic pointer tag,
3991           (register_reassign): prevent accidental register unification,
3992           (ReuseReg): cosmetic changes (also above)
3993         * src/pic/glue.c (pic14_constructAbsMap,pic14emitRegularMap,
3994           pic14emitStaticSeg): do not emit initialized data,
3995           (printIval*): replaced with working versions,
3996           (pic14createInterruptVect,picglue): use idata for initialized data,
3997             now init data should work in all modules (not only main()),
3998         * device/lib/pic/libsdcc/idata.c: NEW, handle initialized data
3999
4000 2007-01-21 Borut Razem <borut.razem AT siol.net>
4001
4002         * sim/ucsim/configure.in: introduced macro DD_COPT_NO_IGNORE,
4003           use -fPIC or -fpic if they are supported and not ignored
4004         * src/SDCCval.c: fixed bug introduced by me in rev. #4577
4005         * support/cpp2/libcpp/lex.c: fixed gcc 4.1.1 warnings
4006
4007 2007-01-20 Borut Razem <borut.razem AT siol.net>
4008
4009         * src/SDCC.lex, src/SDCCmain.c, sdc/SDCCglobl.h, doc/sdccman.lyx:
4010           implemented RFE #1470316: allow "$" in variable names
4011
4012 2007-01-20 Raphael Neider <rneider AT web.de>
4013
4014         * device/include/pic/pic14regs.h: reverted accidental wipe of the file
4015
4016 2007-01-20 Raphael Neider <rneider AT web.de>
4017
4018         * device/lib/pic/libdev/devices.txt: device list for mkall.sh
4019         * device/lib/pic/libdev/mkall.sh: script to rebuild all device libs
4020         * device/lib/pic/libdev/pic14ports.txt: device PORT specifications
4021         * support/scripts/inc2h.pl: fixed major .inc parsing bugs,
4022           applied patch from Robert Tate (#1629249) to add PORTs and TRISs
4023         * device/lib/pic/libdev/pic*.c,
4024         * device/include/pic/pic*.h: regenerated with enhanced inc2h.pl
4025         * device/lib/pic/libdev/Makefile.in: show progress
4026
4027 2007-01-19 Bernhard Held <bernhard AT bernhardheld.de>
4028
4029         * doc/sdccman.lyx: updated "configure options" for autoconf 2.6
4030         * support/scripts/sdcc_cygwin_mingw32,
4031         * support/scripts/sdcc_mingw32,
4032         * support/scripts/build.mak: replaced --datadir by --datarootdir for
4033         conformance with autoconf 2.6
4034
4035 2007-01-19 Raphael Neider <rneider AT web.de>
4036
4037         * src/pic/device.c (register_map): fixed list construction
4038         * src/pic/gen.c (genDivOneByte,genModOneByte): accept result > 1 byte,
4039           (genMod): removed case for genModbits,
4040           (genModbits): removed as now unused/unimplemented
4041         * src/pic/glue.c (picglue): prevent name clash with sources 'init.c'
4042
4043 2007-01-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4044
4045         * support/regression/tests/swap.c: added in response to #1638622
4046         * doc/sdccman.lyx: synced version, minor changes
4047
4048 2007-01-18 Borut Razem <borut.razem AT siol.net>
4049
4050         * SDCClabel.c: fixed bug #1638651: wrong linenumber presented in warning,
4051           thanks to Gunther Jehle
4052         * src/asm.c: don't die if the file drfined in #line couldn't be opened
4053         * src/SDCC.lex, src/SDCCglobal.h, src/SDCCicode.c, src/SDCCsymt.c,
4054           src/SDCCval.c: removed redundant definitions of currFname and mylineno;
4055           use filename in lineno instead.
4056         * SDCCast.c: removed MSVC warning C4018: '==' : signed/unsigned mismatch,
4057           print the file name in ast_print()
4058
4059 2007-01-18 Borut Razem <borut.razem AT siol.net>
4060
4061         * support/Util/dbuf_string.c: removed (PTR) cast since it is not
4062           defined in MSVC
4063         * src/SDCC.lex: stringLiteral() returns const char pointer,
4064           EOF detection in stringLiteral(), fixed asmbuf memory leak,
4065           fixed column counting
4066         * src/SDCCval.[ch]: constVal(), value *strVal() and charVal()
4067           accept const char pointer as parameter
4068         * src/SDCCdwarf2.c: corrected buffer size
4069
4070 2007-01-17 Borut Razem <borut.razem AT siol.net>
4071
4072         * support/Util/dbuf_string.c: fixed for amd64
4073
4074 2007-01-15 Borut Razem <borut.razem AT siol.net>
4075
4076         * src/pic16/ralloc.c, src/pic/ralloc.c, src/SDCC.y:
4077           removed terminal symbol ELIPSIS, since it was never generated by the
4078           lexer and it was wrongly used in parameter_identifier_list rule
4079
4080 2007-01-15 Raphael Neider <rneider AT web.de>
4081
4082         * doc/sdccman.lyx: updated PIC14/16 command line args, updated PIC14
4083             code page and data banking description
4084         * src/pic/genarith.c,
4085         * src/pic/gen.h: removed bit arithmetic functions,
4086             updated exit(1) to exit(EXIT_FAILURE)
4087         * device/lib/pic16/libsdcc/stack/stack.S: default to 256 byte stack
4088         * device/include/pic16/pic18f2455.h,
4089         * device/lib/pic16/libdev/pic18f2455.c: added PORTD, LATD, LATE,
4090             TRISD and TRISE, fixed/added some bit names
4091         * device/lib/pic16/libdev/pic18f{2550,4550,4455}.c,
4092         * device/include/pic16/pic18f{2550,4550,4455}.h: simply include
4093             updated pic18f2455.{c,h} instead of duplicating them
4094
4095 2007-01-14 Borut Razem <borut.razem AT siol.net>
4096
4097         * as/mcs51/asnoice.c, as/hc08/asnoice.c: fixed bug #1447412:
4098           Cannot debug files that contain spaces in the path name
4099           by converting spaces in asm file name to underscores
4100
4101 2007-01-13 Borut Razem <borut.razem AT siol.net>
4102
4103         * doc/sdccman.lyx: fixed format errors
4104
4105 2007-01-10 Borut Razem <borut.razem AT siol.net>
4106
4107         * src/SDCC.lex, src/SDCCmain.c: fixed bug #1631895:
4108           codeseg/constseg #pragma fail
4109         * suppoprt/cpp2/Makefile.bcc: reenable Borland C compilation
4110         * suppoprt/cpp2/configure.in, suppoprt/cpp2/libcpp/lex.c,
4111           suppoprt/cpp2/Makefile.in, suppoprt/cpp2/sdcpp-opts,
4112           suppoprt/cpp2/sdcpp.[ch]: house cleaning
4113
4114 2007-01-09 Borut Razem <borut.razem AT siol.net>
4115
4116         * get rid of diagnistic.[ch], pretty-print.[ch],
4117           c-pretty-print.[ch], ... used just for error, warning, ...
4118           message formatting
4119         * suppoprt/cpp2/pretty-print.[ch], suppoprt/cpp2/diagnostic.[ch],
4120           suppoprt/cpp2/diagnostic.def, suppoprt/cpp2/input.h,
4121           suppoprt/cpp2/pretty-print.[ch]:
4122           removed
4123         * suppoprt/cpp2/Makefile.in, suppoprt/cpp2/opts.c,
4124           suppoprt/cpp2/sdcpp-opts.c, suppoprt/cpp2/sdcpp.[ch],
4125           suppoprt/cpp2/sdcpp.dsp:
4126           changed
4127
4128 2007-01-08 Maarten Brock <sourceforge.brock AT dse.nl>
4129
4130         * device/lib/printf_large.c (output_float): removed recursion,
4131           use smaller buffer on stack for mcs51,
4132           fixed bug printing 1.96
4133         * support/regression/tests/snprintf.c: added test
4134
4135 2007-01-07 Borut Razem <borut.razem AT siol.net>
4136
4137         * use dynamic memory buffers instead temporary files
4138         * support/Util/dbuf_string.c, support/Util/dbuf_string.h:
4139           added
4140         * src/Makefile.in, src/SDCC.lex, src/SDCCast.c, src/SDCCast.h,
4141           src/SDCCcse.c, src/SDCCglobl.h, src/SDCCglue.c, src/SDCCglue.h,
4142           src/SDCCicode.c, src/SDCCicode.h, src/SDCCmain.c, src/SDCCmem.c,
4143           src/SDCCmem.h, src/SDCCpeeph.c, src/SDCCpeeph.h, src/SDCCsymt.c,
4144           src/SDCCsymt.h, src/SDCCutil.c, src/asm.c, src/asm.h, src/avr/gen.c,
4145           src/avr/main.c, src/ds390/gen.c, src/ds390/main.c, src/hc08/gen.c,
4146           src/hc08/main.c, src/izt/gen.c, src/mcs51/gen.c, src/mcs51/main.c,
4147           src/pic/device.c, src/pic/gen.c, src/pic/glue.c, src/pic/main.c,
4148           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/glue.c,
4149           src/pic16/main.c, src/pic16/ralloc.c, src/port.h, src/src.dsp,
4150           src/xa51/gen.c, src/xa51/main.c, src/z80/gen.c, src/z80/main.c,
4151           support/Util/dbuf.c, support/Util/dbuf.h:
4152           modified
4153         * .version, sdcc.spec: bumped version to 2.6.4
4154
4155 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
4156
4157         * src/port.h: added TARGET_Z80_LIKE macro
4158         * src/SDCCmain.c (linkEdit): use TARGET_Z80_LIKE,
4159           output PSEG location if --xram-loc or --xstack-loc was used
4160         * as/link/mcs51/lkarea.c (lnksect2): set segment address afterwards
4161
4162 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
4163
4164         * as/as_gbz80.dsp, as/z80/as_gbz80.dsp,
4165         * as/as_z80.dsp,   as/z80/as_z80.dsp,
4166         * as/asx8051.dsp,  as/mcs51/asx8051.dsp,
4167         * sdcc.dsw: moved project files into subdir
4168         * as/hc08/as_hc08.dsp,
4169         * as/hc08/Makefile.bcc,
4170         * as/hc08/Makefile.in,
4171         * as/mcs51/Makefile.bcc,
4172         * as/mcs51/Makefile.in,
4173         * as/z80/Makefile.bcc,
4174         * as/z80/Makefile.in,
4175         * as/link/mcs51/Makefile.bcc: use as/strcmpi.c
4176         * as/hc08/asm.h,
4177         * as/mcs51/asm.h,
4178         * as/z80/asm.h: added as_strcmpi() and as_strncmpi() prototypes
4179         * as/hc08/asmain.c,
4180         * as/hc08/assym.c,
4181         * as/mcs51/asmain.c,
4182         * as/mcs51/assym.c,
4183         * as/z80/assym.c: removed include "strcmpi.h"
4184         * as/hc08/strcmpi.c,
4185         * as/hc08/strcmpi.h,
4186         * as/mcs51/strcmpi.c,
4187         * as/mcs51/strcmpi.h,
4188         * support/Util/strcmpi.c,
4189         * support/Util/strcmpi.h: removed files
4190         * as/strcmpi.c: added as_strncmpi()
4191
4192 2007-01-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4193
4194         * sdcc.dsw: Added some dependencies on project config.dsp
4195
4196 2007-01-05 Maarten Brock <sourceforge.brock AT dse.nl>
4197
4198         * as/link/mcs51/lkarea.c (lnkarea2, lnksect2): replaced [di]seg_ap->a_addr
4199           with [di]ram_start to fix a regresion
4200
4201 2007-01-03 Bernhard Held <bernhard AT bernhardheld.de>
4202
4203         * configure.in: added missing mcs51 in status output
4204         * Makefile.in: add support/regression to SDCC_EXTRA to distclean this
4205         directory
4206         * debugger/mcs51/clean.mk (distclean): remove config.h
4207         * src/clean.mk (clean): remove SDCCy.c, SDCCy.h, SDCClex.c
4208         * support/cpp2/Makefile.in (clean): remove s-options, optionlist,
4209         options.h, s-options-h and options.c
4210         * support/cpp2/clean.mk: unused, removed
4211         * Makefile.common.in,
4212         * main_in.mk,
4213         * as/Makefile.in,
4214         * as/hc08/Makefile.in,
4215         * as/hc08/clean.mk,
4216         * as/mcs51/Makefile.in,
4217         * as/mcs51/clean.mk,
4218         * as/z80/clean.mk,
4219         * as/z80/conf.mk,
4220         * as/z80/Makefile.in,
4221         * as/z80/clean.mk,
4222         * as/link/Makefile.in,
4223         * as/link/hc08/Makefile.in,
4224         * as/link/hc08/clean.mk,
4225         * as/link/mcs51/Makefile.in,
4226         * as/link/mcs51/clean.mk,
4227         * as/link/z80/Makefile.in,
4228         * as/link/z80/clean.mk,
4229         * as/link/z80/conf.mk,
4230         * debugger/mcs51/Makefile.in,
4231         * debugger/mcs51/clean.mk,
4232         * device/include/Makefile.in,
4233         * device/lib/Makefile.in,
4234         * device/lib/mcs51/Makefile.in,
4235         * device/lib/pic/Makefile.in,
4236         * device/lib/pic/Makefile.common.in,
4237         * device/lib/pic/Makefile.subdir,
4238         * device/lib/pic/Makefile.rules,
4239         * device/lib/pic16/libio/Makefile.in,
4240         * device/lib/pic16/Makefile.subdir,
4241         * device/lib/pic16/libdev/Makefile.in,
4242         * device/lib/pic16/Makefile.rules,
4243         * device/lib/pic16/Makefile.common.in,
4244         * sim/ucsim/avr.src/Makefile.in,
4245         * sim/ucsim/main_in.mk,
4246         * sim/ucsim/cmd.src/Makefile.in,
4247         * sim/ucsim/doc/Makefile.in,
4248         * sim/ucsim/gui.src/Makefile.in,
4249         * sim/ucsim/gui.src/obsolete/portmon.src/Makefile.in,
4250         * sim/ucsim/gui.src/serio.src/Makefile.in,
4251         * sim/ucsim/hc08.src/Makefile.in,
4252         * sim/ucsim/libltdl/Makefile.in,
4253         * sim/ucsim/s51.src/Makefile.in,
4254         * sim/ucsim/sim.src/Makefile.in,
4255         * sim/ucsim/sim.src/conf.mk,
4256         * sim/ucsim/xa.src/Makefile.in,
4257         * sim/ucsim/z80.src/Makefile.in,
4258         * src/Makefile.in,
4259         * src/clean.mk,
4260         * src/port.mk,
4261         * support/cpp2/Makefile.in,
4262         * support/librarian/Makefile.in,
4263         * support/librarian/clean.mk,
4264         * support/makebin/Makefile.in,
4265         * support/makebin/clean.mk,
4266         * support/packihx/Makefile.in,
4267         * support/regression/Makefile.in,
4268         * support/regression/ports/ds390/spec.mk,
4269         * support/regression/ports/gbz80/spec.mk,
4270         * support/regression/ports/hc08/spec.mk,
4271         * support/regression/ports/mcs51/spec.mk,
4272         * support/regression/ports/mcs51-large/spec.mk,
4273         * support/regression/ports/mcs51-medium/spec.mk,
4274         * support/regression/ports/mcs51-xstack-auto/spec.mk,
4275         * support/regression/ports/pic14/spec.mk,
4276         * support/regression/ports/pic16/spec.mk,
4277         * support/regression/ports/mcs51-stack-auto/spec.mk,
4278         * support/regression/ports/ucz80/spec.mk,
4279         * support/regression/ports/xa51/spec.mk,
4280         * support/regression/ports/z80/spec.mk: fixed for autoconf 2.6x by
4281         adding a slash after $(top_builddir) and/or adding @datarootdir@
4282         * configure.in,
4283         * debugger/mcs51/configure.in,
4284         * device/lib/pic/configure.in,
4285         * device/lib/pic16/configure.in,
4286         * sim/ucsim/configure.in,
4287         * support/cpp2/configure.in,
4288         * support/packihx/configure.in: changed AC_PREREQ to 2.60
4289         * configure,
4290         * debugger/mcs51/configure,
4291         * device/lib/pic/configure,
4292         * device/lib/pic16/configure,
4293         * sim/ucsim/configure,
4294         * support/cpp2/configure,
4295         * support/packihx/configure: generated with autoconf 2.60
4296
4297 2007-01-02 Maarten Brock <sourceforge.brock AT dse.nl>
4298
4299         * as/link/hc08/lkihx.c (newArea),
4300         * as/link/hc08/lkrloc.c: renamed newArea() to ihxNewArea()
4301
4302 2007-01-02 Borut Razem <borut.razem AT siol.net>
4303
4304         * doc/sdccman.lyx: documented #pragma sdcc_hash
4305         * support/cpp2/sdcpp.c: allow_naked_hash (value of #pragma sdcc_hash)
4306           initialized to 0
4307         * support/cpp2/c-ppoutput.c: fixed warning: no newline at end of file
4308
4309 2007-01-01 Bernhard Held <bernhard AT bernhardheld.de>
4310
4311         * src/SDCCast.c (createDo): backPatchLabels() needs falseLabel in
4312         empty 'while'-loop to work correctly, see regression test 'while.c'
4313         * support/regression/tests/while.c: added
4314
4315 2007-01-01 Borut Razem <borut.razem AT siol.net>
4316
4317         * support/cpp2/libcpp/directives.c, support/cpp2/libcpp/identifiers.c,
4318           support/cpp2/libcpp/init.c, support/cpp2/libcpp/sdcpp-opts.c,
4319           support/cpp2/libcpp/sdcpp.c:
4320           sdcpp specific pragma/directive/option handling moved to sdcpp.c
4321         * doc/sdccman.lyx: reference to the GCC 4.1.1 CPP Manual
4322         * support/cpp2/libcpp/mkdeps.c: synchronized with GCC CPP 4.1.1
4323
4324 2006-12-31 Borut Razem <borut.razem AT siol.net>
4325
4326         * SDCPP synchronized with GCC CPP release version 4.1.1,
4327           currently the latest release:
4328         * support/cpp2/libcpp, support/cpp2/libcpp/include,
4329           support/cpp2/libcpp/include/cpp-id-data.h
4330           support/cpp2/libiberty/fopen_unlocked.c
4331           support/cpp2/libiberty/md5.c
4332           support/cpp2/md5.h
4333           support/cpp2/opt-functions.awk
4334           support/cpp2/opt-gather.awk
4335           support/cpp2/optc-gen.awk
4336           support/cpp2/opth-gen.awk:
4337           added
4338         * support/cpp2/Makefile.in, support/cpp2/auto-host_vc_in.h,
4339           support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
4340           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
4341           support/cpp2/c-pretty-print.h, support/cpp2/cppdefault.c,
4342           support/cpp2/cppdefault.h, support/cpp2/diagnostic.c,
4343           support/cpp2/diagnostic.h, support/cpp2/except.h,
4344           support/cpp2/hwint.h, support/cpp2/input.h,
4345           support/cpp2/intl.h, support/cpp2/move-if-change,
4346           support/cpp2/opts.c, support/cpp2/opts.h,
4347           support/cpp2/output.h, support/cpp2/prefix.c,
4348           support/cpp2/prefix.h, support/cpp2/pretty-print.c,
4349           support/cpp2/pretty-print.h, support/cpp2/sdcpp-opts.c,
4350           support/cpp2/sdcpp.c, support/cpp2/sdcpp.dsp,
4351           support/cpp2/sdcpp.h, support/cpp2/sdcpp.opt,
4352           support/cpp2/sdcppa.dsp, support/cpp2/symcat.h,
4353           support/cpp2/version.c:
4354           modified
4355         * support/cpp2/libcpp/charset.c, support/cpp2/libcpp/directives.c,
4356           support/cpp2/libcpp/errors.c, support/cpp2/libcpp/expr.c,
4357           support/cpp2/libcpp/files.c, support/cpp2/libcpp/identifiers.c,
4358           support/cpp2/libcpp/include/cpplib.h, support/cpp2/libcpp/include/line-map.h,
4359           support/cpp2/libcpp/include/mkdeps.h, support/cpp2/libcpp/include/symtab.h,
4360           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
4361           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/line-map.c,
4362           support/cpp2/libcpp/macro.c, support/cpp2/libcpp/mkdeps.c,
4363           support/cpp2/libcpp/symtab.c, support/cpp2/libcpp/system.h,
4364           support/cpp2/libcpp/traditional.c, support/cpp2/libcpp/ucnid.h,
4365           support/cpp2/libiberty/hashtab.c, support/cpp2/libiberty/hashtab.h:
4366           moved
4367         * support/cpp2/cppcharset.c, support/cpp2/cpperror.c,
4368           support/cpp2/cppexp.c, support/cpp2/cppfiles.c,
4369           support/cpp2/cpphash.c, support/cpp2/cpphash.h,
4370           support/cpp2/cppinit.c, support/cpp2/cpplex.c,
4371           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
4372           support/cpp2/cppmacro.c, support/cpp2/cpptrad.c,
4373           support/cpp2/cppucnid.h, support/cpp2/hashtab.c,
4374           support/cpp2/hashtab.h, support/cpp2/hashtable.c,
4375           support/cpp2/hashtable.h, support/cpp2/line-map.c,
4376           support/cpp2/line-map.h, support/cpp2/mkdeps.c,
4377           support/cpp2/mkdeps.h, support/cpp2/options_vc_in.c,
4378           support/cpp2/options_vc_in.h, support/cpp2/opts.sh,
4379           support/cpp2/system.h:
4380           deleted / moved
4381
4382 2006-12-31 Borut Razem <borut.razem AT siol.net>
4383
4384         * configure.in, configure: fixed bug #1538756: configure dies if bison
4385           and flex are not installed, 2nd try
4386
4387 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
4388
4389         * src/mcs51/peeph.def: renamed rule 400 to 500, moved rule 253.x to
4390         400.x for better code in RFE 899102
4391
4392 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
4393
4394         * src/SDCCpeeph.c (deadMove),
4395         * src/port.h,
4396         * src/mcs51/peep.h: renamed 'op' by 'reg'
4397         * src/mcs51/peep.c (isFunc, isCallerSaveFunc): added,
4398         (scan4op): small change for removeDeadMove(), added support for
4399         'callee saves' and/or PACLL function calls,
4400         (removeDeadMove): added, removes superflous 'mov r%1,%2',
4401         (removeDeadPopPush): renamed from mcs51DeadMove(), common parts
4402         left in new dispatcher mcs51DeadMove()
4403         (mcs51DeadMove): dispatcher for removeDeadPopPush() and new
4404         removeDeadMove()
4405         * src/mcs51/peeph.def: added rule 301 removing superflous 'mov r%1,%2'
4406
4407 2006-12-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4408
4409         * support/cpp2/options_vc_in.h, support/cpp2/options_vc_in.c,
4410           support/cpp2/sdcppa.dsp: create 'options.h' and 'options.c' under MSVC.
4411
4412 2006-12-30 Borut Razem <borut.razem AT siol.net>
4413
4414         * support/cpp2/spacs.h: deleted from svn
4415         * configure.in, configure: fixed bug #1538756: configure dies if bison
4416           and flex are not installed
4417
4418 2006-12-29 Maarten Brock <sourceforge.brock AT dse.nl>
4419
4420         * src/z80/gen.c (assignResultValue): fixed bug when registers overlap,
4421           with this z80 passes printf float test when enabled
4422         * support/regression/tests/bug1057979.c: typo disabled ds390 float test
4423
4424 2006-12-28 Borut Razem <borut.razem AT siol.net>
4425
4426         * support/cpp2/config.in, support/cpp2/configure.in,
4427           support/cpp2/configure, support/cpp2/Makefile.in:
4428           fix for the solaris build
4429
4430 2006-12-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4431
4432         * src/SDCC.y (type_specifier2, pointer),
4433         * src/SDCCsymt.h,
4434         * src/SDCCsymt.c (mergeSpec, checkSClass),
4435         * support/Util/SDCCerr.c,
4436         * support/Util/SDCCerr.h: Parse and validate the restrict keyword
4437         * support/valdiag/valdiag.py: Allow test cases to specify
4438           required language standard
4439         * support/valdiag/tests/restrict.c: New file to test restrict keyword
4440         * support/valdiag/tests/tentdecl.c: Supress empty source file error
4441
4442 2006-12-27 Borut Razem <borut.razem AT siol.net>
4443
4444         * support/cpp2/cppmain.c, support/cpp2/mbchar.[ch]: removed
4445         * support/cpp2/libiberty/Makefile.in, support/cpp2/libiberty/sdcpp.dsp:
4446           mbchar removed
4447         * support/cpp2/libiberty/getpwd.c, support/cpp2/sdcpp.h:
4448           fixed for borland C
4449         * support/cpp2/libiberty/Makefile.bcc: updated
4450         * src/pic16/main.c: fixed #pragma udata handling
4451         * src/mcs51/mcs51.dsp: added peep.[ch] to the project
4452
4453 2006-12-26 Bernhard Held <bernhard AT bernhardheld.de>
4454
4455         * src/SDCCpeeph.c: made labelHashEntry global,
4456         made pcDistance, FBYNAME static,
4457         (pcDistance): made static, use isComment and isLabel,
4458         (deadMove): added,
4459         (getLabelRef): added, extracted from labelRefCount(),
4460         (labelRefCount): use new getLabelRef(),
4461         (callFuncByName): made static, added deadMove,
4462         use isComment and isLabel,
4463         (newPeepRule): made static, set isLabel,
4464         (isLabelDefinition): added parameter isPeepRule to allow '%' in
4465         labels from peephole rules,
4466         (buildLabelRefCountHash): speed up by running isLabelDefinition() only
4467         when isComment or isLabel is set
4468         * src/SDCCpeeph.h: added "isLabel" and "visited" to struct lineNode,
4469         added labelHashEntry, isLabelDefinition, labelHash and getLabelRef
4470         to make them global
4471         * src/mcs51/peep.h: added
4472         * src/mcs51/peep.c: added, implements mcs51DeadMove()
4473         * src/port.h: added peep->deadMove to port structure
4474         * src/mcs51/main.c: initialize peep->deadMove with mcs51DeadMove
4475         * src/mcs51/peeph.def: renumbered rule 300 to 400, added new rule 300
4476         deadMove, finally removed no. 1 and 2
4477         * src/mcs51/gen.c,
4478         * src/pic/gen.c,
4479         * src/z80/gen.c,
4480         * src/z80/ralloc.c,
4481         * src/pic16/gen.c,
4482         * src/ds390/gen.c,
4483         * src/hc08/gen.c: mark lines with isComment or isLabel
4484         * sim/ucsim/s51.src/uc390hw.cc: don't waist 65535 ticks before CKRDY
4485         * .version,
4486         * sdcc.spec: bumped version to 2.6.3
4487
4488 2006-12-26 Borut Razem <borut.razem AT siol.net>
4489
4490         * support/cpp2/Makefile.in: added dependency on options.h
4491         * configure: regenerated
4492         * support/cpp2/sdcpp.opt, support/cpp2/move-if-change: svn:eol-style native
4493         * support/cpp2/Makefile.in: added vasprintf.c
4494
4495 2006-12-25 Borut Razem <borut.razem AT siol.net>
4496
4497         * SDCPP synchronized with GCC CPP release version 3.4.6,
4498           the latest release before 4.x:
4499         * support/cpp2/Makefile.in, support/cpp2/config.h,
4500           support/cpp2/configure, support/cpp2/configure.in,
4501           support/cpp2/cppdefault.c, support/cpp2/cppdefault.h,
4502           support/cpp2/cpperror.c, support/cpp2/cppexp.c,
4503           support/cpp2/cppfiles.c, support/cpp2/cpphash.c,
4504           support/cpp2/cpphash.h, support/cpp2/cppinit.c,
4505           support/cpp2/cpplex.c, support/cpp2/cpplib.c,
4506           support/cpp2/cpplib.h, support/cpp2/cppmacro.c,
4507           support/cpp2/cpptrad.c, support/cpp2/except.h,
4508           support/cpp2/hashtable.c, support/cpp2/hashtable.h,
4509           support/cpp2/hwint.h, support/cpp2/intl.h,
4510           support/cpp2/line-map.c, support/cpp2/line-map.h,
4511           support/cpp2/mkdeps.c, support/cpp2/mkdeps.h,
4512           support/cpp2/output.h, support/cpp2/prefix.c,
4513           support/cpp2/prefix.h, support/cpp2/sdcpp.dsp,
4514           support/cpp2/system.h, support/cpp2/version.c:
4515           modified
4516         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
4517           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
4518           support/cpp2/c-pretty-print.h, support/cpp2/cppcharset.c,
4519           support/cpp2/cppucnid.h, support/cpp2/diagnostic.c,
4520           support/cpp2/diagnostic.def, support/cpp2/diagnostic.h,
4521           support/cpp2/hashtab.c, support/cpp2/hashtab.h,
4522           support/cpp2/input.h, support/cpp2/libiberty/getpwd.c,
4523           support/cpp2/libiberty/vasprintf.c, support/cpp2/libiberty/xmemdup.c,
4524           support/cpp2/move-if-change, support/cpp2/opts.c,
4525           support/cpp2/opts.h, support/cpp2/opts.sh,
4526           support/cpp2/pretty-print.c, support/cpp2/pretty-print.h,
4527           support/cpp2/sdcpp.opt, support/cpp2/sdcpp-opts.c,
4528           support/cpp2/win32, support/cpp2/win32/dirent.c,
4529           support/cpp2/win32/dirent.h:
4530           added
4531         * support/cpp2/sdcpp.c: renamed from sdcppmain.c
4532         * support/cpp2/sdcpp.h: renamed from sdcc.h
4533         * sdcppinit.c: deleted
4534
4535 2006-12-23 Borut Razem <borut.razem AT siol.net>
4536
4537         * support/cpp2/cpphash.h, support/cpp2/cpplex.c,
4538           support/cpp2/cpplib.[ch], support/cpp2/sdcppinit.c, doc/sdccman.lyx,
4539           preproc.c: an other try to fix bug #982435: introduced
4540           -pedantic-parse-number command line option and pedantic_parse_number
4541           pragma
4542
4543 2006-12-21 Maarten Brock <sourceforge.brock AT dse.nl>
4544
4545         * as/link/mcs51/lkarea.c (lnkarea2): handle absolute areas, restructured
4546            BSEG handling,
4547           (lnksect2): use --data-loc and --idata-loc as lower bound for ramstart,
4548            corrected overlayed areax addresses, warn about memory overlaps
4549         * as/mcs51/asmain.c (asmbl): create a new area for every .org directive
4550         * src/avr/main.c,
4551         * src/ds390/main.c,
4552         * src/hc08/main.c,
4553         * src/mcs51/main.c,
4554         * src/pic16/main.c,
4555         * src/pic/main.c,
4556         * src/xa51/main.c,
4557         * src/z80/main.c,
4558         * src/port.h: added xabs_name and iabs_name
4559         * src/SDCCglue.c (emitRegularMap): allocate for absolutes with initializer
4560           (glue, emitMaps): create and emit maps d_abs and i_abs
4561         * src/SDCCglue.h: cosmetic changes
4562         * src/SDCCmain.c (setDefaultOptions): idata can start below 0x80
4563         * src/SDCCmem.h,
4564         * src/SDCCmem.c (initMem): added x_abs, i_abs and d_abs
4565           (allocDefault): put absolute, initialized globals in them
4566         * support/regression/tests/absolute.c: added absolute bdata test
4567         * device/lib/printf_large.c (output_float): moved fpBuffer to stack/xdata
4568
4569 2006-12-20 Borut Razem <borut.razem AT siol.net>
4570
4571         * support/cpp2/cpphash.h, support/cpp2/cpplex.c: fixed bug #982435
4572         * support/regression/tests/preproc.c: renamed from bug-1351710.c,
4573           added regression test for bug #982435
4574
4575 2006-12-18 Borut Razem <borut.razem AT siol.net>
4576
4577         * src/SDCCutil.c: fixed a bug in (get_pragma_token)
4578         * src/pic16/main.c, src/SDCC.lex, src/z80/main.c:
4579           small cosmetic changes
4580         * src/SDCC.lex: (stringLiteral) fixed bug #1351710
4581         * support/regression/tests/bug-1351710.c: added regression test
4582
4583 2006-12-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4584
4585         * doc/sdccman.lyx: added the long missed iCode table
4586           "<where is figure II?>", added links to wiki
4587
4588 2006-12-17 Borut Razem <borut.razem AT siol.net>
4589
4590         * doc/sdccman.lyx, src/pic16/main.c, src/pic/main.c, src/port.h,
4591           src/SDCC.lex, src/SDCCutil.[ch], src/z80/main.c,
4592           support/Util/SDCCerr.[ch]: removed deprecated pragmas,
4593           unified table driven pragma handling, pragma argument type checking
4594         * support/Util/dbuf.c: (dbuf_set_size) allow to set size equal to the
4595           current one - version 1.1.3
4596         * src/SDCCmain.c: (setParseWithComma) substituted brain damaged strtok
4597
4598 2006-12-13 Raphael Neider <rneider AT web.de>
4599
4600         * src/pic/device.h: removed AssignedMemory structure and macros
4601         * src/pic/device.c: removed global finalMapping (linker assigns
4602             memory locations),
4603           (register_map): add SFRs to remembered memRanges
4604           (addMemRange,isSFR,dump_map,dump_sfr,mapRegister,assignRegister,
4605           assignFixedRegisters,assignRelocatableRegisters): removed,
4606           (setMaxRAM,validAddress): adapted accordingly,
4607           (pic14_hasSharebank,pic14_getSharedStack): only report and use
4608             reasonably sized sharebanks,
4609         * src/pic/ralloc.c (writeUsedRegs): stripped down (remove?),
4610           (allDefsOutOfRange): removed unused code,
4611         * src/pic/main.c (_process_pragma): removed memmap/maxram pragma
4612             handling
4613         * src/pic/pcode.c (register_reassign): removed recursion warning,
4614             fired far too often,
4615         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap): modified
4616             to use existing pic14_stringInSet() to avoid duplicate symbols,
4617             tidied up the code a bit,
4618           (pic14printLocals): added in symmetry to printExterns, replaces
4619             writeUsedRegs more or less,
4620           (picglue): call new pic14_printLocals(),
4621         * device/include/pic/pic*.h: removed #pragma memmap directives,
4622             information gathered from include/pic/pic14devices.txt
4623         * support/scripts/inc2h.pl: do not emit #pragma memmap lines
4624
4625 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
4626
4627         * device/include/mcs51/C8051F520.h: fixed buggy CPT0MX
4628
4629 2006-12-11 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4630
4631         * device/include/mcs51/cc2430.h: fixed missing ';'
4632
4633 2006-12-10 Raphael Neider <rneider AT web.de>
4634
4635         * device/lib/pic16/libc/stdio/vfprintf.c,
4636         * device/lib/pic16/libc/stdio/printf_small.c,
4637         * device/lib/pic16/libc/stdio/printf_timy.c: pop int from stack for
4638           char arguments, as char varargs are cast to int by the caller,
4639           hopefully fixes #1604915 (other device libraries are still affected)
4640
4641 2006-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4642
4643         * src/mcs51/ralloc.c (packRegsForAssign),
4644         * src/hc08/ralloc.c (packRegsForAssign): fixed bug #1605880
4645
4646 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
4647
4648         * device/include/malloc.h: removed init_dynamic_memory
4649         * device/lib/malloc.c: made init_dynamic_memory static and automatically
4650           call it once from malloc. Also use _sdcc_heap[] from _heap.c
4651         * device/lib/_heap.c: new, added, contains _sdcc_heap[]
4652         * device/lib/libsdcc.lib,
4653         * device/lib/Makefile.in,
4654         * support/regression/ports/mcs51-xstack-auto/spec.mk: added _heap.c
4655         * doc/sdccman.lyx: documented use of new _heap.c
4656         * support/regression/tests/malloc.c: removed init_dynamic_memory
4657         * src/cdbFile.c(spacesToUnderscores): new function,
4658           (cdbWriteEndFunction, cdbWriteCLine): use spacesToUnderscores, fixes bug
4659           1068030
4660         * device/include/tinibios.h: removed defines for putchar and getchar
4661         * device/lib/ds390/Makefile.in: added putchar.c
4662         * device/lib/ds390/putchar.c: new, added, fixes bug 1465671
4663
4664 2006-12-09 Borut Razem <borut.razem AT siol.net>
4665
4666         * support/cpp2/sdcc.h: prevent multiple inclusion
4667         * support/cpp2/options.h: deleted
4668
4669 2006-12-08 Borut Razem <borut.razem AT siol.net>
4670
4671         * support/cpp2/sdcc.h: removed x*alloc() macros
4672         * support/cpp2/libiberty.h: uncommented out x*alloc() declarations
4673         * support/cpp2/Makefile.bcc, support/cpp2/Makefile.in,
4674           support/cpp2/sdcpp.sdc: x*alloc files added to the project
4675         * support/cpp2/system.h: moved #include "sdcc.h"
4676         * support/cpp2/libiberty/xexit.c, support/cpp2/libiberty/xmalloc.c,
4677           support/cpp2/libiberty/xstrdup.c, support/cpp2/libiberty/xstrerror.c:
4678           added
4679         * support/cpp2/sdcppinit.c: added -isysroot, -fsigned-char,
4680           -funsigned-char options
4681         * support/cpp2/sdcppmain.c: fixed bug 1611411
4682
4683 2006-12-07 Borut Razem <borut.razem AT siol.net>
4684
4685         * support/cpp2/cpplib.c: reverted sdcpp special handling of _Pragma()
4686           directive
4687
4688 2006-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
4689
4690         * src/SDCCsymt.c (addDecl): fixed bug 1609244
4691         * src/SDCCmain.c (linkEdit): fixed bug 1609279
4692         * doc/sdccman.lyx,
4693         * .version: bumped to 2.6.2 because a) it's been a while
4694           b) the linker sources have moved c) the preprocessor is upgraded
4695
4696 2006-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4697
4698         * support/regression/tests/snprintf.c: some checks
4699         * lib/src/printf_large.c: %bc: read char instead of int from stack
4700
4701 2006-12-03 Maarten Brock <sourceforge.brock AT dse.nl>
4702
4703         * device/include/mcs51/cc2430.h: inserted _XPAGE
4704
4705 2006-12-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4706
4707         * device/include/mcs51/cc2430.h: added
4708
4709 2006-12-02 Maarten Brock <sourceforge.brock AT dse.nl>
4710
4711         * device/include/asm/default/features.h,
4712         * device/include/asm/ds390/features.h,
4713         * device/include/mcs51/at89s53.h,
4714         * device/include/ser.h,
4715         * device/include/ser_ir.h,
4716         * device/include/serial.h: changed keywords to double underscore variants,
4717           fixes bug 1590261 some more, thanks Steven Borley
4718
4719 2006-12-01 Raphael Neider <rneider AT web.de>
4720
4721         * src/pic/pcode.c (register_reassign): do not crash on recursive code
4722           but emit warning (recursion is not supported for pic14)
4723
4724 2006-11-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4725
4726         * src/mcs51/peeph.def: added 101.a,b (moves to int/long xdata)
4727         * doc/sdccman.lyx: various small changes, acknowledged Sourceforge
4728
4729 2006-11-30 Raphael Neider <rneider AT web.de>
4730
4731         * src/pic/device.c (dump_sfr): always emit symbols
4732         * src/pic/glue.c (pic14printPublics): fixed typo
4733
4734 2006-11-30 Raphael Neider <rneider AT web.de>
4735
4736         * src/pic/device.c (create_pic,ram_map): add memRange entries to PIC
4737           (pic14_getSharebankSize, pic14_getSharebankAddress): replaced with
4738           (pic14_hasSharebank,pic14_isShared,pic14_allRAMShared,
4739            pic14_getSharedStack): NEW, evaluate the memRange entries to locate
4740            a sharebank, use a non-shared bank for the stack if none available
4741         * src/pic/device.h (struct memRange): added linked list next field,
4742           added prototypes for above functions
4743         * src/pic/ralloc.c (initStack): handle shared and banked stacks,
4744           (typeRegWithIdx): accept fixed and unfixed stack registers
4745         * src/pic/pcode.c (pCodeInitRegisters): use new functions to create
4746           the stack, handle shared and banked stack (except for WSAVE),
4747           (insertBankSel): removed useless optimization (will never fire),
4748           (FixRegisterBanking): added optimization for devices with only one
4749           possibly aliased bank of memory, like 16f84
4750         * src/pic/glue.c (pic14_constructAbsMap): back to udata_ovr, as some
4751           devices have no SHAREBANK in the linker script
4752         * device/include/pic/pic14devices.txt: documented memmap
4753         * device/lib/pic/libdev/Makefile.in: removed --stack-loc again
4754
4755 2006-11-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4756
4757         * src/hc08/gen.c (transferRegReg, loadRegFromAop, forceStackedAop,
4758           storeRegToAop, freeAsmop, genPlusIncr, genPlus, genPointerGetSetOfs,
4759           genAnd, genOr, genXor, genLeftShiftLiteral, genRightShiftLiteral,
4760           genhc08Code): switched most of the D (debug) macros to DD (detailed
4761           debug) macros to better control clutter in the generated .asm file.
4762         * src/hc08/gen.c: (forceStackedAop, genUminus, genLeftShift,
4763           genRightShift): fixed bug with non-constant bit shift stored to
4764           a volatile result (SF Open Discussion forum thread #1616749).
4765           Single byte case is not yet optimized.
4766
4767 2006-11-28 Maarten Brock <sourceforge.brock AT dse.nl>
4768
4769         * device/include/asm/mcs51/features.h,
4770         * device/include/malloc.h,
4771         * device/include/stdio.h: changed keywords to double underscore variants,
4772           fixes bug 1590261
4773
4774 2006-11-27 Borut Razem <borut.razem AT siol.net>
4775
4776         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
4777           support/cpp2/Makefile.in, support/cpp2/cppfiles.c,
4778           support/cpp2/output.h, support/cpp2/cppinit.c,
4779           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
4780           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
4781           support/cpp2/cppdefault.c, support/cpp2/system.h,
4782           support/cpp2/cpphash.h, support/cpp2/cpplex.c,
4783           support/cpp2/cppdefault.h, support/cpp2/mbchar.c,
4784           support/cpp2/prefix.c, support/cpp2/except.h,
4785           support/cpp2/hwint.h, support/cpp2/cppmacro.c,
4786           support/cpp2/line-map.h, support/cpp2/sdcpp.dsp,
4787           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
4788           support/cpp2/version.c, support/cpp2/cppmain.c,
4789           support/cpp2/version.h, support/cpp2/hashtable.c,
4790           support/cpp2/cpperror.c:
4791           synchronized with GCC CPP release version 3.3.6,
4792           the latest where cppmain.c still exists.
4793         * support/cpp2/cpptrad.c, support/cpp2/sdcppmain.c,
4794           support/cpp2/sdcppinit.c: added
4795
4796 2006-11-27 Borut Razem <borut.razem AT siol.net>
4797
4798         * support/cpp2/cpplex.c:
4799           fixed _asm ... _endasm handling bug, introduce with GCC CPP
4800           synchronization
4801         * support/cpp2/cpplib.c: removed definitions of unused variables
4802
4803 2006-11-26 Borut Razem <borut.razem AT siol.net>
4804
4805         * support/cpp2/libiberty.h: commented out x*alloc() declarations
4806           since they are redefined by macros in support/cpp2/sdcc.h
4807         * support/cpp2/sdcc.h: x*alloc macro redefinition
4808
4809 2006-11-25 Borut Razem <borut.razem AT siol.net>
4810
4811         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
4812           support/cpp2/configure, support/cpp2/Makefile.in,
4813           support/cpp2/cppfiles.c, support/cpp2/output.h,
4814           support/cpp2/cppinit.c, support/cpp2/cpplib.c,
4815           support/cpp2/config.h, support/cpp2/cpplib.h,
4816           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
4817           support/cpp2/cppdefault.c, support/cpp2/config.in,
4818           support/cpp2/system.h, support/cpp2/cpplex.c,
4819           support/cpp2/cpphash.h, support/cpp2/mbchar.c,
4820           support/cpp2/cppdefault.h, support/cpp2/prefix.c
4821           support/cpp2/hwint.h, support/cpp2/mbchar.h,
4822           support/cpp2/prefix.h, support/cpp2/cppmacro.c,
4823           support/cpp2/configure.in, support/cpp2/intl.h,
4824           support/cpp2/sdcpp.dsp, support/cpp2/acconfig.h,
4825           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
4826           support/cpp2/version.c, support/cpp2/cppmain.c,
4827           support/cpp2/ansidecl.h, support/cpp2/libiberty.h,
4828           support/cpp2/hashtable.c, support/cpp2/aclocal.m4,
4829           support/cpp2/cpperror.c,
4830           support/cpp2/libiberty/safe-ctype.c,
4831           support/cpp2/libiberty/safe-ctype.h,
4832           support/cpp2/libiberty/splay-tree.c,
4833           support/cpp2/libiberty/obstack.c,
4834           support/cpp2/libiberty/lbasename.c,
4835           support/cpp2/libiberty/splay-tree.h,
4836           support/cpp2/libiberty/obstack.h:
4837           synchronized with GCC CPP release version 3.2.3,
4838           the latest before integration of cpp into gcc
4839         * support/cpp2/except.h, support/cpp2/line-map.c,
4840           support/cpp2/line-map.h,
4841           support/cpp2/libiberty/hex.c,
4842           support/cpp2/libiberty/concat.c,
4843           support/cpp2/libiberty/filenames.h: added
4844         * support/cpp2/intl.c: deleted
4845
4846 2006-11-24 Borut Razem <borut.razem AT siol.net>
4847
4848         * src/SDCC.y: enabled compilation of empty source file
4849         * support/Util/SDCCerr.[ch]: added sdcc warning 190 -
4850           "ISO C forbids an empty source file"
4851         * device/lib/_startup.c, device/lib/printf_tiny.c: disable warning 190
4852           if all the code is ifdefed out.
4853
4854 2006-11-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4855
4856         * src/hc08/gen.c (genPcall): fix for bug #1601032
4857
4858 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
4859
4860         * device/include/mcs51/c8051f000.h, device/include/mcs51/C8051F000.h,
4861         * device/include/mcs51/c8051f018.h, device/include/mcs51/C8051F018.h,
4862         * device/include/mcs51/c8051f020.h, device/include/mcs51/C8051F020.h,
4863         * device/include/mcs51/c8051f040.h, device/include/mcs51/C8051F040.h,
4864         * device/include/mcs51/c8051f060.h, device/include/mcs51/C8051F060.h,
4865         * device/include/mcs51/c8051f120.h, device/include/mcs51/C8051F120.h,
4866         * device/include/mcs51/c8051f200.h, device/include/mcs51/C8051F200.h,
4867         * device/include/mcs51/c8051f300.h, device/include/mcs51/C8051F300.h,
4868         * device/include/mcs51/c8051f310.h, device/include/mcs51/C8051F310.h,
4869         * device/include/mcs51/c8051f320.h, device/include/mcs51/C8051F320.h,
4870         * device/include/mcs51/c8051f326.h, device/include/mcs51/C8051F326.h,
4871         * device/include/mcs51/c8051f330.h, device/include/mcs51/C8051F330.h,
4872         * device/include/mcs51/c8051f340.h, device/include/mcs51/C8051F340.h,
4873         * device/include/mcs51/c8051f350.h, device/include/mcs51/C8051F350.h,
4874         * device/include/mcs51/c8051f410.h, device/include/mcs51/C8051F410.h:
4875           Renamed to all upper case as per the standard set by SiLabs
4876
4877 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
4878
4879         * device/include/mcs51/C8051F520.h: new, added
4880         * device/include/mcs51/compiler.h: added link about predefined macros
4881
4882 2006-11-23 Raphael Neider <rneider AT web.de>
4883
4884         * src/regression/Makefile: add -L path to fresh library
4885         * src/regression/simulate: emphasize FAILED output
4886         * src/regression/create_stc: output _failures from gpsim
4887         * src/regression/compare4.c,
4888         * src/regression/rotate6.c: fixed char literals,
4889           all compile, all run =8-D
4890
4891         * src/pic/pcode.h: added isPCASMDIR macro
4892         * src/pic/gen.c (genAnd): fixed bit offset
4893         * src/pic/ralloc.c (allocNewDirReg,allocDirReg,allocRegByName,
4894           packBits): unified register numbering schemes,
4895           (newReg): do not insert stack registers into hash table,
4896           (initStack): unpinned pseudo stack, simplified,
4897           (typeRegWithIdx): fixed retrieval of stack registers,
4898         * src/pic/pcode.c (addpCodeComment,sameBank): added,
4899           (pCodeReplace): removed invalid assertion,
4900           (insertPCodeInstruction): fixed newly added labels,
4901           (insertBankSwitch,BankSelect,IsBankChange,DoBankSelect,
4902           FixRegisterBankingInFlow,compareBankFlow,FixBankFlow,
4903           DumpFlow): removed unsed (broken?) code,
4904           (insertBankSel): prevent STATUS from being BANKSELed,
4905           (FixRegisterBanking): rewritten from scratch, implemented generic
4906             optimizations (suppress BANKSELs to same register and to registers
4907             present in all banks),
4908           (AnalyzeBanking): update flow after BANKSELection
4909
4910         * src/pic/glue.c (pic14_constructAbsMap): emit pseudo stack in
4911             sharebank, let linker place it, mark STKxx symbols as emitted
4912
4913 2006-11-21 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4914
4915         * src/regression/arrays.c,
4916         * src/regression/bank1.c,
4917         * src/regression/bool2.c,
4918         * src/regression/compare7.c,
4919         * src/regression/compare8.c,
4920         * src/regression/compare9.c,
4921         * src/regression/compare10.c,
4922         * src/regression/configword.c,
4923         * src/regression/for.c,
4924         * src/regression/mult1.c,
4925         * src/regression/pointer1.c,
4926         * src/regression/rotate6.c,
4927         * src/regression/string1.c,
4928         * src/regression/struct1.c,
4929         * src/regression/Makefile: make PIC14 regression tests run again
4930           (3 fail, 6 won't compile)
4931
4932 2006-11-21 Raphael Neider <rneider AT web.de>
4933
4934         * device/include/pic16/pic18f4550.h,
4935         * device/include/pic16/pic18f4455.h,
4936         * device/lib/pic16/libdev/pic18f4550.c,
4937         * device/lib/pic16/libdev/pic18f4455.c: fixed #1578591 and #1595144
4938         * configure.in: removed superfluous closing bracket
4939
4940 2006-11-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4941
4942         * device/lib/expf.c: Fixed bug 1599523: result of expf(x) is
4943           always positive.
4944
4945 2006-11-21 Raphael Neider <rneider AT web.de>
4946
4947         * src/pic/device.{c,h}: added pic14_getPIC()
4948         * src/pic/gen.c (continueIfTrue,jumpIfTrue): added PIC code,
4949           (genAnd): added PIC code for one case, fixes #1597044
4950         * src/pic/pcode.c (BankSelect): Ohoh, added generic optimization for
4951           SFRs that are present in all banks (e.g., STATUS)
4952
4953 2006-11-20 Raphael Neider <rneider AT web.de>
4954
4955         * src/pic/pcode.c: changed inverted ops for DECFSZ/DECFSZW and
4956           INCFSZ/INCFSZW and declared them as changing Z bit,
4957           (insertPCodeInstruction): correctly invert the above instructions,
4958           fixes #1599333,
4959           (DoBankSelect): don't panic on po_immediates
4960
4961 2006-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
4962
4963         * as/link/aslink.h,
4964         * as/link/mcs51/lkihx.c (newArea),
4965         * as/link/mcs51/lkrloc.c: renamed newArea() to ihxNewArea()
4966         * as/link/mcs51/lkihx.c (ihx): output reset vector as start address
4967
4968 2006-11-11 Raphael Neider <rneider AT web.de>
4969
4970         * src/pic/pcode.c (newpCodeOpBit): search SymbolTab for referenced
4971           bitfield symbols, fixes #1579535 (once more...).
4972
4973 2006-11-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4974
4975         * support/regression/generate-cases.py,
4976         * support/regression/fwk/include/testfwk.h,
4977         * support/regression/fwk/lib/testfwk.c: used code pointers,
4978           (about 50kByte less code generated for mcs51)
4979
4980 2006-11-06 Borut Razem <borut.razem AT siol.net>
4981
4982         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
4983           debugger/mcs51/configure: fixed failed check because the function
4984           rl_function_of_keyseq isn't in Readline 5.2. Thanks to Ilya Goldberg
4985           who submitted the patch for gpsim.
4986         * debugger/mcs51/configure.in: removed the result message
4987         * debugger/mcs51/Makefile.in: fixed the config.status warning
4988           "... seems to ignore the --datarootdir setting"
4989
4990 2006-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
4991
4992         * device/include/mcs51/c8051f020.h,
4993         * device/include/mcs51/c8051f040.h,
4994         * device/include/mcs51/c8051f060.h,
4995         * device/include/mcs51/c8051f120.h: added PS0, fixed bug 1589279
4996         * src/z80/gen.c (gencjneshort),
4997         * src/z80/peeph.def: applied patch 1571373, thanks Philipp Krause
4998
4999 2006-10-31 Borut Razem <borut.razem AT siol.net>
5000
5001         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
5002           debugger/mcs51/configure: get readline version
5003
5004 2006-10-30 Borut Razem <borut.razem AT siol.net>
5005
5006         * debugger/mcs51/sdcdb.c: replaced hardcoded "/" with DIR_SEPARATOR_STRING
5007         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
5008           debugger/mcs51/configure: locate readline even when cross compiling
5009         * support/scripts/sdcc.nsi: include readline5.dll into the setup package
5010
5011 2006-10-29 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5012
5013         * device/include/mcs51/serial_IO.h: putchar() and getchar() using
5014           serial port.
5015
5016 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
5017
5018         * device/include/malloc.h,
5019         * device/lib/calloc.c,
5020         * device/lib/free.c,
5021         * device/lib/malloc.c,
5022         * device/lib/realloc.c: moved definition of struct into sources
5023         * support/regression/tests/malloc.c: use void* for init_dynamic_memory()
5024
5025 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
5026
5027         * as/asx8051.dsp: corrected output directories
5028         * as/link/hc08: new directory for hc08 linker
5029         * as/hc08/aslink.h,             as/link/aslink.h,
5030         * as/hc08/aslink.mak,           as/link/hc08/aslink.mak,
5031         * as/hc08/clean.mk,             as/link/hc08/clean.mk,
5032         * as/hc08/link_hc08.dsp,        as/link/hc08/link_hc08.dsp,
5033         * as/hc08/lkaomf51.c,           as/link/hc08/lkaomf51.c,
5034         * as/hc08/lkarea.c,             as/link/hc08/lkarea.c,
5035         * as/hc08/lkdata.c,             as/link/hc08/lkdata.c,
5036         * as/hc08/lkelf.c,              as/link/hc08/lkelf.c,
5037         * as/hc08/lkihx.c,              as/link/hc08/lkihx.c,
5038         * as/hc08/lklibr.c,             as/link/hc08/lklibr.c,
5039         * as/hc08/lkmain.c,             as/link/hc08/lkmain.c,
5040         * as/hc08/lkmem.c,              as/link/hc08/lkmem.c,
5041         * as/hc08/lkrloc.c,             as/link/hc08/lkrloc.c,
5042         * as/hc08/lks19.c,              as/link/hc08/lks19.c,
5043         * as/hc08/Makefile.aslink,      as/link/hc08/Makefile.aslink,
5044         * as/hc08/Makefile.bcc,         as/link/hc08/Makefile.bcc,
5045         * as/hc08/Makefile.in,          as/link/hc08/Makefile.in,
5046         * as/link/hc08/conf.mk,
5047         * configure,
5048         * configure.in,
5049         * Makefile.in,
5050         * sdcc.dsw: moved hc08 linker to as/link/hc08
5051         * as/hc08/lkeval.c,     as/link/mcs51/lkeval.c,     as/link/lkeval.c,
5052         * as/hc08/lkhead.c,     as/link/mcs51/lkhead.c,     as/link/lkhead.c,
5053         * as/hc08/lklex.c,      as/link/mcs51/lklex.c,      as/link/lklex.c,
5054         * as/hc08/lklist.c,     as/link/mcs51/lklist.c,     as/link/lklist.c,
5055         * as/hc08/lknoice.c,    as/link/mcs51/lknoice.c,    as/link/lknoice.c,
5056         * as/hc08/lksym.c,      as/link/mcs51/lksym.c,      as/link/lksym.c,
5057         * as/link/mcs51/aslink.dsp,
5058         * as/link/mcs51/Makefile.in: factored out the common files
5059         * as/hc08/lkstore.c: deleted, use the one already in as/link/
5060         * as/clean.mk: extra cleaning common files
5061         * as/link/mcs51/strcmpi.c,      as/strcmpi.c: moved
5062         * as/link/mcs51/strcmpi.h: deleted, moved protoype to aslink.h
5063         * as/mcs51/asm.h: include sdccconf.h or sdcc_vc.h
5064
5065 2006-10-29 Raphael Neider <rneider AT web.de>
5066
5067         * src/pic/ralloc.c (newReg): create aliases for registers with
5068           multiple names to fix #1579535 and #1584001,
5069           (regWithIdx,dirregWithName): resolve aliases on lookup
5070         * src/pic/pcode.c (DoBankSelect): die with error message on failing
5071           bankselect
5072         * device/lib/pic/libdev/Makefile.in: move pseudo stack down to 0x4f
5073           to prevent build errors on small devices
5074
5075 2006-10-28 Raphael Neider <rneider AT web.de>
5076
5077         * src/pic/gen.c (genFunction,genCall): drop "same code page"
5078           assumption within interrupt handlers, fixes #1584940
5079         * src/pic/glue.c (pic14_constructAbsMap): mark absolute symbols as
5080           "emitted" to avoid emitting them again in udata
5081
5082 2006-10-27 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5083
5084         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
5085         Removed.
5086
5087 2006-10-26 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5088
5089         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
5090         Initialize uart only if SM0 and SM1 are zero.  Also, use flag to turn
5091         on/off CR to CRLF conversion.
5092
5093 2006-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5094
5095         * doc/sdccman.lyx: updated IRQ section
5096
5097 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5098
5099         * device/lib/serial_io.c: removed
5100         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c
5101         replacements for serial_io.c
5102
5103 2006-10-24 Maarten Brock <sourceforge.brock AT dse.nl>
5104
5105         * src/z80/main.c (_process_pragma, _parseOptions): fixed bug 1583318
5106
5107 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5108
5109         * device/lib/serial_io.c: Default putchar() and getchar() for
5110           mcs51 uses serial port.
5111
5112 2006-10-23 Maarten Brock <sourceforge.brock AT dse.nl>
5113
5114         * src/mcs51/gen.c (movc): improved check for 0 and 1, see RFE 1582704
5115
5116 2006-10-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5117
5118         * support/regression/ports/mcs51/support.c: smaller
5119         _sdcc_external_startup()
5120         * device/lib/mcs51/crtxclear.asm: don't check high byte of l_PSEG
5121
5122 2006-10-20 Maarten Brock <sourceforge.brock AT dse.nl>
5123
5124         * device/lib/gbz80/crt0.s,
5125         * device/lib/gbz80/crt0_rle.s,
5126         * device/lib/gbz80/div.s,
5127         * device/lib/gbz80/fstubs.s,
5128         * device/lib/gbz80/heap.s,
5129         * device/lib/gbz80/mul.s,
5130         * device/lib/gbz80/putchar.s,
5131         * device/lib/gbz80/stubs.s,
5132         * device/lib/z80/crt0.s,
5133         * device/lib/z80/crt0_rle.s,
5134         * device/lib/z80/div.s,
5135         * device/lib/z80/fstubs.s,
5136         * device/lib/z80/heap.s,
5137         * device/lib/z80/mul.s,
5138         * device/lib/z80/putchar.s,
5139         * device/lib/z80/stubs.s: reverted, I was mistaken
5140
5141 2006-10-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5142
5143         * src/mcs51/peeph.def: peephole 238.x added check for notvolatile
5144         * support/regression/ports/mcs51/support.c: removed race
5145         condition on TI in _putchar allowing to use serial port mode 0
5146
5147 2006-10-20 Borut Razem <borut.razem AT siol.net>
5148
5149         * debugger/mcs51/sdcdb.c: replaced isblank() with isspace()
5150
5151 2006-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
5152
5153         * device/lib/gbz80/crt0.s,
5154         * device/lib/gbz80/crt0_rle.s,
5155         * device/lib/gbz80/div.s,
5156         * device/lib/gbz80/fstubs.s,
5157         * device/lib/gbz80/heap.s,
5158         * device/lib/gbz80/mul.s,
5159         * device/lib/gbz80/putchar.s,
5160         * device/lib/gbz80/stubs.s,
5161         * device/lib/z80/crt0.s,
5162         * device/lib/z80/crt0_rle.s,
5163         * device/lib/z80/div.s,
5164         * device/lib/z80/fstubs.s,
5165         * device/lib/z80/heap.s,
5166         * device/lib/z80/mul.s,
5167         * device/lib/z80/putchar.s,
5168         * device/lib/z80/stubs.s: removed all leading underscores from area names
5169
5170 2006-10-17 Maarten Brock <sourceforge.brock AT dse.nl>
5171
5172         * support/regression/ports/mcs51/support.c: use highest baudrate so the
5173           regression tests are not waiting in the simulator for simulated
5174           transmission of debug output
5175
5176 2006-10-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5177
5178         * device/lib/printf_large.c: slightly smaller
5179         * doc/sdccman.lyx: do not use spaces within html links
5180
5181 2006-10-16 Borut Razem <borut.razem AT siol.net>
5182
5183         * configure.in, configure, sdccconf_in.h, src/SDCCglobal,
5184           debugger/mcs51/Makefile.in, debugger/mcs51/sdcdb.[ch],
5185           debugger/mcs51/aclocal.m4, debugger/mcs51/acinclide.m4,
5186           debugger/mcs51/config.h.in, debugger/mcs51/configure.in,
5187           debugger/mcs51/configure:
5188           [ 1185668 ] add gnu readline support to sdcdb - enabled
5189
5190 2006-10-16 Raphael Neider <rneider AT web.de>
5191
5192         * src/pic/pcode.c (BankSelect): another fix on (partial) BANKSELs,
5193           fixes #1577882, removes close to all banking optimizations
5194
5195 2006-10-15 Maarten Brock <sourceforge.brock AT dse.nl>
5196
5197         * src/SDCCsymt.c (checkSClass): no error for uninitialised absolute
5198           variables in code memory
5199         * support/regression/tests/absolute.c: added test for this
5200
5201 2006-10-15 Raphael Neider <rneider AT web.de>
5202
5203         * src/pic/pcode.c (InsertBankSel): suppress BANKSELs for one bank
5204           devices,
5205           (BankSelect): emit BANKSEL before touching linker-placed regs,
5206           fixes #1570934
5207
5208 2006-10-10 Raphael Neider <rneider AT web.de>
5209
5210         * src/SDCCmain.c (optionsTable): accept --stack-size for PICs,
5211         * src/pic/device.c (pic14_getSharebankSize,pic14_getSharebankAddress),
5212         * src/pic/main.c (_pic14_parseOptions),
5213         * src/pic/main.h: mostly reverted to previous state, now use results
5214             from SDCCmain.c's argument parsing
5215
5216 2006-10-10 Borut Razem <borut.razem AT siol.net>
5217
5218         * debugger/mcs51/break.[ch], debugger/mcs51/cmd.c,
5219           debugger/mcs51/sdcdb.[ch], debugger/mcs51/simi.c:
5220           [ 1185668 ] add gnu readline support to sdcdb -
5221           prepared for READLINE, not enabled yet,
5222           thanks to <tal.bav AT gmail.com>
5223
5224 2006-10-10 Raphael Neider <rneider AT web.de>
5225
5226         * src/pic16/pcode.c (pic16_pCode2str): use isACCESS_BANK macro
5227         * src/pic16/devices.inc,
5228         * device/include/pic16 (pic18f[24]620.h),
5229         * device/include/pic18fregs.h,
5230         * device/lib/pic16/pics.all,
5231         * device/lib/pic16/libdev/pic18f[24]{620,525}.c): added support for
5232             18f2620, 18f4620, 18f2525, and 18f4525 devices, thanks to
5233             Gary Plumbridge and Anton Strobl
5234
5235 2006-10-10 Raphael Neider <rneider AT web.de>
5236
5237         * src/pic/main.c (_pic14_parseOptions): added --stack-loc=NUM and
5238           --stack-siz=NUM options to configure the argument passing stack
5239         * src/pic/main.h: added stackLocation and stackSize to pic14_options_t
5240         * src/pic/device.c (mapRegister): catch out-of-memory SIGSEGVs,
5241           (pic14_getSharebankSize): obey --stack-siz=NUM,
5242           (pic14_getSharebankAddress): obey --stack-loc=NUM
5243
5244 2006-10-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5245
5246         * doc/sdccman.lyx: added to the manual
5247         * doc/figures/ddd_example.png: added (neither pdflatex nor
5248         most browsers seem to like the .eps file)
5249
5250 2006-10-06 Bernhard Held <bernhard AT bernhardheld.de>
5251
5252         * src/SDCCglue.c (tempfileandname): changed un*x tmp search paths
5253         to /tmp and /var/tmp acc. LSB
5254         * src/SDCCast.c (addCast): Fixed bug 1571231: promote in case of
5255         RESULT_TYPE_IFX
5256         * support/regression/tests/onebyte.c: added test
5257
5258 2006-10-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5259
5260         * src/mcs51/gen.c: emitcode for "add a,0x%02x" requires only 8 bits.
5261
5262 2006-10-05 Borut Razem <borut.razem AT siol.net>
5263
5264         * partially fixed [ 1570701 ] peephole - not replacing code from multiline macros,
5265           thanks to dfulab:
5266           - sdcc.dsw: changed property eol-style to CRLF
5267           - support/scripts/resource.rc: replaced references to "afxres.h" with "winres.h"
5268
5269 2006-10-04 Raphael Neider <rneider AT web.de>
5270
5271         * device/include/pic/{pic16f84.h,pic16f84a.h},
5272         * device/lib/pic/libdev/{pic16f84.c,pic16f84a.c}: added PORT[AB]_bits
5273           from patch #1522504, thanks to Robas Teodor
5274
5275 2006-10-02 Maarten Brock <sourceforge.brock AT dse.nl>
5276
5277         * as/link/z80/lkarea.c: essentially reverted lnksect() to #4380 which
5278           fixes bug 1566015
5279
5280 2006-10-01 Maarten Brock <sourceforge.brock AT dse.nl>
5281
5282         * src/pic16/glue.c (pic16emitMaps),
5283         * src/pic/glue.c (pic14emitMaps): hopefully fixed bug 1568779
5284         * device/lib/gets.c: fixed bug 1568829,thanks Philipp Krause
5285         * device/lib/pic16/libc/string/memcpypgm2ram.c,
5286         * device/lib/pic16/libc/string/memcpyram2ram.c: fixed bug 1568836, thanks
5287           Philipp Krause
5288         * as/mcs51/asmain.c (asmbl, newdot): fixed problems with absolute areas
5289         * as/link/mcs51/lkmem.c (summary2): reverted, do do count abs segments
5290
5291 2006-09-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5292
5293         * support/librarian/sdcclib.c: Added option -l.
5294         * as/link/mcs51/lkmem.c: don't use absolute segments to compute memory
5295           usage totals.
5296         * device/lib/make51lib.bat: added.  Allows building mcs51 libraries easily
5297           using Windows command prompt.
5298
5299 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
5300
5301         * device/lib/libsdcc.lib: added module rand
5302         * src/ds390/ralloc.c (rematStr),
5303         * src/hc08/ralloc.c (rematStr),
5304         * src/mcs51/ralloc.c (rematStr),
5305         * src/z80/ralloc.c (rematStr): made output more consistent
5306         * src/mcs51/gen.c: cosmetic changes
5307
5308 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
5309
5310         * src/port.h: added mem.cabs_name to PORT
5311         * src/ds390/main.c,
5312         * src/hc08/main.c,
5313         * src/mcs51/main.c,
5314         * src/pic16/main.c,
5315         * src/pic/main.c,
5316         * src/xa51/main.c,
5317         * src/z80/main.c: added cabs_name initializers
5318         * src/SDCCglue.c (emitStaticSeg): allocate and initialize absolute
5319           constants
5320           (emitMaps): emit absolutes in code memory into cabs_name
5321         * src/SDCCmem.c,
5322         * src/SDCCmem.h: added memory map c_abs and defined CABS_NAME
5323         * src/ds390/gen.c (genCodePointerGet): fixed bug if left is a literal
5324         * support/regression/fwk/include/testfwk.h: added define for at
5325         * support/regression/tests/absolute.c: added, new
5326
5327 2006-09-29 Maarten Brock <sourceforge.brock AT dse.nl>
5328
5329         * src/mcs51/gen.c (genPlusIncr, genMinusDec, genAddrOf): small
5330           optimizations, see also patch 887161 by Stas Sergeev
5331         * src/mcs51/peeph.def(104, 207, 209, 212): disabled as they do not seem
5332           to be necessary anymore,
5333           (102, 103, 104, 127): renamed all occurances of bp to _bp
5334
5335 2006-09-27 Maarten Brock <sourceforge.brock AT dse.nl>
5336
5337         * device/include/mcs51/at89c51snd1c.h: fixed MSK_SREQ definition
5338           thanks Weston T. Schmidt for patch 1555221
5339         * src/mcs51/peeph.def: renamed rule 257 to 257.a, added 257.b
5340         * src/SDCCicode.c(geniCodeMultiply): small optimization
5341
5342 2006-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
5343
5344         * device/include/stdlib.h: added rand prototypes
5345         * device/lib/rand.c: new, added
5346         * device/lib/Makefile.in: added rand.c
5347         * src/z80/peeph.def,
5348         * src/z80/peeph-gbz80.def,
5349         * src/z80/peeph-z80.def: updated conditonals, fixed bug 1565908
5350
5351 2006-09-20 Raphael Neider <rneider AT web.de>
5352
5353         * device/lib/pic16/libio/i2c/i2cnack.c (i2c_nack): fixed ACKDT bit
5354
5355 2006-09-19 Maarten Brock <sourceforge.brock AT dse.nl>
5356
5357         * as/link/aslink.h: cosmetic changes
5358         * as/link/mcs51/Makefile.in,
5359         * as/link/z80/Makefile.in: fixed build on CF where VPATH is used
5360
5361 2006-09-17 Maarten Brock <sourceforge.brock AT dse.nl>
5362
5363         * as/link/aslink.h,
5364         * as/link/mcs51/aslink.h,
5365         * as/link/z80/aslink.h: merged and moved to as/link/
5366         * as/link/lkstore.c,
5367         * as/link/mcs51/lkstore.c: moved to as/link/
5368         * as/link/clean.mk: remove *.o
5369         * as/link/mcs51/alloc.h: deleted
5370         * as/link/mcs51/lkarea.c: added lnksect prototype
5371         * as/link/mcs51/lkdata.c,
5372         * as/link/mcs51/lklex.c,
5373         * as/link/mcs51/lkmain.c: renamed as_getline to lk_getline
5374         * as/link/mcs51/lkmem.c,
5375         * as/link/mcs51/lknoice.c: removed include strcmpi.h
5376         * as/link/mcs51/lksym.c: include stdlib.h instead of malloc.h or alloc.h
5377         * as/link/mcs51/aslink.dsp,
5378         * as/link/mcs51/Makefile.aslink,
5379         * as/link/mcs51/Makefile.bcc,
5380         * as/link/mcs51/Makefile.in: updated for moved files
5381         * as/link/z80/lkarea.c,
5382         * as/link/z80/lkhead.c,
5383         * as/link/z80/lklex.c,
5384         * as/link/z80/lklibr.c,
5385         * as/link/z80/lklist.c,
5386         * as/link/z80/lkmain.c,
5387         * as/link/z80/lkrloc.c,
5388         * as/link/z80/lksym.c: synced with mcs51
5389         * as/link/z80/lkdata.c,
5390         * as/link/z80/lkeval.c,
5391         * as/link/z80/lkihx.c,
5392         * as/link/z80/lks19.c: cosmetic changes
5393         * as/link/z80/Makefile.in,
5394         * as/link/z80/linkgbz80.dsp,
5395         * as/link/z80/linkz80.dsp: updated for moved files
5396
5397 2006-09-16 Borut Razem <borut.razem AT siol.net>
5398
5399         * debugger/mcs51/sdcdb.c: partially fixed
5400           [ 1203664 ] sdcdb fails to open files w. two "." periods
5401         * debugger/mcs51/simi.c, debugger/mcs51/symtab.c,
5402           debugger/mcs51/symtab.h: fixed indenting
5403         * configure.in, configure: up to date with latest Maarten's changes
5404
5405 2006-09-15 Maarten Brock <sourceforge.brock AT dse.nl>
5406
5407         as/link/mcs51
5408         as/aslink.dsp,                  as/link/mcs51/aslink.dsp,
5409         as/link/mcs51/aslink.h,         as/mcs51/aslink.h,
5410         as/link/mcs51/aslink.mak,       as/mcs51/aslink.mak,
5411         as/link/mcs51/lkaomf51.c,       as/mcs51/lkaomf51.c,
5412         as/link/mcs51/lkarea.c,         as/mcs51/lkarea.c,
5413         as/link/mcs51/lkdata.c,         as/mcs51/lkdata.c,
5414         as/link/mcs51/lkeval.c,         as/mcs51/lkeval.c,
5415         as/link/mcs51/lkhead.c,         as/mcs51/lkhead.c,
5416         as/link/mcs51/lkihx.c,          as/mcs51/lkihx.c,
5417         as/link/mcs51/lklex.c,          as/mcs51/lklex.c,
5418         as/link/mcs51/lklibr.c,         as/mcs51/lklibr.c,
5419         as/link/mcs51/lklist.c,         as/mcs51/lklist.c,
5420         as/link/mcs51/lkmain.c,         as/mcs51/lkmain.c,
5421         as/link/mcs51/lkmem.c,          as/mcs51/lkmem.c,
5422         as/link/mcs51/lknoice.c,        as/mcs51/lknoice.c,
5423         as/link/mcs51/lkrloc.c,         as/mcs51/lkrloc.c,
5424         as/link/mcs51/lks19.c,          as/mcs51/lks19.c,
5425         as/link/mcs51/lkstore.c,        as/mcs51/lkstore.c,
5426         as/link/mcs51/lksym.c,          as/mcs51/lksym.c,
5427         as/link/mcs51/Makefile.aslink,  as/mcs51/Makefile.aslink,
5428         as/link/mcs51/alloc.h,
5429         as/link/mcs51/clean.mk,
5430         as/link/mcs51/conf.mk,
5431         as/link/mcs51/Makefile.bcc,
5432         as/link/mcs51/Makefile.in,
5433         as/link/mcs51/readme.390,
5434         as/link/mcs51/strcmpi.c,
5435         as/link/mcs51/strcmpi.h,
5436         as/mcs51/clean.mk,
5437         as/mcs51/Makefile.bcc,
5438         as/mcs51/Makefile.in,
5439         configure,
5440         Makefile.in,
5441         sdcc.dsw: moved mcs51 linker to as/link/mcs51
5442
5443 2006-09-14 Maarten Brock <sourceforge.brock AT dse.nl>
5444
5445         * as/link,
5446         * as/link/Makefile.in,
5447         * as/link/z80/linkgbz80.dsp,
5448         * as/link/z80/linkz80.dsp,
5449         * configure,
5450         * link,
5451         * link/clean.mk,
5452         * link/Makefile.in,
5453         * link/README,
5454         * link/z80,
5455         * link/z80/aslink.h,
5456         * link/z80/clean.mk,
5457         * link/z80/conf.mk,
5458         * link/z80/linkgbz80.dsp,
5459         * link/z80/linkz80.dsp,
5460         * link/z80/lkarea.c,
5461         * link/z80/lkdata.c,
5462         * link/z80/lkeval.c,
5463         * link/z80/lkgb.c,
5464         * link/z80/lkgg.c,
5465         * link/z80/lkhead.c,
5466         * link/z80/lkihx.c,
5467         * link/z80/lklex.c,
5468         * link/z80/lklibr.c,
5469         * link/z80/lklist.c,
5470         * link/z80/lkmain.c,
5471         * link/z80/lkrloc.c,
5472         * link/z80/lks19.c,
5473         * link/z80/lksym.c,
5474         * link/z80/Makefile.in,
5475         * Makefile.in,
5476         * sdcc.dsw: moved link/ to as/link/
5477
5478 2006-09-11 Maarten Brock <sourceforge.brock AT dse.nl>
5479
5480         * as/mcs51/i51mch.c (machine): fixed warning
5481
5482 2006-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
5483
5484         * as/mcs51/i51mch.c (machine): S_DJNZ fixed bug 1554318
5485
5486 2006-09-09 Borut Razem <borut.razem AT siol.net>
5487
5488         * debugger/mcs51/sdcdb.c, debugger/mcs51/simi.c:
5489           sdcdb WIN32 native port
5490         * src/clean.mk: fixed
5491
5492 2006-09-08 Borut Razem <borut.razem AT siol.net>
5493
5494         * doc/sdccman.lyx: SDCDB and ucSim are available on Win32 platforms.
5495
5496 2006-09-08 Raphael Neider <rneider AT web.de>
5497
5498         * src/pic16/main.c (_pic16_linkEdit,pic16_linkCmd),
5499         * src/pic/main.c(_pic14_do_link, linkCmd): pass "-w" and "-r"
5500             to gplink to disable processor mismatch warning and to allow
5501             the use of devices with only aliased (shared) memory banks,
5502           (_pic16_genAssemblerPreamble): include pXXX.inc on --mplab-comp
5503
5504 2006-09-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5505
5506         * doc/sdccman.lyx: Some re-formating plus example on using
5507           #pragma preproc_asm +/-
5508
5509 2006-09-07 Borut Razem <borut.razem AT siol.net>
5510
5511         * support/scripts/sdcc.nsi: added SDCDB executables in a separate
5512           section
5513
5514 2006-09-06 Borut Razem <borut.razem AT siol.net>
5515
5516         * support/scripts/sdcc.nsi: fixed Error: unterminated string parsing
5517           line at sdcc.nsi:153
5518         * sdcc/debugger/mcs51/simi.c: argsToCmdLine() fixes
5519
5520 2006-09-05 Borut Razem <borut.razem AT siol.net>
5521
5522         * configure.in, configure: support for winsock2
5523         * debugger/mcs51/break.h, debugger/mcs51/cmd.c,
5524           debugger/mcs51/cmd.h, debugger/mcs51/sdcdb.c,
5525           debugger/mcs51/sdcdb.h, debugger/mcs51/simi.c,
5526           debugger/mcs51/simi.h, debugger/mcs51/symtab.c,
5527           debugger/mcs51/symtab.h: sdcdb WIN32 native port
5528
5529 2006-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
5530
5531         * src/SDCCopt.c (cnvToFcall): fixed bug 1551947 by updating OP_USES
5532           and OP_DEFS
5533         * support/regression/tests/bug1551947.c: new, added
5534         * src/SDCCsymt.h: strings are char* not byte*
5535
5536 2006-09-05 Raphael Neider <rneider AT web.de>
5537
5538         * device/lib/pic16/libdev/pic18f4550.c,
5539           device/include/pic16/pic18f4550.h: added PORTD/TRISD
5540             declarations/definitions from patch #1520949
5541
5542 2006-09-05 Raphael Neider <rneider AT web.de>
5543
5544         * src/pic16/gen.c (genPackBits): fix assignment to 8-bit,
5545           byte-aligned bitfields, fixes #1539278
5546
5547 2006-09-05 Raphael Neider <rneider AT web.de>
5548
5549         * src/pic/gen.c (genReceive): skip unreferenced arguments,
5550           fixes #1544120
5551
5552 2006-09-04 Borut Razem <borut.razem AT siol.net>
5553
5554         * support/scripts/sdcc.nsi: move ucSim executables to a separate section
5555         * support/scripts/sdcc_cygwin_mingw32: don't disable ucsim,
5556           -mno-cygwin is a part of the compiler name
5557         * support/scripts/sdcc_mingw32: don't disable ucsim
5558
5559 2006-09-03 Borut Razem <borut.razem AT siol.net>
5560
5561         * sdcc.spec: corrected for 2.6.0. Thanks to Christer Weinigel.
5562         * device/lib/Makefile.in device/lib/clean.mk: small but essential corrections
5563
5564 2006-09-03 Raphael Neider <rneider AT web.de>
5565
5566         * src/pic/ralloc.c,
5567         * src/pic/pcode.c (InitReuseRegs): allocate registers with pseudo
5568           indices >= 0x1000 to disambiguate them from fixed regs __at(addr),
5569           fixes #1550049
5570
5571 2006-09-01 Borut Razem <borut.razem AT siol.net>
5572
5573         * sim/ucsim/cmd.src/cmdutil.cc: #include <sys/time.h> and <unistd.h>
5574           to make ppc-osx happy
5575
5576 2006-08-31 Borut Razem <borut.razem AT siol.net>
5577
5578         * sim/ucsim/cmd.src/newcmdposix.cc: #include <assert.h>
5579         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
5580         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
5581         * support/regression/ports/ds390/spec.mk,
5582           support/regression/ports/mcs51/spec.mk,
5583           support/regression/ports/xa51/spec.mk: introduced DEV_NULL variable.
5584           To run regression tests in mingw environment:
5585           make DEV_NULL=NUL CC=gcc
5586
5587 2006-08-30 Borut Razem <borut.razem AT siol.net>
5588
5589         * sim/ucsim/cmd.src/newcmdposix.cc, sim/ucsim/cmd.src/newcmdposixcl.h,
5590           sim/ucsim/cmd.src/newcmdwin32.cc, sim/ucsim/cmd.src/newcmdwin32cl.h,
5591           sim/ucsim/app.cc, sim/ucsim/appcl.h, sim/ucsim/configure,
5592           sim/ucsim/configure.in, sim/ucsim/ddconfig_in.h, sim/ucsim/error.cc,
5593           sim/ucsim/errorcl.h, sim/ucsim/option.cc, sim/ucsim/optioncl.h,
5594           sim/ucsim/utils.cc, sim/ucsim/utils.h, sim/ucsim/cmd.src/Makefile.in,
5595           sim/ucsim/avr.src/avr.cc, sim/ucsim/avr.src/avrcl.h,
5596           sim/ucsim/cmd.src/bp.cc, sim/ucsim/cmd.src/bpcl.h,
5597           sim/ucsim/cmd.src/cmdconf.cc, sim/ucsim/cmd.src/cmdgui.cc,
5598           sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/cmdset.cc,
5599           sim/ucsim/cmd.src/cmdsetcl.h, sim/ucsim/cmd.src/cmdstat.cc,
5600           sim/ucsim/cmd.src/cmduc.cc, sim/ucsim/cmd.src/cmduccl.h,
5601           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
5602           sim/ucsim/cmd.src/command.cc, sim/ucsim/cmd.src/commandcl.h,
5603           sim/ucsim/cmd.src/get.cc, sim/ucsim/cmd.src/getcl.h,
5604           sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/newcmd.cc,
5605           sim/ucsim/cmd.src/newcmdcl.h, sim/ucsim/cmd.src/set.cc,
5606           sim/ucsim/cmd.src/show.cc, sim/ucsim/cmd.src/timer.cc,
5607           sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
5608           sim/ucsim/s51.src/Makefile.in, sim/ucsim/s51.src/interrupt.cc,
5609           sim/ucsim/s51.src/interruptcl.h, sim/ucsim/s51.src/pca.cc,
5610           sim/ucsim/s51.src/pcacl.h, sim/ucsim/s51.src/port.cc,
5611           sim/ucsim/s51.src/portcl.h, sim/ucsim/s51.src/serial.cc,
5612           sim/ucsim/s51.src/serialcl.h, sim/ucsim/s51.src/timer0.cc,
5613           sim/ucsim/s51.src/timer0cl.h, sim/ucsim/s51.src/timer1.cc,
5614           sim/ucsim/s51.src/timer1cl.h, sim/ucsim/s51.src/timer2.cc,
5615           sim/ucsim/s51.src/timer2cl.h, sim/ucsim/s51.src/uc390.cc,
5616           sim/ucsim/s51.src/uc390cl.h, sim/ucsim/s51.src/uc390hw.cc,
5617           sim/ucsim/s51.src/uc390hwcl.h, sim/ucsim/s51.src/uc51.cc,
5618           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/wdt.cc,
5619           sim/ucsim/s51.src/wdtcl.h, sim/ucsim/sim.src/hw.cc,
5620           sim/ucsim/sim.src/hwcl.h, sim/ucsim/sim.src/mem.cc,
5621           sim/ucsim/sim.src/memcl.h, sim/ucsim/sim.src/obsolete.cc,
5622           sim/ucsim/sim.src/obsolete.h, sim/ucsim/sim.src/sim.cc,
5623           sim/ucsim/sim.src/simcl.h, sim/ucsim/sim.src/stack.cc,
5624           sim/ucsim/sim.src/stackcl.h, sim/ucsim/sim.src/test_mem_speed.cc,
5625           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
5626           sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
5627           sim/ucsim/z80.src/z80.cc, sim/ucsim/z80.src/z80cl.h:
5628           ucsim WIN32 native port
5629
5630 2006-08-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5631
5632         * doc/sdccman.lyx: added note on dynamic memory heap initialization
5633
5634 2006-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
5635
5636         * src/mcs51/gen.c (genAnd, genOr, genXor): fixed bug 1546986
5637         * src/ds390/gen.c (aopGetUsesAcc): handle AOP_DPTR2 and AOP_DPTRn too
5638
5639 2006-08-26 Maarten Brock <sourceforge.brock AT dse.nl>
5640
5641         * src/ds390/gen.c (genAnd, genOr, genXor): fixed bug 1546986
5642         * support/regression/tests/bug1546986.c: new, added
5643         * as/mcs51/.cvsignore,
5644         * debugger/mcs51/.cvsignore,
5645         * src/.cvsignore: deleted
5646
5647 2006-08-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5648
5649         * device/include/mcs51/P89c51RD2.h: fixed bug 1546936 (error in sbit
5650           definitions)
5651
5652 2006-08-20 Borut Razem <borut.razem AT siol.net>
5653
5654         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h:
5655           removed cl_listen_console::match(), cl_console::match(),
5656           restructured cl_commander::proc_input()
5657
5658 2006-08-16 Borut Razem <borut.razem AT siol.net>
5659
5660         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h,
5661           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
5662           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/uc.cc: code cleaning
5663
5664 2006-08-14 Borut Razem <borut.razem AT siol.net>
5665
5666         * support/regression/Makefile.in,
5667           support/regression/ports/pic14/gpsim.cmd,
5668           support/regression/ports/pic14/spec.mk,
5669           support/regression/ports/pic14/support.c:
5670           added pic14 regression test
5671
5672 2006-08-14 Maarten Brock <sourceforge.brock AT dse.nl>
5673
5674         * as/doc/asxhtm.html: documented changed ABS behaviour
5675         * as/doc/README: fixed some typos
5676
5677 2006-08-13 Maarten Brock <sourceforge.brock AT dse.nl>
5678
5679         * support/regression/tests/float_trans.c: disabled test if __STDC_IEC_559__
5680           not defined on host
5681
5682 2006-08-12 Borut Razem <borut.razem AT siol.net>
5683
5684         * support/regression/fwk/include/testfwk.h,
5685           support/regression/fwk/lib/testfwk.c,
5686           support/regression/generate-cases.py,
5687           support/regression/Makefile.in:
5688           regression test framework does not depend on function pointers and
5689           variable arguments
5690
5691 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
5692
5693         * device/include/stddef.h: c temporary hack to fix bug 1518273
5694
5695 2006-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5696
5697         * device/include/mcs51/cc2510fx.h: added
5698         * src/z80/z80.dsp, src/gbz80/gbz80.dsp: added support/Util/strcmpi.ch
5699           to projects.
5700
5701 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
5702
5703         * as/z80/assym.c (mlookup): ignore case when looking up mnemonics
5704         * as/z80/Makefile.in: added strcmpi.c
5705         * as/z80/z80adr.c: added upper case registers and lower case conditionals
5706         * support/Util/strcmpi.ch: added with intention to remove from mcs51/hc08
5707
5708 2006-08-08 Maarten Brock <sourceforge.brock AT dse.nl>
5709
5710         * device/lib/gbz80/asm_strings.s,
5711         * device/lib/gbz80/crt0_rle.s,
5712         * device/lib/gbz80/div.s,
5713         * device/lib/gbz80/mul.s,
5714         * device/lib/gbz80/shift.s,
5715         * device/lib/z80/asm_strings.s,
5716         * device/lib/z80/crt0_rle.s,
5717         * device/lib/z80/div.s,
5718         * device/lib/z80/mul.s,
5719         * device/lib/z80/shift.s: changed to all lower case menmonics except the
5720           flags which are all upper case
5721
5722 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
5723
5724         * as/z80/asm.h: made CASE_SENSITIVE 1
5725         * link/z80/aslink.h: made CASE_SENSITIVE 1
5726         * src/z80/gen.c (throughout): made all conditionals upper case
5727         * support/regression/tests/bug1503067.c: new
5728
5729 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
5730
5731         * src/z80/gen.c (aopPut): fixed bug !*ixy should be !*iyx,
5732           (shiftIntoPair): added case 2 for PAIR_IY,
5733           (setupToPreserveCarry): replaced parameters with iCode and check if
5734            PAIR_DE is in use to fix bug 1399290,
5735           (genPlus, genMinus): updated call to setupToPreserveCarry
5736         * support/regression/tests/bug1399290.c: new
5737
5738 2006-08-06 Maarten Brock <sourceforge.brock AT dse.nl>
5739
5740         * device/lib/Makefile.in (Z80SOURCES): enabled float support
5741         * sim/ucsim/z80.src/inst.cc (inst_rst): generate breakpoint on RST8,ACC==0
5742         * src/ds390/gen.c (shiftRLong),
5743         * src/hc08/gen.c (shiftLLong, shiftRLong): fixed bug 1533966
5744         * src/mcs51/gen.c (sameReg): changed to sameByte,
5745           (xch_a_aopGet): new,
5746           (shiftL2Left2Result, shiftR2Left2Result, shiftRLeftOrResult, shiftLLong,
5747            shiftRLong): fixed bug 1533966
5748         * src/z80/gen.c (shiftR2Left2Result, shiftL2Left2Result, genlshTwo,
5749           genLeftShiftLiteral, genrshTwo, genRightShiftLiteral): fixed bug 1533966
5750         * support/regression/Makefile.in: disabled z80, enabled ucz80
5751         * support/regression/tests/float_trans.c: enabled test for z80 and host
5752         * support/regression/tests/shifts2.c: new, for testing bug 1533966
5753
5754 2006-08-01 Borut Razem <borut.razem AT siol.net>
5755
5756         * src/mcs51/gen.c, src/dc390/gen.c: fixed warning:
5757           comparison is always false due to limited range of data type
5758           on PPC64 machine (openpower-linux1) where "char = unsigned char"
5759
5760 2006-08-01 Maarten Brock <sourceforge.brock AT dse.nl>
5761
5762         * sim/ucsim/hc08.src/hc08mac.h: removed faulty and unused add_u16_disp
5763         * sim/ucsim/hc08.src/hc08.cc: removed faulty and unused int8
5764         * sim/ucsim/z80.src/z80mac.h (add_u16_disp): use explicit signed char cast
5765         * sim/ucsim/z80.src/z80.cc: removed faulty and unused int8
5766
5767 2006-07-31 Borut Razem <borut.razem AT siol.net>
5768
5769         * sim/ucsim/configure, sim/ucsim/cmd.src/newcmdcl.h,
5770           sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/cmdutil.cc,
5771           sim/ucsim/z80.src/Makefile.in, sim/ucsim/configure.in,
5772           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/hc08.src/hc08.cc,
5773           sim/ucsim/ddconfig_in.h, sim/ucsim/s51.src/Makefile.in,
5774           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/serialcl.h,
5775           sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/serial.cc,
5776           sim/ucsim/app.cc, sim/ucsim/avr.src/Makefile.in:
5777           enable ucsim mingw compilation. Serial port is disabled,
5778           since it uses termios.h API, which is not available on native
5779           WIN32
5780
5781 2006-07-31 Borut Razem <borut.razem AT siol.net>
5782
5783         * Small Device C Compiler 2.6.0 released
5784         * support/scripts/sdcc.nsi: added FULL_DOC option
5785         * .version, doc/sdccman.lyx: changed sdcc version to 2.6.1
5786
5787 2006-07-28 Borut Razem <borut.razem AT siol.net>
5788
5789         * support/scripts/sdcc.nsi: remove $INSTDIR/include/asm/pic16/*.h
5790         * doc/INSTALL.txt: updated
5791
5792 2006-07-27 Borut Razem <borut.razem AT siol.net>
5793
5794         * device/lib/pic/Makefile.in, device/lib/pic/Makefile.subdir,
5795           device/lib/pic/libdev/Makefile.in: fixed bug
5796           [ 1438354 ] pic libsdcc: distclean doesn't work
5797         * device/lib/pic16/Makefile.in, device/lib/pic16/Makefile.subdir,
5798           device/lib/pic16/libio/Makefile.in: fixed bug
5799           [ 1438344 ] pic16 lib: clean doesn't work properly
5800         * doc/knownbugs.html removed [ 1438354 ] and [ 1438344 ] from the list
5801
5802 2006-07-26 Maarten Brock <sourceforge.brock AT dse.nl>
5803
5804         * device/lib/pic/libsdcc/fsdiv.c,
5805         * device/lib/pic/libsdcc/fsmul.c,
5806         * device/lib/pic16/libsdcc/float/fsdiv.c,
5807         * device/lib/pic16/libsdcc/float/fsmul.c,
5808         * device/lib/_fsdiv.c,
5809         * device/lib/_fsmul.c: bugfix, handle too large and too small numbers
5810         * support/regression/tests/bug1520966.c: added
5811         * doc/knownbugs.html: removed [ 1520966 ] from the list
5812
5813 2006-07-25 Borut Razem <borut.razem AT siol.net>
5814
5815         * configure.in, configure, sdccconf_in.h: fixed bug
5816           [ 1519095 ] regression test onebyte.c fails on ppc64 host
5817         * doc/knownbugs.html: removed [ 1519095 ] from the list
5818
5819 2006-07-25 Maarten Brock <sourceforge.brock AT dse.nl>
5820
5821         * doc/knownbugs.html: added, contains list of known bugs at release
5822         * device/include/mcs51/compiler.h: fixed SFR32 for SDCC
5823
5824 2006-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
5825
5826         * device/include/mcs51/compiler.h: added SFRX for xdata based special
5827           function registers and corrected defaults with additional warning
5828         * device/lib/malloc.c: cosmetic changes
5829         * device/lib/realloc.c: bugfix for bug #1496907, Thanks Efim Monyak
5830         * src/ds390/ralloc.c (getRegBitNoSpil): reenabled,
5831           (fillGaps): and used it
5832
5833 2006-07-20 Raphael Neider <rneider AT web.de>
5834
5835         * src/pic/device.c (addMemRange,assignRegister): suppress verbose
5836           output unless SDCCPICDEBUG is set
5837         * device/lib/pic16/Makefile.rules (%.lib target): suppress verbose
5838           output if SILENT is set
5839
5840 2006-07-11 Borut Razem <borut.razem AT siol.net>
5841
5842         * doc/README.txt: updated
5843
5844 2006-07-10 Borut Razem <borut.razem AT siol.net>
5845
5846         * support/scripts/sdcc.nsi: added device/include/asm/pic/features.h and
5847           device/lib/src/pic/libm/*.c and device/lib/src/pic16/libsdcc/stack/*.S
5848           in WIN32 installation
5849         * .version, sdcc.spec, doc/sdccman.lyx: changed sdcc version to 2.6.0 -
5850           release candidate 1
5851
5852 2006-07-08 Maarten Brock <sourceforge.brock AT dse.nl>
5853
5854         * device/include/mcs51/XC866.h: added sbit definitions for Px_x, P1_x, P2_x
5855         * src/pic16/glue.c (initPointer): fixed bug 1496419 for pic16
5856
5857 2006-07-06 Maarten Brock <sourceforge.brock AT dse.nl>
5858
5859         * src/hc08/gen.c (genAddrOf): fixed bug when offset on stack is >127
5860
5861 2006-07-06 Borut Razem <borut.razem AT siol.net>
5862
5863         * support/regression/tests/bitfields.c:
5864           fixed bug [ 1518322 ] regression test bitfields fails on ppc hosts
5865         * support/regression/tests/constantRange.c:
5866           fixed bug [ 1518317 ] regression test constantRange fails on alpha host
5867
5868 2006-07-04 Borut Razem <borut.razem AT siol.net>
5869
5870         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in,
5871           src/port.mk,
5872           src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
5873           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
5874           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
5875           reverted changes from 2006-07-03
5876         * Makefile.common.in: added @CPPFLAGS@ to CPPFLAGS
5877         * support/regression/Makefile.in, support/regression/ports/host/spec.mk:
5878           added CPPFLAGS, used by the host port
5879
5880 2006-07-03 Bernhard Held <bernhard AT bernhardheld.de>
5881
5882         * support/regression/valdiag/tests/switch.c,
5883         * support/regression/valdiag/tests/constantRange.c: adapted to gcc 4
5884         * support/regression/tests/libmullong.c: fixed for host
5885         * support/regression/ports/host/spec.mk: disable all warnings for host,
5886         SDCC runs with --less-pedantic too
5887
5888 2006-07-03 Borut Razem <borut.razem AT siol.net>
5889
5890         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in:
5891           defined CPPFLAGS
5892         * src/port.mk: defined CPPFLAGS, renamed to src/port.mk.in
5893         * src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
5894           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
5895           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
5896           include ../port.mk
5897         * sim/ucsim/main_in.mk, sim/ucsim/avr.src/Makefile.in,
5898           sim/ucsim/gui.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
5899           sim/ucsim/s52.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
5900           sim/ucsim/xa.src/Makefile.in: ignore header files for dependencies
5901
5902 2006-07-02 Raphael Neider <rneider AT web.de>
5903
5904         * src/pic16/devices.inc,
5905         * device/include/pic16/pic18fregs.h,
5906         * device/include/pic16/pic18f4550.h,
5907         * device/lib/pic16/pics.all,
5908         * device/lib/pic16/libdev/pic18f4550.c: added support for 18f4550
5909
5910 2006-07-01 Bernhard Held <bernhard AT bernhardheld.de>
5911
5912         * as/hc08/lkaomf51.c (OutputName),
5913         * as/mcs51/lkaomf51.c (OutputName),
5914         * as/z80/asmain.c (asmbl),
5915         * src/ds390/main.c (asmLineNodeFromLineNode),
5916         * src/hc08/ralloc.c (hc08_assignRegisters),
5917         * src/mcs51/main.c (asmLineNodeFromLineNode),
5918         * src/xa51/ralloc.c (checkRegMask),
5919         * src/xa51/gen.c (emitcode),
5920         * src/z80/gen.c (_emit2),
5921         * src/SDCCast.c (searchLitOp),
5922         * src/SDCCglobl.h,
5923         * support/packihx/packihx.c,
5924         * support/Util/MySystem.c (split_command): fix gcc 4 warnings
5925         * src/ds390/gen.c (aopPutUsesAcc),
5926         * src/ds390/ralloc.c (getRegBitNoSpil): unused, therefore disabled
5927         * support/regression/tests/libmullong.c (mullong_wrapper),
5928         * src/SDCCsymt.c (powof2),
5929         * src/SDCCast.c,
5930         * src/SDCCicode.c: renamed TYPE_WORD by TYPE_TARGET_INT and so on
5931         * src/SDCCsymt.h: added TYPE_TARGET_*
5932         * src/SDCCutil.c (doubleFromFixed16x16, fixed16x16FromDouble),
5933         * src/SDCCutil.h (doubleFromFixed16x16, fixed16x16FromDouble): moved to
5934         SDCCast because 1) header problems 2) this is the right place
5935         * src/SDCCast.c (doubleFromFixed16x16, fixed16x16FromDouble): added
5936         * src/SDCCval.h (doubleFromFixed16x16, fixed16x16FromDouble): added
5937         prototype
5938
5939 2006-06-29 Bernhard Held <bernhard AT bernhardheld.de>
5940
5941         * src/SDCCicode.h: removed buggy semicolon in unused macro
5942         * src/SDCClrange.c (findPrevUseSym, rlivePoint): fixed bug #1486853,
5943         search for previous definiton of auto symbols too,
5944         (findPrevUse): fixed logic of emitWarnings
5945
5946 2006-06-26 Raphael Neider <rneider AT web.de>
5947
5948         * src/pic16/gen.c (genFunction, genEndFunction): also preserve
5949           PCLATH and PCLATU on interrupts, potentially fixes #1505141
5950
5951 2006-06-25 Raphael Neider <rneider AT web.de>
5952
5953         * device/lib/pic/libm: NEW, added math library functions
5954         * device/lib/pic/libsdcc: NEW; added float support functions
5955         * device/lib/pic/{Makefile.in,configure.in,configure}: added libm/
5956         * device/include/pic/{limits.h,errno.h,sdcc-lib.h,float.h,math.h}:
5957           NEW, added math related headers
5958         * device/include/asm/pic/features.h: NEW
5959         * src/pic/gen.c (emitpcode_real): emit warning on NULL pCodeOp,
5960           (popGet): allow larger offsets for AOP_PCODE,
5961           (genDataPointerSet): handle literals explicitly, more debug output,
5962           (genAssign): fixed for float using aopLiteral ;-)
5963         * src/pic/glue.c (pic14createInterruptVect): inserted pagesel before
5964           GOTO initialisation routine
5965         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): set wasUsed
5966           flag on registers, fixes #1469043 (local variables do not work)
5967         * src/pic/main.c (_pic14_do_link),
5968         * src/pic16/main.c (_pic16_linkEdit): use fullDstFileName if
5969           available
5970
5971 2006-06-25 Borut Razem <borut.razem AT siol.net>
5972
5973         * device/lib/pic16/libc/stdio/sprintf.c: return the number of
5974           characters printed (not including the trailing '\0' used to end
5975           output to strings). Problem detected in regression test bug-927659.c.
5976           NOTE: printf() family functions should return int instead
5977           unsigned int!
5978         * device/lib/pic16/libc/stdio/vfprintf.c: "%%" prints "%", unknown
5979           specifier are printed as themselves
5980         * sdcc/support/regression/tests/bug1057979.c: pic16 printf doesn't
5981           support flags, width and precision specifiers
5982
5983 2006-06-24 Borut Razem <borut.razem AT siol.net>
5984
5985         * sdcc/support/regression/tests/bitvars.c: added gbz80, pic16 and pic16
5986           to the list of sdcc tagrets not supporting bit type
5987         * sdcc/support/regression/tests/bug-905992.c.c: excluded regression
5988           testfor pic16 due to bug:
5989           [ 1511794 ] pic16: regression test bug-895992.c fails
5990
5991 2006-06-24 Maarten Brock <sourceforge.brock AT dse.nl>
5992
5993         * src/mcs51/gen.c (genCmp): optimization for RFE 1162453
5994         * src/SDCCglue.c (initPointer), fixed bug 1496419
5995         * support/regression/tests/bug1496419.c: new, added
5996
5997 2006-06-22 Borut Razem <borut.razem AT siol.net>
5998
5999         * support/regression/ports/pic16/support.c: use gpsim usart module from
6000           libgpsim_modules library
6001
6002 2006-06-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
6003
6004         * device/include/mcs51/at89c51ed2.h: Fixed bug 1510144 changed
6005         IP0H to IPH0.
6006
6007 2006-06-19 Raphael Neider <rneider AT web.de>
6008
6009         * src/pic/glue.h,src/pic16/glue.h: added prototypes
6010         * src/pic/glue.c,src/pic16/glue.c (pic1x_stringInSet,
6011           pic1x_emitSymbolIfNew): NEW, check for a string in a set,
6012           (pic14printExterns,pic14printPublics,pic16printPublics,
6013           pic16_printExterns): use new functions to emit symbols
6014           (picglue,pic16glue): emit publics before emitting externs
6015         * src/pic/gen.c,src/pic16/gen.c (genFunction): remember the names of
6016           locally defined functions to avoid bug #1443651
6017         * support/regression/tests/bug-716242.c: removed pic16 workaround
6018         * support/regression/ports/pic16/spec.mk: ignore errors during build
6019
6020 2006-06-19 Raphael Neider <rneider AT web.de>
6021
6022         * src/pic/glue.h: added pic14aopLiteral prototype
6023         * src/pic/glue.c (pic14aopLiteral): return unsigned int
6024         * src/pic/gen.c: removed stdint.h dependency
6025           (aopGet): use Safe_strdup()
6026           (bitpatternFromVal): removed, replaced use with pic14aopLiteral
6027           (genDataPointerSet): use pic14aopLiteral()
6028         * src/pic16/glue.h, src/pic16/glue.c, src/pic16/gen.c: similar changes
6029           for pic16; thanks to Bernhard and Maarten
6030
6031 2006-06-18 Borut Razem <borut.razem AT siol.net>
6032
6033         * support/regression/tests/structflexarray.c: flexible array members
6034           not supported by gcc < 3
6035         * sim/ucsim/configure, sim/ucsim/configure.in: do not compile serio
6036           GUI tool by default
6037         * src/pic/gen.c: don't include [p]strdin.h on solaris
6038         * support/Util/pstdint.h: addad svn attributes
6039         * support/regression/tests/constantRange.c,
6040           support/regression/tests/rotate.c: include inttypes.h instead
6041           stdint.h on solaris, addad svn attributes
6042
6043 2006-06-18 Raphael Neider <rneider AT web.de>
6044
6045         * src/SDCCsymt.c (initCSupport): change return type of divschar to
6046           int for PIC16
6047         * src/pic16/genarith.c (genAddLit): sign-extend via standard routine
6048           (pic16_genMinusBits): simplified sign-extension
6049           (pic16_genUMult8XLit_8,pic16_genUMult8X8_8): renamed to
6050             pic16_genMult8XLit_n resp. pic16_genMult8X8_n, fixed and
6051             adjusted to correctly handle mixed-signed operands, disabled
6052             now unused multiplciation routines
6053         * src/pic16/gen.c (pic16_pushpCodeOp): fixed to handle literals
6054           (assignResultValue): added argument denoting the size of the result
6055             as returned by the function (fixes upcasts in assigning from
6056             function calls: char foo(); int i = foo();)
6057           (genCall,genPcall,genGenPointerGet,genReceive): pass size of
6058             function result to assignResultValue
6059           (genMult): disabled inlined multiplication code
6060           (genDiv): augmented to also handle the modulus operator, fixed to
6061             handle mixed-signed operands correctly
6062           (genMod): simply call genDiv, disabled unused code
6063           (genAssign): fixed missing (sign-)extension on result
6064         * src/pic16/main.c (_hasNativeMulFor): accept literals [-128..256) as
6065             valid char operands, allow signed operands for native code, added
6066             division and modulo operator handling
6067         * device/lib/pic16/libsdcc/char/divschar.c: divschar returns an int
6068
6069         As a consequence, onebyte.c (if split into two files) and muldiv.c
6070         pass regression tests.
6071
6072 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6073
6074         * doc/Makefile.in: two runs of makeindex seem needed to get
6075         correct page references in the index of sdccman.pdf
6076         * doc/sdccman.lyx: mentioned cmon51, added links, small changes
6077
6078 2006-06-17 Borut Razem <borut.razem AT siol.net>
6079
6080         * sdcc/device/lib/Makefile.in: corrected PORTINCDIR path
6081
6082 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6083
6084         * doc/sdccman.lyx: updated, added (porting source code, debugging),
6085         mentioned ec2drv and paulmon
6086
6087 2006-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
6088
6089         * as/mcs51/lkarea.c (lnkarea2): clear new xdatamap, bugfix for two
6090           consecutive abs areas
6091           (find_empty_space, allocate_space): added map to handle codemap or
6092            xdatamap,
6093           (lnksect2): renamed rloc to locIndex, fixed bug 960060 by handling
6094            absolute idata and xdata
6095         * as/mcs51/lkmem.c (summary2): updated legend
6096
6097 2006-06-16 Raphael Neider <rneider AT web.de>
6098
6099         * src/pic16/gen.c (shiftR2Left2Result): fixed bug #1507127
6100
6101 2006-06-13 Maarten Brock <sourceforge.brock AT dse.nl>
6102
6103         * debugger/mcs51/cmd.c (cmdListFunctions): fixed bugs 1181163 and
6104           1208515
6105         * src/SDCClrange.c (findPrevUse): fixed bug 1294475
6106
6107 2006-06-13 Vangelis Rokas <vrokas AT users.sourceforge.net>
6108
6109         * src/port.h (struct PORT): added field gp_tags, to hold the tag
6110         value of generic pointers,
6111         * src/avr/main.c,
6112           src/ds390/main.c,
6113           src/hc08/main.c,
6114           src/izt/i186.c,
6115           src/izt/tlcs900h.c,
6116           src/mcs51/main.c,
6117           src/pic/main.c,
6118           src/pic16/main.c,
6119           src/xa51/main.c,
6120           src/z80/main.c: PORT structure, added elements for gp_tags field,
6121         * src/SDCCsymt.h: replaced hardwired values of GPTYPE_* macros with
6122         fields in the PORT structure of each port,
6123         * src/SDCCast.c (decorateType): allow processing of generic pointers
6124         for PIC16 port (FPTRSIZE equals GPTRSIZE), also set GPTYPE_NEAR for
6125         S_FIXED symbols
6126
6127 2006-06-12 Maarten Brock <sourceforge.brock AT dse.nl>
6128
6129         * link/z80/lkgb.c,
6130         * link/z80/lkgg.c,
6131         * src/pic16/gen.c,
6132         * src/pic16/main.c,
6133         * src/pic16/pcode.c,
6134         * src/pic/main.c,
6135         * src/pic/pcoderegs.c,
6136         * src/SDCCicode.c,
6137         * src/SDCCmain.c,
6138         * src/SDCCsymt.c: replaced all exit(-1) by exit(EXIT_FAILURE) to fix
6139           bug 1504689 on minGW
6140
6141 2006-06-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6142
6143         * device/lib/printf_tiny.c: fixed bug #1465675 (%x format specifier)
6144
6145 2006-06-12 Bernhard Held <bernhard AT bernhardheld.de>
6146
6147         * src/SDCCast.c (backPatchLabels): fixed bug #1504636
6148
6149 2006-06-11 Maarten Brock <sourceforge.brock AT dse.nl>
6150
6151         * device/lib/printf_large.c (OUTPUT_CHAR, _output_char): added and used
6152           for optimization
6153
6154 2006-06-11 Vangelis Rokas <vrokas AT users.sourceforge.net>
6155
6156         * src/pic16/gen.c (genCast): fixed bug with assignment of a pointer
6157         to a char variable. Fixed bug #1504211
6158         * device/include/pic16/adc.h,
6159         device/include/lib/pic16/libio/adc/adcopen.c: applied patch #1364387
6160         and fixed bug #1364390
6161
6162 2006-06-10 Borut Razem <borut.razem AT siol.net>
6163
6164         * CVSROOT: removed the CVS left-over
6165
6166 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
6167
6168         * as/hc08/asmain.c (asexit),
6169         * as/hc08/lkmain.c (lkexit),
6170         * as/mcs51/asmain.c (asexit),
6171         * as/mcs51/lkmain.c (lkexit),
6172         * src/SDCCglue.c (DEFSETFUNC),
6173         * src/SDCCmain.c (linkEdit, assemble),
6174         * support/librarian/sdcclib.c (AddRel),
6175           replaced unlink() by standard C remove()
6176         * src/SDCC.y: replaced removePostIncDecOps() by createRMW()
6177         * src/SDCCast.c (replaceAstWithTemporary, createRMW,
6178           gatherImplicitVariables): new, added to fix bug 608752,
6179           (createFunction): added gatherImplicitVariables()
6180         * src/SDCCast.h: added createRMW prototype
6181         * src/SDCCsymt.h (struct symbol): added infertype
6182         * support/regression/tests/bug608752.c: new, added
6183
6184 2006-06-10 Raphael Neider <rneider AT web.de>
6185
6186         * src/pic16/gen.c (pic16_aopOp): use WREG as destination even for
6187           multibyte dummy reads (fixes #1503234)
6188
6189 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
6190
6191         * device/include/mcs51/compiler.h: new, added header file to enable
6192           creating common sfr definition header files for different compilers
6193
6194 2006-06-05 Raphael Neider <rneider AT web.de>
6195
6196         * src/pic16/{pcode.h,genarith.c}:
6197           introduced pCodeOp combining any two pCodeOps (previously only
6198           two register operands could be combined), removed pcop2 from
6199           pCodepReg, replaced pCodeOpReg2 with pCodeOp2, fixes #1492366
6200         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): added case for PO_TWO_OPS
6201         * src/pic16/gen.c (pic16_popGet2,pic16_popGet2p,pic16_popCombine2):
6202           rewritten to use new PO_TWO_OPS
6203         * src/pic16/main.c (_hasNativeMulFor): cover more cases natively,
6204         * src/pic16/pcode.c (pic16_newpCodeOpImmd): initialize rIdx field,
6205           (pic16_newpCodeOp): catch invalid attempts on PO_TWO_OPS,
6206           (pic16_newpCodeOp2): NEW, create combined pCodeOp,
6207           (pic16_get_op): embraced return arg to allow #define return(x),
6208             added new case for combined opcodes
6209           (pic16_get_op2): reduced to use pic16_get_op() on second pCodeOp,
6210           (pic16_pCode2str,pic16_getRegFrompCodeOp,
6211            pic16_getRegFromInstruction2): fixed/added handling of new pCodeOp
6212
6213 2006-06-04 Bernhard Held <bernhard AT bernhardheld.de>
6214
6215         * src/SDCCval.c (checkConstantRange): added
6216         * src/SDCCval.h: added checkConstantRange
6217         * support/Util/SDCCerr.c,
6218         * support/Util/SDCCerr.h: replaced unused W_IF_NEVER_TRUE and
6219         W_IF_ALWAYS_TRUE by W_COMP_RANGE and W_LIT_OVERFLOW
6220         * src/SDCC.y: moved early 'condition transformations' to SDCCast.c
6221         * src/SDCCast.c (decorateType): added checkConstantRange,
6222         added 'condition transformations' from SDCC.y so that now W_COMP_RANGE
6223         can be emitted with the correct always true/false warning,
6224         added optimization for double '!';
6225         result of decorateType() must be assigned back to the tree, because
6226         decorateType() can change the tree
6227         * src/SDCCicode.c (geniCodeLogic),
6228         (geniCodeAssign): replaced new checkConstantRange, added warnings,
6229         (checkConstantRange): removed, it was only a fragment which never
6230         emitted a warning
6231         * src/SDCCsymt.c (computeType): fixed promotion for
6232         "-1 < (unsigned bit) b"
6233         * src/pic/ralloc.c (packRegsForAssign),
6234         * src/pic16/ralloc.c (packRegsForAssign),
6235         * src/hc08/ralloc.c (packRegsForAssign),
6236         * src/z80/ralloc.c (packRegsForAssign): ported fix for bug #930931
6237         from mcs51
6238         * src/mcs51/ralloc.c (packRegsForAssign): removed outcommented source
6239         * support/regression/tests/constantRange.c: added
6240         * support/valdiag/tests/constantRange.c: added
6241         * support/valdiag/valdiag.py: added -DPORT_HOST=1
6242
6243 2006-06-02 Borut Razem <borut.razem AT siol.net>
6244
6245         * support/regression/ports/pic16/support.c: increase stack size
6246           to 255 bytes
6247         * support/regression/Makefile.in: sort tests by name so that the
6248           resutlts can be compared on different machines / platforms
6249
6250 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
6251
6252         * device/lib/printf_large.c (output_digit): optimized further, Tnx Frieder
6253         * src/ds390/gen.c (emitLabel): new, added,
6254           (genDjnz): fixed stack overflow bug,
6255           (throughout): cosmetic changes to sync with mcs51/gen.c,
6256           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl)
6257         * src/mcs51/gen.c (genEndFunction): small optimization,
6258           (throughout): cosmetic changes to sync with ds390/gen.c
6259
6260 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
6261
6262         * device/lib/printf_large.c (output_digit, calculate_digit): optimized,
6263           (_print_format): fixed printing pointers
6264         * src/mcs51/gen.c (emitLabel, movb): new, added,
6265           (genAssign): small optimization,
6266           (genDjnz): fixed stack overflow bug,
6267           (throughout): replaced sprintf with SNPRINTF,
6268           replaced mcs51_regWithIdx with REG_WITH_INDEX,
6269           replaced emitcode("mov", "b,...") with MOVB(...),
6270           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl),
6271           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
6272         * src/mcs51/peeph.def: added rules 140 and 264
6273         * src/SDCCmem.c (allocLocal): store register declared locals in DSEG/OSEG
6274           so they may get optimized into registers
6275
6276 2006-05-30 Maarten Brock <sourceforge.brock AT dse.nl>
6277
6278         * src/SDCCmain.c (optionsTable, parseCmdLine): handle --use-stdout
6279           immediately when encountered,
6280           (printUsage): always use stderr even on windows
6281
6282 2006-05-30 Bernhard Held <bernhard AT bernhardheld.de>
6283
6284         * src/SDCCast.c (isLoopCountable): fixed bug #1478316
6285         (processParms): fixed bug #1247551
6286         * src/SDCCmain.c (printVersionInfo, printOptions, printUsage,
6287         parseCmdLine, main): print '--version' to stdout,
6288         print 'help' to stdout if --help is given,
6289         print 'help' to stderr and exit with EXIT_FAILURE if no or bad
6290         arguments are given; fixed --help
6291
6292 2006-05-27 Bernhard Held <bernhard AT bernhardheld.de>
6293
6294         * src/SDCCcse.c (findPointerSet): fixed bug #1493710
6295         * support/regression/tests/bug-1493710.c: added
6296
6297 2006-05-27 Borut Razem <borut.razem AT siol.net>
6298
6299         * support/regression/fwk/lib/testfwk.c: define array in _printn() as
6300           static instead auto
6301         * support/regression/ports/pic16/support.c: increase stack size
6302           from default 64 bytes to 128 bytes
6303         * support/regression/tests/staticinit.c,
6304           support/regression/tests/float.c: regression tests fully enabled
6305           for pic16 port by putting the initialized data arrays into the code
6306           section
6307         * support/regression/ports/pic16/spec.mk: don't link default libraries.
6308           This was changed by mistake in the previous version.
6309
6310 2006-05-28 Vangelis Rokas <vrokas AT users.sourceforge.net>
6311
6312         * src/pic16/gen.c (genFunction, genEndFunction): some
6313         beautifications, fixed bug with falsely restoring FSR2 in large
6314         stack model, thanks to Beau E. Cox for reporting the bug
6315
6316 2006-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
6317
6318         * debugger/mcs51/break.c,
6319         * debugger/mcs51/cmd.c (throughout): removed unused variables and labels,
6320           use %p to print pointers, made address variables unsigned
6321         * debugger/mcs51/cmd.c (infoSymbols): added missing parameter to printf
6322         * debugger/mcs51/symtab.c (parseSymbol): must return something
6323         * src/mcs51/gen.c (aopForSym): small optimization,
6324            moved declarations mcs51_ptrRegReq and mcs51_nRegs to ralloc.h,
6325           (freeAsmop): added missing break,
6326           (aopPut): removed parameter bvolatile, determine it inside the function,
6327           (saveRegisters, unsaveRegisters): small optimization,
6328           (genIpush): removed pointless check,
6329           (throughout): replaced Safe_calloc, strcpy with Safe_strdup,
6330           replaced sprintf with SNPRINTF,
6331           replaced strcpy with strncpyz,
6332           updated aopPut calls,
6333           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
6334         * src/mcs51/ralloc.h:  added declarations mcs51_ptrRegReq and mcs51_nRegs
6335
6336 2006-05-24 Borut Razem <borut.razem AT siol.net>
6337
6338         * support/regression/tests/bug-221100.c: fixed xdata problem caused by
6339           modification of test for the pic16 port, put the array to the code
6340           memory for pic16port; thanks to Maarten Brock and Frieder Ferlemann
6341
6342 2006-05-23 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
6343
6344         * src/pic/gen.c: MSC 6 does not have <stdint.h>.  Use pstdint.h instead.
6345         * support/Util/pstdint.h: added
6346
6347 2006-05-22 Borut Razem <borut.razem AT siol.net>
6348
6349         * src/regression/Makefile: removed bool2.c test, added -q linker option
6350         * src/regression/add2.c, src/regression/add3.c, src/regression/bool1.c,
6351           src/regression/bool3.c, src/regression/nestfor.c, src/regression/ptrfunc.c,
6352           src/regression/compare.c, src/regression/or1.c, src/regression/compare2.c,
6353           src/regression/while.c, src/regression/compare3.c, src/regression/compare4.c,
6354           src/regression/compare5.c, src/regression/sub2.c, src/regression/rotate1.c,
6355           src/regression/rotate2.c, src/regression/rotate3.c, src/regression/rotate4.c,
6356           src/regression/switch1.c, src/regression/rotate5.c, src/regression/for.c,
6357           src/regression/add.c, src/regression/sub.c, src/regression/call1.c:
6358           define SUPPORT_BIT_TYPES 0, removed unused bit variables
6359
6360 2006-05-22 Raphael Neider <rneider AT web.de>
6361
6362         * src/pic16/gen.c (pic16_storeForReturn): fragile fix for
6363           bug #1492360 (problematic due to generic pointers, see code)
6364
6365 2006-05-22 Borut Razem <borut.razem AT siol.net>
6366
6367         * support/regression/ports/pic16/specs.mk: removed stack size linker
6368           directive
6369         * support/regression/tests/array.c,
6370           support/regression/tests/bitopcse.c,
6371           support/regression/tests/bug-908454.c,
6372           support/regression/tests/malloc.c: modified for pic16 regression test
6373         * support/regression/tests/bitfields.c:
6374           pic16 - excluded bitfileds of size > 8
6375         * support/regression/tests/bp.c: pic16 - reduced data size
6376         * support/regression/tests/bug-221100.c: pic16 - reduced data size
6377         * support/regression/tests/bug-460010.c:
6378           pic16 - used the absolute address the fits in memory
6379         * support/regression/tests/bug-716242.c:
6380           bug [ 1443651 ] pic 16: redefining symbol that cannot be redefined.
6381         * support/regression/tests/float.c:
6382           pic16 - excluded - data size too big
6383         * support/regression/tests/onebyte.c:
6384           pic16 - bug [ 1444425 ] onebyte.c regression tes fails on pic16
6385         * support/regression/tests/shifts.c:
6386           pic16 - function names probably have to differ in first X characters
6387           (gpasm limitation?)
6388         * support/regression/tests/staticinit.c:
6389           pic16 - excluded some tests due error: no target memory available for
6390           section ".idata"
6391
6392 2006-05-22 Borut Razem <borut.razem AT siol.net>
6393
6394         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
6395           second try. Thanks Stas Sergeev once more.
6396
6397 2006-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
6398
6399         * src/hc08/gen.c (transferAopAop): aop forced to stack was not restored,
6400           (genLeftShift, genRightShift): fixed bug 1491627
6401         * src/hc08/peeph.def (rules 7, 8.x): added
6402         * support/regression/tests/shifts.c (ShiftLeftByParam,
6403           ShiftRightByParam, testShiftByParam): added to test variable shifting
6404
6405 2006-05-20 Raphael Neider <rneider AT web.de>
6406
6407         * src/pic/gen.c (bitpatternFromVal): fixed for 64-bit machines
6408         * src/pic16/ralloc.c (newReg): use correct name in hashtable,
6409           (allocReg): add only new registers to dynAllocRegs,
6410           (pic16_assignRegisters): do not reset dynrIdx, fixes bugs
6411             #1489055, #1445850, and probably #1483693
6412
6413 2006-05-19 Vangelis Rokas <vrokas AT users.sourceforge.net>
6414
6415         * src/pic16/glue.c (pic16_emitConfigRegs, pic16_emitIDRegs): fixed
6416         bug in for-loop that didn't emit the last of CONFIG and ID registers
6417
6418 2006-05-18 Maarten Brock <sourceforge.brock AT dse.nl>
6419
6420         * src/mcs51/gen.c (genCodePointerGet): inc dptr instead of loading acc
6421           with offset
6422         * src/mcs51/peeph.def (186.x): updated and reenabled to fix bugs
6423           1489016, 1434401 and 1490124
6424         * src/ds390/peeph.def (186.x, 227.x): updated and reenabled to fix bugs
6425           1489016, 1434401 and 1490124
6426
6427 2006-05-17 Borut Razem <borut.razem AT siol.net>
6428
6429         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
6430           thanks Stas Sergeev
6431
6432 2006-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
6433
6434         * device/include/mcs51/P89c51RD2.h,
6435         * device/include/mcs51/P89LPC901.h,
6436         * device/include/mcs51/P89LPC922.h,
6437         * device/include/mcs51/P89LPC932.h: added, thanks Omar Espinosa
6438
6439 2006-05-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
6440
6441         * device/lib/pic16/libsdcc/stack/{stack.S, Makefile.in}: add workaround
6442         to fix missing stack pragma in compiled binary object file,
6443
6444 2006-05-14 Bernhard Held <bernhard AT bernhardheld.de>
6445
6446         * support/packihx/configure.in,
6447         * support/packihx/configure: removed warning, autoconf >= 2.5x can
6448         determine sizeof basic types even while cross compiling
6449
6450 2006-05-13 Bernhard Held <bernhard AT bernhardheld.de>
6451
6452         * src/avr/gen.c (aopop),
6453         * src/ds390/gen.c (aopOp),
6454         * src/hc08/gen.c (aopOp),
6455         * src/mcs51/gen.c (aopop),
6456         * src/pic16/gen.c (pic16_aopOp),
6457         * src/pic/gen.c (aopOp),
6458         * src/z80/gen.c (aopop): fix for bug #1479882; use new, exclusive asmop
6459         if size of operand is smaller than spill location
6460
6461 2006-05-12 Borut Razem <borut.razem AT siol.net>
6462
6463         * *.dsw, *.dsp: changed property svn:eol-style to CRLF since they
6464           have to have CR/LF line endings even if they are checked out on *nix
6465           or on WIN32 in cygwin binmode
6466
6467 2006-05-12 Maarten Brock <sourceforge.brock AT dse.nl>
6468
6469         * doc/sdccman.lyx: documented numeric ranges, WEBDOC #1442369
6470         * device/include/ds80c390.h: added sfr16 definitions
6471         * src/ds390/gen.c,
6472         * src/ds390/gen.h,
6473         * src/ds390/main.c,
6474         * src/ds390/ralloc.c,
6475         * src/ds390/ralloc.h: changes all over the place to sync with mcs51
6476           fixing several bugs and adding sfr16/sfr32, reentrant bit params,
6477           bit returning functions
6478         * support/regression/tests/sfr16.c: enabled test on ds390
6479
6480 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6481
6482         * src/hc08/gen.c (asmopToBool, genIfx): fix for bug #1429722
6483         * src/hc08/gen.c (storeRegToAop): fix for bug #1439894
6484
6485 2006-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
6486
6487         * sim/ucsim/sim.src/memcl.h: added get_decoder() to cl_address_space
6488         * sim/ucsim/sim.src/mem.cc: implemented cl_address_space::get_decoder,
6489           (cl_address_space constructor): removed expensive initialization,
6490           (cl_address_space::get_cell): extended for late initialization,
6491           (cl_address_space::*): use late initialization,
6492           (cl_address_decoder::activate): removed expensive initialization,
6493           This reduced regression test running time by 25%
6494
6495 2006-05-11 Bernhard Held <bernhard AT bernhardheld.de>
6496
6497         * packihx/,
6498         * configure.in,
6499         * configure,
6500         * sdcc.dsw,
6501         * Makefile.bcc,
6502         * Makefile.in,
6503         * support/packihx/Makefile.in,
6504         * support/packihx/clean.mk,
6505         * support/packihx/Makefile.bcc,
6506         * support/packihx/PackIhx.dsp: moved packihx to support/packihx
6507
6508 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6509
6510         * src/SDCCval.c (valNot): fix for regression test failure
6511           of not.c on big endian hosts
6512
6513 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
6514
6515         * device/inlcude/mcs51/msc1210.h: new, added, thanks Philippe Latu
6516
6517 2006-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6518
6519         * device/lib/mcs51/Makefile.in: changed string comparison operator
6520           to = for POSIX compliance; == is bash extension
6521
6522 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
6523
6524         * device/lib/hc08/_mulint.c: applied patch 1485428, thanks
6525           kosmonaut_pirx
6526
6527 2006-05-09 Vangelis Rokas <vrokas AT users.sourceforge.net>
6528
6529         * src/pic16/gen.c (pic16_freeAsmop): release any temp registers
6530         allocated by aopForSym thus fixing bug #1478657 about failed testfwk.c
6531         * src/pic16/main.c (_pic16_keywords): added 'sfr16' keyword,
6532         * src/pic16/ralloc.c (pic16_allocWithIdx): also a fix for bug exposed by
6533         bug report #1478657,
6534
6535 2006-05-05 Borut Razem <borut.razem AT siol.net>
6536
6537         * doc/Makefile.in: remove of WARNINGS and labels.pl immediately after
6538           making the html
6539
6540 2006-05-02 Borut Razem <borut.razem AT siol.net>
6541
6542         * doc/Makefile.in: removed *.ind dependency since there is no rule to
6543           create *.ind, which made make to fail if invoked with -j 2
6544
6545 2006-05-01 Maarten Brock <sourceforge.brock AT dse.nl>
6546
6547         * src/SDCCglue.c (emitRegularMap): partial fix for bug 1477149, thanks
6548           Hubert Sack for patch 1479782
6549
6550 2006-05-01 Vangelis Rokas <vrokas AT users.sourceforge.net>
6551
6552         * src/pic16/glue.c (pic16_printIvalStruct): fixed bug #1445929
6553
6554 2006-05-01 Raphael Neider <rneider AT web.de>
6555
6556         * src/pic/device.c (sanitise_processor_name): only remove p(ic) prefix,
6557           (create_pic): store only prefix-free device name,
6558           (init_pic): check for device names with "16" prefix,
6559           (list_valid_pics),
6560         * src/pic/device.h (struct PIC_device),
6561         * src/pic/main.c (_pic14_genAssemblerPreamble): adapted to single
6562             stored device name,
6563         * device/include/pic/pic12f{635,675,629,683}.h,
6564         * device/lib/pic/libdev/pic12f{635,675,629,683}.c: NEW device libraries
6565         * device/lib/pic/libdev/Makefile.in: allow pic12* devices,
6566         * device/include/pic/pic16f505.h,
6567         * device/lib/pic/libdev/pic16f505.c: removed
6568         * device/include/pic/pic14devices.txt: added support for pic12f
6569             devices, removed unsupported non 16-bit devices
6570             [above changes provided by patch from Zik Saleeba]
6571         * src/pic/*, src/pic16/*, device/include/pic16/*,
6572           device/lib/pic/**, device/lib/pic16/**: obfuscated email address
6573
6574 2006-05-01 Borut Razem <borut.razem AT siol.net>
6575
6576         * configure.in, configure, doc/Makefile.in:
6577           sync with nightly build makefile - latex, dvipdf and dvips
6578           not needed any more
6579
6580 2006-04-30 Bernhard Held <bernhard AT bernhardheld.de>
6581
6582         * support/scripts/sdcc.nsi: removed all Readmes and Makefiles
6583         in the library source
6584
6585 2006-04-30 Maarten Brock <sourceforge.brock AT dse.nl>
6586
6587         * support/regression/ports/hc08/spec.mk: fixed bug 1478892
6588
6589 2006-04-28 Raphael Neider <rneider AT web.de>
6590
6591         * src/pic16/pcode.c (pic16_newpCodeOpLit12),
6592         * src/pic16/gen.c (pic16_popGetLit12): NEW, create 12 bit literal,
6593           (pic16_loadFSR0): handle 12 bit literals correctly, fixes #1440527
6594         * src/pic16/pcode.h: added prototype for pic16_newpCodeOpLit12()
6595
6596 2006-04-28 Bernhard Held <bernhard AT bernhardheld.de>
6597
6598         * device/lib/pic/libdev/Makefile.in,
6599         * device/lib/hc08/Makefile.in,
6600         * device/lib/gbz80/Makefile.in,
6601         * device/lib/z80/Makefile.in,
6602         * device/lib/ds390/Makefile.in,
6603         * device/lib/ds400/Makefile.in: added srcdir to include search path,
6604         thanks to Borut for the bug report
6605         * configure.in,
6606         * configure: always create doc/Makefile independent from --enable-doc
6607         * Makefile.in: always install from directory doc independent from
6608         --enable-doc
6609         * device/lib/pic/Makefile.in: added libdev again, it was erroneously
6610         removed
6611         * device/lib/pic/libdev/Makefile.in: fixed VPATH build
6612         * doc/Makefile.in: install *.txt if present
6613         * device/include/Makefile.in (install): added installation of pic/*.inc
6614         and pic/*.txt files again, they were erroneously removed
6615
6616 2006-04-28 Raphael Neider <rneider AT web.de>
6617
6618         * src/pic/{gen.c,main.h,pcode.c},
6619         * src/pic16/{gen.c,pcode.c}: quietened compiler warnings
6620             concerning signedness with casts
6621
6622 2006-04-28 Raphael Neider <rneider AT web.de>
6623
6624         * src/pic/gen.c (genFunction): set global pic14_hasInterrupt on
6625             definition of an interrupt handler,
6626         * src/pic/glue.c (pic14_emitInterruptHandler): moved output of
6627             interrupt handler stuff from picglue() to separate routine,
6628           (picglue): enabled definition of intr handlers in files w/o main()
6629
6630 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
6631
6632         * support/librarian/sdcclib.c: moved include <limits.h> up to enable
6633           compilation with MSVC 2005 Express Edition (VC8)
6634
6635 2006-04-26 Bernhard Held <bernhard AT bernhardheld.de>
6636
6637         * device/lib/Makefile: fixed build of gbz80 lib
6638
6639 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
6640
6641         * support/regression/tests/bug-460010.c,
6642         * support/regression/tests/bug-524691.c,
6643         * support/regression/tests/bug-716242.c: removed conditional defines
6644           that are already in testfwk.h
6645
6646 2006-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
6647
6648         * src/ds390/gen.c (AccAXRrl1, AccAXLrl1): changed to real rotate by 1,
6649           (AccAXRsh1): added, shift right by 1,
6650           (AccAXLsh, AccAXRsh, AccAXRshS): updated for AccAXRrl1, AccAXRsh1 and
6651            AccAXLrl1
6652         * support/regression/tests/rotate.c: use <stdint.h> and enabled ds390
6653
6654 2006-04-25 Bernhard Held <bernhard AT bernhardheld.de>
6655
6656         * src/SDCCast.c (decorateType): partial fix for RFE 1475769,
6657         remove cast to same type
6658         * src/SDCCast.c (decorateType): fix for RFE 1475742,
6659         optimize 'ifx (op == 0)' resp. 'ifx (op != 0)'
6660         * as/z80/Makefile,
6661         * link/z80/Makefile: removed, they have moved to
6662         Makefile.in files
6663         * configure,
6664         * configure.in: replaced duplicate message about ucsim by missing sdcpp
6665         * install-sh: fix bug #1204398 by setting umask 0022
6666         * device/lib/Makefile: separate build of z80 and gbz80 lib
6667
6668 2006-04-24 Bernhard Held <bernhard AT bernhardheld.de>
6669
6670         Enabled VPATH feature: changed nearly all Makefiles (149 files).
6671         See sdccman.lyx '2.4.10 VPATH feature' about how to use it.
6672
6673         One basic decision: e.g. src/clean.mk includes further files. In order
6674         to make this work there are two solutions:
6675         - rename another dozen clean.mk to clean_in.mk, add srcdir to them and
6676           run configure on them. This way they can use
6677           'include $(srcdir)/port-clean.mk'
6678         - always include clean.mk by the Makefile at the same level. To avoid
6679           that `make clean` tries to include and build Makefile.dep the
6680           MAKECMDGOALS are examined (see e.g. src/Makefile.in). This has been
6681           implemented, because now even `make uninstall` doesn't create
6682           Makefile.in. clean.mk could be eliminated by pasting it in
6683           Makefile.in.
6684
6685         * debugger/mcs51/Makefile.in: build own objects from library sources
6686         (SLIB, SDCC) in current directory
6687
6688         * configure, configure.in: renamed --disable-device-lib-build in
6689         --disable-device-lib; added --enable-doc, the required tools are
6690         searched by configure; added result message; the toolchain for the
6691         belonging ports are now only built, if the port is enabled.
6692
6693         * support/regression/*: all output is written in directory gen, because
6694         the fwk and ports directories don't livet in the build tree using vpath
6695
6696         * doc/sdccman.lyx: renamed --disable-device-lib-build to
6697         --disable-device-lib, added --enable-doc, added section VPATH
6698
6699         * sim/ucsim/configure.in,
6700         * sim/ucsim/configure.in: hc08 couldn't be disabled, now hc08 and
6701         z80 are enabled by default
6702
6703 2006-04-24 Raphael Neider <rneider AT web.de>
6704
6705         * src/pic/device.c (pic14_assignConfigWordValue): remember assignments
6706             to config word, "pic14_"-prefixed some extern functions
6707           (pic14_emitConfigWord): emit __config directive(s) if assignment to
6708             config word has been found
6709         * src/pic/device.h: added prototypes
6710         * src/pic/pcode.c: added "pic14_"-prefix where needed
6711         * src/pic/ralloc.c (IS_CONFIG_ADDRESS,pic14_assignRegisters): cosmetic
6712             fixup
6713         * src/pic/glue.c (pic14_constructAbsMap): handle assignments to config
6714             words,
6715           (pic14emitRegularMap): ignore config words,
6716           (pic14createInterruptVect): moved generating __config directives away
6717           (picglue): have __config directives emitted
6718
6719 2006-04-24 Borut Razem <borut.razem AT siol.net>
6720
6721         * doc/Makefile: sync with nightly build makefile
6722
6723 2006-04-24 Raphael Neider <rneider AT web.de>
6724
6725         * src/pic/pcoderegs.c (OptimizeRegUsage): do not optimize
6726             registers that have not been assigned proper liveranges,
6727             fixes #1469504 and #1474602,
6728           (pCodeRegOptimizeRegUsage): fixed typo in comment
6729
6730 2006-04-24 Borut Razem <borut.razem AT siol.net>
6731
6732         * device/examples/main8051.c: deleted - it was removed from CVS
6733           24.mar.2000 and after that modified 18.feb.2001, so it reappered
6734           after the transition to Subversion
6735         * src/SDCCalloc.h: deleted - it was removed  from CVS
6736           3.feb.2001 and after that modified 18.feb.2001, so it reappered
6737           after the transition to Subversion
6738         * sim/ucsim/cpu.gif, sim/ucsim/interrupt.gif, sim/ucsim/new.gif,
6739           sim/ucsim/serial1.gif, sim/ucsim/serial2.gif,
6740           sim/ucsim/term_cpuopt.gif, sim/ucsim/timers.gif, sim/ucsim/wins.gif,
6741           sim/ucsim/post.jpg, sim/ucsim/UCsim.jpg: corrected
6742
6743 2006-04-22 Maarten Brock <sourceforge.brock AT dse.nl>
6744
6745         * as/asx8051.dsp: added mcs51/strcmpi.h
6746         * as/hc08/as_hc08.dsp: added asm.h, m6808.h, strcmpi.h
6747         * as/hc08/aslink.h: updated lnksect prototype
6748         * as/hc08/asm.h,
6749         * as/mcs51/asm.h: added a_addr to struct area and s_org to struct sym
6750         * as/hc08/asmain.c,
6751         * as/mcs51/asmain.c (asmbl): init dot.s_org for S_ORG,
6752           (newdot): handle A_ABS
6753         * as/hc08/asout.c,
6754         * as/mcs51/asout.c (outarea): output address
6755         * as/hc08/lkaomf51.c,
6756         * as/mcs51/lkaomf51.c: disabled unused array UsageType
6757         * as/hc08/m08pst.c,
6758         * as/mcs51/i51pst.c,
6759         * as/z80/z80pst.c: "ABS" is not A_OVR
6760         * as/hc08/lkarea.c (newarea): read a_addr,
6761           (lnkarea): added codemap array, sort absolute areas to the front,
6762            combine all GSINITx/GSFINAL,
6763           (find_empty_space, allocate_space): new functions,
6764           (lnksect): return next address, handle absolute sections
6765         * as/mcs51/lkarea.c (newarea): read a_addr,
6766           lnksect2 prototype changed,
6767           (lnkarea2): define codemap unsigned, combine all GSINITx/GSFINAL,
6768           (find_empty_space, allocate_space): new, factored out of lnksect2,
6769           (lnksect2): return next address, handle absolute sections
6770         * as/hc08/lkhead.c,
6771         * as/mcs51/lkhead.c (newhead): head is absolute but not overlay
6772         * as/hc08/lklibr.c (addfile, fndsym),
6773         * as/mcs51/lklibr.c (addfile, buildlibraryindex, fndsym): prevent
6774           index out of range and detect both '\' and '/'
6775         * device/include/mcs51/c8051f200.h: added _XPAGE, removed bad comment
6776         * device/include/stdbool.h: removed SDCC_ds390 from check to pass
6777           regression tests (ds390 cannot return bool yet)
6778         * doc/sdccman.lyx: changed version number, document changed --no-peep,
6779           document critical interrupts on z80, document changed SDCC define
6780         * src/asm.c (_asxxxx_mapping): fixed .org directive,
6781           (_a390_mapping): added .org directive
6782         * src/hc08/gen.c (transferAopAop): made bytemask log to fix warning,
6783           (genMultOneByte): fixed warnings
6784         * src/hc08/hc08.dsp: lowered warning level to 2 to suppress pedantic
6785           ones
6786         * src/pic16/device.c: removed newReg prototype, removed BYTE_IN_LONG
6787         * src/pic16/gen.c (pic16_popGetLabel): made parameter key signed,
6788           (pic16_genLeftShiftLiteral, genRightShiftLiteral): fixed warnings
6789         * src/pic16/gen.h: changed prototype for pic16_popGetLabel
6790         * src/pic16/main.c: removed newReg prototype
6791         * src/pic16/pcode.c,
6792         * src/pic16/pcode.h (pic16_emitDB): changed parameter c to int to fix
6793           warnings
6794         * src/pic16/pic16.dsp: lowered warning level to 2 to suppress pedantic
6795           ones
6796         * src/pic16/ralloc.c
6797         * src/pic16/ralloc.h (newReg): changed type to int and size to unsigned
6798           to fix warnings
6799         * src/pic/pcode.c (allocInternalRegister): changed parameter optype
6800           from short to PIC_OPTYPE
6801         * src/pic/pic.dsp: lowered warning level to 2 to suppress pedantic ones
6802         * src/pic/ralloc.c (newReg, allocInternalRegister): changed parameter
6803           optype from short to PIC_OPTYPE
6804         * src/port.h: made int_size unsigned to fix warnings
6805         * src/SDCC.y: fixed warning on MSVC
6806         * src/SDCCicode.c (getArraySizePtr): return unsigned int
6807         * src/SDCCopt.c (convertToFcall): fixed warnings
6808         * src/SDCCsymt.h: removed double prototype for genSymName
6809         * src/xa51/ralloc.c (allocReg): made size unsigned int, type int and
6810           offset int to fix warnings
6811
6812 2006-04-22 Borut Razem <borut.razem AT siol.net>
6813
6814         * doc/sdccman.lyx, */Makefile, */Makefile.in:
6815           references to CVS replaced with Subversion
6816
6817 2006-04-21 Borut Razem <borut.razem AT siol.net>
6818
6819         * doc/sdccman.lyx, */Makefile, */Makefile.in:
6820           references to CVS replaced with Subversion
6821
6822 2006-04-19 Borut Razem <borut.razem AT siol.net>
6823
6824         * src/version.awk: adapted for svn
6825         * /asxxxx/asxhtml/*.gif: set property svn:mime-type to image/gif
6826           sim/ucsim/doc/*.gif: set property svn:mime-type to image/gif
6827           sim/ucsim/doc/*.jpg: set property svn:mime-type to image/jpeg
6828           /binutils-avr/etc/*.vi, *.jin: removed all properties
6829           support/scripts/sdcc.ico: set property svn:mime-type to image/x-icon
6830
6831 2006-04-19 Borut Razem <borut.razem AT siol.net>
6832
6833         * CVS to Subversion migration completed
6834
6835 2006-04-18 Borut Razem <borut.razem AT siol.net>
6836
6837         * support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}/lib/pic/*.o,
6838           ${DEV_ROOT}/lib/src/pic/libdev/*.S, ${DEV_ROOT}/lib/src/pic/libdev/*.inc
6839
6840 2006-04-17 Borut Razem <borut.razem AT siol.net>
6841
6842         * device/include/Makefile.in: added pic/*.inc to the installation
6843
6844 2006-04-15 Bernhard Held <bernhard AT bernhardheld.de>
6845
6846         * support/regression/collate-results.py: fixed output in case of
6847         a valdiag error
6848         * support/regression/generate-cases.py: fixed splitting of pathnames
6849         with dots
6850         * as/hc08/lklibr.c (addfile),
6851         * as/mcs51/lklibr.c (addfile): fixed off-by-one bug
6852
6853 2006-04-11 Raphael Neider <rneider AT web.de>
6854
6855         * src/pic16/gen.c (getFreePtr, pic16_popRegFromString),
6856         * src/pic16/ralloc.c (pic16_allocregWithName): removed debug output
6857         * src/pic16/pcode.c (assignValnums): fixed #1460578
6858
6859 2006-04-11 Raphael Neider <rneider AT web.de>
6860
6861         * device/lib/pic/libdev/*.c,
6862         * device/include/pic/*.h: replaced sfr and data with __sfr and __data,
6863           fixes #1468739, enables compilation in --std-c99 mode
6864         * support/scripts/inc2h.pl: emit __sfr/__data instead of sfr/data
6865
6866 2006-04-11 Raphael Neider <rneider AT web.de>
6867
6868         * src/pic/device.c (find_device): removed debug output
6869           (list_valid_pics): enabled verbose listing of supported devices
6870         * device/include/stdbool.h: define bool as char for pic14/16 as well
6871
6872 2006-04-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6873
6874         * src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)"
6875
6876 2006-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
6877
6878         * .version: bumped version to 2.5.6
6879         * src/pic/ralloc.c (newReg): MSVC doesn't support __builtin_return_address
6880
6881 2006-04-06 Raphael Neider <rneider AT web.de>
6882
6883         * .version: bumped version to 2.5.6 (pic14 ABI changed)
6884         * src/SDCCmain.c: add -DSDCC_PROCESSOR=<id> for pic14 port
6885         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap,
6886           pic14emitRegularMap,pic14emitMaps): moved output for absolute symbols to
6887             pic14_constructAbsMap
6888           (pic14printPublics): declare absolute global symbols as global
6889           (pic14createInterruptVect),
6890         * src/pic/ralloc.c (IS_CONFIG_ADDRESS): support second config word,
6891           (newReg): assume new registers unused, use correct name in
6892             hashtable (reg->name instead of name), more debugLog output
6893         * src/pic/device.h (PIC_device): added fields for verbose output
6894         * src/pic/device.c: moved device definition to pic14devices.txt,
6895             added routines for runtime parsing of pic14devices.txt,
6896             added support for second config word
6897         * src/pic/main.c (_process_pragma): removed #pragma maxram,
6898           (_pic14_keywords): no longer accept "bit" and "sbit" keywords
6899           (_pic14_initPaths): add search paths with "pic" suffix (not "pic14")
6900           (_pic14_parseOptions): moved pCodeInitRegisters here
6901           (_pic14_do_link): add "pic$(ARCH).lib" to linker arguments
6902         * src/pic/pcode.c (AnalyzeBanking): bail out on unset processor,
6903           (pCodeInitRegisters): rewrapped comments, perpared new approach to
6904             handling the pseudo stack
6905         * device/lib/Makefile.in: ignore failures in objects-pic16,
6906         * device/lib/pic/{configure,configure.in,Makefile}: added libdev/
6907         * device/lib/pic/NEWS: document new dependency on picXXX.lib
6908         * device/lib/pic/Makefile.subdir,
6909         * device/lib/pic16/Makefile.subdir: improved clean rules
6910         * device/lib/pic/libdev/: NEW, pic14 device libraries
6911         * device/lib/pic/libsdcc/_gptr{get,put}{1,2,3,4}.S: use _X not X
6912         * device/lib/pic/libsdcc/macros.inc: use _X not X, declare default SFRs
6913         * device/include/Makefile.in: create subdir and install pic14 headers
6914         * device/include/pic/p16f_common.inc: removed unused declarations
6915         * device/include/pic/pic16*.h: added header files for 100+ 14 bit
6916             PICs from inc2h.pl v1.6,
6917             replaced BIT_AT macros with struct declarations
6918         * device/include/pic/pic14devices.txt: definition of supported devices,
6919             all above improvements contributed by Zik Saleeba, thanks
6920         * support/scripts/inc2h.pl: removed BIT_AT, replaced with structs
6921         * support/scripts/sdcc.nsi: also install pic14 device libraries and
6922             headers
6923
6924 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
6925
6926         * device/include/mcs51/c8051f410.h: added interrupt numbers,
6927         * device/include/mcs51/c8051f200.h: old SiLabs mcu completes the list,
6928           thanks to Charles Olds
6929
6930 2006-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6931
6932         * debugger/mcs51/cmd.c (infoRegisters): show return address on stack
6933
6934 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
6935
6936         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug 1464657
6937         * src/mcs51/gen.c (genJumpTab): fixed bug in medium model
6938         * support/regression/bug1464657.c: added, new test
6939
6940 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
6941
6942         * src/SDCCmain.c (preProcess): implemented RFE 1449908, define SDCC as the
6943           version number
6944
6945 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
6946
6947         * src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
6948           --no-peep and --peep-file <file> are used don't use default rules but
6949           do use the <file>
6950
6951 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
6952
6953         * src/mcs51/gen.c (genCall): fixed bug 1457608
6954
6955 2006-03-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6956
6957         * doc/sdccman.lyx: reverted to version 1.129 of december as my latest
6958         changes seem to cause (trigger?) problems with the build system.
6959
6960 2006-03-29 Maarten Brock <sourceforge.brock AT dse.nl>
6961
6962         * src/SDCCpeeph.c (operandsLiteral): new, added,
6963           (callFuncByName): inserted operandsLiteral
6964         * src/mcs51/peeph.def: reenabled 132.e, added extra check to 132.x
6965
6966 2006-03-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6967
6968         * doc/sdccman.lyx: added paragraph "Use of SDCC in Education"
6969         * src/mcs51/peeph.def: disabled rule 132.e fixing bug #1453093
6970
6971 2006-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
6972
6973         * src/z80/gen.c (genFunction, genEndFunction): fixed bug 1160666,
6974           implemented patch 1120823 Thanks to Willy De la Court (normal
6975           interrupts need an interrupt number now if they are made critical),
6976           and enabled nesting of critical functions though not for gbz80
6977           (genCritical, genEndCritical): added functions
6978           (genZ80Code): added cases for CRITICAL and ENDCRITICAL
6979         * src/z80/mappings.i: added "ei" to all mappings
6980
6981 2006-03-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6982
6983         * sim/ucsim/cmd.src/newcmdcl.h: applied patch fixing GCC 4.1 build
6984         submitted by the Debian SDCC maintainer Aurelien Jarno:
6985         "Credits goes to Martin Michlmayr, who rebuilt the whole Debian
6986         archive with gcc 4.1 on mips and wrote the patch"
6987
6988 2006-03-16 Raphael Neider <rneider AT web.de>
6989
6990         * src/pic16/genarith.c (genAddLit): simplified and fixed case where
6991           the left operand is shorter than the result (c* = lit-c* + int),
6992           fixes bug #1450796
6993         * src/pic16/gen.c (genRightShift): check IS_SYMOP before accessing
6994           OP_SYMBOL
6995
6996 2006-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
6997
6998         * src/.version: increased version number to 2.5.5
6999         * src/SDCCmain.c (linkEdit): do not test for PIC16 target since, PIC16
7000         linking is done manually in pic16 port's _linkEdit,
7001         * src/SDCCsymt.c (compStructSize): for target PIC16 and shell variable
7002         PIC16_PACKED_BITFIELDS, compact bitfield structures as much as possible,
7003         * src/pic16/gen.c (aopForSym): when direct register name is WREG then
7004         allocate asmop as AOP_ACC,
7005         (aopForRemat): added parameter 'bool result' in function declaration,
7006         (pic16_aopGet): return AOP_ACC when accessing WREG,
7007         (pic16_popGetTempReg): minor modification,
7008         (pic16_popRegFromIdx): first try with 'pic16_regWithIdx' then with
7009         'pic16_allocWithIdx',
7010         (genPcall): removed ftype, usage of OP_SYM_TYPE asserted error when
7011         calling function in absolute addresses,
7012         (genAssign): take into account AOP_ACC asmop,
7013         * src/pic16/pcode.c (pic16_newpCodeOpReg): minor modifications,
7014         * src/pic16/pcoderegs.c: some debug functions and lines added,
7015         * src/pic16/ralloc.c (decodeRegType): added but commented out,
7016         * (pic16_typeRegWithIdx): search 'pic16_dynInternalRegs' for given
7017         register too,
7018         * (pic16_findFreeReg, pic16_findFreeRegNext): allocate new register via
7019         call to allocReg, not by manually allocating a new one,
7020         (pic16_assignRegisters): now before going through the register
7021         allocating functions mark all registers as free. This eliminates some
7022         side effects resulting from peephole parser done earlier in the backbone
7023
7024 2006-03-13 Maarten Brock <sourceforge.brock AT dse.nl>
7025
7026         * src/SDCCicode.c (geniCodeLogic),
7027         * src/SDCCast.c (decorateType): applied patch by Bernhard for rfe 1422617
7028
7029 2006-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
7030
7031         * src/mcs51/gen.c (sameReg): new, checks if two aop regs are the same,
7032           (genSend): bugfix, do not allocate and free twice,
7033           (shiftRLong): handle partially overlapping aops
7034         * support/regression/tests/bitopcse.c: fixed warning redefined idata
7035
7036 2006-03-08 Borut Razem <borut.razem AT siol.net>
7037
7038         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata
7039           for pic16
7040
7041 2006-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
7042
7043         * support/regression/tests/bug1409955.c: new, added
7044         * src/mcs51/gen.h: changed asmop.freed:1 to asmop.allocated for tracking
7045         * src/mcs51/gen.c (newAsmop): set asmop.allocated to 1,
7046           (aopForSym, aopOp): increment asmop.allocated if reused,
7047           (freeAsmop): decrement asmop.allocated and check for zero instead of
7048           using asmop.freed,
7049           (freeForBranchAsmop): use asmop.allocated instead of asmop.freed,
7050           (genNot, genCpl, genUminus, genMinus, genMult, genDiv, genMod, genCmpGt,
7051            genCmpLt, genAndOp, genOrOp, genAnd, genOr, genXor, genRRC, genRLC,
7052            genGetHbit, genGetAbit, genGetByte, genGetWord, genSwap,
7053            genLeftShiftLiteral, genLeftShift, genRightShiftLiteral,
7054            genSignedRightShift, genRightShift, genDataPointerGet,
7055            genPagedPointerGet, genFarPointerGet, genCodePointerGet,
7056            genGenPointerGet, genDataPointerSet, genAssign, genCast): free asmop's
7057             in reverse order from allocation,
7058           (genPlus, genCmpEq): free asmop's in reverse order from allocation and
7059             added swappedLR to keep track
7060         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata,
7061           pdata & code for GCC, z80, gbz80 & hc08
7062         * support/regression/tests/zeropad.c: moved defines to testfwk.h
7063
7064 2006-03-08 Raphael Neider <rneider AT web.de>
7065
7066         * src/pic16/main.c (_hasNativeMulFor): fixed bug #1444425
7067
7068 2006-03-07 Maarten Brock <sourceforge.brock AT dse.nl>
7069
7070         * device/include/mcs51/c8051f410.h: new SiLabs mcu
7071         * src/ds390/peeph.def: disabled 186.d and 227.a as fix for #1434401
7072         * support/regression/tests/array.c: added parenthesis, made arrays unsigned
7073
7074 2006-03-06 Borut Razem <borut.razem AT siol.net>
7075
7076         * support/regression/ports/pic16/spec.mk: link with libm18f.lib,
7077           made the linker quiet
7078
7079 2006-03-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
7080
7081         * src/pic16/gen.c (genPcall): fixed bug #1443644
7082         * src/pic16/device.h (struct pic16_options_t): added 'int CATregs' flag
7083         which dumps before the function entry point a data byte which represents
7084         the number of the local variables used by the specified function, added
7085         'xinst' for initial support for Extended Instruction Support,
7086         * src/pic16/gen.c (aopForSym, pic16_aopGet): beautifications,
7087         (pic16_testStackOverflow): do not prefix GSTACK_TEST_NAME with
7088         port->fun_prefix anymore (may change later),
7089         (genFunction, genEndFunction): do not store/restore local registers for
7090         _main (this should take care the --main-return command line option in
7091         the future),
7092         (genOr): removed some legacy pic-port instructions,
7093         * src/pic16/genarith.c (genAddLit): re-enabled old code because
7094         performing operations with SFR's causes data to be written more than
7095         once to each SFR. Perhaps SFRs should be handled in special cases...
7096         * src/pic16/glue.c: macros BIG_ENDIAN and BYTE_IN_LONG are moved to
7097         pcode.h
7098         * src/pic16/main.c (_process_pragma): stack bound checking did not take
7099         into account for stack starting position,
7100         (struct OPTIONS pic16_optionsTable): added command line argument
7101         --extended or -y for Extended Instruction Support,
7102         * src/pic16/ralloc.c (pic16_decodeOp): added case for FUNCTION,
7103         (deassignLRs): *** perhaps the most important change, old 'for' code
7104         (commented out for reference), didn't account for some registers which
7105         were left marked 'not free' after a pointer operation. The change
7106         reduces register usage a lot in some cases
7107
7108 2006-03-04 Borut Razem <borut.razem AT siol.net>
7109
7110         * support/regression/ports/hc08/spec.mk: remove *.asm in traget
7111           _clean
7112         * support/regression/tests/bug-524697.c: decreased array size for
7113           mcs51 to fit into the internal RAM
7114         * support/regression/Makefile.in: a little bit more verbose
7115
7116 2006-03-03 Borut Razem <borut.razem AT siol.net>
7117
7118         * support/regression/fwk/lib/testfwk.c,
7119           support/regression/fwk/include/testfwk.h: introduced function
7120           _prints(), nonrecursive _printn(), call _initEmu() from main()
7121         * support/regression/ports/gbz80/support.asm,
7122           support/regression/ports/ucz80/support.asm,
7123           support/regression/ports/z80/support.asm,
7124           support/regression/ports/ds390/support.c,
7125           support/regression/ports/hc08/support.c,
7126           support/regression/ports/host/support.c,
7127           support/regression/ports/mcs51/support.c,
7128           support/regression/ports/xa51/support.c: added empty _initEmu()
7129           function
7130         * support/regression/ports/pic16/gpsim.cmd,
7131           support/regression/ports/pic16/spec.mk,
7132           support/regression/ports/pic16/support.c,
7133           support/regression/Makefile.in: added pic16 regression test
7134
7135 2006-03-01 Raphael Neider <rneider AT web.de>
7136
7137         * src/pic16/gen.c (genPcall,pic16_derefPtr,genGenPointerGet,
7138           genConstPointerGet): use safe way of generating MOVFF to cover
7139             literals as well as registers, fixes bug #1440527
7140         * src/pic16/glue.c (pic16_printIvalBitFields): prevent NULL pointer
7141             dereference
7142           (pic16_printIvalUnion,pic16_isUnion): NEW, handle initialized unions
7143             more correctly, fixes bug #1232186
7144           (pic16_printIval): use pic16_printIvalUnion() for initialized unions
7145         * src/pic16/main.c (_pic16_linkEdit): reorder linker arguments to make
7146             gplink guess the correct processor in more cases, applied patch
7147             from Till Riedel attached to and fixing bug #1436552
7148
7149 2006-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7150
7151         * support/regression/tests/array.c: added, contains check for #1434401
7152         * src/mcs51/peeph.def: disabled 186.d as temporary fix for #1434401
7153
7154 2006-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
7155
7156         * device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
7157         * device/include/mcs51/at89S8252.h: fixed, thanks to Krzysztof Polomka
7158         * device/include/mcs51/c8051f326.h,
7159         * device/include/mcs51/c8051f340.h: new SiLabs mcu's
7160         * device/include/mcs51/c8051f000.h,
7161         * device/include/mcs51/c8051f018.h,
7162         * device/include/mcs51/c8051f020.h: used () with __at, renamed IDLE,STOP to
7163           PCON_IDLE,PCON_STOP and added sfr16 definitions
7164
7165 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
7166
7167         * src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
7168           genGetWord): fixed bug 1409955
7169
7170 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
7171
7172         * device/include/hc08/mc68hc908gp32.h,
7173         * device/include/hc08/mc68hc908jb8.h: removed AWUL, added PTA6 & PTA7
7174
7175 2006-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
7176
7177         * src/SDCCast.c (constExprValue): return NULL if not a value
7178         * src/SDCCglue.c (printIvalArray): fixed bug 1225568
7179         * src/hc08/gen.c(genUnpackBits, genUnpackBitsImmed): fixed bug 1019480
7180         * support/regression/tests/bitfields.c: enabled signed bitfield for all
7181
7182 2006-02-13 Borut Razem <borut.razem AT siol.net>
7183
7184         * src/regression/ptrarg.c: added, fails due to bug #1430967
7185         * src/regression/Makefile: ptrarg.c added, ...
7186
7187 2006-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
7188
7189         * src/z80/gen.c (genUnpackBits): fixed bug 1019480
7190         * support/regression/tests/bitfields.c: enabled signed bitfield for z80
7191
7192 2006-02-11 Borut Razem <borut.razem AT siol.net>
7193
7194         * src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
7195           print "Processor: xxx" message to stdout only if --verbose
7196
7197 2006-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
7198
7199         * src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
7200         * support/regression/tests/bug1426356.c: added
7201         * support/regression/tests/bitfields.c: removed 2 tests
7202
7203 2006-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
7204
7205         * device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
7206         * device/include/mcs51/c8051f330.h,
7207         * device/include/mcs51/c8051f350.h: used () with __at, renamed IDLE,STOP to
7208           PCON_IDLE,PCON_STOP and added sfr16 definitions
7209         * device/lib/_divsint.c,
7210         * device/lib/_divuint.c,
7211         * device/lib/_divulong.c,
7212         * device/lib/_divulong.c: renamed a,b to x,y to avoid confusion, fixed
7213           register bank bug for small stackauto
7214
7215 2006-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
7216
7217         * support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()
7218
7219 2006-02-08 Maarten Brock <sourceforge.brock AT dse.nl>
7220
7221         * support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
7222         * all.dsp: corrected several bin paths
7223         * device/include/mcs51/c8051f120.h,
7224         * device/include/mcs51/c8051f300.h,
7225         * device/include/mcs51/c8051f310.h: used () with __at and renamed IDLE,STOP
7226           to PCON_IDLE,PCON_STOP
7227         * device/include/mcs51/c8051f320.h: see above, also added sfr16 definitions
7228         * device/lib/printf_large.c (output_float): fixed bug 1388703
7229         * support/regression/tests/bug1057979.c: added test for bug 1388703
7230
7231 2006-02-08 Raphael Neider <rneider AT web.de>
7232
7233         * src/pic/pcode.c (pciTRIS): fixed typo,
7234           (BuildFlow,LinkFlow_pCode): added (disabled) debug output,
7235           (LinkFlow): fixed handling of flows that end in a call,
7236           (ReuseReg): perform safety check earlier
7237         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed
7238             to work with flows at the beginning of a pBlock,
7239             fixes #1426557 (Symbol not previously defined),
7240           (pic14_ReMapLiveRanges): NEW, destroy and rebuild register
7241             usage information
7242           (RemoveUnusedRegisters): update register usage info
7243         * src/pic/ralloc.c (newReg): prevent duplicate registers from being
7244             created, reuse existing ones instead
7245         * src/pic/gen.c (genPcall): fixed #1424719
7246
7247 2006-02-07 Bernhard Held <bernhard AT bernhardheld.de>
7248
7249         * link/z80/lkmain.c,
7250         * link/z80/lklex.c,
7251         * link/z80/lkdata.c,
7252         * link/z80/aslink.h: fixed build on current cygwin:
7253         replaced getline() by lk_getline()
7254
7255 2006-02-01 Borut Razem <borut.razem AT siol.net>
7256
7257         * src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
7258           src/regression/add4.c, src/regression/and1.c, src/regression/and2.c,
7259           src/regression/arrays.c, src/regression/b.c, src/regression/bank1.c,
7260           src/regression/bool1.c, src/regression/bool2.c,
7261           src/regression/bool3.c, src/regression/call1.c,
7262           src/regression/compare.c, src/regression/compare10.c,
7263           src/regression/compare2.c, src/regression/compare3.c,
7264           src/regression/compare4.c, src/regression/compare5.c,
7265           src/regression/compare6.c, src/regression/compare7.c,
7266           src/regression/compare8.c, src/regression/compare9.c,
7267           src/regression/configword.c, src/regression/for.c,
7268           src/regression/inline.c, src/regression/mult1.c,
7269           src/regression/nestfor.c, src/regression/or1.c,
7270           src/regression/pointer1.c, src/regression/ptrfunc.c,
7271           src/regression/rotate1.c, src/regression/rotate2.c,
7272           src/regression/rotate3.c, src/regression/rotate4.c,
7273           src/regression/rotate5.c, src/regression/rotate6.c,
7274           src/regression/rotate7.c, src/regression/string1.c,
7275           src/regression/struct1.c, src/regression/sub.c,
7276           src/regression/sub2.c, src/regression/switch1.c,
7277           src/regression/while.c, src/regression/xor.c,
7278           src/regression/create_stc, src/regression/simulate,
7279           src/regression/rt.sh, src/regression/Makefile: reenabled Scott's PIC14
7280           regression tests
7281         * src/regression/gpsim_assert.h: added
7282
7283 2006-01-28 Bernhard Held <bernhard AT bernhardheld.de>
7284
7285         * src/ds390/gen.c (unsaveRegisters): fixed literal function pointer
7286         ((void (code *) (void)) 0) ();
7287         * as/hc08/aslex.c,
7288         * as/hc08/aslink.h,
7289         * as/hc08/asm.h,
7290         * as/hc08/asmain.c,
7291         * as/hc08/lkdata.c,
7292         * as/hc08/lklex.c,
7293         * as/hc08/lkmain.c,
7294         * as/mcs51/aslex.c,
7295         * as/mcs51/aslink.h,
7296         * as/mcs51/asm.h,
7297         * as/mcs51/asmain.c,
7298         * as/mcs51/lkdata.c,
7299         * as/mcs51/lklex.c,
7300         * as/mcs51/lkmain.c,
7301         * as/z80/aslex.c,
7302         * as/z80/asm.h,
7303         * as/z80/asmain.c: fixed build on current cygwin:
7304         replaced getline() by as_getline()
7305
7306 2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
7307
7308         * src/SDCC.y: fixed bug #716242, exchanged pointer and function
7309         declarator in the symbol chain
7310         * src/SDCCsymt.h,
7311         * src/SDCCsymt.c (processFuncPtrArgs): added, removes "(void)"
7312         parameter list for function pointers
7313         * src/SDCCast.c (decorateType): added call of processFuncPtrArgs()
7314         * support/regression/tests/bug-716242.c: added
7315
7316 2006-01-20 Bernhard Held <bernhard AT bernhardheld.de>
7317
7318         * src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array
7319         offset if possible
7320         * src/SDCCast.c (getLeftResultType): 255 fits in char, not 256
7321
7322 2006-01-18 Bernhard Held <bernhard AT bernhardheld.de>
7323
7324         * src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it
7325         inifinitely recurseable, added static
7326         * support/regression/tests/bug-1408066.c: added
7327
7328 2006-01-17 Bernhard Held <bernhard AT bernhardheld.de>
7329
7330         * src/SDCCicode.h,
7331         * src/SDCCicode.c (newiTempPreheaderLabel, newiTempLoopHeaderLabel):
7332         renamed, added possibility to create "postLoopLbl"-labels
7333         * src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to
7334         newiTempLoopHeaderLabel
7335         * src/SDCCloop.c (newInduction, newRegion, backEdges, insertIntoLoop,
7336         isNotInBlocks, addToExitsMarkDepth, createLoop, dominatedBy,
7337         addDefInExprs, assignmentsToSym, isOperandInvariant, pointerAssigned,
7338         hasNonPtrUse, loopInvariants, addressTaken, findInduction,
7339         findDefInRegion, mergeRegions, ifMerged, mergeInnerLoops): made static,
7340         (pinduction, pregion, hasIncomingDefs, findLoopEndSeq): disabled,
7341         (basicInduction): fixed bug #136564, made static,
7342         (loopInduction): changed parameter of basicInduction, made static,
7343         (addPostLoopBlock): added
7344         * src/SDCCloop.h: removed backEdges, pregion, pinduction,
7345         loopOptimizations, addressTaken, findDefInRegion, hasIncomingDefs,
7346         findLoopEndSeq
7347         * support/regression/tests/bug-136564.c: added
7348         * support/regression/ports/mcs51-xstack-auto/spec.mk: added
7349         --std-sdcc99 to LIBSDCCFLAGS
7350
7351 2006-01-16 Bernhard Held <bernhard AT bernhardheld.de>
7352
7353         * src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false
7354         while loop
7355         * support/regression/tests/bug-1406131.c: added
7356
7357 2005-12-31 Bernhard Held <bernhard AT bernhardheld.de>
7358
7359         * src/SDCCast.c (decorateType): fix promotion of unary minus
7360         * src/SDCCsymt.c (computeType): beautified
7361         * src/SDCCval.c (cheapestVal): beautified, old non-Ansi version removed,
7362         (valUnaryPM, valComplement): fix sign and promotion,
7363         (valNot): ANSI: result type is int (SDCC: unsigned char)
7364         * support/regression/tests/uminus.c: speedup by removing superflous
7365         test case 'int'
7366         * support/regression/tests/onebyte.c: added promotion and signedness
7367         tests for unary minus
7368         * support/regressions/tests/bug-477927.c: disable warning about
7369         uninitialized variables
7370         * support/regression/tests/not.c: added
7371
7372 2005-12-28 Bernhard Held <bernhard AT bernhardheld.de>
7373
7374         * device/lib/Makefile.in: added --std-sdcc99 to CFLAGS
7375         * src/mcs51/gen.c (gen51Code): show final register usage after
7376         fillGaps in asm with --i-code-in-asm
7377         * src/SDCClrange.c (sequenceiCode, setLiveFrom, setLiveTo,
7378         markLiveRanges, markAlive, findNextUseSym, findNextUse, unvisitBlocks,
7379         incUsed, rliveClear, adjustIChain): made static,
7380         (setFromRange): excluded because it's unused,
7381         (findPrevUseSym, markWholeLoop): added,
7382         (findPrevUse): rewritten; fixes bug 895992; now a complete search
7383         through all branches of predecessors enables sdcc to emit the warning
7384         W_LOCAL_NOINIT, marking of outermost loop was incomplete,
7385         (rlivePoint): made static, added parameter emitWarnings which is only
7386         true during the first run out of two,
7387         (findRecursiveSucc, findRecursivePred): removed,
7388         (computeLiveRanges): made static, added parameter emitWarnings,
7389         (dumpIcRlive): added for debugging only
7390         * src/SDCClrange.h: added boolean parameter to computeLiveRanges(),
7391         removed prototype of setFromRange()
7392         * src/SDCCopt.c (eBBlockFromiCode): added new parameter emitWarnings
7393         in call of computeLiveRanges()
7394         * support/regression/tests/bug-895992.c: added
7395         * support/regression/tests/bug-971834.c: added
7396         * support/valdiag/tests/bug-895992.c: added
7397         * support/valdiag/tests/bug-971834.c: added
7398
7399 2005-12-18 Raphael Neider <rneider AT web.de>
7400
7401         * src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
7402           (genUnpackBits): improved code for direct operands,
7403           (genPackBits): improved code for literal assignment to bitfields
7404             and for direct destination operands (no FSR indirection),
7405             prevented redundant AND, fixes #1362800,
7406           (AccLsh): added parameter to disable masking of the result
7407         * src/pic16/pcode.c (pic16_safepCodeUnlink): fixed to work with
7408           skip instructions with side-effects (like incfsz),
7409           (pic16_pCodeIsAlive): suppress verbose output unless pcode_verbose,
7410         * src/pic16/pcoderegs.c (RemoveRegsFromSet): removed annoying warning
7411         * device/lib/pic16/Makefile.common.in: added --asm=@GPASM@ to CC,
7412           fixes #1375263
7413
7414 2005-12-11 Bernhard Held <bernhard AT bernhardheld.de>
7415
7416         * src/SDCCicode.c (geniCodeAssign): fixed bug 11369874, don't use
7417         volatile variables as spill location
7418
7419 2005-12-10 Bernhard Held <bernhard AT bernhardheld.de>
7420
7421         * src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to
7422         replacing literals
7423         * support/regression/tests/bug-1376320.c: added
7424
7425 2005-12-08 Raphael Neider <rneider AT web.de>
7426
7427         * src/pic/device.c: renamed is_shared to pic14_is_shared
7428         * src/pic/gen.c (genIfx): re-enabled handling of sbits
7429         * src/pic/glue.c (emitSymbolToFile): added workaround for sbits,
7430           (is_valid_identifier): added for above workaround
7431
7432 2005-12-07 Maarten Brock <sourceforge.brock AT dse.nl>
7433
7434         * device/lib/Makefile.in: fixed to enable port-specific-objects
7435         * device/lib/ds390/i2c390.c (BitOutI2C): optimized by making bout unsigned
7436           char, thanks Hubert Sack
7437         * doc/sdccman.lyx: documented --xstack-loc,
7438           elaborated a bit more on interrupts and pitfalls,
7439           removed "setjmp/longjmp unsupported",
7440           documented some unsupported C99 features
7441         * src/SDCCmain.c (linkEdit): adapted default lib path for --stack-auto
7442         * src/SDCCpeeph.c (readRules): inserted patch 1367130 for finding missing
7443           if, thanks Hubert Sack
7444         * src/mcs51/gen.c (genEndFunction): enabled "pop psw" for regbank 0 isr
7445         * support/regression/Makefile.in: test-mcs51-stack-auto no longer needs to
7446           make make_library
7447         * support/regression/get_ticks.py: new, get cpu cycles and code size, so
7448           regression tests can report resource usage (rfe 700441)
7449         * support/regression/collate-results.py: report resource usage
7450         * support/regression/ports/ds390/spec.mk,
7451         * support/regression/ports/hc08/spec.mk,
7452         * support/regression/ports/mcs51/spec.mk,
7453         * support/regression/ports/ucz80/spec.mk: run sim output through get_ticks
7454         * support/regression/ports/ds390/uCsim.cmd,
7455         * support/regression/ports/hc08/uCsim.cmd,
7456         * support/regression/ports/mcs51/uCsim.cmd,
7457         * support/regression/ports/ucz80/uCsim.cmd: inserted "state" to report time
7458         * support/regression/ports/mcs51-stack-auto/spec.mk: no need to build the
7459           library, use the default one
7460         * support/regression/ports/mcs51-xstack-auto/spec.mk: inserted rules for
7461           building the library
7462
7463 2005-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
7464
7465         * config.dsp: added dependency on .version and configure_vc.awk
7466         * device/include/setjmp.h: updated for --stack-auto and --xstack
7467         * device/include/mcs51/at89c51snd1c.h: corrected line endings
7468         * device/include/mcs51/XC866.h: added, thanks Llewellyn van Zyl
7469         * device/lib/_setjmp.c: updated for --stack-auto and --xstack
7470         * device/lib/libsdcc.lib: added _setjmp
7471         * src/SDCCast.c (createIvalCharPtr): fixed warnings,
7472           (decorateType): fixed bug 1372851,
7473           (optimizeGetHbit): fixed warning
7474         * src/SDCCglue.c (printIvalChar, printIvalArray): adapted for flexible
7475           array initialisation
7476         * support/regression/tests/bug1057979.c: added test for bug 1358192
7477         * support/regression/tests/setjmp.c: added, test for setjmp/longjmp
7478
7479 2005-12-03 Borut Razem <borut.razem AT siol.net>
7480
7481         * support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
7482           command since the NSIS was upgraded to version 2.11 on CF x86-linux2
7483
7484 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
7485
7486         * src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr,
7487         createIval): implement symbol independant "flexible array member",
7488         (createIvalCharPtr): implemented flexible array initialisation with a
7489         string
7490         * src/SDCCsymt.c (copyStruct): removed,
7491         (getSize): fixed misleading comment,
7492         (getAllocSize): removed, the additional allocation size is now in
7493         sym->flexArrayLength,
7494         (checkStructFlexArray): new, syntax checks for flexible array members,
7495         (compStructSize): added syntax checks for "flexible array members"
7496         (copyStruct): removed,
7497         (copyLinkChain): removed inefficient fix for bug 770487
7498         * src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
7499         * src/SDCCsymt.h: added structdef.b_flexArrayMember and
7500         symbol->flexArrayLength
7501         * src/SDCCerr.c,
7502         * src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY,
7503         E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
7504         * support/regression/tests/structflexarray.c: added
7505         * support/valdiag/tests/structflexiblearray.c: added
7506
7507 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
7508
7509         * src/SDCCast.c (decorateType): fixed bug 1368489
7510         * support/Util/SDCCerr.c,
7511         * support/Util/SDCCerr.h: added warning W_CMP_SU_CHAR
7512
7513 2005-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7514
7515         * device/include/mcs51/at89c51snd1c.h: added file submitted by
7516           Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001
7517
7518 2005-11-27 Borut Razem <borut.razem AT siol.net>
7519
7520         * support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
7521           support/cpp2/mkdeps.h: added command line option
7522           -obj-ext=<extension> to SDCPP to define object file externion, used
7523           for generation of make dependencies (-M)
7524         * src/SDCCmain.c: pass -obj-ext=<extension> to SDCPP
7525
7526 2005-11-26 Borut Razem <borut.razem AT siol.net>
7527
7528         * support/scripts/sdcc.nsi: added small-stack-auto libraries,
7529           added missing device/lib/mcs51/crt*.asm, pic and pic16 sources,
7530           added pic and pic16 libraries
7531
7532 2005-11-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7533
7534         * device/include/float.h: Corrected typo in prototype of __fsgt
7535
7536 2005-11-25 Borut Razem <borut.razem AT siol.net>
7537
7538         * sdcc/device/lib/Makefile.in, sdcc/device/lib/incl.mk:
7539           added creation of model-mcs51-stack-auto libraries
7540
7541 2005-11-24 Bernhard Held <bernhard AT bernhardheld.de>
7542
7543         * src/SDCCsymt.c (copyLinkChain): fixed bug 770487, copy structdef
7544         and fields-list too
7545         * src/SDCCast.c (createIvalArray): removed obsolete comment
7546
7547 2005-11-24 Borut Razem <borut.razem AT siol.net>
7548
7549         * sdcc/device/lib/Makefile.in: remove all unnecessary files, 2nd try...,
7550           added missing device/lib/mcs51/crt*.asm sources
7551
7552 2005-11-23 Bernhard Held <bernhard AT bernhardheld.de>
7553
7554         * src/SDCCast.c (createIvalCharPtr): fixed bug 1348271
7555
7556 2005-11-22 Maarten Brock <sourceforge.brock AT dse.nl>
7557
7558         * device/lib/_fs2schar.c,
7559         * device/lib/_fs2sint.c,
7560         * device/lib/_fs2slong.c: optimized inline asm
7561
7562 2005-11-21 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7563
7564         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
7565           Better handling of floats between -1.0 and 0.0.
7566
7567 2005-11-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7568
7569         * src/mcs51/peeph.def: added missing "if"s as noted by Hubert Sack.
7570           (the missing "if"s prohibited removal of redundant labels)
7571
7572 2005-11-19 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7573
7574         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
7575           Properly convert floats between -1.0 and 0.0 to long, int, and char
7576           types (max integer value of negative floats tends to zero).
7577         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
7578           Removed changes made so to work properly with floats between
7579           -1.0 and 0.0, as the problem is fixed in _fs2slong.c, _fs2sint.c,
7580           and _fs2char.c
7581
7582 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
7583
7584         * src/SDCCcse.c (ReplaceOpWithCheaperOp): minor fix for debugging only
7585         * src/mcs51/gen.c (genUnpackBits): better code and a fix,
7586         (genCast) cosmetic change
7587         * src/ds390/gen.c (genUnpackBits, ): ported from mcs51
7588         * src/ds390/ralloc.c (packRegsForAssign): ported fix for bitfields
7589         from mcs51
7590         * support/regression/tests/bitfields (testSignedBitfields): added
7591
7592 2005-11-18 Borut Razem <borut.razem AT siol.net>
7593
7594         * sdcc/device/lib/Makefile.in: remove all unnecessary files
7595         * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
7596           introduced SILENT option to make building of pic16 libraries less
7597
7598 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7599
7600         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
7601           Now they work properly with floats between -1.0 and 0.0
7602         * device/lib/printf_large.c: Removed temporary patch for bug 1358192
7603
7604 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
7605
7606         * src/SDCCicode.c (printOperand): added missing else
7607
7608 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
7609
7610         * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
7611         reformatted for better readability
7612         * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
7613         signed bitfields
7614
7615 2005-11-17 Borut Razem <borut.razem AT siol.net>
7616
7617         * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
7618           introduced SILENT option to make building of pic16 libraries less
7619           verbose - used for nightly snapshot build
7620         * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
7621           available on Win32 platforms.
7622         * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
7623           medium, large, pic and pic16
7624
7625 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7626
7627         * device/lib/printf_large.c: Temporary patch for bug 1358192:
7628           printf("%f"...) sets fraction to zero.
7629
7630 2005-11-16 Raphael Neider <rneider AT web.de>
7631
7632         * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
7633           fixes #1357221
7634         * src/pic/gen.c (genIfx): implemented for CARRY bit
7635         * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
7636           to generic pointers, fixes #1357332,
7637           (pic16_movLit2f): NEW,
7638           (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
7639
7640 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
7641
7642         * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
7643
7644 2005-11-11 Raphael Neider <rneider AT web.de>
7645
7646         * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
7647         * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
7648           compute pointer's type from operand,
7649           (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
7650           improved single bit reads, fixes bug #1353379
7651
7652 2005-11-09 Borut Razem <borut.razem AT siol.net>
7653
7654         * support/scripts/sdcc.nsi: added lib/pic to the package
7655
7656 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
7657
7658         * src/SDCCval.c (valUnaryPM): fixed bug 1350699
7659
7660 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
7661
7662         * support/regression/tests/bug1348008.c: added
7663         * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
7664         * support/regression/tests/bug1337835.c: updated comment
7665
7666 2005-11-06 Borut Razem <borut.razem AT siol.net>
7667
7668         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
7669           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
7670           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
7671           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
7672           sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
7673           dynamic construction of cl_error_class and derivates - 2.nd try
7674
7675 2005-11-05 Borut Razem <borut.razem AT siol.net>
7676
7677         * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
7678           bug, which caused Bus Errors on sparc solaris
7679
7680 2005-11-04 Borut Razem <borut.razem AT siol.net>
7681
7682         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
7683           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
7684           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
7685           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
7686           sim/ucsim/cmd.src/cmdconf.cc: dynamic construction of cl_error_class
7687           and derivates to resolve the initialization problem on OSX
7688
7689 2005-11-02 Borut Razem <borut.razem AT siol.net>
7690
7691         * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
7692           corrected typo - #include <winsock2.h>
7693
7694 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
7695
7696         * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
7697           (_asxxxx_mapping): added org directive for future enhancements
7698
7699 2005-11-01 Borut Razem <borut.razem AT siol.net>
7700
7701         * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
7702           enabled sockets on WIN32
7703         * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
7704
7705 2005-10-31 Borut Razem <borut.razem AT siol.net>
7706
7707         * support/regression/generate-cases.py: escape backslashes in {testcase}:
7708           WIN32 backslash path delimiters should be escaped when used in C strings
7709         * support/regression/tests/bitfields.c: exclude failing assertions for
7710           __CYGWIN32__ and __MINGW32__ hosts
7711
7712 2005-10-30 Borut Razem <borut.razem AT siol.net>
7713
7714         * src/SDCCutil.c: corrected double comparison typo
7715
7716 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
7717
7718         * device/lib/medium/Makefile: added for new memory model medium
7719         * device/include/asm/mcs51/features.h: updated for medium/pdata
7720         * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
7721           added Multiply & Accumulate sbit's and MAC0_PAGE define
7722         * device/include/mcs51/c8051f300.h: added sfr16 definitions
7723         * device/include/mcs51/c8051f310.h: added sfr16 definitions
7724         * device/lib/_mullong.c: update for medium model
7725         * device/lib/incl.mk: added medium model
7726         * doc/sdccman.lyx: documented medium model
7727         * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
7728         * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
7729         * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
7730         * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
7731           (allocParms): set SCLS and OCLS to pdata for medium model
7732         * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
7733           for pdata,
7734           (powof2): return <0 if not power of 2
7735         * src/avr/gen.c (genBitWise): use updated powof2
7736         * src/mcs51/gen.c (genMinusDec): use acc if necessary,
7737           (shiftR2Left2Result): small optimization in setup, save acc when storing,
7738           (shiftLLeftOrResult): use B if necessary
7739         * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
7740         * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
7741         * src/pic/main.c (_pic14_do_link): made void parameter list explicit
7742         * support/regression/Makefile.in: added test-mcs51-medium
7743         * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
7744
7745 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
7746
7747         * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
7748         specifier unsigned
7749         * device/lib/time.c (mktime): fixed bug 1334315
7750
7751 2005-10-28 Raphael Neider <rneider AT web.de>
7752
7753         * device/include/pic/p16f_common.inc: added common declarations
7754         * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
7755
7756 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
7757
7758         * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
7759           (aopPutUsesAcc): added to predict accumulator use,
7760           (assignResultValue): save acc if necessary,
7761           (genMinusDec): store result if indirectly addressed,
7762           (genDivOneByte):  save acc if necessary,
7763           (movLeft2Result): bugfix if left already in acc,
7764           (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
7765             attention to accumulator use (esp. pdata),
7766           (genReceive): receive pdata correctly
7767         * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
7768         * src/SDCCicode.h: added isOperandInPagedSpace prototype
7769
7770 2005-10-27 Raphael Neider <rneider AT web.de>
7771
7772         * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
7773
7774 2005-10-27 Raphael Neider <rneider AT web.de>
7775
7776         * .version: changed version to 2.5.4
7777         * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
7778         * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
7779           (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
7780             arithmetics support routines
7781         * device/lib/pic/Makefile.rules: have assembler sources preprocessed
7782         * device/lib/Makefile.in: also create installdir for pic
7783
7784         * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
7785           pic14 port as well
7786         * src/pic/device.c (dump_sfr): rewritten to delegate register
7787           placement to the linker (use `extern sym' rather than sym EQU addr),
7788           (validAddress): fixed to check last specified address
7789         * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
7790           (popGetLit): truncate literal value to 8 bit,
7791           (popGet): moved assert to more appropriate place
7792           (popGetExternal): create pCode operand from and mark the according
7793             symbol as being `extern'
7794           (popGetAddr): added sanity check on immediate's offset, provide
7795             GPOINTER tag on demand
7796           (aopPut): fixed for immediates,
7797           (mov2w_op): move operand's address or contents to WREG (depending on
7798             operand type), safer variant of mov2w,
7799           (movwf,call_libraryfunc): NEW, handy abbreviations,
7800           (get_argument_pcop,get_return_val_pcop,pass_argument,
7801           get_returnvalue): interface for accessing function parameters and
7802             return values,
7803           (assignResultValuei,genRet): use new parameter/return value interface
7804           (pic14_getDataSize): back to old version handling generic pointers,
7805           (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
7806             provided implementation and/or fixed old one,
7807           (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
7808             calls, removed legacy 8051 reference code
7809           (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
7810           (loadSignToC): NEW, move the operands sign bit to CARRY,
7811           (genGenericShift): NEW, replaces genLeftShift, genRightShift and
7812             genRightShiftSigned, accepts negative shift counts,
7813           (setup_fsr): load FSR and adjust IRP (indirect memory access),
7814           (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
7815             generic pointers, __data pointers and __code pointers,
7816           (genUnpackBits,genPackBits): rewritten to work with generic pointers
7817             and signed bitfields, limit bitfields to 8 bit,
7818           (genDataPointerGet): fixed number of bytes read,
7819           (genGenPointerGet,genConstPointerGet): fixed bitfield access,
7820           (genPointerGet,genPointerSet): fixed handling of __code pointers,
7821             pointers to constant data are no longer assumed to point to __code
7822             space, removed invalid pointer types,
7823           (bitpatternFromVal): retrieve the PICs representation of an integer
7824             or float literal,
7825           (genDataPointerSet): fixed assigning to po_immediate operands,
7826           (genGenPointerSet): implemented as library call,
7827           (genIfx): fixed incorrect condition,
7828           (genAddrOf): limit generic pointers' addresses to 2 bytes,
7829             provide GPOINTER tag according to destination's storage class,
7830           (genCast): added code to handle casting to generic pointers, added
7831             sign-/zero extension of the result
7832           (aop_isLitLike,op_isLitLike): fixed handling of immediates
7833         * src/pic/gen.h: added macros to access IRP bit in STATUS register
7834         * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
7835           extend the result
7836         * src/pic/glue.c (is_shared_address,is_shared): check whether a given
7837           address/register resides in the shared banks
7838           (emitSymbolToFile): improved to handle global and `pinned' symbols,
7839             put all variables into separate sections (have the linker arrange
7840             them)
7841           (picglue): put init code and interrupt handlers in separate sections
7842         * src/pic/main.c: added port specific options table, modified to PORT
7843           structure to make GPOINTERs 3 byte, added pic14_options
7844           (_pic14_do_link): private linking routine (update paths to libraries,
7845             add libsdcc.lib by default)
7846         * src/pic/main.h: declare pic14_options
7847         * src/pic/pcode.c: fixed instructions i/o relations,
7848           (RegCond): reverted to correct version,
7849           (newpCodeOpLit): truncate literals to 8 bit,
7850           (genericPrint): added debug output,
7851           (getRegFromInstruction): fixed for various operand types, simplified
7852           (BuildFlow): fixed broken handling of isntructions with labels
7853           (LinkFlow): start at last instruction in flow (skip trailing comments),
7854             pass the flow on to the next instruction after CALL
7855           (pCodeReplace): NEW, replace a pCode and move meta data to the new one
7856           (insertPCodeInstruction): fixed inserting after a skip instruction,
7857           (DoBankSelect): fixed for labeled instructions
7858           (OptimizepBlock): honor --nopeep switch
7859           (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
7860         * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
7861         * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
7862           (pCodeOptime2pCodes): allow disabling this optimization via
7863             --no-pcode-opt due seldomly occuring bugs, fixed some conditions
7864             but is still buggy), started implementation of a dataflow based
7865             pCode optimization (CSE + dead code elimination)
7866           (pCodeRegMapLiveRangesInFlow): removed bogus inCond
7867         * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
7868           names are independant of the stack location and therefore portable across
7869           devices
7870
7871 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
7872
7873         * src/mcs51/ralloc.c (bitType): added to detect bit variables,
7874           (selectSpil): fixed bug 1337835 by not spilling bit variables
7875         * support/regression/tests/bug1337835.c: added test for this bug
7876         * src/mcs51/peeph.def: restart after rule 3.c,
7877           addded rules 263.x to optimize loading constants
7878
7879 2005-10-26 Raphael Neider <rneider AT web.de>
7880
7881         * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
7882         * src/pic16/gen.c (genUnpackBits): support signed bitfields,
7883           (genAssign): emit warning when casting literals to generic pointer
7884             type, also applies when taking the address of a fixed variable,
7885           (genCast): improved casting to generic pointers
7886         * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
7887           extern variables, added verbose error message
7888         * device/include/pic16/{string.h,errno.h}: added #pragma library c
7889
7890 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
7891
7892         * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
7893         carry must be complemented too
7894         * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
7895         could be emitted by genMinus
7896         * src/SDCCval.c (constVal): fixed bug 1305065
7897
7898 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
7899
7900         * src/SDCCast.c (addCast): added promotion for bit variables
7901         (decorateType): emit W_COMPLEMENT before the problem vanishes behind
7902         promotion casts + optimisation
7903         (optimizeGetWord): fix warning 'i' might be used uninitialized
7904         * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
7905         * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
7906
7907 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
7908
7909         * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
7910         all chars are promoted to int; promotion should be handled in SDCCast.c
7911
7912 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7913
7914         * device/lib/_strcmp.c: Fixed bug 1326457
7915
7916 2005-10-11 Raphael Neider <rneider AT web.de>
7917
7918         * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
7919         * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
7920
7921 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
7922
7923         * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
7924         * support/regression/tests/sfr16.c: added test for the sfr32 bug
7925
7926 2005-10-04 Raphael Neider <rneider AT web.de>
7927
7928         * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
7929           device/lib/pic16/pics.all: added pic18f1320
7930         * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
7931
7932 2005-09-30 Raphael Neider <rneider AT web.de>
7933
7934         * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
7935         * src/pic16/devices.inc: NEW, provides device descriptions
7936         * src/pic16/gen.c (genInline): fixed handling of ';'-comments
7937
7938 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
7939
7940         * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
7941           GETHBIT
7942
7943 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
7944
7945         * doc/sdccman.lyx: updated Highest Order Bit documentation,
7946           documented Any Order Bit, Higher Order Byte and Higher Order Word
7947         * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
7948         * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
7949           (optimizeGetAbit): new, to get any bit, not only the high bit,
7950           (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
7951           (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
7952           (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
7953           (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
7954             RIGHT_OP: also try GETBYTE, GETWORD optimization,
7955             GETABIT, GETBYTE, GETWORD: decorate them,
7956           (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
7957           (ast_print): added GETABIT, GETBYTE, GETWORD
7958         * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
7959         * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
7960           (geniCodeBinary): new generic binary icode,
7961           (ast2iCode): added GETABIT, GETBYTE, GETWORD
7962         * src/port.h: updated comment for PORT.hasExtBitOp
7963         * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
7964           (genGetByte): new, to get a single byte,
7965           (genGetWord): new, to get a word from a long,
7966           (gen51Code): added GETABIT, GETBYTE, GETWORD
7967         * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
7968
7969 2005-09-23 Raphael Neider <rneider AT web.de>
7970
7971         * configure.in, configure: have device/lib/pic configured
7972         * device/lib/Makefile.in: added model-pic14
7973         * device/lib/clean.mk: added pic/ to clean rule
7974         * device/lib/pic: added rudimentary pic14 library providing support
7975           functions for multiplication/division/generic pointer access
7976         * src/SDCCopt.c (convilong): mark support functions as extern
7977           for pic14 port as well
7978         * src/pic/gen.c (genMult): added assertions,
7979           (genpic14Code): emit warning on unhandled iCodes
7980         * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
7981         * src/pic/pcode.c (pCodeOpCopy),
7982         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
7983           pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
7984           SFR_REGISTER}), made safe for future extensions
7985         * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
7986           instructions even if preceeded by SKIP instructions (also remove
7987           them); removed unused code
7988         * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
7989           prevents leaving parts of the structure uninitialized after copying
7990
7991 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
7992
7993         * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
7994           ago by me
7995         * support/regression/tests/addsub.c: added test for the bug
7996
7997 2005-09-21 Raphael Neider <rneider AT web.de>
7998
7999         * device/include/pic16/pic18f1220.h,
8000           device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
8001         * device/lib/pic16/Makefile.rules: added missing opening paren
8002         * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
8003           are provided in genutils.c,
8004           (genUminusFloat,genUminus,genCmpEq): added asserts on different
8005           operand/result sizes,
8006           (genCmp): assert on NULL pointers first, then check deref'ed values
8007         * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
8008           result size
8009
8010 2005-09-18 Raphael Neider <rneider AT web.de>
8011
8012         * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
8013           as these are now unused,
8014           (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
8015         * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
8016           local, avoids uninitialized pointer dereference on r->name
8017         * src/pic16/ralloc.c (newReg): fixed indentation
8018
8019 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
8020
8021         * src/SDCCval.c (constVal): fixed bug 730366
8022         * support/Util/SDCCerr.c,
8023         * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
8024
8025 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
8026
8027         * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
8028
8029 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
8030
8031         * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
8032
8033 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
8034
8035         * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
8036           (hex2dec): made hex_digit unsigned char, removed ascii dependance
8037         * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
8038           (hex2dec): made hex_digit unsigned char, removed ascii dependance
8039         * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
8040         * packihx/packihx.c (hexDigit): made c unsigned char
8041         * as/mcs51/lklibr.c (fndsym),
8042         * link/z80/lkgb.c (gb),
8043         * link/z80/lklibr.c (fndsym),
8044         * link/z80/lkrloc.c (relr),
8045         * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
8046         * src/SDCC.lex (checkCurrFile, process_pragma),
8047         * src/SDCCglue.c (spacesToUnderscores),
8048         * src/SDCCmain.c (setParseWithComma, processFile),
8049         * src/asm.c (tvsprintf, printCLine),
8050         * src/avr/gen.c (emitcode, aopPut),
8051         * src/ds390/gen.c (emitcode),
8052         * src/hc08/gen.c (emitcode, emitinline),
8053         * src/mcs51/gen.c (emitcode, genInline),
8054         * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
8055           tokenizeLineNode),
8056         * src/pic/ralloc.c (debugLog),
8057         * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
8058           tokenizeLineNode),
8059         * src/pic16/ralloc.c (debugLog),
8060         * src/z80/main.c (_process_pragma):
8061            made all ctype.h function calls safe
8062         * src/SDCCopt.c: include math.h for fabs
8063         * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
8064           and used them throughout the code to make ctype.h function calls safe
8065         * src/ds390/main.c (asmLineNodeFromLineNode),
8066         * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
8067         * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
8068            unsigned char*
8069         * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
8070           (newpCodeAsmDir): made ctype.h function calls safe
8071         * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
8072           pic16_emitcode):  made lbp unsigned char*
8073         * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
8074           (pic16_newpCodeAsmDir): made ctype.h function calls safe
8075         * src/xa51/gen.c (emitcode),
8076         * src/z80/gen.c (_emit2): made lbp unsigned char*
8077         * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
8078            char*
8079
8080 2005-09-05 Raphael Neider <rneider AT web.de>
8081
8082         * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
8083           access bank splitpoint
8084
8085 2005-09-05 Raphael Neider <rneider AT web.de>
8086
8087         * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
8088
8089 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
8090
8091         * .version: changed to version 2.5.3
8092         * doc/sdccman.lyx: changed version to 2.5.3,
8093           documented --codeseg and --constseg and pragma codeseg and constseg,
8094           documented bit parameters (reentrant) and bit returning
8095         * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
8096            currFunc->recvSize, but is this ok for all ports?
8097           (ast2iCode): result of ~ on unsigned char must be cast to int for
8098            bool to work
8099         * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
8100           function pointers in bit space
8101         * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
8102           (processFuncArgs): call port.reg_parm() with reentrancy info
8103         * src/port.h,
8104         * src/avr/main.c,
8105         * src/ds390/main.c,
8106         * src/hc08/main.c,
8107         * src/pic/main.c,
8108         * src/pic16/main.c,
8109         * src/xa51/main.c,
8110         * src/z80/main.c: port.reg_parm prototype extended with
8111           "bool reentrant" parameter
8112         * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
8113           options.stackAuto for allocating bit register parameters
8114         * src/mcs51/gen.c (genNot): optimized complementing direct bit,
8115           (genSend): set BitBankUsed if it is,
8116           (selectRegBank): factored out of genCall for use in genPcall,
8117           (genCall): removed redundant dtype assignmen, use selectRegBank,
8118           (genPcall): handle returning in Carry properly, save in F0 if needed,
8119           (genReceive): handle bit register parameters
8120         * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
8121           (mcs51_assignRegisters): enable bit registers for all reentrant
8122            functions and don't set BitBankUsed unconditionally
8123         * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
8124         * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
8125         * support/regression/tests/funptrs.c: added tests for BOOL and for return
8126
8127 2005-08-27 Borut Razem <borut.razem AT siol.net>
8128
8129         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
8130         ppc-osx (Darwin) does not support -u option. It seems that it is
8131         supported only on Linux - GNU cp
8132
8133 2005-08-25 Borut Razem <borut.razem AT siol.net>
8134
8135         * sim/ucsim/gui.src/serio.src/Makefile.in,
8136           sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
8137           sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
8138           sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
8139           install and strip, since the strip at /usr/ccs/bin should be used
8140           on solaris
8141
8142 2005-08-24 Borut Razem <borut.razem AT siol.net>
8143
8144         * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
8145
8146 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
8147
8148         * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
8149         ffffffffu
8150
8151 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
8152
8153         * as/mcs51/aslink.h: completed lkrloc.c prototypes
8154         * as/mcs51/lkmain.c (link_main): fixed warning
8155         * device/include/stdbool.h: ds390 has no advanced bit support yet
8156         * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
8157         * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
8158         * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
8159           and updated their macros
8160         * src/SDCCval.c (constVal): updated comment for renamed b_long
8161
8162 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
8163
8164         * as/mcs51/asdata.c: changed ctype['['] to BINOP
8165         * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
8166           (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
8167           (oprio): set priority for '['
8168         * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
8169            and adb_24_bit
8170         * as/mcs51/asm.h: added defines R_BIT and S_BIT
8171         * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
8172         * as/mcs51/lkdata.c: changed ctype['['] to BINOP
8173         * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
8174           added overlayable BIT_BANK area
8175         * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
8176           (summary2): explain 'T' in legenda
8177         * as/mcs51/lkrloc.c: replaced old K&R style,
8178           (relr): added R_BIT processing,
8179           (errmsg): added "Bit-addressable relocation error",
8180           (adb_bit): added for converting from byte- to bit-addressable space,
8181           (adb_24_bit): added for converting from byte- to bit-addressable space
8182         * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
8183            used in reentrant functions now even as return value
8184         * device/lib/_gptrput.c (_gptrput): removed obsolete code
8185         * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
8186           (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
8187         * src/SDCCglobl.h: added indicator BitBankUsed
8188         * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
8189            the bit registers b0-b7
8190         * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
8191           (geniCodeCast): fixed bug 1263853,
8192           (geniCodeLogicAndOr): put result in bool or char,
8193           (geniCodeReceive): added parameter func for accessing the return type,
8194           (geniCodeFunctionBody): pass func to geniCodeReceive
8195         * src/SDCCmain.c: added indicator BitBankUsed
8196         * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
8197         * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
8198           (checkSClass): don't put automatic bool/bit on stack,
8199           (checkFunction): removed check on function cannot return bit
8200         * src/SDCCsymt.h: added newBoolLink prototype
8201         * src/mcs51/gen.c (rb1regs): added bit registers,
8202           (movc): created for assigning to carry,
8203           (pushReg, popReg): created for pushing registers,
8204           (sameRegs): check both AOP_REG and AOP_CRY types,
8205           (aopOp): handle bit registers,
8206           (aopPut): optimization no self-assign,
8207           (saveRegisters): push reg->base (bits) only once for bit registers,
8208            and use pushReg,
8209           (unsaveRegisters): pop reg->base only once and use popReg,
8210           (assignResultValue): added parameter func and return in carry for bits,
8211           (genIpush): optimization no reload in A if not changed,
8212           (genSend): bit parameters in reentrant functions are passed in bit
8213            registers by first assigning to bits in B, then save registers and
8214            copy B to bits,
8215           (genCall): handle returning in Carry properly, save it in F0 if needed,
8216           (genPcall): updated assignResultValue call, this is not safe yet for bit
8217            returning function !!!
8218           (genFunction): don't generate equ's for bit registers and use pushReg,
8219           (genEndFunction): take care of bit returning functions and use popReg,
8220           (genRet): return bit in Carry,
8221           (genIfx): optimize bit registers and other directly addressable bits,
8222           (genReceive): updated assignResultValue call
8223         * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
8224           (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
8225            registers when using stack-auto
8226         * src/mcs51/ralloc.c (_G): added allBitregs,
8227           (regs8051): added the bit registers,
8228           (createStackSpil): use macro IS_BIT,
8229           (getRegBit): added to allocate a bit register, else spill,
8230           (getRegBitNoSpil): added to allocate a bit register, else a gpr,
8231           (updateRegUsage): factored out to ease stepping while debugging,
8232           (serialRegAssign): use updateRegUsage, only spill bits if necessary,
8233            also allocate bit registers,
8234           (fillGaps): handle bit registers,
8235           (findAllBitregs): added to create bit vector with all bit registers,
8236           (mcs51_allBitregs): returns this bit vector,
8237           (mcs51_assignRegisters): when using stack-auto use bit registers for
8238            passing parameters and creating local variables
8239         * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
8240
8241 2005-08-22 Borut Razem <borut.razem AT siol.net>
8242
8243         * device/lib/Makefile.in: replaced find option -or with -o
8244           to make it run on solaris
8245
8246 2005-08-22 Raphael Neider <rneider AT web.de>
8247
8248         * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
8249           fixes #1265442 (crash on Solaris)
8250
8251 2005-08-20 Borut Razem <borut.razem AT siol.net>
8252
8253         * configure, configure.in: added tests for libsocket and libnsl libraries,
8254           requred by sdcdb on sparc-solaris; generate support/regression/Makefile
8255           from support/regression/Makefile.in
8256         * support/regression/Makefile.in: added
8257         * device/lib/pic16/Makefile.common.in: force make to use bash shell
8258         * sim/ucsim/libtool: regenerated on sparc-solaris
8259         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
8260           sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
8261           sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
8262           -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
8263           sparc-solaris, which doesn't use GNU ld linker
8264         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
8265         * as/Makefile: find on sparc-solaris does not support -maxdepth option
8266
8267 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
8268
8269         * src/mcs51/peeph.def: updated comments
8270
8271 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8272
8273         * device/lib/_gptrget.c,
8274         * device/lib/_gptrput.c: slightly shorter
8275         * doc/sdccman.lyx: incremented version
8276         * src/mcs51/peeph.def: moved peephole comments to the line of first
8277           change to better keep line correlation, reanimated 186.e
8278         * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
8279
8280 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
8281
8282         * src/pic/pcode.c : Pasted ".line" assembly directives patch from
8283           David Saxton with quotes around file name.
8284
8285 2005-08-15 Borut Razem <borut.razem AT siol.net>
8286
8287         * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
8288           support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
8289           support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
8290           make tests run on x86_64 platform
8291
8292 2005-08-13 Raphael Neider <rneider AT web.de>
8293
8294         * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
8295           as it might be executed DURING a build (parallel make is wonderful)
8296
8297 2005-08-13 Raphael Neider <rneider AT web.de>
8298
8299         * device/lib/Makefile.in (port-specific-objects-pic16):
8300           revert to cp $(PORT)/bin/*.* $(PORTDIR)
8301         * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
8302           dependency
8303         * device/lib/pic16/Makefile.rules: build subdirs before creating
8304           the library, removed builddir rule, create $(builddir) early in
8305           recurse rule, use empty recurse rule for leaf directories
8306         * device/lib/pic16/Makefile.subdir: added phony targets, ignore
8307           mkdir errors (race condition), removed duplicate suffix "hex"
8308           from clean rules
8309         * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
8310         * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
8311           prevents mkdir -p from aborting on Alpha
8312
8313 2005-08-12 Raphael Neider <rneider AT web.de>
8314
8315         * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
8316           db-statements in order to allow for arrays of pointers in code
8317           sections to be placed without interspersed 0-padding, fixes
8318           bug #1256215
8319         * (emitStatistics): fixed division by zero for pic18f1220
8320         * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
8321           unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
8322         * (pic16_emitDS): respect DB_ITEMS_PER_LINE
8323         * (pic16_pCodeConstString): keep track of already emitted string
8324           literals to prevent "duplicate definitions of symbol _str_NR"
8325         * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
8326           debug message
8327         * device/lib/Makefile.in: ignore failing PIC16 library builds
8328         * device/lib/pic16/Makefile: do not build if gputils are missing
8329         * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
8330
8331 2005-08-10 Raphael Neider <rneider AT web.de>
8332
8333         * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
8334           my last commit)
8335
8336 2005-08-10 Raphael Neider <rneider AT web.de>
8337
8338         * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
8339           Rokas' patch to add the new fixed point type "__fixed16x16"
8340         * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
8341           functions for __fixed16x16 arithmetics
8342         * device/lib/pic16: reimplemented the build system to support
8343           a separate build directory, better handling of libio (create
8344           the library in a separate subdir for each architecture) and
8345           easier configuration (centralized in Makefile.common)
8346
8347 2005-08-07 Raphael Neider <rneider AT web.de>
8348
8349         * src/pic16/gen.c (genrshTwo): fixed sign extension
8350         * src/pic16/device.c: added pic18f2320, 4220 and 4320
8351         * device/include/pic16/pic18f2220.h: changed some bit definitions,
8352           added T0CONbits
8353         * device/include/pic16/pic18f4220.h: NEW, header for
8354           pic18f4220 and pic18f4320
8355         * device/include/pic16/pic18fregs.h: added new devices,
8356           embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
8357         * device/include/pic16/signal.h: resolved name clashes
8358           on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
8359           to also allow testing for interrupt enable bits, added
8360           comments on how to use the macros
8361         * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
8362         * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
8363           register definitions for the devices
8364         * device/lib/pic16/pics.all: added new devices
8365         * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
8366           allocated memory
8367         * device/lib/pic16/libc/stdlib/memfree: do not count
8368           the block header as free memory
8369         * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
8370           simplified and added missing end-of-blocklist-marker
8371           (reported by Peter Onion, fixes #1252814)
8372         * (_mergeHeapBlock): fixed loop condition
8373         * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
8374           len==0, restructured code
8375         * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
8376           up a bit, reduced bitfield accesses, prevent endless loops
8377           in case of heap corruption
8378         * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
8379           "unreferenced arguments/must return a value" warnings
8380         * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
8381           replaced BAUDREG with SPBRG
8382         * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
8383           device/lib/pic16/debug/gstack/gstack.c: replaced
8384           _naked, _asm, _endasm with __naked, __asm, __endasm
8385
8386 2005-08-05 Raphael Neider <rneider AT web.de>
8387
8388         * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
8389           AOP_PCODE operands, fixes multibyte union-bitfield-accesses
8390
8391 2005-08-05 Borut Razem <borut.razem AT siol.net>
8392
8393         * device/lib/Makefile.in: added missing ';'
8394         * configure: removed ^M characters
8395
8396 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8397
8398         * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
8399           device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
8400           License
8401
8402 2005-08-04 Borut Razem <borut.razem AT siol.net>
8403
8404         * configure.in: pic16 libraries build 2nd try - enable running
8405           configure in device/lib/pic16
8406         * configure: regenerated from configure.in
8407         * device/lib/Makefile.in: create $(PORT)/bin directory
8408
8409 2005-08-03 Raphael Neider <rneider AT web.de>
8410
8411         * src/pic16/gen.c (pic16_derefPtr): NEW, single place
8412           to get/set values via pointers
8413         * (genUnpackBits,genPackBits): changed detection of
8414           ptr->bitfield vs. sym.bitfield, fixed access via generic
8415           pointers, removed dead (wrong) code for multibyte bitfields
8416         * (genNearPointerGet, genGenPointerGet): removed useless code,
8417           fixed bitfield detection, fixes #1250594
8418         * (genNearPointerSet): removed useless code
8419         * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
8420           and introduced macro pic16_emitpcode that conditionally emits
8421           the origin of the following pCode (useful for debugging SDCC)
8422         * src/pic16/pcode.c: changed (and disabled) some debug outputs
8423         * (createDefmap): fixed handling of LFSR for --optimize-df
8424
8425 2005-08-02 Borut Razem <borut.razem AT siol.net>
8426
8427         * device/lib/Makefile.in: pic16 libraries build enabled since
8428           gputils-0.13.2 are now localy installed at sourceforge's compile farm
8429
8430 2005-08-02 Raphael Neider <rneider AT web.de>
8431
8432         * src/pic16/gen.c (genPackBits): removed deprecated warning
8433         * (genGenPointerSet): fixed bitfield detection
8434
8435 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8436
8437         * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
8438
8439 2005-07-31 Raphael Neider <rneider AT web.de>
8440
8441         * device/lib/pic16/libdev/pic18f458.c,
8442           device/include/pic16/pic18f458.h: added missing T0CONbits
8443
8444 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
8445
8446         * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
8447
8448 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
8449
8450         * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
8451
8452 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8453
8454         * device/include/mcs51/at89c51ed2.h: added.
8455
8456 2005-07-23 Raphael Neider <rneider AT web.de>
8457
8458         * src/pic/gen.h: added emitpcode macro for debugging
8459         * src/pic/gen.c (emitpcode): renamed to emitpcode_real
8460           and replace by macro adding debug information on demand
8461         * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
8462         * (gencjne): tried to fix; replaced with correct (slower) code
8463         * (gen{Unp,P}ackBits): fixed single bit access
8464         * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
8465         * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
8466           previous instruction
8467         * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
8468           register has to be handled with care (forbidding movement
8469           of assignments/uses, removing assignments completely, ...)
8470         * (pCodeOptime2pCodes): make use of regIsSpecial
8471         * added lots of debugging output (commented out)
8472         * src/pic/rallloc.c (deassignLRs): prevent operand registers
8473           from being reused as result UNLESS it is known to work
8474
8475 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
8476
8477         * support/Util/dbuf.h: include <stddef.h> for size_t
8478         * .version: changed to version 2.5.2
8479
8480 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8481
8482         * src/SDCCloop.c (loopInvariants): fixed bug #1234048
8483
8484 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8485
8486         * src/hc08/gen.c (genMinus): fixed bug #1241835,
8487           (genModOneByte): removed needless psha/pula
8488
8489 2005-07-22 Raphael Neider <rneider AT web.de>
8490
8491         * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
8492           have PIC14 handled like PIC16, fixes broken pic14 linker calls
8493         * src/pic/gen.c (resolveIfx): do not "invent" labels
8494         * (genSkipc): changed to positive logic
8495         * (genSkipCond): removed as no longer needed
8496         * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
8497           backport from PIC16
8498         * (genLeftShift): check operands are in different registers
8499         * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
8500           INCF does not update CARRY...
8501         * src/pic/main.c: fixed _linkCmd
8502         * src/pic/pcode.c (unlinkpCode): added inactive code
8503         * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
8504           alive (do not assign result and operand overlapping registers)
8505
8506 2005-07-22 Raphael Neider <rneider AT web.de>
8507
8508         * src/pic/device.c (dump_sfr): replaced register declaration with
8509           call to emitSymbolToFile() to avoid duplicate symbols
8510         * (assignRelocatableRegisters): do not declare external symbols
8511         * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
8512           right (take size of type, not etype)
8513         * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
8514         * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
8515         * (packRegsForAccUse): disabled assignment of WREG as
8516           the result reg to prevent occurence of just fixed #1235003,
8517           fixes #1242954
8518         * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
8519           symbols (avoids duplicate symbols in .asm file)
8520         * (pic14emitRegularMap): use emitSymbolToFile()
8521         * src/pic/gen.c (aopOp): fixed spillLocation handling
8522         * (gen{Unp,P}ackBits): fixed acquiring bit-operands
8523         * (genDataPointerSet): removed unneccessary variables/output
8524
8525 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
8526
8527         * as/mcs51/lkarea.c: enlarged codemap for banked memory
8528         * device/lib/mcs51/crtbank.asm: added # to 0x0F
8529
8530 2005-07-21 Raphael Neider <rneider AT web.de>
8531
8532         * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
8533           architecture cannot handle them efficiently, fixes bug #1235003
8534         * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
8535           check for empty sets before using them (fixes bug #1232190)
8536
8537 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
8538
8539         * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
8540           (lnksect2): generate warnings for memory overlap
8541         * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
8542           constseg to set the name of these segments so you can instruct the linker
8543           to place them in banks
8544         * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
8545         * src/SDCCglobl.h: added MODEL_HUGE to enum,
8546           added code_seg and const_seg to options
8547         * src/SDCCglue.c (emitMaps): use options.const_seg,
8548           (createInterruptVect): put interrupt vectors in segment HOME,
8549           (glue): put HOME before static segment and put the main glue in HOME,
8550           (glue): use options.code_seg
8551         * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
8552         * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
8553           these segments so you can instruct the linker to place them in banks
8554           (linkEdit): use code_loc for HOME segment which should be the first
8555           segment in code memory now
8556         * src/SDCCmem.c: fixed more stuff like bug 1238386
8557         * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
8558           (changePointer): don't change function pointers to code pointers for
8559           banked functions,
8560           (compareType): added exceptional check for banked function pointers
8561         * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
8562         * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
8563           after static in code memory
8564         * src/mcs51/gen.c: added aopLiteralLong prototype,
8565           (aopForSym): use getSize for functions,
8566           (genCall): generate banked calls over one trampoline __sdcc_banked_call
8567           in HOME with lsb of address in r0, msb in r1 and bank in r2, use
8568           -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
8569           the segment,
8570           (genPcall): use call for literal function pointers and generate banked
8571           calls over the one trampoline so there's only one place for the user to
8572           modify according to his/hers hardware,
8573           (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
8574           (genPlusIncr): moved check icount>4 beyond inc dptr optimization
8575         * src/mcs51/main.c: added keyword banked,
8576           (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
8577         * support/Util/SDCCerr.c,
8578         * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
8579           needed for passing the bank and address to the trampoline
8580         * device/lib/mcs51/crtbank.asm: added for bankswitching
8581         * device/lib/mcs51/Makefile: added crtbank
8582
8583 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8584
8585         * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
8586           for fields at offset 0 of a struct or union as reported
8587           on 2005-07-07 in the developer mailing list.
8588
8589 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
8590
8591         * src/SDCCmem.c: fixed bug 1238386
8592
8593 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8594
8595         * src/mcs51/peeph.def: added labelrefcounting for peepholes
8596           (patch #1144962), added peephole 300, enabled 259.x
8597         * doc/sdccman.lyx: removed screenshot and provided link instead
8598
8599 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8600
8601         * doc/sdccman.lyx: added section about debugging with ddd
8602         * doc/figures/ddd_example.eps: screenshot of debugging session
8603
8604 2005-07-04 Raphael Neider <rneider AT web.de>
8605
8606         * src/pic/gen.c (genPointerGet): handle pointers to CONST values
8607           like CODE pointers, fixes #1115683
8608         * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
8609           call, fixes bugs #1232211, #1228110,
8610           fixed wrong casts to pCodeFlow from pCodeInstructions
8611
8612 2005-07-04 Raphael Neider <rneider AT web.de>
8613
8614         * src/pic/gen.c (popGet): changed assert to allow for
8615           bit operands
8616         * (popGetAddr): changed signature to provide
8617           an additional index, patched all call sites
8618         * (genCmpEq): handle literal-like operands correctly
8619         * (genAddrOf): added sanity checks on __code/__data pointers
8620         * (genAssign): added handling of symbols from __code section
8621         * (gencjne): do not generate code for comparisons whose result
8622           is neither stored nor used, fixes bug #1171114
8623         * (AccLsh, AccRsh): operate on operand instead of WREG
8624         * (shift{Left,Right}_Left2ResultLit): NEW, size independant
8625           replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
8626           by known count
8627         * rewrote complete shift-by-literal logic, commented unused
8628           functions out
8629         * (genConstPointerGet): get multiple bytes (if result size > 1),
8630           fixed handling of non-immediate addresses
8631         * (genPointerGet): handle CODE pointers like CONST pointers
8632         * (genpic14Code): insert C-SRC lines as Cource-pCodes
8633         * ({aop,op}_isLitLike): NEW, single place to decide whether an
8634           operand is to be treated as a literal or not
8635         * (mov2w,genPcall,genCmpEq),
8636           src/pic/genarith.c: use aop_isLitLike() to decide between
8637           literal/register contents
8638         * (addSign): added missing offset
8639         * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
8640           only emit comment in debug-mode,
8641           use {aop,op}_isLitLike throughout the file
8642         * src/pic/glue.c: fix initializers for pointers (work in progress)
8643         * src/pic/pcode.c (get_op): honor index on _const symbols
8644         * ({reset,dump}pCodeStatistics): NEW, estimate code size
8645         * (dumppBlock): added pCode size estimation
8646         * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
8647           check for IS_SYMOP before OP_SYMBOL'ing
8648         * fixed indentation, compacted switch-statements
8649         * (allocReg): find free register and allocate it instead of
8650           allocating new registers all the time
8651         * (deassignLRs): prevent POINTER_GET's from being assigned the same
8652           registers as its operands (necessary only for multibyte GETs)
8653
8654 2005-07-01 Raphael Neider <rneider AT web.de>
8655
8656         * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
8657           debugging .asm-output macros FENTRY + FEXIT
8658         * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
8659           way... I wonder...
8660         * (emitpComment): NEW, printf to pCode
8661         * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
8662           offset handling
8663         * (popGetAddr): NEW, variant of popGet to access an immediates
8664           high(er) bytes instead of the n'th byte of memory they reference,
8665           replaced popGet with popGetAddr where neccessary
8666         * (genDataPointerGet): reactivated and fixed implementation
8667         * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
8668           accesses
8669         * (genDataPointerSet): fixed multibyte assignments
8670         * (genpic14Code): fixed --i-code-in-asm handling
8671         * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
8672         * (genPlus): fixed index-out-of-bounds error
8673         * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
8674         * src/pic/ralloc.c: added debugging output macro FENTRY2
8675         * (spillThis): fixed indentation, enbraced for-body for clarity
8676         * (rematStr): commented out as now unused
8677         * (regTypeNum): commented out special spill case (overwrites
8678           arbitrary values)
8679         * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
8680
8681 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
8682
8683         * doc/sdccman.lyx: documented sfr16/sfr32,
8684           added example for using storage class with function pointers
8685         * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
8686
8687 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
8688
8689         * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
8690         * device/lib/_itoa.c,
8691         * device/lib/_ltoa.c: optimized codesize
8692         * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
8693           but don't know how to suppress the double warning.
8694         * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
8695         * support/Util/SDCCerr.c,
8696         * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
8697
8698 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
8699
8700         * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
8701           fixed old K&R prototypes
8702         * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
8703         * device/lib/_gptrget.c,
8704         * device/lib/_gptrgetc.c,
8705         * device/lib/_gptrput.c: changed versions for new memory indicator values,
8706           also new versions for small generic pointers and banked generic pointers
8707         * src/port.h: added const_name
8708         * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
8709         * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
8710         * src/SDCCcse.c (findPrevIc): check all associative operators
8711         * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
8712         * src/SDCCicode.h: added macro IS_ASSOCIATIVE
8713         * src/SDCCmem.c: updated comments,
8714           set far-space to 0 for pdata, results in optimized code
8715         * src/SDCCmem.h: added macro CONST_NAME
8716         * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
8717           moving the info into the highest bits, see also gptrget/gptrput
8718         * src/src.dsp: added sdcc.ico to project files
8719         * src/avr/gen.c (genCast): fixed bug 0x%d
8720         * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
8721         * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
8722           relation between ptr_type and DCL_TYPE,
8723           (genCast): fixed bug 0x%d
8724         * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
8725           (CODE)" for const_name
8726         * src/hc08/gen.c (genCast): fixed bug 0x%d
8727         * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
8728           (hc08_port): added "CONST (CODE)" for const_name
8729         * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
8730           (aopForRemat, adjustArithmeticResult): disconnected direct relation
8731           between ptr_type and DCL_TYPE,
8732           (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
8733           operand* and took AOP() inside function so sfr-ness can be checked,
8734           (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
8735           new prototype,
8736           (genFunction, genEndFunction): optimized stack setup,
8737           (genMinus): optimized for literals with ending zeroes (in bytes),
8738           (genCast): fixed bug 0x%d
8739         * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
8740           (mcs51_port): added "CONST (CODE)" for const_name
8741         * src/mcs51/peeph.def: made rule 226 more generic
8742         * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
8743         * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
8744         * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
8745         * src/z80/main.c (z80_port): added NULL for const_name,
8746           (gbz80_port): added NULL for const_name
8747         * support/regression/tests/bug663539.c,
8748         * support/regression/tests/sfr16.c: new tests
8749
8750 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8751
8752         * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
8753
8754 2005-06-24 Raphael Neider <rneider AT web.de>
8755
8756         * device/lib/pic16/libdev/pic18f[68][567]20.c:
8757           corrected typos...
8758         * device/include/pic16/signal.h: added USBIF
8759           and SIG_USB
8760
8761 2005-06-24 Raphael Neider <rneider AT web.de>
8762
8763         * device/lib/pic16/libdev/pic18f2455.c,
8764           device/include/pic16/pic18f2455.h: NEW
8765         * device/include/pic16/pic18fregs.h,
8766           device/lib/pic16/pics.all,
8767           src/pic16/device.c: added 18f2455
8768         * device/lib/pic16/libdev/pic18f[68][567]20.c,
8769           device/include/pic16/{pic18f[68][567].h,usart.h}:
8770           replaced MULTIPLE_USARTS define with more relaible
8771           compatibility sfrs (for USART access)
8772
8773 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
8774
8775         * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
8776           and the output asm file line is printed on two lines.
8777
8778 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8779
8780         * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
8781           BGT, BLE, BHI, and BLS instructions
8782         * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
8783           genCmpEq): removed
8784         * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
8785           negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
8786           fixes bug #1216342
8787         * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
8788
8789 2005-06-15 Raphael Neider <rneider AT web.de>
8790
8791         * src/pic16/NOTES: moved Vangelis from active developers to people to contact
8792         * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
8793         * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
8794           fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
8795           OP_SYM_TYPE() instead of OP_SYM_ETYPE()
8796
8797 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8798
8799         * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
8800           Marcel Telka in bug #1215704
8801
8802 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
8803
8804         * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
8805           located in shared memory bank.
8806
8807 2005-05-31 Raphael Neider <rneider AT web.de>
8808
8809         * src/pic16/{gen.c,genarith.c}: replaced sign-extension
8810           "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
8811           "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
8812
8813 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
8814
8815         * device/lib/_strncpy.c: fixed the fix
8816
8817 2005-05-26 Raphael Neider <rneider AT web.de>
8818
8819         * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
8820           initializers with \0, bug #1208187
8821         * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
8822           intializers with \0, bug #1208187
8823
8824 2005-05-26 Raphael Neider <rneider AT web.de>
8825
8826         * src/pic16/glue.c (pic16_printIvalChar): fixed string
8827           initializers with \0, bug #1208187
8828         * src/pic16/main.c (_process_pragma): added sanity checks
8829           for stack position and size, emit warnings when appropriate
8830
8831 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
8832
8833         * device/lib/_strncpy.c: fixed not filling with \0
8834
8835 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8836
8837         * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
8838           createFunction),
8839         * src/SDCC.y (external_definition, enumerator, parameter_declaration,
8840           compound_statement),
8841         * src/SDCCsymt.h,
8842         * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
8843
8844 2005-05-24 Raphael Neider <rneider AT web.de>
8845
8846         * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
8847
8848 2005-05-24 Raphael Neider <rneider AT web.de>
8849
8850         * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
8851           TRISE definitions, closes bug #1162453
8852
8853 2005-05-22 Raphael Neider <rneider AT web.de>
8854
8855         * src/pic16/main.c (_process_pragma): check for missing
8856           arguments to pragmas code and udata
8857         * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
8858           consistency fixes to match other headers (thanks to Jim Paris)
8859         * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
8860
8861 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
8862
8863         * src/SDCCicode.c (isOperandEqual): fixed missing ;
8864
8865 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
8866
8867         * support/regression/tests/bug1198642.c: new test
8868         * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
8869         * src/SDCCcse.c (findPrevIc): added comment, please have a look
8870         * support/scripts/resource.h,
8871         * support/scripts/resource.rc,
8872         * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
8873         * support/scripts/sdcc.ico: added 32x32 icon
8874
8875 2005-05-18 Raphael Neider <rneider AT web.de>
8876
8877         * device/lib/pic16/libdev/pic18f*.c,
8878         * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
8879           keywords to "__sfr" and "__at (X)"
8880         * device/include/pic16/pic18fregs.h: added pic18f4520
8881         * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
8882           #1203088 (MPLAB compatibility)
8883
8884 2005-05-17 Raphael Neider <rneider AT web.de>
8885
8886         * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
8887         * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
8888         * device/lib/pic16/pics.all: added new devices
8889         * src/pic16/device.c: added support for pic18f4520
8890
8891 2005-05-16 Raphael Neider <rneider AT web.de>
8892         * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
8893         * src/pic16/genarith.c (genAddLit): fixed bug 1202480
8894         * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
8895           convenience function for bit access
8896
8897 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
8898
8899         * device/lib/printf_large.c: fixed bug 1193299
8900         * support/regression/tests/bug1057979.c: added test %3.3s
8901
8902 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8903
8904         * device/include/mcs51/8051.h,
8905         * device/include/mcs51/8052.h: made parseable with lint
8906         * device/include/mcs51/lint.h: added include file for (sp)lint
8907         * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
8908         * doc/cdbfileformat.lyx,
8909         * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
8910
8911 2005-05-14 Raphael Neider <rneider AT web.de>
8912
8913         * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
8914         * device/lib/pic16/libc/stdlib/itoa.c (new)
8915         * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
8916         * device/lib/pic16/libio/Makefile: exclude subdir according to
8917           ${subdir}.ignore for certain PICs (lacking e.g. i2c)
8918         * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
8919         * src/pic16/gen.c (genFunction): prevent annoying warning
8920         * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
8921           nameclashes on BeOS
8922         * support/cpp2/cppmain.c (cpp_output_string): new
8923         * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
8924           fixes bug 1116802
8925
8926 2005-05-13 Borut Razem <borut.razem AT siol.net>
8927
8928         * src/SDCCmain.c (linkEdit): fixed bug 1195202
8929
8930 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8931
8932         * .version: changed to version 2.5.1; back to bleeding edge development
8933
8934 2005-05-11 Borut Razem <borut.razem AT siol.net>
8935
8936         * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
8937           generate PDF version 1.3 documents
8938
8939 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8940
8941         * .version: changed to version 2.5.0
8942
8943 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8944
8945         * doc/sdccman.lyx: updated weblinks, index and smaller updates
8946
8947 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8948
8949         * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
8950         --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
8951         well as many smaller updates.
8952         * .version: changed to version 2.5.0-pre1
8953
8954 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8955
8956         * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
8957
8958 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
8959
8960         * support/regression/tests/bug1185672.c: added
8961         * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
8962           bug 1185672
8963         * src/mcs51/gen.c (genCall): added comments, made it look safer
8964         * src/mcs51/gen.c (genEndFunction): simplified
8965
8966 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
8967
8968         * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
8969
8970 2005-04-14 Borut Razem <borut.razem AT siol.net>
8971
8972         * fixed bug 1045046 - SIGSEGV with really simple code?:
8973           src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
8974           src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
8975
8976 2005-04-14 Borut Razem <borut.razem AT siol.net>
8977
8978         * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
8979           src/pic16/device.h: temporarily disabled experimental #inline pragma
8980           for 2.5.0 release
8981
8982 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
8983
8984         * device/include/z80/stdio.h,
8985         * device/include/z80/string.h: removed these highly incomplete files so
8986           SDCC can use the default ones in device/include/
8987
8988 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8989
8990         * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
8991         gcc warning.
8992         * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
8993         fix sdcpp warnings.
8994
8995 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
8996
8997         * device/include/malloc.h: removed redundant __reentrant prototypes
8998         * device/lib/_mullong.c: added working xstack variant in asm (C version
8999           doesn't pass regression tests)
9000         * device/lib/bpx.c: used __data and made bpx char for mcs51
9001         * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
9002           (createFunction): fixed bug with xstackPtr
9003         * src/SDCCcse.c: corrected comments
9004         * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
9005           (killDeadCode, eBBlockFromiCode): removed unused code
9006         * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
9007           corrected comments
9008         * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
9009           assignResultValue, genCall, genFunction, genEndFunction, genAnd,
9010           genOr, genXor, genAddrOf): fixed several bugs concerning xstack
9011           (genModOneByte): fixed warning in MSVC
9012         * src/mcs51/main.c (): added comments
9013         * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
9014
9015 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
9016
9017         * src/SDCCmain.c (linkEdit): oops, changed one line too many
9018
9019 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
9020
9021         * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
9022
9023 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
9024
9025         * src/pic16/glue.c (printIvalChar): fixed bug when emitting
9026         characters arrays of larger size than the declared one.
9027
9028 2005-04-10 Borut Razem <borut.razem AT siol.net>
9029
9030         * src/pic/gen.c (genInline),
9031           src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
9032           (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
9033           (findNextInstruction), (findPrevInstruction),
9034           (findInstructionUsingLabel),
9035           src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
9036         * src/pic/pcode.c (findLabel): added missing '\n'
9037         * src/src.dsp: added SDCCdwarf2.c to the project
9038
9039 2005-04-09 Borut Razem <borut.razem AT siol.net>
9040
9041         * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
9042
9043 2005-04-08 Raphael Neider <rneider AT web.de>
9044
9045         * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
9046           into the chain after a given one) and mergeDefmapSymbols (combine
9047           defmap entries for each symbol per pcode)
9048         * (createDefmap): have defmap entries merged in the end
9049         * (defmapReplaceSymRef): split defmap entries covering two accesses to
9050           a symbol before replacing one access type's symbol, merge symbols in
9051           the end (replacement symbol might already have an entry)
9052         * (assignValnums): keep reference to written WREG intact
9053
9054 2005-04-08 Raphael Neider <rneider AT web.de>
9055
9056         * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
9057           Alpha)
9058
9059 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
9060
9061         * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
9062         bytes
9063
9064 2005-04-07 Raphael Neider <rneider AT web.de>
9065
9066         * device/include/pic16/usart.h: added compatibility defines for
9067           devices with more than one USART
9068         * device/include/pic16/pic18f[68][567]20.h: activated above defines
9069
9070 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
9071
9072         * device/lib/Makefile.in: updated for port specific include
9073
9074 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
9075
9076         * support/regression/ports/mcs51/spec.mk: added mcs51 include
9077
9078 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
9079
9080         * device/include/8051.h,
9081         * device/include/8052.h,
9082         * device/include/at89S8252.h,
9083         * device/include/at89c55.h,
9084         * device/include/at89x051.h,
9085         * device/include/at89x51.h,
9086         * device/include/at89x52.h,
9087         * device/include/mcs51reg.h,
9088         * device/include/reg51.h,
9089         * device/include/reg764.h,
9090         * device/include/regc515c.h,
9091         * device/include/sab80515.h: (re)moved these 12 files
9092         * device/include/mcs51/8051.h,
9093         * device/include/mcs51/8052.h,
9094         * device/include/mcs51/at89S8252.h,
9095         * device/include/mcs51/at89c55.h,
9096         * device/include/mcs51/at89x051.h,
9097         * device/include/mcs51/at89x51.h,
9098         * device/include/mcs51/at89x52.h,
9099         * device/include/mcs51/mcs51reg.h,
9100         * device/include/mcs51/reg51.h,
9101         * device/include/mcs51/reg764.h,
9102         * device/include/mcs51/regc515c.h,
9103         * device/include/mcs51/sab80515.h: and added them here
9104
9105 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
9106
9107         * device/include/stdarg.h: changed SDCC specific keywords to double
9108           underlined form.
9109         * device/include/stdint.h: changed intptr_t and uintptr_t for others than
9110           mcs51 and ds390.
9111         * device/include/hc08/mc68hc908gp32.h,
9112         * device/include/hc08/mc68hc908jb8.h,
9113         * device/include/hc08/mc68hc908jkjl.h,
9114         * device/include/hc08/mc68hc908qy.h: fixed comments
9115         * device/include/mcs51/README: updated
9116         * device/include/mcs51/c8051f120.h: added PINRSF
9117         * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
9118         * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
9119           amidst code. Also inline is not supported.
9120
9121 2005-04-06 Raphael Neider <rneider AT web.de>
9122
9123         * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
9124         * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
9125           callers stack/frame pointers
9126
9127 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
9128
9129         * device/include/pic16/usart.h: added, missing in previous commit,
9130         * device/include/pic16/adc.h: fixed typo,
9131         * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
9132         commit,
9133         * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
9134         <p18fxxx.inc>
9135         * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
9136         uninitialized because a bug appears with gplink
9137         * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
9138         COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
9139         complains for unrecognised option
9140
9141 2005-04-05 Raphael Neider <rneider AT web.de>
9142
9143         * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
9144           structs as well (using memcpy)
9145         * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
9146           on ISRs (GOTO has no label)
9147         * src/pic16/device.h: added OF_OPTIMIZE_DF
9148         * src/pic16/main.c: added compiler switch --optimize-df to enable the
9149           new data flow analysis/optimization
9150         * src/pic16/pcode.c: added (prototypes for and implementation of)
9151           dataflow analysis functions, fixed pCodeInstructions' inCond and
9152           outCond values, made RCALL a branch instruction
9153         * (pic16_unlinkpCode): keep C line if possible
9154         * (pic16_pCodeUnlink): removed cast on left side of assignment, have
9155           C line moved if possible
9156         * (pic16_getRegFrompCodeOp): NEW, improved version of...
9157         * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
9158           to use new pic16_getRegFrompCodeOp (works for more SFRs)
9159         * (pic16_BuildFlow): fixed skip instructions with label (did not start
9160           new flow)
9161         * (pic16_getJumptabpCode): NEW, needed in...
9162         * (LinkFlow): fixed handling of jumptables, calls and conditional
9163           branches
9164         * (pic16_InsertCommentAfter): NEW
9165         * (pic16_pCodeReplace): made verbose and flow preserving
9166         * (AnalyzeFlow): added call to data flow analysis
9167         * src/pic16/pcode.h: added defmaps to pCodeFlow struct
9168         * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
9169         * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
9170
9171 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9172
9173         * src/SDCCast.c (decorateType): fixed bug #1105626
9174
9175 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
9176
9177         * device/include/asm/pic16/features.h,
9178         * pic18f*.h headers,
9179         * device/include/pic16/adc.h,
9180         * device/include/pic16/delay.h,
9181         * device/include/pic16/i2c.h,
9182         * device/include/pic16/malloc.h,
9183         * device/include/pic16/stdio.h,
9184         * device/include/pic16/stdlib.h,
9185         * device/include/pic16/string.h,
9186         * device/lib/pic16/libc/stdio/printf_tiny.c,
9187         * device/lib/pic16/libc/stdio/printf_small.c,
9188         * device/lib/pic16/libc/stdio/strmgpsim.c,
9189         * device/lib/pic16/libc/stdio/strmmssp.c,
9190         * device/lib/pic16/libc/stdio/strmusart.c,
9191         * device/lib/pic16/libc/stdio/vfprintf.c,
9192         * device/lib/pic16/libc/stdlib/ltoa.c,
9193         * device/lib/pic16/libc/stdlib/putchar.c,
9194         * device/lib/pic16/libc/stdlib/x_ftoa.c,
9195         * device/lib/pic16/libc/stdlib/memchrpgm.c,
9196         * device/lib/pic16/libc/stdlib/memchrram.c,
9197         * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
9198         * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
9199         * device/lib/pic16/libio/adc/adcbusy.c,
9200         * device/lib/pic16/libio/adc/adcread.c,
9201         * device/lib/pic16/libio/adc/adcsetch.c,
9202         * device/lib/pic16/libio/usart/ubaud.c,
9203         * device/lib/pic16/libio/usart/ubusy.c,
9204         * device/lib/pic16/libio/usart/udrdy.c,
9205         * device/lib/pic16/libio/usart/uopen.c,
9206         * device/lib/pic16/libio/usart/uputc.c,
9207         * device/lib/pic16/libsdcc/gptr/gptrget1.c,
9208         * device/lib/pic16/libsdcc/gptr/gptrget2.c,
9209         * device/lib/pic16/libsdcc/gptr/gptrget3.c,
9210         * device/lib/pic16/libsdcc/gptr/gptrget4.c,
9211         * device/lib/pic16/libsdcc/gptr/gptrput1.c,
9212         * device/lib/pic16/libsdcc/gptr/gptrput2.c,
9213         * device/lib/pic16/libsdcc/gptr/gptrput3.c,
9214         * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
9215         specific keywords to double underlined form,
9216         * device/lib/pic16/libc/Makefile.rules,
9217         * device/lib/pic16/libsdcc/Makefile.rules,
9218         * device/lib/pic16/libm/Makefile,
9219         * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
9220         to compile with C standard set in Makefile.common
9221         * device/lib/pic16/libc/stdlib/Makefile: added new C sources
9222         rand.c and crc.c in compilation process,
9223         * device/lib/pic16/libsdcc/int/divuint.c,
9224         * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
9225         `c' from signed to unsigned,
9226         * device/lib/pic16/startup/crt0.c,
9227         * device/lib/pic16/startup/crt0i.c,
9228         * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
9229         keywords to double underlined form, bug fixes in _do_cinit function
9230         which prevented the correct initialization of the .idata segment,
9231         * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
9232         core to enter a infinite loop
9233         * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
9234
9235 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9236
9237         * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
9238
9239 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9240
9241         * device/include/Makefile.in: add support for hc08 subdirectory
9242         * device/include/hc08/: new subdirectory
9243         * device/include/hc08/mc68hc908jkjl.h: new header contributed by
9244         Lucas Loizaga, thanks!
9245         * device/include/hc08/mc68hc908qy.h,
9246         * device/include/hc08/mc68hc908gp32.h,
9247         * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
9248         their own directory. Changed internal macro names to use the compiler
9249         reserved namespace. Changed SDCC specific keywords to double
9250         underlined form.
9251         * device/include/math.h,
9252         * device/include/malloc.h,
9253         * device/include/stdarg.h,
9254         * device/include/stdbool.h
9255         * device/include/string.h,
9256         * device/include/tinibios.h,
9257         * device/include/ds400rom.h,
9258         * device/include/8051.h,
9259         * device/include/8052.h,
9260         * device/include/80c51xa.h,
9261         * device/include/at89c55.h,
9262         * device/include/at89S8252.h,
9263         * device/include/at89x51.h,
9264         * device/include/at89x52.h,
9265         * device/include/ds80c390.h,
9266         * device/include/reg764.h,
9267         * device/include/regc515c.h,
9268         * device/include/sab80515.h,
9269         * device/include/mcs51/c8051f000.h,
9270         * device/include/mcs51/c8051f018.h,
9271         * device/include/mcs51/c8051f020.h,
9272         * device/include/mcs51/c8051f040.h,
9273         * device/include/mcs51/c8051f060.h,
9274         * device/include/mcs51/c8051f120.h,
9275         * device/include/mcs51/c8051f300.h,
9276         * device/include/mcs51/c8051f310.h,
9277         * device/include/mcs51/c8051f320.h,
9278         * device/include/mcs51/c8051f330.h,
9279         * device/include/mcs51/c8051f350.h,
9280         * device/include/z180.h: Changed SDCC specific keywords to double
9281         underlined form.
9282
9283 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
9284
9285         * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
9286         18F4455,
9287         * (pic16_assignConfigWordValue): disable testing of configuration
9288         register value with config mask,
9289         * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
9290         function with port->fun_prefix,
9291         * (genFunction): when generating a naked interrupt function never
9292         create an absolute segment placed in interrupt vector address, place
9293         the actual interrupt function at IVA instead, when an interrupt
9294         function is generated with unspecified interrupt then do not create
9295         the absolute section,
9296         * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
9297         code for generating a call to generic pointer get/put function with
9298         a call to function pic16_callGenericPointer(),
9299         * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
9300         the call to the generic pointer get/put functions with prefixing the
9301         function name with port->fun_prefix,
9302         * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
9303         * src/pic16/main.c (_process_pragma): prefix function with
9304         port->fun_prefix,
9305         * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
9306         calling assembler, old 18Fxxxx macro is deprecated,
9307         * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
9308         PC_ASMDIR in while condition,
9309         * (findInstruction): add PC_ASMDIR in while condition,
9310         * (buildCallTree): prefix main with port->fun_prefix,
9311         * (pic16_pCode2str): fixed bug that didn't emit the memory access
9312         identifier for variable with banked access in instructions BTFSS,
9313         BTFSC, BCF, BSF, BTG
9314         * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
9315         * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
9316         * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
9317         perform optimization when enviroment variable NO_REG_OPT is set,
9318         * (insideLRBlock): NEW, return 1 if register is inside an
9319         INF_LOCALREGS block,
9320         * (RemoveRegFromLRBlock): remove a register that is completely
9321         eliminated by register optimization, but it is still left in local
9322         register store/restore in/from stack block,
9323         * (Remove2pcodes): after removing register, check to see if it
9324         should be removed from local register store/restore in/from stack
9325         block,
9326         * src/pic16/ralloc.c (pic16_decodeOp): added decode for
9327         DUMMY_READ_VOLATILE,
9328
9329         * device/include/pic16/adc.h: minor prototype modifications and
9330         update,
9331         * device/include/pic16/malloc.h: added GPL notice various
9332         modifications,
9333         * device/include/pic16/stdint.h: NEW, standard header for ints
9334         * device/include/pic16/delay.h: NEW, header for delay functions,
9335         delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
9336         delay1mtcy,
9337         * device/include/pic16/signal.h: NEW, header providing helper macros
9338         for implementing signal handlers,
9339         * device/include/pic16/stdio.h: added prototypes for functions,
9340         printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
9341         prototypes for stdin and stdout, added macro PUTCHAR to
9342         automatically implement putchar function prototype,
9343         * device/include/pic16/usart.h: modified and updated USART library,
9344         * device/lib/pic16/libio/adc/,
9345         * device/lib/pic16/libio/i2c: some modifications to improve library
9346         performance,
9347         * device/lib/pic16/libc/stdio/: modifications for the new printf*
9348         family of functions,
9349         * device/lib/pic16/libc/stdlib/: various modifications in the malloc
9350         family of functions and other sources,
9351         * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
9352         of the PIC18Fxx[28] devices,
9353         * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
9354         * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
9355         * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
9356         _do_cinit function, because the previous failed when local variables
9357         where not placed in the same memory bank,
9358         * device/lib/pic16/libsdcc/char/: various modifications to improve
9359         library performance,
9360         * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
9361         information on the new functions of the c library and more...
9362
9363 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9364
9365         * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
9366
9367 2005-03-26 Raphael Neider <rneider AT web.de>
9368
9369         * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
9370           if condition == CARRY)
9371         * (genCmp): adapted to new genSkipc semantics
9372         * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
9373           on rIfx (genCmp was broken)
9374
9375 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9376
9377         * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
9378         * src/z80/main.c (_keywords[]),
9379         * src/SDCCglobal.h (struct options),
9380         * src/SDCC.y,
9381         * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
9382         to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
9383         std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
9384         --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
9385         always available in leading double underscore form. The C99 support is
9386         mostly missing, but it's a start.
9387         * support/regression/tests/bug-227710.c: fixed nonconforming use of
9388         reserved identifier "__data".
9389
9390 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
9391
9392         * src/mcs51/peeph.def: fixed bug 1170013
9393
9394 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
9395
9396         * device/include/mcs51reg.h: fixed bug 842007
9397
9398 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9399
9400         * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
9401         last time.
9402
9403 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9404
9405         * src/port.h (struct PORT),
9406         * src/avr/ralloc.c (avr_assignRegisters),
9407         * src/avr/main.c,
9408         * src/ds390/ralloc.c (ds390_assignRegisters),
9409         * src/ds390/main.c,
9410         * src/hc08/ralloc.c (hc08_assignRegisters),
9411         * src/hc08/main.c,
9412         * src/mcs51/ralloc.c (mcs51_assignRegisters),
9413         * src/mcs51/main.c,
9414         * src/pic/ralloc.c (pic14_assignRegisters),
9415         * src/pic/main.c,
9416         * src/pic16/ralloc.c (pic16_assignRegisters),
9417         * src/pic16/main.c,
9418         * src/xa51/ralloc.c (xa51_assignRegisters),
9419         * src/xa51/main.c,
9420         * src/z80/ralloc.c (z80_assignRegisters),
9421         * src/z80/ralloc.h,
9422         * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
9423         * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
9424         * src/SDCCcse.h,
9425         * src/SDCCdflow.c (computeDataFlow),
9426         * src/SDCCdflow.h,
9427         * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
9428         * src/SDCCloop.h,
9429         * src/SDCCcflow.c (*),
9430         * src/SDCCcflow.h,
9431         * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
9432         * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
9433         of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
9434         immedDom() returning wrong block; probably fixes bug #1160833)
9435
9436 2005-03-20 Borut Razem <borut.razem AT siol.net>
9437
9438         * support/scripts/inc2h.pl: WIN32 port
9439
9440 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
9441
9442         * device/lib/makefile.in: added abs.c and labs.c
9443
9444 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
9445
9446         * device/include/stdint.h: added
9447         * device/lib/abs.c: added
9448         * device/lib/labs.c: added
9449         * device/include/stdlib.h: added abs() and labs() prototypes
9450         * device/lib/libsdcc.lib: added abs and labs
9451         * device/include/float.h,
9452         * device/lib/_fsmul.c,
9453         * device/lib/printf_fast.c,
9454         * device/lib/printf_tiny.c: updated comments
9455
9456 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9457
9458         * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
9459         bug #1164313
9460
9461 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9462
9463         * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
9464         * src/SDCCast.c (isLoopCountable): fixed bug #1161985
9465
9466 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
9467
9468         * device/lib/printf_large.c: removed inline assembly for portability and
9469           readability. Use printf_fast if speed or size are more important.
9470         * src/pic16/gen.c: removed conditions around use of DEBUGpc
9471         * src/pic16/genutils.h: added define for DEBUGpc for MSVC
9472
9473 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
9474
9475         * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
9476         prevent compiler warning
9477
9478 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
9479
9480         * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
9481         moved to level 0 and declared as static. Also they are explicit
9482         placed in access bank. This was necessery because some times they
9483         might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
9484         * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
9485         optimizations. Currently only compare to unsigned char is implemented,
9486         * src/pic16/gen.c: added fReturnIdx array,
9487         * (struct resolvedIfx) is moved to gen.h and made public,
9488         * (struct _G): added sregsAlloc and sregsAllocSet fields,
9489         * (aopForSym): added an optimization to directly store in stack of
9490         the operand of a SEND iCode,
9491         * (pic16_aopOp): don't return return registers as strings (AOP_STR)
9492         but as registers instead (AOP_REG) using the fReturnIdx array,
9493         * (pic16_freeAsmop): remove the freed register from the
9494         _G.sregsAlloc field,
9495         * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
9496         a compare of 'WREG',
9497         * (pic16_popGetTempRegCond): changed function prototype, now
9498         function takes also a bitVector argument v which holds the current
9499         set of registers that are allocated for stack access by aopForSym,
9500         registers allocated in aopForSym for accessing stack symbols are not
9501         any more part of the functions usedRegs field,
9502         * (genCall): some times aopOp is called for a stack variable to be
9503         send, aopForSym might perform the push, if this is true make sure
9504         that genCall doesn't push the variable twice by testing _G.resDirect,
9505         * (genFunction): changed testing for unspecified interrupt number
9506         from 256 to INTNO_UNSPEC,
9507         * modified selection scheme of frame pointer generation. Previously
9508         if function did use local registers a frame pointer was generated,
9509         now a frame pointer is generated only if function has arguments
9510         (that need PLUSW2 register access), or has stack arguments, or the
9511         compiler is not instructed to omit the frame pointer,
9512         * (genEndFunction): before restoring local registers that were saved
9513         in the function preamble, also restore the registers that *might*
9514         have been allocated for stack access,
9515         * (genRet): removed some old comments,
9516         * (genCmp, the active (RN's) version): added a call to the
9517         pic16_genCmp_special function to perform the compare with a more
9518         robust and optimized way,
9519         * (genInline): a feature has been added in inline code generation,
9520         which allows a wildcard variable substitution when writing inline
9521         assembly. Code is incomplete and experimental therefore undocumented,
9522         * (genCast): changed order of aopOp for result and right to allow
9523         aopForSym to directly load the result if possible,
9524         * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
9525         perform an optimized compare on some selected special occasions,
9526         * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
9527         * src/pic16/glue.c (pic16createInterrupVect): make sure we never
9528         generate an IVT any more,
9529         * src/pic16/main.c (pic16_optionsTable): added command line option
9530         --optimize-cmp,
9531         * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
9532         macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
9533         macros,
9534         * src/pic16/NOTES: Raphael Neider added in list of active developers
9535         * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
9536         jumptable_end to prevent bug #,
9537         * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
9538         inCond and outCond fields,
9539         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
9540         * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
9541         turn off register spilling,
9542         * (packRegsForOneUse): synced with other ports' versions although it
9543         is not used currently,
9544         * (pic16_packRegisters): added an optimization while reading
9545         structure bitfields, some registers may be saved (malloc code is
9546         decreased by 80 bytes)
9547
9548 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
9549
9550         * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
9551         left is a bitfield, if yes, then don't optimize assignment. Perhaps
9552         this can be optimized more?
9553
9554 2005-03-10 Raphael Neider <rneider AT web.de>
9555
9556         * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
9557           genNearPointerGet): (hopefully) fixed access to bitfields via
9558           pointers (p->bitN = x; and x = p->bitN; failed)
9559
9560 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
9561
9562         * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
9563
9564 2005-03-09 Raphael Neider <rneider AT web.de>
9565
9566         * src/SDCCopt.c (killDeadCode): fixed bug #1156016
9567
9568 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
9569
9570         * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
9571         * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
9572           (regTypeNum): set REG_BIT type if necessary
9573         * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
9574         * support/regression/tests/critical.c: check bug 1144613
9575
9576 2005-03-02 Raphael Neider <rneider AT web.de>
9577
9578         * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
9579
9580 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9581
9582         * src/avr/ralloc.c (serialRegAssign),
9583         * src/ds390/ralloc.c (serialRegAssign),
9584         * src/hc08/ralloc.c (serialRegAssign),
9585         * src/mcs51/ralloc.c (serialRegAssign),
9586         * src/pic/ralloc.c (serialRegAssign),
9587         * src/pic16/ralloc.c (serialRegAssign),
9588         * src/xa51/ralloc.c (serialRegAssign),
9589         * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
9590
9591 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
9592
9593         * src/SDCCast.c (decorateType): fixed bug 1124787
9594
9595 2005-02-20 Hubert Sack <sack AT digiplan.de>
9596         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9597
9598         * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
9599         patch #1121755
9600
9601 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9602
9603         * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
9604         to keep the correct label reference count when adding/removing references
9605         to labels. A peephole file using this is appended to patch #1144962.
9606
9607 2005-02-14 Raphael Neider <rneider AT web.de>
9608
9609         * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
9610         * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
9611         * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
9612           retrievals of result operand's value on assignment
9613
9614 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
9615
9616         * device/include/pic16/string.h: modified prototype for memccpy()
9617         to memccpy(void *, void *, char, size_t)
9618         * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
9619         check whether to omit frame pointer or not,
9620         * (genInline): convert all occurences of "\n" to LF in inline
9621         assembler blocks, this helps formatting the inline text,
9622         * (pic16_loadFSR0): modified prototype,
9623         * (genNearPointerGet, genNearPointerSet): reorganization of code,
9624         removed some 8051 legacy code,
9625         * (genPackBits): enabled handling bitfields exceeding one byte in size,
9626         * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
9627         before allocating temporary registers in functions,
9628
9629 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
9630
9631         * support/regression/tests/bitvars.c: corrected the "fix"
9632
9633 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
9634
9635         * support/regression/tests/bitvars.c,
9636         * support/regression/tests/bitwise.c,
9637         * support/regression/tests/rotate.c: "fixed" problems on Alpha
9638
9639 2005-02-10 Raphael Neider <rneider AT web.de>
9640
9641         * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
9642           different size for Alpha
9643         * src/pic16/gen.c (genCmpEq) : improved compare with 0
9644
9645 2005-02-09 Raphael Neider <rneider AT web.de>
9646
9647         * src/SDCC.lex(doPragma) : save and restore warning options as well
9648           (also added new stack plus clone- and copyAndFreeSDCCERRG())
9649         * have #pragma less_pedantic set the errorlevel to WARNING
9650           (fixes #1117001)
9651         * (cloneOptimize) : fixed wrong malloc's size
9652         * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
9653           facilitate correct handling of #pragma (save|restore)
9654
9655 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
9656
9657         * src/mcs51/gen.c: removed non-standard C nameless struct/union
9658
9659 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
9660
9661         * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
9662
9663 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
9664
9665         * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
9666
9667 2005-02-02 Raphael Neider <rneider AT web.de>
9668
9669         * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
9670         * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
9671         * (pic16_storeForReturn): fixed to allow returning function pointers
9672         * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
9673         * device/include/pic16/{stddef.h,stdbool.h}: added
9674
9675 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
9676
9677         * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
9678
9679 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
9680
9681         * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
9682         * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
9683          appeared to be required
9684
9685 2005-01-31 Borut Razem <borut.razem AT siol.net>
9686
9687         * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
9688           include/mcs51 and include/z80 directories to the package
9689
9690 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9691
9692         * src/hc08/gen.c (genFunction): fixed bug #1112752
9693
9694 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9695
9696         * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
9697
9698 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9699
9700         * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
9701
9702 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
9703
9704         * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
9705
9706 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
9707
9708         * device/include/c8051fxxx.h: removed these 6 files
9709         * device/include/mcs51/c8051fxxx.h: added these 11 new files
9710
9711 2005-01-26 Raphael Neider <rneider AT web.de>
9712
9713         * src/pic16/gen.c (genAssign): fixed assignment from longs
9714           in codespace (were cut to three bytes)
9715         * (genDummyRead): implemented (except for CODESPACE...),
9716           fixed bug #1108575
9717         * src/pic16/glue.c (emitStatistics): beautified
9718         * device/lib/pic16/libm/Makefile: added include path
9719
9720 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9721
9722         * src/z80/gen.c (aopPut): fixed bug #1103902
9723
9724 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9725
9726         * device/lib/expf.c: fixed bug #1095792
9727
9728 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
9729
9730         * device/lib/pic16/libm: added Math library sources
9731
9732 2005-01-24 Raphael Neider <rneider AT web.de>
9733
9734         * src/pic16/pcode.h: added second memory operand to pCodeOpReg
9735           to enable upcast to pCodeOpReg2 (there is no type tag to
9736           differenciate the two and pic16_popGet2p cast into PCOR2)
9737         * src/pic16/main.c (_process_pragma): fixed another malloc bug
9738           (sizeof(sectNames) changed to sizeof(sectName))
9739           Both patches fix segfaults under MinGW.
9740
9741 2005-01-23 Raphael Neider <rneider AT web.de>
9742
9743         * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
9744           Safe_[mc]?alloc()'ed variables
9745         * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
9746           of (byte sized) temporaries (assign them to WREG for now)
9747         * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
9748           (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
9749           this might fix SIGSEGVs on MinGW...
9750         * src/SDCCopt.c (killDeadCode): restored original behaviour
9751           (volatile operands might get thrown away though)
9752
9753 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
9754
9755         * src/pic16/gen.c: fixed bug #1106975,
9756         * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
9757         pointer update, INTCON is saved, global interrupts are disabled and
9758         restored after updateing TOS.
9759         * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
9760         * added function attribute 'shadowregs' to take advantage of shadow
9761         registers,
9762         * added function attribute 'wparam' as an alternative to the wparam
9763         pragma,
9764         * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
9765         user declares a non-ISR function as 'shadowregs',
9766         * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
9767
9768 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
9769
9770         * .version: bumped version number to 2.4.8
9771         * device/lib/pic16/pics.all: list of PIC18F devices supported by
9772         pic16 port,
9773         * device/lib/pic16/libio/i2c/: I2C module support library,
9774         * device/include/pic16/i2c.h: I2C support library header,
9775         * device/lib/pic16/libc/stdio/: standard IO support sources,
9776         * (printf_small.c): printf_small() source, supports float print,
9777         * (printf_tiny.c): printf_tiny() source, does not support floats,
9778         * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
9779         enable global optimizations for entire library source, other
9780         Makefiles in the source tree are also modified to reflect this,
9781         * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
9782         function,
9783         * doc/sdccman.lyx: updated to reflect new changes,
9784         * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
9785         sym->onStack if-case,
9786         * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
9787         sbit, idata, _idata, xdata, _xdata,
9788         * added pragma library, to link an external library, (see doc),
9789         * removed command line options, --pomit-config-words, --pomit-ivt,
9790         --pleave-reset-vector,
9791         * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
9792         when calling assembler to reflect memory model used, also define
9793         macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
9794         reflect stack model used,
9795         * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
9796         on stack return NULL,
9797
9798 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
9799
9800         * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
9801           of the operands is volatile. Fixes #1020220
9802
9803 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
9804
9805         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
9806         * (OptimizeRegUsage): make sure that there is really no other flow where
9807           the first pCode is used
9808
9809 2005-01-22 Raphael Neider <rneider AT web.de>
9810
9811         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
9812           to fix #1106967 (pCode->seq are not set up correctly)
9813
9814 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9815
9816         * src/SDCCglue.c (glue): make sure code area is declared before the
9817         static initialization area.
9818
9819 2005-01-21 Raphael Neider <rneider AT web.de>
9820
9821         * device/lib/Makefile.in: fixed test for pic16 install dir
9822         * device/lib/pic16/*/Makefile*: modified compile flags to enable
9823           optimizations
9824         * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
9825           added --optimize-goto compiler switch and pragma wparam documentation
9826         * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
9827         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
9828           and PRODH closing bug #1071770 (peephole optimizer)
9829
9830 2005-01-19 Raphael Neider <rneider AT web.de>
9831
9832         * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
9833           cmdLine buffers (used when calling sdcpp...) are large enough
9834           (MAX_PATH=256 truncates arguments leading to system halts when
9835           used in MinGW...)
9836         * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
9837         * (genUminus): rewritten to for efficiency
9838         * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
9839           used uninitialized in some cases)
9840         * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
9841           copy the third byte from the int -- now assumes 0x80 (data memory)
9842         * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
9843           operands (genAddLit expects the iCode's operands to swapped as
9844           well), fixed leftover bytes (crashed for short left operands)
9845         * (pic16_genMinusDec): performance improvements, removed false
9846           PIC14 emitSKPNCs
9847         * (pic16_genMinus): fixed to cope with differently sized operands
9848         * src/pic16/glue.c (pic16_glue): added new banksel optimization
9849           for --obanksel > 1
9850         * src/pic16/pcode.c: implemented (first phase of) banksel optimization
9851         * src/pic16/graph.[ch]: implementation of directed graphs, used by
9852           new banksel optimization
9853         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
9854           analysis for temporary registers (segfaults...)
9855         * src/pic16/peeph.def: added rule
9856
9857 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
9858
9859         * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
9860         which converts a float number to its ASCII representation
9861         * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
9862         functions to convert the fractional and integer part of a float to ASCII,
9863         * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
9864         realloc.c): added _MALLOC_SPEC to explicit place variables in data
9865         ram
9866         * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
9867         _STATMEM macros,
9868         * device/include/pic16/adc.h: added GPL info,
9869         * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
9870         a pCodeOp as tested operand,
9871         * (genNearPointerGet): optimized bit testing, does not use
9872         intermediate register for bit value, test directly instead with
9873         BTFSS, BTFSC, works only for single bits,
9874         * (genpic16Code): dump the name of the iCode in the asm,
9875         * src/pic16/ralloc.c (decodeOp): removed static declaration and
9876         renamed to pic16_decodeOp,
9877         * (serialRegAssign): do not allocate a temporary register for iCode
9878         sequences that test a single bit for 1/0
9879
9880 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
9881
9882         * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
9883         pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
9884         access stack and frame pointers. They are initially assigned to
9885         point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
9886         accessing SFRs. Updated all occurences of modification of stack or
9887         frame pointer in gen.c and pcode.c,
9888         * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
9889         assigning of a literal value to pointers,
9890         * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
9891         flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
9892         selected
9893
9894 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
9895
9896         * doc/sdccman.lyx: update documentation about stack pragma, added
9897         some info for stack memory models
9898
9899 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9900
9901         * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
9902
9903 2005-01-08 Raphael Neider <rneider AT web.de>
9904
9905         * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
9906           udata sections to fix bug #1097823
9907
9908 2005-01-05 Raphael Neider <rneider AT web.de>
9909
9910         * src/pic16/gen.c (genGenericShift): added handling of differently
9911           sized left operand and result
9912
9913 2005-01-04 Raphael Neider <rneider AT web.de>
9914
9915         * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
9916         * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
9917           to hold the condition bit)
9918         * added new version of genCmp (old code available via #define)
9919         * added new version of genShiftLeft/genShiftRight in a generic
9920           way, now supports shifting by negative values
9921         * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
9922           shiftCount (expected by genGenericShift)
9923         * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
9924         * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
9925           dump
9926         * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
9927           is an invalid literal too...)
9928
9929 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
9930
9931         * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
9932         from Raphael Neider,
9933         * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
9934         for 8-bit literals. This fixes some literal operands which are sign
9935         extended to 16-bits ints when instruction needs only 8-bits.
9936
9937 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
9938
9939         * device/lib/logf.c: added mcs51 assembly version
9940         * device/lib/expf.c: added mcs51 assembly version
9941         * device/lib/_logexpf.c: new shared asm code for expf and logf
9942         * device/include/math.h: add defines for assembly math library
9943         * device/lib/Makefile.in: build new _logexpf.c
9944         * device/lib/libfloat.lib: use new _logexpf.c
9945
9946 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
9947
9948         * src/pic/device.c
9949         * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
9950           device types which have less than 0x7f registers.
9951
9952 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
9953
9954         * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
9955
9956 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
9957
9958         * device/lib/printf_fast.c: only build on supported arch.
9959         * device/lib/printf_tiny.c: only build on supported arch.
9960         * device/lib/printf_fast_f.c: only build if asm float lib
9961         * device/lib/_fsget1arg.c: only build if asm float lib
9962         * device/lib/_fsget2args.c: only build if asm float lib
9963         * device/lib/_fsnormalize.c: only build if asm float lib
9964         * device/lib/_fsreturnval.c: only build if asm float lib
9965         * device/lib/_fsrshift.c: only build if asm float lib
9966         * device/lib/_fsswapargs.c: only build if asm float lib
9967         * device/include/stdio.h: don't provide print_fast,
9968           print_fast_f, print_tiny prototypes if --xstack used
9969
9970 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
9971
9972         * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
9973         * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
9974           to the SOURCES
9975
9976 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
9977
9978         * device/lib/printf_fast_f.c: same as printf_fast, but
9979           with floating point enabled
9980         * device/lib/printf_fast.c: minor tweaks
9981         * device/include/stdio.h: add printf_fast_f
9982
9983 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
9984
9985         * src/SDCCmain.c: make --float-reent default for mcs51
9986         * device/lib/_fsadd.c: added mcs51 assembly version
9987         * device/lib/_fssub.c: added mcs51 assembly version
9988         * device/lib/_fsmul.c: added mcs51 assembly version
9989         * device/lib/_fsdiv.c: added mcs51 assembly version
9990         * device/lib/_fseq.c: added mcs51 assembly version
9991         * device/lib/_fsneq.c: added mcs51 assembly version
9992         * device/lib/_fsgt.c: added mcs51 assembly version
9993         * device/lib/_fslt.c: added mcs51 assembly version
9994         * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
9995         * device/lib/Makefile.in: add _fscmp to build
9996         * device/lib/libfloat.lib: add _fscmp to build
9997
9998 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
9999
10000         * device/lib/_fs2slong.c: added mcs51 assembly version
10001         * device/lib/_fs2sint.c: added mcs51 assembly version
10002         * device/lib/_fs2schar.c: added mcs51 assembly version
10003         * device/lib/_fs2ulong.c: added mcs51 assembly version
10004         * device/lib/_fs2uint.c: added mcs51 assembly version
10005         * device/lib/_fs2uchar.c: added mcs51 assembly version
10006         * device/lib/_slong2fs.c: added mcs51 assembly version
10007         * device/lib/_sint2fs.c: added mcs51 assembly version
10008         * device/lib/_schar2fs.c: added mcs51 assembly version
10009         * device/lib/_ulong2fs.c: added mcs51 assembly version
10010         * device/lib/_uint2fs.c: added mcs51 assembly version
10011         * device/lib/_uchar2fs.c: added mcs51 assembly version
10012         * device/include/float.h: added #define to select asm vs c
10013
10014 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
10015
10016         * device/lib/printf_fast.c: improvements to float output
10017         * device/include/float.h: add defines for assembly float library
10018         * device/lib/_fsget1arg.c: receive 1 float arg
10019         * device/lib/_fsget2args.c: receive 2 float args (reentrant)
10020         * device/lib/_fsnormalize.c: normalize a float
10021         * device/lib/_fsreturnval.c: return float, various helper routines
10022         * device/lib/_fsrshift.c: right shift a float's mantissa
10023         * device/lib/_fsswapargs.c: swap 2 floats
10024         * device/lib/Makefile.in: build these 6 new files for mcs51
10025         * device/lib/libfloat.lib: add these 6 files to the library
10026
10027 2004-12-26 Borut Razem <borut.razem AT siol.net>
10028
10029         * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
10030           built by gcc 3.4.2
10031
10032 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
10033
10034         * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
10035           and fully reentrant and register bank neutral.
10036         * device/lib/printf_fast.c: added float (not enabled by default),
10037           added compact/slower integer (also not enabled by default),
10038           improved size/speed of fast integer code, other minor changes
10039         * device/include/stdio.h, device/lib/Makefile.in,
10040           device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
10041
10042 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
10043
10044         * src/pic16/pcode.c: declaring variables other than at the start of a
10045           block is not supported in C by VC6.
10046
10047 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
10048
10049         * applied a previous patch from Raphael Neider that wasn't included
10050         in the previous commits, which fixes infinite loops within jumptable
10051         improvements,
10052         * made some fixes that previous patches introduced
10053
10054 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
10055
10056         * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
10057         that fixes an issue with AOP_PCODE asmop's offset,
10058         * (pic16_popCopyReg): update instance field too,
10059         * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
10060         function of pic port,
10061         * (genCmp, genAnd, genAssign),
10062         * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
10063
10064 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
10065
10066         * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
10067         variables initial values to idata section,
10068         * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
10069         variables in some functions. This utilizes parmBytes field of iCode
10070         structure to hold the offset of the variable in stack. (might be
10071         able to use the stack field too?)
10072         * applied patch from Raphael Neider # ### , # ###
10073         * src/pic16/glue.c (pic16emitRegularMap): fix to print static
10074         variable initial values in idata section,
10075         * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
10076         for static variables with initial value
10077         * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
10078         applied fix in while loop from Raphael Neider.
10079
10080 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
10081
10082         * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
10083         * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
10084         * src/ds390/ralloc.c (serialRegAssign): spill bits
10085         * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
10086         * support/Util/SDCCerr.c,
10087         * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
10088         * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
10089         * support/regression/tests/bitwise.c: added test for bitwise complement(~)
10090
10091 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
10092
10093         * device/include/sdcc-lib.h: inserted LGPL, added includes
10094           asm/ds390/features.h and asm/mcs51/features.h
10095         * device/include/asm/default/features.h,
10096         * device/include/asm/gbz80/features.h,
10097         * device/include/asm/z80/features.h: added empty _AUTOMEM
10098           and _STATMEM
10099         * device/include/asm/ds390/features.h,
10100         * device/include/asm/mcs51/features.h: added files with defines for
10101           _AUTOMEM and _STATMEM indicating automatic and static storage class
10102         * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
10103         * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
10104         * src/SDCCicode.c (geniCodeCast),
10105         * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
10106         * src/SDCCloop.c (loopInduction): removed unused variable lr
10107         * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
10108           to convertToFcall to include char modulo (RFE 1065037), added check
10109           if left operand is unsigned and use abs of literal value
10110         * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
10111           as it doesn't work after conversion from peephole.def to peephole.rul
10112         * src/mcs51/gen.c (toBoolean): added check for size,
10113           (genModOneByte): optimized code for signed char modulo a literal
10114           power of 2 (thanks to Hubert Sack),
10115           (genRRC): removed unnecessary "clr c",
10116           (genRLC): replaced "add a,acc" with cheaper "rlc a"
10117         * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
10118           jump optimization,
10119           swapped rules 256.c and 256.d,
10120           extended 256.d by using new multiple checks (thanks Erik),
10121           added rules 256.e and 256.f,
10122           updated rule 261.a and 261.b to new generated code
10123         * support/regression/tests/muldiv.c: added test div/mod by a power of 2
10124
10125 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10126
10127         * src/SDCCloop.c (basicInduction, loopInduction): fixed several
10128           induction related bugs, including first part of bug #1074377
10129
10130 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
10131
10132         * applied patch from bug-report #1076292,
10133         * applied patches for genAnd and Goto-optimizations for Raphael
10134         Neider,
10135         * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
10136         dump a less iCode information,
10137         * src/pic16/device.h (pic16_options_t): added field debgen,
10138         * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
10139         DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
10140         * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
10141         puclic,
10142         * (various functions): added macros FENTRY and FENTRY2 to functions,
10143         to emit function prologue,
10144         * (various functions): fixed indentation,
10145         * (genNearPointerGet): fixed loading of FSR0,
10146         * (genPackBits): applied patch from Raphael Neider to fix updating
10147         of FSR0 and touching only the modified bits,
10148         * src/pic16/genarith.c (various functions): added macros FENTRY to
10149         emit function prologue in comments,
10150         * src/pic16/pcode.h: added functions debugf2, debugf3,
10151         * src/pic16/ralloc.c: partial fix for packForPush caused
10152         segmentation fault,
10153
10154 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10155
10156         * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
10157           <stsp AT users.sourceforge.net> with reversed byte order
10158         * support/regression/tests/rotate.c: added (ds390 skips some tests)
10159
10160 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10161
10162         * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
10163           bug #1074377
10164         * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
10165         * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
10166
10167 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
10168
10169         * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
10170
10171 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10172
10173         * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
10174           conditions,
10175           (setFromConditionArgs): friendly operand parser for peephole rules,
10176           (operandBaseName, operandsNotRelated): new peephole condition
10177           "operandsNotRelated" -- similar to "operandsNotSame", but takes
10178           architecture specific register naming into account, handles n-way
10179           comparisons, and supports quoted literals
10180         * src/mcs51/peeph.def: restored rule 177.d with an extra condition
10181
10182 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10183
10184         * src/mcs51/peeph.def: fixed bug #1076940
10185
10186 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
10187
10188         * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
10189
10190 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10191
10192         Adding support for replacing ljmps with sjmps in jumptables
10193         generated for switch statements. For now you need to set the
10194         environment variable SDCC_SJMP_JUMPTABLE to enable this.
10195         Now 4 algorithms for mcs51 jumptable generation are used:
10196         ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
10197         addresses loaded pc-relative for up to 112 cases and stack-pushing
10198         target addresses loaded with offset from dptr for up to 256 cases.
10199
10200         * src/SDCCpeeph.c: added peephole conditional labelJTInRange
10201         * src/mcs51/main.c: adapted constants for switch table generation
10202         * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
10203
10204 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
10205
10206         * device/lib/printf_large.c (_print_format): fixed bug 1073386
10207         * support/regression/tests/bug1057979.c: added test for bug 1073386
10208
10209 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
10210
10211         * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
10212         compilers
10213
10214 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
10215
10216         * src/pic16/device.h,
10217         * src/pic16/genarith.c,
10218         * src/pic16/glue.c,
10219         * src/pic16/main.c,
10220         * src/pic16/pcode.c: applied patches #1068154 and #1070213
10221
10222 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
10223
10224         Large cummulative patch for pic16 port.
10225         * device/lib/pic16/gstack.h: NEW, user can specify its own handler
10226         to call when a stack overflow occurs,
10227         * (malloc.h): added CVS Id tag,
10228         * (pic18f{242,252,442,452}.h): added T0CONbits structure and
10229         variable,
10230         * added libc directory. The current version of LibC contains string
10231         functions, ctype functions and macros and some functions of the
10232         stdlib set (like malloc/free/atof/atoi etc...). All functions are to
10233         be extensively tested in the future. Standard disclaimer here.
10234         Library is not automatically build yet. But one can build it by
10235         invoking 'make' inside the libc directory.
10236         * added ADC library under libio. Preliminary version yet.
10237
10238         * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
10239         * src/pic16/gen.c (aopForRemat): asmop size is filled by
10240         aopForRemat() now and not by pic16_aopOp(),
10241         * (pic16_popGetTempReg): removed warning messgae when allocating
10242         temporary registers, its a buggy feature and will be removed,
10243         * (pic16_popGet): set register instance field in AOP_CRY,
10244         * (pic16_outBitC): fixed for results in size greater than 1,
10245         * (genUminusFloat): fixed for pic16, ported code from mcs51,
10246         * (pic16_storeForReturn): optimized return of 0,
10247         * (genCmp): experimental code for new genCmp which uses PIC18's
10248         special compare&skip instructions. Initial tests fail some times
10249         with variables grater than 1 byte in size, so new code is disabled,
10250         * (genUnpackBits, genPackBits): more optimizations in reading/writing,
10251         a single bit,
10252         * (genCast): began a fix to optimize the casting of a bit to another
10253         bit, now assigning a bitfield to another bitfield will fail, sorry,
10254         * src/pic16/main.c: disabled the use of lr-support feature,
10255         * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
10256         * added some function prototypes, added function _debugf prototype,
10257         * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
10258         bits with offset (case PO_GPR_BIT),
10259         * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
10260         command line,
10261         * (isBankInstruction): modified to return 0 for no banking instruction,
10262         and 1 for banking instruction,
10263         * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
10264         caused stop processing pCodes after a inline assembly block,
10265         * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
10266         * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
10267         registers when it shouldn't,
10268         * src/pic16/ralloc.c (allocReg): add preliminary support for
10269         supporting a limited set of temporary registers,
10270
10271 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10272
10273         * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
10274           genDataPointerSet): ensure assignments always copy in MSB to LSB
10275           order,
10276           (loadRegFromAop): recognize CLRH optimization,
10277           (genFunction): optimize RECEIVE iCodes in reentrant functions
10278
10279 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10280
10281         * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
10282           --out-fmt-s19 turning into --out-fmt-elf if s19 was already
10283           selected.
10284         * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
10285         * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
10286           contiguous with data
10287
10288 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10289
10290         * device/lib/_gptrget.c (_gptrget),
10291         * device/lib/_gptrgetc.c (_gptrgetc),
10292         * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
10293           instead of sjmp to ret
10294         * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
10295           by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
10296
10297 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
10298
10299         * .version: bumped version to 2.4.7
10300         * device/lib/_gptrget.c (_gptrget): is now _naked
10301         * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
10302         * device/lib/_gptrput.c (_gptrput): is now _naked
10303         * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
10304           (createFunction): fixed xstack
10305         * src/SDCCglue.c (emitMaps): set allocation required for bit area
10306         * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
10307           or bit either,
10308           (geniCodeCritical): store original interrupt state in an iTemp bit
10309           var unless stack-auto
10310         * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
10311         * src/SDCCmain.c (setIncludePath): added include/target to search path
10312         * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
10313         * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
10314           prototype,
10315           (processFuncArgs): put bit vars in bit area
10316         * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
10317           unsaveRBank): fixed xstack,
10318           (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
10319           (genFunction, genEndFunction): fixed xstack,
10320           (genAssign): optimization don't walk backwards through mem
10321         * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
10322         * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
10323         * support/regression/Makefile: also make library (for stack-auto) when
10324           making "all" and added "test-mcs51-xstack-auto"
10325         * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
10326         * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
10327         * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
10328         * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
10329         * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
10330           make-library by MAKE_LIBRARY
10331         * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
10332           regression tests for xstack
10333         * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
10334         * support/regression/tests/critical.c: test for critical on mcs51
10335
10336 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10337
10338         * support/regression/ports/ucz80/spec.mk: use include and lib files from
10339           built version of sdcc instead of installed version
10340
10341 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
10342
10343         * src/mcs51/gen.c (toBoolean): fixed bug 1065458
10344         * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
10345           vprintf.c now
10346         * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
10347         * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
10348           WARNING: remove device/lib/build/z80/printf.o by hand when
10349           updating from previous build!
10350         * device/lib/z80/printf.c: updated comment
10351         * support/regression/tests/bug1057979.c: test all ports now
10352         * support/regression/tests/bug1065458.c: file added
10353
10354 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10355
10356         * src/z80/gen.c (genFunction, genEndFunction): avoided generating
10357           *_start and *_end symbols for static functions
10358
10359 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
10360
10361         * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
10362           and search crt0.o in all library paths,
10363           (setIncludePath): proper handling of --nostdinc,
10364           (setLibPath): proper handling of --nostdlib
10365         * support/regression/Makefile,
10366         * support/regression/ports/ds390/spec.mk,
10367         * support/regression/ports/gbz80/spec.mk,
10368         * support/regression/ports/hc08/spec.mk,
10369         * support/regression/ports/mcs51/spec.mk,
10370         * support/regression/ports/mcs51-large/spec.mk,
10371         * support/regression/ports/mcs51-stack-auto/spec.mk,
10372         * support/regression/ports/z80/spec.mk: use include and lib files from
10373           built version of sdcc instead of installed version
10374         * doc/sdccman.lyx: fixed typo in --nostdinc
10375
10376 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
10377
10378         * src/pic/pcode.c,
10379         * src/pic/device.c,
10380         * src/pic/ralloc.c,
10381         * src/pic/gen.c : added support to generate code for struct bit fields.
10382
10383 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
10384
10385         * as/xa51/xa_version.h,
10386         * device/include/errno.h,
10387         * device/include/regc515c.h,
10388         * device/lib/_itoa.c,
10389         * device/lib/_ltoa.c,
10390         * device/lib/ser_ir_cts_rts.c,
10391         * sim/ucsim/xa.src/glob.cc,
10392         * sim/ucsim/xa.src/inst_gen.cc,
10393         * sim/ucsim/xa.src/xa_bit.cc,
10394         * sim/ucsim/xa.src/xa_sfr.cc,
10395         * sim/ucsim/z80.src/inst_dd.cc,
10396         * sim/ucsim/z80.src/inst_fdcb.cc,
10397         * support/scripts/keil2sdcc.pl,
10398         * src/pic16/pic16.dsp,
10399         * src/pic16/pic16a.dsp: corrected cvs line endings
10400         * device/lib/printf_large.c: fixed bug 1057979
10401         * src/pic16/gen.c: fixed non-C standard code
10402         * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
10403         * src/SDCCglobl.h: changed pack_iram to no_pack_iram
10404         * support/regression/ports/mcs51/support.c: reload T1 asap
10405         * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
10406           pdata use and clear idata startup behaviour
10407         * support/regression/tests/bug1057979.c: added
10408
10409 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
10410
10411         * device/examples/ds390/ow390/ad26.h,
10412         * device/examples/ds390/ow390/cnt1d.h,
10413         * device/examples/ds390/ow390/crcutil.c,
10414         * device/examples/ds390/ow390/ownet.h,
10415         * device/examples/ds390/ow390/owsesu.c,
10416         * device/examples/ds390/ow390/swt12.h,
10417         * device/examples/ds390/ow390/swtoper.c,
10418         * device/examples/ds390/ow390/temp10.h,
10419         * device/examples/ds390/ow390/thermodl.c,
10420         * device/examples/ds390/tinitalk/tinitalk.dsp,
10421         * device/examples/ds390/tinitalk/tinitalk.dsw,
10422         * device/examples/mcs51/clock/hw.h,
10423         * device/examples/mcs51/simple2/go.bat,
10424         * device/examples/serialcomm/windows/serial.h,
10425         * device/examples/xa51/dummy.c,
10426         * device/examples/xa51/hello.c,
10427         * device/include/80c51xa.h,
10428         * device/include/at89x051.h: corrected cvs line endings
10429
10430 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
10431
10432         * src/pic16/main.c (options): added command line --gstack, to trace
10433         stack over/under flows,
10434         * added pragma 'wparam' to allow passing first byte of function
10435         parameters via WREG, syntax is #pragma wparam my_function[, func2...]
10436         * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
10437         call to __gstack_test function and sets up the symbol as extern,
10438         * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
10439         * popaop): added call to pic16_testStackOverflow,
10440         * (wParamCmp, inWparamList): NEW, test existence of a symbol in
10441         wparamList list,
10442         * (genCall, genPcall): now all parameters are passed via stack
10443         except in functions that are pass to wparam pragma in which WREG is
10444         used too,
10445         * (genPcall): REENTRANT flag is checked to see if variable prototype
10446         contains reentrant keyword, don't call a non-reentrant function, via
10447         a reentrant function pointer or vice versa, functions are never
10448         passed via WREG,
10449         * (genJumpTab): applied patch from bug #1057478 by R.Neider and
10450         D.Winkler,
10451         * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
10452         SIGSEGV when accessing a NULL register stucture,
10453         * (pic16_printGPointerType): modified to handle UPPER modifier for
10454         function initializers, changed prototype of function to simpler one,
10455         * (pic16_printIvalFuncPtr): check to see if function is already
10456         added in externs list,
10457         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
10458         optimized a move from W to SFR with a move to the same register
10459         later after a CALL,
10460         * device/lib/pic16/debug: NEW directory, contains debug features
10461         which are enabled when linking with libdebug.lib, currently command
10462         line option --gstack enables stack pointer tracing for over/under
10463         flow, corresponding sources are in debug/gstack
10464
10465 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
10466
10467         * doc/sdccman.lyx: updated SDCC version,
10468         * (PIC16 port): update list of command line options,
10469         * src/pic16/device.h (structure pic16_options_t): added field gstack
10470         to enable stack overflow tracing on push/pops,
10471         * src/pic16/device.c (statistics structure): added statistics
10472         structure,
10473         * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
10474         pic16_dump_int_registers): increase statistics counters for each
10475         * variable which is encountered
10476         * (pic16_dump_usection): emit each .udata variable to its own udata
10477         section,
10478         * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
10479         when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
10480         parameters via stack, otherwise use old scheme,
10481         * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
10482         assembler output file,
10483         * src/pic16/main.c: added command line options --gstack to enable
10484         push/pop tracing for stack overflow,
10485         * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
10486         instructions): added size of each instruction,
10487         * (pic16_countInstruction): estimate size of instructions in
10488         the_pFile list, inline assembly blocks are not counted,
10489         * (pic16_FixRegisterBanking): trace previous register usage, when
10490         banksel optimizations is greater than 0, don't emit a redudant
10491         banksel directive,
10492
10493 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
10494
10495         * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
10496         * src/pic16/ralloc.c : applied same fix for pic16.
10497         * src/pic/gen.c : tidied it up a little.
10498
10499 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10500
10501         * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
10502         thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
10503
10504 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10505
10506         * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
10507
10508 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10509
10510         * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
10511         non-reentrant function __modsint in the interrupt function (thus
10512         corrupting math operations during serial I/O)
10513         * device/lib/ser_ir.c: as above, changed buffersize
10514         * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
10515         256.c,d for zeroing
10516         * doc/Makefile: added option -t for rsync
10517
10518 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10519
10520         * src/SDCCast.h (struct ast),
10521         * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
10522
10523 2004-10-20 Borut Razem <borut.razem AT siol.net>
10524
10525         * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
10526         package
10527
10528 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
10529
10530         * device/lib/pic16/libsdcc/Makefile: added lregs directory in
10531         makefile targets,
10532         * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
10533         support functions to replace long sequences of MOVFF's from access
10534         bank registers to stack and vice versa,
10535         * src/pic16/device.h: added new field opt_flags, where optimization
10536         flags can be set to enable certain features,
10537         * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
10538         * pBlock, (genFunction, genEndFunction): surroung loop for
10539         saving/loading used registers in stack with PC_INFO pCodes,
10540         INF_LREGS. Code in between can then be optimized by pCode optimizer
10541         to support function calls,
10542         * (genDataPointerSet): fixed bug which loaded float fields in
10543         structures with corrupt data,
10544         * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
10545         in a standard way debug info on stderr. Feature used for developing
10546         and debugging only,
10547         * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
10548         obsolete chunks of code,
10549         * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
10550         * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
10551         * pic16/src/pcode.c (pic16_newpCodeInfo,
10552         * (pic16_newpCodeOpLocalRegs),
10553         * (pic16_convertLocalRegs2Support): NEW, to support new optimization
10554         feature,
10555         * (pic16_pCodeConstString): printing of the initial value of a
10556         symbol as a comment is inhibited since parsing was already done by
10557         copyStr and output is corrupt,
10558         * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
10559
10560 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10561
10562         * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
10563
10564 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
10565
10566         * as/mcs51/lkarea.c: removed old K&R style,
10567           (lnksect): changed check on boundary error,
10568           (lnksect2): changed check on boundary error,
10569           (lnksect2): extend XSTK to end of page if size = 1
10570         * as/mcs51/lkmain.c: removed old K&R style,
10571           (Areas51): create l_IRAM symbol
10572         * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
10573         * device/lib/Makefile.in: renamed model-mcs51-reentrant to
10574           model-mcs51-stack-auto, added model-mcs51-xstack-auto
10575         * device/lib/_mullong.c: added version to be compiled with xstack
10576         * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
10577         * device/lib/mcs51/crtxclear.asm: clear pdata as well
10578         * device/lib/mcs51/crtxstack.asm: fixed comment
10579         * src/SDCCglue.c: maxInterrupts defaults to 0,
10580           (emitMaps): added pdata,
10581           (createInterruptVect): (re)moved default,
10582           (glue): added pdata,
10583           (glue): moved __start__xstack to XSTK with default size 1
10584         * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
10585           and options.float_rent when options.stackAuto is set,
10586           (linkEdit): only write XDATA_NAME if provided on command line
10587         * src/SDCCmem.h,
10588         * src/SDCCmem.c: added pdata
10589         * src/port.h: added pdata_name to PORT
10590         * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
10591           (saveRegisters, unsaveRegisters): removed usage of B,
10592           (genMinus): fixed accumulator clash,
10593           (genJumpTab): added comment, this needs another look
10594         * src/mcs51/gen.c: added check for "B in use" paranoia,
10595           added pushB() and popB()
10596         * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
10597           chance
10598         * src/avr/main.c,
10599         * src/ds390/main.c,
10600         * src/hc08/main.c,
10601         * src/mcs51/main.c,
10602         * src/pic/main.c,
10603         * src/pic16/main.c,
10604         * src/xa51/main.c,
10605         * src/z80/main.c: (reset_regparms) made void parameter explicit and
10606           added PSEG (PAG,XDATA) or NULL to port specifier
10607         * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
10608         * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
10609           (_mcs51_genInitStartup): removed __start__xstack equ,
10610           (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
10611         * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
10612         * src/z80/gen.c (_rleAppend): fixed warnings
10613         * support/regression/tests/zeropad.c: added pdata test
10614         * .version: bumped to 2.4.6
10615
10616 2004-10-17 Borut Razem <borut.razem AT siol.net>
10617
10618         * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
10619         as a part of nightly build
10620
10621 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
10622
10623         * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
10624         WREG holds the first byte function parameters,
10625         * (aopForSym): take special case for symbols which are in FARSPACE
10626         but in CODESPACE too,
10627         * (assignResultValue): modified to take into account _G.useWreg,
10628         * (genCall): don't use wreg for parameter passing when function is
10629         declared as reentrant, too, added optimization INCF to stack
10630         pointer when stack parameter count is 1,
10631         * (genFunction, genEndFunction): refurnished and fixed to not using
10632         wreg for passing parameters when function has varargs or is
10633         reentrant, fixed bug with symbol name compare for generating
10634         functions in absolute address,
10635         * (pic16_storeForReturn): refurnished,
10636         * (genCmp): began writing a new version of the function, not ready
10637         yet, therefore it is disabled,
10638         * (genAssign): do not read code memory when assigning a function to
10639         a pointer function,
10640         * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
10641         array of characters, not pointer,
10642         * (pic16initialComments): in debug mode emit an .ident directive for
10643         the assembler,
10644         * (_process_pragma): emit a new warning type (internal to pic16)
10645         when setting stack to default length, emit a similar warning when
10646         placing a function at absolute address and address is not word aligned
10647         * (_pic16_parseOptions): added 'return TRUE' statement,
10648         * (_pic16_linkEdit): if compiling a source, then add the source's
10649         file object, first in the list of objects to link,
10650
10651 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
10652
10653         * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
10654         * src/pic/main.c : removed VC warning.
10655         * src/pic/gen.c : changed comment.
10656
10657 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
10658
10659         * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
10660         reference to a deprecated symbol _GPTRREG was causing failure to
10661         link. Thanks G. M. Gallant for the info.
10662
10663 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
10664
10665         * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
10666         comments for Bugs item #954788.
10667
10668 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
10669
10670         * src/pic16/device.c (pic16_dump_gsection,
10671         * pic16_groupRegistersInSection): handle symbols declared to be in
10672         access bank differently,
10673         * src/pic16/gen.c (struct _G): added field resDirect,
10674         * (aopForSym): if symbol on stack and iCode is '=' and result exists,
10675         send values read from stack directly to result and don't allocate
10676         temporary values,
10677         * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
10678         same registers,
10679         * (pic16_sameRegsOfs): NEW,
10680         * (freeAsmop): if _G.resDirect is set then do not mark registers as
10681         free because they were not allocated from temporary pool,
10682         * pic16_popRegFromString): workaround to fix a problem with
10683         allocating variables twice or never,
10684         * (genGenPointerGet): using PRODL instead of FSR0H,
10685         * (genGenPointerSet): using POSTDEC1 (that is a stack location)
10686         instead of FSR0H,
10687         * (genAssign): take advantage of the _G.resDirect flag,
10688         * (genCast): around line 11844, use mov2f instead of directly
10689         MOVFF'ing between operands to account for literal values,
10690         * src/pic16/genutils.c: some new debug functions for gpsim have been
10691         added,
10692         * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
10693         float with integer part only,
10694         * src/pic16/main.c (_process_pragma): handle pragma udata access to
10695         place variables in access bank
10696         * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
10697         updated sources to reflect recent changes in gen.c
10698
10699 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
10700
10701         * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
10702         sources that searched for headers in installation path, now the
10703         device/include/pic16 is used,
10704         * src/pic16/glue.c (pic16glue),
10705         * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
10706         .line directives if not in debug mode, this suppresses assembler's
10707         warnings for ignored directives
10708
10709 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
10710
10711         * src/port.h: made reset_regparms prototype void parameter explicit.
10712         * src/SDCCsymt.c (processFuncArgs): removed argument "func".
10713         * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
10714         * doc/sdccman.lyx: documented warning disabling and how to use
10715           printf_large to make it print floats.
10716         * device/include/stdbool.h: NEW
10717         * device/lib/_atof.c,
10718         * device/lib/_divuint.c,
10719         * device/lib/_divulong.c,
10720         * device/lib/expf.c,
10721         * device/lib/printf_large.c,
10722         * device/lib/sincosf.c,
10723         * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
10724         * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
10725           a completely reentrant lib.
10726
10727 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
10728
10729         * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
10730         * device/include/pic16/stdio.h: fixed bug with colon
10731
10732 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
10733
10734         * device/include/pic16/stdio.h,
10735         * device/include/pic16/stdlib.h,
10736         * device/include/pic16/math.h: NEW
10737         * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
10738         declared as _naked to reduce overhead
10739         * device/lib/Makefile.in (target port-specific-objects-pic16):
10740         changed * to *.* so to ignore the CVS directory,
10741         * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
10742         stacked variables back in stack,
10743         * (genEndFunction): fixed bug reported by G.M. Gallant with stack
10744         corruption
10745
10746 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
10747
10748         * .version: bumped version number to 2.4.5
10749         * support/Util/SDCCerr.h: added warning W_POSSBUG2.
10750         * support/Util/SDCCerr.c (messages structure): added entry for
10751         W_POSSBUG2
10752
10753         Large cumulative patch for pic16 port and libraries.
10754         * device/include/pic16/sdcc-lib.h,
10755         * device/include/pic16/stdarg.h,
10756         * device/include/asm/pic16/features.h,
10757         * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
10758         * device/include/pic16/float.h: changes reentrant keyword with
10759         _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
10760         * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
10761         updated target build-libraries to include objects from gptr,
10762         * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
10763         _IL_REENTRANT to all function headings, included sdcc-lib.h header,
10764         * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
10765         all function headings,
10766         * src/SDCCmain.c: added global parameter userIncDirsSet,
10767         * (parseCmdLine): when option -I is encountered add directory to
10768         userIncDirsSet too,
10769         * src/version.awk: added space between control and long,
10770         * src/pic16/NOTES: added some notes for the port,
10771         * src/pic16/gen.c: added prototype for mov2fp function,
10772         * (fReturnpic16[]): properly named return value registers,
10773         * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
10774         * (aopForSym): added code to handle symbols with onStack flag set,
10775         symbols onStack are allocated PTRSIZE bytes,
10776         * (aopFreeAsmop): handles special case where asmops are stack objects,
10777         * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
10778         * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
10779         added argument lock to trace flaws in allocating temporary registers
10780         when developing port,
10781         * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
10782         * (pic16_popRegFromString): reenabled allocating a direct register
10783         from string,
10784         * (assignResultValue): various beautifications,
10785         * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
10786         referenced function argument,
10787         * (genIpush): reenabled to allow stacked arguments, handles only
10788         ic->parmPush iCodes,
10789         * (genCall, genPcall): major changes to allow for variable argument
10790         functions, fixed a bug with falsely restoring stack pointer after
10791         returning from call,
10792         * (genFunction): pending code for critical function,
10793         * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
10794         * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
10795         * (genNearPointerGet): fixed bug with indirect reading, was always
10796         reading from INDF0
10797         * (genGenPointerGet, genGenPointerSet): rewrote to support generic
10798         pointers,
10799         * (genAddrOf): rewrote code to take address of a stacked function parameter
10800         * (genCast): fixed casting to generic pointer type,
10801         * src/pic16/gen.h: added AOP_STA,
10802         * (struct asmop): added field stk,
10803         * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
10804         * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
10805         * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
10806         * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
10807         * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
10808         * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
10809         generic pointers,
10810         * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
10811         and library paths,
10812         * (pic16_port structure): generic pointer size is set to 3,
10813         * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
10814         * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
10815         compiler warning,
10816         * src/pic16/ralloc.c (allocReg): prevent allocating register when
10817         operand is an iTemp,
10818
10819 2004-09-24 Martin Helmling <mh AT octo-soft.de>
10820
10821         * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
10822         * debugger/mcs51/simi.c: addapt new syntax of s51
10823
10824 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
10825
10826         * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
10827         * src/pic16/pcode.c: commented out some calls to free() in order to
10828         fix bug #989576,
10829
10830 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10831
10832         * src/SDCCicode.h,
10833         * src/SDCCicode.c (isiCodeInFunctionCall),
10834         * src/avr/ralloc.c (selectSpil),
10835         * src/pic/ralloc.c (selectSpil),
10836         * src/pic16/ralloc.c (selectSpil),
10837         * src/ds390/ralloc.c (selectSpil),
10838         * src/hc08/ralloc.c (selectSpil),
10839         * src/xa51/ralloc.c (selectSpil),
10840         * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
10841         stack in the middle of a function call sequence (fixes bug #1020268)
10842         * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
10843         costs associated with the minimum switch case.
10844
10845 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10846
10847         * src/SDCC.lex: fixed bug #1030549
10848
10849 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10850
10851         * src/SDCCcse.h (struct cseDef),
10852         * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
10853         over a function call if the CSE is derived from a symbol whose
10854         address has been taken (fixes bug #1029883)
10855         * support/regression/tests/bug-1029883: a new regression test for
10856         this bug
10857
10858 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10859
10860         * src/hc08/gen.c (emitinline): fixed bug #1029778
10861         * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
10862         to a cast object is no longer a syntax error ("fixes" bug #1030006,
10863         and starts toward RFE #905167)
10864
10865 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
10866
10867         * src/pic16/gen.c (mov2f): New function to move an operand to
10868         another without considering if it is a literal or a register,
10869         * (pic16_sameRegs): don't check if they are both AOP_REG,
10870         * (AccRsh): removed andmask=0 lines,
10871         * (genLeftShift): duplicated to be improved in future versions,
10872         * src/pic16/main.c (_process_pragma): emit stack default size in hex,
10873         * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
10874         in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
10875         * (pic16initMnemonics): added initialization for POC_INFSNZW,
10876         * (insertBankSwitch): fixed inserting banksel directives algorithm
10877         for instructions that follow a skip instruction, this fixes a report
10878         for broken subtraction code generation,
10879         * src/pic16/ralloc.c (deassignLRs): do not free register if current
10880         iCode is a left op, just in case result and right share the same
10881         registers
10882
10883 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10884
10885         * src/hc08/main.c,
10886         * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
10887         preservation of HX
10888         * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
10889         * src/mcs51/ralloc.c (packRegisters): removed the patch applied
10890         on 2004-09-12; it was buggy
10891
10892 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
10893
10894         * src/SDCCsymt.h: removed RESULT_CHECK
10895         * src/SDCCast.c,
10896         * src/SDCCglue.c,
10897         * src/SDCCval.c,
10898         * src/pic/glue.c,
10899         * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
10900
10901 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
10902
10903         * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
10904         * src/pic16/device.c (pic16_assignConfigWordValues): wrong
10905         configuration values no more rejected by compiler, they are assigned
10906         to configuration registers with a warning message instead,
10907         * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
10908         the for-loop so last conf register is emitted too,
10909         * (_pic16_initPaths): link library libsdcc.lib by default,
10910         * (_hasNativeMulFor): modified test for multiplication according to
10911         Raphael Neider's remarks. Integer multiplication is also done with
10912         support functions,
10913         * device/include/pic16/pic18fregs.h: corrected type error in while
10914         testing and including 18f6720 header file
10915
10916 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
10917
10918         * src/pic16/device.h (pic16_options): removed field use_crt,
10919         * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
10920         until an optimization to handle single bits is added,
10921         * (pic16_loadFSR0): moved before genUnpackBits,
10922         * (genAnd): some white lines removed,
10923         * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
10924         leave_reset flags in pic16_options when using crt modules,
10925
10926 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
10927
10928         * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
10929           for bugs 898889 & 979599. Also used some safer print instructions.
10930
10931 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
10932
10933         * src/pic16/device.h (pic16_options_t): added field use_crt,
10934         crt_name, no_crt,
10935         * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
10936         catch a probable future bug,
10937         * src/pic16/gen.c: aopIdx function commented out,
10938         * (genAssign): commented out old code which used aopIdx,
10939         * src/pic16/glue.c (pic16glue): removed some legacy fragments of
10940         code, added if conditionals to take into account the --use-crt
10941         command line options,
10942         * src/pic16/main.c (pic16_optionsTable): added new command line
10943         options, --use-crt= and --no-crt,
10944         * (_pic16_linkEdit): now the proper crt object is added in the
10945         linker command line except than when --no-crt is specified,
10946         * src/pic16/pcode.c,
10947         * src/pic16/pcode.h: added some structures and functions for a new
10948         optimization scheme to compansate for instruction overhead between
10949         same iCodes, this scheme is currently under development and is not
10950         working in any way,
10951         * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
10952         to && operator,
10953         * device/lib/pic16/startup/crt0i.c,
10954         * device/lib/pic16/startup/crt0iz.c: added global char variable
10955         __uflags to force the generation of an idata section
10956
10957 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
10958
10959         * doc/Makefile,
10960         * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
10961         * doc/sdccman.lyx: updated sdcc version to 2.4.4
10962
10963 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10964
10965         * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
10966         Frieder) and clarified the default code optimization mode
10967
10968 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10969
10970         * src/SDCC.lex (doPragma, process_pragma),
10971         * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
10972         "opt_code_size", and "opt_code_balanced"
10973         * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
10974         regrouped options by category, added support for category headers
10975         * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
10976         and "--opt-code-size"
10977         * doc/sdccman.lyx: documented these new options and pragmas
10978         * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
10979         preference into account
10980
10981 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
10982
10983         * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
10984           geniCodePreDec): Fixed bug 904237 by generating a warning
10985         * src/SDCCerr.h,
10986         * src/SDCCerr.c: added warning W_SIZEOF_VOID
10987
10988 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
10989
10990         * src/pic/device.c : When no max ram set validate full memory range.
10991         * src/pic/pcode.c,
10992         * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
10993
10994 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
10995
10996         * device/lib/_gptrget.c,
10997         * device/lib/_gptrput.c: updated comment
10998         * device/lib/calloc.c,
10999         * device/lib/free.c,
11000         * device/lib/malloc.c,
11001         * device/lib/realloc.c: added LGPL, made them reentrant-safe
11002         * src/SDCCcse.c (cseBBlock),
11003         * src/SDCCicode.c (printOperand, geniCodeArray),
11004         * src/SDCCicode.h (struct operand): fixed bug 868103
11005         * support/regression/tests/bug-868103.c: added
11006         * src/SDCCast.c (searchLitOp),
11007         * src/SDCCcse.h (struct cseDef),
11008         * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
11009         * src/SDCCicode.h (struct operand),
11010         * src/SDCCsymt.h (struct sym_link),
11011         * src/avr/gen.c (hasInc),
11012         * src/ds390/gen.c (hasInc),
11013         * src/hc08/gen.c (genPlusIncr, hasInc),
11014         * src/mcs51/gen.c (hasInc),
11015         * src/pic16/glue.c (pic16_printIvalChar),
11016         * src/pic16/ralloc.c (regWithIdx),
11017         * src/xa51/gen.c (hasInc) : removed warnings
11018         * src/SDCCast.c (createBlock): added comment ???
11019         * src/hc08/ralloc.c: updated comments
11020
11021 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11022
11023         * doc/sdccman.lyx: updated section on switch statements, added
11024         section about semaphore locking
11025         * doc/Makefile: added option -info for latex2html
11026         * device/lib/_gptrget.c,
11027         * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
11028
11029 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
11030
11031         * src/pic/device.h,
11032         * src/pic/device.c,
11033         * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
11034          maxram is less than 0x100.
11035
11036 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
11037
11038         * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
11039
11040 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11041
11042         * src/port.h,
11043         * src/mcs51/main.c,
11044         * src/ds390/main.c,
11045         * src/z80/main.c,
11046         * src/hc08/main.c,
11047         * src/pic/main.c,
11048         * src/pic16/main.c,
11049         * src/avr/main.c,
11050         * src/xa51/main.c
11051         * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
11052         a jump table is the best form for a switch statement, including
11053         automatic insertion of missing cases to make the case range
11054         continuous. Developed in collaboration with Frieder Ferlemann.
11055
11056 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11057
11058         * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
11059         accumulator result if it needs sign extension
11060
11061 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
11062
11063         * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
11064
11065 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
11066
11067         * device/lib/gbz80/printf.c,
11068         * device/lib/z80/printf.c: removed define for NULL
11069
11070 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
11071
11072         * as/xa51/xa_link.c,
11073         * device/examples/ds390/ow390/ad26.c,
11074         * device/examples/ds390/ow390/cnt1d.c,
11075         * device/examples/ds390/ow390/counter.c,
11076         * device/examples/ds390/ow390/ds2480.h,
11077         * device/examples/ds390/ow390/ds2480ut.c,
11078         * device/examples/ds390/ow390/findtype.c,
11079         * device/examples/ds390/ow390/gethumd.c,
11080         * device/examples/ds390/ow390/owllu.c,
11081         * device/examples/ds390/ow390/ownetu.c,
11082         * device/examples/ds390/ow390/swt12.c,
11083         * device/examples/ds390/ow390/swtloop.c,
11084         * device/examples/ds390/ow390/temp.c,
11085         * device/examples/ds390/ow390/temp10.c,
11086         * device/examples/ds390/ow390/thermo21.c,
11087         * device/examples/ds390/ow390/tinilnk.c,
11088         * device/examples/ds390/ow390/tstfind.c,
11089         * device/examples/serialcomm/windows/serial.cpp,
11090         * device/examples/serialcomm/windows/test_serialcomm.cpp,
11091         * device/include/reg51.h: fixed line endings for cvs
11092
11093 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11094
11095         * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
11096         packRegsForAccUse, packRegisters): new accumulator register
11097         packing algorithm
11098         * support/regression/ports/hc08/support.c (_putchar): suppress
11099         warning of unused variable
11100         * src/SDCCicode.c: added SWAP entry to codeTable
11101
11102 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
11103
11104         * device/lib/sprintf.c: forgot to add this file before previous commit
11105
11106 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
11107
11108         * src/pic16/gen.c (genPackBits): added operand right in function
11109         parameters, load result directly if p_type is POINTER (that is
11110         called by genNearPointerSet)
11111         * (genUnPackBits): added operand left in function parameters,
11112         * (genNearPointerGet, genNearPointerSet): prevent the loading of
11113         FSR0 if accessing bitfields,
11114
11115 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
11116
11117         * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
11118           _print_format; updated printf, sprintf, vsprintf
11119         * device/include/asm/default/features.h: corrected comment/define
11120         * device/lib/Makefile.in: added sprintf.c
11121         * device/lib/libsdcc.lib: added sprintf module
11122         * device/lib/printf_large.c,
11123         * device/lib/vprintf.c,
11124         * device/lib/sprintf.c: totally refactored printf_large and vprintf
11125           into these 3 files
11126         * support/regression/Makefile: changed ALL_PORTS into a usefull default
11127         * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
11128         * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
11129           hc08 test
11130         * support/regression/tests/zeropad.c: define idata as data for hc08
11131
11132 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11133
11134         * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
11135         * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
11136         labels are referenced at least once (even if a reference is not found)
11137         * src/hc08/gen.c (emitcode): set isComment flag for comments
11138         * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
11139         loads), rules 6a..6b (optimize jumps to return)
11140
11141 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11142
11143         * device/lib/acosf.c (acosf),
11144         * device/lib/asinf.c (asinf),
11145         * device/lib/atanf.c (atanf),
11146         * device/lib/ceilf.c (ceilf),
11147         * device/lib/cosf.c (cosf),
11148         * device/lib/coshf.c (coshf),
11149         * device/lib/cotf.c (cotf),
11150         * device/lib/fabsf.c (fabsf),
11151         * device/lib/floorf.c (floorf),
11152         * device/lib/log10f.c (log10f),
11153         * device/lib/logf.c (logf),
11154         * device/lib/sinf.c (sinf),
11155         * device/lib/sinhf.c (sinhf),
11156         * device/lib/sqrtf.c (sqrtf),
11157         * device/lib/tanf.c (tanf),
11158         * device/lib/tanhf.c (tanhf),
11159         * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
11160         replaced all instances of "reentrant" in the library functions
11161         defined in math.h with this macro.
11162         * support/regression/tests/float_trans.c: reenabled test for hc08
11163
11164 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
11165
11166         * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
11167         erroneously deleted
11168
11169 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11170
11171         * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
11172         * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
11173         multi-byte volatile operands are used
11174         * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
11175         * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
11176         initialization to area GSINIT0 so that it would always precede
11177         any static initializers in GSINIT
11178         * support/regression/tests/zeropad.c: fixed idata define for hc08
11179         * support/regression/tests/bug-927659.c,
11180         * support/regression/tests/float_trans.c: disabled tests for hc08
11181         pending missing library routines
11182         * .version: increased version number to 2.4.4 - hc08 port now passes
11183         regression tests
11184
11185
11186 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
11187
11188         * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
11189         * Makefile.common.in,
11190         * as/Makefile,
11191         * as/hc08/Makefile.in,
11192         * as/mcs51/Makefile.in,
11193         * as/z80/Makefile.in,
11194         * debugger/mcs51/Makefile.in,
11195         * device/include/Makefile.in,
11196         * device/lib/Makefile.in,
11197         * doc/Makefile,
11198         * link/Makefile,
11199         * link/z80/Makefile.in,
11200         * packihx/Makefile.in,
11201         * sim/ucsim/main_in.mk,
11202         * sim/ucsim/avr.src/Makefile.in,
11203         * sim/ucsim/doc/Makefile.in,
11204         * sim/ucsim/gui.src/serio.src/Makefile.in,
11205         * sim/ucsim/hc08.src/Makefile.in,
11206         * sim/ucsim/s51.src/Makefile.in,
11207         * sim/ucsim/xa.src/Makefile.in,
11208         * sim/ucsim/z80.src/Makefile.in,
11209         * src/Makefile.in,
11210         * support/cpp2/Makefile.in,
11211         * support/librarian/Makefile,
11212         * support/makebin/Makefile: added DESTDIR to the install path proposed
11213         by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
11214         * doc/sdccman.lyx: added DESTDIR documentation
11215
11216 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
11217
11218         * src/pic16/gen.c (genFunction, genEndFunction): fixed return
11219         instruction for interrupt handlers, use fast returns when returning
11220         from high priority interrupts
11221
11222 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11223
11224         * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
11225         code generation
11226         * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
11227         * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
11228         bugs, ported much of Bernhard's code from mcs51
11229         * src/mcs51/gen.c (genSend),
11230         * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
11231         than one when calling a reentrant function
11232         * device/lib/_mullong.c: defined an alternate struct layout for big
11233         endian ports (hc08)
11234
11235 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11236
11237         * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
11238         test
11239
11240 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11241
11242         * src/SDCCsymt.c (processFuncArgs): make sure parameter types
11243         are sane and complete before asking the port its prefered parameter
11244         passing method (fixes bug #1017633)
11245         * device/lib/hc08/_ret.c: added "data" storage class to _ret2
11246         and _ret3
11247
11248 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11249
11250         * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
11251         problem in bitfields >= 8 bits.
11252
11253 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
11254
11255         * src/SDCCsymt.c: undid changes that were not meant to be committed
11256
11257 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
11258
11259         * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
11260
11261 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
11262
11263         * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
11264           copied and wrong bit got inverted
11265
11266 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11267
11268         * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
11269         genFarPointerSet into genPointerSet; eliminated genFarPointerSet
11270         * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
11271         genFarPointerGet into genPointerGet; eliminated genFarPointerGet
11272         * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
11273         assignments to bitfields at known addresses
11274         * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
11275         reads from bitfields at known addresses
11276         * src/hc08/ralloc.c (packRegisters),
11277         * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
11278         genhc08Code): optimize pointer get values used as conditionals
11279         * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
11280         and branch
11281
11282 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11283
11284         * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
11285         genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
11286         * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
11287         as conditionals
11288
11289 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11290
11291         * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
11292
11293 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11294
11295         * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
11296         related problems
11297
11298 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
11299
11300         * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
11301
11302 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11303
11304         * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
11305         mcs51 port
11306
11307 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
11308
11309         * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
11310
11311 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11312
11313         * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
11314         cases use more compact code.
11315
11316 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
11317
11318         * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
11319
11320 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11321
11322         * src/SDCClrange.c (findPrevUse): fixed bug #1007371
11323
11324 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11325
11326         * src/SDCCsymt.h,
11327         * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
11328         parameter of changePointer() from symbol* to sym_link*
11329         * src/SDCCast.c (decorateType): call changePointer() for CAST op
11330         * src/SDCCsymt.c (compareType): void* type is castable to other
11331         pointers, but not necesarily an exact match.
11332         * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
11333         is no longer blindly treated as an exact match.
11334         * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
11335
11336 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
11337
11338         * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
11339
11340 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
11341
11342         * src/pic/gen.c,
11343         * src/pic/pcode.c,
11344         * src/pic/ralloc.h,
11345         * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
11346
11347 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
11348
11349         * src/pic/device.c,
11350         * src/pic/device.h,
11351         * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
11352
11353 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11354
11355         * src/mcs51/gen.c (emitcode): fixed bug #992819
11356
11357 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
11358
11359         * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
11360           there's no need to make it worse
11361
11362 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11363
11364         * src/mcs51/ralloc.c (deassignLR),
11365         * src/ds390/ralloc.c (deassignLR),
11366         * src/hc08/ralloc.c (deassignLR),
11367         * src/z80/ralloc.c (deassignLR),
11368         * src/pic/ralloc.c (deassignLR),
11369         * src/pic16/ralloc.c (deassignLR),
11370         * src/avr/ralloc.c (deassignLR),
11371         * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
11372         rlivePoint): fixed another part of bug #971834
11373
11374 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11375
11376         * src/z80/main.c: enabled "critical" keyword
11377         * src/z80/mappings.i,
11378         * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
11379         functions (fixes bug #979646)
11380         * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
11381
11382 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11383
11384         * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
11385           such as c:\mydir.
11386
11387 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
11388
11389         * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
11390           doesn't disable too much optimizations
11391
11392 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
11393
11394         * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
11395
11396 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
11397
11398         * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
11399
11400 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
11401
11402         * src/pic/gen.c tidied up tabs
11403         * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
11404         * src/pic/main.c tidied up tabs
11405         * src/pic/pcode.c tidied up tabs and disabled verbose code generation
11406         * src/pic/pcoderegs.c tidied up tabs
11407         * src/pic/ralloc.c tidied up tabs
11408
11409 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
11410
11411         * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
11412         to S_FIXED for pic16 port and when symbol is not in level 0,
11413         allocate for S_REGISTER storage class and pic16 port, too,
11414         * src/pic16/device.h: prototype for checkSym,
11415         * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
11416         * (pic16_assignConfigWordValue): test the value and the mask to
11417         validate that the value is suitable for the configuration word,
11418         * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
11419         collect extern declared symbols, don't emit symbol twice, check
11420         first if symbol is in publics set first,
11421         * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
11422         * added command line '--fstack' which enables an experimental
11423         feature for stack access, too buggy to be used yet...
11424         * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
11425         * (pic16_allocDirReg): when register has storage class S_REGISTER
11426         allocate in pic16_dynAccessRegs,
11427         * device/include/pic16/pic18f????.h: modified configuration word
11428         naming convention, words started as CONFIG0H but should be CONFIG1H
11429
11430 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
11431
11432         * device/include/mcs51reg.h: fixed bug 970993
11433
11434 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
11435
11436         * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
11437         * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
11438         * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
11439         * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
11440         * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
11441         * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
11442           error/warning numbers,
11443           added function setWarningDisabled()
11444         * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
11445         * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
11446           _memcmp.c _memmove.c calloc.c realloc.c free.c
11447         * support/regression/tests/malloc.c: added tests for new functionality
11448         * support/regression/tests/zeropad.c: added tests for truncated initializers
11449           and initialized char arrays starting with '\x0'
11450         * src/mcs51/peeph.def: fixed regression, added peephole 177.f
11451
11452 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
11453
11454         * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
11455
11456 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11457
11458         * doc/sdccman.lyx: updated example in section "Absolute Addressing"
11459         * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
11460         peephole 177.e. Thanks to anonymous
11461
11462 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
11463
11464         * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
11465         function isn't used in the source but referenced as a
11466         variable initializer then declare it as extern in .asm file
11467
11468 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
11469
11470         * .version: increased version number to 2.4.3
11471
11472         Adding version extension according to ChangeLog CVS revision
11473         * src/Makefile.in (target all): added dependency 'version.h'
11474         * (rule version.h): added rule to create version.h from ChangeLog,
11475         * (rule dep): added dependency version.h,
11476         * src/version.awk: AWK script to create version.h
11477         * src/SDCCdwarf2.c (dwWriteModule),
11478         * src/SDCCglue.c (initialComments),
11479         * src/SDCCmain.c (printVersionInfo): modified to write after
11480         version string the version extension number,
11481         * src/SDCCutil.c: included "version.h"
11482         * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
11483         number,
11484         * src/SDCCutil.h: added prototype for getBuildNumber
11485
11486         * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
11487         includeDirsSet, too,
11488         * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
11489         const char [] is found in function prototype...
11490
11491         * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
11492         moving to WREG with source is already in WREG,
11493         * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
11494         * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
11495         * (aopForSym): stack'ed symbols are partially supported, added
11496         if-clause to support symbols in FARSPACE,
11497         * (sameRegs): added test for AOP_ACC to see if registers are same,
11498         * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
11499         * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
11500         * (pic16_popRegFromString): will not allocate a new register if it
11501         doesn't find one by name, bug may have introduced...
11502         * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
11503         * (genIpush): revived to use pic16 port's stack,
11504         * (genAddrOf): added incomplete case for stack'ed operand,
11505         * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
11506         * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
11507         can handle multibyte operands,
11508         * src/pic16/glue.c (pic16_printIval*): some debug info added,
11509         * (pic16initialComments): added message for MPLAB compatibility
11510         mode enabled,
11511         * src/pic16/main.h: prototype for pic16_mplab_comp,
11512         * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
11513         which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
11514         * (_pic16_linkEdit): NEW, handles link stage, transferred here
11515         because of increased complexity of procedure,
11516         * (_process_pragma): stack pragma changed to format 'stack pos len',
11517         emit symbol '_stack_end' to conform with gplink,
11518         * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
11519         to search for register,
11520         * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
11521         PO_GPR_REGISTER,
11522         * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
11523         #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
11524         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
11525         case for PO_GPR_REGISTER,
11526         * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
11527         dies, the new era is ahead !...
11528         * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
11529         pic16_dynInternalRegs,
11530         * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
11531         * (pic16_allocDirReg): minor optimizations and bug fixes,
11532         * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
11533
11534         * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
11535         load stack and frame pointer with address of 'stack_end' symbol
11536
11537 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
11538
11539         * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
11540         without source code but only variable initializers
11541
11542 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
11543
11544         * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
11545         external are not declared as extern to reduce overhead while linking
11546
11547 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
11548
11549         * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
11550
11551 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
11552
11553         * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
11554           Yee Keat for the patch
11555         * src/SDCCast.c (decorateType): fixed bug #979599
11556         * src/ds390/gen.h: removed local fReturnSizeDS390
11557         * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
11558         * src/ds390/gen.c (genAnd, genOr, genXor),
11559         * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
11560
11561 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
11562
11563         * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
11564         add relFilesSet to $3, manipulate $2 to handle linking of object
11565         files without source files in command line,
11566         * device/include/pic16 (all headers): added ID location macros,
11567         * src/pic16/device.c (struct PIC16_device Pics16[]): added field
11568         entries for ID location bytes,
11569         * (pic16_assignIdByteValue): NEW,
11570         * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
11571         added field dumpcalltree to pic16_options_t,
11572         * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
11573         is used instead of pic16_Gstack_base_addr, check if (ifx) before
11574         emitting rFalseIfx label after check_carry label,
11575         * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
11576         pic16_emitDIRegs), NEW
11577         * (pic16glue): dump .calltree file when option --calltree found,
11578         * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
11579         * (_pic16_genAssemblerPreamble): emit ID locations after
11580         configuration registers,
11581         * (pic16_linkCmd): modifications of the link command,
11582         * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
11583         * (pic16_pCodeInitRegisters): don't init stack registers,
11584         * (pic16_findPrevInstruction): fixed bug,
11585         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
11586         bug with immediate registers,
11587         * (buildCallTree): traces stack push and pop,
11588         * (pct2): dump also stack usage for each function,
11589         * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
11590         * (pic16_allocDirReg): various modifications,
11591         * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
11592         fixed to 1,
11593
11594 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
11595
11596         * src/pic16/pcode.c: removed buggy double colon
11597
11598 2004-07-01 Borut Razem <borut.razem AT siol.net>
11599
11600         * support/scripts/sdcc.nsi: added include/pic16 to setup
11601
11602 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
11603
11604         * device/lib/Makefile.in: fixed bug in target objects-pic16,
11605         * device/lib/pic16/Makefile: prefixed with dash (-) command under
11606         target 'clean',
11607         * doc/sdccman.lyx: changed version to 2.4.2 and added some port
11608         specific command line arguments. Also added sample lkr script
11609         for placing a variable at a specific memory bank.
11610         * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
11611         at a specific memory bank,
11612         * (pic16_dump_isection): fixed bug which caused string literals to
11613         be omitted when dumping idata section,
11614         * (pic16_groupRegistersInSection): added code to handle registers
11615         in specific memory banks,
11616         * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
11617         public, all references are renamed too,
11618         * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
11619         AOP_DPTR2,
11620         * (pic16_storeForReturn): added case to handle when dest is WREG,
11621         * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
11622         * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
11623         pic16_rel_udata, check to see if that register is marked as being
11624         a member of a specific memory bank,
11625         * (pic16_printIvalCharPtr): added code to add string literals either
11626         to code or the idata sections,
11627         * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
11628         also accept the 'udata' pragma,
11629         * src/pic16/main.h: new structure types sectName and sectSym
11630         * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
11631         * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
11632         * (pic16_findPrevInstruction): fixed, it returned nothing,
11633         * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
11634         instruction combinations,
11635         * (pic16_FixRegisterBanking): heavily reorganised,
11636         * (pic16_AnalyzeBanking): if generating banksel directives is
11637         disabled, then don't call FixRegisterBanking at all,
11638         * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
11639         completely removed,
11640         * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
11641
11642 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
11643
11644         * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
11645         Phuah Yee Keat <yk.phuah AT nestac.com>
11646
11647 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
11648
11649         * src/pic16/glue.c (pic16createInterruptVect): function now emits
11650         correctly the IVT even if it is relocated to some other location
11651
11652 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
11653
11654         * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
11655         * device/include/pic16/pic18f2220.h: NEW,
11656         * device/lib/pic16/libdev/pic18f2220.c: NEW,
11657         * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
11658         * src/pic16/device.c (struct Pics16): added info for 18f2220,
11659         * src/pic16/device.h (struct pic16_options): added ivt_loc and
11660         nodefaultlibs, ivt_loc is the location of the interrupt vector
11661         table, and nodefaultlibs signs that default libraries should not be
11662         linked in link stage,
11663         * src/pic16/gen.c (genFunction): relocate interrupt vector functions
11664         according to --ivt-loc argument,
11665         * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
11666         when pragma stack is found,
11667
11668 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11669
11670         * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
11671         256 (range check), 257 (do while), 258.a-f (bit banging
11672         f.e. on 3-wire SPI bus)
11673
11674 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11675
11676         * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
11677         variables used exclusively within a loop
11678
11679 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
11680
11681         * src/mcs51/gen.c (genCpl): quick fix for bug #974835
11682
11683 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11684
11685         * src/SDCClrange.c (computeClash): fixed bug #971834
11686
11687 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11688
11689         * src/mcs51/gen.c (genCmp): fixed bug #975903
11690         * src/hc08/gen.c (operandsEqu),
11691         * src/ds390/gen.c (operandsEqu),
11692         * src/z80/gen.c (operandsEqu),
11693         * src/pic/gen.c (operandsEqu),
11694         * src/pic16/gen.c (operandsEqu),
11695         * src/mcs51/gen.c (operandsEqu): fixed bug #976283
11696         * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
11697
11698 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11699
11700         * src/SDCCcse.c (cseBBlock): fixed bug #966963
11701
11702 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
11703
11704         * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
11705         default case in switch statement,
11706         * glue.c (pic16_initPointer): expr is initialised via decoarteType
11707         to eliminate problem with initialisation of pointers, but problem
11708         still exists,
11709         * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
11710         * (emitStaticSegment): removed various lines emitting debug info,
11711         * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
11712         added processor registers for utilizing EEPROM,
11713         * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
11714         configurable and set 8
11715
11716 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
11717
11718         * .version: increased version number to 2.4.2,
11719
11720         Cumulative patch for pic16 port
11721         * src/pic16/device.c: changed scheme to dump initial values for
11722         variables in idata segment, all print_idata* functions were removed,
11723         now the pic16_printIval* will be called,
11724         * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
11725         * _pic16_printPointerType, pic16_printPointerType,
11726         * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
11727         * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
11728         NEW, similar to the respective functions in SDCCglue.c,
11729         * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
11730         way, emitting hex bytes,
11731         * (pic16_emitDS): NEW, emits a string for pointer initialisation,
11732
11733 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11734
11735         * src/avr/ralloc.c (serialRegAssign),
11736         * src/xa51/ralloc.c (serialRegAssign),
11737         * src/pic/ralloc.c (serialRegAssign),
11738         * src/pic16/ralloc.c (serialRegAssign),
11739         * src/hc08/ralloc.c (serialRegAssign),
11740         * src/z80/ralloc.c (serialRegAssign),
11741         * src/ds390/ralloc.c (serialRegAssign),
11742         * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
11743
11744 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11745
11746         * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
11747         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
11748
11749 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
11750
11751         Cumulative patch for pic16 port:
11752         * src/pic16/device.h (typedef PIC16_device) modified fields for
11753         defining microcontrollers,
11754         * src/pic16/device.c: added new info for all devices in Pics16 array,
11755         * src/pic16/gen.c (genPcall): fixed bug that caused the return label
11756         to be optimised out by the pCode optimiser,
11757         * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
11758         specially, bug reported by G.M. Gallant,
11759         * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
11760         as force'd so that cannot be optimised out by pCode optimiser,
11761         * src/pic16/pcode.c,
11762         * src/pic16/pcodepeeph.c,
11763         * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
11764         they are disabled by default, but can be enabled explicit with
11765         command argument --denable-peeps, for testing,
11766         * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
11767         --pomit-ivt in COMPILE_FLAGS
11768
11769 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
11770
11771         * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
11772           compilation on MSVC
11773
11774 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
11775
11776         * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
11777
11778 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11779
11780         device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
11781         0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
11782
11783 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
11784
11785         * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
11786         would only assign 0x300001 register.
11787
11788 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
11789
11790         * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
11791         in COMPILE_FLAGS. Thanks to G. Gallant for report.
11792
11793 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11794
11795         * doc/sdccman.lyx: minor changes, mentioned beta vendor support
11796         for ds80c400
11797         * src/mcs51/peeph.def: ran unexpand -a over peeph.def
11798         * src/mcs51/peeph.def: removed obsolete peephole 100.a,
11799         added peephole 254 (left shift), 255 (jump table)
11800
11801 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
11802
11803         * device/lib/Makefile.in: removed comment line with model-pic16,
11804         * (target port-specific-objects-pic16): the libraries and objects
11805         are copied to the build directory form the device/lib/pic16/bin
11806         directory
11807
11808         Cumulative patch concerning pic16 port:
11809         * library directory has been re-organized,
11810         * added support for PIC18F1220,
11811         * added headers and library sources for chips 18f1220,18f6520,
11812         18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
11813
11814         * configuration registers setting has changed, now each supported
11815         device has a complete description of the registers it uses,
11816         * all initialisations are moved to idata sections, these section
11817         can be absolute or relocatable,
11818         * fixed initialisation of codespace variables,
11819         * fixed warning about PCLATU and gpsim,
11820         * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
11821         * (genAssign): use table reads when assigning from variables in codespace,
11822         * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
11823         char/int variables placed in codespace,
11824         * (pic16_emitConfigRegs): NEW, emits a list with configuration
11825         registers set in .asm file, no need for --pomit-config-words anymore,
11826         * (pic16glue): some 8051 legacy segments are commented out
11827         (to be removed completely),
11828         * added support for alternative assembler and linker with --asm=
11829         and --link= command line arguments,
11830         * peepholes are disabled automatically in the port, no need to
11831         specify on command line,
11832         * port supports natively char/int/long multiplication, but converts
11833         all divisions to support functions,
11834         * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
11835         to the file set in variable $2,
11836         * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
11837         strings in ASCII format and not in hex,
11838         * ralloc.c (serialRegAssign): added a triplet of conditional calls
11839         to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
11840         allocate proper register if iCodes aren't temporary,
11841
11842 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
11843
11844         * support/regression/tests/zeropad.c: added TEST_G macro for alpha
11845
11846 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
11847
11848         * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
11849         is commented out
11850
11851 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11852
11853         * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
11854         computed address is reused
11855         * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
11856         multi-byte bitfields
11857
11858 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
11859
11860         * src/z80/gen.c: (genArrayInit): must check for pointers too
11861
11862 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
11863
11864         * support/regression/tests/zeropad.c: never meant to commit the
11865           nestedstruct test: removed, added check for GCC version
11866
11867 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
11868
11869         * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
11870         * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
11871         * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
11872           printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
11873           bugs 928906 and 954082 half-empty initializers
11874         * src/SDCCsymt.h,
11875         * src/SDCCsymt.c (getAllocSize): added for above fix
11876         * src/z80/gen.c (genArrayInit): fixed bug 741044
11877         * support/regression/tests/zeropad.c: added tests
11878
11879 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
11880
11881         * src/pic16/device.c (pic16_dump_section): corrected bug which
11882         caused some symbols of the libraries to be misplaced
11883
11884 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
11885
11886         * src/pic16/glue.c,
11887         * src/pic16/ralloc.h,
11888         * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
11889         to fix conflict with pic port
11890
11891 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
11892
11893         * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
11894         externs configuration variables,
11895         * src/pic16/ralloc.h,
11896         * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
11897         prototype in header, commented out some debug messages
11898
11899 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
11900
11901         * src/pic16/glue.c,
11902         * src/pic16/main.c,
11903         * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
11904         for gpasm COFF object generation. Thanks to D. Hawkins for
11905         his patch info
11906
11907 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11908
11909         * src/ds390/main.c,
11910         * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
11911         Brock for spotting this)
11912         * src/ds390/gen.c (genEndFunction),
11913         * src/mcs51/gen.c (genEndFunction): always save psw if function is an
11914         interrupt handler and critical. Disable push/pop optimizations when
11915         peephole optimizations disabled.
11916
11917 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
11918
11919         Updated pic16 library sources and headers.
11920         * device/lib/pic16/pic18f*/ ,
11921         * device/include/pic16/*.h: modified to handle structured SFR
11922         definitions
11923
11924 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
11925
11926         * src/port.h (PORT structure): added hook initPaths, now each
11927         port can declare its own default search paths,
11928         which can been seen with the --print-search-dirs option,
11929         see pic16 port for example,
11930         * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
11931         setDataPaths): test to options.printSearchDirs is ifdef'ed out,
11932         * (doPrintSearchDirs): NEW, replaces in a central manner the
11933         printing of search dirs which was split in set*Paths functions,
11934         * (main): added call to port->initPaths and doPrintSearchDirs,
11935         * src/avr/main.c,
11936         * src/ds390/main.c,
11937         * src/hc08/main.c,
11938         * src/izt/i186.c,
11939         * src/izt/tlcs900h.c,
11940         * src/mcs51/main.c,
11941         * src/pic/main.c,
11942         * src/pic16/main.c: modified port structures to reflect addition of
11943         initPaths hook,
11944
11945         * src/pic16/device.c (regCompare): registers are finally sorted by name,
11946         * (pic16_dump_section): for registers in same address reserve memory once,
11947         * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
11948         to no_banksel,
11949         * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
11950         result is greater in size than right or left,
11951         * (pic16_genUMult8X8_8): there are some cases where the result can
11952         be 16 bits size, so handle these,
11953         * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
11954         * (pic16_outBitC): modified to emit pcodes,
11955         * (pic16_storeForReturn): using is_LitOp to see if operand is literal
11956         or not,
11957         * (genDivOneByte): implemented algorithm to divide 8-bits,
11958         * (genCmp): uncommented goto, but issues still exist,
11959         * (genAnd): fixed a bug with variables >8bits,
11960         * (genPackBits): optimization added that uses BCF/BSF to change a
11961         single bit,
11962         * (genAssign): fixed bug when assigning floating point literals,
11963         * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
11964         __sdcc_gsinit_startup label,
11965         * src/pic16/main.c (_pic16_init): removed search directory
11966         initialisations,
11967         * (_pic16_initPaths): NEW, used to initialise search directories,
11968         * (_hasNativeMulFor): support functions for all except char/int
11969         multiplication, and char division,
11970         * (PIC16_port struct): modified entry for native mul support,
11971         * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
11972         no_banksel option,
11973         * (buildCallTree): call to register_usage is ifdef'ed out,
11974
11975 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11976
11977         * device/include/string.h: applied Stas Sergeev's patch to make this
11978         header file compatible with the preprocessor -Wundef option
11979         * src/SDCCmain.c (main): abort compilation if preprocessor reports
11980         failure (fixes bug #941458)
11981
11982 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11983
11984         * src/SDCCopt.c (killDeadCode): fixed bug #907733
11985         * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
11986         that the variable, not the function, should be static
11987         * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
11988         to be consistent with non-literal case
11989
11990 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11991
11992         * src/SDCCast.c (isConformingBody): fixed bug #949967
11993         * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
11994         convilong): fixed bug #952086
11995
11996 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11997
11998         * src/SDCCmem.c (allocVariables): fixed bug #955321
11999
12000 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12001
12002         * src/hc08/main.c (_hc08_genAssemblerEnd),
12003         * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
12004         dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
12005         completely eliminated the use of a temporary file
12006         * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
12007         when more than one file linked
12008         * src/SDCCloop.c (pointerAssigned): fixed bug #954163
12009
12010 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12011
12012         * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
12013         which fixes bug #543481
12014         * support/regression/tests/bug-751703.c: fixed comments left from a
12015         cut and paste error
12016         * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
12017         * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
12018         * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
12019         scopes
12020         * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
12021         * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
12022         are now changed to underscores in moduleName
12023
12024 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12025
12026         * as/mcs51/lkmem.c: better fix for bug #954173
12027
12028 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
12029         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12030
12031         * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
12032         * device/include/c8051f000.h,
12033         * device/include/c8051f120.h,
12034         * device/include/c8051f300.h,
12035         * device/include/c8051f310.h,
12036         * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
12037         PWM16) and detab'ed
12038
12039 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12040
12041         * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
12042         and mailing lists, doc'ed --no-peep-comments, removed reference
12043         to knoppix (newest version has no LyX/LaTeX), other minor changes
12044         * src/SDCCglue.c (glue): save 2 bytes stack space with
12045         option --main-return. The ljmp could probably be avoided too
12046
12047 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12048
12049         * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
12050
12051 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12052
12053         * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
12054         * src/SDCCopt.c (isLocalWithoutDef),
12055         * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
12056         which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
12057         (credit to Maarten Brock for patch #949363, on which this is based)
12058         * support/regression/tests/bug-751703.c: some test cases of extern used
12059         within inner scopes.
12060
12061 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12062
12063         * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
12064         SPEC_STRUCT
12065         * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
12066         struct definitions
12067         * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
12068         dwWriteLabel): fix to create valid debugger symbols even when
12069         the module name has non-alphanumeric symbols in it
12070         * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
12071         when a variable's allocation has been optimized away
12072
12073
12074 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12075
12076         * src/hc08/gen.c (hc08_emitDebuggerSymbol),
12077         * src/hc08/main.c,
12078         * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
12079         * src/mcs51/main.c,
12080         * src/ds390/gen.c (ds390_emitDebuggerSymbol),
12081         * src/ds390/main.c,
12082         * src/z80/gen.c (z80_emitDebuggerSymbol),
12083         * src/z80/main.c,
12084         * src/pic/gen.c (pic14_emitDebuggerSymbol),
12085         * src/pic/main.c,
12086         * src/pic16/gen.c (pic14_emitDebuggerSymbol),
12087         * src/pic16/main.c,
12088         * src/avr/gen.c (avr_emitDebuggerSymbol),
12089         * src/avr/main.c,
12090         * src/xa51/gen.c (xa51_emitDebuggerSymbol),
12091         * src/xa51/main.c,
12092         * src/SDCCdebug.c (emitDebuggerSymbol),
12093         * src/SDCCdebug.h,
12094         * src/port.h: added a debugger struct to the port struct. Added a
12095         callback for defining debugger symbols
12096
12097         * src/SDCCast.c (createLabel),
12098         * src/SDCC.y (labeled_statement): mark all compiler generated labels
12099         with isitmp = 1
12100         * src/SDCCicode.h,
12101         * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
12102         iCode back to the ast for the function
12103
12104         * src/hc08/ralloc.c (hc08_assignRegisters),
12105         * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
12106         unneeded fields from the regs struct.
12107         * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
12108         pushReg() & pullReg() functions instead of emitcode()
12109
12110         * src/hc08/gen.c (genLabel, genhc08Code),
12111         * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
12112
12113         * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
12114         debugger hooks
12115
12116         * src/hc08/gen.c (genEndFunction, genhc08Code),
12117         * src/hc08/gen.h,
12118         * src/mcs51/gen.c (genEndFunction, gen51Code),
12119         * src/mcs51/gen.h,
12120         * src/ds390/gen.c (genEndFunction, gen390Code),
12121         * src/ds390/gen.h,
12122         * src/z80/gen.c (genEndFunction, genZ80Code),
12123         * src/z80/gen.h,
12124         * src/z80/z80.h,
12125         * src/pic/gen.c (genEndFunction, genpic14Code),
12126         * src/pic/gen.h,
12127         * src/pic16/gen.c (genEndFunction, genpic16Code),
12128         * src/pic16/gen.h,
12129         * src/avr/gen.c (genEndFunction, genAVRCode),
12130         * src/avr/gen.h,
12131         * src/xa51/gen.c (genEndFunction, genXA51Code),
12132         * src/xa51/gen.h,
12133         * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
12134         specific code to cdbFile.c and out of the backend code generators
12135
12136         * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
12137         * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
12138         starting address is now 0
12139
12140         * as/hc08/asm.h,
12141         * as/hc08/m08pst.c,
12142         * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
12143         assembler directive for DWARF support
12144         * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
12145
12146         * src/src.dsp,
12147         * src/Makefile.in,
12148         * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
12149
12150 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12151
12152         * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
12153         and inappropriate peephole optimization in jump tables
12154
12155 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12156
12157         * as/hc08/m08pst.c,
12158         * src/SDCCglue.c: sdccopt works for the hc08 port now
12159
12160 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
12161
12162         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
12163
12164 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12165
12166         * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
12167
12168 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12169
12170         * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
12171         rules
12172         * src/SDCCmain.c,
12173         * src/SDCCglobl.h,
12174         * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
12175         comments from the peephole optimizer replacement rules
12176         * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
12177         symbols
12178         * src/SDCCcse.c (updateSpillLocation),
12179         * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
12180         equivalents
12181         * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
12182         * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
12183         objects far pointers
12184
12185 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12186
12187         * src/SDCCsymt.h: a missing part of my last change
12188         * src/pic/ralloc.c (regTypeNum),
12189         * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
12190
12191 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12192
12193         * src/SDCCicode.h,
12194         * src/SDCCicode.c (aggrToPtrDclType),
12195         * src/SDCCptropt.h,
12196         * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
12197         ptrPseudoSymConvert),
12198         * src/pic/ralloc.c (regTypeNum),
12199         * src/pic16/ralloc.c (regTypeNum),
12200         * src/hc08/ralloc.c (regTypeNum),
12201         * src/ds390/ralloc.c (regTypeNum),
12202         * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
12203         creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
12204
12205 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12206
12207         * link/z80/lkmain.c (afile),
12208         * as/hc08/lkmain.c (afile),
12209         * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
12210         prevent a pointer problem when a filename has no directory and
12211         no extension specified.
12212
12213 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12214
12215         * link/z80/lkmain.c (afile): allow periods in directory names
12216         * link/z80/lkmain.c (afile),
12217         * as/mcs51/lkmain.c (afile),
12218         * as/hc08/lkmain.c (afile): allow linker script file to have an
12219         extension other than ".lnk"
12220         * link/z80/lklex.c (getfid),
12221         * link/z80/lkmain.c (parse),
12222         * as/mcs51/lklex.c (getfid),
12223         * as/mcs51/lkmain.c (parse),
12224         * as/hc08/lklex.c (getfid),
12225         * as/hc08/lkmain.c (parse): Support comments in the linker script
12226         file on lines by themselves and after filenames
12227
12228 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12229
12230         * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
12231
12232 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12233
12234         * src/z80/peeph-z80.def: removed some peephole rules that don't
12235         work with multibyte arithmetic (fixed bug #937126)
12236         * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
12237         to registers and not global variables
12238         * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
12239         geniCodePreInc, geniCodePostDec, geniCodePreDec,
12240         geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
12241         checking for assignments not internally generated (fixed bug #931895)
12242         * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
12243         structure member (fixed bug #930072)
12244
12245 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12246
12247         * src/SDCCmain.c (linkEdit),
12248         * src/hc08/main.c (_hc08_parseOptions),
12249         * as/hc08/Makefile.in,
12250         * as/hc08/aslink.h,
12251         * as/hc08/asm.h,
12252         * as/hc08/m08pst.c,
12253         * as/hc08/lkrloc.c (relr, rele),
12254         * as/hc08/lkarea.c (lnkarea)
12255         * as/hc08/lkmain.c (afile, parse),
12256         * as/hc08/lkelf.c: support for ELF output
12257         * as/hc08/lks19.c (s19),
12258         * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
12259
12260 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12261
12262         * as/mcs51/lkihx.c: Fixed bug #899105.
12263
12264 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12265
12266         * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
12267         .dsp files from Unix to DOS.
12268
12269 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12270
12271         * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
12272         function pointers; we have been compliant for several months now.
12273         * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
12274         change that was accidently commented out
12275         * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
12276         genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
12277         bug #922319
12278
12279 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12280
12281         * src/hc08/gen.c: output of all of the internal debugging information
12282         is now controlled by the D() macro; it is disabled by default
12283
12284 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12285
12286         * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
12287         harder to keep the same registers during a CAST iCode
12288         * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
12289         long via int can be done in a single cast, if the signedness is
12290         correct.
12291         * support/regression/tests/bug-927659.c: fixed to avoid conflict with
12292         putchar() in tinibios.c in ds390's library
12293
12294 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
12295
12296         * src/SDCCast.c (decorateType): fixed bug #898889,
12297         cast result of a literal complement too
12298         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
12299         fixed check for bitfields
12300
12301 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
12302
12303         * src/SDCCicode.c (geniCodeLogic): made it static,
12304         (geniCodeLogicAndOr): added in order to fix bug #905492,
12305         (ast2iCode): fixed bug #905492
12306         * support/regression/tests/bug-905492.c: added
12307         * src/SDCCast.c (decorateType): don't decorate/process parms twice,
12308         (processParms): fixed bug #927659: don't copy parms, this will clear
12309         decorated flag
12310         * support/regression/tests/bug-927659.c: added
12311
12312 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
12313
12314         * src/SDCCast.c (addCast): don't cast float to char
12315         * device/lib/libsdcc.lib: added _memmove
12316
12317 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
12318
12319         * device/lib/large/Makefile: fixed parallel execution by
12320         replacing `make` by `$(MAKE)`
12321
12322 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12323
12324         * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
12325         offsets (fixes bug #923936)
12326
12327 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
12328
12329         * device/lib/small/Makefile: fixed parallel execution by
12330         replacing `make` by `$(MAKE)`
12331
12332 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
12333
12334         * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
12335
12336 2004-03-23  Scott Dattalo  <scott AT dattalo.com>
12337
12338         * src/pic/gen.c (genCpl): multi-byte complements were not working.
12339         * src/regression/Makefile: Regression test was not running.
12340
12341 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
12342
12343         * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
12344         complement if possible
12345         * src/SDCCval.c (valComplement),
12346         * src/SDCCicode.c (operandOperation): fixed complement of literal
12347         * support/regression/tests/onebyte.c (testComplement): added
12348
12349 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
12350
12351         * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
12352         return an optimized tree; actually replace actParm with the new tree
12353         * src/SDCCast.h: added some parantheses to remove side effects
12354         * support/regression/tests/bug-920866.c
12355
12356 2004-03-21  Scott Dattalo  <scott AT dattalo.com>
12357         * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
12358         Bit operands were not being handled properly in the pic14 port.
12359         (now src/regression/add.c passes again).
12360
12361 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12362
12363         * src/SDCC.y (labeled_statement): case and default no longer require
12364         a following statement (RFE #893037)
12365
12366 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12367
12368         * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
12369         use MOVA macro to avoid "mov a,acc" when peephole optimizer is
12370         disabled (fixes bug #916294)
12371         * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
12372         "mov a,acc"; patch provided by Lenny Story
12373         * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
12374
12375 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12376
12377         * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
12378         functions
12379         * src/ds390/gen.c (genFunction, genEndFunction),
12380         * src/ds390/ralloc.c (ds390_assignRegisters),
12381         * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
12382         * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
12383         pushed if there are parameters passed on the stack. Also, a cleaner
12384         way to decide if r0/r1 should be pushed/popped. (Together they fix
12385         bug #918693)
12386
12387 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12388
12389         * doc/sdccman.lyx,
12390         * device/lib/mcs51/crtpagesfr.asm,
12391         * device/lib/mcs51/crtxinit.asm,
12392         * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
12393         to avoid confusion with Si Lab's SFRPAGE register.
12394
12395 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12396
12397         * src/SDCCglue.c (emitMaps): allow public sfr variables
12398         * src/SDCCglue.c (initialComments): include compiler build date
12399         with compiler version and put the timestamp of the generated
12400         assembly file on a serperate line to be less confusing.
12401         * src/port.h: added genInitStartup hook
12402         * src/avr/main.c,
12403         * src/ds390/main.c,
12404         * src/hc08/main.c,
12405         * src/pic/main.c,
12406         * src/pic16/main.c,
12407         * src/xa51/main.c,
12408         * src/z80/main.c: genInitStartup initialize as NULL (default to
12409         historical behaviour)
12410         * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
12411         * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
12412         _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
12413         library instead of hard coding it into the compiler.
12414         * support/regression/ports/mcs51-stack-auto/spec.mk,
12415         * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
12416         * device/lib/mcs51/Makefile,
12417         * device/lib/small/Makefile,
12418         * device/lib/large/Makefile,
12419         * device/lib/mcs51/crtpagesfr.asm,
12420         * device/lib/mcs51/crtstart.asm,
12421         * device/lib/mcs51/crtxclear.asm,
12422         * device/lib/mcs51/crtxinit.asm,
12423         * device/lib/mcs51/crtclear.asm,
12424         * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
12425         startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
12426         and into user configurable files.
12427         * device/lib/clean.mk: clean mcs51 directory too
12428         * support/regression/tests/longlit.c: added static to T1 declaration
12429         * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
12430         accesses in the initialization code
12431
12432 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12433
12434         * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
12435         OSCTRIMVAL as noted in bug #916008
12436
12437 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12438
12439         * src/SDCCloop.c (basicInduction): fixed bug with loop induction
12440         in loops with multiple exits (reported as incorrect registers
12441         used by Martin Helmling in Sdcc-user list)
12442
12443 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12444
12445         * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
12446         made ds390 register extensions look less like error messages
12447
12448 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12449
12450         * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
12451         reported by Adam Wozniak in Sdcc-user list
12452
12453 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
12454
12455         * src/SDCCast.c (decorateType): fixed with bug and promotion in
12456         arithmetic optimizations, added debug output
12457
12458 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
12459
12460         * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
12461         * sdcc.spec: updated and split sdcc into 3 rpms
12462         * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
12463         needed for literals of LEFT_OP and '+'
12464         * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
12465         introduced RESULT_TYPE_NOPROM
12466         (geniCodeMultiply): fixed logic for decision if mul is optimized to
12467         left shift
12468         * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
12469         limited promotion to int only for '*'
12470         * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
12471
12472 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
12473
12474         * src/pic16/gen.c (genSkip),
12475         (genc16bit2lit), (gencjneshort): commented out
12476         (is_LitOp): new helper function, checks operand type
12477         (genCmpEq): rewritten
12478
12479 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
12480
12481         * support/regression/tests/bug-908454.c: added
12482
12483 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
12484
12485         * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
12486         * src/SDCCicode.c (usualBinaryConversions): op needs int type
12487         (geniCodeCast): cosmetic, don't preserve bit storage class
12488         (geniCodeLeftShift): added promotion
12489         (geniCodeLogic): fixed regression
12490         * src/SDCCsymt.c (computeTypeOr): accept bits too
12491         (compareType): 2nd part of fix for bug #908454, needed for bitfields
12492
12493 2004-03-07  Borut Razem <borut.razem AT siol.net>
12494
12495         * support/Util/findme.c: alloca() replaced with malloc()/free() pair
12496
12497 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
12498
12499         * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
12500         version of pic16_genPackRegisters which does not check if ic is a
12501         CAST operator,
12502         * src/pic16/gen.c (ifxForOp): disabled new and untested code in
12503         function cause string1.c regression test fails
12504
12505 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
12506
12507         * sim/ucsim/configure.in,
12508         * sim/ucsim/configure,
12509         * sim/ucsim/doc/Makefile.in: use docdir
12510         * src/SDCC.y: fixed sbit atrributes
12511         * src/SDCCast.c (getResultTypeFromType): added support for bitfields
12512         * src/SDCCast.c (decorateType): |^& need special promotion handling
12513         * src/SDCCast.h,
12514         * src/SDCCsymt.h: moved definition of RESULT_TYPE
12515         * src/SDCCsymt.h (computeType),
12516         * src/SDCCicode.c: computeType() needs op
12517         * src/SDCCsymt.c (checkTypeSanity),
12518         * doc/sddman.lyx: "plain" bitfields are unsigned
12519         * src/SDCCsymt.c (computeTypeOr): added
12520         * src/SDCCsymt.c (computeType): added support for bitfields, fixed
12521         |^& ops
12522         * src/SDCCval.c (val*): computeType() needs op
12523         * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
12524         * support/regression/tests/onebyte.c: added tests for |^&
12525
12526 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
12527
12528         * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
12529         for writing icode into asm output.
12530
12531 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
12532
12533         * src/pic16/device.c: added some debug lines enabled
12534         with macro DEBUG_CHECK,
12535         * src/pic16/genarith.c: more debug in genPlus,
12536         * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
12537         * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
12538         * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
12539         * (aopForSym): onStack symbols are re-placed in data memspace,
12540         and onStack flag is cleared,
12541         * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
12542         copy temporary pcodeop,
12543         * (genPcall): added warning for not updating PCLATU,
12544         * (genFunction): removed test with IFFUNC_CALLEESAVES, its
12545         always true for pic16 port,
12546         * (genMultOneWord): NEW, supports integer multiplication,
12547         * (genMult): modified to call genMultOneWord,
12548         * (ifxForOp): added warning when return NULL,
12549         * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
12550         flag is set before call to operandFromSymbol for implicit
12551         added structures,
12552         * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
12553         options.intlong_rent are set by default,
12554         * (_hasNativeMulFor): modified to allow port generation of integer
12555         multiplication,
12556         * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
12557         set regtype to REG_SFR for all registers, restricting seting the
12558         accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
12559
12560 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12561
12562         * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
12563         more than 500 times in the regression tests
12564
12565 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12566
12567         * support/Util/SDCCerr.h,
12568         * support/Util/SDCCerr.c,
12569         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
12570         enumerator_list),
12571         * src/SDCCsymt.c (addSymChain): show location of oriignal definition
12572         for symbol conflicts.
12573         * support/valdiags/tests/enum.c,
12574         * support/valdiags/tests/tentdecl.c,
12575         * support/valdiags/tests/struct.c: expect possible error messages
12576         referring to original symbol definitions.
12577         * src/SDCC.y (struct_or_union_specifier, struct_declarator),
12578         * src/SDCCsymt.h,
12579         * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
12580
12581 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
12582
12583         * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
12584
12585 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
12586
12587         * src/pic16/ralloc.c (newReg): fixed bug #908929
12588
12589 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12590
12591         * src/ds390/gen.c: added missing #include "main.h"
12592
12593 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
12594
12595         * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
12596         checking if symbol is already in set,
12597         * src/pic16/device.h: prototype for checkAddSym,
12598         * src/pic16/gen.c: (_G): added entry interruptvector,
12599         * (assignResultValue): removed some commented out lines,
12600         * (genFunction): check for ISR via sym->type, absolute section for
12601         interrupt code is created via a new pBlock, the goto instruction is
12602         placed now correctly at the interrupt vector position, changed all
12603         references from ivec to _G.interruptvector,
12604         * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
12605         is the interrupt is a high priority one, same for return from ISR,
12606         * src/pic16/glue.c: changed all calls of addSetHead for publics and
12607         externs to calls of checkAddSym,
12608         * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
12609         pic16_pcode_verbose flag is set,
12610         * src/pic16/pcode.h: extern to pic16_pcode_verbose,
12611         * src/pic16/pcoderegs.c: message about how many registers are saved
12612         will only be emitted if pic16_pcode_verbose flag is set,
12613
12614 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12615
12616         * src/ds390/ralloc.h,
12617         * src/ds390/ralloc.c (ds390_regWithIdx),
12618         * src/ds390/gen.c (emitcode),
12619         * src/ds390/main.h,
12620         * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
12621         ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
12622         ds390operandCompare, getRegsRead, getRegsWritten,
12623         initializeAsmLineNode): customized instruction size calculation for
12624         ds390, started basis for some register optimizations
12625         * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
12626         corresponding assembly output
12627         * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
12628         missing push/pop of r0/r1. Optimized push/pops
12629
12630 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12631
12632         * src/mcs51/main.c (instructionSize): fixed ACALL size
12633         * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
12634
12635 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
12636
12637         * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
12638         the sorting of rlist with NULL elements
12639         * (print_idataType, print_idata): NEW to create idata sections
12640         * src/pic16/device.h: idataSymSet new variable
12641         * src/pic16/gen.c (genFunction): fixed some bugs in string
12642         comparing, improved the absolute section creation for ISRs,
12643         added FSR0L/FSR0H in registers that are saved in an ISR,
12644         * (genInline): fixed the processing of inline snippets,
12645         now they undergo no process by the peephole optimizer
12646         * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
12647         are placed in idataSymSet,
12648         * (pic16emitStaticSeg): extern symbols are added in externs,
12649         * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
12650         switching when aboslute variables are placed in access bank memory
12651         * (pic16_writeUsedRegs): added call to pic16_dump_idata,
12652         * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
12653         commented out with #if,
12654         * (pic16_packRegisters): reintroduce the check for CAST because some
12655         symbols are not correctly handled,
12656         * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
12657         pCodeInstruction instead of pCode,
12658         * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
12659         pCodeAsmDir definition,
12660         * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
12661         directive, then the argument directive is emitted without the leading
12662         tab, hack for inline labels which must be in the first column,
12663         * (compareLabel,pic16_findNextInstruction),
12664         * (pic16_findPrevInstruction): added case for PO_ASMDIR,
12665         * (insertBankSwitch): modified for the new pCodeAsmDir,
12666
12667 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
12668         patch applied by Vangelis Rokas <vrokas AT otenet.gr>
12669
12670         * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
12671         instance,
12672         * (pushSide): commented out with #if,
12673         * (assignResultValue): fixed some typos in saving
12674         registers,
12675         * (genPcall): FIXED and sync'ed with genCall,
12676         * (genDataPointerGet,genDataPointerSet): using offset not leoffset
12677         * (genNearPointerGet): fixed to handle some more cases,
12678         implementation scheme via table reads,
12679         * (genConstPointerGet): modified to access code memory correct,
12680         * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
12681         and improved to handle some cases
12682         * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
12683         instead of "RETLW" for init data
12684         * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
12685         not IN_DIRSPACE, work around to reduce bank switching when aboslute
12686         variables are placed in access bank memory (<0x80 and >=0xf80),
12687         * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
12688         TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
12689         TBLWT_POSTDEC,TBLWT_PREINC
12690         * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
12691         * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
12692         directives
12693         * (pic16_pCodeConstString): use "DB" instead of "RETLW"
12694         * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
12695         pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
12696         * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
12697
12698 2004-02-29  Borut Razem <borut.razem AT siol.net>
12699
12700         * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
12701         support/Util/findme.h, support/Util/system.h: enhance binary relative
12702         search for lib and include by using findProgramPath()
12703
12704 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12705
12706         * src/SDCCpeeph.h,
12707         * src/SDCCpeeph.c (pcDistance),
12708         * src/port.h,
12709         * src/mcs51/ralloc.h,
12710         * src/mcs51/ralloc.c (mcs51_regWithIdx),
12711         * src/mcs51/main.h,
12712         * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
12713         mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
12714         mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
12715         size calculation port specific, started basis for some register
12716         optimizations
12717         * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
12718         missing push/pop of r0/r1. Optimized push/pops
12719         * src/mcs51/ralloc.c (packregisters): fixed bug #727095
12720         * device/lib/_modsint.c (_modsint),
12721         * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
12722         and stack version so regression tests pass
12723
12724 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
12725
12726         * src/Makefile.in (dep): include SLIBOBJS in dependency check
12727         * src/SDCCast.c (decorateType): catch another small optimization
12728         with '?' operator
12729         * src/SDCCsymt.c (computeType): added comments and cosmetic changes
12730         * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
12731         modified to finally use computeType() all over SDCC,
12732         see Feature Request #877103
12733         * src/SDCCval.h: cosmetic
12734         * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
12735         valCompare(); regression tested in muldiv.c
12736         * support/regression/tests/muldiv.c (testMod): mod sign follows
12737         dividend only
12738
12739 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
12740
12741         * src/SDCCast.c (decorateType): fixed bug #902362
12742         * doc/INSTALL.txt: fixed install instructions for win32
12743
12744 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
12745
12746         * device/include/Makefile.in (install): fixed by replacing spaces
12747         by tabs
12748         * doc/README.txt,
12749         * doc/INSTALL.txt: updated for release
12750         * doc/sdccman.lyx: added warning for --xstack being buggy
12751
12752 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
12753
12754         * src/pic16/ralloc.c (packRegsForAccUse):  disabled functions with #if
12755         to eliminate build warnings.
12756         * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
12757
12758 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
12759            Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
12760
12761         * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
12762         removed -penable-stack, added comment for stack pragma, added
12763         warning for not initializing the stack/frame registers, removed
12764         comment at interrupts section
12765
12766         Stack is made permanent, there is no ability to disable stack usage.
12767         * src/pic16/device.h,
12768         * src/pic16/device.c: removed all references to USE_STACK macro,
12769         * src/pic16/device.c (pic16_dump_section): when no elements in
12770         rlist, free rlist before return,
12771         * (pic16_dump_int_registers): NEW, internal registers are a new set
12772         of general purpose registers reused by each function,
12773         * (checkAddReg): returns 1 if registers is added to set,
12774         * (pic16_groupRegistersInSection): when a registers is of type
12775         PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
12776         * src/pic16/device.h: memRange and Assigned Memory are deleted,
12777         SRCASECMP macro is moved here from device.c
12778         * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
12779         PO_PCLATU, PO_PRODL, PO_PRODH,
12780         * (pic16_pCodeOpType, genMinus,
12781         changed compares to "a" register, with AOP_ACC,
12782         * (pic16_genPlus): fixed some bugs and indented properly,
12783         * (pic16_addSign): changed size to size+offset in the MOVWF
12784         instruction,
12785         * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
12786         multiply 8-bit operand by literal, result is 8-bit,
12787         * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
12788         multiply 2 8-bit operand, result is 8-bit,
12789         * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
12790         genUMult8X*_16,
12791         * src/pic16/gen.c: changed accUse to contain WREG only,
12792         * (pic16_emitcomment): renamed to pic16_emitpcomment,
12793         * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
12794         true, do not use immediate addressing any more unless sym is a
12795         pointer in codespace,
12796         * (aopForRemat): do not use immediate addressing when symbol not in
12797         codespace and when symbol's address is requested,
12798         * (aopOp): for-loop in if(sym->accUse) is modified for the new
12799         accUse size (= 1),
12800         * (aopGet): added case for AOP_ACC and don't return "accumulator
12801         bug" but WREG instead,
12802         * (popGetTempReg): pushes contents of temporary register in stack,
12803         * (popReleaseTempReg): pops contents of temporary register from
12804         stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
12805         * (pic16_popGet): separated case AOP_ACC to return register WREG
12806         from processor registers, AOP_PCODE not checks if pcop is PO_DIR
12807         or PO_IMMEDIATE and initializes their instance/offset appropriately,
12808         * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
12809         the use of immediate pointers to certain cases only.
12810
12811         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
12812         * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
12813         * (assignResultValue, genCall, genRet): modified to use the new
12814         function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
12815         genPcall is still broken,
12816         * (genFunction): added code to create 'A' type pBlocks when
12817         interrupt functions are generated, code not extensively tested yet,
12818         ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
12819         * (genEndFunction): modified so ISRs pop stored registers from stack,
12820         * (genMultOneByte): cleanup,
12821         * (AccRsh): added flag andmask, to and result with appropriate mask,
12822         * (genUnpackBits,genPackBits): fixed and can handle bit fields,
12823         * (genDataPointerGet): fixed and reenabled its use,
12824         * (genNearDataPointerGet): bugs fixed,
12825         * (genDataPointerSet): bugs fixed,
12826         * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
12827         pic16_DumpSymbol, pic16_DumpOp,
12828         * src/pic16/genutils.h: function prototypes for the above functions,
12829         * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
12830         pointers,
12831         * (pic16emitRegularMap): many many many improvements, but needs a
12832         major cleanup,
12833         * src/pic16/main.c: enable_stack in pic16_options is removed,
12834         * (_pic16_parseOptions): removed command line options -penable-stack,
12835         * (_process_pragma): emit stack symbol only when stack pragma is
12836         processed,
12837         * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
12838         redirected to FSR0L/FSR0H pair,
12839         * (pic16_get_op, pic16_get_op2): modifications and improvements,
12840         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
12841         cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
12842         for immediates,
12843         * (insertBankSwitch): modified to handle cases like: (alfa + 1)
12844         * (dumpPicOptype): NEW,
12845         * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
12846         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
12847         with movff instruction,
12848         * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
12849         added pic16_int_regs, some packRegsFor* functions are commented out,
12850         because produce errors,
12851         * src/pic16/NOTES: minor modifications
12852
12853 2004-02-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12854
12855         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
12856         as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
12857         --pack-iram.
12858         * doc/sdccman.lyx: described options --stack-size and --pack-iram.
12859         * as/mcs51/lkaomf51.c: fixed bug #895763
12860
12861 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
12862
12863         * device/include/c8051f320.h: added. Contributed by Maarten Brock.
12864
12865 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12866
12867         * doc/sdccman.lyx: added details about the HC08 storage classes and
12868         interrupts, fixed the register usage info for z80 & gbz80
12869
12870 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
12871
12872         * doc/sdccman.lyx: added more pic16 port documentation
12873         * device/include/pic16/: added header pic18fregs.h
12874
12875 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
12876
12877         * doc/sdccman.lyx: added Vangelis' contribution
12878
12879 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12880
12881         * src/SDCClrange.c (rlivePoint): live range of SEND operand should
12882         extend to the next CALL or PCALL, not just to the next CALL.
12883
12884 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
12885
12886         * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
12887
12888 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12889
12890         * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
12891         bug #895752 and a better fix for bug #716790
12892
12893 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12894
12895         * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
12896
12897 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12898
12899         * doc/sdccman.lyx: minor changes, minor changed
12900
12901 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
12902
12903         * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
12904         which can't handle SDCC_NEWONEBYTEOPS,
12905         (geniCodeMultiply): removed conversion from mult to shift for pic14
12906         and pic16
12907
12908 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12909
12910         * src/hc08/gen.h,
12911         * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
12912         rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
12913         thus fixing bug #895406
12914
12915 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
12916
12917         * device/lib/_modsint.c,
12918         * device/lib/_modslong.c: sign follows divisor only
12919         * src/hc08/gen.c (genMultOneByte): if result size is 1,
12920         signs or signedness can be ignored
12921         * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
12922         * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
12923         added optimization for IFX,
12924         (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
12925         arguments;
12926         reenabled optimization for IFX, which was removed on 2004-01-11
12927         * src/SDCCast.h: added return type IFX
12928         * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
12929         arguments with 8 or 16 bit results; pic14 and pic16 ports use old
12930         promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
12931         SDCC_OLDONEBYTEOPS selects the old behaviour
12932         * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
12933         changed again and commented promotion rule
12934         * src/SDCCval.c (valDiv): promotion no longer necessary
12935         * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
12936         * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
12937         rewritten
12938         * support/regression/tests/onebyte.c: added
12939
12940 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
12941
12942         * gen.c (genInline): reverted to old code for assemnling inline
12943         code because of bug reported James Chadd
12944
12945 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
12946
12947         * ralloc.h: missing declarations from previous patch,
12948         seems that patch for ralloc.h was never applied, fixed
12949
12950 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
12951            patch committed by Vangelis Rokas <vrokas AT otenet.gr>
12952
12953         * pcode.c,
12954         * pcode.h,
12955         * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
12956         indirect addressing. Marked FSR0 as deprecated
12957         * gen.c (pointerCode): commented out, not needed now
12958         (pic16_popGet2p): new MOVFF helper function
12959         (genGenPointerGet),
12960         (genGenPointerSet): reimplemented with MOVFF and POSTINC0
12961         (shiftRLong): removed duplicate debugging info
12962
12963 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12964
12965         * src/ds390/gen.c (genNearPointerGet),
12966         * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
12967         optimization with bits, but not bitfields.
12968         * src/ds390/ralloc.c (packRegisters),
12969         * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
12970
12971 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
12972
12973         * src/SDCCcse.c (algebraicOpts): copy operands before modification
12974
12975 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12976
12977         * src/SDCCsymt.h,
12978         * src/SDCCicode.c (operandFromSymbol),
12979         * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
12980         * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
12981         * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
12982         * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
12983         * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
12984         * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
12985         bug #892038
12986         * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
12987         * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
12988         printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
12989         * src/SDCCsymt.c (newSymbol),
12990         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
12991         enumerator_list),
12992         * src/SDCCval.h,
12993         * src/SDCCval.c (newiList): fixed bug #885705
12994
12995 2004-02-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12996
12997         * doc/sdccman.lyx: added section 3.1.4: sdcclib.
12998         * as/mcs51/lkmem.c: report the size of the stack in .mem file.
12999
13000 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13001
13002         * device/include/c8051f120.h,
13003         * device/include/c8051f300.h,
13004         * device/include/c8051f310.h: added/updated header files for Silicon
13005         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
13006         * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
13007         in new section Submitting patches
13008
13009 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13010
13011         * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
13012         genFarPointerGet, genCodePointerGet, genGenPointerGet,
13013         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
13014         genGenPointerSet),
13015         * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
13016         genFarPointerGet, genCodePointerGet, genGenPointerGet,
13017         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
13018         genGenPointerSet),
13019         * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
13020         genFarPointerGet, genCodePointerGet, genGenPointerGet,
13021         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
13022         genGenPointerSet),
13023         * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
13024         genFarPointerGet, genCodePointerGet, genGenPointerGet,
13025         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
13026         genGenPointerSet): fixed bug #892400
13027         * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
13028         to eliminate build warnings.
13029         * src/SDCCast.c (processParms),
13030         * src/SDCC.y (function_declarator2, declarator2_function_attributes):
13031         fixed bug 751859
13032         * support/valdiag/valdiag.py: added GCC to the list of defines active
13033         when compiling with gcc
13034
13035 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13036
13037         * support/Util/SDCCerr.h,
13038         * support/Util/SDCCerr.c,
13039         * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
13040         with an incomplete type (fixed bug #883734)
13041         * src/SDCCicode.c (geniCodeCast): fixed bug #890510
13042
13043 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13044
13045         * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
13046
13047 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13048
13049         * src/SDCCast.c (decorateType),
13050         * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
13051         function pointer implementation
13052         * support/regression/tests/funptrs.c: added tests to verify both forms
13053         of function pointers work correctly. Added tests to verify parameters
13054         are passed in the correct order.
13055
13056 2004-02-06  Vangelis Rokas <vrokas AT otenet.gr>
13057
13058         * device.c (regCompare): registers are sorted by ascending
13059         address and increasing size,
13060         * main.c (_pic16_finaliseOptions): removed the declaration
13061         of compiler macro MCU. Now a macro of the format pic18fxxxx
13062         will be defined from the command line
13063
13064 2004-02-06  Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
13065             patch committed by Vangelis Rokas <vrokas AT otenet.gr>
13066
13067         * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
13068         PCOP_RLCF was overwritten!
13069         * gen.c (genSkip): commented out calls to pic16_emitcode,
13070         * (genCmpEQ): fixed "long" compares, only high word did get compared,
13071         * (genlshTwo),
13072         * (genRRC): added debugging info,
13073         * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
13074         overwritten while shifting,
13075         * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
13076         overwritten while shifting,
13077         * (AccLsh),
13078         * (AccRsh),
13079         * (shiftLLeftOrResult),
13080         * (shiftRLeftOrResult),
13081         * (shiftRLong),
13082         * (shiftLLong): Implemented with pic16_emitpcode
13083         * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
13084         * (genLeftShift): Fixed bug, operand for shift by variable always
13085         was "and"ed with 0x0f,
13086         * (genLeftShiftLiteral),
13087         * (genrshTwo),
13088         * (genRightShiftLiteral): added debugging info,
13089         * (genrshFour): added comment,
13090         * (genRightShift): determined signedness from operand "left"
13091         instead of "result"
13092
13093 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13094
13095         * src/SDCCicode.c (geniCodeParms),
13096         * src/SDCCast.c (decorateType, processParms): support for ANSI-style
13097         function pointers, fixed function pointer bugs #861242 and #861896
13098
13099 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13100
13101         * device/include/c8051f000.h,
13102         * device/include/c8051f120.h,
13103         * device/include/c8051f300.h: added header files for Silicon
13104         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
13105
13106 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
13107
13108         * src/SDCCast.c (processParams): added new type flow and restructured
13109         (gatherAutoInit): added new type flow
13110         (addCast): cosmetic changes
13111         (getLeftResultType): added new type flow for array indices, patch
13112         provided by Stas, see FR #877103
13113         (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
13114         array index patch by Stas
13115         * src/SDCCast.h: added prototype getResultTypeFromType()
13116         * src/SDCCval.h,
13117         * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
13118         * src/pic/glue.c (pic14emitStaticSeg),
13119         * src/pic16/glue.c (pic16emitStaticSeg),
13120         * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
13121         for initialization of symbols
13122         * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
13123         * support/Util/SDCCerr.h:
13124         * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
13125         * .version: bumped version number to 2.3.8
13126         * device/include/Makefile.in (install),
13127         * doc/Makefile (install): changed to 'rm `find ...`' construct to
13128         avoid warnings
13129
13130 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
13131
13132         * support/regression/tests/libmullong.c: fixed for 64 bit hosts
13133         Slade Rich fixed an optimization bug
13134         * src/pic/pcodepeep.c,
13135         * src/pic/pcoderegs.c
13136         * doc/Makefile (install): added test for directory
13137
13138 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13139
13140         * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
13141         * src/ds390/ralloc.c (getRegPtr, getRegGpr),
13142         * src/pic/ralloc.c (getRegPtr, getRegGpr),
13143         * src/pic16/ralloc.c (getRegPtr, getRegGpr),
13144         * src/z80/ralloc.c (getRegGpr): fixed bug #883361
13145         * as/mcs51/asexpr.c (term),
13146         * as/hc08/asexpr.c (term): fixed bug #887146
13147
13148 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13149
13150         * src/z80/gen.c (genMult): handle single byte result product
13151         * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
13152         DUMMY_READ_VOLATILE (fixed bug #886367)
13153
13154 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
13155
13156         * support/regression/tests/libmullong.c: fixed logic, on little endian
13157         hosts we ended without a mullong_wrapper()
13158
13159 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13160
13161         * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
13162         virus/worm forged address usage.
13163
13164 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
13165
13166         Fixed promotion, it should be done on AST level:
13167         * src/SDCCast.c (addCast): added promotion to int
13168         (decorateType): updated call to upCast()
13169         * src/SDCCicode.c (geniCodeLeftShift): removed call to
13170         usualUnaryConversions()
13171
13172 2004-01-26  Michael Hope  <michaelh AT juju.net.nz>
13173
13174         * support/regression/tests/literalop.c (mulWrapper): Added a
13175         wrapper to remove integer overflow warnings.
13176
13177         * support/regression/tests/float_trans.c: Made work on host.
13178
13179         * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
13180         location of sz80.
13181
13182         * support/regression/generate-cases.py (main): Changed from inline
13183         to a main method.
13184
13185         * doc/Makefile (install): Changed to depth first to get rid of
13186         missing directory install warning.
13187
13188         * as/Makefile (install-doc): Made work on Mac.
13189
13190 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
13191
13192         * src/SDCCast.c: added an additional type flow in decorateType() of
13193         opposite direction, see feature request #860006; it's enabled at runtime
13194         by setting the environment variable SDCC_NEWTYPEFLOW
13195         * src/SDCCast.h: changed prototype of decorateType()
13196         * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
13197         * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
13198         'char' to 'int' can be omitted, if both operands are 'unsigned char';
13199         see feature request #877103
13200         * src/SDCCval.c: updated call of decorateType()
13201         (valBitwise): fixed bug #882876
13202         (valMinus): added promotion
13203         (valLogicAndOr): result is unsigned
13204         (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
13205         * src/SDCCsymt.c (computeType),
13206         * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
13207         must not cause an unsigned operation
13208         * src/pic/glue (pic14emitRegularMap),
13209         * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
13210
13211 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
13212
13213         * src/pic/pcode.c (PCodeID): commented out left over debug code
13214
13215 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
13216
13217         * support/valdiag/tests/overflow.c: added shift tests
13218         * src/pic/device.c,
13219         * src/pic/gen.c,
13220         * src/pic/gen.h,
13221         * src/pic/glue.c,
13222         * src/pic/main.c,
13223         * src/pic/pcode.c,
13224         * src/pic/pcode.h,
13225         * src/pic/pcodepeep.c,
13226         * src/pic/pcoderegs.c,
13227         * src/pic/ralloc.c,
13228         * src/pic/ralloc.h: applied patch from Slade Rich;
13229         added support for multiple code pages and multiple RAM banks on the
13230         PIC 14 port. The ASM files now no longer simply assume all the
13231         code / RAM are in the same page / bank. This means the linker can
13232         safely allocate code/RAM of separate ASM files to different pages/banks.
13233         * doc/sdccman.lyx: added Slade's tips
13234         * src/mcs51/peeph.def: fixed bug #880768
13235
13236 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13237
13238         * src/hc08/ralloc.c (rematStr): fixed bug #879282
13239         * src/SDCCast.c (decorateType): fixed bug #880197
13240
13241 2004-01-20  Michael Hope  <michaelh AT juju.net.nz>
13242
13243         * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
13244         getopt.h.
13245
13246         * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
13247         strtof is not part of C89 and isn't included with Mac OS X.
13248
13249 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13250
13251         * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
13252         shiftL2Left2Result): fixed bug #879326
13253         (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
13254         (genMultOneByte): fixed bug in signed vs unsigned multiplication
13255         * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
13256         address fetch for clr instruction
13257         * device/lib/hc08/_mulint.c: created optimized assembly version
13258         * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
13259
13260 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
13261
13262         * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
13263         proposed in FR #877103
13264
13265 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
13266
13267         * src/SDCCval.c (cheapestVal): added missing checks
13268         * src/SDCCicode.c (usualBinaryConversions): fixed condition
13269         * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
13270
13271 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
13272
13273         * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
13274         equal operands
13275
13276 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
13277
13278         * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
13279         loaded with the linker search paths (-L arguments) and the libraries
13280         to be linked with the current source (-l arguments). Changes
13281         currently will affect only the pic16 port.
13282         * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
13283         include path the port specific paths and port specific libraries,
13284         * gplink command now contains the $3 argument,
13285         * src/pic16/device.h,
13286         * src/pic16/device.c,: structure PIC_device is made public and
13287         renamed to PIC16_device, the same for variable Pics which is renamed
13288         to Pics16. Updated all references to them.
13289         * src/pic16/glue.c (pic16glue): corrected bug with code
13290         initialization which bypassed the variable initializations block.
13291
13292         * device/lib/pic16/Makefile.rules: removed --penable-stack from
13293         COMPILE_FLAGS and added the --nostdinc option
13294
13295 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13296
13297         * device/include/mc68hc908jb8.h: Register defs for another member
13298         of the hc08 family. Contributed by Bjorn Bringert - thanks!
13299
13300 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
13301
13302         Documenting changes from previous commits.
13303         * configure.in (version 1.56),
13304         * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
13305         when generating output files to configure the pic16 library,
13306         but now I've commented it out, since gputils aren't installed in the
13307         SF compile farm, so library won't compile
13308
13309         * device/lib/Makefile.in (version 1.56): initially I've added in
13310         target 'all' the prerequestive 'model-pic16' so it compiled the
13311         pic16 library, but now I've commented it out for the same reasons
13312         above,
13313         * added targets 'model-pic16' and 'objects-pic16' to compile the
13314         library
13315         * added target 'port-specific-objects-pic16' to handle the
13316         generated libraries and copy them into the build/ directory
13317         * added target 'clean-intermediate-pic16' to clean intermediate
13318         files into pic16 directory
13319         * in target 'installdirs' added line to create directory pic16 in
13320         the installation path
13321
13322         * device/include/Makefile.in (version 1.11): in target 'install'
13323         added lines to copy all header files to installation path,
13324         * in target 'installdirs' added line create directory for pic16
13325         headers in the installation path
13326
13327 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
13328
13329         * src/ds390/gen.c (genCall): fixed a double use of acc and b after
13330          a function call
13331
13332 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
13333
13334         * configure,
13335         * device/lib/configure.in,
13336         * device/lib/configure: fixed for autoconf 2.57
13337
13338 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13339
13340         * src/z80/main.c (_parseOptions): fixed the portmode= command line
13341         option so that it actually works. Made it specific to the z80, since
13342         the gbz80 doesn't have these kinds of I/O ports.
13343
13344 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13345
13346         * device/include/z180.h,
13347         * device/lib/_memcpy.c,
13348         * device/lib/_memmove.c,
13349         * device/lib/_mulint.c,
13350         * device/lib/ser_ir.c,
13351         * device/lib/ser_ir_cts_rts.c,
13352         * device/lib/_strcmp.c,
13353         * device/lib/_strtok.c: fixed pragmas to non-deprecated form
13354         * src/z80/main.c (_process_pragma): add support for pragmas bank and
13355         portmode; added deprecation warning for bank= and protmode= forms.
13356         Also, guard against buffer overflow.
13357         * src/z80/gen.c (aopGet): generate better code for sfr banked read
13358
13359 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13360
13361         * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
13362         changed interrupt vector table generation to only emit declared vectors.
13363         * device/include/Makefile.in: added missing backslash
13364         * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
13365
13366 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
13367
13368         Mainly changes to support compilation of the device libraries
13369         * src/pic16/device.c: stack is allocated via symbol and not
13370         via literal number. The symbol is placed in the corresponding
13371         position of the data ram
13372         * (pic16_dump_section): relocatable and absolute uninitialized
13373         data are now emitted in sorted order to reduce section naming,
13374         * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
13375         weren't marked as being in the access bank,
13376
13377 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
13378
13379         Added portion of GNU PIC Library under the directory
13380         device/include/pic16 and device/lib/pic16. These files
13381         contain the declarations of SFRs for the PIC18Fxx2 devices.
13382         The directory is initialized via configure from toplevel.
13383
13384 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
13385
13386         * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
13387         the spilllocations to be compared correctly
13388
13389 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
13390
13391         * src/SDCCast.c (decorateType): fixed bug introduced today
13392
13393 2004-01-12  Borut Razem <borut.razem AT siol.net>
13394
13395         * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
13396         doc/sdccman.lyx: upper case pragmas are deprecated
13397
13398 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
13399
13400         * src/SDCCast.c (decorateType): replacing 'ul > 0' by  '!ul' results
13401         in simpler and even better code
13402
13403 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
13404
13405         * src/SDCCicode.c (operandOperation): fixed bug #874819
13406         * src/SDCCast.c (decorateType): fixed
13407         char foo (unsigned long ul) { return ul > 0; }
13408
13409 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13410
13411         * doc/sdccman.lyx: Moved and added some sections, small changes
13412         all over. Telling LaTeX to be less strict with word spacing
13413         to better keep the right margin. Changed some notes about
13414         maintainance of the ports in section 3.2.1 - is it OK like this?
13415
13416 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
13417
13418         SDCC source changes:
13419         * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
13420         convilong): modified to inform the pic16 port that builtin functions
13421         are external
13422
13423         PIC16 PORT specific changes:
13424         * src/pic16/device.c pic16_dump_equates() added,
13425         processor registers declared internally by the port are emitted in
13426         the translation as equates,
13427         * src/pic16/gen.c: inline code is passed unprocessed to the
13428         translation,
13429         * (pic16_popGetLit2): fnuction modified to take second operand as
13430         pCodeOp pointer and not as literal,
13431         * (popRegFromIdx): prefixed with pic16_,
13432         * (pic16_popCombine2): modified to receive already allocated pCode
13433         operands,
13434         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
13435         * (genFunction): initializes local stack frame and pushes on stack
13436         all the registers used by this function,
13437         * (genEndFunction): restores all registers from stack and restores
13438         stack frame,
13439         * src/pic16/glue.c (pic16emitRegularMap): various changes and
13440         improvements,
13441         * (pic16glue): changed the program startup sequence,
13442         * added new dbName code 'A' for functions placed in absolute section
13443         * src/pic16/main.c: added function attribute _naked,
13444         * added pragma 'code' to place a fnuction at an absolute address,
13445         * added command line arguments --debug-ralloc and --pcode-verbose,
13446         * (_pic16_finiliseOptions): options.all_callee_saves is set by default
13447         * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
13448         * (pic16_newpCodeOpLit2): modified to take the second operand as
13449         pCodeOp pointer,
13450         * (pic16_printpBlock): modified to emit each function in a separate
13451         section,
13452         * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
13453         UPPER for immediate operands,
13454         * src/pic16/pcodepeeph.c: added peephole support for the LFSR
13455         instruction,
13456         * src/pic16/peeph.def: all peepholes with movff are commented out,
13457         because there is a problem in the pcode peep optimizer,
13458         * src/pic16/ralloc.c: the register allocator can now reuse local
13459         function symbols for another function. This saves register usage.
13460         * src/pic16/ralloc.h: added flag isLocal in structure regs,
13461
13462         Added file src/pic16/NOTES with information about program writing on
13463         the current port version.
13464
13465 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13466
13467         * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
13468         and peephole 252 (array access)
13469
13470 2004-01-09  Borut Razem <borut.razem AT siol.net>
13471
13472         * src/SDCCmain.c : fixed #872250: -l command line defined library
13473           files are scanned before standard library files
13474
13475 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13476
13477         * src/SDCCast.c (decorateType): fixed bug #874046
13478
13479 2004-01-09  Borut Razem <borut.razem AT siol.net>
13480
13481         * support/scripts/sdcc.nsi: remove previous installation
13482
13483 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13484
13485         * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
13486         bytes for last interrupt vector (mcs51)
13487         * sdcc.spec: fixed typo
13488
13489 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13490
13491         * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
13492         gen51Code): more efficient parameter receive for --model-large
13493         ("bug" #845294)
13494
13495 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13496
13497         * src/ds390/main.c,
13498         * src/z80/main.c: added missed needLinkerScript flags (more than
13499         one port structure defined in these file)
13500         * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
13501         bug #795325
13502
13503 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
13504
13505         * src/SDCCmain.c: removed various references to DEFAULT_PORT
13506         * src/port.h: added flag needLinkerScript in port->linker
13507         structure to inform whether to create a .lnk file or not,
13508         * src/avr/main.c,
13509         * src/ds390/main.c,
13510         * src/hc08/main.c,
13511         * src/mcs51/main.c,
13512         * src/pic/main.c,
13513         * src/pic16/main.c,
13514         * src/xa51/main.c,
13515         * src/z80/main.c: changed appropriately to configure
13516         needLinkerScript flag
13517         * src/pic/gen.c,
13518         * src/pic16/gen.c (genAddrOf): fixed bug #863624
13519         * src/pic/glue.c: added variable udata_section_name to
13520         override default uninitialized data segment definition for
13521         devices only with SHAREBANK memory (reported from Erik Epetrich)
13522         * (pic14emitOverlay): modified to emit a commented overlay segment
13523         directive when no overlay data exist
13524         * (picglue): modified to emit uninitialized data segment
13525         according to udata_section_name
13526         * src/pic/main.c (_pic14_parseOptions): added command line
13527         options --udata-section-name=[name] to override default
13528         udata definition name
13529         * modified _linkCmd and _asmCmd to include compiler passed
13530         arguments via -W option
13531         * src/pic16/main.c: added $l in _asmCmd, changed extension for
13532         object file from '.rel' to '.o' in port->linker structure,
13533         changed size of fptr from 2 to 3 in port structure
13534
13535 2004-01-07  Borut Razem <borut.razem AT siol.net>
13536
13537         * support/scripts/sdcc.nsi: update PATH
13538         * support/scripts/sdcc.ico: craeted
13539
13540 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
13541
13542         * device/include/Makefile.in: fix install
13543         * doc/Makefile: fix install
13544
13545 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13546
13547         * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
13548         in bug #860505
13549         * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
13550         how the function variable allocation summary is displayed; also
13551         include information about variables allocated to the overlay
13552         segment
13553
13554 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13555
13556         * as/mcs51/lkmain.c: Help about -Y option
13557         * as/mcs51/lkarea.c: Fixed gcc warnings
13558
13559 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
13560
13561         * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
13562         fixed warning
13563         * support/valdiag/tests/overflow.c: added
13564         * src/SDCCast.c (decorateType),
13565         * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
13566         LEFT_OP (left shift)
13567
13568 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13569
13570         * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
13571         (default behaviour).
13572
13573 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13574
13575         A python script to validate compiler diagnostic messages. It can be
13576         used to verify that sdcc complains about bad c source code and
13577         gives a good location of the error.
13578         * support/valdiag/Makefile,
13579         * support/valdiag/valdiag.py,
13580         * support/valdiag/tests/*
13581
13582 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13583
13584         * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
13585         * src/SDCCsymt.c (newEnumType),
13586         * src/SDCCsymt.h
13587         * support/Util/SDCCerr.c,
13588         * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
13589         enum related bugs.
13590         * support/regression/tests/enum.c: added test for enum values that
13591         require at least 2 bytes of storage.
13592
13593 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
13594
13595         * src/common.h: added ifndef/define/endif macros
13596         around the header file.
13597         Bug reported from Jesus Calvino-Fraga
13598
13599 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
13600
13601         * sdcc.spec: updated
13602         * device/include/Makefile.in: don't install CVS directories
13603         * device/lib/Makefile.in: added removal of CVS directories after install
13604         * doc/Makefile: fixed install, added local_icons
13605         * sim/ucsim/gui.src/Makefile.in: fixed an old typo
13606         * src/mcs51/gen.c (genRightShift): fixed bug #870788
13607         * src/ds390/gen.c (genRightShift): fixed bug #870788
13608         * src/SDCCast.c (decorateType): fixed bug #870781
13609
13610 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
13611
13612         PIC16 port related changes:
13613         * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
13614         added variable stackPos,
13615
13616         * gen.c: genCall, assignResultValue: added support for
13617         pushing/retrieving function parameters to/from stack,
13618         genFunction,genEndFunction: setup stack frame for the
13619         generated function,
13620         genAddrOf: will be changed according to bug 863624
13621
13622         * added files genutils.c and genutils.h which contain gen*
13623         debugged and optimised functions extracted from gen.c
13624
13625         * glue.c: added variable 'externs' which holds extern symbols,
13626         pic16emitRegularMap: is modified to properly handle relocatable
13627          symbols under the new scheme,
13628         pic16createInterruptVect: is modified
13629         pic16printPublics: is modified to emit 'global' assembler directives,
13630         added pic16_printExterns to print extern symbols,
13631         pic16glue: initializes stack/frame pointer in the beginning of
13632         the assembly output. Temporary hack, will be corrected later,
13633         because gplink yet does not support stack and SDCC does not
13634         yet support a type of crt0.o object to create the final binary.
13635
13636         * Removed many lines that contain 8051 legacy code.
13637         * The code is finally placed under a 'code' directive.
13638         * Added port specific options.
13639
13640         * _process_pragma: simplified since now we do not need *special*
13641         include file to define SFR registers. But a separate header
13642         will be needed. This will be developed later.
13643         * _pic16_parseOptions: added, parses port specific options:
13644         --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
13645         --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
13646         --preplace-udata-with=
13647
13648         * _pic16_setDefaultOptions: modified to initialize section names,
13649         but hack is temporarly out of order since it needs improvement.
13650         * _pic16_genAssemblerPreamble: configuration words are emitted by
13651         their address instead of their name. This part is incomplete and
13652         supports only the 18Fxx2 devices. Other devices will emit an error
13653         during assembly since they do not contain the same set of config
13654         registers
13655         * _pic16_genIVT: is modified,
13656
13657         * pcode.c: added definitions for some hardware registers that are needed
13658         for stack support
13659         * added flag is2LitOp and variable pci_magic in pCodeInstruction.
13660         All PCI entries are updated. Now LFSR is supported.
13661         * Removed pic16_pciTRIS is mentioned by mdubuc in source
13662         * added pic16_newpCodeOpLit2 to support instructions with
13663         two literal arguments
13664         * pic16_pCode2str: corrected code that emits assembler instructions
13665         with two literal operands and those that have an access bit modifier
13666         * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
13667         this fixes a bug which caused some labels to be lost, when an
13668         assembler directive was added, i.e. banksel,
13669         * pic16_FixRegisterBanking: improved logic that causes the insertion
13670         of bank switching,
13671         * InlineFunction: functions that are called once, are not any more
13672         inlined. This can be a port option in the future,
13673
13674         * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
13675
13676         * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
13677         hold the corresponding uninitialized symbols,
13678         * pic16_allocProcessorRegister: registers have explicit marked the
13679         accessBank field,
13680         * pic16_allocInternalRegister: registers are explicit marked as
13681         not used,
13682         * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
13683         processing list, so bit registers were lost,
13684         *
13685
13686         * ralloc.h: added field 'accessBank' and original symbol operand
13687         in register definition,
13688         * removed the field isMapped from register definition,
13689
13690         ** Several functions have been removed from various sources:
13691         BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
13692         pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
13693         isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
13694         pic16_assignRelocatableRegisters
13695
13696         ** others have been introduced:
13697         pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
13698         pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
13699
13700 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
13701
13702         * support/scripts/inc2h.pl: changed definition of BIT_AT
13703         to emit 'sbit at' instead of 'bit at'. This was a request.
13704
13705         PIC16 port related preliminary changes:
13706         * gen.c: prefixed function popRegFromString with
13707         pic16_ and all references to it corrected
13708         * pcode.c: all pic16_pc_* hardware registers prefixed
13709         with underscore (_),
13710         pic16_popCopyGPR2Bit(): function sets register wasUsed=1
13711         * ralloc.c: newReg(): when register is REG_SFR then
13712         set address to rIdx,
13713         pic16_allocProcessorRegister(): marks register wasUsed=0
13714         pic16_writeUsedRegs(): added a call to assign processor
13715         registers via pic16_assignFixedRegisters
13716
13717 2004-01-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13718
13719         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
13720         as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
13721         variables in unused register banks.  Also the SSEG is placed
13722         wherever there is enough space for it, and IDATA can be anywhere
13723         in internal RAM.  For now compile using -Wl-Y[stack_size].
13724         The mem file is different for this option as well, since it
13725         makes no sense of talking about DSEG lenght.
13726
13727 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
13728
13729         * src/SDCClrange.c: fixed bug 869095 that caused segfault
13730         in certain cases, e.g. when ROM assignment, patch provided
13731         from Albert den Haan.
13732
13733 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
13734
13735         Many signedness and type propagation fixes:
13736         * src/SDCCicode.c: made geniCodeCast() static
13737         replaced SPEC_ by IS_ (cosmetic)
13738         (operandOperation): fixed div and mod operation
13739         (usualBinaryConversions): added support for promotion of char
13740         (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
13741         (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
13742         (geniCodeAdd): an array index will stay unsigned, even if promoted
13743         from char to int
13744         (geniCodeArray): ditto
13745         * src/SDCCicode.h: made geniCodeCast() static: removed prototype
13746         * src/SDCCsymt.c (computeType): added more support for char;
13747         promotion of char is selectable by promoteCharToInt, fixed signedness
13748         for all cases
13749         (powof2): replaced (unsigned long) by (TYPE_UDWORD)
13750         * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
13751         * src/SDCCval (val*): replaced signedness calculation by
13752         computeType()
13753         rearranged if-branches (cosmetic)
13754         (valShift): added warning W_SHIFT_CHANGED
13755         (valCompare): fixed problem with different types
13756         * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
13757         * support/regression/tests/literalop.c: added many cases
13758         * support/regression/tests/ast_constant_folding.c: changed finally to
13759         'unsigned int'
13760         * .version: new year, new version: 2.3.7
13761         * src/SDCCmain.c (main): applied patch #866468
13762         * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
13763         provided by Scott Bronson
13764         * doc/sdccman.lyx: updated documentation for sdcdb
13765         updated and added chapter tips
13766
13767 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13768
13769         * src/SDCCsymt.h: missing from yesterday's commits
13770
13771 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13772
13773         * src/SDCC.y (struct_or_union_specifier),
13774         * support/Util/SDCCerr.c,
13775         * support/Util/SDCCerr.h: verify that struct & union tags are used
13776         as declared.
13777
13778 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13779
13780         * src/SDCCglobl.h: missing from yesterday's commits
13781
13782 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13783
13784         * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
13785         sft_attributes, struct_declaration, parameter_declaration,
13786         type_name, start_block, declaration_list),
13787         * src/SDCC.lex (check_type): support redefinition of typedef names
13788
13789 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13790
13791         * src/mcs51/gen.c (genPlus): added special handling for 256 byte
13792         aligned xdata arrays. Erik helped me with the if clause.
13793
13794 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13795
13796         * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
13797         warning
13798
13799 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13800
13801         * src/SDCCast.h,
13802         * src/SDCCast.c (newAst_),
13803         * src/SDCCicode.h,
13804         * src/SDCCicode.c (ast2iCode, newiCode),
13805         * src/SDCCglobl.h,
13806         * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
13807         expr, statement, expression_statement, selection_statement,
13808         iteration_statement, expr_opt, jump_statement): foundation for tracking
13809         sequence points
13810         * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
13811         point code too)
13812
13813 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13814
13815         * support/Util/SDCCerr.c,
13816         * src/SDCCast.h,
13817         * src/SDCCast.c (createCase, createDefault, decorateType),
13818         * src/SDCClabel.c (labelUnreach),
13819         * src/SDCC.y (labeled_statement, jump_statement): More improvements
13820         to error messages.
13821         * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
13822         (with thanks to Stas Sergeev)
13823         * device/include/time.h,
13824         * device/lib/time.c (CheckTime): suppress unreachable code warning
13825
13826 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13827
13828         * src/SDCCast.c (createIvalCharPtr),
13829         * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
13830         bug #753752)
13831         * support/regression/tests/nullstring.c: tests for these two bugs
13832
13833 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13834
13835         * support/Util/SDCCerr.h,
13836         * support/Util/SDCCerr.c (E_NOT_ALLOWED),
13837         * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
13838         about storage class and 'at' used inside struct or union
13839         * src/SDCCBBlock.c (iCodeFromeBBlock),
13840         * src/SDCCcse.c (ifxOptimize),
13841         * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
13842         printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
13843         printIval, emitStaticSeg, emitOverlay),
13844         * src/SDCClabel.c (deleteIfx),
13845         * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
13846         * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
13847         gatherAutoInit, processParms),
13848         * support/Util/SDCCerr.h,
13849         * support/Util/SDCCerr.c (werrorfl): Support for better error location
13850         reporting for post-parse errors.
13851
13852 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13853
13854         * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
13855         implicit casts via union; they don't work on big endian systems
13856         (possible fix for bug #861138)
13857
13858 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13859
13860         (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
13861         * src/mcs51/main.c: fixed the fix for bug #737001
13862
13863 2003-12-15  Borut Razem <borut.razem AT siol.net>
13864
13865         * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
13866
13867 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13868
13869         * support/makebin/makebin.c: put output in binary mode
13870
13871 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13872
13873         * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
13874         xdata and data memory on startup. Set the environment variable
13875         SDCC_NOGENRAMCLEAR to disable this.
13876         * src/mcs51/peephole.def,
13877         * src/ds390/peephole.def: using the atomic test and clear instruction jbc
13878         (allows non-interrupt and interrupt code to safely compete for a resource
13879         without the non-interrupt code having to disable interrupts)
13880
13881 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13882
13883         * src/SDCCicode.c (geniCodeAdd),
13884         * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
13885         with valFromType if type might be a pointer and host is big endian).
13886         * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
13887         types, not just integer types.
13888         * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
13889         multiply defined with mismatching "at" address.
13890
13891 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13892
13893         * src/ds390/main.c (PORT tininative_port): fixed bug #858416
13894         * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
13895         * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
13896         with embedded nulls (fixed bug #753752)
13897
13898 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13899
13900         * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
13901         Apparently this did not see much testing (endless loop)
13902
13903 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13904
13905         * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
13906
13907 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13908
13909         * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
13910         gracefully handle NULL memmap pointers
13911
13912 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13913
13914         * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
13915         instead of deleting the iCode when an operand is volatile
13916         * src/z80/gen.c (genDummyRead),
13917         * src/mcs51/gen.c (genDummyRead),
13918         * src/ds390/gen.c (genDummyRead),
13919         * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
13920         not just IC_RIGHT
13921         * src/SDCCicode.c (geniCodeCall): fixed bug #851607
13922         * src/SDCC.y: fixed bug #850420
13923
13924 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13925
13926         Applied z80 i/o port patch from Peter Townson and fixed some operators
13927         to better handle operands in A register.
13928         * device/include/z180.h
13929         * src/SDCC.y
13930         * src/SDCCglue.c
13931         * src/z80/gen.c
13932         * src/z80/gen.h
13933         * src/z80/main.c
13934         * src/z80/peeph-z80.def
13935         * src/z80/peeph.def
13936         * src/z80/z80.h
13937
13938 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13939
13940         * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
13941
13942 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13943
13944         * device/lib/hc08/_mullong.c: Removed extra #endif
13945
13946 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13947
13948         * sim/ucsim/hc08.src/inst.cc,
13949         * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
13950         carries from x to h
13951         * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
13952         * src/hc08/gen.c (XAccRsh): fixed problem with right shift
13953         * device/include/stdarg.h: fixed varargs for hc08
13954         * device/lib/Makefile.in,
13955         * device/lib/hc08/Makefile,
13956         * device/lib/hc08/_mulint.c,
13957         * device/lib/hc08/_mullong.c: fixed some endian problems
13958
13959 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13960
13961         * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
13962         * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
13963         * device/lib/_gptrget.c,
13964         * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
13965
13966 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13967
13968         * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
13969         * src/SDCCast.c (astErrors): fixed bug #846007
13970         * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
13971
13972 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13973
13974         * src/SDCCast.c (decorateType): disabled a transformation I added in
13975         revision 1.188 (access to fields of a structure at an absolute address);
13976         it breaks with bitfields, extern declarations, and gcse analysis.
13977         * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
13978         could be assigned through a pointer, so don't complain.
13979         * src/SDCCast.c (astErrors),
13980         * src/SDCCast.h,
13981         * src/SDCCglue.c (emitRegularMap): fixed bug #847813
13982
13983 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
13984
13985         * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
13986         * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
13987         output of __config directives, since gpasm now supports them
13988         * src/pic16/main.c (_pic16_finaliseOptions): define MCU
13989         pre-processor macro, i.e. -DMCU=p18f452
13990         * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
13991         and modified to handle 'cast' icode similarly to '=' icode
13992         * src/pic16/device.h (typedef struct PIC_device): added field
13993         'extMIface' to indicate that chip has external memory interface
13994         * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
13995         18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
13996         18F8720
13997
13998 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13999
14000         * src/SDCC.y (pointer): fixed bug #846006
14001         * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
14002         * src/SDCCast.c (decorateType): fixed bug #846009
14003         * src/ds390/peeph.def,
14004         * src/ds390/gen.c (genAnd, genOr),
14005         * src/mcs51/peeph.def,
14006         * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
14007
14008 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14009
14010         Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
14011         * src/SDCCdflow.c
14012         * src/SDCCcse.c
14013         * src/SDCCcse.h
14014         * src/SDCCBBlock.h
14015         * src/SDCCBBlock.c
14016
14017 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
14018
14019         fixed bug #845089
14020         * src/SDCCbitv.h,
14021         * src/SDCCbitv.c: added function to free a bitvector
14022         * src/SDCClrange.h,
14023         * src/SDCClrange.c: added function to recompute the liveranges
14024         * src/avr/ralloc.c,
14025         * src/ds390/ralloc.c,
14026         * src/hc08/ralloc.c,
14027         * src/mcs51/ralloc.c,
14028         * src/pic/ralloc.c,
14029         * src/pic16/ralloc.c,
14030         * src/xa51/ralloc.c,
14031         * src/z80/ralloc.c: recompute the liveranges after register packing
14032
14033 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
14034
14035         * src/SDCCloop.c (newInduction): fixed bug #845630
14036
14037 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14038
14039         * src/SDCCsymt.c (compareTypesExact): disabled debugging output
14040         inadvertantly left behind from my 2003-11-12 change
14041
14042 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14043
14044         Updated headers I neglected to commit yesterday.
14045         * src/SDCClrange.h,
14046         * src/SDCCicode.h
14047
14048 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14049
14050         * src/SDCCcse.c (algebraicOpts): fixed bug #773153
14051         * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
14052         * src/SDCCopt.c (eBBlockFromiCode),
14053         * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
14054         the creation of the key hash table from the sequencing so it can be used
14055         earlier (for some GCSE bug fixes still pending)
14056
14057 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14058
14059         * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
14060         * support/regression/tests/addsub.c: testing genPlus shortcut
14061
14062 2003-11-15  Borut Razem <borut.razem AT siol.net>
14063
14064         * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
14065
14066 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14067
14068         * src/SDCCcse.c (cseBBlock): fixed bug #527779
14069         * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
14070         ordering is immaterial.
14071         * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
14072
14073 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14074
14075         * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
14076         * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
14077         (SIGSEV) of bug #840381
14078         * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
14079         unlink new file before rename if new and old filenames are the same)
14080
14081 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14082
14083         * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
14084         uninitialized variables) for the mcs51. Set environment variable
14085         SDCC_GENRAMCLEAR to test.
14086         xdata initialization slightly shorter
14087
14088 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14089
14090         * src/SDCCsymt.h,
14091         * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
14092         #838241 & 780691 (basicly the same bug)
14093         * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
14094         * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
14095
14096 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
14097
14098         * src/SDCCmain.c (linkEdit): "fix" #834252
14099
14100 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14101
14102         * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
14103         * src/SDCCast.h,
14104         * src/SDCC.y: fixed bug #819403
14105
14106 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14107
14108         * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
14109         the reentrant attribute.
14110         * src/hc08/gen.c (genPackBits): added missing stack readjustment
14111         * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
14112         simulation
14113         * src/SDCCast.c (decorateType): fixed bug with storage class not being
14114         updated during pointer dereference; f.e. ~(((char *)1)*) was being
14115         erroneously reduced to a literal.
14116         * src/hc08/ralloc.c (packRegisters, rematStr),
14117         * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
14118         some cases
14119
14120 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14121
14122         * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
14123         * doc/sdccman.lyx: changed from 'article' to 'book'
14124         * doc/Makefile: readded test_suite_spec and cdbfileformat
14125
14126 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
14127
14128         * device/include/stdlib.h: include malloc.h to comply with ANSI
14129         * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
14130
14131 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14132
14133         * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
14134         * doc/clean.mk: also remove *.out files
14135         * doc/sdccman.lyx: some additions, larger top/bottom margins
14136
14137 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14138
14139         * src/SDCC.y: fixed bug #837365
14140         * support/regression/tests/bitopcse.c
14141         * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
14142         a symbol (might be valop instead)
14143         * device/lib/Makefile.in: added errno.c to HC08SOURCES
14144         * device/lib/clean.mk: added hc08 to the cleaning list
14145
14146 2003-11-04  Borut Razem <borut.razem AT siol.net>
14147
14148         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
14149           made 2003-11-04
14150         * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
14151           as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
14152           malloc is declared in standard stdlib.h
14153
14154 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14155
14156         * device/lib/hc08/Makefile: need to clean .rel not .o files
14157         * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
14158
14159 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14160
14161         * src/port.h,
14162         * src/hc08/main.c,
14163         * src/mcs51/main.c,
14164         * src/ds390/main.c,
14165         * src/z80/main.c,
14166         * src/avr/main.c,
14167         * src/pic/main.c,
14168         * src/pic16/main.c,
14169         * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
14170         * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
14171         tests (which uses the port's oclsExpense function)
14172         * src/SDCC.y,
14173         * src/SDCCast.c,
14174         * src/SDCCicode.c,
14175         * src/hc08/gen.c,
14176         * src/ds390/gen.c,
14177         * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
14178
14179 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14180
14181         * src/SDCCcse.c (ifxOptimize),
14182         * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
14183         an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
14184         deleting the IFX iCode.
14185         * src/hc08/ralloc.c: reduced unneeded slocs
14186         * src/hc08/gen.c: fixed bug in asmopToBoolean
14187
14188 2003-11-04  Borut Razem <borut.razem AT siol.net>
14189
14190         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
14191           support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
14192           as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
14193           transferred to configure
14194
14195 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
14196
14197         Use headers defined in the C[++] standards:
14198         * sim/ucsim/gui.src/serio.src/fileio.cc
14199         * sim/ucsim/gui.src/serio.src/frontend.cc
14200         * sim/ucsim/gui.src/serio.src/main.cc
14201         * sim/ucsim/gui.src/serio.src/posix_signal.cc
14202         * support/Util/NewAlloc.c
14203         * as/hc08/lklibr.c
14204         * as/mcs51/lklibr.c
14205         * as/z80/aslist.c
14206         * as/z80/assym.c
14207
14208 2003-11-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14209
14210         * Added MSVC projects for hc08 assembler and linker:
14211         all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
14212         /as/hc08/link_hc08.dsp
14213
14214 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
14215
14216         * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
14217
14218 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
14219
14220         * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
14221
14222 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14223
14224         * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
14225
14226 2003-10-31  Borut Razem <borut.razem AT siol.net>
14227
14228         * support/cpp2/cpplib.h,
14229           support/cpp2/cpplib.c,
14230           support/cpp2/cpplex.c,
14231           support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
14232           to switch _asm block preprocessing on / off. Default is
14233           #pragma preproc_asm +
14234
14235 2003-10-31  Borut Razem <borut.razem AT siol.net>
14236
14237         * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
14238           when outputting comment blocks (when executed with -C option) and
14239           _asm (SDCPP specific) blocks
14240
14241 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14242
14243         * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
14244
14245 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
14246
14247         * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
14248
14249 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
14250
14251         * src/SDCCmain.c (linkEdit): "fixed" bug #833605
14252         * src/SDCCast.c (decorateType): fixed bug #832664
14253
14254 2003-10-31  Borut Razem <borut.razem AT siol.net>
14255
14256         * support/cpp2/cpplex.c: fixed for SDCPP:
14257           comments(when executed with -C option) and _asm blocks
14258           were included even if they where in skipped #if block.
14259           Applied solution from GCC cpp 3.3.2
14260
14261 2003-10-31  Borut Razem <borut.razem AT siol.net>
14262
14263         * src/SDCC.lex: sdcc now understands both formats:
14264           '# <line_number> <file_name>' and
14265           '#line <line_number> <file_name>'
14266         * support/cpp2/cppmain.c: sdcpp now generates the standard
14267           '# <line_number> <file_name>' instead of former
14268           '#line <line_number> <file_name>'
14269
14270 2003-10-30  Borut Razem <borut.razem AT siol.net>
14271
14272         * support/cpp2/cpphash.h,
14273         * support/cpp2/cpplib.h
14274         * support/cpp2/cpplex.c,
14275         * support/cpp2/cppmain.c,
14276         * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
14277
14278 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14279
14280         Fixed a number of problems revealed by bug #827883.
14281         * src/SDCCloop.c (loopInvariants): Spill location of the
14282         result operand should be recomputed if extracted from
14283         a loop. Also, don't extract assignments of an iTemp
14284         from a literal.
14285         * src/SDCCast.c (isConformingBody): loop reversal should
14286         not occur if the control variable is involved with a
14287         relational operator.
14288
14289 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
14290
14291         * .version: bumped to 2.3.6 to reflect the big improvements
14292         made by Erik and Klaus. Thanks!
14293
14294 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
14295
14296         Replaced the livrange code.
14297         * src/SDCClrange.c: added new LR code
14298         * src/SDCCloop.c,
14299         * src/SDCCBBlock.h: removed remainig parts from old LR code
14300         * src/ds390/ralloc.c,
14301         * src/ds390/gen.c: minor fixes to make it work with new code
14302
14303 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14304
14305         * as/hc08/asm.h,
14306         * as/hc08/lkrloc.c,
14307         * src/hc08/gen.c,
14308         * src/hc08/ralloc.c: Fix various warnings related to the hc08
14309         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
14310         (tweaked fix for bug #818696)
14311
14312 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14313
14314         * src/z80/ralloc.c (joinPushes): Fixed bug #828742
14315
14316 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14317
14318         * src/SDCCmain.c,
14319         * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
14320         * src/mcs51/gen.c (gencjneshort),
14321         * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
14322         more efficient (per Scott Bronson's suggestion)
14323
14324 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14325
14326         Extended the semantics of the critical keyword to include
14327         individual statements. See RFE #827755 and #799831
14328         * src/SDCC.y
14329         * src/SDCCicode.c
14330         * src/SDCCopt.c
14331         * src/SDCCast.c
14332         * support/Util/SDCCerr.c
14333         * support/Util/SDCCerr.h
14334         * src/mcs51/gen.c
14335         * src/ds390/gen.c
14336         * src/hc08/gen.c
14337
14338 2003-10-19  Borut Razem <borut.razem AT siol.net>
14339
14340         * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
14341
14342 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14343
14344         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
14345         Fixed bug #818696
14346         * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
14347         and predecrement operand is displayed
14348
14349 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
14350
14351         * src/SDCCval.c (valMinus): fixed bug #826041
14352
14353 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14354
14355         Some hc08 related updates that I missed earlier
14356         * sim/ucsim/stypes.h
14357         * support/regression/ports/hc08/spec.mk
14358
14359 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14360
14361         New target "hc08" for the Motorola 68hc08 family of micros
14362
14363         * configure
14364         * configure.in
14365         * Makefile
14366         * src/hc08/*
14367         * src/SDCCmain.c
14368         * src/port.h
14369         * sim/ucsim/hc08.src/*
14370         * sim/ucsim/configure.in
14371         * src/ucsim/configure
14372         * sim/ucsim/packages_in.mk
14373         * as/hc08/*
14374         * as/Makefile
14375         * device/include/mc68hc908qy.h
14376         * device/lib/hc08/*
14377         * device/lib/Makefile.in
14378         * support/regression/ports/hc08/*
14379         * support/regression/Makefile
14380
14381 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14382
14383         * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
14384         regression test
14385         * src/ds390/gen.c (genCast): fixed bug #821957
14386
14387 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
14388
14389         * device/lib/logf.c: "fixed" overlay bug
14390         * support/regression/ports/host/spec.mk: added m library
14391         * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
14392         * support/regression/tests/float_trans: added (for Eric)
14393
14394 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
14395
14396         * src/mcs51/gen.c (genCpl): fixed bug
14397         http://sf.net/mailarchive/message.php?msg_id=6263915
14398
14399 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
14400
14401         * src/SDCCast.c (decorateType): added extended constant folding
14402         * src/SDCCsymt.c (computeType): cleanup
14403         * src/SDCCval.c (valShift): minor optimization
14404         * support/regression/tests/ast_constant_folding.c: added
14405
14406 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14407
14408         * src/SDCCmain.c: removed some unintended changes
14409
14410 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14411
14412         * src/SDCCmain.c (setParseWithComma): fixed bug #816685
14413         * src/z80/gen.c: fixed part of bug #817589
14414         * src/SDCCsymt.c (checkFunction): fixed bug #817895
14415
14416 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
14417
14418         Replaced cast (void **) with (void *) to avoid gcc 3 warning:
14419         * src/SDCCcflow.c
14420         * src/SDCCcse.c
14421         * src/SDCCdflow.c
14422         * src/SDCClabel.c
14423         * src/SDCClrange.c
14424         * src/SDCCmem.c
14425         * src/SDCCopt.c
14426         * src/SDCCpeeph.c
14427         * src/SDCCset.c
14428         * src/avr/ralloc.c
14429         * src/ds390/ralloc.c
14430         * src/izt/ralloc.c
14431         * src/mcs51/ralloc.c
14432         * src/pic/ralloc.c
14433         * src/pic16/ralloc.c
14434         * src/xa51/ralloc.c
14435         * src/z80/ralloc.c
14436         * src/z80/gen.c: removed unused label "release:"
14437
14438 2003-10-06  Borut Razem <borut.razem AT siol.net>
14439
14440         * src/SDCC.lex: removed definition of unused variables
14441           save_optimize and save_options
14442
14443 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
14444
14445         * clean.mk: removed '=' in "-maxdepth=1"
14446         * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
14447         * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
14448
14449 2003-10-06  Borut Razem <borut.razem AT siol.net>
14450
14451         * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
14452           my_unput() replaced by unput()
14453
14454 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
14455
14456         * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
14457         setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
14458         type-punned pointer will break strict-aliasing rules"
14459         Old LR behaviour is again default; Klaus' LR can be choosen by
14460         defining the environment variable LRKLAUS
14461         * src/SDCCBBlock.h
14462         * src/SDCCloop.c
14463         * src/SDCClrange.c
14464         * src/ds390/ralloc.c (spillThis): applied Klaus' patch
14465         * clean.mk: fixed removal of files in bin/CVS/
14466         * device/lib/clean.mk: fixed removal of directories small and large
14467         * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
14468         * src/SDCCicode.c,
14469         * src/SDCCval.c: removed superflous test for pedantic
14470
14471 2003-10-05  Borut Razem <borut.razem AT siol.net>
14472
14473         * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
14474           Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
14475           message "unmatched #pragma SAVE and #pragma RESTORE"
14476
14477 2003-10-04  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14478
14479         * doc/sdccman.lyx: various additions and updates (interrupts, inline
14480           assembly, critical functions, atomic, nojtbound)
14481
14482 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
14483
14484         Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
14485         * src/SDCCBBlock.h
14486         * src/SDCCloop.c
14487         * src/SDCCloop.h
14488         * src/SDCClrange.c
14489
14490 2003-10-03  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14491
14492         * src/z80/gen.h,
14493         * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
14494         * src/mcs51/gen.h
14495         * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
14496         * src/ds390/gen.h
14497         * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
14498         * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
14499         * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
14500
14501 2003-10-02  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14502
14503         * src/z80/gen.c (genRet): fixed bug #524753
14504         * src/z80/gen.c (genCast): fixed internal error on cast from
14505         pointer to long
14506         * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
14507         fix for bug #477835 to the z80
14508         * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
14509         for tracking iCodes in the peephole optimizer for z80
14510
14511 2003-10-01  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14512
14513         * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
14514         the other part of bug #814548
14515         * src/SDCCpeeph.c (labelInRange): fixed bug #814558
14516
14517 2003-09-30  Bernhard Held <bernhard AT bernhardheld.de>
14518
14519         * src/SDCCcse.c: fixed part of bug #814548
14520
14521 2003-09-28  Borut Razem <borut.razem AT siol.net>
14522
14523         * src/asm.c: rewrite of printILine() to use temporary file instead
14524           a pipe
14525         * src/xa51/main.c: commented out declaration of int rewinds
14526
14527 2003-09-27  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14528
14529         * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
14530
14531 2003-09-26  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14532
14533         * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
14534         * src/asm.c (printILine): Fixed bug #811015
14535
14536 2003-09-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14537
14538         *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
14539         freeing.
14540
14541 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14542
14543         * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
14544         * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
14545         to correctly handle general case of AOP_PAIRPTR
14546         * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
14547
14548 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14549
14550         * src/mcs51/ralloc.c (fillGaps),
14551         * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
14552         register positioning bug)
14553
14554 2003-09-21  Bernhard Held <bernhard AT bernhardheld.de>
14555
14556         * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
14557
14558 2003-09-19  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14559
14560         * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
14561         genCodePointerGet, genGenPointerGet, genFarPointerSet,
14562         genGenPointerSet): handle AOP_DPTR correctly when loading dptr
14563         (ralloc doesn't intentionally do this now, but perhaps later)
14564         * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
14565         * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
14566         register positioning bugs (Fixed bug #762602 and #795325)
14567         * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
14568         (Fixed bug #808779)
14569         * src/z80/gen.c: increased _vemit2's buffer[] to handle long
14570         lines that --i-code-in-asm generates
14571
14572 2003-09-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14573
14574         *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
14575         trying to fclose a FILE* that was already closed.
14576
14577 2003-09-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14578
14579         * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
14580         of const struct should be treated as if const themselves)
14581
14582 2003-09-18  Bernhard Held <bernhard AT bernhardheld.de>
14583
14584         * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
14585
14586 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14587
14588         * support/librarian/sdcclib.c: Generate correct offsets for libraries with
14589         Unix (/n) and DOS (/r/n) line terminations.
14590
14591 2003-09-17  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14592
14593         * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
14594         bug #613775
14595
14596 2003-09-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14597
14598         * src/mcs51/gen.c (genFunction, genEndFunction),
14599         * src/ds390/gen.c (genFunction, genEndFunction): Moved save
14600         and restore of EA so that stack offsets to parameters are
14601         correct when using both critical and reentrant/stack-auto.
14602         * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
14603         size (can be triggered in error if sloc is shared between
14604         different sized objects)
14605         * device/include/float.h: fixed macros to explicitly use
14606         unsigned long where needed
14607
14608 2003-09-15  Bernhard Held <bernhard AT bernhardheld.de>
14609
14610         Feature req. 799831: added code to allow nesting of critical functions
14611         * src/mcs51/gen.c (genFunction, genEndFunction)
14612         * src/ds390/gen.c (genFunction, genEndFunction)
14613
14614 2003-09-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14615
14616         * src/SDCCsymt.c (sclsFromPtr),
14617         * src/SDCCsymt.h,
14618         * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
14619         support for standard C idiom of memory mapped variables; for
14620         example, *((xdata int*)0x1234) = 1 is now internally equivalent
14621         to xdata int at 0x1234 tempvar = 1.
14622         * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
14623         provided by Akiya ISHIDA
14624
14625 2003-09-13  Bernhard Held <bernhard AT bernhardheld.de>
14626
14627         * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
14628         * src/SDCCval.c (constVal): added reduction from int to char
14629         * src/SDCCval.c (valMult, valDiv): fixed sign handling
14630         * src/SDCCval.c (valShift): fixed after change of cheapestVal()
14631         * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
14632         to ignore the sign
14633         * support/regression/tests/shifts.c: fixed
14634
14635 2003-09-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14636
14637         * src/z80/gen.c (genXor): Fixed bug #805445
14638
14639 2003-09-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14640
14641         Fixed bug #621531 (const & volatile confusion in the type chain).
14642         DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
14643         refer to the const or volatile state of the pointer itself.
14644
14645         * src/SDCCast.c
14646         * src/SDCCglue.c
14647         * src/SDCCicode.c
14648         * src/SDCCsymt.c
14649         * src/SDCCval.c
14650         * src/SDCC.y
14651         * src/SDCCsymt.h
14652         * src/pic/gen.c
14653         * src/pic/ralloc.c
14654         * src/pic16/gen.c
14655         * src/pic16/ralloc.c
14656         * support/regression/tests/const.c
14657
14658 2003-09-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14659
14660         When checking for duplicated modules, use absolute paths
14661         instead of relative paths.  Files changed:
14662
14663         * as/mcs51/lklib.c
14664         * link/z80/lklib.c
14665
14666 2003-09-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14667
14668         * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
14669
14670 2003-09-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14671
14672         * device/include/string.h: added size_t typedef, changed
14673         prototypes to use size_t, eliminated separate reentrant and
14674         non-reentrant declarations, added _memmove declaration
14675         * device/lib/_memcpy.c: changed to use size_t instead of int,
14676         changed /4 to >>2 to avoid division library call
14677         * device/lib/_memcmp.c,
14678         * device/lib/_memset.c,
14679         * device/lib/_strncat.c,
14680         * device/lib/_strncpy.c,
14681         * device/lib/_strncmp.c: changed to use size_t instead of int
14682         * device/lib/_memmove.c: new file (fixed bug #772294)
14683         * device/lib/Makefile.in: added _memmove.c
14684         * device/lib/z80/asm_strings.s: fixed bug #772290
14685         * support/regression/tests/bitfields.c: attempt to fix host assertion
14686         failure on amd64-unknown-linux2.2
14687
14688 2003-09-06  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14689
14690         * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
14691         * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
14692         * as/z80/asmain.c (main): fixed bug #801766
14693
14694 2003-09-06  Bernhard Held <bernhard AT bernhardheld.de>
14695
14696         * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
14697         compilers
14698
14699 2003-09-05  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14700
14701         * src/SDCCast.c (isConformingBody): fixed loop reversal bug
14702         reported in bug #800609
14703
14704 2003-09-04  Vangelis Rokas <vrokas AT otenet.gr>
14705
14706         * Top header beautifications in src/pic16 directory:
14707           device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
14708           pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
14709           pcoderegs.h, ralloc.c, ralloc.h
14710         * main.c: added top header and GPL license notice
14711         * pcode.c: fixed the if-conditional warning
14712
14713 2003-09-04  Bernhard Held <bernhard AT bernhardheld.de>
14714
14715         * device/lib/_mullong.c: replaced int by short for gcc
14716
14717 2003-08-31  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14718
14719         * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
14720         and JUMPTABLE iCodes properly now (worked by accident before)
14721         * src/mcs51/gen.c (leftRightUseAcc),
14722         * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
14723         iCode properly now. Use getSize instead of nRegs since a & b
14724         aren't part of the nRegs tally.
14725
14726 2003-08-31  Vangelis Rokas <vrokas AT otenet.gr>
14727
14728         * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
14729         * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
14730           before instructions that use the _STATUS register
14731
14732 2003-08-31  Bernhard Held <bernhard AT bernhardheld.de>
14733
14734         * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
14735         * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
14736         fetching of the pointer
14737         * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
14738         copied from genNearPointerSet()
14739         * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
14740         * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
14741         If they pop r0/r1 they must be called in the opposite order than aopOp().
14742         * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
14743         (resp. --stack-auto), prepared for --xstack
14744
14745 2003-08-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14746
14747         * doc/sdccman.lyx: reverted tables to those in cvs 1.64
14748
14749 2003-08-28  Bernhard Held <bernhard AT bernhardheld.de>
14750
14751         * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
14752         these ports have their own __sdcc_external_start()
14753
14754 2003-08-26  Bernhard Held <bernhard AT bernhardheld.de>
14755
14756         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
14757         * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
14758         type for bits was changed. It resulted in bit variables becoming
14759         global, which is not permitted in PIC 14 assembly output.
14760
14761 2003-08-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14762
14763         * doc/sdccman.lyx: various additions and updates. Rearranged sections
14764
14765 2003-08-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14766
14767         Z80 and MCS51 linkers complaint if a public symbol is defined
14768         in more than one library module:
14769
14770         * as/mcs51/lklib.c
14771         * link/z80/lklib.c
14772         * as/mcs51/Makefile.in
14773
14774 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14775
14776         A few small changes that speed up the peephole optimizer.
14777
14778         * src/SDCCpeeph.c
14779
14780 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14781
14782         Try to make the peephole optimizer smarter by maintaining
14783         an association between the assembly source code and the
14784         iCodes that originated them. Put this information to use
14785         with a new peephole rule condition "notVolatile" so that
14786         the rules can be aggressive yet still safe.
14787
14788         * src/SDCCpeeph.c
14789         * src/SDCCpeeph.h
14790         * src/mcs51/gen.c
14791         * src/mcs51/peeph.def
14792
14793 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14794
14795         Fixed bug #741761
14796
14797         * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
14798         * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
14799         if the left or right operand symbols have the accuse flag set.
14800
14801 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14802
14803         Changed the type of the result of the ! (NOT) operator to char;
14804         previously it returned the same type as the source. This allows
14805         us to eliminate all the genFloatNot functions (all of its target
14806         implementations were very buggy) since !float can use the same
14807         code as !long now.
14808
14809         * src/SDCCicode.c (ast2iCode): ! returns char
14810         * src/mcs51/gen.c (genNot, genNotFloat),
14811         * src/ds390/gen.c (genNot, genNotFloat),
14812         * src/z80/gen.c (genNot, genNotFloat),
14813         * src/pic/gen.c (genNot, genNotFloat),
14814         * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
14815
14816 2003-08-19  Bernhard Held <bernhard AT bernhardheld.de>
14817
14818         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
14819         1. Interrupt would not compile properly. Ensure PCLATH register is saved
14820            during interrupts. Ensure WSAVE is located at a shared bank address.
14821         2. Fixed page selection in some places
14822         3. Fixed BTFSS/C to where necessary use registers directly and not simply
14823            the registers name strings.
14824         4. Fixed "signed / unsigned compare" compiler warnings.
14825         5. The PIC port manages its own allocation of the general purpose
14826            registers, but makes no attempt to reuse them. As a result when
14827            compiling it soon runs out of general purpose registers. Some
14828            additional code was added to the files pcode.c and device.c to walk
14829            through the function call tree and rename the registers so that they
14830            get reused.
14831
14832         * src/pic/device.c
14833         * src/pic/gen.c
14834         * src/pic/glue.c
14835         * src/pic/pcode.c
14836         * src/pic/pcode.h
14837         * src/pic/ralloc.c
14838         * src/pic/ralloc.h
14839         * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
14840         genPlus() & genMinus() when the result is the same as left or right
14841
14842 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14843
14844         * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
14845
14846 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14847
14848         Made bitfield a distinct type from bit so that bitfields
14849         convert as per ANSI C and bits retain their traditional
14850         boolean style behaviour. Implemented bitfield support in
14851         the z80 port.
14852
14853         * src/SDCCsymt.h,
14854         * src/SDCCsymt.c,
14855         * src/SDCCast.c,
14856         * src/cdbFile.c,
14857         * src/mcs51/gen.c,
14858         * src/ds390/gen.c: bit v bitfield split
14859         * src/z80/gen.c: New support for bitfields
14860         * support/regression/tests/bitfields.c: reenabled z80,
14861         added more tests
14862
14863 2003-08-17  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14864
14865         Rules 246.x, 247.x relate to bitfields, the others speed up
14866         access to xdata mapped I/O devices.
14867
14868         * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
14869
14870 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14871
14872         Cleaned up genPackBits and genUnpackBits and added two helper
14873         functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
14874         for literal assignments in genPackBits (thanks to Frieder for
14875         reminding me).
14876
14877         * src/mcs51/gen.c
14878         * src/ds390/gen.c
14879
14880 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14881
14882         Fixed bug #748310 (pointer to function type mishandled when the
14883         function name is omitted). Also fixed a SIGSEGV when a function
14884         attribute (reentrant, etc) is used on a non-function or on a
14885         function but misplaced before the parameter list.
14886
14887         * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
14888         bug #748310
14889         * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
14890         * support/Util/SDCCerr.h,
14891         * support/Util/SDCCerr.c: Added func attr misuse error msg
14892
14893 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
14894
14895         Fixed bug #787649 by anonymous
14896         * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
14897         * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
14898
14899 2003-08-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14900
14901         Fixed numerous bitfield problems.
14902
14903         * src/SDCC.y: More bitfield related error checking
14904         * src/SDCCsymt.h,
14905         * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
14906         * support/Util/SDCCerr.h,
14907         * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
14908         * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
14909         * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
14910         * support/regression/tests/bitfields.c: tests added
14911
14912 2003-08-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14913
14914         Made the constant following the "interrupt" keyword optional. If
14915         omitted, the function will not automatically be given an entry
14916         in the interrupt vector table (similar to #pragma NOIV, but
14917         less syntacticly kludgy). The interrupt number is also now
14918         range checked. Also fixed a bug in the high order bit example
14919         in the manual.
14920
14921         * src/SDCC.y
14922         * src/SDCCmem.c
14923         * src/SDCCglue.c
14924         * src/SDCCsymt.h
14925         * support/Util/SDCCerr.c
14926         * support/Util/SDCCerr.h
14927         * doc/sdccman.lyx
14928
14929 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
14930
14931         * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
14932         * src/SDCCicode.c (operandOperation): rewritten some ops
14933         (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
14934         * src/SDCCsymt.c (computeType): literals are handled the same way as any
14935         other type
14936         * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
14937         be re-activated by defining REDUCE_LITERALS)
14938         * src/SDCCval.c (constVal): fixed; hex and octal constants can be
14939         unsigned, but are signed by default
14940         * src/SDCCval.c (constVal): rearranged
14941         * src/SDCCval.c (valMod): preliminary fix
14942         * src/SDCCval.c (valCastLiteral): use TYPE_* types
14943         * support/regression/literalop.c: added, work in progress
14944
14945 2003-08-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14946
14947         Generate warnings for useless declarations like "char data;"
14948         that don't do what new users expect.
14949
14950         * src/SDCC.y
14951         * support/Util/SDCCerr.h
14952         * support/Util/SDCCerr.c
14953
14954 2003-08-09  Bernhard Held <bernhard AT bernhardheld.de>
14955
14956         * src/SDCCval.c (valMult): fix overflow detection of negative int
14957
14958 2003-08-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14959
14960         * src/z80/ralloc.c (joinPushes): made compatible with new signedness
14961
14962         Changes to support big endian targets:
14963
14964         * src/ports.h
14965         * src/SDCCglue.c
14966         * src/avr/main.c
14967         * src/ds390/main.c
14968         * src/izt/i186.c
14969         * src/mcs51/main.c
14970         * src/pic/main.c
14971         * src/pic16/main.c
14972         * src/xa51/main.c
14973         * src/z80/main.c
14974
14975 2003-08-06  Bernhard Held <bernhard AT bernhardheld.de>
14976
14977         * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
14978         * device/lib/time.c: fixed warning "integer overflow in expression"
14979
14980 2003-08-05  Bernhard Held <bernhard AT bernhardheld.de>
14981
14982         * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
14983         * src/SDCCval.c (constVal): changed default to signed; hex and octal
14984         constants are unsigned; added recognition of "u" flag for unsigned
14985         * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
14986         * src/SDCCval.c (valDiv, valMod): fixed signdness
14987         * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
14988         signedness of modulo, left and right shift
14989         * support/Util/SDCCerr.c: added warning "integer overflow in expression"
14990         * support/Util/SDCCerr.h: added warning W_INT_OVL
14991         * src/SDCCast.c (decorateType): fixed gcc3.3 warning
14992         * src/SDCCast.c (ast_print): improved output of constants
14993
14994 2003-08-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14995
14996         Fixed some warnings when building with MSVC:
14997
14998         * as/mcs51/asdata.c
14999         * as/z80/asdata.c
15000         * as/mcs51/asm.h
15001         * as/z80/asm.h
15002         * link/z80/aslink.h
15003         * link/z80/lkdata.c
15004         * link/z80/lkeval.c
15005         * link/z80/lkgb.c
15006         * link/z80/lkihx.c
15007         * link/z80/lks19.c
15008         * link/z80/lksym.c
15009         * support/cpp2/cpplib.c
15010         * src/ds390/gen.c
15011         * src/mcs51/gen.c
15012
15013 2003-08-03  Bernhard Held <bernhard AT bernhardheld.de>
15014
15015         * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
15016
15017 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15018
15019         * support/librarian/clean.mk: Do not remove Makefile.
15020         * support/librarian/Makefile: added.
15021
15022 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15023
15024         Added librarian to MSVC build:
15025         * all.dsp
15026         * sdcc.dsw
15027         * support/librarian/librarian.dsp
15028
15029         'configure' not needed for librarian, removed:
15030         * support/librarian/configure
15031         * support/librarian/configure.in
15032         * support/librarian/config_in.h
15033         * support/librarian/Makefile.in
15034
15035         Hopefully these ones built the librarian and the rest of sdcc properly:
15036         * Makefile
15037         * Makefile.common.in
15038
15039         Messed up 'configure', so revert to previous version:
15040         * configure
15041         * configure.in
15042
15043 2003-07-31  Bernhard Held <bernhard AT bernhardheld.de>
15044
15045         * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
15046         there, while the mantissa of a double is "only" 53 bits wide.
15047
15048 2003-07-31  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15049
15050         Adding sdcclib to the build.  MSVC project coming soon.
15051         Files added/changed:
15052
15053         * support/librarian/clean.mk
15054         * support/librarian/configure
15055         * support/librarian/configure.in
15056         * support/librarian/config_in.h
15057         * support/librarian/Makefile.bcc
15058         * support/librarian/Makefile.in
15059         * support/librarian/sdcclib.c
15060         * Makefile.bcc
15061         * Makefile
15062         * Makefile.common.in
15063         * configure
15064         * configure.in
15065
15066 2003-07-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15067
15068         Linker now complaints if linked modules have conflicting options, for
15069         example, one compiled using --model-large and another one compiled with
15070         --model-small.  The following files were modified:
15071
15072         * as/mcs51/asdata.c
15073         * as/mcs51/aslink.h
15074         * as/mcs51/asm.h
15075         * as/mcs51/asmain.c
15076         * as/mcs51/asout.c
15077         * as/mcs51/i51pst.c
15078         * as/mcs51/lkdata.c
15079         * as/mcs51/lklibr.c
15080         * as/mcs51/lkmain.c
15081         * as/z80/asdata.c
15082         * as/z80/asm.h
15083         * as/z80/asmain.c
15084         * as/z80/asout.c
15085         * as/z80/z80pst.c
15086         * link/z80/aslink.h
15087         * link/z80/lkdata.c
15088         * link/z80/lklibr.c
15089         * link/z80/lkmain.c
15090         * src/SDCCglue.c
15091
15092 2003-07-28  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15093
15094         *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
15095         as/mcs51/lklibr.c: Generate a warning when a library is not found.
15096
15097 2003-07-28  Bernhard Held <bernhard AT bernhardheld.de>
15098
15099         * src/z80/mappings.i: fix _mul[us][int,long] entries
15100
15101 2003-07-26  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15102
15103         *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
15104
15105 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
15106
15107         * src/SDCCicode.c (operandOperation): really fixed problem with bitops
15108         * support/regression/tests/bitopcse.c: added
15109         fixed warning:
15110         * src/avr/gen.c:
15111         * src/pic/gen.c:
15112         * src/pic16/gen.c:
15113         * src/z80/gen.c:
15114         * src/xa51/gen.c:
15115
15116 2003-07-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15117
15118         added support for new library format to z80, gbz80 linkers:
15119         *link/z80/aslink.h
15120         *link/z80/lklex.c
15121         *link/z80/lklib.c
15122         *link/z80/lklist.c
15123
15124 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
15125
15126         * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
15127         after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
15128
15129 2003-07-23  Bernhard Held <bernhard AT bernhardheld.de>
15130
15131         added DUMMY_READ_VOLATILE:
15132         * src/SDCC.y:
15133         * src/avr/gen.c:
15134         * src/xa51/gen.c:
15135         * src/z80/gen.c:
15136         * src/pic/gen.c:
15137         * src/pic16/gen.c:
15138         * src/mcs51/gen.c:
15139         * src/ds390/gen.c:
15140         * src/SDCCcse.c (algebraicOpts): many improvements
15141         * src/SDCCcse.h: removed algebraicOpts()
15142         * src/SDCCicode.c (picDummyRead): added
15143
15144 2003-07-23  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15145
15146         * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
15147         "Insufficient space in data memory".
15148
15149 2003-07-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
15150
15151         * src/mcs51/gen.c: fixed bug #771358
15152         * src/z80/gen.c: fixed bug #759087
15153
15154 2003-07-20  Bernhard Held <bernhard AT bernhardheld.de>
15155
15156         * src/pic16/glue.c: minor cleanup by Vangelis
15157
15158 2003-07-19  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15159
15160         * device/include/regc515c.h: fixed #758477
15161         * device/lib/_gptrget.c: saving some cycles in generic pointer get
15162         * device/lib/_gptrput.c: saved a few bytes
15163         * my tab spacing is 8, yours too?)
15164         * device/lib/_ser.c: process RX bytes earlier than TX bytes
15165         * device/lib/serial.c: process RX bytes earlier than TX bytes
15166         * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
15167
15168 2003-07-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
15169
15170         * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
15171
15172 2003-07-17  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15173
15174         * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
15175
15176 2003-07-17  Bernhard Held <bernhard AT bernhardheld.de>
15177
15178         * device/lib/Makefile.in: bad fix, reverted to 1.43
15179
15180 2003-07-16  Bernhard Held <bernhard AT bernhardheld.de>
15181
15182         * device/lib/Makefile.in: added missing z80 object files
15183
15184 2003-07-14  Bernhard Held <bernhard AT bernhardheld.de>
15185
15186         * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
15187         pic16 progress by Vangelis:
15188         * src/SDCCglobl.h:
15189         * src/SDCCmain.c:
15190         * src/pic/Makefile:
15191         * src/pic:
15192         * pic/Makefile:
15193         * pic16/device.c:
15194         * pic16/device.h:
15195         * pic16/gen.c:
15196         * pic16/gen.h:
15197         * pic16/genarith.c:
15198         * pic16/glue.c:
15199         * pic16/main.c:
15200         * pic16/pcode.c:
15201         * pic16/pcode.h:
15202         * pic16/pcodepeep.c:
15203         * pic16/peeph.def:
15204
15205 2003-07-13  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15206
15207         * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
15208
15209 2003-07-12  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15210
15211         * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
15212         added gbz80 build to MSVC project.
15213         * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
15214         link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
15215         from 8051 stuff and setup so it links using a .lnk file.
15216
15217 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15218
15219         * support/librarian/sdcclib.c: sdcc librarian.
15220         * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
15221         with sdcclib.
15222
15223 2003-07-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15224
15225         * as/mcs51/lkmain.c: properly handle extensions in function afile.
15226
15227 2003-07-02  Borut Razem <borut.razem AT siol.net>
15228
15229         * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
15230         src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
15231         src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
15232         src/xa51/main.c, src/z80/main.c:
15233         virtualization of glue() function: each port has it's own glue function,
15234         which is accessed by do_glue function pointer in PORT.general structure
15235
15236 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
15237
15238         * DS800C400 fun, improved ROM interface and tinibios.
15239
15240 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
15241
15242         * More support for DS80C400. Now includes beginning of interface to ROM.
15243
15244 2003-06-25  Bernhard Held <bernhard AT bernhardheld.de>
15245
15246         * src/mcs51/gen.c (gencjneshort): fixed bug #760345
15247
15248 2003-06-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15249
15250         * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
15251
15252 2003-06-19  Borut Razem <borut.razem AT siol.net>
15253
15254         * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
15255
15256 2003-06-19  Borut Razem <borut.razem AT siol.net>
15257
15258         * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
15259         fixed Z80 port - crt0.o: cannot open.
15260
15261 2003-06-19  Bernhard Held <bernhard AT bernhardheld.de>
15262
15263         * support/Util/MySystem.c (merge_command): revert bad fix
15264
15265 2003-06-18  Borut Razem <borut.razem AT siol.net>
15266
15267         * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
15268
15269 2003-06-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15270
15271         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
15272         option --use-stdout sends errors to stdout instead of stderr.
15273
15274 2003-06-18  Bernhard Held <bernhard AT bernhardheld.de>
15275
15276         * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
15277
15278 2003-06-15  Borut Razem <borut.razem AT siol.net>
15279
15280         * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
15281         * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
15282         * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
15283         fixed width array of pointers replaced with sets;
15284         multiple include and lib paths ared transferred to preprocessor and linker
15285         * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
15286         * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
15287         fixed width array of pointers
15288         * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
15289         removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
15290         fixupPath(), getPathDifference()
15291         * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function  inExcludeList() by using sets instead
15292         fixed width array of pointers
15293
15294 2003-06-11  Bernhard Held <bernhard AT bernhardheld.de>
15295
15296         * src/pic16/ralloc.c: fix warnings
15297         * src/pic16/pcode.c: fix warning
15298
15299 2003-06-10  Scott Dattalo  <scott AT dattalo.com>
15300
15301          Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
15302         know all the details, but essentially this set of changes enable
15303         the pic16 port to generate movff instructions and generate assembler
15304         directives,
15305         * src/SDCCmain.c:
15306         * src/pic16/gen.c:
15307         * src/pic16/glue.c:
15308         * src/pic16/pcode.c:
15309         * src/pic16/device.c:
15310         * src/pic16/main.c:
15311         * src/pic16/pcode.h:
15312         * src/pic16/pcoderegs.c:
15313         * src/pic16/ralloc.c:
15314         * src/pic16/ralloc.h:
15315
15316 2003-06-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15317
15318         * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
15319         added option --vc, so sdcc errors and warnings are compatible with
15320         Microsoft Visual Studio.
15321
15322 2003-06-07  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15323
15324         * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
15325           device/lib/libfloat.lib: added atof function.
15326
15327 2003-06-04  Bernhard Held <bernhard AT bernhardheld.de>
15328
15329         * doc/sdccman.lyx: updated to Lyx 1.3
15330         * doc/cdbfileformat.lyx: updated to Lyx 1.3
15331         * doc/test_suite_spec.lyx: updated to Lyx 1.3
15332         * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
15333
15334 2003-06-03  Bernhard Held <bernhard AT bernhardheld.de>
15335
15336         * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
15337
15338 2003-06-02  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15339
15340         * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
15341           additions to the "related tools/documentation" section
15342
15343 2003-06-02  Bernhard Held <bernhard AT bernhardheld.de>
15344
15345         * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
15346
15347 2003-05-29  Bernhard Held <bernhard AT bernhardheld.de>
15348
15349         * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
15350         * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
15351
15352 2003-05-28  Bernhard Held <bernhard AT bernhardheld.de>
15353
15354         * doc/sdccman.lyx: fix double dash and other minor things
15355         * doc/Makefile: fix double dash
15356
15357 2003-05-28  Karl Bongers(patches from Martin Helmling)
15358         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
15359           condition and ignore commands.
15360
15361 2003-05-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15362
15363         * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
15364           is in parts still quite out of date, I did changes as far as I felt makes sense
15365           for a non-native english speaker.
15366           Please feel free to add to the manual or to correct my changes.
15367         * doc/Makefile: undid touching the date of intermediate tex files.
15368
15369 2003-05-26  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15370
15371         * doc/sdccman.lyx: Manual has an index now
15372
15373 2003-05-25  Bernhard Held <bernhard AT bernhardheld.de>
15374
15375         Finalize muluint/mulsint and mululong/mulslong merging:
15376         * device/lib/_mulint.c
15377         * device/lib/_mullong.c
15378         * device/lib/gbz80/mul.s
15379         * device/lib/gbz80/stubs.s
15380         * device/lib/z80/mul.s
15381         * device/lib/z80/stubs.s
15382         * src/SDCCsymt.c (initCSupport)
15383
15384 2003-05-25  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15385
15386         * as/mcs51/lkaomf51.c: Address space 'z' was missing.
15387         * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
15388           src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
15389           src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
15390           instead of /Zm500.
15391
15392 2003-05-25  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15393
15394         * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
15395           the regression tests I'm not brave enough to enable 245.b, 245.c
15396         * doc/sdccman.lyx: added latex preamble for hyperref package.
15397           Using pdflatex this will give you a hyperlinked pdf file with
15398           bookmarks. (prepend '%' before /usepackage if this breaks something)
15399
15400 2003-05-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15401
15402          * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
15403
15404 2003-05-22  Bernhard Held <bernhard AT bernhardheld.de>
15405
15406         * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
15407
15408 2003-05-21    <johan AT balder>
15409
15410         * src/SDCCglue.c (printIval): fixed bug #739934
15411
15412 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
15413
15414         Applied patch from bug 737905 (renamed yylineo to mylineno):
15415         * src/altlex.c
15416         * src/SDCCast.c
15417         * src/SDCglobl.h
15418         * src/SDCC.lex
15419         * src/SDCCsymt.c
15420         * src/SDCCval.c
15421         * src/pic16/pcode.c: Cleaned warnings
15422         * src/pic16/pcodeflow.c: Cleaned warnings
15423         * src/pic16/pcoderegs.c: Cleaned warnings
15424
15425 2003-05-19  Scott Dattalo  <scott AT dattalo.com>
15426
15427         * src/pic16/pcode.c: Cleaned warnings
15428         * src/pic16/pcodepeep.c: Cleaned warnings
15429         * src/pic16/ralloc.c: Cleaned warnings
15430
15431 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
15432
15433         * doc/sdccman.lyx: fixed bug 739745
15434         * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
15435
15436 2003-05-18  Bernhard Held <bernhard AT bernhardheld.de>
15437
15438         * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
15439         it can be defined with CFLAGS when running configure
15440         * src/SDCCmain.c: fixed compiling + linking with object files
15441
15442 2003-05-18  Vangelis Rokas (vrokas AT otenet.gr)
15443
15444         * configure.in: configure for pic16 port,
15445             added --disable-pic16-port
15446         * sdccconf_in.h: added macro OPT_DISABLE_PIC16
15447         * src/SDCCmain.c: linkOptions is changed to set *,
15448             added if/endif conditional macros to remove options help
15449             messages from optionsTable when a port is not configured, added
15450             support for the PIc16 port in the ports table, when executing
15451             the compiler with no port specified on command line, a default
15452             port is selected with the new macro DEFAULT_PORT which is
15453             defined in port.h, in setDefaultOptions() linkOptions is removed
15454             from initialization assignment, since now it is a set,
15455             parseCmdLine uses setParseWithComma for linkOptions, in
15456             linkEdit() linkOptions are accessed with new function indexSet()
15457             which returns the i'th item of a set variable. See SDCCset.c, in
15458             linkEdit() when calling buildCmdLine(), added linkOptions as
15459             last argument. Now users can pass arguments to gplink via the
15460             -Wl option, main() uses pic16glue() to glue up pic16 programs
15461         * src/SDCCpeeph.c: various changes to support pic16
15462         * src/SDCCset.c: added function  void *indexSet(set *, int)  to
15463             return the i'th item of the set
15464         * src/SDCCset.h: added function prototype for indexSet()
15465         * src/SDCCsymt.c: in checkSClass(), added support for PIC16
15466         * src/clean.mk: added pic16 in CLEANALLPORTS variable
15467         * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
15468             added macro DEFAULT_PORT
15469         * src/pic/main.c: corrected arguments of gplnk in _linkCmd
15470         * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
15471             generated
15472         * src/pic16/glue.c: commented out some error producing lines
15473         * src/pic16/main.c: __config directives are commented out to stop
15474             gpasm complaining and test the linkage with gplink, _linkCmd and
15475             _asmCmd changed to be more gplink and gpasm friendly
15476         * src/pic16/peeph.def: peep rule 3 is commented out, since it
15477             produced an error when parsed, peep rule 12 is added to utilize
15478             movff, but it is commented out since the pCode does not support
15479             yet a command with 2 address arguments
15480
15481 2003-05-18    <johan AT balder>
15482
15483         * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
15484         * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
15485 2003-05-17  Karl Bongers(apply patches from Martin Helmling)
15486
15487         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
15488         Added feature to script commands from file.
15489
15490 2003-05-14  Bernhard Held <bernhard AT bernhardheld.de>
15491
15492         * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
15493         * src/SDCCutil.c: include ctype.h for win32
15494
15495 2003-05-13  Bernhard Held <bernhard AT bernhardheld.de>
15496
15497         * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
15498
15499 2003-05-12  Karl Bongers(apply development patches from Martin Helmling)
15500
15501         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
15502         Fixed so you can set breakpoints prior to run, run does not stop
15503         on entry now.  Add tbreak.  Other enhancements and fixes for use
15504         with ddd.
15505
15506 2003-05-12  Borut Razem <borut.razem AT siol.net>
15507
15508         * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
15509
15510 2003-05-11  Borut Razem <borut.razem AT siol.net>
15511
15512         * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
15513         the path of bin directory, so that PATH is the only env. variable, which has to be set
15514         in case of standard installation.
15515         * src/ds390/ds390.dsp: increased value of /Zm option to 1000
15516         * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
15517         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
15518
15519 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
15520
15521         * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
15522         * support/regression/Makefile: inter-port-clean is no longer nesessary, the
15523         temp files are in the port dir; clean the gen/test directory when
15524         generating new test.c
15525         * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
15526         * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
15527         * support/regression/tests/zeropad.c: added
15528
15529 2003-05-09    <johan AT balder>
15530
15531         * src/SDCCglue.c: fixed bug #597940
15532
15533 2003-05-05  Karl Bongers(apply patches from Martin Helmling)
15534
15535         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
15536         cache sfr, optimize next,step, fix off by one sourceline,
15537         support ddd list function.
15538         * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
15539
15540 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
15541
15542         * support/regression/HTMLgen.py: added compare_s2f()
15543         * support/regression/Makefile: redo 1.27
15544         * support/regression/generate-cases.py: redo 1.5
15545
15546 2003-04-30  Bernhard Held <bernhard AT bernhardheld.de>
15547
15548         * support/regression/tests/float.c: workaround 33 bit hex constant
15549         * support/regression/tests/simplefloat.c: fix division for host
15550
15551 2003-04-29  Scott Dattalo  <scott AT dattalo.com>
15552
15553         * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
15554         that tame's the PIC's over-aggressive optimizer.
15555
15556 2003-04-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15557
15558          * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
15559          support for MSVC.
15560
15561 2003-04-29  Kevin Vigor <kevin AT vigor.nu>
15562
15563         Initial support for DS80C400. "Hello world" runs on TINIm400
15564         (with polled I/O).
15565
15566 2003-04-28  Karl Bongers(apply patches for Martin Helmling)
15567
15568          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
15569          * Some notes on ddd usage added in debugger/README
15570          Martin Helmling adding more features and fixes for ddd GUI debugger.
15571          Code added for nexti, stepi, up, down, and other adjustments.
15572
15573 2003-04-28  Scott Dattalo  <scott AT DATTALO.COM>
15574
15575         * src/pic/pCodepeep.c non-wildcard asmops are now handled
15576         * src/pic/peeph.def Added two rules to optimize carry manipulation
15577         * src/pic/* removed debug printfs
15578
15579 2003-04-28  Bernhard Held <bernhard AT bernhardheld.de>
15580
15581         * debugger/mcs51/cmd.c: added header newalloc.h
15582
15583 2003-04-26  Bernhard Held <bernhard AT bernhardheld.de>
15584
15585         * as/Makefile: new EXEEXT
15586         * as/z80/Makefile: remove trailing slash of BUILDIR
15587         * as/z80/clean.mk: new EXEEXT
15588         * Makefile.common.in: add to CFLAGS (and others), don't replace it
15589         * support/cpp2/Makefile.in: new EXEEXT
15590         * src/pic/glue.c (pic14emitRegularMap): fixed warning
15591
15592 2003-04-24  Bernhard Held <bernhard AT bernhardheld.de>
15593
15594         Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
15595         EXEEXT was introduced to fix all related problems with targets
15596         "clean", "install" and "uninstall"; a couple of further flaws
15597         especially with "clean" have been fixed too
15598         * as/mcs51/Makefile.in
15599         * as/mcs51/clean.mk
15600         * as/z80/Makefile
15601         * Makefile
15602         * clean.mk
15603         * debugger/mcs51/Makefile.in
15604         * debugger/mcs51/clean.mk
15605         * link/z80/Makefile
15606         * link/z80/Makefile.in
15607         * link/z80/clean.mk
15608         * link/Makefile
15609         * packihx/Makefile.in
15610         * packihx/clean.mk
15611         * sim/ucsim/Makefile
15612         * sim/ucsim/clean.mk
15613         * sim/ucsim/avr.src/Makefile.in
15614         * sim/ucsim/avr.src/clean.mk
15615         * sim/ucsim/s51.src/Makefile.in
15616         * sim/ucsim/s51.src/clean.mk
15617         * sim/ucsim/xa.src/Makefile.in
15618         * sim/ucsim/xa.src/clean.mk
15619         * sim/ucsim/z80.src/Makefile.in
15620         * sim/ucsim/z80.src/clean.mk
15621         * sim/ucsim/main_in.mk
15622         * sim/ucsim/packages_in.mk
15623         * sim/ucsim/gui.src/Makefile.in
15624         * sim/ucsim/gui.src/serio.src/Makefile.in
15625         * sim/ucsim/gui.src/serio.src/clean.mk
15626         * src/Makefile.in
15627         * src/clean.mk
15628         * support/cpp2/Makefile.in
15629         * support/cpp2/clean.mk
15630         * support/makebin/Makefile
15631         * support/makebin/clean.mk
15632         * support/scripts/sdcc_mingw32: --program-suffix no longer needed
15633         * doc/sdccman.lyx: --program-suffix no longer needed
15634
15635 2003-04-23  Karl Bongers(apply patches for Martin Helmling)
15636
15637          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
15638          Martin Helmling added support for ddd GUI debugger.
15639          Code added to display assembly, set variables, and other commands
15640          to interface to ddd.
15641
15642 2003-04-23  Bernhard Held <bernhard AT bernhardheld.de>
15643
15644         * as/Makefile: fix target clean
15645         * as/clean.mk: fix target clean
15646         * as/z80/clean.mk: fix target clean
15647
15648 2003-04-22  Bernhard Held <bernhard AT bernhardheld.de>
15649
15650         * Makefile.common.in: added  AT EXEEXT AT
15651         * configure.in: removed all mingw32 stuff
15652         * configure: rebuilt from configure.in
15653         * doc/sdccman.lyx: updated section "installation"
15654         * support/scripts/sdcc_mingw32: adapted to configure
15655         * support/scripts/sdcc_cygwin_mingw32: added
15656
15657 2003-04-22  Scott Dattalo  <scott AT dattalo.com>
15658
15659         * src/pic Added object file support for the PIC port
15660         * src/pic Applied patch from Craig Franklin (this started the object file support)
15661         * src/regression Updated the PIC regression tests for object files
15662
15663 2003-04-20  Borut Razem <borut.razem AT siol.net>
15664
15665         * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
15666           lklex.c: In function `getfid':
15667           lklex.c:203: warning: array subscript has type `char'
15668         * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
15669           with MSVC with global optimization enabled (probably an cl compiler bug ;-)
15670         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
15671           stack handling macros
15672
15673 2003-04-19  Borut Razem <borut.razem AT siol.net>
15674
15675         * "handling space characters in file path" task:
15676         * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
15677         * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
15678         * support/Util/MySystem.h: make it self-sufficient
15679         * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
15680           src/z80/main.c, sdcc/as/mcs51/lklex.c:
15681           handling space characters in file path
15682         * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
15683           (it will be used by assemblers, which have their own includes, e.g. gpasm)
15684         * support/Util/MySystem.c: handling space characters in executable's path
15685
15686 2003-04-19  Bernhard Held <bernhard AT bernhardheld.de>
15687
15688         * as/z80/Makefile: fix permanent rebuild of z80
15689         * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
15690         * support/regression/tests/bitfields.c: added Johan's bitfields.c
15691
15692 2003-04-18      Kevin Vigor <kevin AT vigor.nu>
15693
15694         * src/SDCCopt.c: add special case optimization to replace modulo by
15695           a power of two with a bitwise AND.
15696
15697 2003-04-18    <johan AT balder>
15698
15699         * src/mcs51/gen.c (getFreePtr): fixed bug #635354
15700
15701 2003-04-17    <johan AT balder>
15702
15703         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
15704         * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
15705
15706 2003-04-13  Borut Razem <borut.razem AT siol.net>
15707
15708         * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
15709         * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
15710           fixed mingw problem in adl_NORMALIZE_PATH
15711
15712 2003-04-12  Borut Razem <borut.razem AT siol.net>
15713
15714         * fixed "#pragma SAVE/RESTORE can not be nested":
15715         * src/SDCC.lex: reworked pragma handling functions
15716         * sdcc/src/SDCCglobl.h: reworked stack handling macros
15717         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
15718
15719 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
15720
15721         * src/SDCCutil.c (pathEquivalent): defined but not used
15722         * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
15723         * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
15724         * configure: rebuilt from configure.in
15725         * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
15726         * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
15727         * device/include/Makefile.in: replace sdcc_datadir
15728         * device/lib/Makefile.in: replace sdcc_datadir
15729         * Makefile.common.in: add LDFLAGS from configure
15730         * packihx/Makefile.in: use LDFLAGS
15731         * src/Makefile.in: use LDFLAGS
15732         * support/cpp2/Makefile.in: add LDFLAGS from configure
15733         * support/makebin/Makefile: use LDFLAGS
15734         * .version: bumped version number to 2.3.5
15735
15736 2003-04-12  Borut Razem <borut.razem AT siol.net>
15737
15738         * completed "different paths" task:
15739         * src/SDCCmacro.c: fixed bug in handling quotes
15740         * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
15741         * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
15742
15743 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
15744
15745         * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
15746
15747 2003-04-11 kevin Vigor <kevin AT vigor.nu>
15748
15749         * ds390/gen.c ds390/peeph.def: fix bug 706781
15750
15751 2003-04-11  Borut Razem <borut.razem AT siol.net>
15752
15753         * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
15754
15755 2003-04-10  Scott Dattalo  <scott AT dattalo.com>
15756
15757         * src/pic/* Applied the pointer-to-function patch from Steve Tell.
15758         * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
15759          set - this bit used to not be set...).
15760         * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
15761           bad code in PIC Port
15762         * src/regression/and2.c added to test bug 609268
15763         * src/regression/Makefile added and2.c to regression test
15764
15765
15766 2003-04-08    <johan AT CP255758-A>
15767
15768         * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
15769         * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
15770         * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
15771
15772 2003-04-07  Bernhard Held <bernhard AT bernhardheld.de>
15773
15774         * configure.in: fully support prefix, exec_prefix, datadir, docdir;
15775         fix bug #487815
15776         * support/cpp2/Makefile.in: fix bug #487815
15777         * configure: rebuilt from configure.in
15778         * Makefile.common.in: docdir changed, new path suffixes
15779         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
15780         * sdcc_vc_in.h: reflect changes from sdccconf.h
15781         * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
15782         * src/SDCCutil.h: remove BINDIR hack
15783         * doc/sdccman.lyx: update new path hierarchy
15784
15785 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
15786
15787         * src/SDCCpeeph.c: added okToRemoveSLOC test
15788
15789 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
15790
15791         * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
15792
15793 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
15794
15795         * src/SDCCpeeph.c: added labelIsReturnOnly test
15796         * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
15797
15798 2003-04-05    <johan AT balder>
15799
15800         * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
15801         * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
15802         * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
15803         * src/SDCCast.c: fixed a warning
15804         * src/SDCCast.h: fixed a warning
15805         * src/SDCCicode.c (operandFromAst): fixed a warning
15806
15807 2003-04-04    <johan AT balder>
15808
15809         * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
15810         * src/SDCCast.c (decorateType): fixed bug #715076
15811         * src/SDCC.y: fixed bug #702907
15812
15813 2003-04-03    <johan AT balder>
15814
15815         * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
15816         * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
15817         * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
15818         * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
15819         * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
15820
15821 2003-04-03  Bernhard Held <bernhard AT bernhardheld.de>
15822
15823         * _decdptr.c: fix return values
15824         * _gptrget.c: fix return values
15825         * _gptrgetc.c: fix return values
15826         * _gptrput.c: fix return values
15827         * _mulint.c: fix return values
15828         * as/z80/Makefile: fix 'make -j' problem
15829
15830 2003-04-02  Bernhard Held <bernhard AT bernhardheld.de>
15831
15832         * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
15833         * configure.in: big cleanup, updated to autoconf 2.5x
15834         * configure: rebuilt from configure.in
15835         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
15836         * sdcc_vc_in.h: reflect changes from sdccconf.h
15837         * doc/Makefile: fixed a flaw in "make install"
15838
15839 2003-04-02    <johan AT balder>
15840
15841         * src/ds390/gen.c (genCmp): no comments
15842         * src/mcs51/gen.c (genCmp): no comments
15843         * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
15844         * src/SDCCast.c (ast_print): fixed the function type in --dumptree
15845
15846 2003-04-01  Bernhard Held <bernhard AT bernhardheld.de>
15847
15848         * support/regression/generate-cases.py: place generated file in given sub directory
15849         * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
15850         * support/regression/Makefile: improvements for 'make -j';
15851         side effect: it's simpler and faster now
15852
15853 2003-03-31  Borut Razem <borut.razem AT siol.net>
15854
15855         * src/z80/main.c: link-{port} and as-{port} defined without path
15856         * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
15857
15858 2003-03-31  Bernhard Held <bernhard AT bernhardheld.de>
15859
15860         * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
15861
15862 2003-03-30  Borut Razem <borut.razem AT siol.net>
15863
15864         * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
15865           changed type of list parameter to set
15866         * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
15867         * src/port.h: changed type of do_assemble() parameter to set
15868         * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
15869           sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
15870           definition of "cppoutfilename" macro with NULL value in preProcess()
15871         * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
15872         * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
15873         * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
15874           replaced with set *binPathSet
15875         * shash_add() deallocates the item, if allready exsists, before adding the new one
15876         * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
15877
15878 2003-03-30  Scott Dattalo  <scott AT dattalo.com>
15879
15880         * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
15881           a nested for loop bug in the PIC port
15882         * src/regression/nestfor.c: new regression test file Steve wrote to test nested
15883           for loops
15884
15885 2003-03-29  Bernhard Held <bernhard AT bernhardheld.de>
15886
15887         * support/Util/dbuf.h: remove C++ stuff to make it portable
15888
15889 2003-03-28  Borut Razem <borut.razem AT siol.net>
15890
15891         * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
15892           literal strings in stringLiteral()
15893         * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
15894         * src/Makefile.bcc, src/Makefile.in, src/src.dsp: added support/Util/dbuf.c
15895           to the project
15896
15897 2003-03-27  Paul Stoffregen <paul AT pjrc.com>
15898
15899         * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
15900
15901 2003-03-26    <johan AT balder>
15902
15903         * src/mcs51/gen.c (saveRegisters): catched symbol abuse
15904         * src/ds390/gen.c (saveRegisters): catched symbol abuse
15905         * src/SDCCast.c (decorateType): fixed " -v < 3"
15906
15907 2003-03-23  Bernhard Held <bernhard AT bernhardheld.de>
15908
15909         * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
15910         Added Lenny Story's debug infrastructure changes:
15911         * src/Makefile.in:  added new files cdbFile.c and SDCCdebug.c
15912         * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
15913         * src/cdbFile.c: added
15914         * src/SDCCdebug.c: added
15915         * src/SDCCdebug.h: added
15916         * src/SDCCast.c (createFunction)
15917         * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
15918         * src/SDCCmain.c (parseCmdLine, main)
15919         * src/SDCCmem.c (redoStackOffsets)
15920         * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
15921         * src/SDCCsymt.h
15922         * src/common.h
15923         * src/avr/gen.c (genAVRCode)
15924         * src/ds390/gen.c (gen390Code)
15925         * src/mcs51/gen.c (gen51Code)
15926         * src/pic/gen.c (genpic14Code)
15927         * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
15928         * src/xa51/gen.c (genXA51Code)
15929         * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
15930
15931 2003-03-22  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15932
15933         * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
15934         * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
15935
15936 2003-03-22    <johan AT balder>
15937
15938         * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
15939
15940 2003-03-21  Bernhard Held <bernhard AT bernhardheld.de>
15941
15942         * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
15943         * doc/cdbfileformat.lyx: added, written by Lenny Story
15944         * doc/Makefile: added cdbfileformat.lyx
15945         * doc/clean.mk: added cdbfileformat.lyx
15946
15947 2003-03-20  Bernhard Held <bernhard AT bernhardheld.de>
15948
15949         * src/mcs51/peeph.def: fix bug #705773
15950
15951 2003-03-20    <johan AT balder>
15952
15953         An sfr/sbit can have an "at #" AND an initializer
15954         * src/SDCCsymt.c (checkSClass):
15955         * src/SDCCmem.c (allocGlobal):
15956         * src/SDCCmem.c (allocLocal):
15957         * src/SDCCast.c (createBlock):
15958
15959 2003-03-17  Bernhard Held <bernhard AT bernhardheld.de>
15960
15961         * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
15962
15963 2003-03-16    <johan AT balder>
15964
15965         Undid the hackup of const and volatile, the problem is much bigger
15966         * src/SDCC.y:1.65
15967         * src/SDCCast.c:1.171
15968         * src/SDCCglue.c:1.138
15969         * src/SDCCicode.c:1.146
15970         * src/SDCCsymt.c:1.150
15971         * src/SDCCval.c:1.65
15972
15973 2003-03-15  Bernhard Held <bernhard AT bernhardheld.de>
15974
15975         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
15976         * src/ds390/gen.c (genAddrOf): fixed bug #704087
15977
15978 2003-03-13    <johan AT balder>
15979
15980         Hackup const and volatile modifiers in type chains a bit:
15981         * src/SDCC.y:1.63
15982         * src/SDCCast.c:1.169
15983         * src/SDCCglue.c:1.136
15984         * src/SDCCicode.c:1.143
15985         * src/SDCCsymt.c1.146
15986         * src/SDCCsymt.h1.59
15987         * src/SDCCval.c:1.63
15988
15989 2003-03-12    <johan AT balder>
15990
15991         * src/SDCCBBlock.h: more LRH debugging junk
15992         * src/SDCCcflow.h: more LRH debugging junk
15993         * src/SDCCloop.c: more LRH debugging junk
15994         * src/SDCC.y (struct_declaration): fixed bug #697590
15995         * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
15996         * src/ds390/gen.c (aopForRemat): fixed bug #700031
15997         * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
15998
15999 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
16000         * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
16001         test function names must now match exactly).
16002         * src/SDCCcse.c: added special case in findCheaperOp to allow
16003         extending a short integer. Makes less awful code for bug 700121 test case.
16004
16005 2003-03-11  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16006
16007         * as/mcs51/lkmain.c: Added ASlink-Warning to messages
16008         * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
16009
16010 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
16011
16012         * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
16013         actually called (operandsNotEqual() was called for all
16014         operandsNotEqualX tests).
16015
16016 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
16017
16018         * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
16019         with shorter literals. Fixes bug 700121.
16020
16021 2003-03-11    <johan AT balder>
16022
16023         * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
16024
16025 2003-03-11  Bernhard Held <bernhard AT bernhardheld.de>
16026
16027         * src/SDCCloop.c (mergeRegions): an evil beast is dead
16028         * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
16029
16030 2003-03-10  Borut Razem <borut.razem AT siol.net>
16031
16032         * src/SDCCmain.c: pipe preprocessor's output
16033         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
16034         * sdcc_vc_in.h: define pclose as _pclose for WIN32
16035         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
16036         which closes all pipes in pipeSet set
16037         * src/SDCCset.c: free deleted item in function deleteSetItem()
16038         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
16039         moved from z80 to src subproject
16040         * .version: increased version number to 2.3.4
16041
16042 2003-03-10  Bernhard Held <bernhard AT bernhardheld.de>
16043
16044         * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
16045         * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
16046         * support/regression/ports/xa51/spec.mk: fix typo
16047
16048 2003-03-09  Bernhard Held <bernhard AT bernhardheld.de>
16049
16050         * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
16051
16052 2003-03-09  Borut Razem <borut.razem AT siol.net>
16053
16054         * src/SDCCmain.c: pipe preprocessor's output
16055         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
16056         * sdcc_vc_in.h: define pclose as _pclose for WIN32
16057         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
16058         which closes all pipes in pipeSet set
16059         * src/SDCCset.c: free deleted item in function deleteSetItem()
16060         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
16061         moved from z80 to src subproject
16062
16063 2003-03-09  Borut Razem <borut.razem AT siol.net>
16064
16065         * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
16066         * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
16067         * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
16068         * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
16069         * src/SDCCglobl.h: unification of WIN32 native definitions
16070
16071 2003-03-09  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
16072
16073         * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
16074
16075 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
16076
16077         * src/configure.in:   check for endianess (even while cross-compiling)
16078         * src/configure:      check for endianess (even while cross-compiling)
16079         * src/configure_in.h: check for endianess (even while cross-compiling)
16080         * src/avr/gen.c:        remove old endianess stuff
16081         * src/mcs51/gen.c:      remove old endianess stuff
16082         * src/ds390/gen.c:      remove old endianess stuff
16083         * src/pic/gen.c:        remove old endianess stuff
16084         * src/pic/genarith.c:   remove old endianess stuff
16085         * src/pic/glue.c:       fix endianess check
16086         * src/pic16/gen.c:      remove old endianess stuff
16087         * src/pic16/genarith.c: remove old endianess stuff
16088         * src/pic16/glue.c:     fix endianess check
16089         * src/xa51/gen.c:       remove old endianess stuff
16090         * src/z80/gen.c:        fix endianess check
16091         * src/SDCCglue.c:       fix endianess check
16092         * src/ds390/peeph.def: fix bug 700036
16093
16094 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
16095
16096         * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
16097         * src/configure: find appropriate data-types on host for SDCC's int and long
16098         * src/configure.in: find appropriate data-types on host for SDCC's int and long
16099         * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
16100         * src/xa51/gen.c: use %d, not %ld for 4 byte variables
16101
16102 2003-03-07    <johan AT balder>
16103
16104         Just a big NOOP:
16105                 some minor cleanups before the big shot
16106                 OP_DEFS and OP_USES now use Kevin's protection
16107                 new option --nolabelopt
16108
16109         * src/SDCCBBlock.c:
16110         * src/SDCCast.c,:
16111         * src/SDCCcflow.c:
16112         * src/SDCCcse.c:
16113         * src/SDCCicode.c:
16114         * src/SDCCicode.h:
16115         * src/SDCClabel.c:
16116         * src/SDCCloop.c:
16117         * src/SDCCmain.c:
16118         * src/ds390/ralloc.c:
16119         * src/mcs51/ralloc.c:
16120         * src/pic/ralloc.c:
16121         * src/xa51/ralloc.c:
16122         * src/z80/ralloc.c:
16123
16124 2003-03-06  Bernhard Held <bernhard AT bernhardheld.de>
16125
16126         * src/pic/pcode.c (get_op): fix 64 bit warnings
16127         * src/pic/pcode.c (pCode2str): fix 64 bit warnings
16128         * src/SDCChasht.c (newHashTable): fix 64 bit warnings
16129         * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
16130         * support/regression/tests/malloc.c: fix 64 bit warnings
16131
16132 2003-03-04  Bernhard Held <bernhard AT bernhardheld.de>
16133
16134         * src/mcs51/gen.c (genMinus): fixed bug 696436
16135
16136 2003-03-02  Borut Razem <borut.razem AT siol.net>
16137
16138         * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
16139
16140 2003-02-26  Bernhard Held <bernhard AT bernhardheld.de>
16141
16142         * configure.in: test for mkstemp
16143         * sdccconf_in.h: add HAVE_MKSTEMP
16144
16145 2003-02-24  Bernhard Held <bernhard AT bernhardheld.de>
16146
16147         * device/include/ctype.h: removed warning while using --stack-auto
16148         * device/include/malloc.h: removed warning while using --stack-auto
16149         * device/include/string.h: removed warning while using --stack-auto
16150
16151 2003-02-23  Borut Razem <borut.razem AT siol.net>
16152
16153         * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
16154         because NDEBUG is defined (see man assert)
16155         * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
16156
16157 2003-02-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
16158
16159         * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
16160         * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
16161
16162 2003-02-18  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
16163
16164         * src/SDCCpeeph.c: added peephole conditions testing for same arguments
16165         * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
16166
16167 2003-02-18    <johan AT balder>
16168
16169         * as/mcs51/asmain.c (asmbl): module can start with a digit
16170         * as/z80/asmain.c (asmbl): module can start with a digit
16171
16172 2003-02-16  Bernhard Held <bernhard AT bernhardheld.de>
16173
16174         * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
16175         * src/asm.c: fix pipe() for Mingw32
16176
16177 2003-02-15  Bernhard Held <bernhard AT bernhardheld.de>
16178
16179         * src/SDCCglue.h: make tmpfileNameSet available for preOutName
16180         * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
16181         make -V work again; --c1mode reads now from stdin
16182         * doc/sdccman.lyx: added --c1mode
16183         * support/Util/SDCCerr.c: new messages for c1 mode
16184         * support/Util/SDCCerr.h: new messages for c1 mode
16185         * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
16186
16187 2003-02-15    <johan AT balder>
16188
16189         * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
16190
16191 2003-02-14  Bernhard Held <bernhard AT bernhardheld.de>
16192
16193         * doc/sdccman.lyx: Environment variables, -o and other minor things
16194
16195 2003-02-14    <johan AT balder>
16196
16197         * src/xa51/main.c: before anyone really tries to use it :)
16198
16199         * Install doc's in share/sdcc/doc
16200         * removed some obsolete files
16201         * Do a proper make distclean and uninstall
16202         M Makefile.common.in
16203         R sdccbuild.sh
16204         M as/Makefile
16205         M device/include/Makefile.in
16206         M device/lib/Makefile.in
16207         M doc/sdccman.lyx
16208         M link/Makefile
16209         M sim/ucsim/doc/Makefile.in
16210         M src/clean.mk
16211         R src/avr/peeph.rul
16212         R src/xa51/peeph.rul
16213         M support/cpp2/Makefile.in
16214         M support/makebin/Makefile
16215
16216
16217 2003-02-13  Bernhard Held <bernhard AT bernhardheld.de>
16218
16219         * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
16220
16221 2003-02-10  Borut Razem <borut.razem AT siol.net>
16222
16223         * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
16224         support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
16225         * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
16226         device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
16227         support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
16228         src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
16229         src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
16230         src/z80/Makefile.bcc: Borland Makefile cleanup
16231         * as/z80/Makefile.bcc: Added Borland Makefile
16232         * support/cpp2/borland.h: Removed
16233
16234 2003-02-10  Bernhard Held <bernhard AT bernhardheld.de>
16235
16236         * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
16237         * src/SDCC.lex: new pragma NOIV
16238         * src/SDCCglobl.h: new pragma NOIV
16239         * src/SDCCmem.c: new pragma NOIV
16240
16241 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
16242
16243         * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
16244
16245 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
16246
16247         * src/SDCCmain.c: signal handling is switched off by --debug
16248         * doc/Makefile: small fix for install; use clean.mk again
16249         * doc/clean.mk: clean *.pdf and *.html too
16250
16251 2003-02-08  Bernhard Held <bernhard AT bernhardheld.de>
16252
16253         * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
16254         * device/lib/printfl.c: fix a ds390 bug by making it portable
16255         * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
16256         * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
16257         * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
16258         * debugger/mcs51/cmd.c: converted multi-line string literals
16259         * sim/ucsim/globals.cc: converted multi-line string literals
16260         * src/SDCCmain.c: introduced signal handler to remove temp files
16261         * doc/Makefile: small tweaks, implement clean
16262         * doc: removed generated files
16263
16264 2003-02-05  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16265
16266         * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
16267         patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
16268         Address Record is not correctly generated for DS390."
16269
16270 2003-02-02  Borut Razem <borut.razem AT siol.net>
16271
16272         * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
16273         * as/mcs51/asm.h: fixed compilation with Borland C
16274         * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
16275         * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
16276         * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
16277         * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
16278         src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
16279         src/z80/Makefile.bcc: delete $(LIB) only if exist
16280         * src/Makefile.bcc, src/pic/Makefile.bcc:  fixed compilation with Borland C
16281
16282 2003-02-02  Bernhard Held <bernhard AT bernhardheld.de>
16283
16284         * device/include/malloc.h: introduced NULL
16285         * device/include/string.h: introduced NULL
16286         * device/include/stdlib.h: introduced NULL
16287         * device/lib/_memcpy.c: removed NULL
16288         * device/lib/_strcat.c: removed NULL
16289         * device/lib/_strchr.c: removed NULL
16290         * device/lib/_strcmp.c: removed NULL
16291         * device/lib/_strcpy.c: removed NULL
16292         * device/lib/_strcspn.c: removed NULL
16293         * device/lib/_strlen.c: removed NULL
16294         * device/lib/_strncat.c: removed NULL
16295         * device/lib/_strncmp.c: removed NULL
16296         * device/lib/_strncpy.c: removed NULL
16297         * device/lib/_strpbrk.c: removed NULL
16298         * device/lib/_strrchr.c: removed NULL
16299         * device/lib/_strspn.c: removed NULL
16300         * device/lib/_strstr.c: removed NULL
16301         * device/lib/_strtok.c: removed NULL
16302         * device/lib/malloc.c: removed NULL, include own header
16303
16304 2003-02-02    <johan AT balder>
16305
16306         * 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
16307         * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
16308         * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
16309         * src/z80/gen.c (genZ80Code): added c-lines in asm comments
16310         * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
16311         * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
16312
16313 2003-02-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16314
16315         * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
16316         area 'DATA'"
16317
16318 2003-02-01    <johan AT balder>
16319
16320         * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
16321
16322 2003-01-31    <johan AT CP255758-A>
16323
16324         * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
16325
16326 2003-01-30    <johan AT balder>
16327
16328         * src/SDCCBBlock.c: automatic bug detection
16329         * src/SDCCicode.c: automatic bug detection
16330
16331 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16332
16333         * src/SDCCglobl.h:   now --xram-size 0 works
16334         * src/SDCCmain.c:    now --xram-size 0 works
16335
16336 2003-01-29    <johan AT balder>
16337
16338         * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
16339
16340 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16341
16342         * as/mcs51/aslink.h: Added options --xram-size and --code-size
16343         * as/mcs51/lkdata.c: Added options --xram-size and --code-size
16344         * as/mcs51/lkmain.c: Added options --xram-size and --code-size
16345         * as/mcs51/lkmem.c:  Added options --xram-size and --code-size
16346         * src/SDCCglobl.h:   Added options --xram-size and --code-size
16347         * src/SDCCmain.c:    Added options --xram-size and --code-size
16348
16349 2003-01-28  Bernhard Held <bernhard AT bernhardheld.de>
16350
16351         * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
16352         * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
16353
16354 2003-01-27    <johan AT balder>
16355
16356         * src/SDCC.y: fixed bug #613764
16357
16358 2003-01-26    <johan AT balder>
16359
16360         * src/SDCClrange.c:  fixed Bernhard's "char * code ptr = &c"
16361         * src/SDCCsymt.h: fixed bug #673374
16362         * src/SDCCglue.c: fixed bug #661910
16363         * src/SDCCast.c: fixed bug #458099 and 673374
16364
16365 2003-01-26  Bernhard Held <bernhard AT bernhardheld.de>
16366
16367         * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
16368         * as/mcs51/strcmpi.h: added
16369         * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
16370         * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
16371         * as/mcs51/asmain.c: strcmpi -> as_strcmpi
16372         * as/mcs51/assym.c: strcmpi -> as_strcmpi
16373         * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
16374         * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
16375         * as/mcs51/lksym.c: strcmpi -> as_strcmpi
16376         * as/mcs51/Makefile.aslink: new module strcmpi
16377         * as/mcs51/Makefile.asx8051: new module strcmpi
16378         * as/mcs51/Makefil.bcc: new module strcmpi
16379         * as/mcs51/Makefile.in: new module strcmpi
16380         * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
16381
16382 2003-01-26    <johan AT balder>
16383
16384         * src/SDCCglue.c: reverted back to 1.124
16385         * src/SDCCast.c: reverted back to 1.156
16386         * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
16387
16388 2003-01-25    <johan AT balder>
16389
16390         * src/SDCCglue.c: A better fix for bug #661910
16391         * src/SDCCast.c: A better fix for bug #661910
16392         * src/SDCCglue.c (emitRegularMap): That was a little too efficient
16393
16394 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
16395
16396         * src/Makefile.in: remove spawn.o
16397         * src/SDCCmain.c: remove spawn.h
16398         * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
16399         * src/spawn.c: removed
16400         * src/spawn.h: removed
16401         * support/regression/ports/ds390/spec.mk: link with -r
16402
16403 2003-01-24    <johan AT CP255758-A>
16404
16405         * src/ds390/gen.c (aopOp): fixed bug #667458
16406         * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
16407         * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
16408         (createIvalCharPtr): an ival doesn't always have a storage class anymore
16409
16410 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
16411
16412         * src/mcs51/peeph.def: better assembler identation by Frieder
16413         * src/mcs51/gen.c: better assembler identation by Frieder
16414
16415 2003-01-22  Bernhard Held <bernhard AT bernhardheld.de>
16416
16417         * as/z80/string.h: removed for gcc 3.2
16418         * support/makebin/makebin.c: #include <string.h> for gcc 3.2
16419         * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
16420
16421 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
16422
16423         * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
16424         * src/SDCCpeeph.c (replaceRule): fix bug #663503
16425         * support/regression/Makefile: separate temp files for ports
16426         * support/regression/generate-cases.py: separate temp files for ports
16427         * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
16428         * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
16429
16430 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
16431
16432         * moved tinitalk to device/examples/ds390
16433
16434 2003-01-14  Bernhard Held <bernhard AT bernhardheld.de>
16435
16436         * as/mcs51/lkmem.c: rflag is for DS390
16437         * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
16438         * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
16439                          (linkEdit): move mem- and map-files the same way as ihx-files
16440         * src/z80/main.c (_setDefaultOptions): removed --generic
16441         * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
16442         * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
16443         * src/pic/glue.c (picglue): --c1mode works again
16444         * src/pic16/glue.c (pic16glue): --c1mode works again
16445         * src/asm.c (printCLine): fix #660034
16446
16447 2003-01-13  Bernhard Held <bernhard AT bernhardheld.de>
16448
16449         * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
16450         * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
16451         * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
16452         * as/mcs51/lkmem (summary): better fix for sp problem
16453         * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
16454         * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
16455         * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
16456                                               remove --stack-after-data
16457
16458 2003-01-12  Bernhard Held <bernhard AT bernhardheld.de>
16459
16460         * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
16461         * src/SDCCutil.c (join): ugly bug: missing '\0'
16462         * as/mcs51/lkmem.c (summary): sp on address 7 is safe
16463
16464 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
16465
16466         * src/SDCCmain.c (assemble, linkEdit): preparations for -o
16467         * src/port.h: typo
16468         * src/pic/main.c (_asmCmd): gpasm supports -o
16469         * src/z80/main.c: more general macros
16470         * device/lib/Makefile.in: remove intermediate files
16471
16472 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
16473
16474         * .version: Bumped version number to 2.3.3
16475         * src/SDCCBBlock.c: new option -o
16476         * src/SDCCglobl.h: new option -o
16477         * src/SDCCglue.c: new option -o
16478         * src/SDCCmain.c: new option -o
16479         * src/asm.c: new option -o
16480         * src/ds390/main.c: new option -o
16481         * src/pic/glue.c: new option -o
16482         * src/pic/pcode.c: new option -o
16483         * src/pic/ralloc.c: new option -o
16484         * src/pic16/glue.c: new option -o
16485         * src/pic16/pcode.c: new option -o
16486         * src/pic16/ralloc.c: new option -o
16487         * src/z80/main.c: new option -o
16488         * device/lib/Makefile.in: use -o
16489         * support/regression/ports/ds390/spec.mk: use -o
16490         * support/regression/ports/gbz80/spec.mk: use -o
16491         * support/regression/ports/mcs51/spec.mk: use -o
16492         * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
16493         * support/regression/ports/z80/spec.mk: use -o
16494         * support/regression/ports/ucz80/spec.mk: use -o
16495         * support/regression/ports/xa51/spec.mk: use -o
16496         * support/regression/fwk/lib/timeout.c: fix usage string
16497
16498 2003-01-09  Bernhard Held <bernhard AT bernhardheld.de>
16499         * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
16500
16501 2003-01-07    <johan AT balder>
16502
16503         * src/SDCCast.c (decorateType): fixed bug #600035
16504
16505 2003-01-07  Bernhard Held <bernhard AT bernhardheld.de>
16506         * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
16507         * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
16508         * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
16509         * src/pic/pcode.c: outcommented unused variable to remove warnings
16510         * src/pic/ralloc.c: outcommented unused variable to remove warnings
16511
16512 2003-01-06    <karl AT turbobit.com>
16513         * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
16514         regression tests.
16515
16516 2003-01-06    <johan AT balder>
16517
16518         * src/SDCCicode.c: fixed array add
16519
16520 2002-01-05  Bernhard Held <bernhard AT bernhardheld.de>
16521         * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
16522         * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
16523
16524 2003-01-04    <johan AT balder>
16525
16526         * src/SDCCval.c (getNelements): fixed the initialized array of structures
16527
16528 2002-12-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16529         * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
16530
16531 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
16532         * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
16533         * support/regression/tests/bug-524697.c: fit mem usage into 8032
16534
16535 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
16536         * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
16537
16538 2002-12-27  Bernhard Held <bernhard AT bernhardheld.de>
16539         * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
16540
16541 2002-12-26  Bernhard Held <bernhard AT bernhardheld.de>
16542         * src/mcs51/main.c: removed {bindir}{sep} from aslink
16543
16544 2002-12-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16545
16546         * in /sdcc/as/mcs51/ changed these files in order to create an
16547         aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
16548         lkmain.c.  Also added: lkmem.c and lkaomf51.c.  Changed the
16549         following files to include the previous two files: aslink.dsp,
16550         Makefile.aslink, Makefile.bcc, and Makefile.in.
16551
16552         * Changed /sdcc/src/SDCCmain.c so it creates files with extension
16553         .adb instead of .cdb
16554
16555 2002-11-09  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16556
16557         * /sdcc/as/mcs51/lklist.c: Now reports memory usage using the
16558         value from option --iram-size.
16559
16560 2002-09-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16561
16562         * /sdcc/as/mcs51/lklist.c: added boundary check before using
16563         dram[] array.
16564
16565 2002-09-18    <wiml AT hhhh.org>
16566
16567         * SDCClrange.h: exposed setFromRange() and setToRange()
16568         * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
16569           packRegsForAccUse() (bug 542397)
16570         * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
16571           multiple times and emitting the fetch operations more than once
16572           added aopGetUsesAcc() function to allow binary operators to
16573           fetch their operands in the correct order; made genMinus() emit
16574           compact code for X = LITERAL - Y
16575
16576 2002-09-00  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16577         * /sdcc/as/mcs51/lklist.c: Fixed incorrect number of parameters to
16578         sprintf() in line 1267.
16579
16580 2002-09-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16581         * /sdcc/src/SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
16582         like ports.
16583
16584 2002-09-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16585         Changes to aslink (All the changes are marked with 'JCF'):
16586
16587         * /sdcc/as/mcs51/aslink.h: External definition of sflag and
16588         summary().
16589
16590         * /sdcc/as/mcs51/lkarea.c: Computes the size of area BSEG_BYTES from
16591         area BSEG.  Also moves, if possible, the DATA area down into the internal
16592         ram so more space is available.
16593
16594         * /sdcc/as/mcs51/lkdata.c: Definition of memory summary output flag
16595         sflag.
16596
16597         * /sdcc/as/mcs51/lklist.c: For the BSEG area report the size in bits,
16598         not bytes.  Function summary() which creates a memory usage summary
16599         file with extension .mem.  Reports of overlaping stack and small stack
16600         size.  If the space for the stack is less than 16 bytes aslink trows a
16601         warning.
16602
16603         * /sdcc/as/mcs51/lkmain.c: Creation of some of the default areas for
16604         the 8051.  Option 'y' for memory summary output file.
16605
16606         Changes to sdcc (All the changes are marked with 'JCF'):
16607
16608         * /sdcc/src/SDCCglobl.h: External definition of RegBankUsed[4].
16609
16610         * /sdcc/src/SDCCglue.c:  If a register bank is used, creates an
16611         overlaying area for it (uses RegBankUsed[4]).
16612
16613         * /sdcc/src/SDCCmain.c: Definition RegBankUsed[4]; marks register
16614         bank zero as used by default.  By default aslink locates the stack
16615         (equivalent to --stack-after-data).  Pass option 'y' to aslink for
16616         the creation of the .mem file.  Delegates the allocation of data area
16617         to aslink (it is not longer 0x30 by default).  If --stack-loc passes
16618         the begining of the stack area to aslink.
16619
16620         * /sdcc/src/SDCCmem.c:  If a register bank is used, marks it so
16621         glue() in SDCCglue.c creates an area for it.
16622
16623 2002-09-03  Borut Razem <borut.razem AT siol.net>
16624         * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
16625         sdcc/src/pic/glue.c:
16626         introduced atexit() handler for teporay files removal in case of
16627         errors, assertions, ...
16628
16629 2002-08-29  Borut Razem <borut.razem AT siol.net>
16630         * sdcc/support/cpp2/auto-host_vc_in.h:
16631         re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
16632         with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
16633         Maybe there is a similar problem with BORLANDC? It should be checked!
16634
16635         * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
16636         corrected improper use of assert: the assignment to clr variable was done inside the assert.
16637         In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
16638         was not executed, and the compiler (cl) launched a warning:
16639         ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
16640
16641 2002-08-28  Bernhard Held <bernhard AT bernhardheld.de>
16642         * src/SDCCglue.c (printIvalArray): iterative calculation of array length
16643
16644 2002-08-28  Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
16645         * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
16646
16647         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
16648           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
16649           sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
16650           sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
16651           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
16652           sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
16653           sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
16654         - added Release configuration in VS projects
16655         - review of compiler an linker options
16656         - VC .exe files are generated in bin_vc directory, not to interfere
16657           with binaries generated from other projects (cygwin, mingw, bcc ...)
16658
16659         * sdcc/src/yacc.dsp: added
16660
16661         * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
16662         added - genarate sdcc_vc.h using sdcc_vc_in.h as template
16663         and insert the version number definitions from .version
16664
16665         * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
16666
16667         * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
16668         added - genarate auto-host.h using auto-host_vc_in.h as template
16669
16670         * sdcc/sdcc_vc.h,
16671         removed from CVS, generated automatically
16672
16673 2002-08-25  Bernhard Held <bernhard AT bernhardheld.de>
16674         * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
16675
16676 2002-08-11  Borut Razem <borut.razem AT siol.net>
16677         * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
16678
16679 2002-08-10  Borut Razem <borut.razem AT siol.net>
16680         * src/SDCCmain.c (main):
16681         file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
16682         platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
16683         The consequence was that some temporary files were not removed.
16684
16685         * src/SDCCglue.c:
16686         unification of code in functions tempfilename() and tempfile():
16687         function tempnam() is defined in Visual Studio 6.0 and .NET
16688
16689         * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
16690
16691         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
16692           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
16693         - removed compiler command line option /WX: Treats all warnings as errors
16694         - update a list of source files, included into the project
16695
16696         * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
16697           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
16698         changed project type to Generic Project so that can be correcly converted to VS.NET project
16699
16700         * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
16701
16702         * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
16703
16704         * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
16705
16706         * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
16707         added return 0 statements after assert() to make compiler happy
16708
16709         * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
16710         added newline in the def file to keep MSC compiler satisfied
16711
16712         * sdcc/src/z80/gen.c:
16713         - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
16714           so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
16715         - solved MSC error in function aopDump()
16716
16717         * sdcc_vc.h: define PREFIX as "\\sdcc"
16718
16719 2002-07-18  Bernhard Held <bernhard AT bernhardheld.de>
16720         * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
16721
16722 2002-06-22  Scott Dattalo <scott AT dattalo.com>
16723         * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
16724         - Rewrote the register banking algorithm.
16725         - Added pCode live-range analysis to registers (for now, only non-used and
16726         singly-used registers optimized away)
16727
16728         * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
16729
16730         * 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.
16731
16732 2002-05-10  Scott Dattalo <scott AT dattalo.com>
16733         * src/pic/*: Added support for multiplication. Fixed many,many bugs.
16734
16735 2002-04-22  Michael Hope  <michaelh AT vroom>
16736
16737         * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
16738
16739         * configure.in (DD_COPT): Added include support required for gbdk.
16740
16741         * .version: Bumped version number just to increase it.
16742
16743         * src/SDCCmain.c: Added -nostdinc to the default options.
16744
16745 2002-04-15  Michael Hope  <michaelh AT vroom>
16746
16747         * device/lib/z80/printf.c (sprintf): Added.
16748
16749         * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
16750
16751         * src/z80/peeph.def: Added transpose redundent load rule.
16752
16753         * src/z80/main.c: Added force callee saves for jaune.
16754
16755         * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
16756
16757         * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
16758
16759 2002-03-28  Johan Knol  <johan AT balder>
16760
16761         * src/SDCCval.c: fixed bug #532436
16762
16763 2002-03-14  Scott Dattalo <scott AT dattalo.com>
16764         * /src/port.h:
16765         Added "char *Processor" field to the port structure.
16766
16767         * /src/SDCCmain.c:
16768         Added -p option. Allows port dependent processor to be specified.
16769
16770         * all ports:
16771         Initialized the new field char *Processor field to NULL in all ports
16772
16773         * /src/pic/*:
16774         Compiler generated registers for interrupt context saving
16775         were not getting allocated.
16776
16777 2002-03-16  Sandeep Dutta  <sandeep AT ddi.com>
16778
16779         * /src/SDCCast.c:
16780         Fixed left shift. Will promote the left side of a left shift
16781         if a) left shifting more than size of operand or b) when assigned
16782         to something size > size of left side
16783
16784 2002-03-14  Scott Dattalo <scott AT dattalo.com>
16785         * src/pic/*
16786         tons of changes. Register allocation has been
16787         rewritten. Added customization for the various PICs. Flow
16788         analysis is restructured. ...
16789
16790         * src/pic/device.h:
16791         Added
16792
16793         * src/pic/device.c:
16794         Added. device.c is a PIC port hack to accomodate variations
16795         in PIC devices.
16796
16797 2002-03-13  Michael Hope  <michaelh AT vroom>
16798
16799         * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled.  Yeah.
16800
16801 2002-03-04  johanknol  <johanknol AT manik>
16802
16803         * /src/SDCCval.c: fixed
16804
16805         const unsigned char arr[][2] = { { 0, 1 } };
16806         t18.c:1: error: Initializer element is not constant
16807
16808 2002-03-04  bela  <bela AT manik>
16809
16810         * /device/include/mcs51reg.h:
16811         ds89c420 register definition update
16812
16813 2002-03-03    <johan AT FRIJA>
16814
16815         * support/Util/SDCCerr.c: did something, but don't no why anymore
16816
16817         * support/regression/tests/bug-524691.c: made it a little less shy
16818
16819         * src/SDCCast.c (decorateType): fixed bug #524697
16820
16821         * src/SDCCast.c: made some lineno improvements
16822
16823         * src/SDCCval.c (getNelements): changed warning to error
16824
16825         * src/SDCCglue.c (printIvalArray): changed warning to error
16826
16827         * src/SDCCicode.c: fixed a warning for mingw
16828
16829         * src/SDCCast.c (decorateType): fixed the << promotion for ops
16830
16831         * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
16832
16833 2002-03-02  Sandeep Dutta  <sandeep AT ddi.com>
16834
16835         * src/ds390/peeph.def:
16836         Added some more peephole rules
16837
16838         * src/ds390/gen.c: Various fixes & enhancements
16839
16840         * src/SDCClrange.c, src/SDCClrange.h:
16841         functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
16842
16843         * src/ds390/ralloc.c:
16844         various fixes & enhancements (ds390) specific
16845
16846         * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
16847         Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
16848         from rallocs.
16849
16850         * sdcc/src/SDCCcse.c: Better fix for bug # 514308
16851
16852 2002-03-02    <johan AT FRIJA>
16853
16854         * src/SDCCast.c (decorateType): fixed bug #524708
16855
16856         * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
16857
16858         * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
16859
16860 2002-03-01  Michael Hope  <michaelh AT vroom>
16861
16862         * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
16863
16864         * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
16865
16866 2002-03-01    <johan AT FRIJA>
16867
16868         * src/SDCCglue.c (printIvalPtr): fixed bug #524211
16869
16870         * src/SDCCast.c (decorateType): fixed bug #524209
16871
16872         * src/SDCCval.c (valNot): fixed bug #524195
16873
16874 2002-02-26    <johan AT balder>
16875
16876         * src/xa51/gen.c: fixed a warning
16877
16878         * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
16879
16880         * src/SDCCast.c (decorateType): fixed bug #522534
16881
16882 2002-02-23    <johan AT balder>
16883
16884         * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
16885
16886 2002-02-22    <johan AT balder>
16887
16888         * src/SDCCast.c: fixed bug #514865
16889
16890         * src/SDCCy.c ("SDCC.y"): fixed bug #516625
16891
16892 2002-02-21  Sandeep Dutta  <sandeep AT ddi.com>
16893
16894         * sdcc/src/SDCCloop.c:
16895         Previous fix was not good. basic blocks that have "break" or "return" are
16896         not really partof a loop , but live ranges used in these blocks should
16897         be live thru the entire loop, so set partOfLoop but don't add them to
16898         loop region
16899
16900 2002-02-21    <johan AT FRIJA>
16901
16902         * src/SDCCcse.c: fixed bug #514308
16903
16904 2002-02-20  Sandeep Dutta  <sandeep AT ddi.com>
16905
16906         * src/SDCCloop.c:
16907         Fixed BUG #519583. If a conditional block ended in a return/break
16908         statement inside a loop, it was not being considered part of the loop.
16909
16910         * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
16911
16912 2002-02-10  Karl Bongers <karl AT turbobit.com>
16913
16914         * debugger/*:
16915         Fixed up SDCDB debugger somewhat.  Updated debugger/README
16916         with lots of comments and notes.
16917
16918         * device/examples/test2.c:
16919         Fix bug, "red" variable not being initialized(compiler complained).
16920
16921         * device/examples/Makefile, examples/test3.c:
16922         Add Makefile in device/examples folder, compiles test3.c
16923         for use as a multiple module SDCDB test case.
16924
16925         * sim/ucsim/cmd.src/cmdset.cc:
16926         Took out debug printfs in ucsim "next" command.
16927
16928         * sim/ucsim/xa.src:
16929         Karl and Johan start ucsim XA support.  Most dissassembly working,
16930         about 75% emulation done(plenty of work remaining).
16931
16932         * sim/ucsim/z80.src:
16933         Add Z80 support to ucsim, add test-ucz80 regression test,
16934         notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
16935         Notice z80 compiler fails on examples/test3.c/crc code.
16936
16937 2002-01-30  Sandeep Dutta  <sandeep AT ddi.com>
16938
16939         * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
16940         Added support for --parms-in-bank1
16941
16942         * src/ds390/peeph.def:
16943         added a few more peephole optimzations
16944
16945         * src/ds390/main.c:
16946         1) added __builtin_inp & __builtin_outp used to read in data of given length
16947            from a memory mapped port
16948         2) added __builtin_memcmp
16949         3) added __builtin_swapw swap bytes of a short
16950
16951         * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
16952         1) handle multiple send & receives from register bank1
16953         2) ralloc can now allocate DPTR1 to some liveRanges
16954
16955         * src/SDCCsymt.c, src/SDCCsymt.h:
16956         changes to handle multiple sends & receives
16957
16958         * src/SDCCptropt.h:
16959         added some pointer arithmetic optimization
16960
16961         * src/SDCCptropt.c:
16962         added some pointer arithmetic optimizations but not stable yet so not
16963         called from anywhere (will get this working shortly)
16964
16965         * src/SDCCopt.c: fixed for multiple sends & receives
16966
16967         * src/SDCCmain.c:
16968         1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
16969         2) preprocessing done AFTER port->finalizeoptions . This allows ports to
16970            set preprocessor defines (depending on options)
16971
16972         * src/SDCCicode.c, src/SDCCicode.h:
16973         changes made to handle multiple sends & receives
16974
16975         * src/SDCCglobl.h:
16976         Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
16977
16978         * src/SDCCcse.c, src/SDCCcse.h:
16979         added function findbackward def (to be used in upcoming optimization)
16980
16981         * src/SDCCcflow.c, src/SDCCcflow.h:
16982         added function returnAtEnd - to determine if a basic block terminates with
16983         a RETURN iCode
16984
16985         * src/SDCCast.c, src/SDCCast.h:
16986         added option parms-in-bank1
16987
16988         * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
16989         * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
16990         * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
16991         adjusted for --parms-in-bank1 option
16992
16993         * device/include/string.h:
16994         donot redefine "reentrant" keyword
16995
16996         * device/include/ds80c390.h: Added some more SFRs
16997
16998 2002-01-28  Bernhard Held  <bernhard AT bernhardheld.de>
16999
17000         * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
17001
17002 2002-01-26  Bernhard Held  <bernhard AT bernhardheld.de>
17003
17004         * src/SDCCast.c (funcOfType): fix usage of double --float-reent
17005
17006 2002-01-22  Bernhard Held  <bernhard AT bernhardheld.de>
17007
17008         * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
17009
17010 2002-01-18  Paul Stoffregen  <paul AT pjrc.com>
17011
17012         * Added --xram-movc option
17013
17014 2002-01-13  Bernhard Held  <bernhard AT bernhardheld.de>
17015
17016         * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
17017
17018 2002-01-11  Johan Knol
17019
17020         * Added math lib of Jesus Calvino-Fraga
17021
17022 2002-01-08  Bernhard Held  <bernhard AT bernhardheld.de>
17023
17024         * src/SDCCmain.c (processFile): fix processing of ../../src.c
17025         * support/regression/Makefile: new target test-mcs51-stack-auto
17026         * support/regression/ports/mcs51-stack-auto/spec.mk: added
17027
17028 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
17029
17030         * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
17031
17032 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
17033
17034         * support/regression/ports/mcs51/support.c: correct setup of timer / UART
17035
17036 2002-01-03  Bernhard Held  <bernhard AT bernhardheld.de>
17037
17038         * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
17039
17040         * src/SDCCglue.h: add definition for printIvalChar()
17041
17042 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
17043
17044         * src/SDCCast.c: fix #498138 by Johan
17045
17046         * src/SDCCglue.c: fix #498138 by Johan
17047
17048 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
17049
17050         * support/regression/Makefile: fix clean
17051
17052         * support/regression/ports/ds390/support.c: fix transmission of last character
17053
17054 2001-12-29  Sandeep Dutta  <sandeep AT ddi.com>
17055
17056         * /sdcc/src/ds390/gen.c:
17057         a) improved computing address of stack variable
17058         b) took out some #if 0 code
17059         c) improved parmBytes adjustment
17060         d) improved genPlusIncr & genMinusIncr
17061         e) genCmp could generate bad code (when left assigned to DPTR)
17062         f) Fixed bug in hasInc
17063
17064         * /sdcc/src/ds390/ralloc.c:
17065         a) packRegsForSupport could mess up live information (Fixed)
17066         b) packRegsDPTRuse could be incorrect for left & right shift
17067
17068         * /sdcc/src/mcs51/ralloc.c:
17069         packRegsForSupport could mess up the live information (Fixed)
17070
17071         * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
17072
17073         * /sdcc/src/SDCCast.c:
17074         can reverse a loop even if function call is present as long
17075         as the loop control variable is local & is not passed as parameter
17076
17077 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
17078
17079         * /sdcc/ChangeLog: *** empty log message ***
17080
17081         * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
17082         More builtin function additions for TININative
17083
17084         * /sdcc/src/ds390/ralloc.c:
17085         Had broken the regression testsuite
17086
17087         * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
17088
17089         * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
17090         Added funcattr hasStackParms will be set for reentrant functions when there
17091         are paramteres on the stack, this helps in minimizing frame pointer generation
17092         typeFromStr can handle function pointers now
17093
17094         * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
17095         *** empty log message ***
17096
17097 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
17098
17099         * /src/ds390/gen.c, /src/ds390/main.c:
17100         More builtin function additions for TININative
17101
17102         * /src/ds390/ralloc.c:
17103         Had broken the regression testsuite
17104
17105         * /src/SDCCast.c: Fixed a bug in dumptree
17106
17107         * /src/SDCCsymt.c, /src/SDCCsymt.h:
17108         Added funcattr hasStackParms will be set for reentrant functions when there
17109         are paramteres on the stack, this helps in minimizing frame pointer generation
17110         typeFromStr can handle function pointers now
17111
17112         * /doc/builtins.txt, /doc/TININative.txt:
17113         *** empty log message ***
17114
17115
17116 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
17117
17118         * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
17119         ALPHA version for -mTININative
17120
17121         * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
17122         updated to reflect changes in the port structure
17123
17124         * /src/port.h:
17125         added function do_assemble (similar to do_link) if non-null this function
17126         will be called to do assembly (-mTININative) requires a multi command
17127         assembly
17128         added function genAssemblerEnd will be called to generate assembler Epilogue
17129
17130         * /src/SDCCsymt.c:
17131         added _JavaNative to debug info printing
17132
17133         * /src/SDCCmain.c: added option --tini-libid
17134         added port->do_assemble function (-mTININative) has a multi command assemble
17135
17136         * /src/SDCCglue.c: Disabled "constExpr" check
17137         added port->genAssemblerEnd function
17138
17139         * /src/SDCCglobl.h: Added option --tini-libid value
17140
17141         * /src/SDCCast.h:
17142         tookout optimizeCompare from the header (has no external references)
17143
17144         * /src/SDCCast.c: made one more function "static"
17145
17146 2001-12-23  Michael Hope  <michaelh AT juju.net.nz>
17147
17148         * src/z80/mappings.i: Added z80asm support.
17149
17150         * src/z80/main.c: Added z80asm support on --asm=z80asm
17151
17152         * src/z80/gen.c: Fixed asm portability issues.
17153
17154         * src/asm.c (tvsprintf): Removed old code, added 'N' for function name.  For extern support.
17155
17156         * src/SDCCglue.c (printExterns): Added global/extern split.
17157
17158 2001-12-17  Bernhard Held  <bernhard AT bernhardheld.de>
17159
17160         * support/regression/Makefile: added test for mcs51 model large
17161
17162         * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
17163
17164         * support/regression/ports/gbz80/spec.mk: added -mgbz80
17165
17166 2001-12-05  Michael Hope  <michaelh AT juju.net.nz>
17167
17168         * src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.
17169
17170 1904-01-06  Michael Hope  <michaelh AT juju.net.nz>
17171
17172         * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
17173
17174         * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
17175
17176 2001-12-02  Bernhard Held  <bernhard AT bernhardheld.de>
17177
17178         * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
17179
17180         * support/regression/tests/simplefloat.c: Port to mcs51.
17181
17182 2001-11-25  Michael Hope  <michaelh AT juju.net.nz>
17183         * support/regression/tests/bug-485362.c: Added.
17184
17185         * support/regression/tests/simplefloat.c (testDivNearOne): Added.
17186
17187         * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
17188
17189         * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
17190
17191         * src/z80/gen.c (aopDump): Added a dump function.
17192
17193 2001-11-25  Bernhard Held  <bernhard AT bernhardheld.de>
17194         * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
17195
17196         * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
17197
17198         * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
17199
17200         * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
17201
17202         * sim/ucsim/s51.src/uc390cl.h: Work in progress.
17203
17204         * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
17205
17206         * support/regression/fwk/lib/testfwk.c: Run with tinibios.
17207
17208         * support/regression/ports/mcs51/spec.mk: Fine tuninig.
17209
17210         * support/regression/ports/ds390/support.c: Use tinibios.
17211
17212         * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
17213
17214 2001-11-23  Michael Hope  <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
17215
17216         * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
17217         (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
17218
17219         * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
17220
17221         * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
17222
17223 2001-11-18  Michael Hope  <michaelh AT juju.net.nz>
17224
17225         * src/z80/gen.c (genCmp): Fixed compare on unsigned.
17226
17227         * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
17228         (packRegsForIYUse): Created and optimised.
17229
17230 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
17231
17232         * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
17233 2001-11-18  Bernhard Held  <bernhard AT bernhardheld.de>
17234
17235         * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
17236
17237         * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
17238
17239         * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
17240
17241 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
17242
17243         * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
17244
17245         * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
17246
17247 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
17248
17249         * sdcc/sim/ucsim/globals.cc: New: IXRAM.
17250
17251         * sdcc/sim/ucsim/stypes.h: New: IXRAM.
17252
17253         * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
17254
17255 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
17256
17257         * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
17258         (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
17259         (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
17260
17261         * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
17262
17263         * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
17264         (genNotFloat): Added.
17265         (genUminusFloat): Added.
17266
17267         * device/lib/z80/Makefile: Added floating pt stubs.
17268
17269         * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
17270
17271         * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
17272
17273         * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
17274
17275 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
17276
17277         * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
17278
17279         * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
17280
17281         * sdcc/support/regression/Makefile: Add port ds390.
17282
17283         * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
17284
17285         * sdcc/support/regression/ports/z80/spec.mk: Minor change.
17286
17287         * sdcc/support/regression/ports/ds390/spec.mk: Added.
17288
17289         * sdcc/support/regression/ports/ds390/support.c: Added.
17290
17291         * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
17292
17293         * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
17294
17295         * sdcc/support/regression/fwk/lib/timeout.c: Paste.
17296
17297 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
17298
17299         * device/include/malloc.h: Added z80 and gbz80 support.
17300
17301         * device/lib/gbz80/heap.s: Added.
17302
17303         * device/lib/z80/heap.s: Added.
17304
17305         * device/lib/malloc.c: Added z80 and gbz80 support.
17306
17307         * support/regression/tests/malloc.c (testMalloc): Added.
17308
17309         * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
17310
17311         * support/regression/tests/bug-478094.c: Added.
17312
17313         * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
17314
17315 2001-11-04  Bernhard Held  <bernhard AT bernhardheld.de>
17316
17317         * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
17318
17319         * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
17320
17321         * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
17322
17323         * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
17324
17325         * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
17326
17327 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
17328
17329         * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
17330
17331 2001-11-03  Michael Hope  <michaelh AT juju.net.nz>
17332
17333         * support/regression/tests/bug-477927.c: Added.
17334
17335         * src/z80/peeph.def: Added minor rules.
17336
17337         * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
17338
17339         * src/z80/peeph.def: Added jump optimisation modification.
17340
17341 2001-11-01  Michael Hope  <michaelh AT juju.net.nz>
17342
17343         * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
17344
17345 2001-10-30  Michael Hope  <michaelh AT juju.net.nz>
17346
17347         * support/regression/tests/funptrs.c: Added.
17348
17349 2001-10-29  Michael Hope  <michaelh AT juju.net.nz>
17350
17351         * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
17352
17353 2001-10-28  Michael Hope  <michaelh AT juju.net.nz>
17354
17355         * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
17356
17357         * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
17358
17359         * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
17360         (movLeft2ResultLong): Created.
17361
17362         * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
17363         (joinPushes): Added.  Joins two char pushes into a word push.
17364
17365 2001-10-27  Michael Hope  <michaelh AT juju.net.nz>
17366
17367         * support/cpp2/Makefile.in (install): Added creation of dest dir.
17368
17369         * support/makebin/Makefile (install): Added creation of dest dir.
17370
17371 2001-10-24 Karl Bongers <karl AT turbobit.com>
17372
17373         * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
17374
17375 2001-10-21  Michael Hope  <michaelh AT juju.net.nz>
17376
17377         * src/z80/ralloc.c: Turned off faulty pack for one use.
17378
17379         * src/z80/peeph-gbz80.def: Removed redundent restart options.
17380
17381         * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
17382
17383 2001-10-21  Bernhard Held  <bernhard AT bernhardheld.de>
17384
17385         * support/regression/Makefile: Improved clean
17386
17387         * support/regression/ports/gbz80/spec.mk: Added clean
17388
17389         * support/regression/ports/host/spec.mk: Added clean
17390
17391         * support/regression/ports/z80/spec.mk: Added clean
17392
17393         * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
17394
17395         * support/regression/ports/mcs51/timeout.c: little improvements
17396
17397 2001-10-17  Michael Hope  <michaelh AT juju.net.nz>
17398
17399         * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
17400
17401         * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
17402
17403         * support/regression/generate-cases.py: Fixed up to use function pts correctly.
17404
17405 2001-10-16  Bernhard Held  <bernhard AT bernhardheld.de>
17406
17407         * support/regression/port/mcs51/spec.mk: add timeout for uCsim
17408
17409         * support/regression/port/mcs51/timeout.c: add timeout for uCsim
17410
17411 2001-10-13  Michael Hope  <michaelh AT juju.net.nz>
17412         * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
17413
17414         * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
17415
17416         * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
17417
17418         * src/mcs51/main.c (_linkCmd): Added bin path to command.
17419
17420         * src/SDCCmain.c (initValues): Added support for when it it called just to link.
17421
17422         * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
17423
17424         * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
17425
17426         * support/regression/tests/longor.c: Added.
17427
17428 2001-10-11  Bernhard Held  <bernhard AT bernhardheld.de>
17429
17430         * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
17431
17432         * as/mcs51/aslink.h: define PATH_MAX
17433
17434         * as/mcs51/asm.h: define PATH_MAX
17435
17436         * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
17437
17438         * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
17439
17440         * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
17441
17442         * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
17443
17444         * src/SDCCglobl.h: define PATH_MAX
17445
17446         * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
17447
17448         * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
17449
17450 2001-10-11  Michael Hope  <michaelh AT juju.net.nz>
17451
17452         * src/z80/gen.c (gencjneshort): Fixed
17453
17454         * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
17455
17456 2001-10-09  Michael Hope  <michaelh AT juju.net.nz>
17457
17458         * support/regression/tests/bug-469671.c: Added.
17459
17460         * src/z80/gen.c (shiftIntoPair): Fixed up warning.
17461
17462 2001-10-08  Michael Hope  <michaelh AT juju.net.nz>
17463
17464         * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
17465
17466         * src/z80/gen.c (genPlus): Fixed to work with extended stack.  Also fixed genMinus, genCmp.  genUMinus is still left.
17467
17468 2001-10-08  Bernhar Held  <bernhard AT bernhardheld.de>
17469
17470         * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
17471
17472         * src/device/lib/_mulint.c  : removed hint: nooverlay bug
17473
17474         * src/device/lib/_mullong.c : removed hint: nooverlay bug
17475
17476         * src/device/lib/_divuint.c : removed hint: nooverlay bug
17477
17478         * src/device/lib/_divulong.c: removed hint: nooverlay bug
17479
17480         * src/device/lib/_moduint.c : removed hint: nooverlay bug
17481
17482         * src/device/lib/_modulong.c: removed hint: nooverlay bug
17483
17484 2001-10-07  Michael Hope  <michaelh AT juju.net.nz>
17485
17486         * 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.
17487
17488         * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.
17489
17490         * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
17491
17492 2001-10-07    <johan AT FRIJA>
17493
17494         * device/lib/gets.c (gets): fixed the return value.
17495
17496 2001-10-06  Michael Hope  <michaelh AT juju.net.nz>
17497         * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
17498
17499         * 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.
17500
17501         * 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.
17502
17503         * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
17504
17505         * src/pic/gen.c: Removed Safe_strdup.
17506
17507         * configure.in: Added option to enable libgc support.
17508
17509         * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
17510         (bitVectUnion): Optimised.
17511         (bitVectIntersect): Optimised.
17512         (bitVectBitsInCommon): Optimised.
17513         (bitVectCplAnd): Optimised.
17514
17515         * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.
17516
17517 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
17518
17519         * src/SDCCmain.c: distinguish between assembler debug and plain options
17520
17521         * src/avr/main.c:   remove standard assembler options
17522
17523         * src/ds390/main.c: remove standard assembler options
17524
17525         * src/mcs51/main.c: remove standard assembler options
17526
17527         * src/port.h: removed "PENDING" comment
17528
17529 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
17530
17531         * src/device/lib/_mulint.c  : new, with assember functions
17532
17533         * src/device/lib/_mullong.c : new, with assember functions
17534
17535         * src/device/lib/_divuint.c : with assember functions
17536
17537         * src/device/lib/_divsint.c : with assember functions
17538
17539         * src/device/lib/_divulong.c: with assember functions
17540
17541         * src/device/lib/_divslong.c: with assember functions
17542
17543         * src/device/lib/_moduint.c : with assember functions
17544
17545         * src/device/lib/_modsint.c : with assember functions
17546
17547         * src/device/lib/_modulong.c: with assember functions
17548
17549         * src/device/lib/_modslong.c: with assember functions
17550
17551         * src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c
17552
17553         * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
17554
17555         * src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
17556                                       replaced _mululong.c and _mulslong.c by _mullong.c
17557
17558 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
17559
17560         * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
17561
17562 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
17563
17564         * src/SDCCglue.c: test, if win32api is available for MINGW
17565
17566 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
17567
17568         * src/SDCCsymt.c: no more _modifier in printTypeChain()
17569         * support/regression/tests/driverstruct.c: REENTRANT for mcs51
17570         * support/regression/ports/gbz80/spec.mk: removed GENERIC
17571         * support/regression/ports/host/spec.mk: removed GENERIC
17572         * support/regression/ports/mcs51/spec.mk: removed GENERIC
17573         * support/regression/ports/z80/spec.mk: removed GENERIC
17574
17575 2001-10-01  Michael Hope  <michaelh AT juju.net.nz>
17576
17577         * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
17578
17579         * support/regression/tests/bug-467035.c: Created.
17580
17581 2001-10-01    <johan AT FRIJA>
17582
17583         * src/SDCC.y: fixed bug #466586 part 1
17584
17585 2001-10-01  Johan Knol <johan.knol AT iduna.nl>
17586
17587         * SDCCicode.c: z80 has no generic pointers
17588         * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
17589
17590 2001-09-30  Michael Hope  <michaelh AT juju.net.nz>
17591
17592         * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
17593
17594 2001-09-29  Michael Hope  <michaelh AT juju.net.nz>
17595
17596         * Makefile (sdcc-libs): Added makebin to the list of standard targets.
17597
17598         * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
17599
17600 2001-09-25  Michael Hope  <michaelh AT juju.net.nz>
17601
17602         * configure.in: Fixed up so that ucsim is only configured once.
17603
17604         * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
17605
17606         * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
17607         (getPathDifference): As above.
17608
17609         * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.
17610
17611         * src/SDCCglue.c (tempfilename): Added function for pre-processor.
17612
17613 2001-09-23  Michael Hope  <michaelh AT juju.net.nz>
17614         * .version: Updated to 2.3.1
17615
17616         * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
17617         Added copyright header.
17618
17619         * src/SDCCmain.c: Shifted various functions into SDCCutil.c
17620         (assemble): Added support for macro based assembler commands.
17621         (linkEdit): Added support for macro based linker commands.
17622         (preProcess): Changed the pre-processor to use macros.
17623         (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
17624         (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
17625
17626         * device/lib/z80/crt0.s: Added module name for debugging.
17627
17628 2001-09-20  Michael Hope  <michaelh AT juju.net.nz>
17629
17630         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
17631
17632         * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
17633
17634         * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
17635
17636         * src/Makefile.in: Added SDCCmacro and SDCCutil
17637
17638 2001-09-19  Michael Hope  <michaelh AT juju.net.nz>
17639
17640         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
17641
17642 2001-09-16    <johan AT FRIJA>
17643
17644         * 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.
17645
17646 2001-09-15    <johan AT FRIJA>
17647
17648         * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
17649         * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
17650
17651 2001-09-11    <johan AT FRIJA>
17652
17653         * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
17654
17655 2001-09-10  Michael Hope  <michaelh AT juju.net.nz>
17656
17657         * support/regression/tests/bug-460444.c: Added test case.
17658
17659         * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
17660         (genCast): Added justification for all of the asserts.
17661
17662 2001-09-10  Bernhard Held <bernhard AT bernhardheld.de>
17663
17664         * support/regression/support.c: _xdata replaced by xdata
17665
17666         * support/regression/spec.mk: removed _generic
17667
17668 2001-09-09  Michael Hope  <michaelh AT juju.net.nz>
17669
17670         * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
17671
17672         * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
17673         (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
17674
17675         * src/z80/peeph.def: Added a rule to optimise shift then compare.
17676
17677         * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
17678
17679         * support/regression/tests/bug-460010.c: Added test case.
17680
17681         * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
17682
17683 2001-09-09  Bernhard Held <bernhard AT bernhardheld.de>
17684
17685         * support/regression/Makefile: inter-port-clean adjusted for mcs51
17686
17687         * support/regression/testfwk.c: removed workaround for bug #436344
17688
17689         * support/regression/tests/bp.c: use less memory with mcs51
17690
17691         * support/regression/tests/bug-441448.c: use less memory
17692
17693         * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
17694
17695         * support/regression/collate-results.py: typo
17696
17697 2001-09-08  Michael Hope  <michaelh AT juju.net.nz>
17698
17699         * support/regression/tests/fetchoverlap.c: Added new test case.
17700
17701         * support/regression/tests/bp.c: Added new test case.
17702
17703         * support/regression/tests/bug-448984.c: Added new test case.
17704
17705         * support/regression/tests/pow2shifts.c: Added new test case.
17706
17707         * src/z80/gen.c: Turned off the noise it normally generates for the release.
17708         (genlshTwo): Fixed right shift for count > 8.
17709
17710         * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
17711
17712 2001-09-08    <johan AT FRIJA>
17713
17714         * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
17715
17716 2001-09-07    <johan AT FRIJA>
17717
17718         * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
17719
17720         * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
17721
17722 2001-09-06    <johan AT FRIJA>
17723
17724         * src/SDCC.y: this could be a fix for bug #458744 (1.37)
17725         * bernhard noted me at this: "() equals to (void)" (1.38)
17726
17727 2001-09-05    <johan AT FRIJA>
17728
17729         * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
17730
17731 2001-09-04    <johan AT FRIJA>
17732
17733         * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
17734
17735
17736 2001-09-04  Paul Stoffregen  <paul AT pjrc.com>
17737
17738         * pragma noinduction broke memcpy on mcs51 large model.  Moved it inside z80 optimization
17739
17740 2001-09-03  Michael Hope  <michaelh AT juju.net.nz>
17741
17742         * link/z80/aslink.h: Fixed path for PATH_MAX
17743
17744 2001-09-02  Michael Hope  <michaelh AT juju.net.nz>
17745
17746         * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
17747
17748         * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
17749
17750         * support/regression/tests/uminus.c: Added a test for the unary minus operator.
17751
17752         * 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.
17753
17754 2001-09-01  Michael Hope  <michaelh AT juju.net.nz>
17755
17756         * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
17757         (genCmp): Fixed up genCmp for the GB with longs.
17758
17759         * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
17760
17761         * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
17762
17763         * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
17764
17765         * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
17766
17767 2001-08-30  Paul Stoffregen  <paul AT pjrc.com>
17768
17769         * added peepholes 223 to 231 to mcs51 port.  These improve code when using large model.
17770
17771 2001-08-30  Michael Hope  <michaelh AT juju.net.nz>
17772
17773         * 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.
17774
17775         * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
17776
17777 2001-08-29  Michael Hope  <michaelh AT juju.net.nz>
17778
17779         * link/z80/aslink.h: Fixed long file name support.  Is now based off PATH_MAX instead of a constant.
17780
17781         * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
17782
17783 2001-08-30 Bernhard Held   <bernhard AT bernhardheld.de>
17784
17785         * sim/ucsim/configure:    little improvement of Cygwin-detection
17786         * sim/ucsim/configure.in: little improvement of Cygwin-detection
17787         * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
17788         * support/regression/tests/bug-221100.c: small changes for mcs51
17789         * support/regression/tests/bug-221168.c: small changes for mcs51
17790         * support/regression/tests/bug-227710.c: small changes for mcs51
17791         * support/regression/tests/staticinit.c: small changes for mcs51
17792         * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
17793         * as/mcs51/lklex.c:  accept everything as symbol name in rel-files, bug fix ID 452601
17794         * as/mcs51/lksym.c:  accept everything as symbol name in rel-files, bug fix ID 452601
17795
17796 $Revision$