* fixed GCC 4.4.0 mingw compilation:
[fw/sdcc] / ChangeLog
1 2009-04-27 Borut Razem <borut.razem AT siol.net>
2
3         * fixed GCC 4.4.0 mingw compilation:
4         * sim/ucsim/cmd.src/cmdlex.l: added #include <stdio.h>
5         * support/cpp/sdcpp-opts.c: fixed warning:
6           unknown conversion type character 'm' in format,
7           use strerror(errno) instead of %m glibc extension format specifier
8         * src/SDCCsymt.c: fixed warning:
9           suggest parentheses around operand of '!' or change '&' to '&&' or
10           '!' to '~'
11         * src/pic16/pcode.c, src/pic16/glue.c: fixed warning:
12           unknown conversion type character 'h' in format,
13           replaced hh printf format specifier with parameter casting to
14           unsigned char
15
16 support\cpp\sdcpp-opts.c
17
18 2009-04-19 Philipp Klaus Krause <pkk AT spth.de>
19         * device/lib/z80/shift.s,
20           device/lib/z80/memmove.s,
21           device/lib/z80/mul.s,
22           device/lib/z80/mulchar.s,
23           device/lib/z80/div.s,
24           device/lib/z80/mod.s:
25           Applied patch #2762516 from Marco Bodrato containing minor
26           improvementsof many Z80 asm routines.
27
28 2009-04-19 Philipp Klaus Krause <pkk AT spth.de>
29
30         * support/regression/tests/strtok.c,
31           support/regression/tests/strstr.c,
32           support/regression/tests/strspn.c,
33           support/regression/tests/strncmp.c,
34           support/regression/tests/strcpy.c,
35           support/regression/tests/strcmp.c:
36           Added some regression tests by Ruud van Silfhout from patch #2321830.
37
38 2009-04-13 Borut Razem <borut.razem AT siol.net>
39
40         * device/lib/Makefile.in, device/lib/ds390/Makefile.in,
41           device/lib/ds400/Makefile.in, device/lib/gbz80/Makefile.in,
42           device/lib/hc08/Makefile.in, device/lib/mcs51/Makefile.in,
43           device/lib/z80/Makefile.in: override PORTDIR in sub-makefiles
44
45 2009-04-13 Raphael Neider <rneider AT web.de>
46
47         * device/lib/pic16/bootstrap.sh: avoid symlinks
48         * device/lib/pic16/configure.ac,
49           device/lib/pic16/configure.gnu: removed obsolete configure-wrapper
50
51 2009-04-13 Borut Razem <borut.razem AT siol.net>
52
53         * device/lib/Makefile.in: remove abspath for PORTDIR, introduced in
54           svn revision #5341, since it makes asranlib to fail on cygming and
55           mingw builds: win32 native asranlib doesn't understand cygwin paths.
56
57 2009-04-10 Raphael Neider <rneider AT web.de>
58
59         * device/lib/pic/libsdcc/fs2ulong.c, device/lib/pic/libsdcc/fsadd.c,
60           device/lib/pic/libsdcc/fsdiv.c, device/lib/pic/libsdcc/fseq.c,
61           device/lib/pic/libsdcc/fsgt.c, device/lib/pic/libsdcc/fslt.c,
62           device/lib/pic/libsdcc/fsmul.c, device/lib/pic/libsdcc/fsneq.c,
63           device/lib/pic/libsdcc/fssub.c, device/lib/pic/libsdcc/ulong2fs.c,
64           device/lib/pic16/libsdcc/float/fs2ulong.c,
65           device/lib/pic16/libsdcc/float/fsadd.c,
66           device/lib/pic16/libsdcc/float/fsdiv.c,
67           device/lib/pic16/libsdcc/float/fsmul.c: fixed pic14 libraries, merge
68           changes from the pic16 port, minor code cleanup
69         * src/pic/gen.c: implemented genUminusFloat(), fixed warning and style
70
71 2009-04-09 Philipp Klaus Krause <pkk AT spth.de>
72
73         * device/lib/z80/mod.s,
74           device/lib/z80/Makefile.in,
75           device/lib/z80/div.s,
76           device/lib/z80/modsigned.s,
77           device/lib/z80/divsigned.s:
78           Applied patch #2741451 from Marco Bodrato
79           and moved functions for signed modulo into
80           separate file.
81
82 2009-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
83
84         * src/mcs51/peeph.def: disabled rule 270, fixing bug #2736282
85
86 2009-04-04 Philipp Klaus Krause <pkk AT spth.de>
87
88         * src/z80/gen.c,
89           src/z80/peeph-z80.def:
90           Improved caching of pointers in hl and iy.
91           device/lib/z80/div.s:
92           Applied patch #2727917 from Marco Bodrato.
93
94 2009-04-03 Philipp Klaus Krause <pkk AT spth.de>
95
96         * src/z80/ralloc.c:
97           Enabled use of hl as inter-i-code temporary.
98
99 2009-04-03 Philipp Klaus Krause <pkk AT spth.de>
100
101         * src/z80/peeph-z80.def:
102           Reenabled peephole 0t.
103
104 2009-04-03 Philipp Klaus Krause <pkk AT spth.de>
105
106         * src/z80/gen.c:
107           Fixed bugs #2728224, #2728218.
108           src/z80/peeph-z80.def:
109           Workaround for bug #2728445.
110           support/regression/tests/memory.c:
111           Added test for memcmp().
112
113 2009-04-03 Philipp Klaus Krause <pkk AT spth.de>
114
115         * device/lib/z80/mul.s,
116           device/lib/z80/memmove.s,
117           device/lib/z80/strlen.s:
118           Minor improvements, code cleanup and license clarification.
119
120 2009-04-01 Philipp Klaus Krause <pkk AT spth.de>
121
122         * device/lib/z80/mul.s: 
123           Minor improvement in Z80 16x16 bit multiplication.
124
125 2009-03-23 Borut Razem <borut.razem AT siol.net>
126
127         * src/SDCCval.c, src/SDCCmain.c, device/include/limits.h,
128           device/include/pic/limits.h, device/include/pic16/limits.h,
129           device/lib/_fs2schar.c, device/lib/pic/libsdcc/fs2schar.c,
130           device/lib/pic16/libsdcc/float/fs2schar.c, doc/sdccman.lyx,
131           support/regression/tests/funsigned-char.c:
132           applied patch 2704189: character constant sign fix
133           thanks to Robert Larice
134
135 2009-03-22 Borut Razem <borut.razem AT siol.net>
136
137         * Small Device C Compiler 2.9.0 released
138         * .version, doc/sdccman.lyx: changed sdcc version to 2.9.1
139
140 2009-03-15 Borut Razem <borut.razem AT siol.net>
141
142         * support/scripts/repack_release.sh: added
143
144 2009-03-13 Borut Razem <borut.razem AT siol.net>
145
146         * doc/sdccman.lyx: "freeware" replaced with "free open source"
147
148 2009-03-12 Borut Razem <borut.razem AT siol.net>
149
150         * src/z80/peep.c: #2652979: --debug crashes sdcc
151
152 2009-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
153
154         * src/SDCCglue.c,
155           support/regression/tests/bug2655200.c:
156           applied modified patch from Robert Larice <larice AT vidisys.de>
157           fixing original report of bug #2655200: pointer to pdata memory
158           not correctly initialized
159
160 2009-03-11 Borut Razem <borut.razem AT siol.net>
161
162         * as/asranlib/asranlib.c: retain the original file mode
163
164 2009-03-10 Borut Razem <borut.razem AT siol.net>
165
166         * src/mcs51/gen.c, src/z80/gen.c, src/hc08/gen.c, src/ds390/gen.c,
167           support/regression/tests/bug1875933.c:
168           fixed bug #1875933: Evelyn jumps into the void
169           thanks to Robert Larice
170
171 2009-03-10 Raphael Neider <rneider AT web.de>
172
173         * src/pic16/pcode.c (LinkFlow): fix invalid cast from pCodeLabel
174           to pCodeInstruction to avoid a segmentation fault
175
176 2009-03-03 Borut Razem <borut.razem AT siol.net>
177
178         * device/lib/printf_large.c: fixed bug #2656821: bug in printf
179
180 2009-03-03 Raphael Neider <rneider AT web.de>
181
182         * device/lib/pic/libdev/Makefile.in: build device-specific
183           libraries for the correct processor, fixes #2654585
184
185 2009-03-01 Raphael Neider <rneider AT web.de>
186
187         * device/lib/Makefile.in: fixed parallel builds (i.e., make -jN, N>1)
188
189 2009-03-01 Borut Razem <borut.razem AT siol.net>
190
191         * src/z80/peep.c: fixed bug #2648964: --i-code-in-asm crashes sdcc
192         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
193           changed sdcc version to 2.9.0
194
195 2009-03-01 Maarten Brock <sourceforge.brock AT dse.nl>
196
197         * src/mcs51/ralloc.c (spillThis, spilSomething): fixed bug 2435941
198           (serialRegAssign): do not spil bit registers
199           throughout cosmetic changes
200         * support/regression/tests/bug2435941.c: new, added
201
202 2009-02-28 Raphael Neider <rneider AT web.de>
203
204         * src/regression/compare10.c,
205           src/regression/compare7.c,
206           src/regression/compare8.c,
207           src/regression/compare9.c: reset watchdog timer in time
208         * src/regression/configword.c: apply patch from #2488150
209         * src/pic/glue.c (pic14createInterruptVect): pin RESET vector
210           handler to 0x0000 as the linker no longer knows STARTUP sections
211         * src/pic/pcode.c (register_reassign, ReuseReg): applied modified
212           patch #2512926 to (mostly) fix #1762626, cosmetic changes
213         * src/pic/pcodepeep.c: remove reference to nonexisting function
214
215 2009-02-28 Raphael Neider <rneider AT web.de>
216
217         * device/include/pic16/signal.h: avoid multiline inline
218           assembler statements in macros, addresses #2644965
219
220 2009-02-27 Raphael Neider <rneider AT web.de>
221
222         * device/include/pic16/pic18f[24][3456]k20.h,
223           device/include/pic16/pic18f[68][567]j50.h,
224           device/include/pic16/pic18f[68]6j55.h,
225           device/lib/pic16/libdev/pic18f[24][3456]k20.c,
226           device/lib/pic16/libdev/pic18f[68][567]j50.c,
227           device/lib/pic16/libdev/pic18f[68]6j55.c,
228           device/include/pic16/pic18fregs.h,
229           device/include/pic16/pic16devices.txt,
230           device/lib/pic16/pics.all,
231           device/lib/pic16/libdev/Makefile.am,
232           device/lib/pic16/libio/Makefile.am: added/re-enabled many device
233           families (87j50 family contributed by Robert Wuest)
234
235         * device/include/pic16/adc.h,
236           device/lib/pic16/libio/adc/adcbusy.c,
237           device/lib/pic16/libio/adc/adcclose.c,
238           device/lib/pic16/libio/adc/adcconv.c,
239           device/lib/pic16/libio/adc/adcopen.c,
240           device/lib/pic16/libio/adc/adcsetch.c: added 65j50-style ADC
241
242         * doc/sdccman.lyx: updated list of supported devices, fixed typo
243         * device/lib/pic16/Makefile.common: do not suppress assembler warnings
244
245         * device/lib/pic16/Makefile.in,
246           device/lib/pic16/libm/Makefile.in,
247           device/lib/pic16/debug/Makefile.in,
248           device/lib/pic16/libio/Makefile.in,
249           device/lib/pic16/startup/Makefile.in,
250           device/lib/pic16/libsdcc/Makefile.in,
251           device/lib/pic16/libdev/Makefile.in,
252           device/lib/pic16/libc/Makefile.in: regenerated
253
254 2009-02-27 Borut Razem <borut.razem AT siol.net>
255
256         * as/z80/asexpr.c, as/z80/z80mch.c: re-fixed bugs
257           #1829678 and #1704376 in the way proposed by Alan Baldwin
258
259 2009-02-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
260
261         * device/include/mcs51/at89c51ed2.h: Fixed address of SFR P5. Thanks
262           to Steve Qu for the fix.
263
264 2009-02-23 Borut Razem <borut.razem AT siol.net>
265
266         * as/z80/asexpr.c: fixed bug #1829678: Z-80 CP A,<xxx> assembly
267           it is already fixed for mcs51 and hc08 targets
268         * as/z80/z80mch.c: fixed bug #1704376: missing as-z80 errors
269
270 2009-02-22 Borut Razem <borut.razem AT siol.net>
271
272         * device/lib/Makefile.in: fixed parenthesis error
273         * doc/sdccman.lyx: fixed webdocs bug #2071421: error in the manual,
274           fixed webdocs bug #1967920: --version
275
276 2009-02-18 Maarten Brock <sourceforge.brock AT dse.nl>
277
278         * device/include/mcs51/at89c51ed2.h: fixed bug #2071949 bitmask RBCK wrong
279
280 2009-02-17 Maarten Brock <sourceforge.brock AT dse.nl>
281
282         * as/link/mcs51/lkihx.c (hexRecord): bugfix do not insert extended address
283           when addresses are unsorted
284
285 2009-02-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
286
287         * device/include/mcs51/p89v66x.h: added ENBOOT thanks
288           Gudjon Gudjonsson <gudjon AT gudjon.org>
289         * device/include/mcs51/p89c66x.h: fixed some defines
290         * device/include/mcs51/p89v66x.h: fixed some sbit addresses
291         * doc/sdccman.lyx: added <NO FLOAT> to index, try to reanimate
292           svn keywords
293
294 2009-02-14 Borut Razem <borut.razem AT siol.net>
295
296         * doc/sdccman.lyx: corrected cpp info
297
298 2009-02-13 Borut Razem <borut.razem AT siol.net>
299
300         * as/Makefile.in: *.doc renamed to *.txt
301
302 2009-02-11 Borut Razem <borut.razem AT siol.net>
303
304         * as/doc/aslnk.doc, as/doc/abstra.doc: renamed to *.txt
305         * as/doc/aslnk.txt, as/doc/asxhtml.html: changed licens to GPLv3
306
307 2009-02-11 Borut Razem <borut.razem AT siol.net>
308
309         * doc/sdccman.lyx: documented ar format libraries
310
311 2009-02-10 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
312
313         * support/regression/tests/float_single.c: added regression
314           test. Some testpoints for probably rarely used functions
315           (acosf, sinhf, tanf, expf) disabled for some targets
316
317 2009-02-10 Raphael Neider <rneider AT web.de>
318
319         * src/pic16/gen.c (pic16_freeAsmop): avoid NULL pointer dereference,
320           (genAssign): fixed for operands on the stack
321
322         * device/lib/pic16/libc/stdio/vfprintf.c,
323           device/lib/pic16/configure.ac,
324           device/lib/pic16/Makefile.common: add configurable support for
325           printing floats via ./configure --enable-floats
326         * device/lib/pic16/configure,
327           device/lib/pic16/Makefile.in,
328           device/lib/pic16/libm/Makefile.in,
329           device/lib/pic16/debug/Makefile.in,
330           device/lib/pic16/libio/Makefile.in,
331           device/lib/pic16/startup/Makefile.in,
332           device/lib/pic16/libsdcc/Makefile.in,
333           device/lib/pic16/libdev/Makefile.in,
334           device/lib/pic16/libc/Makefile.in: regenerated
335         * doc/sdccman.lyx: documented float support and how to get it
336         * doc/Makefile.in: fixed race condition on parallel builds
337
338         * device/lib/pic16/libc/stdio/sprintf.c,
339           device/lib/pic16/libc/stdio/vsprintf.c: do not mess up the user's
340           pointer to the string buffer, enlarge buffer for x_ftoa()
341
342 2009-02-10 Borut Razem <borut.razem AT siol.net>
343
344         * device/lib/printf_tiny.c: replaced non-C89 comments '//' with '/* */'
345
346 2009-02-10 Raphael Neider <rneider AT web.de>
347
348         * device/include/pic16/pic18f*.h: add bit aliases in INTCONbits_t
349
350 2009-02-09 Raphael Neider <rneider AT web.de>
351
352         * src/pic16/pcode.c (assignToSameBank): add force argument to ignore
353           artificial bank size limits for compound data (structs, arrays),
354           avoids assert if --obanksel=N, N > 1, is given
355
356 2009-02-09 Borut Razem <borut.razem AT siol.net>
357
358         * as/asranlib/asranlib.c, link/lkar.c: don't check the padding bytes since
359           the openSUSE GNU ar (GNU Binutils; openSUSE 11.0) 2.18.50.20080409-11.1
360           uses '`' character instead '\n' for padding
361         * as/asranlib/asranlib.c: made it more robust
362
363 2009-02-08 Borut Razem <borut.razem AT siol.net>
364
365         * as/COPYING3: added
366         * support/scripts/sdcc.nsi: added COPYING3.txt to the package
367         * device/lib/Makefile.in: reenable floating point in model-xstack-auto
368           libraries
369
370 2009-02-07 Borut Razem <borut.razem AT siol.net>
371
372         * as/asranlib/asranlib.c: fixed BSD header length calculation
373         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.9
374           due sdcc asxxxx license change to GPLv3
375
376 2009-02-05 Borut Razem <borut.razem AT siol.net>
377
378         * as/asranlib/asranlib.c, link/lkar.h, link/lkar.c:
379           added support for BSD (Mac OS X) ar format
380         * as/asxxsrc/aslex.c, as/as/asxxsrc/asnoice.c, as/as/asxxsrc/assym.c,
381           as/as/hc08/asdata.c, as/hc08/asexpr.c, as/hc08/aslist.c,
382           as/hc08/asm.h, as/hc08/asmain.c, as/hc08/asout.c, as/hc08/assubr.c,
383           as/hc08/m08adr.c, as/hc08/m08ext.c, as/hc08/m08mch.c,
384           as/hc08/m08pst.c, as/hc08/m6808.h, as/link/aslink.h,
385           as/link/hc08/lkarea.c, as/link/hc08/lkelf.c, as/link/hc08/lkihx.c,
386           as/link/hc08/lkmain.c, as/link/hc08/lkmem.c, as/link/hc08/lkrloc.c,
387           as/link/hc08/lks19.c, as/link/lkaomf51.c, as/link/lkdata.c,
388           as/link/lkeval.c, as/link/lkhead.c, as/link/lklex.c, as/link/lklib.c,
389           as/link/lklibr.c, as/link/lklibr.h, as/link/lklist.c,
390           as/link/lknoice.c, as/link/lkrel.c, as/link/lkrel.h,
391           as/link/lksdcclib.c, as/link/lkstore.c, as/link/lksym.c,
392           as/link/mcs51/lkarea.c, as/link/mcs51/lkihx.c,
393           as/link/mcs51/lkmain.c, as/link/mcs51/lkmem.c,
394           as/link/mcs51/lkrloc.c, as/link/mcs51/lks19.c, as/link/z80/lkarea.c,
395           as/link/z80/lkgb.c, as/link/z80/lkgg.c, as/link/z80/lkihx.c,
396           as/link/z80/lkmain.c, as/link/z80/lkrloc.c, as/link/z80/lks19.c,
397           as/mcs51/asdata.c, as/mcs51/asexpr.c, as/mcs51/aslist.c,
398           as/mcs51/asm.h, as/mcs51/asmain.c, as/mcs51/asout.c,
399           as/mcs51/assubr.c, as/mcs51/i51adr.c, as/mcs51/i51ext.c,
400           as/mcs51/i51mch.c, as/mcs51/i51pst.c, as/mcs51/i8051.h,
401           as/xa51/xa_link.c, as/xa51/xa_main.c, as/xa51/xa_main.h,
402           as/xa51/xa_rasm.l, as/xa51/xa_rasm.y, as/xa51/xa_version.h,
403           as/z80/asdata.c, as/z80/asexpr.c, as/z80/aslist.c, as/z80/asm.h,
404           as/z80/asmain.c, as/z80/asout.c, as/z80/assubr.c, as/z80/z80.h,
405           as/z80/z80adr.c, as/z80/z80ext.c, as/z80/z80mch.c, as/z80/z80pst.c:
406           changed license to GPL either version 3, or (at your option) any
407           later version
408
409 2009-02-05 Borut Razem <borut.razem AT siol.net>
410
411         * as/asranlib/asranlib.c, link/lkar.h, link/lkar.c:
412           added support for BSD (Mac OS X) ar format
413
414 2009-02-02 Borut Razem <borut.razem AT siol.net>
415
416         * device/lib/gbz80/Makefile.in, device/lib/hc08/Makefile.in,
417           device/lib/z80/Makefile.in:
418           chose source files in the PORT directory if they are available
419
420 2009-02-01 Raphael Neider <rneider AT web.de>
421
422         * device/lib/pic16/libdev/pic18f1220.c,
423         * device/lib/pic16/libdev/pic18f4450.c:
424           define SSPBUF to allow use of printf
425
426 2009-02-01 Borut Razem <borut.razem AT siol.net>
427
428         * device/lib/Makefile.in, device/lib/gbz80/Makefile.in,
429           device/lib/hc08/Makefile.in, device/lib/incl.mk,
430           device/lib/z80/Makefile.in:
431           don't remake libraries
432         * support/regression/tests/snprintf.c:
433           reenable floating point in small-xstack-auto library
434
435 2009-01-26 Raphael Neider <rneider AT web.de>
436
437         * src/pic16/ralloc.c (packForPush): disabled to fix #2496919
438
439 2009-01-25 Raphael Neider <rneider AT web.de>
440
441         * src/pic16/main.c (_pic16_linkEdit): prepend -L paths to linker
442           search path instead of appending them
443
444 2009-01-24 Borut Razem <borut.razem AT siol.net>
445
446         * as/asranlib/asranlib.h: changed type of offset to unsigned int to
447           make it work on ppc Mac OS X (off_t is 64 bit and is not converted
448           to 32 bit unsigned int when calling sputl() since it is a macro
449         * as/link/lkar.c: changed the initialization of This->loaded
450
451 2009-01-23 Borut Razem <borut.razem AT siol.net>
452
453         * as/link/lkar.h: changed type of ar_size to size_t to make it work on
454           ppc Mac OS X (off_t is 64 bit and is not converted to 32 bit
455           unsigned int when calling new(), since asxxxx doesn't use function
456           prototypes)
457
458 2009-01-21 Borut Razem <borut.razem AT siol.net>
459
460         * as/link/lkar.h: sgetl and sputl are independent of endianness
461         * as/link/sdxxxx_config.h.in: removed endianness detection
462
463 2009-01-20 Borut Razem <borut.razem AT siol.net>
464
465         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.8
466           due creation of ar format libraries
467         * support/scripts/sdcc.nsi:
468           don't add nonexistent object files to the package
469
470 2009-01-19 Borut Razem <borut.razem AT siol.net>
471
472         * Makefile.in, configure.in, configure,
473           device/lib/Makefile.in, device/lib/ds390/Makefile.in,
474           device/lib/ds400/Makefile.in, device/lib/gbz80/Makefile.in,
475           device/lib/hc08/Makefile.in, device/lib/large/Makefile.in,
476           device/lib/mcs51/Makefile.in, device/lib/medium/Makefile.in,
477           device/lib/small/Makefile.in,
478           device/lib/z80/Makefile.in: create ar format libraries
479         * support/regression/ports/mcs51-xstack-auto/spec.mk:
480           use device/lib/Makefile to create library
481         * support/regression/tests/snprintf.c:
482           floating point is not enabled in small-xstack-auto library
483         * device/lib/libfloat.lib, device/lib/libint.lib,
484           device/lib/liblong.lib, device/lib/libsdcc.lib: removed
485
486 2009-01-18 Borut Razem <borut.razem AT siol.net>
487
488         * support/cpp/auto-host.h: fixed warning: "__STDC__" redefined,
489           warning: extra tokens at end of #endif directive
490
491 2009-01-11 Borut Razem <borut.razem AT siol.net>
492
493         * Makefile.in: added SDCC_ASRANLIB to PKGS
494
495 2009-01-10 Borut Razem <borut.razem AT siol.net>
496
497         * support/scripts/sdcc.nsi: added asranlib.exe to the install package
498         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.7
499           due added support for ar format libraries
500
501 2009-01-09 Borut Razem <borut.razem AT siol.net>
502
503         * as/asranlib/Makefile.in, as/asranlib/asranlib.dsp,
504           as/asranlib/asranlib.c: added asranlib
505         * as/link/lkar.c, as/link/lkar.h: added support for ar format libraries
506         * Makefile.in, as/link/hc08/Makefile.in,
507           as/link/hc08/link_hc08.dsp, as/link/lklib.c, as/link/lklibr.c,
508           as/link/lklibr.h, as/link/lkrel.c, as/link/lkrel.h,
509           as/link/lksdcclib.c, as/link/mcs51/Makefile.in,
510           as/link/mcs51/aslink.dsp, as/link/z80/Makefile.in,
511           as/link/z80/linkgbz80.dsp, as/link/z80/linkz80.dsp, configure,
512           configure.in, sdcc.dsw: modified to support ar format libraries
513
514 2009-01-08 Maarten Brock <sourceforge.brock AT dse.nl>
515
516         * src/SDCCast.c (decorateType RETURN): use RESULT_TYPE_GPTR for generic
517           pointer return
518
519 2009-01-05 Philipp Klaus Krause <pkk AT spth.de>
520
521         * sim/ucsim/z80.src/inst_ed.cc:
522           Fixed bug #2488074, which made regression tests fail.
523
524 2009-01-05 Philipp Klaus Krause <pkk AT spth.de>
525
526         * device/lib/z80/mod.s,
527           device/lib/z80/div.s,
528           device/lib/z80/mulchar.s,
529           device/lib/z80/mul.s,
530           device/lib/z80/divsigned.s,
531           device/lib/z80/Makefile.in:
532           Implemented RFE #1702376.
533
534 2009-01-05 Borut Razem <borut.razem AT siol.net>
535
536         * as/link/lksdcclib.c:
537           fixed linker hanging in INDEXLIB is not defined (hc08)
538
539 2009-01-04 Philipp Klaus Krause <pkk AT spth.de>
540
541         * src/z80/gen.c:
542           Implemented RFE #2485684, and some further improvements of HL caching
543           including a bugfix.
544         * src/z80/peeph-z80.def:
545           Fixed a bug exposed by implementing RFE #2485684.
546
547 2009-01-04 Philipp Klaus Krause <pkk AT spth.de>
548
549         * src/z80/peeph-z80.def:
550           Peephole improvements.
551         * src/z80/gen.c,
552           src/z80/main.c,
553           device/include/string.h,
554           device/lib/z80/memmove.s:
555           Minor code cleanup.
556         * device/lib/z80/Makefile.in,
557           device/lib/Makefile.in,
558           support/regression/tests/memory.c,
559           device/lib/z80/strlen.s:
560           Partially implemented RFE #2471534.
561
562 2009-01-04 Borut Razem <borut.razem AT siol.net>
563
564         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.6
565           due changes in sdcc asxxxx linkers - it sholud be done 2 days ago :(
566         * doc/README.txt: updated John Hartman's e-mail address
567         * as/link/lkrel.c, as/link/lksdcclib.c:
568           fixed bug #2484677: Linker hangs
569         * src/z80/peep.c: fixed msvc warning C4047:
570           'return' : 'int ' differs in levels of indirection from 'char *'
571         * config.dsp: as/lib corrected to as/link
572
573 2009-01-04 Philipp Klaus Krause <pkk AT spth.de>
574
575         * src/z80/peep.c:
576           Implemented RFE #2484693.
577         * src/z80/peeph-z80.def:
578           Some peephole improvements.
579
580 2009-01-03 Borut Razem <borut.razem AT siol.net>
581
582         * as/link/lklibr.c:
583           fixed warning: 'ret' may be used uninitialized in this function
584
585 2009-01-02 Borut Razem <borut.razem AT siol.net>
586
587         * as/link/lklib.c, as/link/lksdcclib.c, as/link/lklibr.h,
588           as/link/getline.[ch], as/link/lkrel.[ch]: added,
589           made support for differnet library formats more flexible,
590           preparation for support of ar format
591         * as/link/lklibr.c, as/link/z80/Makefile.in,
592           as/link/z80/linkgbz80.dsp, as/link/z80/linkz80.dsp,
593           as/link/hc08/link_hc08.dsp, as/link/hc08/Makefile.in,
594           as/link/mcs51/aslink.dsp, as/link/mcs51/Makefile.in,
595           as/link/hc08/lkelf.c, as/link/aslink.h:
596           made support for differnet library formats more flexible,
597           preparation for support of ar format
598
599 2009-01-01 Borut Razem <borut.razem AT siol.net>
600
601         * as/link/asxxxx_config.h.in:
602           fixed warning: extra tokens at end of #endif directive
603         * src/z80/peep.c:
604           fixed warning: suggest parentheses around && within ||
605         * device/lib/Makefile.in: allow whitespaces at the end of lines in
606           ports.build, in order to make it work on cygwin - it seems to be a
607           bug in cygwin grep: CR is not treated as part of end-of-line
608
609 2008-12-31 Borut Razem <borut.razem AT siol.net>
610
611         * configure, configure.in, config.dsp, config_vc.awk,
612           as/link/asxxxx_config.h.in, as/link/hc08/lkelf.c, as/link/aslink.h,
613           as/link/hc08/Makefile.in, as/link/mcs51/Makefile.in:
614           introduced asxxxx_config.h.in
615
616 2008-12-30 Philipp Klaus Krause <pkk AT spth.de>
617
618         * src/z80/gen.c,
619           src/z80/peeph-z80.def:
620           Minor addition improvement.
621
622 2008-12-30 Raphael Neider <rneider AT web.de>
623
624         * as/link/hc08/lkelf.c, as/link/lkaomf51.c, as/link/lklibr.c,
625           as/link/z80/lkgb.c, debugger/mcs51/cmd.c, sim/ucsim/utils.cc,
626           src/SDCCasm.c, support/Util/dbuf_string.c, support/cpp/c-ppoutput.c,
627           support/cpp/libcpp/lex.c, support/cpp/libcpp/macro.c,
628           support/librarian/sdcclib.c, support/makebin/makebin.c:
629           partially revert changes from r5293..r5295
630
631 2008-12-29 Philipp Klaus Krause <pkk AT spth.de>
632
633         * src/z80/peeph-z80.def:
634           Minor peephole improvement.
635
636 2008-12-29 Raphael Neider <rneider AT web.de>
637
638         * src/pic/pcode.c (insertBankSel, FixRegisterBanking): emit
639           incorrectly discarded BANKSELs
640
641 2008-12-29 Philipp Klaus Krause <pkk AT spth.de>
642
643         * support/regression/tests/memory.c:
644           Added simple test for memset(), memcpy() and memmove()
645
646 2008-12-29 Borut Razem <borut.razem AT siol.net>
647
648         * sdcc/support/scripts/sdcc.nsi: removed $INSTDIR\lib\src\z80\*.c
649
650 2008-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
651
652         * src/mcs51/peeph.def (177.e): replaced notVolatile(%3) with
653           operandsNotRelated(%1 %3), had to change (a)r%1 to (a)%1 for this to work
654           (177.j): added new rule
655         * src/SDCCsymt.h: added RESULT_TYPE_GPTR
656         * src/SDCCast.c (processParms): use RESULT_TYPE_GPTR for generic ptr parms,
657           (decorateType CAST): propagate storage class to generic pointer results
658
659 2008-12-27 Philipp Klaus Krause <pkk AT spth.de>
660
661         * device/lib/z80/string.c,
662           device/lib/z80/printf.c,
663           device/lib/z80/mul.s:
664           z80 library cleanup
665         * src/z80/gen.c:
666           Fixed code generation bug exposed by builtin memcpy().
667
668 2008-12-27 Philipp Klaus Krause <pkk AT spth.de>
669
670         * device/lib/_memcpy.c:
671           fixed conflict with builtin memcpy()
672
673 2008-12-26 Borut Razem <borut.razem AT siol.net>
674
675         * support/librarian/sdcclib.c:
676           fixed bug 2466950: "sdcclib broken"
677           by removing fgets return value check
678
679 2008-12-26 Philipp Klaus Krause <pkk AT spth.de>
680         * src/z80/main.c,
681           src/z80/gen.c,
682           device/include/string.h: Implemented RFE #1914254
683
684 2008-12-26 Philipp Klaus Krause <pkk AT spth.de>
685         * device/lib/z80/Makefile.in,
686           device/lib/Makefile.in,
687           device/lib/z80/memmove.s: Implemented RFE #1914256
688
689 2008-12-26 Philipp Klaus Krause <pkk AT spth.de>
690
691         * src/z80/peeph-z80.def: fixed a bug in peephole 0zf
692         * src/z80/peep.c: improved checks for unused data
693         * src/z80/gen.c,
694           src/z80/main.c: Implemented RFE #1899189
695
696 2008-12-25 Borut Razem <borut.razem AT siol.net>
697
698         * support/regression/Makefile.in:
699           add -I$(INC_DIR) to SDCCFLAGS only if INC_DIR is defined
700
701 2008-12-25 Philipp Klaus Krause <pkk AT spth.de>
702
703         * src/z80/peeph-z80.def: minor peephole improvements
704
705 2008-12-21 Borut Razem <borut.razem AT siol.net>
706
707         * support/librarian/sdcclib.c: fixed build failure on Mac OS X
708           due to redefinition of symbol __assert
709           sdcclib.c:53:1:warning: "__assert" redefined
710           /Xcode2.5/SDKs/MacOSX10.4u.sdk/usr/include/assert.h:80:1:
711           warning: this is the location of the previous definition
712
713 2008-12-20 Raphael Neider <rneider AT web.de>
714
715         * debugger/mcs51/break.c, debugger/mcs51/cmd.c,
716           debugger/mcs51/simi.c, debugger/mcs51/symtab.c,
717           support/cpp/libcpp/macro.c: fix format string errors
718
719         * sim/ucsim/s51.src/timer2.cc: add clarifying parens
720
721         * src/pic/device.c: partial rewrite using strtok,
722           quieten compiler warnings, adopt SDCC coding style
723
724         * as/link/hc08/lkelf.c, as/link/lkaomf51.c, as/link/lklibr.c,
725           as/link/z80/lkgb.c, as/z80/asout.c, debugger/mcs51/cmd.c,
726           sim/ucsim/utils.cc, src/SDCCasm.c, support/Util/dbuf_string.c,
727           support/cpp/c-ppoutput.c, support/cpp/libcpp/lex.c,
728           support/librarian/sdcclib.c, support/makebin/makebin.c:
729           quieten most compiler warnings
730
731         * sim/ucsim/avr.src/arith_inst.cc: quieten compiler warnings,
732           probably fix operator precedence bug
733
734         * doc/clean.mk: quieten rm if no .lyx is present
735
736 2008-12-19 Borut Razem <borut.razem AT siol.net>
737
738         * doc/sdccman.lyx, doc/random-notes.txt, doc/avr/avr_design.txt,
739           doc/TININative.txt, doc/macro-sys-design.txt, doc/libdoc.txt,
740           doc/README.txt, doc/test_suite_spec.lyx:
741           applied patch 2446381: Dcoumentation spelling correcitons
742           thanks to Steven Borley
743
744 2008-12-16 Raphael Neider <rneider AT web.de>
745
746         * device/include/pic/pic12f629.h,
747           device/include/pic/pic12f675.h,
748           device/lib/pic/libdev/pic12f629.c,
749           device/lib/pic/libdev/pic12f675.c: consolidated, added TRISIO bits
750
751 2008-12-14 Borut Razem <borut.razem AT siol.net>
752
753         * doc/sdccman.lyx, cdbfileformat.lyx, test_suite_spec.lyx:
754           converted to LyX 1.5.7 (\lyxformat 276) format
755
756 2008-12-07 Borut Razem <borut.razem AT siol.net>
757
758         * support/regression/tests/bitfields.c:
759           added test case for bug #2366757
760
761 2008-12-07 Raphael Neider <rneider AT web.de>
762
763         * src/pic16/glue.c (pic16_printIvalBitFields): prevent
764           NULL pointer dereference, closes #2366757
765
766 2008-11-25 Raphael Neider <rneider AT web.de>
767
768         * device/include/pic16/pic16devices.txt,
769           sdcc/src/pic16/device.c,
770           sdcc/src/pic16/device.h: implicitly disable XINST
771           whenever CONFIG4L is set via an additional optional
772           argument to the configword directive in pic16devices.txt
773
774 2008-11-24 Raphael Neider <rneider AT web.de>
775
776         * device/lib/pic16/configure.ac,
777           device/lib/pic16/Makefile.common: fixed quoting issues
778
779         * device/lib/pic16/configure,
780           device/lib/pic16/debug/Makefile.in,
781           device/lib/pic16/libc/Makefile.in,
782           device/lib/pic16/libdev/Makefile.in,
783           device/lib/pic16/libio/Makefile.in,
784           device/lib/pic16/libm/Makefile.in,
785           device/lib/pic16/libsdcc/Makefile.in,
786           device/lib/pic16/Makefile.in,
787           device/lib/pic16/startup/Makefile.in: regenerated
788
789         * src/pic16/main.c (_pic16_finaliseOptions): revert to
790           variant of r5216
791
792 2008-11-24 Raphael Neider <rneider AT web.de>
793
794         * src/pic16/main.c (_pic16_finaliseOptions): do not quote the
795           argument of --asm= or --link= to allow for
796           --asm="sh script --options", the user can double quote the
797           argument if needed: --asm="'c:/program files/gpasm' -q",
798           also fix some potential buffer overflows
799
800 2008-11-19 Borut Razem <borut.razem AT siol.net>
801
802         * doc/sdccman.lyx:
803           fixed 2314467: sdccman.lyx: fix "--" in command line parameters
804           thanks Mauro Giachero
805
806 2008-11-16 Borut Razem <borut.razem AT siol.net>
807
808         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.5
809         * doc/sdccman.lyx: documented fixed unnamed bit-field initialization
810
811 2008-11-15 Borut Razem <borut.razem AT siol.net>
812
813         * src/pic16/glue.c, src/SDCC.y, src/SDCCast.c, src/SDCCglue.c,
814           src/SDCCsymt.c, src/SDCCsymt.h:
815           fixed RFE #2291335 : Unnamed bit-field initialization
816         * support/regression/tests/bitfields.c:
817           added test case for RFE #2291335
818         * support/regression/tests/bug-1981238.c:
819           don't initialize unnamed bit-fields
820
821 2008-11-11 Raphael Neider <rneider AT web.de>
822
823         * device/include/pic16/pic18f25j10.h,
824           device/include/pic16/pic18f45j10.h: remove useless boilerplate
825
826         * device/include/pic16/adc.h,
827           device/lib/pic16/libio/adc/adcbusy.c,
828           device/lib/pic16/libio/adc/adcclose.c,
829           device/lib/pic16/libio/adc/adcconv.c,
830           device/lib/pic16/libio/adc/adcopen.c,
831           device/lib/pic16/libio/adc/adcread.c,
832           device/lib/pic16/libio/adc/adcsetch.c: generalized, documented,
833           and fixed ADC routines to work for more target devices,
834           incorporates patch #2036130 by Nick Materer
835
836 2008-11-10 Steven Borley <steven.borley AT partnerelectronics.com>
837
838         * device/include/ctype.h,
839         * device/include/ds400rom.h,
840         * device/include/ds80c390.h,
841         * device/include/float.h,
842         * device/include/math.h,
843         * device/include/serial.h,
844         * device/include/stdbool.h,
845         * device/include/tinibios.h: replaced non-C89 '//' with '/* */',
846           patch 2195343
847         * device/include/mcs51/C8051F336.h,
848         * device/include/mcs51/C8051T600.h,
849         * device/include/mcs51/C8051T610.h,
850         * device/include/mcs51/C8051T630.h: new, added, patch 2183334
851           (svn commit by Maarten Brock <sourceforge.brock AT dse.nl>)
852
853 2008-11-10 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
854
855         * device/include/mcs51/P89LPC922.h: fixed #2255989, thanks kubi57
856
857 2008-11-10 Raphael Neider <rneider AT web.de>
858
859         * device/lib/pic16/libdev/mkmk.sh: obey pics.all
860         * device/lib/pic16/libio/mkmk.sh: properly match whole lines in
861           .ignore files, fixes IO libs for 18f242, 18f252, 18f442, and 18f452
862           (patch by Nick Materer, #2253980)
863
864         * device/lib/pic16/libio/adc.ignore,
865           device/lib/pic16/libio/i2c.ignore,
866           device/lib/pic16/libio/usart.ignore,
867           device/lib/pic16/pics.all: updated to build more device libs
868
869         * device/lib/pic16/libdev/Makefile.am,
870           device/lib/pic16/libdev/Makefile.in,
871           device/lib/pic16/libio/Makefile.am,
872           device/lib/pic16/libio/Makefile.in: regenerated
873
874         * src/pic16/device.c (pic16_dump_usection): fixed output of multiple
875           names per memory location, applied SDCC style to more functions
876
877 2008-11-09 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
878
879         * device/include/mcs51/p89lpc933_4.h: new NXP header file
880         * device/include/mcs51/p89lpc935_6.h: new NXP header file
881         * device/include/mcs51/p89v66x.h: minor changes
882           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
883
884 2008-11-09 Raphael Neider <rneider AT web.de>
885
886         * device/include/pic/pic14devices.txt: fixed memory description for
887           12f629 and 12f675, closes #2236240
888
889 2008-11-06 Borut Razem <borut.razem AT siol.net>
890
891         * src/SDCCmain.c: fixed bug #2224960: sdcc -MM no working correctly
892           pass system include paths with -isystem to sdcpp
893         * src/SDCCglue.c, src/pic/glue.c, src/pic16/glue.c: removed unneeded
894           functions (closePipes), (closeTmpFiles) and (rmTmpFiles)
895
896 2008-11-02 Raphael Neider <rneider AT web.de>
897
898         * doc/sdccman.lyx: updated the sections on the library build process
899           and on how to add support for new devices, and documented known
900           problems with the extended instruction set including a workaround
901
902 2008-11-01 Raphael Neider <rneider AT web.de>
903
904         * device/include/pic16/adc.h,
905           device/include/pic16/pic16devices.txt,
906           device/include/pic16/pic18f2410.h,
907           device/include/pic16/pic18f2510.h,
908           device/include/pic16/pic18f2515.h,
909           device/include/pic16/pic18f2610.h,
910           device/include/pic16/pic18f4410.h,
911           device/include/pic16/pic18f4510.h,
912           device/include/pic16/pic18f4515.h,
913           device/include/pic16/pic18f4610.h,
914           device/include/pic16/pic18fregs.h,
915           device/lib/pic16/libdev/Makefile.am,
916           device/lib/pic16/libdev/Makefile.in,
917           device/lib/pic16/libdev/pic18f2410.c,
918           device/lib/pic16/libdev/pic18f2510.c,
919           device/lib/pic16/libdev/pic18f2515.c,
920           device/lib/pic16/libdev/pic18f2610.c,
921           device/lib/pic16/libdev/pic18f4410.c,
922           device/lib/pic16/libdev/pic18f4510.c,
923           device/lib/pic16/libdev/pic18f4515.c,
924           device/lib/pic16/libdev/pic18f4610.c,
925           device/lib/pic16/libio/Makefile.am,
926           device/lib/pic16/libio/Makefile.in,
927           device/lib/pic16/pics.all: added support for 18f[24][456]10
928           and 18f[24]515 devices
929         * doc/sdccman.lyx: updated list of supported PIC16 devices
930
931         * src/pic/glue.c, src/pic/pcode.c, src/pic/pcodeflow.c,
932           src/pic16/glue.c, src/pic16/pcode.c, src/pic16/pcodeflow.c,
933           src/xa51/gen.c: avoid compiler warnings
934         * support/scripts/inc2h-pic16.pl: removed trailing whitespace
935
936 2008-10-22 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
937
938         * device/include/mcs51/p89v66x.h: NXP header file
939         * device/include/mcs51/p89c66x.h: fixed an SBIT definition
940           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
941
942 2008-10-14 Raphael Neider <rneider AT web.de>
943
944         * device/lib/pic16/libdev/Makefile.am,
945           device/lib/pic16/libio/Makefile.am: enable building libraries for
946           18f2321, 18f4321, 18f2523, 18f4620, 18f66j60, 18f66j65, 18f67j60,
947           18f86j60, 18f86j65, 18f87j60, 18f96j60, 18f96j65, and 18f97j60
948         * device/lib/pic16/libdev/Makefile.in,
949           device/lib/pic16/libio/Makefile.in: regenerated
950
951 2008-10-14 Raphael Neider <rneider AT web.de>
952
953         * device/include/pic16/pic18f2450.h,
954           device/include/pic16/pic18f4450.h,
955           device/lib/pic16/libdev/pic18f2450.c,
956           device/lib/pic16/libdev/pic18f4450.c,
957           device/include/pic16/adc.h,
958           device/include/pic16/pic16devices.txt,
959           device/include/pic16/pic18fregs.h,
960           device/lib/pic16/libdev/Makefile.am,
961           device/lib/pic16/libdev/Makefile.in,
962           device/lib/pic16/libio/Makefile.am,
963           device/lib/pic16/libio/Makefile.in,
964           device/lib/pic16/pics.all: added 18f2450 and 18f4450, closes #1844525
965
966         * device/lib/pic16/libsdcc/stack/stack.S: there is no need to pin the
967           stack to a fixed location, relax it to automatically work with all
968           but the smallest devices (256 byte RAM devices need #pragma stack)
969
970 2008-10-09 Maarten Brock <sourceforge.brock AT dse.nl>
971
972         * debugger/mcs51/break.c: bugfix from patch 1989966, thanks Risto Huotari
973         * debugger/mcs51/simi.c: bugfix from patch 1989972, thanks Risto Huotari
974         * device/lib/_strcspn.c: fixed bug 2140931
975
976 2008-10-06 Raphael Neider <rneider AT web.de>
977
978         * device/include/pic16/stdio.h,
979           device/lib/pic16/libc/stdio/putchar.c: putchar should not be
980           declared __naked for convenience, named all arguments
981         * device/lib/pic16/libc/stdio/strmgpsim.c,
982           device/lib/pic16/libc/stdio/strmmssp.c,
983           device/lib/pic16/libc/stdio/strmusart.c: cosmetic changes
984
985         * src/pic16/pcode.c (createReachingDefinitions): avoid segfault on
986           empty __naked functions,
987         * (pCodeLabelDestruct, pic16_unlinkpCode, pic16_pCodeUnlink): fix
988           corner cases (unlink first/last pCode in list), reuse more code
989
990 2008-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
991
992         * src/ds390/main.c (_ds390_genInitStartup): added
993         * src/SDCCpeeph.c (getPatternVar): new, added,
994           (labelInRange): fixed bug 2115959
995         * src/mcs51/peeph.def (rules 193.x to 198.x): check for labelInRange
996         * src/SDCCicode.h: added newiTempOperand
997         * src/SDCCcse.c (algebraicOpts): fixed bug for x*-1,
998           added optimizations for 0/x and x/-1, see also patch 2142900
999         * support/regression/tests/onebyte.c (testMul): added test cases
1000
1001 2008-09-20 Borut Razem <borut.razem AT siol.net>
1002
1003         * src/pic16/glue.c:
1004           definition of absolute address symbols without initial value,
1005           fixed SDCC crash "do not know how to intialize symbol"
1006
1007 2008-09-16 Maarten Brock <sourceforge.brock AT dse.nl>
1008
1009         * device/lib/z80/mul.s (__mulsuchar_rrx_s, __muluschar_rrx_s),
1010         * device/lib/z80/div.s (__divsuchar_rrx_s, __modsuchar_rrx_s,
1011           __divuschar_rrx_s, __moduschar_rrx_s): added mixed signedness versions
1012         * device/lib/z80/stubs.s: added stubs for above functions
1013         * src/SDCCopt.c (convilong),
1014         * src/SDCCsymt.c (initCSupport): fixed bug 1900961
1015         * src/SDCCsymt.h (__muldiv): enlarged for mixed signedness
1016         * src/z80/main.c (_hasNativeMulFor): fixed bug, I think
1017         * support/regression/tests/onebyte.c: enabled all tests for z80
1018
1019 2008-09-15 Borut Razem <borut.razem AT siol.net>
1020
1021         * device/include/pic16/stdio.h, device/lib/pic16/libc/stdio/streams.c,
1022           device/lib/pic16/libc/stdio/printf.c,
1023           device/lib/pic16/libc/stdio/strmusart.c,
1024           device/lib/pic16/libc/stdio/printf_tiny.c,
1025           device/lib/pic16/libc/stdio/sprintf.c,
1026           device/lib/pic16/libc/stdio/strmgpsim.c,
1027           device/lib/pic16/libc/stdio/putchar.c,
1028           device/lib/pic16/libc/stdio/fprintf.c,
1029           device/lib/pic16/libc/stdio/strmmssp.c,
1030           device/device/lib/pic16/libc/stdio/vprintf.c,
1031           device/lib/pic16/libc/stdio/printf_small.c,
1032           device/lib/pic16/libc/stdio/vsprintf.c,
1033           device/lib/pic16/libc/stdio/strmputchar.c,
1034           device/lib/pic16/libc/Makefile.am,
1035           device/lib/pic16/libc/Makefile.in:
1036           *printf now returns int, puchar.c moved from stdlib to stdio,
1037           *printf format parameter type changed from char * to const char *,
1038           added GNU link excetion text to library source files,
1039           applyed GNU coding style, removed useless svn ids,
1040           added BINARY_SPECIFIER macro re-enables the use of the removed 'b'
1041           binary specifier: "%b", "%hb" and "%lb"
1042         * device/lib/pic16/libc/stdio/vfprintf.c:
1043           applied patch #2044424: PIC16: vfprintf
1044           thanks Mauro Giachero
1045         * support/regression/tests/bug1057979.c:
1046           removed old pic16 sprintf specifics
1047         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.4
1048         * doc/sdccman.lyx: documented 'b' binary format specifier removal
1049
1050 2008-09-15 Raphael Neider <rneider AT web.de>
1051
1052         * src/pic16/device.c (pic16_dump_usection): force udata sections
1053           into the addressable range (0..0xFFF), workaround for a gpsim
1054           bug preventing simulation of regtest bug1750318
1055         * src/pic16/ralloc.c (deassignLRs): cosmetic changes,
1056           (serialRegAssign): fixed regtest bug-971834,
1057           (pic16_packRegisters): avoid null-pointer dereference
1058
1059 2008-09-14 Raphael Neider <rneider AT web.de>
1060
1061         * src/pic16/gen.c, src/pic16/ralloc.c: use
1062           SYM_SPIL_LOC/SPIL_LOC macros, no functional changes
1063         * src/pic16/ralloc.c (rematStr): reimplemented, fixes #1818857
1064
1065 2008-09-12 Borut Razem <borut.razem AT siol.net>
1066
1067         * support/regression/fwk/testfwk.h:
1068           define pdata as data for pic16 target
1069           thanks Mauro Giachero
1070
1071 2008-09-11 Borut Razem <borut.razem AT siol.net>
1072
1073         * support/regression/tests/bug-221100.c, support/regression/shifts.c,
1074           support/regression/absolute.c:
1075           applied patch #2105615: Some PIC16 testcase fixlets
1076           thanks Mauro Giachero
1077
1078 2008-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
1079
1080         * src/z80/gen.c (genCmpGt, genCmpLt): fixed bug 2094505
1081         * support/regression/tests/bug2094505.c: new, added
1082
1083 2008-09-07 Borut Razem <borut.razem AT siol.net>
1084
1085         * src/SDCCglue.c, src/SDCCast.c:
1086           fixed throw of "excess elements" warning for char arrays
1087         * support/regression/tests/nullstring.c:
1088           disable warning about excess elements in array of chars initializer
1089
1090 2008-09-07 Maarten Brock <sourceforge.brock AT dse.nl>
1091
1092         * as/z80/aslist.c (lstsym): changed old K&R to ANSI
1093         * src/SDCCicode.c (geniCodeCritical): fixed bug for hc08
1094         * src/z80/gen.c (genCritical, genEndCritical): fixed bug 2077267
1095         * support/regression/tests/bug2077267.c: new, added
1096
1097 2008-09-05 Raphael Neider <rneider AT web.de>
1098
1099         * configure.in, Makefile.common.in: add support for ccache,
1100           remove spurious $VERSION output, detect doc-tools even without
1101           --enable-doc to facilitate later manual doc-builds, minor cleanup
1102         * configure: regenerated
1103
1104         * doc/Makefile.in: quieten pdflatex, makeindex, and latex2html,
1105           avoid races in parallel VPATH builds
1106         * doc/clean.mk: remove .lyx files in the builddir for VPATH builds
1107         * doc/sdccman.lyx: mention --without-ccache configure option
1108
1109 2008-09-01 Raphael Neider <rneider AT web.de>
1110
1111         * src/pic16/gen.c (pic16_derefPtr): handle CPOINTERs as well
1112         * (genConstPointerGet): fix reading bitfields from __code space
1113         * src/pic16/glue.c (pic16_printIvalBitFields): correctly mask
1114           bitfield initializers (fix regression test bug1856409.c)
1115         * (pic16_printIvalCharPtr,pic16_printIvalPtr): generalized to support
1116           arbitrary sizes
1117
1118 2008-08-31 Raphael Neider <rneider AT web.de>
1119
1120         * src/pic16/gen.c (genAssign): removed useless compiler output
1121         * (genPointerGet,genPointerSet,genCast),
1122           src/pic16/glue.c (pic16_printGPointerType):
1123           also handle PPOINTERs just to avoid spurious asserts
1124         * (pic16_printIvalType,pic16_printIvalBitFields):
1125           generalized to arbitrary type/bitfield sizes, allows compilation of
1126           regression test bug-1981238.c
1127         * (pic16_printIvalChar): fix regression test structflexarray.c
1128         * (pic16_printIvalArray): avoid SIGSEGV on uninitialized strings
1129           in initialized structs and fix #1843745
1130         * (pic16_printIvalStruct): always output initializers for all fields,
1131           even those not explicitly given, fixes zeropad.c regression test
1132         * (pic16_printIvalUnion): fix union initializers (bug1426356.c,
1133           #2073635, #1567098, and #1485812)
1134         * src/pic16/main.c (_pic16_keywords): remove unsupported 'pdata'
1135
1136 2008-08-31 Borut Razem <borut.razem AT siol.net>
1137
1138         * support/regression/tests/bug-895992.c,
1139           support/regression/tests/onebyte.c:
1140           enabled pic16 regression testing since the bugs
1141           1511794: pic16: regression test bug-895992.c fails
1142           1444425: onebyte.c regression tes fails on pic16
1143           are fixed, probably by fixing
1144           2048464: PIC16: fix genUminus - addresses not.c regression test
1145         * src/SDCCsymt.c, src/SDCCglue.c,
1146           support/regression/tests/bug-1981238.c:
1147           applied patch 2076664: fix #1981238 + SIGSEGV in SDCCGlue.c
1148           thanks to RvS
1149
1150 2008-08-30 Borut Razem <borut.razem AT siol.net>
1151
1152         * support/cpp/libcpp/files.c: SDCPP synchronized with GCC CPP
1153           release version 4.3.2
1154
1155 2008-08-24 Raphael Neider <rneider AT web.de>
1156
1157         * device/lib/pic16/configure, device/lib/pic16/configure.ac:
1158           always use the sdcc from the current build tree (ignore $CC from
1159           the environment, fixes compile farm builds)
1160         * device/lib/Makefile.in: rename .a into .lib for compatibility,
1161           remove more build products from install directory
1162         * sdcc/src/pic16/main.c (_pic16_linkEdit,_pic16_finaliseOptions)
1163         * sdcc/support/scripts/sdcc.nsi: revert to .lib extension for libs
1164
1165 2008-08-24 Borut Razem <borut.razem AT siol.net>
1166
1167         * src/SDCC.y: applied patch
1168           2050245: Fix # 1963382
1169           for bug
1170           1963382: Listing File - C file comment is incorrect
1171           thanks to RvS
1172
1173 2008-08-23 Borut Razem <borut.razem AT siol.net>
1174
1175         * src/pic16/gen.c: applied patch
1176           2048464: PIC16: fix genUminus - addresses not.c regression test
1177           thanks Mauro Giachero
1178
1179 2008-08-22 Borut Razem <borut.razem AT siol.net>
1180
1181         * device/lib/pic16/configure, device/lib/pic16/configure.ac,
1182           src/pic16/main.c: allow spaces in gpasm and gplink paths
1183
1184 2008-08-15 Philipp Klaus Krause <pkk AT spth.de>
1185
1186         * src/z80/peep.c,
1187         * src/z80/peeph-z80.def: minor peephole improvement
1188
1189 2008-08-15 Raphael Neider <rneider AT web.de>
1190
1191         * src/z80/gen.c (_vemit2): suppress compiler warning
1192
1193         * src/pic/*.[ch]: make proper use of header files and avoid
1194           ad-hoc extern declarations, mark module-local helpers 'static',
1195           removed dead/replaced code, no functional changes
1196         * src/pic16/pcode.c: disentangled from pic14 backend
1197
1198 2008-08-14 Philipp Klaus Krause <pkk AT spth.de>
1199
1200         * src/z80/gen.c: fixed #2051348
1201         * support/regression/tests/bug-2051348.c: regression test for #2051348
1202
1203 2008-08-10 Raphael Neider <rneider AT web.de>
1204
1205         * configure.in,
1206         * Makefile.common.in: export PACKAGE for $docdir,
1207           fixes #1957036, avoid some "underquoted definition" warnings
1208         * configure: regenerated
1209
1210 2008-08-10 Raphael Neider <rneider AT web.de>
1211
1212         * device/lib/pic16/**: build pic16 library using autotools for
1213           improved dependency tracking
1214
1215         * device/lib/Makefile.in,
1216         * src/pic16/main.c,
1217         * support/scripts/sdcc.nsi: adapt to changes in filenames (s/.lib/.a/)
1218
1219 2008-08-10 Raphael Neider <rneider AT web.de>
1220
1221         * src/pic/pcode.c (ReuseReg): do not overlay the registers used for
1222           local variables if --nooverlay is given, workaround for #2023121
1223
1224 2008-08-08 Raphael Neider <rneider AT web.de>
1225
1226         * src/pic16/genarith.c (genAddLit): fix structure access (#1888004)
1227
1228 2008-08-08 Raphael Neider <rneider AT web.de>
1229
1230         * src/pic/pcoderegs.c,
1231         * src/pic/pcode.c,
1232         * src/pic16/pcode.c: replace own SAFE_snprintf with common SNPRINTF
1233
1234 2008-08-07 Borut Razem <borut.razem AT siol.net>
1235
1236         * src/SDCCval.c, src/SDCCmain.c, src/SDCC.lex,
1237           device/lib/pic/Makefile.rules, device/lib/ds390/Makefile.in,
1238           device/lib/ds400/Makefile.in, device/lib/hc08/Makefile.in,
1239           support/cpp/libcpp/lex.c,  doc/sdccman.lyx:
1240           applied modified patch 2038174: Add support for binary constants v2
1241           thanks Mauro Giachero
1242         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.3
1243
1244 2008-08-04 Raphael Neider <rneider AT web.de>
1245
1246         * doc/sdccman.lyx,
1247         * src/pic16/device.h,
1248         * src/pic16/glue.c,
1249         * src/pic16/main.c: enable --optimize-goto by default
1250
1251         * device/lib/pic16/Makefile.common.in: suppress removed option
1252
1253         * src/pic16/gen.c,
1254         * src/pic16/genutils.c: avoid too long relative branches (#2031890)
1255
1256 2008-07-30 Borut Razem <borut.razem AT siol.net>
1257
1258         * src/pic16/device.c, src/pic16/glue.c, src/pic16/pcode.c:
1259           applied patch 22032433: PIC16: fix constant strings,
1260           thanks Mauro Giachero
1261
1262 2008-07-29 Borut Razem <borut.razem AT siol.net>
1263
1264         * src/pic16/gen.c: applied patches:
1265           2030306: [1/3] PIC16: fix failing rotate.c tests on 16-bit variables,
1266           2030307: [2/3] PIC16: fix failing rotate.c tests for 32-bit var (1),
1267           2030310: [3/3] PIC16: fix failing rotate.c tests for 32-bit var (2),
1268           thanks Mauro Giachero
1269
1270 2008-07-13 Philipp Klaus Krause <pkk AT spth.de>
1271
1272         * src/port.h: Fixed typo in comment
1273
1274 2008-07-12 Philipp Klaus Krause <pkk AT spth.de>
1275
1276         * src/z80/mappings.i: Implemented RFE #1919415
1277         * src/z80/peeph-z80.def: Implemented RFE #1919415, #1861376,
1278           #1880202, #1914434, prepared for RFE #1703943
1279
1280 2008-07-12 Philipp Klaus Krause <pkk AT spth.de>
1281
1282         * src/z80/peeph.def,
1283         * src/z80/peeph-z80.def,
1284         * src/z80/peeph-gbz80.def: separate Z80 from GBZ80 peepholes in
1285           preparation for Z80 peephole improvements
1286
1287 2008-06-21 Raphael Neider <rneider AT web.de>
1288
1289         * device/include/pic16/pic18f66j60.h,
1290         * device/include/pic16/pic18f66j65.h,
1291         * device/include/pic16/pic18f67j60.h,
1292         * device/include/pic16/pic18f86j60.h,
1293         * device/include/pic16/pic18f86j65.h,
1294         * device/include/pic16/pic18f87j60.h,
1295         * device/include/pic16/pic18f96j60.h,
1296         * device/include/pic16/pic18f96j65.h,
1297         * device/include/pic16/pic18f97j60.h,
1298         * device/lib/pic16/libdev/pic18f66j60.c,
1299         * device/lib/pic16/libdev/pic18f66j65.c,
1300         * device/lib/pic16/libdev/pic18f67j60.c,
1301         * device/lib/pic16/libdev/pic18f86j60.c,
1302         * device/lib/pic16/libdev/pic18f86j65.c,
1303         * device/lib/pic16/libdev/pic18f87j60.c,
1304         * device/lib/pic16/libdev/pic18f96j60.c,
1305         * device/lib/pic16/libdev/pic18f96j65.c,
1306         * device/lib/pic16/libdev/pic18f97j60.c,
1307         * device/include/pic16/pic16devices.txt,
1308         * device/include/pic16/pic18fregs.h,
1309         * device/lib/pic16/pics.all: added new devices
1310
1311         * device/include/pic16/adc.h,
1312         * device/lib/pic16/libio/adc/adcbusy.c,
1313         * device/lib/pic16/libio/adc/adcopen.c,
1314         * device/lib/pic16/libio/adc/adcsetch.c,
1315         * device/lib/pic16/libio/i2c/i2copen.c,
1316         * device/lib/pic16/libio/usart/uopen.c: adapted to new devices,
1317           all changes from a patch by Anton Strobl
1318
1319 2008-06-12 Borut Razem <borut.razem AT siol.net>
1320
1321         * sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/bp.cc,
1322           sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
1323           sim/ucsim/z80.src/z80cl.h, sim/ucsim/z80.src/z80.cc,
1324           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
1325           sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
1326           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/uc390.cc,
1327           sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/uc390cl.h,
1328           sim/ucsim/avr.src/avrcl.h, sim/ucsim/avr.src/avr.cc:
1329           fixed bug 1990586: s51 simulator, uc::disass() unimplemented
1330           by applying the modified patch from Risto Huotari
1331
1332 2008-06-04 Maarten Brock <sourceforge.brock AT dse.nl>
1333
1334         * .version,
1335         * doc/sdccman.lyx: bumped sdcc version to 2.8.2
1336         * src/ds390/gen.c (aopPutUsesAcc, genAddrOf): fixed bug 1015185
1337         * src/mcs51/gen.c (genNearPointerGet, genNearPointerSet): fixed bug 1938300
1338         * support/regression/tests/bug1938300.c: new, added
1339
1340 2008-06-03 Maarten Brock <sourceforge.brock AT dse.nl>
1341
1342         * device/include/asm/ds390/features.h,
1343         * device/include/asm/mcs51/features.h,
1344         * device/include/mcs51/regc515c.h: inserted LGPL notice
1345
1346 2008-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
1347
1348         * device/lib/gbz80/div.s,
1349         * device/lib/z80/div.s: fixed bug 1904314 by applying a modified part of
1350           patch 1597883, Thanks Robert Ramey
1351
1352 2008-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
1353
1354         * src/SDCCast.c (createIvalType, createIvalStruct, createIvalArray,
1355           createIvalCharPtr, createIvalPtr, createIval),
1356         * src/SDCCval.h
1357         * src/SDCCval.c (convertIListToConstList, list2expr): handle incomplete
1358           initializers for local auto variables
1359         * support/regression/tests/zeropad.c: added testcase for auto initializers
1360
1361 2008-05-26 Raphael Neider <rneider AT web.de>
1362
1363         * device/lib/pic16/startup/crt0.c,
1364         * device/lib/pic16/startup/crt0i.c,
1365         * device/lib/pic16/startup/crt0iz.c: clean up, make use of access bank
1366           explicit, fixed curr_entry loop for >= 256 initializer records,
1367           removed debug code (write to 0xf7e)
1368
1369 2008-05-25 Raphael Neider <rneider AT web.de>
1370
1371         * device/include/pic/pic16f627a.h,
1372         * device/include/pic/pic16f628a.h,
1373         * device/include/pic/pic16f648a.h: added missing ports
1374
1375 2008-05-20 Maarten Brock <sourceforge.brock AT dse.nl>
1376
1377         * device/include/float.h: added __INFINITY
1378         * device/lib/_fsadd.c: handle overflows
1379         * device/lib/_fsmul.c,
1380         * device/lib/_fsdiv.c: use __INFINITY
1381         * device/lib/_fseq.c,
1382         * device/lib/_fsneq.c: handle -0.0
1383         * sim/ucsim/s51.src/uc89c51r.cc,
1384         * sim/ucsim/s51.src/uc89c51rcl.h: fixed bug 1385430
1385         * sim/ucsim/sim.src/hwcl.h: */* confuses VC
1386         * src/mcs51/gen.c (genSend): fixed bug with --xstack
1387         * support/regression/ports/mcs51-xstack-auto/spec.mk: print floats
1388         * support/regression/tests/snprintf.c: test bug with --xstack
1389
1390 2008-05-19  Philipp Klaus Krause <pkk AT spth.de>
1391
1392         * src/SDCCpeeph.c (callFuncByName):
1393           Support nested parenthesis in peephole function arguments (#1967300)
1394
1395 2008-05-19 Raphael Neider <rneider AT web.de>
1396
1397         * src/pic16/gen.c (pic16_emitpLabel,pic16_emitpLabelFORCE):
1398           fixed duplicate labels (#1911325)
1399
1400 2008-05-19 Raphael Neider <rneider AT web.de>
1401
1402         * src/regression/empty.c: suppress warning
1403         * src/regression/pointer1.c: enabled index_by_pointer()
1404         * src/regression/inline.c: now works for pic16 as well
1405
1406         * src/pic16/device.c: include dbuf declarations
1407         * src/pic16/device.h: removed obsolete prototypes
1408
1409         * src/pic16/gen.c, src/pic16/gen.h: moved generic pointer tags
1410         * src/pic16/glue.c: made purely local functions static,
1411           (pic16_printGPointerType, pic16_printIvalCharPtr,
1412           pic16_printIvalFuncPtr, pic16_printIvalPtr): fixed initialized
1413           generic pointers' tags (#1961866)
1414
1415         * src/pic16/pcode.c (assignValnums): optimize literal assignments
1416
1417 2008-05-19 Borut Razem <borut.razem AT siol.net>
1418
1419         * support/scripts/sdcc.nsi: remove uninstall.exe after uninstallation,
1420           fixed typo, uninstall include/pic16/pic16devices.txt
1421
1422 2008-05-18 Borut Razem <borut.razem AT siol.net>
1423
1424         * support/Utils/dbuf_string.[ch]: added dbuf_chomp(),
1425           the buffer is null terminated
1426         * src/device/pic16.c:
1427           applied modified patch 1965676: Patch for Win32 16 bit PIC
1428         * sdcc_vc_in.h: defined YY_NO_UNISTD_H
1429
1430 2008-05-16 Maarten Brock <sourceforge.brock AT dse.nl>
1431
1432         * src/SDCC.lex (check_type),
1433         * src/SDCC.y (type_specifier2 TYPE_NAME): fixed bug 1925942
1434         * as/hc08/clean.mk,
1435         * as/mcs51/clean.mk,
1436         * as/z80/clean.mk: also clean *.dep
1437         * device/lib/pic16/libsdcc/stack/Makefile,
1438         * sim/ucsim/libtool: removed as they are rebuild by configure
1439         * src/clean.mk: removed izt, so Makefile is not deleted for distclean
1440
1441 2008-05-13 Maarten Brock <sourceforge.brock AT dse.nl>
1442
1443         * src/SDCCast.c (fixupInline, createFunction): save currBlockno in
1444           fixupInline instead of createFunction to fix bug 1864577
1445           (inlineFindMaxBlockno): removed, use global blockNo
1446         * src/SDCCglobl.h: added blockNo
1447         * src/z80/peep.c,
1448         * src/z80/peep.h: modified properties
1449         * support/regression/tests/bug1864577.c: new, added
1450
1451 2008-05-07 Maarten Brock <sourceforge.brock AT dse.nl>
1452
1453         * as/mcs51/asdata.c,
1454         * as/mcs51/asm.h: added org_cnt
1455         * as/mcs51/asmain.c (main, asmbl): fixed bug 1957716, changed old K&R to ANSI
1456         * as/mcs51/asout.c: changed old K&R to ANSI
1457         * as/mcs51/Makefile.in: use common identifiers
1458         * as/hc08/asdata.c,
1459         * as/hc08/asexpr.c,
1460         * as/hc08/asm.h,
1461         * as/hc08/asmain.c,
1462         * as/hc08/asout.c,
1463         * as/hc08/Makefile.bcc,
1464         * as/hc08/Makefile.in: synchronized with as/mcs51/*
1465         * sdcc_vc_in.h: added define __func__
1466         * src/SDCCast.c (expandInlineFuncs): applied patch 1957148 to fix bug 1717305,
1467           Thanks Ruud van Silfhout
1468         * support/regression/tests/bug1717305.c: new, added
1469
1470 2008-05-05 Borut Razem <borut.razem AT siol.net>
1471
1472         * support/regression/Makefile.in,
1473           support/regression/ports/ds390/spec.mk,
1474           support/regression/ports/hc08/spec.mk,
1475           support/regression/ports/mcs51-common/spec.mk,
1476           support/regression/ports/pic14/spec.mk,
1477           support/regression/ports/pic16/spec.mk,
1478           support/regression/ports/ucz80/spec.mk,
1479           support/regression/ports/z80/spec.mk:
1480           added INC_DIR and LIBDIR paths
1481         * src/ds390/gen.c: removed duplicated selicolon
1482
1483 2008-05-04 Borut Razem <borut.razem AT siol.net>
1484
1485         * support/regression/Makefile.in,
1486           support/regression/fwk/lib/testfwk.c,
1487           support/regression/ports/ds390/spec.mk,
1488           support/regression/ports/hc08/spec.mk,
1489           support/regression/ports/mcs51-common/spec.mk,
1490           support/regression/ports/mcs51-large/spec.mk,
1491           support/regression/ports/mcs51-medium/spec.mk,
1492           support/regression/ports/mcs51-small/spec.mk,
1493           support/regression/ports/mcs51-stack-auto/spec.mk,
1494           support/regression/ports/mcs51-xstack-auto/spec.mk,
1495           support/regression/ports/pic14/spec.mk,
1496           support/regression/ports/pic16/spec.mk,
1497           support/regression/ports/ucz80/spec.mk:
1498           added possibility to define the sdcc binary directory SDCC_BIN_PATH
1499           used to run regeression tests
1500
1501 2008-05-01 Raphael Neider <rneider AT web.de>
1502
1503         * doc/sdccman.lyx, support/scripts/inc2h-pic16.pl: updated list of
1504           supported devices and instructions to add new ones
1505
1506 2008-05-01 Raphael Neider <rneider AT web.de>
1507
1508         * device/include/pic16/adc.h,
1509           device/lib/pic16/libio/adc/adcbusy.c,
1510           device/lib/pic16/libio/adc/adcopen.c,
1511           device/lib/pic16/libio/adc/adcsetch.c: support old 18f242 and new
1512           18f2455 style ADC devices, based on patch #1776197
1513         * device/lib/pic16/libio/adc/adcclose.c,
1514           device/lib/pic16/libio/adc/adcconv.c,
1515           device/lib/pic16/libio/adc/adcread.c: cosmetic changes
1516         * device/include/pic16/{pic18f2331.h,pic18f2431.h},
1517           device/lib/pic16/libdev/{pic18f2331.c,pic18f2431.c}: reuse 18f4331
1518         * device/include/pic16/pic18f4431.h,
1519           device/lib/pic16/libdev/pic18f4431.c: remove outdated comments
1520         * device/lib/pic16/libio/adc.ignore: forbid unhandled devices
1521
1522 2008-05-01 Raphael Neider <rneider AT web.de>
1523
1524         * src/pic16/device.h: removed unused field PIC16_device.sfrRange,
1525           moved xinst flag into pic16_options_t
1526         * src/pic16/device.c (default_device, pic16_list_devices,
1527           pic16_find_device): removed references to sfrrange
1528         * src/pic16/gen.c (genFunction),
1529           src/pic16/glue.c (pic16initialComments),
1530           src/pic16/main.c (pic16_optionsTable),
1531           src/pic16/ralloc.c (newReg, pic16_writeUsedRegs): updated references
1532           to xinst
1533         * device/include/pic16/pic16devices.txt: removed sfrrange lines
1534
1535 2008-04-29 Raphael Neider <rneider AT web.de>
1536
1537         * src/pic16/devices.inc,
1538           device/include/pic16/pic16devices.txt: replaced compiled-in list
1539           of devices with a variant parsed at runtime
1540         * src/pic16/device.c: added support for parsing pic16devices.txt,
1541           clean up
1542         * src/pic16/device.h: removed (now) unused fields from PIC_device
1543         * src/pic16/main.c: removed #pragma maxram,
1544           (_pic16_initPaths): removed bogus generation of search paths,
1545           setup the port proper only after the search paths (for
1546           pic16devices.txt) are set up,
1547           (_pic16_finaliseOptions): moved processor dependant code here
1548           from _pic16_initPaths(), clean up
1549         * src/pic16/ralloc.c (pic16_init_stack),
1550         * src/pic16/ralloc.h,
1551         * src/pic16/pcode.c: clean up
1552         * device/include/Makefile.in,
1553           support/scripts/sdcc.nsi: also install/package pic16devices.txt
1554         * support/scripts/inc2h-pic16.pl: updated instructions
1555
1556 2008-04-29 Raphael Neider <rneider AT web.de>
1557
1558         * device/include/pic16/{pic18f2480.h, pic18f2580.h, pic18f4423.h,
1559           pic18f4480.h, pic18f4523.h, pic18f4580.h, pic18f6585.h, pic18f8585.h},
1560           device/lib/pic16/libdev/{pic18f2480.c, pic18f2580.c, pic18f4423.c,
1561           pic18f4480.c, pic18f4523.c, pic18f4580.c, pic18f6585.c, pic18f8585.c}:
1562           added missing family members and 18f2480/2580/4480/4580 family
1563         * device/include/pic16/{pic18f2423.h, pic18f2523.h}: use 18f4523.h
1564         * device/include/pic16/pic18f2525.h: use 18f4620.h
1565         * device/include/pic16/pic18f6680.h: use 18f8680.h
1566         * device/include/pic16/pic18fregs.h,
1567           device/lib/pic16/pics.all,
1568           src/pic16/devices.inc: add new devices
1569         * device/lib/pic16/libdev/{pic18f2423.c, pic18f2523.c}: use 18f4523.c
1570         * device/lib/pic16/libdev/pic18f2525.c: use 18f4620.c
1571         * device/lib/pic16/libdev/pic18f6680.c: uso 18f8680.c
1572         * device/lib/pic16/libio/{adc.ignore, i2c.ignore, usart.ignore}:
1573           prevent attempting to build the libio for some new devices
1574
1575 2008-04-29 Raphael Neider <rneider AT web.de>
1576
1577         * debugger/mcs51/Makefile.in: fixed paths to sources
1578
1579 2008-04-25 Borut Razem <borut.razem AT siol.net>
1580
1581         * as/link/lklibr.c: moved from as/link/z80/lklibr.c
1582         * as/link/hc08/lklibr.c, as/link/mcs51/lklibr.c: deleted
1583         * as/link/hc08/Makefile.bcc, as/link/hc08/Makefile.in,
1584         * as/link/hc08/link_hc08.dsp, as/link/mcs51/Makefile.bcc,
1585           as/link/mcs51/Makefile.in, as/link/mcs51/aslink.dsp,
1586           as/link/z80/Makefile.in, as/link/z80/linkgbz80.dsp,
1587           as/link/z80/linkz80.dsp: lklibr.c moved
1588         * doc/INSTALL.txt: binary archives in bz2 format
1589         * support/cpp/auto-host_vc_in.h: CPP2 replaced with CPP
1590
1591 2008-04-23 Maarten Brock <sourceforge.brock AT dse.nl>
1592
1593         * src/SDCCglue.c (printIvalType, printIvalBitFields): fixed bug 1856409
1594         * support/regression/tests/bug1856409.c: new, added
1595
1596 2008-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
1597
1598         * src/z80/peep.c,
1599         * src/mcs51/peep.c: Use werror for error messages.
1600         * src/SDCCicode.c (geniCodeConditional),
1601         * src/SDCCsymt.c (structElemType): fixed bug 1839321
1602         * src/z80/Makefile.bcc,
1603         * src/z80/z80.dsp: added src/z80/peep.c/h
1604         * support/regression/tests/bug1839321.c: new, added
1605
1606 2008-04-20 Raphael Neider <rneider AT web.de>
1607
1608         * device/include/pic16/pic18f2455.h: added bitfields for port C
1609
1610 2008-04-20 Philipp Klaus Krause <pkk AT spth.de>
1611
1612         * src/z80/peep.c: Use werror for error messages.
1613
1614 2008-04-19 Philipp Klaus Krause <pkk AT spth.de>
1615
1616         * src/z80/peep.h (declaration of notUsed()),
1617         * src/z80/main.c (enabled notUsed() for z80 port, documented z80_port
1618           struct),
1619         * src/z80/z80.h (added dependency on peep.h),
1620         * src/z80/peep.c (definition of notUsed()): Implemented RFE #1880202
1621           for Z80.
1622
1623 2008-04-19 Philipp Klaus Krause <pkk AT spth.de>
1624
1625         * src/SDCCpeeph.c (added support for notUsed()),
1626         * src/mcs51/main.c (added dependency on peep.h, documented mcs51_port
1627           struct),
1628         * src/port.h (removed dependency on mcs51/peep.h, added declaration
1629           for notUsed()): Implemented generic (that is not port-specific) part
1630           of RFE #1880202.
1631
1632 2008-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
1633
1634         * as/link/mcs51/lkmem.c (summary2): fixed bug 1796077
1635         * device/lib/libsdcc.lib,
1636         * device/lib/Makefile.in,
1637         * support/regression/ports/mcs51-xstack-auto/spec.mk,
1638         * device/lib/calloc.c: renamed to _calloc.c
1639         * device/lib/free.c: renamed to _free.c
1640         * device/lib/malloc.c: renamed to _malloc.c
1641         * device/lib/realloc.c: renamed to _realloc.c
1642         * src/ds390/gen.c (aopGet, aopPut, genPlusBits, genDataPointerSet,
1643           genNearPointerSet, genPagedPointerSet): synchronized with mcs51/gen.c
1644         * src/ds390/gen.c (popForBranch, genIfxJump, genCmp, genCmpEq, ifxForOp,
1645           genAnd, genOr, genXor, genIfx, gen390Code): fixed bug 1509084
1646         * src/mcs51/gen.c (popForBranch, genIfxJump, genCmp, genCmpEq,
1647           ifxForOp, genAnd, genOr, genXor, genNearPointerGet,
1648           genPagedPointerGet, genFarPointerGet, genCodePointerGet,
1649           genGenPointerGet, genIfx, gen51Code): fixed bug 1509084
1650         * src/ds390/gen.c,
1651         * src/mcs51/gen.c: throughout cosmetic changes for syncing both
1652         * src/SDCCsymt.h: updated IS_OP_RUONLY, IS_OP_ACCUSE
1653         * support/regression/tests/bug1509084.c: new, added
1654
1655 2008-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
1656
1657         * device/include/mcs51/cc2510fx.h: added _XPAGE
1658         * device/include/mcs51/compiler.h: cosmetic changes
1659
1660 2008-03-31 Maarten Brock <sourceforge.brock AT dse.nl>
1661
1662         * sdcc.dsw: adapted for moved cpp2, added dependency for as_z80 on
1663           config
1664
1665 2008-03-31 Borut Razem <borut.razem AT siol.net>
1666
1667         * support/cpp2 renamed to support/cpp
1668         * support/cpp2/libiberty/filenames.h, support/cpp2/libiberty/hex.c,
1669           support/cpp2/libiberty/splay-tree.c,
1670           support/cpp2/libiberty/splay-tree.h, support/cpp2/libcpp/macro.c,
1671           support/cpp2/libcpp/directives.c,
1672           support/cpp2/libcpp/include/cpplib.h,
1673           support/cpp2/libcpp/include/symtab.h,
1674           support/cpp2/libcpp/include/line-map.h,
1675           support/cpp2/libcpp/line-map.c, support/cpp2/libcpp/files.c,
1676           support/cpp2/libcpp/init.c, support/cpp2/libcpp/traditional.c,
1677           support/cpp2/libcpp/expr.c, support/cpp2/libcpp/internal.h,
1678           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/system.h,
1679           support/cpp2/libcpp/charset.c: SDCPP synchronized with GCC CPP
1680           release version 4.3.0
1681         * configure.in, configure, Makefile.in, Makefile.bcc:
1682           adapted for moved cpp2
1683
1684 2008-03-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1685
1686         * device/include/hc08/mc68hc908jkjl.h: committed fix for bug #1929739,
1687           thanks Alejandro Pustowka <alejo_pustowka AT yahoo.com.mx>
1688
1689 2008-03-30 Maarten Brock <sourceforge.brock AT dse.nl>
1690
1691         * src/SDCCloop.c (loopInvariants): applied fix for bug 1717943, thanks
1692           Robert Larice
1693         * support/regression/tests/bug1717943.c: new, added
1694
1695 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
1696
1697         * src/z80/gen.c (assignResultValue): Reverted reversal of order of
1698           bytewise return value assignments introduced in last commit.
1699
1700 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
1701
1702         * src/z80/gen.c (emitDebug, assignResultValue, genPlus, genMinus,
1703           genMult, genJumpTab):
1704           Use 16-bit instructions for addition in some additional cases,
1705           implemented RFEs #1914251, #1914245, #1922090, #1921382, #1918323.
1706
1707 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
1708
1709         * src/z80/ralloc.c (serialRegAssign, allocReg, tryAllocatingRegPair):
1710           Implemented RFE #1921450, changed some debug messages.
1711
1712 2008-03-30 Borut Razem <borut.razem AT siol.net>
1713
1714         * Small Device C Compiler 2.8.0 released
1715         * .version, doc/sdccman.lyx: changed sdcc version to 2.8.1
1716         * support/scripts/sdcc.nsi: added finish page; this version
1717           was used for 2.8.0 release
1718         * doc/knownbugs.html: removed; magically generated by the build
1719           process using gen_known_bugs.pl from now on
1720
1721 2008-03-23 Borut Razem <borut.razem AT siol.net>
1722
1723         * src/pic/gen.h: Q&D solution for the bug, found by Jim Paris
1724           and reverted it, since it was already fixed by Raphael ;-)
1725         * doc/knownbugs.html: updated for RC2
1726
1727 2008-03-22 Raphael Neider <rneider AT web.de>
1728
1729         * src/SDCCicode.c (getPtrType): avoid unnecessary extra assignments
1730           for PIC16 targets
1731
1732 2008-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
1733
1734         * src/mcs51/gen.c (adjustArithmeticResult): fixed bug 1839299
1735         * support/regression/tests/bug1839277.c: added related testBug1839299
1736
1737 2008-03-21 Maarten Brock <sourceforge.brock AT dse.nl>
1738
1739         * src/ds390/gen.c (opIsGptr, adjustArithmeticResult, genAddrOf, genAssign),
1740         * src/mcs51/gen.c (opIsGptr, adjustArithmeticResult, genAddrOf, genAssign):
1741           fixed bug 1839277
1742         * src/mcs51/gen.c: throughout only output hex constants
1743         * src/SDCCicode.c (getPtrType, geniCodeCast): fixed code size regression
1744         * support/regression/tests/bug1839277.c: new, added
1745
1746 2008-03-21 Philipp Klaus Krause <pkk AT spth.de>
1747
1748         * src/z80/ralloc.c (callFuncByName): Used // instead of /**/ to fix
1749           compilation warning about nested comments.
1750
1751 2008-03-20 Maarten Brock <sourceforge.brock AT dse.nl>
1752
1753         * src/SDCCsymt.c (comparePtrType): fixed bug 1921073
1754         * support/regression/tests/bug1921073.c: new, added
1755
1756 2008-03-17 Philipp Klaus Krause <pkk AT spth.de>
1757
1758         * src/z80/SDCCpeeph.c.c (callFuncByName):
1759           Commented function parameters.
1760
1761 2008-03-17 Philipp Klaus Krause <pkk AT spth.de>
1762
1763         * src/z80/ralloc.c (packRegsForAccUse2):
1764           disabled a broken accumulator packing optimization (fixed #1292721).
1765         * support/regression/tests/bug-1292721: Regression test for #1292721.
1766
1767 2008-03-16 Raphael Neider <rneider AT web.de>
1768
1769         * src/pic/gen.c (SetIrp,genNearPointerGet,genNearPointerSet):
1770           fixed code bloat regression using a variant of patch #1915618
1771
1772 2008-03-16 Borut Razem <borut.razem AT siol.net>
1773
1774         * support/scripts/sdcc.nsi: added section debugging macros, added SDCC
1775           icon, changed startup menu for release distribution, code cleaning,
1776           create url files instead links in startup menu
1777
1778 2008-03-16 Maarten Brock <sourceforge.brock AT dse.nl>
1779
1780         * src/SDCCcse.c (algebraicOpts): fixed bug 1579949
1781         * support/regression/tests/bug1579949.c: new, added
1782
1783 2008-03-14 Paul Stoffregen <paul AT pjrc.com>
1784
1785         * device/lib/printf_fast.c: fixed bug 1255403
1786
1787 2008-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
1788
1789         * doc/sdccman.lyx: enhanced paragraph about bankswitching for mcs51
1790         * src/cdbFile.c (cdbWriteBasicSymbol): fixed bug 1909409 for locals
1791
1792 2008-03-14 Borut Razem <borut.razem AT siol.net>
1793
1794         * as/doc/asmlnk.doc, as/doc/asxhtm.html: updated link-xx and aslink
1795           command line options
1796         * as/link/hc08/lkmain.c: converted tabs to spaces so that the usage
1797           is correctly displayed
1798         * as/link/z80/lkmain.c: usage line commented out
1799
1800 2008-03-13 Borut Razem <borut.razem AT siol.net>
1801
1802         * doc/sdccman.lyx: corrected to be able to convert to PDF,
1803           updated the list pf supported pic14 devices
1804
1805 2008-03-12 Maarten Brock <sourceforge.brock AT dse.nl>
1806
1807         * doc/sdccman.lyx: added paragraph about bankswitching for mcs51
1808
1809 2008-03-12 Borut Razem <borut.razem AT siol.net>
1810
1811         * as/doc/asmlnk.doc, as/doc/asxhtm.html: updated command line options,
1812           fixed documentation request #1718191
1813         * as/hc80/asmain.c, as/mcs51/asmain.c: added option -c to usage
1814         * doc/sdccman.lyx: added description of --no-std-crt0 gbz80
1815           command line option
1816
1817 2008-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
1818
1819         * src/SDCCast.c (isConformingBody): fixed bug 1505811, thanks Robert Larice
1820         * support/regression/tests/bug1505811.c: new, added
1821
1822 2008-03-09 Raphael Neider <rneider AT web.de>
1823
1824         * device/include/pic16/pic18f2620.h,
1825         * device/include/pic16/pic18f4620.h,
1826         * device/lib/pic16/libdev/pic18f2620.c,
1827         * device/lib/pic16/libdev/pic18f4525.c,
1828         * device/lib/pic16/libdev/pic18f4620.c: merged 18f2525/2620/4525/4620
1829           family to consistently use pic18f4620.[ch], fixes #1832562
1830
1831 2008-03-09 Borut Razem <borut.razem AT siol.net>
1832
1833         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
1834           changed sdcc version to 2.8.0
1835         * knownbugs.html: regenerated
1836         * support/scripts/gen_known_bugs.pl: added number of open bugs
1837
1838 2008-03-09 Raphael Neider <rneider AT web.de>
1839
1840         * src/pic16/gen.c (pic16_mov2w_volatile): NEW, read volatile operands,
1841           (genOr): read volatile operand even if the result is known,
1842           closes #1511838
1843           (genOr,genXor): removed unused legacy code,
1844           (genDummyRead): use pic16_mov2w_volatile()
1845
1846 2008-03-08 Borut Razem <borut.razem AT siol.net>
1847
1848         * src/SDCCglue.c: fixed bug #1864582: multiple definition of char
1849           cons w. --model-large
1850         * support/regression/staticinit.c: added regression test for bug
1851           #1864582
1852
1853 2008-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
1854
1855         * src/ds390/gen.c (pushSide, genPcall),
1856         * src/hc08/gen.c (pushSide, genPcall): synchronized with mcs51
1857         * src/mcs51/gen.c: cosmetic changes
1858         * support/regression/fwk/include/testfwk.h: added macro reentrant
1859         * support/regression/tests/bug1908493.c: new, added
1860
1861 2008-03-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1862
1863         * src/SDCCdebug.c:, as/link/lkaomf51.c: Fixed bug 1909409: Pdata in OMF file
1864
1865 2008-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
1866
1867         * src/mcs51/gen.c (pushSide, genPcall): fixed bug 1908493
1868         * src/SDCCmain.c (preProcess): removed -DSDCC_PARMS_IN_BANK1 because it is
1869           already set in ds390/main.c and mcs51/main.c
1870
1871 2008-03-07 Raphael Neider <rneider AT web.de>
1872
1873         * src/regression/init0.c: new test for initialized arrays of function
1874           pointers
1875         * src/regression/Makefile: made a bit more flexible, added init0.c
1876         * src/pic/glue.c (emitIvals): hacky fix for initializing from function
1877           pointers, closes #1427663
1878
1879 2008-03-05 Borut Razem <borut.razem AT siol.net>
1880
1881         * dos/sdccman.lyx: docummented predefined macros SDCC_REVISION,
1882           SDCC_PARMS_IN_BANK1, SDCC_FLOAT_REENT and SDCC_INT_LONG_REENT
1883
1884 2008-03-05 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1885
1886         * support/librarian/sdcclib.c:Added feature request 1908061:
1887           Synchronise sdcclib commands with ar.
1888
1889 2008-03-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1890
1891         * src/SDCCmain.c: added predefined macros SDCC_REVISION (RFE #1907229),
1892           and (depending on corresponding compiler option) SDCC_PARMS_IN_BANK1,
1893           SDCC_FLOAT_REENT, SDCC_INT_LONG_REENT
1894         * device/include/mcs51/compiler.h: removed umlauts, added double
1895           underscore
1896
1897 2008-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
1898
1899         * src/SDCCptropt.c (ptrPseudoSymConvert): fixed bug 1536762
1900         * support/regression/tests/bug1536762.c: new, added
1901         * src/SDCCutil.c,
1902         * src/SDCCutil.h: added getBuildDate()
1903         * src/SDCCmain.c (printVersionInfo),
1904         * src/SDCCglue.c (initialComments): use getBuildDate() instead of
1905           __DATE__
1906         * src/*/ralloc.c: removed IS_OP_RUONLY macro
1907         * src/ds390/ralloc.c (packRegisters),
1908         * src/mcs51/ralloc.c (packRegisters),
1909         * src/z80/ralloc.c (packRegisters): applied fix for bug 1618050, thanks
1910           Robert Larice
1911         * support/regression/tests/bug1618050.c: new, added
1912         * src/SDCCsymt.h: fixed typo in DECLSPEC2TXT
1913         * support/regression/fwk/include/testfwk.h,
1914         * support/regression/tests/bug1838000.c: moved _AUTOMEM and _STATMEM to
1915           testfwk.h
1916
1917 2008-03-04 Raphael Neider <rneider AT web.de>
1918
1919         * src/pic/gen.c: removed unused prototypes, prevent internal errors
1920           on accessing OP_SYM_TYPE(op)
1921         * src/pic/gen.h: removed unused prototype of genMinusDec()
1922         * src/pic/genarith.c (genMinus): cosmetic changes, rewritten to
1923           fix #1876953 (invalid subtraction code), removed unused code
1924
1925 2008-03-03 Raphael Neider <rneider AT web.de>
1926
1927         * src/pic/gen.c,
1928         * src/pic/gen.h,
1929         * src/pic/genarith.c,
1930         * src/pic/ralloc.c,
1931         * src/pic/ralloc.h: removed AOP_R0, AOP_R1, AOP_DPTR, AOP_DPTR2,
1932           AOP_ACC, and *_IDX and adjusted code, removed unused legacy code
1933
1934 2008-03-03 Raphael Neider <rneider AT web.de>
1935
1936         * src/pic/device.c (find_device): search user-specified paths first
1937           for pic14devices.txt, fixes #1900827
1938
1939 2008-03-02 Borut Razem <borut.razem AT siol.net>
1940
1941         * support/scripts/sdcc.nsi: fixed bug in IsNT, LogicLib-isation of
1942           AddToPath and RemoveFromPath
1943
1944 2008-03-01 Borut Razem <borut.razem AT siol.net>
1945
1946         * support/scripts/sdcc.nsi: reverted MULTIUSER page since it didn't
1947           work correctly, added debugging support if -DSDCC.DEBUG command line
1948           option is defined
1949
1950 2008-02-28 Borut Razem <borut.razem AT siol.net>
1951
1952         * doc/sdccman.lyx: cosmetic changes
1953
1954 2008-02-28 Maarten Brock <sourceforge.brock AT dse.nl>
1955
1956         * src/mcs51/ralloc.c (fillGaps): fixed bug 1839671
1957         * doc/sdccman.lyx: fixed unmeant removal of spaces
1958
1959 2008-02-27 Borut Razem <borut.razem AT siol.net>
1960
1961         * support/scripts/sdcc.nsi: corrected installation directory for
1962           current user installation mode
1963         * doc/README.txt: added Philipp Klaus Krause to the developers list
1964
1965 2008-02-27 Maarten Brock <sourceforge.brock AT dse.nl>
1966
1967         * src/mcs51/gen.c (genUnpackBits): don't generate ifxJump, instead
1968           return ifx condition
1969           (genNearPointerGet, genPagedPointerGet, genFarPointerGet,
1970           genCodePointerGet, genGenPointerGet): cleanup aop before generating
1971             ifxJump to fix bug 1838000
1972         * src/SDCCsymt.c (aggregateToPointer): fix problem for xstack
1973         * support/regression/tests/bug1838000.c: new, added
1974         * device/include/mcs51/cc1110.h: new, added, thanks to Pravin Angolkar
1975
1976 2008-02-26 Borut Razem <borut.razem AT siol.net>
1977
1978         * src/SDCCast.c, doc/sdccman.lyx: fixed RFE #1901171: inerger promotion
1979           of casted varargs
1980         * support/scripts/sdcc.nsi: added MULTIUSER page,
1981           NSIS upgraded to version 2.35
1982
1983 2008-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
1984
1985         * src/mcs51/ralloc.c (isSpiltOnStack): fixed bug 1565152
1986         * support/regression/tests/bug1565152.c: new, added
1987
1988 2008-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
1989
1990         * src/mcs51/gen.c (genPagedPointerSet): fixed bug 1670148
1991         * support/regression/ports/mcs51-xstack-auto/spec.mk: added expf.c
1992         * support/regression/tests/bug1670148.c: new, added
1993
1994 2008-02-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1995
1996         * device/include/mcs51/at89c51ed2.h: fixed bug 1901469.
1997
1998 2008-02-24 Borut Razem <borut.razem AT siol.net>
1999
2000         * src/SDCCast.c, src/SDCCast.h: fixed bug #1874922: explicit typecast
2001           is ineffective for unsigned char parameter
2002
2003 2008-02-24 Maarten Brock <sourceforge.brock AT dse.nl>
2004
2005         * src/SDCCast.c (expandInlineFuncs): fixed bug 1875869
2006         * src/SDCCglue.c (printIvalBitFields): fixed bug 1806631
2007         * support/regression/tests/bitopcse.c: removed hc08 exception, see testfwk.h
2008         * support/Util/MySystem.c (my_system): output errorcode when verbose
2009
2010 2008-02-22 Philipp Klaus Krause <pkk AT spth.de>
2011
2012         * src/z80/gen.c (genMult): Rewrote 8-bit multiplication by constant,
2013           implements #1898231
2014
2015 2008-02-22 Philipp Klaus Krause <pkk AT spth.de>
2016
2017         * device/lib/z80/mul.s: Rewrote __muluchar_rrx_s, to improve 8-bit mult.,
2018           implements #1896290
2019
2020 2008-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
2021
2022         * src/SDCCast.c (createIvalStruct): fixed bug 1466761
2023
2024 2008-02-21 Borut Razem <borut.razem AT siol.net>
2025
2026         * support/regression/Makefile.in,
2027           support/regression/ports/ds390/spec.mk,
2028           support/regression/ports/hc08/spec.mk,
2029           support/regression/ports/mcs51-common/spec.mk,
2030           support/regression/ports/pic14/spec.mk,
2031           support/regression/ports/pic16/spec.mk,
2032           support/regression/ports/ucz80/spec.mk,
2033           support/regression/ports/xa51/spec.mk:
2034           added CFLAGS when compiling timeout
2035
2036 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
2037
2038         * support/regression/tests/bugs-1596270-1736867.c: Regression test for
2039           #1596270, #1736867
2040
2041 2008-02-20 Maarten Brock <sourceforge.brock AT dse.nl>
2042
2043         * src/SDCClrange.c (findPrevUse): fixed bug 1888147
2044         * support/regression/tests/bug1888147.c: new, added
2045
2046 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
2047
2048         * src/z80/gen.c: fixed bugs #1596270, #1736867
2049
2050 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
2051
2052         * src/z80/gen.c: fixed bug in register pair loading when swapping register
2053           contents, mostly fixes #1596270
2054
2055 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
2056
2057         * src/z80/peeph.def,
2058         * src/z80/peeph-z80.def: moved peephole that breaks gbz80 to z80-specific
2059           peepholes, fixes #1806565
2060
2061 2008-02-20 Maarten Brock <sourceforge.brock AT dse.nl>
2062
2063         * src/SDCCpeeph.c (operandBaseName): added check for @Ri
2064         * src/mcs51/peeph.def (rule 177.c): added operandsNotRelated(%1 %3)
2065           fixes bug 1739475, thanks Robert Larice
2066           (rule 271): new, added
2067
2068 2008-02-18 Borut Razem <borut.razem AT siol.net>
2069
2070         * sim/ucsim/s51.src/Makefile.in: fixed error made in previous commit
2071
2072 2008-02-17 Maarten Brock <sourceforge.brock AT dse.nl>
2073
2074         * src/SDCCmain.c (linkEdit): emit -z when using --debug for z80
2075
2076 2008-02-17 Raphael Neider <rneider AT web.de>
2077
2078         * src/pic16/genarith.c,
2079         * src/pic16/gen.c,
2080         * src/pic16/gen.h,
2081         * src/pic16/genutils.c: removed unused legacy code,
2082           removed unused fields from struct asmop and struct _G
2083
2084 2008-02-17 Raphael Neider <rneider AT web.de>
2085
2086         * src/pic16/gen.c (AccRsh): cosmetic changes,
2087           (shiftR1Left2ResultSigned,shiftR1Left2Result,shiftL1Left2Result,
2088           genRightShiftLiteral): fixed to work with SFRs as result by
2089           assigning only once to result,
2090           removed a lot of unused/excluded code fragments
2091
2092 2008-02-17 Raphael Neider <rneider AT web.de>
2093
2094         * device/include/pic/pic16f88.h,
2095         * device/include/pic/pic16f886.h,
2096         * device/include/pic/pic16f887.h: added TRISA6 and TRISA7
2097
2098 2008-02-17 Borut Razem <borut.razem AT siol.net>
2099
2100         * src/z80/peeph.def: applied patch
2101           #1893626: Optimize tail calls on Z80, thanks to Philipp Krause
2102         * src/z80/gen.c, src/z80/peeph.def: applied patch
2103           #1893510: Improve logical left shift on Z80, thanks to Philipp Krause
2104         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
2105           sim/ucsim/s51.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
2106           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
2107           sim/ucsim/main_in.mk: renamed libutil.a to libucsimutil.a in order to
2108           enable compilation on Mac OS X 10.5 (Leopard) and XCode v3.0
2109
2110 2008-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
2111
2112         * as/link/mcs51/aslink.dsp: removed SDK define
2113         * as/link/z80/clean.mk: brought in sync with other ports
2114         * as/link/z80/lklibr.c (SdccLib, fndsym): handle the dflag here too
2115         * as/hc08/Makefile.bcc,
2116         * as/mcs51/Makefile.bcc,
2117         * as/z80/Makefile.bcc: noice.c was moved to as/asxxsrc/
2118         * src/z80/main.c (_setValues): use the now capitalized -Z,
2119           (z80_port, gbz80_port): generate debug information when asked
2120
2121 2008-02-16 Borut Razem <borut.razem AT siol.net>
2122
2123         * as/z80/asmain.c, as/z80/asm.h, as/z80/asdata.c,
2124           as/link/z80/lkmain.c, as/z80/as_gbz80.dsp, as/z80/as_z80.dsp,
2125           as/z80/Makefile.in. as/z80/Makefile.bcc:
2126           applied patch #1893393: patch for as-z80 and link-z80 to generate
2127           cdb, thanks to Armin Diehl
2128         * as/*/asnoice.c, as/hc08/as_hc08.dsp, as/hc08/Makefile.in,
2129           as/mcs51/asx8051.dsp, as/mcs51/Makefile.in:
2130           asnoice.c moved to as/asxxsrc/asnoice.c
2131         * src/z80/peeph-gbz80.def: applied patch
2132           #1880235: Z80 return peephole, thanks to Philipp Krause
2133
2134 2008-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
2135
2136         * .version,
2137         * doc/sdccman.lyx: bumped version to 2.7.5
2138         * src/SDCCsymt.c (compareType, comparePtrType): fixed bug 1281583
2139
2140 2008-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
2141
2142         * device/include/pic16/stdlib.h,
2143         * device/lib/pic16/libc/stdlib/ltoa.c,
2144         * device/lib/pic16/libc/stdio/vfprintf.c: ascii strings are char*
2145
2146 2008-02-13 Borut Razem <borut.razem AT siol.net>
2147
2148         * src/SDCCmain.c, src/SDCCglue.c: fixed --c1mode
2149         * src/pic16/glue.c, src/SDCCast.c, src/SDCCast.h, src/SDCCBBlock.c,
2150           src/SDCCcse.c, src/SDCCglue.c, src/SDCCicode.c, src/SDCCloop.c,
2151           src/SDCCopt.c,  src/SDCCval.c:
2152           fixed bug #1890273: SDCC Warning 154 shows wrong filename
2153
2154 2008-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
2155
2156         * src/SDCCsymt.c (compareType): fixed bug 1309013
2157
2158 2008-02-09 Borut Razem <borut.razem AT siol.net>
2159
2160         * src/SDCCval.c, src/SDCCval.h:
2161           code cleaning, added function constChrVal()
2162         * src/SDCCglue.c, src/pic/glue.c, src/pic16/glue.c, src/SDCCast.c, src/SDCC.y:
2163           call constChrVal() instead constVal()
2164
2165 2008-02-01 Maarten Brock <sourceforge.brock AT dse.nl>
2166
2167         * src/SDCCast.c (resolveSymbols): added reentrancy check for parameters
2168           of function pointer
2169         * src/SDCCerr.h,
2170         * src/SDCCerr.c: changed warning W_NONRENT_ARGS to error E_NONRENT_ARGS
2171         * support/regression/tests/absolute.c: added TestStruct TestVar (see also
2172           bug 1859853)
2173
2174 2008-02-01 Raphael Neider <rneider AT web.de>
2175
2176         * device/include/pic/pic16f886.h,
2177         * device/include/pic/pic16f887.h: added RA6 and RA7
2178
2179 2008-01-24 Raphael Neider <rneider AT web.de>
2180
2181         * device/include/pic/pic16f88.h: added RA6 and RA7
2182         * device/lib/pic/libdev/disabled_pic16f886.c,
2183         * device/lib/pic/libdev/disabled_pic16f887.c: renamed and enabled
2184
2185         * src/pic16/devices.inc,
2186         * device/include/pic16/pic18f2423.h,
2187         * device/include/pic16/pic18f2523.h,
2188         * device/include/pic16/pic18fregs.h,
2189         * device/lib/pic16/pics.all
2190         * device/lib/pic16/libdev/pic18f2423.c,
2191         * device/lib/pic16/libdev/pic18f2523.c: added 18f2423 and 18f2523
2192         * device/lib/pic16/libio/i2c.ignore,
2193         * device/lib/pic16/libio/usart.ignore,
2194         * device/lib/pic16/libio/adc.ignore: ignore new devices
2195
2196 2008-01-23 Maarten Brock <sourceforge.brock AT dse.nl>
2197
2198         * src/SDCCast.c (createRMW): fixed bug 1582651
2199
2200 2008-01-20 Borut Razem <borut.razem AT siol.net>
2201
2202         * src/SDCCcse.c: partially fixed enhancement request
2203           #1793872 - multiply by -1 not collapsed
2204         * support/regression/tests/arithcsi.c: added regression test
2205
2206 2008-01-19 Maarten Brock <sourceforge.brock AT dse.nl>
2207
2208         * as/mcs51/asx8051.dsp: removed define SDK
2209         * as/mcs51/i51mch.c (machine): fixed bug 1865114
2210         * device/include/asm/ds390/features.h: fixed bug with ds390 & stack-auto
2211         * as/link/lklex.c,
2212         * as/link/mcs51/lkmain.c: used LKDIRSEP, LKDIRSEPSTR and LKOBJEXT,
2213           cosmetic changes, brought more in sync, changed old K&R to ANSI
2214
2215 2008-01-13 Borut Razem <borut.razem AT siol.net>
2216
2217         * support/scripts/sdcc.nsi: added Uninstall/reinstall page, ...
2218         * src/SDCCicode.c: fixed bug #1870216 - Error 122: dividing by zero
2219
2220 2007-12-30 Borut Razem <borut.razem AT siol.net>
2221
2222         * src/pic16/gen.c: fixed implementation of bitwise operations for
2223           pic16 target
2224         * support/regression/tests/bitwise.c: added test cases
2225
2226 2007-12-29 Borut Razem <borut.razem AT siol.net>
2227
2228         * src/SDCCasm.[ch]: renamed from asm[ch], use dbuf_getline(), ...
2229         * src/src.dsp, src/Makefile.bcc, src/Makefile.in, src/common.h,
2230           src/SDCCglue.c, src/xa51/main.c: asm.[ch] renamed to SDCCasm.[ch]
2231         * support/Util/dbuf_string.[ch]: added function dbuf_getline()
2232         * src/ds390/gen.c, src/hc08/gen.c, src/mcs51/gen.c, src/pic16/gen.c,
2233           src/pic/gen.c, src/z80/gen.c, src/xa51/gen.c, src/pic16/ralloc.c,
2234           src/pic16/pcode.[ch]: added const qualifier
2235         * as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
2236           as/mcs51/Makefile.bcc, as/mcs51/Makefile.in, as/mcs51/asx8051.dsp,
2237           as/z80/Makefile.bcc, as/z80/Makefile.in, as/z80/as_gbz80.dsp,
2238           as/z80/as_z80.dsp: added dbuf.[ch] and dbuf_string[ch] to project
2239         * as/asxxsrc/aslex.c: use dbuf_getline()
2240         * as/hc08/asdata.c, as/hc08/asexpr.c, as/hc08/asm.h, as/hc08/m08adr.c,
2241           as/mcs51/asdata.c, as/mcs51/asexpr.c, as/mcs51/asm.h,
2242           as/mcs51/i51adr.c, as/z80/asdata.c, as/z80/asexpr.c, as/z80/aslist.c,
2243           as/z80/asm.h, as/z80/z80adr.c:
2244           changed type of ib and ip to const char *
2245
2246 2007-12-28 Borut Razem <borut.razem AT siol.net>
2247
2248         * as/asxxsrc/aslex.c: moved from as/mcs51/aslex.c;
2249           introduced (readlin) - long lines are turuncated
2250         * as/hc08/as_hc08.dsp, as/mcs51/asx8051.dsp, as/z80/as_gbz80.dsp,
2251           as/z80/as_z80.dsp, as/hc08/Makefile.in, as/mcs51/Makefile.in,
2252           as/z80/Makefile.in: moved aslex.c to asxxsrc
2253         * as/hc08/aslex.c, as/z80/aslex.c: deleted
2254         * as/hc08/asmain.c, as/mcs51/asmain.c:
2255           added missing initialization of a_addr field
2256         * support/regression/tests/long_asm_line.c: added regtest for long
2257           assembler line
2258
2259 2007-12-22 Borut Razem <borut.razem AT siol.net>
2260
2261         * src/SDCC.lex: fixed bug #1852894: # character hangs the compiler
2262
2263 2007-12-20 Maarten Brock <sourceforge.brock AT dse.nl>
2264
2265         * src/SDCCsymt.c (computeType): fixed bug, thanks Fan Weiguang
2266
2267 2007-12-16 Borut Razem <borut.razem AT siol.net>
2268
2269         * device/include/pic16/stdbool.h: removed, since already exists in
2270          device/include/; this also fixes bitopcse.c regression test for pic16
2271          target
2272         * support/regression/fwk/inclusw/testfwk.h: added macro ASSERT_FAILED
2273         * src/pic16/glue.c: fixed bug #1851855: generic static pointer
2274           dereference doesn't work; covered by regression test bug1399290
2275
2276 2007-12-05 Borut Razem <borut.razem AT siol.net>
2277
2278         * doc/sdccman.lyx: fixed bug #1844509 - Correction to Manual 4.6.9
2279           Adding new PIC16
2280
2281 2007-12-01 Borut Razem <borut.razem AT siol.net>
2282
2283         * sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/mem.cc:
2284           corrected handling of the highest_valid_address
2285
2286 2007-11-17 Raphael Neider <rneider AT web.de>
2287
2288         * src/pic/main.c (_asmCmd): include debug arguments (-g as $3)
2289         * src/pic/glue.c (picglue): emit .file if --debug is given
2290
2291 2007-11-17 Raphael Neider <rneider AT web.de>
2292
2293         * src/pic16/genarith.c (pic16_genPlus, pic16_genMinus): take special
2294         care when left or right operand resides in result, fixes #1830220
2295
2296 2007-11-17 Borut Razem <borut.razem AT siol.net>
2297
2298         * src/SDCCglue.c, src/pic16/glue.c: reverted fix for bug
2299           #983491 - "Merge duplicate strings function is ineffective"
2300         * support/regression/tests/bug-983491.c: regtest disabled
2301         * as/asxxsrc: created
2302           as/asxxsrc/assym.c, as/asxxsrc/strcmpi.c: moved
2303           as/hc08/assym.c, as/mcs51/assym.c, as/strcmpi.c,
2304           as/z80/assym.c, as/hc08/asstore.c, as/mcs51/asstore.c: deleted
2305           as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
2306           as/hc08/asm.h, as/link/hc08/Makefile.bcc, as/link/hc08/Makefile.in,
2307           as/link/hc08/link_hc08.dsp, as/link/mcs51/Makefile.bcc,
2308           as/link/mcs51/Makefile.in, as/link/mcs51/aslink.dsp,
2309           as/link/z80/Makefile.in, as/link/z80/linkgbz80.dsp,
2310           as/link/z80/linkz80.dsp, as/mcs51/Makefile.bcc, as/mcs51/Makefile.in,
2311           as/mcs51/asm.h, as/mcs51/asx8051.dsp, as/z80/Makefile.bcc,
2312           as/z80/Makefile.in, as/z80/as_gbz80.dsp, as/z80/as_z80.dsp,
2313           as/z80/Makefile.as_hc08, as/mcs51/Makefile.asx8051: modified
2314           created as/asxxsrc directory, assym.c and strcpi.c moved into it
2315
2316 2007-11-15 Maarten Brock <sourceforge.brock AT dse.nl>
2317
2318         * device/include/stdarg.h: added and removed some casts
2319         * src/SDCCsymt.c (compareType): Fully check types between generic and
2320           non-generic pointers, also accept ptr-ptr to void-ptr assignments
2321
2322 2007-11-13 Borut Razem <borut.razem AT siol.net>
2323
2324         * support/regression/tests/bug-1817005.c:
2325           added regtest for bug #1817005 - as-z80 chokes on long labels
2326
2327 2007-11-12 Borut Razem <borut.razem AT siol.net>
2328
2329         * as/z80/asmain.c, as/z80/asm.h, as/z80/assym.c, as/z80/asdata.c,
2330           as/z80/asout.c, as/z80/aslist.c:
2331           fixed bug #1817005 - as-z80 chokes on long labels
2332
2333 2007-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
2334
2335         * as/hc08/asmain.c,
2336         * as/z80/asmain.c: cosmetic changes
2337         * as/hc08/alloc.h,
2338         * as/mcs51/alloc.h,
2339         * as/z80/alloc.h: removed
2340         * as/hc08/assym.c,
2341         * as/mcs51/assym.c: replaced alloc.h with stdlib.h
2342         * as/link/aslink.h: added LKDIRSEP and, LKDIRSEPSTR
2343         * as/link/hc08/Makefile.in,
2344         * as/link/mcs51/Makefile.in,
2345         * as/link/z80/Makefile.in: added -DUNIX to CFLAGS
2346         * as/link/lklex.c,
2347         * as/link/mcs51/lkarea.c,
2348         * as/link/mcs51/lkmain.c: cosmetic changes
2349         * as/link/hc08/lklibr.c,
2350         * as/link/z80/lklibr.c,
2351         * as/link/mcs51/lklibr.c: used LKDIRSEP, LKDIRSEPSTR and LKOBJEXT,
2352           used cygwin_conv_to_full_posix_path,
2353           added warnings, cosmetic changes, brought more in sync
2354           changed old K&R into ANSI function declarations
2355         * as/link/z80/lklibr.c (loadAdb): added
2356         * as/link/z80/lkmain.c: removed -- option from usage text
2357
2358 2007-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
2359
2360         * src/mcs51/gen.c (outBitC): optimized for no result
2361
2362 2007-10-31 Borut Razem <borut.razem AT siol.net>
2363
2364         * src/SDCCsymt.c: fixed (hopeful properly) bug
2365           #1805702 - order of extern matters
2366         * support/regression/tests/bug-1805702.c: enabled regtest for bug
2367           #1805702
2368
2369 2007-10-29 Borut Razem <borut.razem AT siol.net>
2370
2371         * src/SDCCsymt.c: reverted bad fixed of bug #1805702
2372           - order of extern matters
2373         * support/regression/tests/bug-1805702.c: disabled regtest for bug
2374           #1805702
2375
2376 2007-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
2377
2378         * src/ds390/peeph.def: replaced 24bitModeAndPortDS390 by
2379           24bitMode, portIsDS390
2380         * src/mcs51/gen.c (genOr): optimized for RFE 1750727
2381         * src/SDCCpeeph.c (flat24bitModeAndPortDS390): removed
2382           (notVolatileVariable): also check sloc names,
2383           (callFuncByName): moved ftab[] out of function and sorted it by use
2384
2385 2007-10-28 Maarten Brock <sourceforge.brock AT dse.nl>
2386
2387         * device/include/stdarg.h: fixed bug in va_start macro for --xstack
2388         * src/hc08/gen.c (aopForRemat): aop->aopu.aop_immd.from_cast_remat not set,
2389           aop->aopu.aop_immd.aop_immd2 not filled with (generic) pointer type
2390         * src/SDCCicode.c (geniCodeCast): fixed bug 880197
2391         * support/regression/tests/bug-880197.c: new, added
2392
2393 2007-10-28 Borut Razem <borut.razem AT siol.net>
2394
2395         * support/regression/Makefile.in,
2396           support/regression/ports/mcs51-large/spec.mk,
2397           support/regression/ports/mcs51-xstack-auto/spec.mk,
2398           support/regression/ports/mcs51-stack-auto/spec.mk,
2399           support/regression/ports/mcs51-medium/spec.mk,
2400           support/regression/ports/mcs51-common/spec.mk,
2401           support/regression/ports/mcs51-common/*,
2402           support/regression/ports/mcs51-small/*:
2403           mcs51 renamed to mcs51-common, created mcs51-small
2404         * src/SDCCsymt.c: fixed bug #1805702 - order of extern matters
2405         * support/regression/tests/bug-1805702.c: added regtest for bug
2406           #1805702
2407
2408 2007-10-26 Maarten Brock <sourceforge.brock AT dse.nl>
2409
2410         * src/mcs51/peeph.def: moved rules 257.x to 253.x and re-enabled 253.b,
2411           added new rules 265 - 270
2412         * support/regression/tests/bug1721024.c:new, added
2413         * support/regression/Makefile.in: renamed test-mcs51 to test-mcs51-small,
2414           introduced new test-mcs51 to run all mcs51 tests
2415
2416 2007-10-25 Maarten Brock <sourceforge.brock AT dse.nl>
2417
2418         * support/regression/tests/bug1816470.c: new, added
2419
2420 2007-10-21 Maarten Brock <sourceforge.brock AT dse.nl>
2421
2422         * src/SDCCast.c (resultTypePropagate): do propagate for LEFT_OP, do not
2423           propagate for *,+,- with float, fixed bug 1816470
2424           (decorateType): cast to resultTypeProp instead of resultType
2425
2426 2007-10-19 Borut Razem <borut.razem AT siol.net>
2427
2428         * src/pic16/glue.c: fixed bug #983491 - "Merge duplicate strings
2429           function is ineffective" for pic16 tareget
2430         * support/scripts/listerr.c: corrected include path
2431         * device/lib/_itoa.c: fixed bug #1806402 - _itoa and _uitoa leak to
2432           adjacent memory
2433
2434 2007-10-18 Maarten Brock <sourceforge.brock AT dse.nl>
2435
2436         * support/regression/tests/using.c: new, added
2437         * support/regression/tests/vaargs.c: fixed and enabled test
2438
2439 2007-10-18 Borut Razem <borut.razem AT siol.net>
2440
2441         * src/SDCCglue.c: fixed bug #983491 - Merge duplicate strings function
2442           is ineffective
2443         * support/regression/tests/bug-983491.c: added regtest for bug #983491
2444
2445 2007-10-18 Maarten Brock <sourceforge.brock AT dse.nl>
2446
2447         * doc/sdccman.lyx: documented option --Werror
2448         * src/SDCCsymt.c (checkFunction): fixed bug 1815418 by setting
2449           RegBankUsed[] earlier
2450
2451 2007-10-14 Maarten Brock <sourceforge.brock AT dse.nl>
2452
2453         * device/include/mcs51/p89lpc938.h: new, added, thanks Kyle Guinn
2454         * src/pic/glue.c,
2455         * src/SDCCval.c,
2456         * src/SDCCast.c,
2457         * src/SDCCast.h: replaced AST_LIT_VALUE with AST_FLOAT_VALUE and
2458           AST_ULONG_VALUE
2459         * src/SDCCast.c (decorateType): improved optimization of tri-op
2460         * src/SDCCerr.c (vwerror, setWError),
2461         * src/SDCCerr.h,
2462         * src/SDCCmain.c (parseCmdLine): added option --Werror to treat all
2463           warnings as errors, thanks Stas Sergeev for PATCH 1813211
2464
2465 2007-10-13 Maarten Brock <sourceforge.brock AT dse.nl>
2466
2467         * src/mcs51/gen.c (leftRightUseAcc): use macro IS_OP_ACCUSE
2468         * src/SDCCast.c (decorateType): optimize bit=cond?1:0, RFE 1738430
2469         * support/regression/tests/bug-223113.c,
2470         * support/regression/tests/bug-426632.c,
2471         * support/regression/tests/bug-468811.c,
2472         * support/regression/tests/bug-477835.c,
2473         * support/regression/tests/bug-478094.c,
2474         * support/regression/tests/bug-499644.c,
2475         * support/regression/tests/bug-524209.c,
2476         * support/regression/tests/bug-524211.c,
2477         * support/regression/tests/packcast.c,
2478         * support/regression/tests/structidx.c: added empty tests
2479         * support/regression/tests/bug-607243.c: enabled test
2480
2481 2007-10-06 Borut Razem <borut.razem AT siol.net>
2482
2483         * .version, doc/sdccman.lyx: bumped version to 2.7.4 to indicate the full
2484            support of universal binaries on Mac OS X
2485
2486 2007-10-02 Borut Razem <borut.razem AT siol.net>
2487
2488         * src/SDCCval.h: unified double2ul macro for all platforms
2489         * src/SDCCval.c: fixed bug #1777758 - applied Maarten's patch
2490         * support/regression/tests/bitwise.c: added regtest for bug #1777758
2491
2492 2007-09-30 Borut Razem <borut.razem AT siol.net>
2493
2494         * src/SDCCval.h: fixed bug #1739860 - sdcc does not work correctly on some
2495           platforms
2496         * sdcc_vc_in.h: enabled warnings
2497         * src/hc08/gen.c: fixed MSVC warning C4146: unary minus operator applied to
2498           unsigned type, result still unsigned
2499         * src/mcs51/peep.c: fixed gcc warning: suggest parentheses around && within ||
2500
2501 2007-09-28 Raphael Neider <rneider AT web.de>
2502
2503         * src/pic/device.c (find_device): prevent buffer underflow error
2504         * src/pic/pcoderegs.c (OptimizeRegUsage): avoid dereferencing
2505           the just destroyed list entry
2506
2507 2007-09-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2508
2509         * doc/sdccman.lyx: there's a dedicated wiki page for cmake and sdcc, thanks
2510           Alexander Neundorf
2511
2512 2007-09-18 Borut Razem <borut.razem AT siol.net>
2513
2514         * src/SDCCval.c: fixed MSVC warning C4146: unary minus operator
2515          applied to unsigned type, result still unsigned
2516
2517 2007-09-17 Borut Razem <borut.razem AT siol.net>
2518
2519         * src/SDCC.y, src/SDCCast.c, src/SDCCcse.c, src/SDCCglue.c,
2520           src/SDCCicode.c, src/SDCCopt.c, src/SDCCsymt.c, src/SDCCval.c,
2521           src/SDCCval.h, src/hc08/gen.c, src/avr/gen.c, src/ds390/gen.c,
2522           src/mcs51/gen.c, src/pic/gen.c, src/pic/genarith.c, src/pic/glue.c,
2523           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/genarith.c,
2524           src/pic16/genutils.c, src/pic16/glue.c, src/pic16/main.c,
2525           src/z80/gen.c, src/z80/ralloc.c:
2526           fixed bug #1739860 - sdcc does not work correctly on some platforms
2527           (not finished)
2528           introduced and used ulFromVal(), double2ul(), used strtod() instead sscanf()
2529
2530 2007-09-17 Raphael Neider <rneider AT web.de>
2531
2532         * src/pic16/device.c: reverted to previous version
2533         * device/lib/pic16/Makefile.common.in: quieten gpasm via -Wa,-q
2534
2535 2007-09-16 Raphael Neider <rneider AT web.de>
2536
2537         * src/pic16/device.c (pic16_dump_usection): do not reserve 0 bytes,
2538           as this raises a ton of gpasm warnings, just emit a second label
2539         * src/pic16/devices.inc,
2540         * device/lib/pic16/pics.all,
2541         * device/lib/pic16/libdev/pic18f2585.c,
2542         * device/lib/pic16/libdev/pic18f2680.c,
2543         * device/lib/pic16/libdev/pic18f2682.c,
2544         * device/lib/pic16/libdev/pic18f2685.c,
2545         * device/lib/pic16/libdev/pic18f4585.c,
2546         * device/lib/pic16/libdev/pic18f4680.c,
2547         * device/lib/pic16/libdev/pic18f4682.c,
2548         * device/lib/pic16/libdev/pic18f4685.c,
2549         * device/include/pic16/pic18f2585.h,
2550         * device/include/pic16/pic18f2680.h,
2551         * device/include/pic16/pic18f2682.h,
2552         * device/include/pic16/pic18f2685.h,
2553         * device/include/pic16/pic18f4585.h,
2554         * device/include/pic16/pic18f4680.h,
2555         * device/include/pic16/pic18f4682.h,
2556         * device/include/pic16/pic18f4685.h,
2557         * device/include/pic16/pic18fregs.h: added 18f2585, 18f2680,
2558           18f2682, 18f2685, 18f4585, 18f4680, 18f4682, 18f4685,
2559           patch contributed by Anton Strobl, applied with changes
2560
2561 2007-09-16 Raphael Neider <rneider AT web.de>
2562
2563         * device/include/pic16/pic18f2431.h,
2564         * device/include/pic16/pic18f25j10.h,
2565         * device/include/pic16/pic18f4431.h,
2566         * device/include/pic16/pic18f45j10.h: adopted common include style
2567         * device/include/pic16/pic18f1320.h,
2568         * device/include/pic16/pic18f2320.h,
2569         * device/include/pic16/pic18f2525.h,
2570         * device/include/pic16/pic18f4320.h,
2571         * device/include/pic16/pic18f4525.h: NEW, just include proper .h file
2572         * device/include/pic16/pic18fregs.h: prepared for automatic include
2573           file selection by having DEVICE.h for every DEVICE
2574         * device/lib/pic16/libdev/pic18f2320.c,
2575         * device/lib/pic16/libdev/pic18f4320.c: just include proper .c file
2576
2577         * device/lib/pic16/configure.in,
2578         * device/lib/pic16/configure: use rm -rf instead of rmdir
2579         * device/lib/pic16/Makefile.in: use RMDIR to remove build directories
2580         * device/lib/pic16/libc/stdlib/free.c: avoid warning on pointer cast
2581
2582 2007-09-09 Borut Razem <borut.razem AT siol.net>
2583
2584         * src/SDCCmain.c, src/SDCCutil.c: print newline after printVersionInfo(),
2585           distingush between i386 and ppc Mac OS X versions
2586
2587 2007-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
2588
2589         * src/mcs51/gen.c (genReceive): fixed bug 1788177
2590         * support/regression/tests/bug1788177.c: new, added
2591
2592 2007-09-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2593
2594         * doc/sdccman.lyx: mentioned d52 and cmake, customizing startup code
2595         * device/include/mcs51/lint.h added keyword __naked
2596
2597 2007-09-04 Maarten Brock <sourceforge.brock AT dse.nl>
2598
2599         * src/pic16/glue.c,
2600         * src/pic/glue.c,
2601         * src/SDCCmem.h: removed maxRegBank
2602         * src/SDCCmem.c (allocVariables): removed maxRegBank and moved setting
2603           RegBankUsed[] to checkFunction() in SDCCsymt.c to fix bug 1759839
2604         * src/SDCCsymt.c (checkFunction): set RegBankUsed[] here
2605         * src/mcs51/peep.c (isCallerSaveFunc, termScanAtFunc): changed function
2606           name and behaviour to handle banked functions
2607           (scan4op): and use it to fix bug 1786213
2608
2609 2007-09-03 Raphael Neider <rneider AT web.de>
2610
2611         * device/include/pic16/pic18f248.h,
2612         * device/include/pic16/pic18f258.h,
2613         * device/include/pic16/pic18f448.h,
2614         * device/lib/pic16/libdev/pic18f248.c,
2615         * device/lib/pic16/libdev/pic18f258.c,
2616         * device/lib/pic16/libdev/pic18f448.c: fixed TRISEbits,
2617           added T0CONbits, fixes #1786891
2618
2619 2007-08-29 Maarten Brock <sourceforge.brock AT dse.nl>
2620
2621         * src/ds390/gen.c (genFarPointerSet),
2622         * src/hc08/ralloc.c (packRegisters),
2623         * src/mcs51/ralloc.c (packRegisters),
2624         * src/SDCCcse.c (cseBBlock): check if result is a symbol first to fix
2625           bug 1750318
2626         * src/SDCCicode.h: POINTER_SET can be true for literals too
2627         * support/regression/tests/bug1750318.c: new, added
2628
2629 2007-08-23 Borut Razem <borut.razem AT siol.net>
2630
2631         * debugger/mcs51/sdcdb.c: fixed compilation with older readline
2632           library versions without the completition functionality
2633
2634 2007-08-22 Raphael Neider <rneider AT web.de>
2635
2636         * device/include/pic16/pic18f1220.h,
2637         * device/lib/pic16/libdev/pic18f1220.c: applied patch #1776191
2638
2639 2007-08-12 Borut Razem <borut.razem AT siol.net>
2640
2641         * debugger/mcs51/Makefile.in: support/Util/SDCCerr.[ch] moved to src
2642
2643 2007-08-11 Borut Razem <borut.razem AT siol.net>
2644
2645         * support/Util/SDCCerr.c, support/Util/SDCCerr.h, src/src.dsp,
2646           src/Makefile.in, src/Makefile.bcc, support/scripts/listerr.c:
2647           support/Util/SDCCerr.[ch] moved to src
2648         * as/hc08/as_hc08.dsp, as/link/hc08/link_hc08.dsp,
2649           as/link/z80/linkgbz80.dsp, as/link/z80/linkz80.dsp,
2650           device/examples/ds390/tinitalk/tinitalk.dsp,
2651           device/examples/serialcomm/windows/serialcomm.dsp,
2652           support/librarian/librarian.dsp:
2653           removed linking of unused odbc32.lib and odbccp32.lib
2654         * support/scripts/winres.h:
2655           added for compilation with Visual C++ 2005 Express Edition
2656
2657 2007-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2658
2659         * device/include/mcs51/at89c51ed.h: Fixed typo in declarations of CKCON0
2660           and CKCON1.
2661
2662 2007-08-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2663
2664         * sdccconf_in.h: update the endian test so that SPARC Solaris
2665           does not throw syntax errors
2666
2667 2007-08-06 Borut Razem <borut.razem AT siol.net>
2668
2669         * doc/sdccman.lyx: removed two index entries which prevented the
2670           generation of sdcc doc archive
2671
2672 2007-08-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2673
2674         * doc/sdccman.lyx: Same changes made 2007-07-28 but using lyx 1.4.4
2675           instead of lyx 1.5.0.
2676
2677 2007-07-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2678
2679         * device/include/hc08/mc68hc908apxx.h: new header contributed by
2680           Lucas Loizaga, with minor modifications. Thanks!
2681
2682 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2683
2684         * doc/sdccman.lyx: Documented --acall-ajmp and described new features
2685           in sdcclib.
2686
2687 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2688
2689         * src/SDCCglobl.h, src/SDCCpeeph.c, src/SDCCglue.c, src/mcs51/main.c,
2690           src/mcs51/peeph.def: Added option --acall-ajmp: replaces lcall/ljmp
2691           with acall/ajmp.
2692
2693 2007-07-22 Borut Razem <borut.razem AT siol.net>
2694
2695         * configure.in, configure: re-introduced .version
2696         * sdcc.spec, doc/INSTALL.txt: they are used only for releases;
2697           the version reverted to 2.7.0
2698
2699 2007-07-18 Maarten Brock <sourceforge.brock AT dse.nl>
2700
2701         * configure.in,
2702         * doc/sdccman.lyx: bumped version to 2.7.3
2703         * device/include/mcs51/compiler.h: fixed elif->else
2704         * src/mcs51/gen.c (genAnd, genOr): handle accuse for pure bit operands
2705         * src/mcs51/ralloc.c (createStackSpil): fixed SCLS bug with sloc for sbit,
2706           (operandUsesAcc, packRegsForAccUse): added parameter allowBitspace to
2707            enable accuse for bit operands
2708         * src/SDCCmain.c (printVersionInfo),
2709         * src/SDCCutil.c (getBuildEnvironment): factored out creation of build
2710           environment descriptor
2711         * src/SDCCutil.h: added getBuildEnvironment
2712         * src/SDCCglue.c (initialComments): use getBuildEnvironment
2713         * support/regression/tests/bug1464657.c: enabled test test_Peephole251
2714         * support/regression/tests/bug-408972.c: enabled test leftShiftLong
2715         * support/regression/tests/bug1348008.c,
2716         * support/regression/tests/bug1496419.c,
2717         * support/regression/tests/bug1503067.c,
2718         * support/regression/tests/preproc.c: added empty tests
2719
2720 2007-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
2721
2722         * support/regression/tests/bug1678803.c: new, added
2723
2724 2007-07-14 Maarten Brock <sourceforge.brock AT dse.nl>
2725
2726         * as/link/aslink.h,
2727         * as/link/hc08/lkihx.c,
2728         * as/link/hc08/lkrloc.c,
2729         * as/link/mcs51/lkihx.c,
2730         * as/link/mcs51/lkrloc.c: renamed ihxEntendedLinearAddress to
2731           ihxExtendedLinearAddress
2732         * as/link/mcs51/lkrloc.c (relr),
2733         * as/mcs51/asout.c (outr11, outr19): handle absolute destination for
2734           acall/ajmp, see bug 830513
2735
2736 2007-07-13 Maarten Brock <sourceforge.brock AT dse.nl>
2737
2738         * src/SDCCcse.c (replaceAllSymBySym): renamed siaddr to isaddr,
2739           (cseBBlock): remember aggr2ptr has been used
2740         * src/SDCCicode.c (operandSize): added function to handle aggr2ptr,
2741           (geniCodeAssign): fixed bug 868103
2742         * src/SDCCicode.h: made operand.aggr2ptr 2 bits wide,
2743           added operandSize prototype
2744         * src/mcs51/gen.c (aopOp): use operandSize to fix bug 868103,
2745           (genDataPointerSet): use max of size of right and result,
2746           (gencjne): added parameter useCarry for optimization,
2747           (genCmpEq): use carry if appropriate,
2748           (genXor): check if operand already in carry
2749         * support/regression/tests/bug-868103.c: enabled test
2750
2751 2007-07-12 Raphael Neider <rneider AT web.de>
2752
2753         * src/pic16/gen.c (genNearPointerSet): fixed handling of literals
2754
2755 2007-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
2756
2757         * src/SDCCsymt.c (compareType): fixed bugs 1738367 and 1745717 with patch
2758           from Robert Larice, thanks
2759         * support/regression/tests/bitopcse.c,
2760         * support/regression/tests/bitvars.c,
2761         * support/regression/tests/bug-908454.c: use <stdbool.h> for the bit types
2762         * support/regression/tests/bug-927659.c: enabled test for z80
2763         * support/regression/tests/bug1738367.c: added extra tests by Frieder
2764         * support/regression/tests/bug1745717.c: new, added
2765         * support/regression/tests/literalop.c,
2766         * support/regression/tests/nullstring.c: removed storage definitions that
2767           are now in testfwk.h
2768
2769 2007-07-10 Maarten Brock <sourceforge.brock AT dse.nl>
2770
2771         * device/include/stdbool.h: do not define __bool_true_false_are_defined
2772           and bool for targets that do not fully support it.
2773         * support/regression/tests/bug1546986.c,
2774         * support/regression/tests/bug1723128.c,
2775         * support/regression/tests/bug1734654.c,
2776         * support/regression/tests/bug1738367.c,
2777         * support/regression/tests/constantRange.c: only use bool if allowed
2778
2779 2007-07-09 Maarten Brock <sourceforge.brock AT dse.nl>
2780
2781         * src/mcs51/peep.c (isCallerSaveFunc): fixed bug 1749275, thanks Robert
2782           Larice, also handle function pointers
2783         * support/regression/tests/bug1749275.c: new, added
2784
2785 2007-07-03 Borut Razem <borut.razem AT siol.net>
2786
2787         * src/mcs51/gen.c, src/avr/gen.c, src/pic/gen.c, src/z80/gen.c,
2788           src/pic16/gen.c, src/hc08/gen.c, src/ds390/gen.c: fixed RFE
2789           #1746528: SDCC should ignore ':' in inline assembler comments
2790         * device/include/typeof.h: fixed bug #1747142: typeof.h needs fixing
2791
2792 2007-07-02 Maarten Brock <sourceforge.brock AT dse.nl>
2793
2794         * device/include/mcs51/C8051F360.h: fixed bug #1746410, thanks Chris Jones
2795         * device/lib/mcs51/crtxclear.asm: do not set __XPAGE unconditionally
2796
2797 2007-06-29 Borut Razem <borut.razem AT siol.net>
2798
2799         * src/SDCCmain.c: fixed bug
2800           #1744746: SDCC #4867: broken option --xram-size
2801
2802 2007-06-28 Borut Razem <borut.razem AT siol.net>
2803
2804         * sim/ucsim/configure.in, sim/ucsim/configure, sim/ucsim/ddconfig_in.h:
2805           find out the endianess of host machine for ucsim
2806
2807 2007-06-27 Borut Razem <borut.razem AT siol.net>
2808
2809         * support/regression/generate-cases.py: corrected the file name
2810           in warning
2811         * configure.in, configure, sdccconf_in.h: find out the endianess of
2812           host machine
2813         * src/SDCC.y: fixed bug #1744146: Crash when compiling array of
2814           negative size
2815
2816 2007-06-27 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
2817
2818         * device/include/mcs51/p89c66x.h: NXP header file, OK to change licence
2819
2820 2007-06-26 Borut Razem <borut.razem AT siol.net>
2821
2822         * support/regression/generate-cases.py: display warning if function
2823           list is empty; implemented more flexible rule for detection of
2824           testing functions, allowing return type 'void' in the same line as
2825           the function name in the function definition
2826         * support/regression/tests/bug-1654060.c: corrected test
2827         * support/librarian/sdcclib.c: fixed warning:
2828           format '%s' expects type 'char *', but argument 2 has type 'int'
2829
2830 2007-06-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2831
2832         * support/librarian/sdcclib.c: Added feature Requests [1510635]
2833           Multiple infiles for sdcclib.
2834
2835 2007-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2836
2837         * src/SDCCast.c (inlineFindMaxBlockno, createFunction): fixed
2838           bug 1731741
2839
2840 2007-06-18 Borut Razem <borut.razem AT siol.net>
2841
2842         * src/SDCCmain.c: removed option -C since SDCC compiler doesn't know
2843           how to handle comments, so they have to be removed by the
2844           preprocessor; fixed bug #1738926:SDCC #4852: broken option -V
2845         * src/SDCCmain.c, src/SDCCargs.h, src/ds390/main.c, src/mcs15/main.c,
2846           src/pic16/main.c, src/pic/main.c, src/z80/main.c,
2847           support/Util/SDCCerr.c, support/Util/SDCCerr.h:
2848           table driven option hadling
2849
2850 2007-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
2851
2852         * src/SDCCast.c (decorateType),
2853         * src/SDCCicode.c (geniCodeConditional): moved optimization for '?' from
2854           iCode to ast level to fix bug 1738367
2855         * support/regression/tests/bug1738367.c: new, added
2856
2857 2007-06-15 Raphael Neider <rneider AT web.de>
2858
2859         * src/pic16/devices.inc,
2860         * device/lib/pic16/pics.all,
2861         * device/include/pic16/pic18fregs.h,
2862         * device/include/pic16/pic18f[24][45]20.h,
2863         * device/lib/pic16/libdev/pic18f[24][45]20.c: added support for
2864           18f2420, 18f2520, and 18f4420 devices, updated 18f4520 definitions
2865         * device/lib/pic16/Makefile.in: faster cleanup
2866
2867 2007-06-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2868
2869         * src/mcs51/peeph.def: added 177.i (mov from a is slightly cheaper)
2870
2871 2007-06-13 Raphael Neider <rneider AT web.de>
2872
2873         * src/SDCCmain.c: prevent NULL pointer dereference, avoid warning
2874
2875 2007-06-12 Raphael Neider <rneider AT web.de>
2876
2877         * support/scripts/inc2h.pl: conditionally emit defines for SFR bits,
2878           suppress bit defines if NO_BIT_DEFINES is #define'd
2879         * device/include/pic/pic*.h: recreated all headers to include
2880           conditional bit defines
2881         * device/include/pic/pic16f886.h,
2882         * device/include/pic/pic16f887.h: fixed based on newer .inc file
2883         * device/include/pic/recreate.sh: script to recreate the complete
2884           device library files based on the currently supported devices
2885
2886 2007-06-12 Borut Razem <borut.razem AT siol.net>
2887
2888         * src/pic16/main.c, src/SDCCargs.h, SDCCmain.c,
2889           support/regression/Makefile.in, support/scripts/build.mak,
2890           support/scripts/Makefile.snapshot:
2891           use new svn URL scheme
2892         * doc/sdccman.lyx: SDCC Wiki moved to
2893           http://sdcc.wiki.sourceforge.net/
2894
2895 2007-06-10 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2896
2897         * src/mcs51/peeph.def: disabled rule 132.d to fix #1734654
2898         * support/regression/tests/bug1734654.c: added
2899
2900 2007-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
2901
2902         * src/SDCCast.c (decorateType): optimized '?' for equal operands
2903         * src/SDCCicode.c (geniCodeConditional): optimization for bit result
2904           with literal operands
2905
2906 2007-06-10 Borut Razem <borut.razem AT siol.net>
2907
2908         * as/link/z80/lklibr.c: fixed mingw build warning
2909           lklibr.c:575: warning: implicit declaration of function 'tolower'
2910         * src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c,
2911           src/z80/main.c: move target specific options from src/SDCCmain.c
2912           to src/<target>/main.c
2913
2914 2007-06-09 Borut Razem <borut.razem AT siol.net>
2915
2916         * src/z80/gen.c: fixed bug #1294691: nested ifs make compiler crash;
2917           removed unused swap_sense; removed outBitCLong, replaced with outBitC
2918         * support/regression/tests/bug-1294691.c: added
2919
2920 2007-06-09 Maarten Brock <sourceforge.brock AT dse.nl>
2921
2922         * src/SDCCmem.c (allocDefault): removed check sym->level==0 for SPEC_ABSA,
2923           can also be static, fixes bug 1733438
2924         * src/SDCCsymt.c (checkSClass): static local vars in reentrant funcs can
2925           have absolute address too
2926           (computeType): added optimization for 'cond ? true : false'
2927         * support/regression/tests/absolute.c: added test for static absolute var
2928
2929 2007-06-08 Raphael Neider <rneider AT web.de>
2930
2931         * src/regression/Makefile: suppress parallel builds, allow easy
2932           switching between pic14/pic16 ports
2933         * src/regression/picregs.h: added pic14/16 header file switch
2934         * src/regression/{compare7.c,compare8.c,compare9.c,compare10.c,
2935           inline.c,nestfor.c,string1.c}: include "picregs.h"
2936
2937 2007-06-07 Borut Razem <borut.razem AT siol.net>
2938
2939         * sim/ucsim/*.[ch], sim/ucsim/configure, sim/ucsim/configure.in:
2940           permanent solution to suppress GCC 4.2.0 c++ warning:
2941           deprecated conversion from string constant to `char *'
2942           use 'const char *' where ever required
2943         * support/regression/generate-cases.py: implemented more flexible rule
2944           for detection of testing functions, allowing white-spaces surrounding
2945           the function name and the 'void' parameter.
2946         * support/regression/tests/constantRange.c,
2947           support/regression/tests/scott-compare3.c: fixed failing regression
2948           tests, uncovered by implementation of more flexible rule for detection
2949           of testing functions
2950
2951 2007-06-04 Maarten Brock <sourceforge.brock AT dse.nl>
2952
2953         * src/SDCCast.c(decorateType): better optimize '!!' and comparisons
2954
2955 2007-06-04 Borut Razem <borut.razem AT siol.net>
2956
2957         * configure.in, configure, config_vc.awk: sdcc version number is now
2958           stored in configure.in; removed .version
2959         * configure.in, configure, sdcc.spec, doc/sdccman.lyx, doc/sdccman.lyx,
2960           doc/INSTALL.txt: version bumped to 2.7.2
2961         * sim/ucsim/configure.in, sim/ucsim/configure:
2962           use "read" to read from .version
2963
2964 2007-06-03 Borut Razem <borut.razem AT siol.net>
2965
2966         * */Makefile.in: removed annoying warning:
2967           Makefile:xx: Makefile.dep: No such file or directory
2968
2969 2007-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
2970
2971         * src/mcs51/gen.c (outBitC, genRet): used IS_OP_RUONLY,
2972           (genNot, genXor): used toCarry, also fixes a bug for c = bit ^ val
2973         * src/mcs51/ralloc.c: removed IS_OP_RUONLY + some cosmetic changes
2974         * src/SDCCast.c (resultTypePropagate): propagate for '!',
2975           (decorateType): also optimize comparisons with RESULT_TYPE_BIT,
2976           bugfix: only use newBoolLink for bit result type
2977         * src/SDCCicode.c (geniCodeLogic): added param tree,
2978           bugfix: use newBoolLink if tree is bit type, bug appears when ruonly,
2979           (geniCodeLogicAndOr): use IS_BIT,
2980           (geniCodeJumpTable, geniCodeSwitch): added NULL param to geniCodeLogic,
2981           (ast2iCode): added tree param to geniCodeLogic for comparisons
2982         * src/SDCCsymt.h: added IS_OP_RUONLY and IS_OP_ACCUSE
2983         * support/regression/tests/bug1723128.c: added test NotZero
2984
2985 2007-06-01 Borut Razem <borut.razem AT siol.net>
2986
2987         * SDCPP synchronized with GCC CPP release version 4.2.0,
2988           currently the latest release:
2989         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
2990           support/cpp2/c-ppoutput.c, support/cpp2/cppdefault.c,
2991           support/cpp2/cppdefault.h, support/cpp2/except.h,
2992           support/cpp2/libcpp/directives.c, support/cpp2/libcpp/expr.c,
2993           support/cpp2/libcpp/files.c, support/cpp2/libcpp/include/cpplib.h,
2994           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
2995           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/macro.c,
2996           support/cpp2/libcpp/mkdeps.c, support/cpp2/libiberty/getpwd.c,
2997           support/cpp2/libiberty/hashtab.c, support/cpp2/optc-gen.awk,
2998           support/cpp2/opth-gen.awk, support/cpp2/opts.c,
2999           support/cpp2/opts.h, support/cpp2/output.h,
3000           support/cpp2/prefix.c, support/cpp2/sdcpp-opts.c,
3001           support/cpp2/sdcpp.dsp, support/cpp2/sdcpp.opt,
3002           support/cpp2/system.h, support/cpp2/version.c,
3003           support/cpp2/Makefile.in: modified
3004         * support/cpp2/opts-common.c: added
3005         * device/lib/pic16/libdev/pic18f[24][45]j10.c: fixed svn atrributes
3006         * device/lib/pic16/libdev/pic18f[24]5j10.c:
3007           search for included source file in local directory
3008         * sim/ucsim/configure, sim/ucsim/configure.in:
3009           temporary solution to suppress GCC 4.2.0 c++ warning:
3010           deprecated conversion from string constant to `char *'
3011
3012 2007-06-01 Raphael Neider <rneider AT web.de>
3013
3014         * device/lib/pic/libdev/pic12f683.c,
3015         * device/include/pic/pic12f683.h: added GPIO bits
3016
3017 2007-06-01 Raphael Neider <rneider AT web.de>
3018
3019         * doc/sdccman.lyx: added --disable-pic16-port, fixed some `--' and
3020           quotation marks, clarified role of PIC14 vs. PIC16 ports
3021         * src/pic16/devices.inc,
3022         * device/include/pic16/pic18fregs.h,
3023         * device/include/pic16/pic18f[24][45]j10.h,
3024         * device/lib/pic16/pics.all,
3025         * device/lib/pic16/libdev/pic18f[24][45]j10.c: added support for
3026           18f24j10, 18f25j10, 18f44j10, and 18f45j10
3027         * device/lib/pic16/libio/{i2c,adc,usart}.ignore: do not build IO libs
3028           for new devices as they are not yet supported by gputils
3029
3030 2007-05-31 Borut Razem <borut.razem AT siol.net>
3031
3032         * Small Device C Compiler 2.7.0 released
3033         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
3034           changed sdcc version to 2.7.1
3035         * support/scripts/sdcc.nsi: added How to create WIN32 release
3036           setup.exe package
3037
3038 2007-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
3039
3040         * doc/sdccman.lyx: documented initialization and allocation of absolute
3041           variables, bit parameter passing, the need for function pointers to be
3042           reentrant and alpha quality support of inline and retrict
3043
3044 2007-05-26 Borut Razem <borut.razem AT siol.net>
3045
3046         * support/regression/tests/bug1057979.c, support/regression/tests/malloc.c,
3047           support/regression/fwk/include/testfwk.h: fixed compilation on Mac OS x
3048         * docs/knownbugs.html: updated
3049
3050 2007-05-25 Maarten Brock <sourceforge.brock AT dse.nl>
3051
3052         * doc/sdccman.lyx: inserted footnotes about inline assembler labels,
3053           thanks Jan Waclawek
3054         * src/mcs51/gen.c (aopPut): fixed part of bug 1723128 when result is
3055           AOP_CRY and ruonly
3056           (gencjneshort): optimized when left is AOP_DIR
3057         * src/SDCCglue.c (printIvalStruct): fixed other part of bug 1723128 for
3058           initializing unions in a struct/array
3059         * support/regression/fwk/include/testfwk.h: added defines for data, near
3060           and far for host and z80
3061         * support/regression/tests/bug1723128.c: new, added
3062
3063 2007-05-22 Borut Razem <borut.razem AT siol.net>
3064
3065         * doc/knownbugs.html: updated
3066
3067 2007-05-21 Raphael Neider <rneider AT web.de>
3068
3069         * src/pic16/glue.c (pic16_initPointer): avoid assertion, emit better
3070           error message instead
3071         * src/pic/pcoderegs.c (pCodeOptime2pCodes): keep register state intact
3072
3073 2007-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
3074
3075         * src/mcs51/peeph.def (257.b): disabled to fix bug 1721024
3076
3077 2007-05-21 Raphael Neider <rneider AT web.de>
3078
3079         * src/pic/pcoderegs.c (pCodeOptime2pCodes): fixed bogus optimization,
3080           closes #1722392
3081         * src/regression/gpsim_assert.h,
3082         * src/regression/Makefile,
3083         * src/regression/pcodeopt.c: regression test for the above fix
3084
3085 2007-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
3086
3087         * src/SDCCpeeph.c (labelIsUncondJump): ignore identical labels for
3088           jumps to self, fixed bug 1717281
3089
3090 2007-05-10 Borut Razem <borut.razem AT siol.net>
3091
3092         * support/scripts/gen_known_bugs.pl: cosmetic fix
3093         * doc/knownbugs.html: generated by gen_known_bugs.pl
3094
3095 2007-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3096
3097         * src/SDCCast.c (createFunction): also generate non-inlined version of
3098           function for functions declared as "static inline"
3099         * src/SDCCast.c (fixupInline, inlineAddDecl): reset symbol state so
3100           function can be inlined after non-inlined version generated.
3101
3102 2007-05-10 Borut Razem <borut.razem AT siol.net>
3103
3104         * support/scripts/gen_known_bugs.pl: added script
3105           which generates knownbugs.html
3106
3107 2007-05-09 Maarten Brock <sourceforge.brock AT dse.nl>
3108
3109         * doc/knownbugs.html: updated for release 2.7.0
3110
3111 2007-05-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3112
3113         * device/include/mcs51/uPSD33xx.h: Added patch by Jan Waclawek.
3114
3115 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
3116
3117         * src/ds390/gen.c (emitcode): don't change properties of previous lines,
3118           (throughout): updated generating comments
3119         * src/mcs51/gen.c (emitcode): don't change properties of previous lines,
3120           (throughout): updated generating comments
3121         * src/SDCCpeeph.c (peepHole): continue searching at the first replaced
3122           rule instead of at the second, or it might skip lines when removing the
3123           complete match
3124         * support/regression/tests/bug1714204.c: changed test to foo
3125
3126 2007-05-08 Borut Razem <borut.razem AT siol.net>
3127
3128         * doc/sdccman.lyx: changed sdcc version to 2.7.0,
3129           thanks to SDCC Distributed Compile Farm members,
3130           added Z80 and GBZ80 command line options
3131         * .version, doc/INSTALL.txt, sdcc.spec: changed sdcc version to 2.7.0
3132
3133 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
3134
3135         * device/lib/mcs51/crtxinit.asm: added disabled version for dual dptr
3136         * device/include/mcs51/uPSD33xx.h: added sfr DPS as alias for DPTC
3137         * support/regression/tests/longlit.c: modified to be tested at all and
3138           to pass the actual test
3139
3140 2007-05-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3141
3142         * device/include/mcs51/uPSD33xx.h: Added.
3143
3144 2007-05-07 Maarten Brock <sourceforge.brock AT dse.nl>
3145
3146         * device/lib/_gptrput.c,
3147         * device/lib/_gptrget.c: removed old code,
3148          (_gptrgetWord),
3149         * src/ds390/gen.c (genGenPointerGet): fixed bug 1714204
3150         * support/regression/tests/bug1714204.c: new, added
3151
3152 2007-05-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3153
3154         * support/regression/tests/regtrack.c: test was never executed
3155           because of the regression test being picky about white spaces.
3156         * device/lib/mcs51/crtclear.asm: added comment
3157
3158 2007-05-06 Raphael Neider <rneider AT web.de>
3159
3160         * device/lib/pic/Makefile.rules,
3161         * device/lib/pic16/Makefile.rules: make sure *.ignore file exists,
3162           made "&> /dev/null" redirection sh-safe ("> /dev/null 2>&1")
3163
3164 2007-05-06 Raphael Neider <rneider AT web.de>
3165
3166         * src/pic16/device.h,
3167         * src/pic16/main.h,
3168         * src/pic16/main.c (pic16_optionsTable,_pic16_parseOptions,
3169           _pic16_setDefaultOptions): removed/reordered command-line args
3170         * doc/sdccman.lyx: updated PIC14 and PIC16 documentation (supported
3171           devices, regrouped command line args, environment variables),
3172           clarified sone points, added sections on how to add devices to the
3173           PIC14/PIC16 ports
3174
3175 2007-05-06 Maarten Brock <sourceforge.brock AT dse.nl>
3176
3177         * src/z80/peeph.def: fixed bug in rule 2
3178
3179 2007-05-05 Maarten Brock <sourceforge.brock AT dse.nl>
3180
3181         * src/port.h: added TARGET_MCS51_LIKE
3182         * src/SDCCpeeph.c (labelIsUncondJump): new, added, other targets could
3183           take advantage of it too
3184         * src/z80/gen.c (genIpush): push b, d or h directly instead of using a,
3185           (shiftR2Left2Result): Optimized: don't check shifting by 0
3186         * src/z80/peeph-z80.def,
3187         * src/z80/peeph.def: whole set of new rules by Philipp Krause with some
3188           modifications, see patch 1700823
3189         * src/mcs51/peep.c (): fixed bug 1712928
3190         * support/regression/tests/bug1712928.c: new, added
3191
3192 2007-05-05 Borut Razem <borut.razem AT siol.net>
3193
3194         * device/lib/pic16/Makefile.common.in,
3195           device/lib/pic/Makefile.common.in, sim/ucsim/cmd.src/Makefile.in:
3196           removed bash dependencies
3197
3198 2007-05-01 Borut Razem <borut.razem AT siol.net>
3199
3200         * src/SDCCicode.c:
3201           fixed bug #1710507: --i-code-in-asm makes compile fail
3202           all iCode comments are now one liners
3203         * src/mcs51/gen.c: fixed memory leak
3204
3205 2007-05-01 Raphael Neider <rneider AT web.de>
3206
3207         * device/lib/pic/libdev/*.c
3208         * device/include/pic/*.h: regenerated all device libs from updated
3209           .inc files
3210         * support/scripts/inc2h.pl: documented usage, now uses strict to
3211           catch more bugs
3212
3213 2007-04-30 Borut Razem <borut.razem AT siol.net>
3214
3215         * doc/sdccman.lyx:
3216           fixed bug #1669175: Problem with space in output paths
3217           documented how to use paths with spaces for Windows users
3218
3219 2007-04-29 Borut Razem <borut.razem AT siol.net>
3220
3221         * Fixed svn:eol-style and svn:keywords properties
3222         * src/SDCCval.c: fixed bug
3223           #1592871: Segfault with "large" const arrays of characters
3224           replaced recursion with iteration
3225         * Removed svn:executable property from non-executable files
3226
3227 2007-04-29 Maarten Brock <sourceforge.brock AT dse.nl>
3228
3229         * src/mcs51/gen.c (genRet): fixed bug 1707003
3230
3231 2007-04-27 Raphael Neider <rneider AT web.de>
3232
3233         * src/pic16/pcode.c (pBlockRemoveUnusedLabels,pic16_pBlockAddInval,
3234           createReachingDefinitions,assignValnums,pic16_destructDF,
3235           pic16_createDF,pic16_vcg_dumpedges,pic16_vcg_dump_default):
3236           prevent NULL pointer dereferences
3237         * device/lib/pic/libdev/pic16f886.c,
3238         * device/lib/pic/libdev/pic16f887.c: svn mv'ed to disabled_* to
3239           prevent building them, gputils do not really support them yet
3240
3241 2007-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3242
3243         * device/lib/_ltoa.c: 36 bytes less __data mem. This really
3244           helps printf_small. 32 bytes more __idata mem.
3245
3246 2007-04-27 Raphael Neider <rneider AT web.de>
3247
3248         * src/pic/pcode.c (addpCode2pBlock,LinkFlow,pBlockRemoveUnusedLabels):
3249           return early when pb or pb->pcHead is NULL (patch #1708427)
3250         * src/regression/empty.c,
3251         * src/regression/Makefile: added test with empty functions
3252         * support/Util/SDCCerr.c: fixed typo in E_INIT_STRUCT message
3253
3254 2007-04-27 Borut Razem <borut.razem AT siol.net>
3255
3256         * src/SDCCast.c: fixed feature request
3257           #1547512: Redundant strings linked when using sizeof("abc")
3258
3259 2007-04-23 Borut Razem <borut.razem AT siol.net>
3260
3261         * doc/sdccman.lyx, src/SDCCmain.c:
3262           peep-hole comments are generated only if --fverbose-asm option is
3263           specified and --no-peep-comments is not, as proposed by Frieder.
3264         * support/regression/Makefile.in: compile regression tests with
3265           --fverbose-asm option so one can "grep" whether a new (or an old)
3266           peephole is (still) applied; requested by Frieder.
3267
3268 2007-04-23 Kevin Buettner <kevin AT buettner.to>
3269
3270         * device/include/pic/pic16f886.h,
3271         * device/include/pic/pic16f887.h,
3272         * device/lib/pic/libdev/pic16f886.c,
3273         * device/lib/pic/libdev/pic16f887.c,
3274         * device/include/pic/pic14devices.txt,
3275         * device/lib/pic/libdev/devices.txt: Add 16f886 and 16f887.
3276
3277 2007-04-23 Kevin Buettner <kevin AT buettner.to>
3278
3279         * device/lib/pic/libsdcc/idata.c: PAGESEL _main before going there,
3280           fixes #1704666
3281
3282 2007-04-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3283
3284         * device/lib/_memset.c: assembler version for mcs51
3285
3286 2007-04-22 Borut Razem <borut.razem AT siol.net>
3287
3288         * support/scripts/listerr.c: program to create the list of errors and
3289           warnings list from - added
3290         * doc/sdccman.lyx: removed the note
3291           "For list of warnings and corresponding codes, see err_warn.txt"
3292         * src/SDCCsymt.c: fixed bug #1699804:
3293           Bug with some uses of sizeof(static local array) (MCS51)
3294         * support/regression/tests/bug-1699804.c: added
3295
3296 2007-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
3297
3298         * as/mcs51/asmain.c (search_path_append, search_path_fopen): new, added,
3299           (main): added option -i,
3300           (asmbl, case S_INCL): use search_path_fopen,
3301           mostly from patch 1579668 by Peter Miller, thanks
3302         * src/z80/main.c: fixed typo --callee-saves-bc
3303         * device/include/mcs51/compiler.h: added sfrword for Tasking
3304
3305 2007-04-20 Borut Razem <borut.razem AT siol.net>
3306
3307         * src/z80/main.c: replaced reserved keyword asm with asmblr
3308
3309 2007-04-19 Borut Razem <borut.razem AT siol.net>
3310
3311         * src/port.h: use const pointers to strings
3312         * src/SDCCargs.h: declared getStringArg() and getIntArg()
3313         * src/pic16/main.c: include SDCCargs.h
3314         * src/SDCCglobl.h: code_seg and const_seg are not pointers to
3315           const char, since the strings are dynamically allocated
3316         * src/SDCCmain.c: options.code_seg and options.const_seg are
3317           dynamically allocated; check port specific command line options
3318           before the general ones
3319         * src/z80/main.c: fixed bug #1631895: codeseg/constseg #pragma fail
3320
3321 2007-04-18 Maarten Brock <sourceforge.brock AT dse.nl>
3322
3323         * device/include/ds400rom.h,
3324         * device/lib/ds390/lcd390.c,
3325         * device/lib/ds390/memcpyx.c,
3326         * device/lib/ds390/rtc390.c,
3327         * device/lib/ds400/ds400rom.c,
3328         * device/lib/ds400/memcpyx.c,
3329         * device/lib/hc08/_ret.c: more replacements of keywords with their
3330           double underscore equivalents
3331         * device/lib/ds390/Makefile.in,
3332         * device/lib/ds400/Makefile.in,
3333         * device/lib/gbz80/Makefile.in,
3334         * device/lib/hc08/Makefile.in,
3335         * device/lib/mcs51/Makefile.in,
3336         * device/lib/z80/Makefile.in: added --std-c89 to CFLAGS
3337
3338 2007-04-17 Borut Razem <borut.razem AT siol.net>
3339
3340         * doc/sdccman.lyx, src/SDCCmain.c, src/SDCCglobal.h, src/ds390/gen.c,
3341           src/hc08/gen.c, src/mcs51/gen.c, src/mcs51/rtrack.c:
3342           fixed #1493816: option --no-gen-comments: --no-gen-comments renamed
3343           to --fverbose-asm, to be gcc'ish
3344
3345 2007-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
3346
3347         * src/mcs51/gen.c (aopOp): set size to 1 for ruonly, fixes bug 1699455
3348
3349 2007-04-17 Borut Razem <borut.razem AT siol.net>
3350
3351         * doc/sdccman.lyx: fixed #1701874: Mac OSX references in SDCC manual
3352         * device/lib/ds400/tinibios.c, device/lib/hc08/_divuint.c,
3353           device/lib/hc08/_divulong.c: replaced _asm and _endasm keywords
3354           with their double underscore equivalent
3355
3356 2007-04-14 Borut Razem <borut.razem AT siol.net>
3357
3358         * doc/sdccman.lyx: some additional "freeware" replaced with "free open
3359           source"
3360
3361 2007-04-13 Borut Razem <borut.razem AT siol.net>
3362
3363         * doc/sdccman.lyx: -pedantic-parse-number is not in conformance with
3364           C99 standard
3365         * device/examples/serialcomm/windows/serial.[ch],
3366           device/examples/serialcomm/windows/test_serialcomm.cpp:
3367           updated by Bela Torok
3368         * device/examples/serialcomm/windows/serialcomm.dsw,
3369           device/examples/serialcomm/windows/serialcomm.dsp: added
3370
3371 2007-04-13 Jan Waclawek <wek AT efton.sk>
3372
3373         * doc/sdccman.lyx: additions and changes at various places
3374           (submitted as #1697136).
3375           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
3376
3377 2007-04-10 Borut Razem <borut.razem AT siol.net>
3378
3379         * doc/cdbfileformat.lyx, doc/sdccman.lyx, doc/test_suite_spec.lyx:
3380           LyX file format changed to 245
3381         * doc/sdccman.lyx, doc/README.txt, sdc/SDCC.lex, src/SDCCglue.c:
3382           "FreeWare" replaced with "free open source"
3383
3384 2007-04-10 Maarten Brock <sourceforge.brock AT dse.nl>
3385
3386         * device/include/mcs51/C8051F120.h: added some defines for bits in RSTSRC
3387
3388 2007-04-08 Maarten Brock <sourceforge.brock AT dse.nl>
3389
3390         * device/include/pic16/pic18fregs.h,
3391         * device/lib/_bp.c,
3392         * device/lib/_decdptr.c,
3393         * device/lib/_divsint.c,
3394         * device/lib/_divslong.c,
3395         * device/lib/_divuint.c,
3396         * device/lib/_divulong.c,
3397         * device/lib/_fs2schar.c,
3398         * device/lib/_fs2sint.c,
3399         * device/lib/_fs2slong.c,
3400         * device/lib/_fs2uchar.c,
3401         * device/lib/_fs2uint.c,
3402         * device/lib/_fs2ulong.c,
3403         * device/lib/_fsadd.c,
3404         * device/lib/_fscmp.c,
3405         * device/lib/_fsdiv.c,
3406         * device/lib/_fseq.c,
3407         * device/lib/_fsget1arg.c,
3408         * device/lib/_fsget2args.c,
3409         * device/lib/_fsgt.c,
3410         * device/lib/_fslt.c,
3411         * device/lib/_fsmul.c,
3412         * device/lib/_fsneq.c,
3413         * device/lib/_fsnormalize.c,
3414         * device/lib/_fsreturnval.c,
3415         * device/lib/_fsrshift.c,
3416         * device/lib/_fssub.c,
3417         * device/lib/_fsswapargs.c,
3418         * device/lib/_gptrget.c,
3419         * device/lib/_gptrgetc.c,
3420         * device/lib/_gptrput.c,
3421         * device/lib/_logexpf.c,
3422         * device/lib/_modsint.c,
3423         * device/lib/_modslong.c,
3424         * device/lib/_moduint.c,
3425         * device/lib/_modulong.c,
3426         * device/lib/_mulint.c,
3427         * device/lib/_mullong.c,
3428         * device/lib/_schar2fs.c,
3429         * device/lib/_ser.c,
3430         * device/lib/_setjmp.c,
3431         * device/lib/_sint2fs.c,
3432         * device/lib/_slong2fs.c,
3433         * device/lib/_spx.c,
3434         * device/lib/_uchar2fs.c,
3435         * device/lib/_uint2fs.c,
3436         * device/lib/_ulong2fs.c,
3437         * device/lib/asincosf.c,
3438         * device/lib/atanf.c,
3439         * device/lib/calloc.c,
3440         * device/lib/ds390/tinibios.c,
3441         * device/lib/ds400/tinibios.c,
3442         * device/lib/expf.c,
3443         * device/lib/free.c,
3444         * device/lib/hc08/_mulint.c,
3445         * device/lib/logf.c,
3446         * device/lib/malloc.c,
3447         * device/lib/printf_fast.c,
3448         * device/lib/printf_tiny.c,
3449         * device/lib/printfl.c,
3450         * device/lib/realloc.c,
3451         * device/lib/ser_ir.c,
3452         * device/lib/serial.c,
3453         * support/regression/tests/libmullong.c: replaced all special keywords
3454           with their double underscore equivalent
3455         * support/regression/ports/mcs51-xstack-auto/spec.mk,
3456         * device/lib/Makefile.in: compile libs with --std-c99 instead of
3457           --std-sdcc99
3458         * src/mcs51/gen.c (outBitC): don't store if result is return-use-only,
3459           (genRet): if the bit-symbol is ruonly it already is in the carry
3460         * src/mcs51/ralloc.c (regTypeNum): make regType REG_CND for ruonly bit
3461         * src/SDCCast.c (createFunction): applied patch 887171 by Stas Sergeev
3462         * src/SDCCicode.c (ast2iCode): '!', GETHBIT, GETABIT: only set operand
3463           type UCHAR if dest is not bit
3464
3465 2007-04-03 Maarten Brock <sourceforge.brock AT dse.nl>
3466
3467         * device/include/math.h,
3468         * device/lib/cotf.c,
3469         * device/lib/expf.c,
3470         * device/lib/sincoshf.c: changed XMAX to C99 HUGE_VALF
3471
3472 2007-04-01 Borut Razem <borut.razem AT siol.net>
3473
3474         * src/SDCC.lex, src/SDCCmain.c, support/cpp2/sdcpp.c:
3475           fixed bug #1692042: input buffer overflow...scanner uses REJECT
3476         * support/cpp2/sdcpp.c: fixed recursion bug - internal_error() called
3477           gcc_unreachable() called internal_error()...
3478
3479 2007-03-30 Raphael Neider <rneider AT web.de>
3480
3481         * src/pic/ralloc.c (isData): suppress garbage debug output
3482
3483 2007-03-28 Borut Razem <borut.razem AT siol.net>
3484
3485         * doc/sdccman.lyx:
3486           "Nightly Snapshots" replaced with "Snapshot Builds", since the SDCC
3487           is developed, built and used worldwide, and the word "night" doesn't
3488           make any sense.
3489
3490 2007-03-28 Maarten Brock <sourceforge.brock AT dse.nl>
3491
3492         * device/include/mcs51/C8051F360.h: new, added
3493         * device/include/mcs51/C8051F520.h: fixed buggy sbit addresses SPI0CN
3494
3495 2007-03-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3496
3497         * src/SDCC.y (declaration_specifiers, function_specifier),
3498         * support/Util/SDCCerr.c,
3499         * support/Util/SDCCerr.h,
3500         * src/SDCCsymt.h,
3501         * src/SDCCsymt.c (mergeSpec, checkFunction): Parse and validate the
3502           inline keyword
3503         * src/SDCCmem.c (deallocParms),
3504         * src/SDCCast.c: support for function inlining, not quite complete
3505         * src/SDCCsymt.c (printTypeChain, printTypeChainRaw): display
3506           'restrict' qualifier
3507
3508 2007-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
3509
3510         * src/mcs51/gen.c (saveRegisters, unsaveRegisters): free some bitVects,
3511           (saveRBank, unsaveRBank): don't save bits,
3512           (genFunction, genEndFunction): save bits exactly once, fix bug 1535242
3513         * support/regression/tests/bug1535242.c: new, added
3514         * device/include/assert.h: applied patch 1686533 to fix bug 1686528,
3515           thanks Alexey Shamrin <shamrin AT gmail.com>,
3516           made assert.h header ANSI compliant (added a check for NDEBUG macro,
3517           removed header guard)
3518         * .version,
3519         * sdcc.spec: bumped version to 2.6.5
3520         * src/SDCCmain.c(parseCmdLine): fixed bug 1677144
3521
3522 2007-03-22 Borut Razem <borut.razem AT siol.net>
3523
3524         * debugger/mcs51/cmd.c, debugger/mcs51/sdcdb.c:
3525           fixed bug #1653671: sdcdb integration into ddd is broken
3526
3527 2007-03-22 Raphael Neider <rneider AT web.de>
3528
3529         * src/pic/gen.c (popGetExternal): augmented to also create references
3530           to external variables (not only labels),
3531           (genCall): comment on plan to reduce PAGESEL overhead,
3532           (genFunction, genEndFunction): also save/restore FSR around interrupt
3533           handling code, removed lots of unused code
3534           (genDivOneByte): release acquired temp register
3535         * src/pic/glue.c (pic14createInterruptVect): adapt to new signature
3536           of popGetExternal
3537         * device/lib/pic/libsdcc/shadowregs.c: NEW, provide storage location
3538           for registers that need to be saved during interrupts (FSR, STATUS,
3539           PCLATH; W needs special handling), currently only FSR is used
3540
3541 2007-03-22 Raphael Neider <rneider AT web.de>
3542
3543         * device/include/pic/pic14devices.txt: 16f688 has only one config word
3544
3545 2007-03-19 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3546
3547         * /as/link/mcs51/aslink.dsp: Object extension for mcs51 is 'rel' not 'o'.
3548
3549 2007-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
3550
3551         * src/mcs51/peeph.def (263.x): fixed bug for volatile variables
3552
3553 2007-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
3554
3555         * as/link/aslink.h: added LKOBJEXT
3556         * as/link/hc08/link_hc08.dsp,
3557         * as/link/hc08/Makefile.bcc,
3558         * as/link/hc08/Makefile.in,
3559         * as/link/mcs51/aslink.dsp,
3560         * as/link/mcs51/Makefile.bcc,
3561         * as/link/mcs51/Makefile.in: moved lkamof51.c and lkdata.c
3562         * as/link/hc08/lkaomf51.c,      as/link/mcs51/lkaomf51.c,
3563         * as/link/lkaomf51.c: merged and moved
3564         * as/link/hc08/lkdata.c,        as/link/mcs51/lkdata.c,
3565         * as/link/z80/lkdata.c,
3566         * as/link/lkdata.c: merged and moved
3567         * as/link/hc08/lkmain.c,
3568         * as/link/mcs51/lkmain.c: cosmetic changes
3569         * as/link/z80/lkeval.c,         as/link/lkeval.c: merged
3570         * as/link/lklex.c: use LKOBJEXT
3571         * as/link/z80/lklist.c,         as/link/lklist.c: merged,
3572           ANSI-fied functions, removed bubble-sorts
3573         * as/link/z80/lksym.c           as/link/lksym.c: merged,
3574           ANSI-fied functions
3575         * as/link/z80/linkgbz80.dsp,
3576         * as/link/z80/linkz80.dsp,
3577         * as/link/z80/Makefile.in: added lkaomf51.c and lknoice.c,
3578           moved lkdata.c, lkeval.c, lkhead.c, lklex.x, lklist.c, lksym.c
3579         * as/link/z80/lkhead.c,
3580         * as/link/z80/lklex.c: deleted
3581         * as/link/z80/lklibr.c: moved LKOBJEXT to aslink.h
3582         * as/link/z80/lkmain.c: added copyfile()
3583
3584 2007-03-13 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3585
3586         * device/include/mcs51/P89LPC925.h: Added missing P1_6 and P1_7.
3587
3588 2007-03-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3589
3590         * device/lib/_strlen.c: assembler version for mcs51
3591
3592 2007-03-13 Raphael Neider <rneider AT web.de>
3593
3594         * device/include/pic16/pic18f2221.h,
3595         * device/include/pic16/pic18f2321.h,
3596         * device/include/pic16/pic18f2331.h,
3597         * device/include/pic16/pic18f4221.h,
3598         * device/include/pic16/pic18f4321.h,
3599         * device/include/pic16/pic18f4331.h: fixed config byte location names
3600         * support/scripts/inc2h-pic16.pl: removed debug output, emit
3601           consistently named config byte locations
3602
3603 2007-03-13 Borut Razem <borut.razem AT siol.net>
3604
3605         * src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
3606           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/s51.src/Makefile.in,
3607           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
3608           as/link/z80/Makefile.in, as/z80/Makefile.in:
3609           introduced LDFLAGS
3610
3611 2007-03-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3612
3613         * device/lib/printfl.c: 13 bytes less __data mem (12 more __idata)
3614         * device/lib/printf_large.c: pointer was converted to generic
3615         pointer for mcs51 models other than model-small (Maarten noticed)
3616
3617 2007-03-10 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3618
3619         * device/include/mcs51/ADuC84x.h: Added.
3620
3621 2007-03-10 Borut Razem <borut.razem AT siol.net>
3622
3623         * src/SDCC.lex, src/SDCCutil.[ch], src/SDCCval:
3624           fixed RFE #1624219: double backslashes in filenames;
3625           functions hexEscape(), octalEscape() and copyStr() moved from
3626           SDCCval.c to SDCCutil.c and made them glovbally available
3627
3628 2007-03-09 Borut Razem <borut.razem AT siol.net>
3629
3630         * src/SDCC.lex, src/SDCCast.c. src/SDCCglobl.c, src/SDCCsymt.c,
3631           src/SDCCval.c: fixed bugs #1676768: Wrong line number reported and
3632           1673361: Missaligned comments in output files
3633
3634 2007-03-09 Raphael Neider <rneider AT web.de>
3635
3636         * device/include/pic/pic14devices.txt: fixed confsiz of 16f91[3467]
3637
3638 2007-03-09 Raphael Neider <rneider AT web.de>
3639
3640         * src/pic/gen.c,
3641         * src/pic/glue.c,
3642         * src/pic/ralloc.c: suppress undesired debug output
3643         * src/SDCCmain.c (linkEdit): initialize c to quieten compiler
3644
3645 2007-03-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3646
3647         * device/lib/printf_large.c: 6 bytes less __data mem (6 more __idata)
3648
3649 2007-03-07 Borut Razem <borut.razem AT siol.net>
3650
3651         * device/lib/pic16/libdev/pic18f[24][34]31.c:
3652           search include files in the current directory
3653
3654 2007-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
3655
3656         * src/SDCCglue.c (emitMaps, glue),
3657         * src/SDCCmem.c (initMem, allocDefault): added x_abs for initialized
3658           absolute xdata
3659         * support/regression/tests/absolute.c: added xdata test
3660
3661 2007-03-03 Maarten Brock <sourceforge.brock AT dse.nl>
3662
3663         * src/SDCCmain.c (parseCmdLine): only set options.xstack_loc for mcs51,
3664           added condition to macro, fixes bug 1666080
3665
3666 2007-03-02 Raphael Neider <rneider AT web.de>
3667
3668         * src/pic/gen.c (genGenPointerSet): removed bogus assertion
3669
3670 2007-02-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3671
3672         * device/lib/mcs51/crtxclear.asm: pdata segment of 256 byte would not
3673         be cleared. Unconditionally set __XPAGE
3674         * src/hc08/gen.c: --no-gen-comments (RFE #1493816) for hc08
3675
3676 2007-02-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3677
3678         * src/SDCCglobl.h,
3679         * src/SDCCmain.c,
3680         * src/mcs51/gen.c,
3681         * src/mcs51/rtrack.c,
3682         * src/ds390/gen.c,
3683         * doc/sdccman.lyx: added --no-gen-comments
3684         * src/mcs51/peeph.def: added 192.b, disabled 185
3685
3686 2007-02-25 Raphael Neider <rneider AT web.de>
3687
3688         * src/pic16/gen.c (genCast): fixed typo
3689         * device/lib/pic16/Makefile.subdir: only install existing files
3690         * device/lib/pic16/libdev/Makefile.in: build serially, avoid races
3691
3692 2007-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
3693
3694         * device/lib/mcs51/crtcall.asm: new, added for indirect calls
3695         * device/lib/mcs51/crtclear.asm,
3696         * device/lib/mcs51/crtxclear.asm: renumbered labels
3697         * device/lib/mcs51/Makefile.in: added crtcall.asm
3698         * doc/sdccman.lyx: documented mcs51 crt* library startup code
3699         * src/mcs51/gen.c (movc): removed,
3700           (aopGet, genPlusBits): clear a after loading the carry (possibly from
3701             acc.x or psw.x),
3702           (toCarry, genSend, genRet): added function toCarry,
3703           (genPcall): use "lcall @a+dptr" for functions w/o parameters,
3704           (assignBit, genAssign, genCast): added function assignBit
3705         * src/mcs51/Makefile.bcc: added rtrack.c
3706         * src/mcs51/ralloc.h: made valueKnown a bitfield
3707         * src/mcs51/rtrack.c (getReg, rtrackUpdate): added getReg,
3708           fixed "jbc acc" and "cpl acc" bug, enhanced "cjne", "jnz" and "djnz",
3709           disabled InvalidateAllRx for lcall __gptrput, added "xch a,rn"
3710         * src/pic/pcode.c (FixRegisterBanking): fixed warning used uninitialized
3711         * src/z80/gen.c: added AOP_IS_PAIRPTR,
3712           (_pop): only pop valid pairs, see gencjneshort,
3713           (gencjneshort): return pair that still needs to be popped, restructured,
3714           (gencjne, genCmpEq): call _pop
3715
3716 2007-02-23 Raphael Neider <rneider AT web.de>
3717
3718         * device/include/pic/pic14devices.txt: 16f684 has only one config word
3719
3720 2007-02-22 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3721
3722         * device/include/mcs51/P89LPC925.h: Added.
3723
3724 2007-02-18 Raphael Neider <rneider AT web.de>
3725
3726         * src/pic/glue.c (emitInitVal): fixed #1659894 (SIGSEGV on arrays)
3727
3728 2007-02-17 Borut Razem <borut.razem AT siol.net>
3729
3730         * support/cpp2/directives.c, support/cpp2/version.c:
3731           synchronized with GCC CPP 4.1.2
3732
3733 2007-02-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3734
3735         * src/mcs51/rtrack.h,
3736         * src/mcs51/rtrack.c: added register tracking for the mcs51 port,
3737           by checking the strings passed by emitcode() to the assembler.
3738           Feel free to change. This in part addresses RFE #482179.
3739           Set environment variable SDCC_RTRACK to enable.
3740         * src/mcs51/gen.c: inserted hooks
3741         * src/mcs51/ralloc.h: added two members to struct regs
3742         * support/regression/tests/regtrack.c: added
3743
3744 2007-02-14 Borut Razem <borut.razem AT siol.net>
3745
3746         * src/SDCC.y: fixed bug #1291133: duplicate members across enum(s)
3747         * Makefile.in: applied patch from Makefile related part of
3748           #1469393: Compiler does not initialize static data
3749
3750 2007-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
3751
3752         * src/SDCCicode.c (geniCodeAssign): return (itemp) right instead of left
3753           for better fix of bug 1273984, compiles pic16 rand.c
3754
3755 2007-02-12 Borut Razem <borut.razem AT siol.net>
3756
3757         * src/pic16/main.c: fixed pic16 standard library directory bug
3758
3759 2007-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
3760
3761         * src/hc08/gen.c (genSwap): fix swap regression test
3762
3763 2007-02-10 Borut Razem <borut.razem AT siol.net>
3764
3765         * src/SDCCsymt.c: fixed bug #1159134: invalid duplicate declarations
3766           with same scope
3767         * support/regression/tests/bug-1654060.c: added regression test for
3768           #1654060
3769
3770 2007-02-09 Bernhard Held <bernhard AT bernhardheld.de>
3771
3772         * src/mcs51/gen.c (genRet): fixed RFE 1652561: added code for bit to
3773         bit moves in return statement
3774
3775 2007-02-09 Borut Razem <borut.razem AT siol.net>
3776
3777         * src/SDCC.y: fixed bug #1654060 typedef within function causes
3778           syntax error
3779
3780 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
3781
3782         * src/mcs51/gen.c (aopPut): use direct name for pushing registers
3783         * src/SDCCmain.c (parseCmdLine): dbuf_s path must be initialised
3784
3785 2007-02-07 Raphael Neider <rneider AT web.de>
3786
3787         * src/pic16/devices.inc,
3788         * device/include/pic16/pic18fregs.h,
3789         * device/include/pic16/pic18f[24][34]31.h,
3790         * device/lib/pic16/libdev/pic18f[24][34]31.c,
3791         * device/lib/pic16/pics.all: added 18f[24][34]31 family
3792         * device/lib/pic16/libio/i2c.ignore: do not build i2c
3793
3794 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
3795
3796         * device/lib/printf_large.c (_print_format): fixed compare/assign bug, how
3797           can this have lived here for so many years?
3798         * src/SDCCicode.c (ast2iCode): return left instead of right for assignment,
3799           fixes bug 1273984, see also patch 1645121, thanks Gnther Jehle
3800         * support/regression/tests/bug1273984.c: new, added, thanks Gnther Jehle
3801
3802 2007-02-06 Bernhard Held <bernhard AT bernhardheld.de>
3803
3804         * src/SDCCBlock.c (addiCodeToeBBlock): fixed bug 1652207: GOTO icodes
3805         appended by loop induction must be at the very end of the eBBlock
3806
3807 2007-02-05 Kevin Vigor
3808
3809         * src/ds390/gen.c, src/ds390/main.c: Address bug 1469393.
3810
3811 2007-02-05 Borut Razem <borut.razem AT siol.net>
3812
3813         * support/regression/fwk/lib/timeout.c: native WIN32 port,
3814           implemented #1651830 Reg. tests: rewrite timeout.c to use WIN32 API
3815
3816 2007-02-03 Borut Razem <borut.razem AT siol.net>
3817
3818         * src/SDCC.y, src/SDCCmain.c, src/SDCCglobl.h, doc/sdccman.lyx:
3819           applied patch #1646602 option to set default signedness of char to
3820           unsigned, added -funsigned-char command line option,
3821           thanks to Gunther Jehle
3822         * device/lib/Makefile.in: added the -f option to rm so it doesn't
3823           prompt for file deletion a few hundred times (especially the
3824           subversion files, which have ro permissions so it asks for
3825           confirmation), thanks to Simon McAuliffe;
3826           added {} + option to find in order to remove multiple files from a
3827           single rm commad
3828
3829 2007-02-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3830
3831         * device/include/mcs51/SST89x5xRDx.h: Added.
3832
3833 2007-02-02 Raphael Neider <rneider AT web.de>
3834
3835         * src/pic/glue.c (emitSymbolSet): check sym->etype before use
3836         * src/regression/Makefile: use --no-pcode-opt, ignore failing tests
3837
3838 2007-02-01 Raphael Neider <rneider AT web.de>
3839
3840         * src/pic/glue.c (picglue,emitSymbolSet,showAllMemmaps): emit the
3841           config words again
3842
3843 2007-01-31 Borut Razem <borut.razem AT siol.net>
3844
3845         * support/Util/dbuf_string.h: added ATTRIBUTE_PRINTF to dbuf_printf()
3846           if compiled with GCC. Thanks to Raphael Neider
3847
3848 2007-01-31 Raphael Neider <rneider AT web.de>
3849
3850         * src/pic/pcode.c (isValidIdChar,bankCompare): fuzzy matching of
3851             operand names, handles name and (name + n) for all n,
3852           (sameBank): restructured, also check bank allocation policy,
3853         * src/pic/glue.c (emitPseudoStack): fixed printf arguments,
3854           (pic14_operandsAllocatedInSameBank): check whether to operands
3855             will be allocated into the same bank (i.e., section) to reduce
3856             BANKSEL overhead, queried from pcode.c:sameBank,
3857           (pic14printLocals): reintroduced clustering registers into a single
3858             section: all compiler generated symbols will now reside in one
3859             bank (per file), reducing BANKSEL overhead and code size,
3860           (showAllMemmaps): use local dbuf where possible
3861
3862 2007-01-29 Raphael Neider <rneider AT web.de>
3863
3864         * src/pic/gen.c (popGetExternal): simplified, mark symbol as used,
3865           (call_libraryfunc): retrieve/create symbol and mark as used,
3866           (genFunction): mark defined functions as non-extern and add again
3867            to code memmap for later output
3868         * src/pic/glue.c (emitPseudoStack): put into own subroutine,
3869           (pic14printLocals): reworked for new symbol emission,
3870           (emitIfNew,pic14_constructAbsMap,emitIvalLabel,emitIvals,emitInitVal,
3871           showAllMemmaps): reworked symbol output using dbufs, added handling
3872             of string literals (still incomplete),
3873           (picglue): removed symbol emission, moved into showAllMemmaps,
3874           (emitSymbolSet): new workhorse for symbol output,
3875           (pic14emitMaps,pic14printPublics,pic14printExterns): commented out
3876
3877 2007-01-29 Borut Razem <borut.razem AT siol.net>
3878
3879         * src/SDCCmain.c, src/SDCCutil.c: dbuf_splitFile: file extension
3880           component contains the extension separator.
3881
3882 2007-01-28 Borut Razem <borut.razem AT siol.net>
3883
3884         * sim/ucsim/cmd.src/cmdutil.cc: NUL device is detected as CG_FILE type
3885           on WIN32
3886         * src/SDCCdwarf2.c, src/SDCCglobl.h, src/SDCCmain.c, src/SDCCutil.c,
3887           src/SDCCutil.h, src/avr/gen.c, src/ds390/gen.c, src/hc08/gen.c,
3888           src/mcs51/gen.c, src/pic/device.c, src/pic/gen.c, src/pic/pcode.c,
3889           src/pic/pcodepeep.c, src/pic/ralloc.c, src/pic16/device.h,
3890           src/pic16/gen.c, src/pic16/main.c, src/pic16/pcode.c,
3891           src/pic16/pcodepeep.c, src/pic16/ralloc.c, src/xa51/gen.c,
3892           src/z80/gen.c, support/Util/MySystem.c:
3893           accept slash and backslash as directory separator on WIN32 and
3894           Cygwin ports
3895
3896 2007-01-28 Raphael Neider <rneider AT web.de>
3897
3898         * src/pic16/devices.inc,
3899         * device/include/pic16/pic18f[24][23]21.h,
3900         * device/include/pic16/pic18fregs.h,
3901         * device/lib/pic16/libdev/pic18f[24][23]21.c,
3902         * device/lib/pic16/pics.all: added support for the 18f[24][23]21 family
3903         * device/lib/pic16/libio/adc.ignore,
3904         * device/lib/pic16/libio/i2c.ignore,
3905         * device/lib/pic16/libio/usart.ignore: do not build I/O lib for new
3906           family, as gputils do not yet support the devices
3907         * device/lib/pic16/Makefile.subdir: ignore errors on install
3908         * support/scripts/inc2h-pic16.pl: script to generate pic16 device
3909           headers and libraries from gputils .inc files
3910
3911 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
3912
3913         * doc/sdccman.lyx: add printf_fast_f precision limitation note
3914
3915 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
3916
3917         * doc/sdccman.lyx: add printf benchmarks
3918
3919 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
3920
3921         * device/lib/printf_fast.c: fix %c, char promoted to int
3922         * device/lib/printf_tiny.c: fix %c, char promoted to int
3923
3924 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
3925
3926         * device/lib/printf_fast.c: fix float overflow check, bug #1525093
3927
3928 2007-01-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3929
3930         * support/regression/tests/swap.c: 64 bit hosts failed
3931         * doc/sdccman.lyx: added preliminary mcs51 printf feature matrix
3932
3933 2007-01-25 Raphael Neider <rneider AT web.de>
3934
3935         * src/pic/pcode.c (sameBank,FixRegisterBanking): optimize banksels
3936           based on absolute register address, patch by Alex Blond
3937
3938 2007-01-22 Raphael Neider <rneider AT web.de>
3939
3940         * src/pic/glue.c (pic14emitRegularMap): mark initialized symbols as
3941           emitted, do not emit them again...
3942
3943 2007-01-22 Raphael Neider <rneider AT web.de>
3944
3945         * src/regression/bank1.c, src/regression/compare6.c,
3946           src/regression/add.c: cosmetic changes
3947         * src/pic/pcode.h: moved GPTRTAG_* here from gen.c
3948         * src/pic/gen.c: fixed global zero and one,
3949           (aopForSym): removed unued code,
3950           (aopGet): assert aop is defined, check and use `index' of
3951             pCodeImmd operands (fixes #1630908),
3952         * src/pic/pcode.c (get_op): added output of generic pointer tag,
3953           (register_reassign): prevent accidental register unification,
3954           (ReuseReg): cosmetic changes (also above)
3955         * src/pic/glue.c (pic14_constructAbsMap,pic14emitRegularMap,
3956           pic14emitStaticSeg): do not emit initialized data,
3957           (printIval*): replaced with working versions,
3958           (pic14createInterruptVect,picglue): use idata for initialized data,
3959             now init data should work in all modules (not only main()),
3960         * device/lib/pic/libsdcc/idata.c: NEW, handle initialized data
3961
3962 2007-01-21 Borut Razem <borut.razem AT siol.net>
3963
3964         * sim/ucsim/configure.in: introduced macro DD_COPT_NO_IGNORE,
3965           use -fPIC or -fpic if they are supported and not ignored
3966         * src/SDCCval.c: fixed bug introduced by me in rev. #4577
3967         * support/cpp2/libcpp/lex.c: fixed gcc 4.1.1 warnings
3968
3969 2007-01-20 Borut Razem <borut.razem AT siol.net>
3970
3971         * src/SDCC.lex, src/SDCCmain.c, sdc/SDCCglobl.h, doc/sdccman.lyx:
3972           implemented RFE #1470316: allow "$" in variable names
3973
3974 2007-01-20 Raphael Neider <rneider AT web.de>
3975
3976         * device/include/pic/pic14regs.h: reverted accidental wipe of the file
3977
3978 2007-01-20 Raphael Neider <rneider AT web.de>
3979
3980         * device/lib/pic/libdev/devices.txt: device list for mkall.sh
3981         * device/lib/pic/libdev/mkall.sh: script to rebuild all device libs
3982         * device/lib/pic/libdev/pic14ports.txt: device PORT specifications
3983         * support/scripts/inc2h.pl: fixed major .inc parsing bugs,
3984           applied patch from Robert Tate (#1629249) to add PORTs and TRISs
3985         * device/lib/pic/libdev/pic*.c,
3986         * device/include/pic/pic*.h: regenerated with enhanced inc2h.pl
3987         * device/lib/pic/libdev/Makefile.in: show progress
3988
3989 2007-01-19 Bernhard Held <bernhard AT bernhardheld.de>
3990
3991         * doc/sdccman.lyx: updated "configure options" for autoconf 2.6
3992         * support/scripts/sdcc_cygwin_mingw32,
3993         * support/scripts/sdcc_mingw32,
3994         * support/scripts/build.mak: replaced --datadir by --datarootdir for
3995         conformance with autoconf 2.6
3996
3997 2007-01-19 Raphael Neider <rneider AT web.de>
3998
3999         * src/pic/device.c (register_map): fixed list construction
4000         * src/pic/gen.c (genDivOneByte,genModOneByte): accept result > 1 byte,
4001           (genMod): removed case for genModbits,
4002           (genModbits): removed as now unused/unimplemented
4003         * src/pic/glue.c (picglue): prevent name clash with sources 'init.c'
4004
4005 2007-01-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4006
4007         * support/regression/tests/swap.c: added in response to #1638622
4008         * doc/sdccman.lyx: synced version, minor changes
4009
4010 2007-01-18 Borut Razem <borut.razem AT siol.net>
4011
4012         * SDCClabel.c: fixed bug #1638651: wrong linenumber presented in warning,
4013           thanks to Gunther Jehle
4014         * src/asm.c: don't die if the file drfined in #line couldn't be opened
4015         * src/SDCC.lex, src/SDCCglobal.h, src/SDCCicode.c, src/SDCCsymt.c,
4016           src/SDCCval.c: removed redundant definitions of currFname and mylineno;
4017           use filename in lineno instead.
4018         * SDCCast.c: removed MSVC warning C4018: '==' : signed/unsigned mismatch,
4019           print the file name in ast_print()
4020
4021 2007-01-18 Borut Razem <borut.razem AT siol.net>
4022
4023         * support/Util/dbuf_string.c: removed (PTR) cast since it is not
4024           defined in MSVC
4025         * src/SDCC.lex: stringLiteral() returns const char pointer,
4026           EOF detection in stringLiteral(), fixed asmbuf memory leak,
4027           fixed column counting
4028         * src/SDCCval.[ch]: constVal(), value *strVal() and charVal()
4029           accept const char pointer as parameter
4030         * src/SDCCdwarf2.c: corrected buffer size
4031
4032 2007-01-17 Borut Razem <borut.razem AT siol.net>
4033
4034         * support/Util/dbuf_string.c: fixed for amd64
4035
4036 2007-01-15 Borut Razem <borut.razem AT siol.net>
4037
4038         * src/pic16/ralloc.c, src/pic/ralloc.c, src/SDCC.y:
4039           removed terminal symbol ELIPSIS, since it was never generated by the
4040           lexer and it was wrongly used in parameter_identifier_list rule
4041
4042 2007-01-15 Raphael Neider <rneider AT web.de>
4043
4044         * doc/sdccman.lyx: updated PIC14/16 command line args, updated PIC14
4045             code page and data banking description
4046         * src/pic/genarith.c,
4047         * src/pic/gen.h: removed bit arithmetic functions,
4048             updated exit(1) to exit(EXIT_FAILURE)
4049         * device/lib/pic16/libsdcc/stack/stack.S: default to 256 byte stack
4050         * device/include/pic16/pic18f2455.h,
4051         * device/lib/pic16/libdev/pic18f2455.c: added PORTD, LATD, LATE,
4052             TRISD and TRISE, fixed/added some bit names
4053         * device/lib/pic16/libdev/pic18f{2550,4550,4455}.c,
4054         * device/include/pic16/pic18f{2550,4550,4455}.h: simply include
4055             updated pic18f2455.{c,h} instead of duplicating them
4056
4057 2007-01-14 Borut Razem <borut.razem AT siol.net>
4058
4059         * as/mcs51/asnoice.c, as/hc08/asnoice.c: fixed bug #1447412:
4060           Cannot debug files that contain spaces in the path name
4061           by converting spaces in asm file name to underscores
4062
4063 2007-01-13 Borut Razem <borut.razem AT siol.net>
4064
4065         * doc/sdccman.lyx: fixed format errors
4066
4067 2007-01-10 Borut Razem <borut.razem AT siol.net>
4068
4069         * src/SDCC.lex, src/SDCCmain.c: fixed bug #1631895:
4070           codeseg/constseg #pragma fail
4071         * suppoprt/cpp2/Makefile.bcc: reenable Borland C compilation
4072         * suppoprt/cpp2/configure.in, suppoprt/cpp2/libcpp/lex.c,
4073           suppoprt/cpp2/Makefile.in, suppoprt/cpp2/sdcpp-opts,
4074           suppoprt/cpp2/sdcpp.[ch]: house cleaning
4075
4076 2007-01-09 Borut Razem <borut.razem AT siol.net>
4077
4078         * get rid of diagnistic.[ch], pretty-print.[ch],
4079           c-pretty-print.[ch], ... used just for error, warning, ...
4080           message formatting
4081         * suppoprt/cpp2/pretty-print.[ch], suppoprt/cpp2/diagnostic.[ch],
4082           suppoprt/cpp2/diagnostic.def, suppoprt/cpp2/input.h,
4083           suppoprt/cpp2/pretty-print.[ch]:
4084           removed
4085         * suppoprt/cpp2/Makefile.in, suppoprt/cpp2/opts.c,
4086           suppoprt/cpp2/sdcpp-opts.c, suppoprt/cpp2/sdcpp.[ch],
4087           suppoprt/cpp2/sdcpp.dsp:
4088           changed
4089
4090 2007-01-08 Maarten Brock <sourceforge.brock AT dse.nl>
4091
4092         * device/lib/printf_large.c (output_float): removed recursion,
4093           use smaller buffer on stack for mcs51,
4094           fixed bug printing 1.96
4095         * support/regression/tests/snprintf.c: added test
4096
4097 2007-01-07 Borut Razem <borut.razem AT siol.net>
4098
4099         * use dynamic memory buffers instead temporary files
4100         * support/Util/dbuf_string.c, support/Util/dbuf_string.h:
4101           added
4102         * src/Makefile.in, src/SDCC.lex, src/SDCCast.c, src/SDCCast.h,
4103           src/SDCCcse.c, src/SDCCglobl.h, src/SDCCglue.c, src/SDCCglue.h,
4104           src/SDCCicode.c, src/SDCCicode.h, src/SDCCmain.c, src/SDCCmem.c,
4105           src/SDCCmem.h, src/SDCCpeeph.c, src/SDCCpeeph.h, src/SDCCsymt.c,
4106           src/SDCCsymt.h, src/SDCCutil.c, src/asm.c, src/asm.h, src/avr/gen.c,
4107           src/avr/main.c, src/ds390/gen.c, src/ds390/main.c, src/hc08/gen.c,
4108           src/hc08/main.c, src/izt/gen.c, src/mcs51/gen.c, src/mcs51/main.c,
4109           src/pic/device.c, src/pic/gen.c, src/pic/glue.c, src/pic/main.c,
4110           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/glue.c,
4111           src/pic16/main.c, src/pic16/ralloc.c, src/port.h, src/src.dsp,
4112           src/xa51/gen.c, src/xa51/main.c, src/z80/gen.c, src/z80/main.c,
4113           support/Util/dbuf.c, support/Util/dbuf.h:
4114           modified
4115         * .version, sdcc.spec: bumped version to 2.6.4
4116
4117 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
4118
4119         * src/port.h: added TARGET_Z80_LIKE macro
4120         * src/SDCCmain.c (linkEdit): use TARGET_Z80_LIKE,
4121           output PSEG location if --xram-loc or --xstack-loc was used
4122         * as/link/mcs51/lkarea.c (lnksect2): set segment address afterwards
4123
4124 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
4125
4126         * as/as_gbz80.dsp, as/z80/as_gbz80.dsp,
4127         * as/as_z80.dsp,   as/z80/as_z80.dsp,
4128         * as/asx8051.dsp,  as/mcs51/asx8051.dsp,
4129         * sdcc.dsw: moved project files into subdir
4130         * as/hc08/as_hc08.dsp,
4131         * as/hc08/Makefile.bcc,
4132         * as/hc08/Makefile.in,
4133         * as/mcs51/Makefile.bcc,
4134         * as/mcs51/Makefile.in,
4135         * as/z80/Makefile.bcc,
4136         * as/z80/Makefile.in,
4137         * as/link/mcs51/Makefile.bcc: use as/strcmpi.c
4138         * as/hc08/asm.h,
4139         * as/mcs51/asm.h,
4140         * as/z80/asm.h: added as_strcmpi() and as_strncmpi() prototypes
4141         * as/hc08/asmain.c,
4142         * as/hc08/assym.c,
4143         * as/mcs51/asmain.c,
4144         * as/mcs51/assym.c,
4145         * as/z80/assym.c: removed include "strcmpi.h"
4146         * as/hc08/strcmpi.c,
4147         * as/hc08/strcmpi.h,
4148         * as/mcs51/strcmpi.c,
4149         * as/mcs51/strcmpi.h,
4150         * support/Util/strcmpi.c,
4151         * support/Util/strcmpi.h: removed files
4152         * as/strcmpi.c: added as_strncmpi()
4153
4154 2007-01-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4155
4156         * sdcc.dsw: Added some dependencies on project config.dsp
4157
4158 2007-01-05 Maarten Brock <sourceforge.brock AT dse.nl>
4159
4160         * as/link/mcs51/lkarea.c (lnkarea2, lnksect2): replaced [di]seg_ap->a_addr
4161           with [di]ram_start to fix a regresion
4162
4163 2007-01-03 Bernhard Held <bernhard AT bernhardheld.de>
4164
4165         * configure.in: added missing mcs51 in status output
4166         * Makefile.in: add support/regression to SDCC_EXTRA to distclean this
4167         directory
4168         * debugger/mcs51/clean.mk (distclean): remove config.h
4169         * src/clean.mk (clean): remove SDCCy.c, SDCCy.h, SDCClex.c
4170         * support/cpp2/Makefile.in (clean): remove s-options, optionlist,
4171         options.h, s-options-h and options.c
4172         * support/cpp2/clean.mk: unused, removed
4173         * Makefile.common.in,
4174         * main_in.mk,
4175         * as/Makefile.in,
4176         * as/hc08/Makefile.in,
4177         * as/hc08/clean.mk,
4178         * as/mcs51/Makefile.in,
4179         * as/mcs51/clean.mk,
4180         * as/z80/clean.mk,
4181         * as/z80/conf.mk,
4182         * as/z80/Makefile.in,
4183         * as/z80/clean.mk,
4184         * as/link/Makefile.in,
4185         * as/link/hc08/Makefile.in,
4186         * as/link/hc08/clean.mk,
4187         * as/link/mcs51/Makefile.in,
4188         * as/link/mcs51/clean.mk,
4189         * as/link/z80/Makefile.in,
4190         * as/link/z80/clean.mk,
4191         * as/link/z80/conf.mk,
4192         * debugger/mcs51/Makefile.in,
4193         * debugger/mcs51/clean.mk,
4194         * device/include/Makefile.in,
4195         * device/lib/Makefile.in,
4196         * device/lib/mcs51/Makefile.in,
4197         * device/lib/pic/Makefile.in,
4198         * device/lib/pic/Makefile.common.in,
4199         * device/lib/pic/Makefile.subdir,
4200         * device/lib/pic/Makefile.rules,
4201         * device/lib/pic16/libio/Makefile.in,
4202         * device/lib/pic16/Makefile.subdir,
4203         * device/lib/pic16/libdev/Makefile.in,
4204         * device/lib/pic16/Makefile.rules,
4205         * device/lib/pic16/Makefile.common.in,
4206         * sim/ucsim/avr.src/Makefile.in,
4207         * sim/ucsim/main_in.mk,
4208         * sim/ucsim/cmd.src/Makefile.in,
4209         * sim/ucsim/doc/Makefile.in,
4210         * sim/ucsim/gui.src/Makefile.in,
4211         * sim/ucsim/gui.src/obsolete/portmon.src/Makefile.in,
4212         * sim/ucsim/gui.src/serio.src/Makefile.in,
4213         * sim/ucsim/hc08.src/Makefile.in,
4214         * sim/ucsim/libltdl/Makefile.in,
4215         * sim/ucsim/s51.src/Makefile.in,
4216         * sim/ucsim/sim.src/Makefile.in,
4217         * sim/ucsim/sim.src/conf.mk,
4218         * sim/ucsim/xa.src/Makefile.in,
4219         * sim/ucsim/z80.src/Makefile.in,
4220         * src/Makefile.in,
4221         * src/clean.mk,
4222         * src/port.mk,
4223         * support/cpp2/Makefile.in,
4224         * support/librarian/Makefile.in,
4225         * support/librarian/clean.mk,
4226         * support/makebin/Makefile.in,
4227         * support/makebin/clean.mk,
4228         * support/packihx/Makefile.in,
4229         * support/regression/Makefile.in,
4230         * support/regression/ports/ds390/spec.mk,
4231         * support/regression/ports/gbz80/spec.mk,
4232         * support/regression/ports/hc08/spec.mk,
4233         * support/regression/ports/mcs51/spec.mk,
4234         * support/regression/ports/mcs51-large/spec.mk,
4235         * support/regression/ports/mcs51-medium/spec.mk,
4236         * support/regression/ports/mcs51-xstack-auto/spec.mk,
4237         * support/regression/ports/pic14/spec.mk,
4238         * support/regression/ports/pic16/spec.mk,
4239         * support/regression/ports/mcs51-stack-auto/spec.mk,
4240         * support/regression/ports/ucz80/spec.mk,
4241         * support/regression/ports/xa51/spec.mk,
4242         * support/regression/ports/z80/spec.mk: fixed for autoconf 2.6x by
4243         adding a slash after $(top_builddir) and/or adding @datarootdir@
4244         * configure.in,
4245         * debugger/mcs51/configure.in,
4246         * device/lib/pic/configure.in,
4247         * device/lib/pic16/configure.in,
4248         * sim/ucsim/configure.in,
4249         * support/cpp2/configure.in,
4250         * support/packihx/configure.in: changed AC_PREREQ to 2.60
4251         * configure,
4252         * debugger/mcs51/configure,
4253         * device/lib/pic/configure,
4254         * device/lib/pic16/configure,
4255         * sim/ucsim/configure,
4256         * support/cpp2/configure,
4257         * support/packihx/configure: generated with autoconf 2.60
4258
4259 2007-01-02 Maarten Brock <sourceforge.brock AT dse.nl>
4260
4261         * as/link/hc08/lkihx.c (newArea),
4262         * as/link/hc08/lkrloc.c: renamed newArea() to ihxNewArea()
4263
4264 2007-01-02 Borut Razem <borut.razem AT siol.net>
4265
4266         * doc/sdccman.lyx: documented #pragma sdcc_hash
4267         * support/cpp2/sdcpp.c: allow_naked_hash (value of #pragma sdcc_hash)
4268           initialized to 0
4269         * support/cpp2/c-ppoutput.c: fixed warning: no newline at end of file
4270
4271 2007-01-01 Bernhard Held <bernhard AT bernhardheld.de>
4272
4273         * src/SDCCast.c (createDo): backPatchLabels() needs falseLabel in
4274         empty 'while'-loop to work correctly, see regression test 'while.c'
4275         * support/regression/tests/while.c: added
4276
4277 2007-01-01 Borut Razem <borut.razem AT siol.net>
4278
4279         * support/cpp2/libcpp/directives.c, support/cpp2/libcpp/identifiers.c,
4280           support/cpp2/libcpp/init.c, support/cpp2/libcpp/sdcpp-opts.c,
4281           support/cpp2/libcpp/sdcpp.c:
4282           sdcpp specific pragma/directive/option handling moved to sdcpp.c
4283         * doc/sdccman.lyx: reference to the GCC 4.1.1 CPP Manual
4284         * support/cpp2/libcpp/mkdeps.c: synchronized with GCC CPP 4.1.1
4285
4286 2006-12-31 Borut Razem <borut.razem AT siol.net>
4287
4288         * SDCPP synchronized with GCC CPP release version 4.1.1,
4289           currently the latest release:
4290         * support/cpp2/libcpp, support/cpp2/libcpp/include,
4291           support/cpp2/libcpp/include/cpp-id-data.h
4292           support/cpp2/libiberty/fopen_unlocked.c
4293           support/cpp2/libiberty/md5.c
4294           support/cpp2/md5.h
4295           support/cpp2/opt-functions.awk
4296           support/cpp2/opt-gather.awk
4297           support/cpp2/optc-gen.awk
4298           support/cpp2/opth-gen.awk:
4299           added
4300         * support/cpp2/Makefile.in, support/cpp2/auto-host_vc_in.h,
4301           support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
4302           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
4303           support/cpp2/c-pretty-print.h, support/cpp2/cppdefault.c,
4304           support/cpp2/cppdefault.h, support/cpp2/diagnostic.c,
4305           support/cpp2/diagnostic.h, support/cpp2/except.h,
4306           support/cpp2/hwint.h, support/cpp2/input.h,
4307           support/cpp2/intl.h, support/cpp2/move-if-change,
4308           support/cpp2/opts.c, support/cpp2/opts.h,
4309           support/cpp2/output.h, support/cpp2/prefix.c,
4310           support/cpp2/prefix.h, support/cpp2/pretty-print.c,
4311           support/cpp2/pretty-print.h, support/cpp2/sdcpp-opts.c,
4312           support/cpp2/sdcpp.c, support/cpp2/sdcpp.dsp,
4313           support/cpp2/sdcpp.h, support/cpp2/sdcpp.opt,
4314           support/cpp2/sdcppa.dsp, support/cpp2/symcat.h,
4315           support/cpp2/version.c:
4316           modified
4317         * support/cpp2/libcpp/charset.c, support/cpp2/libcpp/directives.c,
4318           support/cpp2/libcpp/errors.c, support/cpp2/libcpp/expr.c,
4319           support/cpp2/libcpp/files.c, support/cpp2/libcpp/identifiers.c,
4320           support/cpp2/libcpp/include/cpplib.h, support/cpp2/libcpp/include/line-map.h,
4321           support/cpp2/libcpp/include/mkdeps.h, support/cpp2/libcpp/include/symtab.h,
4322           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
4323           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/line-map.c,
4324           support/cpp2/libcpp/macro.c, support/cpp2/libcpp/mkdeps.c,
4325           support/cpp2/libcpp/symtab.c, support/cpp2/libcpp/system.h,
4326           support/cpp2/libcpp/traditional.c, support/cpp2/libcpp/ucnid.h,
4327           support/cpp2/libiberty/hashtab.c, support/cpp2/libiberty/hashtab.h:
4328           moved
4329         * support/cpp2/cppcharset.c, support/cpp2/cpperror.c,
4330           support/cpp2/cppexp.c, support/cpp2/cppfiles.c,
4331           support/cpp2/cpphash.c, support/cpp2/cpphash.h,
4332           support/cpp2/cppinit.c, support/cpp2/cpplex.c,
4333           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
4334           support/cpp2/cppmacro.c, support/cpp2/cpptrad.c,
4335           support/cpp2/cppucnid.h, support/cpp2/hashtab.c,
4336           support/cpp2/hashtab.h, support/cpp2/hashtable.c,
4337           support/cpp2/hashtable.h, support/cpp2/line-map.c,
4338           support/cpp2/line-map.h, support/cpp2/mkdeps.c,
4339           support/cpp2/mkdeps.h, support/cpp2/options_vc_in.c,
4340           support/cpp2/options_vc_in.h, support/cpp2/opts.sh,
4341           support/cpp2/system.h:
4342           deleted / moved
4343
4344 2006-12-31 Borut Razem <borut.razem AT siol.net>
4345
4346         * configure.in, configure: fixed bug #1538756: configure dies if bison
4347           and flex are not installed, 2nd try
4348
4349 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
4350
4351         * src/mcs51/peeph.def: renamed rule 400 to 500, moved rule 253.x to
4352         400.x for better code in RFE 899102
4353
4354 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
4355
4356         * src/SDCCpeeph.c (deadMove),
4357         * src/port.h,
4358         * src/mcs51/peep.h: renamed 'op' by 'reg'
4359         * src/mcs51/peep.c (isFunc, isCallerSaveFunc): added,
4360         (scan4op): small change for removeDeadMove(), added support for
4361         'callee saves' and/or PACLL function calls,
4362         (removeDeadMove): added, removes superflous 'mov r%1,%2',
4363         (removeDeadPopPush): renamed from mcs51DeadMove(), common parts
4364         left in new dispatcher mcs51DeadMove()
4365         (mcs51DeadMove): dispatcher for removeDeadPopPush() and new
4366         removeDeadMove()
4367         * src/mcs51/peeph.def: added rule 301 removing superflous 'mov r%1,%2'
4368
4369 2006-12-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4370
4371         * support/cpp2/options_vc_in.h, support/cpp2/options_vc_in.c,
4372           support/cpp2/sdcppa.dsp: create 'options.h' and 'options.c' under MSVC.
4373
4374 2006-12-30 Borut Razem <borut.razem AT siol.net>
4375
4376         * support/cpp2/spacs.h: deleted from svn
4377         * configure.in, configure: fixed bug #1538756: configure dies if bison
4378           and flex are not installed
4379
4380 2006-12-29 Maarten Brock <sourceforge.brock AT dse.nl>
4381
4382         * src/z80/gen.c (assignResultValue): fixed bug when registers overlap,
4383           with this z80 passes printf float test when enabled
4384         * support/regression/tests/bug1057979.c: typo disabled ds390 float test
4385
4386 2006-12-28 Borut Razem <borut.razem AT siol.net>
4387
4388         * support/cpp2/config.in, support/cpp2/configure.in,
4389           support/cpp2/configure, support/cpp2/Makefile.in:
4390           fix for the solaris build
4391
4392 2006-12-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4393
4394         * src/SDCC.y (type_specifier2, pointer),
4395         * src/SDCCsymt.h,
4396         * src/SDCCsymt.c (mergeSpec, checkSClass),
4397         * support/Util/SDCCerr.c,
4398         * support/Util/SDCCerr.h: Parse and validate the restrict keyword
4399         * support/valdiag/valdiag.py: Allow test cases to specify
4400           required language standard
4401         * support/valdiag/tests/restrict.c: New file to test restrict keyword
4402         * support/valdiag/tests/tentdecl.c: Supress empty source file error
4403
4404 2006-12-27 Borut Razem <borut.razem AT siol.net>
4405
4406         * support/cpp2/cppmain.c, support/cpp2/mbchar.[ch]: removed
4407         * support/cpp2/libiberty/Makefile.in, support/cpp2/libiberty/sdcpp.dsp:
4408           mbchar removed
4409         * support/cpp2/libiberty/getpwd.c, support/cpp2/sdcpp.h:
4410           fixed for borland C
4411         * support/cpp2/libiberty/Makefile.bcc: updated
4412         * src/pic16/main.c: fixed #pragma udata handling
4413         * src/mcs51/mcs51.dsp: added peep.[ch] to the project
4414
4415 2006-12-26 Bernhard Held <bernhard AT bernhardheld.de>
4416
4417         * src/SDCCpeeph.c: made labelHashEntry global,
4418         made pcDistance, FBYNAME static,
4419         (pcDistance): made static, use isComment and isLabel,
4420         (deadMove): added,
4421         (getLabelRef): added, extracted from labelRefCount(),
4422         (labelRefCount): use new getLabelRef(),
4423         (callFuncByName): made static, added deadMove,
4424         use isComment and isLabel,
4425         (newPeepRule): made static, set isLabel,
4426         (isLabelDefinition): added parameter isPeepRule to allow '%' in
4427         labels from peephole rules,
4428         (buildLabelRefCountHash): speed up by running isLabelDefinition() only
4429         when isComment or isLabel is set
4430         * src/SDCCpeeph.h: added "isLabel" and "visited" to struct lineNode,
4431         added labelHashEntry, isLabelDefinition, labelHash and getLabelRef
4432         to make them global
4433         * src/mcs51/peep.h: added
4434         * src/mcs51/peep.c: added, implements mcs51DeadMove()
4435         * src/port.h: added peep->deadMove to port structure
4436         * src/mcs51/main.c: initialize peep->deadMove with mcs51DeadMove
4437         * src/mcs51/peeph.def: renumbered rule 300 to 400, added new rule 300
4438         deadMove, finally removed no. 1 and 2
4439         * src/mcs51/gen.c,
4440         * src/pic/gen.c,
4441         * src/z80/gen.c,
4442         * src/z80/ralloc.c,
4443         * src/pic16/gen.c,
4444         * src/ds390/gen.c,
4445         * src/hc08/gen.c: mark lines with isComment or isLabel
4446         * sim/ucsim/s51.src/uc390hw.cc: don't waist 65535 ticks before CKRDY
4447         * .version,
4448         * sdcc.spec: bumped version to 2.6.3
4449
4450 2006-12-26 Borut Razem <borut.razem AT siol.net>
4451
4452         * support/cpp2/Makefile.in: added dependency on options.h
4453         * configure: regenerated
4454         * support/cpp2/sdcpp.opt, support/cpp2/move-if-change: svn:eol-style native
4455         * support/cpp2/Makefile.in: added vasprintf.c
4456
4457 2006-12-25 Borut Razem <borut.razem AT siol.net>
4458
4459         * SDCPP synchronized with GCC CPP release version 3.4.6,
4460           the latest release before 4.x:
4461         * support/cpp2/Makefile.in, support/cpp2/config.h,
4462           support/cpp2/configure, support/cpp2/configure.in,
4463           support/cpp2/cppdefault.c, support/cpp2/cppdefault.h,
4464           support/cpp2/cpperror.c, support/cpp2/cppexp.c,
4465           support/cpp2/cppfiles.c, support/cpp2/cpphash.c,
4466           support/cpp2/cpphash.h, support/cpp2/cppinit.c,
4467           support/cpp2/cpplex.c, support/cpp2/cpplib.c,
4468           support/cpp2/cpplib.h, support/cpp2/cppmacro.c,
4469           support/cpp2/cpptrad.c, support/cpp2/except.h,
4470           support/cpp2/hashtable.c, support/cpp2/hashtable.h,
4471           support/cpp2/hwint.h, support/cpp2/intl.h,
4472           support/cpp2/line-map.c, support/cpp2/line-map.h,
4473           support/cpp2/mkdeps.c, support/cpp2/mkdeps.h,
4474           support/cpp2/output.h, support/cpp2/prefix.c,
4475           support/cpp2/prefix.h, support/cpp2/sdcpp.dsp,
4476           support/cpp2/system.h, support/cpp2/version.c:
4477           modified
4478         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
4479           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
4480           support/cpp2/c-pretty-print.h, support/cpp2/cppcharset.c,
4481           support/cpp2/cppucnid.h, support/cpp2/diagnostic.c,
4482           support/cpp2/diagnostic.def, support/cpp2/diagnostic.h,
4483           support/cpp2/hashtab.c, support/cpp2/hashtab.h,
4484           support/cpp2/input.h, support/cpp2/libiberty/getpwd.c,
4485           support/cpp2/libiberty/vasprintf.c, support/cpp2/libiberty/xmemdup.c,
4486           support/cpp2/move-if-change, support/cpp2/opts.c,
4487           support/cpp2/opts.h, support/cpp2/opts.sh,
4488           support/cpp2/pretty-print.c, support/cpp2/pretty-print.h,
4489           support/cpp2/sdcpp.opt, support/cpp2/sdcpp-opts.c,
4490           support/cpp2/win32, support/cpp2/win32/dirent.c,
4491           support/cpp2/win32/dirent.h:
4492           added
4493         * support/cpp2/sdcpp.c: renamed from sdcppmain.c
4494         * support/cpp2/sdcpp.h: renamed from sdcc.h
4495         * sdcppinit.c: deleted
4496
4497 2006-12-23 Borut Razem <borut.razem AT siol.net>
4498
4499         * support/cpp2/cpphash.h, support/cpp2/cpplex.c,
4500           support/cpp2/cpplib.[ch], support/cpp2/sdcppinit.c, doc/sdccman.lyx,
4501           preproc.c: an other try to fix bug #982435: introduced
4502           -pedantic-parse-number command line option and pedantic_parse_number
4503           pragma
4504
4505 2006-12-21 Maarten Brock <sourceforge.brock AT dse.nl>
4506
4507         * as/link/mcs51/lkarea.c (lnkarea2): handle absolute areas, restructured
4508            BSEG handling,
4509           (lnksect2): use --data-loc and --idata-loc as lower bound for ramstart,
4510            corrected overlayed areax addresses, warn about memory overlaps
4511         * as/mcs51/asmain.c (asmbl): create a new area for every .org directive
4512         * src/avr/main.c,
4513         * src/ds390/main.c,
4514         * src/hc08/main.c,
4515         * src/mcs51/main.c,
4516         * src/pic16/main.c,
4517         * src/pic/main.c,
4518         * src/xa51/main.c,
4519         * src/z80/main.c,
4520         * src/port.h: added xabs_name and iabs_name
4521         * src/SDCCglue.c (emitRegularMap): allocate for absolutes with initializer
4522           (glue, emitMaps): create and emit maps d_abs and i_abs
4523         * src/SDCCglue.h: cosmetic changes
4524         * src/SDCCmain.c (setDefaultOptions): idata can start below 0x80
4525         * src/SDCCmem.h,
4526         * src/SDCCmem.c (initMem): added x_abs, i_abs and d_abs
4527           (allocDefault): put absolute, initialized globals in them
4528         * support/regression/tests/absolute.c: added absolute bdata test
4529         * device/lib/printf_large.c (output_float): moved fpBuffer to stack/xdata
4530
4531 2006-12-20 Borut Razem <borut.razem AT siol.net>
4532
4533         * support/cpp2/cpphash.h, support/cpp2/cpplex.c: fixed bug #982435
4534         * support/regression/tests/preproc.c: renamed from bug-1351710.c,
4535           added regression test for bug #982435
4536
4537 2006-12-18 Borut Razem <borut.razem AT siol.net>
4538
4539         * src/SDCCutil.c: fixed a bug in (get_pragma_token)
4540         * src/pic16/main.c, src/SDCC.lex, src/z80/main.c:
4541           small cosmetic changes
4542         * src/SDCC.lex: (stringLiteral) fixed bug #1351710
4543         * support/regression/tests/bug-1351710.c: added regression test
4544
4545 2006-12-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4546
4547         * doc/sdccman.lyx: added the long missed iCode table
4548           "<where is figure II?>", added links to wiki
4549
4550 2006-12-17 Borut Razem <borut.razem AT siol.net>
4551
4552         * doc/sdccman.lyx, src/pic16/main.c, src/pic/main.c, src/port.h,
4553           src/SDCC.lex, src/SDCCutil.[ch], src/z80/main.c,
4554           support/Util/SDCCerr.[ch]: removed deprecated pragmas,
4555           unified table driven pragma handling, pragma argument type checking
4556         * support/Util/dbuf.c: (dbuf_set_size) allow to set size equal to the
4557           current one - version 1.1.3
4558         * src/SDCCmain.c: (setParseWithComma) substituted brain damaged strtok
4559
4560 2006-12-13 Raphael Neider <rneider AT web.de>
4561
4562         * src/pic/device.h: removed AssignedMemory structure and macros
4563         * src/pic/device.c: removed global finalMapping (linker assigns
4564             memory locations),
4565           (register_map): add SFRs to remembered memRanges
4566           (addMemRange,isSFR,dump_map,dump_sfr,mapRegister,assignRegister,
4567           assignFixedRegisters,assignRelocatableRegisters): removed,
4568           (setMaxRAM,validAddress): adapted accordingly,
4569           (pic14_hasSharebank,pic14_getSharedStack): only report and use
4570             reasonably sized sharebanks,
4571         * src/pic/ralloc.c (writeUsedRegs): stripped down (remove?),
4572           (allDefsOutOfRange): removed unused code,
4573         * src/pic/main.c (_process_pragma): removed memmap/maxram pragma
4574             handling
4575         * src/pic/pcode.c (register_reassign): removed recursion warning,
4576             fired far too often,
4577         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap): modified
4578             to use existing pic14_stringInSet() to avoid duplicate symbols,
4579             tidied up the code a bit,
4580           (pic14printLocals): added in symmetry to printExterns, replaces
4581             writeUsedRegs more or less,
4582           (picglue): call new pic14_printLocals(),
4583         * device/include/pic/pic*.h: removed #pragma memmap directives,
4584             information gathered from include/pic/pic14devices.txt
4585         * support/scripts/inc2h.pl: do not emit #pragma memmap lines
4586
4587 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
4588
4589         * device/include/mcs51/C8051F520.h: fixed buggy CPT0MX
4590
4591 2006-12-11 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4592
4593         * device/include/mcs51/cc2430.h: fixed missing ';'
4594
4595 2006-12-10 Raphael Neider <rneider AT web.de>
4596
4597         * device/lib/pic16/libc/stdio/vfprintf.c,
4598         * device/lib/pic16/libc/stdio/printf_small.c,
4599         * device/lib/pic16/libc/stdio/printf_timy.c: pop int from stack for
4600           char arguments, as char varargs are cast to int by the caller,
4601           hopefully fixes #1604915 (other device libraries are still affected)
4602
4603 2006-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4604
4605         * src/mcs51/ralloc.c (packRegsForAssign),
4606         * src/hc08/ralloc.c (packRegsForAssign): fixed bug #1605880
4607
4608 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
4609
4610         * device/include/malloc.h: removed init_dynamic_memory
4611         * device/lib/malloc.c: made init_dynamic_memory static and automatically
4612           call it once from malloc. Also use _sdcc_heap[] from _heap.c
4613         * device/lib/_heap.c: new, added, contains _sdcc_heap[]
4614         * device/lib/libsdcc.lib,
4615         * device/lib/Makefile.in,
4616         * support/regression/ports/mcs51-xstack-auto/spec.mk: added _heap.c
4617         * doc/sdccman.lyx: documented use of new _heap.c
4618         * support/regression/tests/malloc.c: removed init_dynamic_memory
4619         * src/cdbFile.c(spacesToUnderscores): new function,
4620           (cdbWriteEndFunction, cdbWriteCLine): use spacesToUnderscores, fixes bug
4621           1068030
4622         * device/include/tinibios.h: removed defines for putchar and getchar
4623         * device/lib/ds390/Makefile.in: added putchar.c
4624         * device/lib/ds390/putchar.c: new, added, fixes bug 1465671
4625
4626 2006-12-09 Borut Razem <borut.razem AT siol.net>
4627
4628         * support/cpp2/sdcc.h: prevent multiple inclusion
4629         * support/cpp2/options.h: deleted
4630
4631 2006-12-08 Borut Razem <borut.razem AT siol.net>
4632
4633         * support/cpp2/sdcc.h: removed x*alloc() macros
4634         * support/cpp2/libiberty.h: uncommented out x*alloc() declarations
4635         * support/cpp2/Makefile.bcc, support/cpp2/Makefile.in,
4636           support/cpp2/sdcpp.sdc: x*alloc files added to the project
4637         * support/cpp2/system.h: moved #include "sdcc.h"
4638         * support/cpp2/libiberty/xexit.c, support/cpp2/libiberty/xmalloc.c,
4639           support/cpp2/libiberty/xstrdup.c, support/cpp2/libiberty/xstrerror.c:
4640           added
4641         * support/cpp2/sdcppinit.c: added -isysroot, -fsigned-char,
4642           -funsigned-char options
4643         * support/cpp2/sdcppmain.c: fixed bug 1611411
4644
4645 2006-12-07 Borut Razem <borut.razem AT siol.net>
4646
4647         * support/cpp2/cpplib.c: reverted sdcpp special handling of _Pragma()
4648           directive
4649
4650 2006-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
4651
4652         * src/SDCCsymt.c (addDecl): fixed bug 1609244
4653         * src/SDCCmain.c (linkEdit): fixed bug 1609279
4654         * doc/sdccman.lyx,
4655         * .version: bumped to 2.6.2 because a) it's been a while
4656           b) the linker sources have moved c) the preprocessor is upgraded
4657
4658 2006-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4659
4660         * support/regression/tests/snprintf.c: some checks
4661         * lib/src/printf_large.c: %bc: read char instead of int from stack
4662
4663 2006-12-03 Maarten Brock <sourceforge.brock AT dse.nl>
4664
4665         * device/include/mcs51/cc2430.h: inserted _XPAGE
4666
4667 2006-12-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4668
4669         * device/include/mcs51/cc2430.h: added
4670
4671 2006-12-02 Maarten Brock <sourceforge.brock AT dse.nl>
4672
4673         * device/include/asm/default/features.h,
4674         * device/include/asm/ds390/features.h,
4675         * device/include/mcs51/at89s53.h,
4676         * device/include/ser.h,
4677         * device/include/ser_ir.h,
4678         * device/include/serial.h: changed keywords to double underscore variants,
4679           fixes bug 1590261 some more, thanks Steven Borley
4680
4681 2006-12-01 Raphael Neider <rneider AT web.de>
4682
4683         * src/pic/pcode.c (register_reassign): do not crash on recursive code
4684           but emit warning (recursion is not supported for pic14)
4685
4686 2006-11-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4687
4688         * src/mcs51/peeph.def: added 101.a,b (moves to int/long xdata)
4689         * doc/sdccman.lyx: various small changes, acknowledged Sourceforge
4690
4691 2006-11-30 Raphael Neider <rneider AT web.de>
4692
4693         * src/pic/device.c (dump_sfr): always emit symbols
4694         * src/pic/glue.c (pic14printPublics): fixed typo
4695
4696 2006-11-30 Raphael Neider <rneider AT web.de>
4697
4698         * src/pic/device.c (create_pic,ram_map): add memRange entries to PIC
4699           (pic14_getSharebankSize, pic14_getSharebankAddress): replaced with
4700           (pic14_hasSharebank,pic14_isShared,pic14_allRAMShared,
4701            pic14_getSharedStack): NEW, evaluate the memRange entries to locate
4702            a sharebank, use a non-shared bank for the stack if none available
4703         * src/pic/device.h (struct memRange): added linked list next field,
4704           added prototypes for above functions
4705         * src/pic/ralloc.c (initStack): handle shared and banked stacks,
4706           (typeRegWithIdx): accept fixed and unfixed stack registers
4707         * src/pic/pcode.c (pCodeInitRegisters): use new functions to create
4708           the stack, handle shared and banked stack (except for WSAVE),
4709           (insertBankSel): removed useless optimization (will never fire),
4710           (FixRegisterBanking): added optimization for devices with only one
4711           possibly aliased bank of memory, like 16f84
4712         * src/pic/glue.c (pic14_constructAbsMap): back to udata_ovr, as some
4713           devices have no SHAREBANK in the linker script
4714         * device/include/pic/pic14devices.txt: documented memmap
4715         * device/lib/pic/libdev/Makefile.in: removed --stack-loc again
4716
4717 2006-11-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4718
4719         * src/hc08/gen.c (transferRegReg, loadRegFromAop, forceStackedAop,
4720           storeRegToAop, freeAsmop, genPlusIncr, genPlus, genPointerGetSetOfs,
4721           genAnd, genOr, genXor, genLeftShiftLiteral, genRightShiftLiteral,
4722           genhc08Code): switched most of the D (debug) macros to DD (detailed
4723           debug) macros to better control clutter in the generated .asm file.
4724         * src/hc08/gen.c: (forceStackedAop, genUminus, genLeftShift,
4725           genRightShift): fixed bug with non-constant bit shift stored to
4726           a volatile result (SF Open Discussion forum thread #1616749).
4727           Single byte case is not yet optimized.
4728
4729 2006-11-28 Maarten Brock <sourceforge.brock AT dse.nl>
4730
4731         * device/include/asm/mcs51/features.h,
4732         * device/include/malloc.h,
4733         * device/include/stdio.h: changed keywords to double underscore variants,
4734           fixes bug 1590261
4735
4736 2006-11-27 Borut Razem <borut.razem AT siol.net>
4737
4738         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
4739           support/cpp2/Makefile.in, support/cpp2/cppfiles.c,
4740           support/cpp2/output.h, support/cpp2/cppinit.c,
4741           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
4742           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
4743           support/cpp2/cppdefault.c, support/cpp2/system.h,
4744           support/cpp2/cpphash.h, support/cpp2/cpplex.c,
4745           support/cpp2/cppdefault.h, support/cpp2/mbchar.c,
4746           support/cpp2/prefix.c, support/cpp2/except.h,
4747           support/cpp2/hwint.h, support/cpp2/cppmacro.c,
4748           support/cpp2/line-map.h, support/cpp2/sdcpp.dsp,
4749           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
4750           support/cpp2/version.c, support/cpp2/cppmain.c,
4751           support/cpp2/version.h, support/cpp2/hashtable.c,
4752           support/cpp2/cpperror.c:
4753           synchronized with GCC CPP release version 3.3.6,
4754           the latest where cppmain.c still exists.
4755         * support/cpp2/cpptrad.c, support/cpp2/sdcppmain.c,
4756           support/cpp2/sdcppinit.c: added
4757
4758 2006-11-27 Borut Razem <borut.razem AT siol.net>
4759
4760         * support/cpp2/cpplex.c:
4761           fixed _asm ... _endasm handling bug, introduce with GCC CPP
4762           synchronization
4763         * support/cpp2/cpplib.c: removed definitions of unused variables
4764
4765 2006-11-26 Borut Razem <borut.razem AT siol.net>
4766
4767         * support/cpp2/libiberty.h: commented out x*alloc() declarations
4768           since they are redefined by macros in support/cpp2/sdcc.h
4769         * support/cpp2/sdcc.h: x*alloc macro redefinition
4770
4771 2006-11-25 Borut Razem <borut.razem AT siol.net>
4772
4773         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
4774           support/cpp2/configure, support/cpp2/Makefile.in,
4775           support/cpp2/cppfiles.c, support/cpp2/output.h,
4776           support/cpp2/cppinit.c, support/cpp2/cpplib.c,
4777           support/cpp2/config.h, support/cpp2/cpplib.h,
4778           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
4779           support/cpp2/cppdefault.c, support/cpp2/config.in,
4780           support/cpp2/system.h, support/cpp2/cpplex.c,
4781           support/cpp2/cpphash.h, support/cpp2/mbchar.c,
4782           support/cpp2/cppdefault.h, support/cpp2/prefix.c
4783           support/cpp2/hwint.h, support/cpp2/mbchar.h,
4784           support/cpp2/prefix.h, support/cpp2/cppmacro.c,
4785           support/cpp2/configure.in, support/cpp2/intl.h,
4786           support/cpp2/sdcpp.dsp, support/cpp2/acconfig.h,
4787           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
4788           support/cpp2/version.c, support/cpp2/cppmain.c,
4789           support/cpp2/ansidecl.h, support/cpp2/libiberty.h,
4790           support/cpp2/hashtable.c, support/cpp2/aclocal.m4,
4791           support/cpp2/cpperror.c,
4792           support/cpp2/libiberty/safe-ctype.c,
4793           support/cpp2/libiberty/safe-ctype.h,
4794           support/cpp2/libiberty/splay-tree.c,
4795           support/cpp2/libiberty/obstack.c,
4796           support/cpp2/libiberty/lbasename.c,
4797           support/cpp2/libiberty/splay-tree.h,
4798           support/cpp2/libiberty/obstack.h:
4799           synchronized with GCC CPP release version 3.2.3,
4800           the latest before integration of cpp into gcc
4801         * support/cpp2/except.h, support/cpp2/line-map.c,
4802           support/cpp2/line-map.h,
4803           support/cpp2/libiberty/hex.c,
4804           support/cpp2/libiberty/concat.c,
4805           support/cpp2/libiberty/filenames.h: added
4806         * support/cpp2/intl.c: deleted
4807
4808 2006-11-24 Borut Razem <borut.razem AT siol.net>
4809
4810         * src/SDCC.y: enabled compilation of empty source file
4811         * support/Util/SDCCerr.[ch]: added sdcc warning 190 -
4812           "ISO C forbids an empty source file"
4813         * device/lib/_startup.c, device/lib/printf_tiny.c: disable warning 190
4814           if all the code is ifdefed out.
4815
4816 2006-11-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4817
4818         * src/hc08/gen.c (genPcall): fix for bug #1601032
4819
4820 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
4821
4822         * device/include/mcs51/c8051f000.h, device/include/mcs51/C8051F000.h,
4823         * device/include/mcs51/c8051f018.h, device/include/mcs51/C8051F018.h,
4824         * device/include/mcs51/c8051f020.h, device/include/mcs51/C8051F020.h,
4825         * device/include/mcs51/c8051f040.h, device/include/mcs51/C8051F040.h,
4826         * device/include/mcs51/c8051f060.h, device/include/mcs51/C8051F060.h,
4827         * device/include/mcs51/c8051f120.h, device/include/mcs51/C8051F120.h,
4828         * device/include/mcs51/c8051f200.h, device/include/mcs51/C8051F200.h,
4829         * device/include/mcs51/c8051f300.h, device/include/mcs51/C8051F300.h,
4830         * device/include/mcs51/c8051f310.h, device/include/mcs51/C8051F310.h,
4831         * device/include/mcs51/c8051f320.h, device/include/mcs51/C8051F320.h,
4832         * device/include/mcs51/c8051f326.h, device/include/mcs51/C8051F326.h,
4833         * device/include/mcs51/c8051f330.h, device/include/mcs51/C8051F330.h,
4834         * device/include/mcs51/c8051f340.h, device/include/mcs51/C8051F340.h,
4835         * device/include/mcs51/c8051f350.h, device/include/mcs51/C8051F350.h,
4836         * device/include/mcs51/c8051f410.h, device/include/mcs51/C8051F410.h:
4837           Renamed to all upper case as per the standard set by SiLabs
4838
4839 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
4840
4841         * device/include/mcs51/C8051F520.h: new, added
4842         * device/include/mcs51/compiler.h: added link about predefined macros
4843
4844 2006-11-23 Raphael Neider <rneider AT web.de>
4845
4846         * src/regression/Makefile: add -L path to fresh library
4847         * src/regression/simulate: emphasize FAILED output
4848         * src/regression/create_stc: output _failures from gpsim
4849         * src/regression/compare4.c,
4850         * src/regression/rotate6.c: fixed char literals,
4851           all compile, all run =8-D
4852
4853         * src/pic/pcode.h: added isPCASMDIR macro
4854         * src/pic/gen.c (genAnd): fixed bit offset
4855         * src/pic/ralloc.c (allocNewDirReg,allocDirReg,allocRegByName,
4856           packBits): unified register numbering schemes,
4857           (newReg): do not insert stack registers into hash table,
4858           (initStack): unpinned pseudo stack, simplified,
4859           (typeRegWithIdx): fixed retrieval of stack registers,
4860         * src/pic/pcode.c (addpCodeComment,sameBank): added,
4861           (pCodeReplace): removed invalid assertion,
4862           (insertPCodeInstruction): fixed newly added labels,
4863           (insertBankSwitch,BankSelect,IsBankChange,DoBankSelect,
4864           FixRegisterBankingInFlow,compareBankFlow,FixBankFlow,
4865           DumpFlow): removed unsed (broken?) code,
4866           (insertBankSel): prevent STATUS from being BANKSELed,
4867           (FixRegisterBanking): rewritten from scratch, implemented generic
4868             optimizations (suppress BANKSELs to same register and to registers
4869             present in all banks),
4870           (AnalyzeBanking): update flow after BANKSELection
4871
4872         * src/pic/glue.c (pic14_constructAbsMap): emit pseudo stack in
4873             sharebank, let linker place it, mark STKxx symbols as emitted
4874
4875 2006-11-21 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4876
4877         * src/regression/arrays.c,
4878         * src/regression/bank1.c,
4879         * src/regression/bool2.c,
4880         * src/regression/compare7.c,
4881         * src/regression/compare8.c,
4882         * src/regression/compare9.c,
4883         * src/regression/compare10.c,
4884         * src/regression/configword.c,
4885         * src/regression/for.c,
4886         * src/regression/mult1.c,
4887         * src/regression/pointer1.c,
4888         * src/regression/rotate6.c,
4889         * src/regression/string1.c,
4890         * src/regression/struct1.c,
4891         * src/regression/Makefile: make PIC14 regression tests run again
4892           (3 fail, 6 won't compile)
4893
4894 2006-11-21 Raphael Neider <rneider AT web.de>
4895
4896         * device/include/pic16/pic18f4550.h,
4897         * device/include/pic16/pic18f4455.h,
4898         * device/lib/pic16/libdev/pic18f4550.c,
4899         * device/lib/pic16/libdev/pic18f4455.c: fixed #1578591 and #1595144
4900         * configure.in: removed superfluous closing bracket
4901
4902 2006-11-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4903
4904         * device/lib/expf.c: Fixed bug 1599523: result of expf(x) is
4905           always positive.
4906
4907 2006-11-21 Raphael Neider <rneider AT web.de>
4908
4909         * src/pic/device.{c,h}: added pic14_getPIC()
4910         * src/pic/gen.c (continueIfTrue,jumpIfTrue): added PIC code,
4911           (genAnd): added PIC code for one case, fixes #1597044
4912         * src/pic/pcode.c (BankSelect): Ohoh, added generic optimization for
4913           SFRs that are present in all banks (e.g., STATUS)
4914
4915 2006-11-20 Raphael Neider <rneider AT web.de>
4916
4917         * src/pic/pcode.c: changed inverted ops for DECFSZ/DECFSZW and
4918           INCFSZ/INCFSZW and declared them as changing Z bit,
4919           (insertPCodeInstruction): correctly invert the above instructions,
4920           fixes #1599333,
4921           (DoBankSelect): don't panic on po_immediates
4922
4923 2006-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
4924
4925         * as/link/aslink.h,
4926         * as/link/mcs51/lkihx.c (newArea),
4927         * as/link/mcs51/lkrloc.c: renamed newArea() to ihxNewArea()
4928         * as/link/mcs51/lkihx.c (ihx): output reset vector as start address
4929
4930 2006-11-11 Raphael Neider <rneider AT web.de>
4931
4932         * src/pic/pcode.c (newpCodeOpBit): search SymbolTab for referenced
4933           bitfield symbols, fixes #1579535 (once more...).
4934
4935 2006-11-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4936
4937         * support/regression/generate-cases.py,
4938         * support/regression/fwk/include/testfwk.h,
4939         * support/regression/fwk/lib/testfwk.c: used code pointers,
4940           (about 50kByte less code generated for mcs51)
4941
4942 2006-11-06 Borut Razem <borut.razem AT siol.net>
4943
4944         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
4945           debugger/mcs51/configure: fixed failed check because the function
4946           rl_function_of_keyseq isn't in Readline 5.2. Thanks to Ilya Goldberg
4947           who submitted the patch for gpsim.
4948         * debugger/mcs51/configure.in: removed the result message
4949         * debugger/mcs51/Makefile.in: fixed the config.status warning
4950           "... seems to ignore the --datarootdir setting"
4951
4952 2006-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
4953
4954         * device/include/mcs51/c8051f020.h,
4955         * device/include/mcs51/c8051f040.h,
4956         * device/include/mcs51/c8051f060.h,
4957         * device/include/mcs51/c8051f120.h: added PS0, fixed bug 1589279
4958         * src/z80/gen.c (gencjneshort),
4959         * src/z80/peeph.def: applied patch 1571373, thanks Philipp Krause
4960
4961 2006-10-31 Borut Razem <borut.razem AT siol.net>
4962
4963         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
4964           debugger/mcs51/configure: get readline version
4965
4966 2006-10-30 Borut Razem <borut.razem AT siol.net>
4967
4968         * debugger/mcs51/sdcdb.c: replaced hardcoded "/" with DIR_SEPARATOR_STRING
4969         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
4970           debugger/mcs51/configure: locate readline even when cross compiling
4971         * support/scripts/sdcc.nsi: include readline5.dll into the setup package
4972
4973 2006-10-29 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4974
4975         * device/include/mcs51/serial_IO.h: putchar() and getchar() using
4976           serial port.
4977
4978 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
4979
4980         * device/include/malloc.h,
4981         * device/lib/calloc.c,
4982         * device/lib/free.c,
4983         * device/lib/malloc.c,
4984         * device/lib/realloc.c: moved definition of struct into sources
4985         * support/regression/tests/malloc.c: use void* for init_dynamic_memory()
4986
4987 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
4988
4989         * as/asx8051.dsp: corrected output directories
4990         * as/link/hc08: new directory for hc08 linker
4991         * as/hc08/aslink.h,             as/link/aslink.h,
4992         * as/hc08/aslink.mak,           as/link/hc08/aslink.mak,
4993         * as/hc08/clean.mk,             as/link/hc08/clean.mk,
4994         * as/hc08/link_hc08.dsp,        as/link/hc08/link_hc08.dsp,
4995         * as/hc08/lkaomf51.c,           as/link/hc08/lkaomf51.c,
4996         * as/hc08/lkarea.c,             as/link/hc08/lkarea.c,
4997         * as/hc08/lkdata.c,             as/link/hc08/lkdata.c,
4998         * as/hc08/lkelf.c,              as/link/hc08/lkelf.c,
4999         * as/hc08/lkihx.c,              as/link/hc08/lkihx.c,
5000         * as/hc08/lklibr.c,             as/link/hc08/lklibr.c,
5001         * as/hc08/lkmain.c,             as/link/hc08/lkmain.c,
5002         * as/hc08/lkmem.c,              as/link/hc08/lkmem.c,
5003         * as/hc08/lkrloc.c,             as/link/hc08/lkrloc.c,
5004         * as/hc08/lks19.c,              as/link/hc08/lks19.c,
5005         * as/hc08/Makefile.aslink,      as/link/hc08/Makefile.aslink,
5006         * as/hc08/Makefile.bcc,         as/link/hc08/Makefile.bcc,
5007         * as/hc08/Makefile.in,          as/link/hc08/Makefile.in,
5008         * as/link/hc08/conf.mk,
5009         * configure,
5010         * configure.in,
5011         * Makefile.in,
5012         * sdcc.dsw: moved hc08 linker to as/link/hc08
5013         * as/hc08/lkeval.c,     as/link/mcs51/lkeval.c,     as/link/lkeval.c,
5014         * as/hc08/lkhead.c,     as/link/mcs51/lkhead.c,     as/link/lkhead.c,
5015         * as/hc08/lklex.c,      as/link/mcs51/lklex.c,      as/link/lklex.c,
5016         * as/hc08/lklist.c,     as/link/mcs51/lklist.c,     as/link/lklist.c,
5017         * as/hc08/lknoice.c,    as/link/mcs51/lknoice.c,    as/link/lknoice.c,
5018         * as/hc08/lksym.c,      as/link/mcs51/lksym.c,      as/link/lksym.c,
5019         * as/link/mcs51/aslink.dsp,
5020         * as/link/mcs51/Makefile.in: factored out the common files
5021         * as/hc08/lkstore.c: deleted, use the one already in as/link/
5022         * as/clean.mk: extra cleaning common files
5023         * as/link/mcs51/strcmpi.c,      as/strcmpi.c: moved
5024         * as/link/mcs51/strcmpi.h: deleted, moved protoype to aslink.h
5025         * as/mcs51/asm.h: include sdccconf.h or sdcc_vc.h
5026
5027 2006-10-29 Raphael Neider <rneider AT web.de>
5028
5029         * src/pic/ralloc.c (newReg): create aliases for registers with
5030           multiple names to fix #1579535 and #1584001,
5031           (regWithIdx,dirregWithName): resolve aliases on lookup
5032         * src/pic/pcode.c (DoBankSelect): die with error message on failing
5033           bankselect
5034         * device/lib/pic/libdev/Makefile.in: move pseudo stack down to 0x4f
5035           to prevent build errors on small devices
5036
5037 2006-10-28 Raphael Neider <rneider AT web.de>
5038
5039         * src/pic/gen.c (genFunction,genCall): drop "same code page"
5040           assumption within interrupt handlers, fixes #1584940
5041         * src/pic/glue.c (pic14_constructAbsMap): mark absolute symbols as
5042           "emitted" to avoid emitting them again in udata
5043
5044 2006-10-27 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5045
5046         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
5047         Removed.
5048
5049 2006-10-26 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5050
5051         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
5052         Initialize uart only if SM0 and SM1 are zero.  Also, use flag to turn
5053         on/off CR to CRLF conversion.
5054
5055 2006-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5056
5057         * doc/sdccman.lyx: updated IRQ section
5058
5059 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5060
5061         * device/lib/serial_io.c: removed
5062         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c
5063         replacements for serial_io.c
5064
5065 2006-10-24 Maarten Brock <sourceforge.brock AT dse.nl>
5066
5067         * src/z80/main.c (_process_pragma, _parseOptions): fixed bug 1583318
5068
5069 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5070
5071         * device/lib/serial_io.c: Default putchar() and getchar() for
5072           mcs51 uses serial port.
5073
5074 2006-10-23 Maarten Brock <sourceforge.brock AT dse.nl>
5075
5076         * src/mcs51/gen.c (movc): improved check for 0 and 1, see RFE 1582704
5077
5078 2006-10-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5079
5080         * support/regression/ports/mcs51/support.c: smaller
5081         _sdcc_external_startup()
5082         * device/lib/mcs51/crtxclear.asm: don't check high byte of l_PSEG
5083
5084 2006-10-20 Maarten Brock <sourceforge.brock AT dse.nl>
5085
5086         * device/lib/gbz80/crt0.s,
5087         * device/lib/gbz80/crt0_rle.s,
5088         * device/lib/gbz80/div.s,
5089         * device/lib/gbz80/fstubs.s,
5090         * device/lib/gbz80/heap.s,
5091         * device/lib/gbz80/mul.s,
5092         * device/lib/gbz80/putchar.s,
5093         * device/lib/gbz80/stubs.s,
5094         * device/lib/z80/crt0.s,
5095         * device/lib/z80/crt0_rle.s,
5096         * device/lib/z80/div.s,
5097         * device/lib/z80/fstubs.s,
5098         * device/lib/z80/heap.s,
5099         * device/lib/z80/mul.s,
5100         * device/lib/z80/putchar.s,
5101         * device/lib/z80/stubs.s: reverted, I was mistaken
5102
5103 2006-10-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5104
5105         * src/mcs51/peeph.def: peephole 238.x added check for notvolatile
5106         * support/regression/ports/mcs51/support.c: removed race
5107         condition on TI in _putchar allowing to use serial port mode 0
5108
5109 2006-10-20 Borut Razem <borut.razem AT siol.net>
5110
5111         * debugger/mcs51/sdcdb.c: replaced isblank() with isspace()
5112
5113 2006-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
5114
5115         * device/lib/gbz80/crt0.s,
5116         * device/lib/gbz80/crt0_rle.s,
5117         * device/lib/gbz80/div.s,
5118         * device/lib/gbz80/fstubs.s,
5119         * device/lib/gbz80/heap.s,
5120         * device/lib/gbz80/mul.s,
5121         * device/lib/gbz80/putchar.s,
5122         * device/lib/gbz80/stubs.s,
5123         * device/lib/z80/crt0.s,
5124         * device/lib/z80/crt0_rle.s,
5125         * device/lib/z80/div.s,
5126         * device/lib/z80/fstubs.s,
5127         * device/lib/z80/heap.s,
5128         * device/lib/z80/mul.s,
5129         * device/lib/z80/putchar.s,
5130         * device/lib/z80/stubs.s: removed all leading underscores from area names
5131
5132 2006-10-17 Maarten Brock <sourceforge.brock AT dse.nl>
5133
5134         * support/regression/ports/mcs51/support.c: use highest baudrate so the
5135           regression tests are not waiting in the simulator for simulated
5136           transmission of debug output
5137
5138 2006-10-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5139
5140         * device/lib/printf_large.c: slightly smaller
5141         * doc/sdccman.lyx: do not use spaces within html links
5142
5143 2006-10-16 Borut Razem <borut.razem AT siol.net>
5144
5145         * configure.in, configure, sdccconf_in.h, src/SDCCglobal,
5146           debugger/mcs51/Makefile.in, debugger/mcs51/sdcdb.[ch],
5147           debugger/mcs51/aclocal.m4, debugger/mcs51/acinclide.m4,
5148           debugger/mcs51/config.h.in, debugger/mcs51/configure.in,
5149           debugger/mcs51/configure:
5150           [ 1185668 ] add gnu readline support to sdcdb - enabled
5151
5152 2006-10-16 Raphael Neider <rneider AT web.de>
5153
5154         * src/pic/pcode.c (BankSelect): another fix on (partial) BANKSELs,
5155           fixes #1577882, removes close to all banking optimizations
5156
5157 2006-10-15 Maarten Brock <sourceforge.brock AT dse.nl>
5158
5159         * src/SDCCsymt.c (checkSClass): no error for uninitialised absolute
5160           variables in code memory
5161         * support/regression/tests/absolute.c: added test for this
5162
5163 2006-10-15 Raphael Neider <rneider AT web.de>
5164
5165         * src/pic/pcode.c (InsertBankSel): suppress BANKSELs for one bank
5166           devices,
5167           (BankSelect): emit BANKSEL before touching linker-placed regs,
5168           fixes #1570934
5169
5170 2006-10-10 Raphael Neider <rneider AT web.de>
5171
5172         * src/SDCCmain.c (optionsTable): accept --stack-size for PICs,
5173         * src/pic/device.c (pic14_getSharebankSize,pic14_getSharebankAddress),
5174         * src/pic/main.c (_pic14_parseOptions),
5175         * src/pic/main.h: mostly reverted to previous state, now use results
5176             from SDCCmain.c's argument parsing
5177
5178 2006-10-10 Borut Razem <borut.razem AT siol.net>
5179
5180         * debugger/mcs51/break.[ch], debugger/mcs51/cmd.c,
5181           debugger/mcs51/sdcdb.[ch], debugger/mcs51/simi.c:
5182           [ 1185668 ] add gnu readline support to sdcdb -
5183           prepared for READLINE, not enabled yet,
5184           thanks to <tal.bav AT gmail.com>
5185
5186 2006-10-10 Raphael Neider <rneider AT web.de>
5187
5188         * src/pic16/pcode.c (pic16_pCode2str): use isACCESS_BANK macro
5189         * src/pic16/devices.inc,
5190         * device/include/pic16 (pic18f[24]620.h),
5191         * device/include/pic18fregs.h,
5192         * device/lib/pic16/pics.all,
5193         * device/lib/pic16/libdev/pic18f[24]{620,525}.c): added support for
5194             18f2620, 18f4620, 18f2525, and 18f4525 devices, thanks to
5195             Gary Plumbridge and Anton Strobl
5196
5197 2006-10-10 Raphael Neider <rneider AT web.de>
5198
5199         * src/pic/main.c (_pic14_parseOptions): added --stack-loc=NUM and
5200           --stack-siz=NUM options to configure the argument passing stack
5201         * src/pic/main.h: added stackLocation and stackSize to pic14_options_t
5202         * src/pic/device.c (mapRegister): catch out-of-memory SIGSEGVs,
5203           (pic14_getSharebankSize): obey --stack-siz=NUM,
5204           (pic14_getSharebankAddress): obey --stack-loc=NUM
5205
5206 2006-10-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5207
5208         * doc/sdccman.lyx: added to the manual
5209         * doc/figures/ddd_example.png: added (neither pdflatex nor
5210         most browsers seem to like the .eps file)
5211
5212 2006-10-06 Bernhard Held <bernhard AT bernhardheld.de>
5213
5214         * src/SDCCglue.c (tempfileandname): changed un*x tmp search paths
5215         to /tmp and /var/tmp acc. LSB
5216         * src/SDCCast.c (addCast): Fixed bug 1571231: promote in case of
5217         RESULT_TYPE_IFX
5218         * support/regression/tests/onebyte.c: added test
5219
5220 2006-10-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5221
5222         * src/mcs51/gen.c: emitcode for "add a,0x%02x" requires only 8 bits.
5223
5224 2006-10-05 Borut Razem <borut.razem AT siol.net>
5225
5226         * partially fixed [ 1570701 ] peephole - not replacing code from multiline macros,
5227           thanks to dfulab:
5228           - sdcc.dsw: changed property eol-style to CRLF
5229           - support/scripts/resource.rc: replaced references to "afxres.h" with "winres.h"
5230
5231 2006-10-04 Raphael Neider <rneider AT web.de>
5232
5233         * device/include/pic/{pic16f84.h,pic16f84a.h},
5234         * device/lib/pic/libdev/{pic16f84.c,pic16f84a.c}: added PORT[AB]_bits
5235           from patch #1522504, thanks to Robas Teodor
5236
5237 2006-10-02 Maarten Brock <sourceforge.brock AT dse.nl>
5238
5239         * as/link/z80/lkarea.c: essentially reverted lnksect() to #4380 which
5240           fixes bug 1566015
5241
5242 2006-10-01 Maarten Brock <sourceforge.brock AT dse.nl>
5243
5244         * src/pic16/glue.c (pic16emitMaps),
5245         * src/pic/glue.c (pic14emitMaps): hopefully fixed bug 1568779
5246         * device/lib/gets.c: fixed bug 1568829,thanks Philipp Krause
5247         * device/lib/pic16/libc/string/memcpypgm2ram.c,
5248         * device/lib/pic16/libc/string/memcpyram2ram.c: fixed bug 1568836, thanks
5249           Philipp Krause
5250         * as/mcs51/asmain.c (asmbl, newdot): fixed problems with absolute areas
5251         * as/link/mcs51/lkmem.c (summary2): reverted, do do count abs segments
5252
5253 2006-09-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5254
5255         * support/librarian/sdcclib.c: Added option -l.
5256         * as/link/mcs51/lkmem.c: don't use absolute segments to compute memory
5257           usage totals.
5258         * device/lib/make51lib.bat: added.  Allows building mcs51 libraries easily
5259           using Windows command prompt.
5260
5261 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
5262
5263         * device/lib/libsdcc.lib: added module rand
5264         * src/ds390/ralloc.c (rematStr),
5265         * src/hc08/ralloc.c (rematStr),
5266         * src/mcs51/ralloc.c (rematStr),
5267         * src/z80/ralloc.c (rematStr): made output more consistent
5268         * src/mcs51/gen.c: cosmetic changes
5269
5270 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
5271
5272         * src/port.h: added mem.cabs_name to PORT
5273         * src/ds390/main.c,
5274         * src/hc08/main.c,
5275         * src/mcs51/main.c,
5276         * src/pic16/main.c,
5277         * src/pic/main.c,
5278         * src/xa51/main.c,
5279         * src/z80/main.c: added cabs_name initializers
5280         * src/SDCCglue.c (emitStaticSeg): allocate and initialize absolute
5281           constants
5282           (emitMaps): emit absolutes in code memory into cabs_name
5283         * src/SDCCmem.c,
5284         * src/SDCCmem.h: added memory map c_abs and defined CABS_NAME
5285         * src/ds390/gen.c (genCodePointerGet): fixed bug if left is a literal
5286         * support/regression/fwk/include/testfwk.h: added define for at
5287         * support/regression/tests/absolute.c: added, new
5288
5289 2006-09-29 Maarten Brock <sourceforge.brock AT dse.nl>
5290
5291         * src/mcs51/gen.c (genPlusIncr, genMinusDec, genAddrOf): small
5292           optimizations, see also patch 887161 by Stas Sergeev
5293         * src/mcs51/peeph.def(104, 207, 209, 212): disabled as they do not seem
5294           to be necessary anymore,
5295           (102, 103, 104, 127): renamed all occurances of bp to _bp
5296
5297 2006-09-27 Maarten Brock <sourceforge.brock AT dse.nl>
5298
5299         * device/include/mcs51/at89c51snd1c.h: fixed MSK_SREQ definition
5300           thanks Weston T. Schmidt for patch 1555221
5301         * src/mcs51/peeph.def: renamed rule 257 to 257.a, added 257.b
5302         * src/SDCCicode.c(geniCodeMultiply): small optimization
5303
5304 2006-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
5305
5306         * device/include/stdlib.h: added rand prototypes
5307         * device/lib/rand.c: new, added
5308         * device/lib/Makefile.in: added rand.c
5309         * src/z80/peeph.def,
5310         * src/z80/peeph-gbz80.def,
5311         * src/z80/peeph-z80.def: updated conditonals, fixed bug 1565908
5312
5313 2006-09-20 Raphael Neider <rneider AT web.de>
5314
5315         * device/lib/pic16/libio/i2c/i2cnack.c (i2c_nack): fixed ACKDT bit
5316
5317 2006-09-19 Maarten Brock <sourceforge.brock AT dse.nl>
5318
5319         * as/link/aslink.h: cosmetic changes
5320         * as/link/mcs51/Makefile.in,
5321         * as/link/z80/Makefile.in: fixed build on CF where VPATH is used
5322
5323 2006-09-17 Maarten Brock <sourceforge.brock AT dse.nl>
5324
5325         * as/link/aslink.h,
5326         * as/link/mcs51/aslink.h,
5327         * as/link/z80/aslink.h: merged and moved to as/link/
5328         * as/link/lkstore.c,
5329         * as/link/mcs51/lkstore.c: moved to as/link/
5330         * as/link/clean.mk: remove *.o
5331         * as/link/mcs51/alloc.h: deleted
5332         * as/link/mcs51/lkarea.c: added lnksect prototype
5333         * as/link/mcs51/lkdata.c,
5334         * as/link/mcs51/lklex.c,
5335         * as/link/mcs51/lkmain.c: renamed as_getline to lk_getline
5336         * as/link/mcs51/lkmem.c,
5337         * as/link/mcs51/lknoice.c: removed include strcmpi.h
5338         * as/link/mcs51/lksym.c: include stdlib.h instead of malloc.h or alloc.h
5339         * as/link/mcs51/aslink.dsp,
5340         * as/link/mcs51/Makefile.aslink,
5341         * as/link/mcs51/Makefile.bcc,
5342         * as/link/mcs51/Makefile.in: updated for moved files
5343         * as/link/z80/lkarea.c,
5344         * as/link/z80/lkhead.c,
5345         * as/link/z80/lklex.c,
5346         * as/link/z80/lklibr.c,
5347         * as/link/z80/lklist.c,
5348         * as/link/z80/lkmain.c,
5349         * as/link/z80/lkrloc.c,
5350         * as/link/z80/lksym.c: synced with mcs51
5351         * as/link/z80/lkdata.c,
5352         * as/link/z80/lkeval.c,
5353         * as/link/z80/lkihx.c,
5354         * as/link/z80/lks19.c: cosmetic changes
5355         * as/link/z80/Makefile.in,
5356         * as/link/z80/linkgbz80.dsp,
5357         * as/link/z80/linkz80.dsp: updated for moved files
5358
5359 2006-09-16 Borut Razem <borut.razem AT siol.net>
5360
5361         * debugger/mcs51/sdcdb.c: partially fixed
5362           [ 1203664 ] sdcdb fails to open files w. two "." periods
5363         * debugger/mcs51/simi.c, debugger/mcs51/symtab.c,
5364           debugger/mcs51/symtab.h: fixed indenting
5365         * configure.in, configure: up to date with latest Maarten's changes
5366
5367 2006-09-15 Maarten Brock <sourceforge.brock AT dse.nl>
5368
5369         as/link/mcs51
5370         as/aslink.dsp,                  as/link/mcs51/aslink.dsp,
5371         as/link/mcs51/aslink.h,         as/mcs51/aslink.h,
5372         as/link/mcs51/aslink.mak,       as/mcs51/aslink.mak,
5373         as/link/mcs51/lkaomf51.c,       as/mcs51/lkaomf51.c,
5374         as/link/mcs51/lkarea.c,         as/mcs51/lkarea.c,
5375         as/link/mcs51/lkdata.c,         as/mcs51/lkdata.c,
5376         as/link/mcs51/lkeval.c,         as/mcs51/lkeval.c,
5377         as/link/mcs51/lkhead.c,         as/mcs51/lkhead.c,
5378         as/link/mcs51/lkihx.c,          as/mcs51/lkihx.c,
5379         as/link/mcs51/lklex.c,          as/mcs51/lklex.c,
5380         as/link/mcs51/lklibr.c,         as/mcs51/lklibr.c,
5381         as/link/mcs51/lklist.c,         as/mcs51/lklist.c,
5382         as/link/mcs51/lkmain.c,         as/mcs51/lkmain.c,
5383         as/link/mcs51/lkmem.c,          as/mcs51/lkmem.c,
5384         as/link/mcs51/lknoice.c,        as/mcs51/lknoice.c,
5385         as/link/mcs51/lkrloc.c,         as/mcs51/lkrloc.c,
5386         as/link/mcs51/lks19.c,          as/mcs51/lks19.c,
5387         as/link/mcs51/lkstore.c,        as/mcs51/lkstore.c,
5388         as/link/mcs51/lksym.c,          as/mcs51/lksym.c,
5389         as/link/mcs51/Makefile.aslink,  as/mcs51/Makefile.aslink,
5390         as/link/mcs51/alloc.h,
5391         as/link/mcs51/clean.mk,
5392         as/link/mcs51/conf.mk,
5393         as/link/mcs51/Makefile.bcc,
5394         as/link/mcs51/Makefile.in,
5395         as/link/mcs51/readme.390,
5396         as/link/mcs51/strcmpi.c,
5397         as/link/mcs51/strcmpi.h,
5398         as/mcs51/clean.mk,
5399         as/mcs51/Makefile.bcc,
5400         as/mcs51/Makefile.in,
5401         configure,
5402         Makefile.in,
5403         sdcc.dsw: moved mcs51 linker to as/link/mcs51
5404
5405 2006-09-14 Maarten Brock <sourceforge.brock AT dse.nl>
5406
5407         * as/link,
5408         * as/link/Makefile.in,
5409         * as/link/z80/linkgbz80.dsp,
5410         * as/link/z80/linkz80.dsp,
5411         * configure,
5412         * link,
5413         * link/clean.mk,
5414         * link/Makefile.in,
5415         * link/README,
5416         * link/z80,
5417         * link/z80/aslink.h,
5418         * link/z80/clean.mk,
5419         * link/z80/conf.mk,
5420         * link/z80/linkgbz80.dsp,
5421         * link/z80/linkz80.dsp,
5422         * link/z80/lkarea.c,
5423         * link/z80/lkdata.c,
5424         * link/z80/lkeval.c,
5425         * link/z80/lkgb.c,
5426         * link/z80/lkgg.c,
5427         * link/z80/lkhead.c,
5428         * link/z80/lkihx.c,
5429         * link/z80/lklex.c,
5430         * link/z80/lklibr.c,
5431         * link/z80/lklist.c,
5432         * link/z80/lkmain.c,
5433         * link/z80/lkrloc.c,
5434         * link/z80/lks19.c,
5435         * link/z80/lksym.c,
5436         * link/z80/Makefile.in,
5437         * Makefile.in,
5438         * sdcc.dsw: moved link/ to as/link/
5439
5440 2006-09-11 Maarten Brock <sourceforge.brock AT dse.nl>
5441
5442         * as/mcs51/i51mch.c (machine): fixed warning
5443
5444 2006-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
5445
5446         * as/mcs51/i51mch.c (machine): S_DJNZ fixed bug 1554318
5447
5448 2006-09-09 Borut Razem <borut.razem AT siol.net>
5449
5450         * debugger/mcs51/sdcdb.c, debugger/mcs51/simi.c:
5451           sdcdb WIN32 native port
5452         * src/clean.mk: fixed
5453
5454 2006-09-08 Borut Razem <borut.razem AT siol.net>
5455
5456         * doc/sdccman.lyx: SDCDB and ucSim are available on Win32 platforms.
5457
5458 2006-09-08 Raphael Neider <rneider AT web.de>
5459
5460         * src/pic16/main.c (_pic16_linkEdit,pic16_linkCmd),
5461         * src/pic/main.c(_pic14_do_link, linkCmd): pass "-w" and "-r"
5462             to gplink to disable processor mismatch warning and to allow
5463             the use of devices with only aliased (shared) memory banks,
5464           (_pic16_genAssemblerPreamble): include pXXX.inc on --mplab-comp
5465
5466 2006-09-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5467
5468         * doc/sdccman.lyx: Some re-formating plus example on using
5469           #pragma preproc_asm +/-
5470
5471 2006-09-07 Borut Razem <borut.razem AT siol.net>
5472
5473         * support/scripts/sdcc.nsi: added SDCDB executables in a separate
5474           section
5475
5476 2006-09-06 Borut Razem <borut.razem AT siol.net>
5477
5478         * support/scripts/sdcc.nsi: fixed Error: unterminated string parsing
5479           line at sdcc.nsi:153
5480         * sdcc/debugger/mcs51/simi.c: argsToCmdLine() fixes
5481
5482 2006-09-05 Borut Razem <borut.razem AT siol.net>
5483
5484         * configure.in, configure: support for winsock2
5485         * debugger/mcs51/break.h, debugger/mcs51/cmd.c,
5486           debugger/mcs51/cmd.h, debugger/mcs51/sdcdb.c,
5487           debugger/mcs51/sdcdb.h, debugger/mcs51/simi.c,
5488           debugger/mcs51/simi.h, debugger/mcs51/symtab.c,
5489           debugger/mcs51/symtab.h: sdcdb WIN32 native port
5490
5491 2006-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
5492
5493         * src/SDCCopt.c (cnvToFcall): fixed bug 1551947 by updating OP_USES
5494           and OP_DEFS
5495         * support/regression/tests/bug1551947.c: new, added
5496         * src/SDCCsymt.h: strings are char* not byte*
5497
5498 2006-09-05 Raphael Neider <rneider AT web.de>
5499
5500         * device/lib/pic16/libdev/pic18f4550.c,
5501           device/include/pic16/pic18f4550.h: added PORTD/TRISD
5502             declarations/definitions from patch #1520949
5503
5504 2006-09-05 Raphael Neider <rneider AT web.de>
5505
5506         * src/pic16/gen.c (genPackBits): fix assignment to 8-bit,
5507           byte-aligned bitfields, fixes #1539278
5508
5509 2006-09-05 Raphael Neider <rneider AT web.de>
5510
5511         * src/pic/gen.c (genReceive): skip unreferenced arguments,
5512           fixes #1544120
5513
5514 2006-09-04 Borut Razem <borut.razem AT siol.net>
5515
5516         * support/scripts/sdcc.nsi: move ucSim executables to a separate section
5517         * support/scripts/sdcc_cygwin_mingw32: don't disable ucsim,
5518           -mno-cygwin is a part of the compiler name
5519         * support/scripts/sdcc_mingw32: don't disable ucsim
5520
5521 2006-09-03 Borut Razem <borut.razem AT siol.net>
5522
5523         * sdcc.spec: corrected for 2.6.0. Thanks to Christer Weinigel.
5524         * device/lib/Makefile.in device/lib/clean.mk: small but essential corrections
5525
5526 2006-09-03 Raphael Neider <rneider AT web.de>
5527
5528         * src/pic/ralloc.c,
5529         * src/pic/pcode.c (InitReuseRegs): allocate registers with pseudo
5530           indices >= 0x1000 to disambiguate them from fixed regs __at(addr),
5531           fixes #1550049
5532
5533 2006-09-01 Borut Razem <borut.razem AT siol.net>
5534
5535         * sim/ucsim/cmd.src/cmdutil.cc: #include <sys/time.h> and <unistd.h>
5536           to make ppc-osx happy
5537
5538 2006-08-31 Borut Razem <borut.razem AT siol.net>
5539
5540         * sim/ucsim/cmd.src/newcmdposix.cc: #include <assert.h>
5541         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
5542         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
5543         * support/regression/ports/ds390/spec.mk,
5544           support/regression/ports/mcs51/spec.mk,
5545           support/regression/ports/xa51/spec.mk: introduced DEV_NULL variable.
5546           To run regression tests in mingw environment:
5547           make DEV_NULL=NUL CC=gcc
5548
5549 2006-08-30 Borut Razem <borut.razem AT siol.net>
5550
5551         * sim/ucsim/cmd.src/newcmdposix.cc, sim/ucsim/cmd.src/newcmdposixcl.h,
5552           sim/ucsim/cmd.src/newcmdwin32.cc, sim/ucsim/cmd.src/newcmdwin32cl.h,
5553           sim/ucsim/app.cc, sim/ucsim/appcl.h, sim/ucsim/configure,
5554           sim/ucsim/configure.in, sim/ucsim/ddconfig_in.h, sim/ucsim/error.cc,
5555           sim/ucsim/errorcl.h, sim/ucsim/option.cc, sim/ucsim/optioncl.h,
5556           sim/ucsim/utils.cc, sim/ucsim/utils.h, sim/ucsim/cmd.src/Makefile.in,
5557           sim/ucsim/avr.src/avr.cc, sim/ucsim/avr.src/avrcl.h,
5558           sim/ucsim/cmd.src/bp.cc, sim/ucsim/cmd.src/bpcl.h,
5559           sim/ucsim/cmd.src/cmdconf.cc, sim/ucsim/cmd.src/cmdgui.cc,
5560           sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/cmdset.cc,
5561           sim/ucsim/cmd.src/cmdsetcl.h, sim/ucsim/cmd.src/cmdstat.cc,
5562           sim/ucsim/cmd.src/cmduc.cc, sim/ucsim/cmd.src/cmduccl.h,
5563           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
5564           sim/ucsim/cmd.src/command.cc, sim/ucsim/cmd.src/commandcl.h,
5565           sim/ucsim/cmd.src/get.cc, sim/ucsim/cmd.src/getcl.h,
5566           sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/newcmd.cc,
5567           sim/ucsim/cmd.src/newcmdcl.h, sim/ucsim/cmd.src/set.cc,
5568           sim/ucsim/cmd.src/show.cc, sim/ucsim/cmd.src/timer.cc,
5569           sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
5570           sim/ucsim/s51.src/Makefile.in, sim/ucsim/s51.src/interrupt.cc,
5571           sim/ucsim/s51.src/interruptcl.h, sim/ucsim/s51.src/pca.cc,
5572           sim/ucsim/s51.src/pcacl.h, sim/ucsim/s51.src/port.cc,
5573           sim/ucsim/s51.src/portcl.h, sim/ucsim/s51.src/serial.cc,
5574           sim/ucsim/s51.src/serialcl.h, sim/ucsim/s51.src/timer0.cc,
5575           sim/ucsim/s51.src/timer0cl.h, sim/ucsim/s51.src/timer1.cc,
5576           sim/ucsim/s51.src/timer1cl.h, sim/ucsim/s51.src/timer2.cc,
5577           sim/ucsim/s51.src/timer2cl.h, sim/ucsim/s51.src/uc390.cc,
5578           sim/ucsim/s51.src/uc390cl.h, sim/ucsim/s51.src/uc390hw.cc,
5579           sim/ucsim/s51.src/uc390hwcl.h, sim/ucsim/s51.src/uc51.cc,
5580           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/wdt.cc,
5581           sim/ucsim/s51.src/wdtcl.h, sim/ucsim/sim.src/hw.cc,
5582           sim/ucsim/sim.src/hwcl.h, sim/ucsim/sim.src/mem.cc,
5583           sim/ucsim/sim.src/memcl.h, sim/ucsim/sim.src/obsolete.cc,
5584           sim/ucsim/sim.src/obsolete.h, sim/ucsim/sim.src/sim.cc,
5585           sim/ucsim/sim.src/simcl.h, sim/ucsim/sim.src/stack.cc,
5586           sim/ucsim/sim.src/stackcl.h, sim/ucsim/sim.src/test_mem_speed.cc,
5587           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
5588           sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
5589           sim/ucsim/z80.src/z80.cc, sim/ucsim/z80.src/z80cl.h:
5590           ucsim WIN32 native port
5591
5592 2006-08-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5593
5594         * doc/sdccman.lyx: added note on dynamic memory heap initialization
5595
5596 2006-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
5597
5598         * src/mcs51/gen.c (genAnd, genOr, genXor): fixed bug 1546986
5599         * src/ds390/gen.c (aopGetUsesAcc): handle AOP_DPTR2 and AOP_DPTRn too
5600
5601 2006-08-26 Maarten Brock <sourceforge.brock AT dse.nl>
5602
5603         * src/ds390/gen.c (genAnd, genOr, genXor): fixed bug 1546986
5604         * support/regression/tests/bug1546986.c: new, added
5605         * as/mcs51/.cvsignore,
5606         * debugger/mcs51/.cvsignore,
5607         * src/.cvsignore: deleted
5608
5609 2006-08-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5610
5611         * device/include/mcs51/P89c51RD2.h: fixed bug 1546936 (error in sbit
5612           definitions)
5613
5614 2006-08-20 Borut Razem <borut.razem AT siol.net>
5615
5616         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h:
5617           removed cl_listen_console::match(), cl_console::match(),
5618           restructured cl_commander::proc_input()
5619
5620 2006-08-16 Borut Razem <borut.razem AT siol.net>
5621
5622         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h,
5623           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
5624           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/uc.cc: code cleaning
5625
5626 2006-08-14 Borut Razem <borut.razem AT siol.net>
5627
5628         * support/regression/Makefile.in,
5629           support/regression/ports/pic14/gpsim.cmd,
5630           support/regression/ports/pic14/spec.mk,
5631           support/regression/ports/pic14/support.c:
5632           added pic14 regression test
5633
5634 2006-08-14 Maarten Brock <sourceforge.brock AT dse.nl>
5635
5636         * as/doc/asxhtm.html: documented changed ABS behaviour
5637         * as/doc/README: fixed some typos
5638
5639 2006-08-13 Maarten Brock <sourceforge.brock AT dse.nl>
5640
5641         * support/regression/tests/float_trans.c: disabled test if __STDC_IEC_559__
5642           not defined on host
5643
5644 2006-08-12 Borut Razem <borut.razem AT siol.net>
5645
5646         * support/regression/fwk/include/testfwk.h,
5647           support/regression/fwk/lib/testfwk.c,
5648           support/regression/generate-cases.py,
5649           support/regression/Makefile.in:
5650           regression test framework does not depend on function pointers and
5651           variable arguments
5652
5653 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
5654
5655         * device/include/stddef.h: c temporary hack to fix bug 1518273
5656
5657 2006-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5658
5659         * device/include/mcs51/cc2510fx.h: added
5660         * src/z80/z80.dsp, src/gbz80/gbz80.dsp: added support/Util/strcmpi.ch
5661           to projects.
5662
5663 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
5664
5665         * as/z80/assym.c (mlookup): ignore case when looking up mnemonics
5666         * as/z80/Makefile.in: added strcmpi.c
5667         * as/z80/z80adr.c: added upper case registers and lower case conditionals
5668         * support/Util/strcmpi.ch: added with intention to remove from mcs51/hc08
5669
5670 2006-08-08 Maarten Brock <sourceforge.brock AT dse.nl>
5671
5672         * device/lib/gbz80/asm_strings.s,
5673         * device/lib/gbz80/crt0_rle.s,
5674         * device/lib/gbz80/div.s,
5675         * device/lib/gbz80/mul.s,
5676         * device/lib/gbz80/shift.s,
5677         * device/lib/z80/asm_strings.s,
5678         * device/lib/z80/crt0_rle.s,
5679         * device/lib/z80/div.s,
5680         * device/lib/z80/mul.s,
5681         * device/lib/z80/shift.s: changed to all lower case menmonics except the
5682           flags which are all upper case
5683
5684 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
5685
5686         * as/z80/asm.h: made CASE_SENSITIVE 1
5687         * link/z80/aslink.h: made CASE_SENSITIVE 1
5688         * src/z80/gen.c (throughout): made all conditionals upper case
5689         * support/regression/tests/bug1503067.c: new
5690
5691 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
5692
5693         * src/z80/gen.c (aopPut): fixed bug !*ixy should be !*iyx,
5694           (shiftIntoPair): added case 2 for PAIR_IY,
5695           (setupToPreserveCarry): replaced parameters with iCode and check if
5696            PAIR_DE is in use to fix bug 1399290,
5697           (genPlus, genMinus): updated call to setupToPreserveCarry
5698         * support/regression/tests/bug1399290.c: new
5699
5700 2006-08-06 Maarten Brock <sourceforge.brock AT dse.nl>
5701
5702         * device/lib/Makefile.in (Z80SOURCES): enabled float support
5703         * sim/ucsim/z80.src/inst.cc (inst_rst): generate breakpoint on RST8,ACC==0
5704         * src/ds390/gen.c (shiftRLong),
5705         * src/hc08/gen.c (shiftLLong, shiftRLong): fixed bug 1533966
5706         * src/mcs51/gen.c (sameReg): changed to sameByte,
5707           (xch_a_aopGet): new,
5708           (shiftL2Left2Result, shiftR2Left2Result, shiftRLeftOrResult, shiftLLong,
5709            shiftRLong): fixed bug 1533966
5710         * src/z80/gen.c (shiftR2Left2Result, shiftL2Left2Result, genlshTwo,
5711           genLeftShiftLiteral, genrshTwo, genRightShiftLiteral): fixed bug 1533966
5712         * support/regression/Makefile.in: disabled z80, enabled ucz80
5713         * support/regression/tests/float_trans.c: enabled test for z80 and host
5714         * support/regression/tests/shifts2.c: new, for testing bug 1533966
5715
5716 2006-08-01 Borut Razem <borut.razem AT siol.net>
5717
5718         * src/mcs51/gen.c, src/dc390/gen.c: fixed warning:
5719           comparison is always false due to limited range of data type
5720           on PPC64 machine (openpower-linux1) where "char = unsigned char"
5721
5722 2006-08-01 Maarten Brock <sourceforge.brock AT dse.nl>
5723
5724         * sim/ucsim/hc08.src/hc08mac.h: removed faulty and unused add_u16_disp
5725         * sim/ucsim/hc08.src/hc08.cc: removed faulty and unused int8
5726         * sim/ucsim/z80.src/z80mac.h (add_u16_disp): use explicit signed char cast
5727         * sim/ucsim/z80.src/z80.cc: removed faulty and unused int8
5728
5729 2006-07-31 Borut Razem <borut.razem AT siol.net>
5730
5731         * sim/ucsim/configure, sim/ucsim/cmd.src/newcmdcl.h,
5732           sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/cmdutil.cc,
5733           sim/ucsim/z80.src/Makefile.in, sim/ucsim/configure.in,
5734           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/hc08.src/hc08.cc,
5735           sim/ucsim/ddconfig_in.h, sim/ucsim/s51.src/Makefile.in,
5736           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/serialcl.h,
5737           sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/serial.cc,
5738           sim/ucsim/app.cc, sim/ucsim/avr.src/Makefile.in:
5739           enable ucsim mingw compilation. Serial port is disabled,
5740           since it uses termios.h API, which is not available on native
5741           WIN32
5742
5743 2006-07-31 Borut Razem <borut.razem AT siol.net>
5744
5745         * Small Device C Compiler 2.6.0 released
5746         * support/scripts/sdcc.nsi: added FULL_DOC option
5747         * .version, doc/sdccman.lyx: changed sdcc version to 2.6.1
5748
5749 2006-07-28 Borut Razem <borut.razem AT siol.net>
5750
5751         * support/scripts/sdcc.nsi: remove $INSTDIR/include/asm/pic16/*.h
5752         * doc/INSTALL.txt: updated
5753
5754 2006-07-27 Borut Razem <borut.razem AT siol.net>
5755
5756         * device/lib/pic/Makefile.in, device/lib/pic/Makefile.subdir,
5757           device/lib/pic/libdev/Makefile.in: fixed bug
5758           [ 1438354 ] pic libsdcc: distclean doesn't work
5759         * device/lib/pic16/Makefile.in, device/lib/pic16/Makefile.subdir,
5760           device/lib/pic16/libio/Makefile.in: fixed bug
5761           [ 1438344 ] pic16 lib: clean doesn't work properly
5762         * doc/knownbugs.html removed [ 1438354 ] and [ 1438344 ] from the list
5763
5764 2006-07-26 Maarten Brock <sourceforge.brock AT dse.nl>
5765
5766         * device/lib/pic/libsdcc/fsdiv.c,
5767         * device/lib/pic/libsdcc/fsmul.c,
5768         * device/lib/pic16/libsdcc/float/fsdiv.c,
5769         * device/lib/pic16/libsdcc/float/fsmul.c,
5770         * device/lib/_fsdiv.c,
5771         * device/lib/_fsmul.c: bugfix, handle too large and too small numbers
5772         * support/regression/tests/bug1520966.c: added
5773         * doc/knownbugs.html: removed [ 1520966 ] from the list
5774
5775 2006-07-25 Borut Razem <borut.razem AT siol.net>
5776
5777         * configure.in, configure, sdccconf_in.h: fixed bug
5778           [ 1519095 ] regression test onebyte.c fails on ppc64 host
5779         * doc/knownbugs.html: removed [ 1519095 ] from the list
5780
5781 2006-07-25 Maarten Brock <sourceforge.brock AT dse.nl>
5782
5783         * doc/knownbugs.html: added, contains list of known bugs at release
5784         * device/include/mcs51/compiler.h: fixed SFR32 for SDCC
5785
5786 2006-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
5787
5788         * device/include/mcs51/compiler.h: added SFRX for xdata based special
5789           function registers and corrected defaults with additional warning
5790         * device/lib/malloc.c: cosmetic changes
5791         * device/lib/realloc.c: bugfix for bug #1496907, Thanks Efim Monyak
5792         * src/ds390/ralloc.c (getRegBitNoSpil): reenabled,
5793           (fillGaps): and used it
5794
5795 2006-07-20 Raphael Neider <rneider AT web.de>
5796
5797         * src/pic/device.c (addMemRange,assignRegister): suppress verbose
5798           output unless SDCCPICDEBUG is set
5799         * device/lib/pic16/Makefile.rules (%.lib target): suppress verbose
5800           output if SILENT is set
5801
5802 2006-07-11 Borut Razem <borut.razem AT siol.net>
5803
5804         * doc/README.txt: updated
5805
5806 2006-07-10 Borut Razem <borut.razem AT siol.net>
5807
5808         * support/scripts/sdcc.nsi: added device/include/asm/pic/features.h and
5809           device/lib/src/pic/libm/*.c and device/lib/src/pic16/libsdcc/stack/*.S
5810           in WIN32 installation
5811         * .version, sdcc.spec, doc/sdccman.lyx: changed sdcc version to 2.6.0 -
5812           release candidate 1
5813
5814 2006-07-08 Maarten Brock <sourceforge.brock AT dse.nl>
5815
5816         * device/include/mcs51/XC866.h: added sbit definitions for Px_x, P1_x, P2_x
5817         * src/pic16/glue.c (initPointer): fixed bug 1496419 for pic16
5818
5819 2006-07-06 Maarten Brock <sourceforge.brock AT dse.nl>
5820
5821         * src/hc08/gen.c (genAddrOf): fixed bug when offset on stack is >127
5822
5823 2006-07-06 Borut Razem <borut.razem AT siol.net>
5824
5825         * support/regression/tests/bitfields.c:
5826           fixed bug [ 1518322 ] regression test bitfields fails on ppc hosts
5827         * support/regression/tests/constantRange.c:
5828           fixed bug [ 1518317 ] regression test constantRange fails on alpha host
5829
5830 2006-07-04 Borut Razem <borut.razem AT siol.net>
5831
5832         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in,
5833           src/port.mk,
5834           src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
5835           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
5836           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
5837           reverted changes from 2006-07-03
5838         * Makefile.common.in: added @CPPFLAGS@ to CPPFLAGS
5839         * support/regression/Makefile.in, support/regression/ports/host/spec.mk:
5840           added CPPFLAGS, used by the host port
5841
5842 2006-07-03 Bernhard Held <bernhard AT bernhardheld.de>
5843
5844         * support/regression/valdiag/tests/switch.c,
5845         * support/regression/valdiag/tests/constantRange.c: adapted to gcc 4
5846         * support/regression/tests/libmullong.c: fixed for host
5847         * support/regression/ports/host/spec.mk: disable all warnings for host,
5848         SDCC runs with --less-pedantic too
5849
5850 2006-07-03 Borut Razem <borut.razem AT siol.net>
5851
5852         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in:
5853           defined CPPFLAGS
5854         * src/port.mk: defined CPPFLAGS, renamed to src/port.mk.in
5855         * src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
5856           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
5857           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
5858           include ../port.mk
5859         * sim/ucsim/main_in.mk, sim/ucsim/avr.src/Makefile.in,
5860           sim/ucsim/gui.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
5861           sim/ucsim/s52.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
5862           sim/ucsim/xa.src/Makefile.in: ignore header files for dependencies
5863
5864 2006-07-02 Raphael Neider <rneider AT web.de>
5865
5866         * src/pic16/devices.inc,
5867         * device/include/pic16/pic18fregs.h,
5868         * device/include/pic16/pic18f4550.h,
5869         * device/lib/pic16/pics.all,
5870         * device/lib/pic16/libdev/pic18f4550.c: added support for 18f4550
5871
5872 2006-07-01 Bernhard Held <bernhard AT bernhardheld.de>
5873
5874         * as/hc08/lkaomf51.c (OutputName),
5875         * as/mcs51/lkaomf51.c (OutputName),
5876         * as/z80/asmain.c (asmbl),
5877         * src/ds390/main.c (asmLineNodeFromLineNode),
5878         * src/hc08/ralloc.c (hc08_assignRegisters),
5879         * src/mcs51/main.c (asmLineNodeFromLineNode),
5880         * src/xa51/ralloc.c (checkRegMask),
5881         * src/xa51/gen.c (emitcode),
5882         * src/z80/gen.c (_emit2),
5883         * src/SDCCast.c (searchLitOp),
5884         * src/SDCCglobl.h,
5885         * support/packihx/packihx.c,
5886         * support/Util/MySystem.c (split_command): fix gcc 4 warnings
5887         * src/ds390/gen.c (aopPutUsesAcc),
5888         * src/ds390/ralloc.c (getRegBitNoSpil): unused, therefore disabled
5889         * support/regression/tests/libmullong.c (mullong_wrapper),
5890         * src/SDCCsymt.c (powof2),
5891         * src/SDCCast.c,
5892         * src/SDCCicode.c: renamed TYPE_WORD by TYPE_TARGET_INT and so on
5893         * src/SDCCsymt.h: added TYPE_TARGET_*
5894         * src/SDCCutil.c (doubleFromFixed16x16, fixed16x16FromDouble),
5895         * src/SDCCutil.h (doubleFromFixed16x16, fixed16x16FromDouble): moved to
5896         SDCCast because 1) header problems 2) this is the right place
5897         * src/SDCCast.c (doubleFromFixed16x16, fixed16x16FromDouble): added
5898         * src/SDCCval.h (doubleFromFixed16x16, fixed16x16FromDouble): added
5899         prototype
5900
5901 2006-06-29 Bernhard Held <bernhard AT bernhardheld.de>
5902
5903         * src/SDCCicode.h: removed buggy semicolon in unused macro
5904         * src/SDCClrange.c (findPrevUseSym, rlivePoint): fixed bug #1486853,
5905         search for previous definiton of auto symbols too,
5906         (findPrevUse): fixed logic of emitWarnings
5907
5908 2006-06-26 Raphael Neider <rneider AT web.de>
5909
5910         * src/pic16/gen.c (genFunction, genEndFunction): also preserve
5911           PCLATH and PCLATU on interrupts, potentially fixes #1505141
5912
5913 2006-06-25 Raphael Neider <rneider AT web.de>
5914
5915         * device/lib/pic/libm: NEW, added math library functions
5916         * device/lib/pic/libsdcc: NEW; added float support functions
5917         * device/lib/pic/{Makefile.in,configure.in,configure}: added libm/
5918         * device/include/pic/{limits.h,errno.h,sdcc-lib.h,float.h,math.h}:
5919           NEW, added math related headers
5920         * device/include/asm/pic/features.h: NEW
5921         * src/pic/gen.c (emitpcode_real): emit warning on NULL pCodeOp,
5922           (popGet): allow larger offsets for AOP_PCODE,
5923           (genDataPointerSet): handle literals explicitly, more debug output,
5924           (genAssign): fixed for float using aopLiteral ;-)
5925         * src/pic/glue.c (pic14createInterruptVect): inserted pagesel before
5926           GOTO initialisation routine
5927         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): set wasUsed
5928           flag on registers, fixes #1469043 (local variables do not work)
5929         * src/pic/main.c (_pic14_do_link),
5930         * src/pic16/main.c (_pic16_linkEdit): use fullDstFileName if
5931           available
5932
5933 2006-06-25 Borut Razem <borut.razem AT siol.net>
5934
5935         * device/lib/pic16/libc/stdio/sprintf.c: return the number of
5936           characters printed (not including the trailing '\0' used to end
5937           output to strings). Problem detected in regression test bug-927659.c.
5938           NOTE: printf() family functions should return int instead
5939           unsigned int!
5940         * device/lib/pic16/libc/stdio/vfprintf.c: "%%" prints "%", unknown
5941           specifier are printed as themselves
5942         * sdcc/support/regression/tests/bug1057979.c: pic16 printf doesn't
5943           support flags, width and precision specifiers
5944
5945 2006-06-24 Borut Razem <borut.razem AT siol.net>
5946
5947         * sdcc/support/regression/tests/bitvars.c: added gbz80, pic16 and pic16
5948           to the list of sdcc tagrets not supporting bit type
5949         * sdcc/support/regression/tests/bug-905992.c.c: excluded regression
5950           testfor pic16 due to bug:
5951           [ 1511794 ] pic16: regression test bug-895992.c fails
5952
5953 2006-06-24 Maarten Brock <sourceforge.brock AT dse.nl>
5954
5955         * src/mcs51/gen.c (genCmp): optimization for RFE 1162453
5956         * src/SDCCglue.c (initPointer), fixed bug 1496419
5957         * support/regression/tests/bug1496419.c: new, added
5958
5959 2006-06-22 Borut Razem <borut.razem AT siol.net>
5960
5961         * support/regression/ports/pic16/support.c: use gpsim usart module from
5962           libgpsim_modules library
5963
5964 2006-06-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5965
5966         * device/include/mcs51/at89c51ed2.h: Fixed bug 1510144 changed
5967         IP0H to IPH0.
5968
5969 2006-06-19 Raphael Neider <rneider AT web.de>
5970
5971         * src/pic/glue.h,src/pic16/glue.h: added prototypes
5972         * src/pic/glue.c,src/pic16/glue.c (pic1x_stringInSet,
5973           pic1x_emitSymbolIfNew): NEW, check for a string in a set,
5974           (pic14printExterns,pic14printPublics,pic16printPublics,
5975           pic16_printExterns): use new functions to emit symbols
5976           (picglue,pic16glue): emit publics before emitting externs
5977         * src/pic/gen.c,src/pic16/gen.c (genFunction): remember the names of
5978           locally defined functions to avoid bug #1443651
5979         * support/regression/tests/bug-716242.c: removed pic16 workaround
5980         * support/regression/ports/pic16/spec.mk: ignore errors during build
5981
5982 2006-06-19 Raphael Neider <rneider AT web.de>
5983
5984         * src/pic/glue.h: added pic14aopLiteral prototype
5985         * src/pic/glue.c (pic14aopLiteral): return unsigned int
5986         * src/pic/gen.c: removed stdint.h dependency
5987           (aopGet): use Safe_strdup()
5988           (bitpatternFromVal): removed, replaced use with pic14aopLiteral
5989           (genDataPointerSet): use pic14aopLiteral()
5990         * src/pic16/glue.h, src/pic16/glue.c, src/pic16/gen.c: similar changes
5991           for pic16; thanks to Bernhard and Maarten
5992
5993 2006-06-18 Borut Razem <borut.razem AT siol.net>
5994
5995         * support/regression/tests/structflexarray.c: flexible array members
5996           not supported by gcc < 3
5997         * sim/ucsim/configure, sim/ucsim/configure.in: do not compile serio
5998           GUI tool by default
5999         * src/pic/gen.c: don't include [p]strdin.h on solaris
6000         * support/Util/pstdint.h: addad svn attributes
6001         * support/regression/tests/constantRange.c,
6002           support/regression/tests/rotate.c: include inttypes.h instead
6003           stdint.h on solaris, addad svn attributes
6004
6005 2006-06-18 Raphael Neider <rneider AT web.de>
6006
6007         * src/SDCCsymt.c (initCSupport): change return type of divschar to
6008           int for PIC16
6009         * src/pic16/genarith.c (genAddLit): sign-extend via standard routine
6010           (pic16_genMinusBits): simplified sign-extension
6011           (pic16_genUMult8XLit_8,pic16_genUMult8X8_8): renamed to
6012             pic16_genMult8XLit_n resp. pic16_genMult8X8_n, fixed and
6013             adjusted to correctly handle mixed-signed operands, disabled
6014             now unused multiplciation routines
6015         * src/pic16/gen.c (pic16_pushpCodeOp): fixed to handle literals
6016           (assignResultValue): added argument denoting the size of the result
6017             as returned by the function (fixes upcasts in assigning from
6018             function calls: char foo(); int i = foo();)
6019           (genCall,genPcall,genGenPointerGet,genReceive): pass size of
6020             function result to assignResultValue
6021           (genMult): disabled inlined multiplication code
6022           (genDiv): augmented to also handle the modulus operator, fixed to
6023             handle mixed-signed operands correctly
6024           (genMod): simply call genDiv, disabled unused code
6025           (genAssign): fixed missing (sign-)extension on result
6026         * src/pic16/main.c (_hasNativeMulFor): accept literals [-128..256) as
6027             valid char operands, allow signed operands for native code, added
6028             division and modulo operator handling
6029         * device/lib/pic16/libsdcc/char/divschar.c: divschar returns an int
6030
6031         As a consequence, onebyte.c (if split into two files) and muldiv.c
6032         pass regression tests.
6033
6034 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6035
6036         * doc/Makefile.in: two runs of makeindex seem needed to get
6037         correct page references in the index of sdccman.pdf
6038         * doc/sdccman.lyx: mentioned cmon51, added links, small changes
6039
6040 2006-06-17 Borut Razem <borut.razem AT siol.net>
6041
6042         * sdcc/device/lib/Makefile.in: corrected PORTINCDIR path
6043
6044 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6045
6046         * doc/sdccman.lyx: updated, added (porting source code, debugging),
6047         mentioned ec2drv and paulmon
6048
6049 2006-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
6050
6051         * as/mcs51/lkarea.c (lnkarea2): clear new xdatamap, bugfix for two
6052           consecutive abs areas
6053           (find_empty_space, allocate_space): added map to handle codemap or
6054            xdatamap,
6055           (lnksect2): renamed rloc to locIndex, fixed bug 960060 by handling
6056            absolute idata and xdata
6057         * as/mcs51/lkmem.c (summary2): updated legend
6058
6059 2006-06-16 Raphael Neider <rneider AT web.de>
6060
6061         * src/pic16/gen.c (shiftR2Left2Result): fixed bug #1507127
6062
6063 2006-06-13 Maarten Brock <sourceforge.brock AT dse.nl>
6064
6065         * debugger/mcs51/cmd.c (cmdListFunctions): fixed bugs 1181163 and
6066           1208515
6067         * src/SDCClrange.c (findPrevUse): fixed bug 1294475
6068
6069 2006-06-13 Vangelis Rokas <vrokas AT users.sourceforge.net>
6070
6071         * src/port.h (struct PORT): added field gp_tags, to hold the tag
6072         value of generic pointers,
6073         * src/avr/main.c,
6074           src/ds390/main.c,
6075           src/hc08/main.c,
6076           src/izt/i186.c,
6077           src/izt/tlcs900h.c,
6078           src/mcs51/main.c,
6079           src/pic/main.c,
6080           src/pic16/main.c,
6081           src/xa51/main.c,
6082           src/z80/main.c: PORT structure, added elements for gp_tags field,
6083         * src/SDCCsymt.h: replaced hardwired values of GPTYPE_* macros with
6084         fields in the PORT structure of each port,
6085         * src/SDCCast.c (decorateType): allow processing of generic pointers
6086         for PIC16 port (FPTRSIZE equals GPTRSIZE), also set GPTYPE_NEAR for
6087         S_FIXED symbols
6088
6089 2006-06-12 Maarten Brock <sourceforge.brock AT dse.nl>
6090
6091         * link/z80/lkgb.c,
6092         * link/z80/lkgg.c,
6093         * src/pic16/gen.c,
6094         * src/pic16/main.c,
6095         * src/pic16/pcode.c,
6096         * src/pic/main.c,
6097         * src/pic/pcoderegs.c,
6098         * src/SDCCicode.c,
6099         * src/SDCCmain.c,
6100         * src/SDCCsymt.c: replaced all exit(-1) by exit(EXIT_FAILURE) to fix
6101           bug 1504689 on minGW
6102
6103 2006-06-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6104
6105         * device/lib/printf_tiny.c: fixed bug #1465675 (%x format specifier)
6106
6107 2006-06-12 Bernhard Held <bernhard AT bernhardheld.de>
6108
6109         * src/SDCCast.c (backPatchLabels): fixed bug #1504636
6110
6111 2006-06-11 Maarten Brock <sourceforge.brock AT dse.nl>
6112
6113         * device/lib/printf_large.c (OUTPUT_CHAR, _output_char): added and used
6114           for optimization
6115
6116 2006-06-11 Vangelis Rokas <vrokas AT users.sourceforge.net>
6117
6118         * src/pic16/gen.c (genCast): fixed bug with assignment of a pointer
6119         to a char variable. Fixed bug #1504211
6120         * device/include/pic16/adc.h,
6121         device/include/lib/pic16/libio/adc/adcopen.c: applied patch #1364387
6122         and fixed bug #1364390
6123
6124 2006-06-10 Borut Razem <borut.razem AT siol.net>
6125
6126         * CVSROOT: removed the CVS left-over
6127
6128 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
6129
6130         * as/hc08/asmain.c (asexit),
6131         * as/hc08/lkmain.c (lkexit),
6132         * as/mcs51/asmain.c (asexit),
6133         * as/mcs51/lkmain.c (lkexit),
6134         * src/SDCCglue.c (DEFSETFUNC),
6135         * src/SDCCmain.c (linkEdit, assemble),
6136         * support/librarian/sdcclib.c (AddRel),
6137           replaced unlink() by standard C remove()
6138         * src/SDCC.y: replaced removePostIncDecOps() by createRMW()
6139         * src/SDCCast.c (replaceAstWithTemporary, createRMW,
6140           gatherImplicitVariables): new, added to fix bug 608752,
6141           (createFunction): added gatherImplicitVariables()
6142         * src/SDCCast.h: added createRMW prototype
6143         * src/SDCCsymt.h (struct symbol): added infertype
6144         * support/regression/tests/bug608752.c: new, added
6145
6146 2006-06-10 Raphael Neider <rneider AT web.de>
6147
6148         * src/pic16/gen.c (pic16_aopOp): use WREG as destination even for
6149           multibyte dummy reads (fixes #1503234)
6150
6151 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
6152
6153         * device/include/mcs51/compiler.h: new, added header file to enable
6154           creating common sfr definition header files for different compilers
6155
6156 2006-06-05 Raphael Neider <rneider AT web.de>
6157
6158         * src/pic16/{pcode.h,genarith.c}:
6159           introduced pCodeOp combining any two pCodeOps (previously only
6160           two register operands could be combined), removed pcop2 from
6161           pCodepReg, replaced pCodeOpReg2 with pCodeOp2, fixes #1492366
6162         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): added case for PO_TWO_OPS
6163         * src/pic16/gen.c (pic16_popGet2,pic16_popGet2p,pic16_popCombine2):
6164           rewritten to use new PO_TWO_OPS
6165         * src/pic16/main.c (_hasNativeMulFor): cover more cases natively,
6166         * src/pic16/pcode.c (pic16_newpCodeOpImmd): initialize rIdx field,
6167           (pic16_newpCodeOp): catch invalid attempts on PO_TWO_OPS,
6168           (pic16_newpCodeOp2): NEW, create combined pCodeOp,
6169           (pic16_get_op): embraced return arg to allow #define return(x),
6170             added new case for combined opcodes
6171           (pic16_get_op2): reduced to use pic16_get_op() on second pCodeOp,
6172           (pic16_pCode2str,pic16_getRegFrompCodeOp,
6173            pic16_getRegFromInstruction2): fixed/added handling of new pCodeOp
6174
6175 2006-06-04 Bernhard Held <bernhard AT bernhardheld.de>
6176
6177         * src/SDCCval.c (checkConstantRange): added
6178         * src/SDCCval.h: added checkConstantRange
6179         * support/Util/SDCCerr.c,
6180         * support/Util/SDCCerr.h: replaced unused W_IF_NEVER_TRUE and
6181         W_IF_ALWAYS_TRUE by W_COMP_RANGE and W_LIT_OVERFLOW
6182         * src/SDCC.y: moved early 'condition transformations' to SDCCast.c
6183         * src/SDCCast.c (decorateType): added checkConstantRange,
6184         added 'condition transformations' from SDCC.y so that now W_COMP_RANGE
6185         can be emitted with the correct always true/false warning,
6186         added optimization for double '!';
6187         result of decorateType() must be assigned back to the tree, because
6188         decorateType() can change the tree
6189         * src/SDCCicode.c (geniCodeLogic),
6190         (geniCodeAssign): replaced new checkConstantRange, added warnings,
6191         (checkConstantRange): removed, it was only a fragment which never
6192         emitted a warning
6193         * src/SDCCsymt.c (computeType): fixed promotion for
6194         "-1 < (unsigned bit) b"
6195         * src/pic/ralloc.c (packRegsForAssign),
6196         * src/pic16/ralloc.c (packRegsForAssign),
6197         * src/hc08/ralloc.c (packRegsForAssign),
6198         * src/z80/ralloc.c (packRegsForAssign): ported fix for bug #930931
6199         from mcs51
6200         * src/mcs51/ralloc.c (packRegsForAssign): removed outcommented source
6201         * support/regression/tests/constantRange.c: added
6202         * support/valdiag/tests/constantRange.c: added
6203         * support/valdiag/valdiag.py: added -DPORT_HOST=1
6204
6205 2006-06-02 Borut Razem <borut.razem AT siol.net>
6206
6207         * support/regression/ports/pic16/support.c: increase stack size
6208           to 255 bytes
6209         * support/regression/Makefile.in: sort tests by name so that the
6210           resutlts can be compared on different machines / platforms
6211
6212 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
6213
6214         * device/lib/printf_large.c (output_digit): optimized further, Tnx Frieder
6215         * src/ds390/gen.c (emitLabel): new, added,
6216           (genDjnz): fixed stack overflow bug,
6217           (throughout): cosmetic changes to sync with mcs51/gen.c,
6218           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl)
6219         * src/mcs51/gen.c (genEndFunction): small optimization,
6220           (throughout): cosmetic changes to sync with ds390/gen.c
6221
6222 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
6223
6224         * device/lib/printf_large.c (output_digit, calculate_digit): optimized,
6225           (_print_format): fixed printing pointers
6226         * src/mcs51/gen.c (emitLabel, movb): new, added,
6227           (genAssign): small optimization,
6228           (genDjnz): fixed stack overflow bug,
6229           (throughout): replaced sprintf with SNPRINTF,
6230           replaced mcs51_regWithIdx with REG_WITH_INDEX,
6231           replaced emitcode("mov", "b,...") with MOVB(...),
6232           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl),
6233           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
6234         * src/mcs51/peeph.def: added rules 140 and 264
6235         * src/SDCCmem.c (allocLocal): store register declared locals in DSEG/OSEG
6236           so they may get optimized into registers
6237
6238 2006-05-30 Maarten Brock <sourceforge.brock AT dse.nl>
6239
6240         * src/SDCCmain.c (optionsTable, parseCmdLine): handle --use-stdout
6241           immediately when encountered,
6242           (printUsage): always use stderr even on windows
6243
6244 2006-05-30 Bernhard Held <bernhard AT bernhardheld.de>
6245
6246         * src/SDCCast.c (isLoopCountable): fixed bug #1478316
6247         (processParms): fixed bug #1247551
6248         * src/SDCCmain.c (printVersionInfo, printOptions, printUsage,
6249         parseCmdLine, main): print '--version' to stdout,
6250         print 'help' to stdout if --help is given,
6251         print 'help' to stderr and exit with EXIT_FAILURE if no or bad
6252         arguments are given; fixed --help
6253
6254 2006-05-27 Bernhard Held <bernhard AT bernhardheld.de>
6255
6256         * src/SDCCcse.c (findPointerSet): fixed bug #1493710
6257         * support/regression/tests/bug-1493710.c: added
6258
6259 2006-05-27 Borut Razem <borut.razem AT siol.net>
6260
6261         * support/regression/fwk/lib/testfwk.c: define array in _printn() as
6262           static instead auto
6263         * support/regression/ports/pic16/support.c: increase stack size
6264           from default 64 bytes to 128 bytes
6265         * support/regression/tests/staticinit.c,
6266           support/regression/tests/float.c: regression tests fully enabled
6267           for pic16 port by putting the initialized data arrays into the code
6268           section
6269         * support/regression/ports/pic16/spec.mk: don't link default libraries.
6270           This was changed by mistake in the previous version.
6271
6272 2006-05-28 Vangelis Rokas <vrokas AT users.sourceforge.net>
6273
6274         * src/pic16/gen.c (genFunction, genEndFunction): some
6275         beautifications, fixed bug with falsely restoring FSR2 in large
6276         stack model, thanks to Beau E. Cox for reporting the bug
6277
6278 2006-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
6279
6280         * debugger/mcs51/break.c,
6281         * debugger/mcs51/cmd.c (throughout): removed unused variables and labels,
6282           use %p to print pointers, made address variables unsigned
6283         * debugger/mcs51/cmd.c (infoSymbols): added missing parameter to printf
6284         * debugger/mcs51/symtab.c (parseSymbol): must return something
6285         * src/mcs51/gen.c (aopForSym): small optimization,
6286            moved declarations mcs51_ptrRegReq and mcs51_nRegs to ralloc.h,
6287           (freeAsmop): added missing break,
6288           (aopPut): removed parameter bvolatile, determine it inside the function,
6289           (saveRegisters, unsaveRegisters): small optimization,
6290           (genIpush): removed pointless check,
6291           (throughout): replaced Safe_calloc, strcpy with Safe_strdup,
6292           replaced sprintf with SNPRINTF,
6293           replaced strcpy with strncpyz,
6294           updated aopPut calls,
6295           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
6296         * src/mcs51/ralloc.h:  added declarations mcs51_ptrRegReq and mcs51_nRegs
6297
6298 2006-05-24 Borut Razem <borut.razem AT siol.net>
6299
6300         * support/regression/tests/bug-221100.c: fixed xdata problem caused by
6301           modification of test for the pic16 port, put the array to the code
6302           memory for pic16port; thanks to Maarten Brock and Frieder Ferlemann
6303
6304 2006-05-23 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
6305
6306         * src/pic/gen.c: MSC 6 does not have <stdint.h>.  Use pstdint.h instead.
6307         * support/Util/pstdint.h: added
6308
6309 2006-05-22 Borut Razem <borut.razem AT siol.net>
6310
6311         * src/regression/Makefile: removed bool2.c test, added -q linker option
6312         * src/regression/add2.c, src/regression/add3.c, src/regression/bool1.c,
6313           src/regression/bool3.c, src/regression/nestfor.c, src/regression/ptrfunc.c,
6314           src/regression/compare.c, src/regression/or1.c, src/regression/compare2.c,
6315           src/regression/while.c, src/regression/compare3.c, src/regression/compare4.c,
6316           src/regression/compare5.c, src/regression/sub2.c, src/regression/rotate1.c,
6317           src/regression/rotate2.c, src/regression/rotate3.c, src/regression/rotate4.c,
6318           src/regression/switch1.c, src/regression/rotate5.c, src/regression/for.c,
6319           src/regression/add.c, src/regression/sub.c, src/regression/call1.c:
6320           define SUPPORT_BIT_TYPES 0, removed unused bit variables
6321
6322 2006-05-22 Raphael Neider <rneider AT web.de>
6323
6324         * src/pic16/gen.c (pic16_storeForReturn): fragile fix for
6325           bug #1492360 (problematic due to generic pointers, see code)
6326
6327 2006-05-22 Borut Razem <borut.razem AT siol.net>
6328
6329         * support/regression/ports/pic16/specs.mk: removed stack size linker
6330           directive
6331         * support/regression/tests/array.c,
6332           support/regression/tests/bitopcse.c,
6333           support/regression/tests/bug-908454.c,
6334           support/regression/tests/malloc.c: modified for pic16 regression test
6335         * support/regression/tests/bitfields.c:
6336           pic16 - excluded bitfileds of size > 8
6337         * support/regression/tests/bp.c: pic16 - reduced data size
6338         * support/regression/tests/bug-221100.c: pic16 - reduced data size
6339         * support/regression/tests/bug-460010.c:
6340           pic16 - used the absolute address the fits in memory
6341         * support/regression/tests/bug-716242.c:
6342           bug [ 1443651 ] pic 16: redefining symbol that cannot be redefined.
6343         * support/regression/tests/float.c:
6344           pic16 - excluded - data size too big
6345         * support/regression/tests/onebyte.c:
6346           pic16 - bug [ 1444425 ] onebyte.c regression tes fails on pic16
6347         * support/regression/tests/shifts.c:
6348           pic16 - function names probably have to differ in first X characters
6349           (gpasm limitation?)
6350         * support/regression/tests/staticinit.c:
6351           pic16 - excluded some tests due error: no target memory available for
6352           section ".idata"
6353
6354 2006-05-22 Borut Razem <borut.razem AT siol.net>
6355
6356         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
6357           second try. Thanks Stas Sergeev once more.
6358
6359 2006-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
6360
6361         * src/hc08/gen.c (transferAopAop): aop forced to stack was not restored,
6362           (genLeftShift, genRightShift): fixed bug 1491627
6363         * src/hc08/peeph.def (rules 7, 8.x): added
6364         * support/regression/tests/shifts.c (ShiftLeftByParam,
6365           ShiftRightByParam, testShiftByParam): added to test variable shifting
6366
6367 2006-05-20 Raphael Neider <rneider AT web.de>
6368
6369         * src/pic/gen.c (bitpatternFromVal): fixed for 64-bit machines
6370         * src/pic16/ralloc.c (newReg): use correct name in hashtable,
6371           (allocReg): add only new registers to dynAllocRegs,
6372           (pic16_assignRegisters): do not reset dynrIdx, fixes bugs
6373             #1489055, #1445850, and probably #1483693
6374
6375 2006-05-19 Vangelis Rokas <vrokas AT users.sourceforge.net>
6376
6377         * src/pic16/glue.c (pic16_emitConfigRegs, pic16_emitIDRegs): fixed
6378         bug in for-loop that didn't emit the last of CONFIG and ID registers
6379
6380 2006-05-18 Maarten Brock <sourceforge.brock AT dse.nl>
6381
6382         * src/mcs51/gen.c (genCodePointerGet): inc dptr instead of loading acc
6383           with offset
6384         * src/mcs51/peeph.def (186.x): updated and reenabled to fix bugs
6385           1489016, 1434401 and 1490124
6386         * src/ds390/peeph.def (186.x, 227.x): updated and reenabled to fix bugs
6387           1489016, 1434401 and 1490124
6388
6389 2006-05-17 Borut Razem <borut.razem AT siol.net>
6390
6391         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
6392           thanks Stas Sergeev
6393
6394 2006-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
6395
6396         * device/include/mcs51/P89c51RD2.h,
6397         * device/include/mcs51/P89LPC901.h,
6398         * device/include/mcs51/P89LPC922.h,
6399         * device/include/mcs51/P89LPC932.h: added, thanks Omar Espinosa
6400
6401 2006-05-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
6402
6403         * device/lib/pic16/libsdcc/stack/{stack.S, Makefile.in}: add workaround
6404         to fix missing stack pragma in compiled binary object file,
6405
6406 2006-05-14 Bernhard Held <bernhard AT bernhardheld.de>
6407
6408         * support/packihx/configure.in,
6409         * support/packihx/configure: removed warning, autoconf >= 2.5x can
6410         determine sizeof basic types even while cross compiling
6411
6412 2006-05-13 Bernhard Held <bernhard AT bernhardheld.de>
6413
6414         * src/avr/gen.c (aopop),
6415         * src/ds390/gen.c (aopOp),
6416         * src/hc08/gen.c (aopOp),
6417         * src/mcs51/gen.c (aopop),
6418         * src/pic16/gen.c (pic16_aopOp),
6419         * src/pic/gen.c (aopOp),
6420         * src/z80/gen.c (aopop): fix for bug #1479882; use new, exclusive asmop
6421         if size of operand is smaller than spill location
6422
6423 2006-05-12 Borut Razem <borut.razem AT siol.net>
6424
6425         * *.dsw, *.dsp: changed property svn:eol-style to CRLF since they
6426           have to have CR/LF line endings even if they are checked out on *nix
6427           or on WIN32 in cygwin binmode
6428
6429 2006-05-12 Maarten Brock <sourceforge.brock AT dse.nl>
6430
6431         * doc/sdccman.lyx: documented numeric ranges, WEBDOC #1442369
6432         * device/include/ds80c390.h: added sfr16 definitions
6433         * src/ds390/gen.c,
6434         * src/ds390/gen.h,
6435         * src/ds390/main.c,
6436         * src/ds390/ralloc.c,
6437         * src/ds390/ralloc.h: changes all over the place to sync with mcs51
6438           fixing several bugs and adding sfr16/sfr32, reentrant bit params,
6439           bit returning functions
6440         * support/regression/tests/sfr16.c: enabled test on ds390
6441
6442 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6443
6444         * src/hc08/gen.c (asmopToBool, genIfx): fix for bug #1429722
6445         * src/hc08/gen.c (storeRegToAop): fix for bug #1439894
6446
6447 2006-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
6448
6449         * sim/ucsim/sim.src/memcl.h: added get_decoder() to cl_address_space
6450         * sim/ucsim/sim.src/mem.cc: implemented cl_address_space::get_decoder,
6451           (cl_address_space constructor): removed expensive initialization,
6452           (cl_address_space::get_cell): extended for late initialization,
6453           (cl_address_space::*): use late initialization,
6454           (cl_address_decoder::activate): removed expensive initialization,
6455           This reduced regression test running time by 25%
6456
6457 2006-05-11 Bernhard Held <bernhard AT bernhardheld.de>
6458
6459         * packihx/,
6460         * configure.in,
6461         * configure,
6462         * sdcc.dsw,
6463         * Makefile.bcc,
6464         * Makefile.in,
6465         * support/packihx/Makefile.in,
6466         * support/packihx/clean.mk,
6467         * support/packihx/Makefile.bcc,
6468         * support/packihx/PackIhx.dsp: moved packihx to support/packihx
6469
6470 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6471
6472         * src/SDCCval.c (valNot): fix for regression test failure
6473           of not.c on big endian hosts
6474
6475 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
6476
6477         * device/inlcude/mcs51/msc1210.h: new, added, thanks Philippe Latu
6478
6479 2006-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6480
6481         * device/lib/mcs51/Makefile.in: changed string comparison operator
6482           to = for POSIX compliance; == is bash extension
6483
6484 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
6485
6486         * device/lib/hc08/_mulint.c: applied patch 1485428, thanks
6487           kosmonaut_pirx
6488
6489 2006-05-09 Vangelis Rokas <vrokas AT users.sourceforge.net>
6490
6491         * src/pic16/gen.c (pic16_freeAsmop): release any temp registers
6492         allocated by aopForSym thus fixing bug #1478657 about failed testfwk.c
6493         * src/pic16/main.c (_pic16_keywords): added 'sfr16' keyword,
6494         * src/pic16/ralloc.c (pic16_allocWithIdx): also a fix for bug exposed by
6495         bug report #1478657,
6496
6497 2006-05-05 Borut Razem <borut.razem AT siol.net>
6498
6499         * doc/Makefile.in: remove of WARNINGS and labels.pl immediately after
6500           making the html
6501
6502 2006-05-02 Borut Razem <borut.razem AT siol.net>
6503
6504         * doc/Makefile.in: removed *.ind dependency since there is no rule to
6505           create *.ind, which made make to fail if invoked with -j 2
6506
6507 2006-05-01 Maarten Brock <sourceforge.brock AT dse.nl>
6508
6509         * src/SDCCglue.c (emitRegularMap): partial fix for bug 1477149, thanks
6510           Hubert Sack for patch 1479782
6511
6512 2006-05-01 Vangelis Rokas <vrokas AT users.sourceforge.net>
6513
6514         * src/pic16/glue.c (pic16_printIvalStruct): fixed bug #1445929
6515
6516 2006-05-01 Raphael Neider <rneider AT web.de>
6517
6518         * src/pic/device.c (sanitise_processor_name): only remove p(ic) prefix,
6519           (create_pic): store only prefix-free device name,
6520           (init_pic): check for device names with "16" prefix,
6521           (list_valid_pics),
6522         * src/pic/device.h (struct PIC_device),
6523         * src/pic/main.c (_pic14_genAssemblerPreamble): adapted to single
6524             stored device name,
6525         * device/include/pic/pic12f{635,675,629,683}.h,
6526         * device/lib/pic/libdev/pic12f{635,675,629,683}.c: NEW device libraries
6527         * device/lib/pic/libdev/Makefile.in: allow pic12* devices,
6528         * device/include/pic/pic16f505.h,
6529         * device/lib/pic/libdev/pic16f505.c: removed
6530         * device/include/pic/pic14devices.txt: added support for pic12f
6531             devices, removed unsupported non 16-bit devices
6532             [above changes provided by patch from Zik Saleeba]
6533         * src/pic/*, src/pic16/*, device/include/pic16/*,
6534           device/lib/pic/**, device/lib/pic16/**: obfuscated email address
6535
6536 2006-05-01 Borut Razem <borut.razem AT siol.net>
6537
6538         * configure.in, configure, doc/Makefile.in:
6539           sync with nightly build makefile - latex, dvipdf and dvips
6540           not needed any more
6541
6542 2006-04-30 Bernhard Held <bernhard AT bernhardheld.de>
6543
6544         * support/scripts/sdcc.nsi: removed all Readmes and Makefiles
6545         in the library source
6546
6547 2006-04-30 Maarten Brock <sourceforge.brock AT dse.nl>
6548
6549         * support/regression/ports/hc08/spec.mk: fixed bug 1478892
6550
6551 2006-04-28 Raphael Neider <rneider AT web.de>
6552
6553         * src/pic16/pcode.c (pic16_newpCodeOpLit12),
6554         * src/pic16/gen.c (pic16_popGetLit12): NEW, create 12 bit literal,
6555           (pic16_loadFSR0): handle 12 bit literals correctly, fixes #1440527
6556         * src/pic16/pcode.h: added prototype for pic16_newpCodeOpLit12()
6557
6558 2006-04-28 Bernhard Held <bernhard AT bernhardheld.de>
6559
6560         * device/lib/pic/libdev/Makefile.in,
6561         * device/lib/hc08/Makefile.in,
6562         * device/lib/gbz80/Makefile.in,
6563         * device/lib/z80/Makefile.in,
6564         * device/lib/ds390/Makefile.in,
6565         * device/lib/ds400/Makefile.in: added srcdir to include search path,
6566         thanks to Borut for the bug report
6567         * configure.in,
6568         * configure: always create doc/Makefile independent from --enable-doc
6569         * Makefile.in: always install from directory doc independent from
6570         --enable-doc
6571         * device/lib/pic/Makefile.in: added libdev again, it was erroneously
6572         removed
6573         * device/lib/pic/libdev/Makefile.in: fixed VPATH build
6574         * doc/Makefile.in: install *.txt if present
6575         * device/include/Makefile.in (install): added installation of pic/*.inc
6576         and pic/*.txt files again, they were erroneously removed
6577
6578 2006-04-28 Raphael Neider <rneider AT web.de>
6579
6580         * src/pic/{gen.c,main.h,pcode.c},
6581         * src/pic16/{gen.c,pcode.c}: quietened compiler warnings
6582             concerning signedness with casts
6583
6584 2006-04-28 Raphael Neider <rneider AT web.de>
6585
6586         * src/pic/gen.c (genFunction): set global pic14_hasInterrupt on
6587             definition of an interrupt handler,
6588         * src/pic/glue.c (pic14_emitInterruptHandler): moved output of
6589             interrupt handler stuff from picglue() to separate routine,
6590           (picglue): enabled definition of intr handlers in files w/o main()
6591
6592 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
6593
6594         * support/librarian/sdcclib.c: moved include <limits.h> up to enable
6595           compilation with MSVC 2005 Express Edition (VC8)
6596
6597 2006-04-26 Bernhard Held <bernhard AT bernhardheld.de>
6598
6599         * device/lib/Makefile: fixed build of gbz80 lib
6600
6601 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
6602
6603         * support/regression/tests/bug-460010.c,
6604         * support/regression/tests/bug-524691.c,
6605         * support/regression/tests/bug-716242.c: removed conditional defines
6606           that are already in testfwk.h
6607
6608 2006-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
6609
6610         * src/ds390/gen.c (AccAXRrl1, AccAXLrl1): changed to real rotate by 1,
6611           (AccAXRsh1): added, shift right by 1,
6612           (AccAXLsh, AccAXRsh, AccAXRshS): updated for AccAXRrl1, AccAXRsh1 and
6613            AccAXLrl1
6614         * support/regression/tests/rotate.c: use <stdint.h> and enabled ds390
6615
6616 2006-04-25 Bernhard Held <bernhard AT bernhardheld.de>
6617
6618         * src/SDCCast.c (decorateType): partial fix for RFE 1475769,
6619         remove cast to same type
6620         * src/SDCCast.c (decorateType): fix for RFE 1475742,
6621         optimize 'ifx (op == 0)' resp. 'ifx (op != 0)'
6622         * as/z80/Makefile,
6623         * link/z80/Makefile: removed, they have moved to
6624         Makefile.in files
6625         * configure,
6626         * configure.in: replaced duplicate message about ucsim by missing sdcpp
6627         * install-sh: fix bug #1204398 by setting umask 0022
6628         * device/lib/Makefile: separate build of z80 and gbz80 lib
6629
6630 2006-04-24 Bernhard Held <bernhard AT bernhardheld.de>
6631
6632         Enabled VPATH feature: changed nearly all Makefiles (149 files).
6633         See sdccman.lyx '2.4.10 VPATH feature' about how to use it.
6634
6635         One basic decision: e.g. src/clean.mk includes further files. In order
6636         to make this work there are two solutions:
6637         - rename another dozen clean.mk to clean_in.mk, add srcdir to them and
6638           run configure on them. This way they can use
6639           'include $(srcdir)/port-clean.mk'
6640         - always include clean.mk by the Makefile at the same level. To avoid
6641           that `make clean` tries to include and build Makefile.dep the
6642           MAKECMDGOALS are examined (see e.g. src/Makefile.in). This has been
6643           implemented, because now even `make uninstall` doesn't create
6644           Makefile.in. clean.mk could be eliminated by pasting it in
6645           Makefile.in.
6646
6647         * debugger/mcs51/Makefile.in: build own objects from library sources
6648         (SLIB, SDCC) in current directory
6649
6650         * configure, configure.in: renamed --disable-device-lib-build in
6651         --disable-device-lib; added --enable-doc, the required tools are
6652         searched by configure; added result message; the toolchain for the
6653         belonging ports are now only built, if the port is enabled.
6654
6655         * support/regression/*: all output is written in directory gen, because
6656         the fwk and ports directories don't livet in the build tree using vpath
6657
6658         * doc/sdccman.lyx: renamed --disable-device-lib-build to
6659         --disable-device-lib, added --enable-doc, added section VPATH
6660
6661         * sim/ucsim/configure.in,
6662         * sim/ucsim/configure.in: hc08 couldn't be disabled, now hc08 and
6663         z80 are enabled by default
6664
6665 2006-04-24 Raphael Neider <rneider AT web.de>
6666
6667         * src/pic/device.c (pic14_assignConfigWordValue): remember assignments
6668             to config word, "pic14_"-prefixed some extern functions
6669           (pic14_emitConfigWord): emit __config directive(s) if assignment to
6670             config word has been found
6671         * src/pic/device.h: added prototypes
6672         * src/pic/pcode.c: added "pic14_"-prefix where needed
6673         * src/pic/ralloc.c (IS_CONFIG_ADDRESS,pic14_assignRegisters): cosmetic
6674             fixup
6675         * src/pic/glue.c (pic14_constructAbsMap): handle assignments to config
6676             words,
6677           (pic14emitRegularMap): ignore config words,
6678           (pic14createInterruptVect): moved generating __config directives away
6679           (picglue): have __config directives emitted
6680
6681 2006-04-24 Borut Razem <borut.razem AT siol.net>
6682
6683         * doc/Makefile: sync with nightly build makefile
6684
6685 2006-04-24 Raphael Neider <rneider AT web.de>
6686
6687         * src/pic/pcoderegs.c (OptimizeRegUsage): do not optimize
6688             registers that have not been assigned proper liveranges,
6689             fixes #1469504 and #1474602,
6690           (pCodeRegOptimizeRegUsage): fixed typo in comment
6691
6692 2006-04-24 Borut Razem <borut.razem AT siol.net>
6693
6694         * device/examples/main8051.c: deleted - it was removed from CVS
6695           24.mar.2000 and after that modified 18.feb.2001, so it reappered
6696           after the transition to Subversion
6697         * src/SDCCalloc.h: deleted - it was removed  from CVS
6698           3.feb.2001 and after that modified 18.feb.2001, so it reappered
6699           after the transition to Subversion
6700         * sim/ucsim/cpu.gif, sim/ucsim/interrupt.gif, sim/ucsim/new.gif,
6701           sim/ucsim/serial1.gif, sim/ucsim/serial2.gif,
6702           sim/ucsim/term_cpuopt.gif, sim/ucsim/timers.gif, sim/ucsim/wins.gif,
6703           sim/ucsim/post.jpg, sim/ucsim/UCsim.jpg: corrected
6704
6705 2006-04-22 Maarten Brock <sourceforge.brock AT dse.nl>
6706
6707         * as/asx8051.dsp: added mcs51/strcmpi.h
6708         * as/hc08/as_hc08.dsp: added asm.h, m6808.h, strcmpi.h
6709         * as/hc08/aslink.h: updated lnksect prototype
6710         * as/hc08/asm.h,
6711         * as/mcs51/asm.h: added a_addr to struct area and s_org to struct sym
6712         * as/hc08/asmain.c,
6713         * as/mcs51/asmain.c (asmbl): init dot.s_org for S_ORG,
6714           (newdot): handle A_ABS
6715         * as/hc08/asout.c,
6716         * as/mcs51/asout.c (outarea): output address
6717         * as/hc08/lkaomf51.c,
6718         * as/mcs51/lkaomf51.c: disabled unused array UsageType
6719         * as/hc08/m08pst.c,
6720         * as/mcs51/i51pst.c,
6721         * as/z80/z80pst.c: "ABS" is not A_OVR
6722         * as/hc08/lkarea.c (newarea): read a_addr,
6723           (lnkarea): added codemap array, sort absolute areas to the front,
6724            combine all GSINITx/GSFINAL,
6725           (find_empty_space, allocate_space): new functions,
6726           (lnksect): return next address, handle absolute sections
6727         * as/mcs51/lkarea.c (newarea): read a_addr,
6728           lnksect2 prototype changed,
6729           (lnkarea2): define codemap unsigned, combine all GSINITx/GSFINAL,
6730           (find_empty_space, allocate_space): new, factored out of lnksect2,
6731           (lnksect2): return next address, handle absolute sections
6732         * as/hc08/lkhead.c,
6733         * as/mcs51/lkhead.c (newhead): head is absolute but not overlay
6734         * as/hc08/lklibr.c (addfile, fndsym),
6735         * as/mcs51/lklibr.c (addfile, buildlibraryindex, fndsym): prevent
6736           index out of range and detect both '\' and '/'
6737         * device/include/mcs51/c8051f200.h: added _XPAGE, removed bad comment
6738         * device/include/stdbool.h: removed SDCC_ds390 from check to pass
6739           regression tests (ds390 cannot return bool yet)
6740         * doc/sdccman.lyx: changed version number, document changed --no-peep,
6741           document critical interrupts on z80, document changed SDCC define
6742         * src/asm.c (_asxxxx_mapping): fixed .org directive,
6743           (_a390_mapping): added .org directive
6744         * src/hc08/gen.c (transferAopAop): made bytemask log to fix warning,
6745           (genMultOneByte): fixed warnings
6746         * src/hc08/hc08.dsp: lowered warning level to 2 to suppress pedantic
6747           ones
6748         * src/pic16/device.c: removed newReg prototype, removed BYTE_IN_LONG
6749         * src/pic16/gen.c (pic16_popGetLabel): made parameter key signed,
6750           (pic16_genLeftShiftLiteral, genRightShiftLiteral): fixed warnings
6751         * src/pic16/gen.h: changed prototype for pic16_popGetLabel
6752         * src/pic16/main.c: removed newReg prototype
6753         * src/pic16/pcode.c,
6754         * src/pic16/pcode.h (pic16_emitDB): changed parameter c to int to fix
6755           warnings
6756         * src/pic16/pic16.dsp: lowered warning level to 2 to suppress pedantic
6757           ones
6758         * src/pic16/ralloc.c
6759         * src/pic16/ralloc.h (newReg): changed type to int and size to unsigned
6760           to fix warnings
6761         * src/pic/pcode.c (allocInternalRegister): changed parameter optype
6762           from short to PIC_OPTYPE
6763         * src/pic/pic.dsp: lowered warning level to 2 to suppress pedantic ones
6764         * src/pic/ralloc.c (newReg, allocInternalRegister): changed parameter
6765           optype from short to PIC_OPTYPE
6766         * src/port.h: made int_size unsigned to fix warnings
6767         * src/SDCC.y: fixed warning on MSVC
6768         * src/SDCCicode.c (getArraySizePtr): return unsigned int
6769         * src/SDCCopt.c (convertToFcall): fixed warnings
6770         * src/SDCCsymt.h: removed double prototype for genSymName
6771         * src/xa51/ralloc.c (allocReg): made size unsigned int, type int and
6772           offset int to fix warnings
6773
6774 2006-04-22 Borut Razem <borut.razem AT siol.net>
6775
6776         * doc/sdccman.lyx, */Makefile, */Makefile.in:
6777           references to CVS replaced with Subversion
6778
6779 2006-04-21 Borut Razem <borut.razem AT siol.net>
6780
6781         * doc/sdccman.lyx, */Makefile, */Makefile.in:
6782           references to CVS replaced with Subversion
6783
6784 2006-04-19 Borut Razem <borut.razem AT siol.net>
6785
6786         * src/version.awk: adapted for svn
6787         * /asxxxx/asxhtml/*.gif: set property svn:mime-type to image/gif
6788           sim/ucsim/doc/*.gif: set property svn:mime-type to image/gif
6789           sim/ucsim/doc/*.jpg: set property svn:mime-type to image/jpeg
6790           /binutils-avr/etc/*.vi, *.jin: removed all properties
6791           support/scripts/sdcc.ico: set property svn:mime-type to image/x-icon
6792
6793 2006-04-19 Borut Razem <borut.razem AT siol.net>
6794
6795         * CVS to Subversion migration completed
6796
6797 2006-04-18 Borut Razem <borut.razem AT siol.net>
6798
6799         * support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}/lib/pic/*.o,
6800           ${DEV_ROOT}/lib/src/pic/libdev/*.S, ${DEV_ROOT}/lib/src/pic/libdev/*.inc
6801
6802 2006-04-17 Borut Razem <borut.razem AT siol.net>
6803
6804         * device/include/Makefile.in: added pic/*.inc to the installation
6805
6806 2006-04-15 Bernhard Held <bernhard AT bernhardheld.de>
6807
6808         * support/regression/collate-results.py: fixed output in case of
6809         a valdiag error
6810         * support/regression/generate-cases.py: fixed splitting of pathnames
6811         with dots
6812         * as/hc08/lklibr.c (addfile),
6813         * as/mcs51/lklibr.c (addfile): fixed off-by-one bug
6814
6815 2006-04-11 Raphael Neider <rneider AT web.de>
6816
6817         * src/pic16/gen.c (getFreePtr, pic16_popRegFromString),
6818         * src/pic16/ralloc.c (pic16_allocregWithName): removed debug output
6819         * src/pic16/pcode.c (assignValnums): fixed #1460578
6820
6821 2006-04-11 Raphael Neider <rneider AT web.de>
6822
6823         * device/lib/pic/libdev/*.c,
6824         * device/include/pic/*.h: replaced sfr and data with __sfr and __data,
6825           fixes #1468739, enables compilation in --std-c99 mode
6826         * support/scripts/inc2h.pl: emit __sfr/__data instead of sfr/data
6827
6828 2006-04-11 Raphael Neider <rneider AT web.de>
6829
6830         * src/pic/device.c (find_device): removed debug output
6831           (list_valid_pics): enabled verbose listing of supported devices
6832         * device/include/stdbool.h: define bool as char for pic14/16 as well
6833
6834 2006-04-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6835
6836         * src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)"
6837
6838 2006-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
6839
6840         * .version: bumped version to 2.5.6
6841         * src/pic/ralloc.c (newReg): MSVC doesn't support __builtin_return_address
6842
6843 2006-04-06 Raphael Neider <rneider AT web.de>
6844
6845         * .version: bumped version to 2.5.6 (pic14 ABI changed)
6846         * src/SDCCmain.c: add -DSDCC_PROCESSOR=<id> for pic14 port
6847         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap,
6848           pic14emitRegularMap,pic14emitMaps): moved output for absolute symbols to
6849             pic14_constructAbsMap
6850           (pic14printPublics): declare absolute global symbols as global
6851           (pic14createInterruptVect),
6852         * src/pic/ralloc.c (IS_CONFIG_ADDRESS): support second config word,
6853           (newReg): assume new registers unused, use correct name in
6854             hashtable (reg->name instead of name), more debugLog output
6855         * src/pic/device.h (PIC_device): added fields for verbose output
6856         * src/pic/device.c: moved device definition to pic14devices.txt,
6857             added routines for runtime parsing of pic14devices.txt,
6858             added support for second config word
6859         * src/pic/main.c (_process_pragma): removed #pragma maxram,
6860           (_pic14_keywords): no longer accept "bit" and "sbit" keywords
6861           (_pic14_initPaths): add search paths with "pic" suffix (not "pic14")
6862           (_pic14_parseOptions): moved pCodeInitRegisters here
6863           (_pic14_do_link): add "pic$(ARCH).lib" to linker arguments
6864         * src/pic/pcode.c (AnalyzeBanking): bail out on unset processor,
6865           (pCodeInitRegisters): rewrapped comments, perpared new approach to
6866             handling the pseudo stack
6867         * device/lib/Makefile.in: ignore failures in objects-pic16,
6868         * device/lib/pic/{configure,configure.in,Makefile}: added libdev/
6869         * device/lib/pic/NEWS: document new dependency on picXXX.lib
6870         * device/lib/pic/Makefile.subdir,
6871         * device/lib/pic16/Makefile.subdir: improved clean rules
6872         * device/lib/pic/libdev/: NEW, pic14 device libraries
6873         * device/lib/pic/libsdcc/_gptr{get,put}{1,2,3,4}.S: use _X not X
6874         * device/lib/pic/libsdcc/macros.inc: use _X not X, declare default SFRs
6875         * device/include/Makefile.in: create subdir and install pic14 headers
6876         * device/include/pic/p16f_common.inc: removed unused declarations
6877         * device/include/pic/pic16*.h: added header files for 100+ 14 bit
6878             PICs from inc2h.pl v1.6,
6879             replaced BIT_AT macros with struct declarations
6880         * device/include/pic/pic14devices.txt: definition of supported devices,
6881             all above improvements contributed by Zik Saleeba, thanks
6882         * support/scripts/inc2h.pl: removed BIT_AT, replaced with structs
6883         * support/scripts/sdcc.nsi: also install pic14 device libraries and
6884             headers
6885
6886 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
6887
6888         * device/include/mcs51/c8051f410.h: added interrupt numbers,
6889         * device/include/mcs51/c8051f200.h: old SiLabs mcu completes the list,
6890           thanks to Charles Olds
6891
6892 2006-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6893
6894         * debugger/mcs51/cmd.c (infoRegisters): show return address on stack
6895
6896 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
6897
6898         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug 1464657
6899         * src/mcs51/gen.c (genJumpTab): fixed bug in medium model
6900         * support/regression/bug1464657.c: added, new test
6901
6902 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
6903
6904         * src/SDCCmain.c (preProcess): implemented RFE 1449908, define SDCC as the
6905           version number
6906
6907 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
6908
6909         * src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
6910           --no-peep and --peep-file <file> are used don't use default rules but
6911           do use the <file>
6912
6913 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
6914
6915         * src/mcs51/gen.c (genCall): fixed bug 1457608
6916
6917 2006-03-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6918
6919         * doc/sdccman.lyx: reverted to version 1.129 of december as my latest
6920         changes seem to cause (trigger?) problems with the build system.
6921
6922 2006-03-29 Maarten Brock <sourceforge.brock AT dse.nl>
6923
6924         * src/SDCCpeeph.c (operandsLiteral): new, added,
6925           (callFuncByName): inserted operandsLiteral
6926         * src/mcs51/peeph.def: reenabled 132.e, added extra check to 132.x
6927
6928 2006-03-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6929
6930         * doc/sdccman.lyx: added paragraph "Use of SDCC in Education"
6931         * src/mcs51/peeph.def: disabled rule 132.e fixing bug #1453093
6932
6933 2006-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
6934
6935         * src/z80/gen.c (genFunction, genEndFunction): fixed bug 1160666,
6936           implemented patch 1120823 Thanks to Willy De la Court (normal
6937           interrupts need an interrupt number now if they are made critical),
6938           and enabled nesting of critical functions though not for gbz80
6939           (genCritical, genEndCritical): added functions
6940           (genZ80Code): added cases for CRITICAL and ENDCRITICAL
6941         * src/z80/mappings.i: added "ei" to all mappings
6942
6943 2006-03-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6944
6945         * sim/ucsim/cmd.src/newcmdcl.h: applied patch fixing GCC 4.1 build
6946         submitted by the Debian SDCC maintainer Aurelien Jarno:
6947         "Credits goes to Martin Michlmayr, who rebuilt the whole Debian
6948         archive with gcc 4.1 on mips and wrote the patch"
6949
6950 2006-03-16 Raphael Neider <rneider AT web.de>
6951
6952         * src/pic16/genarith.c (genAddLit): simplified and fixed case where
6953           the left operand is shorter than the result (c* = lit-c* + int),
6954           fixes bug #1450796
6955         * src/pic16/gen.c (genRightShift): check IS_SYMOP before accessing
6956           OP_SYMBOL
6957
6958 2006-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
6959
6960         * src/.version: increased version number to 2.5.5
6961         * src/SDCCmain.c (linkEdit): do not test for PIC16 target since, PIC16
6962         linking is done manually in pic16 port's _linkEdit,
6963         * src/SDCCsymt.c (compStructSize): for target PIC16 and shell variable
6964         PIC16_PACKED_BITFIELDS, compact bitfield structures as much as possible,
6965         * src/pic16/gen.c (aopForSym): when direct register name is WREG then
6966         allocate asmop as AOP_ACC,
6967         (aopForRemat): added parameter 'bool result' in function declaration,
6968         (pic16_aopGet): return AOP_ACC when accessing WREG,
6969         (pic16_popGetTempReg): minor modification,
6970         (pic16_popRegFromIdx): first try with 'pic16_regWithIdx' then with
6971         'pic16_allocWithIdx',
6972         (genPcall): removed ftype, usage of OP_SYM_TYPE asserted error when
6973         calling function in absolute addresses,
6974         (genAssign): take into account AOP_ACC asmop,
6975         * src/pic16/pcode.c (pic16_newpCodeOpReg): minor modifications,
6976         * src/pic16/pcoderegs.c: some debug functions and lines added,
6977         * src/pic16/ralloc.c (decodeRegType): added but commented out,
6978         * (pic16_typeRegWithIdx): search 'pic16_dynInternalRegs' for given
6979         register too,
6980         * (pic16_findFreeReg, pic16_findFreeRegNext): allocate new register via
6981         call to allocReg, not by manually allocating a new one,
6982         (pic16_assignRegisters): now before going through the register
6983         allocating functions mark all registers as free. This eliminates some
6984         side effects resulting from peephole parser done earlier in the backbone
6985
6986 2006-03-13 Maarten Brock <sourceforge.brock AT dse.nl>
6987
6988         * src/SDCCicode.c (geniCodeLogic),
6989         * src/SDCCast.c (decorateType): applied patch by Bernhard for rfe 1422617
6990
6991 2006-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
6992
6993         * src/mcs51/gen.c (sameReg): new, checks if two aop regs are the same,
6994           (genSend): bugfix, do not allocate and free twice,
6995           (shiftRLong): handle partially overlapping aops
6996         * support/regression/tests/bitopcse.c: fixed warning redefined idata
6997
6998 2006-03-08 Borut Razem <borut.razem AT siol.net>
6999
7000         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata
7001           for pic16
7002
7003 2006-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
7004
7005         * support/regression/tests/bug1409955.c: new, added
7006         * src/mcs51/gen.h: changed asmop.freed:1 to asmop.allocated for tracking
7007         * src/mcs51/gen.c (newAsmop): set asmop.allocated to 1,
7008           (aopForSym, aopOp): increment asmop.allocated if reused,
7009           (freeAsmop): decrement asmop.allocated and check for zero instead of
7010           using asmop.freed,
7011           (freeForBranchAsmop): use asmop.allocated instead of asmop.freed,
7012           (genNot, genCpl, genUminus, genMinus, genMult, genDiv, genMod, genCmpGt,
7013            genCmpLt, genAndOp, genOrOp, genAnd, genOr, genXor, genRRC, genRLC,
7014            genGetHbit, genGetAbit, genGetByte, genGetWord, genSwap,
7015            genLeftShiftLiteral, genLeftShift, genRightShiftLiteral,
7016            genSignedRightShift, genRightShift, genDataPointerGet,
7017            genPagedPointerGet, genFarPointerGet, genCodePointerGet,
7018            genGenPointerGet, genDataPointerSet, genAssign, genCast): free asmop's
7019             in reverse order from allocation,
7020           (genPlus, genCmpEq): free asmop's in reverse order from allocation and
7021             added swappedLR to keep track
7022         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata,
7023           pdata & code for GCC, z80, gbz80 & hc08
7024         * support/regression/tests/zeropad.c: moved defines to testfwk.h
7025
7026 2006-03-08 Raphael Neider <rneider AT web.de>
7027
7028         * src/pic16/main.c (_hasNativeMulFor): fixed bug #1444425
7029
7030 2006-03-07 Maarten Brock <sourceforge.brock AT dse.nl>
7031
7032         * device/include/mcs51/c8051f410.h: new SiLabs mcu
7033         * src/ds390/peeph.def: disabled 186.d and 227.a as fix for #1434401
7034         * support/regression/tests/array.c: added parenthesis, made arrays unsigned
7035
7036 2006-03-06 Borut Razem <borut.razem AT siol.net>
7037
7038         * support/regression/ports/pic16/spec.mk: link with libm18f.lib,
7039           made the linker quiet
7040
7041 2006-03-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
7042
7043         * src/pic16/gen.c (genPcall): fixed bug #1443644
7044         * src/pic16/device.h (struct pic16_options_t): added 'int CATregs' flag
7045         which dumps before the function entry point a data byte which represents
7046         the number of the local variables used by the specified function, added
7047         'xinst' for initial support for Extended Instruction Support,
7048         * src/pic16/gen.c (aopForSym, pic16_aopGet): beautifications,
7049         (pic16_testStackOverflow): do not prefix GSTACK_TEST_NAME with
7050         port->fun_prefix anymore (may change later),
7051         (genFunction, genEndFunction): do not store/restore local registers for
7052         _main (this should take care the --main-return command line option in
7053         the future),
7054         (genOr): removed some legacy pic-port instructions,
7055         * src/pic16/genarith.c (genAddLit): re-enabled old code because
7056         performing operations with SFR's causes data to be written more than
7057         once to each SFR. Perhaps SFRs should be handled in special cases...
7058         * src/pic16/glue.c: macros BIG_ENDIAN and BYTE_IN_LONG are moved to
7059         pcode.h
7060         * src/pic16/main.c (_process_pragma): stack bound checking did not take
7061         into account for stack starting position,
7062         (struct OPTIONS pic16_optionsTable): added command line argument
7063         --extended or -y for Extended Instruction Support,
7064         * src/pic16/ralloc.c (pic16_decodeOp): added case for FUNCTION,
7065         (deassignLRs): *** perhaps the most important change, old 'for' code
7066         (commented out for reference), didn't account for some registers which
7067         were left marked 'not free' after a pointer operation. The change
7068         reduces register usage a lot in some cases
7069
7070 2006-03-04 Borut Razem <borut.razem AT siol.net>
7071
7072         * support/regression/ports/hc08/spec.mk: remove *.asm in traget
7073           _clean
7074         * support/regression/tests/bug-524697.c: decreased array size for
7075           mcs51 to fit into the internal RAM
7076         * support/regression/Makefile.in: a little bit more verbose
7077
7078 2006-03-03 Borut Razem <borut.razem AT siol.net>
7079
7080         * support/regression/fwk/lib/testfwk.c,
7081           support/regression/fwk/include/testfwk.h: introduced function
7082           _prints(), nonrecursive _printn(), call _initEmu() from main()
7083         * support/regression/ports/gbz80/support.asm,
7084           support/regression/ports/ucz80/support.asm,
7085           support/regression/ports/z80/support.asm,
7086           support/regression/ports/ds390/support.c,
7087           support/regression/ports/hc08/support.c,
7088           support/regression/ports/host/support.c,
7089           support/regression/ports/mcs51/support.c,
7090           support/regression/ports/xa51/support.c: added empty _initEmu()
7091           function
7092         * support/regression/ports/pic16/gpsim.cmd,
7093           support/regression/ports/pic16/spec.mk,
7094           support/regression/ports/pic16/support.c,
7095           support/regression/Makefile.in: added pic16 regression test
7096
7097 2006-03-01 Raphael Neider <rneider AT web.de>
7098
7099         * src/pic16/gen.c (genPcall,pic16_derefPtr,genGenPointerGet,
7100           genConstPointerGet): use safe way of generating MOVFF to cover
7101             literals as well as registers, fixes bug #1440527
7102         * src/pic16/glue.c (pic16_printIvalBitFields): prevent NULL pointer
7103             dereference
7104           (pic16_printIvalUnion,pic16_isUnion): NEW, handle initialized unions
7105             more correctly, fixes bug #1232186
7106           (pic16_printIval): use pic16_printIvalUnion() for initialized unions
7107         * src/pic16/main.c (_pic16_linkEdit): reorder linker arguments to make
7108             gplink guess the correct processor in more cases, applied patch
7109             from Till Riedel attached to and fixing bug #1436552
7110
7111 2006-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7112
7113         * support/regression/tests/array.c: added, contains check for #1434401
7114         * src/mcs51/peeph.def: disabled 186.d as temporary fix for #1434401
7115
7116 2006-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
7117
7118         * device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
7119         * device/include/mcs51/at89S8252.h: fixed, thanks to Krzysztof Polomka
7120         * device/include/mcs51/c8051f326.h,
7121         * device/include/mcs51/c8051f340.h: new SiLabs mcu's
7122         * device/include/mcs51/c8051f000.h,
7123         * device/include/mcs51/c8051f018.h,
7124         * device/include/mcs51/c8051f020.h: used () with __at, renamed IDLE,STOP to
7125           PCON_IDLE,PCON_STOP and added sfr16 definitions
7126
7127 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
7128
7129         * src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
7130           genGetWord): fixed bug 1409955
7131
7132 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
7133
7134         * device/include/hc08/mc68hc908gp32.h,
7135         * device/include/hc08/mc68hc908jb8.h: removed AWUL, added PTA6 & PTA7
7136
7137 2006-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
7138
7139         * src/SDCCast.c (constExprValue): return NULL if not a value
7140         * src/SDCCglue.c (printIvalArray): fixed bug 1225568
7141         * src/hc08/gen.c(genUnpackBits, genUnpackBitsImmed): fixed bug 1019480
7142         * support/regression/tests/bitfields.c: enabled signed bitfield for all
7143
7144 2006-02-13 Borut Razem <borut.razem AT siol.net>
7145
7146         * src/regression/ptrarg.c: added, fails due to bug #1430967
7147         * src/regression/Makefile: ptrarg.c added, ...
7148
7149 2006-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
7150
7151         * src/z80/gen.c (genUnpackBits): fixed bug 1019480
7152         * support/regression/tests/bitfields.c: enabled signed bitfield for z80
7153
7154 2006-02-11 Borut Razem <borut.razem AT siol.net>
7155
7156         * src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
7157           print "Processor: xxx" message to stdout only if --verbose
7158
7159 2006-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
7160
7161         * src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
7162         * support/regression/tests/bug1426356.c: added
7163         * support/regression/tests/bitfields.c: removed 2 tests
7164
7165 2006-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
7166
7167         * device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
7168         * device/include/mcs51/c8051f330.h,
7169         * device/include/mcs51/c8051f350.h: used () with __at, renamed IDLE,STOP to
7170           PCON_IDLE,PCON_STOP and added sfr16 definitions
7171         * device/lib/_divsint.c,
7172         * device/lib/_divuint.c,
7173         * device/lib/_divulong.c,
7174         * device/lib/_divulong.c: renamed a,b to x,y to avoid confusion, fixed
7175           register bank bug for small stackauto
7176
7177 2006-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
7178
7179         * support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()
7180
7181 2006-02-08 Maarten Brock <sourceforge.brock AT dse.nl>
7182
7183         * support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
7184         * all.dsp: corrected several bin paths
7185         * device/include/mcs51/c8051f120.h,
7186         * device/include/mcs51/c8051f300.h,
7187         * device/include/mcs51/c8051f310.h: used () with __at and renamed IDLE,STOP
7188           to PCON_IDLE,PCON_STOP
7189         * device/include/mcs51/c8051f320.h: see above, also added sfr16 definitions
7190         * device/lib/printf_large.c (output_float): fixed bug 1388703
7191         * support/regression/tests/bug1057979.c: added test for bug 1388703
7192
7193 2006-02-08 Raphael Neider <rneider AT web.de>
7194
7195         * src/pic/pcode.c (pciTRIS): fixed typo,
7196           (BuildFlow,LinkFlow_pCode): added (disabled) debug output,
7197           (LinkFlow): fixed handling of flows that end in a call,
7198           (ReuseReg): perform safety check earlier
7199         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed
7200             to work with flows at the beginning of a pBlock,
7201             fixes #1426557 (Symbol not previously defined),
7202           (pic14_ReMapLiveRanges): NEW, destroy and rebuild register
7203             usage information
7204           (RemoveUnusedRegisters): update register usage info
7205         * src/pic/ralloc.c (newReg): prevent duplicate registers from being
7206             created, reuse existing ones instead
7207         * src/pic/gen.c (genPcall): fixed #1424719
7208
7209 2006-02-07 Bernhard Held <bernhard AT bernhardheld.de>
7210
7211         * link/z80/lkmain.c,
7212         * link/z80/lklex.c,
7213         * link/z80/lkdata.c,
7214         * link/z80/aslink.h: fixed build on current cygwin:
7215         replaced getline() by lk_getline()
7216
7217 2006-02-01 Borut Razem <borut.razem AT siol.net>
7218
7219         * src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
7220           src/regression/add4.c, src/regression/and1.c, src/regression/and2.c,
7221           src/regression/arrays.c, src/regression/b.c, src/regression/bank1.c,
7222           src/regression/bool1.c, src/regression/bool2.c,
7223           src/regression/bool3.c, src/regression/call1.c,
7224           src/regression/compare.c, src/regression/compare10.c,
7225           src/regression/compare2.c, src/regression/compare3.c,
7226           src/regression/compare4.c, src/regression/compare5.c,
7227           src/regression/compare6.c, src/regression/compare7.c,
7228           src/regression/compare8.c, src/regression/compare9.c,
7229           src/regression/configword.c, src/regression/for.c,
7230           src/regression/inline.c, src/regression/mult1.c,
7231           src/regression/nestfor.c, src/regression/or1.c,
7232           src/regression/pointer1.c, src/regression/ptrfunc.c,
7233           src/regression/rotate1.c, src/regression/rotate2.c,
7234           src/regression/rotate3.c, src/regression/rotate4.c,
7235           src/regression/rotate5.c, src/regression/rotate6.c,
7236           src/regression/rotate7.c, src/regression/string1.c,
7237           src/regression/struct1.c, src/regression/sub.c,
7238           src/regression/sub2.c, src/regression/switch1.c,
7239           src/regression/while.c, src/regression/xor.c,
7240           src/regression/create_stc, src/regression/simulate,
7241           src/regression/rt.sh, src/regression/Makefile: reenabled Scott's PIC14
7242           regression tests
7243         * src/regression/gpsim_assert.h: added
7244
7245 2006-01-28 Bernhard Held <bernhard AT bernhardheld.de>
7246
7247         * src/ds390/gen.c (unsaveRegisters): fixed literal function pointer
7248         ((void (code *) (void)) 0) ();
7249         * as/hc08/aslex.c,
7250         * as/hc08/aslink.h,
7251         * as/hc08/asm.h,
7252         * as/hc08/asmain.c,
7253         * as/hc08/lkdata.c,
7254         * as/hc08/lklex.c,
7255         * as/hc08/lkmain.c,
7256         * as/mcs51/aslex.c,
7257         * as/mcs51/aslink.h,
7258         * as/mcs51/asm.h,
7259         * as/mcs51/asmain.c,
7260         * as/mcs51/lkdata.c,
7261         * as/mcs51/lklex.c,
7262         * as/mcs51/lkmain.c,
7263         * as/z80/aslex.c,
7264         * as/z80/asm.h,
7265         * as/z80/asmain.c: fixed build on current cygwin:
7266         replaced getline() by as_getline()
7267
7268 2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
7269
7270         * src/SDCC.y: fixed bug #716242, exchanged pointer and function
7271         declarator in the symbol chain
7272         * src/SDCCsymt.h,
7273         * src/SDCCsymt.c (processFuncPtrArgs): added, removes "(void)"
7274         parameter list for function pointers
7275         * src/SDCCast.c (decorateType): added call of processFuncPtrArgs()
7276         * support/regression/tests/bug-716242.c: added
7277
7278 2006-01-20 Bernhard Held <bernhard AT bernhardheld.de>
7279
7280         * src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array
7281         offset if possible
7282         * src/SDCCast.c (getLeftResultType): 255 fits in char, not 256
7283
7284 2006-01-18 Bernhard Held <bernhard AT bernhardheld.de>
7285
7286         * src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it
7287         inifinitely recurseable, added static
7288         * support/regression/tests/bug-1408066.c: added
7289
7290 2006-01-17 Bernhard Held <bernhard AT bernhardheld.de>
7291
7292         * src/SDCCicode.h,
7293         * src/SDCCicode.c (newiTempPreheaderLabel, newiTempLoopHeaderLabel):
7294         renamed, added possibility to create "postLoopLbl"-labels
7295         * src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to
7296         newiTempLoopHeaderLabel
7297         * src/SDCCloop.c (newInduction, newRegion, backEdges, insertIntoLoop,
7298         isNotInBlocks, addToExitsMarkDepth, createLoop, dominatedBy,
7299         addDefInExprs, assignmentsToSym, isOperandInvariant, pointerAssigned,
7300         hasNonPtrUse, loopInvariants, addressTaken, findInduction,
7301         findDefInRegion, mergeRegions, ifMerged, mergeInnerLoops): made static,
7302         (pinduction, pregion, hasIncomingDefs, findLoopEndSeq): disabled,
7303         (basicInduction): fixed bug #136564, made static,
7304         (loopInduction): changed parameter of basicInduction, made static,
7305         (addPostLoopBlock): added
7306         * src/SDCCloop.h: removed backEdges, pregion, pinduction,
7307         loopOptimizations, addressTaken, findDefInRegion, hasIncomingDefs,
7308         findLoopEndSeq
7309         * support/regression/tests/bug-136564.c: added
7310         * support/regression/ports/mcs51-xstack-auto/spec.mk: added
7311         --std-sdcc99 to LIBSDCCFLAGS
7312
7313 2006-01-16 Bernhard Held <bernhard AT bernhardheld.de>
7314
7315         * src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false
7316         while loop
7317         * support/regression/tests/bug-1406131.c: added
7318
7319 2005-12-31 Bernhard Held <bernhard AT bernhardheld.de>
7320
7321         * src/SDCCast.c (decorateType): fix promotion of unary minus
7322         * src/SDCCsymt.c (computeType): beautified
7323         * src/SDCCval.c (cheapestVal): beautified, old non-Ansi version removed,
7324         (valUnaryPM, valComplement): fix sign and promotion,
7325         (valNot): ANSI: result type is int (SDCC: unsigned char)
7326         * support/regression/tests/uminus.c: speedup by removing superflous
7327         test case 'int'
7328         * support/regression/tests/onebyte.c: added promotion and signedness
7329         tests for unary minus
7330         * support/regressions/tests/bug-477927.c: disable warning about
7331         uninitialized variables
7332         * support/regression/tests/not.c: added
7333
7334 2005-12-28 Bernhard Held <bernhard AT bernhardheld.de>
7335
7336         * device/lib/Makefile.in: added --std-sdcc99 to CFLAGS
7337         * src/mcs51/gen.c (gen51Code): show final register usage after
7338         fillGaps in asm with --i-code-in-asm
7339         * src/SDCClrange.c (sequenceiCode, setLiveFrom, setLiveTo,
7340         markLiveRanges, markAlive, findNextUseSym, findNextUse, unvisitBlocks,
7341         incUsed, rliveClear, adjustIChain): made static,
7342         (setFromRange): excluded because it's unused,
7343         (findPrevUseSym, markWholeLoop): added,
7344         (findPrevUse): rewritten; fixes bug 895992; now a complete search
7345         through all branches of predecessors enables sdcc to emit the warning
7346         W_LOCAL_NOINIT, marking of outermost loop was incomplete,
7347         (rlivePoint): made static, added parameter emitWarnings which is only
7348         true during the first run out of two,
7349         (findRecursiveSucc, findRecursivePred): removed,
7350         (computeLiveRanges): made static, added parameter emitWarnings,
7351         (dumpIcRlive): added for debugging only
7352         * src/SDCClrange.h: added boolean parameter to computeLiveRanges(),
7353         removed prototype of setFromRange()
7354         * src/SDCCopt.c (eBBlockFromiCode): added new parameter emitWarnings
7355         in call of computeLiveRanges()
7356         * support/regression/tests/bug-895992.c: added
7357         * support/regression/tests/bug-971834.c: added
7358         * support/valdiag/tests/bug-895992.c: added
7359         * support/valdiag/tests/bug-971834.c: added
7360
7361 2005-12-18 Raphael Neider <rneider AT web.de>
7362
7363         * src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
7364           (genUnpackBits): improved code for direct operands,
7365           (genPackBits): improved code for literal assignment to bitfields
7366             and for direct destination operands (no FSR indirection),
7367             prevented redundant AND, fixes #1362800,
7368           (AccLsh): added parameter to disable masking of the result
7369         * src/pic16/pcode.c (pic16_safepCodeUnlink): fixed to work with
7370           skip instructions with side-effects (like incfsz),
7371           (pic16_pCodeIsAlive): suppress verbose output unless pcode_verbose,
7372         * src/pic16/pcoderegs.c (RemoveRegsFromSet): removed annoying warning
7373         * device/lib/pic16/Makefile.common.in: added --asm=@GPASM@ to CC,
7374           fixes #1375263
7375
7376 2005-12-11 Bernhard Held <bernhard AT bernhardheld.de>
7377
7378         * src/SDCCicode.c (geniCodeAssign): fixed bug 11369874, don't use
7379         volatile variables as spill location
7380
7381 2005-12-10 Bernhard Held <bernhard AT bernhardheld.de>
7382
7383         * src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to
7384         replacing literals
7385         * support/regression/tests/bug-1376320.c: added
7386
7387 2005-12-08 Raphael Neider <rneider AT web.de>
7388
7389         * src/pic/device.c: renamed is_shared to pic14_is_shared
7390         * src/pic/gen.c (genIfx): re-enabled handling of sbits
7391         * src/pic/glue.c (emitSymbolToFile): added workaround for sbits,
7392           (is_valid_identifier): added for above workaround
7393
7394 2005-12-07 Maarten Brock <sourceforge.brock AT dse.nl>
7395
7396         * device/lib/Makefile.in: fixed to enable port-specific-objects
7397         * device/lib/ds390/i2c390.c (BitOutI2C): optimized by making bout unsigned
7398           char, thanks Hubert Sack
7399         * doc/sdccman.lyx: documented --xstack-loc,
7400           elaborated a bit more on interrupts and pitfalls,
7401           removed "setjmp/longjmp unsupported",
7402           documented some unsupported C99 features
7403         * src/SDCCmain.c (linkEdit): adapted default lib path for --stack-auto
7404         * src/SDCCpeeph.c (readRules): inserted patch 1367130 for finding missing
7405           if, thanks Hubert Sack
7406         * src/mcs51/gen.c (genEndFunction): enabled "pop psw" for regbank 0 isr
7407         * support/regression/Makefile.in: test-mcs51-stack-auto no longer needs to
7408           make make_library
7409         * support/regression/get_ticks.py: new, get cpu cycles and code size, so
7410           regression tests can report resource usage (rfe 700441)
7411         * support/regression/collate-results.py: report resource usage
7412         * support/regression/ports/ds390/spec.mk,
7413         * support/regression/ports/hc08/spec.mk,
7414         * support/regression/ports/mcs51/spec.mk,
7415         * support/regression/ports/ucz80/spec.mk: run sim output through get_ticks
7416         * support/regression/ports/ds390/uCsim.cmd,
7417         * support/regression/ports/hc08/uCsim.cmd,
7418         * support/regression/ports/mcs51/uCsim.cmd,
7419         * support/regression/ports/ucz80/uCsim.cmd: inserted "state" to report time
7420         * support/regression/ports/mcs51-stack-auto/spec.mk: no need to build the
7421           library, use the default one
7422         * support/regression/ports/mcs51-xstack-auto/spec.mk: inserted rules for
7423           building the library
7424
7425 2005-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
7426
7427         * config.dsp: added dependency on .version and configure_vc.awk
7428         * device/include/setjmp.h: updated for --stack-auto and --xstack
7429         * device/include/mcs51/at89c51snd1c.h: corrected line endings
7430         * device/include/mcs51/XC866.h: added, thanks Llewellyn van Zyl
7431         * device/lib/_setjmp.c: updated for --stack-auto and --xstack
7432         * device/lib/libsdcc.lib: added _setjmp
7433         * src/SDCCast.c (createIvalCharPtr): fixed warnings,
7434           (decorateType): fixed bug 1372851,
7435           (optimizeGetHbit): fixed warning
7436         * src/SDCCglue.c (printIvalChar, printIvalArray): adapted for flexible
7437           array initialisation
7438         * support/regression/tests/bug1057979.c: added test for bug 1358192
7439         * support/regression/tests/setjmp.c: added, test for setjmp/longjmp
7440
7441 2005-12-03 Borut Razem <borut.razem AT siol.net>
7442
7443         * support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
7444           command since the NSIS was upgraded to version 2.11 on CF x86-linux2
7445
7446 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
7447
7448         * src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr,
7449         createIval): implement symbol independant "flexible array member",
7450         (createIvalCharPtr): implemented flexible array initialisation with a
7451         string
7452         * src/SDCCsymt.c (copyStruct): removed,
7453         (getSize): fixed misleading comment,
7454         (getAllocSize): removed, the additional allocation size is now in
7455         sym->flexArrayLength,
7456         (checkStructFlexArray): new, syntax checks for flexible array members,
7457         (compStructSize): added syntax checks for "flexible array members"
7458         (copyStruct): removed,
7459         (copyLinkChain): removed inefficient fix for bug 770487
7460         * src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
7461         * src/SDCCsymt.h: added structdef.b_flexArrayMember and
7462         symbol->flexArrayLength
7463         * src/SDCCerr.c,
7464         * src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY,
7465         E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
7466         * support/regression/tests/structflexarray.c: added
7467         * support/valdiag/tests/structflexiblearray.c: added
7468
7469 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
7470
7471         * src/SDCCast.c (decorateType): fixed bug 1368489
7472         * support/Util/SDCCerr.c,
7473         * support/Util/SDCCerr.h: added warning W_CMP_SU_CHAR
7474
7475 2005-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7476
7477         * device/include/mcs51/at89c51snd1c.h: added file submitted by
7478           Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001
7479
7480 2005-11-27 Borut Razem <borut.razem AT siol.net>
7481
7482         * support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
7483           support/cpp2/mkdeps.h: added command line option
7484           -obj-ext=<extension> to SDCPP to define object file externion, used
7485           for generation of make dependencies (-M)
7486         * src/SDCCmain.c: pass -obj-ext=<extension> to SDCPP
7487
7488 2005-11-26 Borut Razem <borut.razem AT siol.net>
7489
7490         * support/scripts/sdcc.nsi: added small-stack-auto libraries,
7491           added missing device/lib/mcs51/crt*.asm, pic and pic16 sources,
7492           added pic and pic16 libraries
7493
7494 2005-11-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7495
7496         * device/include/float.h: Corrected typo in prototype of __fsgt
7497
7498 2005-11-25 Borut Razem <borut.razem AT siol.net>
7499
7500         * sdcc/device/lib/Makefile.in, sdcc/device/lib/incl.mk:
7501           added creation of model-mcs51-stack-auto libraries
7502
7503 2005-11-24 Bernhard Held <bernhard AT bernhardheld.de>
7504
7505         * src/SDCCsymt.c (copyLinkChain): fixed bug 770487, copy structdef
7506         and fields-list too
7507         * src/SDCCast.c (createIvalArray): removed obsolete comment
7508
7509 2005-11-24 Borut Razem <borut.razem AT siol.net>
7510
7511         * sdcc/device/lib/Makefile.in: remove all unnecessary files, 2nd try...,
7512           added missing device/lib/mcs51/crt*.asm sources
7513
7514 2005-11-23 Bernhard Held <bernhard AT bernhardheld.de>
7515
7516         * src/SDCCast.c (createIvalCharPtr): fixed bug 1348271
7517
7518 2005-11-22 Maarten Brock <sourceforge.brock AT dse.nl>
7519
7520         * device/lib/_fs2schar.c,
7521         * device/lib/_fs2sint.c,
7522         * device/lib/_fs2slong.c: optimized inline asm
7523
7524 2005-11-21 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7525
7526         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
7527           Better handling of floats between -1.0 and 0.0.
7528
7529 2005-11-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7530
7531         * src/mcs51/peeph.def: added missing "if"s as noted by Hubert Sack.
7532           (the missing "if"s prohibited removal of redundant labels)
7533
7534 2005-11-19 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7535
7536         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
7537           Properly convert floats between -1.0 and 0.0 to long, int, and char
7538           types (max integer value of negative floats tends to zero).
7539         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
7540           Removed changes made so to work properly with floats between
7541           -1.0 and 0.0, as the problem is fixed in _fs2slong.c, _fs2sint.c,
7542           and _fs2char.c
7543
7544 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
7545
7546         * src/SDCCcse.c (ReplaceOpWithCheaperOp): minor fix for debugging only
7547         * src/mcs51/gen.c (genUnpackBits): better code and a fix,
7548         (genCast) cosmetic change
7549         * src/ds390/gen.c (genUnpackBits, ): ported from mcs51
7550         * src/ds390/ralloc.c (packRegsForAssign): ported fix for bitfields
7551         from mcs51
7552         * support/regression/tests/bitfields (testSignedBitfields): added
7553
7554 2005-11-18 Borut Razem <borut.razem AT siol.net>
7555
7556         * sdcc/device/lib/Makefile.in: remove all unnecessary files
7557         * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
7558           introduced SILENT option to make building of pic16 libraries less
7559
7560 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7561
7562         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
7563           Now they work properly with floats between -1.0 and 0.0
7564         * device/lib/printf_large.c: Removed temporary patch for bug 1358192
7565
7566 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
7567
7568         * src/SDCCicode.c (printOperand): added missing else
7569
7570 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
7571
7572         * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
7573         reformatted for better readability
7574         * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
7575         signed bitfields
7576
7577 2005-11-17 Borut Razem <borut.razem AT siol.net>
7578
7579         * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
7580           introduced SILENT option to make building of pic16 libraries less
7581           verbose - used for nightly snapshot build
7582         * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
7583           available on Win32 platforms.
7584         * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
7585           medium, large, pic and pic16
7586
7587 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7588
7589         * device/lib/printf_large.c: Temporary patch for bug 1358192:
7590           printf("%f"...) sets fraction to zero.
7591
7592 2005-11-16 Raphael Neider <rneider AT web.de>
7593
7594         * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
7595           fixes #1357221
7596         * src/pic/gen.c (genIfx): implemented for CARRY bit
7597         * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
7598           to generic pointers, fixes #1357332,
7599           (pic16_movLit2f): NEW,
7600           (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
7601
7602 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
7603
7604         * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
7605
7606 2005-11-11 Raphael Neider <rneider AT web.de>
7607
7608         * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
7609         * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
7610           compute pointer's type from operand,
7611           (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
7612           improved single bit reads, fixes bug #1353379
7613
7614 2005-11-09 Borut Razem <borut.razem AT siol.net>
7615
7616         * support/scripts/sdcc.nsi: added lib/pic to the package
7617
7618 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
7619
7620         * src/SDCCval.c (valUnaryPM): fixed bug 1350699
7621
7622 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
7623
7624         * support/regression/tests/bug1348008.c: added
7625         * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
7626         * support/regression/tests/bug1337835.c: updated comment
7627
7628 2005-11-06 Borut Razem <borut.razem AT siol.net>
7629
7630         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
7631           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
7632           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
7633           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
7634           sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
7635           dynamic construction of cl_error_class and derivates - 2.nd try
7636
7637 2005-11-05 Borut Razem <borut.razem AT siol.net>
7638
7639         * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
7640           bug, which caused Bus Errors on sparc solaris
7641
7642 2005-11-04 Borut Razem <borut.razem AT siol.net>
7643
7644         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
7645           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
7646           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
7647           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
7648           sim/ucsim/cmd.src/cmdconf.cc: dynamic construction of cl_error_class
7649           and derivates to resolve the initialization problem on OSX
7650
7651 2005-11-02 Borut Razem <borut.razem AT siol.net>
7652
7653         * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
7654           corrected typo - #include <winsock2.h>
7655
7656 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
7657
7658         * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
7659           (_asxxxx_mapping): added org directive for future enhancements
7660
7661 2005-11-01 Borut Razem <borut.razem AT siol.net>
7662
7663         * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
7664           enabled sockets on WIN32
7665         * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
7666
7667 2005-10-31 Borut Razem <borut.razem AT siol.net>
7668
7669         * support/regression/generate-cases.py: escape backslashes in {testcase}:
7670           WIN32 backslash path delimiters should be escaped when used in C strings
7671         * support/regression/tests/bitfields.c: exclude failing assertions for
7672           __CYGWIN32__ and __MINGW32__ hosts
7673
7674 2005-10-30 Borut Razem <borut.razem AT siol.net>
7675
7676         * src/SDCCutil.c: corrected double comparison typo
7677
7678 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
7679
7680         * device/lib/medium/Makefile: added for new memory model medium
7681         * device/include/asm/mcs51/features.h: updated for medium/pdata
7682         * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
7683           added Multiply & Accumulate sbit's and MAC0_PAGE define
7684         * device/include/mcs51/c8051f300.h: added sfr16 definitions
7685         * device/include/mcs51/c8051f310.h: added sfr16 definitions
7686         * device/lib/_mullong.c: update for medium model
7687         * device/lib/incl.mk: added medium model
7688         * doc/sdccman.lyx: documented medium model
7689         * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
7690         * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
7691         * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
7692         * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
7693           (allocParms): set SCLS and OCLS to pdata for medium model
7694         * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
7695           for pdata,
7696           (powof2): return <0 if not power of 2
7697         * src/avr/gen.c (genBitWise): use updated powof2
7698         * src/mcs51/gen.c (genMinusDec): use acc if necessary,
7699           (shiftR2Left2Result): small optimization in setup, save acc when storing,
7700           (shiftLLeftOrResult): use B if necessary
7701         * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
7702         * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
7703         * src/pic/main.c (_pic14_do_link): made void parameter list explicit
7704         * support/regression/Makefile.in: added test-mcs51-medium
7705         * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
7706
7707 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
7708
7709         * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
7710         specifier unsigned
7711         * device/lib/time.c (mktime): fixed bug 1334315
7712
7713 2005-10-28 Raphael Neider <rneider AT web.de>
7714
7715         * device/include/pic/p16f_common.inc: added common declarations
7716         * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
7717
7718 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
7719
7720         * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
7721           (aopPutUsesAcc): added to predict accumulator use,
7722           (assignResultValue): save acc if necessary,
7723           (genMinusDec): store result if indirectly addressed,
7724           (genDivOneByte):  save acc if necessary,
7725           (movLeft2Result): bugfix if left already in acc,
7726           (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
7727             attention to accumulator use (esp. pdata),
7728           (genReceive): receive pdata correctly
7729         * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
7730         * src/SDCCicode.h: added isOperandInPagedSpace prototype
7731
7732 2005-10-27 Raphael Neider <rneider AT web.de>
7733
7734         * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
7735
7736 2005-10-27 Raphael Neider <rneider AT web.de>
7737
7738         * .version: changed version to 2.5.4
7739         * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
7740         * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
7741           (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
7742             arithmetics support routines
7743         * device/lib/pic/Makefile.rules: have assembler sources preprocessed
7744         * device/lib/Makefile.in: also create installdir for pic
7745
7746         * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
7747           pic14 port as well
7748         * src/pic/device.c (dump_sfr): rewritten to delegate register
7749           placement to the linker (use `extern sym' rather than sym EQU addr),
7750           (validAddress): fixed to check last specified address
7751         * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
7752           (popGetLit): truncate literal value to 8 bit,
7753           (popGet): moved assert to more appropriate place
7754           (popGetExternal): create pCode operand from and mark the according
7755             symbol as being `extern'
7756           (popGetAddr): added sanity check on immediate's offset, provide
7757             GPOINTER tag on demand
7758           (aopPut): fixed for immediates,
7759           (mov2w_op): move operand's address or contents to WREG (depending on
7760             operand type), safer variant of mov2w,
7761           (movwf,call_libraryfunc): NEW, handy abbreviations,
7762           (get_argument_pcop,get_return_val_pcop,pass_argument,
7763           get_returnvalue): interface for accessing function parameters and
7764             return values,
7765           (assignResultValuei,genRet): use new parameter/return value interface
7766           (pic14_getDataSize): back to old version handling generic pointers,
7767           (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
7768             provided implementation and/or fixed old one,
7769           (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
7770             calls, removed legacy 8051 reference code
7771           (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
7772           (loadSignToC): NEW, move the operands sign bit to CARRY,
7773           (genGenericShift): NEW, replaces genLeftShift, genRightShift and
7774             genRightShiftSigned, accepts negative shift counts,
7775           (setup_fsr): load FSR and adjust IRP (indirect memory access),
7776           (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
7777             generic pointers, __data pointers and __code pointers,
7778           (genUnpackBits,genPackBits): rewritten to work with generic pointers
7779             and signed bitfields, limit bitfields to 8 bit,
7780           (genDataPointerGet): fixed number of bytes read,
7781           (genGenPointerGet,genConstPointerGet): fixed bitfield access,
7782           (genPointerGet,genPointerSet): fixed handling of __code pointers,
7783             pointers to constant data are no longer assumed to point to __code
7784             space, removed invalid pointer types,
7785           (bitpatternFromVal): retrieve the PICs representation of an integer
7786             or float literal,
7787           (genDataPointerSet): fixed assigning to po_immediate operands,
7788           (genGenPointerSet): implemented as library call,
7789           (genIfx): fixed incorrect condition,
7790           (genAddrOf): limit generic pointers' addresses to 2 bytes,
7791             provide GPOINTER tag according to destination's storage class,
7792           (genCast): added code to handle casting to generic pointers, added
7793             sign-/zero extension of the result
7794           (aop_isLitLike,op_isLitLike): fixed handling of immediates
7795         * src/pic/gen.h: added macros to access IRP bit in STATUS register
7796         * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
7797           extend the result
7798         * src/pic/glue.c (is_shared_address,is_shared): check whether a given
7799           address/register resides in the shared banks
7800           (emitSymbolToFile): improved to handle global and `pinned' symbols,
7801             put all variables into separate sections (have the linker arrange
7802             them)
7803           (picglue): put init code and interrupt handlers in separate sections
7804         * src/pic/main.c: added port specific options table, modified to PORT
7805           structure to make GPOINTERs 3 byte, added pic14_options
7806           (_pic14_do_link): private linking routine (update paths to libraries,
7807             add libsdcc.lib by default)
7808         * src/pic/main.h: declare pic14_options
7809         * src/pic/pcode.c: fixed instructions i/o relations,
7810           (RegCond): reverted to correct version,
7811           (newpCodeOpLit): truncate literals to 8 bit,
7812           (genericPrint): added debug output,
7813           (getRegFromInstruction): fixed for various operand types, simplified
7814           (BuildFlow): fixed broken handling of isntructions with labels
7815           (LinkFlow): start at last instruction in flow (skip trailing comments),
7816             pass the flow on to the next instruction after CALL
7817           (pCodeReplace): NEW, replace a pCode and move meta data to the new one
7818           (insertPCodeInstruction): fixed inserting after a skip instruction,
7819           (DoBankSelect): fixed for labeled instructions
7820           (OptimizepBlock): honor --nopeep switch
7821           (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
7822         * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
7823         * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
7824           (pCodeOptime2pCodes): allow disabling this optimization via
7825             --no-pcode-opt due seldomly occuring bugs, fixed some conditions
7826             but is still buggy), started implementation of a dataflow based
7827             pCode optimization (CSE + dead code elimination)
7828           (pCodeRegMapLiveRangesInFlow): removed bogus inCond
7829         * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
7830           names are independant of the stack location and therefore portable across
7831           devices
7832
7833 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
7834
7835         * src/mcs51/ralloc.c (bitType): added to detect bit variables,
7836           (selectSpil): fixed bug 1337835 by not spilling bit variables
7837         * support/regression/tests/bug1337835.c: added test for this bug
7838         * src/mcs51/peeph.def: restart after rule 3.c,
7839           addded rules 263.x to optimize loading constants
7840
7841 2005-10-26 Raphael Neider <rneider AT web.de>
7842
7843         * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
7844         * src/pic16/gen.c (genUnpackBits): support signed bitfields,
7845           (genAssign): emit warning when casting literals to generic pointer
7846             type, also applies when taking the address of a fixed variable,
7847           (genCast): improved casting to generic pointers
7848         * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
7849           extern variables, added verbose error message
7850         * device/include/pic16/{string.h,errno.h}: added #pragma library c
7851
7852 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
7853
7854         * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
7855         carry must be complemented too
7856         * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
7857         could be emitted by genMinus
7858         * src/SDCCval.c (constVal): fixed bug 1305065
7859
7860 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
7861
7862         * src/SDCCast.c (addCast): added promotion for bit variables
7863         (decorateType): emit W_COMPLEMENT before the problem vanishes behind
7864         promotion casts + optimisation
7865         (optimizeGetWord): fix warning 'i' might be used uninitialized
7866         * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
7867         * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
7868
7869 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
7870
7871         * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
7872         all chars are promoted to int; promotion should be handled in SDCCast.c
7873
7874 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7875
7876         * device/lib/_strcmp.c: Fixed bug 1326457
7877
7878 2005-10-11 Raphael Neider <rneider AT web.de>
7879
7880         * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
7881         * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
7882
7883 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
7884
7885         * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
7886         * support/regression/tests/sfr16.c: added test for the sfr32 bug
7887
7888 2005-10-04 Raphael Neider <rneider AT web.de>
7889
7890         * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
7891           device/lib/pic16/pics.all: added pic18f1320
7892         * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
7893
7894 2005-09-30 Raphael Neider <rneider AT web.de>
7895
7896         * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
7897         * src/pic16/devices.inc: NEW, provides device descriptions
7898         * src/pic16/gen.c (genInline): fixed handling of ';'-comments
7899
7900 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
7901
7902         * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
7903           GETHBIT
7904
7905 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
7906
7907         * doc/sdccman.lyx: updated Highest Order Bit documentation,
7908           documented Any Order Bit, Higher Order Byte and Higher Order Word
7909         * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
7910         * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
7911           (optimizeGetAbit): new, to get any bit, not only the high bit,
7912           (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
7913           (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
7914           (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
7915           (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
7916             RIGHT_OP: also try GETBYTE, GETWORD optimization,
7917             GETABIT, GETBYTE, GETWORD: decorate them,
7918           (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
7919           (ast_print): added GETABIT, GETBYTE, GETWORD
7920         * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
7921         * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
7922           (geniCodeBinary): new generic binary icode,
7923           (ast2iCode): added GETABIT, GETBYTE, GETWORD
7924         * src/port.h: updated comment for PORT.hasExtBitOp
7925         * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
7926           (genGetByte): new, to get a single byte,
7927           (genGetWord): new, to get a word from a long,
7928           (gen51Code): added GETABIT, GETBYTE, GETWORD
7929         * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
7930
7931 2005-09-23 Raphael Neider <rneider AT web.de>
7932
7933         * configure.in, configure: have device/lib/pic configured
7934         * device/lib/Makefile.in: added model-pic14
7935         * device/lib/clean.mk: added pic/ to clean rule
7936         * device/lib/pic: added rudimentary pic14 library providing support
7937           functions for multiplication/division/generic pointer access
7938         * src/SDCCopt.c (convilong): mark support functions as extern
7939           for pic14 port as well
7940         * src/pic/gen.c (genMult): added assertions,
7941           (genpic14Code): emit warning on unhandled iCodes
7942         * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
7943         * src/pic/pcode.c (pCodeOpCopy),
7944         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
7945           pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
7946           SFR_REGISTER}), made safe for future extensions
7947         * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
7948           instructions even if preceeded by SKIP instructions (also remove
7949           them); removed unused code
7950         * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
7951           prevents leaving parts of the structure uninitialized after copying
7952
7953 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
7954
7955         * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
7956           ago by me
7957         * support/regression/tests/addsub.c: added test for the bug
7958
7959 2005-09-21 Raphael Neider <rneider AT web.de>
7960
7961         * device/include/pic16/pic18f1220.h,
7962           device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
7963         * device/lib/pic16/Makefile.rules: added missing opening paren
7964         * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
7965           are provided in genutils.c,
7966           (genUminusFloat,genUminus,genCmpEq): added asserts on different
7967           operand/result sizes,
7968           (genCmp): assert on NULL pointers first, then check deref'ed values
7969         * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
7970           result size
7971
7972 2005-09-18 Raphael Neider <rneider AT web.de>
7973
7974         * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
7975           as these are now unused,
7976           (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
7977         * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
7978           local, avoids uninitialized pointer dereference on r->name
7979         * src/pic16/ralloc.c (newReg): fixed indentation
7980
7981 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
7982
7983         * src/SDCCval.c (constVal): fixed bug 730366
7984         * support/Util/SDCCerr.c,
7985         * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
7986
7987 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
7988
7989         * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
7990
7991 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
7992
7993         * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
7994
7995 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
7996
7997         * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
7998           (hex2dec): made hex_digit unsigned char, removed ascii dependance
7999         * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
8000           (hex2dec): made hex_digit unsigned char, removed ascii dependance
8001         * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
8002         * packihx/packihx.c (hexDigit): made c unsigned char
8003         * as/mcs51/lklibr.c (fndsym),
8004         * link/z80/lkgb.c (gb),
8005         * link/z80/lklibr.c (fndsym),
8006         * link/z80/lkrloc.c (relr),
8007         * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
8008         * src/SDCC.lex (checkCurrFile, process_pragma),
8009         * src/SDCCglue.c (spacesToUnderscores),
8010         * src/SDCCmain.c (setParseWithComma, processFile),
8011         * src/asm.c (tvsprintf, printCLine),
8012         * src/avr/gen.c (emitcode, aopPut),
8013         * src/ds390/gen.c (emitcode),
8014         * src/hc08/gen.c (emitcode, emitinline),
8015         * src/mcs51/gen.c (emitcode, genInline),
8016         * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
8017           tokenizeLineNode),
8018         * src/pic/ralloc.c (debugLog),
8019         * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
8020           tokenizeLineNode),
8021         * src/pic16/ralloc.c (debugLog),
8022         * src/z80/main.c (_process_pragma):
8023            made all ctype.h function calls safe
8024         * src/SDCCopt.c: include math.h for fabs
8025         * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
8026           and used them throughout the code to make ctype.h function calls safe
8027         * src/ds390/main.c (asmLineNodeFromLineNode),
8028         * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
8029         * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
8030            unsigned char*
8031         * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
8032           (newpCodeAsmDir): made ctype.h function calls safe
8033         * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
8034           pic16_emitcode):  made lbp unsigned char*
8035         * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
8036           (pic16_newpCodeAsmDir): made ctype.h function calls safe
8037         * src/xa51/gen.c (emitcode),
8038         * src/z80/gen.c (_emit2): made lbp unsigned char*
8039         * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
8040            char*
8041
8042 2005-09-05 Raphael Neider <rneider AT web.de>
8043
8044         * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
8045           access bank splitpoint
8046
8047 2005-09-05 Raphael Neider <rneider AT web.de>
8048
8049         * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
8050
8051 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
8052
8053         * .version: changed to version 2.5.3
8054         * doc/sdccman.lyx: changed version to 2.5.3,
8055           documented --codeseg and --constseg and pragma codeseg and constseg,
8056           documented bit parameters (reentrant) and bit returning
8057         * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
8058            currFunc->recvSize, but is this ok for all ports?
8059           (ast2iCode): result of ~ on unsigned char must be cast to int for
8060            bool to work
8061         * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
8062           function pointers in bit space
8063         * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
8064           (processFuncArgs): call port.reg_parm() with reentrancy info
8065         * src/port.h,
8066         * src/avr/main.c,
8067         * src/ds390/main.c,
8068         * src/hc08/main.c,
8069         * src/pic/main.c,
8070         * src/pic16/main.c,
8071         * src/xa51/main.c,
8072         * src/z80/main.c: port.reg_parm prototype extended with
8073           "bool reentrant" parameter
8074         * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
8075           options.stackAuto for allocating bit register parameters
8076         * src/mcs51/gen.c (genNot): optimized complementing direct bit,
8077           (genSend): set BitBankUsed if it is,
8078           (selectRegBank): factored out of genCall for use in genPcall,
8079           (genCall): removed redundant dtype assignmen, use selectRegBank,
8080           (genPcall): handle returning in Carry properly, save in F0 if needed,
8081           (genReceive): handle bit register parameters
8082         * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
8083           (mcs51_assignRegisters): enable bit registers for all reentrant
8084            functions and don't set BitBankUsed unconditionally
8085         * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
8086         * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
8087         * support/regression/tests/funptrs.c: added tests for BOOL and for return
8088
8089 2005-08-27 Borut Razem <borut.razem AT siol.net>
8090
8091         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
8092         ppc-osx (Darwin) does not support -u option. It seems that it is
8093         supported only on Linux - GNU cp
8094
8095 2005-08-25 Borut Razem <borut.razem AT siol.net>
8096
8097         * sim/ucsim/gui.src/serio.src/Makefile.in,
8098           sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
8099           sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
8100           sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
8101           install and strip, since the strip at /usr/ccs/bin should be used
8102           on solaris
8103
8104 2005-08-24 Borut Razem <borut.razem AT siol.net>
8105
8106         * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
8107
8108 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
8109
8110         * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
8111         ffffffffu
8112
8113 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
8114
8115         * as/mcs51/aslink.h: completed lkrloc.c prototypes
8116         * as/mcs51/lkmain.c (link_main): fixed warning
8117         * device/include/stdbool.h: ds390 has no advanced bit support yet
8118         * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
8119         * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
8120         * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
8121           and updated their macros
8122         * src/SDCCval.c (constVal): updated comment for renamed b_long
8123
8124 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
8125
8126         * as/mcs51/asdata.c: changed ctype['['] to BINOP
8127         * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
8128           (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
8129           (oprio): set priority for '['
8130         * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
8131            and adb_24_bit
8132         * as/mcs51/asm.h: added defines R_BIT and S_BIT
8133         * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
8134         * as/mcs51/lkdata.c: changed ctype['['] to BINOP
8135         * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
8136           added overlayable BIT_BANK area
8137         * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
8138           (summary2): explain 'T' in legenda
8139         * as/mcs51/lkrloc.c: replaced old K&R style,
8140           (relr): added R_BIT processing,
8141           (errmsg): added "Bit-addressable relocation error",
8142           (adb_bit): added for converting from byte- to bit-addressable space,
8143           (adb_24_bit): added for converting from byte- to bit-addressable space
8144         * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
8145            used in reentrant functions now even as return value
8146         * device/lib/_gptrput.c (_gptrput): removed obsolete code
8147         * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
8148           (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
8149         * src/SDCCglobl.h: added indicator BitBankUsed
8150         * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
8151            the bit registers b0-b7
8152         * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
8153           (geniCodeCast): fixed bug 1263853,
8154           (geniCodeLogicAndOr): put result in bool or char,
8155           (geniCodeReceive): added parameter func for accessing the return type,
8156           (geniCodeFunctionBody): pass func to geniCodeReceive
8157         * src/SDCCmain.c: added indicator BitBankUsed
8158         * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
8159         * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
8160           (checkSClass): don't put automatic bool/bit on stack,
8161           (checkFunction): removed check on function cannot return bit
8162         * src/SDCCsymt.h: added newBoolLink prototype
8163         * src/mcs51/gen.c (rb1regs): added bit registers,
8164           (movc): created for assigning to carry,
8165           (pushReg, popReg): created for pushing registers,
8166           (sameRegs): check both AOP_REG and AOP_CRY types,
8167           (aopOp): handle bit registers,
8168           (aopPut): optimization no self-assign,
8169           (saveRegisters): push reg->base (bits) only once for bit registers,
8170            and use pushReg,
8171           (unsaveRegisters): pop reg->base only once and use popReg,
8172           (assignResultValue): added parameter func and return in carry for bits,
8173           (genIpush): optimization no reload in A if not changed,
8174           (genSend): bit parameters in reentrant functions are passed in bit
8175            registers by first assigning to bits in B, then save registers and
8176            copy B to bits,
8177           (genCall): handle returning in Carry properly, save it in F0 if needed,
8178           (genPcall): updated assignResultValue call, this is not safe yet for bit
8179            returning function !!!
8180           (genFunction): don't generate equ's for bit registers and use pushReg,
8181           (genEndFunction): take care of bit returning functions and use popReg,
8182           (genRet): return bit in Carry,
8183           (genIfx): optimize bit registers and other directly addressable bits,
8184           (genReceive): updated assignResultValue call
8185         * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
8186           (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
8187            registers when using stack-auto
8188         * src/mcs51/ralloc.c (_G): added allBitregs,
8189           (regs8051): added the bit registers,
8190           (createStackSpil): use macro IS_BIT,
8191           (getRegBit): added to allocate a bit register, else spill,
8192           (getRegBitNoSpil): added to allocate a bit register, else a gpr,
8193           (updateRegUsage): factored out to ease stepping while debugging,
8194           (serialRegAssign): use updateRegUsage, only spill bits if necessary,
8195            also allocate bit registers,
8196           (fillGaps): handle bit registers,
8197           (findAllBitregs): added to create bit vector with all bit registers,
8198           (mcs51_allBitregs): returns this bit vector,
8199           (mcs51_assignRegisters): when using stack-auto use bit registers for
8200            passing parameters and creating local variables
8201         * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
8202
8203 2005-08-22 Borut Razem <borut.razem AT siol.net>
8204
8205         * device/lib/Makefile.in: replaced find option -or with -o
8206           to make it run on solaris
8207
8208 2005-08-22 Raphael Neider <rneider AT web.de>
8209
8210         * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
8211           fixes #1265442 (crash on Solaris)
8212
8213 2005-08-20 Borut Razem <borut.razem AT siol.net>
8214
8215         * configure, configure.in: added tests for libsocket and libnsl libraries,
8216           requred by sdcdb on sparc-solaris; generate support/regression/Makefile
8217           from support/regression/Makefile.in
8218         * support/regression/Makefile.in: added
8219         * device/lib/pic16/Makefile.common.in: force make to use bash shell
8220         * sim/ucsim/libtool: regenerated on sparc-solaris
8221         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
8222           sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
8223           sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
8224           -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
8225           sparc-solaris, which doesn't use GNU ld linker
8226         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
8227         * as/Makefile: find on sparc-solaris does not support -maxdepth option
8228
8229 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
8230
8231         * src/mcs51/peeph.def: updated comments
8232
8233 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8234
8235         * device/lib/_gptrget.c,
8236         * device/lib/_gptrput.c: slightly shorter
8237         * doc/sdccman.lyx: incremented version
8238         * src/mcs51/peeph.def: moved peephole comments to the line of first
8239           change to better keep line correlation, reanimated 186.e
8240         * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
8241
8242 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
8243
8244         * src/pic/pcode.c : Pasted ".line" assembly directives patch from
8245           David Saxton with quotes around file name.
8246
8247 2005-08-15 Borut Razem <borut.razem AT siol.net>
8248
8249         * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
8250           support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
8251           support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
8252           make tests run on x86_64 platform
8253
8254 2005-08-13 Raphael Neider <rneider AT web.de>
8255
8256         * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
8257           as it might be executed DURING a build (parallel make is wonderful)
8258
8259 2005-08-13 Raphael Neider <rneider AT web.de>
8260
8261         * device/lib/Makefile.in (port-specific-objects-pic16):
8262           revert to cp $(PORT)/bin/*.* $(PORTDIR)
8263         * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
8264           dependency
8265         * device/lib/pic16/Makefile.rules: build subdirs before creating
8266           the library, removed builddir rule, create $(builddir) early in
8267           recurse rule, use empty recurse rule for leaf directories
8268         * device/lib/pic16/Makefile.subdir: added phony targets, ignore
8269           mkdir errors (race condition), removed duplicate suffix "hex"
8270           from clean rules
8271         * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
8272         * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
8273           prevents mkdir -p from aborting on Alpha
8274
8275 2005-08-12 Raphael Neider <rneider AT web.de>
8276
8277         * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
8278           db-statements in order to allow for arrays of pointers in code
8279           sections to be placed without interspersed 0-padding, fixes
8280           bug #1256215
8281         * (emitStatistics): fixed division by zero for pic18f1220
8282         * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
8283           unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
8284         * (pic16_emitDS): respect DB_ITEMS_PER_LINE
8285         * (pic16_pCodeConstString): keep track of already emitted string
8286           literals to prevent "duplicate definitions of symbol _str_NR"
8287         * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
8288           debug message
8289         * device/lib/Makefile.in: ignore failing PIC16 library builds
8290         * device/lib/pic16/Makefile: do not build if gputils are missing
8291         * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
8292
8293 2005-08-10 Raphael Neider <rneider AT web.de>
8294
8295         * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
8296           my last commit)
8297
8298 2005-08-10 Raphael Neider <rneider AT web.de>
8299
8300         * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
8301           Rokas' patch to add the new fixed point type "__fixed16x16"
8302         * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
8303           functions for __fixed16x16 arithmetics
8304         * device/lib/pic16: reimplemented the build system to support
8305           a separate build directory, better handling of libio (create
8306           the library in a separate subdir for each architecture) and
8307           easier configuration (centralized in Makefile.common)
8308
8309 2005-08-07 Raphael Neider <rneider AT web.de>
8310
8311         * src/pic16/gen.c (genrshTwo): fixed sign extension
8312         * src/pic16/device.c: added pic18f2320, 4220 and 4320
8313         * device/include/pic16/pic18f2220.h: changed some bit definitions,
8314           added T0CONbits
8315         * device/include/pic16/pic18f4220.h: NEW, header for
8316           pic18f4220 and pic18f4320
8317         * device/include/pic16/pic18fregs.h: added new devices,
8318           embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
8319         * device/include/pic16/signal.h: resolved name clashes
8320           on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
8321           to also allow testing for interrupt enable bits, added
8322           comments on how to use the macros
8323         * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
8324         * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
8325           register definitions for the devices
8326         * device/lib/pic16/pics.all: added new devices
8327         * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
8328           allocated memory
8329         * device/lib/pic16/libc/stdlib/memfree: do not count
8330           the block header as free memory
8331         * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
8332           simplified and added missing end-of-blocklist-marker
8333           (reported by Peter Onion, fixes #1252814)
8334         * (_mergeHeapBlock): fixed loop condition
8335         * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
8336           len==0, restructured code
8337         * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
8338           up a bit, reduced bitfield accesses, prevent endless loops
8339           in case of heap corruption
8340         * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
8341           "unreferenced arguments/must return a value" warnings
8342         * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
8343           replaced BAUDREG with SPBRG
8344         * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
8345           device/lib/pic16/debug/gstack/gstack.c: replaced
8346           _naked, _asm, _endasm with __naked, __asm, __endasm
8347
8348 2005-08-05 Raphael Neider <rneider AT web.de>
8349
8350         * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
8351           AOP_PCODE operands, fixes multibyte union-bitfield-accesses
8352
8353 2005-08-05 Borut Razem <borut.razem AT siol.net>
8354
8355         * device/lib/Makefile.in: added missing ';'
8356         * configure: removed ^M characters
8357
8358 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8359
8360         * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
8361           device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
8362           License
8363
8364 2005-08-04 Borut Razem <borut.razem AT siol.net>
8365
8366         * configure.in: pic16 libraries build 2nd try - enable running
8367           configure in device/lib/pic16
8368         * configure: regenerated from configure.in
8369         * device/lib/Makefile.in: create $(PORT)/bin directory
8370
8371 2005-08-03 Raphael Neider <rneider AT web.de>
8372
8373         * src/pic16/gen.c (pic16_derefPtr): NEW, single place
8374           to get/set values via pointers
8375         * (genUnpackBits,genPackBits): changed detection of
8376           ptr->bitfield vs. sym.bitfield, fixed access via generic
8377           pointers, removed dead (wrong) code for multibyte bitfields
8378         * (genNearPointerGet, genGenPointerGet): removed useless code,
8379           fixed bitfield detection, fixes #1250594
8380         * (genNearPointerSet): removed useless code
8381         * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
8382           and introduced macro pic16_emitpcode that conditionally emits
8383           the origin of the following pCode (useful for debugging SDCC)
8384         * src/pic16/pcode.c: changed (and disabled) some debug outputs
8385         * (createDefmap): fixed handling of LFSR for --optimize-df
8386
8387 2005-08-02 Borut Razem <borut.razem AT siol.net>
8388
8389         * device/lib/Makefile.in: pic16 libraries build enabled since
8390           gputils-0.13.2 are now localy installed at sourceforge's compile farm
8391
8392 2005-08-02 Raphael Neider <rneider AT web.de>
8393
8394         * src/pic16/gen.c (genPackBits): removed deprecated warning
8395         * (genGenPointerSet): fixed bitfield detection
8396
8397 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8398
8399         * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
8400
8401 2005-07-31 Raphael Neider <rneider AT web.de>
8402
8403         * device/lib/pic16/libdev/pic18f458.c,
8404           device/include/pic16/pic18f458.h: added missing T0CONbits
8405
8406 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
8407
8408         * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
8409
8410 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
8411
8412         * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
8413
8414 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8415
8416         * device/include/mcs51/at89c51ed2.h: added.
8417
8418 2005-07-23 Raphael Neider <rneider AT web.de>
8419
8420         * src/pic/gen.h: added emitpcode macro for debugging
8421         * src/pic/gen.c (emitpcode): renamed to emitpcode_real
8422           and replace by macro adding debug information on demand
8423         * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
8424         * (gencjne): tried to fix; replaced with correct (slower) code
8425         * (gen{Unp,P}ackBits): fixed single bit access
8426         * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
8427         * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
8428           previous instruction
8429         * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
8430           register has to be handled with care (forbidding movement
8431           of assignments/uses, removing assignments completely, ...)
8432         * (pCodeOptime2pCodes): make use of regIsSpecial
8433         * added lots of debugging output (commented out)
8434         * src/pic/rallloc.c (deassignLRs): prevent operand registers
8435           from being reused as result UNLESS it is known to work
8436
8437 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
8438
8439         * support/Util/dbuf.h: include <stddef.h> for size_t
8440         * .version: changed to version 2.5.2
8441
8442 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8443
8444         * src/SDCCloop.c (loopInvariants): fixed bug #1234048
8445
8446 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8447
8448         * src/hc08/gen.c (genMinus): fixed bug #1241835,
8449           (genModOneByte): removed needless psha/pula
8450
8451 2005-07-22 Raphael Neider <rneider AT web.de>
8452
8453         * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
8454           have PIC14 handled like PIC16, fixes broken pic14 linker calls
8455         * src/pic/gen.c (resolveIfx): do not "invent" labels
8456         * (genSkipc): changed to positive logic
8457         * (genSkipCond): removed as no longer needed
8458         * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
8459           backport from PIC16
8460         * (genLeftShift): check operands are in different registers
8461         * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
8462           INCF does not update CARRY...
8463         * src/pic/main.c: fixed _linkCmd
8464         * src/pic/pcode.c (unlinkpCode): added inactive code
8465         * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
8466           alive (do not assign result and operand overlapping registers)
8467
8468 2005-07-22 Raphael Neider <rneider AT web.de>
8469
8470         * src/pic/device.c (dump_sfr): replaced register declaration with
8471           call to emitSymbolToFile() to avoid duplicate symbols
8472         * (assignRelocatableRegisters): do not declare external symbols
8473         * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
8474           right (take size of type, not etype)
8475         * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
8476         * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
8477         * (packRegsForAccUse): disabled assignment of WREG as
8478           the result reg to prevent occurence of just fixed #1235003,
8479           fixes #1242954
8480         * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
8481           symbols (avoids duplicate symbols in .asm file)
8482         * (pic14emitRegularMap): use emitSymbolToFile()
8483         * src/pic/gen.c (aopOp): fixed spillLocation handling
8484         * (gen{Unp,P}ackBits): fixed acquiring bit-operands
8485         * (genDataPointerSet): removed unneccessary variables/output
8486
8487 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
8488
8489         * as/mcs51/lkarea.c: enlarged codemap for banked memory
8490         * device/lib/mcs51/crtbank.asm: added # to 0x0F
8491
8492 2005-07-21 Raphael Neider <rneider AT web.de>
8493
8494         * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
8495           architecture cannot handle them efficiently, fixes bug #1235003
8496         * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
8497           check for empty sets before using them (fixes bug #1232190)
8498
8499 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
8500
8501         * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
8502           (lnksect2): generate warnings for memory overlap
8503         * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
8504           constseg to set the name of these segments so you can instruct the linker
8505           to place them in banks
8506         * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
8507         * src/SDCCglobl.h: added MODEL_HUGE to enum,
8508           added code_seg and const_seg to options
8509         * src/SDCCglue.c (emitMaps): use options.const_seg,
8510           (createInterruptVect): put interrupt vectors in segment HOME,
8511           (glue): put HOME before static segment and put the main glue in HOME,
8512           (glue): use options.code_seg
8513         * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
8514         * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
8515           these segments so you can instruct the linker to place them in banks
8516           (linkEdit): use code_loc for HOME segment which should be the first
8517           segment in code memory now
8518         * src/SDCCmem.c: fixed more stuff like bug 1238386
8519         * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
8520           (changePointer): don't change function pointers to code pointers for
8521           banked functions,
8522           (compareType): added exceptional check for banked function pointers
8523         * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
8524         * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
8525           after static in code memory
8526         * src/mcs51/gen.c: added aopLiteralLong prototype,
8527           (aopForSym): use getSize for functions,
8528           (genCall): generate banked calls over one trampoline __sdcc_banked_call
8529           in HOME with lsb of address in r0, msb in r1 and bank in r2, use
8530           -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
8531           the segment,
8532           (genPcall): use call for literal function pointers and generate banked
8533           calls over the one trampoline so there's only one place for the user to
8534           modify according to his/hers hardware,
8535           (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
8536           (genPlusIncr): moved check icount>4 beyond inc dptr optimization
8537         * src/mcs51/main.c: added keyword banked,
8538           (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
8539         * support/Util/SDCCerr.c,
8540         * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
8541           needed for passing the bank and address to the trampoline
8542         * device/lib/mcs51/crtbank.asm: added for bankswitching
8543         * device/lib/mcs51/Makefile: added crtbank
8544
8545 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8546
8547         * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
8548           for fields at offset 0 of a struct or union as reported
8549           on 2005-07-07 in the developer mailing list.
8550
8551 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
8552
8553         * src/SDCCmem.c: fixed bug 1238386
8554
8555 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8556
8557         * src/mcs51/peeph.def: added labelrefcounting for peepholes
8558           (patch #1144962), added peephole 300, enabled 259.x
8559         * doc/sdccman.lyx: removed screenshot and provided link instead
8560
8561 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8562
8563         * doc/sdccman.lyx: added section about debugging with ddd
8564         * doc/figures/ddd_example.eps: screenshot of debugging session
8565
8566 2005-07-04 Raphael Neider <rneider AT web.de>
8567
8568         * src/pic/gen.c (genPointerGet): handle pointers to CONST values
8569           like CODE pointers, fixes #1115683
8570         * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
8571           call, fixes bugs #1232211, #1228110,
8572           fixed wrong casts to pCodeFlow from pCodeInstructions
8573
8574 2005-07-04 Raphael Neider <rneider AT web.de>
8575
8576         * src/pic/gen.c (popGet): changed assert to allow for
8577           bit operands
8578         * (popGetAddr): changed signature to provide
8579           an additional index, patched all call sites
8580         * (genCmpEq): handle literal-like operands correctly
8581         * (genAddrOf): added sanity checks on __code/__data pointers
8582         * (genAssign): added handling of symbols from __code section
8583         * (gencjne): do not generate code for comparisons whose result
8584           is neither stored nor used, fixes bug #1171114
8585         * (AccLsh, AccRsh): operate on operand instead of WREG
8586         * (shift{Left,Right}_Left2ResultLit): NEW, size independant
8587           replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
8588           by known count
8589         * rewrote complete shift-by-literal logic, commented unused
8590           functions out
8591         * (genConstPointerGet): get multiple bytes (if result size > 1),
8592           fixed handling of non-immediate addresses
8593         * (genPointerGet): handle CODE pointers like CONST pointers
8594         * (genpic14Code): insert C-SRC lines as Cource-pCodes
8595         * ({aop,op}_isLitLike): NEW, single place to decide whether an
8596           operand is to be treated as a literal or not
8597         * (mov2w,genPcall,genCmpEq),
8598           src/pic/genarith.c: use aop_isLitLike() to decide between
8599           literal/register contents
8600         * (addSign): added missing offset
8601         * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
8602           only emit comment in debug-mode,
8603           use {aop,op}_isLitLike throughout the file
8604         * src/pic/glue.c: fix initializers for pointers (work in progress)
8605         * src/pic/pcode.c (get_op): honor index on _const symbols
8606         * ({reset,dump}pCodeStatistics): NEW, estimate code size
8607         * (dumppBlock): added pCode size estimation
8608         * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
8609           check for IS_SYMOP before OP_SYMBOL'ing
8610         * fixed indentation, compacted switch-statements
8611         * (allocReg): find free register and allocate it instead of
8612           allocating new registers all the time
8613         * (deassignLRs): prevent POINTER_GET's from being assigned the same
8614           registers as its operands (necessary only for multibyte GETs)
8615
8616 2005-07-01 Raphael Neider <rneider AT web.de>
8617
8618         * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
8619           debugging .asm-output macros FENTRY + FEXIT
8620         * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
8621           way... I wonder...
8622         * (emitpComment): NEW, printf to pCode
8623         * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
8624           offset handling
8625         * (popGetAddr): NEW, variant of popGet to access an immediates
8626           high(er) bytes instead of the n'th byte of memory they reference,
8627           replaced popGet with popGetAddr where neccessary
8628         * (genDataPointerGet): reactivated and fixed implementation
8629         * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
8630           accesses
8631         * (genDataPointerSet): fixed multibyte assignments
8632         * (genpic14Code): fixed --i-code-in-asm handling
8633         * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
8634         * (genPlus): fixed index-out-of-bounds error
8635         * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
8636         * src/pic/ralloc.c: added debugging output macro FENTRY2
8637         * (spillThis): fixed indentation, enbraced for-body for clarity
8638         * (rematStr): commented out as now unused
8639         * (regTypeNum): commented out special spill case (overwrites
8640           arbitrary values)
8641         * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
8642
8643 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
8644
8645         * doc/sdccman.lyx: documented sfr16/sfr32,
8646           added example for using storage class with function pointers
8647         * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
8648
8649 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
8650
8651         * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
8652         * device/lib/_itoa.c,
8653         * device/lib/_ltoa.c: optimized codesize
8654         * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
8655           but don't know how to suppress the double warning.
8656         * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
8657         * support/Util/SDCCerr.c,
8658         * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
8659
8660 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
8661
8662         * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
8663           fixed old K&R prototypes
8664         * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
8665         * device/lib/_gptrget.c,
8666         * device/lib/_gptrgetc.c,
8667         * device/lib/_gptrput.c: changed versions for new memory indicator values,
8668           also new versions for small generic pointers and banked generic pointers
8669         * src/port.h: added const_name
8670         * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
8671         * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
8672         * src/SDCCcse.c (findPrevIc): check all associative operators
8673         * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
8674         * src/SDCCicode.h: added macro IS_ASSOCIATIVE
8675         * src/SDCCmem.c: updated comments,
8676           set far-space to 0 for pdata, results in optimized code
8677         * src/SDCCmem.h: added macro CONST_NAME
8678         * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
8679           moving the info into the highest bits, see also gptrget/gptrput
8680         * src/src.dsp: added sdcc.ico to project files
8681         * src/avr/gen.c (genCast): fixed bug 0x%d
8682         * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
8683         * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
8684           relation between ptr_type and DCL_TYPE,
8685           (genCast): fixed bug 0x%d
8686         * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
8687           (CODE)" for const_name
8688         * src/hc08/gen.c (genCast): fixed bug 0x%d
8689         * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
8690           (hc08_port): added "CONST (CODE)" for const_name
8691         * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
8692           (aopForRemat, adjustArithmeticResult): disconnected direct relation
8693           between ptr_type and DCL_TYPE,
8694           (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
8695           operand* and took AOP() inside function so sfr-ness can be checked,
8696           (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
8697           new prototype,
8698           (genFunction, genEndFunction): optimized stack setup,
8699           (genMinus): optimized for literals with ending zeroes (in bytes),
8700           (genCast): fixed bug 0x%d
8701         * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
8702           (mcs51_port): added "CONST (CODE)" for const_name
8703         * src/mcs51/peeph.def: made rule 226 more generic
8704         * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
8705         * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
8706         * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
8707         * src/z80/main.c (z80_port): added NULL for const_name,
8708           (gbz80_port): added NULL for const_name
8709         * support/regression/tests/bug663539.c,
8710         * support/regression/tests/sfr16.c: new tests
8711
8712 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8713
8714         * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
8715
8716 2005-06-24 Raphael Neider <rneider AT web.de>
8717
8718         * device/lib/pic16/libdev/pic18f[68][567]20.c:
8719           corrected typos...
8720         * device/include/pic16/signal.h: added USBIF
8721           and SIG_USB
8722
8723 2005-06-24 Raphael Neider <rneider AT web.de>
8724
8725         * device/lib/pic16/libdev/pic18f2455.c,
8726           device/include/pic16/pic18f2455.h: NEW
8727         * device/include/pic16/pic18fregs.h,
8728           device/lib/pic16/pics.all,
8729           src/pic16/device.c: added 18f2455
8730         * device/lib/pic16/libdev/pic18f[68][567]20.c,
8731           device/include/pic16/{pic18f[68][567].h,usart.h}:
8732           replaced MULTIPLE_USARTS define with more relaible
8733           compatibility sfrs (for USART access)
8734
8735 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
8736
8737         * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
8738           and the output asm file line is printed on two lines.
8739
8740 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8741
8742         * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
8743           BGT, BLE, BHI, and BLS instructions
8744         * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
8745           genCmpEq): removed
8746         * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
8747           negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
8748           fixes bug #1216342
8749         * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
8750
8751 2005-06-15 Raphael Neider <rneider AT web.de>
8752
8753         * src/pic16/NOTES: moved Vangelis from active developers to people to contact
8754         * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
8755         * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
8756           fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
8757           OP_SYM_TYPE() instead of OP_SYM_ETYPE()
8758
8759 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8760
8761         * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
8762           Marcel Telka in bug #1215704
8763
8764 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
8765
8766         * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
8767           located in shared memory bank.
8768
8769 2005-05-31 Raphael Neider <rneider AT web.de>
8770
8771         * src/pic16/{gen.c,genarith.c}: replaced sign-extension
8772           "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
8773           "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
8774
8775 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
8776
8777         * device/lib/_strncpy.c: fixed the fix
8778
8779 2005-05-26 Raphael Neider <rneider AT web.de>
8780
8781         * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
8782           initializers with \0, bug #1208187
8783         * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
8784           intializers with \0, bug #1208187
8785
8786 2005-05-26 Raphael Neider <rneider AT web.de>
8787
8788         * src/pic16/glue.c (pic16_printIvalChar): fixed string
8789           initializers with \0, bug #1208187
8790         * src/pic16/main.c (_process_pragma): added sanity checks
8791           for stack position and size, emit warnings when appropriate
8792
8793 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
8794
8795         * device/lib/_strncpy.c: fixed not filling with \0
8796
8797 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8798
8799         * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
8800           createFunction),
8801         * src/SDCC.y (external_definition, enumerator, parameter_declaration,
8802           compound_statement),
8803         * src/SDCCsymt.h,
8804         * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
8805
8806 2005-05-24 Raphael Neider <rneider AT web.de>
8807
8808         * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
8809
8810 2005-05-24 Raphael Neider <rneider AT web.de>
8811
8812         * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
8813           TRISE definitions, closes bug #1162453
8814
8815 2005-05-22 Raphael Neider <rneider AT web.de>
8816
8817         * src/pic16/main.c (_process_pragma): check for missing
8818           arguments to pragmas code and udata
8819         * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
8820           consistency fixes to match other headers (thanks to Jim Paris)
8821         * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
8822
8823 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
8824
8825         * src/SDCCicode.c (isOperandEqual): fixed missing ;
8826
8827 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
8828
8829         * support/regression/tests/bug1198642.c: new test
8830         * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
8831         * src/SDCCcse.c (findPrevIc): added comment, please have a look
8832         * support/scripts/resource.h,
8833         * support/scripts/resource.rc,
8834         * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
8835         * support/scripts/sdcc.ico: added 32x32 icon
8836
8837 2005-05-18 Raphael Neider <rneider AT web.de>
8838
8839         * device/lib/pic16/libdev/pic18f*.c,
8840         * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
8841           keywords to "__sfr" and "__at (X)"
8842         * device/include/pic16/pic18fregs.h: added pic18f4520
8843         * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
8844           #1203088 (MPLAB compatibility)
8845
8846 2005-05-17 Raphael Neider <rneider AT web.de>
8847
8848         * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
8849         * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
8850         * device/lib/pic16/pics.all: added new devices
8851         * src/pic16/device.c: added support for pic18f4520
8852
8853 2005-05-16 Raphael Neider <rneider AT web.de>
8854         * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
8855         * src/pic16/genarith.c (genAddLit): fixed bug 1202480
8856         * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
8857           convenience function for bit access
8858
8859 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
8860
8861         * device/lib/printf_large.c: fixed bug 1193299
8862         * support/regression/tests/bug1057979.c: added test %3.3s
8863
8864 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8865
8866         * device/include/mcs51/8051.h,
8867         * device/include/mcs51/8052.h: made parseable with lint
8868         * device/include/mcs51/lint.h: added include file for (sp)lint
8869         * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
8870         * doc/cdbfileformat.lyx,
8871         * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
8872
8873 2005-05-14 Raphael Neider <rneider AT web.de>
8874
8875         * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
8876         * device/lib/pic16/libc/stdlib/itoa.c (new)
8877         * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
8878         * device/lib/pic16/libio/Makefile: exclude subdir according to
8879           ${subdir}.ignore for certain PICs (lacking e.g. i2c)
8880         * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
8881         * src/pic16/gen.c (genFunction): prevent annoying warning
8882         * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
8883           nameclashes on BeOS
8884         * support/cpp2/cppmain.c (cpp_output_string): new
8885         * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
8886           fixes bug 1116802
8887
8888 2005-05-13 Borut Razem <borut.razem AT siol.net>
8889
8890         * src/SDCCmain.c (linkEdit): fixed bug 1195202
8891
8892 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8893
8894         * .version: changed to version 2.5.1; back to bleeding edge development
8895
8896 2005-05-11 Borut Razem <borut.razem AT siol.net>
8897
8898         * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
8899           generate PDF version 1.3 documents
8900
8901 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8902
8903         * .version: changed to version 2.5.0
8904
8905 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8906
8907         * doc/sdccman.lyx: updated weblinks, index and smaller updates
8908
8909 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8910
8911         * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
8912         --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
8913         well as many smaller updates.
8914         * .version: changed to version 2.5.0-pre1
8915
8916 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8917
8918         * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
8919
8920 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
8921
8922         * support/regression/tests/bug1185672.c: added
8923         * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
8924           bug 1185672
8925         * src/mcs51/gen.c (genCall): added comments, made it look safer
8926         * src/mcs51/gen.c (genEndFunction): simplified
8927
8928 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
8929
8930         * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
8931
8932 2005-04-14 Borut Razem <borut.razem AT siol.net>
8933
8934         * fixed bug 1045046 - SIGSEGV with really simple code?:
8935           src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
8936           src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
8937
8938 2005-04-14 Borut Razem <borut.razem AT siol.net>
8939
8940         * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
8941           src/pic16/device.h: temporarily disabled experimental #inline pragma
8942           for 2.5.0 release
8943
8944 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
8945
8946         * device/include/z80/stdio.h,
8947         * device/include/z80/string.h: removed these highly incomplete files so
8948           SDCC can use the default ones in device/include/
8949
8950 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8951
8952         * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
8953         gcc warning.
8954         * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
8955         fix sdcpp warnings.
8956
8957 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
8958
8959         * device/include/malloc.h: removed redundant __reentrant prototypes
8960         * device/lib/_mullong.c: added working xstack variant in asm (C version
8961           doesn't pass regression tests)
8962         * device/lib/bpx.c: used __data and made bpx char for mcs51
8963         * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
8964           (createFunction): fixed bug with xstackPtr
8965         * src/SDCCcse.c: corrected comments
8966         * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
8967           (killDeadCode, eBBlockFromiCode): removed unused code
8968         * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
8969           corrected comments
8970         * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
8971           assignResultValue, genCall, genFunction, genEndFunction, genAnd,
8972           genOr, genXor, genAddrOf): fixed several bugs concerning xstack
8973           (genModOneByte): fixed warning in MSVC
8974         * src/mcs51/main.c (): added comments
8975         * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
8976
8977 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
8978
8979         * src/SDCCmain.c (linkEdit): oops, changed one line too many
8980
8981 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
8982
8983         * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
8984
8985 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
8986
8987         * src/pic16/glue.c (printIvalChar): fixed bug when emitting
8988         characters arrays of larger size than the declared one.
8989
8990 2005-04-10 Borut Razem <borut.razem AT siol.net>
8991
8992         * src/pic/gen.c (genInline),
8993           src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
8994           (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
8995           (findNextInstruction), (findPrevInstruction),
8996           (findInstructionUsingLabel),
8997           src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
8998         * src/pic/pcode.c (findLabel): added missing '\n'
8999         * src/src.dsp: added SDCCdwarf2.c to the project
9000
9001 2005-04-09 Borut Razem <borut.razem AT siol.net>
9002
9003         * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
9004
9005 2005-04-08 Raphael Neider <rneider AT web.de>
9006
9007         * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
9008           into the chain after a given one) and mergeDefmapSymbols (combine
9009           defmap entries for each symbol per pcode)
9010         * (createDefmap): have defmap entries merged in the end
9011         * (defmapReplaceSymRef): split defmap entries covering two accesses to
9012           a symbol before replacing one access type's symbol, merge symbols in
9013           the end (replacement symbol might already have an entry)
9014         * (assignValnums): keep reference to written WREG intact
9015
9016 2005-04-08 Raphael Neider <rneider AT web.de>
9017
9018         * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
9019           Alpha)
9020
9021 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
9022
9023         * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
9024         bytes
9025
9026 2005-04-07 Raphael Neider <rneider AT web.de>
9027
9028         * device/include/pic16/usart.h: added compatibility defines for
9029           devices with more than one USART
9030         * device/include/pic16/pic18f[68][567]20.h: activated above defines
9031
9032 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
9033
9034         * device/lib/Makefile.in: updated for port specific include
9035
9036 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
9037
9038         * support/regression/ports/mcs51/spec.mk: added mcs51 include
9039
9040 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
9041
9042         * device/include/8051.h,
9043         * device/include/8052.h,
9044         * device/include/at89S8252.h,
9045         * device/include/at89c55.h,
9046         * device/include/at89x051.h,
9047         * device/include/at89x51.h,
9048         * device/include/at89x52.h,
9049         * device/include/mcs51reg.h,
9050         * device/include/reg51.h,
9051         * device/include/reg764.h,
9052         * device/include/regc515c.h,
9053         * device/include/sab80515.h: (re)moved these 12 files
9054         * device/include/mcs51/8051.h,
9055         * device/include/mcs51/8052.h,
9056         * device/include/mcs51/at89S8252.h,
9057         * device/include/mcs51/at89c55.h,
9058         * device/include/mcs51/at89x051.h,
9059         * device/include/mcs51/at89x51.h,
9060         * device/include/mcs51/at89x52.h,
9061         * device/include/mcs51/mcs51reg.h,
9062         * device/include/mcs51/reg51.h,
9063         * device/include/mcs51/reg764.h,
9064         * device/include/mcs51/regc515c.h,
9065         * device/include/mcs51/sab80515.h: and added them here
9066
9067 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
9068
9069         * device/include/stdarg.h: changed SDCC specific keywords to double
9070           underlined form.
9071         * device/include/stdint.h: changed intptr_t and uintptr_t for others than
9072           mcs51 and ds390.
9073         * device/include/hc08/mc68hc908gp32.h,
9074         * device/include/hc08/mc68hc908jb8.h,
9075         * device/include/hc08/mc68hc908jkjl.h,
9076         * device/include/hc08/mc68hc908qy.h: fixed comments
9077         * device/include/mcs51/README: updated
9078         * device/include/mcs51/c8051f120.h: added PINRSF
9079         * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
9080         * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
9081           amidst code. Also inline is not supported.
9082
9083 2005-04-06 Raphael Neider <rneider AT web.de>
9084
9085         * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
9086         * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
9087           callers stack/frame pointers
9088
9089 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
9090
9091         * device/include/pic16/usart.h: added, missing in previous commit,
9092         * device/include/pic16/adc.h: fixed typo,
9093         * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
9094         commit,
9095         * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
9096         <p18fxxx.inc>
9097         * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
9098         uninitialized because a bug appears with gplink
9099         * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
9100         COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
9101         complains for unrecognised option
9102
9103 2005-04-05 Raphael Neider <rneider AT web.de>
9104
9105         * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
9106           structs as well (using memcpy)
9107         * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
9108           on ISRs (GOTO has no label)
9109         * src/pic16/device.h: added OF_OPTIMIZE_DF
9110         * src/pic16/main.c: added compiler switch --optimize-df to enable the
9111           new data flow analysis/optimization
9112         * src/pic16/pcode.c: added (prototypes for and implementation of)
9113           dataflow analysis functions, fixed pCodeInstructions' inCond and
9114           outCond values, made RCALL a branch instruction
9115         * (pic16_unlinkpCode): keep C line if possible
9116         * (pic16_pCodeUnlink): removed cast on left side of assignment, have
9117           C line moved if possible
9118         * (pic16_getRegFrompCodeOp): NEW, improved version of...
9119         * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
9120           to use new pic16_getRegFrompCodeOp (works for more SFRs)
9121         * (pic16_BuildFlow): fixed skip instructions with label (did not start
9122           new flow)
9123         * (pic16_getJumptabpCode): NEW, needed in...
9124         * (LinkFlow): fixed handling of jumptables, calls and conditional
9125           branches
9126         * (pic16_InsertCommentAfter): NEW
9127         * (pic16_pCodeReplace): made verbose and flow preserving
9128         * (AnalyzeFlow): added call to data flow analysis
9129         * src/pic16/pcode.h: added defmaps to pCodeFlow struct
9130         * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
9131         * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
9132
9133 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9134
9135         * src/SDCCast.c (decorateType): fixed bug #1105626
9136
9137 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
9138
9139         * device/include/asm/pic16/features.h,
9140         * pic18f*.h headers,
9141         * device/include/pic16/adc.h,
9142         * device/include/pic16/delay.h,
9143         * device/include/pic16/i2c.h,
9144         * device/include/pic16/malloc.h,
9145         * device/include/pic16/stdio.h,
9146         * device/include/pic16/stdlib.h,
9147         * device/include/pic16/string.h,
9148         * device/lib/pic16/libc/stdio/printf_tiny.c,
9149         * device/lib/pic16/libc/stdio/printf_small.c,
9150         * device/lib/pic16/libc/stdio/strmgpsim.c,
9151         * device/lib/pic16/libc/stdio/strmmssp.c,
9152         * device/lib/pic16/libc/stdio/strmusart.c,
9153         * device/lib/pic16/libc/stdio/vfprintf.c,
9154         * device/lib/pic16/libc/stdlib/ltoa.c,
9155         * device/lib/pic16/libc/stdlib/putchar.c,
9156         * device/lib/pic16/libc/stdlib/x_ftoa.c,
9157         * device/lib/pic16/libc/stdlib/memchrpgm.c,
9158         * device/lib/pic16/libc/stdlib/memchrram.c,
9159         * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
9160         * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
9161         * device/lib/pic16/libio/adc/adcbusy.c,
9162         * device/lib/pic16/libio/adc/adcread.c,
9163         * device/lib/pic16/libio/adc/adcsetch.c,
9164         * device/lib/pic16/libio/usart/ubaud.c,
9165         * device/lib/pic16/libio/usart/ubusy.c,
9166         * device/lib/pic16/libio/usart/udrdy.c,
9167         * device/lib/pic16/libio/usart/uopen.c,
9168         * device/lib/pic16/libio/usart/uputc.c,
9169         * device/lib/pic16/libsdcc/gptr/gptrget1.c,
9170         * device/lib/pic16/libsdcc/gptr/gptrget2.c,
9171         * device/lib/pic16/libsdcc/gptr/gptrget3.c,
9172         * device/lib/pic16/libsdcc/gptr/gptrget4.c,
9173         * device/lib/pic16/libsdcc/gptr/gptrput1.c,
9174         * device/lib/pic16/libsdcc/gptr/gptrput2.c,
9175         * device/lib/pic16/libsdcc/gptr/gptrput3.c,
9176         * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
9177         specific keywords to double underlined form,
9178         * device/lib/pic16/libc/Makefile.rules,
9179         * device/lib/pic16/libsdcc/Makefile.rules,
9180         * device/lib/pic16/libm/Makefile,
9181         * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
9182         to compile with C standard set in Makefile.common
9183         * device/lib/pic16/libc/stdlib/Makefile: added new C sources
9184         rand.c and crc.c in compilation process,
9185         * device/lib/pic16/libsdcc/int/divuint.c,
9186         * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
9187         `c' from signed to unsigned,
9188         * device/lib/pic16/startup/crt0.c,
9189         * device/lib/pic16/startup/crt0i.c,
9190         * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
9191         keywords to double underlined form, bug fixes in _do_cinit function
9192         which prevented the correct initialization of the .idata segment,
9193         * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
9194         core to enter a infinite loop
9195         * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
9196
9197 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9198
9199         * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
9200
9201 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9202
9203         * device/include/Makefile.in: add support for hc08 subdirectory
9204         * device/include/hc08/: new subdirectory
9205         * device/include/hc08/mc68hc908jkjl.h: new header contributed by
9206         Lucas Loizaga, thanks!
9207         * device/include/hc08/mc68hc908qy.h,
9208         * device/include/hc08/mc68hc908gp32.h,
9209         * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
9210         their own directory. Changed internal macro names to use the compiler
9211         reserved namespace. Changed SDCC specific keywords to double
9212         underlined form.
9213         * device/include/math.h,
9214         * device/include/malloc.h,
9215         * device/include/stdarg.h,
9216         * device/include/stdbool.h
9217         * device/include/string.h,
9218         * device/include/tinibios.h,
9219         * device/include/ds400rom.h,
9220         * device/include/8051.h,
9221         * device/include/8052.h,
9222         * device/include/80c51xa.h,
9223         * device/include/at89c55.h,
9224         * device/include/at89S8252.h,
9225         * device/include/at89x51.h,
9226         * device/include/at89x52.h,
9227         * device/include/ds80c390.h,
9228         * device/include/reg764.h,
9229         * device/include/regc515c.h,
9230         * device/include/sab80515.h,
9231         * device/include/mcs51/c8051f000.h,
9232         * device/include/mcs51/c8051f018.h,
9233         * device/include/mcs51/c8051f020.h,
9234         * device/include/mcs51/c8051f040.h,
9235         * device/include/mcs51/c8051f060.h,
9236         * device/include/mcs51/c8051f120.h,
9237         * device/include/mcs51/c8051f300.h,
9238         * device/include/mcs51/c8051f310.h,
9239         * device/include/mcs51/c8051f320.h,
9240         * device/include/mcs51/c8051f330.h,
9241         * device/include/mcs51/c8051f350.h,
9242         * device/include/z180.h: Changed SDCC specific keywords to double
9243         underlined form.
9244
9245 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
9246
9247         * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
9248         18F4455,
9249         * (pic16_assignConfigWordValue): disable testing of configuration
9250         register value with config mask,
9251         * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
9252         function with port->fun_prefix,
9253         * (genFunction): when generating a naked interrupt function never
9254         create an absolute segment placed in interrupt vector address, place
9255         the actual interrupt function at IVA instead, when an interrupt
9256         function is generated with unspecified interrupt then do not create
9257         the absolute section,
9258         * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
9259         code for generating a call to generic pointer get/put function with
9260         a call to function pic16_callGenericPointer(),
9261         * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
9262         the call to the generic pointer get/put functions with prefixing the
9263         function name with port->fun_prefix,
9264         * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
9265         * src/pic16/main.c (_process_pragma): prefix function with
9266         port->fun_prefix,
9267         * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
9268         calling assembler, old 18Fxxxx macro is deprecated,
9269         * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
9270         PC_ASMDIR in while condition,
9271         * (findInstruction): add PC_ASMDIR in while condition,
9272         * (buildCallTree): prefix main with port->fun_prefix,
9273         * (pic16_pCode2str): fixed bug that didn't emit the memory access
9274         identifier for variable with banked access in instructions BTFSS,
9275         BTFSC, BCF, BSF, BTG
9276         * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
9277         * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
9278         * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
9279         perform optimization when enviroment variable NO_REG_OPT is set,
9280         * (insideLRBlock): NEW, return 1 if register is inside an
9281         INF_LOCALREGS block,
9282         * (RemoveRegFromLRBlock): remove a register that is completely
9283         eliminated by register optimization, but it is still left in local
9284         register store/restore in/from stack block,
9285         * (Remove2pcodes): after removing register, check to see if it
9286         should be removed from local register store/restore in/from stack
9287         block,
9288         * src/pic16/ralloc.c (pic16_decodeOp): added decode for
9289         DUMMY_READ_VOLATILE,
9290
9291         * device/include/pic16/adc.h: minor prototype modifications and
9292         update,
9293         * device/include/pic16/malloc.h: added GPL notice various
9294         modifications,
9295         * device/include/pic16/stdint.h: NEW, standard header for ints
9296         * device/include/pic16/delay.h: NEW, header for delay functions,
9297         delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
9298         delay1mtcy,
9299         * device/include/pic16/signal.h: NEW, header providing helper macros
9300         for implementing signal handlers,
9301         * device/include/pic16/stdio.h: added prototypes for functions,
9302         printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
9303         prototypes for stdin and stdout, added macro PUTCHAR to
9304         automatically implement putchar function prototype,
9305         * device/include/pic16/usart.h: modified and updated USART library,
9306         * device/lib/pic16/libio/adc/,
9307         * device/lib/pic16/libio/i2c: some modifications to improve library
9308         performance,
9309         * device/lib/pic16/libc/stdio/: modifications for the new printf*
9310         family of functions,
9311         * device/lib/pic16/libc/stdlib/: various modifications in the malloc
9312         family of functions and other sources,
9313         * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
9314         of the PIC18Fxx[28] devices,
9315         * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
9316         * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
9317         * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
9318         _do_cinit function, because the previous failed when local variables
9319         where not placed in the same memory bank,
9320         * device/lib/pic16/libsdcc/char/: various modifications to improve
9321         library performance,
9322         * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
9323         information on the new functions of the c library and more...
9324
9325 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9326
9327         * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
9328
9329 2005-03-26 Raphael Neider <rneider AT web.de>
9330
9331         * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
9332           if condition == CARRY)
9333         * (genCmp): adapted to new genSkipc semantics
9334         * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
9335           on rIfx (genCmp was broken)
9336
9337 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9338
9339         * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
9340         * src/z80/main.c (_keywords[]),
9341         * src/SDCCglobal.h (struct options),
9342         * src/SDCC.y,
9343         * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
9344         to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
9345         std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
9346         --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
9347         always available in leading double underscore form. The C99 support is
9348         mostly missing, but it's a start.
9349         * support/regression/tests/bug-227710.c: fixed nonconforming use of
9350         reserved identifier "__data".
9351
9352 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
9353
9354         * src/mcs51/peeph.def: fixed bug 1170013
9355
9356 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
9357
9358         * device/include/mcs51reg.h: fixed bug 842007
9359
9360 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9361
9362         * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
9363         last time.
9364
9365 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9366
9367         * src/port.h (struct PORT),
9368         * src/avr/ralloc.c (avr_assignRegisters),
9369         * src/avr/main.c,
9370         * src/ds390/ralloc.c (ds390_assignRegisters),
9371         * src/ds390/main.c,
9372         * src/hc08/ralloc.c (hc08_assignRegisters),
9373         * src/hc08/main.c,
9374         * src/mcs51/ralloc.c (mcs51_assignRegisters),
9375         * src/mcs51/main.c,
9376         * src/pic/ralloc.c (pic14_assignRegisters),
9377         * src/pic/main.c,
9378         * src/pic16/ralloc.c (pic16_assignRegisters),
9379         * src/pic16/main.c,
9380         * src/xa51/ralloc.c (xa51_assignRegisters),
9381         * src/xa51/main.c,
9382         * src/z80/ralloc.c (z80_assignRegisters),
9383         * src/z80/ralloc.h,
9384         * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
9385         * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
9386         * src/SDCCcse.h,
9387         * src/SDCCdflow.c (computeDataFlow),
9388         * src/SDCCdflow.h,
9389         * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
9390         * src/SDCCloop.h,
9391         * src/SDCCcflow.c (*),
9392         * src/SDCCcflow.h,
9393         * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
9394         * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
9395         of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
9396         immedDom() returning wrong block; probably fixes bug #1160833)
9397
9398 2005-03-20 Borut Razem <borut.razem AT siol.net>
9399
9400         * support/scripts/inc2h.pl: WIN32 port
9401
9402 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
9403
9404         * device/lib/makefile.in: added abs.c and labs.c
9405
9406 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
9407
9408         * device/include/stdint.h: added
9409         * device/lib/abs.c: added
9410         * device/lib/labs.c: added
9411         * device/include/stdlib.h: added abs() and labs() prototypes
9412         * device/lib/libsdcc.lib: added abs and labs
9413         * device/include/float.h,
9414         * device/lib/_fsmul.c,
9415         * device/lib/printf_fast.c,
9416         * device/lib/printf_tiny.c: updated comments
9417
9418 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9419
9420         * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
9421         bug #1164313
9422
9423 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9424
9425         * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
9426         * src/SDCCast.c (isLoopCountable): fixed bug #1161985
9427
9428 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
9429
9430         * device/lib/printf_large.c: removed inline assembly for portability and
9431           readability. Use printf_fast if speed or size are more important.
9432         * src/pic16/gen.c: removed conditions around use of DEBUGpc
9433         * src/pic16/genutils.h: added define for DEBUGpc for MSVC
9434
9435 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
9436
9437         * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
9438         prevent compiler warning
9439
9440 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
9441
9442         * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
9443         moved to level 0 and declared as static. Also they are explicit
9444         placed in access bank. This was necessery because some times they
9445         might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
9446         * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
9447         optimizations. Currently only compare to unsigned char is implemented,
9448         * src/pic16/gen.c: added fReturnIdx array,
9449         * (struct resolvedIfx) is moved to gen.h and made public,
9450         * (struct _G): added sregsAlloc and sregsAllocSet fields,
9451         * (aopForSym): added an optimization to directly store in stack of
9452         the operand of a SEND iCode,
9453         * (pic16_aopOp): don't return return registers as strings (AOP_STR)
9454         but as registers instead (AOP_REG) using the fReturnIdx array,
9455         * (pic16_freeAsmop): remove the freed register from the
9456         _G.sregsAlloc field,
9457         * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
9458         a compare of 'WREG',
9459         * (pic16_popGetTempRegCond): changed function prototype, now
9460         function takes also a bitVector argument v which holds the current
9461         set of registers that are allocated for stack access by aopForSym,
9462         registers allocated in aopForSym for accessing stack symbols are not
9463         any more part of the functions usedRegs field,
9464         * (genCall): some times aopOp is called for a stack variable to be
9465         send, aopForSym might perform the push, if this is true make sure
9466         that genCall doesn't push the variable twice by testing _G.resDirect,
9467         * (genFunction): changed testing for unspecified interrupt number
9468         from 256 to INTNO_UNSPEC,
9469         * modified selection scheme of frame pointer generation. Previously
9470         if function did use local registers a frame pointer was generated,
9471         now a frame pointer is generated only if function has arguments
9472         (that need PLUSW2 register access), or has stack arguments, or the
9473         compiler is not instructed to omit the frame pointer,
9474         * (genEndFunction): before restoring local registers that were saved
9475         in the function preamble, also restore the registers that *might*
9476         have been allocated for stack access,
9477         * (genRet): removed some old comments,
9478         * (genCmp, the active (RN's) version): added a call to the
9479         pic16_genCmp_special function to perform the compare with a more
9480         robust and optimized way,
9481         * (genInline): a feature has been added in inline code generation,
9482         which allows a wildcard variable substitution when writing inline
9483         assembly. Code is incomplete and experimental therefore undocumented,
9484         * (genCast): changed order of aopOp for result and right to allow
9485         aopForSym to directly load the result if possible,
9486         * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
9487         perform an optimized compare on some selected special occasions,
9488         * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
9489         * src/pic16/glue.c (pic16createInterrupVect): make sure we never
9490         generate an IVT any more,
9491         * src/pic16/main.c (pic16_optionsTable): added command line option
9492         --optimize-cmp,
9493         * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
9494         macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
9495         macros,
9496         * src/pic16/NOTES: Raphael Neider added in list of active developers
9497         * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
9498         jumptable_end to prevent bug #,
9499         * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
9500         inCond and outCond fields,
9501         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
9502         * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
9503         turn off register spilling,
9504         * (packRegsForOneUse): synced with other ports' versions although it
9505         is not used currently,
9506         * (pic16_packRegisters): added an optimization while reading
9507         structure bitfields, some registers may be saved (malloc code is
9508         decreased by 80 bytes)
9509
9510 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
9511
9512         * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
9513         left is a bitfield, if yes, then don't optimize assignment. Perhaps
9514         this can be optimized more?
9515
9516 2005-03-10 Raphael Neider <rneider AT web.de>
9517
9518         * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
9519           genNearPointerGet): (hopefully) fixed access to bitfields via
9520           pointers (p->bitN = x; and x = p->bitN; failed)
9521
9522 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
9523
9524         * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
9525
9526 2005-03-09 Raphael Neider <rneider AT web.de>
9527
9528         * src/SDCCopt.c (killDeadCode): fixed bug #1156016
9529
9530 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
9531
9532         * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
9533         * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
9534           (regTypeNum): set REG_BIT type if necessary
9535         * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
9536         * support/regression/tests/critical.c: check bug 1144613
9537
9538 2005-03-02 Raphael Neider <rneider AT web.de>
9539
9540         * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
9541
9542 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9543
9544         * src/avr/ralloc.c (serialRegAssign),
9545         * src/ds390/ralloc.c (serialRegAssign),
9546         * src/hc08/ralloc.c (serialRegAssign),
9547         * src/mcs51/ralloc.c (serialRegAssign),
9548         * src/pic/ralloc.c (serialRegAssign),
9549         * src/pic16/ralloc.c (serialRegAssign),
9550         * src/xa51/ralloc.c (serialRegAssign),
9551         * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
9552
9553 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
9554
9555         * src/SDCCast.c (decorateType): fixed bug 1124787
9556
9557 2005-02-20 Hubert Sack <sack AT digiplan.de>
9558         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9559
9560         * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
9561         patch #1121755
9562
9563 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9564
9565         * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
9566         to keep the correct label reference count when adding/removing references
9567         to labels. A peephole file using this is appended to patch #1144962.
9568
9569 2005-02-14 Raphael Neider <rneider AT web.de>
9570
9571         * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
9572         * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
9573         * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
9574           retrievals of result operand's value on assignment
9575
9576 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
9577
9578         * device/include/pic16/string.h: modified prototype for memccpy()
9579         to memccpy(void *, void *, char, size_t)
9580         * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
9581         check whether to omit frame pointer or not,
9582         * (genInline): convert all occurences of "\n" to LF in inline
9583         assembler blocks, this helps formatting the inline text,
9584         * (pic16_loadFSR0): modified prototype,
9585         * (genNearPointerGet, genNearPointerSet): reorganization of code,
9586         removed some 8051 legacy code,
9587         * (genPackBits): enabled handling bitfields exceeding one byte in size,
9588         * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
9589         before allocating temporary registers in functions,
9590
9591 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
9592
9593         * support/regression/tests/bitvars.c: corrected the "fix"
9594
9595 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
9596
9597         * support/regression/tests/bitvars.c,
9598         * support/regression/tests/bitwise.c,
9599         * support/regression/tests/rotate.c: "fixed" problems on Alpha
9600
9601 2005-02-10 Raphael Neider <rneider AT web.de>
9602
9603         * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
9604           different size for Alpha
9605         * src/pic16/gen.c (genCmpEq) : improved compare with 0
9606
9607 2005-02-09 Raphael Neider <rneider AT web.de>
9608
9609         * src/SDCC.lex(doPragma) : save and restore warning options as well
9610           (also added new stack plus clone- and copyAndFreeSDCCERRG())
9611         * have #pragma less_pedantic set the errorlevel to WARNING
9612           (fixes #1117001)
9613         * (cloneOptimize) : fixed wrong malloc's size
9614         * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
9615           facilitate correct handling of #pragma (save|restore)
9616
9617 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
9618
9619         * src/mcs51/gen.c: removed non-standard C nameless struct/union
9620
9621 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
9622
9623         * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
9624
9625 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
9626
9627         * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
9628
9629 2005-02-02 Raphael Neider <rneider AT web.de>
9630
9631         * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
9632         * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
9633         * (pic16_storeForReturn): fixed to allow returning function pointers
9634         * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
9635         * device/include/pic16/{stddef.h,stdbool.h}: added
9636
9637 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
9638
9639         * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
9640
9641 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
9642
9643         * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
9644         * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
9645          appeared to be required
9646
9647 2005-01-31 Borut Razem <borut.razem AT siol.net>
9648
9649         * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
9650           include/mcs51 and include/z80 directories to the package
9651
9652 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9653
9654         * src/hc08/gen.c (genFunction): fixed bug #1112752
9655
9656 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9657
9658         * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
9659
9660 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9661
9662         * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
9663
9664 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
9665
9666         * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
9667
9668 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
9669
9670         * device/include/c8051fxxx.h: removed these 6 files
9671         * device/include/mcs51/c8051fxxx.h: added these 11 new files
9672
9673 2005-01-26 Raphael Neider <rneider AT web.de>
9674
9675         * src/pic16/gen.c (genAssign): fixed assignment from longs
9676           in codespace (were cut to three bytes)
9677         * (genDummyRead): implemented (except for CODESPACE...),
9678           fixed bug #1108575
9679         * src/pic16/glue.c (emitStatistics): beautified
9680         * device/lib/pic16/libm/Makefile: added include path
9681
9682 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9683
9684         * src/z80/gen.c (aopPut): fixed bug #1103902
9685
9686 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9687
9688         * device/lib/expf.c: fixed bug #1095792
9689
9690 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
9691
9692         * device/lib/pic16/libm: added Math library sources
9693
9694 2005-01-24 Raphael Neider <rneider AT web.de>
9695
9696         * src/pic16/pcode.h: added second memory operand to pCodeOpReg
9697           to enable upcast to pCodeOpReg2 (there is no type tag to
9698           differenciate the two and pic16_popGet2p cast into PCOR2)
9699         * src/pic16/main.c (_process_pragma): fixed another malloc bug
9700           (sizeof(sectNames) changed to sizeof(sectName))
9701           Both patches fix segfaults under MinGW.
9702
9703 2005-01-23 Raphael Neider <rneider AT web.de>
9704
9705         * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
9706           Safe_[mc]?alloc()'ed variables
9707         * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
9708           of (byte sized) temporaries (assign them to WREG for now)
9709         * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
9710           (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
9711           this might fix SIGSEGVs on MinGW...
9712         * src/SDCCopt.c (killDeadCode): restored original behaviour
9713           (volatile operands might get thrown away though)
9714
9715 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
9716
9717         * src/pic16/gen.c: fixed bug #1106975,
9718         * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
9719         pointer update, INTCON is saved, global interrupts are disabled and
9720         restored after updateing TOS.
9721         * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
9722         * added function attribute 'shadowregs' to take advantage of shadow
9723         registers,
9724         * added function attribute 'wparam' as an alternative to the wparam
9725         pragma,
9726         * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
9727         user declares a non-ISR function as 'shadowregs',
9728         * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
9729
9730 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
9731
9732         * .version: bumped version number to 2.4.8
9733         * device/lib/pic16/pics.all: list of PIC18F devices supported by
9734         pic16 port,
9735         * device/lib/pic16/libio/i2c/: I2C module support library,
9736         * device/include/pic16/i2c.h: I2C support library header,
9737         * device/lib/pic16/libc/stdio/: standard IO support sources,
9738         * (printf_small.c): printf_small() source, supports float print,
9739         * (printf_tiny.c): printf_tiny() source, does not support floats,
9740         * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
9741         enable global optimizations for entire library source, other
9742         Makefiles in the source tree are also modified to reflect this,
9743         * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
9744         function,
9745         * doc/sdccman.lyx: updated to reflect new changes,
9746         * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
9747         sym->onStack if-case,
9748         * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
9749         sbit, idata, _idata, xdata, _xdata,
9750         * added pragma library, to link an external library, (see doc),
9751         * removed command line options, --pomit-config-words, --pomit-ivt,
9752         --pleave-reset-vector,
9753         * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
9754         when calling assembler to reflect memory model used, also define
9755         macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
9756         reflect stack model used,
9757         * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
9758         on stack return NULL,
9759
9760 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
9761
9762         * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
9763           of the operands is volatile. Fixes #1020220
9764
9765 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
9766
9767         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
9768         * (OptimizeRegUsage): make sure that there is really no other flow where
9769           the first pCode is used
9770
9771 2005-01-22 Raphael Neider <rneider AT web.de>
9772
9773         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
9774           to fix #1106967 (pCode->seq are not set up correctly)
9775
9776 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9777
9778         * src/SDCCglue.c (glue): make sure code area is declared before the
9779         static initialization area.
9780
9781 2005-01-21 Raphael Neider <rneider AT web.de>
9782
9783         * device/lib/Makefile.in: fixed test for pic16 install dir
9784         * device/lib/pic16/*/Makefile*: modified compile flags to enable
9785           optimizations
9786         * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
9787           added --optimize-goto compiler switch and pragma wparam documentation
9788         * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
9789         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
9790           and PRODH closing bug #1071770 (peephole optimizer)
9791
9792 2005-01-19 Raphael Neider <rneider AT web.de>
9793
9794         * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
9795           cmdLine buffers (used when calling sdcpp...) are large enough
9796           (MAX_PATH=256 truncates arguments leading to system halts when
9797           used in MinGW...)
9798         * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
9799         * (genUminus): rewritten to for efficiency
9800         * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
9801           used uninitialized in some cases)
9802         * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
9803           copy the third byte from the int -- now assumes 0x80 (data memory)
9804         * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
9805           operands (genAddLit expects the iCode's operands to swapped as
9806           well), fixed leftover bytes (crashed for short left operands)
9807         * (pic16_genMinusDec): performance improvements, removed false
9808           PIC14 emitSKPNCs
9809         * (pic16_genMinus): fixed to cope with differently sized operands
9810         * src/pic16/glue.c (pic16_glue): added new banksel optimization
9811           for --obanksel > 1
9812         * src/pic16/pcode.c: implemented (first phase of) banksel optimization
9813         * src/pic16/graph.[ch]: implementation of directed graphs, used by
9814           new banksel optimization
9815         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
9816           analysis for temporary registers (segfaults...)
9817         * src/pic16/peeph.def: added rule
9818
9819 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
9820
9821         * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
9822         which converts a float number to its ASCII representation
9823         * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
9824         functions to convert the fractional and integer part of a float to ASCII,
9825         * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
9826         realloc.c): added _MALLOC_SPEC to explicit place variables in data
9827         ram
9828         * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
9829         _STATMEM macros,
9830         * device/include/pic16/adc.h: added GPL info,
9831         * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
9832         a pCodeOp as tested operand,
9833         * (genNearPointerGet): optimized bit testing, does not use
9834         intermediate register for bit value, test directly instead with
9835         BTFSS, BTFSC, works only for single bits,
9836         * (genpic16Code): dump the name of the iCode in the asm,
9837         * src/pic16/ralloc.c (decodeOp): removed static declaration and
9838         renamed to pic16_decodeOp,
9839         * (serialRegAssign): do not allocate a temporary register for iCode
9840         sequences that test a single bit for 1/0
9841
9842 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
9843
9844         * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
9845         pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
9846         access stack and frame pointers. They are initially assigned to
9847         point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
9848         accessing SFRs. Updated all occurences of modification of stack or
9849         frame pointer in gen.c and pcode.c,
9850         * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
9851         assigning of a literal value to pointers,
9852         * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
9853         flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
9854         selected
9855
9856 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
9857
9858         * doc/sdccman.lyx: update documentation about stack pragma, added
9859         some info for stack memory models
9860
9861 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9862
9863         * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
9864
9865 2005-01-08 Raphael Neider <rneider AT web.de>
9866
9867         * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
9868           udata sections to fix bug #1097823
9869
9870 2005-01-05 Raphael Neider <rneider AT web.de>
9871
9872         * src/pic16/gen.c (genGenericShift): added handling of differently
9873           sized left operand and result
9874
9875 2005-01-04 Raphael Neider <rneider AT web.de>
9876
9877         * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
9878         * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
9879           to hold the condition bit)
9880         * added new version of genCmp (old code available via #define)
9881         * added new version of genShiftLeft/genShiftRight in a generic
9882           way, now supports shifting by negative values
9883         * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
9884           shiftCount (expected by genGenericShift)
9885         * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
9886         * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
9887           dump
9888         * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
9889           is an invalid literal too...)
9890
9891 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
9892
9893         * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
9894         from Raphael Neider,
9895         * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
9896         for 8-bit literals. This fixes some literal operands which are sign
9897         extended to 16-bits ints when instruction needs only 8-bits.
9898
9899 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
9900
9901         * device/lib/logf.c: added mcs51 assembly version
9902         * device/lib/expf.c: added mcs51 assembly version
9903         * device/lib/_logexpf.c: new shared asm code for expf and logf
9904         * device/include/math.h: add defines for assembly math library
9905         * device/lib/Makefile.in: build new _logexpf.c
9906         * device/lib/libfloat.lib: use new _logexpf.c
9907
9908 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
9909
9910         * src/pic/device.c
9911         * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
9912           device types which have less than 0x7f registers.
9913
9914 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
9915
9916         * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
9917
9918 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
9919
9920         * device/lib/printf_fast.c: only build on supported arch.
9921         * device/lib/printf_tiny.c: only build on supported arch.
9922         * device/lib/printf_fast_f.c: only build if asm float lib
9923         * device/lib/_fsget1arg.c: only build if asm float lib
9924         * device/lib/_fsget2args.c: only build if asm float lib
9925         * device/lib/_fsnormalize.c: only build if asm float lib
9926         * device/lib/_fsreturnval.c: only build if asm float lib
9927         * device/lib/_fsrshift.c: only build if asm float lib
9928         * device/lib/_fsswapargs.c: only build if asm float lib
9929         * device/include/stdio.h: don't provide print_fast,
9930           print_fast_f, print_tiny prototypes if --xstack used
9931
9932 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
9933
9934         * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
9935         * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
9936           to the SOURCES
9937
9938 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
9939
9940         * device/lib/printf_fast_f.c: same as printf_fast, but
9941           with floating point enabled
9942         * device/lib/printf_fast.c: minor tweaks
9943         * device/include/stdio.h: add printf_fast_f
9944
9945 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
9946
9947         * src/SDCCmain.c: make --float-reent default for mcs51
9948         * device/lib/_fsadd.c: added mcs51 assembly version
9949         * device/lib/_fssub.c: added mcs51 assembly version
9950         * device/lib/_fsmul.c: added mcs51 assembly version
9951         * device/lib/_fsdiv.c: added mcs51 assembly version
9952         * device/lib/_fseq.c: added mcs51 assembly version
9953         * device/lib/_fsneq.c: added mcs51 assembly version
9954         * device/lib/_fsgt.c: added mcs51 assembly version
9955         * device/lib/_fslt.c: added mcs51 assembly version
9956         * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
9957         * device/lib/Makefile.in: add _fscmp to build
9958         * device/lib/libfloat.lib: add _fscmp to build
9959
9960 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
9961
9962         * device/lib/_fs2slong.c: added mcs51 assembly version
9963         * device/lib/_fs2sint.c: added mcs51 assembly version
9964         * device/lib/_fs2schar.c: added mcs51 assembly version
9965         * device/lib/_fs2ulong.c: added mcs51 assembly version
9966         * device/lib/_fs2uint.c: added mcs51 assembly version
9967         * device/lib/_fs2uchar.c: added mcs51 assembly version
9968         * device/lib/_slong2fs.c: added mcs51 assembly version
9969         * device/lib/_sint2fs.c: added mcs51 assembly version
9970         * device/lib/_schar2fs.c: added mcs51 assembly version
9971         * device/lib/_ulong2fs.c: added mcs51 assembly version
9972         * device/lib/_uint2fs.c: added mcs51 assembly version
9973         * device/lib/_uchar2fs.c: added mcs51 assembly version
9974         * device/include/float.h: added #define to select asm vs c
9975
9976 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
9977
9978         * device/lib/printf_fast.c: improvements to float output
9979         * device/include/float.h: add defines for assembly float library
9980         * device/lib/_fsget1arg.c: receive 1 float arg
9981         * device/lib/_fsget2args.c: receive 2 float args (reentrant)
9982         * device/lib/_fsnormalize.c: normalize a float
9983         * device/lib/_fsreturnval.c: return float, various helper routines
9984         * device/lib/_fsrshift.c: right shift a float's mantissa
9985         * device/lib/_fsswapargs.c: swap 2 floats
9986         * device/lib/Makefile.in: build these 6 new files for mcs51
9987         * device/lib/libfloat.lib: add these 6 files to the library
9988
9989 2004-12-26 Borut Razem <borut.razem AT siol.net>
9990
9991         * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
9992           built by gcc 3.4.2
9993
9994 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
9995
9996         * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
9997           and fully reentrant and register bank neutral.
9998         * device/lib/printf_fast.c: added float (not enabled by default),
9999           added compact/slower integer (also not enabled by default),
10000           improved size/speed of fast integer code, other minor changes
10001         * device/include/stdio.h, device/lib/Makefile.in,
10002           device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
10003
10004 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
10005
10006         * src/pic16/pcode.c: declaring variables other than at the start of a
10007           block is not supported in C by VC6.
10008
10009 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
10010
10011         * applied a previous patch from Raphael Neider that wasn't included
10012         in the previous commits, which fixes infinite loops within jumptable
10013         improvements,
10014         * made some fixes that previous patches introduced
10015
10016 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
10017
10018         * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
10019         that fixes an issue with AOP_PCODE asmop's offset,
10020         * (pic16_popCopyReg): update instance field too,
10021         * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
10022         function of pic port,
10023         * (genCmp, genAnd, genAssign),
10024         * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
10025
10026 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
10027
10028         * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
10029         variables initial values to idata section,
10030         * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
10031         variables in some functions. This utilizes parmBytes field of iCode
10032         structure to hold the offset of the variable in stack. (might be
10033         able to use the stack field too?)
10034         * applied patch from Raphael Neider # ### , # ###
10035         * src/pic16/glue.c (pic16emitRegularMap): fix to print static
10036         variable initial values in idata section,
10037         * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
10038         for static variables with initial value
10039         * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
10040         applied fix in while loop from Raphael Neider.
10041
10042 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
10043
10044         * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
10045         * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
10046         * src/ds390/ralloc.c (serialRegAssign): spill bits
10047         * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
10048         * support/Util/SDCCerr.c,
10049         * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
10050         * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
10051         * support/regression/tests/bitwise.c: added test for bitwise complement(~)
10052
10053 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
10054
10055         * device/include/sdcc-lib.h: inserted LGPL, added includes
10056           asm/ds390/features.h and asm/mcs51/features.h
10057         * device/include/asm/default/features.h,
10058         * device/include/asm/gbz80/features.h,
10059         * device/include/asm/z80/features.h: added empty _AUTOMEM
10060           and _STATMEM
10061         * device/include/asm/ds390/features.h,
10062         * device/include/asm/mcs51/features.h: added files with defines for
10063           _AUTOMEM and _STATMEM indicating automatic and static storage class
10064         * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
10065         * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
10066         * src/SDCCicode.c (geniCodeCast),
10067         * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
10068         * src/SDCCloop.c (loopInduction): removed unused variable lr
10069         * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
10070           to convertToFcall to include char modulo (RFE 1065037), added check
10071           if left operand is unsigned and use abs of literal value
10072         * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
10073           as it doesn't work after conversion from peephole.def to peephole.rul
10074         * src/mcs51/gen.c (toBoolean): added check for size,
10075           (genModOneByte): optimized code for signed char modulo a literal
10076           power of 2 (thanks to Hubert Sack),
10077           (genRRC): removed unnecessary "clr c",
10078           (genRLC): replaced "add a,acc" with cheaper "rlc a"
10079         * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
10080           jump optimization,
10081           swapped rules 256.c and 256.d,
10082           extended 256.d by using new multiple checks (thanks Erik),
10083           added rules 256.e and 256.f,
10084           updated rule 261.a and 261.b to new generated code
10085         * support/regression/tests/muldiv.c: added test div/mod by a power of 2
10086
10087 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10088
10089         * src/SDCCloop.c (basicInduction, loopInduction): fixed several
10090           induction related bugs, including first part of bug #1074377
10091
10092 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
10093
10094         * applied patch from bug-report #1076292,
10095         * applied patches for genAnd and Goto-optimizations for Raphael
10096         Neider,
10097         * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
10098         dump a less iCode information,
10099         * src/pic16/device.h (pic16_options_t): added field debgen,
10100         * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
10101         DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
10102         * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
10103         puclic,
10104         * (various functions): added macros FENTRY and FENTRY2 to functions,
10105         to emit function prologue,
10106         * (various functions): fixed indentation,
10107         * (genNearPointerGet): fixed loading of FSR0,
10108         * (genPackBits): applied patch from Raphael Neider to fix updating
10109         of FSR0 and touching only the modified bits,
10110         * src/pic16/genarith.c (various functions): added macros FENTRY to
10111         emit function prologue in comments,
10112         * src/pic16/pcode.h: added functions debugf2, debugf3,
10113         * src/pic16/ralloc.c: partial fix for packForPush caused
10114         segmentation fault,
10115
10116 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10117
10118         * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
10119           <stsp AT users.sourceforge.net> with reversed byte order
10120         * support/regression/tests/rotate.c: added (ds390 skips some tests)
10121
10122 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10123
10124         * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
10125           bug #1074377
10126         * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
10127         * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
10128
10129 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
10130
10131         * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
10132
10133 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10134
10135         * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
10136           conditions,
10137           (setFromConditionArgs): friendly operand parser for peephole rules,
10138           (operandBaseName, operandsNotRelated): new peephole condition
10139           "operandsNotRelated" -- similar to "operandsNotSame", but takes
10140           architecture specific register naming into account, handles n-way
10141           comparisons, and supports quoted literals
10142         * src/mcs51/peeph.def: restored rule 177.d with an extra condition
10143
10144 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10145
10146         * src/mcs51/peeph.def: fixed bug #1076940
10147
10148 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
10149
10150         * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
10151
10152 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10153
10154         Adding support for replacing ljmps with sjmps in jumptables
10155         generated for switch statements. For now you need to set the
10156         environment variable SDCC_SJMP_JUMPTABLE to enable this.
10157         Now 4 algorithms for mcs51 jumptable generation are used:
10158         ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
10159         addresses loaded pc-relative for up to 112 cases and stack-pushing
10160         target addresses loaded with offset from dptr for up to 256 cases.
10161
10162         * src/SDCCpeeph.c: added peephole conditional labelJTInRange
10163         * src/mcs51/main.c: adapted constants for switch table generation
10164         * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
10165
10166 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
10167
10168         * device/lib/printf_large.c (_print_format): fixed bug 1073386
10169         * support/regression/tests/bug1057979.c: added test for bug 1073386
10170
10171 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
10172
10173         * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
10174         compilers
10175
10176 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
10177
10178         * src/pic16/device.h,
10179         * src/pic16/genarith.c,
10180         * src/pic16/glue.c,
10181         * src/pic16/main.c,
10182         * src/pic16/pcode.c: applied patches #1068154 and #1070213
10183
10184 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
10185
10186         Large cummulative patch for pic16 port.
10187         * device/lib/pic16/gstack.h: NEW, user can specify its own handler
10188         to call when a stack overflow occurs,
10189         * (malloc.h): added CVS Id tag,
10190         * (pic18f{242,252,442,452}.h): added T0CONbits structure and
10191         variable,
10192         * added libc directory. The current version of LibC contains string
10193         functions, ctype functions and macros and some functions of the
10194         stdlib set (like malloc/free/atof/atoi etc...). All functions are to
10195         be extensively tested in the future. Standard disclaimer here.
10196         Library is not automatically build yet. But one can build it by
10197         invoking 'make' inside the libc directory.
10198         * added ADC library under libio. Preliminary version yet.
10199
10200         * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
10201         * src/pic16/gen.c (aopForRemat): asmop size is filled by
10202         aopForRemat() now and not by pic16_aopOp(),
10203         * (pic16_popGetTempReg): removed warning messgae when allocating
10204         temporary registers, its a buggy feature and will be removed,
10205         * (pic16_popGet): set register instance field in AOP_CRY,
10206         * (pic16_outBitC): fixed for results in size greater than 1,
10207         * (genUminusFloat): fixed for pic16, ported code from mcs51,
10208         * (pic16_storeForReturn): optimized return of 0,
10209         * (genCmp): experimental code for new genCmp which uses PIC18's
10210         special compare&skip instructions. Initial tests fail some times
10211         with variables grater than 1 byte in size, so new code is disabled,
10212         * (genUnpackBits, genPackBits): more optimizations in reading/writing,
10213         a single bit,
10214         * (genCast): began a fix to optimize the casting of a bit to another
10215         bit, now assigning a bitfield to another bitfield will fail, sorry,
10216         * src/pic16/main.c: disabled the use of lr-support feature,
10217         * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
10218         * added some function prototypes, added function _debugf prototype,
10219         * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
10220         bits with offset (case PO_GPR_BIT),
10221         * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
10222         command line,
10223         * (isBankInstruction): modified to return 0 for no banking instruction,
10224         and 1 for banking instruction,
10225         * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
10226         caused stop processing pCodes after a inline assembly block,
10227         * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
10228         * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
10229         registers when it shouldn't,
10230         * src/pic16/ralloc.c (allocReg): add preliminary support for
10231         supporting a limited set of temporary registers,
10232
10233 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10234
10235         * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
10236           genDataPointerSet): ensure assignments always copy in MSB to LSB
10237           order,
10238           (loadRegFromAop): recognize CLRH optimization,
10239           (genFunction): optimize RECEIVE iCodes in reentrant functions
10240
10241 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10242
10243         * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
10244           --out-fmt-s19 turning into --out-fmt-elf if s19 was already
10245           selected.
10246         * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
10247         * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
10248           contiguous with data
10249
10250 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10251
10252         * device/lib/_gptrget.c (_gptrget),
10253         * device/lib/_gptrgetc.c (_gptrgetc),
10254         * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
10255           instead of sjmp to ret
10256         * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
10257           by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
10258
10259 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
10260
10261         * .version: bumped version to 2.4.7
10262         * device/lib/_gptrget.c (_gptrget): is now _naked
10263         * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
10264         * device/lib/_gptrput.c (_gptrput): is now _naked
10265         * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
10266           (createFunction): fixed xstack
10267         * src/SDCCglue.c (emitMaps): set allocation required for bit area
10268         * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
10269           or bit either,
10270           (geniCodeCritical): store original interrupt state in an iTemp bit
10271           var unless stack-auto
10272         * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
10273         * src/SDCCmain.c (setIncludePath): added include/target to search path
10274         * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
10275         * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
10276           prototype,
10277           (processFuncArgs): put bit vars in bit area
10278         * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
10279           unsaveRBank): fixed xstack,
10280           (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
10281           (genFunction, genEndFunction): fixed xstack,
10282           (genAssign): optimization don't walk backwards through mem
10283         * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
10284         * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
10285         * support/regression/Makefile: also make library (for stack-auto) when
10286           making "all" and added "test-mcs51-xstack-auto"
10287         * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
10288         * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
10289         * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
10290         * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
10291         * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
10292           make-library by MAKE_LIBRARY
10293         * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
10294           regression tests for xstack
10295         * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
10296         * support/regression/tests/critical.c: test for critical on mcs51
10297
10298 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10299
10300         * support/regression/ports/ucz80/spec.mk: use include and lib files from
10301           built version of sdcc instead of installed version
10302
10303 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
10304
10305         * src/mcs51/gen.c (toBoolean): fixed bug 1065458
10306         * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
10307           vprintf.c now
10308         * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
10309         * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
10310           WARNING: remove device/lib/build/z80/printf.o by hand when
10311           updating from previous build!
10312         * device/lib/z80/printf.c: updated comment
10313         * support/regression/tests/bug1057979.c: test all ports now
10314         * support/regression/tests/bug1065458.c: file added
10315
10316 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10317
10318         * src/z80/gen.c (genFunction, genEndFunction): avoided generating
10319           *_start and *_end symbols for static functions
10320
10321 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
10322
10323         * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
10324           and search crt0.o in all library paths,
10325           (setIncludePath): proper handling of --nostdinc,
10326           (setLibPath): proper handling of --nostdlib
10327         * support/regression/Makefile,
10328         * support/regression/ports/ds390/spec.mk,
10329         * support/regression/ports/gbz80/spec.mk,
10330         * support/regression/ports/hc08/spec.mk,
10331         * support/regression/ports/mcs51/spec.mk,
10332         * support/regression/ports/mcs51-large/spec.mk,
10333         * support/regression/ports/mcs51-stack-auto/spec.mk,
10334         * support/regression/ports/z80/spec.mk: use include and lib files from
10335           built version of sdcc instead of installed version
10336         * doc/sdccman.lyx: fixed typo in --nostdinc
10337
10338 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
10339
10340         * src/pic/pcode.c,
10341         * src/pic/device.c,
10342         * src/pic/ralloc.c,
10343         * src/pic/gen.c : added support to generate code for struct bit fields.
10344
10345 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
10346
10347         * as/xa51/xa_version.h,
10348         * device/include/errno.h,
10349         * device/include/regc515c.h,
10350         * device/lib/_itoa.c,
10351         * device/lib/_ltoa.c,
10352         * device/lib/ser_ir_cts_rts.c,
10353         * sim/ucsim/xa.src/glob.cc,
10354         * sim/ucsim/xa.src/inst_gen.cc,
10355         * sim/ucsim/xa.src/xa_bit.cc,
10356         * sim/ucsim/xa.src/xa_sfr.cc,
10357         * sim/ucsim/z80.src/inst_dd.cc,
10358         * sim/ucsim/z80.src/inst_fdcb.cc,
10359         * support/scripts/keil2sdcc.pl,
10360         * src/pic16/pic16.dsp,
10361         * src/pic16/pic16a.dsp: corrected cvs line endings
10362         * device/lib/printf_large.c: fixed bug 1057979
10363         * src/pic16/gen.c: fixed non-C standard code
10364         * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
10365         * src/SDCCglobl.h: changed pack_iram to no_pack_iram
10366         * support/regression/ports/mcs51/support.c: reload T1 asap
10367         * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
10368           pdata use and clear idata startup behaviour
10369         * support/regression/tests/bug1057979.c: added
10370
10371 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
10372
10373         * device/examples/ds390/ow390/ad26.h,
10374         * device/examples/ds390/ow390/cnt1d.h,
10375         * device/examples/ds390/ow390/crcutil.c,
10376         * device/examples/ds390/ow390/ownet.h,
10377         * device/examples/ds390/ow390/owsesu.c,
10378         * device/examples/ds390/ow390/swt12.h,
10379         * device/examples/ds390/ow390/swtoper.c,
10380         * device/examples/ds390/ow390/temp10.h,
10381         * device/examples/ds390/ow390/thermodl.c,
10382         * device/examples/ds390/tinitalk/tinitalk.dsp,
10383         * device/examples/ds390/tinitalk/tinitalk.dsw,
10384         * device/examples/mcs51/clock/hw.h,
10385         * device/examples/mcs51/simple2/go.bat,
10386         * device/examples/serialcomm/windows/serial.h,
10387         * device/examples/xa51/dummy.c,
10388         * device/examples/xa51/hello.c,
10389         * device/include/80c51xa.h,
10390         * device/include/at89x051.h: corrected cvs line endings
10391
10392 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
10393
10394         * src/pic16/main.c (options): added command line --gstack, to trace
10395         stack over/under flows,
10396         * added pragma 'wparam' to allow passing first byte of function
10397         parameters via WREG, syntax is #pragma wparam my_function[, func2...]
10398         * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
10399         call to __gstack_test function and sets up the symbol as extern,
10400         * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
10401         * popaop): added call to pic16_testStackOverflow,
10402         * (wParamCmp, inWparamList): NEW, test existence of a symbol in
10403         wparamList list,
10404         * (genCall, genPcall): now all parameters are passed via stack
10405         except in functions that are pass to wparam pragma in which WREG is
10406         used too,
10407         * (genPcall): REENTRANT flag is checked to see if variable prototype
10408         contains reentrant keyword, don't call a non-reentrant function, via
10409         a reentrant function pointer or vice versa, functions are never
10410         passed via WREG,
10411         * (genJumpTab): applied patch from bug #1057478 by R.Neider and
10412         D.Winkler,
10413         * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
10414         SIGSEGV when accessing a NULL register stucture,
10415         * (pic16_printGPointerType): modified to handle UPPER modifier for
10416         function initializers, changed prototype of function to simpler one,
10417         * (pic16_printIvalFuncPtr): check to see if function is already
10418         added in externs list,
10419         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
10420         optimized a move from W to SFR with a move to the same register
10421         later after a CALL,
10422         * device/lib/pic16/debug: NEW directory, contains debug features
10423         which are enabled when linking with libdebug.lib, currently command
10424         line option --gstack enables stack pointer tracing for over/under
10425         flow, corresponding sources are in debug/gstack
10426
10427 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
10428
10429         * doc/sdccman.lyx: updated SDCC version,
10430         * (PIC16 port): update list of command line options,
10431         * src/pic16/device.h (structure pic16_options_t): added field gstack
10432         to enable stack overflow tracing on push/pops,
10433         * src/pic16/device.c (statistics structure): added statistics
10434         structure,
10435         * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
10436         pic16_dump_int_registers): increase statistics counters for each
10437         * variable which is encountered
10438         * (pic16_dump_usection): emit each .udata variable to its own udata
10439         section,
10440         * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
10441         when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
10442         parameters via stack, otherwise use old scheme,
10443         * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
10444         assembler output file,
10445         * src/pic16/main.c: added command line options --gstack to enable
10446         push/pop tracing for stack overflow,
10447         * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
10448         instructions): added size of each instruction,
10449         * (pic16_countInstruction): estimate size of instructions in
10450         the_pFile list, inline assembly blocks are not counted,
10451         * (pic16_FixRegisterBanking): trace previous register usage, when
10452         banksel optimizations is greater than 0, don't emit a redudant
10453         banksel directive,
10454
10455 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
10456
10457         * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
10458         * src/pic16/ralloc.c : applied same fix for pic16.
10459         * src/pic/gen.c : tidied it up a little.
10460
10461 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10462
10463         * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
10464         thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
10465
10466 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10467
10468         * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
10469
10470 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10471
10472         * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
10473         non-reentrant function __modsint in the interrupt function (thus
10474         corrupting math operations during serial I/O)
10475         * device/lib/ser_ir.c: as above, changed buffersize
10476         * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
10477         256.c,d for zeroing
10478         * doc/Makefile: added option -t for rsync
10479
10480 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10481
10482         * src/SDCCast.h (struct ast),
10483         * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
10484
10485 2004-10-20 Borut Razem <borut.razem AT siol.net>
10486
10487         * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
10488         package
10489
10490 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
10491
10492         * device/lib/pic16/libsdcc/Makefile: added lregs directory in
10493         makefile targets,
10494         * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
10495         support functions to replace long sequences of MOVFF's from access
10496         bank registers to stack and vice versa,
10497         * src/pic16/device.h: added new field opt_flags, where optimization
10498         flags can be set to enable certain features,
10499         * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
10500         * pBlock, (genFunction, genEndFunction): surroung loop for
10501         saving/loading used registers in stack with PC_INFO pCodes,
10502         INF_LREGS. Code in between can then be optimized by pCode optimizer
10503         to support function calls,
10504         * (genDataPointerSet): fixed bug which loaded float fields in
10505         structures with corrupt data,
10506         * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
10507         in a standard way debug info on stderr. Feature used for developing
10508         and debugging only,
10509         * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
10510         obsolete chunks of code,
10511         * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
10512         * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
10513         * pic16/src/pcode.c (pic16_newpCodeInfo,
10514         * (pic16_newpCodeOpLocalRegs),
10515         * (pic16_convertLocalRegs2Support): NEW, to support new optimization
10516         feature,
10517         * (pic16_pCodeConstString): printing of the initial value of a
10518         symbol as a comment is inhibited since parsing was already done by
10519         copyStr and output is corrupt,
10520         * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
10521
10522 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10523
10524         * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
10525
10526 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
10527
10528         * as/mcs51/lkarea.c: removed old K&R style,
10529           (lnksect): changed check on boundary error,
10530           (lnksect2): changed check on boundary error,
10531           (lnksect2): extend XSTK to end of page if size = 1
10532         * as/mcs51/lkmain.c: removed old K&R style,
10533           (Areas51): create l_IRAM symbol
10534         * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
10535         * device/lib/Makefile.in: renamed model-mcs51-reentrant to
10536           model-mcs51-stack-auto, added model-mcs51-xstack-auto
10537         * device/lib/_mullong.c: added version to be compiled with xstack
10538         * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
10539         * device/lib/mcs51/crtxclear.asm: clear pdata as well
10540         * device/lib/mcs51/crtxstack.asm: fixed comment
10541         * src/SDCCglue.c: maxInterrupts defaults to 0,
10542           (emitMaps): added pdata,
10543           (createInterruptVect): (re)moved default,
10544           (glue): added pdata,
10545           (glue): moved __start__xstack to XSTK with default size 1
10546         * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
10547           and options.float_rent when options.stackAuto is set,
10548           (linkEdit): only write XDATA_NAME if provided on command line
10549         * src/SDCCmem.h,
10550         * src/SDCCmem.c: added pdata
10551         * src/port.h: added pdata_name to PORT
10552         * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
10553           (saveRegisters, unsaveRegisters): removed usage of B,
10554           (genMinus): fixed accumulator clash,
10555           (genJumpTab): added comment, this needs another look
10556         * src/mcs51/gen.c: added check for "B in use" paranoia,
10557           added pushB() and popB()
10558         * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
10559           chance
10560         * src/avr/main.c,
10561         * src/ds390/main.c,
10562         * src/hc08/main.c,
10563         * src/mcs51/main.c,
10564         * src/pic/main.c,
10565         * src/pic16/main.c,
10566         * src/xa51/main.c,
10567         * src/z80/main.c: (reset_regparms) made void parameter explicit and
10568           added PSEG (PAG,XDATA) or NULL to port specifier
10569         * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
10570         * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
10571           (_mcs51_genInitStartup): removed __start__xstack equ,
10572           (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
10573         * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
10574         * src/z80/gen.c (_rleAppend): fixed warnings
10575         * support/regression/tests/zeropad.c: added pdata test
10576         * .version: bumped to 2.4.6
10577
10578 2004-10-17 Borut Razem <borut.razem AT siol.net>
10579
10580         * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
10581         as a part of nightly build
10582
10583 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
10584
10585         * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
10586         WREG holds the first byte function parameters,
10587         * (aopForSym): take special case for symbols which are in FARSPACE
10588         but in CODESPACE too,
10589         * (assignResultValue): modified to take into account _G.useWreg,
10590         * (genCall): don't use wreg for parameter passing when function is
10591         declared as reentrant, too, added optimization INCF to stack
10592         pointer when stack parameter count is 1,
10593         * (genFunction, genEndFunction): refurnished and fixed to not using
10594         wreg for passing parameters when function has varargs or is
10595         reentrant, fixed bug with symbol name compare for generating
10596         functions in absolute address,
10597         * (pic16_storeForReturn): refurnished,
10598         * (genCmp): began writing a new version of the function, not ready
10599         yet, therefore it is disabled,
10600         * (genAssign): do not read code memory when assigning a function to
10601         a pointer function,
10602         * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
10603         array of characters, not pointer,
10604         * (pic16initialComments): in debug mode emit an .ident directive for
10605         the assembler,
10606         * (_process_pragma): emit a new warning type (internal to pic16)
10607         when setting stack to default length, emit a similar warning when
10608         placing a function at absolute address and address is not word aligned
10609         * (_pic16_parseOptions): added 'return TRUE' statement,
10610         * (_pic16_linkEdit): if compiling a source, then add the source's
10611         file object, first in the list of objects to link,
10612
10613 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
10614
10615         * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
10616         * src/pic/main.c : removed VC warning.
10617         * src/pic/gen.c : changed comment.
10618
10619 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
10620
10621         * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
10622         reference to a deprecated symbol _GPTRREG was causing failure to
10623         link. Thanks G. M. Gallant for the info.
10624
10625 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
10626
10627         * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
10628         comments for Bugs item #954788.
10629
10630 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
10631
10632         * src/pic16/device.c (pic16_dump_gsection,
10633         * pic16_groupRegistersInSection): handle symbols declared to be in
10634         access bank differently,
10635         * src/pic16/gen.c (struct _G): added field resDirect,
10636         * (aopForSym): if symbol on stack and iCode is '=' and result exists,
10637         send values read from stack directly to result and don't allocate
10638         temporary values,
10639         * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
10640         same registers,
10641         * (pic16_sameRegsOfs): NEW,
10642         * (freeAsmop): if _G.resDirect is set then do not mark registers as
10643         free because they were not allocated from temporary pool,
10644         * pic16_popRegFromString): workaround to fix a problem with
10645         allocating variables twice or never,
10646         * (genGenPointerGet): using PRODL instead of FSR0H,
10647         * (genGenPointerSet): using POSTDEC1 (that is a stack location)
10648         instead of FSR0H,
10649         * (genAssign): take advantage of the _G.resDirect flag,
10650         * (genCast): around line 11844, use mov2f instead of directly
10651         MOVFF'ing between operands to account for literal values,
10652         * src/pic16/genutils.c: some new debug functions for gpsim have been
10653         added,
10654         * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
10655         float with integer part only,
10656         * src/pic16/main.c (_process_pragma): handle pragma udata access to
10657         place variables in access bank
10658         * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
10659         updated sources to reflect recent changes in gen.c
10660
10661 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
10662
10663         * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
10664         sources that searched for headers in installation path, now the
10665         device/include/pic16 is used,
10666         * src/pic16/glue.c (pic16glue),
10667         * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
10668         .line directives if not in debug mode, this suppresses assembler's
10669         warnings for ignored directives
10670
10671 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
10672
10673         * src/port.h: made reset_regparms prototype void parameter explicit.
10674         * src/SDCCsymt.c (processFuncArgs): removed argument "func".
10675         * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
10676         * doc/sdccman.lyx: documented warning disabling and how to use
10677           printf_large to make it print floats.
10678         * device/include/stdbool.h: NEW
10679         * device/lib/_atof.c,
10680         * device/lib/_divuint.c,
10681         * device/lib/_divulong.c,
10682         * device/lib/expf.c,
10683         * device/lib/printf_large.c,
10684         * device/lib/sincosf.c,
10685         * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
10686         * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
10687           a completely reentrant lib.
10688
10689 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
10690
10691         * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
10692         * device/include/pic16/stdio.h: fixed bug with colon
10693
10694 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
10695
10696         * device/include/pic16/stdio.h,
10697         * device/include/pic16/stdlib.h,
10698         * device/include/pic16/math.h: NEW
10699         * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
10700         declared as _naked to reduce overhead
10701         * device/lib/Makefile.in (target port-specific-objects-pic16):
10702         changed * to *.* so to ignore the CVS directory,
10703         * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
10704         stacked variables back in stack,
10705         * (genEndFunction): fixed bug reported by G.M. Gallant with stack
10706         corruption
10707
10708 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
10709
10710         * .version: bumped version number to 2.4.5
10711         * support/Util/SDCCerr.h: added warning W_POSSBUG2.
10712         * support/Util/SDCCerr.c (messages structure): added entry for
10713         W_POSSBUG2
10714
10715         Large cumulative patch for pic16 port and libraries.
10716         * device/include/pic16/sdcc-lib.h,
10717         * device/include/pic16/stdarg.h,
10718         * device/include/asm/pic16/features.h,
10719         * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
10720         * device/include/pic16/float.h: changes reentrant keyword with
10721         _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
10722         * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
10723         updated target build-libraries to include objects from gptr,
10724         * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
10725         _IL_REENTRANT to all function headings, included sdcc-lib.h header,
10726         * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
10727         all function headings,
10728         * src/SDCCmain.c: added global parameter userIncDirsSet,
10729         * (parseCmdLine): when option -I is encountered add directory to
10730         userIncDirsSet too,
10731         * src/version.awk: added space between control and long,
10732         * src/pic16/NOTES: added some notes for the port,
10733         * src/pic16/gen.c: added prototype for mov2fp function,
10734         * (fReturnpic16[]): properly named return value registers,
10735         * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
10736         * (aopForSym): added code to handle symbols with onStack flag set,
10737         symbols onStack are allocated PTRSIZE bytes,
10738         * (aopFreeAsmop): handles special case where asmops are stack objects,
10739         * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
10740         * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
10741         added argument lock to trace flaws in allocating temporary registers
10742         when developing port,
10743         * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
10744         * (pic16_popRegFromString): reenabled allocating a direct register
10745         from string,
10746         * (assignResultValue): various beautifications,
10747         * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
10748         referenced function argument,
10749         * (genIpush): reenabled to allow stacked arguments, handles only
10750         ic->parmPush iCodes,
10751         * (genCall, genPcall): major changes to allow for variable argument
10752         functions, fixed a bug with falsely restoring stack pointer after
10753         returning from call,
10754         * (genFunction): pending code for critical function,
10755         * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
10756         * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
10757         * (genNearPointerGet): fixed bug with indirect reading, was always
10758         reading from INDF0
10759         * (genGenPointerGet, genGenPointerSet): rewrote to support generic
10760         pointers,
10761         * (genAddrOf): rewrote code to take address of a stacked function parameter
10762         * (genCast): fixed casting to generic pointer type,
10763         * src/pic16/gen.h: added AOP_STA,
10764         * (struct asmop): added field stk,
10765         * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
10766         * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
10767         * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
10768         * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
10769         * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
10770         * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
10771         generic pointers,
10772         * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
10773         and library paths,
10774         * (pic16_port structure): generic pointer size is set to 3,
10775         * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
10776         * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
10777         compiler warning,
10778         * src/pic16/ralloc.c (allocReg): prevent allocating register when
10779         operand is an iTemp,
10780
10781 2004-09-24 Martin Helmling <mh AT octo-soft.de>
10782
10783         * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
10784         * debugger/mcs51/simi.c: addapt new syntax of s51
10785
10786 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
10787
10788         * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
10789         * src/pic16/pcode.c: commented out some calls to free() in order to
10790         fix bug #989576,
10791
10792 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10793
10794         * src/SDCCicode.h,
10795         * src/SDCCicode.c (isiCodeInFunctionCall),
10796         * src/avr/ralloc.c (selectSpil),
10797         * src/pic/ralloc.c (selectSpil),
10798         * src/pic16/ralloc.c (selectSpil),
10799         * src/ds390/ralloc.c (selectSpil),
10800         * src/hc08/ralloc.c (selectSpil),
10801         * src/xa51/ralloc.c (selectSpil),
10802         * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
10803         stack in the middle of a function call sequence (fixes bug #1020268)
10804         * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
10805         costs associated with the minimum switch case.
10806
10807 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10808
10809         * src/SDCC.lex: fixed bug #1030549
10810
10811 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10812
10813         * src/SDCCcse.h (struct cseDef),
10814         * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
10815         over a function call if the CSE is derived from a symbol whose
10816         address has been taken (fixes bug #1029883)
10817         * support/regression/tests/bug-1029883: a new regression test for
10818         this bug
10819
10820 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10821
10822         * src/hc08/gen.c (emitinline): fixed bug #1029778
10823         * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
10824         to a cast object is no longer a syntax error ("fixes" bug #1030006,
10825         and starts toward RFE #905167)
10826
10827 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
10828
10829         * src/pic16/gen.c (mov2f): New function to move an operand to
10830         another without considering if it is a literal or a register,
10831         * (pic16_sameRegs): don't check if they are both AOP_REG,
10832         * (AccRsh): removed andmask=0 lines,
10833         * (genLeftShift): duplicated to be improved in future versions,
10834         * src/pic16/main.c (_process_pragma): emit stack default size in hex,
10835         * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
10836         in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
10837         * (pic16initMnemonics): added initialization for POC_INFSNZW,
10838         * (insertBankSwitch): fixed inserting banksel directives algorithm
10839         for instructions that follow a skip instruction, this fixes a report
10840         for broken subtraction code generation,
10841         * src/pic16/ralloc.c (deassignLRs): do not free register if current
10842         iCode is a left op, just in case result and right share the same
10843         registers
10844
10845 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10846
10847         * src/hc08/main.c,
10848         * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
10849         preservation of HX
10850         * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
10851         * src/mcs51/ralloc.c (packRegisters): removed the patch applied
10852         on 2004-09-12; it was buggy
10853
10854 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
10855
10856         * src/SDCCsymt.h: removed RESULT_CHECK
10857         * src/SDCCast.c,
10858         * src/SDCCglue.c,
10859         * src/SDCCval.c,
10860         * src/pic/glue.c,
10861         * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
10862
10863 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
10864
10865         * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
10866         * src/pic16/device.c (pic16_assignConfigWordValues): wrong
10867         configuration values no more rejected by compiler, they are assigned
10868         to configuration registers with a warning message instead,
10869         * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
10870         the for-loop so last conf register is emitted too,
10871         * (_pic16_initPaths): link library libsdcc.lib by default,
10872         * (_hasNativeMulFor): modified test for multiplication according to
10873         Raphael Neider's remarks. Integer multiplication is also done with
10874         support functions,
10875         * device/include/pic16/pic18fregs.h: corrected type error in while
10876         testing and including 18f6720 header file
10877
10878 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
10879
10880         * src/pic16/device.h (pic16_options): removed field use_crt,
10881         * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
10882         until an optimization to handle single bits is added,
10883         * (pic16_loadFSR0): moved before genUnpackBits,
10884         * (genAnd): some white lines removed,
10885         * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
10886         leave_reset flags in pic16_options when using crt modules,
10887
10888 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
10889
10890         * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
10891           for bugs 898889 & 979599. Also used some safer print instructions.
10892
10893 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
10894
10895         * src/pic16/device.h (pic16_options_t): added field use_crt,
10896         crt_name, no_crt,
10897         * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
10898         catch a probable future bug,
10899         * src/pic16/gen.c: aopIdx function commented out,
10900         * (genAssign): commented out old code which used aopIdx,
10901         * src/pic16/glue.c (pic16glue): removed some legacy fragments of
10902         code, added if conditionals to take into account the --use-crt
10903         command line options,
10904         * src/pic16/main.c (pic16_optionsTable): added new command line
10905         options, --use-crt= and --no-crt,
10906         * (_pic16_linkEdit): now the proper crt object is added in the
10907         linker command line except than when --no-crt is specified,
10908         * src/pic16/pcode.c,
10909         * src/pic16/pcode.h: added some structures and functions for a new
10910         optimization scheme to compansate for instruction overhead between
10911         same iCodes, this scheme is currently under development and is not
10912         working in any way,
10913         * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
10914         to && operator,
10915         * device/lib/pic16/startup/crt0i.c,
10916         * device/lib/pic16/startup/crt0iz.c: added global char variable
10917         __uflags to force the generation of an idata section
10918
10919 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
10920
10921         * doc/Makefile,
10922         * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
10923         * doc/sdccman.lyx: updated sdcc version to 2.4.4
10924
10925 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10926
10927         * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
10928         Frieder) and clarified the default code optimization mode
10929
10930 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10931
10932         * src/SDCC.lex (doPragma, process_pragma),
10933         * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
10934         "opt_code_size", and "opt_code_balanced"
10935         * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
10936         regrouped options by category, added support for category headers
10937         * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
10938         and "--opt-code-size"
10939         * doc/sdccman.lyx: documented these new options and pragmas
10940         * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
10941         preference into account
10942
10943 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
10944
10945         * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
10946           geniCodePreDec): Fixed bug 904237 by generating a warning
10947         * src/SDCCerr.h,
10948         * src/SDCCerr.c: added warning W_SIZEOF_VOID
10949
10950 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
10951
10952         * src/pic/device.c : When no max ram set validate full memory range.
10953         * src/pic/pcode.c,
10954         * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
10955
10956 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
10957
10958         * device/lib/_gptrget.c,
10959         * device/lib/_gptrput.c: updated comment
10960         * device/lib/calloc.c,
10961         * device/lib/free.c,
10962         * device/lib/malloc.c,
10963         * device/lib/realloc.c: added LGPL, made them reentrant-safe
10964         * src/SDCCcse.c (cseBBlock),
10965         * src/SDCCicode.c (printOperand, geniCodeArray),
10966         * src/SDCCicode.h (struct operand): fixed bug 868103
10967         * support/regression/tests/bug-868103.c: added
10968         * src/SDCCast.c (searchLitOp),
10969         * src/SDCCcse.h (struct cseDef),
10970         * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
10971         * src/SDCCicode.h (struct operand),
10972         * src/SDCCsymt.h (struct sym_link),
10973         * src/avr/gen.c (hasInc),
10974         * src/ds390/gen.c (hasInc),
10975         * src/hc08/gen.c (genPlusIncr, hasInc),
10976         * src/mcs51/gen.c (hasInc),
10977         * src/pic16/glue.c (pic16_printIvalChar),
10978         * src/pic16/ralloc.c (regWithIdx),
10979         * src/xa51/gen.c (hasInc) : removed warnings
10980         * src/SDCCast.c (createBlock): added comment ???
10981         * src/hc08/ralloc.c: updated comments
10982
10983 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10984
10985         * doc/sdccman.lyx: updated section on switch statements, added
10986         section about semaphore locking
10987         * doc/Makefile: added option -info for latex2html
10988         * device/lib/_gptrget.c,
10989         * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
10990
10991 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
10992
10993         * src/pic/device.h,
10994         * src/pic/device.c,
10995         * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
10996          maxram is less than 0x100.
10997
10998 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
10999
11000         * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
11001
11002 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11003
11004         * src/port.h,
11005         * src/mcs51/main.c,
11006         * src/ds390/main.c,
11007         * src/z80/main.c,
11008         * src/hc08/main.c,
11009         * src/pic/main.c,
11010         * src/pic16/main.c,
11011         * src/avr/main.c,
11012         * src/xa51/main.c
11013         * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
11014         a jump table is the best form for a switch statement, including
11015         automatic insertion of missing cases to make the case range
11016         continuous. Developed in collaboration with Frieder Ferlemann.
11017
11018 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11019
11020         * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
11021         accumulator result if it needs sign extension
11022
11023 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
11024
11025         * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
11026
11027 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
11028
11029         * device/lib/gbz80/printf.c,
11030         * device/lib/z80/printf.c: removed define for NULL
11031
11032 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
11033
11034         * as/xa51/xa_link.c,
11035         * device/examples/ds390/ow390/ad26.c,
11036         * device/examples/ds390/ow390/cnt1d.c,
11037         * device/examples/ds390/ow390/counter.c,
11038         * device/examples/ds390/ow390/ds2480.h,
11039         * device/examples/ds390/ow390/ds2480ut.c,
11040         * device/examples/ds390/ow390/findtype.c,
11041         * device/examples/ds390/ow390/gethumd.c,
11042         * device/examples/ds390/ow390/owllu.c,
11043         * device/examples/ds390/ow390/ownetu.c,
11044         * device/examples/ds390/ow390/swt12.c,
11045         * device/examples/ds390/ow390/swtloop.c,
11046         * device/examples/ds390/ow390/temp.c,
11047         * device/examples/ds390/ow390/temp10.c,
11048         * device/examples/ds390/ow390/thermo21.c,
11049         * device/examples/ds390/ow390/tinilnk.c,
11050         * device/examples/ds390/ow390/tstfind.c,
11051         * device/examples/serialcomm/windows/serial.cpp,
11052         * device/examples/serialcomm/windows/test_serialcomm.cpp,
11053         * device/include/reg51.h: fixed line endings for cvs
11054
11055 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11056
11057         * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
11058         packRegsForAccUse, packRegisters): new accumulator register
11059         packing algorithm
11060         * support/regression/ports/hc08/support.c (_putchar): suppress
11061         warning of unused variable
11062         * src/SDCCicode.c: added SWAP entry to codeTable
11063
11064 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
11065
11066         * device/lib/sprintf.c: forgot to add this file before previous commit
11067
11068 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
11069
11070         * src/pic16/gen.c (genPackBits): added operand right in function
11071         parameters, load result directly if p_type is POINTER (that is
11072         called by genNearPointerSet)
11073         * (genUnPackBits): added operand left in function parameters,
11074         * (genNearPointerGet, genNearPointerSet): prevent the loading of
11075         FSR0 if accessing bitfields,
11076
11077 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
11078
11079         * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
11080           _print_format; updated printf, sprintf, vsprintf
11081         * device/include/asm/default/features.h: corrected comment/define
11082         * device/lib/Makefile.in: added sprintf.c
11083         * device/lib/libsdcc.lib: added sprintf module
11084         * device/lib/printf_large.c,
11085         * device/lib/vprintf.c,
11086         * device/lib/sprintf.c: totally refactored printf_large and vprintf
11087           into these 3 files
11088         * support/regression/Makefile: changed ALL_PORTS into a usefull default
11089         * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
11090         * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
11091           hc08 test
11092         * support/regression/tests/zeropad.c: define idata as data for hc08
11093
11094 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11095
11096         * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
11097         * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
11098         labels are referenced at least once (even if a reference is not found)
11099         * src/hc08/gen.c (emitcode): set isComment flag for comments
11100         * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
11101         loads), rules 6a..6b (optimize jumps to return)
11102
11103 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11104
11105         * device/lib/acosf.c (acosf),
11106         * device/lib/asinf.c (asinf),
11107         * device/lib/atanf.c (atanf),
11108         * device/lib/ceilf.c (ceilf),
11109         * device/lib/cosf.c (cosf),
11110         * device/lib/coshf.c (coshf),
11111         * device/lib/cotf.c (cotf),
11112         * device/lib/fabsf.c (fabsf),
11113         * device/lib/floorf.c (floorf),
11114         * device/lib/log10f.c (log10f),
11115         * device/lib/logf.c (logf),
11116         * device/lib/sinf.c (sinf),
11117         * device/lib/sinhf.c (sinhf),
11118         * device/lib/sqrtf.c (sqrtf),
11119         * device/lib/tanf.c (tanf),
11120         * device/lib/tanhf.c (tanhf),
11121         * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
11122         replaced all instances of "reentrant" in the library functions
11123         defined in math.h with this macro.
11124         * support/regression/tests/float_trans.c: reenabled test for hc08
11125
11126 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
11127
11128         * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
11129         erroneously deleted
11130
11131 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11132
11133         * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
11134         * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
11135         multi-byte volatile operands are used
11136         * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
11137         * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
11138         initialization to area GSINIT0 so that it would always precede
11139         any static initializers in GSINIT
11140         * support/regression/tests/zeropad.c: fixed idata define for hc08
11141         * support/regression/tests/bug-927659.c,
11142         * support/regression/tests/float_trans.c: disabled tests for hc08
11143         pending missing library routines
11144         * .version: increased version number to 2.4.4 - hc08 port now passes
11145         regression tests
11146
11147
11148 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
11149
11150         * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
11151         * Makefile.common.in,
11152         * as/Makefile,
11153         * as/hc08/Makefile.in,
11154         * as/mcs51/Makefile.in,
11155         * as/z80/Makefile.in,
11156         * debugger/mcs51/Makefile.in,
11157         * device/include/Makefile.in,
11158         * device/lib/Makefile.in,
11159         * doc/Makefile,
11160         * link/Makefile,
11161         * link/z80/Makefile.in,
11162         * packihx/Makefile.in,
11163         * sim/ucsim/main_in.mk,
11164         * sim/ucsim/avr.src/Makefile.in,
11165         * sim/ucsim/doc/Makefile.in,
11166         * sim/ucsim/gui.src/serio.src/Makefile.in,
11167         * sim/ucsim/hc08.src/Makefile.in,
11168         * sim/ucsim/s51.src/Makefile.in,
11169         * sim/ucsim/xa.src/Makefile.in,
11170         * sim/ucsim/z80.src/Makefile.in,
11171         * src/Makefile.in,
11172         * support/cpp2/Makefile.in,
11173         * support/librarian/Makefile,
11174         * support/makebin/Makefile: added DESTDIR to the install path proposed
11175         by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
11176         * doc/sdccman.lyx: added DESTDIR documentation
11177
11178 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
11179
11180         * src/pic16/gen.c (genFunction, genEndFunction): fixed return
11181         instruction for interrupt handlers, use fast returns when returning
11182         from high priority interrupts
11183
11184 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11185
11186         * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
11187         code generation
11188         * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
11189         * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
11190         bugs, ported much of Bernhard's code from mcs51
11191         * src/mcs51/gen.c (genSend),
11192         * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
11193         than one when calling a reentrant function
11194         * device/lib/_mullong.c: defined an alternate struct layout for big
11195         endian ports (hc08)
11196
11197 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11198
11199         * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
11200         test
11201
11202 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11203
11204         * src/SDCCsymt.c (processFuncArgs): make sure parameter types
11205         are sane and complete before asking the port its prefered parameter
11206         passing method (fixes bug #1017633)
11207         * device/lib/hc08/_ret.c: added "data" storage class to _ret2
11208         and _ret3
11209
11210 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11211
11212         * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
11213         problem in bitfields >= 8 bits.
11214
11215 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
11216
11217         * src/SDCCsymt.c: undid changes that were not meant to be committed
11218
11219 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
11220
11221         * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
11222
11223 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
11224
11225         * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
11226           copied and wrong bit got inverted
11227
11228 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11229
11230         * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
11231         genFarPointerSet into genPointerSet; eliminated genFarPointerSet
11232         * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
11233         genFarPointerGet into genPointerGet; eliminated genFarPointerGet
11234         * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
11235         assignments to bitfields at known addresses
11236         * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
11237         reads from bitfields at known addresses
11238         * src/hc08/ralloc.c (packRegisters),
11239         * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
11240         genhc08Code): optimize pointer get values used as conditionals
11241         * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
11242         and branch
11243
11244 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11245
11246         * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
11247         genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
11248         * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
11249         as conditionals
11250
11251 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11252
11253         * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
11254
11255 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11256
11257         * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
11258         related problems
11259
11260 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
11261
11262         * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
11263
11264 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11265
11266         * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
11267         mcs51 port
11268
11269 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
11270
11271         * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
11272
11273 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11274
11275         * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
11276         cases use more compact code.
11277
11278 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
11279
11280         * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
11281
11282 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11283
11284         * src/SDCClrange.c (findPrevUse): fixed bug #1007371
11285
11286 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11287
11288         * src/SDCCsymt.h,
11289         * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
11290         parameter of changePointer() from symbol* to sym_link*
11291         * src/SDCCast.c (decorateType): call changePointer() for CAST op
11292         * src/SDCCsymt.c (compareType): void* type is castable to other
11293         pointers, but not necesarily an exact match.
11294         * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
11295         is no longer blindly treated as an exact match.
11296         * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
11297
11298 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
11299
11300         * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
11301
11302 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
11303
11304         * src/pic/gen.c,
11305         * src/pic/pcode.c,
11306         * src/pic/ralloc.h,
11307         * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
11308
11309 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
11310
11311         * src/pic/device.c,
11312         * src/pic/device.h,
11313         * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
11314
11315 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11316
11317         * src/mcs51/gen.c (emitcode): fixed bug #992819
11318
11319 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
11320
11321         * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
11322           there's no need to make it worse
11323
11324 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11325
11326         * src/mcs51/ralloc.c (deassignLR),
11327         * src/ds390/ralloc.c (deassignLR),
11328         * src/hc08/ralloc.c (deassignLR),
11329         * src/z80/ralloc.c (deassignLR),
11330         * src/pic/ralloc.c (deassignLR),
11331         * src/pic16/ralloc.c (deassignLR),
11332         * src/avr/ralloc.c (deassignLR),
11333         * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
11334         rlivePoint): fixed another part of bug #971834
11335
11336 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11337
11338         * src/z80/main.c: enabled "critical" keyword
11339         * src/z80/mappings.i,
11340         * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
11341         functions (fixes bug #979646)
11342         * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
11343
11344 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11345
11346         * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
11347           such as c:\mydir.
11348
11349 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
11350
11351         * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
11352           doesn't disable too much optimizations
11353
11354 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
11355
11356         * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
11357
11358 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
11359
11360         * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
11361
11362 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
11363
11364         * src/pic/gen.c tidied up tabs
11365         * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
11366         * src/pic/main.c tidied up tabs
11367         * src/pic/pcode.c tidied up tabs and disabled verbose code generation
11368         * src/pic/pcoderegs.c tidied up tabs
11369         * src/pic/ralloc.c tidied up tabs
11370
11371 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
11372
11373         * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
11374         to S_FIXED for pic16 port and when symbol is not in level 0,
11375         allocate for S_REGISTER storage class and pic16 port, too,
11376         * src/pic16/device.h: prototype for checkSym,
11377         * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
11378         * (pic16_assignConfigWordValue): test the value and the mask to
11379         validate that the value is suitable for the configuration word,
11380         * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
11381         collect extern declared symbols, don't emit symbol twice, check
11382         first if symbol is in publics set first,
11383         * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
11384         * added command line '--fstack' which enables an experimental
11385         feature for stack access, too buggy to be used yet...
11386         * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
11387         * (pic16_allocDirReg): when register has storage class S_REGISTER
11388         allocate in pic16_dynAccessRegs,
11389         * device/include/pic16/pic18f????.h: modified configuration word
11390         naming convention, words started as CONFIG0H but should be CONFIG1H
11391
11392 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
11393
11394         * device/include/mcs51reg.h: fixed bug 970993
11395
11396 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
11397
11398         * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
11399         * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
11400         * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
11401         * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
11402         * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
11403         * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
11404           error/warning numbers,
11405           added function setWarningDisabled()
11406         * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
11407         * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
11408           _memcmp.c _memmove.c calloc.c realloc.c free.c
11409         * support/regression/tests/malloc.c: added tests for new functionality
11410         * support/regression/tests/zeropad.c: added tests for truncated initializers
11411           and initialized char arrays starting with '\x0'
11412         * src/mcs51/peeph.def: fixed regression, added peephole 177.f
11413
11414 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
11415
11416         * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
11417
11418 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11419
11420         * doc/sdccman.lyx: updated example in section "Absolute Addressing"
11421         * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
11422         peephole 177.e. Thanks to anonymous
11423
11424 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
11425
11426         * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
11427         function isn't used in the source but referenced as a
11428         variable initializer then declare it as extern in .asm file
11429
11430 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
11431
11432         * .version: increased version number to 2.4.3
11433
11434         Adding version extension according to ChangeLog CVS revision
11435         * src/Makefile.in (target all): added dependency 'version.h'
11436         * (rule version.h): added rule to create version.h from ChangeLog,
11437         * (rule dep): added dependency version.h,
11438         * src/version.awk: AWK script to create version.h
11439         * src/SDCCdwarf2.c (dwWriteModule),
11440         * src/SDCCglue.c (initialComments),
11441         * src/SDCCmain.c (printVersionInfo): modified to write after
11442         version string the version extension number,
11443         * src/SDCCutil.c: included "version.h"
11444         * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
11445         number,
11446         * src/SDCCutil.h: added prototype for getBuildNumber
11447
11448         * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
11449         includeDirsSet, too,
11450         * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
11451         const char [] is found in function prototype...
11452
11453         * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
11454         moving to WREG with source is already in WREG,
11455         * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
11456         * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
11457         * (aopForSym): stack'ed symbols are partially supported, added
11458         if-clause to support symbols in FARSPACE,
11459         * (sameRegs): added test for AOP_ACC to see if registers are same,
11460         * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
11461         * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
11462         * (pic16_popRegFromString): will not allocate a new register if it
11463         doesn't find one by name, bug may have introduced...
11464         * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
11465         * (genIpush): revived to use pic16 port's stack,
11466         * (genAddrOf): added incomplete case for stack'ed operand,
11467         * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
11468         * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
11469         can handle multibyte operands,
11470         * src/pic16/glue.c (pic16_printIval*): some debug info added,
11471         * (pic16initialComments): added message for MPLAB compatibility
11472         mode enabled,
11473         * src/pic16/main.h: prototype for pic16_mplab_comp,
11474         * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
11475         which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
11476         * (_pic16_linkEdit): NEW, handles link stage, transferred here
11477         because of increased complexity of procedure,
11478         * (_process_pragma): stack pragma changed to format 'stack pos len',
11479         emit symbol '_stack_end' to conform with gplink,
11480         * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
11481         to search for register,
11482         * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
11483         PO_GPR_REGISTER,
11484         * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
11485         #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
11486         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
11487         case for PO_GPR_REGISTER,
11488         * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
11489         dies, the new era is ahead !...
11490         * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
11491         pic16_dynInternalRegs,
11492         * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
11493         * (pic16_allocDirReg): minor optimizations and bug fixes,
11494         * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
11495
11496         * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
11497         load stack and frame pointer with address of 'stack_end' symbol
11498
11499 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
11500
11501         * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
11502         without source code but only variable initializers
11503
11504 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
11505
11506         * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
11507         external are not declared as extern to reduce overhead while linking
11508
11509 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
11510
11511         * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
11512
11513 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
11514
11515         * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
11516           Yee Keat for the patch
11517         * src/SDCCast.c (decorateType): fixed bug #979599
11518         * src/ds390/gen.h: removed local fReturnSizeDS390
11519         * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
11520         * src/ds390/gen.c (genAnd, genOr, genXor),
11521         * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
11522
11523 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
11524
11525         * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
11526         add relFilesSet to $3, manipulate $2 to handle linking of object
11527         files without source files in command line,
11528         * device/include/pic16 (all headers): added ID location macros,
11529         * src/pic16/device.c (struct PIC16_device Pics16[]): added field
11530         entries for ID location bytes,
11531         * (pic16_assignIdByteValue): NEW,
11532         * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
11533         added field dumpcalltree to pic16_options_t,
11534         * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
11535         is used instead of pic16_Gstack_base_addr, check if (ifx) before
11536         emitting rFalseIfx label after check_carry label,
11537         * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
11538         pic16_emitDIRegs), NEW
11539         * (pic16glue): dump .calltree file when option --calltree found,
11540         * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
11541         * (_pic16_genAssemblerPreamble): emit ID locations after
11542         configuration registers,
11543         * (pic16_linkCmd): modifications of the link command,
11544         * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
11545         * (pic16_pCodeInitRegisters): don't init stack registers,
11546         * (pic16_findPrevInstruction): fixed bug,
11547         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
11548         bug with immediate registers,
11549         * (buildCallTree): traces stack push and pop,
11550         * (pct2): dump also stack usage for each function,
11551         * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
11552         * (pic16_allocDirReg): various modifications,
11553         * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
11554         fixed to 1,
11555
11556 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
11557
11558         * src/pic16/pcode.c: removed buggy double colon
11559
11560 2004-07-01 Borut Razem <borut.razem AT siol.net>
11561
11562         * support/scripts/sdcc.nsi: added include/pic16 to setup
11563
11564 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
11565
11566         * device/lib/Makefile.in: fixed bug in target objects-pic16,
11567         * device/lib/pic16/Makefile: prefixed with dash (-) command under
11568         target 'clean',
11569         * doc/sdccman.lyx: changed version to 2.4.2 and added some port
11570         specific command line arguments. Also added sample lkr script
11571         for placing a variable at a specific memory bank.
11572         * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
11573         at a specific memory bank,
11574         * (pic16_dump_isection): fixed bug which caused string literals to
11575         be omitted when dumping idata section,
11576         * (pic16_groupRegistersInSection): added code to handle registers
11577         in specific memory banks,
11578         * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
11579         public, all references are renamed too,
11580         * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
11581         AOP_DPTR2,
11582         * (pic16_storeForReturn): added case to handle when dest is WREG,
11583         * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
11584         * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
11585         pic16_rel_udata, check to see if that register is marked as being
11586         a member of a specific memory bank,
11587         * (pic16_printIvalCharPtr): added code to add string literals either
11588         to code or the idata sections,
11589         * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
11590         also accept the 'udata' pragma,
11591         * src/pic16/main.h: new structure types sectName and sectSym
11592         * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
11593         * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
11594         * (pic16_findPrevInstruction): fixed, it returned nothing,
11595         * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
11596         instruction combinations,
11597         * (pic16_FixRegisterBanking): heavily reorganised,
11598         * (pic16_AnalyzeBanking): if generating banksel directives is
11599         disabled, then don't call FixRegisterBanking at all,
11600         * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
11601         completely removed,
11602         * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
11603
11604 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
11605
11606         * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
11607         Phuah Yee Keat <yk.phuah AT nestac.com>
11608
11609 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
11610
11611         * src/pic16/glue.c (pic16createInterruptVect): function now emits
11612         correctly the IVT even if it is relocated to some other location
11613
11614 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
11615
11616         * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
11617         * device/include/pic16/pic18f2220.h: NEW,
11618         * device/lib/pic16/libdev/pic18f2220.c: NEW,
11619         * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
11620         * src/pic16/device.c (struct Pics16): added info for 18f2220,
11621         * src/pic16/device.h (struct pic16_options): added ivt_loc and
11622         nodefaultlibs, ivt_loc is the location of the interrupt vector
11623         table, and nodefaultlibs signs that default libraries should not be
11624         linked in link stage,
11625         * src/pic16/gen.c (genFunction): relocate interrupt vector functions
11626         according to --ivt-loc argument,
11627         * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
11628         when pragma stack is found,
11629
11630 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11631
11632         * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
11633         256 (range check), 257 (do while), 258.a-f (bit banging
11634         f.e. on 3-wire SPI bus)
11635
11636 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11637
11638         * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
11639         variables used exclusively within a loop
11640
11641 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
11642
11643         * src/mcs51/gen.c (genCpl): quick fix for bug #974835
11644
11645 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11646
11647         * src/SDCClrange.c (computeClash): fixed bug #971834
11648
11649 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11650
11651         * src/mcs51/gen.c (genCmp): fixed bug #975903
11652         * src/hc08/gen.c (operandsEqu),
11653         * src/ds390/gen.c (operandsEqu),
11654         * src/z80/gen.c (operandsEqu),
11655         * src/pic/gen.c (operandsEqu),
11656         * src/pic16/gen.c (operandsEqu),
11657         * src/mcs51/gen.c (operandsEqu): fixed bug #976283
11658         * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
11659
11660 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11661
11662         * src/SDCCcse.c (cseBBlock): fixed bug #966963
11663
11664 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
11665
11666         * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
11667         default case in switch statement,
11668         * glue.c (pic16_initPointer): expr is initialised via decoarteType
11669         to eliminate problem with initialisation of pointers, but problem
11670         still exists,
11671         * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
11672         * (emitStaticSegment): removed various lines emitting debug info,
11673         * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
11674         added processor registers for utilizing EEPROM,
11675         * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
11676         configurable and set 8
11677
11678 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
11679
11680         * .version: increased version number to 2.4.2,
11681
11682         Cumulative patch for pic16 port
11683         * src/pic16/device.c: changed scheme to dump initial values for
11684         variables in idata segment, all print_idata* functions were removed,
11685         now the pic16_printIval* will be called,
11686         * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
11687         * _pic16_printPointerType, pic16_printPointerType,
11688         * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
11689         * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
11690         NEW, similar to the respective functions in SDCCglue.c,
11691         * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
11692         way, emitting hex bytes,
11693         * (pic16_emitDS): NEW, emits a string for pointer initialisation,
11694
11695 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11696
11697         * src/avr/ralloc.c (serialRegAssign),
11698         * src/xa51/ralloc.c (serialRegAssign),
11699         * src/pic/ralloc.c (serialRegAssign),
11700         * src/pic16/ralloc.c (serialRegAssign),
11701         * src/hc08/ralloc.c (serialRegAssign),
11702         * src/z80/ralloc.c (serialRegAssign),
11703         * src/ds390/ralloc.c (serialRegAssign),
11704         * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
11705
11706 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11707
11708         * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
11709         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
11710
11711 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
11712
11713         Cumulative patch for pic16 port:
11714         * src/pic16/device.h (typedef PIC16_device) modified fields for
11715         defining microcontrollers,
11716         * src/pic16/device.c: added new info for all devices in Pics16 array,
11717         * src/pic16/gen.c (genPcall): fixed bug that caused the return label
11718         to be optimised out by the pCode optimiser,
11719         * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
11720         specially, bug reported by G.M. Gallant,
11721         * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
11722         as force'd so that cannot be optimised out by pCode optimiser,
11723         * src/pic16/pcode.c,
11724         * src/pic16/pcodepeeph.c,
11725         * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
11726         they are disabled by default, but can be enabled explicit with
11727         command argument --denable-peeps, for testing,
11728         * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
11729         --pomit-ivt in COMPILE_FLAGS
11730
11731 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
11732
11733         * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
11734           compilation on MSVC
11735
11736 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
11737
11738         * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
11739
11740 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11741
11742         device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
11743         0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
11744
11745 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
11746
11747         * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
11748         would only assign 0x300001 register.
11749
11750 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
11751
11752         * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
11753         in COMPILE_FLAGS. Thanks to G. Gallant for report.
11754
11755 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11756
11757         * doc/sdccman.lyx: minor changes, mentioned beta vendor support
11758         for ds80c400
11759         * src/mcs51/peeph.def: ran unexpand -a over peeph.def
11760         * src/mcs51/peeph.def: removed obsolete peephole 100.a,
11761         added peephole 254 (left shift), 255 (jump table)
11762
11763 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
11764
11765         * device/lib/Makefile.in: removed comment line with model-pic16,
11766         * (target port-specific-objects-pic16): the libraries and objects
11767         are copied to the build directory form the device/lib/pic16/bin
11768         directory
11769
11770         Cumulative patch concerning pic16 port:
11771         * library directory has been re-organized,
11772         * added support for PIC18F1220,
11773         * added headers and library sources for chips 18f1220,18f6520,
11774         18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
11775
11776         * configuration registers setting has changed, now each supported
11777         device has a complete description of the registers it uses,
11778         * all initialisations are moved to idata sections, these section
11779         can be absolute or relocatable,
11780         * fixed initialisation of codespace variables,
11781         * fixed warning about PCLATU and gpsim,
11782         * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
11783         * (genAssign): use table reads when assigning from variables in codespace,
11784         * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
11785         char/int variables placed in codespace,
11786         * (pic16_emitConfigRegs): NEW, emits a list with configuration
11787         registers set in .asm file, no need for --pomit-config-words anymore,
11788         * (pic16glue): some 8051 legacy segments are commented out
11789         (to be removed completely),
11790         * added support for alternative assembler and linker with --asm=
11791         and --link= command line arguments,
11792         * peepholes are disabled automatically in the port, no need to
11793         specify on command line,
11794         * port supports natively char/int/long multiplication, but converts
11795         all divisions to support functions,
11796         * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
11797         to the file set in variable $2,
11798         * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
11799         strings in ASCII format and not in hex,
11800         * ralloc.c (serialRegAssign): added a triplet of conditional calls
11801         to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
11802         allocate proper register if iCodes aren't temporary,
11803
11804 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
11805
11806         * support/regression/tests/zeropad.c: added TEST_G macro for alpha
11807
11808 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
11809
11810         * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
11811         is commented out
11812
11813 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11814
11815         * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
11816         computed address is reused
11817         * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
11818         multi-byte bitfields
11819
11820 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
11821
11822         * src/z80/gen.c: (genArrayInit): must check for pointers too
11823
11824 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
11825
11826         * support/regression/tests/zeropad.c: never meant to commit the
11827           nestedstruct test: removed, added check for GCC version
11828
11829 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
11830
11831         * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
11832         * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
11833         * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
11834           printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
11835           bugs 928906 and 954082 half-empty initializers
11836         * src/SDCCsymt.h,
11837         * src/SDCCsymt.c (getAllocSize): added for above fix
11838         * src/z80/gen.c (genArrayInit): fixed bug 741044
11839         * support/regression/tests/zeropad.c: added tests
11840
11841 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
11842
11843         * src/pic16/device.c (pic16_dump_section): corrected bug which
11844         caused some symbols of the libraries to be misplaced
11845
11846 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
11847
11848         * src/pic16/glue.c,
11849         * src/pic16/ralloc.h,
11850         * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
11851         to fix conflict with pic port
11852
11853 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
11854
11855         * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
11856         externs configuration variables,
11857         * src/pic16/ralloc.h,
11858         * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
11859         prototype in header, commented out some debug messages
11860
11861 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
11862
11863         * src/pic16/glue.c,
11864         * src/pic16/main.c,
11865         * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
11866         for gpasm COFF object generation. Thanks to D. Hawkins for
11867         his patch info
11868
11869 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11870
11871         * src/ds390/main.c,
11872         * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
11873         Brock for spotting this)
11874         * src/ds390/gen.c (genEndFunction),
11875         * src/mcs51/gen.c (genEndFunction): always save psw if function is an
11876         interrupt handler and critical. Disable push/pop optimizations when
11877         peephole optimizations disabled.
11878
11879 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
11880
11881         Updated pic16 library sources and headers.
11882         * device/lib/pic16/pic18f*/ ,
11883         * device/include/pic16/*.h: modified to handle structured SFR
11884         definitions
11885
11886 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
11887
11888         * src/port.h (PORT structure): added hook initPaths, now each
11889         port can declare its own default search paths,
11890         which can been seen with the --print-search-dirs option,
11891         see pic16 port for example,
11892         * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
11893         setDataPaths): test to options.printSearchDirs is ifdef'ed out,
11894         * (doPrintSearchDirs): NEW, replaces in a central manner the
11895         printing of search dirs which was split in set*Paths functions,
11896         * (main): added call to port->initPaths and doPrintSearchDirs,
11897         * src/avr/main.c,
11898         * src/ds390/main.c,
11899         * src/hc08/main.c,
11900         * src/izt/i186.c,
11901         * src/izt/tlcs900h.c,
11902         * src/mcs51/main.c,
11903         * src/pic/main.c,
11904         * src/pic16/main.c: modified port structures to reflect addition of
11905         initPaths hook,
11906
11907         * src/pic16/device.c (regCompare): registers are finally sorted by name,
11908         * (pic16_dump_section): for registers in same address reserve memory once,
11909         * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
11910         to no_banksel,
11911         * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
11912         result is greater in size than right or left,
11913         * (pic16_genUMult8X8_8): there are some cases where the result can
11914         be 16 bits size, so handle these,
11915         * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
11916         * (pic16_outBitC): modified to emit pcodes,
11917         * (pic16_storeForReturn): using is_LitOp to see if operand is literal
11918         or not,
11919         * (genDivOneByte): implemented algorithm to divide 8-bits,
11920         * (genCmp): uncommented goto, but issues still exist,
11921         * (genAnd): fixed a bug with variables >8bits,
11922         * (genPackBits): optimization added that uses BCF/BSF to change a
11923         single bit,
11924         * (genAssign): fixed bug when assigning floating point literals,
11925         * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
11926         __sdcc_gsinit_startup label,
11927         * src/pic16/main.c (_pic16_init): removed search directory
11928         initialisations,
11929         * (_pic16_initPaths): NEW, used to initialise search directories,
11930         * (_hasNativeMulFor): support functions for all except char/int
11931         multiplication, and char division,
11932         * (PIC16_port struct): modified entry for native mul support,
11933         * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
11934         no_banksel option,
11935         * (buildCallTree): call to register_usage is ifdef'ed out,
11936
11937 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11938
11939         * device/include/string.h: applied Stas Sergeev's patch to make this
11940         header file compatible with the preprocessor -Wundef option
11941         * src/SDCCmain.c (main): abort compilation if preprocessor reports
11942         failure (fixes bug #941458)
11943
11944 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11945
11946         * src/SDCCopt.c (killDeadCode): fixed bug #907733
11947         * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
11948         that the variable, not the function, should be static
11949         * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
11950         to be consistent with non-literal case
11951
11952 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11953
11954         * src/SDCCast.c (isConformingBody): fixed bug #949967
11955         * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
11956         convilong): fixed bug #952086
11957
11958 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11959
11960         * src/SDCCmem.c (allocVariables): fixed bug #955321
11961
11962 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11963
11964         * src/hc08/main.c (_hc08_genAssemblerEnd),
11965         * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
11966         dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
11967         completely eliminated the use of a temporary file
11968         * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
11969         when more than one file linked
11970         * src/SDCCloop.c (pointerAssigned): fixed bug #954163
11971
11972 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11973
11974         * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
11975         which fixes bug #543481
11976         * support/regression/tests/bug-751703.c: fixed comments left from a
11977         cut and paste error
11978         * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
11979         * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
11980         * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
11981         scopes
11982         * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
11983         * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
11984         are now changed to underscores in moduleName
11985
11986 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11987
11988         * as/mcs51/lkmem.c: better fix for bug #954173
11989
11990 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
11991         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11992
11993         * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
11994         * device/include/c8051f000.h,
11995         * device/include/c8051f120.h,
11996         * device/include/c8051f300.h,
11997         * device/include/c8051f310.h,
11998         * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
11999         PWM16) and detab'ed
12000
12001 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12002
12003         * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
12004         and mailing lists, doc'ed --no-peep-comments, removed reference
12005         to knoppix (newest version has no LyX/LaTeX), other minor changes
12006         * src/SDCCglue.c (glue): save 2 bytes stack space with
12007         option --main-return. The ljmp could probably be avoided too
12008
12009 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12010
12011         * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
12012
12013 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12014
12015         * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
12016         * src/SDCCopt.c (isLocalWithoutDef),
12017         * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
12018         which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
12019         (credit to Maarten Brock for patch #949363, on which this is based)
12020         * support/regression/tests/bug-751703.c: some test cases of extern used
12021         within inner scopes.
12022
12023 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12024
12025         * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
12026         SPEC_STRUCT
12027         * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
12028         struct definitions
12029         * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
12030         dwWriteLabel): fix to create valid debugger symbols even when
12031         the module name has non-alphanumeric symbols in it
12032         * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
12033         when a variable's allocation has been optimized away
12034
12035
12036 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12037
12038         * src/hc08/gen.c (hc08_emitDebuggerSymbol),
12039         * src/hc08/main.c,
12040         * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
12041         * src/mcs51/main.c,
12042         * src/ds390/gen.c (ds390_emitDebuggerSymbol),
12043         * src/ds390/main.c,
12044         * src/z80/gen.c (z80_emitDebuggerSymbol),
12045         * src/z80/main.c,
12046         * src/pic/gen.c (pic14_emitDebuggerSymbol),
12047         * src/pic/main.c,
12048         * src/pic16/gen.c (pic14_emitDebuggerSymbol),
12049         * src/pic16/main.c,
12050         * src/avr/gen.c (avr_emitDebuggerSymbol),
12051         * src/avr/main.c,
12052         * src/xa51/gen.c (xa51_emitDebuggerSymbol),
12053         * src/xa51/main.c,
12054         * src/SDCCdebug.c (emitDebuggerSymbol),
12055         * src/SDCCdebug.h,
12056         * src/port.h: added a debugger struct to the port struct. Added a
12057         callback for defining debugger symbols
12058
12059         * src/SDCCast.c (createLabel),
12060         * src/SDCC.y (labeled_statement): mark all compiler generated labels
12061         with isitmp = 1
12062         * src/SDCCicode.h,
12063         * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
12064         iCode back to the ast for the function
12065
12066         * src/hc08/ralloc.c (hc08_assignRegisters),
12067         * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
12068         unneeded fields from the regs struct.
12069         * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
12070         pushReg() & pullReg() functions instead of emitcode()
12071
12072         * src/hc08/gen.c (genLabel, genhc08Code),
12073         * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
12074
12075         * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
12076         debugger hooks
12077
12078         * src/hc08/gen.c (genEndFunction, genhc08Code),
12079         * src/hc08/gen.h,
12080         * src/mcs51/gen.c (genEndFunction, gen51Code),
12081         * src/mcs51/gen.h,
12082         * src/ds390/gen.c (genEndFunction, gen390Code),
12083         * src/ds390/gen.h,
12084         * src/z80/gen.c (genEndFunction, genZ80Code),
12085         * src/z80/gen.h,
12086         * src/z80/z80.h,
12087         * src/pic/gen.c (genEndFunction, genpic14Code),
12088         * src/pic/gen.h,
12089         * src/pic16/gen.c (genEndFunction, genpic16Code),
12090         * src/pic16/gen.h,
12091         * src/avr/gen.c (genEndFunction, genAVRCode),
12092         * src/avr/gen.h,
12093         * src/xa51/gen.c (genEndFunction, genXA51Code),
12094         * src/xa51/gen.h,
12095         * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
12096         specific code to cdbFile.c and out of the backend code generators
12097
12098         * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
12099         * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
12100         starting address is now 0
12101
12102         * as/hc08/asm.h,
12103         * as/hc08/m08pst.c,
12104         * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
12105         assembler directive for DWARF support
12106         * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
12107
12108         * src/src.dsp,
12109         * src/Makefile.in,
12110         * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
12111
12112 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12113
12114         * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
12115         and inappropriate peephole optimization in jump tables
12116
12117 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12118
12119         * as/hc08/m08pst.c,
12120         * src/SDCCglue.c: sdccopt works for the hc08 port now
12121
12122 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
12123
12124         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
12125
12126 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12127
12128         * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
12129
12130 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12131
12132         * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
12133         rules
12134         * src/SDCCmain.c,
12135         * src/SDCCglobl.h,
12136         * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
12137         comments from the peephole optimizer replacement rules
12138         * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
12139         symbols
12140         * src/SDCCcse.c (updateSpillLocation),
12141         * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
12142         equivalents
12143         * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
12144         * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
12145         objects far pointers
12146
12147 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12148
12149         * src/SDCCsymt.h: a missing part of my last change
12150         * src/pic/ralloc.c (regTypeNum),
12151         * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
12152
12153 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12154
12155         * src/SDCCicode.h,
12156         * src/SDCCicode.c (aggrToPtrDclType),
12157         * src/SDCCptropt.h,
12158         * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
12159         ptrPseudoSymConvert),
12160         * src/pic/ralloc.c (regTypeNum),
12161         * src/pic16/ralloc.c (regTypeNum),
12162         * src/hc08/ralloc.c (regTypeNum),
12163         * src/ds390/ralloc.c (regTypeNum),
12164         * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
12165         creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
12166
12167 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12168
12169         * link/z80/lkmain.c (afile),
12170         * as/hc08/lkmain.c (afile),
12171         * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
12172         prevent a pointer problem when a filename has no directory and
12173         no extension specified.
12174
12175 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12176
12177         * link/z80/lkmain.c (afile): allow periods in directory names
12178         * link/z80/lkmain.c (afile),
12179         * as/mcs51/lkmain.c (afile),
12180         * as/hc08/lkmain.c (afile): allow linker script file to have an
12181         extension other than ".lnk"
12182         * link/z80/lklex.c (getfid),
12183         * link/z80/lkmain.c (parse),
12184         * as/mcs51/lklex.c (getfid),
12185         * as/mcs51/lkmain.c (parse),
12186         * as/hc08/lklex.c (getfid),
12187         * as/hc08/lkmain.c (parse): Support comments in the linker script
12188         file on lines by themselves and after filenames
12189
12190 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12191
12192         * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
12193
12194 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12195
12196         * src/z80/peeph-z80.def: removed some peephole rules that don't
12197         work with multibyte arithmetic (fixed bug #937126)
12198         * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
12199         to registers and not global variables
12200         * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
12201         geniCodePreInc, geniCodePostDec, geniCodePreDec,
12202         geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
12203         checking for assignments not internally generated (fixed bug #931895)
12204         * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
12205         structure member (fixed bug #930072)
12206
12207 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12208
12209         * src/SDCCmain.c (linkEdit),
12210         * src/hc08/main.c (_hc08_parseOptions),
12211         * as/hc08/Makefile.in,
12212         * as/hc08/aslink.h,
12213         * as/hc08/asm.h,
12214         * as/hc08/m08pst.c,
12215         * as/hc08/lkrloc.c (relr, rele),
12216         * as/hc08/lkarea.c (lnkarea)
12217         * as/hc08/lkmain.c (afile, parse),
12218         * as/hc08/lkelf.c: support for ELF output
12219         * as/hc08/lks19.c (s19),
12220         * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
12221
12222 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12223
12224         * as/mcs51/lkihx.c: Fixed bug #899105.
12225
12226 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12227
12228         * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
12229         .dsp files from Unix to DOS.
12230
12231 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12232
12233         * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
12234         function pointers; we have been compliant for several months now.
12235         * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
12236         change that was accidently commented out
12237         * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
12238         genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
12239         bug #922319
12240
12241 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12242
12243         * src/hc08/gen.c: output of all of the internal debugging information
12244         is now controlled by the D() macro; it is disabled by default
12245
12246 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12247
12248         * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
12249         harder to keep the same registers during a CAST iCode
12250         * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
12251         long via int can be done in a single cast, if the signedness is
12252         correct.
12253         * support/regression/tests/bug-927659.c: fixed to avoid conflict with
12254         putchar() in tinibios.c in ds390's library
12255
12256 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
12257
12258         * src/SDCCast.c (decorateType): fixed bug #898889,
12259         cast result of a literal complement too
12260         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
12261         fixed check for bitfields
12262
12263 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
12264
12265         * src/SDCCicode.c (geniCodeLogic): made it static,
12266         (geniCodeLogicAndOr): added in order to fix bug #905492,
12267         (ast2iCode): fixed bug #905492
12268         * support/regression/tests/bug-905492.c: added
12269         * src/SDCCast.c (decorateType): don't decorate/process parms twice,
12270         (processParms): fixed bug #927659: don't copy parms, this will clear
12271         decorated flag
12272         * support/regression/tests/bug-927659.c: added
12273
12274 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
12275
12276         * src/SDCCast.c (addCast): don't cast float to char
12277         * device/lib/libsdcc.lib: added _memmove
12278
12279 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
12280
12281         * device/lib/large/Makefile: fixed parallel execution by
12282         replacing `make` by `$(MAKE)`
12283
12284 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12285
12286         * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
12287         offsets (fixes bug #923936)
12288
12289 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
12290
12291         * device/lib/small/Makefile: fixed parallel execution by
12292         replacing `make` by `$(MAKE)`
12293
12294 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
12295
12296         * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
12297
12298 2004-03-23  Scott Dattalo  <scott AT dattalo.com>
12299
12300         * src/pic/gen.c (genCpl): multi-byte complements were not working.
12301         * src/regression/Makefile: Regression test was not running.
12302
12303 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
12304
12305         * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
12306         complement if possible
12307         * src/SDCCval.c (valComplement),
12308         * src/SDCCicode.c (operandOperation): fixed complement of literal
12309         * support/regression/tests/onebyte.c (testComplement): added
12310
12311 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
12312
12313         * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
12314         return an optimized tree; actually replace actParm with the new tree
12315         * src/SDCCast.h: added some parantheses to remove side effects
12316         * support/regression/tests/bug-920866.c
12317
12318 2004-03-21  Scott Dattalo  <scott AT dattalo.com>
12319         * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
12320         Bit operands were not being handled properly in the pic14 port.
12321         (now src/regression/add.c passes again).
12322
12323 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12324
12325         * src/SDCC.y (labeled_statement): case and default no longer require
12326         a following statement (RFE #893037)
12327
12328 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12329
12330         * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
12331         use MOVA macro to avoid "mov a,acc" when peephole optimizer is
12332         disabled (fixes bug #916294)
12333         * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
12334         "mov a,acc"; patch provided by Lenny Story
12335         * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
12336
12337 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12338
12339         * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
12340         functions
12341         * src/ds390/gen.c (genFunction, genEndFunction),
12342         * src/ds390/ralloc.c (ds390_assignRegisters),
12343         * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
12344         * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
12345         pushed if there are parameters passed on the stack. Also, a cleaner
12346         way to decide if r0/r1 should be pushed/popped. (Together they fix
12347         bug #918693)
12348
12349 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12350
12351         * doc/sdccman.lyx,
12352         * device/lib/mcs51/crtpagesfr.asm,
12353         * device/lib/mcs51/crtxinit.asm,
12354         * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
12355         to avoid confusion with Si Lab's SFRPAGE register.
12356
12357 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12358
12359         * src/SDCCglue.c (emitMaps): allow public sfr variables
12360         * src/SDCCglue.c (initialComments): include compiler build date
12361         with compiler version and put the timestamp of the generated
12362         assembly file on a serperate line to be less confusing.
12363         * src/port.h: added genInitStartup hook
12364         * src/avr/main.c,
12365         * src/ds390/main.c,
12366         * src/hc08/main.c,
12367         * src/pic/main.c,
12368         * src/pic16/main.c,
12369         * src/xa51/main.c,
12370         * src/z80/main.c: genInitStartup initialize as NULL (default to
12371         historical behaviour)
12372         * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
12373         * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
12374         _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
12375         library instead of hard coding it into the compiler.
12376         * support/regression/ports/mcs51-stack-auto/spec.mk,
12377         * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
12378         * device/lib/mcs51/Makefile,
12379         * device/lib/small/Makefile,
12380         * device/lib/large/Makefile,
12381         * device/lib/mcs51/crtpagesfr.asm,
12382         * device/lib/mcs51/crtstart.asm,
12383         * device/lib/mcs51/crtxclear.asm,
12384         * device/lib/mcs51/crtxinit.asm,
12385         * device/lib/mcs51/crtclear.asm,
12386         * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
12387         startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
12388         and into user configurable files.
12389         * device/lib/clean.mk: clean mcs51 directory too
12390         * support/regression/tests/longlit.c: added static to T1 declaration
12391         * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
12392         accesses in the initialization code
12393
12394 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12395
12396         * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
12397         OSCTRIMVAL as noted in bug #916008
12398
12399 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12400
12401         * src/SDCCloop.c (basicInduction): fixed bug with loop induction
12402         in loops with multiple exits (reported as incorrect registers
12403         used by Martin Helmling in Sdcc-user list)
12404
12405 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12406
12407         * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
12408         made ds390 register extensions look less like error messages
12409
12410 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12411
12412         * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
12413         reported by Adam Wozniak in Sdcc-user list
12414
12415 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
12416
12417         * src/SDCCast.c (decorateType): fixed with bug and promotion in
12418         arithmetic optimizations, added debug output
12419
12420 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
12421
12422         * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
12423         * sdcc.spec: updated and split sdcc into 3 rpms
12424         * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
12425         needed for literals of LEFT_OP and '+'
12426         * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
12427         introduced RESULT_TYPE_NOPROM
12428         (geniCodeMultiply): fixed logic for decision if mul is optimized to
12429         left shift
12430         * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
12431         limited promotion to int only for '*'
12432         * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
12433
12434 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
12435
12436         * src/pic16/gen.c (genSkip),
12437         (genc16bit2lit), (gencjneshort): commented out
12438         (is_LitOp): new helper function, checks operand type
12439         (genCmpEq): rewritten
12440
12441 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
12442
12443         * support/regression/tests/bug-908454.c: added
12444
12445 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
12446
12447         * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
12448         * src/SDCCicode.c (usualBinaryConversions): op needs int type
12449         (geniCodeCast): cosmetic, don't preserve bit storage class
12450         (geniCodeLeftShift): added promotion
12451         (geniCodeLogic): fixed regression
12452         * src/SDCCsymt.c (computeTypeOr): accept bits too
12453         (compareType): 2nd part of fix for bug #908454, needed for bitfields
12454
12455 2004-03-07  Borut Razem <borut.razem AT siol.net>
12456
12457         * support/Util/findme.c: alloca() replaced with malloc()/free() pair
12458
12459 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
12460
12461         * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
12462         version of pic16_genPackRegisters which does not check if ic is a
12463         CAST operator,
12464         * src/pic16/gen.c (ifxForOp): disabled new and untested code in
12465         function cause string1.c regression test fails
12466
12467 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
12468
12469         * sim/ucsim/configure.in,
12470         * sim/ucsim/configure,
12471         * sim/ucsim/doc/Makefile.in: use docdir
12472         * src/SDCC.y: fixed sbit atrributes
12473         * src/SDCCast.c (getResultTypeFromType): added support for bitfields
12474         * src/SDCCast.c (decorateType): |^& need special promotion handling
12475         * src/SDCCast.h,
12476         * src/SDCCsymt.h: moved definition of RESULT_TYPE
12477         * src/SDCCsymt.h (computeType),
12478         * src/SDCCicode.c: computeType() needs op
12479         * src/SDCCsymt.c (checkTypeSanity),
12480         * doc/sddman.lyx: "plain" bitfields are unsigned
12481         * src/SDCCsymt.c (computeTypeOr): added
12482         * src/SDCCsymt.c (computeType): added support for bitfields, fixed
12483         |^& ops
12484         * src/SDCCval.c (val*): computeType() needs op
12485         * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
12486         * support/regression/tests/onebyte.c: added tests for |^&
12487
12488 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
12489
12490         * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
12491         for writing icode into asm output.
12492
12493 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
12494
12495         * src/pic16/device.c: added some debug lines enabled
12496         with macro DEBUG_CHECK,
12497         * src/pic16/genarith.c: more debug in genPlus,
12498         * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
12499         * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
12500         * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
12501         * (aopForSym): onStack symbols are re-placed in data memspace,
12502         and onStack flag is cleared,
12503         * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
12504         copy temporary pcodeop,
12505         * (genPcall): added warning for not updating PCLATU,
12506         * (genFunction): removed test with IFFUNC_CALLEESAVES, its
12507         always true for pic16 port,
12508         * (genMultOneWord): NEW, supports integer multiplication,
12509         * (genMult): modified to call genMultOneWord,
12510         * (ifxForOp): added warning when return NULL,
12511         * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
12512         flag is set before call to operandFromSymbol for implicit
12513         added structures,
12514         * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
12515         options.intlong_rent are set by default,
12516         * (_hasNativeMulFor): modified to allow port generation of integer
12517         multiplication,
12518         * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
12519         set regtype to REG_SFR for all registers, restricting seting the
12520         accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
12521
12522 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12523
12524         * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
12525         more than 500 times in the regression tests
12526
12527 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12528
12529         * support/Util/SDCCerr.h,
12530         * support/Util/SDCCerr.c,
12531         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
12532         enumerator_list),
12533         * src/SDCCsymt.c (addSymChain): show location of oriignal definition
12534         for symbol conflicts.
12535         * support/valdiags/tests/enum.c,
12536         * support/valdiags/tests/tentdecl.c,
12537         * support/valdiags/tests/struct.c: expect possible error messages
12538         referring to original symbol definitions.
12539         * src/SDCC.y (struct_or_union_specifier, struct_declarator),
12540         * src/SDCCsymt.h,
12541         * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
12542
12543 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
12544
12545         * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
12546
12547 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
12548
12549         * src/pic16/ralloc.c (newReg): fixed bug #908929
12550
12551 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12552
12553         * src/ds390/gen.c: added missing #include "main.h"
12554
12555 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
12556
12557         * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
12558         checking if symbol is already in set,
12559         * src/pic16/device.h: prototype for checkAddSym,
12560         * src/pic16/gen.c: (_G): added entry interruptvector,
12561         * (assignResultValue): removed some commented out lines,
12562         * (genFunction): check for ISR via sym->type, absolute section for
12563         interrupt code is created via a new pBlock, the goto instruction is
12564         placed now correctly at the interrupt vector position, changed all
12565         references from ivec to _G.interruptvector,
12566         * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
12567         is the interrupt is a high priority one, same for return from ISR,
12568         * src/pic16/glue.c: changed all calls of addSetHead for publics and
12569         externs to calls of checkAddSym,
12570         * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
12571         pic16_pcode_verbose flag is set,
12572         * src/pic16/pcode.h: extern to pic16_pcode_verbose,
12573         * src/pic16/pcoderegs.c: message about how many registers are saved
12574         will only be emitted if pic16_pcode_verbose flag is set,
12575
12576 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12577
12578         * src/ds390/ralloc.h,
12579         * src/ds390/ralloc.c (ds390_regWithIdx),
12580         * src/ds390/gen.c (emitcode),
12581         * src/ds390/main.h,
12582         * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
12583         ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
12584         ds390operandCompare, getRegsRead, getRegsWritten,
12585         initializeAsmLineNode): customized instruction size calculation for
12586         ds390, started basis for some register optimizations
12587         * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
12588         corresponding assembly output
12589         * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
12590         missing push/pop of r0/r1. Optimized push/pops
12591
12592 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12593
12594         * src/mcs51/main.c (instructionSize): fixed ACALL size
12595         * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
12596
12597 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
12598
12599         * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
12600         the sorting of rlist with NULL elements
12601         * (print_idataType, print_idata): NEW to create idata sections
12602         * src/pic16/device.h: idataSymSet new variable
12603         * src/pic16/gen.c (genFunction): fixed some bugs in string
12604         comparing, improved the absolute section creation for ISRs,
12605         added FSR0L/FSR0H in registers that are saved in an ISR,
12606         * (genInline): fixed the processing of inline snippets,
12607         now they undergo no process by the peephole optimizer
12608         * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
12609         are placed in idataSymSet,
12610         * (pic16emitStaticSeg): extern symbols are added in externs,
12611         * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
12612         switching when aboslute variables are placed in access bank memory
12613         * (pic16_writeUsedRegs): added call to pic16_dump_idata,
12614         * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
12615         commented out with #if,
12616         * (pic16_packRegisters): reintroduce the check for CAST because some
12617         symbols are not correctly handled,
12618         * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
12619         pCodeInstruction instead of pCode,
12620         * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
12621         pCodeAsmDir definition,
12622         * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
12623         directive, then the argument directive is emitted without the leading
12624         tab, hack for inline labels which must be in the first column,
12625         * (compareLabel,pic16_findNextInstruction),
12626         * (pic16_findPrevInstruction): added case for PO_ASMDIR,
12627         * (insertBankSwitch): modified for the new pCodeAsmDir,
12628
12629 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
12630         patch applied by Vangelis Rokas <vrokas AT otenet.gr>
12631
12632         * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
12633         instance,
12634         * (pushSide): commented out with #if,
12635         * (assignResultValue): fixed some typos in saving
12636         registers,
12637         * (genPcall): FIXED and sync'ed with genCall,
12638         * (genDataPointerGet,genDataPointerSet): using offset not leoffset
12639         * (genNearPointerGet): fixed to handle some more cases,
12640         implementation scheme via table reads,
12641         * (genConstPointerGet): modified to access code memory correct,
12642         * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
12643         and improved to handle some cases
12644         * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
12645         instead of "RETLW" for init data
12646         * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
12647         not IN_DIRSPACE, work around to reduce bank switching when aboslute
12648         variables are placed in access bank memory (<0x80 and >=0xf80),
12649         * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
12650         TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
12651         TBLWT_POSTDEC,TBLWT_PREINC
12652         * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
12653         * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
12654         directives
12655         * (pic16_pCodeConstString): use "DB" instead of "RETLW"
12656         * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
12657         pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
12658         * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
12659
12660 2004-02-29  Borut Razem <borut.razem AT siol.net>
12661
12662         * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
12663         support/Util/findme.h, support/Util/system.h: enhance binary relative
12664         search for lib and include by using findProgramPath()
12665
12666 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12667
12668         * src/SDCCpeeph.h,
12669         * src/SDCCpeeph.c (pcDistance),
12670         * src/port.h,
12671         * src/mcs51/ralloc.h,
12672         * src/mcs51/ralloc.c (mcs51_regWithIdx),
12673         * src/mcs51/main.h,
12674         * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
12675         mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
12676         mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
12677         size calculation port specific, started basis for some register
12678         optimizations
12679         * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
12680         missing push/pop of r0/r1. Optimized push/pops
12681         * src/mcs51/ralloc.c (packregisters): fixed bug #727095
12682         * device/lib/_modsint.c (_modsint),
12683         * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
12684         and stack version so regression tests pass
12685
12686 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
12687
12688         * src/Makefile.in (dep): include SLIBOBJS in dependency check
12689         * src/SDCCast.c (decorateType): catch another small optimization
12690         with '?' operator
12691         * src/SDCCsymt.c (computeType): added comments and cosmetic changes
12692         * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
12693         modified to finally use computeType() all over SDCC,
12694         see Feature Request #877103
12695         * src/SDCCval.h: cosmetic
12696         * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
12697         valCompare(); regression tested in muldiv.c
12698         * support/regression/tests/muldiv.c (testMod): mod sign follows
12699         dividend only
12700
12701 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
12702
12703         * src/SDCCast.c (decorateType): fixed bug #902362
12704         * doc/INSTALL.txt: fixed install instructions for win32
12705
12706 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
12707
12708         * device/include/Makefile.in (install): fixed by replacing spaces
12709         by tabs
12710         * doc/README.txt,
12711         * doc/INSTALL.txt: updated for release
12712         * doc/sdccman.lyx: added warning for --xstack being buggy
12713
12714 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
12715
12716         * src/pic16/ralloc.c (packRegsForAccUse):  disabled functions with #if
12717         to eliminate build warnings.
12718         * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
12719
12720 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
12721            Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
12722
12723         * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
12724         removed -penable-stack, added comment for stack pragma, added
12725         warning for not initializing the stack/frame registers, removed
12726         comment at interrupts section
12727
12728         Stack is made permanent, there is no ability to disable stack usage.
12729         * src/pic16/device.h,
12730         * src/pic16/device.c: removed all references to USE_STACK macro,
12731         * src/pic16/device.c (pic16_dump_section): when no elements in
12732         rlist, free rlist before return,
12733         * (pic16_dump_int_registers): NEW, internal registers are a new set
12734         of general purpose registers reused by each function,
12735         * (checkAddReg): returns 1 if registers is added to set,
12736         * (pic16_groupRegistersInSection): when a registers is of type
12737         PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
12738         * src/pic16/device.h: memRange and Assigned Memory are deleted,
12739         SRCASECMP macro is moved here from device.c
12740         * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
12741         PO_PCLATU, PO_PRODL, PO_PRODH,
12742         * (pic16_pCodeOpType, genMinus,
12743         changed compares to "a" register, with AOP_ACC,
12744         * (pic16_genPlus): fixed some bugs and indented properly,
12745         * (pic16_addSign): changed size to size+offset in the MOVWF
12746         instruction,
12747         * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
12748         multiply 8-bit operand by literal, result is 8-bit,
12749         * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
12750         multiply 2 8-bit operand, result is 8-bit,
12751         * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
12752         genUMult8X*_16,
12753         * src/pic16/gen.c: changed accUse to contain WREG only,
12754         * (pic16_emitcomment): renamed to pic16_emitpcomment,
12755         * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
12756         true, do not use immediate addressing any more unless sym is a
12757         pointer in codespace,
12758         * (aopForRemat): do not use immediate addressing when symbol not in
12759         codespace and when symbol's address is requested,
12760         * (aopOp): for-loop in if(sym->accUse) is modified for the new
12761         accUse size (= 1),
12762         * (aopGet): added case for AOP_ACC and don't return "accumulator
12763         bug" but WREG instead,
12764         * (popGetTempReg): pushes contents of temporary register in stack,
12765         * (popReleaseTempReg): pops contents of temporary register from
12766         stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
12767         * (pic16_popGet): separated case AOP_ACC to return register WREG
12768         from processor registers, AOP_PCODE not checks if pcop is PO_DIR
12769         or PO_IMMEDIATE and initializes their instance/offset appropriately,
12770         * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
12771         the use of immediate pointers to certain cases only.
12772
12773         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
12774         * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
12775         * (assignResultValue, genCall, genRet): modified to use the new
12776         function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
12777         genPcall is still broken,
12778         * (genFunction): added code to create 'A' type pBlocks when
12779         interrupt functions are generated, code not extensively tested yet,
12780         ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
12781         * (genEndFunction): modified so ISRs pop stored registers from stack,
12782         * (genMultOneByte): cleanup,
12783         * (AccRsh): added flag andmask, to and result with appropriate mask,
12784         * (genUnpackBits,genPackBits): fixed and can handle bit fields,
12785         * (genDataPointerGet): fixed and reenabled its use,
12786         * (genNearDataPointerGet): bugs fixed,
12787         * (genDataPointerSet): bugs fixed,
12788         * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
12789         pic16_DumpSymbol, pic16_DumpOp,
12790         * src/pic16/genutils.h: function prototypes for the above functions,
12791         * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
12792         pointers,
12793         * (pic16emitRegularMap): many many many improvements, but needs a
12794         major cleanup,
12795         * src/pic16/main.c: enable_stack in pic16_options is removed,
12796         * (_pic16_parseOptions): removed command line options -penable-stack,
12797         * (_process_pragma): emit stack symbol only when stack pragma is
12798         processed,
12799         * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
12800         redirected to FSR0L/FSR0H pair,
12801         * (pic16_get_op, pic16_get_op2): modifications and improvements,
12802         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
12803         cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
12804         for immediates,
12805         * (insertBankSwitch): modified to handle cases like: (alfa + 1)
12806         * (dumpPicOptype): NEW,
12807         * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
12808         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
12809         with movff instruction,
12810         * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
12811         added pic16_int_regs, some packRegsFor* functions are commented out,
12812         because produce errors,
12813         * src/pic16/NOTES: minor modifications
12814
12815 2004-02-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12816
12817         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
12818         as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
12819         --pack-iram.
12820         * doc/sdccman.lyx: described options --stack-size and --pack-iram.
12821         * as/mcs51/lkaomf51.c: fixed bug #895763
12822
12823 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
12824
12825         * device/include/c8051f320.h: added. Contributed by Maarten Brock.
12826
12827 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12828
12829         * doc/sdccman.lyx: added details about the HC08 storage classes and
12830         interrupts, fixed the register usage info for z80 & gbz80
12831
12832 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
12833
12834         * doc/sdccman.lyx: added more pic16 port documentation
12835         * device/include/pic16/: added header pic18fregs.h
12836
12837 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
12838
12839         * doc/sdccman.lyx: added Vangelis' contribution
12840
12841 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12842
12843         * src/SDCClrange.c (rlivePoint): live range of SEND operand should
12844         extend to the next CALL or PCALL, not just to the next CALL.
12845
12846 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
12847
12848         * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
12849
12850 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12851
12852         * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
12853         bug #895752 and a better fix for bug #716790
12854
12855 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12856
12857         * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
12858
12859 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12860
12861         * doc/sdccman.lyx: minor changes, minor changed
12862
12863 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
12864
12865         * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
12866         which can't handle SDCC_NEWONEBYTEOPS,
12867         (geniCodeMultiply): removed conversion from mult to shift for pic14
12868         and pic16
12869
12870 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12871
12872         * src/hc08/gen.h,
12873         * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
12874         rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
12875         thus fixing bug #895406
12876
12877 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
12878
12879         * device/lib/_modsint.c,
12880         * device/lib/_modslong.c: sign follows divisor only
12881         * src/hc08/gen.c (genMultOneByte): if result size is 1,
12882         signs or signedness can be ignored
12883         * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
12884         * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
12885         added optimization for IFX,
12886         (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
12887         arguments;
12888         reenabled optimization for IFX, which was removed on 2004-01-11
12889         * src/SDCCast.h: added return type IFX
12890         * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
12891         arguments with 8 or 16 bit results; pic14 and pic16 ports use old
12892         promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
12893         SDCC_OLDONEBYTEOPS selects the old behaviour
12894         * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
12895         changed again and commented promotion rule
12896         * src/SDCCval.c (valDiv): promotion no longer necessary
12897         * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
12898         * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
12899         rewritten
12900         * support/regression/tests/onebyte.c: added
12901
12902 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
12903
12904         * gen.c (genInline): reverted to old code for assemnling inline
12905         code because of bug reported James Chadd
12906
12907 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
12908
12909         * ralloc.h: missing declarations from previous patch,
12910         seems that patch for ralloc.h was never applied, fixed
12911
12912 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
12913            patch committed by Vangelis Rokas <vrokas AT otenet.gr>
12914
12915         * pcode.c,
12916         * pcode.h,
12917         * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
12918         indirect addressing. Marked FSR0 as deprecated
12919         * gen.c (pointerCode): commented out, not needed now
12920         (pic16_popGet2p): new MOVFF helper function
12921         (genGenPointerGet),
12922         (genGenPointerSet): reimplemented with MOVFF and POSTINC0
12923         (shiftRLong): removed duplicate debugging info
12924
12925 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12926
12927         * src/ds390/gen.c (genNearPointerGet),
12928         * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
12929         optimization with bits, but not bitfields.
12930         * src/ds390/ralloc.c (packRegisters),
12931         * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
12932
12933 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
12934
12935         * src/SDCCcse.c (algebraicOpts): copy operands before modification
12936
12937 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12938
12939         * src/SDCCsymt.h,
12940         * src/SDCCicode.c (operandFromSymbol),
12941         * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
12942         * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
12943         * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
12944         * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
12945         * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
12946         * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
12947         bug #892038
12948         * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
12949         * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
12950         printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
12951         * src/SDCCsymt.c (newSymbol),
12952         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
12953         enumerator_list),
12954         * src/SDCCval.h,
12955         * src/SDCCval.c (newiList): fixed bug #885705
12956
12957 2004-02-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12958
12959         * doc/sdccman.lyx: added section 3.1.4: sdcclib.
12960         * as/mcs51/lkmem.c: report the size of the stack in .mem file.
12961
12962 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12963
12964         * device/include/c8051f120.h,
12965         * device/include/c8051f300.h,
12966         * device/include/c8051f310.h: added/updated header files for Silicon
12967         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
12968         * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
12969         in new section Submitting patches
12970
12971 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12972
12973         * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
12974         genFarPointerGet, genCodePointerGet, genGenPointerGet,
12975         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
12976         genGenPointerSet),
12977         * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
12978         genFarPointerGet, genCodePointerGet, genGenPointerGet,
12979         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
12980         genGenPointerSet),
12981         * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
12982         genFarPointerGet, genCodePointerGet, genGenPointerGet,
12983         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
12984         genGenPointerSet),
12985         * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
12986         genFarPointerGet, genCodePointerGet, genGenPointerGet,
12987         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
12988         genGenPointerSet): fixed bug #892400
12989         * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
12990         to eliminate build warnings.
12991         * src/SDCCast.c (processParms),
12992         * src/SDCC.y (function_declarator2, declarator2_function_attributes):
12993         fixed bug 751859
12994         * support/valdiag/valdiag.py: added GCC to the list of defines active
12995         when compiling with gcc
12996
12997 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12998
12999         * support/Util/SDCCerr.h,
13000         * support/Util/SDCCerr.c,
13001         * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
13002         with an incomplete type (fixed bug #883734)
13003         * src/SDCCicode.c (geniCodeCast): fixed bug #890510
13004
13005 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13006
13007         * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
13008
13009 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13010
13011         * src/SDCCast.c (decorateType),
13012         * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
13013         function pointer implementation
13014         * support/regression/tests/funptrs.c: added tests to verify both forms
13015         of function pointers work correctly. Added tests to verify parameters
13016         are passed in the correct order.
13017
13018 2004-02-06  Vangelis Rokas <vrokas AT otenet.gr>
13019
13020         * device.c (regCompare): registers are sorted by ascending
13021         address and increasing size,
13022         * main.c (_pic16_finaliseOptions): removed the declaration
13023         of compiler macro MCU. Now a macro of the format pic18fxxxx
13024         will be defined from the command line
13025
13026 2004-02-06  Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
13027             patch committed by Vangelis Rokas <vrokas AT otenet.gr>
13028
13029         * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
13030         PCOP_RLCF was overwritten!
13031         * gen.c (genSkip): commented out calls to pic16_emitcode,
13032         * (genCmpEQ): fixed "long" compares, only high word did get compared,
13033         * (genlshTwo),
13034         * (genRRC): added debugging info,
13035         * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
13036         overwritten while shifting,
13037         * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
13038         overwritten while shifting,
13039         * (AccLsh),
13040         * (AccRsh),
13041         * (shiftLLeftOrResult),
13042         * (shiftRLeftOrResult),
13043         * (shiftRLong),
13044         * (shiftLLong): Implemented with pic16_emitpcode
13045         * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
13046         * (genLeftShift): Fixed bug, operand for shift by variable always
13047         was "and"ed with 0x0f,
13048         * (genLeftShiftLiteral),
13049         * (genrshTwo),
13050         * (genRightShiftLiteral): added debugging info,
13051         * (genrshFour): added comment,
13052         * (genRightShift): determined signedness from operand "left"
13053         instead of "result"
13054
13055 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13056
13057         * src/SDCCicode.c (geniCodeParms),
13058         * src/SDCCast.c (decorateType, processParms): support for ANSI-style
13059         function pointers, fixed function pointer bugs #861242 and #861896
13060
13061 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13062
13063         * device/include/c8051f000.h,
13064         * device/include/c8051f120.h,
13065         * device/include/c8051f300.h: added header files for Silicon
13066         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
13067
13068 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
13069
13070         * src/SDCCast.c (processParams): added new type flow and restructured
13071         (gatherAutoInit): added new type flow
13072         (addCast): cosmetic changes
13073         (getLeftResultType): added new type flow for array indices, patch
13074         provided by Stas, see FR #877103
13075         (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
13076         array index patch by Stas
13077         * src/SDCCast.h: added prototype getResultTypeFromType()
13078         * src/SDCCval.h,
13079         * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
13080         * src/pic/glue.c (pic14emitStaticSeg),
13081         * src/pic16/glue.c (pic16emitStaticSeg),
13082         * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
13083         for initialization of symbols
13084         * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
13085         * support/Util/SDCCerr.h:
13086         * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
13087         * .version: bumped version number to 2.3.8
13088         * device/include/Makefile.in (install),
13089         * doc/Makefile (install): changed to 'rm `find ...`' construct to
13090         avoid warnings
13091
13092 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
13093
13094         * support/regression/tests/libmullong.c: fixed for 64 bit hosts
13095         Slade Rich fixed an optimization bug
13096         * src/pic/pcodepeep.c,
13097         * src/pic/pcoderegs.c
13098         * doc/Makefile (install): added test for directory
13099
13100 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13101
13102         * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
13103         * src/ds390/ralloc.c (getRegPtr, getRegGpr),
13104         * src/pic/ralloc.c (getRegPtr, getRegGpr),
13105         * src/pic16/ralloc.c (getRegPtr, getRegGpr),
13106         * src/z80/ralloc.c (getRegGpr): fixed bug #883361
13107         * as/mcs51/asexpr.c (term),
13108         * as/hc08/asexpr.c (term): fixed bug #887146
13109
13110 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13111
13112         * src/z80/gen.c (genMult): handle single byte result product
13113         * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
13114         DUMMY_READ_VOLATILE (fixed bug #886367)
13115
13116 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
13117
13118         * support/regression/tests/libmullong.c: fixed logic, on little endian
13119         hosts we ended without a mullong_wrapper()
13120
13121 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13122
13123         * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
13124         virus/worm forged address usage.
13125
13126 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
13127
13128         Fixed promotion, it should be done on AST level:
13129         * src/SDCCast.c (addCast): added promotion to int
13130         (decorateType): updated call to upCast()
13131         * src/SDCCicode.c (geniCodeLeftShift): removed call to
13132         usualUnaryConversions()
13133
13134 2004-01-26  Michael Hope  <michaelh AT juju.net.nz>
13135
13136         * support/regression/tests/literalop.c (mulWrapper): Added a
13137         wrapper to remove integer overflow warnings.
13138
13139         * support/regression/tests/float_trans.c: Made work on host.
13140
13141         * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
13142         location of sz80.
13143
13144         * support/regression/generate-cases.py (main): Changed from inline
13145         to a main method.
13146
13147         * doc/Makefile (install): Changed to depth first to get rid of
13148         missing directory install warning.
13149
13150         * as/Makefile (install-doc): Made work on Mac.
13151
13152 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
13153
13154         * src/SDCCast.c: added an additional type flow in decorateType() of
13155         opposite direction, see feature request #860006; it's enabled at runtime
13156         by setting the environment variable SDCC_NEWTYPEFLOW
13157         * src/SDCCast.h: changed prototype of decorateType()
13158         * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
13159         * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
13160         'char' to 'int' can be omitted, if both operands are 'unsigned char';
13161         see feature request #877103
13162         * src/SDCCval.c: updated call of decorateType()
13163         (valBitwise): fixed bug #882876
13164         (valMinus): added promotion
13165         (valLogicAndOr): result is unsigned
13166         (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
13167         * src/SDCCsymt.c (computeType),
13168         * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
13169         must not cause an unsigned operation
13170         * src/pic/glue (pic14emitRegularMap),
13171         * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
13172
13173 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
13174
13175         * src/pic/pcode.c (PCodeID): commented out left over debug code
13176
13177 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
13178
13179         * support/valdiag/tests/overflow.c: added shift tests
13180         * src/pic/device.c,
13181         * src/pic/gen.c,
13182         * src/pic/gen.h,
13183         * src/pic/glue.c,
13184         * src/pic/main.c,
13185         * src/pic/pcode.c,
13186         * src/pic/pcode.h,
13187         * src/pic/pcodepeep.c,
13188         * src/pic/pcoderegs.c,
13189         * src/pic/ralloc.c,
13190         * src/pic/ralloc.h: applied patch from Slade Rich;
13191         added support for multiple code pages and multiple RAM banks on the
13192         PIC 14 port. The ASM files now no longer simply assume all the
13193         code / RAM are in the same page / bank. This means the linker can
13194         safely allocate code/RAM of separate ASM files to different pages/banks.
13195         * doc/sdccman.lyx: added Slade's tips
13196         * src/mcs51/peeph.def: fixed bug #880768
13197
13198 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13199
13200         * src/hc08/ralloc.c (rematStr): fixed bug #879282
13201         * src/SDCCast.c (decorateType): fixed bug #880197
13202
13203 2004-01-20  Michael Hope  <michaelh AT juju.net.nz>
13204
13205         * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
13206         getopt.h.
13207
13208         * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
13209         strtof is not part of C89 and isn't included with Mac OS X.
13210
13211 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13212
13213         * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
13214         shiftL2Left2Result): fixed bug #879326
13215         (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
13216         (genMultOneByte): fixed bug in signed vs unsigned multiplication
13217         * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
13218         address fetch for clr instruction
13219         * device/lib/hc08/_mulint.c: created optimized assembly version
13220         * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
13221
13222 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
13223
13224         * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
13225         proposed in FR #877103
13226
13227 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
13228
13229         * src/SDCCval.c (cheapestVal): added missing checks
13230         * src/SDCCicode.c (usualBinaryConversions): fixed condition
13231         * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
13232
13233 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
13234
13235         * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
13236         equal operands
13237
13238 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
13239
13240         * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
13241         loaded with the linker search paths (-L arguments) and the libraries
13242         to be linked with the current source (-l arguments). Changes
13243         currently will affect only the pic16 port.
13244         * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
13245         include path the port specific paths and port specific libraries,
13246         * gplink command now contains the $3 argument,
13247         * src/pic16/device.h,
13248         * src/pic16/device.c,: structure PIC_device is made public and
13249         renamed to PIC16_device, the same for variable Pics which is renamed
13250         to Pics16. Updated all references to them.
13251         * src/pic16/glue.c (pic16glue): corrected bug with code
13252         initialization which bypassed the variable initializations block.
13253
13254         * device/lib/pic16/Makefile.rules: removed --penable-stack from
13255         COMPILE_FLAGS and added the --nostdinc option
13256
13257 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13258
13259         * device/include/mc68hc908jb8.h: Register defs for another member
13260         of the hc08 family. Contributed by Bjorn Bringert - thanks!
13261
13262 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
13263
13264         Documenting changes from previous commits.
13265         * configure.in (version 1.56),
13266         * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
13267         when generating output files to configure the pic16 library,
13268         but now I've commented it out, since gputils aren't installed in the
13269         SF compile farm, so library won't compile
13270
13271         * device/lib/Makefile.in (version 1.56): initially I've added in
13272         target 'all' the prerequestive 'model-pic16' so it compiled the
13273         pic16 library, but now I've commented it out for the same reasons
13274         above,
13275         * added targets 'model-pic16' and 'objects-pic16' to compile the
13276         library
13277         * added target 'port-specific-objects-pic16' to handle the
13278         generated libraries and copy them into the build/ directory
13279         * added target 'clean-intermediate-pic16' to clean intermediate
13280         files into pic16 directory
13281         * in target 'installdirs' added line to create directory pic16 in
13282         the installation path
13283
13284         * device/include/Makefile.in (version 1.11): in target 'install'
13285         added lines to copy all header files to installation path,
13286         * in target 'installdirs' added line create directory for pic16
13287         headers in the installation path
13288
13289 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
13290
13291         * src/ds390/gen.c (genCall): fixed a double use of acc and b after
13292          a function call
13293
13294 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
13295
13296         * configure,
13297         * device/lib/configure.in,
13298         * device/lib/configure: fixed for autoconf 2.57
13299
13300 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13301
13302         * src/z80/main.c (_parseOptions): fixed the portmode= command line
13303         option so that it actually works. Made it specific to the z80, since
13304         the gbz80 doesn't have these kinds of I/O ports.
13305
13306 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13307
13308         * device/include/z180.h,
13309         * device/lib/_memcpy.c,
13310         * device/lib/_memmove.c,
13311         * device/lib/_mulint.c,
13312         * device/lib/ser_ir.c,
13313         * device/lib/ser_ir_cts_rts.c,
13314         * device/lib/_strcmp.c,
13315         * device/lib/_strtok.c: fixed pragmas to non-deprecated form
13316         * src/z80/main.c (_process_pragma): add support for pragmas bank and
13317         portmode; added deprecation warning for bank= and protmode= forms.
13318         Also, guard against buffer overflow.
13319         * src/z80/gen.c (aopGet): generate better code for sfr banked read
13320
13321 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13322
13323         * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
13324         changed interrupt vector table generation to only emit declared vectors.
13325         * device/include/Makefile.in: added missing backslash
13326         * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
13327
13328 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
13329
13330         Mainly changes to support compilation of the device libraries
13331         * src/pic16/device.c: stack is allocated via symbol and not
13332         via literal number. The symbol is placed in the corresponding
13333         position of the data ram
13334         * (pic16_dump_section): relocatable and absolute uninitialized
13335         data are now emitted in sorted order to reduce section naming,
13336         * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
13337         weren't marked as being in the access bank,
13338
13339 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
13340
13341         Added portion of GNU PIC Library under the directory
13342         device/include/pic16 and device/lib/pic16. These files
13343         contain the declarations of SFRs for the PIC18Fxx2 devices.
13344         The directory is initialized via configure from toplevel.
13345
13346 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
13347
13348         * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
13349         the spilllocations to be compared correctly
13350
13351 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
13352
13353         * src/SDCCast.c (decorateType): fixed bug introduced today
13354
13355 2004-01-12  Borut Razem <borut.razem AT siol.net>
13356
13357         * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
13358         doc/sdccman.lyx: upper case pragmas are deprecated
13359
13360 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
13361
13362         * src/SDCCast.c (decorateType): replacing 'ul > 0' by  '!ul' results
13363         in simpler and even better code
13364
13365 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
13366
13367         * src/SDCCicode.c (operandOperation): fixed bug #874819
13368         * src/SDCCast.c (decorateType): fixed
13369         char foo (unsigned long ul) { return ul > 0; }
13370
13371 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13372
13373         * doc/sdccman.lyx: Moved and added some sections, small changes
13374         all over. Telling LaTeX to be less strict with word spacing
13375         to better keep the right margin. Changed some notes about
13376         maintainance of the ports in section 3.2.1 - is it OK like this?
13377
13378 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
13379
13380         SDCC source changes:
13381         * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
13382         convilong): modified to inform the pic16 port that builtin functions
13383         are external
13384
13385         PIC16 PORT specific changes:
13386         * src/pic16/device.c pic16_dump_equates() added,
13387         processor registers declared internally by the port are emitted in
13388         the translation as equates,
13389         * src/pic16/gen.c: inline code is passed unprocessed to the
13390         translation,
13391         * (pic16_popGetLit2): fnuction modified to take second operand as
13392         pCodeOp pointer and not as literal,
13393         * (popRegFromIdx): prefixed with pic16_,
13394         * (pic16_popCombine2): modified to receive already allocated pCode
13395         operands,
13396         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
13397         * (genFunction): initializes local stack frame and pushes on stack
13398         all the registers used by this function,
13399         * (genEndFunction): restores all registers from stack and restores
13400         stack frame,
13401         * src/pic16/glue.c (pic16emitRegularMap): various changes and
13402         improvements,
13403         * (pic16glue): changed the program startup sequence,
13404         * added new dbName code 'A' for functions placed in absolute section
13405         * src/pic16/main.c: added function attribute _naked,
13406         * added pragma 'code' to place a fnuction at an absolute address,
13407         * added command line arguments --debug-ralloc and --pcode-verbose,
13408         * (_pic16_finiliseOptions): options.all_callee_saves is set by default
13409         * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
13410         * (pic16_newpCodeOpLit2): modified to take the second operand as
13411         pCodeOp pointer,
13412         * (pic16_printpBlock): modified to emit each function in a separate
13413         section,
13414         * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
13415         UPPER for immediate operands,
13416         * src/pic16/pcodepeeph.c: added peephole support for the LFSR
13417         instruction,
13418         * src/pic16/peeph.def: all peepholes with movff are commented out,
13419         because there is a problem in the pcode peep optimizer,
13420         * src/pic16/ralloc.c: the register allocator can now reuse local
13421         function symbols for another function. This saves register usage.
13422         * src/pic16/ralloc.h: added flag isLocal in structure regs,
13423
13424         Added file src/pic16/NOTES with information about program writing on
13425         the current port version.
13426
13427 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13428
13429         * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
13430         and peephole 252 (array access)
13431
13432 2004-01-09  Borut Razem <borut.razem AT siol.net>
13433
13434         * src/SDCCmain.c : fixed #872250: -l command line defined library
13435           files are scanned before standard library files
13436
13437 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13438
13439         * src/SDCCast.c (decorateType): fixed bug #874046
13440
13441 2004-01-09  Borut Razem <borut.razem AT siol.net>
13442
13443         * support/scripts/sdcc.nsi: remove previous installation
13444
13445 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13446
13447         * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
13448         bytes for last interrupt vector (mcs51)
13449         * sdcc.spec: fixed typo
13450
13451 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13452
13453         * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
13454         gen51Code): more efficient parameter receive for --model-large
13455         ("bug" #845294)
13456
13457 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13458
13459         * src/ds390/main.c,
13460         * src/z80/main.c: added missed needLinkerScript flags (more than
13461         one port structure defined in these file)
13462         * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
13463         bug #795325
13464
13465 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
13466
13467         * src/SDCCmain.c: removed various references to DEFAULT_PORT
13468         * src/port.h: added flag needLinkerScript in port->linker
13469         structure to inform whether to create a .lnk file or not,
13470         * src/avr/main.c,
13471         * src/ds390/main.c,
13472         * src/hc08/main.c,
13473         * src/mcs51/main.c,
13474         * src/pic/main.c,
13475         * src/pic16/main.c,
13476         * src/xa51/main.c,
13477         * src/z80/main.c: changed appropriately to configure
13478         needLinkerScript flag
13479         * src/pic/gen.c,
13480         * src/pic16/gen.c (genAddrOf): fixed bug #863624
13481         * src/pic/glue.c: added variable udata_section_name to
13482         override default uninitialized data segment definition for
13483         devices only with SHAREBANK memory (reported from Erik Epetrich)
13484         * (pic14emitOverlay): modified to emit a commented overlay segment
13485         directive when no overlay data exist
13486         * (picglue): modified to emit uninitialized data segment
13487         according to udata_section_name
13488         * src/pic/main.c (_pic14_parseOptions): added command line
13489         options --udata-section-name=[name] to override default
13490         udata definition name
13491         * modified _linkCmd and _asmCmd to include compiler passed
13492         arguments via -W option
13493         * src/pic16/main.c: added $l in _asmCmd, changed extension for
13494         object file from '.rel' to '.o' in port->linker structure,
13495         changed size of fptr from 2 to 3 in port structure
13496
13497 2004-01-07  Borut Razem <borut.razem AT siol.net>
13498
13499         * support/scripts/sdcc.nsi: update PATH
13500         * support/scripts/sdcc.ico: craeted
13501
13502 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
13503
13504         * device/include/Makefile.in: fix install
13505         * doc/Makefile: fix install
13506
13507 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13508
13509         * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
13510         in bug #860505
13511         * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
13512         how the function variable allocation summary is displayed; also
13513         include information about variables allocated to the overlay
13514         segment
13515
13516 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13517
13518         * as/mcs51/lkmain.c: Help about -Y option
13519         * as/mcs51/lkarea.c: Fixed gcc warnings
13520
13521 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
13522
13523         * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
13524         fixed warning
13525         * support/valdiag/tests/overflow.c: added
13526         * src/SDCCast.c (decorateType),
13527         * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
13528         LEFT_OP (left shift)
13529
13530 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13531
13532         * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
13533         (default behaviour).
13534
13535 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13536
13537         A python script to validate compiler diagnostic messages. It can be
13538         used to verify that sdcc complains about bad c source code and
13539         gives a good location of the error.
13540         * support/valdiag/Makefile,
13541         * support/valdiag/valdiag.py,
13542         * support/valdiag/tests/*
13543
13544 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13545
13546         * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
13547         * src/SDCCsymt.c (newEnumType),
13548         * src/SDCCsymt.h
13549         * support/Util/SDCCerr.c,
13550         * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
13551         enum related bugs.
13552         * support/regression/tests/enum.c: added test for enum values that
13553         require at least 2 bytes of storage.
13554
13555 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
13556
13557         * src/common.h: added ifndef/define/endif macros
13558         around the header file.
13559         Bug reported from Jesus Calvino-Fraga
13560
13561 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
13562
13563         * sdcc.spec: updated
13564         * device/include/Makefile.in: don't install CVS directories
13565         * device/lib/Makefile.in: added removal of CVS directories after install
13566         * doc/Makefile: fixed install, added local_icons
13567         * sim/ucsim/gui.src/Makefile.in: fixed an old typo
13568         * src/mcs51/gen.c (genRightShift): fixed bug #870788
13569         * src/ds390/gen.c (genRightShift): fixed bug #870788
13570         * src/SDCCast.c (decorateType): fixed bug #870781
13571
13572 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
13573
13574         PIC16 port related changes:
13575         * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
13576         added variable stackPos,
13577
13578         * gen.c: genCall, assignResultValue: added support for
13579         pushing/retrieving function parameters to/from stack,
13580         genFunction,genEndFunction: setup stack frame for the
13581         generated function,
13582         genAddrOf: will be changed according to bug 863624
13583
13584         * added files genutils.c and genutils.h which contain gen*
13585         debugged and optimised functions extracted from gen.c
13586
13587         * glue.c: added variable 'externs' which holds extern symbols,
13588         pic16emitRegularMap: is modified to properly handle relocatable
13589          symbols under the new scheme,
13590         pic16createInterruptVect: is modified
13591         pic16printPublics: is modified to emit 'global' assembler directives,
13592         added pic16_printExterns to print extern symbols,
13593         pic16glue: initializes stack/frame pointer in the beginning of
13594         the assembly output. Temporary hack, will be corrected later,
13595         because gplink yet does not support stack and SDCC does not
13596         yet support a type of crt0.o object to create the final binary.
13597
13598         * Removed many lines that contain 8051 legacy code.
13599         * The code is finally placed under a 'code' directive.
13600         * Added port specific options.
13601
13602         * _process_pragma: simplified since now we do not need *special*
13603         include file to define SFR registers. But a separate header
13604         will be needed. This will be developed later.
13605         * _pic16_parseOptions: added, parses port specific options:
13606         --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
13607         --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
13608         --preplace-udata-with=
13609
13610         * _pic16_setDefaultOptions: modified to initialize section names,
13611         but hack is temporarly out of order since it needs improvement.
13612         * _pic16_genAssemblerPreamble: configuration words are emitted by
13613         their address instead of their name. This part is incomplete and
13614         supports only the 18Fxx2 devices. Other devices will emit an error
13615         during assembly since they do not contain the same set of config
13616         registers
13617         * _pic16_genIVT: is modified,
13618
13619         * pcode.c: added definitions for some hardware registers that are needed
13620         for stack support
13621         * added flag is2LitOp and variable pci_magic in pCodeInstruction.
13622         All PCI entries are updated. Now LFSR is supported.
13623         * Removed pic16_pciTRIS is mentioned by mdubuc in source
13624         * added pic16_newpCodeOpLit2 to support instructions with
13625         two literal arguments
13626         * pic16_pCode2str: corrected code that emits assembler instructions
13627         with two literal operands and those that have an access bit modifier
13628         * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
13629         this fixes a bug which caused some labels to be lost, when an
13630         assembler directive was added, i.e. banksel,
13631         * pic16_FixRegisterBanking: improved logic that causes the insertion
13632         of bank switching,
13633         * InlineFunction: functions that are called once, are not any more
13634         inlined. This can be a port option in the future,
13635
13636         * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
13637
13638         * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
13639         hold the corresponding uninitialized symbols,
13640         * pic16_allocProcessorRegister: registers have explicit marked the
13641         accessBank field,
13642         * pic16_allocInternalRegister: registers are explicit marked as
13643         not used,
13644         * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
13645         processing list, so bit registers were lost,
13646         *
13647
13648         * ralloc.h: added field 'accessBank' and original symbol operand
13649         in register definition,
13650         * removed the field isMapped from register definition,
13651
13652         ** Several functions have been removed from various sources:
13653         BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
13654         pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
13655         isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
13656         pic16_assignRelocatableRegisters
13657
13658         ** others have been introduced:
13659         pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
13660         pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
13661
13662 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
13663
13664         * support/scripts/inc2h.pl: changed definition of BIT_AT
13665         to emit 'sbit at' instead of 'bit at'. This was a request.
13666
13667         PIC16 port related preliminary changes:
13668         * gen.c: prefixed function popRegFromString with
13669         pic16_ and all references to it corrected
13670         * pcode.c: all pic16_pc_* hardware registers prefixed
13671         with underscore (_),
13672         pic16_popCopyGPR2Bit(): function sets register wasUsed=1
13673         * ralloc.c: newReg(): when register is REG_SFR then
13674         set address to rIdx,
13675         pic16_allocProcessorRegister(): marks register wasUsed=0
13676         pic16_writeUsedRegs(): added a call to assign processor
13677         registers via pic16_assignFixedRegisters
13678
13679 2004-01-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13680
13681         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
13682         as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
13683         variables in unused register banks.  Also the SSEG is placed
13684         wherever there is enough space for it, and IDATA can be anywhere
13685         in internal RAM.  For now compile using -Wl-Y[stack_size].
13686         The mem file is different for this option as well, since it
13687         makes no sense of talking about DSEG lenght.
13688
13689 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
13690
13691         * src/SDCClrange.c: fixed bug 869095 that caused segfault
13692         in certain cases, e.g. when ROM assignment, patch provided
13693         from Albert den Haan.
13694
13695 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
13696
13697         Many signedness and type propagation fixes:
13698         * src/SDCCicode.c: made geniCodeCast() static
13699         replaced SPEC_ by IS_ (cosmetic)
13700         (operandOperation): fixed div and mod operation
13701         (usualBinaryConversions): added support for promotion of char
13702         (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
13703         (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
13704         (geniCodeAdd): an array index will stay unsigned, even if promoted
13705         from char to int
13706         (geniCodeArray): ditto
13707         * src/SDCCicode.h: made geniCodeCast() static: removed prototype
13708         * src/SDCCsymt.c (computeType): added more support for char;
13709         promotion of char is selectable by promoteCharToInt, fixed signedness
13710         for all cases
13711         (powof2): replaced (unsigned long) by (TYPE_UDWORD)
13712         * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
13713         * src/SDCCval (val*): replaced signedness calculation by
13714         computeType()
13715         rearranged if-branches (cosmetic)
13716         (valShift): added warning W_SHIFT_CHANGED
13717         (valCompare): fixed problem with different types
13718         * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
13719         * support/regression/tests/literalop.c: added many cases
13720         * support/regression/tests/ast_constant_folding.c: changed finally to
13721         'unsigned int'
13722         * .version: new year, new version: 2.3.7
13723         * src/SDCCmain.c (main): applied patch #866468
13724         * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
13725         provided by Scott Bronson
13726         * doc/sdccman.lyx: updated documentation for sdcdb
13727         updated and added chapter tips
13728
13729 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13730
13731         * src/SDCCsymt.h: missing from yesterday's commits
13732
13733 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13734
13735         * src/SDCC.y (struct_or_union_specifier),
13736         * support/Util/SDCCerr.c,
13737         * support/Util/SDCCerr.h: verify that struct & union tags are used
13738         as declared.
13739
13740 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13741
13742         * src/SDCCglobl.h: missing from yesterday's commits
13743
13744 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13745
13746         * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
13747         sft_attributes, struct_declaration, parameter_declaration,
13748         type_name, start_block, declaration_list),
13749         * src/SDCC.lex (check_type): support redefinition of typedef names
13750
13751 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13752
13753         * src/mcs51/gen.c (genPlus): added special handling for 256 byte
13754         aligned xdata arrays. Erik helped me with the if clause.
13755
13756 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13757
13758         * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
13759         warning
13760
13761 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13762
13763         * src/SDCCast.h,
13764         * src/SDCCast.c (newAst_),
13765         * src/SDCCicode.h,
13766         * src/SDCCicode.c (ast2iCode, newiCode),
13767         * src/SDCCglobl.h,
13768         * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
13769         expr, statement, expression_statement, selection_statement,
13770         iteration_statement, expr_opt, jump_statement): foundation for tracking
13771         sequence points
13772         * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
13773         point code too)
13774
13775 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13776
13777         * support/Util/SDCCerr.c,
13778         * src/SDCCast.h,
13779         * src/SDCCast.c (createCase, createDefault, decorateType),
13780         * src/SDCClabel.c (labelUnreach),
13781         * src/SDCC.y (labeled_statement, jump_statement): More improvements
13782         to error messages.
13783         * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
13784         (with thanks to Stas Sergeev)
13785         * device/include/time.h,
13786         * device/lib/time.c (CheckTime): suppress unreachable code warning
13787
13788 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13789
13790         * src/SDCCast.c (createIvalCharPtr),
13791         * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
13792         bug #753752)
13793         * support/regression/tests/nullstring.c: tests for these two bugs
13794
13795 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13796
13797         * support/Util/SDCCerr.h,
13798         * support/Util/SDCCerr.c (E_NOT_ALLOWED),
13799         * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
13800         about storage class and 'at' used inside struct or union
13801         * src/SDCCBBlock.c (iCodeFromeBBlock),
13802         * src/SDCCcse.c (ifxOptimize),
13803         * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
13804         printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
13805         printIval, emitStaticSeg, emitOverlay),
13806         * src/SDCClabel.c (deleteIfx),
13807         * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
13808         * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
13809         gatherAutoInit, processParms),
13810         * support/Util/SDCCerr.h,
13811         * support/Util/SDCCerr.c (werrorfl): Support for better error location
13812         reporting for post-parse errors.
13813
13814 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13815
13816         * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
13817         implicit casts via union; they don't work on big endian systems
13818         (possible fix for bug #861138)
13819
13820 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13821
13822         (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
13823         * src/mcs51/main.c: fixed the fix for bug #737001
13824
13825 2003-12-15  Borut Razem <borut.razem AT siol.net>
13826
13827         * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
13828
13829 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13830
13831         * support/makebin/makebin.c: put output in binary mode
13832
13833 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13834
13835         * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
13836         xdata and data memory on startup. Set the environment variable
13837         SDCC_NOGENRAMCLEAR to disable this.
13838         * src/mcs51/peephole.def,
13839         * src/ds390/peephole.def: using the atomic test and clear instruction jbc
13840         (allows non-interrupt and interrupt code to safely compete for a resource
13841         without the non-interrupt code having to disable interrupts)
13842
13843 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13844
13845         * src/SDCCicode.c (geniCodeAdd),
13846         * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
13847         with valFromType if type might be a pointer and host is big endian).
13848         * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
13849         types, not just integer types.
13850         * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
13851         multiply defined with mismatching "at" address.
13852
13853 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13854
13855         * src/ds390/main.c (PORT tininative_port): fixed bug #858416
13856         * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
13857         * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
13858         with embedded nulls (fixed bug #753752)
13859
13860 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13861
13862         * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
13863         Apparently this did not see much testing (endless loop)
13864
13865 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13866
13867         * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
13868
13869 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13870
13871         * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
13872         gracefully handle NULL memmap pointers
13873
13874 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13875
13876         * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
13877         instead of deleting the iCode when an operand is volatile
13878         * src/z80/gen.c (genDummyRead),
13879         * src/mcs51/gen.c (genDummyRead),
13880         * src/ds390/gen.c (genDummyRead),
13881         * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
13882         not just IC_RIGHT
13883         * src/SDCCicode.c (geniCodeCall): fixed bug #851607
13884         * src/SDCC.y: fixed bug #850420
13885
13886 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13887
13888         Applied z80 i/o port patch from Peter Townson and fixed some operators
13889         to better handle operands in A register.
13890         * device/include/z180.h
13891         * src/SDCC.y
13892         * src/SDCCglue.c
13893         * src/z80/gen.c
13894         * src/z80/gen.h
13895         * src/z80/main.c
13896         * src/z80/peeph-z80.def
13897         * src/z80/peeph.def
13898         * src/z80/z80.h
13899
13900 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13901
13902         * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
13903
13904 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13905
13906         * device/lib/hc08/_mullong.c: Removed extra #endif
13907
13908 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13909
13910         * sim/ucsim/hc08.src/inst.cc,
13911         * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
13912         carries from x to h
13913         * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
13914         * src/hc08/gen.c (XAccRsh): fixed problem with right shift
13915         * device/include/stdarg.h: fixed varargs for hc08
13916         * device/lib/Makefile.in,
13917         * device/lib/hc08/Makefile,
13918         * device/lib/hc08/_mulint.c,
13919         * device/lib/hc08/_mullong.c: fixed some endian problems
13920
13921 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13922
13923         * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
13924         * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
13925         * device/lib/_gptrget.c,
13926         * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
13927
13928 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13929
13930         * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
13931         * src/SDCCast.c (astErrors): fixed bug #846007
13932         * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
13933
13934 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13935
13936         * src/SDCCast.c (decorateType): disabled a transformation I added in
13937         revision 1.188 (access to fields of a structure at an absolute address);
13938         it breaks with bitfields, extern declarations, and gcse analysis.
13939         * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
13940         could be assigned through a pointer, so don't complain.
13941         * src/SDCCast.c (astErrors),
13942         * src/SDCCast.h,
13943         * src/SDCCglue.c (emitRegularMap): fixed bug #847813
13944
13945 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
13946
13947         * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
13948         * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
13949         output of __config directives, since gpasm now supports them
13950         * src/pic16/main.c (_pic16_finaliseOptions): define MCU
13951         pre-processor macro, i.e. -DMCU=p18f452
13952         * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
13953         and modified to handle 'cast' icode similarly to '=' icode
13954         * src/pic16/device.h (typedef struct PIC_device): added field
13955         'extMIface' to indicate that chip has external memory interface
13956         * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
13957         18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
13958         18F8720
13959
13960 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13961
13962         * src/SDCC.y (pointer): fixed bug #846006
13963         * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
13964         * src/SDCCast.c (decorateType): fixed bug #846009
13965         * src/ds390/peeph.def,
13966         * src/ds390/gen.c (genAnd, genOr),
13967         * src/mcs51/peeph.def,
13968         * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
13969
13970 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13971
13972         Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
13973         * src/SDCCdflow.c
13974         * src/SDCCcse.c
13975         * src/SDCCcse.h
13976         * src/SDCCBBlock.h
13977         * src/SDCCBBlock.c
13978
13979 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
13980
13981         fixed bug #845089
13982         * src/SDCCbitv.h,
13983         * src/SDCCbitv.c: added function to free a bitvector
13984         * src/SDCClrange.h,
13985         * src/SDCClrange.c: added function to recompute the liveranges
13986         * src/avr/ralloc.c,
13987         * src/ds390/ralloc.c,
13988         * src/hc08/ralloc.c,
13989         * src/mcs51/ralloc.c,
13990         * src/pic/ralloc.c,
13991         * src/pic16/ralloc.c,
13992         * src/xa51/ralloc.c,
13993         * src/z80/ralloc.c: recompute the liveranges after register packing
13994
13995 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
13996
13997         * src/SDCCloop.c (newInduction): fixed bug #845630
13998
13999 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14000
14001         * src/SDCCsymt.c (compareTypesExact): disabled debugging output
14002         inadvertantly left behind from my 2003-11-12 change
14003
14004 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14005
14006         Updated headers I neglected to commit yesterday.
14007         * src/SDCClrange.h,
14008         * src/SDCCicode.h
14009
14010 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14011
14012         * src/SDCCcse.c (algebraicOpts): fixed bug #773153
14013         * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
14014         * src/SDCCopt.c (eBBlockFromiCode),
14015         * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
14016         the creation of the key hash table from the sequencing so it can be used
14017         earlier (for some GCSE bug fixes still pending)
14018
14019 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14020
14021         * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
14022         * support/regression/tests/addsub.c: testing genPlus shortcut
14023
14024 2003-11-15  Borut Razem <borut.razem AT siol.net>
14025
14026         * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
14027
14028 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14029
14030         * src/SDCCcse.c (cseBBlock): fixed bug #527779
14031         * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
14032         ordering is immaterial.
14033         * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
14034
14035 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14036
14037         * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
14038         * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
14039         (SIGSEV) of bug #840381
14040         * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
14041         unlink new file before rename if new and old filenames are the same)
14042
14043 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14044
14045         * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
14046         uninitialized variables) for the mcs51. Set environment variable
14047         SDCC_GENRAMCLEAR to test.
14048         xdata initialization slightly shorter
14049
14050 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14051
14052         * src/SDCCsymt.h,
14053         * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
14054         #838241 & 780691 (basicly the same bug)
14055         * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
14056         * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
14057
14058 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
14059
14060         * src/SDCCmain.c (linkEdit): "fix" #834252
14061
14062 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14063
14064         * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
14065         * src/SDCCast.h,
14066         * src/SDCC.y: fixed bug #819403
14067
14068 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14069
14070         * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
14071         the reentrant attribute.
14072         * src/hc08/gen.c (genPackBits): added missing stack readjustment
14073         * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
14074         simulation
14075         * src/SDCCast.c (decorateType): fixed bug with storage class not being
14076         updated during pointer dereference; f.e. ~(((char *)1)*) was being
14077         erroneously reduced to a literal.
14078         * src/hc08/ralloc.c (packRegisters, rematStr),
14079         * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
14080         some cases
14081
14082 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14083
14084         * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
14085         * doc/sdccman.lyx: changed from 'article' to 'book'
14086         * doc/Makefile: readded test_suite_spec and cdbfileformat
14087
14088 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
14089
14090         * device/include/stdlib.h: include malloc.h to comply with ANSI
14091         * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
14092
14093 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14094
14095         * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
14096         * doc/clean.mk: also remove *.out files
14097         * doc/sdccman.lyx: some additions, larger top/bottom margins
14098
14099 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14100
14101         * src/SDCC.y: fixed bug #837365
14102         * support/regression/tests/bitopcse.c
14103         * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
14104         a symbol (might be valop instead)
14105         * device/lib/Makefile.in: added errno.c to HC08SOURCES
14106         * device/lib/clean.mk: added hc08 to the cleaning list
14107
14108 2003-11-04  Borut Razem <borut.razem AT siol.net>
14109
14110         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
14111           made 2003-11-04
14112         * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
14113           as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
14114           malloc is declared in standard stdlib.h
14115
14116 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14117
14118         * device/lib/hc08/Makefile: need to clean .rel not .o files
14119         * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
14120
14121 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14122
14123         * src/port.h,
14124         * src/hc08/main.c,
14125         * src/mcs51/main.c,
14126         * src/ds390/main.c,
14127         * src/z80/main.c,
14128         * src/avr/main.c,
14129         * src/pic/main.c,
14130         * src/pic16/main.c,
14131         * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
14132         * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
14133         tests (which uses the port's oclsExpense function)
14134         * src/SDCC.y,
14135         * src/SDCCast.c,
14136         * src/SDCCicode.c,
14137         * src/hc08/gen.c,
14138         * src/ds390/gen.c,
14139         * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
14140
14141 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14142
14143         * src/SDCCcse.c (ifxOptimize),
14144         * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
14145         an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
14146         deleting the IFX iCode.
14147         * src/hc08/ralloc.c: reduced unneeded slocs
14148         * src/hc08/gen.c: fixed bug in asmopToBoolean
14149
14150 2003-11-04  Borut Razem <borut.razem AT siol.net>
14151
14152         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
14153           support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
14154           as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
14155           transferred to configure
14156
14157 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
14158
14159         Use headers defined in the C[++] standards:
14160         * sim/ucsim/gui.src/serio.src/fileio.cc
14161         * sim/ucsim/gui.src/serio.src/frontend.cc
14162         * sim/ucsim/gui.src/serio.src/main.cc
14163         * sim/ucsim/gui.src/serio.src/posix_signal.cc
14164         * support/Util/NewAlloc.c
14165         * as/hc08/lklibr.c
14166         * as/mcs51/lklibr.c
14167         * as/z80/aslist.c
14168         * as/z80/assym.c
14169
14170 2003-11-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14171
14172         * Added MSVC projects for hc08 assembler and linker:
14173         all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
14174         /as/hc08/link_hc08.dsp
14175
14176 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
14177
14178         * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
14179
14180 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
14181
14182         * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
14183
14184 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14185
14186         * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
14187
14188 2003-10-31  Borut Razem <borut.razem AT siol.net>
14189
14190         * support/cpp2/cpplib.h,
14191           support/cpp2/cpplib.c,
14192           support/cpp2/cpplex.c,
14193           support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
14194           to switch _asm block preprocessing on / off. Default is
14195           #pragma preproc_asm +
14196
14197 2003-10-31  Borut Razem <borut.razem AT siol.net>
14198
14199         * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
14200           when outputting comment blocks (when executed with -C option) and
14201           _asm (SDCPP specific) blocks
14202
14203 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14204
14205         * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
14206
14207 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
14208
14209         * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
14210
14211 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
14212
14213         * src/SDCCmain.c (linkEdit): "fixed" bug #833605
14214         * src/SDCCast.c (decorateType): fixed bug #832664
14215
14216 2003-10-31  Borut Razem <borut.razem AT siol.net>
14217
14218         * support/cpp2/cpplex.c: fixed for SDCPP:
14219           comments(when executed with -C option) and _asm blocks
14220           were included even if they where in skipped #if block.
14221           Applied solution from GCC cpp 3.3.2
14222
14223 2003-10-31  Borut Razem <borut.razem AT siol.net>
14224
14225         * src/SDCC.lex: sdcc now understands both formats:
14226           '# <line_number> <file_name>' and
14227           '#line <line_number> <file_name>'
14228         * support/cpp2/cppmain.c: sdcpp now generates the standard
14229           '# <line_number> <file_name>' instead of former
14230           '#line <line_number> <file_name>'
14231
14232 2003-10-30  Borut Razem <borut.razem AT siol.net>
14233
14234         * support/cpp2/cpphash.h,
14235         * support/cpp2/cpplib.h
14236         * support/cpp2/cpplex.c,
14237         * support/cpp2/cppmain.c,
14238         * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
14239
14240 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14241
14242         Fixed a number of problems revealed by bug #827883.
14243         * src/SDCCloop.c (loopInvariants): Spill location of the
14244         result operand should be recomputed if extracted from
14245         a loop. Also, don't extract assignments of an iTemp
14246         from a literal.
14247         * src/SDCCast.c (isConformingBody): loop reversal should
14248         not occur if the control variable is involved with a
14249         relational operator.
14250
14251 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
14252
14253         * .version: bumped to 2.3.6 to reflect the big improvements
14254         made by Erik and Klaus. Thanks!
14255
14256 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
14257
14258         Replaced the livrange code.
14259         * src/SDCClrange.c: added new LR code
14260         * src/SDCCloop.c,
14261         * src/SDCCBBlock.h: removed remainig parts from old LR code
14262         * src/ds390/ralloc.c,
14263         * src/ds390/gen.c: minor fixes to make it work with new code
14264
14265 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14266
14267         * as/hc08/asm.h,
14268         * as/hc08/lkrloc.c,
14269         * src/hc08/gen.c,
14270         * src/hc08/ralloc.c: Fix various warnings related to the hc08
14271         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
14272         (tweaked fix for bug #818696)
14273
14274 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14275
14276         * src/z80/ralloc.c (joinPushes): Fixed bug #828742
14277
14278 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14279
14280         * src/SDCCmain.c,
14281         * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
14282         * src/mcs51/gen.c (gencjneshort),
14283         * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
14284         more efficient (per Scott Bronson's suggestion)
14285
14286 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14287
14288         Extended the semantics of the critical keyword to include
14289         individual statements. See RFE #827755 and #799831
14290         * src/SDCC.y
14291         * src/SDCCicode.c
14292         * src/SDCCopt.c
14293         * src/SDCCast.c
14294         * support/Util/SDCCerr.c
14295         * support/Util/SDCCerr.h
14296         * src/mcs51/gen.c
14297         * src/ds390/gen.c
14298         * src/hc08/gen.c
14299
14300 2003-10-19  Borut Razem <borut.razem AT siol.net>
14301
14302         * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
14303
14304 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14305
14306         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
14307         Fixed bug #818696
14308         * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
14309         and predecrement operand is displayed
14310
14311 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
14312
14313         * src/SDCCval.c (valMinus): fixed bug #826041
14314
14315 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14316
14317         Some hc08 related updates that I missed earlier
14318         * sim/ucsim/stypes.h
14319         * support/regression/ports/hc08/spec.mk
14320
14321 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14322
14323         New target "hc08" for the Motorola 68hc08 family of micros
14324
14325         * configure
14326         * configure.in
14327         * Makefile
14328         * src/hc08/*
14329         * src/SDCCmain.c
14330         * src/port.h
14331         * sim/ucsim/hc08.src/*
14332         * sim/ucsim/configure.in
14333         * src/ucsim/configure
14334         * sim/ucsim/packages_in.mk
14335         * as/hc08/*
14336         * as/Makefile
14337         * device/include/mc68hc908qy.h
14338         * device/lib/hc08/*
14339         * device/lib/Makefile.in
14340         * support/regression/ports/hc08/*
14341         * support/regression/Makefile
14342
14343 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14344
14345         * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
14346         regression test
14347         * src/ds390/gen.c (genCast): fixed bug #821957
14348
14349 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
14350
14351         * device/lib/logf.c: "fixed" overlay bug
14352         * support/regression/ports/host/spec.mk: added m library
14353         * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
14354         * support/regression/tests/float_trans: added (for Eric)
14355
14356 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
14357
14358         * src/mcs51/gen.c (genCpl): fixed bug
14359         http://sf.net/mailarchive/message.php?msg_id=6263915
14360
14361 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
14362
14363         * src/SDCCast.c (decorateType): added extended constant folding
14364         * src/SDCCsymt.c (computeType): cleanup
14365         * src/SDCCval.c (valShift): minor optimization
14366         * support/regression/tests/ast_constant_folding.c: added
14367
14368 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14369
14370         * src/SDCCmain.c: removed some unintended changes
14371
14372 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14373
14374         * src/SDCCmain.c (setParseWithComma): fixed bug #816685
14375         * src/z80/gen.c: fixed part of bug #817589
14376         * src/SDCCsymt.c (checkFunction): fixed bug #817895
14377
14378 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
14379
14380         Replaced cast (void **) with (void *) to avoid gcc 3 warning:
14381         * src/SDCCcflow.c
14382         * src/SDCCcse.c
14383         * src/SDCCdflow.c
14384         * src/SDCClabel.c
14385         * src/SDCClrange.c
14386         * src/SDCCmem.c
14387         * src/SDCCopt.c
14388         * src/SDCCpeeph.c
14389         * src/SDCCset.c
14390         * src/avr/ralloc.c
14391         * src/ds390/ralloc.c
14392         * src/izt/ralloc.c
14393         * src/mcs51/ralloc.c
14394         * src/pic/ralloc.c
14395         * src/pic16/ralloc.c
14396         * src/xa51/ralloc.c
14397         * src/z80/ralloc.c
14398         * src/z80/gen.c: removed unused label "release:"
14399
14400 2003-10-06  Borut Razem <borut.razem AT siol.net>
14401
14402         * src/SDCC.lex: removed definition of unused variables
14403           save_optimize and save_options
14404
14405 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
14406
14407         * clean.mk: removed '=' in "-maxdepth=1"
14408         * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
14409         * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
14410
14411 2003-10-06  Borut Razem <borut.razem AT siol.net>
14412
14413         * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
14414           my_unput() replaced by unput()
14415
14416 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
14417
14418         * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
14419         setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
14420         type-punned pointer will break strict-aliasing rules"
14421         Old LR behaviour is again default; Klaus' LR can be choosen by
14422         defining the environment variable LRKLAUS
14423         * src/SDCCBBlock.h
14424         * src/SDCCloop.c
14425         * src/SDCClrange.c
14426         * src/ds390/ralloc.c (spillThis): applied Klaus' patch
14427         * clean.mk: fixed removal of files in bin/CVS/
14428         * device/lib/clean.mk: fixed removal of directories small and large
14429         * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
14430         * src/SDCCicode.c,
14431         * src/SDCCval.c: removed superflous test for pedantic
14432
14433 2003-10-05  Borut Razem <borut.razem AT siol.net>
14434
14435         * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
14436           Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
14437           message "unmatched #pragma SAVE and #pragma RESTORE"
14438
14439 2003-10-04  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14440
14441         * doc/sdccman.lyx: various additions and updates (interrupts, inline
14442           assembly, critical functions, atomic, nojtbound)
14443
14444 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
14445
14446         Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
14447         * src/SDCCBBlock.h
14448         * src/SDCCloop.c
14449         * src/SDCCloop.h
14450         * src/SDCClrange.c
14451
14452 2003-10-03  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14453
14454         * src/z80/gen.h,
14455         * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
14456         * src/mcs51/gen.h
14457         * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
14458         * src/ds390/gen.h
14459         * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
14460         * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
14461         * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
14462
14463 2003-10-02  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14464
14465         * src/z80/gen.c (genRet): fixed bug #524753
14466         * src/z80/gen.c (genCast): fixed internal error on cast from
14467         pointer to long
14468         * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
14469         fix for bug #477835 to the z80
14470         * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
14471         for tracking iCodes in the peephole optimizer for z80
14472
14473 2003-10-01  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14474
14475         * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
14476         the other part of bug #814548
14477         * src/SDCCpeeph.c (labelInRange): fixed bug #814558
14478
14479 2003-09-30  Bernhard Held <bernhard AT bernhardheld.de>
14480
14481         * src/SDCCcse.c: fixed part of bug #814548
14482
14483 2003-09-28  Borut Razem <borut.razem AT siol.net>
14484
14485         * src/asm.c: rewrite of printILine() to use temporary file instead
14486           a pipe
14487         * src/xa51/main.c: commented out declaration of int rewinds
14488
14489 2003-09-27  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14490
14491         * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
14492
14493 2003-09-26  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14494
14495         * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
14496         * src/asm.c (printILine): Fixed bug #811015
14497
14498 2003-09-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14499
14500         *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
14501         freeing.
14502
14503 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14504
14505         * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
14506         * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
14507         to correctly handle general case of AOP_PAIRPTR
14508         * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
14509
14510 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14511
14512         * src/mcs51/ralloc.c (fillGaps),
14513         * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
14514         register positioning bug)
14515
14516 2003-09-21  Bernhard Held <bernhard AT bernhardheld.de>
14517
14518         * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
14519
14520 2003-09-19  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14521
14522         * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
14523         genCodePointerGet, genGenPointerGet, genFarPointerSet,
14524         genGenPointerSet): handle AOP_DPTR correctly when loading dptr
14525         (ralloc doesn't intentionally do this now, but perhaps later)
14526         * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
14527         * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
14528         register positioning bugs (Fixed bug #762602 and #795325)
14529         * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
14530         (Fixed bug #808779)
14531         * src/z80/gen.c: increased _vemit2's buffer[] to handle long
14532         lines that --i-code-in-asm generates
14533
14534 2003-09-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14535
14536         *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
14537         trying to fclose a FILE* that was already closed.
14538
14539 2003-09-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14540
14541         * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
14542         of const struct should be treated as if const themselves)
14543
14544 2003-09-18  Bernhard Held <bernhard AT bernhardheld.de>
14545
14546         * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
14547
14548 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14549
14550         * support/librarian/sdcclib.c: Generate correct offsets for libraries with
14551         Unix (/n) and DOS (/r/n) line terminations.
14552
14553 2003-09-17  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14554
14555         * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
14556         bug #613775
14557
14558 2003-09-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14559
14560         * src/mcs51/gen.c (genFunction, genEndFunction),
14561         * src/ds390/gen.c (genFunction, genEndFunction): Moved save
14562         and restore of EA so that stack offsets to parameters are
14563         correct when using both critical and reentrant/stack-auto.
14564         * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
14565         size (can be triggered in error if sloc is shared between
14566         different sized objects)
14567         * device/include/float.h: fixed macros to explicitly use
14568         unsigned long where needed
14569
14570 2003-09-15  Bernhard Held <bernhard AT bernhardheld.de>
14571
14572         Feature req. 799831: added code to allow nesting of critical functions
14573         * src/mcs51/gen.c (genFunction, genEndFunction)
14574         * src/ds390/gen.c (genFunction, genEndFunction)
14575
14576 2003-09-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14577
14578         * src/SDCCsymt.c (sclsFromPtr),
14579         * src/SDCCsymt.h,
14580         * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
14581         support for standard C idiom of memory mapped variables; for
14582         example, *((xdata int*)0x1234) = 1 is now internally equivalent
14583         to xdata int at 0x1234 tempvar = 1.
14584         * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
14585         provided by Akiya ISHIDA
14586
14587 2003-09-13  Bernhard Held <bernhard AT bernhardheld.de>
14588
14589         * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
14590         * src/SDCCval.c (constVal): added reduction from int to char
14591         * src/SDCCval.c (valMult, valDiv): fixed sign handling
14592         * src/SDCCval.c (valShift): fixed after change of cheapestVal()
14593         * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
14594         to ignore the sign
14595         * support/regression/tests/shifts.c: fixed
14596
14597 2003-09-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14598
14599         * src/z80/gen.c (genXor): Fixed bug #805445
14600
14601 2003-09-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14602
14603         Fixed bug #621531 (const & volatile confusion in the type chain).
14604         DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
14605         refer to the const or volatile state of the pointer itself.
14606
14607         * src/SDCCast.c
14608         * src/SDCCglue.c
14609         * src/SDCCicode.c
14610         * src/SDCCsymt.c
14611         * src/SDCCval.c
14612         * src/SDCC.y
14613         * src/SDCCsymt.h
14614         * src/pic/gen.c
14615         * src/pic/ralloc.c
14616         * src/pic16/gen.c
14617         * src/pic16/ralloc.c
14618         * support/regression/tests/const.c
14619
14620 2003-09-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14621
14622         When checking for duplicated modules, use absolute paths
14623         instead of relative paths.  Files changed:
14624
14625         * as/mcs51/lklib.c
14626         * link/z80/lklib.c
14627
14628 2003-09-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14629
14630         * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
14631
14632 2003-09-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14633
14634         * device/include/string.h: added size_t typedef, changed
14635         prototypes to use size_t, eliminated separate reentrant and
14636         non-reentrant declarations, added _memmove declaration
14637         * device/lib/_memcpy.c: changed to use size_t instead of int,
14638         changed /4 to >>2 to avoid division library call
14639         * device/lib/_memcmp.c,
14640         * device/lib/_memset.c,
14641         * device/lib/_strncat.c,
14642         * device/lib/_strncpy.c,
14643         * device/lib/_strncmp.c: changed to use size_t instead of int
14644         * device/lib/_memmove.c: new file (fixed bug #772294)
14645         * device/lib/Makefile.in: added _memmove.c
14646         * device/lib/z80/asm_strings.s: fixed bug #772290
14647         * support/regression/tests/bitfields.c: attempt to fix host assertion
14648         failure on amd64-unknown-linux2.2
14649
14650 2003-09-06  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14651
14652         * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
14653         * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
14654         * as/z80/asmain.c (main): fixed bug #801766
14655
14656 2003-09-06  Bernhard Held <bernhard AT bernhardheld.de>
14657
14658         * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
14659         compilers
14660
14661 2003-09-05  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14662
14663         * src/SDCCast.c (isConformingBody): fixed loop reversal bug
14664         reported in bug #800609
14665
14666 2003-09-04  Vangelis Rokas <vrokas AT otenet.gr>
14667
14668         * Top header beautifications in src/pic16 directory:
14669           device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
14670           pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
14671           pcoderegs.h, ralloc.c, ralloc.h
14672         * main.c: added top header and GPL license notice
14673         * pcode.c: fixed the if-conditional warning
14674
14675 2003-09-04  Bernhard Held <bernhard AT bernhardheld.de>
14676
14677         * device/lib/_mullong.c: replaced int by short for gcc
14678
14679 2003-08-31  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14680
14681         * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
14682         and JUMPTABLE iCodes properly now (worked by accident before)
14683         * src/mcs51/gen.c (leftRightUseAcc),
14684         * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
14685         iCode properly now. Use getSize instead of nRegs since a & b
14686         aren't part of the nRegs tally.
14687
14688 2003-08-31  Vangelis Rokas <vrokas AT otenet.gr>
14689
14690         * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
14691         * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
14692           before instructions that use the _STATUS register
14693
14694 2003-08-31  Bernhard Held <bernhard AT bernhardheld.de>
14695
14696         * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
14697         * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
14698         fetching of the pointer
14699         * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
14700         copied from genNearPointerSet()
14701         * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
14702         * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
14703         If they pop r0/r1 they must be called in the opposite order than aopOp().
14704         * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
14705         (resp. --stack-auto), prepared for --xstack
14706
14707 2003-08-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14708
14709         * doc/sdccman.lyx: reverted tables to those in cvs 1.64
14710
14711 2003-08-28  Bernhard Held <bernhard AT bernhardheld.de>
14712
14713         * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
14714         these ports have their own __sdcc_external_start()
14715
14716 2003-08-26  Bernhard Held <bernhard AT bernhardheld.de>
14717
14718         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
14719         * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
14720         type for bits was changed. It resulted in bit variables becoming
14721         global, which is not permitted in PIC 14 assembly output.
14722
14723 2003-08-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14724
14725         * doc/sdccman.lyx: various additions and updates. Rearranged sections
14726
14727 2003-08-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14728
14729         Z80 and MCS51 linkers complaint if a public symbol is defined
14730         in more than one library module:
14731
14732         * as/mcs51/lklib.c
14733         * link/z80/lklib.c
14734         * as/mcs51/Makefile.in
14735
14736 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14737
14738         A few small changes that speed up the peephole optimizer.
14739
14740         * src/SDCCpeeph.c
14741
14742 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14743
14744         Try to make the peephole optimizer smarter by maintaining
14745         an association between the assembly source code and the
14746         iCodes that originated them. Put this information to use
14747         with a new peephole rule condition "notVolatile" so that
14748         the rules can be aggressive yet still safe.
14749
14750         * src/SDCCpeeph.c
14751         * src/SDCCpeeph.h
14752         * src/mcs51/gen.c
14753         * src/mcs51/peeph.def
14754
14755 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14756
14757         Fixed bug #741761
14758
14759         * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
14760         * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
14761         if the left or right operand symbols have the accuse flag set.
14762
14763 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14764
14765         Changed the type of the result of the ! (NOT) operator to char;
14766         previously it returned the same type as the source. This allows
14767         us to eliminate all the genFloatNot functions (all of its target
14768         implementations were very buggy) since !float can use the same
14769         code as !long now.
14770
14771         * src/SDCCicode.c (ast2iCode): ! returns char
14772         * src/mcs51/gen.c (genNot, genNotFloat),
14773         * src/ds390/gen.c (genNot, genNotFloat),
14774         * src/z80/gen.c (genNot, genNotFloat),
14775         * src/pic/gen.c (genNot, genNotFloat),
14776         * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
14777
14778 2003-08-19  Bernhard Held <bernhard AT bernhardheld.de>
14779
14780         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
14781         1. Interrupt would not compile properly. Ensure PCLATH register is saved
14782            during interrupts. Ensure WSAVE is located at a shared bank address.
14783         2. Fixed page selection in some places
14784         3. Fixed BTFSS/C to where necessary use registers directly and not simply
14785            the registers name strings.
14786         4. Fixed "signed / unsigned compare" compiler warnings.
14787         5. The PIC port manages its own allocation of the general purpose
14788            registers, but makes no attempt to reuse them. As a result when
14789            compiling it soon runs out of general purpose registers. Some
14790            additional code was added to the files pcode.c and device.c to walk
14791            through the function call tree and rename the registers so that they
14792            get reused.
14793
14794         * src/pic/device.c
14795         * src/pic/gen.c
14796         * src/pic/glue.c
14797         * src/pic/pcode.c
14798         * src/pic/pcode.h
14799         * src/pic/ralloc.c
14800         * src/pic/ralloc.h
14801         * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
14802         genPlus() & genMinus() when the result is the same as left or right
14803
14804 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14805
14806         * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
14807
14808 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14809
14810         Made bitfield a distinct type from bit so that bitfields
14811         convert as per ANSI C and bits retain their traditional
14812         boolean style behaviour. Implemented bitfield support in
14813         the z80 port.
14814
14815         * src/SDCCsymt.h,
14816         * src/SDCCsymt.c,
14817         * src/SDCCast.c,
14818         * src/cdbFile.c,
14819         * src/mcs51/gen.c,
14820         * src/ds390/gen.c: bit v bitfield split
14821         * src/z80/gen.c: New support for bitfields
14822         * support/regression/tests/bitfields.c: reenabled z80,
14823         added more tests
14824
14825 2003-08-17  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14826
14827         Rules 246.x, 247.x relate to bitfields, the others speed up
14828         access to xdata mapped I/O devices.
14829
14830         * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
14831
14832 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14833
14834         Cleaned up genPackBits and genUnpackBits and added two helper
14835         functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
14836         for literal assignments in genPackBits (thanks to Frieder for
14837         reminding me).
14838
14839         * src/mcs51/gen.c
14840         * src/ds390/gen.c
14841
14842 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14843
14844         Fixed bug #748310 (pointer to function type mishandled when the
14845         function name is omitted). Also fixed a SIGSEGV when a function
14846         attribute (reentrant, etc) is used on a non-function or on a
14847         function but misplaced before the parameter list.
14848
14849         * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
14850         bug #748310
14851         * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
14852         * support/Util/SDCCerr.h,
14853         * support/Util/SDCCerr.c: Added func attr misuse error msg
14854
14855 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
14856
14857         Fixed bug #787649 by anonymous
14858         * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
14859         * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
14860
14861 2003-08-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14862
14863         Fixed numerous bitfield problems.
14864
14865         * src/SDCC.y: More bitfield related error checking
14866         * src/SDCCsymt.h,
14867         * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
14868         * support/Util/SDCCerr.h,
14869         * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
14870         * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
14871         * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
14872         * support/regression/tests/bitfields.c: tests added
14873
14874 2003-08-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14875
14876         Made the constant following the "interrupt" keyword optional. If
14877         omitted, the function will not automatically be given an entry
14878         in the interrupt vector table (similar to #pragma NOIV, but
14879         less syntacticly kludgy). The interrupt number is also now
14880         range checked. Also fixed a bug in the high order bit example
14881         in the manual.
14882
14883         * src/SDCC.y
14884         * src/SDCCmem.c
14885         * src/SDCCglue.c
14886         * src/SDCCsymt.h
14887         * support/Util/SDCCerr.c
14888         * support/Util/SDCCerr.h
14889         * doc/sdccman.lyx
14890
14891 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
14892
14893         * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
14894         * src/SDCCicode.c (operandOperation): rewritten some ops
14895         (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
14896         * src/SDCCsymt.c (computeType): literals are handled the same way as any
14897         other type
14898         * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
14899         be re-activated by defining REDUCE_LITERALS)
14900         * src/SDCCval.c (constVal): fixed; hex and octal constants can be
14901         unsigned, but are signed by default
14902         * src/SDCCval.c (constVal): rearranged
14903         * src/SDCCval.c (valMod): preliminary fix
14904         * src/SDCCval.c (valCastLiteral): use TYPE_* types
14905         * support/regression/literalop.c: added, work in progress
14906
14907 2003-08-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14908
14909         Generate warnings for useless declarations like "char data;"
14910         that don't do what new users expect.
14911
14912         * src/SDCC.y
14913         * support/Util/SDCCerr.h
14914         * support/Util/SDCCerr.c
14915
14916 2003-08-09  Bernhard Held <bernhard AT bernhardheld.de>
14917
14918         * src/SDCCval.c (valMult): fix overflow detection of negative int
14919
14920 2003-08-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14921
14922         * src/z80/ralloc.c (joinPushes): made compatible with new signedness
14923
14924         Changes to support big endian targets:
14925
14926         * src/ports.h
14927         * src/SDCCglue.c
14928         * src/avr/main.c
14929         * src/ds390/main.c
14930         * src/izt/i186.c
14931         * src/mcs51/main.c
14932         * src/pic/main.c
14933         * src/pic16/main.c
14934         * src/xa51/main.c
14935         * src/z80/main.c
14936
14937 2003-08-06  Bernhard Held <bernhard AT bernhardheld.de>
14938
14939         * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
14940         * device/lib/time.c: fixed warning "integer overflow in expression"
14941
14942 2003-08-05  Bernhard Held <bernhard AT bernhardheld.de>
14943
14944         * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
14945         * src/SDCCval.c (constVal): changed default to signed; hex and octal
14946         constants are unsigned; added recognition of "u" flag for unsigned
14947         * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
14948         * src/SDCCval.c (valDiv, valMod): fixed signdness
14949         * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
14950         signedness of modulo, left and right shift
14951         * support/Util/SDCCerr.c: added warning "integer overflow in expression"
14952         * support/Util/SDCCerr.h: added warning W_INT_OVL
14953         * src/SDCCast.c (decorateType): fixed gcc3.3 warning
14954         * src/SDCCast.c (ast_print): improved output of constants
14955
14956 2003-08-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14957
14958         Fixed some warnings when building with MSVC:
14959
14960         * as/mcs51/asdata.c
14961         * as/z80/asdata.c
14962         * as/mcs51/asm.h
14963         * as/z80/asm.h
14964         * link/z80/aslink.h
14965         * link/z80/lkdata.c
14966         * link/z80/lkeval.c
14967         * link/z80/lkgb.c
14968         * link/z80/lkihx.c
14969         * link/z80/lks19.c
14970         * link/z80/lksym.c
14971         * support/cpp2/cpplib.c
14972         * src/ds390/gen.c
14973         * src/mcs51/gen.c
14974
14975 2003-08-03  Bernhard Held <bernhard AT bernhardheld.de>
14976
14977         * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
14978
14979 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14980
14981         * support/librarian/clean.mk: Do not remove Makefile.
14982         * support/librarian/Makefile: added.
14983
14984 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14985
14986         Added librarian to MSVC build:
14987         * all.dsp
14988         * sdcc.dsw
14989         * support/librarian/librarian.dsp
14990
14991         'configure' not needed for librarian, removed:
14992         * support/librarian/configure
14993         * support/librarian/configure.in
14994         * support/librarian/config_in.h
14995         * support/librarian/Makefile.in
14996
14997         Hopefully these ones built the librarian and the rest of sdcc properly:
14998         * Makefile
14999         * Makefile.common.in
15000
15001         Messed up 'configure', so revert to previous version:
15002         * configure
15003         * configure.in
15004
15005 2003-07-31  Bernhard Held <bernhard AT bernhardheld.de>
15006
15007         * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
15008         there, while the mantissa of a double is "only" 53 bits wide.
15009
15010 2003-07-31  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15011
15012         Adding sdcclib to the build.  MSVC project coming soon.
15013         Files added/changed:
15014
15015         * support/librarian/clean.mk
15016         * support/librarian/configure
15017         * support/librarian/configure.in
15018         * support/librarian/config_in.h
15019         * support/librarian/Makefile.bcc
15020         * support/librarian/Makefile.in
15021         * support/librarian/sdcclib.c
15022         * Makefile.bcc
15023         * Makefile
15024         * Makefile.common.in
15025         * configure
15026         * configure.in
15027
15028 2003-07-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15029
15030         Linker now complaints if linked modules have conflicting options, for
15031         example, one compiled using --model-large and another one compiled with
15032         --model-small.  The following files were modified:
15033
15034         * as/mcs51/asdata.c
15035         * as/mcs51/aslink.h
15036         * as/mcs51/asm.h
15037         * as/mcs51/asmain.c
15038         * as/mcs51/asout.c
15039         * as/mcs51/i51pst.c
15040         * as/mcs51/lkdata.c
15041         * as/mcs51/lklibr.c
15042         * as/mcs51/lkmain.c
15043         * as/z80/asdata.c
15044         * as/z80/asm.h
15045         * as/z80/asmain.c
15046         * as/z80/asout.c
15047         * as/z80/z80pst.c
15048         * link/z80/aslink.h
15049         * link/z80/lkdata.c
15050         * link/z80/lklibr.c
15051         * link/z80/lkmain.c
15052         * src/SDCCglue.c
15053
15054 2003-07-28  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15055
15056         *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
15057         as/mcs51/lklibr.c: Generate a warning when a library is not found.
15058
15059 2003-07-28  Bernhard Held <bernhard AT bernhardheld.de>
15060
15061         * src/z80/mappings.i: fix _mul[us][int,long] entries
15062
15063 2003-07-26  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15064
15065         *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
15066
15067 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
15068
15069         * src/SDCCicode.c (operandOperation): really fixed problem with bitops
15070         * support/regression/tests/bitopcse.c: added
15071         fixed warning:
15072         * src/avr/gen.c:
15073         * src/pic/gen.c:
15074         * src/pic16/gen.c:
15075         * src/z80/gen.c:
15076         * src/xa51/gen.c:
15077
15078 2003-07-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15079
15080         added support for new library format to z80, gbz80 linkers:
15081         *link/z80/aslink.h
15082         *link/z80/lklex.c
15083         *link/z80/lklib.c
15084         *link/z80/lklist.c
15085
15086 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
15087
15088         * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
15089         after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
15090
15091 2003-07-23  Bernhard Held <bernhard AT bernhardheld.de>
15092
15093         added DUMMY_READ_VOLATILE:
15094         * src/SDCC.y:
15095         * src/avr/gen.c:
15096         * src/xa51/gen.c:
15097         * src/z80/gen.c:
15098         * src/pic/gen.c:
15099         * src/pic16/gen.c:
15100         * src/mcs51/gen.c:
15101         * src/ds390/gen.c:
15102         * src/SDCCcse.c (algebraicOpts): many improvements
15103         * src/SDCCcse.h: removed algebraicOpts()
15104         * src/SDCCicode.c (picDummyRead): added
15105
15106 2003-07-23  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15107
15108         * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
15109         "Insufficient space in data memory".
15110
15111 2003-07-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
15112
15113         * src/mcs51/gen.c: fixed bug #771358
15114         * src/z80/gen.c: fixed bug #759087
15115
15116 2003-07-20  Bernhard Held <bernhard AT bernhardheld.de>
15117
15118         * src/pic16/glue.c: minor cleanup by Vangelis
15119
15120 2003-07-19  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15121
15122         * device/include/regc515c.h: fixed #758477
15123         * device/lib/_gptrget.c: saving some cycles in generic pointer get
15124         * device/lib/_gptrput.c: saved a few bytes
15125         * my tab spacing is 8, yours too?)
15126         * device/lib/_ser.c: process RX bytes earlier than TX bytes
15127         * device/lib/serial.c: process RX bytes earlier than TX bytes
15128         * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
15129
15130 2003-07-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
15131
15132         * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
15133
15134 2003-07-17  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15135
15136         * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
15137
15138 2003-07-17  Bernhard Held <bernhard AT bernhardheld.de>
15139
15140         * device/lib/Makefile.in: bad fix, reverted to 1.43
15141
15142 2003-07-16  Bernhard Held <bernhard AT bernhardheld.de>
15143
15144         * device/lib/Makefile.in: added missing z80 object files
15145
15146 2003-07-14  Bernhard Held <bernhard AT bernhardheld.de>
15147
15148         * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
15149         pic16 progress by Vangelis:
15150         * src/SDCCglobl.h:
15151         * src/SDCCmain.c:
15152         * src/pic/Makefile:
15153         * src/pic:
15154         * pic/Makefile:
15155         * pic16/device.c:
15156         * pic16/device.h:
15157         * pic16/gen.c:
15158         * pic16/gen.h:
15159         * pic16/genarith.c:
15160         * pic16/glue.c:
15161         * pic16/main.c:
15162         * pic16/pcode.c:
15163         * pic16/pcode.h:
15164         * pic16/pcodepeep.c:
15165         * pic16/peeph.def:
15166
15167 2003-07-13  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15168
15169         * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
15170
15171 2003-07-12  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15172
15173         * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
15174         added gbz80 build to MSVC project.
15175         * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
15176         link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
15177         from 8051 stuff and setup so it links using a .lnk file.
15178
15179 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15180
15181         * support/librarian/sdcclib.c: sdcc librarian.
15182         * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
15183         with sdcclib.
15184
15185 2003-07-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15186
15187         * as/mcs51/lkmain.c: properly handle extensions in function afile.
15188
15189 2003-07-02  Borut Razem <borut.razem AT siol.net>
15190
15191         * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
15192         src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
15193         src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
15194         src/xa51/main.c, src/z80/main.c:
15195         virtualization of glue() function: each port has it's own glue function,
15196         which is accessed by do_glue function pointer in PORT.general structure
15197
15198 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
15199
15200         * DS800C400 fun, improved ROM interface and tinibios.
15201
15202 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
15203
15204         * More support for DS80C400. Now includes beginning of interface to ROM.
15205
15206 2003-06-25  Bernhard Held <bernhard AT bernhardheld.de>
15207
15208         * src/mcs51/gen.c (gencjneshort): fixed bug #760345
15209
15210 2003-06-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15211
15212         * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
15213
15214 2003-06-19  Borut Razem <borut.razem AT siol.net>
15215
15216         * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
15217
15218 2003-06-19  Borut Razem <borut.razem AT siol.net>
15219
15220         * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
15221         fixed Z80 port - crt0.o: cannot open.
15222
15223 2003-06-19  Bernhard Held <bernhard AT bernhardheld.de>
15224
15225         * support/Util/MySystem.c (merge_command): revert bad fix
15226
15227 2003-06-18  Borut Razem <borut.razem AT siol.net>
15228
15229         * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
15230
15231 2003-06-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15232
15233         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
15234         option --use-stdout sends errors to stdout instead of stderr.
15235
15236 2003-06-18  Bernhard Held <bernhard AT bernhardheld.de>
15237
15238         * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
15239
15240 2003-06-15  Borut Razem <borut.razem AT siol.net>
15241
15242         * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
15243         * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
15244         * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
15245         fixed width array of pointers replaced with sets;
15246         multiple include and lib paths ared transferred to preprocessor and linker
15247         * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
15248         * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
15249         fixed width array of pointers
15250         * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
15251         removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
15252         fixupPath(), getPathDifference()
15253         * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function  inExcludeList() by using sets instead
15254         fixed width array of pointers
15255
15256 2003-06-11  Bernhard Held <bernhard AT bernhardheld.de>
15257
15258         * src/pic16/ralloc.c: fix warnings
15259         * src/pic16/pcode.c: fix warning
15260
15261 2003-06-10  Scott Dattalo  <scott AT dattalo.com>
15262
15263          Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
15264         know all the details, but essentially this set of changes enable
15265         the pic16 port to generate movff instructions and generate assembler
15266         directives,
15267         * src/SDCCmain.c:
15268         * src/pic16/gen.c:
15269         * src/pic16/glue.c:
15270         * src/pic16/pcode.c:
15271         * src/pic16/device.c:
15272         * src/pic16/main.c:
15273         * src/pic16/pcode.h:
15274         * src/pic16/pcoderegs.c:
15275         * src/pic16/ralloc.c:
15276         * src/pic16/ralloc.h:
15277
15278 2003-06-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15279
15280         * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
15281         added option --vc, so sdcc errors and warnings are compatible with
15282         Microsoft Visual Studio.
15283
15284 2003-06-07  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15285
15286         * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
15287           device/lib/libfloat.lib: added atof function.
15288
15289 2003-06-04  Bernhard Held <bernhard AT bernhardheld.de>
15290
15291         * doc/sdccman.lyx: updated to Lyx 1.3
15292         * doc/cdbfileformat.lyx: updated to Lyx 1.3
15293         * doc/test_suite_spec.lyx: updated to Lyx 1.3
15294         * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
15295
15296 2003-06-03  Bernhard Held <bernhard AT bernhardheld.de>
15297
15298         * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
15299
15300 2003-06-02  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15301
15302         * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
15303           additions to the "related tools/documentation" section
15304
15305 2003-06-02  Bernhard Held <bernhard AT bernhardheld.de>
15306
15307         * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
15308
15309 2003-05-29  Bernhard Held <bernhard AT bernhardheld.de>
15310
15311         * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
15312         * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
15313
15314 2003-05-28  Bernhard Held <bernhard AT bernhardheld.de>
15315
15316         * doc/sdccman.lyx: fix double dash and other minor things
15317         * doc/Makefile: fix double dash
15318
15319 2003-05-28  Karl Bongers(patches from Martin Helmling)
15320         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
15321           condition and ignore commands.
15322
15323 2003-05-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15324
15325         * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
15326           is in parts still quite out of date, I did changes as far as I felt makes sense
15327           for a non-native english speaker.
15328           Please feel free to add to the manual or to correct my changes.
15329         * doc/Makefile: undid touching the date of intermediate tex files.
15330
15331 2003-05-26  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15332
15333         * doc/sdccman.lyx: Manual has an index now
15334
15335 2003-05-25  Bernhard Held <bernhard AT bernhardheld.de>
15336
15337         Finalize muluint/mulsint and mululong/mulslong merging:
15338         * device/lib/_mulint.c
15339         * device/lib/_mullong.c
15340         * device/lib/gbz80/mul.s
15341         * device/lib/gbz80/stubs.s
15342         * device/lib/z80/mul.s
15343         * device/lib/z80/stubs.s
15344         * src/SDCCsymt.c (initCSupport)
15345
15346 2003-05-25  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15347
15348         * as/mcs51/lkaomf51.c: Address space 'z' was missing.
15349         * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
15350           src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
15351           src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
15352           instead of /Zm500.
15353
15354 2003-05-25  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15355
15356         * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
15357           the regression tests I'm not brave enough to enable 245.b, 245.c
15358         * doc/sdccman.lyx: added latex preamble for hyperref package.
15359           Using pdflatex this will give you a hyperlinked pdf file with
15360           bookmarks. (prepend '%' before /usepackage if this breaks something)
15361
15362 2003-05-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15363
15364          * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
15365
15366 2003-05-22  Bernhard Held <bernhard AT bernhardheld.de>
15367
15368         * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
15369
15370 2003-05-21    <johan AT balder>
15371
15372         * src/SDCCglue.c (printIval): fixed bug #739934
15373
15374 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
15375
15376         Applied patch from bug 737905 (renamed yylineo to mylineno):
15377         * src/altlex.c
15378         * src/SDCCast.c
15379         * src/SDCglobl.h
15380         * src/SDCC.lex
15381         * src/SDCCsymt.c
15382         * src/SDCCval.c
15383         * src/pic16/pcode.c: Cleaned warnings
15384         * src/pic16/pcodeflow.c: Cleaned warnings
15385         * src/pic16/pcoderegs.c: Cleaned warnings
15386
15387 2003-05-19  Scott Dattalo  <scott AT dattalo.com>
15388
15389         * src/pic16/pcode.c: Cleaned warnings
15390         * src/pic16/pcodepeep.c: Cleaned warnings
15391         * src/pic16/ralloc.c: Cleaned warnings
15392
15393 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
15394
15395         * doc/sdccman.lyx: fixed bug 739745
15396         * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
15397
15398 2003-05-18  Bernhard Held <bernhard AT bernhardheld.de>
15399
15400         * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
15401         it can be defined with CFLAGS when running configure
15402         * src/SDCCmain.c: fixed compiling + linking with object files
15403
15404 2003-05-18  Vangelis Rokas (vrokas AT otenet.gr)
15405
15406         * configure.in: configure for pic16 port,
15407             added --disable-pic16-port
15408         * sdccconf_in.h: added macro OPT_DISABLE_PIC16
15409         * src/SDCCmain.c: linkOptions is changed to set *,
15410             added if/endif conditional macros to remove options help
15411             messages from optionsTable when a port is not configured, added
15412             support for the PIc16 port in the ports table, when executing
15413             the compiler with no port specified on command line, a default
15414             port is selected with the new macro DEFAULT_PORT which is
15415             defined in port.h, in setDefaultOptions() linkOptions is removed
15416             from initialization assignment, since now it is a set,
15417             parseCmdLine uses setParseWithComma for linkOptions, in
15418             linkEdit() linkOptions are accessed with new function indexSet()
15419             which returns the i'th item of a set variable. See SDCCset.c, in
15420             linkEdit() when calling buildCmdLine(), added linkOptions as
15421             last argument. Now users can pass arguments to gplink via the
15422             -Wl option, main() uses pic16glue() to glue up pic16 programs
15423         * src/SDCCpeeph.c: various changes to support pic16
15424         * src/SDCCset.c: added function  void *indexSet(set *, int)  to
15425             return the i'th item of the set
15426         * src/SDCCset.h: added function prototype for indexSet()
15427         * src/SDCCsymt.c: in checkSClass(), added support for PIC16
15428         * src/clean.mk: added pic16 in CLEANALLPORTS variable
15429         * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
15430             added macro DEFAULT_PORT
15431         * src/pic/main.c: corrected arguments of gplnk in _linkCmd
15432         * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
15433             generated
15434         * src/pic16/glue.c: commented out some error producing lines
15435         * src/pic16/main.c: __config directives are commented out to stop
15436             gpasm complaining and test the linkage with gplink, _linkCmd and
15437             _asmCmd changed to be more gplink and gpasm friendly
15438         * src/pic16/peeph.def: peep rule 3 is commented out, since it
15439             produced an error when parsed, peep rule 12 is added to utilize
15440             movff, but it is commented out since the pCode does not support
15441             yet a command with 2 address arguments
15442
15443 2003-05-18    <johan AT balder>
15444
15445         * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
15446         * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
15447 2003-05-17  Karl Bongers(apply patches from Martin Helmling)
15448
15449         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
15450         Added feature to script commands from file.
15451
15452 2003-05-14  Bernhard Held <bernhard AT bernhardheld.de>
15453
15454         * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
15455         * src/SDCCutil.c: include ctype.h for win32
15456
15457 2003-05-13  Bernhard Held <bernhard AT bernhardheld.de>
15458
15459         * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
15460
15461 2003-05-12  Karl Bongers(apply development patches from Martin Helmling)
15462
15463         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
15464         Fixed so you can set breakpoints prior to run, run does not stop
15465         on entry now.  Add tbreak.  Other enhancements and fixes for use
15466         with ddd.
15467
15468 2003-05-12  Borut Razem <borut.razem AT siol.net>
15469
15470         * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
15471
15472 2003-05-11  Borut Razem <borut.razem AT siol.net>
15473
15474         * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
15475         the path of bin directory, so that PATH is the only env. variable, which has to be set
15476         in case of standard installation.
15477         * src/ds390/ds390.dsp: increased value of /Zm option to 1000
15478         * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
15479         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
15480
15481 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
15482
15483         * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
15484         * support/regression/Makefile: inter-port-clean is no longer nesessary, the
15485         temp files are in the port dir; clean the gen/test directory when
15486         generating new test.c
15487         * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
15488         * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
15489         * support/regression/tests/zeropad.c: added
15490
15491 2003-05-09    <johan AT balder>
15492
15493         * src/SDCCglue.c: fixed bug #597940
15494
15495 2003-05-05  Karl Bongers(apply patches from Martin Helmling)
15496
15497         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
15498         cache sfr, optimize next,step, fix off by one sourceline,
15499         support ddd list function.
15500         * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
15501
15502 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
15503
15504         * support/regression/HTMLgen.py: added compare_s2f()
15505         * support/regression/Makefile: redo 1.27
15506         * support/regression/generate-cases.py: redo 1.5
15507
15508 2003-04-30  Bernhard Held <bernhard AT bernhardheld.de>
15509
15510         * support/regression/tests/float.c: workaround 33 bit hex constant
15511         * support/regression/tests/simplefloat.c: fix division for host
15512
15513 2003-04-29  Scott Dattalo  <scott AT dattalo.com>
15514
15515         * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
15516         that tame's the PIC's over-aggressive optimizer.
15517
15518 2003-04-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15519
15520          * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
15521          support for MSVC.
15522
15523 2003-04-29  Kevin Vigor <kevin AT vigor.nu>
15524
15525         Initial support for DS80C400. "Hello world" runs on TINIm400
15526         (with polled I/O).
15527
15528 2003-04-28  Karl Bongers(apply patches for Martin Helmling)
15529
15530          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
15531          * Some notes on ddd usage added in debugger/README
15532          Martin Helmling adding more features and fixes for ddd GUI debugger.
15533          Code added for nexti, stepi, up, down, and other adjustments.
15534
15535 2003-04-28  Scott Dattalo  <scott AT DATTALO.COM>
15536
15537         * src/pic/pCodepeep.c non-wildcard asmops are now handled
15538         * src/pic/peeph.def Added two rules to optimize carry manipulation
15539         * src/pic/* removed debug printfs
15540
15541 2003-04-28  Bernhard Held <bernhard AT bernhardheld.de>
15542
15543         * debugger/mcs51/cmd.c: added header newalloc.h
15544
15545 2003-04-26  Bernhard Held <bernhard AT bernhardheld.de>
15546
15547         * as/Makefile: new EXEEXT
15548         * as/z80/Makefile: remove trailing slash of BUILDIR
15549         * as/z80/clean.mk: new EXEEXT
15550         * Makefile.common.in: add to CFLAGS (and others), don't replace it
15551         * support/cpp2/Makefile.in: new EXEEXT
15552         * src/pic/glue.c (pic14emitRegularMap): fixed warning
15553
15554 2003-04-24  Bernhard Held <bernhard AT bernhardheld.de>
15555
15556         Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
15557         EXEEXT was introduced to fix all related problems with targets
15558         "clean", "install" and "uninstall"; a couple of further flaws
15559         especially with "clean" have been fixed too
15560         * as/mcs51/Makefile.in
15561         * as/mcs51/clean.mk
15562         * as/z80/Makefile
15563         * Makefile
15564         * clean.mk
15565         * debugger/mcs51/Makefile.in
15566         * debugger/mcs51/clean.mk
15567         * link/z80/Makefile
15568         * link/z80/Makefile.in
15569         * link/z80/clean.mk
15570         * link/Makefile
15571         * packihx/Makefile.in
15572         * packihx/clean.mk
15573         * sim/ucsim/Makefile
15574         * sim/ucsim/clean.mk
15575         * sim/ucsim/avr.src/Makefile.in
15576         * sim/ucsim/avr.src/clean.mk
15577         * sim/ucsim/s51.src/Makefile.in
15578         * sim/ucsim/s51.src/clean.mk
15579         * sim/ucsim/xa.src/Makefile.in
15580         * sim/ucsim/xa.src/clean.mk
15581         * sim/ucsim/z80.src/Makefile.in
15582         * sim/ucsim/z80.src/clean.mk
15583         * sim/ucsim/main_in.mk
15584         * sim/ucsim/packages_in.mk
15585         * sim/ucsim/gui.src/Makefile.in
15586         * sim/ucsim/gui.src/serio.src/Makefile.in
15587         * sim/ucsim/gui.src/serio.src/clean.mk
15588         * src/Makefile.in
15589         * src/clean.mk
15590         * support/cpp2/Makefile.in
15591         * support/cpp2/clean.mk
15592         * support/makebin/Makefile
15593         * support/makebin/clean.mk
15594         * support/scripts/sdcc_mingw32: --program-suffix no longer needed
15595         * doc/sdccman.lyx: --program-suffix no longer needed
15596
15597 2003-04-23  Karl Bongers(apply patches for Martin Helmling)
15598
15599          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
15600          Martin Helmling added support for ddd GUI debugger.
15601          Code added to display assembly, set variables, and other commands
15602          to interface to ddd.
15603
15604 2003-04-23  Bernhard Held <bernhard AT bernhardheld.de>
15605
15606         * as/Makefile: fix target clean
15607         * as/clean.mk: fix target clean
15608         * as/z80/clean.mk: fix target clean
15609
15610 2003-04-22  Bernhard Held <bernhard AT bernhardheld.de>
15611
15612         * Makefile.common.in: added  AT EXEEXT AT
15613         * configure.in: removed all mingw32 stuff
15614         * configure: rebuilt from configure.in
15615         * doc/sdccman.lyx: updated section "installation"
15616         * support/scripts/sdcc_mingw32: adapted to configure
15617         * support/scripts/sdcc_cygwin_mingw32: added
15618
15619 2003-04-22  Scott Dattalo  <scott AT dattalo.com>
15620
15621         * src/pic Added object file support for the PIC port
15622         * src/pic Applied patch from Craig Franklin (this started the object file support)
15623         * src/regression Updated the PIC regression tests for object files
15624
15625 2003-04-20  Borut Razem <borut.razem AT siol.net>
15626
15627         * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
15628           lklex.c: In function `getfid':
15629           lklex.c:203: warning: array subscript has type `char'
15630         * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
15631           with MSVC with global optimization enabled (probably an cl compiler bug ;-)
15632         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
15633           stack handling macros
15634
15635 2003-04-19  Borut Razem <borut.razem AT siol.net>
15636
15637         * "handling space characters in file path" task:
15638         * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
15639         * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
15640         * support/Util/MySystem.h: make it self-sufficient
15641         * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
15642           src/z80/main.c, sdcc/as/mcs51/lklex.c:
15643           handling space characters in file path
15644         * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
15645           (it will be used by assemblers, which have their own includes, e.g. gpasm)
15646         * support/Util/MySystem.c: handling space characters in executable's path
15647
15648 2003-04-19  Bernhard Held <bernhard AT bernhardheld.de>
15649
15650         * as/z80/Makefile: fix permanent rebuild of z80
15651         * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
15652         * support/regression/tests/bitfields.c: added Johan's bitfields.c
15653
15654 2003-04-18      Kevin Vigor <kevin AT vigor.nu>
15655
15656         * src/SDCCopt.c: add special case optimization to replace modulo by
15657           a power of two with a bitwise AND.
15658
15659 2003-04-18    <johan AT balder>
15660
15661         * src/mcs51/gen.c (getFreePtr): fixed bug #635354
15662
15663 2003-04-17    <johan AT balder>
15664
15665         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
15666         * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
15667
15668 2003-04-13  Borut Razem <borut.razem AT siol.net>
15669
15670         * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
15671         * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
15672           fixed mingw problem in adl_NORMALIZE_PATH
15673
15674 2003-04-12  Borut Razem <borut.razem AT siol.net>
15675
15676         * fixed "#pragma SAVE/RESTORE can not be nested":
15677         * src/SDCC.lex: reworked pragma handling functions
15678         * sdcc/src/SDCCglobl.h: reworked stack handling macros
15679         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
15680
15681 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
15682
15683         * src/SDCCutil.c (pathEquivalent): defined but not used
15684         * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
15685         * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
15686         * configure: rebuilt from configure.in
15687         * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
15688         * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
15689         * device/include/Makefile.in: replace sdcc_datadir
15690         * device/lib/Makefile.in: replace sdcc_datadir
15691         * Makefile.common.in: add LDFLAGS from configure
15692         * packihx/Makefile.in: use LDFLAGS
15693         * src/Makefile.in: use LDFLAGS
15694         * support/cpp2/Makefile.in: add LDFLAGS from configure
15695         * support/makebin/Makefile: use LDFLAGS
15696         * .version: bumped version number to 2.3.5
15697
15698 2003-04-12  Borut Razem <borut.razem AT siol.net>
15699
15700         * completed "different paths" task:
15701         * src/SDCCmacro.c: fixed bug in handling quotes
15702         * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
15703         * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
15704
15705 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
15706
15707         * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
15708
15709 2003-04-11 kevin Vigor <kevin AT vigor.nu>
15710
15711         * ds390/gen.c ds390/peeph.def: fix bug 706781
15712
15713 2003-04-11  Borut Razem <borut.razem AT siol.net>
15714
15715         * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
15716
15717 2003-04-10  Scott Dattalo  <scott AT dattalo.com>
15718
15719         * src/pic/* Applied the pointer-to-function patch from Steve Tell.
15720         * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
15721          set - this bit used to not be set...).
15722         * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
15723           bad code in PIC Port
15724         * src/regression/and2.c added to test bug 609268
15725         * src/regression/Makefile added and2.c to regression test
15726
15727
15728 2003-04-08    <johan AT CP255758-A>
15729
15730         * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
15731         * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
15732         * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
15733
15734 2003-04-07  Bernhard Held <bernhard AT bernhardheld.de>
15735
15736         * configure.in: fully support prefix, exec_prefix, datadir, docdir;
15737         fix bug #487815
15738         * support/cpp2/Makefile.in: fix bug #487815
15739         * configure: rebuilt from configure.in
15740         * Makefile.common.in: docdir changed, new path suffixes
15741         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
15742         * sdcc_vc_in.h: reflect changes from sdccconf.h
15743         * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
15744         * src/SDCCutil.h: remove BINDIR hack
15745         * doc/sdccman.lyx: update new path hierarchy
15746
15747 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
15748
15749         * src/SDCCpeeph.c: added okToRemoveSLOC test
15750
15751 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
15752
15753         * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
15754
15755 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
15756
15757         * src/SDCCpeeph.c: added labelIsReturnOnly test
15758         * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
15759
15760 2003-04-05    <johan AT balder>
15761
15762         * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
15763         * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
15764         * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
15765         * src/SDCCast.c: fixed a warning
15766         * src/SDCCast.h: fixed a warning
15767         * src/SDCCicode.c (operandFromAst): fixed a warning
15768
15769 2003-04-04    <johan AT balder>
15770
15771         * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
15772         * src/SDCCast.c (decorateType): fixed bug #715076
15773         * src/SDCC.y: fixed bug #702907
15774
15775 2003-04-03    <johan AT balder>
15776
15777         * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
15778         * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
15779         * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
15780         * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
15781         * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
15782
15783 2003-04-03  Bernhard Held <bernhard AT bernhardheld.de>
15784
15785         * _decdptr.c: fix return values
15786         * _gptrget.c: fix return values
15787         * _gptrgetc.c: fix return values
15788         * _gptrput.c: fix return values
15789         * _mulint.c: fix return values
15790         * as/z80/Makefile: fix 'make -j' problem
15791
15792 2003-04-02  Bernhard Held <bernhard AT bernhardheld.de>
15793
15794         * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
15795         * configure.in: big cleanup, updated to autoconf 2.5x
15796         * configure: rebuilt from configure.in
15797         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
15798         * sdcc_vc_in.h: reflect changes from sdccconf.h
15799         * doc/Makefile: fixed a flaw in "make install"
15800
15801 2003-04-02    <johan AT balder>
15802
15803         * src/ds390/gen.c (genCmp): no comments
15804         * src/mcs51/gen.c (genCmp): no comments
15805         * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
15806         * src/SDCCast.c (ast_print): fixed the function type in --dumptree
15807
15808 2003-04-01  Bernhard Held <bernhard AT bernhardheld.de>
15809
15810         * support/regression/generate-cases.py: place generated file in given sub directory
15811         * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
15812         * support/regression/Makefile: improvements for 'make -j';
15813         side effect: it's simpler and faster now
15814
15815 2003-03-31  Borut Razem <borut.razem AT siol.net>
15816
15817         * src/z80/main.c: link-{port} and as-{port} defined without path
15818         * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
15819
15820 2003-03-31  Bernhard Held <bernhard AT bernhardheld.de>
15821
15822         * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
15823
15824 2003-03-30  Borut Razem <borut.razem AT siol.net>
15825
15826         * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
15827           changed type of list parameter to set
15828         * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
15829         * src/port.h: changed type of do_assemble() parameter to set
15830         * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
15831           sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
15832           definition of "cppoutfilename" macro with NULL value in preProcess()
15833         * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
15834         * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
15835         * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
15836           replaced with set *binPathSet
15837         * shash_add() deallocates the item, if allready exsists, before adding the new one
15838         * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
15839
15840 2003-03-30  Scott Dattalo  <scott AT dattalo.com>
15841
15842         * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
15843           a nested for loop bug in the PIC port
15844         * src/regression/nestfor.c: new regression test file Steve wrote to test nested
15845           for loops
15846
15847 2003-03-29  Bernhard Held <bernhard AT bernhardheld.de>
15848
15849         * support/Util/dbuf.h: remove C++ stuff to make it portable
15850
15851 2003-03-28  Borut Razem <borut.razem AT siol.net>
15852
15853         * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
15854           literal strings in stringLiteral()
15855         * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
15856         * src/Makefile.bcc, src/Makefile.in, src/src.dsp: added support/Util/dbuf.c
15857           to the project
15858
15859 2003-03-27  Paul Stoffregen <paul AT pjrc.com>
15860
15861         * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
15862
15863 2003-03-26    <johan AT balder>
15864
15865         * src/mcs51/gen.c (saveRegisters): catched symbol abuse
15866         * src/ds390/gen.c (saveRegisters): catched symbol abuse
15867         * src/SDCCast.c (decorateType): fixed " -v < 3"
15868
15869 2003-03-23  Bernhard Held <bernhard AT bernhardheld.de>
15870
15871         * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
15872         Added Lenny Story's debug infrastructure changes:
15873         * src/Makefile.in:  added new files cdbFile.c and SDCCdebug.c
15874         * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
15875         * src/cdbFile.c: added
15876         * src/SDCCdebug.c: added
15877         * src/SDCCdebug.h: added
15878         * src/SDCCast.c (createFunction)
15879         * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
15880         * src/SDCCmain.c (parseCmdLine, main)
15881         * src/SDCCmem.c (redoStackOffsets)
15882         * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
15883         * src/SDCCsymt.h
15884         * src/common.h
15885         * src/avr/gen.c (genAVRCode)
15886         * src/ds390/gen.c (gen390Code)
15887         * src/mcs51/gen.c (gen51Code)
15888         * src/pic/gen.c (genpic14Code)
15889         * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
15890         * src/xa51/gen.c (genXA51Code)
15891         * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
15892
15893 2003-03-22  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15894
15895         * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
15896         * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
15897
15898 2003-03-22    <johan AT balder>
15899
15900         * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
15901
15902 2003-03-21  Bernhard Held <bernhard AT bernhardheld.de>
15903
15904         * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
15905         * doc/cdbfileformat.lyx: added, written by Lenny Story
15906         * doc/Makefile: added cdbfileformat.lyx
15907         * doc/clean.mk: added cdbfileformat.lyx
15908
15909 2003-03-20  Bernhard Held <bernhard AT bernhardheld.de>
15910
15911         * src/mcs51/peeph.def: fix bug #705773
15912
15913 2003-03-20    <johan AT balder>
15914
15915         An sfr/sbit can have an "at #" AND an initializer
15916         * src/SDCCsymt.c (checkSClass):
15917         * src/SDCCmem.c (allocGlobal):
15918         * src/SDCCmem.c (allocLocal):
15919         * src/SDCCast.c (createBlock):
15920
15921 2003-03-17  Bernhard Held <bernhard AT bernhardheld.de>
15922
15923         * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
15924
15925 2003-03-16    <johan AT balder>
15926
15927         Undid the hackup of const and volatile, the problem is much bigger
15928         * src/SDCC.y:1.65
15929         * src/SDCCast.c:1.171
15930         * src/SDCCglue.c:1.138
15931         * src/SDCCicode.c:1.146
15932         * src/SDCCsymt.c:1.150
15933         * src/SDCCval.c:1.65
15934
15935 2003-03-15  Bernhard Held <bernhard AT bernhardheld.de>
15936
15937         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
15938         * src/ds390/gen.c (genAddrOf): fixed bug #704087
15939
15940 2003-03-13    <johan AT balder>
15941
15942         Hackup const and volatile modifiers in type chains a bit:
15943         * src/SDCC.y:1.63
15944         * src/SDCCast.c:1.169
15945         * src/SDCCglue.c:1.136
15946         * src/SDCCicode.c:1.143
15947         * src/SDCCsymt.c1.146
15948         * src/SDCCsymt.h1.59
15949         * src/SDCCval.c:1.63
15950
15951 2003-03-12    <johan AT balder>
15952
15953         * src/SDCCBBlock.h: more LRH debugging junk
15954         * src/SDCCcflow.h: more LRH debugging junk
15955         * src/SDCCloop.c: more LRH debugging junk
15956         * src/SDCC.y (struct_declaration): fixed bug #697590
15957         * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
15958         * src/ds390/gen.c (aopForRemat): fixed bug #700031
15959         * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
15960
15961 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
15962         * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
15963         test function names must now match exactly).
15964         * src/SDCCcse.c: added special case in findCheaperOp to allow
15965         extending a short integer. Makes less awful code for bug 700121 test case.
15966
15967 2003-03-11  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15968
15969         * as/mcs51/lkmain.c: Added ASlink-Warning to messages
15970         * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
15971
15972 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
15973
15974         * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
15975         actually called (operandsNotEqual() was called for all
15976         operandsNotEqualX tests).
15977
15978 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
15979
15980         * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
15981         with shorter literals. Fixes bug 700121.
15982
15983 2003-03-11    <johan AT balder>
15984
15985         * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
15986
15987 2003-03-11  Bernhard Held <bernhard AT bernhardheld.de>
15988
15989         * src/SDCCloop.c (mergeRegions): an evil beast is dead
15990         * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
15991
15992 2003-03-10  Borut Razem <borut.razem AT siol.net>
15993
15994         * src/SDCCmain.c: pipe preprocessor's output
15995         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
15996         * sdcc_vc_in.h: define pclose as _pclose for WIN32
15997         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
15998         which closes all pipes in pipeSet set
15999         * src/SDCCset.c: free deleted item in function deleteSetItem()
16000         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
16001         moved from z80 to src subproject
16002         * .version: increased version number to 2.3.4
16003
16004 2003-03-10  Bernhard Held <bernhard AT bernhardheld.de>
16005
16006         * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
16007         * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
16008         * support/regression/ports/xa51/spec.mk: fix typo
16009
16010 2003-03-09  Bernhard Held <bernhard AT bernhardheld.de>
16011
16012         * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
16013
16014 2003-03-09  Borut Razem <borut.razem AT siol.net>
16015
16016         * src/SDCCmain.c: pipe preprocessor's output
16017         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
16018         * sdcc_vc_in.h: define pclose as _pclose for WIN32
16019         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
16020         which closes all pipes in pipeSet set
16021         * src/SDCCset.c: free deleted item in function deleteSetItem()
16022         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
16023         moved from z80 to src subproject
16024
16025 2003-03-09  Borut Razem <borut.razem AT siol.net>
16026
16027         * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
16028         * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
16029         * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
16030         * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
16031         * src/SDCCglobl.h: unification of WIN32 native definitions
16032
16033 2003-03-09  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
16034
16035         * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
16036
16037 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
16038
16039         * src/configure.in:   check for endianess (even while cross-compiling)
16040         * src/configure:      check for endianess (even while cross-compiling)
16041         * src/configure_in.h: check for endianess (even while cross-compiling)
16042         * src/avr/gen.c:        remove old endianess stuff
16043         * src/mcs51/gen.c:      remove old endianess stuff
16044         * src/ds390/gen.c:      remove old endianess stuff
16045         * src/pic/gen.c:        remove old endianess stuff
16046         * src/pic/genarith.c:   remove old endianess stuff
16047         * src/pic/glue.c:       fix endianess check
16048         * src/pic16/gen.c:      remove old endianess stuff
16049         * src/pic16/genarith.c: remove old endianess stuff
16050         * src/pic16/glue.c:     fix endianess check
16051         * src/xa51/gen.c:       remove old endianess stuff
16052         * src/z80/gen.c:        fix endianess check
16053         * src/SDCCglue.c:       fix endianess check
16054         * src/ds390/peeph.def: fix bug 700036
16055
16056 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
16057
16058         * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
16059         * src/configure: find appropriate data-types on host for SDCC's int and long
16060         * src/configure.in: find appropriate data-types on host for SDCC's int and long
16061         * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
16062         * src/xa51/gen.c: use %d, not %ld for 4 byte variables
16063
16064 2003-03-07    <johan AT balder>
16065
16066         Just a big NOOP:
16067                 some minor cleanups before the big shot
16068                 OP_DEFS and OP_USES now use Kevin's protection
16069                 new option --nolabelopt
16070
16071         * src/SDCCBBlock.c:
16072         * src/SDCCast.c,:
16073         * src/SDCCcflow.c:
16074         * src/SDCCcse.c:
16075         * src/SDCCicode.c:
16076         * src/SDCCicode.h:
16077         * src/SDCClabel.c:
16078         * src/SDCCloop.c:
16079         * src/SDCCmain.c:
16080         * src/ds390/ralloc.c:
16081         * src/mcs51/ralloc.c:
16082         * src/pic/ralloc.c:
16083         * src/xa51/ralloc.c:
16084         * src/z80/ralloc.c:
16085
16086 2003-03-06  Bernhard Held <bernhard AT bernhardheld.de>
16087
16088         * src/pic/pcode.c (get_op): fix 64 bit warnings
16089         * src/pic/pcode.c (pCode2str): fix 64 bit warnings
16090         * src/SDCChasht.c (newHashTable): fix 64 bit warnings
16091         * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
16092         * support/regression/tests/malloc.c: fix 64 bit warnings
16093
16094 2003-03-04  Bernhard Held <bernhard AT bernhardheld.de>
16095
16096         * src/mcs51/gen.c (genMinus): fixed bug 696436
16097
16098 2003-03-02  Borut Razem <borut.razem AT siol.net>
16099
16100         * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
16101
16102 2003-02-26  Bernhard Held <bernhard AT bernhardheld.de>
16103
16104         * configure.in: test for mkstemp
16105         * sdccconf_in.h: add HAVE_MKSTEMP
16106
16107 2003-02-24  Bernhard Held <bernhard AT bernhardheld.de>
16108
16109         * device/include/ctype.h: removed warning while using --stack-auto
16110         * device/include/malloc.h: removed warning while using --stack-auto
16111         * device/include/string.h: removed warning while using --stack-auto
16112
16113 2003-02-23  Borut Razem <borut.razem AT siol.net>
16114
16115         * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
16116         because NDEBUG is defined (see man assert)
16117         * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
16118
16119 2003-02-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
16120
16121         * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
16122         * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
16123
16124 2003-02-18  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
16125
16126         * src/SDCCpeeph.c: added peephole conditions testing for same arguments
16127         * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
16128
16129 2003-02-18    <johan AT balder>
16130
16131         * as/mcs51/asmain.c (asmbl): module can start with a digit
16132         * as/z80/asmain.c (asmbl): module can start with a digit
16133
16134 2003-02-16  Bernhard Held <bernhard AT bernhardheld.de>
16135
16136         * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
16137         * src/asm.c: fix pipe() for Mingw32
16138
16139 2003-02-15  Bernhard Held <bernhard AT bernhardheld.de>
16140
16141         * src/SDCCglue.h: make tmpfileNameSet available for preOutName
16142         * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
16143         make -V work again; --c1mode reads now from stdin
16144         * doc/sdccman.lyx: added --c1mode
16145         * support/Util/SDCCerr.c: new messages for c1 mode
16146         * support/Util/SDCCerr.h: new messages for c1 mode
16147         * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
16148
16149 2003-02-15    <johan AT balder>
16150
16151         * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
16152
16153 2003-02-14  Bernhard Held <bernhard AT bernhardheld.de>
16154
16155         * doc/sdccman.lyx: Environment variables, -o and other minor things
16156
16157 2003-02-14    <johan AT balder>
16158
16159         * src/xa51/main.c: before anyone really tries to use it :)
16160
16161         * Install doc's in share/sdcc/doc
16162         * removed some obsolete files
16163         * Do a proper make distclean and uninstall
16164         M Makefile.common.in
16165         R sdccbuild.sh
16166         M as/Makefile
16167         M device/include/Makefile.in
16168         M device/lib/Makefile.in
16169         M doc/sdccman.lyx
16170         M link/Makefile
16171         M sim/ucsim/doc/Makefile.in
16172         M src/clean.mk
16173         R src/avr/peeph.rul
16174         R src/xa51/peeph.rul
16175         M support/cpp2/Makefile.in
16176         M support/makebin/Makefile
16177
16178
16179 2003-02-13  Bernhard Held <bernhard AT bernhardheld.de>
16180
16181         * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
16182
16183 2003-02-10  Borut Razem <borut.razem AT siol.net>
16184
16185         * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
16186         support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
16187         * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
16188         device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
16189         support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
16190         src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
16191         src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
16192         src/z80/Makefile.bcc: Borland Makefile cleanup
16193         * as/z80/Makefile.bcc: Added Borland Makefile
16194         * support/cpp2/borland.h: Removed
16195
16196 2003-02-10  Bernhard Held <bernhard AT bernhardheld.de>
16197
16198         * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
16199         * src/SDCC.lex: new pragma NOIV
16200         * src/SDCCglobl.h: new pragma NOIV
16201         * src/SDCCmem.c: new pragma NOIV
16202
16203 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
16204
16205         * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
16206
16207 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
16208
16209         * src/SDCCmain.c: signal handling is switched off by --debug
16210         * doc/Makefile: small fix for install; use clean.mk again
16211         * doc/clean.mk: clean *.pdf and *.html too
16212
16213 2003-02-08  Bernhard Held <bernhard AT bernhardheld.de>
16214
16215         * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
16216         * device/lib/printfl.c: fix a ds390 bug by making it portable
16217         * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
16218         * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
16219         * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
16220         * debugger/mcs51/cmd.c: converted multi-line string literals
16221         * sim/ucsim/globals.cc: converted multi-line string literals
16222         * src/SDCCmain.c: introduced signal handler to remove temp files
16223         * doc/Makefile: small tweaks, implement clean
16224         * doc: removed generated files
16225
16226 2003-02-05  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16227
16228         * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
16229         patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
16230         Address Record is not correctly generated for DS390."
16231
16232 2003-02-02  Borut Razem <borut.razem AT siol.net>
16233
16234         * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
16235         * as/mcs51/asm.h: fixed compilation with Borland C
16236         * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
16237         * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
16238         * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
16239         * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
16240         src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
16241         src/z80/Makefile.bcc: delete $(LIB) only if exist
16242         * src/Makefile.bcc, src/pic/Makefile.bcc:  fixed compilation with Borland C
16243
16244 2003-02-02  Bernhard Held <bernhard AT bernhardheld.de>
16245
16246         * device/include/malloc.h: introduced NULL
16247         * device/include/string.h: introduced NULL
16248         * device/include/stdlib.h: introduced NULL
16249         * device/lib/_memcpy.c: removed NULL
16250         * device/lib/_strcat.c: removed NULL
16251         * device/lib/_strchr.c: removed NULL
16252         * device/lib/_strcmp.c: removed NULL
16253         * device/lib/_strcpy.c: removed NULL
16254         * device/lib/_strcspn.c: removed NULL
16255         * device/lib/_strlen.c: removed NULL
16256         * device/lib/_strncat.c: removed NULL
16257         * device/lib/_strncmp.c: removed NULL
16258         * device/lib/_strncpy.c: removed NULL
16259         * device/lib/_strpbrk.c: removed NULL
16260         * device/lib/_strrchr.c: removed NULL
16261         * device/lib/_strspn.c: removed NULL
16262         * device/lib/_strstr.c: removed NULL
16263         * device/lib/_strtok.c: removed NULL
16264         * device/lib/malloc.c: removed NULL, include own header
16265
16266 2003-02-02    <johan AT balder>
16267
16268         * 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
16269         * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
16270         * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
16271         * src/z80/gen.c (genZ80Code): added c-lines in asm comments
16272         * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
16273         * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
16274
16275 2003-02-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16276
16277         * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
16278         area 'DATA'"
16279
16280 2003-02-01    <johan AT balder>
16281
16282         * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
16283
16284 2003-01-31    <johan AT CP255758-A>
16285
16286         * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
16287
16288 2003-01-30    <johan AT balder>
16289
16290         * src/SDCCBBlock.c: automatic bug detection
16291         * src/SDCCicode.c: automatic bug detection
16292
16293 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16294
16295         * src/SDCCglobl.h:   now --xram-size 0 works
16296         * src/SDCCmain.c:    now --xram-size 0 works
16297
16298 2003-01-29    <johan AT balder>
16299
16300         * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
16301
16302 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16303
16304         * as/mcs51/aslink.h: Added options --xram-size and --code-size
16305         * as/mcs51/lkdata.c: Added options --xram-size and --code-size
16306         * as/mcs51/lkmain.c: Added options --xram-size and --code-size
16307         * as/mcs51/lkmem.c:  Added options --xram-size and --code-size
16308         * src/SDCCglobl.h:   Added options --xram-size and --code-size
16309         * src/SDCCmain.c:    Added options --xram-size and --code-size
16310
16311 2003-01-28  Bernhard Held <bernhard AT bernhardheld.de>
16312
16313         * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
16314         * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
16315
16316 2003-01-27    <johan AT balder>
16317
16318         * src/SDCC.y: fixed bug #613764
16319
16320 2003-01-26    <johan AT balder>
16321
16322         * src/SDCClrange.c:  fixed Bernhard's "char * code ptr = &c"
16323         * src/SDCCsymt.h: fixed bug #673374
16324         * src/SDCCglue.c: fixed bug #661910
16325         * src/SDCCast.c: fixed bug #458099 and 673374
16326
16327 2003-01-26  Bernhard Held <bernhard AT bernhardheld.de>
16328
16329         * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
16330         * as/mcs51/strcmpi.h: added
16331         * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
16332         * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
16333         * as/mcs51/asmain.c: strcmpi -> as_strcmpi
16334         * as/mcs51/assym.c: strcmpi -> as_strcmpi
16335         * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
16336         * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
16337         * as/mcs51/lksym.c: strcmpi -> as_strcmpi
16338         * as/mcs51/Makefile.aslink: new module strcmpi
16339         * as/mcs51/Makefile.asx8051: new module strcmpi
16340         * as/mcs51/Makefil.bcc: new module strcmpi
16341         * as/mcs51/Makefile.in: new module strcmpi
16342         * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
16343
16344 2003-01-26    <johan AT balder>
16345
16346         * src/SDCCglue.c: reverted back to 1.124
16347         * src/SDCCast.c: reverted back to 1.156
16348         * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
16349
16350 2003-01-25    <johan AT balder>
16351
16352         * src/SDCCglue.c: A better fix for bug #661910
16353         * src/SDCCast.c: A better fix for bug #661910
16354         * src/SDCCglue.c (emitRegularMap): That was a little too efficient
16355
16356 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
16357
16358         * src/Makefile.in: remove spawn.o
16359         * src/SDCCmain.c: remove spawn.h
16360         * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
16361         * src/spawn.c: removed
16362         * src/spawn.h: removed
16363         * support/regression/ports/ds390/spec.mk: link with -r
16364
16365 2003-01-24    <johan AT CP255758-A>
16366
16367         * src/ds390/gen.c (aopOp): fixed bug #667458
16368         * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
16369         * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
16370         (createIvalCharPtr): an ival doesn't always have a storage class anymore
16371
16372 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
16373
16374         * src/mcs51/peeph.def: better assembler identation by Frieder
16375         * src/mcs51/gen.c: better assembler identation by Frieder
16376
16377 2003-01-22  Bernhard Held <bernhard AT bernhardheld.de>
16378
16379         * as/z80/string.h: removed for gcc 3.2
16380         * support/makebin/makebin.c: #include <string.h> for gcc 3.2
16381         * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
16382
16383 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
16384
16385         * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
16386         * src/SDCCpeeph.c (replaceRule): fix bug #663503
16387         * support/regression/Makefile: separate temp files for ports
16388         * support/regression/generate-cases.py: separate temp files for ports
16389         * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
16390         * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
16391
16392 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
16393
16394         * moved tinitalk to device/examples/ds390
16395
16396 2003-01-14  Bernhard Held <bernhard AT bernhardheld.de>
16397
16398         * as/mcs51/lkmem.c: rflag is for DS390
16399         * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
16400         * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
16401                          (linkEdit): move mem- and map-files the same way as ihx-files
16402         * src/z80/main.c (_setDefaultOptions): removed --generic
16403         * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
16404         * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
16405         * src/pic/glue.c (picglue): --c1mode works again
16406         * src/pic16/glue.c (pic16glue): --c1mode works again
16407         * src/asm.c (printCLine): fix #660034
16408
16409 2003-01-13  Bernhard Held <bernhard AT bernhardheld.de>
16410
16411         * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
16412         * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
16413         * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
16414         * as/mcs51/lkmem (summary): better fix for sp problem
16415         * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
16416         * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
16417         * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
16418                                               remove --stack-after-data
16419
16420 2003-01-12  Bernhard Held <bernhard AT bernhardheld.de>
16421
16422         * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
16423         * src/SDCCutil.c (join): ugly bug: missing '\0'
16424         * as/mcs51/lkmem.c (summary): sp on address 7 is safe
16425
16426 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
16427
16428         * src/SDCCmain.c (assemble, linkEdit): preparations for -o
16429         * src/port.h: typo
16430         * src/pic/main.c (_asmCmd): gpasm supports -o
16431         * src/z80/main.c: more general macros
16432         * device/lib/Makefile.in: remove intermediate files
16433
16434 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
16435
16436         * .version: Bumped version number to 2.3.3
16437         * src/SDCCBBlock.c: new option -o
16438         * src/SDCCglobl.h: new option -o
16439         * src/SDCCglue.c: new option -o
16440         * src/SDCCmain.c: new option -o
16441         * src/asm.c: new option -o
16442         * src/ds390/main.c: new option -o
16443         * src/pic/glue.c: new option -o
16444         * src/pic/pcode.c: new option -o
16445         * src/pic/ralloc.c: new option -o
16446         * src/pic16/glue.c: new option -o
16447         * src/pic16/pcode.c: new option -o
16448         * src/pic16/ralloc.c: new option -o
16449         * src/z80/main.c: new option -o
16450         * device/lib/Makefile.in: use -o
16451         * support/regression/ports/ds390/spec.mk: use -o
16452         * support/regression/ports/gbz80/spec.mk: use -o
16453         * support/regression/ports/mcs51/spec.mk: use -o
16454         * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
16455         * support/regression/ports/z80/spec.mk: use -o
16456         * support/regression/ports/ucz80/spec.mk: use -o
16457         * support/regression/ports/xa51/spec.mk: use -o
16458         * support/regression/fwk/lib/timeout.c: fix usage string
16459
16460 2003-01-09  Bernhard Held <bernhard AT bernhardheld.de>
16461         * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
16462
16463 2003-01-07    <johan AT balder>
16464
16465         * src/SDCCast.c (decorateType): fixed bug #600035
16466
16467 2003-01-07  Bernhard Held <bernhard AT bernhardheld.de>
16468         * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
16469         * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
16470         * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
16471         * src/pic/pcode.c: outcommented unused variable to remove warnings
16472         * src/pic/ralloc.c: outcommented unused variable to remove warnings
16473
16474 2003-01-06    <karl AT turbobit.com>
16475         * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
16476         regression tests.
16477
16478 2003-01-06    <johan AT balder>
16479
16480         * src/SDCCicode.c: fixed array add
16481
16482 2002-01-05  Bernhard Held <bernhard AT bernhardheld.de>
16483         * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
16484         * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
16485
16486 2003-01-04    <johan AT balder>
16487
16488         * src/SDCCval.c (getNelements): fixed the initialized array of structures
16489
16490 2002-12-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16491         * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
16492
16493 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
16494         * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
16495         * support/regression/tests/bug-524697.c: fit mem usage into 8032
16496
16497 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
16498         * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
16499
16500 2002-12-27  Bernhard Held <bernhard AT bernhardheld.de>
16501         * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
16502
16503 2002-12-26  Bernhard Held <bernhard AT bernhardheld.de>
16504         * src/mcs51/main.c: removed {bindir}{sep} from aslink
16505
16506 2002-12-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16507
16508         * in /sdcc/as/mcs51/ changed these files in order to create an
16509         aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
16510         lkmain.c.  Also added: lkmem.c and lkaomf51.c.  Changed the
16511         following files to include the previous two files: aslink.dsp,
16512         Makefile.aslink, Makefile.bcc, and Makefile.in.
16513
16514         * Changed /sdcc/src/SDCCmain.c so it creates files with extension
16515         .adb instead of .cdb
16516
16517 2002-11-09  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16518
16519         * /sdcc/as/mcs51/lklist.c: Now reports memory usage using the
16520         value from option --iram-size.
16521
16522 2002-09-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16523
16524         * /sdcc/as/mcs51/lklist.c: added boundary check before using
16525         dram[] array.
16526
16527 2002-09-18    <wiml AT hhhh.org>
16528
16529         * SDCClrange.h: exposed setFromRange() and setToRange()
16530         * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
16531           packRegsForAccUse() (bug 542397)
16532         * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
16533           multiple times and emitting the fetch operations more than once
16534           added aopGetUsesAcc() function to allow binary operators to
16535           fetch their operands in the correct order; made genMinus() emit
16536           compact code for X = LITERAL - Y
16537
16538 2002-09-00  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16539         * /sdcc/as/mcs51/lklist.c: Fixed incorrect number of parameters to
16540         sprintf() in line 1267.
16541
16542 2002-09-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16543         * /sdcc/src/SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
16544         like ports.
16545
16546 2002-09-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16547         Changes to aslink (All the changes are marked with 'JCF'):
16548
16549         * /sdcc/as/mcs51/aslink.h: External definition of sflag and
16550         summary().
16551
16552         * /sdcc/as/mcs51/lkarea.c: Computes the size of area BSEG_BYTES from
16553         area BSEG.  Also moves, if possible, the DATA area down into the internal
16554         ram so more space is available.
16555
16556         * /sdcc/as/mcs51/lkdata.c: Definition of memory summary output flag
16557         sflag.
16558
16559         * /sdcc/as/mcs51/lklist.c: For the BSEG area report the size in bits,
16560         not bytes.  Function summary() which creates a memory usage summary
16561         file with extension .mem.  Reports of overlaping stack and small stack
16562         size.  If the space for the stack is less than 16 bytes aslink trows a
16563         warning.
16564
16565         * /sdcc/as/mcs51/lkmain.c: Creation of some of the default areas for
16566         the 8051.  Option 'y' for memory summary output file.
16567
16568         Changes to sdcc (All the changes are marked with 'JCF'):
16569
16570         * /sdcc/src/SDCCglobl.h: External definition of RegBankUsed[4].
16571
16572         * /sdcc/src/SDCCglue.c:  If a register bank is used, creates an
16573         overlaying area for it (uses RegBankUsed[4]).
16574
16575         * /sdcc/src/SDCCmain.c: Definition RegBankUsed[4]; marks register
16576         bank zero as used by default.  By default aslink locates the stack
16577         (equivalent to --stack-after-data).  Pass option 'y' to aslink for
16578         the creation of the .mem file.  Delegates the allocation of data area
16579         to aslink (it is not longer 0x30 by default).  If --stack-loc passes
16580         the begining of the stack area to aslink.
16581
16582         * /sdcc/src/SDCCmem.c:  If a register bank is used, marks it so
16583         glue() in SDCCglue.c creates an area for it.
16584
16585 2002-09-03  Borut Razem <borut.razem AT siol.net>
16586         * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
16587         sdcc/src/pic/glue.c:
16588         introduced atexit() handler for teporay files removal in case of
16589         errors, assertions, ...
16590
16591 2002-08-29  Borut Razem <borut.razem AT siol.net>
16592         * sdcc/support/cpp2/auto-host_vc_in.h:
16593         re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
16594         with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
16595         Maybe there is a similar problem with BORLANDC? It should be checked!
16596
16597         * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
16598         corrected improper use of assert: the assignment to clr variable was done inside the assert.
16599         In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
16600         was not executed, and the compiler (cl) launched a warning:
16601         ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
16602
16603 2002-08-28  Bernhard Held <bernhard AT bernhardheld.de>
16604         * src/SDCCglue.c (printIvalArray): iterative calculation of array length
16605
16606 2002-08-28  Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
16607         * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
16608
16609         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
16610           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
16611           sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
16612           sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
16613           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
16614           sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
16615           sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
16616         - added Release configuration in VS projects
16617         - review of compiler an linker options
16618         - VC .exe files are generated in bin_vc directory, not to interfere
16619           with binaries generated from other projects (cygwin, mingw, bcc ...)
16620
16621         * sdcc/src/yacc.dsp: added
16622
16623         * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
16624         added - genarate sdcc_vc.h using sdcc_vc_in.h as template
16625         and insert the version number definitions from .version
16626
16627         * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
16628
16629         * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
16630         added - genarate auto-host.h using auto-host_vc_in.h as template
16631
16632         * sdcc/sdcc_vc.h,
16633         removed from CVS, generated automatically
16634
16635 2002-08-25  Bernhard Held <bernhard AT bernhardheld.de>
16636         * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
16637
16638 2002-08-11  Borut Razem <borut.razem AT siol.net>
16639         * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
16640
16641 2002-08-10  Borut Razem <borut.razem AT siol.net>
16642         * src/SDCCmain.c (main):
16643         file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
16644         platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
16645         The consequence was that some temporary files were not removed.
16646
16647         * src/SDCCglue.c:
16648         unification of code in functions tempfilename() and tempfile():
16649         function tempnam() is defined in Visual Studio 6.0 and .NET
16650
16651         * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
16652
16653         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
16654           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
16655         - removed compiler command line option /WX: Treats all warnings as errors
16656         - update a list of source files, included into the project
16657
16658         * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
16659           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
16660         changed project type to Generic Project so that can be correcly converted to VS.NET project
16661
16662         * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
16663
16664         * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
16665
16666         * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
16667
16668         * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
16669         added return 0 statements after assert() to make compiler happy
16670
16671         * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
16672         added newline in the def file to keep MSC compiler satisfied
16673
16674         * sdcc/src/z80/gen.c:
16675         - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
16676           so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
16677         - solved MSC error in function aopDump()
16678
16679         * sdcc_vc.h: define PREFIX as "\\sdcc"
16680
16681 2002-07-18  Bernhard Held <bernhard AT bernhardheld.de>
16682         * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
16683
16684 2002-06-22  Scott Dattalo <scott AT dattalo.com>
16685         * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
16686         - Rewrote the register banking algorithm.
16687         - Added pCode live-range analysis to registers (for now, only non-used and
16688         singly-used registers optimized away)
16689
16690         * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
16691
16692         * 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.
16693
16694 2002-05-10  Scott Dattalo <scott AT dattalo.com>
16695         * src/pic/*: Added support for multiplication. Fixed many,many bugs.
16696
16697 2002-04-22  Michael Hope  <michaelh AT vroom>
16698
16699         * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
16700
16701         * configure.in (DD_COPT): Added include support required for gbdk.
16702
16703         * .version: Bumped version number just to increase it.
16704
16705         * src/SDCCmain.c: Added -nostdinc to the default options.
16706
16707 2002-04-15  Michael Hope  <michaelh AT vroom>
16708
16709         * device/lib/z80/printf.c (sprintf): Added.
16710
16711         * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
16712
16713         * src/z80/peeph.def: Added transpose redundent load rule.
16714
16715         * src/z80/main.c: Added force callee saves for jaune.
16716
16717         * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
16718
16719         * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
16720
16721 2002-03-28  Johan Knol  <johan AT balder>
16722
16723         * src/SDCCval.c: fixed bug #532436
16724
16725 2002-03-14  Scott Dattalo <scott AT dattalo.com>
16726         * /src/port.h:
16727         Added "char *Processor" field to the port structure.
16728
16729         * /src/SDCCmain.c:
16730         Added -p option. Allows port dependent processor to be specified.
16731
16732         * all ports:
16733         Initialized the new field char *Processor field to NULL in all ports
16734
16735         * /src/pic/*:
16736         Compiler generated registers for interrupt context saving
16737         were not getting allocated.
16738
16739 2002-03-16  Sandeep Dutta  <sandeep AT ddi.com>
16740
16741         * /src/SDCCast.c:
16742         Fixed left shift. Will promote the left side of a left shift
16743         if a) left shifting more than size of operand or b) when assigned
16744         to something size > size of left side
16745
16746 2002-03-14  Scott Dattalo <scott AT dattalo.com>
16747         * src/pic/*
16748         tons of changes. Register allocation has been
16749         rewritten. Added customization for the various PICs. Flow
16750         analysis is restructured. ...
16751
16752         * src/pic/device.h:
16753         Added
16754
16755         * src/pic/device.c:
16756         Added. device.c is a PIC port hack to accomodate variations
16757         in PIC devices.
16758
16759 2002-03-13  Michael Hope  <michaelh AT vroom>
16760
16761         * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled.  Yeah.
16762
16763 2002-03-04  johanknol  <johanknol AT manik>
16764
16765         * /src/SDCCval.c: fixed
16766
16767         const unsigned char arr[][2] = { { 0, 1 } };
16768         t18.c:1: error: Initializer element is not constant
16769
16770 2002-03-04  bela  <bela AT manik>
16771
16772         * /device/include/mcs51reg.h:
16773         ds89c420 register definition update
16774
16775 2002-03-03    <johan AT FRIJA>
16776
16777         * support/Util/SDCCerr.c: did something, but don't no why anymore
16778
16779         * support/regression/tests/bug-524691.c: made it a little less shy
16780
16781         * src/SDCCast.c (decorateType): fixed bug #524697
16782
16783         * src/SDCCast.c: made some lineno improvements
16784
16785         * src/SDCCval.c (getNelements): changed warning to error
16786
16787         * src/SDCCglue.c (printIvalArray): changed warning to error
16788
16789         * src/SDCCicode.c: fixed a warning for mingw
16790
16791         * src/SDCCast.c (decorateType): fixed the << promotion for ops
16792
16793         * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
16794
16795 2002-03-02  Sandeep Dutta  <sandeep AT ddi.com>
16796
16797         * src/ds390/peeph.def:
16798         Added some more peephole rules
16799
16800         * src/ds390/gen.c: Various fixes & enhancements
16801
16802         * src/SDCClrange.c, src/SDCClrange.h:
16803         functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
16804
16805         * src/ds390/ralloc.c:
16806         various fixes & enhancements (ds390) specific
16807
16808         * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
16809         Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
16810         from rallocs.
16811
16812         * sdcc/src/SDCCcse.c: Better fix for bug # 514308
16813
16814 2002-03-02    <johan AT FRIJA>
16815
16816         * src/SDCCast.c (decorateType): fixed bug #524708
16817
16818         * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
16819
16820         * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
16821
16822 2002-03-01  Michael Hope  <michaelh AT vroom>
16823
16824         * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
16825
16826         * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
16827
16828 2002-03-01    <johan AT FRIJA>
16829
16830         * src/SDCCglue.c (printIvalPtr): fixed bug #524211
16831
16832         * src/SDCCast.c (decorateType): fixed bug #524209
16833
16834         * src/SDCCval.c (valNot): fixed bug #524195
16835
16836 2002-02-26    <johan AT balder>
16837
16838         * src/xa51/gen.c: fixed a warning
16839
16840         * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
16841
16842         * src/SDCCast.c (decorateType): fixed bug #522534
16843
16844 2002-02-23    <johan AT balder>
16845
16846         * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
16847
16848 2002-02-22    <johan AT balder>
16849
16850         * src/SDCCast.c: fixed bug #514865
16851
16852         * src/SDCCy.c ("SDCC.y"): fixed bug #516625
16853
16854 2002-02-21  Sandeep Dutta  <sandeep AT ddi.com>
16855
16856         * sdcc/src/SDCCloop.c:
16857         Previous fix was not good. basic blocks that have "break" or "return" are
16858         not really partof a loop , but live ranges used in these blocks should
16859         be live thru the entire loop, so set partOfLoop but don't add them to
16860         loop region
16861
16862 2002-02-21    <johan AT FRIJA>
16863
16864         * src/SDCCcse.c: fixed bug #514308
16865
16866 2002-02-20  Sandeep Dutta  <sandeep AT ddi.com>
16867
16868         * src/SDCCloop.c:
16869         Fixed BUG #519583. If a conditional block ended in a return/break
16870         statement inside a loop, it was not being considered part of the loop.
16871
16872         * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
16873
16874 2002-02-10  Karl Bongers <karl AT turbobit.com>
16875
16876         * debugger/*:
16877         Fixed up SDCDB debugger somewhat.  Updated debugger/README
16878         with lots of comments and notes.
16879
16880         * device/examples/test2.c:
16881         Fix bug, "red" variable not being initialized(compiler complained).
16882
16883         * device/examples/Makefile, examples/test3.c:
16884         Add Makefile in device/examples folder, compiles test3.c
16885         for use as a multiple module SDCDB test case.
16886
16887         * sim/ucsim/cmd.src/cmdset.cc:
16888         Took out debug printfs in ucsim "next" command.
16889
16890         * sim/ucsim/xa.src:
16891         Karl and Johan start ucsim XA support.  Most dissassembly working,
16892         about 75% emulation done(plenty of work remaining).
16893
16894         * sim/ucsim/z80.src:
16895         Add Z80 support to ucsim, add test-ucz80 regression test,
16896         notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
16897         Notice z80 compiler fails on examples/test3.c/crc code.
16898
16899 2002-01-30  Sandeep Dutta  <sandeep AT ddi.com>
16900
16901         * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
16902         Added support for --parms-in-bank1
16903
16904         * src/ds390/peeph.def:
16905         added a few more peephole optimzations
16906
16907         * src/ds390/main.c:
16908         1) added __builtin_inp & __builtin_outp used to read in data of given length
16909            from a memory mapped port
16910         2) added __builtin_memcmp
16911         3) added __builtin_swapw swap bytes of a short
16912
16913         * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
16914         1) handle multiple send & receives from register bank1
16915         2) ralloc can now allocate DPTR1 to some liveRanges
16916
16917         * src/SDCCsymt.c, src/SDCCsymt.h:
16918         changes to handle multiple sends & receives
16919
16920         * src/SDCCptropt.h:
16921         added some pointer arithmetic optimization
16922
16923         * src/SDCCptropt.c:
16924         added some pointer arithmetic optimizations but not stable yet so not
16925         called from anywhere (will get this working shortly)
16926
16927         * src/SDCCopt.c: fixed for multiple sends & receives
16928
16929         * src/SDCCmain.c:
16930         1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
16931         2) preprocessing done AFTER port->finalizeoptions . This allows ports to
16932            set preprocessor defines (depending on options)
16933
16934         * src/SDCCicode.c, src/SDCCicode.h:
16935         changes made to handle multiple sends & receives
16936
16937         * src/SDCCglobl.h:
16938         Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
16939
16940         * src/SDCCcse.c, src/SDCCcse.h:
16941         added function findbackward def (to be used in upcoming optimization)
16942
16943         * src/SDCCcflow.c, src/SDCCcflow.h:
16944         added function returnAtEnd - to determine if a basic block terminates with
16945         a RETURN iCode
16946
16947         * src/SDCCast.c, src/SDCCast.h:
16948         added option parms-in-bank1
16949
16950         * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
16951         * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
16952         * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
16953         adjusted for --parms-in-bank1 option
16954
16955         * device/include/string.h:
16956         donot redefine "reentrant" keyword
16957
16958         * device/include/ds80c390.h: Added some more SFRs
16959
16960 2002-01-28  Bernhard Held  <bernhard AT bernhardheld.de>
16961
16962         * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
16963
16964 2002-01-26  Bernhard Held  <bernhard AT bernhardheld.de>
16965
16966         * src/SDCCast.c (funcOfType): fix usage of double --float-reent
16967
16968 2002-01-22  Bernhard Held  <bernhard AT bernhardheld.de>
16969
16970         * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
16971
16972 2002-01-18  Paul Stoffregen  <paul AT pjrc.com>
16973
16974         * Added --xram-movc option
16975
16976 2002-01-13  Bernhard Held  <bernhard AT bernhardheld.de>
16977
16978         * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
16979
16980 2002-01-11  Johan Knol
16981
16982         * Added math lib of Jesus Calvino-Fraga
16983
16984 2002-01-08  Bernhard Held  <bernhard AT bernhardheld.de>
16985
16986         * src/SDCCmain.c (processFile): fix processing of ../../src.c
16987         * support/regression/Makefile: new target test-mcs51-stack-auto
16988         * support/regression/ports/mcs51-stack-auto/spec.mk: added
16989
16990 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
16991
16992         * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
16993
16994 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
16995
16996         * support/regression/ports/mcs51/support.c: correct setup of timer / UART
16997
16998 2002-01-03  Bernhard Held  <bernhard AT bernhardheld.de>
16999
17000         * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
17001
17002         * src/SDCCglue.h: add definition for printIvalChar()
17003
17004 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
17005
17006         * src/SDCCast.c: fix #498138 by Johan
17007
17008         * src/SDCCglue.c: fix #498138 by Johan
17009
17010 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
17011
17012         * support/regression/Makefile: fix clean
17013
17014         * support/regression/ports/ds390/support.c: fix transmission of last character
17015
17016 2001-12-29  Sandeep Dutta  <sandeep AT ddi.com>
17017
17018         * /sdcc/src/ds390/gen.c:
17019         a) improved computing address of stack variable
17020         b) took out some #if 0 code
17021         c) improved parmBytes adjustment
17022         d) improved genPlusIncr & genMinusIncr
17023         e) genCmp could generate bad code (when left assigned to DPTR)
17024         f) Fixed bug in hasInc
17025
17026         * /sdcc/src/ds390/ralloc.c:
17027         a) packRegsForSupport could mess up live information (Fixed)
17028         b) packRegsDPTRuse could be incorrect for left & right shift
17029
17030         * /sdcc/src/mcs51/ralloc.c:
17031         packRegsForSupport could mess up the live information (Fixed)
17032
17033         * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
17034
17035         * /sdcc/src/SDCCast.c:
17036         can reverse a loop even if function call is present as long
17037         as the loop control variable is local & is not passed as parameter
17038
17039 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
17040
17041         * /sdcc/ChangeLog: *** empty log message ***
17042
17043         * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
17044         More builtin function additions for TININative
17045
17046         * /sdcc/src/ds390/ralloc.c:
17047         Had broken the regression testsuite
17048
17049         * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
17050
17051         * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
17052         Added funcattr hasStackParms will be set for reentrant functions when there
17053         are paramteres on the stack, this helps in minimizing frame pointer generation
17054         typeFromStr can handle function pointers now
17055
17056         * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
17057         *** empty log message ***
17058
17059 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
17060
17061         * /src/ds390/gen.c, /src/ds390/main.c:
17062         More builtin function additions for TININative
17063
17064         * /src/ds390/ralloc.c:
17065         Had broken the regression testsuite
17066
17067         * /src/SDCCast.c: Fixed a bug in dumptree
17068
17069         * /src/SDCCsymt.c, /src/SDCCsymt.h:
17070         Added funcattr hasStackParms will be set for reentrant functions when there
17071         are paramteres on the stack, this helps in minimizing frame pointer generation
17072         typeFromStr can handle function pointers now
17073
17074         * /doc/builtins.txt, /doc/TININative.txt:
17075         *** empty log message ***
17076
17077
17078 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
17079
17080         * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
17081         ALPHA version for -mTININative
17082
17083         * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
17084         updated to reflect changes in the port structure
17085
17086         * /src/port.h:
17087         added function do_assemble (similar to do_link) if non-null this function
17088         will be called to do assembly (-mTININative) requires a multi command
17089         assembly
17090         added function genAssemblerEnd will be called to generate assembler Epilogue
17091
17092         * /src/SDCCsymt.c:
17093         added _JavaNative to debug info printing
17094
17095         * /src/SDCCmain.c: added option --tini-libid
17096         added port->do_assemble function (-mTININative) has a multi command assemble
17097
17098         * /src/SDCCglue.c: Disabled "constExpr" check
17099         added port->genAssemblerEnd function
17100
17101         * /src/SDCCglobl.h: Added option --tini-libid value
17102
17103         * /src/SDCCast.h:
17104         tookout optimizeCompare from the header (has no external references)
17105
17106         * /src/SDCCast.c: made one more function "static"
17107
17108 2001-12-23  Michael Hope  <michaelh AT juju.net.nz>
17109
17110         * src/z80/mappings.i: Added z80asm support.
17111
17112         * src/z80/main.c: Added z80asm support on --asm=z80asm
17113
17114         * src/z80/gen.c: Fixed asm portability issues.
17115
17116         * src/asm.c (tvsprintf): Removed old code, added 'N' for function name.  For extern support.
17117
17118         * src/SDCCglue.c (printExterns): Added global/extern split.
17119
17120 2001-12-17  Bernhard Held  <bernhard AT bernhardheld.de>
17121
17122         * support/regression/Makefile: added test for mcs51 model large
17123
17124         * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
17125
17126         * support/regression/ports/gbz80/spec.mk: added -mgbz80
17127
17128 2001-12-05  Michael Hope  <michaelh AT juju.net.nz>
17129
17130         * src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.
17131
17132 1904-01-06  Michael Hope  <michaelh AT juju.net.nz>
17133
17134         * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
17135
17136         * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
17137
17138 2001-12-02  Bernhard Held  <bernhard AT bernhardheld.de>
17139
17140         * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
17141
17142         * support/regression/tests/simplefloat.c: Port to mcs51.
17143
17144 2001-11-25  Michael Hope  <michaelh AT juju.net.nz>
17145         * support/regression/tests/bug-485362.c: Added.
17146
17147         * support/regression/tests/simplefloat.c (testDivNearOne): Added.
17148
17149         * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
17150
17151         * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
17152
17153         * src/z80/gen.c (aopDump): Added a dump function.
17154
17155 2001-11-25  Bernhard Held  <bernhard AT bernhardheld.de>
17156         * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
17157
17158         * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
17159
17160         * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
17161
17162         * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
17163
17164         * sim/ucsim/s51.src/uc390cl.h: Work in progress.
17165
17166         * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
17167
17168         * support/regression/fwk/lib/testfwk.c: Run with tinibios.
17169
17170         * support/regression/ports/mcs51/spec.mk: Fine tuninig.
17171
17172         * support/regression/ports/ds390/support.c: Use tinibios.
17173
17174         * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
17175
17176 2001-11-23  Michael Hope  <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
17177
17178         * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
17179         (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
17180
17181         * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
17182
17183         * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
17184
17185 2001-11-18  Michael Hope  <michaelh AT juju.net.nz>
17186
17187         * src/z80/gen.c (genCmp): Fixed compare on unsigned.
17188
17189         * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
17190         (packRegsForIYUse): Created and optimised.
17191
17192 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
17193
17194         * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
17195 2001-11-18  Bernhard Held  <bernhard AT bernhardheld.de>
17196
17197         * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
17198
17199         * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
17200
17201         * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
17202
17203 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
17204
17205         * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
17206
17207         * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
17208
17209 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
17210
17211         * sdcc/sim/ucsim/globals.cc: New: IXRAM.
17212
17213         * sdcc/sim/ucsim/stypes.h: New: IXRAM.
17214
17215         * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
17216
17217 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
17218
17219         * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
17220         (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
17221         (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
17222
17223         * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
17224
17225         * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
17226         (genNotFloat): Added.
17227         (genUminusFloat): Added.
17228
17229         * device/lib/z80/Makefile: Added floating pt stubs.
17230
17231         * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
17232
17233         * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
17234
17235         * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
17236
17237 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
17238
17239         * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
17240
17241         * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
17242
17243         * sdcc/support/regression/Makefile: Add port ds390.
17244
17245         * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
17246
17247         * sdcc/support/regression/ports/z80/spec.mk: Minor change.
17248
17249         * sdcc/support/regression/ports/ds390/spec.mk: Added.
17250
17251         * sdcc/support/regression/ports/ds390/support.c: Added.
17252
17253         * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
17254
17255         * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
17256
17257         * sdcc/support/regression/fwk/lib/timeout.c: Paste.
17258
17259 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
17260
17261         * device/include/malloc.h: Added z80 and gbz80 support.
17262
17263         * device/lib/gbz80/heap.s: Added.
17264
17265         * device/lib/z80/heap.s: Added.
17266
17267         * device/lib/malloc.c: Added z80 and gbz80 support.
17268
17269         * support/regression/tests/malloc.c (testMalloc): Added.
17270
17271         * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
17272
17273         * support/regression/tests/bug-478094.c: Added.
17274
17275         * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
17276
17277 2001-11-04  Bernhard Held  <bernhard AT bernhardheld.de>
17278
17279         * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
17280
17281         * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
17282
17283         * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
17284
17285         * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
17286
17287         * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
17288
17289 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
17290
17291         * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
17292
17293 2001-11-03  Michael Hope  <michaelh AT juju.net.nz>
17294
17295         * support/regression/tests/bug-477927.c: Added.
17296
17297         * src/z80/peeph.def: Added minor rules.
17298
17299         * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
17300
17301         * src/z80/peeph.def: Added jump optimisation modification.
17302
17303 2001-11-01  Michael Hope  <michaelh AT juju.net.nz>
17304
17305         * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
17306
17307 2001-10-30  Michael Hope  <michaelh AT juju.net.nz>
17308
17309         * support/regression/tests/funptrs.c: Added.
17310
17311 2001-10-29  Michael Hope  <michaelh AT juju.net.nz>
17312
17313         * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
17314
17315 2001-10-28  Michael Hope  <michaelh AT juju.net.nz>
17316
17317         * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
17318
17319         * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
17320
17321         * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
17322         (movLeft2ResultLong): Created.
17323
17324         * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
17325         (joinPushes): Added.  Joins two char pushes into a word push.
17326
17327 2001-10-27  Michael Hope  <michaelh AT juju.net.nz>
17328
17329         * support/cpp2/Makefile.in (install): Added creation of dest dir.
17330
17331         * support/makebin/Makefile (install): Added creation of dest dir.
17332
17333 2001-10-24 Karl Bongers <karl AT turbobit.com>
17334
17335         * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
17336
17337 2001-10-21  Michael Hope  <michaelh AT juju.net.nz>
17338
17339         * src/z80/ralloc.c: Turned off faulty pack for one use.
17340
17341         * src/z80/peeph-gbz80.def: Removed redundent restart options.
17342
17343         * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
17344
17345 2001-10-21  Bernhard Held  <bernhard AT bernhardheld.de>
17346
17347         * support/regression/Makefile: Improved clean
17348
17349         * support/regression/ports/gbz80/spec.mk: Added clean
17350
17351         * support/regression/ports/host/spec.mk: Added clean
17352
17353         * support/regression/ports/z80/spec.mk: Added clean
17354
17355         * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
17356
17357         * support/regression/ports/mcs51/timeout.c: little improvements
17358
17359 2001-10-17  Michael Hope  <michaelh AT juju.net.nz>
17360
17361         * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
17362
17363         * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
17364
17365         * support/regression/generate-cases.py: Fixed up to use function pts correctly.
17366
17367 2001-10-16  Bernhard Held  <bernhard AT bernhardheld.de>
17368
17369         * support/regression/port/mcs51/spec.mk: add timeout for uCsim
17370
17371         * support/regression/port/mcs51/timeout.c: add timeout for uCsim
17372
17373 2001-10-13  Michael Hope  <michaelh AT juju.net.nz>
17374         * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
17375
17376         * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
17377
17378         * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
17379
17380         * src/mcs51/main.c (_linkCmd): Added bin path to command.
17381
17382         * src/SDCCmain.c (initValues): Added support for when it it called just to link.
17383
17384         * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
17385
17386         * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
17387
17388         * support/regression/tests/longor.c: Added.
17389
17390 2001-10-11  Bernhard Held  <bernhard AT bernhardheld.de>
17391
17392         * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
17393
17394         * as/mcs51/aslink.h: define PATH_MAX
17395
17396         * as/mcs51/asm.h: define PATH_MAX
17397
17398         * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
17399
17400         * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
17401
17402         * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
17403
17404         * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
17405
17406         * src/SDCCglobl.h: define PATH_MAX
17407
17408         * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
17409
17410         * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
17411
17412 2001-10-11  Michael Hope  <michaelh AT juju.net.nz>
17413
17414         * src/z80/gen.c (gencjneshort): Fixed
17415
17416         * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
17417
17418 2001-10-09  Michael Hope  <michaelh AT juju.net.nz>
17419
17420         * support/regression/tests/bug-469671.c: Added.
17421
17422         * src/z80/gen.c (shiftIntoPair): Fixed up warning.
17423
17424 2001-10-08  Michael Hope  <michaelh AT juju.net.nz>
17425
17426         * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
17427
17428         * src/z80/gen.c (genPlus): Fixed to work with extended stack.  Also fixed genMinus, genCmp.  genUMinus is still left.
17429
17430 2001-10-08  Bernhar Held  <bernhard AT bernhardheld.de>
17431
17432         * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
17433
17434         * src/device/lib/_mulint.c  : removed hint: nooverlay bug
17435
17436         * src/device/lib/_mullong.c : removed hint: nooverlay bug
17437
17438         * src/device/lib/_divuint.c : removed hint: nooverlay bug
17439
17440         * src/device/lib/_divulong.c: removed hint: nooverlay bug
17441
17442         * src/device/lib/_moduint.c : removed hint: nooverlay bug
17443
17444         * src/device/lib/_modulong.c: removed hint: nooverlay bug
17445
17446 2001-10-07  Michael Hope  <michaelh AT juju.net.nz>
17447
17448         * 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.
17449
17450         * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.
17451
17452         * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
17453
17454 2001-10-07    <johan AT FRIJA>
17455
17456         * device/lib/gets.c (gets): fixed the return value.
17457
17458 2001-10-06  Michael Hope  <michaelh AT juju.net.nz>
17459         * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
17460
17461         * 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.
17462
17463         * 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.
17464
17465         * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
17466
17467         * src/pic/gen.c: Removed Safe_strdup.
17468
17469         * configure.in: Added option to enable libgc support.
17470
17471         * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
17472         (bitVectUnion): Optimised.
17473         (bitVectIntersect): Optimised.
17474         (bitVectBitsInCommon): Optimised.
17475         (bitVectCplAnd): Optimised.
17476
17477         * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.
17478
17479 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
17480
17481         * src/SDCCmain.c: distinguish between assembler debug and plain options
17482
17483         * src/avr/main.c:   remove standard assembler options
17484
17485         * src/ds390/main.c: remove standard assembler options
17486
17487         * src/mcs51/main.c: remove standard assembler options
17488
17489         * src/port.h: removed "PENDING" comment
17490
17491 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
17492
17493         * src/device/lib/_mulint.c  : new, with assember functions
17494
17495         * src/device/lib/_mullong.c : new, with assember functions
17496
17497         * src/device/lib/_divuint.c : with assember functions
17498
17499         * src/device/lib/_divsint.c : with assember functions
17500
17501         * src/device/lib/_divulong.c: with assember functions
17502
17503         * src/device/lib/_divslong.c: with assember functions
17504
17505         * src/device/lib/_moduint.c : with assember functions
17506
17507         * src/device/lib/_modsint.c : with assember functions
17508
17509         * src/device/lib/_modulong.c: with assember functions
17510
17511         * src/device/lib/_modslong.c: with assember functions
17512
17513         * src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c
17514
17515         * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
17516
17517         * src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
17518                                       replaced _mululong.c and _mulslong.c by _mullong.c
17519
17520 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
17521
17522         * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
17523
17524 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
17525
17526         * src/SDCCglue.c: test, if win32api is available for MINGW
17527
17528 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
17529
17530         * src/SDCCsymt.c: no more _modifier in printTypeChain()
17531         * support/regression/tests/driverstruct.c: REENTRANT for mcs51
17532         * support/regression/ports/gbz80/spec.mk: removed GENERIC
17533         * support/regression/ports/host/spec.mk: removed GENERIC
17534         * support/regression/ports/mcs51/spec.mk: removed GENERIC
17535         * support/regression/ports/z80/spec.mk: removed GENERIC
17536
17537 2001-10-01  Michael Hope  <michaelh AT juju.net.nz>
17538
17539         * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
17540
17541         * support/regression/tests/bug-467035.c: Created.
17542
17543 2001-10-01    <johan AT FRIJA>
17544
17545         * src/SDCC.y: fixed bug #466586 part 1
17546
17547 2001-10-01  Johan Knol <johan.knol AT iduna.nl>
17548
17549         * SDCCicode.c: z80 has no generic pointers
17550         * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
17551
17552 2001-09-30  Michael Hope  <michaelh AT juju.net.nz>
17553
17554         * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
17555
17556 2001-09-29  Michael Hope  <michaelh AT juju.net.nz>
17557
17558         * Makefile (sdcc-libs): Added makebin to the list of standard targets.
17559
17560         * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
17561
17562 2001-09-25  Michael Hope  <michaelh AT juju.net.nz>
17563
17564         * configure.in: Fixed up so that ucsim is only configured once.
17565
17566         * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
17567
17568         * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
17569         (getPathDifference): As above.
17570
17571         * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.
17572
17573         * src/SDCCglue.c (tempfilename): Added function for pre-processor.
17574
17575 2001-09-23  Michael Hope  <michaelh AT juju.net.nz>
17576         * .version: Updated to 2.3.1
17577
17578         * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
17579         Added copyright header.
17580
17581         * src/SDCCmain.c: Shifted various functions into SDCCutil.c
17582         (assemble): Added support for macro based assembler commands.
17583         (linkEdit): Added support for macro based linker commands.
17584         (preProcess): Changed the pre-processor to use macros.
17585         (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
17586         (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
17587
17588         * device/lib/z80/crt0.s: Added module name for debugging.
17589
17590 2001-09-20  Michael Hope  <michaelh AT juju.net.nz>
17591
17592         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
17593
17594         * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
17595
17596         * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
17597
17598         * src/Makefile.in: Added SDCCmacro and SDCCutil
17599
17600 2001-09-19  Michael Hope  <michaelh AT juju.net.nz>
17601
17602         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
17603
17604 2001-09-16    <johan AT FRIJA>
17605
17606         * 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.
17607
17608 2001-09-15    <johan AT FRIJA>
17609
17610         * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
17611         * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
17612
17613 2001-09-11    <johan AT FRIJA>
17614
17615         * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
17616
17617 2001-09-10  Michael Hope  <michaelh AT juju.net.nz>
17618
17619         * support/regression/tests/bug-460444.c: Added test case.
17620
17621         * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
17622         (genCast): Added justification for all of the asserts.
17623
17624 2001-09-10  Bernhard Held <bernhard AT bernhardheld.de>
17625
17626         * support/regression/support.c: _xdata replaced by xdata
17627
17628         * support/regression/spec.mk: removed _generic
17629
17630 2001-09-09  Michael Hope  <michaelh AT juju.net.nz>
17631
17632         * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
17633
17634         * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
17635         (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
17636
17637         * src/z80/peeph.def: Added a rule to optimise shift then compare.
17638
17639         * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
17640
17641         * support/regression/tests/bug-460010.c: Added test case.
17642
17643         * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
17644
17645 2001-09-09  Bernhard Held <bernhard AT bernhardheld.de>
17646
17647         * support/regression/Makefile: inter-port-clean adjusted for mcs51
17648
17649         * support/regression/testfwk.c: removed workaround for bug #436344
17650
17651         * support/regression/tests/bp.c: use less memory with mcs51
17652
17653         * support/regression/tests/bug-441448.c: use less memory
17654
17655         * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
17656
17657         * support/regression/collate-results.py: typo
17658
17659 2001-09-08  Michael Hope  <michaelh AT juju.net.nz>
17660
17661         * support/regression/tests/fetchoverlap.c: Added new test case.
17662
17663         * support/regression/tests/bp.c: Added new test case.
17664
17665         * support/regression/tests/bug-448984.c: Added new test case.
17666
17667         * support/regression/tests/pow2shifts.c: Added new test case.
17668
17669         * src/z80/gen.c: Turned off the noise it normally generates for the release.
17670         (genlshTwo): Fixed right shift for count > 8.
17671
17672         * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
17673
17674 2001-09-08    <johan AT FRIJA>
17675
17676         * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
17677
17678 2001-09-07    <johan AT FRIJA>
17679
17680         * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
17681
17682         * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
17683
17684 2001-09-06    <johan AT FRIJA>
17685
17686         * src/SDCC.y: this could be a fix for bug #458744 (1.37)
17687         * bernhard noted me at this: "() equals to (void)" (1.38)
17688
17689 2001-09-05    <johan AT FRIJA>
17690
17691         * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
17692
17693 2001-09-04    <johan AT FRIJA>
17694
17695         * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
17696
17697
17698 2001-09-04  Paul Stoffregen  <paul AT pjrc.com>
17699
17700         * pragma noinduction broke memcpy on mcs51 large model.  Moved it inside z80 optimization
17701
17702 2001-09-03  Michael Hope  <michaelh AT juju.net.nz>
17703
17704         * link/z80/aslink.h: Fixed path for PATH_MAX
17705
17706 2001-09-02  Michael Hope  <michaelh AT juju.net.nz>
17707
17708         * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
17709
17710         * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
17711
17712         * support/regression/tests/uminus.c: Added a test for the unary minus operator.
17713
17714         * 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.
17715
17716 2001-09-01  Michael Hope  <michaelh AT juju.net.nz>
17717
17718         * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
17719         (genCmp): Fixed up genCmp for the GB with longs.
17720
17721         * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
17722
17723         * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
17724
17725         * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
17726
17727         * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
17728
17729 2001-08-30  Paul Stoffregen  <paul AT pjrc.com>
17730
17731         * added peepholes 223 to 231 to mcs51 port.  These improve code when using large model.
17732
17733 2001-08-30  Michael Hope  <michaelh AT juju.net.nz>
17734
17735         * 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.
17736
17737         * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
17738
17739 2001-08-29  Michael Hope  <michaelh AT juju.net.nz>
17740
17741         * link/z80/aslink.h: Fixed long file name support.  Is now based off PATH_MAX instead of a constant.
17742
17743         * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
17744
17745 2001-08-30 Bernhard Held   <bernhard AT bernhardheld.de>
17746
17747         * sim/ucsim/configure:    little improvement of Cygwin-detection
17748         * sim/ucsim/configure.in: little improvement of Cygwin-detection
17749         * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
17750         * support/regression/tests/bug-221100.c: small changes for mcs51
17751         * support/regression/tests/bug-221168.c: small changes for mcs51
17752         * support/regression/tests/bug-227710.c: small changes for mcs51
17753         * support/regression/tests/staticinit.c: small changes for mcs51
17754         * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
17755         * as/mcs51/lklex.c:  accept everything as symbol name in rel-files, bug fix ID 452601
17756         * as/mcs51/lksym.c:  accept everything as symbol name in rel-files, bug fix ID 452601
17757
17758 $Revision$