* device/lib/Makefile.in, device/lib/gbz80/Makefile.in,
[fw/sdcc] / ChangeLog
1 2009-02-01 Borut Razem <borut.razem AT siol.net>
2
3         * device/lib/Makefile.in, device/lib/gbz80/Makefile.in,
4           device/lib/hc08/Makefile.in, device/lib/incl.mk,
5           device/lib/z80/Makefile.in:
6           don't remake libraries
7         * support/regression/tests/snprintf.c:
8           reenable floating point in small-xstack-auto library
9
10 2008-01-26 Raphael Neider <rneider AT web.de>
11
12         * src/pic16/ralloc.c (packForPush): disabled to fix #2496919
13
14 2008-01-25 Raphael Neider <rneider AT web.de>
15
16         * src/pic16/main.c (_pic16_linkEdit): prepend -L paths to linker
17           search path instead of appending them
18
19 2009-01-24 Borut Razem <borut.razem AT siol.net>
20
21         * as/asranlib/asranlib.h: changed type of offset to unsigned int to
22           make it work on ppc Mac OS X (off_t is 64 bit and is not converted
23           to 32 bit unsigned int when calling sputl() since it is a macro
24         * as/link/lkar.c: changed the initialization of This->loaded
25
26 2009-01-23 Borut Razem <borut.razem AT siol.net>
27
28         * as/link/lkar.h: changed type of ar_size to size_t to make it work on
29           ppc Mac OS X (off_t is 64 bit and is not converted to 32 bit
30           unsigned int when calling new(), since asxxxx doesn't use function
31           prototypes)
32
33 2009-01-21 Borut Razem <borut.razem AT siol.net>
34
35         * as/link/lkar.h: sgetl and sputl are independent of endianness
36         * as/link/sdxxxx_config.h.in: removed endianness detection
37
38 2009-01-20 Borut Razem <borut.razem AT siol.net>
39
40         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.8
41           due creation of ar format libraries
42         * support/scripts/sdcc.nsi:
43           don't add nonexistent object files to the package
44
45 2009-01-19 Borut Razem <borut.razem AT siol.net>
46
47         * Makefile.in, configure.in, configure,
48           device/lib/Makefile.in, device/lib/ds390/Makefile.in,
49           device/lib/ds400/Makefile.in, device/lib/gbz80/Makefile.in,
50           device/lib/hc08/Makefile.in, device/lib/large/Makefile.in,
51           device/lib/mcs51/Makefile.in, device/lib/medium/Makefile.in,
52           device/lib/small/Makefile.in,
53           device/lib/z80/Makefile.in: create ar format libraries
54         * support/regression/ports/mcs51-xstack-auto/spec.mk:
55           use device/lib/Makefile to create library
56         * support/regression/tests/snprintf.c:
57           floating point is not enabled in small-xstack-auto library
58         * device/lib/libfloat.lib, device/lib/libint.lib,
59           device/lib/liblong.lib, device/lib/libsdcc.lib: removed
60
61 2009-01-18 Borut Razem <borut.razem AT siol.net>
62
63         * support/cpp/auto-host.h: fixed warning: "__STDC__" redefined,
64           warning: extra tokens at end of #endif directive
65
66 2009-01-11 Borut Razem <borut.razem AT siol.net>
67
68         * Makefile.in: added SDCC_ASRANLIB to PKGS
69
70 2009-01-10 Borut Razem <borut.razem AT siol.net>
71
72         * support/scripts/sdcc.nsi: added asranlib.exe to the install package
73         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.7
74           due added support for ar format libraries
75
76 2009-01-09 Borut Razem <borut.razem AT siol.net>
77
78         * as/asranlib/Makefile.in, as/asranlib/asranlib.dsp,
79           as/asranlib/asranlib.c: added asranlib
80         * as/link/lkar.c, as/link/lkar.h: added support for ar format libraries
81         * Makefile.in, as/link/hc08/Makefile.in,
82           as/link/hc08/link_hc08.dsp, as/link/lklib.c, as/link/lklibr.c,
83           as/link/lklibr.h, as/link/lkrel.c, as/link/lkrel.h,
84           as/link/lksdcclib.c, as/link/mcs51/Makefile.in,
85           as/link/mcs51/aslink.dsp, as/link/z80/Makefile.in,
86           as/link/z80/linkgbz80.dsp, as/link/z80/linkz80.dsp, configure,
87           configure.in, sdcc.dsw: modified to support ar format libraries
88
89 2009-01-08 Maarten Brock <sourceforge.brock AT dse.nl>
90
91         * src/SDCCast.c (decorateType RETURN): use RESULT_TYPE_GPTR for generic
92           pointer return
93
94 2009-01-05 Philipp Klaus Krause <pkk AT spth.de>
95
96         * sim/ucsim/z80.src/inst_ed.cc:
97           Fixed bug #2488074, which made regression tests fail.
98
99 2009-01-05 Philipp Klaus Krause <pkk AT spth.de>
100
101         * device/lib/z80/mod.s,
102           device/lib/z80/div.s,
103           device/lib/z80/mulchar.s,
104           device/lib/z80/mul.s,
105           device/lib/z80/divsigned.s,
106           device/lib/z80/Makefile.in:
107           Implemented RFE #1702376.
108
109 2009-01-05 Borut Razem <borut.razem AT siol.net>
110
111         * as/link/lksdcclib.c:
112           fixed linker hanging in INDEXLIB is not defined (hc08)
113
114 2009-01-04 Philipp Klaus Krause <pkk AT spth.de>
115
116         * src/z80/gen.c:
117           Implemented RFE #2485684, and some further improvements of HL caching
118           including a bugfix.
119         * src/z80/peeph-z80.def:
120           Fixed a bug exposed by implementing RFE #2485684.
121
122 2009-01-04 Philipp Klaus Krause <pkk AT spth.de>
123
124         * src/z80/peeph-z80.def:
125           Peephole improvements.
126         * src/z80/gen.c,
127           src/z80/main.c,
128           device/include/string.h,
129           device/lib/z80/memmove.s:
130           Minor code cleanup.
131         * device/lib/z80/Makefile.in,
132           device/lib/Makefile.in,
133           support/regression/tests/memory.c,
134           device/lib/z80/strlen.s:
135           Partially implemented RFE #2471534.
136
137 2009-01-04 Borut Razem <borut.razem AT siol.net>
138
139         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.6
140           due changes in sdcc asxxxx linkers - it sholud be done 2 days ago :(
141         * doc/README.txt: updated John Hartman's e-mail address
142         * as/link/lkrel.c, as/link/lksdcclib.c:
143           fixed bug #2484677: Linker hangs
144         * src/z80/peep.c: fixed msvc warning C4047:
145           'return' : 'int ' differs in levels of indirection from 'char *'
146         * config.dsp: as/lib corrected to as/link
147
148 2009-01-04 Philipp Klaus Krause <pkk AT spth.de>
149
150         * src/z80/peep.c:
151           Implemented RFE #2484693.
152         * src/z80/peeph-z80.def:
153           Some peephole improvements.
154
155 2009-01-03 Borut Razem <borut.razem AT siol.net>
156
157         * as/link/lklibr.c:
158           fixed warning: 'ret' may be used uninitialized in this function
159
160 2009-01-02 Borut Razem <borut.razem AT siol.net>
161
162         * as/link/lklib.c, as/link/lksdcclib.c, as/link/lklibr.h,
163           as/link/getline.[ch], as/link/lkrel.[ch]: added,
164           made support for differnet library formats more flexible,
165           preparation for support of ar format
166         * as/link/lklibr.c, as/link/z80/Makefile.in,
167           as/link/z80/linkgbz80.dsp, as/link/z80/linkz80.dsp,
168           as/link/hc08/link_hc08.dsp, as/link/hc08/Makefile.in,
169           as/link/mcs51/aslink.dsp, as/link/mcs51/Makefile.in,
170           as/link/hc08/lkelf.c, as/link/aslink.h:
171           made support for differnet library formats more flexible,
172           preparation for support of ar format
173
174 2009-01-01 Borut Razem <borut.razem AT siol.net>
175
176         * as/link/asxxxx_config.h.in:
177           fixed warning: extra tokens at end of #endif directive
178         * src/z80/peep.c:
179           fixed warning: suggest parentheses around && within ||
180         * device/lib/Makefile.in: allow whitespaces at the end of lines in
181           ports.build, in order to make it work on cygwin - it seems to be a
182           bug in cygwin grep: CR is not treated as part of end-of-line
183
184 2008-12-31 Borut Razem <borut.razem AT siol.net>
185
186         * configure, configure.in, config.dsp, config_vc.awk,
187           as/link/asxxxx_config.h.in, as/link/hc08/lkelf.c, as/link/aslink.h,
188           as/link/hc08/Makefile.in, as/link/mcs51/Makefile.in:
189           introduced asxxxx_config.h.in
190
191 2008-12-30 Philipp Klaus Krause <pkk AT spth.de>
192
193         * src/z80/gen.c,
194           src/z80/peeph-z80.def:
195           Minor addition improvement.
196
197 2008-12-30 Raphael Neider <rneider AT web.de>
198
199         * as/link/hc08/lkelf.c, as/link/lkaomf51.c, as/link/lklibr.c,
200           as/link/z80/lkgb.c, debugger/mcs51/cmd.c, sim/ucsim/utils.cc,
201           src/SDCCasm.c, support/Util/dbuf_string.c, support/cpp/c-ppoutput.c,
202           support/cpp/libcpp/lex.c, support/cpp/libcpp/macro.c,
203           support/librarian/sdcclib.c, support/makebin/makebin.c:
204           partially revert changes from r5293..r5295
205
206 2008-12-29 Philipp Klaus Krause <pkk AT spth.de>
207
208         * src/z80/peeph-z80.def:
209           Minor peephole improvement.
210
211 2008-12-29 Raphael Neider <rneider AT web.de>
212
213         * src/pic/pcode.c (insertBankSel, FixRegisterBanking): emit
214           incorrectly discarded BANKSELs
215
216 2008-12-29 Philipp Klaus Krause <pkk AT spth.de>
217
218         * support/regression/tests/memory.c:
219           Added simple test for memset(), memcpy() and memmove()
220
221 2008-12-29 Borut Razem <borut.razem AT siol.net>
222
223         * sdcc/support/scripts/sdcc.nsi: removed $INSTDIR\lib\src\z80\*.c
224
225 2008-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
226
227         * src/mcs51/peeph.def (177.e): replaced notVolatile(%3) with
228           operandsNotRelated(%1 %3), had to change (a)r%1 to (a)%1 for this to work
229           (177.j): added new rule
230         * src/SDCCsymt.h: added RESULT_TYPE_GPTR
231         * src/SDCCast.c (processParms): use RESULT_TYPE_GPTR for generic ptr parms,
232           (decorateType CAST): propagate storage class to generic pointer results
233
234 2008-12-27 Philipp Klaus Krause <pkk AT spth.de>
235
236         * device/lib/z80/string.c,
237           device/lib/z80/printf.c,
238           device/lib/z80/mul.s:
239           z80 library cleanup
240         * src/z80/gen.c:
241           Fixed code generation bug exposed by builtin memcpy().
242
243 2008-12-27 Philipp Klaus Krause <pkk AT spth.de>
244
245         * device/lib/_memcpy.c:
246           fixed conflict with builtin memcpy()
247
248 2008-12-26 Borut Razem <borut.razem AT siol.net>
249
250         * support/librarian/sdcclib.c:
251           fixed bug 2466950: "sdcclib broken"
252           by removing fgets return value check
253
254 2008-12-26 Philipp Klaus Krause <pkk AT spth.de>
255         * src/z80/main.c,
256           src/z80/gen.c,
257           device/include/string.h: Implemented RFE #1914254
258
259 2008-12-26 Philipp Klaus Krause <pkk AT spth.de>
260         * device/lib/z80/Makefile.in,
261           device/lib/Makefile.in,
262           device/lib/z80/memmove.s: Implemented RFE #1914256
263
264 2008-12-26 Philipp Klaus Krause <pkk AT spth.de>
265
266         * src/z80/peeph-z80.def: fixed a bug in peephole 0zf
267         * src/z80/peep.c: improved checks for unused data
268         * src/z80/gen.c,
269           src/z80/main.c: Implemented RFE #1899189
270
271 2008-12-25 Borut Razem <borut.razem AT siol.net>
272
273         * support/regression/Makefile.in:
274           add -I$(INC_DIR) to SDCCFLAGS only if INC_DIR is defined
275
276 2008-12-25 Philipp Klaus Krause <pkk AT spth.de>
277
278         * src/z80/peeph-z80.def: minor peephole improvements
279
280 2008-12-21 Borut Razem <borut.razem AT siol.net>
281
282         * support/librarian/sdcclib.c: fixed build failure on Mac OS X
283           due to redefinition of symbol __assert
284           sdcclib.c:53:1:warning: "__assert" redefined
285           /Xcode2.5/SDKs/MacOSX10.4u.sdk/usr/include/assert.h:80:1:
286           warning: this is the location of the previous definition
287
288 2008-12-20 Raphael Neider <rneider AT web.de>
289
290         * debugger/mcs51/break.c, debugger/mcs51/cmd.c,
291           debugger/mcs51/simi.c, debugger/mcs51/symtab.c,
292           support/cpp/libcpp/macro.c: fix format string errors
293
294         * sim/ucsim/s51.src/timer2.cc: add clarifying parens
295
296         * src/pic/device.c: partial rewrite using strtok,
297           quieten compiler warnings, adopt SDCC coding style
298
299         * as/link/hc08/lkelf.c, as/link/lkaomf51.c, as/link/lklibr.c,
300           as/link/z80/lkgb.c, as/z80/asout.c, debugger/mcs51/cmd.c,
301           sim/ucsim/utils.cc, src/SDCCasm.c, support/Util/dbuf_string.c,
302           support/cpp/c-ppoutput.c, support/cpp/libcpp/lex.c,
303           support/librarian/sdcclib.c, support/makebin/makebin.c:
304           quieten most compiler warnings
305
306         * sim/ucsim/avr.src/arith_inst.cc: quieten compiler warnings,
307           probably fix operator precedence bug
308
309         * doc/clean.mk: quieten rm if no .lyx is present
310
311 2008-12-19 Borut Razem <borut.razem AT siol.net>
312
313         * doc/sdccman.lyx, doc/random-notes.txt, doc/avr/avr_design.txt,
314           doc/TININative.txt, doc/macro-sys-design.txt, doc/libdoc.txt,
315           doc/README.txt, doc/test_suite_spec.lyx:
316           applied patch 2446381: Dcoumentation spelling correcitons
317           thanks to Steven Borley
318
319 2008-12-16 Raphael Neider <rneider AT web.de>
320
321         * device/include/pic/pic12f629.h,
322           device/include/pic/pic12f675.h,
323           device/lib/pic/libdev/pic12f629.c,
324           device/lib/pic/libdev/pic12f675.c: consolidated, added TRISIO bits
325
326 2008-12-14 Borut Razem <borut.razem AT siol.net>
327
328         * doc/sdccman.lyx, cdbfileformat.lyx, test_suite_spec.lyx:
329           converted to LyX 1.5.7 (\lyxformat 276) format
330
331 2008-12-07 Borut Razem <borut.razem AT siol.net>
332
333         * support/regression/tests/bitfields.c:
334           added test case for bug #2366757
335
336 2008-12-07 Raphael Neider <rneider AT web.de>
337
338         * src/pic16/glue.c (pic16_printIvalBitFields): prevent
339           NULL pointer dereference, closes #2366757
340
341 2008-11-25 Raphael Neider <rneider AT web.de>
342
343         * device/include/pic16/pic16devices.txt,
344           sdcc/src/pic16/device.c,
345           sdcc/src/pic16/device.h: implicitly disable XINST
346           whenever CONFIG4L is set via an additional optional
347           argument to the configword directive in pic16devices.txt
348
349 2008-11-24 Raphael Neider <rneider AT web.de>
350
351         * device/lib/pic16/configure.ac,
352           device/lib/pic16/Makefile.common: fixed quoting issues
353
354         * device/lib/pic16/configure,
355           device/lib/pic16/debug/Makefile.in,
356           device/lib/pic16/libc/Makefile.in,
357           device/lib/pic16/libdev/Makefile.in,
358           device/lib/pic16/libio/Makefile.in,
359           device/lib/pic16/libm/Makefile.in,
360           device/lib/pic16/libsdcc/Makefile.in,
361           device/lib/pic16/Makefile.in,
362           device/lib/pic16/startup/Makefile.in: regenerated
363
364         * src/pic16/main.c (_pic16_finaliseOptions): revert to
365           variant of r5216
366
367 2008-11-24 Raphael Neider <rneider AT web.de>
368
369         * src/pic16/main.c (_pic16_finaliseOptions): do not quote the
370           argument of --asm= or --link= to allow for
371           --asm="sh script --options", the user can double quote the
372           argument if needed: --asm="'c:/program files/gpasm' -q",
373           also fix some potential buffer overflows
374
375 2008-11-19 Borut Razem <borut.razem AT siol.net>
376
377         * doc/sdccman.lyx:
378           fixed 2314467: sdccman.lyx: fix "--" in command line parameters
379           thanks Mauro Giachero
380
381 2008-11-16 Borut Razem <borut.razem AT siol.net>
382
383         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.5
384         * doc/sdccman.lyx: documented fixed unnamed bit-field initialization
385
386 2008-11-15 Borut Razem <borut.razem AT siol.net>
387
388         * src/pic16/glue.c, src/SDCC.y, src/SDCCast.c, src/SDCCglue.c,
389           src/SDCCsymt.c, src/SDCCsymt.h:
390           fixed RFE #2291335 : Unnamed bit-field initialization
391         * support/regression/tests/bitfields.c:
392           added test case for RFE #2291335
393         * support/regression/tests/bug-1981238.c:
394           don't initialize unnamed bit-fields
395
396 2008-11-11 Raphael Neider <rneider AT web.de>
397
398         * device/include/pic16/pic18f25j10.h,
399           device/include/pic16/pic18f45j10.h: remove useless boilerplate
400
401         * device/include/pic16/adc.h,
402           device/lib/pic16/libio/adc/adcbusy.c,
403           device/lib/pic16/libio/adc/adcclose.c,
404           device/lib/pic16/libio/adc/adcconv.c,
405           device/lib/pic16/libio/adc/adcopen.c,
406           device/lib/pic16/libio/adc/adcread.c,
407           device/lib/pic16/libio/adc/adcsetch.c: generalized, documented,
408           and fixed ADC routines to work for more target devices,
409           incorporates patch #2036130 by Nick Materer
410
411 2008-11-10 Steven Borley <steven.borley AT partnerelectronics.com>
412
413         * device/include/ctype.h,
414         * device/include/ds400rom.h,
415         * device/include/ds80c390.h,
416         * device/include/float.h,
417         * device/include/math.h,
418         * device/include/serial.h,
419         * device/include/stdbool.h,
420         * device/include/tinibios.h: replaced non-C89 '//' with '/* */',
421           patch 2195343
422         * device/include/mcs51/C8051F336.h,
423         * device/include/mcs51/C8051T600.h,
424         * device/include/mcs51/C8051T610.h,
425         * device/include/mcs51/C8051T630.h: new, added, patch 2183334
426           (svn commit by Maarten Brock <sourceforge.brock AT dse.nl>)
427
428 2008-11-10 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
429
430         * device/include/mcs51/P89LPC922.h: fixed #2255989, thanks kubi57
431
432 2008-11-10 Raphael Neider <rneider AT web.de>
433
434         * device/lib/pic16/libdev/mkmk.sh: obey pics.all
435         * device/lib/pic16/libio/mkmk.sh: properly match whole lines in
436           .ignore files, fixes IO libs for 18f242, 18f252, 18f442, and 18f452
437           (patch by Nick Materer, #2253980)
438
439         * device/lib/pic16/libio/adc.ignore,
440           device/lib/pic16/libio/i2c.ignore,
441           device/lib/pic16/libio/usart.ignore,
442           device/lib/pic16/pics.all: updated to build more device libs
443
444         * device/lib/pic16/libdev/Makefile.am,
445           device/lib/pic16/libdev/Makefile.in,
446           device/lib/pic16/libio/Makefile.am,
447           device/lib/pic16/libio/Makefile.in: regenerated
448
449         * src/pic16/device.c (pic16_dump_usection): fixed output of multiple
450           names per memory location, applied SDCC style to more functions
451
452 2008-11-09 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
453
454         * device/include/mcs51/p89lpc933_4.h: new NXP header file
455         * device/include/mcs51/p89lpc935_6.h: new NXP header file
456         * device/include/mcs51/p89v66x.h: minor changes
457           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
458
459 2008-11-09 Raphael Neider <rneider AT web.de>
460
461         * device/include/pic/pic14devices.txt: fixed memory description for
462           12f629 and 12f675, closes #2236240
463
464 2008-11-06 Borut Razem <borut.razem AT siol.net>
465
466         * src/SDCCmain.c: fixed bug #2224960: sdcc -MM no working correctly
467           pass system include paths with -isystem to sdcpp
468         * src/SDCCglue.c, src/pic/glue.c, src/pic16/glue.c: removed unneeded
469           functions (closePipes), (closeTmpFiles) and (rmTmpFiles)
470
471 2008-11-02 Raphael Neider <rneider AT web.de>
472
473         * doc/sdccman.lyx: updated the sections on the library build process
474           and on how to add support for new devices, and documented known
475           problems with the extended instruction set including a workaround
476
477 2008-11-01 Raphael Neider <rneider AT web.de>
478
479         * device/include/pic16/adc.h,
480           device/include/pic16/pic16devices.txt,
481           device/include/pic16/pic18f2410.h,
482           device/include/pic16/pic18f2510.h,
483           device/include/pic16/pic18f2515.h,
484           device/include/pic16/pic18f2610.h,
485           device/include/pic16/pic18f4410.h,
486           device/include/pic16/pic18f4510.h,
487           device/include/pic16/pic18f4515.h,
488           device/include/pic16/pic18f4610.h,
489           device/include/pic16/pic18fregs.h,
490           device/lib/pic16/libdev/Makefile.am,
491           device/lib/pic16/libdev/Makefile.in,
492           device/lib/pic16/libdev/pic18f2410.c,
493           device/lib/pic16/libdev/pic18f2510.c,
494           device/lib/pic16/libdev/pic18f2515.c,
495           device/lib/pic16/libdev/pic18f2610.c,
496           device/lib/pic16/libdev/pic18f4410.c,
497           device/lib/pic16/libdev/pic18f4510.c,
498           device/lib/pic16/libdev/pic18f4515.c,
499           device/lib/pic16/libdev/pic18f4610.c,
500           device/lib/pic16/libio/Makefile.am,
501           device/lib/pic16/libio/Makefile.in,
502           device/lib/pic16/pics.all: added support for 18f[24][456]10
503           and 18f[24]515 devices
504         * doc/sdccman.lyx: updated list of supported PIC16 devices
505
506         * src/pic/glue.c, src/pic/pcode.c, src/pic/pcodeflow.c,
507           src/pic16/glue.c, src/pic16/pcode.c, src/pic16/pcodeflow.c,
508           src/xa51/gen.c: avoid compiler warnings
509         * support/scripts/inc2h-pic16.pl: removed trailing whitespace
510
511 2008-10-22 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
512
513         * device/include/mcs51/p89v66x.h: NXP header file
514         * device/include/mcs51/p89c66x.h: fixed an SBIT definition
515           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
516
517 2008-10-14 Raphael Neider <rneider AT web.de>
518
519         * device/lib/pic16/libdev/Makefile.am,
520           device/lib/pic16/libio/Makefile.am: enable building libraries for
521           18f2321, 18f4321, 18f2523, 18f4620, 18f66j60, 18f66j65, 18f67j60,
522           18f86j60, 18f86j65, 18f87j60, 18f96j60, 18f96j65, and 18f97j60
523         * device/lib/pic16/libdev/Makefile.in,
524           device/lib/pic16/libio/Makefile.in: regenerated
525
526 2008-10-14 Raphael Neider <rneider AT web.de>
527
528         * device/include/pic16/pic18f2450.h,
529           device/include/pic16/pic18f4450.h,
530           device/lib/pic16/libdev/pic18f2450.c,
531           device/lib/pic16/libdev/pic18f4450.c,
532           device/include/pic16/adc.h,
533           device/include/pic16/pic16devices.txt,
534           device/include/pic16/pic18fregs.h,
535           device/lib/pic16/libdev/Makefile.am,
536           device/lib/pic16/libdev/Makefile.in,
537           device/lib/pic16/libio/Makefile.am,
538           device/lib/pic16/libio/Makefile.in,
539           device/lib/pic16/pics.all: added 18f2450 and 18f4450, closes #1844525
540
541         * device/lib/pic16/libsdcc/stack/stack.S: there is no need to pin the
542           stack to a fixed location, relax it to automatically work with all
543           but the smallest devices (256 byte RAM devices need #pragma stack)
544
545 2008-10-09 Maarten Brock <sourceforge.brock AT dse.nl>
546
547         * debugger/mcs51/break.c: bugfix from patch 1989966, thanks Risto Huotari
548         * debugger/mcs51/simi.c: bugfix from patch 1989972, thanks Risto Huotari
549         * device/lib/_strcspn.c: fixed bug 2140931
550
551 2008-10-06 Raphael Neider <rneider AT web.de>
552
553         * device/include/pic16/stdio.h,
554           device/lib/pic16/libc/stdio/putchar.c: putchar should not be
555           declared __naked for convenience, named all arguments
556         * device/lib/pic16/libc/stdio/strmgpsim.c,
557           device/lib/pic16/libc/stdio/strmmssp.c,
558           device/lib/pic16/libc/stdio/strmusart.c: cosmetic changes
559
560         * src/pic16/pcode.c (createReachingDefinitions): avoid segfault on
561           empty __naked functions,
562         * (pCodeLabelDestruct, pic16_unlinkpCode, pic16_pCodeUnlink): fix
563           corner cases (unlink first/last pCode in list), reuse more code
564
565 2008-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
566
567         * src/ds390/main.c (_ds390_genInitStartup): added
568         * src/SDCCpeeph.c (getPatternVar): new, added,
569           (labelInRange): fixed bug 2115959
570         * src/mcs51/peeph.def (rules 193.x to 198.x): check for labelInRange
571         * src/SDCCicode.h: added newiTempOperand
572         * src/SDCCcse.c (algebraicOpts): fixed bug for x*-1,
573           added optimizations for 0/x and x/-1, see also patch 2142900
574         * support/regression/tests/onebyte.c (testMul): added test cases
575
576 2008-09-20 Borut Razem <borut.razem AT siol.net>
577
578         * src/pic16/glue.c:
579           definition of absolute address symbols without initial value,
580           fixed SDCC crash "do not know how to intialize symbol"
581
582 2008-09-16 Maarten Brock <sourceforge.brock AT dse.nl>
583
584         * device/lib/z80/mul.s (__mulsuchar_rrx_s, __muluschar_rrx_s),
585         * device/lib/z80/div.s (__divsuchar_rrx_s, __modsuchar_rrx_s,
586           __divuschar_rrx_s, __moduschar_rrx_s): added mixed signedness versions
587         * device/lib/z80/stubs.s: added stubs for above functions
588         * src/SDCCopt.c (convilong),
589         * src/SDCCsymt.c (initCSupport): fixed bug 1900961
590         * src/SDCCsymt.h (__muldiv): enlarged for mixed signedness
591         * src/z80/main.c (_hasNativeMulFor): fixed bug, I think
592         * support/regression/tests/onebyte.c: enabled all tests for z80
593
594 2008-09-15 Borut Razem <borut.razem AT siol.net>
595
596         * device/include/pic16/stdio.h, device/lib/pic16/libc/stdio/streams.c,
597           device/lib/pic16/libc/stdio/printf.c,
598           device/lib/pic16/libc/stdio/strmusart.c,
599           device/lib/pic16/libc/stdio/printf_tiny.c,
600           device/lib/pic16/libc/stdio/sprintf.c,
601           device/lib/pic16/libc/stdio/strmgpsim.c,
602           device/lib/pic16/libc/stdio/putchar.c,
603           device/lib/pic16/libc/stdio/fprintf.c,
604           device/lib/pic16/libc/stdio/strmmssp.c,
605           device/device/lib/pic16/libc/stdio/vprintf.c,
606           device/lib/pic16/libc/stdio/printf_small.c,
607           device/lib/pic16/libc/stdio/vsprintf.c,
608           device/lib/pic16/libc/stdio/strmputchar.c,
609           device/lib/pic16/libc/Makefile.am,
610           device/lib/pic16/libc/Makefile.in:
611           *printf now returns int, puchar.c moved from stdlib to stdio,
612           *printf format parameter type changed from char * to const char *,
613           added GNU link excetion text to library source files,
614           applyed GNU coding style, removed useless svn ids,
615           added BINARY_SPECIFIER macro re-enables the use of the removed 'b'
616           binary specifier: "%b", "%hb" and "%lb"
617         * device/lib/pic16/libc/stdio/vfprintf.c:
618           applied patch #2044424: PIC16: vfprintf
619           thanks Mauro Giachero
620         * support/regression/tests/bug1057979.c:
621           removed old pic16 sprintf specifics
622         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.4
623         * doc/sdccman.lyx: documented 'b' binary format specifier removal
624
625 2008-09-15 Raphael Neider <rneider AT web.de>
626
627         * src/pic16/device.c (pic16_dump_usection): force udata sections
628           into the addressable range (0..0xFFF), workaround for a gpsim
629           bug preventing simulation of regtest bug1750318
630         * src/pic16/ralloc.c (deassignLRs): cosmetic changes,
631           (serialRegAssign): fixed regtest bug-971834,
632           (pic16_packRegisters): avoid null-pointer dereference
633
634 2008-09-14 Raphael Neider <rneider AT web.de>
635
636         * src/pic16/gen.c, src/pic16/ralloc.c: use
637           SYM_SPIL_LOC/SPIL_LOC macros, no functional changes
638         * src/pic16/ralloc.c (rematStr): reimplemented, fixes #1818857
639
640 2008-09-12 Borut Razem <borut.razem AT siol.net>
641
642         * support/regression/fwk/testfwk.h:
643           define pdata as data for pic16 target
644           thanks Mauro Giachero
645
646 2008-09-11 Borut Razem <borut.razem AT siol.net>
647
648         * support/regression/tests/bug-221100.c, support/regression/shifts.c,
649           support/regression/absolute.c:
650           applied patch #2105615: Some PIC16 testcase fixlets
651           thanks Mauro Giachero
652
653 2008-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
654
655         * src/z80/gen.c (genCmpGt, genCmpLt): fixed bug 2094505
656         * support/regression/tests/bug2094505.c: new, added
657
658 2008-09-07 Borut Razem <borut.razem AT siol.net>
659
660         * src/SDCCglue.c, src/SDCCast.c:
661           fixed throw of "excess elements" warning for char arrays
662         * support/regression/tests/nullstring.c:
663           disable warning about excess elements in array of chars initializer
664
665 2008-09-07 Maarten Brock <sourceforge.brock AT dse.nl>
666
667         * as/z80/aslist.c (lstsym): changed old K&R to ANSI
668         * src/SDCCicode.c (geniCodeCritical): fixed bug for hc08
669         * src/z80/gen.c (genCritical, genEndCritical): fixed bug 2077267
670         * support/regression/tests/bug2077267.c: new, added
671
672 2008-09-05 Raphael Neider <rneider AT web.de>
673
674         * configure.in, Makefile.common.in: add support for ccache,
675           remove spurious $VERSION output, detect doc-tools even without
676           --enable-doc to facilitate later manual doc-builds, minor cleanup
677         * configure: regenerated
678
679         * doc/Makefile.in: quieten pdflatex, makeindex, and latex2html,
680           avoid races in parallel VPATH builds
681         * doc/clean.mk: remove .lyx files in the builddir for VPATH builds
682         * doc/sdccman.lyx: mention --without-ccache configure option
683
684 2008-09-01 Raphael Neider <rneider AT web.de>
685
686         * src/pic16/gen.c (pic16_derefPtr): handle CPOINTERs as well
687         * (genConstPointerGet): fix reading bitfields from __code space
688         * src/pic16/glue.c (pic16_printIvalBitFields): correctly mask
689           bitfield initializers (fix regression test bug1856409.c)
690         * (pic16_printIvalCharPtr,pic16_printIvalPtr): generalized to support
691           arbitrary sizes
692
693 2008-08-31 Raphael Neider <rneider AT web.de>
694
695         * src/pic16/gen.c (genAssign): removed useless compiler output
696         * (genPointerGet,genPointerSet,genCast),
697           src/pic16/glue.c (pic16_printGPointerType):
698           also handle PPOINTERs just to avoid spurious asserts
699         * (pic16_printIvalType,pic16_printIvalBitFields):
700           generalized to arbitrary type/bitfield sizes, allows compilation of
701           regression test bug-1981238.c
702         * (pic16_printIvalChar): fix regression test structflexarray.c
703         * (pic16_printIvalArray): avoid SIGSEGV on uninitialized strings
704           in initialized structs and fix #1843745
705         * (pic16_printIvalStruct): always output initializers for all fields,
706           even those not explicitly given, fixes zeropad.c regression test
707         * (pic16_printIvalUnion): fix union initializers (bug1426356.c,
708           #2073635, #1567098, and #1485812)
709         * src/pic16/main.c (_pic16_keywords): remove unsupported 'pdata'
710
711 2008-08-31 Borut Razem <borut.razem AT siol.net>
712
713         * support/regression/tests/bug-895992.c,
714           support/regression/tests/onebyte.c:
715           enabled pic16 regression testing since the bugs
716           1511794: pic16: regression test bug-895992.c fails
717           1444425: onebyte.c regression tes fails on pic16
718           are fixed, probably by fixing
719           2048464: PIC16: fix genUminus - addresses not.c regression test
720         * src/SDCCsymt.c, src/SDCCglue.c,
721           support/regression/tests/bug-1981238.c:
722           applied patch 2076664: fix #1981238 + SIGSEGV in SDCCGlue.c
723           thanks to RvS
724
725 2008-08-30 Borut Razem <borut.razem AT siol.net>
726
727         * support/cpp/libcpp/files.c: SDCPP synchronized with GCC CPP
728           release version 4.3.2
729
730 2008-08-24 Raphael Neider <rneider AT web.de>
731
732         * device/lib/pic16/configure, device/lib/pic16/configure.ac:
733           always use the sdcc from the current build tree (ignore $CC from
734           the environment, fixes compile farm builds)
735         * device/lib/Makefile.in: rename .a into .lib for compatibility,
736           remove more build products from install directory
737         * sdcc/src/pic16/main.c (_pic16_linkEdit,_pic16_finaliseOptions)
738         * sdcc/support/scripts/sdcc.nsi: revert to .lib extension for libs
739
740 2008-08-24 Borut Razem <borut.razem AT siol.net>
741
742         * src/SDCC.y: applied patch
743           2050245: Fix # 1963382
744           for bug
745           1963382: Listing File - C file comment is incorrect
746           thanks to RvS
747
748 2008-08-23 Borut Razem <borut.razem AT siol.net>
749
750         * src/pic16/gen.c: applied patch
751           2048464: PIC16: fix genUminus - addresses not.c regression test
752           thanks Mauro Giachero
753
754 2008-08-22 Borut Razem <borut.razem AT siol.net>
755
756         * device/lib/pic16/configure, device/lib/pic16/configure.ac,
757           src/pic16/main.c: allow spaces in gpasm and gplink paths
758
759 2008-08-15 Philipp Klaus Krause <pkk AT spth.de>
760
761         * src/z80/peep.c,
762         * src/z80/peeph-z80.def: minor peephole improvement
763
764 2008-08-15 Raphael Neider <rneider AT web.de>
765
766         * src/z80/gen.c (_vemit2): suppress compiler warning
767
768         * src/pic/*.[ch]: make proper use of header files and avoid
769           ad-hoc extern declarations, mark module-local helpers 'static',
770           removed dead/replaced code, no functional changes
771         * src/pic16/pcode.c: disentangled from pic14 backend
772
773 2008-08-14 Philipp Klaus Krause <pkk AT spth.de>
774
775         * src/z80/gen.c: fixed #2051348
776         * support/regression/tests/bug-2051348.c: regression test for #2051348
777
778 2008-08-10 Raphael Neider <rneider AT web.de>
779
780         * configure.in,
781         * Makefile.common.in: export PACKAGE for $docdir,
782           fixes #1957036, avoid some "underquoted definition" warnings
783         * configure: regenerated
784
785 2008-08-10 Raphael Neider <rneider AT web.de>
786
787         * device/lib/pic16/**: build pic16 library using autotools for
788           improved dependency tracking
789
790         * device/lib/Makefile.in,
791         * src/pic16/main.c,
792         * support/scripts/sdcc.nsi: adapt to changes in filenames (s/.lib/.a/)
793
794 2008-08-10 Raphael Neider <rneider AT web.de>
795
796         * src/pic/pcode.c (ReuseReg): do not overlay the registers used for
797           local variables if --nooverlay is given, workaround for #2023121
798
799 2008-08-08 Raphael Neider <rneider AT web.de>
800
801         * src/pic16/genarith.c (genAddLit): fix structure access (#1888004)
802
803 2008-08-08 Raphael Neider <rneider AT web.de>
804
805         * src/pic/pcoderegs.c,
806         * src/pic/pcode.c,
807         * src/pic16/pcode.c: replace own SAFE_snprintf with common SNPRINTF
808
809 2008-08-07 Borut Razem <borut.razem AT siol.net>
810
811         * src/SDCCval.c, src/SDCCmain.c, src/SDCC.lex,
812           device/lib/pic/Makefile.rules, device/lib/ds390/Makefile.in,
813           device/lib/ds400/Makefile.in, device/lib/hc08/Makefile.in,
814           support/cpp/libcpp/lex.c,  doc/sdccman.lyx:
815           applied modified patch 2038174: Add support for binary constants v2
816           thanks Mauro Giachero
817         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.3
818
819 2008-08-04 Raphael Neider <rneider AT web.de>
820
821         * doc/sdccman.lyx,
822         * src/pic16/device.h,
823         * src/pic16/glue.c,
824         * src/pic16/main.c: enable --optimize-goto by default
825
826         * device/lib/pic16/Makefile.common.in: suppress removed option
827
828         * src/pic16/gen.c,
829         * src/pic16/genutils.c: avoid too long relative branches (#2031890)
830
831 2008-07-30 Borut Razem <borut.razem AT siol.net>
832
833         * src/pic16/device.c, src/pic16/glue.c, src/pic16/pcode.c:
834           applied patch 22032433: PIC16: fix constant strings,
835           thanks Mauro Giachero
836
837 2008-07-29 Borut Razem <borut.razem AT siol.net>
838
839         * src/pic16/gen.c: applied patches:
840           2030306: [1/3] PIC16: fix failing rotate.c tests on 16-bit variables,
841           2030307: [2/3] PIC16: fix failing rotate.c tests for 32-bit var (1),
842           2030310: [3/3] PIC16: fix failing rotate.c tests for 32-bit var (2),
843           thanks Mauro Giachero
844
845 2008-07-13 Philipp Klaus Krause <pkk AT spth.de>
846
847         * src/port.h: Fixed typo in comment
848
849 2008-07-12 Philipp Klaus Krause <pkk AT spth.de>
850
851         * src/z80/mappings.i: Implemented RFE #1919415
852         * src/z80/peeph-z80.def: Implemented RFE #1919415, #1861376,
853           #1880202, #1914434, prepared for RFE #1703943
854
855 2008-07-12 Philipp Klaus Krause <pkk AT spth.de>
856
857         * src/z80/peeph.def,
858         * src/z80/peeph-z80.def,
859         * src/z80/peeph-gbz80.def: separate Z80 from GBZ80 peepholes in
860           preparation for Z80 peephole improvements
861
862 2008-06-21 Raphael Neider <rneider AT web.de>
863
864         * device/include/pic16/pic18f66j60.h,
865         * device/include/pic16/pic18f66j65.h,
866         * device/include/pic16/pic18f67j60.h,
867         * device/include/pic16/pic18f86j60.h,
868         * device/include/pic16/pic18f86j65.h,
869         * device/include/pic16/pic18f87j60.h,
870         * device/include/pic16/pic18f96j60.h,
871         * device/include/pic16/pic18f96j65.h,
872         * device/include/pic16/pic18f97j60.h,
873         * device/lib/pic16/libdev/pic18f66j60.c,
874         * device/lib/pic16/libdev/pic18f66j65.c,
875         * device/lib/pic16/libdev/pic18f67j60.c,
876         * device/lib/pic16/libdev/pic18f86j60.c,
877         * device/lib/pic16/libdev/pic18f86j65.c,
878         * device/lib/pic16/libdev/pic18f87j60.c,
879         * device/lib/pic16/libdev/pic18f96j60.c,
880         * device/lib/pic16/libdev/pic18f96j65.c,
881         * device/lib/pic16/libdev/pic18f97j60.c,
882         * device/include/pic16/pic16devices.txt,
883         * device/include/pic16/pic18fregs.h,
884         * device/lib/pic16/pics.all: added new devices
885
886         * device/include/pic16/adc.h,
887         * device/lib/pic16/libio/adc/adcbusy.c,
888         * device/lib/pic16/libio/adc/adcopen.c,
889         * device/lib/pic16/libio/adc/adcsetch.c,
890         * device/lib/pic16/libio/i2c/i2copen.c,
891         * device/lib/pic16/libio/usart/uopen.c: adapted to new devices,
892           all changes from a patch by Anton Strobl
893
894 2008-06-12 Borut Razem <borut.razem AT siol.net>
895
896         * sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/bp.cc,
897           sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
898           sim/ucsim/z80.src/z80cl.h, sim/ucsim/z80.src/z80.cc,
899           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
900           sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
901           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/uc390.cc,
902           sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/uc390cl.h,
903           sim/ucsim/avr.src/avrcl.h, sim/ucsim/avr.src/avr.cc:
904           fixed bug 1990586: s51 simulator, uc::disass() unimplemented
905           by applying the modified patch from Risto Huotari
906
907 2008-06-04 Maarten Brock <sourceforge.brock AT dse.nl>
908
909         * .version,
910         * doc/sdccman.lyx: bumped sdcc version to 2.8.2
911         * src/ds390/gen.c (aopPutUsesAcc, genAddrOf): fixed bug 1015185
912         * src/mcs51/gen.c (genNearPointerGet, genNearPointerSet): fixed bug 1938300
913         * support/regression/tests/bug1938300.c: new, added
914
915 2008-06-03 Maarten Brock <sourceforge.brock AT dse.nl>
916
917         * device/include/asm/ds390/features.h,
918         * device/include/asm/mcs51/features.h,
919         * device/include/mcs51/regc515c.h: inserted LGPL notice
920
921 2008-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
922
923         * device/lib/gbz80/div.s,
924         * device/lib/z80/div.s: fixed bug 1904314 by applying a modified part of
925           patch 1597883, Thanks Robert Ramey
926
927 2008-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
928
929         * src/SDCCast.c (createIvalType, createIvalStruct, createIvalArray,
930           createIvalCharPtr, createIvalPtr, createIval),
931         * src/SDCCval.h
932         * src/SDCCval.c (convertIListToConstList, list2expr): handle incomplete
933           initializers for local auto variables
934         * support/regression/tests/zeropad.c: added testcase for auto initializers
935
936 2008-05-26 Raphael Neider <rneider AT web.de>
937
938         * device/lib/pic16/startup/crt0.c,
939         * device/lib/pic16/startup/crt0i.c,
940         * device/lib/pic16/startup/crt0iz.c: clean up, make use of access bank
941           explicit, fixed curr_entry loop for >= 256 initializer records,
942           removed debug code (write to 0xf7e)
943
944 2008-05-25 Raphael Neider <rneider AT web.de>
945
946         * device/include/pic/pic16f627a.h,
947         * device/include/pic/pic16f628a.h,
948         * device/include/pic/pic16f648a.h: added missing ports
949
950 2008-05-20 Maarten Brock <sourceforge.brock AT dse.nl>
951
952         * device/include/float.h: added __INFINITY
953         * device/lib/_fsadd.c: handle overflows
954         * device/lib/_fsmul.c,
955         * device/lib/_fsdiv.c: use __INFINITY
956         * device/lib/_fseq.c,
957         * device/lib/_fsneq.c: handle -0.0
958         * sim/ucsim/s51.src/uc89c51r.cc,
959         * sim/ucsim/s51.src/uc89c51rcl.h: fixed bug 1385430
960         * sim/ucsim/sim.src/hwcl.h: */* confuses VC
961         * src/mcs51/gen.c (genSend): fixed bug with --xstack
962         * support/regression/ports/mcs51-xstack-auto/spec.mk: print floats
963         * support/regression/tests/snprintf.c: test bug with --xstack
964
965 2008-05-19  Philipp Klaus Krause <pkk AT spth.de>
966
967         * src/SDCCpeeph.c (callFuncByName):
968           Support nested parenthesis in peephole function arguments (#1967300)
969
970 2008-05-19 Raphael Neider <rneider AT web.de>
971
972         * src/pic16/gen.c (pic16_emitpLabel,pic16_emitpLabelFORCE):
973           fixed duplicate labels (#1911325)
974
975 2008-05-19 Raphael Neider <rneider AT web.de>
976
977         * src/regression/empty.c: suppress warning
978         * src/regression/pointer1.c: enabled index_by_pointer()
979         * src/regression/inline.c: now works for pic16 as well
980
981         * src/pic16/device.c: include dbuf declarations
982         * src/pic16/device.h: removed obsolete prototypes
983
984         * src/pic16/gen.c, src/pic16/gen.h: moved generic pointer tags
985         * src/pic16/glue.c: made purely local functions static,
986           (pic16_printGPointerType, pic16_printIvalCharPtr,
987           pic16_printIvalFuncPtr, pic16_printIvalPtr): fixed initialized
988           generic pointers' tags (#1961866)
989
990         * src/pic16/pcode.c (assignValnums): optimize literal assignments
991
992 2008-05-19 Borut Razem <borut.razem AT siol.net>
993
994         * support/scripts/sdcc.nsi: remove uninstall.exe after uninstallation,
995           fixed typo, uninstall include/pic16/pic16devices.txt
996
997 2008-05-18 Borut Razem <borut.razem AT siol.net>
998
999         * support/Utils/dbuf_string.[ch]: added dbuf_chomp(),
1000           the buffer is null terminated
1001         * src/device/pic16.c:
1002           applied modified patch 1965676: Patch for Win32 16 bit PIC
1003         * sdcc_vc_in.h: defined YY_NO_UNISTD_H
1004
1005 2008-05-16 Maarten Brock <sourceforge.brock AT dse.nl>
1006
1007         * src/SDCC.lex (check_type),
1008         * src/SDCC.y (type_specifier2 TYPE_NAME): fixed bug 1925942
1009         * as/hc08/clean.mk,
1010         * as/mcs51/clean.mk,
1011         * as/z80/clean.mk: also clean *.dep
1012         * device/lib/pic16/libsdcc/stack/Makefile,
1013         * sim/ucsim/libtool: removed as they are rebuild by configure
1014         * src/clean.mk: removed izt, so Makefile is not deleted for distclean
1015
1016 2008-05-13 Maarten Brock <sourceforge.brock AT dse.nl>
1017
1018         * src/SDCCast.c (fixupInline, createFunction): save currBlockno in
1019           fixupInline instead of createFunction to fix bug 1864577
1020           (inlineFindMaxBlockno): removed, use global blockNo
1021         * src/SDCCglobl.h: added blockNo
1022         * src/z80/peep.c,
1023         * src/z80/peep.h: modified properties
1024         * support/regression/tests/bug1864577.c: new, added
1025
1026 2008-05-07 Maarten Brock <sourceforge.brock AT dse.nl>
1027
1028         * as/mcs51/asdata.c,
1029         * as/mcs51/asm.h: added org_cnt
1030         * as/mcs51/asmain.c (main, asmbl): fixed bug 1957716, changed old K&R to ANSI
1031         * as/mcs51/asout.c: changed old K&R to ANSI
1032         * as/mcs51/Makefile.in: use common identifiers
1033         * as/hc08/asdata.c,
1034         * as/hc08/asexpr.c,
1035         * as/hc08/asm.h,
1036         * as/hc08/asmain.c,
1037         * as/hc08/asout.c,
1038         * as/hc08/Makefile.bcc,
1039         * as/hc08/Makefile.in: synchronized with as/mcs51/*
1040         * sdcc_vc_in.h: added define __func__
1041         * src/SDCCast.c (expandInlineFuncs): applied patch 1957148 to fix bug 1717305,
1042           Thanks Ruud van Silfhout
1043         * support/regression/tests/bug1717305.c: new, added
1044
1045 2008-05-05 Borut Razem <borut.razem AT siol.net>
1046
1047         * support/regression/Makefile.in,
1048           support/regression/ports/ds390/spec.mk,
1049           support/regression/ports/hc08/spec.mk,
1050           support/regression/ports/mcs51-common/spec.mk,
1051           support/regression/ports/pic14/spec.mk,
1052           support/regression/ports/pic16/spec.mk,
1053           support/regression/ports/ucz80/spec.mk,
1054           support/regression/ports/z80/spec.mk:
1055           added INC_DIR and LIBDIR paths
1056         * src/ds390/gen.c: removed duplicated selicolon
1057
1058 2008-05-04 Borut Razem <borut.razem AT siol.net>
1059
1060         * support/regression/Makefile.in,
1061           support/regression/fwk/lib/testfwk.c,
1062           support/regression/ports/ds390/spec.mk,
1063           support/regression/ports/hc08/spec.mk,
1064           support/regression/ports/mcs51-common/spec.mk,
1065           support/regression/ports/mcs51-large/spec.mk,
1066           support/regression/ports/mcs51-medium/spec.mk,
1067           support/regression/ports/mcs51-small/spec.mk,
1068           support/regression/ports/mcs51-stack-auto/spec.mk,
1069           support/regression/ports/mcs51-xstack-auto/spec.mk,
1070           support/regression/ports/pic14/spec.mk,
1071           support/regression/ports/pic16/spec.mk,
1072           support/regression/ports/ucz80/spec.mk:
1073           added possibility to define the sdcc binary directory SDCC_BIN_PATH
1074           used to run regeression tests
1075
1076 2008-05-01 Raphael Neider <rneider AT web.de>
1077
1078         * doc/sdccman.lyx, support/scripts/inc2h-pic16.pl: updated list of
1079           supported devices and instructions to add new ones
1080
1081 2008-05-01 Raphael Neider <rneider AT web.de>
1082
1083         * device/include/pic16/adc.h,
1084           device/lib/pic16/libio/adc/adcbusy.c,
1085           device/lib/pic16/libio/adc/adcopen.c,
1086           device/lib/pic16/libio/adc/adcsetch.c: support old 18f242 and new
1087           18f2455 style ADC devices, based on patch #1776197
1088         * device/lib/pic16/libio/adc/adcclose.c,
1089           device/lib/pic16/libio/adc/adcconv.c,
1090           device/lib/pic16/libio/adc/adcread.c: cosmetic changes
1091         * device/include/pic16/{pic18f2331.h,pic18f2431.h},
1092           device/lib/pic16/libdev/{pic18f2331.c,pic18f2431.c}: reuse 18f4331
1093         * device/include/pic16/pic18f4431.h,
1094           device/lib/pic16/libdev/pic18f4431.c: remove outdated comments
1095         * device/lib/pic16/libio/adc.ignore: forbid unhandled devices
1096
1097 2008-05-01 Raphael Neider <rneider AT web.de>
1098
1099         * src/pic16/device.h: removed unused field PIC16_device.sfrRange,
1100           moved xinst flag into pic16_options_t
1101         * src/pic16/device.c (default_device, pic16_list_devices,
1102           pic16_find_device): removed references to sfrrange
1103         * src/pic16/gen.c (genFunction),
1104           src/pic16/glue.c (pic16initialComments),
1105           src/pic16/main.c (pic16_optionsTable),
1106           src/pic16/ralloc.c (newReg, pic16_writeUsedRegs): updated references
1107           to xinst
1108         * device/include/pic16/pic16devices.txt: removed sfrrange lines
1109
1110 2008-04-29 Raphael Neider <rneider AT web.de>
1111
1112         * src/pic16/devices.inc,
1113           device/include/pic16/pic16devices.txt: replaced compiled-in list
1114           of devices with a variant parsed at runtime
1115         * src/pic16/device.c: added support for parsing pic16devices.txt,
1116           clean up
1117         * src/pic16/device.h: removed (now) unused fields from PIC_device
1118         * src/pic16/main.c: removed #pragma maxram,
1119           (_pic16_initPaths): removed bogus generation of search paths,
1120           setup the port proper only after the search paths (for
1121           pic16devices.txt) are set up,
1122           (_pic16_finaliseOptions): moved processor dependant code here
1123           from _pic16_initPaths(), clean up
1124         * src/pic16/ralloc.c (pic16_init_stack),
1125         * src/pic16/ralloc.h,
1126         * src/pic16/pcode.c: clean up
1127         * device/include/Makefile.in,
1128           support/scripts/sdcc.nsi: also install/package pic16devices.txt
1129         * support/scripts/inc2h-pic16.pl: updated instructions
1130
1131 2008-04-29 Raphael Neider <rneider AT web.de>
1132
1133         * device/include/pic16/{pic18f2480.h, pic18f2580.h, pic18f4423.h,
1134           pic18f4480.h, pic18f4523.h, pic18f4580.h, pic18f6585.h, pic18f8585.h},
1135           device/lib/pic16/libdev/{pic18f2480.c, pic18f2580.c, pic18f4423.c,
1136           pic18f4480.c, pic18f4523.c, pic18f4580.c, pic18f6585.c, pic18f8585.c}:
1137           added missing family members and 18f2480/2580/4480/4580 family
1138         * device/include/pic16/{pic18f2423.h, pic18f2523.h}: use 18f4523.h
1139         * device/include/pic16/pic18f2525.h: use 18f4620.h
1140         * device/include/pic16/pic18f6680.h: use 18f8680.h
1141         * device/include/pic16/pic18fregs.h,
1142           device/lib/pic16/pics.all,
1143           src/pic16/devices.inc: add new devices
1144         * device/lib/pic16/libdev/{pic18f2423.c, pic18f2523.c}: use 18f4523.c
1145         * device/lib/pic16/libdev/pic18f2525.c: use 18f4620.c
1146         * device/lib/pic16/libdev/pic18f6680.c: uso 18f8680.c
1147         * device/lib/pic16/libio/{adc.ignore, i2c.ignore, usart.ignore}:
1148           prevent attempting to build the libio for some new devices
1149
1150 2008-04-29 Raphael Neider <rneider AT web.de>
1151
1152         * debugger/mcs51/Makefile.in: fixed paths to sources
1153
1154 2008-04-25 Borut Razem <borut.razem AT siol.net>
1155
1156         * as/link/lklibr.c: moved from as/link/z80/lklibr.c
1157         * as/link/hc08/lklibr.c, as/link/mcs51/lklibr.c: deleted
1158         * as/link/hc08/Makefile.bcc, as/link/hc08/Makefile.in,
1159         * as/link/hc08/link_hc08.dsp, as/link/mcs51/Makefile.bcc,
1160           as/link/mcs51/Makefile.in, as/link/mcs51/aslink.dsp,
1161           as/link/z80/Makefile.in, as/link/z80/linkgbz80.dsp,
1162           as/link/z80/linkz80.dsp: lklibr.c moved
1163         * doc/INSTALL.txt: binary archives in bz2 format
1164         * support/cpp/auto-host_vc_in.h: CPP2 replaced with CPP
1165
1166 2008-04-23 Maarten Brock <sourceforge.brock AT dse.nl>
1167
1168         * src/SDCCglue.c (printIvalType, printIvalBitFields): fixed bug 1856409
1169         * support/regression/tests/bug1856409.c: new, added
1170
1171 2008-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
1172
1173         * src/z80/peep.c,
1174         * src/mcs51/peep.c: Use werror for error messages.
1175         * src/SDCCicode.c (geniCodeConditional),
1176         * src/SDCCsymt.c (structElemType): fixed bug 1839321
1177         * src/z80/Makefile.bcc,
1178         * src/z80/z80.dsp: added src/z80/peep.c/h
1179         * support/regression/tests/bug1839321.c: new, added
1180
1181 2008-04-20 Raphael Neider <rneider AT web.de>
1182
1183         * device/include/pic16/pic18f2455.h: added bitfields for port C
1184
1185 2008-04-20 Philipp Klaus Krause <pkk AT spth.de>
1186
1187         * src/z80/peep.c: Use werror for error messages.
1188
1189 2008-04-19 Philipp Klaus Krause <pkk AT spth.de>
1190
1191         * src/z80/peep.h (declaration of notUsed()),
1192         * src/z80/main.c (enabled notUsed() for z80 port, documented z80_port
1193           struct),
1194         * src/z80/z80.h (added dependency on peep.h),
1195         * src/z80/peep.c (definition of notUsed()): Implemented RFE #1880202
1196           for Z80.
1197
1198 2008-04-19 Philipp Klaus Krause <pkk AT spth.de>
1199
1200         * src/SDCCpeeph.c (added support for notUsed()),
1201         * src/mcs51/main.c (added dependency on peep.h, documented mcs51_port
1202           struct),
1203         * src/port.h (removed dependency on mcs51/peep.h, added declaration
1204           for notUsed()): Implemented generic (that is not port-specific) part
1205           of RFE #1880202.
1206
1207 2008-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
1208
1209         * as/link/mcs51/lkmem.c (summary2): fixed bug 1796077
1210         * device/lib/libsdcc.lib,
1211         * device/lib/Makefile.in,
1212         * support/regression/ports/mcs51-xstack-auto/spec.mk,
1213         * device/lib/calloc.c: renamed to _calloc.c
1214         * device/lib/free.c: renamed to _free.c
1215         * device/lib/malloc.c: renamed to _malloc.c
1216         * device/lib/realloc.c: renamed to _realloc.c
1217         * src/ds390/gen.c (aopGet, aopPut, genPlusBits, genDataPointerSet,
1218           genNearPointerSet, genPagedPointerSet): synchronized with mcs51/gen.c
1219         * src/ds390/gen.c (popForBranch, genIfxJump, genCmp, genCmpEq, ifxForOp,
1220           genAnd, genOr, genXor, genIfx, gen390Code): fixed bug 1509084
1221         * src/mcs51/gen.c (popForBranch, genIfxJump, genCmp, genCmpEq,
1222           ifxForOp, genAnd, genOr, genXor, genNearPointerGet,
1223           genPagedPointerGet, genFarPointerGet, genCodePointerGet,
1224           genGenPointerGet, genIfx, gen51Code): fixed bug 1509084
1225         * src/ds390/gen.c,
1226         * src/mcs51/gen.c: throughout cosmetic changes for syncing both
1227         * src/SDCCsymt.h: updated IS_OP_RUONLY, IS_OP_ACCUSE
1228         * support/regression/tests/bug1509084.c: new, added
1229
1230 2008-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
1231
1232         * device/include/mcs51/cc2510fx.h: added _XPAGE
1233         * device/include/mcs51/compiler.h: cosmetic changes
1234
1235 2008-03-31 Maarten Brock <sourceforge.brock AT dse.nl>
1236
1237         * sdcc.dsw: adapted for moved cpp2, added dependency for as_z80 on
1238           config
1239
1240 2008-03-31 Borut Razem <borut.razem AT siol.net>
1241
1242         * support/cpp2 renamed to support/cpp
1243         * support/cpp2/libiberty/filenames.h, support/cpp2/libiberty/hex.c,
1244           support/cpp2/libiberty/splay-tree.c,
1245           support/cpp2/libiberty/splay-tree.h, support/cpp2/libcpp/macro.c,
1246           support/cpp2/libcpp/directives.c,
1247           support/cpp2/libcpp/include/cpplib.h,
1248           support/cpp2/libcpp/include/symtab.h,
1249           support/cpp2/libcpp/include/line-map.h,
1250           support/cpp2/libcpp/line-map.c, support/cpp2/libcpp/files.c,
1251           support/cpp2/libcpp/init.c, support/cpp2/libcpp/traditional.c,
1252           support/cpp2/libcpp/expr.c, support/cpp2/libcpp/internal.h,
1253           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/system.h,
1254           support/cpp2/libcpp/charset.c: SDCPP synchronized with GCC CPP
1255           release version 4.3.0
1256         * configure.in, configure, Makefile.in, Makefile.bcc:
1257           adapted for moved cpp2
1258
1259 2008-03-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1260
1261         * device/include/hc08/mc68hc908jkjl.h: committed fix for bug #1929739,
1262           thanks Alejandro Pustowka <alejo_pustowka AT yahoo.com.mx>
1263
1264 2008-03-30 Maarten Brock <sourceforge.brock AT dse.nl>
1265
1266         * src/SDCCloop.c (loopInvariants): applied fix for bug 1717943, thanks
1267           Robert Larice
1268         * support/regression/tests/bug1717943.c: new, added
1269
1270 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
1271
1272         * src/z80/gen.c (assignResultValue): Reverted reversal of order of
1273           bytewise return value assignments introduced in last commit.
1274
1275 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
1276
1277         * src/z80/gen.c (emitDebug, assignResultValue, genPlus, genMinus,
1278           genMult, genJumpTab):
1279           Use 16-bit instructions for addition in some additional cases,
1280           implemented RFEs #1914251, #1914245, #1922090, #1921382, #1918323.
1281
1282 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
1283
1284         * src/z80/ralloc.c (serialRegAssign, allocReg, tryAllocatingRegPair):
1285           Implemented RFE #1921450, changed some debug messages.
1286
1287 2008-03-30 Borut Razem <borut.razem AT siol.net>
1288
1289         * Small Device C Compiler 2.8.0 released
1290         * .version, doc/sdccman.lyx: changed sdcc version to 2.8.1
1291         * support/scripts/sdcc.nsi: added finish page; this version
1292           was used for 2.8.0 release
1293         * doc/knownbugs.html: removed; magically generated by the build
1294           process using gen_known_bugs.pl from now on
1295
1296 2008-03-23 Borut Razem <borut.razem AT siol.net>
1297
1298         * src/pic/gen.h: Q&D solution for the bug, found by Jim Paris
1299           and reverted it, since it was already fixed by Raphael ;-)
1300         * doc/knownbugs.html: updated for RC2
1301
1302 2008-03-22 Raphael Neider <rneider AT web.de>
1303
1304         * src/SDCCicode.c (getPtrType): avoid unnecessary extra assignments
1305           for PIC16 targets
1306
1307 2008-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
1308
1309         * src/mcs51/gen.c (adjustArithmeticResult): fixed bug 1839299
1310         * support/regression/tests/bug1839277.c: added related testBug1839299
1311
1312 2008-03-21 Maarten Brock <sourceforge.brock AT dse.nl>
1313
1314         * src/ds390/gen.c (opIsGptr, adjustArithmeticResult, genAddrOf, genAssign),
1315         * src/mcs51/gen.c (opIsGptr, adjustArithmeticResult, genAddrOf, genAssign):
1316           fixed bug 1839277
1317         * src/mcs51/gen.c: throughout only output hex constants
1318         * src/SDCCicode.c (getPtrType, geniCodeCast): fixed code size regression
1319         * support/regression/tests/bug1839277.c: new, added
1320
1321 2008-03-21 Philipp Klaus Krause <pkk AT spth.de>
1322
1323         * src/z80/ralloc.c (callFuncByName): Used // instead of /**/ to fix
1324           compilation warning about nested comments.
1325
1326 2008-03-20 Maarten Brock <sourceforge.brock AT dse.nl>
1327
1328         * src/SDCCsymt.c (comparePtrType): fixed bug 1921073
1329         * support/regression/tests/bug1921073.c: new, added
1330
1331 2008-03-17 Philipp Klaus Krause <pkk AT spth.de>
1332
1333         * src/z80/SDCCpeeph.c.c (callFuncByName):
1334           Commented function parameters.
1335
1336 2008-03-17 Philipp Klaus Krause <pkk AT spth.de>
1337
1338         * src/z80/ralloc.c (packRegsForAccUse2):
1339           disabled a broken accumulator packing optimization (fixed #1292721).
1340         * support/regression/tests/bug-1292721: Regression test for #1292721.
1341
1342 2008-03-16 Raphael Neider <rneider AT web.de>
1343
1344         * src/pic/gen.c (SetIrp,genNearPointerGet,genNearPointerSet):
1345           fixed code bloat regression using a variant of patch #1915618
1346
1347 2008-03-16 Borut Razem <borut.razem AT siol.net>
1348
1349         * support/scripts/sdcc.nsi: added section debugging macros, added SDCC
1350           icon, changed startup menu for release distribution, code cleaning,
1351           create url files instead links in startup menu
1352
1353 2008-03-16 Maarten Brock <sourceforge.brock AT dse.nl>
1354
1355         * src/SDCCcse.c (algebraicOpts): fixed bug 1579949
1356         * support/regression/tests/bug1579949.c: new, added
1357
1358 2008-03-14 Paul Stoffregen <paul AT pjrc.com>
1359
1360         * device/lib/printf_fast.c: fixed bug 1255403
1361
1362 2008-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
1363
1364         * doc/sdccman.lyx: enhanced paragraph about bankswitching for mcs51
1365         * src/cdbFile.c (cdbWriteBasicSymbol): fixed bug 1909409 for locals
1366
1367 2008-03-14 Borut Razem <borut.razem AT siol.net>
1368
1369         * as/doc/asmlnk.doc, as/doc/asxhtm.html: updated link-xx and aslink
1370           command line options
1371         * as/link/hc08/lkmain.c: converted tabs to spaces so that the usage
1372           is correctly displayed
1373         * as/link/z80/lkmain.c: usage line commented out
1374
1375 2008-03-13 Borut Razem <borut.razem AT siol.net>
1376
1377         * doc/sdccman.lyx: corrected to be able to convert to PDF,
1378           updated the list pf supported pic14 devices
1379
1380 2008-03-12 Maarten Brock <sourceforge.brock AT dse.nl>
1381
1382         * doc/sdccman.lyx: added paragraph about bankswitching for mcs51
1383
1384 2008-03-12 Borut Razem <borut.razem AT siol.net>
1385
1386         * as/doc/asmlnk.doc, as/doc/asxhtm.html: updated command line options,
1387           fixed documentation request #1718191
1388         * as/hc80/asmain.c, as/mcs51/asmain.c: added option -c to usage
1389         * doc/sdccman.lyx: added description of --no-std-crt0 gbz80
1390           command line option
1391
1392 2008-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
1393
1394         * src/SDCCast.c (isConformingBody): fixed bug 1505811, thanks Robert Larice
1395         * support/regression/tests/bug1505811.c: new, added
1396
1397 2008-03-09 Raphael Neider <rneider AT web.de>
1398
1399         * device/include/pic16/pic18f2620.h,
1400         * device/include/pic16/pic18f4620.h,
1401         * device/lib/pic16/libdev/pic18f2620.c,
1402         * device/lib/pic16/libdev/pic18f4525.c,
1403         * device/lib/pic16/libdev/pic18f4620.c: merged 18f2525/2620/4525/4620
1404           family to consistently use pic18f4620.[ch], fixes #1832562
1405
1406 2008-03-09 Borut Razem <borut.razem AT siol.net>
1407
1408         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
1409           changed sdcc version to 2.8.0
1410         * knownbugs.html: regenerated
1411         * support/scripts/gen_known_bugs.pl: added number of open bugs
1412
1413 2008-03-09 Raphael Neider <rneider AT web.de>
1414
1415         * src/pic16/gen.c (pic16_mov2w_volatile): NEW, read volatile operands,
1416           (genOr): read volatile operand even if the result is known,
1417           closes #1511838
1418           (genOr,genXor): removed unused legacy code,
1419           (genDummyRead): use pic16_mov2w_volatile()
1420
1421 2008-03-08 Borut Razem <borut.razem AT siol.net>
1422
1423         * src/SDCCglue.c: fixed bug #1864582: multiple definition of char
1424           cons w. --model-large
1425         * support/regression/staticinit.c: added regression test for bug
1426           #1864582
1427
1428 2008-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
1429
1430         * src/ds390/gen.c (pushSide, genPcall),
1431         * src/hc08/gen.c (pushSide, genPcall): synchronized with mcs51
1432         * src/mcs51/gen.c: cosmetic changes
1433         * support/regression/fwk/include/testfwk.h: added macro reentrant
1434         * support/regression/tests/bug1908493.c: new, added
1435
1436 2008-03-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1437
1438         * src/SDCCdebug.c:, as/link/lkaomf51.c: Fixed bug 1909409: Pdata in OMF file
1439
1440 2008-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
1441
1442         * src/mcs51/gen.c (pushSide, genPcall): fixed bug 1908493
1443         * src/SDCCmain.c (preProcess): removed -DSDCC_PARMS_IN_BANK1 because it is
1444           already set in ds390/main.c and mcs51/main.c
1445
1446 2008-03-07 Raphael Neider <rneider AT web.de>
1447
1448         * src/regression/init0.c: new test for initialized arrays of function
1449           pointers
1450         * src/regression/Makefile: made a bit more flexible, added init0.c
1451         * src/pic/glue.c (emitIvals): hacky fix for initializing from function
1452           pointers, closes #1427663
1453
1454 2008-03-05 Borut Razem <borut.razem AT siol.net>
1455
1456         * dos/sdccman.lyx: docummented predefined macros SDCC_REVISION,
1457           SDCC_PARMS_IN_BANK1, SDCC_FLOAT_REENT and SDCC_INT_LONG_REENT
1458
1459 2008-03-05 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1460
1461         * support/librarian/sdcclib.c:Added feature request 1908061:
1462           Synchronise sdcclib commands with ar.
1463
1464 2008-03-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1465
1466         * src/SDCCmain.c: added predefined macros SDCC_REVISION (RFE #1907229),
1467           and (depending on corresponding compiler option) SDCC_PARMS_IN_BANK1,
1468           SDCC_FLOAT_REENT, SDCC_INT_LONG_REENT
1469         * device/include/mcs51/compiler.h: removed umlauts, added double
1470           underscore
1471
1472 2008-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
1473
1474         * src/SDCCptropt.c (ptrPseudoSymConvert): fixed bug 1536762
1475         * support/regression/tests/bug1536762.c: new, added
1476         * src/SDCCutil.c,
1477         * src/SDCCutil.h: added getBuildDate()
1478         * src/SDCCmain.c (printVersionInfo),
1479         * src/SDCCglue.c (initialComments): use getBuildDate() instead of
1480           __DATE__
1481         * src/*/ralloc.c: removed IS_OP_RUONLY macro
1482         * src/ds390/ralloc.c (packRegisters),
1483         * src/mcs51/ralloc.c (packRegisters),
1484         * src/z80/ralloc.c (packRegisters): applied fix for bug 1618050, thanks
1485           Robert Larice
1486         * support/regression/tests/bug1618050.c: new, added
1487         * src/SDCCsymt.h: fixed typo in DECLSPEC2TXT
1488         * support/regression/fwk/include/testfwk.h,
1489         * support/regression/tests/bug1838000.c: moved _AUTOMEM and _STATMEM to
1490           testfwk.h
1491
1492 2008-03-04 Raphael Neider <rneider AT web.de>
1493
1494         * src/pic/gen.c: removed unused prototypes, prevent internal errors
1495           on accessing OP_SYM_TYPE(op)
1496         * src/pic/gen.h: removed unused prototype of genMinusDec()
1497         * src/pic/genarith.c (genMinus): cosmetic changes, rewritten to
1498           fix #1876953 (invalid subtraction code), removed unused code
1499
1500 2008-03-03 Raphael Neider <rneider AT web.de>
1501
1502         * src/pic/gen.c,
1503         * src/pic/gen.h,
1504         * src/pic/genarith.c,
1505         * src/pic/ralloc.c,
1506         * src/pic/ralloc.h: removed AOP_R0, AOP_R1, AOP_DPTR, AOP_DPTR2,
1507           AOP_ACC, and *_IDX and adjusted code, removed unused legacy code
1508
1509 2008-03-03 Raphael Neider <rneider AT web.de>
1510
1511         * src/pic/device.c (find_device): search user-specified paths first
1512           for pic14devices.txt, fixes #1900827
1513
1514 2008-03-02 Borut Razem <borut.razem AT siol.net>
1515
1516         * support/scripts/sdcc.nsi: fixed bug in IsNT, LogicLib-isation of
1517           AddToPath and RemoveFromPath
1518
1519 2008-03-01 Borut Razem <borut.razem AT siol.net>
1520
1521         * support/scripts/sdcc.nsi: reverted MULTIUSER page since it didn't
1522           work correctly, added debugging support if -DSDCC.DEBUG command line
1523           option is defined
1524
1525 2008-02-28 Borut Razem <borut.razem AT siol.net>
1526
1527         * doc/sdccman.lyx: cosmetic changes
1528
1529 2008-02-28 Maarten Brock <sourceforge.brock AT dse.nl>
1530
1531         * src/mcs51/ralloc.c (fillGaps): fixed bug 1839671
1532         * doc/sdccman.lyx: fixed unmeant removal of spaces
1533
1534 2008-02-27 Borut Razem <borut.razem AT siol.net>
1535
1536         * support/scripts/sdcc.nsi: corrected installation directory for
1537           current user installation mode
1538         * doc/README.txt: added Philipp Klaus Krause to the developers list
1539
1540 2008-02-27 Maarten Brock <sourceforge.brock AT dse.nl>
1541
1542         * src/mcs51/gen.c (genUnpackBits): don't generate ifxJump, instead
1543           return ifx condition
1544           (genNearPointerGet, genPagedPointerGet, genFarPointerGet,
1545           genCodePointerGet, genGenPointerGet): cleanup aop before generating
1546             ifxJump to fix bug 1838000
1547         * src/SDCCsymt.c (aggregateToPointer): fix problem for xstack
1548         * support/regression/tests/bug1838000.c: new, added
1549         * device/include/mcs51/cc1110.h: new, added, thanks to Pravin Angolkar
1550
1551 2008-02-26 Borut Razem <borut.razem AT siol.net>
1552
1553         * src/SDCCast.c, doc/sdccman.lyx: fixed RFE #1901171: inerger promotion
1554           of casted varargs
1555         * support/scripts/sdcc.nsi: added MULTIUSER page,
1556           NSIS upgraded to version 2.35
1557
1558 2008-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
1559
1560         * src/mcs51/ralloc.c (isSpiltOnStack): fixed bug 1565152
1561         * support/regression/tests/bug1565152.c: new, added
1562
1563 2008-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
1564
1565         * src/mcs51/gen.c (genPagedPointerSet): fixed bug 1670148
1566         * support/regression/ports/mcs51-xstack-auto/spec.mk: added expf.c
1567         * support/regression/tests/bug1670148.c: new, added
1568
1569 2008-02-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1570
1571         * device/include/mcs51/at89c51ed2.h: fixed bug 1901469.
1572
1573 2008-02-24 Borut Razem <borut.razem AT siol.net>
1574
1575         * src/SDCCast.c, src/SDCCast.h: fixed bug #1874922: explicit typecast
1576           is ineffective for unsigned char parameter
1577
1578 2008-02-24 Maarten Brock <sourceforge.brock AT dse.nl>
1579
1580         * src/SDCCast.c (expandInlineFuncs): fixed bug 1875869
1581         * src/SDCCglue.c (printIvalBitFields): fixed bug 1806631
1582         * support/regression/tests/bitopcse.c: removed hc08 exception, see testfwk.h
1583         * support/Util/MySystem.c (my_system): output errorcode when verbose
1584
1585 2008-02-22 Philipp Klaus Krause <pkk AT spth.de>
1586
1587         * src/z80/gen.c (genMult): Rewrote 8-bit multiplication by constant,
1588           implements #1898231
1589
1590 2008-02-22 Philipp Klaus Krause <pkk AT spth.de>
1591
1592         * device/lib/z80/mul.s: Rewrote __muluchar_rrx_s, to improve 8-bit mult.,
1593           implements #1896290
1594
1595 2008-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
1596
1597         * src/SDCCast.c (createIvalStruct): fixed bug 1466761
1598
1599 2008-02-21 Borut Razem <borut.razem AT siol.net>
1600
1601         * support/regression/Makefile.in,
1602           support/regression/ports/ds390/spec.mk,
1603           support/regression/ports/hc08/spec.mk,
1604           support/regression/ports/mcs51-common/spec.mk,
1605           support/regression/ports/pic14/spec.mk,
1606           support/regression/ports/pic16/spec.mk,
1607           support/regression/ports/ucz80/spec.mk,
1608           support/regression/ports/xa51/spec.mk:
1609           added CFLAGS when compiling timeout
1610
1611 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
1612
1613         * support/regression/tests/bugs-1596270-1736867.c: Regression test for
1614           #1596270, #1736867
1615
1616 2008-02-20 Maarten Brock <sourceforge.brock AT dse.nl>
1617
1618         * src/SDCClrange.c (findPrevUse): fixed bug 1888147
1619         * support/regression/tests/bug1888147.c: new, added
1620
1621 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
1622
1623         * src/z80/gen.c: fixed bugs #1596270, #1736867
1624
1625 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
1626
1627         * src/z80/gen.c: fixed bug in register pair loading when swapping register
1628           contents, mostly fixes #1596270
1629
1630 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
1631
1632         * src/z80/peeph.def,
1633         * src/z80/peeph-z80.def: moved peephole that breaks gbz80 to z80-specific
1634           peepholes, fixes #1806565
1635
1636 2008-02-20 Maarten Brock <sourceforge.brock AT dse.nl>
1637
1638         * src/SDCCpeeph.c (operandBaseName): added check for @Ri
1639         * src/mcs51/peeph.def (rule 177.c): added operandsNotRelated(%1 %3)
1640           fixes bug 1739475, thanks Robert Larice
1641           (rule 271): new, added
1642
1643 2008-02-18 Borut Razem <borut.razem AT siol.net>
1644
1645         * sim/ucsim/s51.src/Makefile.in: fixed error made in previous commit
1646
1647 2008-02-17 Maarten Brock <sourceforge.brock AT dse.nl>
1648
1649         * src/SDCCmain.c (linkEdit): emit -z when using --debug for z80
1650
1651 2008-02-17 Raphael Neider <rneider AT web.de>
1652
1653         * src/pic16/genarith.c,
1654         * src/pic16/gen.c,
1655         * src/pic16/gen.h,
1656         * src/pic16/genutils.c: removed unused legacy code,
1657           removed unused fields from struct asmop and struct _G
1658
1659 2008-02-17 Raphael Neider <rneider AT web.de>
1660
1661         * src/pic16/gen.c (AccRsh): cosmetic changes,
1662           (shiftR1Left2ResultSigned,shiftR1Left2Result,shiftL1Left2Result,
1663           genRightShiftLiteral): fixed to work with SFRs as result by
1664           assigning only once to result,
1665           removed a lot of unused/excluded code fragments
1666
1667 2008-02-17 Raphael Neider <rneider AT web.de>
1668
1669         * device/include/pic/pic16f88.h,
1670         * device/include/pic/pic16f886.h,
1671         * device/include/pic/pic16f887.h: added TRISA6 and TRISA7
1672
1673 2008-02-17 Borut Razem <borut.razem AT siol.net>
1674
1675         * src/z80/peeph.def: applied patch
1676           #1893626: Optimize tail calls on Z80, thanks to Philipp Krause
1677         * src/z80/gen.c, src/z80/peeph.def: applied patch
1678           #1893510: Improve logical left shift on Z80, thanks to Philipp Krause
1679         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
1680           sim/ucsim/s51.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
1681           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
1682           sim/ucsim/main_in.mk: renamed libutil.a to libucsimutil.a in order to
1683           enable compilation on Mac OS X 10.5 (Leopard) and XCode v3.0
1684
1685 2008-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
1686
1687         * as/link/mcs51/aslink.dsp: removed SDK define
1688         * as/link/z80/clean.mk: brought in sync with other ports
1689         * as/link/z80/lklibr.c (SdccLib, fndsym): handle the dflag here too
1690         * as/hc08/Makefile.bcc,
1691         * as/mcs51/Makefile.bcc,
1692         * as/z80/Makefile.bcc: noice.c was moved to as/asxxsrc/
1693         * src/z80/main.c (_setValues): use the now capitalized -Z,
1694           (z80_port, gbz80_port): generate debug information when asked
1695
1696 2008-02-16 Borut Razem <borut.razem AT siol.net>
1697
1698         * as/z80/asmain.c, as/z80/asm.h, as/z80/asdata.c,
1699           as/link/z80/lkmain.c, as/z80/as_gbz80.dsp, as/z80/as_z80.dsp,
1700           as/z80/Makefile.in. as/z80/Makefile.bcc:
1701           applied patch #1893393: patch for as-z80 and link-z80 to generate
1702           cdb, thanks to Armin Diehl
1703         * as/*/asnoice.c, as/hc08/as_hc08.dsp, as/hc08/Makefile.in,
1704           as/mcs51/asx8051.dsp, as/mcs51/Makefile.in:
1705           asnoice.c moved to as/asxxsrc/asnoice.c
1706         * src/z80/peeph-gbz80.def: applied patch
1707           #1880235: Z80 return peephole, thanks to Philipp Krause
1708
1709 2008-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
1710
1711         * .version,
1712         * doc/sdccman.lyx: bumped version to 2.7.5
1713         * src/SDCCsymt.c (compareType, comparePtrType): fixed bug 1281583
1714
1715 2008-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
1716
1717         * device/include/pic16/stdlib.h,
1718         * device/lib/pic16/libc/stdlib/ltoa.c,
1719         * device/lib/pic16/libc/stdio/vfprintf.c: ascii strings are char*
1720
1721 2008-02-13 Borut Razem <borut.razem AT siol.net>
1722
1723         * src/SDCCmain.c, src/SDCCglue.c: fixed --c1mode
1724         * src/pic16/glue.c, src/SDCCast.c, src/SDCCast.h, src/SDCCBBlock.c,
1725           src/SDCCcse.c, src/SDCCglue.c, src/SDCCicode.c, src/SDCCloop.c,
1726           src/SDCCopt.c,  src/SDCCval.c:
1727           fixed bug #1890273: SDCC Warning 154 shows wrong filename
1728
1729 2008-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
1730
1731         * src/SDCCsymt.c (compareType): fixed bug 1309013
1732
1733 2008-02-09 Borut Razem <borut.razem AT siol.net>
1734
1735         * src/SDCCval.c, src/SDCCval.h:
1736           code cleaning, added function constChrVal()
1737         * src/SDCCglue.c, src/pic/glue.c, src/pic16/glue.c, src/SDCCast.c, src/SDCC.y:
1738           call constChrVal() instead constVal()
1739
1740 2008-02-01 Maarten Brock <sourceforge.brock AT dse.nl>
1741
1742         * src/SDCCast.c (resolveSymbols): added reentrancy check for parameters
1743           of function pointer
1744         * src/SDCCerr.h,
1745         * src/SDCCerr.c: changed warning W_NONRENT_ARGS to error E_NONRENT_ARGS
1746         * support/regression/tests/absolute.c: added TestStruct TestVar (see also
1747           bug 1859853)
1748
1749 2008-02-01 Raphael Neider <rneider AT web.de>
1750
1751         * device/include/pic/pic16f886.h,
1752         * device/include/pic/pic16f887.h: added RA6 and RA7
1753
1754 2008-01-24 Raphael Neider <rneider AT web.de>
1755
1756         * device/include/pic/pic16f88.h: added RA6 and RA7
1757         * device/lib/pic/libdev/disabled_pic16f886.c,
1758         * device/lib/pic/libdev/disabled_pic16f887.c: renamed and enabled
1759
1760         * src/pic16/devices.inc,
1761         * device/include/pic16/pic18f2423.h,
1762         * device/include/pic16/pic18f2523.h,
1763         * device/include/pic16/pic18fregs.h,
1764         * device/lib/pic16/pics.all
1765         * device/lib/pic16/libdev/pic18f2423.c,
1766         * device/lib/pic16/libdev/pic18f2523.c: added 18f2423 and 18f2523
1767         * device/lib/pic16/libio/i2c.ignore,
1768         * device/lib/pic16/libio/usart.ignore,
1769         * device/lib/pic16/libio/adc.ignore: ignore new devices
1770
1771 2008-01-23 Maarten Brock <sourceforge.brock AT dse.nl>
1772
1773         * src/SDCCast.c (createRMW): fixed bug 1582651
1774
1775 2008-01-20 Borut Razem <borut.razem AT siol.net>
1776
1777         * src/SDCCcse.c: partially fixed enhancement request
1778           #1793872 - multiply by -1 not collapsed
1779         * support/regression/tests/arithcsi.c: added regression test
1780
1781 2008-01-19 Maarten Brock <sourceforge.brock AT dse.nl>
1782
1783         * as/mcs51/asx8051.dsp: removed define SDK
1784         * as/mcs51/i51mch.c (machine): fixed bug 1865114
1785         * device/include/asm/ds390/features.h: fixed bug with ds390 & stack-auto
1786         * as/link/lklex.c,
1787         * as/link/mcs51/lkmain.c: used LKDIRSEP, LKDIRSEPSTR and LKOBJEXT,
1788           cosmetic changes, brought more in sync, changed old K&R to ANSI
1789
1790 2008-01-13 Borut Razem <borut.razem AT siol.net>
1791
1792         * support/scripts/sdcc.nsi: added Uninstall/reinstall page, ...
1793         * src/SDCCicode.c: fixed bug #1870216 - Error 122: dividing by zero
1794
1795 2007-12-30 Borut Razem <borut.razem AT siol.net>
1796
1797         * src/pic16/gen.c: fixed implementation of bitwise operations for
1798           pic16 target
1799         * support/regression/tests/bitwise.c: added test cases
1800
1801 2007-12-29 Borut Razem <borut.razem AT siol.net>
1802
1803         * src/SDCCasm.[ch]: renamed from asm[ch], use dbuf_getline(), ...
1804         * src/src.dsp, src/Makefile.bcc, src/Makefile.in, src/common.h,
1805           src/SDCCglue.c, src/xa51/main.c: asm.[ch] renamed to SDCCasm.[ch]
1806         * support/Util/dbuf_string.[ch]: added function dbuf_getline()
1807         * src/ds390/gen.c, src/hc08/gen.c, src/mcs51/gen.c, src/pic16/gen.c,
1808           src/pic/gen.c, src/z80/gen.c, src/xa51/gen.c, src/pic16/ralloc.c,
1809           src/pic16/pcode.[ch]: added const qualifier
1810         * as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
1811           as/mcs51/Makefile.bcc, as/mcs51/Makefile.in, as/mcs51/asx8051.dsp,
1812           as/z80/Makefile.bcc, as/z80/Makefile.in, as/z80/as_gbz80.dsp,
1813           as/z80/as_z80.dsp: added dbuf.[ch] and dbuf_string[ch] to project
1814         * as/asxxsrc/aslex.c: use dbuf_getline()
1815         * as/hc08/asdata.c, as/hc08/asexpr.c, as/hc08/asm.h, as/hc08/m08adr.c,
1816           as/mcs51/asdata.c, as/mcs51/asexpr.c, as/mcs51/asm.h,
1817           as/mcs51/i51adr.c, as/z80/asdata.c, as/z80/asexpr.c, as/z80/aslist.c,
1818           as/z80/asm.h, as/z80/z80adr.c:
1819           changed type of ib and ip to const char *
1820
1821 2007-12-28 Borut Razem <borut.razem AT siol.net>
1822
1823         * as/asxxsrc/aslex.c: moved from as/mcs51/aslex.c;
1824           introduced (readlin) - long lines are turuncated
1825         * as/hc08/as_hc08.dsp, as/mcs51/asx8051.dsp, as/z80/as_gbz80.dsp,
1826           as/z80/as_z80.dsp, as/hc08/Makefile.in, as/mcs51/Makefile.in,
1827           as/z80/Makefile.in: moved aslex.c to asxxsrc
1828         * as/hc08/aslex.c, as/z80/aslex.c: deleted
1829         * as/hc08/asmain.c, as/mcs51/asmain.c:
1830           added missing initialization of a_addr field
1831         * support/regression/tests/long_asm_line.c: added regtest for long
1832           assembler line
1833
1834 2007-12-22 Borut Razem <borut.razem AT siol.net>
1835
1836         * src/SDCC.lex: fixed bug #1852894: # character hangs the compiler
1837
1838 2007-12-20 Maarten Brock <sourceforge.brock AT dse.nl>
1839
1840         * src/SDCCsymt.c (computeType): fixed bug, thanks Fan Weiguang
1841
1842 2007-12-16 Borut Razem <borut.razem AT siol.net>
1843
1844         * device/include/pic16/stdbool.h: removed, since already exists in
1845          device/include/; this also fixes bitopcse.c regression test for pic16
1846          target
1847         * support/regression/fwk/inclusw/testfwk.h: added macro ASSERT_FAILED
1848         * src/pic16/glue.c: fixed bug #1851855: generic static pointer
1849           dereference doesn't work; covered by regression test bug1399290
1850
1851 2007-12-05 Borut Razem <borut.razem AT siol.net>
1852
1853         * doc/sdccman.lyx: fixed bug #1844509 - Correction to Manual 4.6.9
1854           Adding new PIC16
1855
1856 2007-12-01 Borut Razem <borut.razem AT siol.net>
1857
1858         * sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/mem.cc:
1859           corrected handling of the highest_valid_address
1860
1861 2007-11-17 Raphael Neider <rneider AT web.de>
1862
1863         * src/pic/main.c (_asmCmd): include debug arguments (-g as $3)
1864         * src/pic/glue.c (picglue): emit .file if --debug is given
1865
1866 2007-11-17 Raphael Neider <rneider AT web.de>
1867
1868         * src/pic16/genarith.c (pic16_genPlus, pic16_genMinus): take special
1869         care when left or right operand resides in result, fixes #1830220
1870
1871 2007-11-17 Borut Razem <borut.razem AT siol.net>
1872
1873         * src/SDCCglue.c, src/pic16/glue.c: reverted fix for bug
1874           #983491 - "Merge duplicate strings function is ineffective"
1875         * support/regression/tests/bug-983491.c: regtest disabled
1876         * as/asxxsrc: created
1877           as/asxxsrc/assym.c, as/asxxsrc/strcmpi.c: moved
1878           as/hc08/assym.c, as/mcs51/assym.c, as/strcmpi.c,
1879           as/z80/assym.c, as/hc08/asstore.c, as/mcs51/asstore.c: deleted
1880           as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
1881           as/hc08/asm.h, as/link/hc08/Makefile.bcc, as/link/hc08/Makefile.in,
1882           as/link/hc08/link_hc08.dsp, as/link/mcs51/Makefile.bcc,
1883           as/link/mcs51/Makefile.in, as/link/mcs51/aslink.dsp,
1884           as/link/z80/Makefile.in, as/link/z80/linkgbz80.dsp,
1885           as/link/z80/linkz80.dsp, as/mcs51/Makefile.bcc, as/mcs51/Makefile.in,
1886           as/mcs51/asm.h, as/mcs51/asx8051.dsp, as/z80/Makefile.bcc,
1887           as/z80/Makefile.in, as/z80/as_gbz80.dsp, as/z80/as_z80.dsp,
1888           as/z80/Makefile.as_hc08, as/mcs51/Makefile.asx8051: modified
1889           created as/asxxsrc directory, assym.c and strcpi.c moved into it
1890
1891 2007-11-15 Maarten Brock <sourceforge.brock AT dse.nl>
1892
1893         * device/include/stdarg.h: added and removed some casts
1894         * src/SDCCsymt.c (compareType): Fully check types between generic and
1895           non-generic pointers, also accept ptr-ptr to void-ptr assignments
1896
1897 2007-11-13 Borut Razem <borut.razem AT siol.net>
1898
1899         * support/regression/tests/bug-1817005.c:
1900           added regtest for bug #1817005 - as-z80 chokes on long labels
1901
1902 2007-11-12 Borut Razem <borut.razem AT siol.net>
1903
1904         * as/z80/asmain.c, as/z80/asm.h, as/z80/assym.c, as/z80/asdata.c,
1905           as/z80/asout.c, as/z80/aslist.c:
1906           fixed bug #1817005 - as-z80 chokes on long labels
1907
1908 2007-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
1909
1910         * as/hc08/asmain.c,
1911         * as/z80/asmain.c: cosmetic changes
1912         * as/hc08/alloc.h,
1913         * as/mcs51/alloc.h,
1914         * as/z80/alloc.h: removed
1915         * as/hc08/assym.c,
1916         * as/mcs51/assym.c: replaced alloc.h with stdlib.h
1917         * as/link/aslink.h: added LKDIRSEP and, LKDIRSEPSTR
1918         * as/link/hc08/Makefile.in,
1919         * as/link/mcs51/Makefile.in,
1920         * as/link/z80/Makefile.in: added -DUNIX to CFLAGS
1921         * as/link/lklex.c,
1922         * as/link/mcs51/lkarea.c,
1923         * as/link/mcs51/lkmain.c: cosmetic changes
1924         * as/link/hc08/lklibr.c,
1925         * as/link/z80/lklibr.c,
1926         * as/link/mcs51/lklibr.c: used LKDIRSEP, LKDIRSEPSTR and LKOBJEXT,
1927           used cygwin_conv_to_full_posix_path,
1928           added warnings, cosmetic changes, brought more in sync
1929           changed old K&R into ANSI function declarations
1930         * as/link/z80/lklibr.c (loadAdb): added
1931         * as/link/z80/lkmain.c: removed -- option from usage text
1932
1933 2007-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
1934
1935         * src/mcs51/gen.c (outBitC): optimized for no result
1936
1937 2007-10-31 Borut Razem <borut.razem AT siol.net>
1938
1939         * src/SDCCsymt.c: fixed (hopeful properly) bug
1940           #1805702 - order of extern matters
1941         * support/regression/tests/bug-1805702.c: enabled regtest for bug
1942           #1805702
1943
1944 2007-10-29 Borut Razem <borut.razem AT siol.net>
1945
1946         * src/SDCCsymt.c: reverted bad fixed of bug #1805702
1947           - order of extern matters
1948         * support/regression/tests/bug-1805702.c: disabled regtest for bug
1949           #1805702
1950
1951 2007-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
1952
1953         * src/ds390/peeph.def: replaced 24bitModeAndPortDS390 by
1954           24bitMode, portIsDS390
1955         * src/mcs51/gen.c (genOr): optimized for RFE 1750727
1956         * src/SDCCpeeph.c (flat24bitModeAndPortDS390): removed
1957           (notVolatileVariable): also check sloc names,
1958           (callFuncByName): moved ftab[] out of function and sorted it by use
1959
1960 2007-10-28 Maarten Brock <sourceforge.brock AT dse.nl>
1961
1962         * device/include/stdarg.h: fixed bug in va_start macro for --xstack
1963         * src/hc08/gen.c (aopForRemat): aop->aopu.aop_immd.from_cast_remat not set,
1964           aop->aopu.aop_immd.aop_immd2 not filled with (generic) pointer type
1965         * src/SDCCicode.c (geniCodeCast): fixed bug 880197
1966         * support/regression/tests/bug-880197.c: new, added
1967
1968 2007-10-28 Borut Razem <borut.razem AT siol.net>
1969
1970         * support/regression/Makefile.in,
1971           support/regression/ports/mcs51-large/spec.mk,
1972           support/regression/ports/mcs51-xstack-auto/spec.mk,
1973           support/regression/ports/mcs51-stack-auto/spec.mk,
1974           support/regression/ports/mcs51-medium/spec.mk,
1975           support/regression/ports/mcs51-common/spec.mk,
1976           support/regression/ports/mcs51-common/*,
1977           support/regression/ports/mcs51-small/*:
1978           mcs51 renamed to mcs51-common, created mcs51-small
1979         * src/SDCCsymt.c: fixed bug #1805702 - order of extern matters
1980         * support/regression/tests/bug-1805702.c: added regtest for bug
1981           #1805702
1982
1983 2007-10-26 Maarten Brock <sourceforge.brock AT dse.nl>
1984
1985         * src/mcs51/peeph.def: moved rules 257.x to 253.x and re-enabled 253.b,
1986           added new rules 265 - 270
1987         * support/regression/tests/bug1721024.c:new, added
1988         * support/regression/Makefile.in: renamed test-mcs51 to test-mcs51-small,
1989           introduced new test-mcs51 to run all mcs51 tests
1990
1991 2007-10-25 Maarten Brock <sourceforge.brock AT dse.nl>
1992
1993         * support/regression/tests/bug1816470.c: new, added
1994
1995 2007-10-21 Maarten Brock <sourceforge.brock AT dse.nl>
1996
1997         * src/SDCCast.c (resultTypePropagate): do propagate for LEFT_OP, do not
1998           propagate for *,+,- with float, fixed bug 1816470
1999           (decorateType): cast to resultTypeProp instead of resultType
2000
2001 2007-10-19 Borut Razem <borut.razem AT siol.net>
2002
2003         * src/pic16/glue.c: fixed bug #983491 - "Merge duplicate strings
2004           function is ineffective" for pic16 tareget
2005         * support/scripts/listerr.c: corrected include path
2006         * device/lib/_itoa.c: fixed bug #1806402 - _itoa and _uitoa leak to
2007           adjacent memory
2008
2009 2007-10-18 Maarten Brock <sourceforge.brock AT dse.nl>
2010
2011         * support/regression/tests/using.c: new, added
2012         * support/regression/tests/vaargs.c: fixed and enabled test
2013
2014 2007-10-18 Borut Razem <borut.razem AT siol.net>
2015
2016         * src/SDCCglue.c: fixed bug #983491 - Merge duplicate strings function
2017           is ineffective
2018         * support/regression/tests/bug-983491.c: added regtest for bug #983491
2019
2020 2007-10-18 Maarten Brock <sourceforge.brock AT dse.nl>
2021
2022         * doc/sdccman.lyx: documented option --Werror
2023         * src/SDCCsymt.c (checkFunction): fixed bug 1815418 by setting
2024           RegBankUsed[] earlier
2025
2026 2007-10-14 Maarten Brock <sourceforge.brock AT dse.nl>
2027
2028         * device/include/mcs51/p89lpc938.h: new, added, thanks Kyle Guinn
2029         * src/pic/glue.c,
2030         * src/SDCCval.c,
2031         * src/SDCCast.c,
2032         * src/SDCCast.h: replaced AST_LIT_VALUE with AST_FLOAT_VALUE and
2033           AST_ULONG_VALUE
2034         * src/SDCCast.c (decorateType): improved optimization of tri-op
2035         * src/SDCCerr.c (vwerror, setWError),
2036         * src/SDCCerr.h,
2037         * src/SDCCmain.c (parseCmdLine): added option --Werror to treat all
2038           warnings as errors, thanks Stas Sergeev for PATCH 1813211
2039
2040 2007-10-13 Maarten Brock <sourceforge.brock AT dse.nl>
2041
2042         * src/mcs51/gen.c (leftRightUseAcc): use macro IS_OP_ACCUSE
2043         * src/SDCCast.c (decorateType): optimize bit=cond?1:0, RFE 1738430
2044         * support/regression/tests/bug-223113.c,
2045         * support/regression/tests/bug-426632.c,
2046         * support/regression/tests/bug-468811.c,
2047         * support/regression/tests/bug-477835.c,
2048         * support/regression/tests/bug-478094.c,
2049         * support/regression/tests/bug-499644.c,
2050         * support/regression/tests/bug-524209.c,
2051         * support/regression/tests/bug-524211.c,
2052         * support/regression/tests/packcast.c,
2053         * support/regression/tests/structidx.c: added empty tests
2054         * support/regression/tests/bug-607243.c: enabled test
2055
2056 2007-10-06 Borut Razem <borut.razem AT siol.net>
2057
2058         * .version, doc/sdccman.lyx: bumped version to 2.7.4 to indicate the full
2059            support of universal binaries on Mac OS X
2060
2061 2007-10-02 Borut Razem <borut.razem AT siol.net>
2062
2063         * src/SDCCval.h: unified double2ul macro for all platforms
2064         * src/SDCCval.c: fixed bug #1777758 - applied Maarten's patch
2065         * support/regression/tests/bitwise.c: added regtest for bug #1777758
2066
2067 2007-09-30 Borut Razem <borut.razem AT siol.net>
2068
2069         * src/SDCCval.h: fixed bug #1739860 - sdcc does not work correctly on some
2070           platforms
2071         * sdcc_vc_in.h: enabled warnings
2072         * src/hc08/gen.c: fixed MSVC warning C4146: unary minus operator applied to
2073           unsigned type, result still unsigned
2074         * src/mcs51/peep.c: fixed gcc warning: suggest parentheses around && within ||
2075
2076 2007-09-28 Raphael Neider <rneider AT web.de>
2077
2078         * src/pic/device.c (find_device): prevent buffer underflow error
2079         * src/pic/pcoderegs.c (OptimizeRegUsage): avoid dereferencing
2080           the just destroyed list entry
2081
2082 2007-09-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2083
2084         * doc/sdccman.lyx: there's a dedicated wiki page for cmake and sdcc, thanks
2085           Alexander Neundorf
2086
2087 2007-09-18 Borut Razem <borut.razem AT siol.net>
2088
2089         * src/SDCCval.c: fixed MSVC warning C4146: unary minus operator
2090          applied to unsigned type, result still unsigned
2091
2092 2007-09-17 Borut Razem <borut.razem AT siol.net>
2093
2094         * src/SDCC.y, src/SDCCast.c, src/SDCCcse.c, src/SDCCglue.c,
2095           src/SDCCicode.c, src/SDCCopt.c, src/SDCCsymt.c, src/SDCCval.c,
2096           src/SDCCval.h, src/hc08/gen.c, src/avr/gen.c, src/ds390/gen.c,
2097           src/mcs51/gen.c, src/pic/gen.c, src/pic/genarith.c, src/pic/glue.c,
2098           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/genarith.c,
2099           src/pic16/genutils.c, src/pic16/glue.c, src/pic16/main.c,
2100           src/z80/gen.c, src/z80/ralloc.c:
2101           fixed bug #1739860 - sdcc does not work correctly on some platforms
2102           (not finished)
2103           introduced and used ulFromVal(), double2ul(), used strtod() instead sscanf()
2104
2105 2007-09-17 Raphael Neider <rneider AT web.de>
2106
2107         * src/pic16/device.c: reverted to previous version
2108         * device/lib/pic16/Makefile.common.in: quieten gpasm via -Wa,-q
2109
2110 2007-09-16 Raphael Neider <rneider AT web.de>
2111
2112         * src/pic16/device.c (pic16_dump_usection): do not reserve 0 bytes,
2113           as this raises a ton of gpasm warnings, just emit a second label
2114         * src/pic16/devices.inc,
2115         * device/lib/pic16/pics.all,
2116         * device/lib/pic16/libdev/pic18f2585.c,
2117         * device/lib/pic16/libdev/pic18f2680.c,
2118         * device/lib/pic16/libdev/pic18f2682.c,
2119         * device/lib/pic16/libdev/pic18f2685.c,
2120         * device/lib/pic16/libdev/pic18f4585.c,
2121         * device/lib/pic16/libdev/pic18f4680.c,
2122         * device/lib/pic16/libdev/pic18f4682.c,
2123         * device/lib/pic16/libdev/pic18f4685.c,
2124         * device/include/pic16/pic18f2585.h,
2125         * device/include/pic16/pic18f2680.h,
2126         * device/include/pic16/pic18f2682.h,
2127         * device/include/pic16/pic18f2685.h,
2128         * device/include/pic16/pic18f4585.h,
2129         * device/include/pic16/pic18f4680.h,
2130         * device/include/pic16/pic18f4682.h,
2131         * device/include/pic16/pic18f4685.h,
2132         * device/include/pic16/pic18fregs.h: added 18f2585, 18f2680,
2133           18f2682, 18f2685, 18f4585, 18f4680, 18f4682, 18f4685,
2134           patch contributed by Anton Strobl, applied with changes
2135
2136 2007-09-16 Raphael Neider <rneider AT web.de>
2137
2138         * device/include/pic16/pic18f2431.h,
2139         * device/include/pic16/pic18f25j10.h,
2140         * device/include/pic16/pic18f4431.h,
2141         * device/include/pic16/pic18f45j10.h: adopted common include style
2142         * device/include/pic16/pic18f1320.h,
2143         * device/include/pic16/pic18f2320.h,
2144         * device/include/pic16/pic18f2525.h,
2145         * device/include/pic16/pic18f4320.h,
2146         * device/include/pic16/pic18f4525.h: NEW, just include proper .h file
2147         * device/include/pic16/pic18fregs.h: prepared for automatic include
2148           file selection by having DEVICE.h for every DEVICE
2149         * device/lib/pic16/libdev/pic18f2320.c,
2150         * device/lib/pic16/libdev/pic18f4320.c: just include proper .c file
2151
2152         * device/lib/pic16/configure.in,
2153         * device/lib/pic16/configure: use rm -rf instead of rmdir
2154         * device/lib/pic16/Makefile.in: use RMDIR to remove build directories
2155         * device/lib/pic16/libc/stdlib/free.c: avoid warning on pointer cast
2156
2157 2007-09-09 Borut Razem <borut.razem AT siol.net>
2158
2159         * src/SDCCmain.c, src/SDCCutil.c: print newline after printVersionInfo(),
2160           distingush between i386 and ppc Mac OS X versions
2161
2162 2007-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
2163
2164         * src/mcs51/gen.c (genReceive): fixed bug 1788177
2165         * support/regression/tests/bug1788177.c: new, added
2166
2167 2007-09-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2168
2169         * doc/sdccman.lyx: mentioned d52 and cmake, customizing startup code
2170         * device/include/mcs51/lint.h added keyword __naked
2171
2172 2007-09-04 Maarten Brock <sourceforge.brock AT dse.nl>
2173
2174         * src/pic16/glue.c,
2175         * src/pic/glue.c,
2176         * src/SDCCmem.h: removed maxRegBank
2177         * src/SDCCmem.c (allocVariables): removed maxRegBank and moved setting
2178           RegBankUsed[] to checkFunction() in SDCCsymt.c to fix bug 1759839
2179         * src/SDCCsymt.c (checkFunction): set RegBankUsed[] here
2180         * src/mcs51/peep.c (isCallerSaveFunc, termScanAtFunc): changed function
2181           name and behaviour to handle banked functions
2182           (scan4op): and use it to fix bug 1786213
2183
2184 2007-09-03 Raphael Neider <rneider AT web.de>
2185
2186         * device/include/pic16/pic18f248.h,
2187         * device/include/pic16/pic18f258.h,
2188         * device/include/pic16/pic18f448.h,
2189         * device/lib/pic16/libdev/pic18f248.c,
2190         * device/lib/pic16/libdev/pic18f258.c,
2191         * device/lib/pic16/libdev/pic18f448.c: fixed TRISEbits,
2192           added T0CONbits, fixes #1786891
2193
2194 2007-08-29 Maarten Brock <sourceforge.brock AT dse.nl>
2195
2196         * src/ds390/gen.c (genFarPointerSet),
2197         * src/hc08/ralloc.c (packRegisters),
2198         * src/mcs51/ralloc.c (packRegisters),
2199         * src/SDCCcse.c (cseBBlock): check if result is a symbol first to fix
2200           bug 1750318
2201         * src/SDCCicode.h: POINTER_SET can be true for literals too
2202         * support/regression/tests/bug1750318.c: new, added
2203
2204 2007-08-23 Borut Razem <borut.razem AT siol.net>
2205
2206         * debugger/mcs51/sdcdb.c: fixed compilation with older readline
2207           library versions without the completition functionality
2208
2209 2007-08-22 Raphael Neider <rneider AT web.de>
2210
2211         * device/include/pic16/pic18f1220.h,
2212         * device/lib/pic16/libdev/pic18f1220.c: applied patch #1776191
2213
2214 2007-08-12 Borut Razem <borut.razem AT siol.net>
2215
2216         * debugger/mcs51/Makefile.in: support/Util/SDCCerr.[ch] moved to src
2217
2218 2007-08-11 Borut Razem <borut.razem AT siol.net>
2219
2220         * support/Util/SDCCerr.c, support/Util/SDCCerr.h, src/src.dsp,
2221           src/Makefile.in, src/Makefile.bcc, support/scripts/listerr.c:
2222           support/Util/SDCCerr.[ch] moved to src
2223         * as/hc08/as_hc08.dsp, as/link/hc08/link_hc08.dsp,
2224           as/link/z80/linkgbz80.dsp, as/link/z80/linkz80.dsp,
2225           device/examples/ds390/tinitalk/tinitalk.dsp,
2226           device/examples/serialcomm/windows/serialcomm.dsp,
2227           support/librarian/librarian.dsp:
2228           removed linking of unused odbc32.lib and odbccp32.lib
2229         * support/scripts/winres.h:
2230           added for compilation with Visual C++ 2005 Express Edition
2231
2232 2007-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2233
2234         * device/include/mcs51/at89c51ed.h: Fixed typo in declarations of CKCON0
2235           and CKCON1.
2236
2237 2007-08-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2238
2239         * sdccconf_in.h: update the endian test so that SPARC Solaris
2240           does not throw syntax errors
2241
2242 2007-08-06 Borut Razem <borut.razem AT siol.net>
2243
2244         * doc/sdccman.lyx: removed two index entries which prevented the
2245           generation of sdcc doc archive
2246
2247 2007-08-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2248
2249         * doc/sdccman.lyx: Same changes made 2007-07-28 but using lyx 1.4.4
2250           instead of lyx 1.5.0.
2251
2252 2007-07-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2253
2254         * device/include/hc08/mc68hc908apxx.h: new header contributed by
2255           Lucas Loizaga, with minor modifications. Thanks!
2256
2257 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2258
2259         * doc/sdccman.lyx: Documented --acall-ajmp and described new features
2260           in sdcclib.
2261
2262 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2263
2264         * src/SDCCglobl.h, src/SDCCpeeph.c, src/SDCCglue.c, src/mcs51/main.c,
2265           src/mcs51/peeph.def: Added option --acall-ajmp: replaces lcall/ljmp
2266           with acall/ajmp.
2267
2268 2007-07-22 Borut Razem <borut.razem AT siol.net>
2269
2270         * configure.in, configure: re-introduced .version
2271         * sdcc.spec, doc/INSTALL.txt: they are used only for releases;
2272           the version reverted to 2.7.0
2273
2274 2007-07-18 Maarten Brock <sourceforge.brock AT dse.nl>
2275
2276         * configure.in,
2277         * doc/sdccman.lyx: bumped version to 2.7.3
2278         * device/include/mcs51/compiler.h: fixed elif->else
2279         * src/mcs51/gen.c (genAnd, genOr): handle accuse for pure bit operands
2280         * src/mcs51/ralloc.c (createStackSpil): fixed SCLS bug with sloc for sbit,
2281           (operandUsesAcc, packRegsForAccUse): added parameter allowBitspace to
2282            enable accuse for bit operands
2283         * src/SDCCmain.c (printVersionInfo),
2284         * src/SDCCutil.c (getBuildEnvironment): factored out creation of build
2285           environment descriptor
2286         * src/SDCCutil.h: added getBuildEnvironment
2287         * src/SDCCglue.c (initialComments): use getBuildEnvironment
2288         * support/regression/tests/bug1464657.c: enabled test test_Peephole251
2289         * support/regression/tests/bug-408972.c: enabled test leftShiftLong
2290         * support/regression/tests/bug1348008.c,
2291         * support/regression/tests/bug1496419.c,
2292         * support/regression/tests/bug1503067.c,
2293         * support/regression/tests/preproc.c: added empty tests
2294
2295 2007-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
2296
2297         * support/regression/tests/bug1678803.c: new, added
2298
2299 2007-07-14 Maarten Brock <sourceforge.brock AT dse.nl>
2300
2301         * as/link/aslink.h,
2302         * as/link/hc08/lkihx.c,
2303         * as/link/hc08/lkrloc.c,
2304         * as/link/mcs51/lkihx.c,
2305         * as/link/mcs51/lkrloc.c: renamed ihxEntendedLinearAddress to
2306           ihxExtendedLinearAddress
2307         * as/link/mcs51/lkrloc.c (relr),
2308         * as/mcs51/asout.c (outr11, outr19): handle absolute destination for
2309           acall/ajmp, see bug 830513
2310
2311 2007-07-13 Maarten Brock <sourceforge.brock AT dse.nl>
2312
2313         * src/SDCCcse.c (replaceAllSymBySym): renamed siaddr to isaddr,
2314           (cseBBlock): remember aggr2ptr has been used
2315         * src/SDCCicode.c (operandSize): added function to handle aggr2ptr,
2316           (geniCodeAssign): fixed bug 868103
2317         * src/SDCCicode.h: made operand.aggr2ptr 2 bits wide,
2318           added operandSize prototype
2319         * src/mcs51/gen.c (aopOp): use operandSize to fix bug 868103,
2320           (genDataPointerSet): use max of size of right and result,
2321           (gencjne): added parameter useCarry for optimization,
2322           (genCmpEq): use carry if appropriate,
2323           (genXor): check if operand already in carry
2324         * support/regression/tests/bug-868103.c: enabled test
2325
2326 2007-07-12 Raphael Neider <rneider AT web.de>
2327
2328         * src/pic16/gen.c (genNearPointerSet): fixed handling of literals
2329
2330 2007-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
2331
2332         * src/SDCCsymt.c (compareType): fixed bugs 1738367 and 1745717 with patch
2333           from Robert Larice, thanks
2334         * support/regression/tests/bitopcse.c,
2335         * support/regression/tests/bitvars.c,
2336         * support/regression/tests/bug-908454.c: use <stdbool.h> for the bit types
2337         * support/regression/tests/bug-927659.c: enabled test for z80
2338         * support/regression/tests/bug1738367.c: added extra tests by Frieder
2339         * support/regression/tests/bug1745717.c: new, added
2340         * support/regression/tests/literalop.c,
2341         * support/regression/tests/nullstring.c: removed storage definitions that
2342           are now in testfwk.h
2343
2344 2007-07-10 Maarten Brock <sourceforge.brock AT dse.nl>
2345
2346         * device/include/stdbool.h: do not define __bool_true_false_are_defined
2347           and bool for targets that do not fully support it.
2348         * support/regression/tests/bug1546986.c,
2349         * support/regression/tests/bug1723128.c,
2350         * support/regression/tests/bug1734654.c,
2351         * support/regression/tests/bug1738367.c,
2352         * support/regression/tests/constantRange.c: only use bool if allowed
2353
2354 2007-07-09 Maarten Brock <sourceforge.brock AT dse.nl>
2355
2356         * src/mcs51/peep.c (isCallerSaveFunc): fixed bug 1749275, thanks Robert
2357           Larice, also handle function pointers
2358         * support/regression/tests/bug1749275.c: new, added
2359
2360 2007-07-03 Borut Razem <borut.razem AT siol.net>
2361
2362         * src/mcs51/gen.c, src/avr/gen.c, src/pic/gen.c, src/z80/gen.c,
2363           src/pic16/gen.c, src/hc08/gen.c, src/ds390/gen.c: fixed RFE
2364           #1746528: SDCC should ignore ':' in inline assembler comments
2365         * device/include/typeof.h: fixed bug #1747142: typeof.h needs fixing
2366
2367 2007-07-02 Maarten Brock <sourceforge.brock AT dse.nl>
2368
2369         * device/include/mcs51/C8051F360.h: fixed bug #1746410, thanks Chris Jones
2370         * device/lib/mcs51/crtxclear.asm: do not set __XPAGE unconditionally
2371
2372 2007-06-29 Borut Razem <borut.razem AT siol.net>
2373
2374         * src/SDCCmain.c: fixed bug
2375           #1744746: SDCC #4867: broken option --xram-size
2376
2377 2007-06-28 Borut Razem <borut.razem AT siol.net>
2378
2379         * sim/ucsim/configure.in, sim/ucsim/configure, sim/ucsim/ddconfig_in.h:
2380           find out the endianess of host machine for ucsim
2381
2382 2007-06-27 Borut Razem <borut.razem AT siol.net>
2383
2384         * support/regression/generate-cases.py: corrected the file name
2385           in warning
2386         * configure.in, configure, sdccconf_in.h: find out the endianess of
2387           host machine
2388         * src/SDCC.y: fixed bug #1744146: Crash when compiling array of
2389           negative size
2390
2391 2007-06-27 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
2392
2393         * device/include/mcs51/p89c66x.h: NXP header file, OK to change licence
2394
2395 2007-06-26 Borut Razem <borut.razem AT siol.net>
2396
2397         * support/regression/generate-cases.py: display warning if function
2398           list is empty; implemented more flexible rule for detection of
2399           testing functions, allowing return type 'void' in the same line as
2400           the function name in the function definition
2401         * support/regression/tests/bug-1654060.c: corrected test
2402         * support/librarian/sdcclib.c: fixed warning:
2403           format '%s' expects type 'char *', but argument 2 has type 'int'
2404
2405 2007-06-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2406
2407         * support/librarian/sdcclib.c: Added feature Requests [1510635]
2408           Multiple infiles for sdcclib.
2409
2410 2007-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2411
2412         * src/SDCCast.c (inlineFindMaxBlockno, createFunction): fixed
2413           bug 1731741
2414
2415 2007-06-18 Borut Razem <borut.razem AT siol.net>
2416
2417         * src/SDCCmain.c: removed option -C since SDCC compiler doesn't know
2418           how to handle comments, so they have to be removed by the
2419           preprocessor; fixed bug #1738926:SDCC #4852: broken option -V
2420         * src/SDCCmain.c, src/SDCCargs.h, src/ds390/main.c, src/mcs15/main.c,
2421           src/pic16/main.c, src/pic/main.c, src/z80/main.c,
2422           support/Util/SDCCerr.c, support/Util/SDCCerr.h:
2423           table driven option hadling
2424
2425 2007-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
2426
2427         * src/SDCCast.c (decorateType),
2428         * src/SDCCicode.c (geniCodeConditional): moved optimization for '?' from
2429           iCode to ast level to fix bug 1738367
2430         * support/regression/tests/bug1738367.c: new, added
2431
2432 2007-06-15 Raphael Neider <rneider AT web.de>
2433
2434         * src/pic16/devices.inc,
2435         * device/lib/pic16/pics.all,
2436         * device/include/pic16/pic18fregs.h,
2437         * device/include/pic16/pic18f[24][45]20.h,
2438         * device/lib/pic16/libdev/pic18f[24][45]20.c: added support for
2439           18f2420, 18f2520, and 18f4420 devices, updated 18f4520 definitions
2440         * device/lib/pic16/Makefile.in: faster cleanup
2441
2442 2007-06-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2443
2444         * src/mcs51/peeph.def: added 177.i (mov from a is slightly cheaper)
2445
2446 2007-06-13 Raphael Neider <rneider AT web.de>
2447
2448         * src/SDCCmain.c: prevent NULL pointer dereference, avoid warning
2449
2450 2007-06-12 Raphael Neider <rneider AT web.de>
2451
2452         * support/scripts/inc2h.pl: conditionally emit defines for SFR bits,
2453           suppress bit defines if NO_BIT_DEFINES is #define'd
2454         * device/include/pic/pic*.h: recreated all headers to include
2455           conditional bit defines
2456         * device/include/pic/pic16f886.h,
2457         * device/include/pic/pic16f887.h: fixed based on newer .inc file
2458         * device/include/pic/recreate.sh: script to recreate the complete
2459           device library files based on the currently supported devices
2460
2461 2007-06-12 Borut Razem <borut.razem AT siol.net>
2462
2463         * src/pic16/main.c, src/SDCCargs.h, SDCCmain.c,
2464           support/regression/Makefile.in, support/scripts/build.mak,
2465           support/scripts/Makefile.snapshot:
2466           use new svn URL scheme
2467         * doc/sdccman.lyx: SDCC Wiki moved to
2468           http://sdcc.wiki.sourceforge.net/
2469
2470 2007-06-10 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2471
2472         * src/mcs51/peeph.def: disabled rule 132.d to fix #1734654
2473         * support/regression/tests/bug1734654.c: added
2474
2475 2007-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
2476
2477         * src/SDCCast.c (decorateType): optimized '?' for equal operands
2478         * src/SDCCicode.c (geniCodeConditional): optimization for bit result
2479           with literal operands
2480
2481 2007-06-10 Borut Razem <borut.razem AT siol.net>
2482
2483         * as/link/z80/lklibr.c: fixed mingw build warning
2484           lklibr.c:575: warning: implicit declaration of function 'tolower'
2485         * src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c,
2486           src/z80/main.c: move target specific options from src/SDCCmain.c
2487           to src/<target>/main.c
2488
2489 2007-06-09 Borut Razem <borut.razem AT siol.net>
2490
2491         * src/z80/gen.c: fixed bug #1294691: nested ifs make compiler crash;
2492           removed unused swap_sense; removed outBitCLong, replaced with outBitC
2493         * support/regression/tests/bug-1294691.c: added
2494
2495 2007-06-09 Maarten Brock <sourceforge.brock AT dse.nl>
2496
2497         * src/SDCCmem.c (allocDefault): removed check sym->level==0 for SPEC_ABSA,
2498           can also be static, fixes bug 1733438
2499         * src/SDCCsymt.c (checkSClass): static local vars in reentrant funcs can
2500           have absolute address too
2501           (computeType): added optimization for 'cond ? true : false'
2502         * support/regression/tests/absolute.c: added test for static absolute var
2503
2504 2007-06-08 Raphael Neider <rneider AT web.de>
2505
2506         * src/regression/Makefile: suppress parallel builds, allow easy
2507           switching between pic14/pic16 ports
2508         * src/regression/picregs.h: added pic14/16 header file switch
2509         * src/regression/{compare7.c,compare8.c,compare9.c,compare10.c,
2510           inline.c,nestfor.c,string1.c}: include "picregs.h"
2511
2512 2007-06-07 Borut Razem <borut.razem AT siol.net>
2513
2514         * sim/ucsim/*.[ch], sim/ucsim/configure, sim/ucsim/configure.in:
2515           permanent solution to suppress GCC 4.2.0 c++ warning:
2516           deprecated conversion from string constant to `char *'
2517           use 'const char *' where ever required
2518         * support/regression/generate-cases.py: implemented more flexible rule
2519           for detection of testing functions, allowing white-spaces surrounding
2520           the function name and the 'void' parameter.
2521         * support/regression/tests/constantRange.c,
2522           support/regression/tests/scott-compare3.c: fixed failing regression
2523           tests, uncovered by implementation of more flexible rule for detection
2524           of testing functions
2525
2526 2007-06-04 Maarten Brock <sourceforge.brock AT dse.nl>
2527
2528         * src/SDCCast.c(decorateType): better optimize '!!' and comparisons
2529
2530 2007-06-04 Borut Razem <borut.razem AT siol.net>
2531
2532         * configure.in, configure, config_vc.awk: sdcc version number is now
2533           stored in configure.in; removed .version
2534         * configure.in, configure, sdcc.spec, doc/sdccman.lyx, doc/sdccman.lyx,
2535           doc/INSTALL.txt: version bumped to 2.7.2
2536         * sim/ucsim/configure.in, sim/ucsim/configure:
2537           use "read" to read from .version
2538
2539 2007-06-03 Borut Razem <borut.razem AT siol.net>
2540
2541         * */Makefile.in: removed annoying warning:
2542           Makefile:xx: Makefile.dep: No such file or directory
2543
2544 2007-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
2545
2546         * src/mcs51/gen.c (outBitC, genRet): used IS_OP_RUONLY,
2547           (genNot, genXor): used toCarry, also fixes a bug for c = bit ^ val
2548         * src/mcs51/ralloc.c: removed IS_OP_RUONLY + some cosmetic changes
2549         * src/SDCCast.c (resultTypePropagate): propagate for '!',
2550           (decorateType): also optimize comparisons with RESULT_TYPE_BIT,
2551           bugfix: only use newBoolLink for bit result type
2552         * src/SDCCicode.c (geniCodeLogic): added param tree,
2553           bugfix: use newBoolLink if tree is bit type, bug appears when ruonly,
2554           (geniCodeLogicAndOr): use IS_BIT,
2555           (geniCodeJumpTable, geniCodeSwitch): added NULL param to geniCodeLogic,
2556           (ast2iCode): added tree param to geniCodeLogic for comparisons
2557         * src/SDCCsymt.h: added IS_OP_RUONLY and IS_OP_ACCUSE
2558         * support/regression/tests/bug1723128.c: added test NotZero
2559
2560 2007-06-01 Borut Razem <borut.razem AT siol.net>
2561
2562         * SDCPP synchronized with GCC CPP release version 4.2.0,
2563           currently the latest release:
2564         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
2565           support/cpp2/c-ppoutput.c, support/cpp2/cppdefault.c,
2566           support/cpp2/cppdefault.h, support/cpp2/except.h,
2567           support/cpp2/libcpp/directives.c, support/cpp2/libcpp/expr.c,
2568           support/cpp2/libcpp/files.c, support/cpp2/libcpp/include/cpplib.h,
2569           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
2570           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/macro.c,
2571           support/cpp2/libcpp/mkdeps.c, support/cpp2/libiberty/getpwd.c,
2572           support/cpp2/libiberty/hashtab.c, support/cpp2/optc-gen.awk,
2573           support/cpp2/opth-gen.awk, support/cpp2/opts.c,
2574           support/cpp2/opts.h, support/cpp2/output.h,
2575           support/cpp2/prefix.c, support/cpp2/sdcpp-opts.c,
2576           support/cpp2/sdcpp.dsp, support/cpp2/sdcpp.opt,
2577           support/cpp2/system.h, support/cpp2/version.c,
2578           support/cpp2/Makefile.in: modified
2579         * support/cpp2/opts-common.c: added
2580         * device/lib/pic16/libdev/pic18f[24][45]j10.c: fixed svn atrributes
2581         * device/lib/pic16/libdev/pic18f[24]5j10.c:
2582           search for included source file in local directory
2583         * sim/ucsim/configure, sim/ucsim/configure.in:
2584           temporary solution to suppress GCC 4.2.0 c++ warning:
2585           deprecated conversion from string constant to `char *'
2586
2587 2007-06-01 Raphael Neider <rneider AT web.de>
2588
2589         * device/lib/pic/libdev/pic12f683.c,
2590         * device/include/pic/pic12f683.h: added GPIO bits
2591
2592 2007-06-01 Raphael Neider <rneider AT web.de>
2593
2594         * doc/sdccman.lyx: added --disable-pic16-port, fixed some `--' and
2595           quotation marks, clarified role of PIC14 vs. PIC16 ports
2596         * src/pic16/devices.inc,
2597         * device/include/pic16/pic18fregs.h,
2598         * device/include/pic16/pic18f[24][45]j10.h,
2599         * device/lib/pic16/pics.all,
2600         * device/lib/pic16/libdev/pic18f[24][45]j10.c: added support for
2601           18f24j10, 18f25j10, 18f44j10, and 18f45j10
2602         * device/lib/pic16/libio/{i2c,adc,usart}.ignore: do not build IO libs
2603           for new devices as they are not yet supported by gputils
2604
2605 2007-05-31 Borut Razem <borut.razem AT siol.net>
2606
2607         * Small Device C Compiler 2.7.0 released
2608         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
2609           changed sdcc version to 2.7.1
2610         * support/scripts/sdcc.nsi: added How to create WIN32 release
2611           setup.exe package
2612
2613 2007-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
2614
2615         * doc/sdccman.lyx: documented initialization and allocation of absolute
2616           variables, bit parameter passing, the need for function pointers to be
2617           reentrant and alpha quality support of inline and retrict
2618
2619 2007-05-26 Borut Razem <borut.razem AT siol.net>
2620
2621         * support/regression/tests/bug1057979.c, support/regression/tests/malloc.c,
2622           support/regression/fwk/include/testfwk.h: fixed compilation on Mac OS x
2623         * docs/knownbugs.html: updated
2624
2625 2007-05-25 Maarten Brock <sourceforge.brock AT dse.nl>
2626
2627         * doc/sdccman.lyx: inserted footnotes about inline assembler labels,
2628           thanks Jan Waclawek
2629         * src/mcs51/gen.c (aopPut): fixed part of bug 1723128 when result is
2630           AOP_CRY and ruonly
2631           (gencjneshort): optimized when left is AOP_DIR
2632         * src/SDCCglue.c (printIvalStruct): fixed other part of bug 1723128 for
2633           initializing unions in a struct/array
2634         * support/regression/fwk/include/testfwk.h: added defines for data, near
2635           and far for host and z80
2636         * support/regression/tests/bug1723128.c: new, added
2637
2638 2007-05-22 Borut Razem <borut.razem AT siol.net>
2639
2640         * doc/knownbugs.html: updated
2641
2642 2007-05-21 Raphael Neider <rneider AT web.de>
2643
2644         * src/pic16/glue.c (pic16_initPointer): avoid assertion, emit better
2645           error message instead
2646         * src/pic/pcoderegs.c (pCodeOptime2pCodes): keep register state intact
2647
2648 2007-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
2649
2650         * src/mcs51/peeph.def (257.b): disabled to fix bug 1721024
2651
2652 2007-05-21 Raphael Neider <rneider AT web.de>
2653
2654         * src/pic/pcoderegs.c (pCodeOptime2pCodes): fixed bogus optimization,
2655           closes #1722392
2656         * src/regression/gpsim_assert.h,
2657         * src/regression/Makefile,
2658         * src/regression/pcodeopt.c: regression test for the above fix
2659
2660 2007-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
2661
2662         * src/SDCCpeeph.c (labelIsUncondJump): ignore identical labels for
2663           jumps to self, fixed bug 1717281
2664
2665 2007-05-10 Borut Razem <borut.razem AT siol.net>
2666
2667         * support/scripts/gen_known_bugs.pl: cosmetic fix
2668         * doc/knownbugs.html: generated by gen_known_bugs.pl
2669
2670 2007-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2671
2672         * src/SDCCast.c (createFunction): also generate non-inlined version of
2673           function for functions declared as "static inline"
2674         * src/SDCCast.c (fixupInline, inlineAddDecl): reset symbol state so
2675           function can be inlined after non-inlined version generated.
2676
2677 2007-05-10 Borut Razem <borut.razem AT siol.net>
2678
2679         * support/scripts/gen_known_bugs.pl: added script
2680           which generates knownbugs.html
2681
2682 2007-05-09 Maarten Brock <sourceforge.brock AT dse.nl>
2683
2684         * doc/knownbugs.html: updated for release 2.7.0
2685
2686 2007-05-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2687
2688         * device/include/mcs51/uPSD33xx.h: Added patch by Jan Waclawek.
2689
2690 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
2691
2692         * src/ds390/gen.c (emitcode): don't change properties of previous lines,
2693           (throughout): updated generating comments
2694         * src/mcs51/gen.c (emitcode): don't change properties of previous lines,
2695           (throughout): updated generating comments
2696         * src/SDCCpeeph.c (peepHole): continue searching at the first replaced
2697           rule instead of at the second, or it might skip lines when removing the
2698           complete match
2699         * support/regression/tests/bug1714204.c: changed test to foo
2700
2701 2007-05-08 Borut Razem <borut.razem AT siol.net>
2702
2703         * doc/sdccman.lyx: changed sdcc version to 2.7.0,
2704           thanks to SDCC Distributed Compile Farm members,
2705           added Z80 and GBZ80 command line options
2706         * .version, doc/INSTALL.txt, sdcc.spec: changed sdcc version to 2.7.0
2707
2708 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
2709
2710         * device/lib/mcs51/crtxinit.asm: added disabled version for dual dptr
2711         * device/include/mcs51/uPSD33xx.h: added sfr DPS as alias for DPTC
2712         * support/regression/tests/longlit.c: modified to be tested at all and
2713           to pass the actual test
2714
2715 2007-05-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2716
2717         * device/include/mcs51/uPSD33xx.h: Added.
2718
2719 2007-05-07 Maarten Brock <sourceforge.brock AT dse.nl>
2720
2721         * device/lib/_gptrput.c,
2722         * device/lib/_gptrget.c: removed old code,
2723          (_gptrgetWord),
2724         * src/ds390/gen.c (genGenPointerGet): fixed bug 1714204
2725         * support/regression/tests/bug1714204.c: new, added
2726
2727 2007-05-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2728
2729         * support/regression/tests/regtrack.c: test was never executed
2730           because of the regression test being picky about white spaces.
2731         * device/lib/mcs51/crtclear.asm: added comment
2732
2733 2007-05-06 Raphael Neider <rneider AT web.de>
2734
2735         * device/lib/pic/Makefile.rules,
2736         * device/lib/pic16/Makefile.rules: make sure *.ignore file exists,
2737           made "&> /dev/null" redirection sh-safe ("> /dev/null 2>&1")
2738
2739 2007-05-06 Raphael Neider <rneider AT web.de>
2740
2741         * src/pic16/device.h,
2742         * src/pic16/main.h,
2743         * src/pic16/main.c (pic16_optionsTable,_pic16_parseOptions,
2744           _pic16_setDefaultOptions): removed/reordered command-line args
2745         * doc/sdccman.lyx: updated PIC14 and PIC16 documentation (supported
2746           devices, regrouped command line args, environment variables),
2747           clarified sone points, added sections on how to add devices to the
2748           PIC14/PIC16 ports
2749
2750 2007-05-06 Maarten Brock <sourceforge.brock AT dse.nl>
2751
2752         * src/z80/peeph.def: fixed bug in rule 2
2753
2754 2007-05-05 Maarten Brock <sourceforge.brock AT dse.nl>
2755
2756         * src/port.h: added TARGET_MCS51_LIKE
2757         * src/SDCCpeeph.c (labelIsUncondJump): new, added, other targets could
2758           take advantage of it too
2759         * src/z80/gen.c (genIpush): push b, d or h directly instead of using a,
2760           (shiftR2Left2Result): Optimized: don't check shifting by 0
2761         * src/z80/peeph-z80.def,
2762         * src/z80/peeph.def: whole set of new rules by Philipp Krause with some
2763           modifications, see patch 1700823
2764         * src/mcs51/peep.c (): fixed bug 1712928
2765         * support/regression/tests/bug1712928.c: new, added
2766
2767 2007-05-05 Borut Razem <borut.razem AT siol.net>
2768
2769         * device/lib/pic16/Makefile.common.in,
2770           device/lib/pic/Makefile.common.in, sim/ucsim/cmd.src/Makefile.in:
2771           removed bash dependencies
2772
2773 2007-05-01 Borut Razem <borut.razem AT siol.net>
2774
2775         * src/SDCCicode.c:
2776           fixed bug #1710507: --i-code-in-asm makes compile fail
2777           all iCode comments are now one liners
2778         * src/mcs51/gen.c: fixed memory leak
2779
2780 2007-05-01 Raphael Neider <rneider AT web.de>
2781
2782         * device/lib/pic/libdev/*.c
2783         * device/include/pic/*.h: regenerated all device libs from updated
2784           .inc files
2785         * support/scripts/inc2h.pl: documented usage, now uses strict to
2786           catch more bugs
2787
2788 2007-04-30 Borut Razem <borut.razem AT siol.net>
2789
2790         * doc/sdccman.lyx:
2791           fixed bug #1669175: Problem with space in output paths
2792           documented how to use paths with spaces for Windows users
2793
2794 2007-04-29 Borut Razem <borut.razem AT siol.net>
2795
2796         * Fixed svn:eol-style and svn:keywords properties
2797         * src/SDCCval.c: fixed bug
2798           #1592871: Segfault with "large" const arrays of characters
2799           replaced recursion with iteration
2800         * Removed svn:executable property from non-executable files
2801
2802 2007-04-29 Maarten Brock <sourceforge.brock AT dse.nl>
2803
2804         * src/mcs51/gen.c (genRet): fixed bug 1707003
2805
2806 2007-04-27 Raphael Neider <rneider AT web.de>
2807
2808         * src/pic16/pcode.c (pBlockRemoveUnusedLabels,pic16_pBlockAddInval,
2809           createReachingDefinitions,assignValnums,pic16_destructDF,
2810           pic16_createDF,pic16_vcg_dumpedges,pic16_vcg_dump_default):
2811           prevent NULL pointer dereferences
2812         * device/lib/pic/libdev/pic16f886.c,
2813         * device/lib/pic/libdev/pic16f887.c: svn mv'ed to disabled_* to
2814           prevent building them, gputils do not really support them yet
2815
2816 2007-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2817
2818         * device/lib/_ltoa.c: 36 bytes less __data mem. This really
2819           helps printf_small. 32 bytes more __idata mem.
2820
2821 2007-04-27 Raphael Neider <rneider AT web.de>
2822
2823         * src/pic/pcode.c (addpCode2pBlock,LinkFlow,pBlockRemoveUnusedLabels):
2824           return early when pb or pb->pcHead is NULL (patch #1708427)
2825         * src/regression/empty.c,
2826         * src/regression/Makefile: added test with empty functions
2827         * support/Util/SDCCerr.c: fixed typo in E_INIT_STRUCT message
2828
2829 2007-04-27 Borut Razem <borut.razem AT siol.net>
2830
2831         * src/SDCCast.c: fixed feature request
2832           #1547512: Redundant strings linked when using sizeof("abc")
2833
2834 2007-04-23 Borut Razem <borut.razem AT siol.net>
2835
2836         * doc/sdccman.lyx, src/SDCCmain.c:
2837           peep-hole comments are generated only if --fverbose-asm option is
2838           specified and --no-peep-comments is not, as proposed by Frieder.
2839         * support/regression/Makefile.in: compile regression tests with
2840           --fverbose-asm option so one can "grep" whether a new (or an old)
2841           peephole is (still) applied; requested by Frieder.
2842
2843 2007-04-23 Kevin Buettner <kevin AT buettner.to>
2844
2845         * device/include/pic/pic16f886.h,
2846         * device/include/pic/pic16f887.h,
2847         * device/lib/pic/libdev/pic16f886.c,
2848         * device/lib/pic/libdev/pic16f887.c,
2849         * device/include/pic/pic14devices.txt,
2850         * device/lib/pic/libdev/devices.txt: Add 16f886 and 16f887.
2851
2852 2007-04-23 Kevin Buettner <kevin AT buettner.to>
2853
2854         * device/lib/pic/libsdcc/idata.c: PAGESEL _main before going there,
2855           fixes #1704666
2856
2857 2007-04-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2858
2859         * device/lib/_memset.c: assembler version for mcs51
2860
2861 2007-04-22 Borut Razem <borut.razem AT siol.net>
2862
2863         * support/scripts/listerr.c: program to create the list of errors and
2864           warnings list from - added
2865         * doc/sdccman.lyx: removed the note
2866           "For list of warnings and corresponding codes, see err_warn.txt"
2867         * src/SDCCsymt.c: fixed bug #1699804:
2868           Bug with some uses of sizeof(static local array) (MCS51)
2869         * support/regression/tests/bug-1699804.c: added
2870
2871 2007-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
2872
2873         * as/mcs51/asmain.c (search_path_append, search_path_fopen): new, added,
2874           (main): added option -i,
2875           (asmbl, case S_INCL): use search_path_fopen,
2876           mostly from patch 1579668 by Peter Miller, thanks
2877         * src/z80/main.c: fixed typo --callee-saves-bc
2878         * device/include/mcs51/compiler.h: added sfrword for Tasking
2879
2880 2007-04-20 Borut Razem <borut.razem AT siol.net>
2881
2882         * src/z80/main.c: replaced reserved keyword asm with asmblr
2883
2884 2007-04-19 Borut Razem <borut.razem AT siol.net>
2885
2886         * src/port.h: use const pointers to strings
2887         * src/SDCCargs.h: declared getStringArg() and getIntArg()
2888         * src/pic16/main.c: include SDCCargs.h
2889         * src/SDCCglobl.h: code_seg and const_seg are not pointers to
2890           const char, since the strings are dynamically allocated
2891         * src/SDCCmain.c: options.code_seg and options.const_seg are
2892           dynamically allocated; check port specific command line options
2893           before the general ones
2894         * src/z80/main.c: fixed bug #1631895: codeseg/constseg #pragma fail
2895
2896 2007-04-18 Maarten Brock <sourceforge.brock AT dse.nl>
2897
2898         * device/include/ds400rom.h,
2899         * device/lib/ds390/lcd390.c,
2900         * device/lib/ds390/memcpyx.c,
2901         * device/lib/ds390/rtc390.c,
2902         * device/lib/ds400/ds400rom.c,
2903         * device/lib/ds400/memcpyx.c,
2904         * device/lib/hc08/_ret.c: more replacements of keywords with their
2905           double underscore equivalents
2906         * device/lib/ds390/Makefile.in,
2907         * device/lib/ds400/Makefile.in,
2908         * device/lib/gbz80/Makefile.in,
2909         * device/lib/hc08/Makefile.in,
2910         * device/lib/mcs51/Makefile.in,
2911         * device/lib/z80/Makefile.in: added --std-c89 to CFLAGS
2912
2913 2007-04-17 Borut Razem <borut.razem AT siol.net>
2914
2915         * doc/sdccman.lyx, src/SDCCmain.c, src/SDCCglobal.h, src/ds390/gen.c,
2916           src/hc08/gen.c, src/mcs51/gen.c, src/mcs51/rtrack.c:
2917           fixed #1493816: option --no-gen-comments: --no-gen-comments renamed
2918           to --fverbose-asm, to be gcc'ish
2919
2920 2007-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
2921
2922         * src/mcs51/gen.c (aopOp): set size to 1 for ruonly, fixes bug 1699455
2923
2924 2007-04-17 Borut Razem <borut.razem AT siol.net>
2925
2926         * doc/sdccman.lyx: fixed #1701874: Mac OSX references in SDCC manual
2927         * device/lib/ds400/tinibios.c, device/lib/hc08/_divuint.c,
2928           device/lib/hc08/_divulong.c: replaced _asm and _endasm keywords
2929           with their double underscore equivalent
2930
2931 2007-04-14 Borut Razem <borut.razem AT siol.net>
2932
2933         * doc/sdccman.lyx: some additional "freeware" replaced with "free open
2934           source"
2935
2936 2007-04-13 Borut Razem <borut.razem AT siol.net>
2937
2938         * doc/sdccman.lyx: -pedantic-parse-number is not in conformance with
2939           C99 standard
2940         * device/examples/serialcomm/windows/serial.[ch],
2941           device/examples/serialcomm/windows/test_serialcomm.cpp:
2942           updated by Bela Torok
2943         * device/examples/serialcomm/windows/serialcomm.dsw,
2944           device/examples/serialcomm/windows/serialcomm.dsp: added
2945
2946 2007-04-13 Jan Waclawek <wek AT efton.sk>
2947
2948         * doc/sdccman.lyx: additions and changes at various places
2949           (submitted as #1697136).
2950           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
2951
2952 2007-04-10 Borut Razem <borut.razem AT siol.net>
2953
2954         * doc/cdbfileformat.lyx, doc/sdccman.lyx, doc/test_suite_spec.lyx:
2955           LyX file format changed to 245
2956         * doc/sdccman.lyx, doc/README.txt, sdc/SDCC.lex, src/SDCCglue.c:
2957           "FreeWare" replaced with "free open source"
2958
2959 2007-04-10 Maarten Brock <sourceforge.brock AT dse.nl>
2960
2961         * device/include/mcs51/C8051F120.h: added some defines for bits in RSTSRC
2962
2963 2007-04-08 Maarten Brock <sourceforge.brock AT dse.nl>
2964
2965         * device/include/pic16/pic18fregs.h,
2966         * device/lib/_bp.c,
2967         * device/lib/_decdptr.c,
2968         * device/lib/_divsint.c,
2969         * device/lib/_divslong.c,
2970         * device/lib/_divuint.c,
2971         * device/lib/_divulong.c,
2972         * device/lib/_fs2schar.c,
2973         * device/lib/_fs2sint.c,
2974         * device/lib/_fs2slong.c,
2975         * device/lib/_fs2uchar.c,
2976         * device/lib/_fs2uint.c,
2977         * device/lib/_fs2ulong.c,
2978         * device/lib/_fsadd.c,
2979         * device/lib/_fscmp.c,
2980         * device/lib/_fsdiv.c,
2981         * device/lib/_fseq.c,
2982         * device/lib/_fsget1arg.c,
2983         * device/lib/_fsget2args.c,
2984         * device/lib/_fsgt.c,
2985         * device/lib/_fslt.c,
2986         * device/lib/_fsmul.c,
2987         * device/lib/_fsneq.c,
2988         * device/lib/_fsnormalize.c,
2989         * device/lib/_fsreturnval.c,
2990         * device/lib/_fsrshift.c,
2991         * device/lib/_fssub.c,
2992         * device/lib/_fsswapargs.c,
2993         * device/lib/_gptrget.c,
2994         * device/lib/_gptrgetc.c,
2995         * device/lib/_gptrput.c,
2996         * device/lib/_logexpf.c,
2997         * device/lib/_modsint.c,
2998         * device/lib/_modslong.c,
2999         * device/lib/_moduint.c,
3000         * device/lib/_modulong.c,
3001         * device/lib/_mulint.c,
3002         * device/lib/_mullong.c,
3003         * device/lib/_schar2fs.c,
3004         * device/lib/_ser.c,
3005         * device/lib/_setjmp.c,
3006         * device/lib/_sint2fs.c,
3007         * device/lib/_slong2fs.c,
3008         * device/lib/_spx.c,
3009         * device/lib/_uchar2fs.c,
3010         * device/lib/_uint2fs.c,
3011         * device/lib/_ulong2fs.c,
3012         * device/lib/asincosf.c,
3013         * device/lib/atanf.c,
3014         * device/lib/calloc.c,
3015         * device/lib/ds390/tinibios.c,
3016         * device/lib/ds400/tinibios.c,
3017         * device/lib/expf.c,
3018         * device/lib/free.c,
3019         * device/lib/hc08/_mulint.c,
3020         * device/lib/logf.c,
3021         * device/lib/malloc.c,
3022         * device/lib/printf_fast.c,
3023         * device/lib/printf_tiny.c,
3024         * device/lib/printfl.c,
3025         * device/lib/realloc.c,
3026         * device/lib/ser_ir.c,
3027         * device/lib/serial.c,
3028         * support/regression/tests/libmullong.c: replaced all special keywords
3029           with their double underscore equivalent
3030         * support/regression/ports/mcs51-xstack-auto/spec.mk,
3031         * device/lib/Makefile.in: compile libs with --std-c99 instead of
3032           --std-sdcc99
3033         * src/mcs51/gen.c (outBitC): don't store if result is return-use-only,
3034           (genRet): if the bit-symbol is ruonly it already is in the carry
3035         * src/mcs51/ralloc.c (regTypeNum): make regType REG_CND for ruonly bit
3036         * src/SDCCast.c (createFunction): applied patch 887171 by Stas Sergeev
3037         * src/SDCCicode.c (ast2iCode): '!', GETHBIT, GETABIT: only set operand
3038           type UCHAR if dest is not bit
3039
3040 2007-04-03 Maarten Brock <sourceforge.brock AT dse.nl>
3041
3042         * device/include/math.h,
3043         * device/lib/cotf.c,
3044         * device/lib/expf.c,
3045         * device/lib/sincoshf.c: changed XMAX to C99 HUGE_VALF
3046
3047 2007-04-01 Borut Razem <borut.razem AT siol.net>
3048
3049         * src/SDCC.lex, src/SDCCmain.c, support/cpp2/sdcpp.c:
3050           fixed bug #1692042: input buffer overflow...scanner uses REJECT
3051         * support/cpp2/sdcpp.c: fixed recursion bug - internal_error() called
3052           gcc_unreachable() called internal_error()...
3053
3054 2007-03-30 Raphael Neider <rneider AT web.de>
3055
3056         * src/pic/ralloc.c (isData): suppress garbage debug output
3057
3058 2007-03-28 Borut Razem <borut.razem AT siol.net>
3059
3060         * doc/sdccman.lyx:
3061           "Nightly Snapshots" replaced with "Snapshot Builds", since the SDCC
3062           is developed, built and used worldwide, and the word "night" doesn't
3063           make any sense.
3064
3065 2007-03-28 Maarten Brock <sourceforge.brock AT dse.nl>
3066
3067         * device/include/mcs51/C8051F360.h: new, added
3068         * device/include/mcs51/C8051F520.h: fixed buggy sbit addresses SPI0CN
3069
3070 2007-03-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3071
3072         * src/SDCC.y (declaration_specifiers, function_specifier),
3073         * support/Util/SDCCerr.c,
3074         * support/Util/SDCCerr.h,
3075         * src/SDCCsymt.h,
3076         * src/SDCCsymt.c (mergeSpec, checkFunction): Parse and validate the
3077           inline keyword
3078         * src/SDCCmem.c (deallocParms),
3079         * src/SDCCast.c: support for function inlining, not quite complete
3080         * src/SDCCsymt.c (printTypeChain, printTypeChainRaw): display
3081           'restrict' qualifier
3082
3083 2007-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
3084
3085         * src/mcs51/gen.c (saveRegisters, unsaveRegisters): free some bitVects,
3086           (saveRBank, unsaveRBank): don't save bits,
3087           (genFunction, genEndFunction): save bits exactly once, fix bug 1535242
3088         * support/regression/tests/bug1535242.c: new, added
3089         * device/include/assert.h: applied patch 1686533 to fix bug 1686528,
3090           thanks Alexey Shamrin <shamrin AT gmail.com>,
3091           made assert.h header ANSI compliant (added a check for NDEBUG macro,
3092           removed header guard)
3093         * .version,
3094         * sdcc.spec: bumped version to 2.6.5
3095         * src/SDCCmain.c(parseCmdLine): fixed bug 1677144
3096
3097 2007-03-22 Borut Razem <borut.razem AT siol.net>
3098
3099         * debugger/mcs51/cmd.c, debugger/mcs51/sdcdb.c:
3100           fixed bug #1653671: sdcdb integration into ddd is broken
3101
3102 2007-03-22 Raphael Neider <rneider AT web.de>
3103
3104         * src/pic/gen.c (popGetExternal): augmented to also create references
3105           to external variables (not only labels),
3106           (genCall): comment on plan to reduce PAGESEL overhead,
3107           (genFunction, genEndFunction): also save/restore FSR around interrupt
3108           handling code, removed lots of unused code
3109           (genDivOneByte): release acquired temp register
3110         * src/pic/glue.c (pic14createInterruptVect): adapt to new signature
3111           of popGetExternal
3112         * device/lib/pic/libsdcc/shadowregs.c: NEW, provide storage location
3113           for registers that need to be saved during interrupts (FSR, STATUS,
3114           PCLATH; W needs special handling), currently only FSR is used
3115
3116 2007-03-22 Raphael Neider <rneider AT web.de>
3117
3118         * device/include/pic/pic14devices.txt: 16f688 has only one config word
3119
3120 2007-03-19 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3121
3122         * /as/link/mcs51/aslink.dsp: Object extension for mcs51 is 'rel' not 'o'.
3123
3124 2007-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
3125
3126         * src/mcs51/peeph.def (263.x): fixed bug for volatile variables
3127
3128 2007-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
3129
3130         * as/link/aslink.h: added LKOBJEXT
3131         * as/link/hc08/link_hc08.dsp,
3132         * as/link/hc08/Makefile.bcc,
3133         * as/link/hc08/Makefile.in,
3134         * as/link/mcs51/aslink.dsp,
3135         * as/link/mcs51/Makefile.bcc,
3136         * as/link/mcs51/Makefile.in: moved lkamof51.c and lkdata.c
3137         * as/link/hc08/lkaomf51.c,      as/link/mcs51/lkaomf51.c,
3138         * as/link/lkaomf51.c: merged and moved
3139         * as/link/hc08/lkdata.c,        as/link/mcs51/lkdata.c,
3140         * as/link/z80/lkdata.c,
3141         * as/link/lkdata.c: merged and moved
3142         * as/link/hc08/lkmain.c,
3143         * as/link/mcs51/lkmain.c: cosmetic changes
3144         * as/link/z80/lkeval.c,         as/link/lkeval.c: merged
3145         * as/link/lklex.c: use LKOBJEXT
3146         * as/link/z80/lklist.c,         as/link/lklist.c: merged,
3147           ANSI-fied functions, removed bubble-sorts
3148         * as/link/z80/lksym.c           as/link/lksym.c: merged,
3149           ANSI-fied functions
3150         * as/link/z80/linkgbz80.dsp,
3151         * as/link/z80/linkz80.dsp,
3152         * as/link/z80/Makefile.in: added lkaomf51.c and lknoice.c,
3153           moved lkdata.c, lkeval.c, lkhead.c, lklex.x, lklist.c, lksym.c
3154         * as/link/z80/lkhead.c,
3155         * as/link/z80/lklex.c: deleted
3156         * as/link/z80/lklibr.c: moved LKOBJEXT to aslink.h
3157         * as/link/z80/lkmain.c: added copyfile()
3158
3159 2007-03-13 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3160
3161         * device/include/mcs51/P89LPC925.h: Added missing P1_6 and P1_7.
3162
3163 2007-03-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3164
3165         * device/lib/_strlen.c: assembler version for mcs51
3166
3167 2007-03-13 Raphael Neider <rneider AT web.de>
3168
3169         * device/include/pic16/pic18f2221.h,
3170         * device/include/pic16/pic18f2321.h,
3171         * device/include/pic16/pic18f2331.h,
3172         * device/include/pic16/pic18f4221.h,
3173         * device/include/pic16/pic18f4321.h,
3174         * device/include/pic16/pic18f4331.h: fixed config byte location names
3175         * support/scripts/inc2h-pic16.pl: removed debug output, emit
3176           consistently named config byte locations
3177
3178 2007-03-13 Borut Razem <borut.razem AT siol.net>
3179
3180         * src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
3181           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/s51.src/Makefile.in,
3182           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
3183           as/link/z80/Makefile.in, as/z80/Makefile.in:
3184           introduced LDFLAGS
3185
3186 2007-03-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3187
3188         * device/lib/printfl.c: 13 bytes less __data mem (12 more __idata)
3189         * device/lib/printf_large.c: pointer was converted to generic
3190         pointer for mcs51 models other than model-small (Maarten noticed)
3191
3192 2007-03-10 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3193
3194         * device/include/mcs51/ADuC84x.h: Added.
3195
3196 2007-03-10 Borut Razem <borut.razem AT siol.net>
3197
3198         * src/SDCC.lex, src/SDCCutil.[ch], src/SDCCval:
3199           fixed RFE #1624219: double backslashes in filenames;
3200           functions hexEscape(), octalEscape() and copyStr() moved from
3201           SDCCval.c to SDCCutil.c and made them glovbally available
3202
3203 2007-03-09 Borut Razem <borut.razem AT siol.net>
3204
3205         * src/SDCC.lex, src/SDCCast.c. src/SDCCglobl.c, src/SDCCsymt.c,
3206           src/SDCCval.c: fixed bugs #1676768: Wrong line number reported and
3207           1673361: Missaligned comments in output files
3208
3209 2007-03-09 Raphael Neider <rneider AT web.de>
3210
3211         * device/include/pic/pic14devices.txt: fixed confsiz of 16f91[3467]
3212
3213 2007-03-09 Raphael Neider <rneider AT web.de>
3214
3215         * src/pic/gen.c,
3216         * src/pic/glue.c,
3217         * src/pic/ralloc.c: suppress undesired debug output
3218         * src/SDCCmain.c (linkEdit): initialize c to quieten compiler
3219
3220 2007-03-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3221
3222         * device/lib/printf_large.c: 6 bytes less __data mem (6 more __idata)
3223
3224 2007-03-07 Borut Razem <borut.razem AT siol.net>
3225
3226         * device/lib/pic16/libdev/pic18f[24][34]31.c:
3227           search include files in the current directory
3228
3229 2007-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
3230
3231         * src/SDCCglue.c (emitMaps, glue),
3232         * src/SDCCmem.c (initMem, allocDefault): added x_abs for initialized
3233           absolute xdata
3234         * support/regression/tests/absolute.c: added xdata test
3235
3236 2007-03-03 Maarten Brock <sourceforge.brock AT dse.nl>
3237
3238         * src/SDCCmain.c (parseCmdLine): only set options.xstack_loc for mcs51,
3239           added condition to macro, fixes bug 1666080
3240
3241 2007-03-02 Raphael Neider <rneider AT web.de>
3242
3243         * src/pic/gen.c (genGenPointerSet): removed bogus assertion
3244
3245 2007-02-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3246
3247         * device/lib/mcs51/crtxclear.asm: pdata segment of 256 byte would not
3248         be cleared. Unconditionally set __XPAGE
3249         * src/hc08/gen.c: --no-gen-comments (RFE #1493816) for hc08
3250
3251 2007-02-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3252
3253         * src/SDCCglobl.h,
3254         * src/SDCCmain.c,
3255         * src/mcs51/gen.c,
3256         * src/mcs51/rtrack.c,
3257         * src/ds390/gen.c,
3258         * doc/sdccman.lyx: added --no-gen-comments
3259         * src/mcs51/peeph.def: added 192.b, disabled 185
3260
3261 2007-02-25 Raphael Neider <rneider AT web.de>
3262
3263         * src/pic16/gen.c (genCast): fixed typo
3264         * device/lib/pic16/Makefile.subdir: only install existing files
3265         * device/lib/pic16/libdev/Makefile.in: build serially, avoid races
3266
3267 2007-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
3268
3269         * device/lib/mcs51/crtcall.asm: new, added for indirect calls
3270         * device/lib/mcs51/crtclear.asm,
3271         * device/lib/mcs51/crtxclear.asm: renumbered labels
3272         * device/lib/mcs51/Makefile.in: added crtcall.asm
3273         * doc/sdccman.lyx: documented mcs51 crt* library startup code
3274         * src/mcs51/gen.c (movc): removed,
3275           (aopGet, genPlusBits): clear a after loading the carry (possibly from
3276             acc.x or psw.x),
3277           (toCarry, genSend, genRet): added function toCarry,
3278           (genPcall): use "lcall @a+dptr" for functions w/o parameters,
3279           (assignBit, genAssign, genCast): added function assignBit
3280         * src/mcs51/Makefile.bcc: added rtrack.c
3281         * src/mcs51/ralloc.h: made valueKnown a bitfield
3282         * src/mcs51/rtrack.c (getReg, rtrackUpdate): added getReg,
3283           fixed "jbc acc" and "cpl acc" bug, enhanced "cjne", "jnz" and "djnz",
3284           disabled InvalidateAllRx for lcall __gptrput, added "xch a,rn"
3285         * src/pic/pcode.c (FixRegisterBanking): fixed warning used uninitialized
3286         * src/z80/gen.c: added AOP_IS_PAIRPTR,
3287           (_pop): only pop valid pairs, see gencjneshort,
3288           (gencjneshort): return pair that still needs to be popped, restructured,
3289           (gencjne, genCmpEq): call _pop
3290
3291 2007-02-23 Raphael Neider <rneider AT web.de>
3292
3293         * device/include/pic/pic14devices.txt: 16f684 has only one config word
3294
3295 2007-02-22 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3296
3297         * device/include/mcs51/P89LPC925.h: Added.
3298
3299 2007-02-18 Raphael Neider <rneider AT web.de>
3300
3301         * src/pic/glue.c (emitInitVal): fixed #1659894 (SIGSEGV on arrays)
3302
3303 2007-02-17 Borut Razem <borut.razem AT siol.net>
3304
3305         * support/cpp2/directives.c, support/cpp2/version.c:
3306           synchronized with GCC CPP 4.1.2
3307
3308 2007-02-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3309
3310         * src/mcs51/rtrack.h,
3311         * src/mcs51/rtrack.c: added register tracking for the mcs51 port,
3312           by checking the strings passed by emitcode() to the assembler.
3313           Feel free to change. This in part addresses RFE #482179.
3314           Set environment variable SDCC_RTRACK to enable.
3315         * src/mcs51/gen.c: inserted hooks
3316         * src/mcs51/ralloc.h: added two members to struct regs
3317         * support/regression/tests/regtrack.c: added
3318
3319 2007-02-14 Borut Razem <borut.razem AT siol.net>
3320
3321         * src/SDCC.y: fixed bug #1291133: duplicate members across enum(s)
3322         * Makefile.in: applied patch from Makefile related part of
3323           #1469393: Compiler does not initialize static data
3324
3325 2007-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
3326
3327         * src/SDCCicode.c (geniCodeAssign): return (itemp) right instead of left
3328           for better fix of bug 1273984, compiles pic16 rand.c
3329
3330 2007-02-12 Borut Razem <borut.razem AT siol.net>
3331
3332         * src/pic16/main.c: fixed pic16 standard library directory bug
3333
3334 2007-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
3335
3336         * src/hc08/gen.c (genSwap): fix swap regression test
3337
3338 2007-02-10 Borut Razem <borut.razem AT siol.net>
3339
3340         * src/SDCCsymt.c: fixed bug #1159134: invalid duplicate declarations
3341           with same scope
3342         * support/regression/tests/bug-1654060.c: added regression test for
3343           #1654060
3344
3345 2007-02-09 Bernhard Held <bernhard AT bernhardheld.de>
3346
3347         * src/mcs51/gen.c (genRet): fixed RFE 1652561: added code for bit to
3348         bit moves in return statement
3349
3350 2007-02-09 Borut Razem <borut.razem AT siol.net>
3351
3352         * src/SDCC.y: fixed bug #1654060 typedef within function causes
3353           syntax error
3354
3355 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
3356
3357         * src/mcs51/gen.c (aopPut): use direct name for pushing registers
3358         * src/SDCCmain.c (parseCmdLine): dbuf_s path must be initialised
3359
3360 2007-02-07 Raphael Neider <rneider AT web.de>
3361
3362         * src/pic16/devices.inc,
3363         * device/include/pic16/pic18fregs.h,
3364         * device/include/pic16/pic18f[24][34]31.h,
3365         * device/lib/pic16/libdev/pic18f[24][34]31.c,
3366         * device/lib/pic16/pics.all: added 18f[24][34]31 family
3367         * device/lib/pic16/libio/i2c.ignore: do not build i2c
3368
3369 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
3370
3371         * device/lib/printf_large.c (_print_format): fixed compare/assign bug, how
3372           can this have lived here for so many years?
3373         * src/SDCCicode.c (ast2iCode): return left instead of right for assignment,
3374           fixes bug 1273984, see also patch 1645121, thanks Gnther Jehle
3375         * support/regression/tests/bug1273984.c: new, added, thanks Gnther Jehle
3376
3377 2007-02-06 Bernhard Held <bernhard AT bernhardheld.de>
3378
3379         * src/SDCCBlock.c (addiCodeToeBBlock): fixed bug 1652207: GOTO icodes
3380         appended by loop induction must be at the very end of the eBBlock
3381
3382 2007-02-05 Kevin Vigor
3383
3384         * src/ds390/gen.c, src/ds390/main.c: Address bug 1469393.
3385
3386 2007-02-05 Borut Razem <borut.razem AT siol.net>
3387
3388         * support/regression/fwk/lib/timeout.c: native WIN32 port,
3389           implemented #1651830 Reg. tests: rewrite timeout.c to use WIN32 API
3390
3391 2007-02-03 Borut Razem <borut.razem AT siol.net>
3392
3393         * src/SDCC.y, src/SDCCmain.c, src/SDCCglobl.h, doc/sdccman.lyx:
3394           applied patch #1646602 option to set default signedness of char to
3395           unsigned, added -funsigned-char command line option,
3396           thanks to Gunther Jehle
3397         * device/lib/Makefile.in: added the -f option to rm so it doesn't
3398           prompt for file deletion a few hundred times (especially the
3399           subversion files, which have ro permissions so it asks for
3400           confirmation), thanks to Simon McAuliffe;
3401           added {} + option to find in order to remove multiple files from a
3402           single rm commad
3403
3404 2007-02-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3405
3406         * device/include/mcs51/SST89x5xRDx.h: Added.
3407
3408 2007-02-02 Raphael Neider <rneider AT web.de>
3409
3410         * src/pic/glue.c (emitSymbolSet): check sym->etype before use
3411         * src/regression/Makefile: use --no-pcode-opt, ignore failing tests
3412
3413 2007-02-01 Raphael Neider <rneider AT web.de>
3414
3415         * src/pic/glue.c (picglue,emitSymbolSet,showAllMemmaps): emit the
3416           config words again
3417
3418 2007-01-31 Borut Razem <borut.razem AT siol.net>
3419
3420         * support/Util/dbuf_string.h: added ATTRIBUTE_PRINTF to dbuf_printf()
3421           if compiled with GCC. Thanks to Raphael Neider
3422
3423 2007-01-31 Raphael Neider <rneider AT web.de>
3424
3425         * src/pic/pcode.c (isValidIdChar,bankCompare): fuzzy matching of
3426             operand names, handles name and (name + n) for all n,
3427           (sameBank): restructured, also check bank allocation policy,
3428         * src/pic/glue.c (emitPseudoStack): fixed printf arguments,
3429           (pic14_operandsAllocatedInSameBank): check whether to operands
3430             will be allocated into the same bank (i.e., section) to reduce
3431             BANKSEL overhead, queried from pcode.c:sameBank,
3432           (pic14printLocals): reintroduced clustering registers into a single
3433             section: all compiler generated symbols will now reside in one
3434             bank (per file), reducing BANKSEL overhead and code size,
3435           (showAllMemmaps): use local dbuf where possible
3436
3437 2007-01-29 Raphael Neider <rneider AT web.de>
3438
3439         * src/pic/gen.c (popGetExternal): simplified, mark symbol as used,
3440           (call_libraryfunc): retrieve/create symbol and mark as used,
3441           (genFunction): mark defined functions as non-extern and add again
3442            to code memmap for later output
3443         * src/pic/glue.c (emitPseudoStack): put into own subroutine,
3444           (pic14printLocals): reworked for new symbol emission,
3445           (emitIfNew,pic14_constructAbsMap,emitIvalLabel,emitIvals,emitInitVal,
3446           showAllMemmaps): reworked symbol output using dbufs, added handling
3447             of string literals (still incomplete),
3448           (picglue): removed symbol emission, moved into showAllMemmaps,
3449           (emitSymbolSet): new workhorse for symbol output,
3450           (pic14emitMaps,pic14printPublics,pic14printExterns): commented out
3451
3452 2007-01-29 Borut Razem <borut.razem AT siol.net>
3453
3454         * src/SDCCmain.c, src/SDCCutil.c: dbuf_splitFile: file extension
3455           component contains the extension separator.
3456
3457 2007-01-28 Borut Razem <borut.razem AT siol.net>
3458
3459         * sim/ucsim/cmd.src/cmdutil.cc: NUL device is detected as CG_FILE type
3460           on WIN32
3461         * src/SDCCdwarf2.c, src/SDCCglobl.h, src/SDCCmain.c, src/SDCCutil.c,
3462           src/SDCCutil.h, src/avr/gen.c, src/ds390/gen.c, src/hc08/gen.c,
3463           src/mcs51/gen.c, src/pic/device.c, src/pic/gen.c, src/pic/pcode.c,
3464           src/pic/pcodepeep.c, src/pic/ralloc.c, src/pic16/device.h,
3465           src/pic16/gen.c, src/pic16/main.c, src/pic16/pcode.c,
3466           src/pic16/pcodepeep.c, src/pic16/ralloc.c, src/xa51/gen.c,
3467           src/z80/gen.c, support/Util/MySystem.c:
3468           accept slash and backslash as directory separator on WIN32 and
3469           Cygwin ports
3470
3471 2007-01-28 Raphael Neider <rneider AT web.de>
3472
3473         * src/pic16/devices.inc,
3474         * device/include/pic16/pic18f[24][23]21.h,
3475         * device/include/pic16/pic18fregs.h,
3476         * device/lib/pic16/libdev/pic18f[24][23]21.c,
3477         * device/lib/pic16/pics.all: added support for the 18f[24][23]21 family
3478         * device/lib/pic16/libio/adc.ignore,
3479         * device/lib/pic16/libio/i2c.ignore,
3480         * device/lib/pic16/libio/usart.ignore: do not build I/O lib for new
3481           family, as gputils do not yet support the devices
3482         * device/lib/pic16/Makefile.subdir: ignore errors on install
3483         * support/scripts/inc2h-pic16.pl: script to generate pic16 device
3484           headers and libraries from gputils .inc files
3485
3486 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
3487
3488         * doc/sdccman.lyx: add printf_fast_f precision limitation note
3489
3490 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
3491
3492         * doc/sdccman.lyx: add printf benchmarks
3493
3494 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
3495
3496         * device/lib/printf_fast.c: fix %c, char promoted to int
3497         * device/lib/printf_tiny.c: fix %c, char promoted to int
3498
3499 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
3500
3501         * device/lib/printf_fast.c: fix float overflow check, bug #1525093
3502
3503 2007-01-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3504
3505         * support/regression/tests/swap.c: 64 bit hosts failed
3506         * doc/sdccman.lyx: added preliminary mcs51 printf feature matrix
3507
3508 2007-01-25 Raphael Neider <rneider AT web.de>
3509
3510         * src/pic/pcode.c (sameBank,FixRegisterBanking): optimize banksels
3511           based on absolute register address, patch by Alex Blond
3512
3513 2007-01-22 Raphael Neider <rneider AT web.de>
3514
3515         * src/pic/glue.c (pic14emitRegularMap): mark initialized symbols as
3516           emitted, do not emit them again...
3517
3518 2007-01-22 Raphael Neider <rneider AT web.de>
3519
3520         * src/regression/bank1.c, src/regression/compare6.c,
3521           src/regression/add.c: cosmetic changes
3522         * src/pic/pcode.h: moved GPTRTAG_* here from gen.c
3523         * src/pic/gen.c: fixed global zero and one,
3524           (aopForSym): removed unued code,
3525           (aopGet): assert aop is defined, check and use `index' of
3526             pCodeImmd operands (fixes #1630908),
3527         * src/pic/pcode.c (get_op): added output of generic pointer tag,
3528           (register_reassign): prevent accidental register unification,
3529           (ReuseReg): cosmetic changes (also above)
3530         * src/pic/glue.c (pic14_constructAbsMap,pic14emitRegularMap,
3531           pic14emitStaticSeg): do not emit initialized data,
3532           (printIval*): replaced with working versions,
3533           (pic14createInterruptVect,picglue): use idata for initialized data,
3534             now init data should work in all modules (not only main()),
3535         * device/lib/pic/libsdcc/idata.c: NEW, handle initialized data
3536
3537 2007-01-21 Borut Razem <borut.razem AT siol.net>
3538
3539         * sim/ucsim/configure.in: introduced macro DD_COPT_NO_IGNORE,
3540           use -fPIC or -fpic if they are supported and not ignored
3541         * src/SDCCval.c: fixed bug introduced by me in rev. #4577
3542         * support/cpp2/libcpp/lex.c: fixed gcc 4.1.1 warnings
3543
3544 2007-01-20 Borut Razem <borut.razem AT siol.net>
3545
3546         * src/SDCC.lex, src/SDCCmain.c, sdc/SDCCglobl.h, doc/sdccman.lyx:
3547           implemented RFE #1470316: allow "$" in variable names
3548
3549 2007-01-20 Raphael Neider <rneider AT web.de>
3550
3551         * device/include/pic/pic14regs.h: reverted accidental wipe of the file
3552
3553 2007-01-20 Raphael Neider <rneider AT web.de>
3554
3555         * device/lib/pic/libdev/devices.txt: device list for mkall.sh
3556         * device/lib/pic/libdev/mkall.sh: script to rebuild all device libs
3557         * device/lib/pic/libdev/pic14ports.txt: device PORT specifications
3558         * support/scripts/inc2h.pl: fixed major .inc parsing bugs,
3559           applied patch from Robert Tate (#1629249) to add PORTs and TRISs
3560         * device/lib/pic/libdev/pic*.c,
3561         * device/include/pic/pic*.h: regenerated with enhanced inc2h.pl
3562         * device/lib/pic/libdev/Makefile.in: show progress
3563
3564 2007-01-19 Bernhard Held <bernhard AT bernhardheld.de>
3565
3566         * doc/sdccman.lyx: updated "configure options" for autoconf 2.6
3567         * support/scripts/sdcc_cygwin_mingw32,
3568         * support/scripts/sdcc_mingw32,
3569         * support/scripts/build.mak: replaced --datadir by --datarootdir for
3570         conformance with autoconf 2.6
3571
3572 2007-01-19 Raphael Neider <rneider AT web.de>
3573
3574         * src/pic/device.c (register_map): fixed list construction
3575         * src/pic/gen.c (genDivOneByte,genModOneByte): accept result > 1 byte,
3576           (genMod): removed case for genModbits,
3577           (genModbits): removed as now unused/unimplemented
3578         * src/pic/glue.c (picglue): prevent name clash with sources 'init.c'
3579
3580 2007-01-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3581
3582         * support/regression/tests/swap.c: added in response to #1638622
3583         * doc/sdccman.lyx: synced version, minor changes
3584
3585 2007-01-18 Borut Razem <borut.razem AT siol.net>
3586
3587         * SDCClabel.c: fixed bug #1638651: wrong linenumber presented in warning,
3588           thanks to Gunther Jehle
3589         * src/asm.c: don't die if the file drfined in #line couldn't be opened
3590         * src/SDCC.lex, src/SDCCglobal.h, src/SDCCicode.c, src/SDCCsymt.c,
3591           src/SDCCval.c: removed redundant definitions of currFname and mylineno;
3592           use filename in lineno instead.
3593         * SDCCast.c: removed MSVC warning C4018: '==' : signed/unsigned mismatch,
3594           print the file name in ast_print()
3595
3596 2007-01-18 Borut Razem <borut.razem AT siol.net>
3597
3598         * support/Util/dbuf_string.c: removed (PTR) cast since it is not
3599           defined in MSVC
3600         * src/SDCC.lex: stringLiteral() returns const char pointer,
3601           EOF detection in stringLiteral(), fixed asmbuf memory leak,
3602           fixed column counting
3603         * src/SDCCval.[ch]: constVal(), value *strVal() and charVal()
3604           accept const char pointer as parameter
3605         * src/SDCCdwarf2.c: corrected buffer size
3606
3607 2007-01-17 Borut Razem <borut.razem AT siol.net>
3608
3609         * support/Util/dbuf_string.c: fixed for amd64
3610
3611 2007-01-15 Borut Razem <borut.razem AT siol.net>
3612
3613         * src/pic16/ralloc.c, src/pic/ralloc.c, src/SDCC.y:
3614           removed terminal symbol ELIPSIS, since it was never generated by the
3615           lexer and it was wrongly used in parameter_identifier_list rule
3616
3617 2007-01-15 Raphael Neider <rneider AT web.de>
3618
3619         * doc/sdccman.lyx: updated PIC14/16 command line args, updated PIC14
3620             code page and data banking description
3621         * src/pic/genarith.c,
3622         * src/pic/gen.h: removed bit arithmetic functions,
3623             updated exit(1) to exit(EXIT_FAILURE)
3624         * device/lib/pic16/libsdcc/stack/stack.S: default to 256 byte stack
3625         * device/include/pic16/pic18f2455.h,
3626         * device/lib/pic16/libdev/pic18f2455.c: added PORTD, LATD, LATE,
3627             TRISD and TRISE, fixed/added some bit names
3628         * device/lib/pic16/libdev/pic18f{2550,4550,4455}.c,
3629         * device/include/pic16/pic18f{2550,4550,4455}.h: simply include
3630             updated pic18f2455.{c,h} instead of duplicating them
3631
3632 2007-01-14 Borut Razem <borut.razem AT siol.net>
3633
3634         * as/mcs51/asnoice.c, as/hc08/asnoice.c: fixed bug #1447412:
3635           Cannot debug files that contain spaces in the path name
3636           by converting spaces in asm file name to underscores
3637
3638 2007-01-13 Borut Razem <borut.razem AT siol.net>
3639
3640         * doc/sdccman.lyx: fixed format errors
3641
3642 2007-01-10 Borut Razem <borut.razem AT siol.net>
3643
3644         * src/SDCC.lex, src/SDCCmain.c: fixed bug #1631895:
3645           codeseg/constseg #pragma fail
3646         * suppoprt/cpp2/Makefile.bcc: reenable Borland C compilation
3647         * suppoprt/cpp2/configure.in, suppoprt/cpp2/libcpp/lex.c,
3648           suppoprt/cpp2/Makefile.in, suppoprt/cpp2/sdcpp-opts,
3649           suppoprt/cpp2/sdcpp.[ch]: house cleaning
3650
3651 2007-01-09 Borut Razem <borut.razem AT siol.net>
3652
3653         * get rid of diagnistic.[ch], pretty-print.[ch],
3654           c-pretty-print.[ch], ... used just for error, warning, ...
3655           message formatting
3656         * suppoprt/cpp2/pretty-print.[ch], suppoprt/cpp2/diagnostic.[ch],
3657           suppoprt/cpp2/diagnostic.def, suppoprt/cpp2/input.h,
3658           suppoprt/cpp2/pretty-print.[ch]:
3659           removed
3660         * suppoprt/cpp2/Makefile.in, suppoprt/cpp2/opts.c,
3661           suppoprt/cpp2/sdcpp-opts.c, suppoprt/cpp2/sdcpp.[ch],
3662           suppoprt/cpp2/sdcpp.dsp:
3663           changed
3664
3665 2007-01-08 Maarten Brock <sourceforge.brock AT dse.nl>
3666
3667         * device/lib/printf_large.c (output_float): removed recursion,
3668           use smaller buffer on stack for mcs51,
3669           fixed bug printing 1.96
3670         * support/regression/tests/snprintf.c: added test
3671
3672 2007-01-07 Borut Razem <borut.razem AT siol.net>
3673
3674         * use dynamic memory buffers instead temporary files
3675         * support/Util/dbuf_string.c, support/Util/dbuf_string.h:
3676           added
3677         * src/Makefile.in, src/SDCC.lex, src/SDCCast.c, src/SDCCast.h,
3678           src/SDCCcse.c, src/SDCCglobl.h, src/SDCCglue.c, src/SDCCglue.h,
3679           src/SDCCicode.c, src/SDCCicode.h, src/SDCCmain.c, src/SDCCmem.c,
3680           src/SDCCmem.h, src/SDCCpeeph.c, src/SDCCpeeph.h, src/SDCCsymt.c,
3681           src/SDCCsymt.h, src/SDCCutil.c, src/asm.c, src/asm.h, src/avr/gen.c,
3682           src/avr/main.c, src/ds390/gen.c, src/ds390/main.c, src/hc08/gen.c,
3683           src/hc08/main.c, src/izt/gen.c, src/mcs51/gen.c, src/mcs51/main.c,
3684           src/pic/device.c, src/pic/gen.c, src/pic/glue.c, src/pic/main.c,
3685           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/glue.c,
3686           src/pic16/main.c, src/pic16/ralloc.c, src/port.h, src/src.dsp,
3687           src/xa51/gen.c, src/xa51/main.c, src/z80/gen.c, src/z80/main.c,
3688           support/Util/dbuf.c, support/Util/dbuf.h:
3689           modified
3690         * .version, sdcc.spec: bumped version to 2.6.4
3691
3692 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
3693
3694         * src/port.h: added TARGET_Z80_LIKE macro
3695         * src/SDCCmain.c (linkEdit): use TARGET_Z80_LIKE,
3696           output PSEG location if --xram-loc or --xstack-loc was used
3697         * as/link/mcs51/lkarea.c (lnksect2): set segment address afterwards
3698
3699 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
3700
3701         * as/as_gbz80.dsp, as/z80/as_gbz80.dsp,
3702         * as/as_z80.dsp,   as/z80/as_z80.dsp,
3703         * as/asx8051.dsp,  as/mcs51/asx8051.dsp,
3704         * sdcc.dsw: moved project files into subdir
3705         * as/hc08/as_hc08.dsp,
3706         * as/hc08/Makefile.bcc,
3707         * as/hc08/Makefile.in,
3708         * as/mcs51/Makefile.bcc,
3709         * as/mcs51/Makefile.in,
3710         * as/z80/Makefile.bcc,
3711         * as/z80/Makefile.in,
3712         * as/link/mcs51/Makefile.bcc: use as/strcmpi.c
3713         * as/hc08/asm.h,
3714         * as/mcs51/asm.h,
3715         * as/z80/asm.h: added as_strcmpi() and as_strncmpi() prototypes
3716         * as/hc08/asmain.c,
3717         * as/hc08/assym.c,
3718         * as/mcs51/asmain.c,
3719         * as/mcs51/assym.c,
3720         * as/z80/assym.c: removed include "strcmpi.h"
3721         * as/hc08/strcmpi.c,
3722         * as/hc08/strcmpi.h,
3723         * as/mcs51/strcmpi.c,
3724         * as/mcs51/strcmpi.h,
3725         * support/Util/strcmpi.c,
3726         * support/Util/strcmpi.h: removed files
3727         * as/strcmpi.c: added as_strncmpi()
3728
3729 2007-01-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3730
3731         * sdcc.dsw: Added some dependencies on project config.dsp
3732
3733 2007-01-05 Maarten Brock <sourceforge.brock AT dse.nl>
3734
3735         * as/link/mcs51/lkarea.c (lnkarea2, lnksect2): replaced [di]seg_ap->a_addr
3736           with [di]ram_start to fix a regresion
3737
3738 2007-01-03 Bernhard Held <bernhard AT bernhardheld.de>
3739
3740         * configure.in: added missing mcs51 in status output
3741         * Makefile.in: add support/regression to SDCC_EXTRA to distclean this
3742         directory
3743         * debugger/mcs51/clean.mk (distclean): remove config.h
3744         * src/clean.mk (clean): remove SDCCy.c, SDCCy.h, SDCClex.c
3745         * support/cpp2/Makefile.in (clean): remove s-options, optionlist,
3746         options.h, s-options-h and options.c
3747         * support/cpp2/clean.mk: unused, removed
3748         * Makefile.common.in,
3749         * main_in.mk,
3750         * as/Makefile.in,
3751         * as/hc08/Makefile.in,
3752         * as/hc08/clean.mk,
3753         * as/mcs51/Makefile.in,
3754         * as/mcs51/clean.mk,
3755         * as/z80/clean.mk,
3756         * as/z80/conf.mk,
3757         * as/z80/Makefile.in,
3758         * as/z80/clean.mk,
3759         * as/link/Makefile.in,
3760         * as/link/hc08/Makefile.in,
3761         * as/link/hc08/clean.mk,
3762         * as/link/mcs51/Makefile.in,
3763         * as/link/mcs51/clean.mk,
3764         * as/link/z80/Makefile.in,
3765         * as/link/z80/clean.mk,
3766         * as/link/z80/conf.mk,
3767         * debugger/mcs51/Makefile.in,
3768         * debugger/mcs51/clean.mk,
3769         * device/include/Makefile.in,
3770         * device/lib/Makefile.in,
3771         * device/lib/mcs51/Makefile.in,
3772         * device/lib/pic/Makefile.in,
3773         * device/lib/pic/Makefile.common.in,
3774         * device/lib/pic/Makefile.subdir,
3775         * device/lib/pic/Makefile.rules,
3776         * device/lib/pic16/libio/Makefile.in,
3777         * device/lib/pic16/Makefile.subdir,
3778         * device/lib/pic16/libdev/Makefile.in,
3779         * device/lib/pic16/Makefile.rules,
3780         * device/lib/pic16/Makefile.common.in,
3781         * sim/ucsim/avr.src/Makefile.in,
3782         * sim/ucsim/main_in.mk,
3783         * sim/ucsim/cmd.src/Makefile.in,
3784         * sim/ucsim/doc/Makefile.in,
3785         * sim/ucsim/gui.src/Makefile.in,
3786         * sim/ucsim/gui.src/obsolete/portmon.src/Makefile.in,
3787         * sim/ucsim/gui.src/serio.src/Makefile.in,
3788         * sim/ucsim/hc08.src/Makefile.in,
3789         * sim/ucsim/libltdl/Makefile.in,
3790         * sim/ucsim/s51.src/Makefile.in,
3791         * sim/ucsim/sim.src/Makefile.in,
3792         * sim/ucsim/sim.src/conf.mk,
3793         * sim/ucsim/xa.src/Makefile.in,
3794         * sim/ucsim/z80.src/Makefile.in,
3795         * src/Makefile.in,
3796         * src/clean.mk,
3797         * src/port.mk,
3798         * support/cpp2/Makefile.in,
3799         * support/librarian/Makefile.in,
3800         * support/librarian/clean.mk,
3801         * support/makebin/Makefile.in,
3802         * support/makebin/clean.mk,
3803         * support/packihx/Makefile.in,
3804         * support/regression/Makefile.in,
3805         * support/regression/ports/ds390/spec.mk,
3806         * support/regression/ports/gbz80/spec.mk,
3807         * support/regression/ports/hc08/spec.mk,
3808         * support/regression/ports/mcs51/spec.mk,
3809         * support/regression/ports/mcs51-large/spec.mk,
3810         * support/regression/ports/mcs51-medium/spec.mk,
3811         * support/regression/ports/mcs51-xstack-auto/spec.mk,
3812         * support/regression/ports/pic14/spec.mk,
3813         * support/regression/ports/pic16/spec.mk,
3814         * support/regression/ports/mcs51-stack-auto/spec.mk,
3815         * support/regression/ports/ucz80/spec.mk,
3816         * support/regression/ports/xa51/spec.mk,
3817         * support/regression/ports/z80/spec.mk: fixed for autoconf 2.6x by
3818         adding a slash after $(top_builddir) and/or adding @datarootdir@
3819         * configure.in,
3820         * debugger/mcs51/configure.in,
3821         * device/lib/pic/configure.in,
3822         * device/lib/pic16/configure.in,
3823         * sim/ucsim/configure.in,
3824         * support/cpp2/configure.in,
3825         * support/packihx/configure.in: changed AC_PREREQ to 2.60
3826         * configure,
3827         * debugger/mcs51/configure,
3828         * device/lib/pic/configure,
3829         * device/lib/pic16/configure,
3830         * sim/ucsim/configure,
3831         * support/cpp2/configure,
3832         * support/packihx/configure: generated with autoconf 2.60
3833
3834 2007-01-02 Maarten Brock <sourceforge.brock AT dse.nl>
3835
3836         * as/link/hc08/lkihx.c (newArea),
3837         * as/link/hc08/lkrloc.c: renamed newArea() to ihxNewArea()
3838
3839 2007-01-02 Borut Razem <borut.razem AT siol.net>
3840
3841         * doc/sdccman.lyx: documented #pragma sdcc_hash
3842         * support/cpp2/sdcpp.c: allow_naked_hash (value of #pragma sdcc_hash)
3843           initialized to 0
3844         * support/cpp2/c-ppoutput.c: fixed warning: no newline at end of file
3845
3846 2007-01-01 Bernhard Held <bernhard AT bernhardheld.de>
3847
3848         * src/SDCCast.c (createDo): backPatchLabels() needs falseLabel in
3849         empty 'while'-loop to work correctly, see regression test 'while.c'
3850         * support/regression/tests/while.c: added
3851
3852 2007-01-01 Borut Razem <borut.razem AT siol.net>
3853
3854         * support/cpp2/libcpp/directives.c, support/cpp2/libcpp/identifiers.c,
3855           support/cpp2/libcpp/init.c, support/cpp2/libcpp/sdcpp-opts.c,
3856           support/cpp2/libcpp/sdcpp.c:
3857           sdcpp specific pragma/directive/option handling moved to sdcpp.c
3858         * doc/sdccman.lyx: reference to the GCC 4.1.1 CPP Manual
3859         * support/cpp2/libcpp/mkdeps.c: synchronized with GCC CPP 4.1.1
3860
3861 2006-12-31 Borut Razem <borut.razem AT siol.net>
3862
3863         * SDCPP synchronized with GCC CPP release version 4.1.1,
3864           currently the latest release:
3865         * support/cpp2/libcpp, support/cpp2/libcpp/include,
3866           support/cpp2/libcpp/include/cpp-id-data.h
3867           support/cpp2/libiberty/fopen_unlocked.c
3868           support/cpp2/libiberty/md5.c
3869           support/cpp2/md5.h
3870           support/cpp2/opt-functions.awk
3871           support/cpp2/opt-gather.awk
3872           support/cpp2/optc-gen.awk
3873           support/cpp2/opth-gen.awk:
3874           added
3875         * support/cpp2/Makefile.in, support/cpp2/auto-host_vc_in.h,
3876           support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
3877           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
3878           support/cpp2/c-pretty-print.h, support/cpp2/cppdefault.c,
3879           support/cpp2/cppdefault.h, support/cpp2/diagnostic.c,
3880           support/cpp2/diagnostic.h, support/cpp2/except.h,
3881           support/cpp2/hwint.h, support/cpp2/input.h,
3882           support/cpp2/intl.h, support/cpp2/move-if-change,
3883           support/cpp2/opts.c, support/cpp2/opts.h,
3884           support/cpp2/output.h, support/cpp2/prefix.c,
3885           support/cpp2/prefix.h, support/cpp2/pretty-print.c,
3886           support/cpp2/pretty-print.h, support/cpp2/sdcpp-opts.c,
3887           support/cpp2/sdcpp.c, support/cpp2/sdcpp.dsp,
3888           support/cpp2/sdcpp.h, support/cpp2/sdcpp.opt,
3889           support/cpp2/sdcppa.dsp, support/cpp2/symcat.h,
3890           support/cpp2/version.c:
3891           modified
3892         * support/cpp2/libcpp/charset.c, support/cpp2/libcpp/directives.c,
3893           support/cpp2/libcpp/errors.c, support/cpp2/libcpp/expr.c,
3894           support/cpp2/libcpp/files.c, support/cpp2/libcpp/identifiers.c,
3895           support/cpp2/libcpp/include/cpplib.h, support/cpp2/libcpp/include/line-map.h,
3896           support/cpp2/libcpp/include/mkdeps.h, support/cpp2/libcpp/include/symtab.h,
3897           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
3898           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/line-map.c,
3899           support/cpp2/libcpp/macro.c, support/cpp2/libcpp/mkdeps.c,
3900           support/cpp2/libcpp/symtab.c, support/cpp2/libcpp/system.h,
3901           support/cpp2/libcpp/traditional.c, support/cpp2/libcpp/ucnid.h,
3902           support/cpp2/libiberty/hashtab.c, support/cpp2/libiberty/hashtab.h:
3903           moved
3904         * support/cpp2/cppcharset.c, support/cpp2/cpperror.c,
3905           support/cpp2/cppexp.c, support/cpp2/cppfiles.c,
3906           support/cpp2/cpphash.c, support/cpp2/cpphash.h,
3907           support/cpp2/cppinit.c, support/cpp2/cpplex.c,
3908           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
3909           support/cpp2/cppmacro.c, support/cpp2/cpptrad.c,
3910           support/cpp2/cppucnid.h, support/cpp2/hashtab.c,
3911           support/cpp2/hashtab.h, support/cpp2/hashtable.c,
3912           support/cpp2/hashtable.h, support/cpp2/line-map.c,
3913           support/cpp2/line-map.h, support/cpp2/mkdeps.c,
3914           support/cpp2/mkdeps.h, support/cpp2/options_vc_in.c,
3915           support/cpp2/options_vc_in.h, support/cpp2/opts.sh,
3916           support/cpp2/system.h:
3917           deleted / moved
3918
3919 2006-12-31 Borut Razem <borut.razem AT siol.net>
3920
3921         * configure.in, configure: fixed bug #1538756: configure dies if bison
3922           and flex are not installed, 2nd try
3923
3924 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
3925
3926         * src/mcs51/peeph.def: renamed rule 400 to 500, moved rule 253.x to
3927         400.x for better code in RFE 899102
3928
3929 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
3930
3931         * src/SDCCpeeph.c (deadMove),
3932         * src/port.h,
3933         * src/mcs51/peep.h: renamed 'op' by 'reg'
3934         * src/mcs51/peep.c (isFunc, isCallerSaveFunc): added,
3935         (scan4op): small change for removeDeadMove(), added support for
3936         'callee saves' and/or PACLL function calls,
3937         (removeDeadMove): added, removes superflous 'mov r%1,%2',
3938         (removeDeadPopPush): renamed from mcs51DeadMove(), common parts
3939         left in new dispatcher mcs51DeadMove()
3940         (mcs51DeadMove): dispatcher for removeDeadPopPush() and new
3941         removeDeadMove()
3942         * src/mcs51/peeph.def: added rule 301 removing superflous 'mov r%1,%2'
3943
3944 2006-12-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3945
3946         * support/cpp2/options_vc_in.h, support/cpp2/options_vc_in.c,
3947           support/cpp2/sdcppa.dsp: create 'options.h' and 'options.c' under MSVC.
3948
3949 2006-12-30 Borut Razem <borut.razem AT siol.net>
3950
3951         * support/cpp2/spacs.h: deleted from svn
3952         * configure.in, configure: fixed bug #1538756: configure dies if bison
3953           and flex are not installed
3954
3955 2006-12-29 Maarten Brock <sourceforge.brock AT dse.nl>
3956
3957         * src/z80/gen.c (assignResultValue): fixed bug when registers overlap,
3958           with this z80 passes printf float test when enabled
3959         * support/regression/tests/bug1057979.c: typo disabled ds390 float test
3960
3961 2006-12-28 Borut Razem <borut.razem AT siol.net>
3962
3963         * support/cpp2/config.in, support/cpp2/configure.in,
3964           support/cpp2/configure, support/cpp2/Makefile.in:
3965           fix for the solaris build
3966
3967 2006-12-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3968
3969         * src/SDCC.y (type_specifier2, pointer),
3970         * src/SDCCsymt.h,
3971         * src/SDCCsymt.c (mergeSpec, checkSClass),
3972         * support/Util/SDCCerr.c,
3973         * support/Util/SDCCerr.h: Parse and validate the restrict keyword
3974         * support/valdiag/valdiag.py: Allow test cases to specify
3975           required language standard
3976         * support/valdiag/tests/restrict.c: New file to test restrict keyword
3977         * support/valdiag/tests/tentdecl.c: Supress empty source file error
3978
3979 2006-12-27 Borut Razem <borut.razem AT siol.net>
3980
3981         * support/cpp2/cppmain.c, support/cpp2/mbchar.[ch]: removed
3982         * support/cpp2/libiberty/Makefile.in, support/cpp2/libiberty/sdcpp.dsp:
3983           mbchar removed
3984         * support/cpp2/libiberty/getpwd.c, support/cpp2/sdcpp.h:
3985           fixed for borland C
3986         * support/cpp2/libiberty/Makefile.bcc: updated
3987         * src/pic16/main.c: fixed #pragma udata handling
3988         * src/mcs51/mcs51.dsp: added peep.[ch] to the project
3989
3990 2006-12-26 Bernhard Held <bernhard AT bernhardheld.de>
3991
3992         * src/SDCCpeeph.c: made labelHashEntry global,
3993         made pcDistance, FBYNAME static,
3994         (pcDistance): made static, use isComment and isLabel,
3995         (deadMove): added,
3996         (getLabelRef): added, extracted from labelRefCount(),
3997         (labelRefCount): use new getLabelRef(),
3998         (callFuncByName): made static, added deadMove,
3999         use isComment and isLabel,
4000         (newPeepRule): made static, set isLabel,
4001         (isLabelDefinition): added parameter isPeepRule to allow '%' in
4002         labels from peephole rules,
4003         (buildLabelRefCountHash): speed up by running isLabelDefinition() only
4004         when isComment or isLabel is set
4005         * src/SDCCpeeph.h: added "isLabel" and "visited" to struct lineNode,
4006         added labelHashEntry, isLabelDefinition, labelHash and getLabelRef
4007         to make them global
4008         * src/mcs51/peep.h: added
4009         * src/mcs51/peep.c: added, implements mcs51DeadMove()
4010         * src/port.h: added peep->deadMove to port structure
4011         * src/mcs51/main.c: initialize peep->deadMove with mcs51DeadMove
4012         * src/mcs51/peeph.def: renumbered rule 300 to 400, added new rule 300
4013         deadMove, finally removed no. 1 and 2
4014         * src/mcs51/gen.c,
4015         * src/pic/gen.c,
4016         * src/z80/gen.c,
4017         * src/z80/ralloc.c,
4018         * src/pic16/gen.c,
4019         * src/ds390/gen.c,
4020         * src/hc08/gen.c: mark lines with isComment or isLabel
4021         * sim/ucsim/s51.src/uc390hw.cc: don't waist 65535 ticks before CKRDY
4022         * .version,
4023         * sdcc.spec: bumped version to 2.6.3
4024
4025 2006-12-26 Borut Razem <borut.razem AT siol.net>
4026
4027         * support/cpp2/Makefile.in: added dependency on options.h
4028         * configure: regenerated
4029         * support/cpp2/sdcpp.opt, support/cpp2/move-if-change: svn:eol-style native
4030         * support/cpp2/Makefile.in: added vasprintf.c
4031
4032 2006-12-25 Borut Razem <borut.razem AT siol.net>
4033
4034         * SDCPP synchronized with GCC CPP release version 3.4.6,
4035           the latest release before 4.x:
4036         * support/cpp2/Makefile.in, support/cpp2/config.h,
4037           support/cpp2/configure, support/cpp2/configure.in,
4038           support/cpp2/cppdefault.c, support/cpp2/cppdefault.h,
4039           support/cpp2/cpperror.c, support/cpp2/cppexp.c,
4040           support/cpp2/cppfiles.c, support/cpp2/cpphash.c,
4041           support/cpp2/cpphash.h, support/cpp2/cppinit.c,
4042           support/cpp2/cpplex.c, support/cpp2/cpplib.c,
4043           support/cpp2/cpplib.h, support/cpp2/cppmacro.c,
4044           support/cpp2/cpptrad.c, support/cpp2/except.h,
4045           support/cpp2/hashtable.c, support/cpp2/hashtable.h,
4046           support/cpp2/hwint.h, support/cpp2/intl.h,
4047           support/cpp2/line-map.c, support/cpp2/line-map.h,
4048           support/cpp2/mkdeps.c, support/cpp2/mkdeps.h,
4049           support/cpp2/output.h, support/cpp2/prefix.c,
4050           support/cpp2/prefix.h, support/cpp2/sdcpp.dsp,
4051           support/cpp2/system.h, support/cpp2/version.c:
4052           modified
4053         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
4054           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
4055           support/cpp2/c-pretty-print.h, support/cpp2/cppcharset.c,
4056           support/cpp2/cppucnid.h, support/cpp2/diagnostic.c,
4057           support/cpp2/diagnostic.def, support/cpp2/diagnostic.h,
4058           support/cpp2/hashtab.c, support/cpp2/hashtab.h,
4059           support/cpp2/input.h, support/cpp2/libiberty/getpwd.c,
4060           support/cpp2/libiberty/vasprintf.c, support/cpp2/libiberty/xmemdup.c,
4061           support/cpp2/move-if-change, support/cpp2/opts.c,
4062           support/cpp2/opts.h, support/cpp2/opts.sh,
4063           support/cpp2/pretty-print.c, support/cpp2/pretty-print.h,
4064           support/cpp2/sdcpp.opt, support/cpp2/sdcpp-opts.c,
4065           support/cpp2/win32, support/cpp2/win32/dirent.c,
4066           support/cpp2/win32/dirent.h:
4067           added
4068         * support/cpp2/sdcpp.c: renamed from sdcppmain.c
4069         * support/cpp2/sdcpp.h: renamed from sdcc.h
4070         * sdcppinit.c: deleted
4071
4072 2006-12-23 Borut Razem <borut.razem AT siol.net>
4073
4074         * support/cpp2/cpphash.h, support/cpp2/cpplex.c,
4075           support/cpp2/cpplib.[ch], support/cpp2/sdcppinit.c, doc/sdccman.lyx,
4076           preproc.c: an other try to fix bug #982435: introduced
4077           -pedantic-parse-number command line option and pedantic_parse_number
4078           pragma
4079
4080 2006-12-21 Maarten Brock <sourceforge.brock AT dse.nl>
4081
4082         * as/link/mcs51/lkarea.c (lnkarea2): handle absolute areas, restructured
4083            BSEG handling,
4084           (lnksect2): use --data-loc and --idata-loc as lower bound for ramstart,
4085            corrected overlayed areax addresses, warn about memory overlaps
4086         * as/mcs51/asmain.c (asmbl): create a new area for every .org directive
4087         * src/avr/main.c,
4088         * src/ds390/main.c,
4089         * src/hc08/main.c,
4090         * src/mcs51/main.c,
4091         * src/pic16/main.c,
4092         * src/pic/main.c,
4093         * src/xa51/main.c,
4094         * src/z80/main.c,
4095         * src/port.h: added xabs_name and iabs_name
4096         * src/SDCCglue.c (emitRegularMap): allocate for absolutes with initializer
4097           (glue, emitMaps): create and emit maps d_abs and i_abs
4098         * src/SDCCglue.h: cosmetic changes
4099         * src/SDCCmain.c (setDefaultOptions): idata can start below 0x80
4100         * src/SDCCmem.h,
4101         * src/SDCCmem.c (initMem): added x_abs, i_abs and d_abs
4102           (allocDefault): put absolute, initialized globals in them
4103         * support/regression/tests/absolute.c: added absolute bdata test
4104         * device/lib/printf_large.c (output_float): moved fpBuffer to stack/xdata
4105
4106 2006-12-20 Borut Razem <borut.razem AT siol.net>
4107
4108         * support/cpp2/cpphash.h, support/cpp2/cpplex.c: fixed bug #982435
4109         * support/regression/tests/preproc.c: renamed from bug-1351710.c,
4110           added regression test for bug #982435
4111
4112 2006-12-18 Borut Razem <borut.razem AT siol.net>
4113
4114         * src/SDCCutil.c: fixed a bug in (get_pragma_token)
4115         * src/pic16/main.c, src/SDCC.lex, src/z80/main.c:
4116           small cosmetic changes
4117         * src/SDCC.lex: (stringLiteral) fixed bug #1351710
4118         * support/regression/tests/bug-1351710.c: added regression test
4119
4120 2006-12-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4121
4122         * doc/sdccman.lyx: added the long missed iCode table
4123           "<where is figure II?>", added links to wiki
4124
4125 2006-12-17 Borut Razem <borut.razem AT siol.net>
4126
4127         * doc/sdccman.lyx, src/pic16/main.c, src/pic/main.c, src/port.h,
4128           src/SDCC.lex, src/SDCCutil.[ch], src/z80/main.c,
4129           support/Util/SDCCerr.[ch]: removed deprecated pragmas,
4130           unified table driven pragma handling, pragma argument type checking
4131         * support/Util/dbuf.c: (dbuf_set_size) allow to set size equal to the
4132           current one - version 1.1.3
4133         * src/SDCCmain.c: (setParseWithComma) substituted brain damaged strtok
4134
4135 2006-12-13 Raphael Neider <rneider AT web.de>
4136
4137         * src/pic/device.h: removed AssignedMemory structure and macros
4138         * src/pic/device.c: removed global finalMapping (linker assigns
4139             memory locations),
4140           (register_map): add SFRs to remembered memRanges
4141           (addMemRange,isSFR,dump_map,dump_sfr,mapRegister,assignRegister,
4142           assignFixedRegisters,assignRelocatableRegisters): removed,
4143           (setMaxRAM,validAddress): adapted accordingly,
4144           (pic14_hasSharebank,pic14_getSharedStack): only report and use
4145             reasonably sized sharebanks,
4146         * src/pic/ralloc.c (writeUsedRegs): stripped down (remove?),
4147           (allDefsOutOfRange): removed unused code,
4148         * src/pic/main.c (_process_pragma): removed memmap/maxram pragma
4149             handling
4150         * src/pic/pcode.c (register_reassign): removed recursion warning,
4151             fired far too often,
4152         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap): modified
4153             to use existing pic14_stringInSet() to avoid duplicate symbols,
4154             tidied up the code a bit,
4155           (pic14printLocals): added in symmetry to printExterns, replaces
4156             writeUsedRegs more or less,
4157           (picglue): call new pic14_printLocals(),
4158         * device/include/pic/pic*.h: removed #pragma memmap directives,
4159             information gathered from include/pic/pic14devices.txt
4160         * support/scripts/inc2h.pl: do not emit #pragma memmap lines
4161
4162 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
4163
4164         * device/include/mcs51/C8051F520.h: fixed buggy CPT0MX
4165
4166 2006-12-11 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4167
4168         * device/include/mcs51/cc2430.h: fixed missing ';'
4169
4170 2006-12-10 Raphael Neider <rneider AT web.de>
4171
4172         * device/lib/pic16/libc/stdio/vfprintf.c,
4173         * device/lib/pic16/libc/stdio/printf_small.c,
4174         * device/lib/pic16/libc/stdio/printf_timy.c: pop int from stack for
4175           char arguments, as char varargs are cast to int by the caller,
4176           hopefully fixes #1604915 (other device libraries are still affected)
4177
4178 2006-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4179
4180         * src/mcs51/ralloc.c (packRegsForAssign),
4181         * src/hc08/ralloc.c (packRegsForAssign): fixed bug #1605880
4182
4183 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
4184
4185         * device/include/malloc.h: removed init_dynamic_memory
4186         * device/lib/malloc.c: made init_dynamic_memory static and automatically
4187           call it once from malloc. Also use _sdcc_heap[] from _heap.c
4188         * device/lib/_heap.c: new, added, contains _sdcc_heap[]
4189         * device/lib/libsdcc.lib,
4190         * device/lib/Makefile.in,
4191         * support/regression/ports/mcs51-xstack-auto/spec.mk: added _heap.c
4192         * doc/sdccman.lyx: documented use of new _heap.c
4193         * support/regression/tests/malloc.c: removed init_dynamic_memory
4194         * src/cdbFile.c(spacesToUnderscores): new function,
4195           (cdbWriteEndFunction, cdbWriteCLine): use spacesToUnderscores, fixes bug
4196           1068030
4197         * device/include/tinibios.h: removed defines for putchar and getchar
4198         * device/lib/ds390/Makefile.in: added putchar.c
4199         * device/lib/ds390/putchar.c: new, added, fixes bug 1465671
4200
4201 2006-12-09 Borut Razem <borut.razem AT siol.net>
4202
4203         * support/cpp2/sdcc.h: prevent multiple inclusion
4204         * support/cpp2/options.h: deleted
4205
4206 2006-12-08 Borut Razem <borut.razem AT siol.net>
4207
4208         * support/cpp2/sdcc.h: removed x*alloc() macros
4209         * support/cpp2/libiberty.h: uncommented out x*alloc() declarations
4210         * support/cpp2/Makefile.bcc, support/cpp2/Makefile.in,
4211           support/cpp2/sdcpp.sdc: x*alloc files added to the project
4212         * support/cpp2/system.h: moved #include "sdcc.h"
4213         * support/cpp2/libiberty/xexit.c, support/cpp2/libiberty/xmalloc.c,
4214           support/cpp2/libiberty/xstrdup.c, support/cpp2/libiberty/xstrerror.c:
4215           added
4216         * support/cpp2/sdcppinit.c: added -isysroot, -fsigned-char,
4217           -funsigned-char options
4218         * support/cpp2/sdcppmain.c: fixed bug 1611411
4219
4220 2006-12-07 Borut Razem <borut.razem AT siol.net>
4221
4222         * support/cpp2/cpplib.c: reverted sdcpp special handling of _Pragma()
4223           directive
4224
4225 2006-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
4226
4227         * src/SDCCsymt.c (addDecl): fixed bug 1609244
4228         * src/SDCCmain.c (linkEdit): fixed bug 1609279
4229         * doc/sdccman.lyx,
4230         * .version: bumped to 2.6.2 because a) it's been a while
4231           b) the linker sources have moved c) the preprocessor is upgraded
4232
4233 2006-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4234
4235         * support/regression/tests/snprintf.c: some checks
4236         * lib/src/printf_large.c: %bc: read char instead of int from stack
4237
4238 2006-12-03 Maarten Brock <sourceforge.brock AT dse.nl>
4239
4240         * device/include/mcs51/cc2430.h: inserted _XPAGE
4241
4242 2006-12-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4243
4244         * device/include/mcs51/cc2430.h: added
4245
4246 2006-12-02 Maarten Brock <sourceforge.brock AT dse.nl>
4247
4248         * device/include/asm/default/features.h,
4249         * device/include/asm/ds390/features.h,
4250         * device/include/mcs51/at89s53.h,
4251         * device/include/ser.h,
4252         * device/include/ser_ir.h,
4253         * device/include/serial.h: changed keywords to double underscore variants,
4254           fixes bug 1590261 some more, thanks Steven Borley
4255
4256 2006-12-01 Raphael Neider <rneider AT web.de>
4257
4258         * src/pic/pcode.c (register_reassign): do not crash on recursive code
4259           but emit warning (recursion is not supported for pic14)
4260
4261 2006-11-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4262
4263         * src/mcs51/peeph.def: added 101.a,b (moves to int/long xdata)
4264         * doc/sdccman.lyx: various small changes, acknowledged Sourceforge
4265
4266 2006-11-30 Raphael Neider <rneider AT web.de>
4267
4268         * src/pic/device.c (dump_sfr): always emit symbols
4269         * src/pic/glue.c (pic14printPublics): fixed typo
4270
4271 2006-11-30 Raphael Neider <rneider AT web.de>
4272
4273         * src/pic/device.c (create_pic,ram_map): add memRange entries to PIC
4274           (pic14_getSharebankSize, pic14_getSharebankAddress): replaced with
4275           (pic14_hasSharebank,pic14_isShared,pic14_allRAMShared,
4276            pic14_getSharedStack): NEW, evaluate the memRange entries to locate
4277            a sharebank, use a non-shared bank for the stack if none available
4278         * src/pic/device.h (struct memRange): added linked list next field,
4279           added prototypes for above functions
4280         * src/pic/ralloc.c (initStack): handle shared and banked stacks,
4281           (typeRegWithIdx): accept fixed and unfixed stack registers
4282         * src/pic/pcode.c (pCodeInitRegisters): use new functions to create
4283           the stack, handle shared and banked stack (except for WSAVE),
4284           (insertBankSel): removed useless optimization (will never fire),
4285           (FixRegisterBanking): added optimization for devices with only one
4286           possibly aliased bank of memory, like 16f84
4287         * src/pic/glue.c (pic14_constructAbsMap): back to udata_ovr, as some
4288           devices have no SHAREBANK in the linker script
4289         * device/include/pic/pic14devices.txt: documented memmap
4290         * device/lib/pic/libdev/Makefile.in: removed --stack-loc again
4291
4292 2006-11-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4293
4294         * src/hc08/gen.c (transferRegReg, loadRegFromAop, forceStackedAop,
4295           storeRegToAop, freeAsmop, genPlusIncr, genPlus, genPointerGetSetOfs,
4296           genAnd, genOr, genXor, genLeftShiftLiteral, genRightShiftLiteral,
4297           genhc08Code): switched most of the D (debug) macros to DD (detailed
4298           debug) macros to better control clutter in the generated .asm file.
4299         * src/hc08/gen.c: (forceStackedAop, genUminus, genLeftShift,
4300           genRightShift): fixed bug with non-constant bit shift stored to
4301           a volatile result (SF Open Discussion forum thread #1616749).
4302           Single byte case is not yet optimized.
4303
4304 2006-11-28 Maarten Brock <sourceforge.brock AT dse.nl>
4305
4306         * device/include/asm/mcs51/features.h,
4307         * device/include/malloc.h,
4308         * device/include/stdio.h: changed keywords to double underscore variants,
4309           fixes bug 1590261
4310
4311 2006-11-27 Borut Razem <borut.razem AT siol.net>
4312
4313         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
4314           support/cpp2/Makefile.in, support/cpp2/cppfiles.c,
4315           support/cpp2/output.h, support/cpp2/cppinit.c,
4316           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
4317           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
4318           support/cpp2/cppdefault.c, support/cpp2/system.h,
4319           support/cpp2/cpphash.h, support/cpp2/cpplex.c,
4320           support/cpp2/cppdefault.h, support/cpp2/mbchar.c,
4321           support/cpp2/prefix.c, support/cpp2/except.h,
4322           support/cpp2/hwint.h, support/cpp2/cppmacro.c,
4323           support/cpp2/line-map.h, support/cpp2/sdcpp.dsp,
4324           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
4325           support/cpp2/version.c, support/cpp2/cppmain.c,
4326           support/cpp2/version.h, support/cpp2/hashtable.c,
4327           support/cpp2/cpperror.c:
4328           synchronized with GCC CPP release version 3.3.6,
4329           the latest where cppmain.c still exists.
4330         * support/cpp2/cpptrad.c, support/cpp2/sdcppmain.c,
4331           support/cpp2/sdcppinit.c: added
4332
4333 2006-11-27 Borut Razem <borut.razem AT siol.net>
4334
4335         * support/cpp2/cpplex.c:
4336           fixed _asm ... _endasm handling bug, introduce with GCC CPP
4337           synchronization
4338         * support/cpp2/cpplib.c: removed definitions of unused variables
4339
4340 2006-11-26 Borut Razem <borut.razem AT siol.net>
4341
4342         * support/cpp2/libiberty.h: commented out x*alloc() declarations
4343           since they are redefined by macros in support/cpp2/sdcc.h
4344         * support/cpp2/sdcc.h: x*alloc macro redefinition
4345
4346 2006-11-25 Borut Razem <borut.razem AT siol.net>
4347
4348         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
4349           support/cpp2/configure, support/cpp2/Makefile.in,
4350           support/cpp2/cppfiles.c, support/cpp2/output.h,
4351           support/cpp2/cppinit.c, support/cpp2/cpplib.c,
4352           support/cpp2/config.h, support/cpp2/cpplib.h,
4353           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
4354           support/cpp2/cppdefault.c, support/cpp2/config.in,
4355           support/cpp2/system.h, support/cpp2/cpplex.c,
4356           support/cpp2/cpphash.h, support/cpp2/mbchar.c,
4357           support/cpp2/cppdefault.h, support/cpp2/prefix.c
4358           support/cpp2/hwint.h, support/cpp2/mbchar.h,
4359           support/cpp2/prefix.h, support/cpp2/cppmacro.c,
4360           support/cpp2/configure.in, support/cpp2/intl.h,
4361           support/cpp2/sdcpp.dsp, support/cpp2/acconfig.h,
4362           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
4363           support/cpp2/version.c, support/cpp2/cppmain.c,
4364           support/cpp2/ansidecl.h, support/cpp2/libiberty.h,
4365           support/cpp2/hashtable.c, support/cpp2/aclocal.m4,
4366           support/cpp2/cpperror.c,
4367           support/cpp2/libiberty/safe-ctype.c,
4368           support/cpp2/libiberty/safe-ctype.h,
4369           support/cpp2/libiberty/splay-tree.c,
4370           support/cpp2/libiberty/obstack.c,
4371           support/cpp2/libiberty/lbasename.c,
4372           support/cpp2/libiberty/splay-tree.h,
4373           support/cpp2/libiberty/obstack.h:
4374           synchronized with GCC CPP release version 3.2.3,
4375           the latest before integration of cpp into gcc
4376         * support/cpp2/except.h, support/cpp2/line-map.c,
4377           support/cpp2/line-map.h,
4378           support/cpp2/libiberty/hex.c,
4379           support/cpp2/libiberty/concat.c,
4380           support/cpp2/libiberty/filenames.h: added
4381         * support/cpp2/intl.c: deleted
4382
4383 2006-11-24 Borut Razem <borut.razem AT siol.net>
4384
4385         * src/SDCC.y: enabled compilation of empty source file
4386         * support/Util/SDCCerr.[ch]: added sdcc warning 190 -
4387           "ISO C forbids an empty source file"
4388         * device/lib/_startup.c, device/lib/printf_tiny.c: disable warning 190
4389           if all the code is ifdefed out.
4390
4391 2006-11-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4392
4393         * src/hc08/gen.c (genPcall): fix for bug #1601032
4394
4395 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
4396
4397         * device/include/mcs51/c8051f000.h, device/include/mcs51/C8051F000.h,
4398         * device/include/mcs51/c8051f018.h, device/include/mcs51/C8051F018.h,
4399         * device/include/mcs51/c8051f020.h, device/include/mcs51/C8051F020.h,
4400         * device/include/mcs51/c8051f040.h, device/include/mcs51/C8051F040.h,
4401         * device/include/mcs51/c8051f060.h, device/include/mcs51/C8051F060.h,
4402         * device/include/mcs51/c8051f120.h, device/include/mcs51/C8051F120.h,
4403         * device/include/mcs51/c8051f200.h, device/include/mcs51/C8051F200.h,
4404         * device/include/mcs51/c8051f300.h, device/include/mcs51/C8051F300.h,
4405         * device/include/mcs51/c8051f310.h, device/include/mcs51/C8051F310.h,
4406         * device/include/mcs51/c8051f320.h, device/include/mcs51/C8051F320.h,
4407         * device/include/mcs51/c8051f326.h, device/include/mcs51/C8051F326.h,
4408         * device/include/mcs51/c8051f330.h, device/include/mcs51/C8051F330.h,
4409         * device/include/mcs51/c8051f340.h, device/include/mcs51/C8051F340.h,
4410         * device/include/mcs51/c8051f350.h, device/include/mcs51/C8051F350.h,
4411         * device/include/mcs51/c8051f410.h, device/include/mcs51/C8051F410.h:
4412           Renamed to all upper case as per the standard set by SiLabs
4413
4414 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
4415
4416         * device/include/mcs51/C8051F520.h: new, added
4417         * device/include/mcs51/compiler.h: added link about predefined macros
4418
4419 2006-11-23 Raphael Neider <rneider AT web.de>
4420
4421         * src/regression/Makefile: add -L path to fresh library
4422         * src/regression/simulate: emphasize FAILED output
4423         * src/regression/create_stc: output _failures from gpsim
4424         * src/regression/compare4.c,
4425         * src/regression/rotate6.c: fixed char literals,
4426           all compile, all run =8-D
4427
4428         * src/pic/pcode.h: added isPCASMDIR macro
4429         * src/pic/gen.c (genAnd): fixed bit offset
4430         * src/pic/ralloc.c (allocNewDirReg,allocDirReg,allocRegByName,
4431           packBits): unified register numbering schemes,
4432           (newReg): do not insert stack registers into hash table,
4433           (initStack): unpinned pseudo stack, simplified,
4434           (typeRegWithIdx): fixed retrieval of stack registers,
4435         * src/pic/pcode.c (addpCodeComment,sameBank): added,
4436           (pCodeReplace): removed invalid assertion,
4437           (insertPCodeInstruction): fixed newly added labels,
4438           (insertBankSwitch,BankSelect,IsBankChange,DoBankSelect,
4439           FixRegisterBankingInFlow,compareBankFlow,FixBankFlow,
4440           DumpFlow): removed unsed (broken?) code,
4441           (insertBankSel): prevent STATUS from being BANKSELed,
4442           (FixRegisterBanking): rewritten from scratch, implemented generic
4443             optimizations (suppress BANKSELs to same register and to registers
4444             present in all banks),
4445           (AnalyzeBanking): update flow after BANKSELection
4446
4447         * src/pic/glue.c (pic14_constructAbsMap): emit pseudo stack in
4448             sharebank, let linker place it, mark STKxx symbols as emitted
4449
4450 2006-11-21 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4451
4452         * src/regression/arrays.c,
4453         * src/regression/bank1.c,
4454         * src/regression/bool2.c,
4455         * src/regression/compare7.c,
4456         * src/regression/compare8.c,
4457         * src/regression/compare9.c,
4458         * src/regression/compare10.c,
4459         * src/regression/configword.c,
4460         * src/regression/for.c,
4461         * src/regression/mult1.c,
4462         * src/regression/pointer1.c,
4463         * src/regression/rotate6.c,
4464         * src/regression/string1.c,
4465         * src/regression/struct1.c,
4466         * src/regression/Makefile: make PIC14 regression tests run again
4467           (3 fail, 6 won't compile)
4468
4469 2006-11-21 Raphael Neider <rneider AT web.de>
4470
4471         * device/include/pic16/pic18f4550.h,
4472         * device/include/pic16/pic18f4455.h,
4473         * device/lib/pic16/libdev/pic18f4550.c,
4474         * device/lib/pic16/libdev/pic18f4455.c: fixed #1578591 and #1595144
4475         * configure.in: removed superfluous closing bracket
4476
4477 2006-11-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4478
4479         * device/lib/expf.c: Fixed bug 1599523: result of expf(x) is
4480           always positive.
4481
4482 2006-11-21 Raphael Neider <rneider AT web.de>
4483
4484         * src/pic/device.{c,h}: added pic14_getPIC()
4485         * src/pic/gen.c (continueIfTrue,jumpIfTrue): added PIC code,
4486           (genAnd): added PIC code for one case, fixes #1597044
4487         * src/pic/pcode.c (BankSelect): Ohoh, added generic optimization for
4488           SFRs that are present in all banks (e.g., STATUS)
4489
4490 2006-11-20 Raphael Neider <rneider AT web.de>
4491
4492         * src/pic/pcode.c: changed inverted ops for DECFSZ/DECFSZW and
4493           INCFSZ/INCFSZW and declared them as changing Z bit,
4494           (insertPCodeInstruction): correctly invert the above instructions,
4495           fixes #1599333,
4496           (DoBankSelect): don't panic on po_immediates
4497
4498 2006-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
4499
4500         * as/link/aslink.h,
4501         * as/link/mcs51/lkihx.c (newArea),
4502         * as/link/mcs51/lkrloc.c: renamed newArea() to ihxNewArea()
4503         * as/link/mcs51/lkihx.c (ihx): output reset vector as start address
4504
4505 2006-11-11 Raphael Neider <rneider AT web.de>
4506
4507         * src/pic/pcode.c (newpCodeOpBit): search SymbolTab for referenced
4508           bitfield symbols, fixes #1579535 (once more...).
4509
4510 2006-11-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4511
4512         * support/regression/generate-cases.py,
4513         * support/regression/fwk/include/testfwk.h,
4514         * support/regression/fwk/lib/testfwk.c: used code pointers,
4515           (about 50kByte less code generated for mcs51)
4516
4517 2006-11-06 Borut Razem <borut.razem AT siol.net>
4518
4519         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
4520           debugger/mcs51/configure: fixed failed check because the function
4521           rl_function_of_keyseq isn't in Readline 5.2. Thanks to Ilya Goldberg
4522           who submitted the patch for gpsim.
4523         * debugger/mcs51/configure.in: removed the result message
4524         * debugger/mcs51/Makefile.in: fixed the config.status warning
4525           "... seems to ignore the --datarootdir setting"
4526
4527 2006-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
4528
4529         * device/include/mcs51/c8051f020.h,
4530         * device/include/mcs51/c8051f040.h,
4531         * device/include/mcs51/c8051f060.h,
4532         * device/include/mcs51/c8051f120.h: added PS0, fixed bug 1589279
4533         * src/z80/gen.c (gencjneshort),
4534         * src/z80/peeph.def: applied patch 1571373, thanks Philipp Krause
4535
4536 2006-10-31 Borut Razem <borut.razem AT siol.net>
4537
4538         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
4539           debugger/mcs51/configure: get readline version
4540
4541 2006-10-30 Borut Razem <borut.razem AT siol.net>
4542
4543         * debugger/mcs51/sdcdb.c: replaced hardcoded "/" with DIR_SEPARATOR_STRING
4544         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
4545           debugger/mcs51/configure: locate readline even when cross compiling
4546         * support/scripts/sdcc.nsi: include readline5.dll into the setup package
4547
4548 2006-10-29 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4549
4550         * device/include/mcs51/serial_IO.h: putchar() and getchar() using
4551           serial port.
4552
4553 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
4554
4555         * device/include/malloc.h,
4556         * device/lib/calloc.c,
4557         * device/lib/free.c,
4558         * device/lib/malloc.c,
4559         * device/lib/realloc.c: moved definition of struct into sources
4560         * support/regression/tests/malloc.c: use void* for init_dynamic_memory()
4561
4562 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
4563
4564         * as/asx8051.dsp: corrected output directories
4565         * as/link/hc08: new directory for hc08 linker
4566         * as/hc08/aslink.h,             as/link/aslink.h,
4567         * as/hc08/aslink.mak,           as/link/hc08/aslink.mak,
4568         * as/hc08/clean.mk,             as/link/hc08/clean.mk,
4569         * as/hc08/link_hc08.dsp,        as/link/hc08/link_hc08.dsp,
4570         * as/hc08/lkaomf51.c,           as/link/hc08/lkaomf51.c,
4571         * as/hc08/lkarea.c,             as/link/hc08/lkarea.c,
4572         * as/hc08/lkdata.c,             as/link/hc08/lkdata.c,
4573         * as/hc08/lkelf.c,              as/link/hc08/lkelf.c,
4574         * as/hc08/lkihx.c,              as/link/hc08/lkihx.c,
4575         * as/hc08/lklibr.c,             as/link/hc08/lklibr.c,
4576         * as/hc08/lkmain.c,             as/link/hc08/lkmain.c,
4577         * as/hc08/lkmem.c,              as/link/hc08/lkmem.c,
4578         * as/hc08/lkrloc.c,             as/link/hc08/lkrloc.c,
4579         * as/hc08/lks19.c,              as/link/hc08/lks19.c,
4580         * as/hc08/Makefile.aslink,      as/link/hc08/Makefile.aslink,
4581         * as/hc08/Makefile.bcc,         as/link/hc08/Makefile.bcc,
4582         * as/hc08/Makefile.in,          as/link/hc08/Makefile.in,
4583         * as/link/hc08/conf.mk,
4584         * configure,
4585         * configure.in,
4586         * Makefile.in,
4587         * sdcc.dsw: moved hc08 linker to as/link/hc08
4588         * as/hc08/lkeval.c,     as/link/mcs51/lkeval.c,     as/link/lkeval.c,
4589         * as/hc08/lkhead.c,     as/link/mcs51/lkhead.c,     as/link/lkhead.c,
4590         * as/hc08/lklex.c,      as/link/mcs51/lklex.c,      as/link/lklex.c,
4591         * as/hc08/lklist.c,     as/link/mcs51/lklist.c,     as/link/lklist.c,
4592         * as/hc08/lknoice.c,    as/link/mcs51/lknoice.c,    as/link/lknoice.c,
4593         * as/hc08/lksym.c,      as/link/mcs51/lksym.c,      as/link/lksym.c,
4594         * as/link/mcs51/aslink.dsp,
4595         * as/link/mcs51/Makefile.in: factored out the common files
4596         * as/hc08/lkstore.c: deleted, use the one already in as/link/
4597         * as/clean.mk: extra cleaning common files
4598         * as/link/mcs51/strcmpi.c,      as/strcmpi.c: moved
4599         * as/link/mcs51/strcmpi.h: deleted, moved protoype to aslink.h
4600         * as/mcs51/asm.h: include sdccconf.h or sdcc_vc.h
4601
4602 2006-10-29 Raphael Neider <rneider AT web.de>
4603
4604         * src/pic/ralloc.c (newReg): create aliases for registers with
4605           multiple names to fix #1579535 and #1584001,
4606           (regWithIdx,dirregWithName): resolve aliases on lookup
4607         * src/pic/pcode.c (DoBankSelect): die with error message on failing
4608           bankselect
4609         * device/lib/pic/libdev/Makefile.in: move pseudo stack down to 0x4f
4610           to prevent build errors on small devices
4611
4612 2006-10-28 Raphael Neider <rneider AT web.de>
4613
4614         * src/pic/gen.c (genFunction,genCall): drop "same code page"
4615           assumption within interrupt handlers, fixes #1584940
4616         * src/pic/glue.c (pic14_constructAbsMap): mark absolute symbols as
4617           "emitted" to avoid emitting them again in udata
4618
4619 2006-10-27 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4620
4621         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
4622         Removed.
4623
4624 2006-10-26 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4625
4626         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
4627         Initialize uart only if SM0 and SM1 are zero.  Also, use flag to turn
4628         on/off CR to CRLF conversion.
4629
4630 2006-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4631
4632         * doc/sdccman.lyx: updated IRQ section
4633
4634 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4635
4636         * device/lib/serial_io.c: removed
4637         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c
4638         replacements for serial_io.c
4639
4640 2006-10-24 Maarten Brock <sourceforge.brock AT dse.nl>
4641
4642         * src/z80/main.c (_process_pragma, _parseOptions): fixed bug 1583318
4643
4644 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4645
4646         * device/lib/serial_io.c: Default putchar() and getchar() for
4647           mcs51 uses serial port.
4648
4649 2006-10-23 Maarten Brock <sourceforge.brock AT dse.nl>
4650
4651         * src/mcs51/gen.c (movc): improved check for 0 and 1, see RFE 1582704
4652
4653 2006-10-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4654
4655         * support/regression/ports/mcs51/support.c: smaller
4656         _sdcc_external_startup()
4657         * device/lib/mcs51/crtxclear.asm: don't check high byte of l_PSEG
4658
4659 2006-10-20 Maarten Brock <sourceforge.brock AT dse.nl>
4660
4661         * device/lib/gbz80/crt0.s,
4662         * device/lib/gbz80/crt0_rle.s,
4663         * device/lib/gbz80/div.s,
4664         * device/lib/gbz80/fstubs.s,
4665         * device/lib/gbz80/heap.s,
4666         * device/lib/gbz80/mul.s,
4667         * device/lib/gbz80/putchar.s,
4668         * device/lib/gbz80/stubs.s,
4669         * device/lib/z80/crt0.s,
4670         * device/lib/z80/crt0_rle.s,
4671         * device/lib/z80/div.s,
4672         * device/lib/z80/fstubs.s,
4673         * device/lib/z80/heap.s,
4674         * device/lib/z80/mul.s,
4675         * device/lib/z80/putchar.s,
4676         * device/lib/z80/stubs.s: reverted, I was mistaken
4677
4678 2006-10-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4679
4680         * src/mcs51/peeph.def: peephole 238.x added check for notvolatile
4681         * support/regression/ports/mcs51/support.c: removed race
4682         condition on TI in _putchar allowing to use serial port mode 0
4683
4684 2006-10-20 Borut Razem <borut.razem AT siol.net>
4685
4686         * debugger/mcs51/sdcdb.c: replaced isblank() with isspace()
4687
4688 2006-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
4689
4690         * device/lib/gbz80/crt0.s,
4691         * device/lib/gbz80/crt0_rle.s,
4692         * device/lib/gbz80/div.s,
4693         * device/lib/gbz80/fstubs.s,
4694         * device/lib/gbz80/heap.s,
4695         * device/lib/gbz80/mul.s,
4696         * device/lib/gbz80/putchar.s,
4697         * device/lib/gbz80/stubs.s,
4698         * device/lib/z80/crt0.s,
4699         * device/lib/z80/crt0_rle.s,
4700         * device/lib/z80/div.s,
4701         * device/lib/z80/fstubs.s,
4702         * device/lib/z80/heap.s,
4703         * device/lib/z80/mul.s,
4704         * device/lib/z80/putchar.s,
4705         * device/lib/z80/stubs.s: removed all leading underscores from area names
4706
4707 2006-10-17 Maarten Brock <sourceforge.brock AT dse.nl>
4708
4709         * support/regression/ports/mcs51/support.c: use highest baudrate so the
4710           regression tests are not waiting in the simulator for simulated
4711           transmission of debug output
4712
4713 2006-10-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4714
4715         * device/lib/printf_large.c: slightly smaller
4716         * doc/sdccman.lyx: do not use spaces within html links
4717
4718 2006-10-16 Borut Razem <borut.razem AT siol.net>
4719
4720         * configure.in, configure, sdccconf_in.h, src/SDCCglobal,
4721           debugger/mcs51/Makefile.in, debugger/mcs51/sdcdb.[ch],
4722           debugger/mcs51/aclocal.m4, debugger/mcs51/acinclide.m4,
4723           debugger/mcs51/config.h.in, debugger/mcs51/configure.in,
4724           debugger/mcs51/configure:
4725           [ 1185668 ] add gnu readline support to sdcdb - enabled
4726
4727 2006-10-16 Raphael Neider <rneider AT web.de>
4728
4729         * src/pic/pcode.c (BankSelect): another fix on (partial) BANKSELs,
4730           fixes #1577882, removes close to all banking optimizations
4731
4732 2006-10-15 Maarten Brock <sourceforge.brock AT dse.nl>
4733
4734         * src/SDCCsymt.c (checkSClass): no error for uninitialised absolute
4735           variables in code memory
4736         * support/regression/tests/absolute.c: added test for this
4737
4738 2006-10-15 Raphael Neider <rneider AT web.de>
4739
4740         * src/pic/pcode.c (InsertBankSel): suppress BANKSELs for one bank
4741           devices,
4742           (BankSelect): emit BANKSEL before touching linker-placed regs,
4743           fixes #1570934
4744
4745 2006-10-10 Raphael Neider <rneider AT web.de>
4746
4747         * src/SDCCmain.c (optionsTable): accept --stack-size for PICs,
4748         * src/pic/device.c (pic14_getSharebankSize,pic14_getSharebankAddress),
4749         * src/pic/main.c (_pic14_parseOptions),
4750         * src/pic/main.h: mostly reverted to previous state, now use results
4751             from SDCCmain.c's argument parsing
4752
4753 2006-10-10 Borut Razem <borut.razem AT siol.net>
4754
4755         * debugger/mcs51/break.[ch], debugger/mcs51/cmd.c,
4756           debugger/mcs51/sdcdb.[ch], debugger/mcs51/simi.c:
4757           [ 1185668 ] add gnu readline support to sdcdb -
4758           prepared for READLINE, not enabled yet,
4759           thanks to <tal.bav AT gmail.com>
4760
4761 2006-10-10 Raphael Neider <rneider AT web.de>
4762
4763         * src/pic16/pcode.c (pic16_pCode2str): use isACCESS_BANK macro
4764         * src/pic16/devices.inc,
4765         * device/include/pic16 (pic18f[24]620.h),
4766         * device/include/pic18fregs.h,
4767         * device/lib/pic16/pics.all,
4768         * device/lib/pic16/libdev/pic18f[24]{620,525}.c): added support for
4769             18f2620, 18f4620, 18f2525, and 18f4525 devices, thanks to
4770             Gary Plumbridge and Anton Strobl
4771
4772 2006-10-10 Raphael Neider <rneider AT web.de>
4773
4774         * src/pic/main.c (_pic14_parseOptions): added --stack-loc=NUM and
4775           --stack-siz=NUM options to configure the argument passing stack
4776         * src/pic/main.h: added stackLocation and stackSize to pic14_options_t
4777         * src/pic/device.c (mapRegister): catch out-of-memory SIGSEGVs,
4778           (pic14_getSharebankSize): obey --stack-siz=NUM,
4779           (pic14_getSharebankAddress): obey --stack-loc=NUM
4780
4781 2006-10-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4782
4783         * doc/sdccman.lyx: added to the manual
4784         * doc/figures/ddd_example.png: added (neither pdflatex nor
4785         most browsers seem to like the .eps file)
4786
4787 2006-10-06 Bernhard Held <bernhard AT bernhardheld.de>
4788
4789         * src/SDCCglue.c (tempfileandname): changed un*x tmp search paths
4790         to /tmp and /var/tmp acc. LSB
4791         * src/SDCCast.c (addCast): Fixed bug 1571231: promote in case of
4792         RESULT_TYPE_IFX
4793         * support/regression/tests/onebyte.c: added test
4794
4795 2006-10-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4796
4797         * src/mcs51/gen.c: emitcode for "add a,0x%02x" requires only 8 bits.
4798
4799 2006-10-05 Borut Razem <borut.razem AT siol.net>
4800
4801         * partially fixed [ 1570701 ] peephole - not replacing code from multiline macros,
4802           thanks to dfulab:
4803           - sdcc.dsw: changed property eol-style to CRLF
4804           - support/scripts/resource.rc: replaced references to "afxres.h" with "winres.h"
4805
4806 2006-10-04 Raphael Neider <rneider AT web.de>
4807
4808         * device/include/pic/{pic16f84.h,pic16f84a.h},
4809         * device/lib/pic/libdev/{pic16f84.c,pic16f84a.c}: added PORT[AB]_bits
4810           from patch #1522504, thanks to Robas Teodor
4811
4812 2006-10-02 Maarten Brock <sourceforge.brock AT dse.nl>
4813
4814         * as/link/z80/lkarea.c: essentially reverted lnksect() to #4380 which
4815           fixes bug 1566015
4816
4817 2006-10-01 Maarten Brock <sourceforge.brock AT dse.nl>
4818
4819         * src/pic16/glue.c (pic16emitMaps),
4820         * src/pic/glue.c (pic14emitMaps): hopefully fixed bug 1568779
4821         * device/lib/gets.c: fixed bug 1568829,thanks Philipp Krause
4822         * device/lib/pic16/libc/string/memcpypgm2ram.c,
4823         * device/lib/pic16/libc/string/memcpyram2ram.c: fixed bug 1568836, thanks
4824           Philipp Krause
4825         * as/mcs51/asmain.c (asmbl, newdot): fixed problems with absolute areas
4826         * as/link/mcs51/lkmem.c (summary2): reverted, do do count abs segments
4827
4828 2006-09-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4829
4830         * support/librarian/sdcclib.c: Added option -l.
4831         * as/link/mcs51/lkmem.c: don't use absolute segments to compute memory
4832           usage totals.
4833         * device/lib/make51lib.bat: added.  Allows building mcs51 libraries easily
4834           using Windows command prompt.
4835
4836 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
4837
4838         * device/lib/libsdcc.lib: added module rand
4839         * src/ds390/ralloc.c (rematStr),
4840         * src/hc08/ralloc.c (rematStr),
4841         * src/mcs51/ralloc.c (rematStr),
4842         * src/z80/ralloc.c (rematStr): made output more consistent
4843         * src/mcs51/gen.c: cosmetic changes
4844
4845 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
4846
4847         * src/port.h: added mem.cabs_name to PORT
4848         * src/ds390/main.c,
4849         * src/hc08/main.c,
4850         * src/mcs51/main.c,
4851         * src/pic16/main.c,
4852         * src/pic/main.c,
4853         * src/xa51/main.c,
4854         * src/z80/main.c: added cabs_name initializers
4855         * src/SDCCglue.c (emitStaticSeg): allocate and initialize absolute
4856           constants
4857           (emitMaps): emit absolutes in code memory into cabs_name
4858         * src/SDCCmem.c,
4859         * src/SDCCmem.h: added memory map c_abs and defined CABS_NAME
4860         * src/ds390/gen.c (genCodePointerGet): fixed bug if left is a literal
4861         * support/regression/fwk/include/testfwk.h: added define for at
4862         * support/regression/tests/absolute.c: added, new
4863
4864 2006-09-29 Maarten Brock <sourceforge.brock AT dse.nl>
4865
4866         * src/mcs51/gen.c (genPlusIncr, genMinusDec, genAddrOf): small
4867           optimizations, see also patch 887161 by Stas Sergeev
4868         * src/mcs51/peeph.def(104, 207, 209, 212): disabled as they do not seem
4869           to be necessary anymore,
4870           (102, 103, 104, 127): renamed all occurances of bp to _bp
4871
4872 2006-09-27 Maarten Brock <sourceforge.brock AT dse.nl>
4873
4874         * device/include/mcs51/at89c51snd1c.h: fixed MSK_SREQ definition
4875           thanks Weston T. Schmidt for patch 1555221
4876         * src/mcs51/peeph.def: renamed rule 257 to 257.a, added 257.b
4877         * src/SDCCicode.c(geniCodeMultiply): small optimization
4878
4879 2006-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
4880
4881         * device/include/stdlib.h: added rand prototypes
4882         * device/lib/rand.c: new, added
4883         * device/lib/Makefile.in: added rand.c
4884         * src/z80/peeph.def,
4885         * src/z80/peeph-gbz80.def,
4886         * src/z80/peeph-z80.def: updated conditonals, fixed bug 1565908
4887
4888 2006-09-20 Raphael Neider <rneider AT web.de>
4889
4890         * device/lib/pic16/libio/i2c/i2cnack.c (i2c_nack): fixed ACKDT bit
4891
4892 2006-09-19 Maarten Brock <sourceforge.brock AT dse.nl>
4893
4894         * as/link/aslink.h: cosmetic changes
4895         * as/link/mcs51/Makefile.in,
4896         * as/link/z80/Makefile.in: fixed build on CF where VPATH is used
4897
4898 2006-09-17 Maarten Brock <sourceforge.brock AT dse.nl>
4899
4900         * as/link/aslink.h,
4901         * as/link/mcs51/aslink.h,
4902         * as/link/z80/aslink.h: merged and moved to as/link/
4903         * as/link/lkstore.c,
4904         * as/link/mcs51/lkstore.c: moved to as/link/
4905         * as/link/clean.mk: remove *.o
4906         * as/link/mcs51/alloc.h: deleted
4907         * as/link/mcs51/lkarea.c: added lnksect prototype
4908         * as/link/mcs51/lkdata.c,
4909         * as/link/mcs51/lklex.c,
4910         * as/link/mcs51/lkmain.c: renamed as_getline to lk_getline
4911         * as/link/mcs51/lkmem.c,
4912         * as/link/mcs51/lknoice.c: removed include strcmpi.h
4913         * as/link/mcs51/lksym.c: include stdlib.h instead of malloc.h or alloc.h
4914         * as/link/mcs51/aslink.dsp,
4915         * as/link/mcs51/Makefile.aslink,
4916         * as/link/mcs51/Makefile.bcc,
4917         * as/link/mcs51/Makefile.in: updated for moved files
4918         * as/link/z80/lkarea.c,
4919         * as/link/z80/lkhead.c,
4920         * as/link/z80/lklex.c,
4921         * as/link/z80/lklibr.c,
4922         * as/link/z80/lklist.c,
4923         * as/link/z80/lkmain.c,
4924         * as/link/z80/lkrloc.c,
4925         * as/link/z80/lksym.c: synced with mcs51
4926         * as/link/z80/lkdata.c,
4927         * as/link/z80/lkeval.c,
4928         * as/link/z80/lkihx.c,
4929         * as/link/z80/lks19.c: cosmetic changes
4930         * as/link/z80/Makefile.in,
4931         * as/link/z80/linkgbz80.dsp,
4932         * as/link/z80/linkz80.dsp: updated for moved files
4933
4934 2006-09-16 Borut Razem <borut.razem AT siol.net>
4935
4936         * debugger/mcs51/sdcdb.c: partially fixed
4937           [ 1203664 ] sdcdb fails to open files w. two "." periods
4938         * debugger/mcs51/simi.c, debugger/mcs51/symtab.c,
4939           debugger/mcs51/symtab.h: fixed indenting
4940         * configure.in, configure: up to date with latest Maarten's changes
4941
4942 2006-09-15 Maarten Brock <sourceforge.brock AT dse.nl>
4943
4944         as/link/mcs51
4945         as/aslink.dsp,                  as/link/mcs51/aslink.dsp,
4946         as/link/mcs51/aslink.h,         as/mcs51/aslink.h,
4947         as/link/mcs51/aslink.mak,       as/mcs51/aslink.mak,
4948         as/link/mcs51/lkaomf51.c,       as/mcs51/lkaomf51.c,
4949         as/link/mcs51/lkarea.c,         as/mcs51/lkarea.c,
4950         as/link/mcs51/lkdata.c,         as/mcs51/lkdata.c,
4951         as/link/mcs51/lkeval.c,         as/mcs51/lkeval.c,
4952         as/link/mcs51/lkhead.c,         as/mcs51/lkhead.c,
4953         as/link/mcs51/lkihx.c,          as/mcs51/lkihx.c,
4954         as/link/mcs51/lklex.c,          as/mcs51/lklex.c,
4955         as/link/mcs51/lklibr.c,         as/mcs51/lklibr.c,
4956         as/link/mcs51/lklist.c,         as/mcs51/lklist.c,
4957         as/link/mcs51/lkmain.c,         as/mcs51/lkmain.c,
4958         as/link/mcs51/lkmem.c,          as/mcs51/lkmem.c,
4959         as/link/mcs51/lknoice.c,        as/mcs51/lknoice.c,
4960         as/link/mcs51/lkrloc.c,         as/mcs51/lkrloc.c,
4961         as/link/mcs51/lks19.c,          as/mcs51/lks19.c,
4962         as/link/mcs51/lkstore.c,        as/mcs51/lkstore.c,
4963         as/link/mcs51/lksym.c,          as/mcs51/lksym.c,
4964         as/link/mcs51/Makefile.aslink,  as/mcs51/Makefile.aslink,
4965         as/link/mcs51/alloc.h,
4966         as/link/mcs51/clean.mk,
4967         as/link/mcs51/conf.mk,
4968         as/link/mcs51/Makefile.bcc,
4969         as/link/mcs51/Makefile.in,
4970         as/link/mcs51/readme.390,
4971         as/link/mcs51/strcmpi.c,
4972         as/link/mcs51/strcmpi.h,
4973         as/mcs51/clean.mk,
4974         as/mcs51/Makefile.bcc,
4975         as/mcs51/Makefile.in,
4976         configure,
4977         Makefile.in,
4978         sdcc.dsw: moved mcs51 linker to as/link/mcs51
4979
4980 2006-09-14 Maarten Brock <sourceforge.brock AT dse.nl>
4981
4982         * as/link,
4983         * as/link/Makefile.in,
4984         * as/link/z80/linkgbz80.dsp,
4985         * as/link/z80/linkz80.dsp,
4986         * configure,
4987         * link,
4988         * link/clean.mk,
4989         * link/Makefile.in,
4990         * link/README,
4991         * link/z80,
4992         * link/z80/aslink.h,
4993         * link/z80/clean.mk,
4994         * link/z80/conf.mk,
4995         * link/z80/linkgbz80.dsp,
4996         * link/z80/linkz80.dsp,
4997         * link/z80/lkarea.c,
4998         * link/z80/lkdata.c,
4999         * link/z80/lkeval.c,
5000         * link/z80/lkgb.c,
5001         * link/z80/lkgg.c,
5002         * link/z80/lkhead.c,
5003         * link/z80/lkihx.c,
5004         * link/z80/lklex.c,
5005         * link/z80/lklibr.c,
5006         * link/z80/lklist.c,
5007         * link/z80/lkmain.c,
5008         * link/z80/lkrloc.c,
5009         * link/z80/lks19.c,
5010         * link/z80/lksym.c,
5011         * link/z80/Makefile.in,
5012         * Makefile.in,
5013         * sdcc.dsw: moved link/ to as/link/
5014
5015 2006-09-11 Maarten Brock <sourceforge.brock AT dse.nl>
5016
5017         * as/mcs51/i51mch.c (machine): fixed warning
5018
5019 2006-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
5020
5021         * as/mcs51/i51mch.c (machine): S_DJNZ fixed bug 1554318
5022
5023 2006-09-09 Borut Razem <borut.razem AT siol.net>
5024
5025         * debugger/mcs51/sdcdb.c, debugger/mcs51/simi.c:
5026           sdcdb WIN32 native port
5027         * src/clean.mk: fixed
5028
5029 2006-09-08 Borut Razem <borut.razem AT siol.net>
5030
5031         * doc/sdccman.lyx: SDCDB and ucSim are available on Win32 platforms.
5032
5033 2006-09-08 Raphael Neider <rneider AT web.de>
5034
5035         * src/pic16/main.c (_pic16_linkEdit,pic16_linkCmd),
5036         * src/pic/main.c(_pic14_do_link, linkCmd): pass "-w" and "-r"
5037             to gplink to disable processor mismatch warning and to allow
5038             the use of devices with only aliased (shared) memory banks,
5039           (_pic16_genAssemblerPreamble): include pXXX.inc on --mplab-comp
5040
5041 2006-09-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5042
5043         * doc/sdccman.lyx: Some re-formating plus example on using
5044           #pragma preproc_asm +/-
5045
5046 2006-09-07 Borut Razem <borut.razem AT siol.net>
5047
5048         * support/scripts/sdcc.nsi: added SDCDB executables in a separate
5049           section
5050
5051 2006-09-06 Borut Razem <borut.razem AT siol.net>
5052
5053         * support/scripts/sdcc.nsi: fixed Error: unterminated string parsing
5054           line at sdcc.nsi:153
5055         * sdcc/debugger/mcs51/simi.c: argsToCmdLine() fixes
5056
5057 2006-09-05 Borut Razem <borut.razem AT siol.net>
5058
5059         * configure.in, configure: support for winsock2
5060         * debugger/mcs51/break.h, debugger/mcs51/cmd.c,
5061           debugger/mcs51/cmd.h, debugger/mcs51/sdcdb.c,
5062           debugger/mcs51/sdcdb.h, debugger/mcs51/simi.c,
5063           debugger/mcs51/simi.h, debugger/mcs51/symtab.c,
5064           debugger/mcs51/symtab.h: sdcdb WIN32 native port
5065
5066 2006-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
5067
5068         * src/SDCCopt.c (cnvToFcall): fixed bug 1551947 by updating OP_USES
5069           and OP_DEFS
5070         * support/regression/tests/bug1551947.c: new, added
5071         * src/SDCCsymt.h: strings are char* not byte*
5072
5073 2006-09-05 Raphael Neider <rneider AT web.de>
5074
5075         * device/lib/pic16/libdev/pic18f4550.c,
5076           device/include/pic16/pic18f4550.h: added PORTD/TRISD
5077             declarations/definitions from patch #1520949
5078
5079 2006-09-05 Raphael Neider <rneider AT web.de>
5080
5081         * src/pic16/gen.c (genPackBits): fix assignment to 8-bit,
5082           byte-aligned bitfields, fixes #1539278
5083
5084 2006-09-05 Raphael Neider <rneider AT web.de>
5085
5086         * src/pic/gen.c (genReceive): skip unreferenced arguments,
5087           fixes #1544120
5088
5089 2006-09-04 Borut Razem <borut.razem AT siol.net>
5090
5091         * support/scripts/sdcc.nsi: move ucSim executables to a separate section
5092         * support/scripts/sdcc_cygwin_mingw32: don't disable ucsim,
5093           -mno-cygwin is a part of the compiler name
5094         * support/scripts/sdcc_mingw32: don't disable ucsim
5095
5096 2006-09-03 Borut Razem <borut.razem AT siol.net>
5097
5098         * sdcc.spec: corrected for 2.6.0. Thanks to Christer Weinigel.
5099         * device/lib/Makefile.in device/lib/clean.mk: small but essential corrections
5100
5101 2006-09-03 Raphael Neider <rneider AT web.de>
5102
5103         * src/pic/ralloc.c,
5104         * src/pic/pcode.c (InitReuseRegs): allocate registers with pseudo
5105           indices >= 0x1000 to disambiguate them from fixed regs __at(addr),
5106           fixes #1550049
5107
5108 2006-09-01 Borut Razem <borut.razem AT siol.net>
5109
5110         * sim/ucsim/cmd.src/cmdutil.cc: #include <sys/time.h> and <unistd.h>
5111           to make ppc-osx happy
5112
5113 2006-08-31 Borut Razem <borut.razem AT siol.net>
5114
5115         * sim/ucsim/cmd.src/newcmdposix.cc: #include <assert.h>
5116         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
5117         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
5118         * support/regression/ports/ds390/spec.mk,
5119           support/regression/ports/mcs51/spec.mk,
5120           support/regression/ports/xa51/spec.mk: introduced DEV_NULL variable.
5121           To run regression tests in mingw environment:
5122           make DEV_NULL=NUL CC=gcc
5123
5124 2006-08-30 Borut Razem <borut.razem AT siol.net>
5125
5126         * sim/ucsim/cmd.src/newcmdposix.cc, sim/ucsim/cmd.src/newcmdposixcl.h,
5127           sim/ucsim/cmd.src/newcmdwin32.cc, sim/ucsim/cmd.src/newcmdwin32cl.h,
5128           sim/ucsim/app.cc, sim/ucsim/appcl.h, sim/ucsim/configure,
5129           sim/ucsim/configure.in, sim/ucsim/ddconfig_in.h, sim/ucsim/error.cc,
5130           sim/ucsim/errorcl.h, sim/ucsim/option.cc, sim/ucsim/optioncl.h,
5131           sim/ucsim/utils.cc, sim/ucsim/utils.h, sim/ucsim/cmd.src/Makefile.in,
5132           sim/ucsim/avr.src/avr.cc, sim/ucsim/avr.src/avrcl.h,
5133           sim/ucsim/cmd.src/bp.cc, sim/ucsim/cmd.src/bpcl.h,
5134           sim/ucsim/cmd.src/cmdconf.cc, sim/ucsim/cmd.src/cmdgui.cc,
5135           sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/cmdset.cc,
5136           sim/ucsim/cmd.src/cmdsetcl.h, sim/ucsim/cmd.src/cmdstat.cc,
5137           sim/ucsim/cmd.src/cmduc.cc, sim/ucsim/cmd.src/cmduccl.h,
5138           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
5139           sim/ucsim/cmd.src/command.cc, sim/ucsim/cmd.src/commandcl.h,
5140           sim/ucsim/cmd.src/get.cc, sim/ucsim/cmd.src/getcl.h,
5141           sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/newcmd.cc,
5142           sim/ucsim/cmd.src/newcmdcl.h, sim/ucsim/cmd.src/set.cc,
5143           sim/ucsim/cmd.src/show.cc, sim/ucsim/cmd.src/timer.cc,
5144           sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
5145           sim/ucsim/s51.src/Makefile.in, sim/ucsim/s51.src/interrupt.cc,
5146           sim/ucsim/s51.src/interruptcl.h, sim/ucsim/s51.src/pca.cc,
5147           sim/ucsim/s51.src/pcacl.h, sim/ucsim/s51.src/port.cc,
5148           sim/ucsim/s51.src/portcl.h, sim/ucsim/s51.src/serial.cc,
5149           sim/ucsim/s51.src/serialcl.h, sim/ucsim/s51.src/timer0.cc,
5150           sim/ucsim/s51.src/timer0cl.h, sim/ucsim/s51.src/timer1.cc,
5151           sim/ucsim/s51.src/timer1cl.h, sim/ucsim/s51.src/timer2.cc,
5152           sim/ucsim/s51.src/timer2cl.h, sim/ucsim/s51.src/uc390.cc,
5153           sim/ucsim/s51.src/uc390cl.h, sim/ucsim/s51.src/uc390hw.cc,
5154           sim/ucsim/s51.src/uc390hwcl.h, sim/ucsim/s51.src/uc51.cc,
5155           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/wdt.cc,
5156           sim/ucsim/s51.src/wdtcl.h, sim/ucsim/sim.src/hw.cc,
5157           sim/ucsim/sim.src/hwcl.h, sim/ucsim/sim.src/mem.cc,
5158           sim/ucsim/sim.src/memcl.h, sim/ucsim/sim.src/obsolete.cc,
5159           sim/ucsim/sim.src/obsolete.h, sim/ucsim/sim.src/sim.cc,
5160           sim/ucsim/sim.src/simcl.h, sim/ucsim/sim.src/stack.cc,
5161           sim/ucsim/sim.src/stackcl.h, sim/ucsim/sim.src/test_mem_speed.cc,
5162           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
5163           sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
5164           sim/ucsim/z80.src/z80.cc, sim/ucsim/z80.src/z80cl.h:
5165           ucsim WIN32 native port
5166
5167 2006-08-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5168
5169         * doc/sdccman.lyx: added note on dynamic memory heap initialization
5170
5171 2006-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
5172
5173         * src/mcs51/gen.c (genAnd, genOr, genXor): fixed bug 1546986
5174         * src/ds390/gen.c (aopGetUsesAcc): handle AOP_DPTR2 and AOP_DPTRn too
5175
5176 2006-08-26 Maarten Brock <sourceforge.brock AT dse.nl>
5177
5178         * src/ds390/gen.c (genAnd, genOr, genXor): fixed bug 1546986
5179         * support/regression/tests/bug1546986.c: new, added
5180         * as/mcs51/.cvsignore,
5181         * debugger/mcs51/.cvsignore,
5182         * src/.cvsignore: deleted
5183
5184 2006-08-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5185
5186         * device/include/mcs51/P89c51RD2.h: fixed bug 1546936 (error in sbit
5187           definitions)
5188
5189 2006-08-20 Borut Razem <borut.razem AT siol.net>
5190
5191         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h:
5192           removed cl_listen_console::match(), cl_console::match(),
5193           restructured cl_commander::proc_input()
5194
5195 2006-08-16 Borut Razem <borut.razem AT siol.net>
5196
5197         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h,
5198           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
5199           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/uc.cc: code cleaning
5200
5201 2006-08-14 Borut Razem <borut.razem AT siol.net>
5202
5203         * support/regression/Makefile.in,
5204           support/regression/ports/pic14/gpsim.cmd,
5205           support/regression/ports/pic14/spec.mk,
5206           support/regression/ports/pic14/support.c:
5207           added pic14 regression test
5208
5209 2006-08-14 Maarten Brock <sourceforge.brock AT dse.nl>
5210
5211         * as/doc/asxhtm.html: documented changed ABS behaviour
5212         * as/doc/README: fixed some typos
5213
5214 2006-08-13 Maarten Brock <sourceforge.brock AT dse.nl>
5215
5216         * support/regression/tests/float_trans.c: disabled test if __STDC_IEC_559__
5217           not defined on host
5218
5219 2006-08-12 Borut Razem <borut.razem AT siol.net>
5220
5221         * support/regression/fwk/include/testfwk.h,
5222           support/regression/fwk/lib/testfwk.c,
5223           support/regression/generate-cases.py,
5224           support/regression/Makefile.in:
5225           regression test framework does not depend on function pointers and
5226           variable arguments
5227
5228 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
5229
5230         * device/include/stddef.h: c temporary hack to fix bug 1518273
5231
5232 2006-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5233
5234         * device/include/mcs51/cc2510fx.h: added
5235         * src/z80/z80.dsp, src/gbz80/gbz80.dsp: added support/Util/strcmpi.ch
5236           to projects.
5237
5238 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
5239
5240         * as/z80/assym.c (mlookup): ignore case when looking up mnemonics
5241         * as/z80/Makefile.in: added strcmpi.c
5242         * as/z80/z80adr.c: added upper case registers and lower case conditionals
5243         * support/Util/strcmpi.ch: added with intention to remove from mcs51/hc08
5244
5245 2006-08-08 Maarten Brock <sourceforge.brock AT dse.nl>
5246
5247         * device/lib/gbz80/asm_strings.s,
5248         * device/lib/gbz80/crt0_rle.s,
5249         * device/lib/gbz80/div.s,
5250         * device/lib/gbz80/mul.s,
5251         * device/lib/gbz80/shift.s,
5252         * device/lib/z80/asm_strings.s,
5253         * device/lib/z80/crt0_rle.s,
5254         * device/lib/z80/div.s,
5255         * device/lib/z80/mul.s,
5256         * device/lib/z80/shift.s: changed to all lower case menmonics except the
5257           flags which are all upper case
5258
5259 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
5260
5261         * as/z80/asm.h: made CASE_SENSITIVE 1
5262         * link/z80/aslink.h: made CASE_SENSITIVE 1
5263         * src/z80/gen.c (throughout): made all conditionals upper case
5264         * support/regression/tests/bug1503067.c: new
5265
5266 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
5267
5268         * src/z80/gen.c (aopPut): fixed bug !*ixy should be !*iyx,
5269           (shiftIntoPair): added case 2 for PAIR_IY,
5270           (setupToPreserveCarry): replaced parameters with iCode and check if
5271            PAIR_DE is in use to fix bug 1399290,
5272           (genPlus, genMinus): updated call to setupToPreserveCarry
5273         * support/regression/tests/bug1399290.c: new
5274
5275 2006-08-06 Maarten Brock <sourceforge.brock AT dse.nl>
5276
5277         * device/lib/Makefile.in (Z80SOURCES): enabled float support
5278         * sim/ucsim/z80.src/inst.cc (inst_rst): generate breakpoint on RST8,ACC==0
5279         * src/ds390/gen.c (shiftRLong),
5280         * src/hc08/gen.c (shiftLLong, shiftRLong): fixed bug 1533966
5281         * src/mcs51/gen.c (sameReg): changed to sameByte,
5282           (xch_a_aopGet): new,
5283           (shiftL2Left2Result, shiftR2Left2Result, shiftRLeftOrResult, shiftLLong,
5284            shiftRLong): fixed bug 1533966
5285         * src/z80/gen.c (shiftR2Left2Result, shiftL2Left2Result, genlshTwo,
5286           genLeftShiftLiteral, genrshTwo, genRightShiftLiteral): fixed bug 1533966
5287         * support/regression/Makefile.in: disabled z80, enabled ucz80
5288         * support/regression/tests/float_trans.c: enabled test for z80 and host
5289         * support/regression/tests/shifts2.c: new, for testing bug 1533966
5290
5291 2006-08-01 Borut Razem <borut.razem AT siol.net>
5292
5293         * src/mcs51/gen.c, src/dc390/gen.c: fixed warning:
5294           comparison is always false due to limited range of data type
5295           on PPC64 machine (openpower-linux1) where "char = unsigned char"
5296
5297 2006-08-01 Maarten Brock <sourceforge.brock AT dse.nl>
5298
5299         * sim/ucsim/hc08.src/hc08mac.h: removed faulty and unused add_u16_disp
5300         * sim/ucsim/hc08.src/hc08.cc: removed faulty and unused int8
5301         * sim/ucsim/z80.src/z80mac.h (add_u16_disp): use explicit signed char cast
5302         * sim/ucsim/z80.src/z80.cc: removed faulty and unused int8
5303
5304 2006-07-31 Borut Razem <borut.razem AT siol.net>
5305
5306         * sim/ucsim/configure, sim/ucsim/cmd.src/newcmdcl.h,
5307           sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/cmdutil.cc,
5308           sim/ucsim/z80.src/Makefile.in, sim/ucsim/configure.in,
5309           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/hc08.src/hc08.cc,
5310           sim/ucsim/ddconfig_in.h, sim/ucsim/s51.src/Makefile.in,
5311           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/serialcl.h,
5312           sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/serial.cc,
5313           sim/ucsim/app.cc, sim/ucsim/avr.src/Makefile.in:
5314           enable ucsim mingw compilation. Serial port is disabled,
5315           since it uses termios.h API, which is not available on native
5316           WIN32
5317
5318 2006-07-31 Borut Razem <borut.razem AT siol.net>
5319
5320         * Small Device C Compiler 2.6.0 released
5321         * support/scripts/sdcc.nsi: added FULL_DOC option
5322         * .version, doc/sdccman.lyx: changed sdcc version to 2.6.1
5323
5324 2006-07-28 Borut Razem <borut.razem AT siol.net>
5325
5326         * support/scripts/sdcc.nsi: remove $INSTDIR/include/asm/pic16/*.h
5327         * doc/INSTALL.txt: updated
5328
5329 2006-07-27 Borut Razem <borut.razem AT siol.net>
5330
5331         * device/lib/pic/Makefile.in, device/lib/pic/Makefile.subdir,
5332           device/lib/pic/libdev/Makefile.in: fixed bug
5333           [ 1438354 ] pic libsdcc: distclean doesn't work
5334         * device/lib/pic16/Makefile.in, device/lib/pic16/Makefile.subdir,
5335           device/lib/pic16/libio/Makefile.in: fixed bug
5336           [ 1438344 ] pic16 lib: clean doesn't work properly
5337         * doc/knownbugs.html removed [ 1438354 ] and [ 1438344 ] from the list
5338
5339 2006-07-26 Maarten Brock <sourceforge.brock AT dse.nl>
5340
5341         * device/lib/pic/libsdcc/fsdiv.c,
5342         * device/lib/pic/libsdcc/fsmul.c,
5343         * device/lib/pic16/libsdcc/float/fsdiv.c,
5344         * device/lib/pic16/libsdcc/float/fsmul.c,
5345         * device/lib/_fsdiv.c,
5346         * device/lib/_fsmul.c: bugfix, handle too large and too small numbers
5347         * support/regression/tests/bug1520966.c: added
5348         * doc/knownbugs.html: removed [ 1520966 ] from the list
5349
5350 2006-07-25 Borut Razem <borut.razem AT siol.net>
5351
5352         * configure.in, configure, sdccconf_in.h: fixed bug
5353           [ 1519095 ] regression test onebyte.c fails on ppc64 host
5354         * doc/knownbugs.html: removed [ 1519095 ] from the list
5355
5356 2006-07-25 Maarten Brock <sourceforge.brock AT dse.nl>
5357
5358         * doc/knownbugs.html: added, contains list of known bugs at release
5359         * device/include/mcs51/compiler.h: fixed SFR32 for SDCC
5360
5361 2006-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
5362
5363         * device/include/mcs51/compiler.h: added SFRX for xdata based special
5364           function registers and corrected defaults with additional warning
5365         * device/lib/malloc.c: cosmetic changes
5366         * device/lib/realloc.c: bugfix for bug #1496907, Thanks Efim Monyak
5367         * src/ds390/ralloc.c (getRegBitNoSpil): reenabled,
5368           (fillGaps): and used it
5369
5370 2006-07-20 Raphael Neider <rneider AT web.de>
5371
5372         * src/pic/device.c (addMemRange,assignRegister): suppress verbose
5373           output unless SDCCPICDEBUG is set
5374         * device/lib/pic16/Makefile.rules (%.lib target): suppress verbose
5375           output if SILENT is set
5376
5377 2006-07-11 Borut Razem <borut.razem AT siol.net>
5378
5379         * doc/README.txt: updated
5380
5381 2006-07-10 Borut Razem <borut.razem AT siol.net>
5382
5383         * support/scripts/sdcc.nsi: added device/include/asm/pic/features.h and
5384           device/lib/src/pic/libm/*.c and device/lib/src/pic16/libsdcc/stack/*.S
5385           in WIN32 installation
5386         * .version, sdcc.spec, doc/sdccman.lyx: changed sdcc version to 2.6.0 -
5387           release candidate 1
5388
5389 2006-07-08 Maarten Brock <sourceforge.brock AT dse.nl>
5390
5391         * device/include/mcs51/XC866.h: added sbit definitions for Px_x, P1_x, P2_x
5392         * src/pic16/glue.c (initPointer): fixed bug 1496419 for pic16
5393
5394 2006-07-06 Maarten Brock <sourceforge.brock AT dse.nl>
5395
5396         * src/hc08/gen.c (genAddrOf): fixed bug when offset on stack is >127
5397
5398 2006-07-06 Borut Razem <borut.razem AT siol.net>
5399
5400         * support/regression/tests/bitfields.c:
5401           fixed bug [ 1518322 ] regression test bitfields fails on ppc hosts
5402         * support/regression/tests/constantRange.c:
5403           fixed bug [ 1518317 ] regression test constantRange fails on alpha host
5404
5405 2006-07-04 Borut Razem <borut.razem AT siol.net>
5406
5407         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in,
5408           src/port.mk,
5409           src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
5410           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
5411           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
5412           reverted changes from 2006-07-03
5413         * Makefile.common.in: added @CPPFLAGS@ to CPPFLAGS
5414         * support/regression/Makefile.in, support/regression/ports/host/spec.mk:
5415           added CPPFLAGS, used by the host port
5416
5417 2006-07-03 Bernhard Held <bernhard AT bernhardheld.de>
5418
5419         * support/regression/valdiag/tests/switch.c,
5420         * support/regression/valdiag/tests/constantRange.c: adapted to gcc 4
5421         * support/regression/tests/libmullong.c: fixed for host
5422         * support/regression/ports/host/spec.mk: disable all warnings for host,
5423         SDCC runs with --less-pedantic too
5424
5425 2006-07-03 Borut Razem <borut.razem AT siol.net>
5426
5427         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in:
5428           defined CPPFLAGS
5429         * src/port.mk: defined CPPFLAGS, renamed to src/port.mk.in
5430         * src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
5431           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
5432           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
5433           include ../port.mk
5434         * sim/ucsim/main_in.mk, sim/ucsim/avr.src/Makefile.in,
5435           sim/ucsim/gui.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
5436           sim/ucsim/s52.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
5437           sim/ucsim/xa.src/Makefile.in: ignore header files for dependencies
5438
5439 2006-07-02 Raphael Neider <rneider AT web.de>
5440
5441         * src/pic16/devices.inc,
5442         * device/include/pic16/pic18fregs.h,
5443         * device/include/pic16/pic18f4550.h,
5444         * device/lib/pic16/pics.all,
5445         * device/lib/pic16/libdev/pic18f4550.c: added support for 18f4550
5446
5447 2006-07-01 Bernhard Held <bernhard AT bernhardheld.de>
5448
5449         * as/hc08/lkaomf51.c (OutputName),
5450         * as/mcs51/lkaomf51.c (OutputName),
5451         * as/z80/asmain.c (asmbl),
5452         * src/ds390/main.c (asmLineNodeFromLineNode),
5453         * src/hc08/ralloc.c (hc08_assignRegisters),
5454         * src/mcs51/main.c (asmLineNodeFromLineNode),
5455         * src/xa51/ralloc.c (checkRegMask),
5456         * src/xa51/gen.c (emitcode),
5457         * src/z80/gen.c (_emit2),
5458         * src/SDCCast.c (searchLitOp),
5459         * src/SDCCglobl.h,
5460         * support/packihx/packihx.c,
5461         * support/Util/MySystem.c (split_command): fix gcc 4 warnings
5462         * src/ds390/gen.c (aopPutUsesAcc),
5463         * src/ds390/ralloc.c (getRegBitNoSpil): unused, therefore disabled
5464         * support/regression/tests/libmullong.c (mullong_wrapper),
5465         * src/SDCCsymt.c (powof2),
5466         * src/SDCCast.c,
5467         * src/SDCCicode.c: renamed TYPE_WORD by TYPE_TARGET_INT and so on
5468         * src/SDCCsymt.h: added TYPE_TARGET_*
5469         * src/SDCCutil.c (doubleFromFixed16x16, fixed16x16FromDouble),
5470         * src/SDCCutil.h (doubleFromFixed16x16, fixed16x16FromDouble): moved to
5471         SDCCast because 1) header problems 2) this is the right place
5472         * src/SDCCast.c (doubleFromFixed16x16, fixed16x16FromDouble): added
5473         * src/SDCCval.h (doubleFromFixed16x16, fixed16x16FromDouble): added
5474         prototype
5475
5476 2006-06-29 Bernhard Held <bernhard AT bernhardheld.de>
5477
5478         * src/SDCCicode.h: removed buggy semicolon in unused macro
5479         * src/SDCClrange.c (findPrevUseSym, rlivePoint): fixed bug #1486853,
5480         search for previous definiton of auto symbols too,
5481         (findPrevUse): fixed logic of emitWarnings
5482
5483 2006-06-26 Raphael Neider <rneider AT web.de>
5484
5485         * src/pic16/gen.c (genFunction, genEndFunction): also preserve
5486           PCLATH and PCLATU on interrupts, potentially fixes #1505141
5487
5488 2006-06-25 Raphael Neider <rneider AT web.de>
5489
5490         * device/lib/pic/libm: NEW, added math library functions
5491         * device/lib/pic/libsdcc: NEW; added float support functions
5492         * device/lib/pic/{Makefile.in,configure.in,configure}: added libm/
5493         * device/include/pic/{limits.h,errno.h,sdcc-lib.h,float.h,math.h}:
5494           NEW, added math related headers
5495         * device/include/asm/pic/features.h: NEW
5496         * src/pic/gen.c (emitpcode_real): emit warning on NULL pCodeOp,
5497           (popGet): allow larger offsets for AOP_PCODE,
5498           (genDataPointerSet): handle literals explicitly, more debug output,
5499           (genAssign): fixed for float using aopLiteral ;-)
5500         * src/pic/glue.c (pic14createInterruptVect): inserted pagesel before
5501           GOTO initialisation routine
5502         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): set wasUsed
5503           flag on registers, fixes #1469043 (local variables do not work)
5504         * src/pic/main.c (_pic14_do_link),
5505         * src/pic16/main.c (_pic16_linkEdit): use fullDstFileName if
5506           available
5507
5508 2006-06-25 Borut Razem <borut.razem AT siol.net>
5509
5510         * device/lib/pic16/libc/stdio/sprintf.c: return the number of
5511           characters printed (not including the trailing '\0' used to end
5512           output to strings). Problem detected in regression test bug-927659.c.
5513           NOTE: printf() family functions should return int instead
5514           unsigned int!
5515         * device/lib/pic16/libc/stdio/vfprintf.c: "%%" prints "%", unknown
5516           specifier are printed as themselves
5517         * sdcc/support/regression/tests/bug1057979.c: pic16 printf doesn't
5518           support flags, width and precision specifiers
5519
5520 2006-06-24 Borut Razem <borut.razem AT siol.net>
5521
5522         * sdcc/support/regression/tests/bitvars.c: added gbz80, pic16 and pic16
5523           to the list of sdcc tagrets not supporting bit type
5524         * sdcc/support/regression/tests/bug-905992.c.c: excluded regression
5525           testfor pic16 due to bug:
5526           [ 1511794 ] pic16: regression test bug-895992.c fails
5527
5528 2006-06-24 Maarten Brock <sourceforge.brock AT dse.nl>
5529
5530         * src/mcs51/gen.c (genCmp): optimization for RFE 1162453
5531         * src/SDCCglue.c (initPointer), fixed bug 1496419
5532         * support/regression/tests/bug1496419.c: new, added
5533
5534 2006-06-22 Borut Razem <borut.razem AT siol.net>
5535
5536         * support/regression/ports/pic16/support.c: use gpsim usart module from
5537           libgpsim_modules library
5538
5539 2006-06-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5540
5541         * device/include/mcs51/at89c51ed2.h: Fixed bug 1510144 changed
5542         IP0H to IPH0.
5543
5544 2006-06-19 Raphael Neider <rneider AT web.de>
5545
5546         * src/pic/glue.h,src/pic16/glue.h: added prototypes
5547         * src/pic/glue.c,src/pic16/glue.c (pic1x_stringInSet,
5548           pic1x_emitSymbolIfNew): NEW, check for a string in a set,
5549           (pic14printExterns,pic14printPublics,pic16printPublics,
5550           pic16_printExterns): use new functions to emit symbols
5551           (picglue,pic16glue): emit publics before emitting externs
5552         * src/pic/gen.c,src/pic16/gen.c (genFunction): remember the names of
5553           locally defined functions to avoid bug #1443651
5554         * support/regression/tests/bug-716242.c: removed pic16 workaround
5555         * support/regression/ports/pic16/spec.mk: ignore errors during build
5556
5557 2006-06-19 Raphael Neider <rneider AT web.de>
5558
5559         * src/pic/glue.h: added pic14aopLiteral prototype
5560         * src/pic/glue.c (pic14aopLiteral): return unsigned int
5561         * src/pic/gen.c: removed stdint.h dependency
5562           (aopGet): use Safe_strdup()
5563           (bitpatternFromVal): removed, replaced use with pic14aopLiteral
5564           (genDataPointerSet): use pic14aopLiteral()
5565         * src/pic16/glue.h, src/pic16/glue.c, src/pic16/gen.c: similar changes
5566           for pic16; thanks to Bernhard and Maarten
5567
5568 2006-06-18 Borut Razem <borut.razem AT siol.net>
5569
5570         * support/regression/tests/structflexarray.c: flexible array members
5571           not supported by gcc < 3
5572         * sim/ucsim/configure, sim/ucsim/configure.in: do not compile serio
5573           GUI tool by default
5574         * src/pic/gen.c: don't include [p]strdin.h on solaris
5575         * support/Util/pstdint.h: addad svn attributes
5576         * support/regression/tests/constantRange.c,
5577           support/regression/tests/rotate.c: include inttypes.h instead
5578           stdint.h on solaris, addad svn attributes
5579
5580 2006-06-18 Raphael Neider <rneider AT web.de>
5581
5582         * src/SDCCsymt.c (initCSupport): change return type of divschar to
5583           int for PIC16
5584         * src/pic16/genarith.c (genAddLit): sign-extend via standard routine
5585           (pic16_genMinusBits): simplified sign-extension
5586           (pic16_genUMult8XLit_8,pic16_genUMult8X8_8): renamed to
5587             pic16_genMult8XLit_n resp. pic16_genMult8X8_n, fixed and
5588             adjusted to correctly handle mixed-signed operands, disabled
5589             now unused multiplciation routines
5590         * src/pic16/gen.c (pic16_pushpCodeOp): fixed to handle literals
5591           (assignResultValue): added argument denoting the size of the result
5592             as returned by the function (fixes upcasts in assigning from
5593             function calls: char foo(); int i = foo();)
5594           (genCall,genPcall,genGenPointerGet,genReceive): pass size of
5595             function result to assignResultValue
5596           (genMult): disabled inlined multiplication code
5597           (genDiv): augmented to also handle the modulus operator, fixed to
5598             handle mixed-signed operands correctly
5599           (genMod): simply call genDiv, disabled unused code
5600           (genAssign): fixed missing (sign-)extension on result
5601         * src/pic16/main.c (_hasNativeMulFor): accept literals [-128..256) as
5602             valid char operands, allow signed operands for native code, added
5603             division and modulo operator handling
5604         * device/lib/pic16/libsdcc/char/divschar.c: divschar returns an int
5605
5606         As a consequence, onebyte.c (if split into two files) and muldiv.c
5607         pass regression tests.
5608
5609 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5610
5611         * doc/Makefile.in: two runs of makeindex seem needed to get
5612         correct page references in the index of sdccman.pdf
5613         * doc/sdccman.lyx: mentioned cmon51, added links, small changes
5614
5615 2006-06-17 Borut Razem <borut.razem AT siol.net>
5616
5617         * sdcc/device/lib/Makefile.in: corrected PORTINCDIR path
5618
5619 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5620
5621         * doc/sdccman.lyx: updated, added (porting source code, debugging),
5622         mentioned ec2drv and paulmon
5623
5624 2006-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
5625
5626         * as/mcs51/lkarea.c (lnkarea2): clear new xdatamap, bugfix for two
5627           consecutive abs areas
5628           (find_empty_space, allocate_space): added map to handle codemap or
5629            xdatamap,
5630           (lnksect2): renamed rloc to locIndex, fixed bug 960060 by handling
5631            absolute idata and xdata
5632         * as/mcs51/lkmem.c (summary2): updated legend
5633
5634 2006-06-16 Raphael Neider <rneider AT web.de>
5635
5636         * src/pic16/gen.c (shiftR2Left2Result): fixed bug #1507127
5637
5638 2006-06-13 Maarten Brock <sourceforge.brock AT dse.nl>
5639
5640         * debugger/mcs51/cmd.c (cmdListFunctions): fixed bugs 1181163 and
5641           1208515
5642         * src/SDCClrange.c (findPrevUse): fixed bug 1294475
5643
5644 2006-06-13 Vangelis Rokas <vrokas AT users.sourceforge.net>
5645
5646         * src/port.h (struct PORT): added field gp_tags, to hold the tag
5647         value of generic pointers,
5648         * src/avr/main.c,
5649           src/ds390/main.c,
5650           src/hc08/main.c,
5651           src/izt/i186.c,
5652           src/izt/tlcs900h.c,
5653           src/mcs51/main.c,
5654           src/pic/main.c,
5655           src/pic16/main.c,
5656           src/xa51/main.c,
5657           src/z80/main.c: PORT structure, added elements for gp_tags field,
5658         * src/SDCCsymt.h: replaced hardwired values of GPTYPE_* macros with
5659         fields in the PORT structure of each port,
5660         * src/SDCCast.c (decorateType): allow processing of generic pointers
5661         for PIC16 port (FPTRSIZE equals GPTRSIZE), also set GPTYPE_NEAR for
5662         S_FIXED symbols
5663
5664 2006-06-12 Maarten Brock <sourceforge.brock AT dse.nl>
5665
5666         * link/z80/lkgb.c,
5667         * link/z80/lkgg.c,
5668         * src/pic16/gen.c,
5669         * src/pic16/main.c,
5670         * src/pic16/pcode.c,
5671         * src/pic/main.c,
5672         * src/pic/pcoderegs.c,
5673         * src/SDCCicode.c,
5674         * src/SDCCmain.c,
5675         * src/SDCCsymt.c: replaced all exit(-1) by exit(EXIT_FAILURE) to fix
5676           bug 1504689 on minGW
5677
5678 2006-06-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5679
5680         * device/lib/printf_tiny.c: fixed bug #1465675 (%x format specifier)
5681
5682 2006-06-12 Bernhard Held <bernhard AT bernhardheld.de>
5683
5684         * src/SDCCast.c (backPatchLabels): fixed bug #1504636
5685
5686 2006-06-11 Maarten Brock <sourceforge.brock AT dse.nl>
5687
5688         * device/lib/printf_large.c (OUTPUT_CHAR, _output_char): added and used
5689           for optimization
5690
5691 2006-06-11 Vangelis Rokas <vrokas AT users.sourceforge.net>
5692
5693         * src/pic16/gen.c (genCast): fixed bug with assignment of a pointer
5694         to a char variable. Fixed bug #1504211
5695         * device/include/pic16/adc.h,
5696         device/include/lib/pic16/libio/adc/adcopen.c: applied patch #1364387
5697         and fixed bug #1364390
5698
5699 2006-06-10 Borut Razem <borut.razem AT siol.net>
5700
5701         * CVSROOT: removed the CVS left-over
5702
5703 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
5704
5705         * as/hc08/asmain.c (asexit),
5706         * as/hc08/lkmain.c (lkexit),
5707         * as/mcs51/asmain.c (asexit),
5708         * as/mcs51/lkmain.c (lkexit),
5709         * src/SDCCglue.c (DEFSETFUNC),
5710         * src/SDCCmain.c (linkEdit, assemble),
5711         * support/librarian/sdcclib.c (AddRel),
5712           replaced unlink() by standard C remove()
5713         * src/SDCC.y: replaced removePostIncDecOps() by createRMW()
5714         * src/SDCCast.c (replaceAstWithTemporary, createRMW,
5715           gatherImplicitVariables): new, added to fix bug 608752,
5716           (createFunction): added gatherImplicitVariables()
5717         * src/SDCCast.h: added createRMW prototype
5718         * src/SDCCsymt.h (struct symbol): added infertype
5719         * support/regression/tests/bug608752.c: new, added
5720
5721 2006-06-10 Raphael Neider <rneider AT web.de>
5722
5723         * src/pic16/gen.c (pic16_aopOp): use WREG as destination even for
5724           multibyte dummy reads (fixes #1503234)
5725
5726 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
5727
5728         * device/include/mcs51/compiler.h: new, added header file to enable
5729           creating common sfr definition header files for different compilers
5730
5731 2006-06-05 Raphael Neider <rneider AT web.de>
5732
5733         * src/pic16/{pcode.h,genarith.c}:
5734           introduced pCodeOp combining any two pCodeOps (previously only
5735           two register operands could be combined), removed pcop2 from
5736           pCodepReg, replaced pCodeOpReg2 with pCodeOp2, fixes #1492366
5737         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): added case for PO_TWO_OPS
5738         * src/pic16/gen.c (pic16_popGet2,pic16_popGet2p,pic16_popCombine2):
5739           rewritten to use new PO_TWO_OPS
5740         * src/pic16/main.c (_hasNativeMulFor): cover more cases natively,
5741         * src/pic16/pcode.c (pic16_newpCodeOpImmd): initialize rIdx field,
5742           (pic16_newpCodeOp): catch invalid attempts on PO_TWO_OPS,
5743           (pic16_newpCodeOp2): NEW, create combined pCodeOp,
5744           (pic16_get_op): embraced return arg to allow #define return(x),
5745             added new case for combined opcodes
5746           (pic16_get_op2): reduced to use pic16_get_op() on second pCodeOp,
5747           (pic16_pCode2str,pic16_getRegFrompCodeOp,
5748            pic16_getRegFromInstruction2): fixed/added handling of new pCodeOp
5749
5750 2006-06-04 Bernhard Held <bernhard AT bernhardheld.de>
5751
5752         * src/SDCCval.c (checkConstantRange): added
5753         * src/SDCCval.h: added checkConstantRange
5754         * support/Util/SDCCerr.c,
5755         * support/Util/SDCCerr.h: replaced unused W_IF_NEVER_TRUE and
5756         W_IF_ALWAYS_TRUE by W_COMP_RANGE and W_LIT_OVERFLOW
5757         * src/SDCC.y: moved early 'condition transformations' to SDCCast.c
5758         * src/SDCCast.c (decorateType): added checkConstantRange,
5759         added 'condition transformations' from SDCC.y so that now W_COMP_RANGE
5760         can be emitted with the correct always true/false warning,
5761         added optimization for double '!';
5762         result of decorateType() must be assigned back to the tree, because
5763         decorateType() can change the tree
5764         * src/SDCCicode.c (geniCodeLogic),
5765         (geniCodeAssign): replaced new checkConstantRange, added warnings,
5766         (checkConstantRange): removed, it was only a fragment which never
5767         emitted a warning
5768         * src/SDCCsymt.c (computeType): fixed promotion for
5769         "-1 < (unsigned bit) b"
5770         * src/pic/ralloc.c (packRegsForAssign),
5771         * src/pic16/ralloc.c (packRegsForAssign),
5772         * src/hc08/ralloc.c (packRegsForAssign),
5773         * src/z80/ralloc.c (packRegsForAssign): ported fix for bug #930931
5774         from mcs51
5775         * src/mcs51/ralloc.c (packRegsForAssign): removed outcommented source
5776         * support/regression/tests/constantRange.c: added
5777         * support/valdiag/tests/constantRange.c: added
5778         * support/valdiag/valdiag.py: added -DPORT_HOST=1
5779
5780 2006-06-02 Borut Razem <borut.razem AT siol.net>
5781
5782         * support/regression/ports/pic16/support.c: increase stack size
5783           to 255 bytes
5784         * support/regression/Makefile.in: sort tests by name so that the
5785           resutlts can be compared on different machines / platforms
5786
5787 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
5788
5789         * device/lib/printf_large.c (output_digit): optimized further, Tnx Frieder
5790         * src/ds390/gen.c (emitLabel): new, added,
5791           (genDjnz): fixed stack overflow bug,
5792           (throughout): cosmetic changes to sync with mcs51/gen.c,
5793           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl)
5794         * src/mcs51/gen.c (genEndFunction): small optimization,
5795           (throughout): cosmetic changes to sync with ds390/gen.c
5796
5797 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
5798
5799         * device/lib/printf_large.c (output_digit, calculate_digit): optimized,
5800           (_print_format): fixed printing pointers
5801         * src/mcs51/gen.c (emitLabel, movb): new, added,
5802           (genAssign): small optimization,
5803           (genDjnz): fixed stack overflow bug,
5804           (throughout): replaced sprintf with SNPRINTF,
5805           replaced mcs51_regWithIdx with REG_WITH_INDEX,
5806           replaced emitcode("mov", "b,...") with MOVB(...),
5807           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl),
5808           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
5809         * src/mcs51/peeph.def: added rules 140 and 264
5810         * src/SDCCmem.c (allocLocal): store register declared locals in DSEG/OSEG
5811           so they may get optimized into registers
5812
5813 2006-05-30 Maarten Brock <sourceforge.brock AT dse.nl>
5814
5815         * src/SDCCmain.c (optionsTable, parseCmdLine): handle --use-stdout
5816           immediately when encountered,
5817           (printUsage): always use stderr even on windows
5818
5819 2006-05-30 Bernhard Held <bernhard AT bernhardheld.de>
5820
5821         * src/SDCCast.c (isLoopCountable): fixed bug #1478316
5822         (processParms): fixed bug #1247551
5823         * src/SDCCmain.c (printVersionInfo, printOptions, printUsage,
5824         parseCmdLine, main): print '--version' to stdout,
5825         print 'help' to stdout if --help is given,
5826         print 'help' to stderr and exit with EXIT_FAILURE if no or bad
5827         arguments are given; fixed --help
5828
5829 2006-05-27 Bernhard Held <bernhard AT bernhardheld.de>
5830
5831         * src/SDCCcse.c (findPointerSet): fixed bug #1493710
5832         * support/regression/tests/bug-1493710.c: added
5833
5834 2006-05-27 Borut Razem <borut.razem AT siol.net>
5835
5836         * support/regression/fwk/lib/testfwk.c: define array in _printn() as
5837           static instead auto
5838         * support/regression/ports/pic16/support.c: increase stack size
5839           from default 64 bytes to 128 bytes
5840         * support/regression/tests/staticinit.c,
5841           support/regression/tests/float.c: regression tests fully enabled
5842           for pic16 port by putting the initialized data arrays into the code
5843           section
5844         * support/regression/ports/pic16/spec.mk: don't link default libraries.
5845           This was changed by mistake in the previous version.
5846
5847 2006-05-28 Vangelis Rokas <vrokas AT users.sourceforge.net>
5848
5849         * src/pic16/gen.c (genFunction, genEndFunction): some
5850         beautifications, fixed bug with falsely restoring FSR2 in large
5851         stack model, thanks to Beau E. Cox for reporting the bug
5852
5853 2006-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
5854
5855         * debugger/mcs51/break.c,
5856         * debugger/mcs51/cmd.c (throughout): removed unused variables and labels,
5857           use %p to print pointers, made address variables unsigned
5858         * debugger/mcs51/cmd.c (infoSymbols): added missing parameter to printf
5859         * debugger/mcs51/symtab.c (parseSymbol): must return something
5860         * src/mcs51/gen.c (aopForSym): small optimization,
5861            moved declarations mcs51_ptrRegReq and mcs51_nRegs to ralloc.h,
5862           (freeAsmop): added missing break,
5863           (aopPut): removed parameter bvolatile, determine it inside the function,
5864           (saveRegisters, unsaveRegisters): small optimization,
5865           (genIpush): removed pointless check,
5866           (throughout): replaced Safe_calloc, strcpy with Safe_strdup,
5867           replaced sprintf with SNPRINTF,
5868           replaced strcpy with strncpyz,
5869           updated aopPut calls,
5870           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
5871         * src/mcs51/ralloc.h:  added declarations mcs51_ptrRegReq and mcs51_nRegs
5872
5873 2006-05-24 Borut Razem <borut.razem AT siol.net>
5874
5875         * support/regression/tests/bug-221100.c: fixed xdata problem caused by
5876           modification of test for the pic16 port, put the array to the code
5877           memory for pic16port; thanks to Maarten Brock and Frieder Ferlemann
5878
5879 2006-05-23 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5880
5881         * src/pic/gen.c: MSC 6 does not have <stdint.h>.  Use pstdint.h instead.
5882         * support/Util/pstdint.h: added
5883
5884 2006-05-22 Borut Razem <borut.razem AT siol.net>
5885
5886         * src/regression/Makefile: removed bool2.c test, added -q linker option
5887         * src/regression/add2.c, src/regression/add3.c, src/regression/bool1.c,
5888           src/regression/bool3.c, src/regression/nestfor.c, src/regression/ptrfunc.c,
5889           src/regression/compare.c, src/regression/or1.c, src/regression/compare2.c,
5890           src/regression/while.c, src/regression/compare3.c, src/regression/compare4.c,
5891           src/regression/compare5.c, src/regression/sub2.c, src/regression/rotate1.c,
5892           src/regression/rotate2.c, src/regression/rotate3.c, src/regression/rotate4.c,
5893           src/regression/switch1.c, src/regression/rotate5.c, src/regression/for.c,
5894           src/regression/add.c, src/regression/sub.c, src/regression/call1.c:
5895           define SUPPORT_BIT_TYPES 0, removed unused bit variables
5896
5897 2006-05-22 Raphael Neider <rneider AT web.de>
5898
5899         * src/pic16/gen.c (pic16_storeForReturn): fragile fix for
5900           bug #1492360 (problematic due to generic pointers, see code)
5901
5902 2006-05-22 Borut Razem <borut.razem AT siol.net>
5903
5904         * support/regression/ports/pic16/specs.mk: removed stack size linker
5905           directive
5906         * support/regression/tests/array.c,
5907           support/regression/tests/bitopcse.c,
5908           support/regression/tests/bug-908454.c,
5909           support/regression/tests/malloc.c: modified for pic16 regression test
5910         * support/regression/tests/bitfields.c:
5911           pic16 - excluded bitfileds of size > 8
5912         * support/regression/tests/bp.c: pic16 - reduced data size
5913         * support/regression/tests/bug-221100.c: pic16 - reduced data size
5914         * support/regression/tests/bug-460010.c:
5915           pic16 - used the absolute address the fits in memory
5916         * support/regression/tests/bug-716242.c:
5917           bug [ 1443651 ] pic 16: redefining symbol that cannot be redefined.
5918         * support/regression/tests/float.c:
5919           pic16 - excluded - data size too big
5920         * support/regression/tests/onebyte.c:
5921           pic16 - bug [ 1444425 ] onebyte.c regression tes fails on pic16
5922         * support/regression/tests/shifts.c:
5923           pic16 - function names probably have to differ in first X characters
5924           (gpasm limitation?)
5925         * support/regression/tests/staticinit.c:
5926           pic16 - excluded some tests due error: no target memory available for
5927           section ".idata"
5928
5929 2006-05-22 Borut Razem <borut.razem AT siol.net>
5930
5931         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
5932           second try. Thanks Stas Sergeev once more.
5933
5934 2006-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
5935
5936         * src/hc08/gen.c (transferAopAop): aop forced to stack was not restored,
5937           (genLeftShift, genRightShift): fixed bug 1491627
5938         * src/hc08/peeph.def (rules 7, 8.x): added
5939         * support/regression/tests/shifts.c (ShiftLeftByParam,
5940           ShiftRightByParam, testShiftByParam): added to test variable shifting
5941
5942 2006-05-20 Raphael Neider <rneider AT web.de>
5943
5944         * src/pic/gen.c (bitpatternFromVal): fixed for 64-bit machines
5945         * src/pic16/ralloc.c (newReg): use correct name in hashtable,
5946           (allocReg): add only new registers to dynAllocRegs,
5947           (pic16_assignRegisters): do not reset dynrIdx, fixes bugs
5948             #1489055, #1445850, and probably #1483693
5949
5950 2006-05-19 Vangelis Rokas <vrokas AT users.sourceforge.net>
5951
5952         * src/pic16/glue.c (pic16_emitConfigRegs, pic16_emitIDRegs): fixed
5953         bug in for-loop that didn't emit the last of CONFIG and ID registers
5954
5955 2006-05-18 Maarten Brock <sourceforge.brock AT dse.nl>
5956
5957         * src/mcs51/gen.c (genCodePointerGet): inc dptr instead of loading acc
5958           with offset
5959         * src/mcs51/peeph.def (186.x): updated and reenabled to fix bugs
5960           1489016, 1434401 and 1490124
5961         * src/ds390/peeph.def (186.x, 227.x): updated and reenabled to fix bugs
5962           1489016, 1434401 and 1490124
5963
5964 2006-05-17 Borut Razem <borut.razem AT siol.net>
5965
5966         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
5967           thanks Stas Sergeev
5968
5969 2006-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
5970
5971         * device/include/mcs51/P89c51RD2.h,
5972         * device/include/mcs51/P89LPC901.h,
5973         * device/include/mcs51/P89LPC922.h,
5974         * device/include/mcs51/P89LPC932.h: added, thanks Omar Espinosa
5975
5976 2006-05-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
5977
5978         * device/lib/pic16/libsdcc/stack/{stack.S, Makefile.in}: add workaround
5979         to fix missing stack pragma in compiled binary object file,
5980
5981 2006-05-14 Bernhard Held <bernhard AT bernhardheld.de>
5982
5983         * support/packihx/configure.in,
5984         * support/packihx/configure: removed warning, autoconf >= 2.5x can
5985         determine sizeof basic types even while cross compiling
5986
5987 2006-05-13 Bernhard Held <bernhard AT bernhardheld.de>
5988
5989         * src/avr/gen.c (aopop),
5990         * src/ds390/gen.c (aopOp),
5991         * src/hc08/gen.c (aopOp),
5992         * src/mcs51/gen.c (aopop),
5993         * src/pic16/gen.c (pic16_aopOp),
5994         * src/pic/gen.c (aopOp),
5995         * src/z80/gen.c (aopop): fix for bug #1479882; use new, exclusive asmop
5996         if size of operand is smaller than spill location
5997
5998 2006-05-12 Borut Razem <borut.razem AT siol.net>
5999
6000         * *.dsw, *.dsp: changed property svn:eol-style to CRLF since they
6001           have to have CR/LF line endings even if they are checked out on *nix
6002           or on WIN32 in cygwin binmode
6003
6004 2006-05-12 Maarten Brock <sourceforge.brock AT dse.nl>
6005
6006         * doc/sdccman.lyx: documented numeric ranges, WEBDOC #1442369
6007         * device/include/ds80c390.h: added sfr16 definitions
6008         * src/ds390/gen.c,
6009         * src/ds390/gen.h,
6010         * src/ds390/main.c,
6011         * src/ds390/ralloc.c,
6012         * src/ds390/ralloc.h: changes all over the place to sync with mcs51
6013           fixing several bugs and adding sfr16/sfr32, reentrant bit params,
6014           bit returning functions
6015         * support/regression/tests/sfr16.c: enabled test on ds390
6016
6017 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6018
6019         * src/hc08/gen.c (asmopToBool, genIfx): fix for bug #1429722
6020         * src/hc08/gen.c (storeRegToAop): fix for bug #1439894
6021
6022 2006-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
6023
6024         * sim/ucsim/sim.src/memcl.h: added get_decoder() to cl_address_space
6025         * sim/ucsim/sim.src/mem.cc: implemented cl_address_space::get_decoder,
6026           (cl_address_space constructor): removed expensive initialization,
6027           (cl_address_space::get_cell): extended for late initialization,
6028           (cl_address_space::*): use late initialization,
6029           (cl_address_decoder::activate): removed expensive initialization,
6030           This reduced regression test running time by 25%
6031
6032 2006-05-11 Bernhard Held <bernhard AT bernhardheld.de>
6033
6034         * packihx/,
6035         * configure.in,
6036         * configure,
6037         * sdcc.dsw,
6038         * Makefile.bcc,
6039         * Makefile.in,
6040         * support/packihx/Makefile.in,
6041         * support/packihx/clean.mk,
6042         * support/packihx/Makefile.bcc,
6043         * support/packihx/PackIhx.dsp: moved packihx to support/packihx
6044
6045 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6046
6047         * src/SDCCval.c (valNot): fix for regression test failure
6048           of not.c on big endian hosts
6049
6050 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
6051
6052         * device/inlcude/mcs51/msc1210.h: new, added, thanks Philippe Latu
6053
6054 2006-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6055
6056         * device/lib/mcs51/Makefile.in: changed string comparison operator
6057           to = for POSIX compliance; == is bash extension
6058
6059 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
6060
6061         * device/lib/hc08/_mulint.c: applied patch 1485428, thanks
6062           kosmonaut_pirx
6063
6064 2006-05-09 Vangelis Rokas <vrokas AT users.sourceforge.net>
6065
6066         * src/pic16/gen.c (pic16_freeAsmop): release any temp registers
6067         allocated by aopForSym thus fixing bug #1478657 about failed testfwk.c
6068         * src/pic16/main.c (_pic16_keywords): added 'sfr16' keyword,
6069         * src/pic16/ralloc.c (pic16_allocWithIdx): also a fix for bug exposed by
6070         bug report #1478657,
6071
6072 2006-05-05 Borut Razem <borut.razem AT siol.net>
6073
6074         * doc/Makefile.in: remove of WARNINGS and labels.pl immediately after
6075           making the html
6076
6077 2006-05-02 Borut Razem <borut.razem AT siol.net>
6078
6079         * doc/Makefile.in: removed *.ind dependency since there is no rule to
6080           create *.ind, which made make to fail if invoked with -j 2
6081
6082 2006-05-01 Maarten Brock <sourceforge.brock AT dse.nl>
6083
6084         * src/SDCCglue.c (emitRegularMap): partial fix for bug 1477149, thanks
6085           Hubert Sack for patch 1479782
6086
6087 2006-05-01 Vangelis Rokas <vrokas AT users.sourceforge.net>
6088
6089         * src/pic16/glue.c (pic16_printIvalStruct): fixed bug #1445929
6090
6091 2006-05-01 Raphael Neider <rneider AT web.de>
6092
6093         * src/pic/device.c (sanitise_processor_name): only remove p(ic) prefix,
6094           (create_pic): store only prefix-free device name,
6095           (init_pic): check for device names with "16" prefix,
6096           (list_valid_pics),
6097         * src/pic/device.h (struct PIC_device),
6098         * src/pic/main.c (_pic14_genAssemblerPreamble): adapted to single
6099             stored device name,
6100         * device/include/pic/pic12f{635,675,629,683}.h,
6101         * device/lib/pic/libdev/pic12f{635,675,629,683}.c: NEW device libraries
6102         * device/lib/pic/libdev/Makefile.in: allow pic12* devices,
6103         * device/include/pic/pic16f505.h,
6104         * device/lib/pic/libdev/pic16f505.c: removed
6105         * device/include/pic/pic14devices.txt: added support for pic12f
6106             devices, removed unsupported non 16-bit devices
6107             [above changes provided by patch from Zik Saleeba]
6108         * src/pic/*, src/pic16/*, device/include/pic16/*,
6109           device/lib/pic/**, device/lib/pic16/**: obfuscated email address
6110
6111 2006-05-01 Borut Razem <borut.razem AT siol.net>
6112
6113         * configure.in, configure, doc/Makefile.in:
6114           sync with nightly build makefile - latex, dvipdf and dvips
6115           not needed any more
6116
6117 2006-04-30 Bernhard Held <bernhard AT bernhardheld.de>
6118
6119         * support/scripts/sdcc.nsi: removed all Readmes and Makefiles
6120         in the library source
6121
6122 2006-04-30 Maarten Brock <sourceforge.brock AT dse.nl>
6123
6124         * support/regression/ports/hc08/spec.mk: fixed bug 1478892
6125
6126 2006-04-28 Raphael Neider <rneider AT web.de>
6127
6128         * src/pic16/pcode.c (pic16_newpCodeOpLit12),
6129         * src/pic16/gen.c (pic16_popGetLit12): NEW, create 12 bit literal,
6130           (pic16_loadFSR0): handle 12 bit literals correctly, fixes #1440527
6131         * src/pic16/pcode.h: added prototype for pic16_newpCodeOpLit12()
6132
6133 2006-04-28 Bernhard Held <bernhard AT bernhardheld.de>
6134
6135         * device/lib/pic/libdev/Makefile.in,
6136         * device/lib/hc08/Makefile.in,
6137         * device/lib/gbz80/Makefile.in,
6138         * device/lib/z80/Makefile.in,
6139         * device/lib/ds390/Makefile.in,
6140         * device/lib/ds400/Makefile.in: added srcdir to include search path,
6141         thanks to Borut for the bug report
6142         * configure.in,
6143         * configure: always create doc/Makefile independent from --enable-doc
6144         * Makefile.in: always install from directory doc independent from
6145         --enable-doc
6146         * device/lib/pic/Makefile.in: added libdev again, it was erroneously
6147         removed
6148         * device/lib/pic/libdev/Makefile.in: fixed VPATH build
6149         * doc/Makefile.in: install *.txt if present
6150         * device/include/Makefile.in (install): added installation of pic/*.inc
6151         and pic/*.txt files again, they were erroneously removed
6152
6153 2006-04-28 Raphael Neider <rneider AT web.de>
6154
6155         * src/pic/{gen.c,main.h,pcode.c},
6156         * src/pic16/{gen.c,pcode.c}: quietened compiler warnings
6157             concerning signedness with casts
6158
6159 2006-04-28 Raphael Neider <rneider AT web.de>
6160
6161         * src/pic/gen.c (genFunction): set global pic14_hasInterrupt on
6162             definition of an interrupt handler,
6163         * src/pic/glue.c (pic14_emitInterruptHandler): moved output of
6164             interrupt handler stuff from picglue() to separate routine,
6165           (picglue): enabled definition of intr handlers in files w/o main()
6166
6167 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
6168
6169         * support/librarian/sdcclib.c: moved include <limits.h> up to enable
6170           compilation with MSVC 2005 Express Edition (VC8)
6171
6172 2006-04-26 Bernhard Held <bernhard AT bernhardheld.de>
6173
6174         * device/lib/Makefile: fixed build of gbz80 lib
6175
6176 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
6177
6178         * support/regression/tests/bug-460010.c,
6179         * support/regression/tests/bug-524691.c,
6180         * support/regression/tests/bug-716242.c: removed conditional defines
6181           that are already in testfwk.h
6182
6183 2006-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
6184
6185         * src/ds390/gen.c (AccAXRrl1, AccAXLrl1): changed to real rotate by 1,
6186           (AccAXRsh1): added, shift right by 1,
6187           (AccAXLsh, AccAXRsh, AccAXRshS): updated for AccAXRrl1, AccAXRsh1 and
6188            AccAXLrl1
6189         * support/regression/tests/rotate.c: use <stdint.h> and enabled ds390
6190
6191 2006-04-25 Bernhard Held <bernhard AT bernhardheld.de>
6192
6193         * src/SDCCast.c (decorateType): partial fix for RFE 1475769,
6194         remove cast to same type
6195         * src/SDCCast.c (decorateType): fix for RFE 1475742,
6196         optimize 'ifx (op == 0)' resp. 'ifx (op != 0)'
6197         * as/z80/Makefile,
6198         * link/z80/Makefile: removed, they have moved to
6199         Makefile.in files
6200         * configure,
6201         * configure.in: replaced duplicate message about ucsim by missing sdcpp
6202         * install-sh: fix bug #1204398 by setting umask 0022
6203         * device/lib/Makefile: separate build of z80 and gbz80 lib
6204
6205 2006-04-24 Bernhard Held <bernhard AT bernhardheld.de>
6206
6207         Enabled VPATH feature: changed nearly all Makefiles (149 files).
6208         See sdccman.lyx '2.4.10 VPATH feature' about how to use it.
6209
6210         One basic decision: e.g. src/clean.mk includes further files. In order
6211         to make this work there are two solutions:
6212         - rename another dozen clean.mk to clean_in.mk, add srcdir to them and
6213           run configure on them. This way they can use
6214           'include $(srcdir)/port-clean.mk'
6215         - always include clean.mk by the Makefile at the same level. To avoid
6216           that `make clean` tries to include and build Makefile.dep the
6217           MAKECMDGOALS are examined (see e.g. src/Makefile.in). This has been
6218           implemented, because now even `make uninstall` doesn't create
6219           Makefile.in. clean.mk could be eliminated by pasting it in
6220           Makefile.in.
6221
6222         * debugger/mcs51/Makefile.in: build own objects from library sources
6223         (SLIB, SDCC) in current directory
6224
6225         * configure, configure.in: renamed --disable-device-lib-build in
6226         --disable-device-lib; added --enable-doc, the required tools are
6227         searched by configure; added result message; the toolchain for the
6228         belonging ports are now only built, if the port is enabled.
6229
6230         * support/regression/*: all output is written in directory gen, because
6231         the fwk and ports directories don't livet in the build tree using vpath
6232
6233         * doc/sdccman.lyx: renamed --disable-device-lib-build to
6234         --disable-device-lib, added --enable-doc, added section VPATH
6235
6236         * sim/ucsim/configure.in,
6237         * sim/ucsim/configure.in: hc08 couldn't be disabled, now hc08 and
6238         z80 are enabled by default
6239
6240 2006-04-24 Raphael Neider <rneider AT web.de>
6241
6242         * src/pic/device.c (pic14_assignConfigWordValue): remember assignments
6243             to config word, "pic14_"-prefixed some extern functions
6244           (pic14_emitConfigWord): emit __config directive(s) if assignment to
6245             config word has been found
6246         * src/pic/device.h: added prototypes
6247         * src/pic/pcode.c: added "pic14_"-prefix where needed
6248         * src/pic/ralloc.c (IS_CONFIG_ADDRESS,pic14_assignRegisters): cosmetic
6249             fixup
6250         * src/pic/glue.c (pic14_constructAbsMap): handle assignments to config
6251             words,
6252           (pic14emitRegularMap): ignore config words,
6253           (pic14createInterruptVect): moved generating __config directives away
6254           (picglue): have __config directives emitted
6255
6256 2006-04-24 Borut Razem <borut.razem AT siol.net>
6257
6258         * doc/Makefile: sync with nightly build makefile
6259
6260 2006-04-24 Raphael Neider <rneider AT web.de>
6261
6262         * src/pic/pcoderegs.c (OptimizeRegUsage): do not optimize
6263             registers that have not been assigned proper liveranges,
6264             fixes #1469504 and #1474602,
6265           (pCodeRegOptimizeRegUsage): fixed typo in comment
6266
6267 2006-04-24 Borut Razem <borut.razem AT siol.net>
6268
6269         * device/examples/main8051.c: deleted - it was removed from CVS
6270           24.mar.2000 and after that modified 18.feb.2001, so it reappered
6271           after the transition to Subversion
6272         * src/SDCCalloc.h: deleted - it was removed  from CVS
6273           3.feb.2001 and after that modified 18.feb.2001, so it reappered
6274           after the transition to Subversion
6275         * sim/ucsim/cpu.gif, sim/ucsim/interrupt.gif, sim/ucsim/new.gif,
6276           sim/ucsim/serial1.gif, sim/ucsim/serial2.gif,
6277           sim/ucsim/term_cpuopt.gif, sim/ucsim/timers.gif, sim/ucsim/wins.gif,
6278           sim/ucsim/post.jpg, sim/ucsim/UCsim.jpg: corrected
6279
6280 2006-04-22 Maarten Brock <sourceforge.brock AT dse.nl>
6281
6282         * as/asx8051.dsp: added mcs51/strcmpi.h
6283         * as/hc08/as_hc08.dsp: added asm.h, m6808.h, strcmpi.h
6284         * as/hc08/aslink.h: updated lnksect prototype
6285         * as/hc08/asm.h,
6286         * as/mcs51/asm.h: added a_addr to struct area and s_org to struct sym
6287         * as/hc08/asmain.c,
6288         * as/mcs51/asmain.c (asmbl): init dot.s_org for S_ORG,
6289           (newdot): handle A_ABS
6290         * as/hc08/asout.c,
6291         * as/mcs51/asout.c (outarea): output address
6292         * as/hc08/lkaomf51.c,
6293         * as/mcs51/lkaomf51.c: disabled unused array UsageType
6294         * as/hc08/m08pst.c,
6295         * as/mcs51/i51pst.c,
6296         * as/z80/z80pst.c: "ABS" is not A_OVR
6297         * as/hc08/lkarea.c (newarea): read a_addr,
6298           (lnkarea): added codemap array, sort absolute areas to the front,
6299            combine all GSINITx/GSFINAL,
6300           (find_empty_space, allocate_space): new functions,
6301           (lnksect): return next address, handle absolute sections
6302         * as/mcs51/lkarea.c (newarea): read a_addr,
6303           lnksect2 prototype changed,
6304           (lnkarea2): define codemap unsigned, combine all GSINITx/GSFINAL,
6305           (find_empty_space, allocate_space): new, factored out of lnksect2,
6306           (lnksect2): return next address, handle absolute sections
6307         * as/hc08/lkhead.c,
6308         * as/mcs51/lkhead.c (newhead): head is absolute but not overlay
6309         * as/hc08/lklibr.c (addfile, fndsym),
6310         * as/mcs51/lklibr.c (addfile, buildlibraryindex, fndsym): prevent
6311           index out of range and detect both '\' and '/'
6312         * device/include/mcs51/c8051f200.h: added _XPAGE, removed bad comment
6313         * device/include/stdbool.h: removed SDCC_ds390 from check to pass
6314           regression tests (ds390 cannot return bool yet)
6315         * doc/sdccman.lyx: changed version number, document changed --no-peep,
6316           document critical interrupts on z80, document changed SDCC define
6317         * src/asm.c (_asxxxx_mapping): fixed .org directive,
6318           (_a390_mapping): added .org directive
6319         * src/hc08/gen.c (transferAopAop): made bytemask log to fix warning,
6320           (genMultOneByte): fixed warnings
6321         * src/hc08/hc08.dsp: lowered warning level to 2 to suppress pedantic
6322           ones
6323         * src/pic16/device.c: removed newReg prototype, removed BYTE_IN_LONG
6324         * src/pic16/gen.c (pic16_popGetLabel): made parameter key signed,
6325           (pic16_genLeftShiftLiteral, genRightShiftLiteral): fixed warnings
6326         * src/pic16/gen.h: changed prototype for pic16_popGetLabel
6327         * src/pic16/main.c: removed newReg prototype
6328         * src/pic16/pcode.c,
6329         * src/pic16/pcode.h (pic16_emitDB): changed parameter c to int to fix
6330           warnings
6331         * src/pic16/pic16.dsp: lowered warning level to 2 to suppress pedantic
6332           ones
6333         * src/pic16/ralloc.c
6334         * src/pic16/ralloc.h (newReg): changed type to int and size to unsigned
6335           to fix warnings
6336         * src/pic/pcode.c (allocInternalRegister): changed parameter optype
6337           from short to PIC_OPTYPE
6338         * src/pic/pic.dsp: lowered warning level to 2 to suppress pedantic ones
6339         * src/pic/ralloc.c (newReg, allocInternalRegister): changed parameter
6340           optype from short to PIC_OPTYPE
6341         * src/port.h: made int_size unsigned to fix warnings
6342         * src/SDCC.y: fixed warning on MSVC
6343         * src/SDCCicode.c (getArraySizePtr): return unsigned int
6344         * src/SDCCopt.c (convertToFcall): fixed warnings
6345         * src/SDCCsymt.h: removed double prototype for genSymName
6346         * src/xa51/ralloc.c (allocReg): made size unsigned int, type int and
6347           offset int to fix warnings
6348
6349 2006-04-22 Borut Razem <borut.razem AT siol.net>
6350
6351         * doc/sdccman.lyx, */Makefile, */Makefile.in:
6352           references to CVS replaced with Subversion
6353
6354 2006-04-21 Borut Razem <borut.razem AT siol.net>
6355
6356         * doc/sdccman.lyx, */Makefile, */Makefile.in:
6357           references to CVS replaced with Subversion
6358
6359 2006-04-19 Borut Razem <borut.razem AT siol.net>
6360
6361         * src/version.awk: adapted for svn
6362         * /asxxxx/asxhtml/*.gif: set property svn:mime-type to image/gif
6363           sim/ucsim/doc/*.gif: set property svn:mime-type to image/gif
6364           sim/ucsim/doc/*.jpg: set property svn:mime-type to image/jpeg
6365           /binutils-avr/etc/*.vi, *.jin: removed all properties
6366           support/scripts/sdcc.ico: set property svn:mime-type to image/x-icon
6367
6368 2006-04-19 Borut Razem <borut.razem AT siol.net>
6369
6370         * CVS to Subversion migration completed
6371
6372 2006-04-18 Borut Razem <borut.razem AT siol.net>
6373
6374         * support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}/lib/pic/*.o,
6375           ${DEV_ROOT}/lib/src/pic/libdev/*.S, ${DEV_ROOT}/lib/src/pic/libdev/*.inc
6376
6377 2006-04-17 Borut Razem <borut.razem AT siol.net>
6378
6379         * device/include/Makefile.in: added pic/*.inc to the installation
6380
6381 2006-04-15 Bernhard Held <bernhard AT bernhardheld.de>
6382
6383         * support/regression/collate-results.py: fixed output in case of
6384         a valdiag error
6385         * support/regression/generate-cases.py: fixed splitting of pathnames
6386         with dots
6387         * as/hc08/lklibr.c (addfile),
6388         * as/mcs51/lklibr.c (addfile): fixed off-by-one bug
6389
6390 2006-04-11 Raphael Neider <rneider AT web.de>
6391
6392         * src/pic16/gen.c (getFreePtr, pic16_popRegFromString),
6393         * src/pic16/ralloc.c (pic16_allocregWithName): removed debug output
6394         * src/pic16/pcode.c (assignValnums): fixed #1460578
6395
6396 2006-04-11 Raphael Neider <rneider AT web.de>
6397
6398         * device/lib/pic/libdev/*.c,
6399         * device/include/pic/*.h: replaced sfr and data with __sfr and __data,
6400           fixes #1468739, enables compilation in --std-c99 mode
6401         * support/scripts/inc2h.pl: emit __sfr/__data instead of sfr/data
6402
6403 2006-04-11 Raphael Neider <rneider AT web.de>
6404
6405         * src/pic/device.c (find_device): removed debug output
6406           (list_valid_pics): enabled verbose listing of supported devices
6407         * device/include/stdbool.h: define bool as char for pic14/16 as well
6408
6409 2006-04-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6410
6411         * src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)"
6412
6413 2006-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
6414
6415         * .version: bumped version to 2.5.6
6416         * src/pic/ralloc.c (newReg): MSVC doesn't support __builtin_return_address
6417
6418 2006-04-06 Raphael Neider <rneider AT web.de>
6419
6420         * .version: bumped version to 2.5.6 (pic14 ABI changed)
6421         * src/SDCCmain.c: add -DSDCC_PROCESSOR=<id> for pic14 port
6422         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap,
6423           pic14emitRegularMap,pic14emitMaps): moved output for absolute symbols to
6424             pic14_constructAbsMap
6425           (pic14printPublics): declare absolute global symbols as global
6426           (pic14createInterruptVect),
6427         * src/pic/ralloc.c (IS_CONFIG_ADDRESS): support second config word,
6428           (newReg): assume new registers unused, use correct name in
6429             hashtable (reg->name instead of name), more debugLog output
6430         * src/pic/device.h (PIC_device): added fields for verbose output
6431         * src/pic/device.c: moved device definition to pic14devices.txt,
6432             added routines for runtime parsing of pic14devices.txt,
6433             added support for second config word
6434         * src/pic/main.c (_process_pragma): removed #pragma maxram,
6435           (_pic14_keywords): no longer accept "bit" and "sbit" keywords
6436           (_pic14_initPaths): add search paths with "pic" suffix (not "pic14")
6437           (_pic14_parseOptions): moved pCodeInitRegisters here
6438           (_pic14_do_link): add "pic$(ARCH).lib" to linker arguments
6439         * src/pic/pcode.c (AnalyzeBanking): bail out on unset processor,
6440           (pCodeInitRegisters): rewrapped comments, perpared new approach to
6441             handling the pseudo stack
6442         * device/lib/Makefile.in: ignore failures in objects-pic16,
6443         * device/lib/pic/{configure,configure.in,Makefile}: added libdev/
6444         * device/lib/pic/NEWS: document new dependency on picXXX.lib
6445         * device/lib/pic/Makefile.subdir,
6446         * device/lib/pic16/Makefile.subdir: improved clean rules
6447         * device/lib/pic/libdev/: NEW, pic14 device libraries
6448         * device/lib/pic/libsdcc/_gptr{get,put}{1,2,3,4}.S: use _X not X
6449         * device/lib/pic/libsdcc/macros.inc: use _X not X, declare default SFRs
6450         * device/include/Makefile.in: create subdir and install pic14 headers
6451         * device/include/pic/p16f_common.inc: removed unused declarations
6452         * device/include/pic/pic16*.h: added header files for 100+ 14 bit
6453             PICs from inc2h.pl v1.6,
6454             replaced BIT_AT macros with struct declarations
6455         * device/include/pic/pic14devices.txt: definition of supported devices,
6456             all above improvements contributed by Zik Saleeba, thanks
6457         * support/scripts/inc2h.pl: removed BIT_AT, replaced with structs
6458         * support/scripts/sdcc.nsi: also install pic14 device libraries and
6459             headers
6460
6461 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
6462
6463         * device/include/mcs51/c8051f410.h: added interrupt numbers,
6464         * device/include/mcs51/c8051f200.h: old SiLabs mcu completes the list,
6465           thanks to Charles Olds
6466
6467 2006-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6468
6469         * debugger/mcs51/cmd.c (infoRegisters): show return address on stack
6470
6471 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
6472
6473         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug 1464657
6474         * src/mcs51/gen.c (genJumpTab): fixed bug in medium model
6475         * support/regression/bug1464657.c: added, new test
6476
6477 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
6478
6479         * src/SDCCmain.c (preProcess): implemented RFE 1449908, define SDCC as the
6480           version number
6481
6482 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
6483
6484         * src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
6485           --no-peep and --peep-file <file> are used don't use default rules but
6486           do use the <file>
6487
6488 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
6489
6490         * src/mcs51/gen.c (genCall): fixed bug 1457608
6491
6492 2006-03-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6493
6494         * doc/sdccman.lyx: reverted to version 1.129 of december as my latest
6495         changes seem to cause (trigger?) problems with the build system.
6496
6497 2006-03-29 Maarten Brock <sourceforge.brock AT dse.nl>
6498
6499         * src/SDCCpeeph.c (operandsLiteral): new, added,
6500           (callFuncByName): inserted operandsLiteral
6501         * src/mcs51/peeph.def: reenabled 132.e, added extra check to 132.x
6502
6503 2006-03-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6504
6505         * doc/sdccman.lyx: added paragraph "Use of SDCC in Education"
6506         * src/mcs51/peeph.def: disabled rule 132.e fixing bug #1453093
6507
6508 2006-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
6509
6510         * src/z80/gen.c (genFunction, genEndFunction): fixed bug 1160666,
6511           implemented patch 1120823 Thanks to Willy De la Court (normal
6512           interrupts need an interrupt number now if they are made critical),
6513           and enabled nesting of critical functions though not for gbz80
6514           (genCritical, genEndCritical): added functions
6515           (genZ80Code): added cases for CRITICAL and ENDCRITICAL
6516         * src/z80/mappings.i: added "ei" to all mappings
6517
6518 2006-03-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6519
6520         * sim/ucsim/cmd.src/newcmdcl.h: applied patch fixing GCC 4.1 build
6521         submitted by the Debian SDCC maintainer Aurelien Jarno:
6522         "Credits goes to Martin Michlmayr, who rebuilt the whole Debian
6523         archive with gcc 4.1 on mips and wrote the patch"
6524
6525 2006-03-16 Raphael Neider <rneider AT web.de>
6526
6527         * src/pic16/genarith.c (genAddLit): simplified and fixed case where
6528           the left operand is shorter than the result (c* = lit-c* + int),
6529           fixes bug #1450796
6530         * src/pic16/gen.c (genRightShift): check IS_SYMOP before accessing
6531           OP_SYMBOL
6532
6533 2006-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
6534
6535         * src/.version: increased version number to 2.5.5
6536         * src/SDCCmain.c (linkEdit): do not test for PIC16 target since, PIC16
6537         linking is done manually in pic16 port's _linkEdit,
6538         * src/SDCCsymt.c (compStructSize): for target PIC16 and shell variable
6539         PIC16_PACKED_BITFIELDS, compact bitfield structures as much as possible,
6540         * src/pic16/gen.c (aopForSym): when direct register name is WREG then
6541         allocate asmop as AOP_ACC,
6542         (aopForRemat): added parameter 'bool result' in function declaration,
6543         (pic16_aopGet): return AOP_ACC when accessing WREG,
6544         (pic16_popGetTempReg): minor modification,
6545         (pic16_popRegFromIdx): first try with 'pic16_regWithIdx' then with
6546         'pic16_allocWithIdx',
6547         (genPcall): removed ftype, usage of OP_SYM_TYPE asserted error when
6548         calling function in absolute addresses,
6549         (genAssign): take into account AOP_ACC asmop,
6550         * src/pic16/pcode.c (pic16_newpCodeOpReg): minor modifications,
6551         * src/pic16/pcoderegs.c: some debug functions and lines added,
6552         * src/pic16/ralloc.c (decodeRegType): added but commented out,
6553         * (pic16_typeRegWithIdx): search 'pic16_dynInternalRegs' for given
6554         register too,
6555         * (pic16_findFreeReg, pic16_findFreeRegNext): allocate new register via
6556         call to allocReg, not by manually allocating a new one,
6557         (pic16_assignRegisters): now before going through the register
6558         allocating functions mark all registers as free. This eliminates some
6559         side effects resulting from peephole parser done earlier in the backbone
6560
6561 2006-03-13 Maarten Brock <sourceforge.brock AT dse.nl>
6562
6563         * src/SDCCicode.c (geniCodeLogic),
6564         * src/SDCCast.c (decorateType): applied patch by Bernhard for rfe 1422617
6565
6566 2006-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
6567
6568         * src/mcs51/gen.c (sameReg): new, checks if two aop regs are the same,
6569           (genSend): bugfix, do not allocate and free twice,
6570           (shiftRLong): handle partially overlapping aops
6571         * support/regression/tests/bitopcse.c: fixed warning redefined idata
6572
6573 2006-03-08 Borut Razem <borut.razem AT siol.net>
6574
6575         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata
6576           for pic16
6577
6578 2006-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
6579
6580         * support/regression/tests/bug1409955.c: new, added
6581         * src/mcs51/gen.h: changed asmop.freed:1 to asmop.allocated for tracking
6582         * src/mcs51/gen.c (newAsmop): set asmop.allocated to 1,
6583           (aopForSym, aopOp): increment asmop.allocated if reused,
6584           (freeAsmop): decrement asmop.allocated and check for zero instead of
6585           using asmop.freed,
6586           (freeForBranchAsmop): use asmop.allocated instead of asmop.freed,
6587           (genNot, genCpl, genUminus, genMinus, genMult, genDiv, genMod, genCmpGt,
6588            genCmpLt, genAndOp, genOrOp, genAnd, genOr, genXor, genRRC, genRLC,
6589            genGetHbit, genGetAbit, genGetByte, genGetWord, genSwap,
6590            genLeftShiftLiteral, genLeftShift, genRightShiftLiteral,
6591            genSignedRightShift, genRightShift, genDataPointerGet,
6592            genPagedPointerGet, genFarPointerGet, genCodePointerGet,
6593            genGenPointerGet, genDataPointerSet, genAssign, genCast): free asmop's
6594             in reverse order from allocation,
6595           (genPlus, genCmpEq): free asmop's in reverse order from allocation and
6596             added swappedLR to keep track
6597         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata,
6598           pdata & code for GCC, z80, gbz80 & hc08
6599         * support/regression/tests/zeropad.c: moved defines to testfwk.h
6600
6601 2006-03-08 Raphael Neider <rneider AT web.de>
6602
6603         * src/pic16/main.c (_hasNativeMulFor): fixed bug #1444425
6604
6605 2006-03-07 Maarten Brock <sourceforge.brock AT dse.nl>
6606
6607         * device/include/mcs51/c8051f410.h: new SiLabs mcu
6608         * src/ds390/peeph.def: disabled 186.d and 227.a as fix for #1434401
6609         * support/regression/tests/array.c: added parenthesis, made arrays unsigned
6610
6611 2006-03-06 Borut Razem <borut.razem AT siol.net>
6612
6613         * support/regression/ports/pic16/spec.mk: link with libm18f.lib,
6614           made the linker quiet
6615
6616 2006-03-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
6617
6618         * src/pic16/gen.c (genPcall): fixed bug #1443644
6619         * src/pic16/device.h (struct pic16_options_t): added 'int CATregs' flag
6620         which dumps before the function entry point a data byte which represents
6621         the number of the local variables used by the specified function, added
6622         'xinst' for initial support for Extended Instruction Support,
6623         * src/pic16/gen.c (aopForSym, pic16_aopGet): beautifications,
6624         (pic16_testStackOverflow): do not prefix GSTACK_TEST_NAME with
6625         port->fun_prefix anymore (may change later),
6626         (genFunction, genEndFunction): do not store/restore local registers for
6627         _main (this should take care the --main-return command line option in
6628         the future),
6629         (genOr): removed some legacy pic-port instructions,
6630         * src/pic16/genarith.c (genAddLit): re-enabled old code because
6631         performing operations with SFR's causes data to be written more than
6632         once to each SFR. Perhaps SFRs should be handled in special cases...
6633         * src/pic16/glue.c: macros BIG_ENDIAN and BYTE_IN_LONG are moved to
6634         pcode.h
6635         * src/pic16/main.c (_process_pragma): stack bound checking did not take
6636         into account for stack starting position,
6637         (struct OPTIONS pic16_optionsTable): added command line argument
6638         --extended or -y for Extended Instruction Support,
6639         * src/pic16/ralloc.c (pic16_decodeOp): added case for FUNCTION,
6640         (deassignLRs): *** perhaps the most important change, old 'for' code
6641         (commented out for reference), didn't account for some registers which
6642         were left marked 'not free' after a pointer operation. The change
6643         reduces register usage a lot in some cases
6644
6645 2006-03-04 Borut Razem <borut.razem AT siol.net>
6646
6647         * support/regression/ports/hc08/spec.mk: remove *.asm in traget
6648           _clean
6649         * support/regression/tests/bug-524697.c: decreased array size for
6650           mcs51 to fit into the internal RAM
6651         * support/regression/Makefile.in: a little bit more verbose
6652
6653 2006-03-03 Borut Razem <borut.razem AT siol.net>
6654
6655         * support/regression/fwk/lib/testfwk.c,
6656           support/regression/fwk/include/testfwk.h: introduced function
6657           _prints(), nonrecursive _printn(), call _initEmu() from main()
6658         * support/regression/ports/gbz80/support.asm,
6659           support/regression/ports/ucz80/support.asm,
6660           support/regression/ports/z80/support.asm,
6661           support/regression/ports/ds390/support.c,
6662           support/regression/ports/hc08/support.c,
6663           support/regression/ports/host/support.c,
6664           support/regression/ports/mcs51/support.c,
6665           support/regression/ports/xa51/support.c: added empty _initEmu()
6666           function
6667         * support/regression/ports/pic16/gpsim.cmd,
6668           support/regression/ports/pic16/spec.mk,
6669           support/regression/ports/pic16/support.c,
6670           support/regression/Makefile.in: added pic16 regression test
6671
6672 2006-03-01 Raphael Neider <rneider AT web.de>
6673
6674         * src/pic16/gen.c (genPcall,pic16_derefPtr,genGenPointerGet,
6675           genConstPointerGet): use safe way of generating MOVFF to cover
6676             literals as well as registers, fixes bug #1440527
6677         * src/pic16/glue.c (pic16_printIvalBitFields): prevent NULL pointer
6678             dereference
6679           (pic16_printIvalUnion,pic16_isUnion): NEW, handle initialized unions
6680             more correctly, fixes bug #1232186
6681           (pic16_printIval): use pic16_printIvalUnion() for initialized unions
6682         * src/pic16/main.c (_pic16_linkEdit): reorder linker arguments to make
6683             gplink guess the correct processor in more cases, applied patch
6684             from Till Riedel attached to and fixing bug #1436552
6685
6686 2006-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6687
6688         * support/regression/tests/array.c: added, contains check for #1434401
6689         * src/mcs51/peeph.def: disabled 186.d as temporary fix for #1434401
6690
6691 2006-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
6692
6693         * device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
6694         * device/include/mcs51/at89S8252.h: fixed, thanks to Krzysztof Polomka
6695         * device/include/mcs51/c8051f326.h,
6696         * device/include/mcs51/c8051f340.h: new SiLabs mcu's
6697         * device/include/mcs51/c8051f000.h,
6698         * device/include/mcs51/c8051f018.h,
6699         * device/include/mcs51/c8051f020.h: used () with __at, renamed IDLE,STOP to
6700           PCON_IDLE,PCON_STOP and added sfr16 definitions
6701
6702 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
6703
6704         * src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
6705           genGetWord): fixed bug 1409955
6706
6707 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
6708
6709         * device/include/hc08/mc68hc908gp32.h,
6710         * device/include/hc08/mc68hc908jb8.h: removed AWUL, added PTA6 & PTA7
6711
6712 2006-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
6713
6714         * src/SDCCast.c (constExprValue): return NULL if not a value
6715         * src/SDCCglue.c (printIvalArray): fixed bug 1225568
6716         * src/hc08/gen.c(genUnpackBits, genUnpackBitsImmed): fixed bug 1019480
6717         * support/regression/tests/bitfields.c: enabled signed bitfield for all
6718
6719 2006-02-13 Borut Razem <borut.razem AT siol.net>
6720
6721         * src/regression/ptrarg.c: added, fails due to bug #1430967
6722         * src/regression/Makefile: ptrarg.c added, ...
6723
6724 2006-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
6725
6726         * src/z80/gen.c (genUnpackBits): fixed bug 1019480
6727         * support/regression/tests/bitfields.c: enabled signed bitfield for z80
6728
6729 2006-02-11 Borut Razem <borut.razem AT siol.net>
6730
6731         * src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
6732           print "Processor: xxx" message to stdout only if --verbose
6733
6734 2006-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
6735
6736         * src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
6737         * support/regression/tests/bug1426356.c: added
6738         * support/regression/tests/bitfields.c: removed 2 tests
6739
6740 2006-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
6741
6742         * device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
6743         * device/include/mcs51/c8051f330.h,
6744         * device/include/mcs51/c8051f350.h: used () with __at, renamed IDLE,STOP to
6745           PCON_IDLE,PCON_STOP and added sfr16 definitions
6746         * device/lib/_divsint.c,
6747         * device/lib/_divuint.c,
6748         * device/lib/_divulong.c,
6749         * device/lib/_divulong.c: renamed a,b to x,y to avoid confusion, fixed
6750           register bank bug for small stackauto
6751
6752 2006-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
6753
6754         * support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()
6755
6756 2006-02-08 Maarten Brock <sourceforge.brock AT dse.nl>
6757
6758         * support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
6759         * all.dsp: corrected several bin paths
6760         * device/include/mcs51/c8051f120.h,
6761         * device/include/mcs51/c8051f300.h,
6762         * device/include/mcs51/c8051f310.h: used () with __at and renamed IDLE,STOP
6763           to PCON_IDLE,PCON_STOP
6764         * device/include/mcs51/c8051f320.h: see above, also added sfr16 definitions
6765         * device/lib/printf_large.c (output_float): fixed bug 1388703
6766         * support/regression/tests/bug1057979.c: added test for bug 1388703
6767
6768 2006-02-08 Raphael Neider <rneider AT web.de>
6769
6770         * src/pic/pcode.c (pciTRIS): fixed typo,
6771           (BuildFlow,LinkFlow_pCode): added (disabled) debug output,
6772           (LinkFlow): fixed handling of flows that end in a call,
6773           (ReuseReg): perform safety check earlier
6774         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed
6775             to work with flows at the beginning of a pBlock,
6776             fixes #1426557 (Symbol not previously defined),
6777           (pic14_ReMapLiveRanges): NEW, destroy and rebuild register
6778             usage information
6779           (RemoveUnusedRegisters): update register usage info
6780         * src/pic/ralloc.c (newReg): prevent duplicate registers from being
6781             created, reuse existing ones instead
6782         * src/pic/gen.c (genPcall): fixed #1424719
6783
6784 2006-02-07 Bernhard Held <bernhard AT bernhardheld.de>
6785
6786         * link/z80/lkmain.c,
6787         * link/z80/lklex.c,
6788         * link/z80/lkdata.c,
6789         * link/z80/aslink.h: fixed build on current cygwin:
6790         replaced getline() by lk_getline()
6791
6792 2006-02-01 Borut Razem <borut.razem AT siol.net>
6793
6794         * src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
6795           src/regression/add4.c, src/regression/and1.c, src/regression/and2.c,
6796           src/regression/arrays.c, src/regression/b.c, src/regression/bank1.c,
6797           src/regression/bool1.c, src/regression/bool2.c,
6798           src/regression/bool3.c, src/regression/call1.c,
6799           src/regression/compare.c, src/regression/compare10.c,
6800           src/regression/compare2.c, src/regression/compare3.c,
6801           src/regression/compare4.c, src/regression/compare5.c,
6802           src/regression/compare6.c, src/regression/compare7.c,
6803           src/regression/compare8.c, src/regression/compare9.c,
6804           src/regression/configword.c, src/regression/for.c,
6805           src/regression/inline.c, src/regression/mult1.c,
6806           src/regression/nestfor.c, src/regression/or1.c,
6807           src/regression/pointer1.c, src/regression/ptrfunc.c,
6808           src/regression/rotate1.c, src/regression/rotate2.c,
6809           src/regression/rotate3.c, src/regression/rotate4.c,
6810           src/regression/rotate5.c, src/regression/rotate6.c,
6811           src/regression/rotate7.c, src/regression/string1.c,
6812           src/regression/struct1.c, src/regression/sub.c,
6813           src/regression/sub2.c, src/regression/switch1.c,
6814           src/regression/while.c, src/regression/xor.c,
6815           src/regression/create_stc, src/regression/simulate,
6816           src/regression/rt.sh, src/regression/Makefile: reenabled Scott's PIC14
6817           regression tests
6818         * src/regression/gpsim_assert.h: added
6819
6820 2006-01-28 Bernhard Held <bernhard AT bernhardheld.de>
6821
6822         * src/ds390/gen.c (unsaveRegisters): fixed literal function pointer
6823         ((void (code *) (void)) 0) ();
6824         * as/hc08/aslex.c,
6825         * as/hc08/aslink.h,
6826         * as/hc08/asm.h,
6827         * as/hc08/asmain.c,
6828         * as/hc08/lkdata.c,
6829         * as/hc08/lklex.c,
6830         * as/hc08/lkmain.c,
6831         * as/mcs51/aslex.c,
6832         * as/mcs51/aslink.h,
6833         * as/mcs51/asm.h,
6834         * as/mcs51/asmain.c,
6835         * as/mcs51/lkdata.c,
6836         * as/mcs51/lklex.c,
6837         * as/mcs51/lkmain.c,
6838         * as/z80/aslex.c,
6839         * as/z80/asm.h,
6840         * as/z80/asmain.c: fixed build on current cygwin:
6841         replaced getline() by as_getline()
6842
6843 2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
6844
6845         * src/SDCC.y: fixed bug #716242, exchanged pointer and function
6846         declarator in the symbol chain
6847         * src/SDCCsymt.h,
6848         * src/SDCCsymt.c (processFuncPtrArgs): added, removes "(void)"
6849         parameter list for function pointers
6850         * src/SDCCast.c (decorateType): added call of processFuncPtrArgs()
6851         * support/regression/tests/bug-716242.c: added
6852
6853 2006-01-20 Bernhard Held <bernhard AT bernhardheld.de>
6854
6855         * src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array
6856         offset if possible
6857         * src/SDCCast.c (getLeftResultType): 255 fits in char, not 256
6858
6859 2006-01-18 Bernhard Held <bernhard AT bernhardheld.de>
6860
6861         * src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it
6862         inifinitely recurseable, added static
6863         * support/regression/tests/bug-1408066.c: added
6864
6865 2006-01-17 Bernhard Held <bernhard AT bernhardheld.de>
6866
6867         * src/SDCCicode.h,
6868         * src/SDCCicode.c (newiTempPreheaderLabel, newiTempLoopHeaderLabel):
6869         renamed, added possibility to create "postLoopLbl"-labels
6870         * src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to
6871         newiTempLoopHeaderLabel
6872         * src/SDCCloop.c (newInduction, newRegion, backEdges, insertIntoLoop,
6873         isNotInBlocks, addToExitsMarkDepth, createLoop, dominatedBy,
6874         addDefInExprs, assignmentsToSym, isOperandInvariant, pointerAssigned,
6875         hasNonPtrUse, loopInvariants, addressTaken, findInduction,
6876         findDefInRegion, mergeRegions, ifMerged, mergeInnerLoops): made static,
6877         (pinduction, pregion, hasIncomingDefs, findLoopEndSeq): disabled,
6878         (basicInduction): fixed bug #136564, made static,
6879         (loopInduction): changed parameter of basicInduction, made static,
6880         (addPostLoopBlock): added
6881         * src/SDCCloop.h: removed backEdges, pregion, pinduction,
6882         loopOptimizations, addressTaken, findDefInRegion, hasIncomingDefs,
6883         findLoopEndSeq
6884         * support/regression/tests/bug-136564.c: added
6885         * support/regression/ports/mcs51-xstack-auto/spec.mk: added
6886         --std-sdcc99 to LIBSDCCFLAGS
6887
6888 2006-01-16 Bernhard Held <bernhard AT bernhardheld.de>
6889
6890         * src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false
6891         while loop
6892         * support/regression/tests/bug-1406131.c: added
6893
6894 2005-12-31 Bernhard Held <bernhard AT bernhardheld.de>
6895
6896         * src/SDCCast.c (decorateType): fix promotion of unary minus
6897         * src/SDCCsymt.c (computeType): beautified
6898         * src/SDCCval.c (cheapestVal): beautified, old non-Ansi version removed,
6899         (valUnaryPM, valComplement): fix sign and promotion,
6900         (valNot): ANSI: result type is int (SDCC: unsigned char)
6901         * support/regression/tests/uminus.c: speedup by removing superflous
6902         test case 'int'
6903         * support/regression/tests/onebyte.c: added promotion and signedness
6904         tests for unary minus
6905         * support/regressions/tests/bug-477927.c: disable warning about
6906         uninitialized variables
6907         * support/regression/tests/not.c: added
6908
6909 2005-12-28 Bernhard Held <bernhard AT bernhardheld.de>
6910
6911         * device/lib/Makefile.in: added --std-sdcc99 to CFLAGS
6912         * src/mcs51/gen.c (gen51Code): show final register usage after
6913         fillGaps in asm with --i-code-in-asm
6914         * src/SDCClrange.c (sequenceiCode, setLiveFrom, setLiveTo,
6915         markLiveRanges, markAlive, findNextUseSym, findNextUse, unvisitBlocks,
6916         incUsed, rliveClear, adjustIChain): made static,
6917         (setFromRange): excluded because it's unused,
6918         (findPrevUseSym, markWholeLoop): added,
6919         (findPrevUse): rewritten; fixes bug 895992; now a complete search
6920         through all branches of predecessors enables sdcc to emit the warning
6921         W_LOCAL_NOINIT, marking of outermost loop was incomplete,
6922         (rlivePoint): made static, added parameter emitWarnings which is only
6923         true during the first run out of two,
6924         (findRecursiveSucc, findRecursivePred): removed,
6925         (computeLiveRanges): made static, added parameter emitWarnings,
6926         (dumpIcRlive): added for debugging only
6927         * src/SDCClrange.h: added boolean parameter to computeLiveRanges(),
6928         removed prototype of setFromRange()
6929         * src/SDCCopt.c (eBBlockFromiCode): added new parameter emitWarnings
6930         in call of computeLiveRanges()
6931         * support/regression/tests/bug-895992.c: added
6932         * support/regression/tests/bug-971834.c: added
6933         * support/valdiag/tests/bug-895992.c: added
6934         * support/valdiag/tests/bug-971834.c: added
6935
6936 2005-12-18 Raphael Neider <rneider AT web.de>
6937
6938         * src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
6939           (genUnpackBits): improved code for direct operands,
6940           (genPackBits): improved code for literal assignment to bitfields
6941             and for direct destination operands (no FSR indirection),
6942             prevented redundant AND, fixes #1362800,
6943           (AccLsh): added parameter to disable masking of the result
6944         * src/pic16/pcode.c (pic16_safepCodeUnlink): fixed to work with
6945           skip instructions with side-effects (like incfsz),
6946           (pic16_pCodeIsAlive): suppress verbose output unless pcode_verbose,
6947         * src/pic16/pcoderegs.c (RemoveRegsFromSet): removed annoying warning
6948         * device/lib/pic16/Makefile.common.in: added --asm=@GPASM@ to CC,
6949           fixes #1375263
6950
6951 2005-12-11 Bernhard Held <bernhard AT bernhardheld.de>
6952
6953         * src/SDCCicode.c (geniCodeAssign): fixed bug 11369874, don't use
6954         volatile variables as spill location
6955
6956 2005-12-10 Bernhard Held <bernhard AT bernhardheld.de>
6957
6958         * src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to
6959         replacing literals
6960         * support/regression/tests/bug-1376320.c: added
6961
6962 2005-12-08 Raphael Neider <rneider AT web.de>
6963
6964         * src/pic/device.c: renamed is_shared to pic14_is_shared
6965         * src/pic/gen.c (genIfx): re-enabled handling of sbits
6966         * src/pic/glue.c (emitSymbolToFile): added workaround for sbits,
6967           (is_valid_identifier): added for above workaround
6968
6969 2005-12-07 Maarten Brock <sourceforge.brock AT dse.nl>
6970
6971         * device/lib/Makefile.in: fixed to enable port-specific-objects
6972         * device/lib/ds390/i2c390.c (BitOutI2C): optimized by making bout unsigned
6973           char, thanks Hubert Sack
6974         * doc/sdccman.lyx: documented --xstack-loc,
6975           elaborated a bit more on interrupts and pitfalls,
6976           removed "setjmp/longjmp unsupported",
6977           documented some unsupported C99 features
6978         * src/SDCCmain.c (linkEdit): adapted default lib path for --stack-auto
6979         * src/SDCCpeeph.c (readRules): inserted patch 1367130 for finding missing
6980           if, thanks Hubert Sack
6981         * src/mcs51/gen.c (genEndFunction): enabled "pop psw" for regbank 0 isr
6982         * support/regression/Makefile.in: test-mcs51-stack-auto no longer needs to
6983           make make_library
6984         * support/regression/get_ticks.py: new, get cpu cycles and code size, so
6985           regression tests can report resource usage (rfe 700441)
6986         * support/regression/collate-results.py: report resource usage
6987         * support/regression/ports/ds390/spec.mk,
6988         * support/regression/ports/hc08/spec.mk,
6989         * support/regression/ports/mcs51/spec.mk,
6990         * support/regression/ports/ucz80/spec.mk: run sim output through get_ticks
6991         * support/regression/ports/ds390/uCsim.cmd,
6992         * support/regression/ports/hc08/uCsim.cmd,
6993         * support/regression/ports/mcs51/uCsim.cmd,
6994         * support/regression/ports/ucz80/uCsim.cmd: inserted "state" to report time
6995         * support/regression/ports/mcs51-stack-auto/spec.mk: no need to build the
6996           library, use the default one
6997         * support/regression/ports/mcs51-xstack-auto/spec.mk: inserted rules for
6998           building the library
6999
7000 2005-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
7001
7002         * config.dsp: added dependency on .version and configure_vc.awk
7003         * device/include/setjmp.h: updated for --stack-auto and --xstack
7004         * device/include/mcs51/at89c51snd1c.h: corrected line endings
7005         * device/include/mcs51/XC866.h: added, thanks Llewellyn van Zyl
7006         * device/lib/_setjmp.c: updated for --stack-auto and --xstack
7007         * device/lib/libsdcc.lib: added _setjmp
7008         * src/SDCCast.c (createIvalCharPtr): fixed warnings,
7009           (decorateType): fixed bug 1372851,
7010           (optimizeGetHbit): fixed warning
7011         * src/SDCCglue.c (printIvalChar, printIvalArray): adapted for flexible
7012           array initialisation
7013         * support/regression/tests/bug1057979.c: added test for bug 1358192
7014         * support/regression/tests/setjmp.c: added, test for setjmp/longjmp
7015
7016 2005-12-03 Borut Razem <borut.razem AT siol.net>
7017
7018         * support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
7019           command since the NSIS was upgraded to version 2.11 on CF x86-linux2
7020
7021 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
7022
7023         * src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr,
7024         createIval): implement symbol independant "flexible array member",
7025         (createIvalCharPtr): implemented flexible array initialisation with a
7026         string
7027         * src/SDCCsymt.c (copyStruct): removed,
7028         (getSize): fixed misleading comment,
7029         (getAllocSize): removed, the additional allocation size is now in
7030         sym->flexArrayLength,
7031         (checkStructFlexArray): new, syntax checks for flexible array members,
7032         (compStructSize): added syntax checks for "flexible array members"
7033         (copyStruct): removed,
7034         (copyLinkChain): removed inefficient fix for bug 770487
7035         * src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
7036         * src/SDCCsymt.h: added structdef.b_flexArrayMember and
7037         symbol->flexArrayLength
7038         * src/SDCCerr.c,
7039         * src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY,
7040         E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
7041         * support/regression/tests/structflexarray.c: added
7042         * support/valdiag/tests/structflexiblearray.c: added
7043
7044 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
7045
7046         * src/SDCCast.c (decorateType): fixed bug 1368489
7047         * support/Util/SDCCerr.c,
7048         * support/Util/SDCCerr.h: added warning W_CMP_SU_CHAR
7049
7050 2005-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7051
7052         * device/include/mcs51/at89c51snd1c.h: added file submitted by
7053           Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001
7054
7055 2005-11-27 Borut Razem <borut.razem AT siol.net>
7056
7057         * support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
7058           support/cpp2/mkdeps.h: added command line option
7059           -obj-ext=<extension> to SDCPP to define object file externion, used
7060           for generation of make dependencies (-M)
7061         * src/SDCCmain.c: pass -obj-ext=<extension> to SDCPP
7062
7063 2005-11-26 Borut Razem <borut.razem AT siol.net>
7064
7065         * support/scripts/sdcc.nsi: added small-stack-auto libraries,
7066           added missing device/lib/mcs51/crt*.asm, pic and pic16 sources,
7067           added pic and pic16 libraries
7068
7069 2005-11-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7070
7071         * device/include/float.h: Corrected typo in prototype of __fsgt
7072
7073 2005-11-25 Borut Razem <borut.razem AT siol.net>
7074
7075         * sdcc/device/lib/Makefile.in, sdcc/device/lib/incl.mk:
7076           added creation of model-mcs51-stack-auto libraries
7077
7078 2005-11-24 Bernhard Held <bernhard AT bernhardheld.de>
7079
7080         * src/SDCCsymt.c (copyLinkChain): fixed bug 770487, copy structdef
7081         and fields-list too
7082         * src/SDCCast.c (createIvalArray): removed obsolete comment
7083
7084 2005-11-24 Borut Razem <borut.razem AT siol.net>
7085
7086         * sdcc/device/lib/Makefile.in: remove all unnecessary files, 2nd try...,
7087           added missing device/lib/mcs51/crt*.asm sources
7088
7089 2005-11-23 Bernhard Held <bernhard AT bernhardheld.de>
7090
7091         * src/SDCCast.c (createIvalCharPtr): fixed bug 1348271
7092
7093 2005-11-22 Maarten Brock <sourceforge.brock AT dse.nl>
7094
7095         * device/lib/_fs2schar.c,
7096         * device/lib/_fs2sint.c,
7097         * device/lib/_fs2slong.c: optimized inline asm
7098
7099 2005-11-21 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7100
7101         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
7102           Better handling of floats between -1.0 and 0.0.
7103
7104 2005-11-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7105
7106         * src/mcs51/peeph.def: added missing "if"s as noted by Hubert Sack.
7107           (the missing "if"s prohibited removal of redundant labels)
7108
7109 2005-11-19 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7110
7111         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
7112           Properly convert floats between -1.0 and 0.0 to long, int, and char
7113           types (max integer value of negative floats tends to zero).
7114         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
7115           Removed changes made so to work properly with floats between
7116           -1.0 and 0.0, as the problem is fixed in _fs2slong.c, _fs2sint.c,
7117           and _fs2char.c
7118
7119 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
7120
7121         * src/SDCCcse.c (ReplaceOpWithCheaperOp): minor fix for debugging only
7122         * src/mcs51/gen.c (genUnpackBits): better code and a fix,
7123         (genCast) cosmetic change
7124         * src/ds390/gen.c (genUnpackBits, ): ported from mcs51
7125         * src/ds390/ralloc.c (packRegsForAssign): ported fix for bitfields
7126         from mcs51
7127         * support/regression/tests/bitfields (testSignedBitfields): added
7128
7129 2005-11-18 Borut Razem <borut.razem AT siol.net>
7130
7131         * sdcc/device/lib/Makefile.in: remove all unnecessary files
7132         * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
7133           introduced SILENT option to make building of pic16 libraries less
7134
7135 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7136
7137         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
7138           Now they work properly with floats between -1.0 and 0.0
7139         * device/lib/printf_large.c: Removed temporary patch for bug 1358192
7140
7141 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
7142
7143         * src/SDCCicode.c (printOperand): added missing else
7144
7145 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
7146
7147         * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
7148         reformatted for better readability
7149         * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
7150         signed bitfields
7151
7152 2005-11-17 Borut Razem <borut.razem AT siol.net>
7153
7154         * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
7155           introduced SILENT option to make building of pic16 libraries less
7156           verbose - used for nightly snapshot build
7157         * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
7158           available on Win32 platforms.
7159         * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
7160           medium, large, pic and pic16
7161
7162 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7163
7164         * device/lib/printf_large.c: Temporary patch for bug 1358192:
7165           printf("%f"...) sets fraction to zero.
7166
7167 2005-11-16 Raphael Neider <rneider AT web.de>
7168
7169         * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
7170           fixes #1357221
7171         * src/pic/gen.c (genIfx): implemented for CARRY bit
7172         * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
7173           to generic pointers, fixes #1357332,
7174           (pic16_movLit2f): NEW,
7175           (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
7176
7177 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
7178
7179         * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
7180
7181 2005-11-11 Raphael Neider <rneider AT web.de>
7182
7183         * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
7184         * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
7185           compute pointer's type from operand,
7186           (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
7187           improved single bit reads, fixes bug #1353379
7188
7189 2005-11-09 Borut Razem <borut.razem AT siol.net>
7190
7191         * support/scripts/sdcc.nsi: added lib/pic to the package
7192
7193 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
7194
7195         * src/SDCCval.c (valUnaryPM): fixed bug 1350699
7196
7197 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
7198
7199         * support/regression/tests/bug1348008.c: added
7200         * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
7201         * support/regression/tests/bug1337835.c: updated comment
7202
7203 2005-11-06 Borut Razem <borut.razem AT siol.net>
7204
7205         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
7206           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
7207           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
7208           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
7209           sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
7210           dynamic construction of cl_error_class and derivates - 2.nd try
7211
7212 2005-11-05 Borut Razem <borut.razem AT siol.net>
7213
7214         * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
7215           bug, which caused Bus Errors on sparc solaris
7216
7217 2005-11-04 Borut Razem <borut.razem AT siol.net>
7218
7219         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
7220           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
7221           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
7222           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
7223           sim/ucsim/cmd.src/cmdconf.cc: dynamic construction of cl_error_class
7224           and derivates to resolve the initialization problem on OSX
7225
7226 2005-11-02 Borut Razem <borut.razem AT siol.net>
7227
7228         * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
7229           corrected typo - #include <winsock2.h>
7230
7231 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
7232
7233         * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
7234           (_asxxxx_mapping): added org directive for future enhancements
7235
7236 2005-11-01 Borut Razem <borut.razem AT siol.net>
7237
7238         * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
7239           enabled sockets on WIN32
7240         * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
7241
7242 2005-10-31 Borut Razem <borut.razem AT siol.net>
7243
7244         * support/regression/generate-cases.py: escape backslashes in {testcase}:
7245           WIN32 backslash path delimiters should be escaped when used in C strings
7246         * support/regression/tests/bitfields.c: exclude failing assertions for
7247           __CYGWIN32__ and __MINGW32__ hosts
7248
7249 2005-10-30 Borut Razem <borut.razem AT siol.net>
7250
7251         * src/SDCCutil.c: corrected double comparison typo
7252
7253 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
7254
7255         * device/lib/medium/Makefile: added for new memory model medium
7256         * device/include/asm/mcs51/features.h: updated for medium/pdata
7257         * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
7258           added Multiply & Accumulate sbit's and MAC0_PAGE define
7259         * device/include/mcs51/c8051f300.h: added sfr16 definitions
7260         * device/include/mcs51/c8051f310.h: added sfr16 definitions
7261         * device/lib/_mullong.c: update for medium model
7262         * device/lib/incl.mk: added medium model
7263         * doc/sdccman.lyx: documented medium model
7264         * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
7265         * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
7266         * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
7267         * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
7268           (allocParms): set SCLS and OCLS to pdata for medium model
7269         * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
7270           for pdata,
7271           (powof2): return <0 if not power of 2
7272         * src/avr/gen.c (genBitWise): use updated powof2
7273         * src/mcs51/gen.c (genMinusDec): use acc if necessary,
7274           (shiftR2Left2Result): small optimization in setup, save acc when storing,
7275           (shiftLLeftOrResult): use B if necessary
7276         * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
7277         * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
7278         * src/pic/main.c (_pic14_do_link): made void parameter list explicit
7279         * support/regression/Makefile.in: added test-mcs51-medium
7280         * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
7281
7282 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
7283
7284         * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
7285         specifier unsigned
7286         * device/lib/time.c (mktime): fixed bug 1334315
7287
7288 2005-10-28 Raphael Neider <rneider AT web.de>
7289
7290         * device/include/pic/p16f_common.inc: added common declarations
7291         * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
7292
7293 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
7294
7295         * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
7296           (aopPutUsesAcc): added to predict accumulator use,
7297           (assignResultValue): save acc if necessary,
7298           (genMinusDec): store result if indirectly addressed,
7299           (genDivOneByte):  save acc if necessary,
7300           (movLeft2Result): bugfix if left already in acc,
7301           (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
7302             attention to accumulator use (esp. pdata),
7303           (genReceive): receive pdata correctly
7304         * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
7305         * src/SDCCicode.h: added isOperandInPagedSpace prototype
7306
7307 2005-10-27 Raphael Neider <rneider AT web.de>
7308
7309         * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
7310
7311 2005-10-27 Raphael Neider <rneider AT web.de>
7312
7313         * .version: changed version to 2.5.4
7314         * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
7315         * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
7316           (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
7317             arithmetics support routines
7318         * device/lib/pic/Makefile.rules: have assembler sources preprocessed
7319         * device/lib/Makefile.in: also create installdir for pic
7320
7321         * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
7322           pic14 port as well
7323         * src/pic/device.c (dump_sfr): rewritten to delegate register
7324           placement to the linker (use `extern sym' rather than sym EQU addr),
7325           (validAddress): fixed to check last specified address
7326         * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
7327           (popGetLit): truncate literal value to 8 bit,
7328           (popGet): moved assert to more appropriate place
7329           (popGetExternal): create pCode operand from and mark the according
7330             symbol as being `extern'
7331           (popGetAddr): added sanity check on immediate's offset, provide
7332             GPOINTER tag on demand
7333           (aopPut): fixed for immediates,
7334           (mov2w_op): move operand's address or contents to WREG (depending on
7335             operand type), safer variant of mov2w,
7336           (movwf,call_libraryfunc): NEW, handy abbreviations,
7337           (get_argument_pcop,get_return_val_pcop,pass_argument,
7338           get_returnvalue): interface for accessing function parameters and
7339             return values,
7340           (assignResultValuei,genRet): use new parameter/return value interface
7341           (pic14_getDataSize): back to old version handling generic pointers,
7342           (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
7343             provided implementation and/or fixed old one,
7344           (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
7345             calls, removed legacy 8051 reference code
7346           (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
7347           (loadSignToC): NEW, move the operands sign bit to CARRY,
7348           (genGenericShift): NEW, replaces genLeftShift, genRightShift and
7349             genRightShiftSigned, accepts negative shift counts,
7350           (setup_fsr): load FSR and adjust IRP (indirect memory access),
7351           (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
7352             generic pointers, __data pointers and __code pointers,
7353           (genUnpackBits,genPackBits): rewritten to work with generic pointers
7354             and signed bitfields, limit bitfields to 8 bit,
7355           (genDataPointerGet): fixed number of bytes read,
7356           (genGenPointerGet,genConstPointerGet): fixed bitfield access,
7357           (genPointerGet,genPointerSet): fixed handling of __code pointers,
7358             pointers to constant data are no longer assumed to point to __code
7359             space, removed invalid pointer types,
7360           (bitpatternFromVal): retrieve the PICs representation of an integer
7361             or float literal,
7362           (genDataPointerSet): fixed assigning to po_immediate operands,
7363           (genGenPointerSet): implemented as library call,
7364           (genIfx): fixed incorrect condition,
7365           (genAddrOf): limit generic pointers' addresses to 2 bytes,
7366             provide GPOINTER tag according to destination's storage class,
7367           (genCast): added code to handle casting to generic pointers, added
7368             sign-/zero extension of the result
7369           (aop_isLitLike,op_isLitLike): fixed handling of immediates
7370         * src/pic/gen.h: added macros to access IRP bit in STATUS register
7371         * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
7372           extend the result
7373         * src/pic/glue.c (is_shared_address,is_shared): check whether a given
7374           address/register resides in the shared banks
7375           (emitSymbolToFile): improved to handle global and `pinned' symbols,
7376             put all variables into separate sections (have the linker arrange
7377             them)
7378           (picglue): put init code and interrupt handlers in separate sections
7379         * src/pic/main.c: added port specific options table, modified to PORT
7380           structure to make GPOINTERs 3 byte, added pic14_options
7381           (_pic14_do_link): private linking routine (update paths to libraries,
7382             add libsdcc.lib by default)
7383         * src/pic/main.h: declare pic14_options
7384         * src/pic/pcode.c: fixed instructions i/o relations,
7385           (RegCond): reverted to correct version,
7386           (newpCodeOpLit): truncate literals to 8 bit,
7387           (genericPrint): added debug output,
7388           (getRegFromInstruction): fixed for various operand types, simplified
7389           (BuildFlow): fixed broken handling of isntructions with labels
7390           (LinkFlow): start at last instruction in flow (skip trailing comments),
7391             pass the flow on to the next instruction after CALL
7392           (pCodeReplace): NEW, replace a pCode and move meta data to the new one
7393           (insertPCodeInstruction): fixed inserting after a skip instruction,
7394           (DoBankSelect): fixed for labeled instructions
7395           (OptimizepBlock): honor --nopeep switch
7396           (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
7397         * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
7398         * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
7399           (pCodeOptime2pCodes): allow disabling this optimization via
7400             --no-pcode-opt due seldomly occuring bugs, fixed some conditions
7401             but is still buggy), started implementation of a dataflow based
7402             pCode optimization (CSE + dead code elimination)
7403           (pCodeRegMapLiveRangesInFlow): removed bogus inCond
7404         * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
7405           names are independant of the stack location and therefore portable across
7406           devices
7407
7408 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
7409
7410         * src/mcs51/ralloc.c (bitType): added to detect bit variables,
7411           (selectSpil): fixed bug 1337835 by not spilling bit variables
7412         * support/regression/tests/bug1337835.c: added test for this bug
7413         * src/mcs51/peeph.def: restart after rule 3.c,
7414           addded rules 263.x to optimize loading constants
7415
7416 2005-10-26 Raphael Neider <rneider AT web.de>
7417
7418         * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
7419         * src/pic16/gen.c (genUnpackBits): support signed bitfields,
7420           (genAssign): emit warning when casting literals to generic pointer
7421             type, also applies when taking the address of a fixed variable,
7422           (genCast): improved casting to generic pointers
7423         * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
7424           extern variables, added verbose error message
7425         * device/include/pic16/{string.h,errno.h}: added #pragma library c
7426
7427 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
7428
7429         * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
7430         carry must be complemented too
7431         * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
7432         could be emitted by genMinus
7433         * src/SDCCval.c (constVal): fixed bug 1305065
7434
7435 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
7436
7437         * src/SDCCast.c (addCast): added promotion for bit variables
7438         (decorateType): emit W_COMPLEMENT before the problem vanishes behind
7439         promotion casts + optimisation
7440         (optimizeGetWord): fix warning 'i' might be used uninitialized
7441         * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
7442         * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
7443
7444 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
7445
7446         * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
7447         all chars are promoted to int; promotion should be handled in SDCCast.c
7448
7449 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7450
7451         * device/lib/_strcmp.c: Fixed bug 1326457
7452
7453 2005-10-11 Raphael Neider <rneider AT web.de>
7454
7455         * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
7456         * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
7457
7458 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
7459
7460         * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
7461         * support/regression/tests/sfr16.c: added test for the sfr32 bug
7462
7463 2005-10-04 Raphael Neider <rneider AT web.de>
7464
7465         * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
7466           device/lib/pic16/pics.all: added pic18f1320
7467         * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
7468
7469 2005-09-30 Raphael Neider <rneider AT web.de>
7470
7471         * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
7472         * src/pic16/devices.inc: NEW, provides device descriptions
7473         * src/pic16/gen.c (genInline): fixed handling of ';'-comments
7474
7475 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
7476
7477         * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
7478           GETHBIT
7479
7480 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
7481
7482         * doc/sdccman.lyx: updated Highest Order Bit documentation,
7483           documented Any Order Bit, Higher Order Byte and Higher Order Word
7484         * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
7485         * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
7486           (optimizeGetAbit): new, to get any bit, not only the high bit,
7487           (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
7488           (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
7489           (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
7490           (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
7491             RIGHT_OP: also try GETBYTE, GETWORD optimization,
7492             GETABIT, GETBYTE, GETWORD: decorate them,
7493           (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
7494           (ast_print): added GETABIT, GETBYTE, GETWORD
7495         * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
7496         * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
7497           (geniCodeBinary): new generic binary icode,
7498           (ast2iCode): added GETABIT, GETBYTE, GETWORD
7499         * src/port.h: updated comment for PORT.hasExtBitOp
7500         * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
7501           (genGetByte): new, to get a single byte,
7502           (genGetWord): new, to get a word from a long,
7503           (gen51Code): added GETABIT, GETBYTE, GETWORD
7504         * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
7505
7506 2005-09-23 Raphael Neider <rneider AT web.de>
7507
7508         * configure.in, configure: have device/lib/pic configured
7509         * device/lib/Makefile.in: added model-pic14
7510         * device/lib/clean.mk: added pic/ to clean rule
7511         * device/lib/pic: added rudimentary pic14 library providing support
7512           functions for multiplication/division/generic pointer access
7513         * src/SDCCopt.c (convilong): mark support functions as extern
7514           for pic14 port as well
7515         * src/pic/gen.c (genMult): added assertions,
7516           (genpic14Code): emit warning on unhandled iCodes
7517         * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
7518         * src/pic/pcode.c (pCodeOpCopy),
7519         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
7520           pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
7521           SFR_REGISTER}), made safe for future extensions
7522         * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
7523           instructions even if preceeded by SKIP instructions (also remove
7524           them); removed unused code
7525         * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
7526           prevents leaving parts of the structure uninitialized after copying
7527
7528 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
7529
7530         * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
7531           ago by me
7532         * support/regression/tests/addsub.c: added test for the bug
7533
7534 2005-09-21 Raphael Neider <rneider AT web.de>
7535
7536         * device/include/pic16/pic18f1220.h,
7537           device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
7538         * device/lib/pic16/Makefile.rules: added missing opening paren
7539         * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
7540           are provided in genutils.c,
7541           (genUminusFloat,genUminus,genCmpEq): added asserts on different
7542           operand/result sizes,
7543           (genCmp): assert on NULL pointers first, then check deref'ed values
7544         * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
7545           result size
7546
7547 2005-09-18 Raphael Neider <rneider AT web.de>
7548
7549         * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
7550           as these are now unused,
7551           (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
7552         * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
7553           local, avoids uninitialized pointer dereference on r->name
7554         * src/pic16/ralloc.c (newReg): fixed indentation
7555
7556 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
7557
7558         * src/SDCCval.c (constVal): fixed bug 730366
7559         * support/Util/SDCCerr.c,
7560         * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
7561
7562 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
7563
7564         * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
7565
7566 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
7567
7568         * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
7569
7570 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
7571
7572         * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
7573           (hex2dec): made hex_digit unsigned char, removed ascii dependance
7574         * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
7575           (hex2dec): made hex_digit unsigned char, removed ascii dependance
7576         * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
7577         * packihx/packihx.c (hexDigit): made c unsigned char
7578         * as/mcs51/lklibr.c (fndsym),
7579         * link/z80/lkgb.c (gb),
7580         * link/z80/lklibr.c (fndsym),
7581         * link/z80/lkrloc.c (relr),
7582         * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
7583         * src/SDCC.lex (checkCurrFile, process_pragma),
7584         * src/SDCCglue.c (spacesToUnderscores),
7585         * src/SDCCmain.c (setParseWithComma, processFile),
7586         * src/asm.c (tvsprintf, printCLine),
7587         * src/avr/gen.c (emitcode, aopPut),
7588         * src/ds390/gen.c (emitcode),
7589         * src/hc08/gen.c (emitcode, emitinline),
7590         * src/mcs51/gen.c (emitcode, genInline),
7591         * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
7592           tokenizeLineNode),
7593         * src/pic/ralloc.c (debugLog),
7594         * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
7595           tokenizeLineNode),
7596         * src/pic16/ralloc.c (debugLog),
7597         * src/z80/main.c (_process_pragma):
7598            made all ctype.h function calls safe
7599         * src/SDCCopt.c: include math.h for fabs
7600         * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
7601           and used them throughout the code to make ctype.h function calls safe
7602         * src/ds390/main.c (asmLineNodeFromLineNode),
7603         * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
7604         * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
7605            unsigned char*
7606         * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
7607           (newpCodeAsmDir): made ctype.h function calls safe
7608         * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
7609           pic16_emitcode):  made lbp unsigned char*
7610         * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
7611           (pic16_newpCodeAsmDir): made ctype.h function calls safe
7612         * src/xa51/gen.c (emitcode),
7613         * src/z80/gen.c (_emit2): made lbp unsigned char*
7614         * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
7615            char*
7616
7617 2005-09-05 Raphael Neider <rneider AT web.de>
7618
7619         * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
7620           access bank splitpoint
7621
7622 2005-09-05 Raphael Neider <rneider AT web.de>
7623
7624         * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
7625
7626 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
7627
7628         * .version: changed to version 2.5.3
7629         * doc/sdccman.lyx: changed version to 2.5.3,
7630           documented --codeseg and --constseg and pragma codeseg and constseg,
7631           documented bit parameters (reentrant) and bit returning
7632         * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
7633            currFunc->recvSize, but is this ok for all ports?
7634           (ast2iCode): result of ~ on unsigned char must be cast to int for
7635            bool to work
7636         * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
7637           function pointers in bit space
7638         * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
7639           (processFuncArgs): call port.reg_parm() with reentrancy info
7640         * src/port.h,
7641         * src/avr/main.c,
7642         * src/ds390/main.c,
7643         * src/hc08/main.c,
7644         * src/pic/main.c,
7645         * src/pic16/main.c,
7646         * src/xa51/main.c,
7647         * src/z80/main.c: port.reg_parm prototype extended with
7648           "bool reentrant" parameter
7649         * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
7650           options.stackAuto for allocating bit register parameters
7651         * src/mcs51/gen.c (genNot): optimized complementing direct bit,
7652           (genSend): set BitBankUsed if it is,
7653           (selectRegBank): factored out of genCall for use in genPcall,
7654           (genCall): removed redundant dtype assignmen, use selectRegBank,
7655           (genPcall): handle returning in Carry properly, save in F0 if needed,
7656           (genReceive): handle bit register parameters
7657         * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
7658           (mcs51_assignRegisters): enable bit registers for all reentrant
7659            functions and don't set BitBankUsed unconditionally
7660         * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
7661         * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
7662         * support/regression/tests/funptrs.c: added tests for BOOL and for return
7663
7664 2005-08-27 Borut Razem <borut.razem AT siol.net>
7665
7666         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
7667         ppc-osx (Darwin) does not support -u option. It seems that it is
7668         supported only on Linux - GNU cp
7669
7670 2005-08-25 Borut Razem <borut.razem AT siol.net>
7671
7672         * sim/ucsim/gui.src/serio.src/Makefile.in,
7673           sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
7674           sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
7675           sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
7676           install and strip, since the strip at /usr/ccs/bin should be used
7677           on solaris
7678
7679 2005-08-24 Borut Razem <borut.razem AT siol.net>
7680
7681         * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
7682
7683 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
7684
7685         * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
7686         ffffffffu
7687
7688 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
7689
7690         * as/mcs51/aslink.h: completed lkrloc.c prototypes
7691         * as/mcs51/lkmain.c (link_main): fixed warning
7692         * device/include/stdbool.h: ds390 has no advanced bit support yet
7693         * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
7694         * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
7695         * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
7696           and updated their macros
7697         * src/SDCCval.c (constVal): updated comment for renamed b_long
7698
7699 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
7700
7701         * as/mcs51/asdata.c: changed ctype['['] to BINOP
7702         * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
7703           (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
7704           (oprio): set priority for '['
7705         * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
7706            and adb_24_bit
7707         * as/mcs51/asm.h: added defines R_BIT and S_BIT
7708         * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
7709         * as/mcs51/lkdata.c: changed ctype['['] to BINOP
7710         * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
7711           added overlayable BIT_BANK area
7712         * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
7713           (summary2): explain 'T' in legenda
7714         * as/mcs51/lkrloc.c: replaced old K&R style,
7715           (relr): added R_BIT processing,
7716           (errmsg): added "Bit-addressable relocation error",
7717           (adb_bit): added for converting from byte- to bit-addressable space,
7718           (adb_24_bit): added for converting from byte- to bit-addressable space
7719         * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
7720            used in reentrant functions now even as return value
7721         * device/lib/_gptrput.c (_gptrput): removed obsolete code
7722         * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
7723           (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
7724         * src/SDCCglobl.h: added indicator BitBankUsed
7725         * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
7726            the bit registers b0-b7
7727         * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
7728           (geniCodeCast): fixed bug 1263853,
7729           (geniCodeLogicAndOr): put result in bool or char,
7730           (geniCodeReceive): added parameter func for accessing the return type,
7731           (geniCodeFunctionBody): pass func to geniCodeReceive
7732         * src/SDCCmain.c: added indicator BitBankUsed
7733         * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
7734         * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
7735           (checkSClass): don't put automatic bool/bit on stack,
7736           (checkFunction): removed check on function cannot return bit
7737         * src/SDCCsymt.h: added newBoolLink prototype
7738         * src/mcs51/gen.c (rb1regs): added bit registers,
7739           (movc): created for assigning to carry,
7740           (pushReg, popReg): created for pushing registers,
7741           (sameRegs): check both AOP_REG and AOP_CRY types,
7742           (aopOp): handle bit registers,
7743           (aopPut): optimization no self-assign,
7744           (saveRegisters): push reg->base (bits) only once for bit registers,
7745            and use pushReg,
7746           (unsaveRegisters): pop reg->base only once and use popReg,
7747           (assignResultValue): added parameter func and return in carry for bits,
7748           (genIpush): optimization no reload in A if not changed,
7749           (genSend): bit parameters in reentrant functions are passed in bit
7750            registers by first assigning to bits in B, then save registers and
7751            copy B to bits,
7752           (genCall): handle returning in Carry properly, save it in F0 if needed,
7753           (genPcall): updated assignResultValue call, this is not safe yet for bit
7754            returning function !!!
7755           (genFunction): don't generate equ's for bit registers and use pushReg,
7756           (genEndFunction): take care of bit returning functions and use popReg,
7757           (genRet): return bit in Carry,
7758           (genIfx): optimize bit registers and other directly addressable bits,
7759           (genReceive): updated assignResultValue call
7760         * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
7761           (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
7762            registers when using stack-auto
7763         * src/mcs51/ralloc.c (_G): added allBitregs,
7764           (regs8051): added the bit registers,
7765           (createStackSpil): use macro IS_BIT,
7766           (getRegBit): added to allocate a bit register, else spill,
7767           (getRegBitNoSpil): added to allocate a bit register, else a gpr,
7768           (updateRegUsage): factored out to ease stepping while debugging,
7769           (serialRegAssign): use updateRegUsage, only spill bits if necessary,
7770            also allocate bit registers,
7771           (fillGaps): handle bit registers,
7772           (findAllBitregs): added to create bit vector with all bit registers,
7773           (mcs51_allBitregs): returns this bit vector,
7774           (mcs51_assignRegisters): when using stack-auto use bit registers for
7775            passing parameters and creating local variables
7776         * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
7777
7778 2005-08-22 Borut Razem <borut.razem AT siol.net>
7779
7780         * device/lib/Makefile.in: replaced find option -or with -o
7781           to make it run on solaris
7782
7783 2005-08-22 Raphael Neider <rneider AT web.de>
7784
7785         * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
7786           fixes #1265442 (crash on Solaris)
7787
7788 2005-08-20 Borut Razem <borut.razem AT siol.net>
7789
7790         * configure, configure.in: added tests for libsocket and libnsl libraries,
7791           requred by sdcdb on sparc-solaris; generate support/regression/Makefile
7792           from support/regression/Makefile.in
7793         * support/regression/Makefile.in: added
7794         * device/lib/pic16/Makefile.common.in: force make to use bash shell
7795         * sim/ucsim/libtool: regenerated on sparc-solaris
7796         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
7797           sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
7798           sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
7799           -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
7800           sparc-solaris, which doesn't use GNU ld linker
7801         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
7802         * as/Makefile: find on sparc-solaris does not support -maxdepth option
7803
7804 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
7805
7806         * src/mcs51/peeph.def: updated comments
7807
7808 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7809
7810         * device/lib/_gptrget.c,
7811         * device/lib/_gptrput.c: slightly shorter
7812         * doc/sdccman.lyx: incremented version
7813         * src/mcs51/peeph.def: moved peephole comments to the line of first
7814           change to better keep line correlation, reanimated 186.e
7815         * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
7816
7817 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
7818
7819         * src/pic/pcode.c : Pasted ".line" assembly directives patch from
7820           David Saxton with quotes around file name.
7821
7822 2005-08-15 Borut Razem <borut.razem AT siol.net>
7823
7824         * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
7825           support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
7826           support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
7827           make tests run on x86_64 platform
7828
7829 2005-08-13 Raphael Neider <rneider AT web.de>
7830
7831         * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
7832           as it might be executed DURING a build (parallel make is wonderful)
7833
7834 2005-08-13 Raphael Neider <rneider AT web.de>
7835
7836         * device/lib/Makefile.in (port-specific-objects-pic16):
7837           revert to cp $(PORT)/bin/*.* $(PORTDIR)
7838         * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
7839           dependency
7840         * device/lib/pic16/Makefile.rules: build subdirs before creating
7841           the library, removed builddir rule, create $(builddir) early in
7842           recurse rule, use empty recurse rule for leaf directories
7843         * device/lib/pic16/Makefile.subdir: added phony targets, ignore
7844           mkdir errors (race condition), removed duplicate suffix "hex"
7845           from clean rules
7846         * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
7847         * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
7848           prevents mkdir -p from aborting on Alpha
7849
7850 2005-08-12 Raphael Neider <rneider AT web.de>
7851
7852         * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
7853           db-statements in order to allow for arrays of pointers in code
7854           sections to be placed without interspersed 0-padding, fixes
7855           bug #1256215
7856         * (emitStatistics): fixed division by zero for pic18f1220
7857         * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
7858           unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
7859         * (pic16_emitDS): respect DB_ITEMS_PER_LINE
7860         * (pic16_pCodeConstString): keep track of already emitted string
7861           literals to prevent "duplicate definitions of symbol _str_NR"
7862         * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
7863           debug message
7864         * device/lib/Makefile.in: ignore failing PIC16 library builds
7865         * device/lib/pic16/Makefile: do not build if gputils are missing
7866         * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
7867
7868 2005-08-10 Raphael Neider <rneider AT web.de>
7869
7870         * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
7871           my last commit)
7872
7873 2005-08-10 Raphael Neider <rneider AT web.de>
7874
7875         * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
7876           Rokas' patch to add the new fixed point type "__fixed16x16"
7877         * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
7878           functions for __fixed16x16 arithmetics
7879         * device/lib/pic16: reimplemented the build system to support
7880           a separate build directory, better handling of libio (create
7881           the library in a separate subdir for each architecture) and
7882           easier configuration (centralized in Makefile.common)
7883
7884 2005-08-07 Raphael Neider <rneider AT web.de>
7885
7886         * src/pic16/gen.c (genrshTwo): fixed sign extension
7887         * src/pic16/device.c: added pic18f2320, 4220 and 4320
7888         * device/include/pic16/pic18f2220.h: changed some bit definitions,
7889           added T0CONbits
7890         * device/include/pic16/pic18f4220.h: NEW, header for
7891           pic18f4220 and pic18f4320
7892         * device/include/pic16/pic18fregs.h: added new devices,
7893           embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
7894         * device/include/pic16/signal.h: resolved name clashes
7895           on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
7896           to also allow testing for interrupt enable bits, added
7897           comments on how to use the macros
7898         * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
7899         * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
7900           register definitions for the devices
7901         * device/lib/pic16/pics.all: added new devices
7902         * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
7903           allocated memory
7904         * device/lib/pic16/libc/stdlib/memfree: do not count
7905           the block header as free memory
7906         * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
7907           simplified and added missing end-of-blocklist-marker
7908           (reported by Peter Onion, fixes #1252814)
7909         * (_mergeHeapBlock): fixed loop condition
7910         * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
7911           len==0, restructured code
7912         * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
7913           up a bit, reduced bitfield accesses, prevent endless loops
7914           in case of heap corruption
7915         * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
7916           "unreferenced arguments/must return a value" warnings
7917         * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
7918           replaced BAUDREG with SPBRG
7919         * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
7920           device/lib/pic16/debug/gstack/gstack.c: replaced
7921           _naked, _asm, _endasm with __naked, __asm, __endasm
7922
7923 2005-08-05 Raphael Neider <rneider AT web.de>
7924
7925         * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
7926           AOP_PCODE operands, fixes multibyte union-bitfield-accesses
7927
7928 2005-08-05 Borut Razem <borut.razem AT siol.net>
7929
7930         * device/lib/Makefile.in: added missing ';'
7931         * configure: removed ^M characters
7932
7933 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7934
7935         * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
7936           device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
7937           License
7938
7939 2005-08-04 Borut Razem <borut.razem AT siol.net>
7940
7941         * configure.in: pic16 libraries build 2nd try - enable running
7942           configure in device/lib/pic16
7943         * configure: regenerated from configure.in
7944         * device/lib/Makefile.in: create $(PORT)/bin directory
7945
7946 2005-08-03 Raphael Neider <rneider AT web.de>
7947
7948         * src/pic16/gen.c (pic16_derefPtr): NEW, single place
7949           to get/set values via pointers
7950         * (genUnpackBits,genPackBits): changed detection of
7951           ptr->bitfield vs. sym.bitfield, fixed access via generic
7952           pointers, removed dead (wrong) code for multibyte bitfields
7953         * (genNearPointerGet, genGenPointerGet): removed useless code,
7954           fixed bitfield detection, fixes #1250594
7955         * (genNearPointerSet): removed useless code
7956         * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
7957           and introduced macro pic16_emitpcode that conditionally emits
7958           the origin of the following pCode (useful for debugging SDCC)
7959         * src/pic16/pcode.c: changed (and disabled) some debug outputs
7960         * (createDefmap): fixed handling of LFSR for --optimize-df
7961
7962 2005-08-02 Borut Razem <borut.razem AT siol.net>
7963
7964         * device/lib/Makefile.in: pic16 libraries build enabled since
7965           gputils-0.13.2 are now localy installed at sourceforge's compile farm
7966
7967 2005-08-02 Raphael Neider <rneider AT web.de>
7968
7969         * src/pic16/gen.c (genPackBits): removed deprecated warning
7970         * (genGenPointerSet): fixed bitfield detection
7971
7972 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7973
7974         * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
7975
7976 2005-07-31 Raphael Neider <rneider AT web.de>
7977
7978         * device/lib/pic16/libdev/pic18f458.c,
7979           device/include/pic16/pic18f458.h: added missing T0CONbits
7980
7981 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
7982
7983         * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
7984
7985 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
7986
7987         * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
7988
7989 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7990
7991         * device/include/mcs51/at89c51ed2.h: added.
7992
7993 2005-07-23 Raphael Neider <rneider AT web.de>
7994
7995         * src/pic/gen.h: added emitpcode macro for debugging
7996         * src/pic/gen.c (emitpcode): renamed to emitpcode_real
7997           and replace by macro adding debug information on demand
7998         * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
7999         * (gencjne): tried to fix; replaced with correct (slower) code
8000         * (gen{Unp,P}ackBits): fixed single bit access
8001         * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
8002         * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
8003           previous instruction
8004         * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
8005           register has to be handled with care (forbidding movement
8006           of assignments/uses, removing assignments completely, ...)
8007         * (pCodeOptime2pCodes): make use of regIsSpecial
8008         * added lots of debugging output (commented out)
8009         * src/pic/rallloc.c (deassignLRs): prevent operand registers
8010           from being reused as result UNLESS it is known to work
8011
8012 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
8013
8014         * support/Util/dbuf.h: include <stddef.h> for size_t
8015         * .version: changed to version 2.5.2
8016
8017 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8018
8019         * src/SDCCloop.c (loopInvariants): fixed bug #1234048
8020
8021 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8022
8023         * src/hc08/gen.c (genMinus): fixed bug #1241835,
8024           (genModOneByte): removed needless psha/pula
8025
8026 2005-07-22 Raphael Neider <rneider AT web.de>
8027
8028         * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
8029           have PIC14 handled like PIC16, fixes broken pic14 linker calls
8030         * src/pic/gen.c (resolveIfx): do not "invent" labels
8031         * (genSkipc): changed to positive logic
8032         * (genSkipCond): removed as no longer needed
8033         * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
8034           backport from PIC16
8035         * (genLeftShift): check operands are in different registers
8036         * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
8037           INCF does not update CARRY...
8038         * src/pic/main.c: fixed _linkCmd
8039         * src/pic/pcode.c (unlinkpCode): added inactive code
8040         * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
8041           alive (do not assign result and operand overlapping registers)
8042
8043 2005-07-22 Raphael Neider <rneider AT web.de>
8044
8045         * src/pic/device.c (dump_sfr): replaced register declaration with
8046           call to emitSymbolToFile() to avoid duplicate symbols
8047         * (assignRelocatableRegisters): do not declare external symbols
8048         * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
8049           right (take size of type, not etype)
8050         * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
8051         * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
8052         * (packRegsForAccUse): disabled assignment of WREG as
8053           the result reg to prevent occurence of just fixed #1235003,
8054           fixes #1242954
8055         * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
8056           symbols (avoids duplicate symbols in .asm file)
8057         * (pic14emitRegularMap): use emitSymbolToFile()
8058         * src/pic/gen.c (aopOp): fixed spillLocation handling
8059         * (gen{Unp,P}ackBits): fixed acquiring bit-operands
8060         * (genDataPointerSet): removed unneccessary variables/output
8061
8062 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
8063
8064         * as/mcs51/lkarea.c: enlarged codemap for banked memory
8065         * device/lib/mcs51/crtbank.asm: added # to 0x0F
8066
8067 2005-07-21 Raphael Neider <rneider AT web.de>
8068
8069         * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
8070           architecture cannot handle them efficiently, fixes bug #1235003
8071         * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
8072           check for empty sets before using them (fixes bug #1232190)
8073
8074 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
8075
8076         * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
8077           (lnksect2): generate warnings for memory overlap
8078         * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
8079           constseg to set the name of these segments so you can instruct the linker
8080           to place them in banks
8081         * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
8082         * src/SDCCglobl.h: added MODEL_HUGE to enum,
8083           added code_seg and const_seg to options
8084         * src/SDCCglue.c (emitMaps): use options.const_seg,
8085           (createInterruptVect): put interrupt vectors in segment HOME,
8086           (glue): put HOME before static segment and put the main glue in HOME,
8087           (glue): use options.code_seg
8088         * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
8089         * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
8090           these segments so you can instruct the linker to place them in banks
8091           (linkEdit): use code_loc for HOME segment which should be the first
8092           segment in code memory now
8093         * src/SDCCmem.c: fixed more stuff like bug 1238386
8094         * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
8095           (changePointer): don't change function pointers to code pointers for
8096           banked functions,
8097           (compareType): added exceptional check for banked function pointers
8098         * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
8099         * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
8100           after static in code memory
8101         * src/mcs51/gen.c: added aopLiteralLong prototype,
8102           (aopForSym): use getSize for functions,
8103           (genCall): generate banked calls over one trampoline __sdcc_banked_call
8104           in HOME with lsb of address in r0, msb in r1 and bank in r2, use
8105           -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
8106           the segment,
8107           (genPcall): use call for literal function pointers and generate banked
8108           calls over the one trampoline so there's only one place for the user to
8109           modify according to his/hers hardware,
8110           (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
8111           (genPlusIncr): moved check icount>4 beyond inc dptr optimization
8112         * src/mcs51/main.c: added keyword banked,
8113           (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
8114         * support/Util/SDCCerr.c,
8115         * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
8116           needed for passing the bank and address to the trampoline
8117         * device/lib/mcs51/crtbank.asm: added for bankswitching
8118         * device/lib/mcs51/Makefile: added crtbank
8119
8120 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8121
8122         * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
8123           for fields at offset 0 of a struct or union as reported
8124           on 2005-07-07 in the developer mailing list.
8125
8126 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
8127
8128         * src/SDCCmem.c: fixed bug 1238386
8129
8130 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8131
8132         * src/mcs51/peeph.def: added labelrefcounting for peepholes
8133           (patch #1144962), added peephole 300, enabled 259.x
8134         * doc/sdccman.lyx: removed screenshot and provided link instead
8135
8136 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8137
8138         * doc/sdccman.lyx: added section about debugging with ddd
8139         * doc/figures/ddd_example.eps: screenshot of debugging session
8140
8141 2005-07-04 Raphael Neider <rneider AT web.de>
8142
8143         * src/pic/gen.c (genPointerGet): handle pointers to CONST values
8144           like CODE pointers, fixes #1115683
8145         * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
8146           call, fixes bugs #1232211, #1228110,
8147           fixed wrong casts to pCodeFlow from pCodeInstructions
8148
8149 2005-07-04 Raphael Neider <rneider AT web.de>
8150
8151         * src/pic/gen.c (popGet): changed assert to allow for
8152           bit operands
8153         * (popGetAddr): changed signature to provide
8154           an additional index, patched all call sites
8155         * (genCmpEq): handle literal-like operands correctly
8156         * (genAddrOf): added sanity checks on __code/__data pointers
8157         * (genAssign): added handling of symbols from __code section
8158         * (gencjne): do not generate code for comparisons whose result
8159           is neither stored nor used, fixes bug #1171114
8160         * (AccLsh, AccRsh): operate on operand instead of WREG
8161         * (shift{Left,Right}_Left2ResultLit): NEW, size independant
8162           replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
8163           by known count
8164         * rewrote complete shift-by-literal logic, commented unused
8165           functions out
8166         * (genConstPointerGet): get multiple bytes (if result size > 1),
8167           fixed handling of non-immediate addresses
8168         * (genPointerGet): handle CODE pointers like CONST pointers
8169         * (genpic14Code): insert C-SRC lines as Cource-pCodes
8170         * ({aop,op}_isLitLike): NEW, single place to decide whether an
8171           operand is to be treated as a literal or not
8172         * (mov2w,genPcall,genCmpEq),
8173           src/pic/genarith.c: use aop_isLitLike() to decide between
8174           literal/register contents
8175         * (addSign): added missing offset
8176         * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
8177           only emit comment in debug-mode,
8178           use {aop,op}_isLitLike throughout the file
8179         * src/pic/glue.c: fix initializers for pointers (work in progress)
8180         * src/pic/pcode.c (get_op): honor index on _const symbols
8181         * ({reset,dump}pCodeStatistics): NEW, estimate code size
8182         * (dumppBlock): added pCode size estimation
8183         * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
8184           check for IS_SYMOP before OP_SYMBOL'ing
8185         * fixed indentation, compacted switch-statements
8186         * (allocReg): find free register and allocate it instead of
8187           allocating new registers all the time
8188         * (deassignLRs): prevent POINTER_GET's from being assigned the same
8189           registers as its operands (necessary only for multibyte GETs)
8190
8191 2005-07-01 Raphael Neider <rneider AT web.de>
8192
8193         * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
8194           debugging .asm-output macros FENTRY + FEXIT
8195         * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
8196           way... I wonder...
8197         * (emitpComment): NEW, printf to pCode
8198         * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
8199           offset handling
8200         * (popGetAddr): NEW, variant of popGet to access an immediates
8201           high(er) bytes instead of the n'th byte of memory they reference,
8202           replaced popGet with popGetAddr where neccessary
8203         * (genDataPointerGet): reactivated and fixed implementation
8204         * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
8205           accesses
8206         * (genDataPointerSet): fixed multibyte assignments
8207         * (genpic14Code): fixed --i-code-in-asm handling
8208         * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
8209         * (genPlus): fixed index-out-of-bounds error
8210         * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
8211         * src/pic/ralloc.c: added debugging output macro FENTRY2
8212         * (spillThis): fixed indentation, enbraced for-body for clarity
8213         * (rematStr): commented out as now unused
8214         * (regTypeNum): commented out special spill case (overwrites
8215           arbitrary values)
8216         * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
8217
8218 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
8219
8220         * doc/sdccman.lyx: documented sfr16/sfr32,
8221           added example for using storage class with function pointers
8222         * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
8223
8224 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
8225
8226         * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
8227         * device/lib/_itoa.c,
8228         * device/lib/_ltoa.c: optimized codesize
8229         * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
8230           but don't know how to suppress the double warning.
8231         * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
8232         * support/Util/SDCCerr.c,
8233         * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
8234
8235 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
8236
8237         * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
8238           fixed old K&R prototypes
8239         * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
8240         * device/lib/_gptrget.c,
8241         * device/lib/_gptrgetc.c,
8242         * device/lib/_gptrput.c: changed versions for new memory indicator values,
8243           also new versions for small generic pointers and banked generic pointers
8244         * src/port.h: added const_name
8245         * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
8246         * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
8247         * src/SDCCcse.c (findPrevIc): check all associative operators
8248         * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
8249         * src/SDCCicode.h: added macro IS_ASSOCIATIVE
8250         * src/SDCCmem.c: updated comments,
8251           set far-space to 0 for pdata, results in optimized code
8252         * src/SDCCmem.h: added macro CONST_NAME
8253         * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
8254           moving the info into the highest bits, see also gptrget/gptrput
8255         * src/src.dsp: added sdcc.ico to project files
8256         * src/avr/gen.c (genCast): fixed bug 0x%d
8257         * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
8258         * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
8259           relation between ptr_type and DCL_TYPE,
8260           (genCast): fixed bug 0x%d
8261         * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
8262           (CODE)" for const_name
8263         * src/hc08/gen.c (genCast): fixed bug 0x%d
8264         * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
8265           (hc08_port): added "CONST (CODE)" for const_name
8266         * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
8267           (aopForRemat, adjustArithmeticResult): disconnected direct relation
8268           between ptr_type and DCL_TYPE,
8269           (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
8270           operand* and took AOP() inside function so sfr-ness can be checked,
8271           (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
8272           new prototype,
8273           (genFunction, genEndFunction): optimized stack setup,
8274           (genMinus): optimized for literals with ending zeroes (in bytes),
8275           (genCast): fixed bug 0x%d
8276         * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
8277           (mcs51_port): added "CONST (CODE)" for const_name
8278         * src/mcs51/peeph.def: made rule 226 more generic
8279         * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
8280         * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
8281         * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
8282         * src/z80/main.c (z80_port): added NULL for const_name,
8283           (gbz80_port): added NULL for const_name
8284         * support/regression/tests/bug663539.c,
8285         * support/regression/tests/sfr16.c: new tests
8286
8287 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8288
8289         * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
8290
8291 2005-06-24 Raphael Neider <rneider AT web.de>
8292
8293         * device/lib/pic16/libdev/pic18f[68][567]20.c:
8294           corrected typos...
8295         * device/include/pic16/signal.h: added USBIF
8296           and SIG_USB
8297
8298 2005-06-24 Raphael Neider <rneider AT web.de>
8299
8300         * device/lib/pic16/libdev/pic18f2455.c,
8301           device/include/pic16/pic18f2455.h: NEW
8302         * device/include/pic16/pic18fregs.h,
8303           device/lib/pic16/pics.all,
8304           src/pic16/device.c: added 18f2455
8305         * device/lib/pic16/libdev/pic18f[68][567]20.c,
8306           device/include/pic16/{pic18f[68][567].h,usart.h}:
8307           replaced MULTIPLE_USARTS define with more relaible
8308           compatibility sfrs (for USART access)
8309
8310 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
8311
8312         * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
8313           and the output asm file line is printed on two lines.
8314
8315 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8316
8317         * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
8318           BGT, BLE, BHI, and BLS instructions
8319         * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
8320           genCmpEq): removed
8321         * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
8322           negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
8323           fixes bug #1216342
8324         * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
8325
8326 2005-06-15 Raphael Neider <rneider AT web.de>
8327
8328         * src/pic16/NOTES: moved Vangelis from active developers to people to contact
8329         * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
8330         * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
8331           fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
8332           OP_SYM_TYPE() instead of OP_SYM_ETYPE()
8333
8334 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8335
8336         * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
8337           Marcel Telka in bug #1215704
8338
8339 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
8340
8341         * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
8342           located in shared memory bank.
8343
8344 2005-05-31 Raphael Neider <rneider AT web.de>
8345
8346         * src/pic16/{gen.c,genarith.c}: replaced sign-extension
8347           "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
8348           "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
8349
8350 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
8351
8352         * device/lib/_strncpy.c: fixed the fix
8353
8354 2005-05-26 Raphael Neider <rneider AT web.de>
8355
8356         * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
8357           initializers with \0, bug #1208187
8358         * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
8359           intializers with \0, bug #1208187
8360
8361 2005-05-26 Raphael Neider <rneider AT web.de>
8362
8363         * src/pic16/glue.c (pic16_printIvalChar): fixed string
8364           initializers with \0, bug #1208187
8365         * src/pic16/main.c (_process_pragma): added sanity checks
8366           for stack position and size, emit warnings when appropriate
8367
8368 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
8369
8370         * device/lib/_strncpy.c: fixed not filling with \0
8371
8372 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8373
8374         * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
8375           createFunction),
8376         * src/SDCC.y (external_definition, enumerator, parameter_declaration,
8377           compound_statement),
8378         * src/SDCCsymt.h,
8379         * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
8380
8381 2005-05-24 Raphael Neider <rneider AT web.de>
8382
8383         * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
8384
8385 2005-05-24 Raphael Neider <rneider AT web.de>
8386
8387         * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
8388           TRISE definitions, closes bug #1162453
8389
8390 2005-05-22 Raphael Neider <rneider AT web.de>
8391
8392         * src/pic16/main.c (_process_pragma): check for missing
8393           arguments to pragmas code and udata
8394         * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
8395           consistency fixes to match other headers (thanks to Jim Paris)
8396         * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
8397
8398 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
8399
8400         * src/SDCCicode.c (isOperandEqual): fixed missing ;
8401
8402 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
8403
8404         * support/regression/tests/bug1198642.c: new test
8405         * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
8406         * src/SDCCcse.c (findPrevIc): added comment, please have a look
8407         * support/scripts/resource.h,
8408         * support/scripts/resource.rc,
8409         * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
8410         * support/scripts/sdcc.ico: added 32x32 icon
8411
8412 2005-05-18 Raphael Neider <rneider AT web.de>
8413
8414         * device/lib/pic16/libdev/pic18f*.c,
8415         * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
8416           keywords to "__sfr" and "__at (X)"
8417         * device/include/pic16/pic18fregs.h: added pic18f4520
8418         * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
8419           #1203088 (MPLAB compatibility)
8420
8421 2005-05-17 Raphael Neider <rneider AT web.de>
8422
8423         * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
8424         * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
8425         * device/lib/pic16/pics.all: added new devices
8426         * src/pic16/device.c: added support for pic18f4520
8427
8428 2005-05-16 Raphael Neider <rneider AT web.de>
8429         * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
8430         * src/pic16/genarith.c (genAddLit): fixed bug 1202480
8431         * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
8432           convenience function for bit access
8433
8434 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
8435
8436         * device/lib/printf_large.c: fixed bug 1193299
8437         * support/regression/tests/bug1057979.c: added test %3.3s
8438
8439 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8440
8441         * device/include/mcs51/8051.h,
8442         * device/include/mcs51/8052.h: made parseable with lint
8443         * device/include/mcs51/lint.h: added include file for (sp)lint
8444         * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
8445         * doc/cdbfileformat.lyx,
8446         * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
8447
8448 2005-05-14 Raphael Neider <rneider AT web.de>
8449
8450         * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
8451         * device/lib/pic16/libc/stdlib/itoa.c (new)
8452         * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
8453         * device/lib/pic16/libio/Makefile: exclude subdir according to
8454           ${subdir}.ignore for certain PICs (lacking e.g. i2c)
8455         * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
8456         * src/pic16/gen.c (genFunction): prevent annoying warning
8457         * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
8458           nameclashes on BeOS
8459         * support/cpp2/cppmain.c (cpp_output_string): new
8460         * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
8461           fixes bug 1116802
8462
8463 2005-05-13 Borut Razem <borut.razem AT siol.net>
8464
8465         * src/SDCCmain.c (linkEdit): fixed bug 1195202
8466
8467 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8468
8469         * .version: changed to version 2.5.1; back to bleeding edge development
8470
8471 2005-05-11 Borut Razem <borut.razem AT siol.net>
8472
8473         * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
8474           generate PDF version 1.3 documents
8475
8476 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8477
8478         * .version: changed to version 2.5.0
8479
8480 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8481
8482         * doc/sdccman.lyx: updated weblinks, index and smaller updates
8483
8484 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8485
8486         * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
8487         --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
8488         well as many smaller updates.
8489         * .version: changed to version 2.5.0-pre1
8490
8491 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8492
8493         * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
8494
8495 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
8496
8497         * support/regression/tests/bug1185672.c: added
8498         * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
8499           bug 1185672
8500         * src/mcs51/gen.c (genCall): added comments, made it look safer
8501         * src/mcs51/gen.c (genEndFunction): simplified
8502
8503 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
8504
8505         * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
8506
8507 2005-04-14 Borut Razem <borut.razem AT siol.net>
8508
8509         * fixed bug 1045046 - SIGSEGV with really simple code?:
8510           src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
8511           src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
8512
8513 2005-04-14 Borut Razem <borut.razem AT siol.net>
8514
8515         * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
8516           src/pic16/device.h: temporarily disabled experimental #inline pragma
8517           for 2.5.0 release
8518
8519 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
8520
8521         * device/include/z80/stdio.h,
8522         * device/include/z80/string.h: removed these highly incomplete files so
8523           SDCC can use the default ones in device/include/
8524
8525 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8526
8527         * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
8528         gcc warning.
8529         * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
8530         fix sdcpp warnings.
8531
8532 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
8533
8534         * device/include/malloc.h: removed redundant __reentrant prototypes
8535         * device/lib/_mullong.c: added working xstack variant in asm (C version
8536           doesn't pass regression tests)
8537         * device/lib/bpx.c: used __data and made bpx char for mcs51
8538         * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
8539           (createFunction): fixed bug with xstackPtr
8540         * src/SDCCcse.c: corrected comments
8541         * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
8542           (killDeadCode, eBBlockFromiCode): removed unused code
8543         * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
8544           corrected comments
8545         * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
8546           assignResultValue, genCall, genFunction, genEndFunction, genAnd,
8547           genOr, genXor, genAddrOf): fixed several bugs concerning xstack
8548           (genModOneByte): fixed warning in MSVC
8549         * src/mcs51/main.c (): added comments
8550         * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
8551
8552 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
8553
8554         * src/SDCCmain.c (linkEdit): oops, changed one line too many
8555
8556 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
8557
8558         * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
8559
8560 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
8561
8562         * src/pic16/glue.c (printIvalChar): fixed bug when emitting
8563         characters arrays of larger size than the declared one.
8564
8565 2005-04-10 Borut Razem <borut.razem AT siol.net>
8566
8567         * src/pic/gen.c (genInline),
8568           src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
8569           (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
8570           (findNextInstruction), (findPrevInstruction),
8571           (findInstructionUsingLabel),
8572           src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
8573         * src/pic/pcode.c (findLabel): added missing '\n'
8574         * src/src.dsp: added SDCCdwarf2.c to the project
8575
8576 2005-04-09 Borut Razem <borut.razem AT siol.net>
8577
8578         * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
8579
8580 2005-04-08 Raphael Neider <rneider AT web.de>
8581
8582         * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
8583           into the chain after a given one) and mergeDefmapSymbols (combine
8584           defmap entries for each symbol per pcode)
8585         * (createDefmap): have defmap entries merged in the end
8586         * (defmapReplaceSymRef): split defmap entries covering two accesses to
8587           a symbol before replacing one access type's symbol, merge symbols in
8588           the end (replacement symbol might already have an entry)
8589         * (assignValnums): keep reference to written WREG intact
8590
8591 2005-04-08 Raphael Neider <rneider AT web.de>
8592
8593         * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
8594           Alpha)
8595
8596 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
8597
8598         * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
8599         bytes
8600
8601 2005-04-07 Raphael Neider <rneider AT web.de>
8602
8603         * device/include/pic16/usart.h: added compatibility defines for
8604           devices with more than one USART
8605         * device/include/pic16/pic18f[68][567]20.h: activated above defines
8606
8607 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
8608
8609         * device/lib/Makefile.in: updated for port specific include
8610
8611 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
8612
8613         * support/regression/ports/mcs51/spec.mk: added mcs51 include
8614
8615 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
8616
8617         * device/include/8051.h,
8618         * device/include/8052.h,
8619         * device/include/at89S8252.h,
8620         * device/include/at89c55.h,
8621         * device/include/at89x051.h,
8622         * device/include/at89x51.h,
8623         * device/include/at89x52.h,
8624         * device/include/mcs51reg.h,
8625         * device/include/reg51.h,
8626         * device/include/reg764.h,
8627         * device/include/regc515c.h,
8628         * device/include/sab80515.h: (re)moved these 12 files
8629         * device/include/mcs51/8051.h,
8630         * device/include/mcs51/8052.h,
8631         * device/include/mcs51/at89S8252.h,
8632         * device/include/mcs51/at89c55.h,
8633         * device/include/mcs51/at89x051.h,
8634         * device/include/mcs51/at89x51.h,
8635         * device/include/mcs51/at89x52.h,
8636         * device/include/mcs51/mcs51reg.h,
8637         * device/include/mcs51/reg51.h,
8638         * device/include/mcs51/reg764.h,
8639         * device/include/mcs51/regc515c.h,
8640         * device/include/mcs51/sab80515.h: and added them here
8641
8642 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
8643
8644         * device/include/stdarg.h: changed SDCC specific keywords to double
8645           underlined form.
8646         * device/include/stdint.h: changed intptr_t and uintptr_t for others than
8647           mcs51 and ds390.
8648         * device/include/hc08/mc68hc908gp32.h,
8649         * device/include/hc08/mc68hc908jb8.h,
8650         * device/include/hc08/mc68hc908jkjl.h,
8651         * device/include/hc08/mc68hc908qy.h: fixed comments
8652         * device/include/mcs51/README: updated
8653         * device/include/mcs51/c8051f120.h: added PINRSF
8654         * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
8655         * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
8656           amidst code. Also inline is not supported.
8657
8658 2005-04-06 Raphael Neider <rneider AT web.de>
8659
8660         * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
8661         * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
8662           callers stack/frame pointers
8663
8664 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
8665
8666         * device/include/pic16/usart.h: added, missing in previous commit,
8667         * device/include/pic16/adc.h: fixed typo,
8668         * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
8669         commit,
8670         * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
8671         <p18fxxx.inc>
8672         * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
8673         uninitialized because a bug appears with gplink
8674         * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
8675         COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
8676         complains for unrecognised option
8677
8678 2005-04-05 Raphael Neider <rneider AT web.de>
8679
8680         * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
8681           structs as well (using memcpy)
8682         * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
8683           on ISRs (GOTO has no label)
8684         * src/pic16/device.h: added OF_OPTIMIZE_DF
8685         * src/pic16/main.c: added compiler switch --optimize-df to enable the
8686           new data flow analysis/optimization
8687         * src/pic16/pcode.c: added (prototypes for and implementation of)
8688           dataflow analysis functions, fixed pCodeInstructions' inCond and
8689           outCond values, made RCALL a branch instruction
8690         * (pic16_unlinkpCode): keep C line if possible
8691         * (pic16_pCodeUnlink): removed cast on left side of assignment, have
8692           C line moved if possible
8693         * (pic16_getRegFrompCodeOp): NEW, improved version of...
8694         * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
8695           to use new pic16_getRegFrompCodeOp (works for more SFRs)
8696         * (pic16_BuildFlow): fixed skip instructions with label (did not start
8697           new flow)
8698         * (pic16_getJumptabpCode): NEW, needed in...
8699         * (LinkFlow): fixed handling of jumptables, calls and conditional
8700           branches
8701         * (pic16_InsertCommentAfter): NEW
8702         * (pic16_pCodeReplace): made verbose and flow preserving
8703         * (AnalyzeFlow): added call to data flow analysis
8704         * src/pic16/pcode.h: added defmaps to pCodeFlow struct
8705         * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
8706         * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
8707
8708 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8709
8710         * src/SDCCast.c (decorateType): fixed bug #1105626
8711
8712 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
8713
8714         * device/include/asm/pic16/features.h,
8715         * pic18f*.h headers,
8716         * device/include/pic16/adc.h,
8717         * device/include/pic16/delay.h,
8718         * device/include/pic16/i2c.h,
8719         * device/include/pic16/malloc.h,
8720         * device/include/pic16/stdio.h,
8721         * device/include/pic16/stdlib.h,
8722         * device/include/pic16/string.h,
8723         * device/lib/pic16/libc/stdio/printf_tiny.c,
8724         * device/lib/pic16/libc/stdio/printf_small.c,
8725         * device/lib/pic16/libc/stdio/strmgpsim.c,
8726         * device/lib/pic16/libc/stdio/strmmssp.c,
8727         * device/lib/pic16/libc/stdio/strmusart.c,
8728         * device/lib/pic16/libc/stdio/vfprintf.c,
8729         * device/lib/pic16/libc/stdlib/ltoa.c,
8730         * device/lib/pic16/libc/stdlib/putchar.c,
8731         * device/lib/pic16/libc/stdlib/x_ftoa.c,
8732         * device/lib/pic16/libc/stdlib/memchrpgm.c,
8733         * device/lib/pic16/libc/stdlib/memchrram.c,
8734         * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
8735         * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
8736         * device/lib/pic16/libio/adc/adcbusy.c,
8737         * device/lib/pic16/libio/adc/adcread.c,
8738         * device/lib/pic16/libio/adc/adcsetch.c,
8739         * device/lib/pic16/libio/usart/ubaud.c,
8740         * device/lib/pic16/libio/usart/ubusy.c,
8741         * device/lib/pic16/libio/usart/udrdy.c,
8742         * device/lib/pic16/libio/usart/uopen.c,
8743         * device/lib/pic16/libio/usart/uputc.c,
8744         * device/lib/pic16/libsdcc/gptr/gptrget1.c,
8745         * device/lib/pic16/libsdcc/gptr/gptrget2.c,
8746         * device/lib/pic16/libsdcc/gptr/gptrget3.c,
8747         * device/lib/pic16/libsdcc/gptr/gptrget4.c,
8748         * device/lib/pic16/libsdcc/gptr/gptrput1.c,
8749         * device/lib/pic16/libsdcc/gptr/gptrput2.c,
8750         * device/lib/pic16/libsdcc/gptr/gptrput3.c,
8751         * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
8752         specific keywords to double underlined form,
8753         * device/lib/pic16/libc/Makefile.rules,
8754         * device/lib/pic16/libsdcc/Makefile.rules,
8755         * device/lib/pic16/libm/Makefile,
8756         * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
8757         to compile with C standard set in Makefile.common
8758         * device/lib/pic16/libc/stdlib/Makefile: added new C sources
8759         rand.c and crc.c in compilation process,
8760         * device/lib/pic16/libsdcc/int/divuint.c,
8761         * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
8762         `c' from signed to unsigned,
8763         * device/lib/pic16/startup/crt0.c,
8764         * device/lib/pic16/startup/crt0i.c,
8765         * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
8766         keywords to double underlined form, bug fixes in _do_cinit function
8767         which prevented the correct initialization of the .idata segment,
8768         * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
8769         core to enter a infinite loop
8770         * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
8771
8772 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8773
8774         * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
8775
8776 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8777
8778         * device/include/Makefile.in: add support for hc08 subdirectory
8779         * device/include/hc08/: new subdirectory
8780         * device/include/hc08/mc68hc908jkjl.h: new header contributed by
8781         Lucas Loizaga, thanks!
8782         * device/include/hc08/mc68hc908qy.h,
8783         * device/include/hc08/mc68hc908gp32.h,
8784         * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
8785         their own directory. Changed internal macro names to use the compiler
8786         reserved namespace. Changed SDCC specific keywords to double
8787         underlined form.
8788         * device/include/math.h,
8789         * device/include/malloc.h,
8790         * device/include/stdarg.h,
8791         * device/include/stdbool.h
8792         * device/include/string.h,
8793         * device/include/tinibios.h,
8794         * device/include/ds400rom.h,
8795         * device/include/8051.h,
8796         * device/include/8052.h,
8797         * device/include/80c51xa.h,
8798         * device/include/at89c55.h,
8799         * device/include/at89S8252.h,
8800         * device/include/at89x51.h,
8801         * device/include/at89x52.h,
8802         * device/include/ds80c390.h,
8803         * device/include/reg764.h,
8804         * device/include/regc515c.h,
8805         * device/include/sab80515.h,
8806         * device/include/mcs51/c8051f000.h,
8807         * device/include/mcs51/c8051f018.h,
8808         * device/include/mcs51/c8051f020.h,
8809         * device/include/mcs51/c8051f040.h,
8810         * device/include/mcs51/c8051f060.h,
8811         * device/include/mcs51/c8051f120.h,
8812         * device/include/mcs51/c8051f300.h,
8813         * device/include/mcs51/c8051f310.h,
8814         * device/include/mcs51/c8051f320.h,
8815         * device/include/mcs51/c8051f330.h,
8816         * device/include/mcs51/c8051f350.h,
8817         * device/include/z180.h: Changed SDCC specific keywords to double
8818         underlined form.
8819
8820 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
8821
8822         * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
8823         18F4455,
8824         * (pic16_assignConfigWordValue): disable testing of configuration
8825         register value with config mask,
8826         * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
8827         function with port->fun_prefix,
8828         * (genFunction): when generating a naked interrupt function never
8829         create an absolute segment placed in interrupt vector address, place
8830         the actual interrupt function at IVA instead, when an interrupt
8831         function is generated with unspecified interrupt then do not create
8832         the absolute section,
8833         * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
8834         code for generating a call to generic pointer get/put function with
8835         a call to function pic16_callGenericPointer(),
8836         * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
8837         the call to the generic pointer get/put functions with prefixing the
8838         function name with port->fun_prefix,
8839         * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
8840         * src/pic16/main.c (_process_pragma): prefix function with
8841         port->fun_prefix,
8842         * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
8843         calling assembler, old 18Fxxxx macro is deprecated,
8844         * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
8845         PC_ASMDIR in while condition,
8846         * (findInstruction): add PC_ASMDIR in while condition,
8847         * (buildCallTree): prefix main with port->fun_prefix,
8848         * (pic16_pCode2str): fixed bug that didn't emit the memory access
8849         identifier for variable with banked access in instructions BTFSS,
8850         BTFSC, BCF, BSF, BTG
8851         * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
8852         * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
8853         * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
8854         perform optimization when enviroment variable NO_REG_OPT is set,
8855         * (insideLRBlock): NEW, return 1 if register is inside an
8856         INF_LOCALREGS block,
8857         * (RemoveRegFromLRBlock): remove a register that is completely
8858         eliminated by register optimization, but it is still left in local
8859         register store/restore in/from stack block,
8860         * (Remove2pcodes): after removing register, check to see if it
8861         should be removed from local register store/restore in/from stack
8862         block,
8863         * src/pic16/ralloc.c (pic16_decodeOp): added decode for
8864         DUMMY_READ_VOLATILE,
8865
8866         * device/include/pic16/adc.h: minor prototype modifications and
8867         update,
8868         * device/include/pic16/malloc.h: added GPL notice various
8869         modifications,
8870         * device/include/pic16/stdint.h: NEW, standard header for ints
8871         * device/include/pic16/delay.h: NEW, header for delay functions,
8872         delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
8873         delay1mtcy,
8874         * device/include/pic16/signal.h: NEW, header providing helper macros
8875         for implementing signal handlers,
8876         * device/include/pic16/stdio.h: added prototypes for functions,
8877         printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
8878         prototypes for stdin and stdout, added macro PUTCHAR to
8879         automatically implement putchar function prototype,
8880         * device/include/pic16/usart.h: modified and updated USART library,
8881         * device/lib/pic16/libio/adc/,
8882         * device/lib/pic16/libio/i2c: some modifications to improve library
8883         performance,
8884         * device/lib/pic16/libc/stdio/: modifications for the new printf*
8885         family of functions,
8886         * device/lib/pic16/libc/stdlib/: various modifications in the malloc
8887         family of functions and other sources,
8888         * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
8889         of the PIC18Fxx[28] devices,
8890         * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
8891         * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
8892         * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
8893         _do_cinit function, because the previous failed when local variables
8894         where not placed in the same memory bank,
8895         * device/lib/pic16/libsdcc/char/: various modifications to improve
8896         library performance,
8897         * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
8898         information on the new functions of the c library and more...
8899
8900 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8901
8902         * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
8903
8904 2005-03-26 Raphael Neider <rneider AT web.de>
8905
8906         * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
8907           if condition == CARRY)
8908         * (genCmp): adapted to new genSkipc semantics
8909         * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
8910           on rIfx (genCmp was broken)
8911
8912 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8913
8914         * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
8915         * src/z80/main.c (_keywords[]),
8916         * src/SDCCglobal.h (struct options),
8917         * src/SDCC.y,
8918         * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
8919         to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
8920         std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
8921         --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
8922         always available in leading double underscore form. The C99 support is
8923         mostly missing, but it's a start.
8924         * support/regression/tests/bug-227710.c: fixed nonconforming use of
8925         reserved identifier "__data".
8926
8927 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
8928
8929         * src/mcs51/peeph.def: fixed bug 1170013
8930
8931 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
8932
8933         * device/include/mcs51reg.h: fixed bug 842007
8934
8935 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8936
8937         * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
8938         last time.
8939
8940 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8941
8942         * src/port.h (struct PORT),
8943         * src/avr/ralloc.c (avr_assignRegisters),
8944         * src/avr/main.c,
8945         * src/ds390/ralloc.c (ds390_assignRegisters),
8946         * src/ds390/main.c,
8947         * src/hc08/ralloc.c (hc08_assignRegisters),
8948         * src/hc08/main.c,
8949         * src/mcs51/ralloc.c (mcs51_assignRegisters),
8950         * src/mcs51/main.c,
8951         * src/pic/ralloc.c (pic14_assignRegisters),
8952         * src/pic/main.c,
8953         * src/pic16/ralloc.c (pic16_assignRegisters),
8954         * src/pic16/main.c,
8955         * src/xa51/ralloc.c (xa51_assignRegisters),
8956         * src/xa51/main.c,
8957         * src/z80/ralloc.c (z80_assignRegisters),
8958         * src/z80/ralloc.h,
8959         * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
8960         * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
8961         * src/SDCCcse.h,
8962         * src/SDCCdflow.c (computeDataFlow),
8963         * src/SDCCdflow.h,
8964         * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
8965         * src/SDCCloop.h,
8966         * src/SDCCcflow.c (*),
8967         * src/SDCCcflow.h,
8968         * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
8969         * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
8970         of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
8971         immedDom() returning wrong block; probably fixes bug #1160833)
8972
8973 2005-03-20 Borut Razem <borut.razem AT siol.net>
8974
8975         * support/scripts/inc2h.pl: WIN32 port
8976
8977 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
8978
8979         * device/lib/makefile.in: added abs.c and labs.c
8980
8981 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
8982
8983         * device/include/stdint.h: added
8984         * device/lib/abs.c: added
8985         * device/lib/labs.c: added
8986         * device/include/stdlib.h: added abs() and labs() prototypes
8987         * device/lib/libsdcc.lib: added abs and labs
8988         * device/include/float.h,
8989         * device/lib/_fsmul.c,
8990         * device/lib/printf_fast.c,
8991         * device/lib/printf_tiny.c: updated comments
8992
8993 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8994
8995         * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
8996         bug #1164313
8997
8998 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8999
9000         * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
9001         * src/SDCCast.c (isLoopCountable): fixed bug #1161985
9002
9003 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
9004
9005         * device/lib/printf_large.c: removed inline assembly for portability and
9006           readability. Use printf_fast if speed or size are more important.
9007         * src/pic16/gen.c: removed conditions around use of DEBUGpc
9008         * src/pic16/genutils.h: added define for DEBUGpc for MSVC
9009
9010 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
9011
9012         * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
9013         prevent compiler warning
9014
9015 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
9016
9017         * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
9018         moved to level 0 and declared as static. Also they are explicit
9019         placed in access bank. This was necessery because some times they
9020         might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
9021         * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
9022         optimizations. Currently only compare to unsigned char is implemented,
9023         * src/pic16/gen.c: added fReturnIdx array,
9024         * (struct resolvedIfx) is moved to gen.h and made public,
9025         * (struct _G): added sregsAlloc and sregsAllocSet fields,
9026         * (aopForSym): added an optimization to directly store in stack of
9027         the operand of a SEND iCode,
9028         * (pic16_aopOp): don't return return registers as strings (AOP_STR)
9029         but as registers instead (AOP_REG) using the fReturnIdx array,
9030         * (pic16_freeAsmop): remove the freed register from the
9031         _G.sregsAlloc field,
9032         * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
9033         a compare of 'WREG',
9034         * (pic16_popGetTempRegCond): changed function prototype, now
9035         function takes also a bitVector argument v which holds the current
9036         set of registers that are allocated for stack access by aopForSym,
9037         registers allocated in aopForSym for accessing stack symbols are not
9038         any more part of the functions usedRegs field,
9039         * (genCall): some times aopOp is called for a stack variable to be
9040         send, aopForSym might perform the push, if this is true make sure
9041         that genCall doesn't push the variable twice by testing _G.resDirect,
9042         * (genFunction): changed testing for unspecified interrupt number
9043         from 256 to INTNO_UNSPEC,
9044         * modified selection scheme of frame pointer generation. Previously
9045         if function did use local registers a frame pointer was generated,
9046         now a frame pointer is generated only if function has arguments
9047         (that need PLUSW2 register access), or has stack arguments, or the
9048         compiler is not instructed to omit the frame pointer,
9049         * (genEndFunction): before restoring local registers that were saved
9050         in the function preamble, also restore the registers that *might*
9051         have been allocated for stack access,
9052         * (genRet): removed some old comments,
9053         * (genCmp, the active (RN's) version): added a call to the
9054         pic16_genCmp_special function to perform the compare with a more
9055         robust and optimized way,
9056         * (genInline): a feature has been added in inline code generation,
9057         which allows a wildcard variable substitution when writing inline
9058         assembly. Code is incomplete and experimental therefore undocumented,
9059         * (genCast): changed order of aopOp for result and right to allow
9060         aopForSym to directly load the result if possible,
9061         * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
9062         perform an optimized compare on some selected special occasions,
9063         * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
9064         * src/pic16/glue.c (pic16createInterrupVect): make sure we never
9065         generate an IVT any more,
9066         * src/pic16/main.c (pic16_optionsTable): added command line option
9067         --optimize-cmp,
9068         * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
9069         macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
9070         macros,
9071         * src/pic16/NOTES: Raphael Neider added in list of active developers
9072         * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
9073         jumptable_end to prevent bug #,
9074         * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
9075         inCond and outCond fields,
9076         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
9077         * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
9078         turn off register spilling,
9079         * (packRegsForOneUse): synced with other ports' versions although it
9080         is not used currently,
9081         * (pic16_packRegisters): added an optimization while reading
9082         structure bitfields, some registers may be saved (malloc code is
9083         decreased by 80 bytes)
9084
9085 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
9086
9087         * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
9088         left is a bitfield, if yes, then don't optimize assignment. Perhaps
9089         this can be optimized more?
9090
9091 2005-03-10 Raphael Neider <rneider AT web.de>
9092
9093         * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
9094           genNearPointerGet): (hopefully) fixed access to bitfields via
9095           pointers (p->bitN = x; and x = p->bitN; failed)
9096
9097 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
9098
9099         * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
9100
9101 2005-03-09 Raphael Neider <rneider AT web.de>
9102
9103         * src/SDCCopt.c (killDeadCode): fixed bug #1156016
9104
9105 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
9106
9107         * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
9108         * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
9109           (regTypeNum): set REG_BIT type if necessary
9110         * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
9111         * support/regression/tests/critical.c: check bug 1144613
9112
9113 2005-03-02 Raphael Neider <rneider AT web.de>
9114
9115         * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
9116
9117 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9118
9119         * src/avr/ralloc.c (serialRegAssign),
9120         * src/ds390/ralloc.c (serialRegAssign),
9121         * src/hc08/ralloc.c (serialRegAssign),
9122         * src/mcs51/ralloc.c (serialRegAssign),
9123         * src/pic/ralloc.c (serialRegAssign),
9124         * src/pic16/ralloc.c (serialRegAssign),
9125         * src/xa51/ralloc.c (serialRegAssign),
9126         * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
9127
9128 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
9129
9130         * src/SDCCast.c (decorateType): fixed bug 1124787
9131
9132 2005-02-20 Hubert Sack <sack AT digiplan.de>
9133         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9134
9135         * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
9136         patch #1121755
9137
9138 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9139
9140         * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
9141         to keep the correct label reference count when adding/removing references
9142         to labels. A peephole file using this is appended to patch #1144962.
9143
9144 2005-02-14 Raphael Neider <rneider AT web.de>
9145
9146         * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
9147         * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
9148         * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
9149           retrievals of result operand's value on assignment
9150
9151 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
9152
9153         * device/include/pic16/string.h: modified prototype for memccpy()
9154         to memccpy(void *, void *, char, size_t)
9155         * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
9156         check whether to omit frame pointer or not,
9157         * (genInline): convert all occurences of "\n" to LF in inline
9158         assembler blocks, this helps formatting the inline text,
9159         * (pic16_loadFSR0): modified prototype,
9160         * (genNearPointerGet, genNearPointerSet): reorganization of code,
9161         removed some 8051 legacy code,
9162         * (genPackBits): enabled handling bitfields exceeding one byte in size,
9163         * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
9164         before allocating temporary registers in functions,
9165
9166 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
9167
9168         * support/regression/tests/bitvars.c: corrected the "fix"
9169
9170 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
9171
9172         * support/regression/tests/bitvars.c,
9173         * support/regression/tests/bitwise.c,
9174         * support/regression/tests/rotate.c: "fixed" problems on Alpha
9175
9176 2005-02-10 Raphael Neider <rneider AT web.de>
9177
9178         * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
9179           different size for Alpha
9180         * src/pic16/gen.c (genCmpEq) : improved compare with 0
9181
9182 2005-02-09 Raphael Neider <rneider AT web.de>
9183
9184         * src/SDCC.lex(doPragma) : save and restore warning options as well
9185           (also added new stack plus clone- and copyAndFreeSDCCERRG())
9186         * have #pragma less_pedantic set the errorlevel to WARNING
9187           (fixes #1117001)
9188         * (cloneOptimize) : fixed wrong malloc's size
9189         * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
9190           facilitate correct handling of #pragma (save|restore)
9191
9192 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
9193
9194         * src/mcs51/gen.c: removed non-standard C nameless struct/union
9195
9196 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
9197
9198         * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
9199
9200 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
9201
9202         * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
9203
9204 2005-02-02 Raphael Neider <rneider AT web.de>
9205
9206         * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
9207         * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
9208         * (pic16_storeForReturn): fixed to allow returning function pointers
9209         * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
9210         * device/include/pic16/{stddef.h,stdbool.h}: added
9211
9212 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
9213
9214         * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
9215
9216 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
9217
9218         * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
9219         * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
9220          appeared to be required
9221
9222 2005-01-31 Borut Razem <borut.razem AT siol.net>
9223
9224         * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
9225           include/mcs51 and include/z80 directories to the package
9226
9227 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9228
9229         * src/hc08/gen.c (genFunction): fixed bug #1112752
9230
9231 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9232
9233         * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
9234
9235 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9236
9237         * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
9238
9239 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
9240
9241         * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
9242
9243 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
9244
9245         * device/include/c8051fxxx.h: removed these 6 files
9246         * device/include/mcs51/c8051fxxx.h: added these 11 new files
9247
9248 2005-01-26 Raphael Neider <rneider AT web.de>
9249
9250         * src/pic16/gen.c (genAssign): fixed assignment from longs
9251           in codespace (were cut to three bytes)
9252         * (genDummyRead): implemented (except for CODESPACE...),
9253           fixed bug #1108575
9254         * src/pic16/glue.c (emitStatistics): beautified
9255         * device/lib/pic16/libm/Makefile: added include path
9256
9257 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9258
9259         * src/z80/gen.c (aopPut): fixed bug #1103902
9260
9261 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9262
9263         * device/lib/expf.c: fixed bug #1095792
9264
9265 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
9266
9267         * device/lib/pic16/libm: added Math library sources
9268
9269 2005-01-24 Raphael Neider <rneider AT web.de>
9270
9271         * src/pic16/pcode.h: added second memory operand to pCodeOpReg
9272           to enable upcast to pCodeOpReg2 (there is no type tag to
9273           differenciate the two and pic16_popGet2p cast into PCOR2)
9274         * src/pic16/main.c (_process_pragma): fixed another malloc bug
9275           (sizeof(sectNames) changed to sizeof(sectName))
9276           Both patches fix segfaults under MinGW.
9277
9278 2005-01-23 Raphael Neider <rneider AT web.de>
9279
9280         * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
9281           Safe_[mc]?alloc()'ed variables
9282         * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
9283           of (byte sized) temporaries (assign them to WREG for now)
9284         * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
9285           (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
9286           this might fix SIGSEGVs on MinGW...
9287         * src/SDCCopt.c (killDeadCode): restored original behaviour
9288           (volatile operands might get thrown away though)
9289
9290 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
9291
9292         * src/pic16/gen.c: fixed bug #1106975,
9293         * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
9294         pointer update, INTCON is saved, global interrupts are disabled and
9295         restored after updateing TOS.
9296         * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
9297         * added function attribute 'shadowregs' to take advantage of shadow
9298         registers,
9299         * added function attribute 'wparam' as an alternative to the wparam
9300         pragma,
9301         * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
9302         user declares a non-ISR function as 'shadowregs',
9303         * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
9304
9305 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
9306
9307         * .version: bumped version number to 2.4.8
9308         * device/lib/pic16/pics.all: list of PIC18F devices supported by
9309         pic16 port,
9310         * device/lib/pic16/libio/i2c/: I2C module support library,
9311         * device/include/pic16/i2c.h: I2C support library header,
9312         * device/lib/pic16/libc/stdio/: standard IO support sources,
9313         * (printf_small.c): printf_small() source, supports float print,
9314         * (printf_tiny.c): printf_tiny() source, does not support floats,
9315         * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
9316         enable global optimizations for entire library source, other
9317         Makefiles in the source tree are also modified to reflect this,
9318         * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
9319         function,
9320         * doc/sdccman.lyx: updated to reflect new changes,
9321         * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
9322         sym->onStack if-case,
9323         * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
9324         sbit, idata, _idata, xdata, _xdata,
9325         * added pragma library, to link an external library, (see doc),
9326         * removed command line options, --pomit-config-words, --pomit-ivt,
9327         --pleave-reset-vector,
9328         * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
9329         when calling assembler to reflect memory model used, also define
9330         macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
9331         reflect stack model used,
9332         * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
9333         on stack return NULL,
9334
9335 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
9336
9337         * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
9338           of the operands is volatile. Fixes #1020220
9339
9340 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
9341
9342         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
9343         * (OptimizeRegUsage): make sure that there is really no other flow where
9344           the first pCode is used
9345
9346 2005-01-22 Raphael Neider <rneider AT web.de>
9347
9348         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
9349           to fix #1106967 (pCode->seq are not set up correctly)
9350
9351 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9352
9353         * src/SDCCglue.c (glue): make sure code area is declared before the
9354         static initialization area.
9355
9356 2005-01-21 Raphael Neider <rneider AT web.de>
9357
9358         * device/lib/Makefile.in: fixed test for pic16 install dir
9359         * device/lib/pic16/*/Makefile*: modified compile flags to enable
9360           optimizations
9361         * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
9362           added --optimize-goto compiler switch and pragma wparam documentation
9363         * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
9364         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
9365           and PRODH closing bug #1071770 (peephole optimizer)
9366
9367 2005-01-19 Raphael Neider <rneider AT web.de>
9368
9369         * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
9370           cmdLine buffers (used when calling sdcpp...) are large enough
9371           (MAX_PATH=256 truncates arguments leading to system halts when
9372           used in MinGW...)
9373         * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
9374         * (genUminus): rewritten to for efficiency
9375         * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
9376           used uninitialized in some cases)
9377         * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
9378           copy the third byte from the int -- now assumes 0x80 (data memory)
9379         * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
9380           operands (genAddLit expects the iCode's operands to swapped as
9381           well), fixed leftover bytes (crashed for short left operands)
9382         * (pic16_genMinusDec): performance improvements, removed false
9383           PIC14 emitSKPNCs
9384         * (pic16_genMinus): fixed to cope with differently sized operands
9385         * src/pic16/glue.c (pic16_glue): added new banksel optimization
9386           for --obanksel > 1
9387         * src/pic16/pcode.c: implemented (first phase of) banksel optimization
9388         * src/pic16/graph.[ch]: implementation of directed graphs, used by
9389           new banksel optimization
9390         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
9391           analysis for temporary registers (segfaults...)
9392         * src/pic16/peeph.def: added rule
9393
9394 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
9395
9396         * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
9397         which converts a float number to its ASCII representation
9398         * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
9399         functions to convert the fractional and integer part of a float to ASCII,
9400         * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
9401         realloc.c): added _MALLOC_SPEC to explicit place variables in data
9402         ram
9403         * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
9404         _STATMEM macros,
9405         * device/include/pic16/adc.h: added GPL info,
9406         * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
9407         a pCodeOp as tested operand,
9408         * (genNearPointerGet): optimized bit testing, does not use
9409         intermediate register for bit value, test directly instead with
9410         BTFSS, BTFSC, works only for single bits,
9411         * (genpic16Code): dump the name of the iCode in the asm,
9412         * src/pic16/ralloc.c (decodeOp): removed static declaration and
9413         renamed to pic16_decodeOp,
9414         * (serialRegAssign): do not allocate a temporary register for iCode
9415         sequences that test a single bit for 1/0
9416
9417 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
9418
9419         * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
9420         pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
9421         access stack and frame pointers. They are initially assigned to
9422         point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
9423         accessing SFRs. Updated all occurences of modification of stack or
9424         frame pointer in gen.c and pcode.c,
9425         * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
9426         assigning of a literal value to pointers,
9427         * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
9428         flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
9429         selected
9430
9431 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
9432
9433         * doc/sdccman.lyx: update documentation about stack pragma, added
9434         some info for stack memory models
9435
9436 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9437
9438         * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
9439
9440 2005-01-08 Raphael Neider <rneider AT web.de>
9441
9442         * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
9443           udata sections to fix bug #1097823
9444
9445 2005-01-05 Raphael Neider <rneider AT web.de>
9446
9447         * src/pic16/gen.c (genGenericShift): added handling of differently
9448           sized left operand and result
9449
9450 2005-01-04 Raphael Neider <rneider AT web.de>
9451
9452         * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
9453         * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
9454           to hold the condition bit)
9455         * added new version of genCmp (old code available via #define)
9456         * added new version of genShiftLeft/genShiftRight in a generic
9457           way, now supports shifting by negative values
9458         * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
9459           shiftCount (expected by genGenericShift)
9460         * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
9461         * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
9462           dump
9463         * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
9464           is an invalid literal too...)
9465
9466 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
9467
9468         * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
9469         from Raphael Neider,
9470         * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
9471         for 8-bit literals. This fixes some literal operands which are sign
9472         extended to 16-bits ints when instruction needs only 8-bits.
9473
9474 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
9475
9476         * device/lib/logf.c: added mcs51 assembly version
9477         * device/lib/expf.c: added mcs51 assembly version
9478         * device/lib/_logexpf.c: new shared asm code for expf and logf
9479         * device/include/math.h: add defines for assembly math library
9480         * device/lib/Makefile.in: build new _logexpf.c
9481         * device/lib/libfloat.lib: use new _logexpf.c
9482
9483 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
9484
9485         * src/pic/device.c
9486         * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
9487           device types which have less than 0x7f registers.
9488
9489 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
9490
9491         * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
9492
9493 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
9494
9495         * device/lib/printf_fast.c: only build on supported arch.
9496         * device/lib/printf_tiny.c: only build on supported arch.
9497         * device/lib/printf_fast_f.c: only build if asm float lib
9498         * device/lib/_fsget1arg.c: only build if asm float lib
9499         * device/lib/_fsget2args.c: only build if asm float lib
9500         * device/lib/_fsnormalize.c: only build if asm float lib
9501         * device/lib/_fsreturnval.c: only build if asm float lib
9502         * device/lib/_fsrshift.c: only build if asm float lib
9503         * device/lib/_fsswapargs.c: only build if asm float lib
9504         * device/include/stdio.h: don't provide print_fast,
9505           print_fast_f, print_tiny prototypes if --xstack used
9506
9507 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
9508
9509         * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
9510         * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
9511           to the SOURCES
9512
9513 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
9514
9515         * device/lib/printf_fast_f.c: same as printf_fast, but
9516           with floating point enabled
9517         * device/lib/printf_fast.c: minor tweaks
9518         * device/include/stdio.h: add printf_fast_f
9519
9520 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
9521
9522         * src/SDCCmain.c: make --float-reent default for mcs51
9523         * device/lib/_fsadd.c: added mcs51 assembly version
9524         * device/lib/_fssub.c: added mcs51 assembly version
9525         * device/lib/_fsmul.c: added mcs51 assembly version
9526         * device/lib/_fsdiv.c: added mcs51 assembly version
9527         * device/lib/_fseq.c: added mcs51 assembly version
9528         * device/lib/_fsneq.c: added mcs51 assembly version
9529         * device/lib/_fsgt.c: added mcs51 assembly version
9530         * device/lib/_fslt.c: added mcs51 assembly version
9531         * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
9532         * device/lib/Makefile.in: add _fscmp to build
9533         * device/lib/libfloat.lib: add _fscmp to build
9534
9535 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
9536
9537         * device/lib/_fs2slong.c: added mcs51 assembly version
9538         * device/lib/_fs2sint.c: added mcs51 assembly version
9539         * device/lib/_fs2schar.c: added mcs51 assembly version
9540         * device/lib/_fs2ulong.c: added mcs51 assembly version
9541         * device/lib/_fs2uint.c: added mcs51 assembly version
9542         * device/lib/_fs2uchar.c: added mcs51 assembly version
9543         * device/lib/_slong2fs.c: added mcs51 assembly version
9544         * device/lib/_sint2fs.c: added mcs51 assembly version
9545         * device/lib/_schar2fs.c: added mcs51 assembly version
9546         * device/lib/_ulong2fs.c: added mcs51 assembly version
9547         * device/lib/_uint2fs.c: added mcs51 assembly version
9548         * device/lib/_uchar2fs.c: added mcs51 assembly version
9549         * device/include/float.h: added #define to select asm vs c
9550
9551 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
9552
9553         * device/lib/printf_fast.c: improvements to float output
9554         * device/include/float.h: add defines for assembly float library
9555         * device/lib/_fsget1arg.c: receive 1 float arg
9556         * device/lib/_fsget2args.c: receive 2 float args (reentrant)
9557         * device/lib/_fsnormalize.c: normalize a float
9558         * device/lib/_fsreturnval.c: return float, various helper routines
9559         * device/lib/_fsrshift.c: right shift a float's mantissa
9560         * device/lib/_fsswapargs.c: swap 2 floats
9561         * device/lib/Makefile.in: build these 6 new files for mcs51
9562         * device/lib/libfloat.lib: add these 6 files to the library
9563
9564 2004-12-26 Borut Razem <borut.razem AT siol.net>
9565
9566         * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
9567           built by gcc 3.4.2
9568
9569 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
9570
9571         * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
9572           and fully reentrant and register bank neutral.
9573         * device/lib/printf_fast.c: added float (not enabled by default),
9574           added compact/slower integer (also not enabled by default),
9575           improved size/speed of fast integer code, other minor changes
9576         * device/include/stdio.h, device/lib/Makefile.in,
9577           device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
9578
9579 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
9580
9581         * src/pic16/pcode.c: declaring variables other than at the start of a
9582           block is not supported in C by VC6.
9583
9584 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
9585
9586         * applied a previous patch from Raphael Neider that wasn't included
9587         in the previous commits, which fixes infinite loops within jumptable
9588         improvements,
9589         * made some fixes that previous patches introduced
9590
9591 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
9592
9593         * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
9594         that fixes an issue with AOP_PCODE asmop's offset,
9595         * (pic16_popCopyReg): update instance field too,
9596         * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
9597         function of pic port,
9598         * (genCmp, genAnd, genAssign),
9599         * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
9600
9601 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
9602
9603         * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
9604         variables initial values to idata section,
9605         * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
9606         variables in some functions. This utilizes parmBytes field of iCode
9607         structure to hold the offset of the variable in stack. (might be
9608         able to use the stack field too?)
9609         * applied patch from Raphael Neider # ### , # ###
9610         * src/pic16/glue.c (pic16emitRegularMap): fix to print static
9611         variable initial values in idata section,
9612         * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
9613         for static variables with initial value
9614         * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
9615         applied fix in while loop from Raphael Neider.
9616
9617 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
9618
9619         * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
9620         * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
9621         * src/ds390/ralloc.c (serialRegAssign): spill bits
9622         * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
9623         * support/Util/SDCCerr.c,
9624         * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
9625         * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
9626         * support/regression/tests/bitwise.c: added test for bitwise complement(~)
9627
9628 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
9629
9630         * device/include/sdcc-lib.h: inserted LGPL, added includes
9631           asm/ds390/features.h and asm/mcs51/features.h
9632         * device/include/asm/default/features.h,
9633         * device/include/asm/gbz80/features.h,
9634         * device/include/asm/z80/features.h: added empty _AUTOMEM
9635           and _STATMEM
9636         * device/include/asm/ds390/features.h,
9637         * device/include/asm/mcs51/features.h: added files with defines for
9638           _AUTOMEM and _STATMEM indicating automatic and static storage class
9639         * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
9640         * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
9641         * src/SDCCicode.c (geniCodeCast),
9642         * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
9643         * src/SDCCloop.c (loopInduction): removed unused variable lr
9644         * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
9645           to convertToFcall to include char modulo (RFE 1065037), added check
9646           if left operand is unsigned and use abs of literal value
9647         * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
9648           as it doesn't work after conversion from peephole.def to peephole.rul
9649         * src/mcs51/gen.c (toBoolean): added check for size,
9650           (genModOneByte): optimized code for signed char modulo a literal
9651           power of 2 (thanks to Hubert Sack),
9652           (genRRC): removed unnecessary "clr c",
9653           (genRLC): replaced "add a,acc" with cheaper "rlc a"
9654         * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
9655           jump optimization,
9656           swapped rules 256.c and 256.d,
9657           extended 256.d by using new multiple checks (thanks Erik),
9658           added rules 256.e and 256.f,
9659           updated rule 261.a and 261.b to new generated code
9660         * support/regression/tests/muldiv.c: added test div/mod by a power of 2
9661
9662 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9663
9664         * src/SDCCloop.c (basicInduction, loopInduction): fixed several
9665           induction related bugs, including first part of bug #1074377
9666
9667 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
9668
9669         * applied patch from bug-report #1076292,
9670         * applied patches for genAnd and Goto-optimizations for Raphael
9671         Neider,
9672         * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
9673         dump a less iCode information,
9674         * src/pic16/device.h (pic16_options_t): added field debgen,
9675         * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
9676         DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
9677         * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
9678         puclic,
9679         * (various functions): added macros FENTRY and FENTRY2 to functions,
9680         to emit function prologue,
9681         * (various functions): fixed indentation,
9682         * (genNearPointerGet): fixed loading of FSR0,
9683         * (genPackBits): applied patch from Raphael Neider to fix updating
9684         of FSR0 and touching only the modified bits,
9685         * src/pic16/genarith.c (various functions): added macros FENTRY to
9686         emit function prologue in comments,
9687         * src/pic16/pcode.h: added functions debugf2, debugf3,
9688         * src/pic16/ralloc.c: partial fix for packForPush caused
9689         segmentation fault,
9690
9691 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9692
9693         * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
9694           <stsp AT users.sourceforge.net> with reversed byte order
9695         * support/regression/tests/rotate.c: added (ds390 skips some tests)
9696
9697 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9698
9699         * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
9700           bug #1074377
9701         * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
9702         * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
9703
9704 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
9705
9706         * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
9707
9708 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9709
9710         * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
9711           conditions,
9712           (setFromConditionArgs): friendly operand parser for peephole rules,
9713           (operandBaseName, operandsNotRelated): new peephole condition
9714           "operandsNotRelated" -- similar to "operandsNotSame", but takes
9715           architecture specific register naming into account, handles n-way
9716           comparisons, and supports quoted literals
9717         * src/mcs51/peeph.def: restored rule 177.d with an extra condition
9718
9719 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9720
9721         * src/mcs51/peeph.def: fixed bug #1076940
9722
9723 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
9724
9725         * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
9726
9727 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9728
9729         Adding support for replacing ljmps with sjmps in jumptables
9730         generated for switch statements. For now you need to set the
9731         environment variable SDCC_SJMP_JUMPTABLE to enable this.
9732         Now 4 algorithms for mcs51 jumptable generation are used:
9733         ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
9734         addresses loaded pc-relative for up to 112 cases and stack-pushing
9735         target addresses loaded with offset from dptr for up to 256 cases.
9736
9737         * src/SDCCpeeph.c: added peephole conditional labelJTInRange
9738         * src/mcs51/main.c: adapted constants for switch table generation
9739         * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
9740
9741 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
9742
9743         * device/lib/printf_large.c (_print_format): fixed bug 1073386
9744         * support/regression/tests/bug1057979.c: added test for bug 1073386
9745
9746 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
9747
9748         * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
9749         compilers
9750
9751 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
9752
9753         * src/pic16/device.h,
9754         * src/pic16/genarith.c,
9755         * src/pic16/glue.c,
9756         * src/pic16/main.c,
9757         * src/pic16/pcode.c: applied patches #1068154 and #1070213
9758
9759 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
9760
9761         Large cummulative patch for pic16 port.
9762         * device/lib/pic16/gstack.h: NEW, user can specify its own handler
9763         to call when a stack overflow occurs,
9764         * (malloc.h): added CVS Id tag,
9765         * (pic18f{242,252,442,452}.h): added T0CONbits structure and
9766         variable,
9767         * added libc directory. The current version of LibC contains string
9768         functions, ctype functions and macros and some functions of the
9769         stdlib set (like malloc/free/atof/atoi etc...). All functions are to
9770         be extensively tested in the future. Standard disclaimer here.
9771         Library is not automatically build yet. But one can build it by
9772         invoking 'make' inside the libc directory.
9773         * added ADC library under libio. Preliminary version yet.
9774
9775         * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
9776         * src/pic16/gen.c (aopForRemat): asmop size is filled by
9777         aopForRemat() now and not by pic16_aopOp(),
9778         * (pic16_popGetTempReg): removed warning messgae when allocating
9779         temporary registers, its a buggy feature and will be removed,
9780         * (pic16_popGet): set register instance field in AOP_CRY,
9781         * (pic16_outBitC): fixed for results in size greater than 1,
9782         * (genUminusFloat): fixed for pic16, ported code from mcs51,
9783         * (pic16_storeForReturn): optimized return of 0,
9784         * (genCmp): experimental code for new genCmp which uses PIC18's
9785         special compare&skip instructions. Initial tests fail some times
9786         with variables grater than 1 byte in size, so new code is disabled,
9787         * (genUnpackBits, genPackBits): more optimizations in reading/writing,
9788         a single bit,
9789         * (genCast): began a fix to optimize the casting of a bit to another
9790         bit, now assigning a bitfield to another bitfield will fail, sorry,
9791         * src/pic16/main.c: disabled the use of lr-support feature,
9792         * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
9793         * added some function prototypes, added function _debugf prototype,
9794         * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
9795         bits with offset (case PO_GPR_BIT),
9796         * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
9797         command line,
9798         * (isBankInstruction): modified to return 0 for no banking instruction,
9799         and 1 for banking instruction,
9800         * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
9801         caused stop processing pCodes after a inline assembly block,
9802         * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
9803         * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
9804         registers when it shouldn't,
9805         * src/pic16/ralloc.c (allocReg): add preliminary support for
9806         supporting a limited set of temporary registers,
9807
9808 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9809
9810         * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
9811           genDataPointerSet): ensure assignments always copy in MSB to LSB
9812           order,
9813           (loadRegFromAop): recognize CLRH optimization,
9814           (genFunction): optimize RECEIVE iCodes in reentrant functions
9815
9816 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9817
9818         * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
9819           --out-fmt-s19 turning into --out-fmt-elf if s19 was already
9820           selected.
9821         * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
9822         * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
9823           contiguous with data
9824
9825 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9826
9827         * device/lib/_gptrget.c (_gptrget),
9828         * device/lib/_gptrgetc.c (_gptrgetc),
9829         * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
9830           instead of sjmp to ret
9831         * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
9832           by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
9833
9834 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
9835
9836         * .version: bumped version to 2.4.7
9837         * device/lib/_gptrget.c (_gptrget): is now _naked
9838         * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
9839         * device/lib/_gptrput.c (_gptrput): is now _naked
9840         * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
9841           (createFunction): fixed xstack
9842         * src/SDCCglue.c (emitMaps): set allocation required for bit area
9843         * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
9844           or bit either,
9845           (geniCodeCritical): store original interrupt state in an iTemp bit
9846           var unless stack-auto
9847         * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
9848         * src/SDCCmain.c (setIncludePath): added include/target to search path
9849         * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
9850         * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
9851           prototype,
9852           (processFuncArgs): put bit vars in bit area
9853         * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
9854           unsaveRBank): fixed xstack,
9855           (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
9856           (genFunction, genEndFunction): fixed xstack,
9857           (genAssign): optimization don't walk backwards through mem
9858         * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
9859         * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
9860         * support/regression/Makefile: also make library (for stack-auto) when
9861           making "all" and added "test-mcs51-xstack-auto"
9862         * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
9863         * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
9864         * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
9865         * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
9866         * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
9867           make-library by MAKE_LIBRARY
9868         * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
9869           regression tests for xstack
9870         * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
9871         * support/regression/tests/critical.c: test for critical on mcs51
9872
9873 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9874
9875         * support/regression/ports/ucz80/spec.mk: use include and lib files from
9876           built version of sdcc instead of installed version
9877
9878 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
9879
9880         * src/mcs51/gen.c (toBoolean): fixed bug 1065458
9881         * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
9882           vprintf.c now
9883         * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
9884         * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
9885           WARNING: remove device/lib/build/z80/printf.o by hand when
9886           updating from previous build!
9887         * device/lib/z80/printf.c: updated comment
9888         * support/regression/tests/bug1057979.c: test all ports now
9889         * support/regression/tests/bug1065458.c: file added
9890
9891 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9892
9893         * src/z80/gen.c (genFunction, genEndFunction): avoided generating
9894           *_start and *_end symbols for static functions
9895
9896 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
9897
9898         * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
9899           and search crt0.o in all library paths,
9900           (setIncludePath): proper handling of --nostdinc,
9901           (setLibPath): proper handling of --nostdlib
9902         * support/regression/Makefile,
9903         * support/regression/ports/ds390/spec.mk,
9904         * support/regression/ports/gbz80/spec.mk,
9905         * support/regression/ports/hc08/spec.mk,
9906         * support/regression/ports/mcs51/spec.mk,
9907         * support/regression/ports/mcs51-large/spec.mk,
9908         * support/regression/ports/mcs51-stack-auto/spec.mk,
9909         * support/regression/ports/z80/spec.mk: use include and lib files from
9910           built version of sdcc instead of installed version
9911         * doc/sdccman.lyx: fixed typo in --nostdinc
9912
9913 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
9914
9915         * src/pic/pcode.c,
9916         * src/pic/device.c,
9917         * src/pic/ralloc.c,
9918         * src/pic/gen.c : added support to generate code for struct bit fields.
9919
9920 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
9921
9922         * as/xa51/xa_version.h,
9923         * device/include/errno.h,
9924         * device/include/regc515c.h,
9925         * device/lib/_itoa.c,
9926         * device/lib/_ltoa.c,
9927         * device/lib/ser_ir_cts_rts.c,
9928         * sim/ucsim/xa.src/glob.cc,
9929         * sim/ucsim/xa.src/inst_gen.cc,
9930         * sim/ucsim/xa.src/xa_bit.cc,
9931         * sim/ucsim/xa.src/xa_sfr.cc,
9932         * sim/ucsim/z80.src/inst_dd.cc,
9933         * sim/ucsim/z80.src/inst_fdcb.cc,
9934         * support/scripts/keil2sdcc.pl,
9935         * src/pic16/pic16.dsp,
9936         * src/pic16/pic16a.dsp: corrected cvs line endings
9937         * device/lib/printf_large.c: fixed bug 1057979
9938         * src/pic16/gen.c: fixed non-C standard code
9939         * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
9940         * src/SDCCglobl.h: changed pack_iram to no_pack_iram
9941         * support/regression/ports/mcs51/support.c: reload T1 asap
9942         * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
9943           pdata use and clear idata startup behaviour
9944         * support/regression/tests/bug1057979.c: added
9945
9946 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
9947
9948         * device/examples/ds390/ow390/ad26.h,
9949         * device/examples/ds390/ow390/cnt1d.h,
9950         * device/examples/ds390/ow390/crcutil.c,
9951         * device/examples/ds390/ow390/ownet.h,
9952         * device/examples/ds390/ow390/owsesu.c,
9953         * device/examples/ds390/ow390/swt12.h,
9954         * device/examples/ds390/ow390/swtoper.c,
9955         * device/examples/ds390/ow390/temp10.h,
9956         * device/examples/ds390/ow390/thermodl.c,
9957         * device/examples/ds390/tinitalk/tinitalk.dsp,
9958         * device/examples/ds390/tinitalk/tinitalk.dsw,
9959         * device/examples/mcs51/clock/hw.h,
9960         * device/examples/mcs51/simple2/go.bat,
9961         * device/examples/serialcomm/windows/serial.h,
9962         * device/examples/xa51/dummy.c,
9963         * device/examples/xa51/hello.c,
9964         * device/include/80c51xa.h,
9965         * device/include/at89x051.h: corrected cvs line endings
9966
9967 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
9968
9969         * src/pic16/main.c (options): added command line --gstack, to trace
9970         stack over/under flows,
9971         * added pragma 'wparam' to allow passing first byte of function
9972         parameters via WREG, syntax is #pragma wparam my_function[, func2...]
9973         * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
9974         call to __gstack_test function and sets up the symbol as extern,
9975         * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
9976         * popaop): added call to pic16_testStackOverflow,
9977         * (wParamCmp, inWparamList): NEW, test existence of a symbol in
9978         wparamList list,
9979         * (genCall, genPcall): now all parameters are passed via stack
9980         except in functions that are pass to wparam pragma in which WREG is
9981         used too,
9982         * (genPcall): REENTRANT flag is checked to see if variable prototype
9983         contains reentrant keyword, don't call a non-reentrant function, via
9984         a reentrant function pointer or vice versa, functions are never
9985         passed via WREG,
9986         * (genJumpTab): applied patch from bug #1057478 by R.Neider and
9987         D.Winkler,
9988         * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
9989         SIGSEGV when accessing a NULL register stucture,
9990         * (pic16_printGPointerType): modified to handle UPPER modifier for
9991         function initializers, changed prototype of function to simpler one,
9992         * (pic16_printIvalFuncPtr): check to see if function is already
9993         added in externs list,
9994         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
9995         optimized a move from W to SFR with a move to the same register
9996         later after a CALL,
9997         * device/lib/pic16/debug: NEW directory, contains debug features
9998         which are enabled when linking with libdebug.lib, currently command
9999         line option --gstack enables stack pointer tracing for over/under
10000         flow, corresponding sources are in debug/gstack
10001
10002 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
10003
10004         * doc/sdccman.lyx: updated SDCC version,
10005         * (PIC16 port): update list of command line options,
10006         * src/pic16/device.h (structure pic16_options_t): added field gstack
10007         to enable stack overflow tracing on push/pops,
10008         * src/pic16/device.c (statistics structure): added statistics
10009         structure,
10010         * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
10011         pic16_dump_int_registers): increase statistics counters for each
10012         * variable which is encountered
10013         * (pic16_dump_usection): emit each .udata variable to its own udata
10014         section,
10015         * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
10016         when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
10017         parameters via stack, otherwise use old scheme,
10018         * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
10019         assembler output file,
10020         * src/pic16/main.c: added command line options --gstack to enable
10021         push/pop tracing for stack overflow,
10022         * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
10023         instructions): added size of each instruction,
10024         * (pic16_countInstruction): estimate size of instructions in
10025         the_pFile list, inline assembly blocks are not counted,
10026         * (pic16_FixRegisterBanking): trace previous register usage, when
10027         banksel optimizations is greater than 0, don't emit a redudant
10028         banksel directive,
10029
10030 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
10031
10032         * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
10033         * src/pic16/ralloc.c : applied same fix for pic16.
10034         * src/pic/gen.c : tidied it up a little.
10035
10036 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10037
10038         * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
10039         thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
10040
10041 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10042
10043         * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
10044
10045 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10046
10047         * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
10048         non-reentrant function __modsint in the interrupt function (thus
10049         corrupting math operations during serial I/O)
10050         * device/lib/ser_ir.c: as above, changed buffersize
10051         * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
10052         256.c,d for zeroing
10053         * doc/Makefile: added option -t for rsync
10054
10055 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10056
10057         * src/SDCCast.h (struct ast),
10058         * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
10059
10060 2004-10-20 Borut Razem <borut.razem AT siol.net>
10061
10062         * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
10063         package
10064
10065 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
10066
10067         * device/lib/pic16/libsdcc/Makefile: added lregs directory in
10068         makefile targets,
10069         * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
10070         support functions to replace long sequences of MOVFF's from access
10071         bank registers to stack and vice versa,
10072         * src/pic16/device.h: added new field opt_flags, where optimization
10073         flags can be set to enable certain features,
10074         * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
10075         * pBlock, (genFunction, genEndFunction): surroung loop for
10076         saving/loading used registers in stack with PC_INFO pCodes,
10077         INF_LREGS. Code in between can then be optimized by pCode optimizer
10078         to support function calls,
10079         * (genDataPointerSet): fixed bug which loaded float fields in
10080         structures with corrupt data,
10081         * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
10082         in a standard way debug info on stderr. Feature used for developing
10083         and debugging only,
10084         * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
10085         obsolete chunks of code,
10086         * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
10087         * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
10088         * pic16/src/pcode.c (pic16_newpCodeInfo,
10089         * (pic16_newpCodeOpLocalRegs),
10090         * (pic16_convertLocalRegs2Support): NEW, to support new optimization
10091         feature,
10092         * (pic16_pCodeConstString): printing of the initial value of a
10093         symbol as a comment is inhibited since parsing was already done by
10094         copyStr and output is corrupt,
10095         * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
10096
10097 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10098
10099         * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
10100
10101 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
10102
10103         * as/mcs51/lkarea.c: removed old K&R style,
10104           (lnksect): changed check on boundary error,
10105           (lnksect2): changed check on boundary error,
10106           (lnksect2): extend XSTK to end of page if size = 1
10107         * as/mcs51/lkmain.c: removed old K&R style,
10108           (Areas51): create l_IRAM symbol
10109         * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
10110         * device/lib/Makefile.in: renamed model-mcs51-reentrant to
10111           model-mcs51-stack-auto, added model-mcs51-xstack-auto
10112         * device/lib/_mullong.c: added version to be compiled with xstack
10113         * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
10114         * device/lib/mcs51/crtxclear.asm: clear pdata as well
10115         * device/lib/mcs51/crtxstack.asm: fixed comment
10116         * src/SDCCglue.c: maxInterrupts defaults to 0,
10117           (emitMaps): added pdata,
10118           (createInterruptVect): (re)moved default,
10119           (glue): added pdata,
10120           (glue): moved __start__xstack to XSTK with default size 1
10121         * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
10122           and options.float_rent when options.stackAuto is set,
10123           (linkEdit): only write XDATA_NAME if provided on command line
10124         * src/SDCCmem.h,
10125         * src/SDCCmem.c: added pdata
10126         * src/port.h: added pdata_name to PORT
10127         * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
10128           (saveRegisters, unsaveRegisters): removed usage of B,
10129           (genMinus): fixed accumulator clash,
10130           (genJumpTab): added comment, this needs another look
10131         * src/mcs51/gen.c: added check for "B in use" paranoia,
10132           added pushB() and popB()
10133         * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
10134           chance
10135         * src/avr/main.c,
10136         * src/ds390/main.c,
10137         * src/hc08/main.c,
10138         * src/mcs51/main.c,
10139         * src/pic/main.c,
10140         * src/pic16/main.c,
10141         * src/xa51/main.c,
10142         * src/z80/main.c: (reset_regparms) made void parameter explicit and
10143           added PSEG (PAG,XDATA) or NULL to port specifier
10144         * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
10145         * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
10146           (_mcs51_genInitStartup): removed __start__xstack equ,
10147           (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
10148         * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
10149         * src/z80/gen.c (_rleAppend): fixed warnings
10150         * support/regression/tests/zeropad.c: added pdata test
10151         * .version: bumped to 2.4.6
10152
10153 2004-10-17 Borut Razem <borut.razem AT siol.net>
10154
10155         * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
10156         as a part of nightly build
10157
10158 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
10159
10160         * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
10161         WREG holds the first byte function parameters,
10162         * (aopForSym): take special case for symbols which are in FARSPACE
10163         but in CODESPACE too,
10164         * (assignResultValue): modified to take into account _G.useWreg,
10165         * (genCall): don't use wreg for parameter passing when function is
10166         declared as reentrant, too, added optimization INCF to stack
10167         pointer when stack parameter count is 1,
10168         * (genFunction, genEndFunction): refurnished and fixed to not using
10169         wreg for passing parameters when function has varargs or is
10170         reentrant, fixed bug with symbol name compare for generating
10171         functions in absolute address,
10172         * (pic16_storeForReturn): refurnished,
10173         * (genCmp): began writing a new version of the function, not ready
10174         yet, therefore it is disabled,
10175         * (genAssign): do not read code memory when assigning a function to
10176         a pointer function,
10177         * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
10178         array of characters, not pointer,
10179         * (pic16initialComments): in debug mode emit an .ident directive for
10180         the assembler,
10181         * (_process_pragma): emit a new warning type (internal to pic16)
10182         when setting stack to default length, emit a similar warning when
10183         placing a function at absolute address and address is not word aligned
10184         * (_pic16_parseOptions): added 'return TRUE' statement,
10185         * (_pic16_linkEdit): if compiling a source, then add the source's
10186         file object, first in the list of objects to link,
10187
10188 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
10189
10190         * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
10191         * src/pic/main.c : removed VC warning.
10192         * src/pic/gen.c : changed comment.
10193
10194 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
10195
10196         * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
10197         reference to a deprecated symbol _GPTRREG was causing failure to
10198         link. Thanks G. M. Gallant for the info.
10199
10200 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
10201
10202         * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
10203         comments for Bugs item #954788.
10204
10205 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
10206
10207         * src/pic16/device.c (pic16_dump_gsection,
10208         * pic16_groupRegistersInSection): handle symbols declared to be in
10209         access bank differently,
10210         * src/pic16/gen.c (struct _G): added field resDirect,
10211         * (aopForSym): if symbol on stack and iCode is '=' and result exists,
10212         send values read from stack directly to result and don't allocate
10213         temporary values,
10214         * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
10215         same registers,
10216         * (pic16_sameRegsOfs): NEW,
10217         * (freeAsmop): if _G.resDirect is set then do not mark registers as
10218         free because they were not allocated from temporary pool,
10219         * pic16_popRegFromString): workaround to fix a problem with
10220         allocating variables twice or never,
10221         * (genGenPointerGet): using PRODL instead of FSR0H,
10222         * (genGenPointerSet): using POSTDEC1 (that is a stack location)
10223         instead of FSR0H,
10224         * (genAssign): take advantage of the _G.resDirect flag,
10225         * (genCast): around line 11844, use mov2f instead of directly
10226         MOVFF'ing between operands to account for literal values,
10227         * src/pic16/genutils.c: some new debug functions for gpsim have been
10228         added,
10229         * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
10230         float with integer part only,
10231         * src/pic16/main.c (_process_pragma): handle pragma udata access to
10232         place variables in access bank
10233         * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
10234         updated sources to reflect recent changes in gen.c
10235
10236 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
10237
10238         * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
10239         sources that searched for headers in installation path, now the
10240         device/include/pic16 is used,
10241         * src/pic16/glue.c (pic16glue),
10242         * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
10243         .line directives if not in debug mode, this suppresses assembler's
10244         warnings for ignored directives
10245
10246 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
10247
10248         * src/port.h: made reset_regparms prototype void parameter explicit.
10249         * src/SDCCsymt.c (processFuncArgs): removed argument "func".
10250         * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
10251         * doc/sdccman.lyx: documented warning disabling and how to use
10252           printf_large to make it print floats.
10253         * device/include/stdbool.h: NEW
10254         * device/lib/_atof.c,
10255         * device/lib/_divuint.c,
10256         * device/lib/_divulong.c,
10257         * device/lib/expf.c,
10258         * device/lib/printf_large.c,
10259         * device/lib/sincosf.c,
10260         * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
10261         * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
10262           a completely reentrant lib.
10263
10264 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
10265
10266         * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
10267         * device/include/pic16/stdio.h: fixed bug with colon
10268
10269 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
10270
10271         * device/include/pic16/stdio.h,
10272         * device/include/pic16/stdlib.h,
10273         * device/include/pic16/math.h: NEW
10274         * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
10275         declared as _naked to reduce overhead
10276         * device/lib/Makefile.in (target port-specific-objects-pic16):
10277         changed * to *.* so to ignore the CVS directory,
10278         * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
10279         stacked variables back in stack,
10280         * (genEndFunction): fixed bug reported by G.M. Gallant with stack
10281         corruption
10282
10283 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
10284
10285         * .version: bumped version number to 2.4.5
10286         * support/Util/SDCCerr.h: added warning W_POSSBUG2.
10287         * support/Util/SDCCerr.c (messages structure): added entry for
10288         W_POSSBUG2
10289
10290         Large cumulative patch for pic16 port and libraries.
10291         * device/include/pic16/sdcc-lib.h,
10292         * device/include/pic16/stdarg.h,
10293         * device/include/asm/pic16/features.h,
10294         * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
10295         * device/include/pic16/float.h: changes reentrant keyword with
10296         _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
10297         * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
10298         updated target build-libraries to include objects from gptr,
10299         * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
10300         _IL_REENTRANT to all function headings, included sdcc-lib.h header,
10301         * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
10302         all function headings,
10303         * src/SDCCmain.c: added global parameter userIncDirsSet,
10304         * (parseCmdLine): when option -I is encountered add directory to
10305         userIncDirsSet too,
10306         * src/version.awk: added space between control and long,
10307         * src/pic16/NOTES: added some notes for the port,
10308         * src/pic16/gen.c: added prototype for mov2fp function,
10309         * (fReturnpic16[]): properly named return value registers,
10310         * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
10311         * (aopForSym): added code to handle symbols with onStack flag set,
10312         symbols onStack are allocated PTRSIZE bytes,
10313         * (aopFreeAsmop): handles special case where asmops are stack objects,
10314         * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
10315         * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
10316         added argument lock to trace flaws in allocating temporary registers
10317         when developing port,
10318         * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
10319         * (pic16_popRegFromString): reenabled allocating a direct register
10320         from string,
10321         * (assignResultValue): various beautifications,
10322         * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
10323         referenced function argument,
10324         * (genIpush): reenabled to allow stacked arguments, handles only
10325         ic->parmPush iCodes,
10326         * (genCall, genPcall): major changes to allow for variable argument
10327         functions, fixed a bug with falsely restoring stack pointer after
10328         returning from call,
10329         * (genFunction): pending code for critical function,
10330         * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
10331         * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
10332         * (genNearPointerGet): fixed bug with indirect reading, was always
10333         reading from INDF0
10334         * (genGenPointerGet, genGenPointerSet): rewrote to support generic
10335         pointers,
10336         * (genAddrOf): rewrote code to take address of a stacked function parameter
10337         * (genCast): fixed casting to generic pointer type,
10338         * src/pic16/gen.h: added AOP_STA,
10339         * (struct asmop): added field stk,
10340         * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
10341         * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
10342         * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
10343         * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
10344         * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
10345         * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
10346         generic pointers,
10347         * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
10348         and library paths,
10349         * (pic16_port structure): generic pointer size is set to 3,
10350         * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
10351         * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
10352         compiler warning,
10353         * src/pic16/ralloc.c (allocReg): prevent allocating register when
10354         operand is an iTemp,
10355
10356 2004-09-24 Martin Helmling <mh AT octo-soft.de>
10357
10358         * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
10359         * debugger/mcs51/simi.c: addapt new syntax of s51
10360
10361 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
10362
10363         * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
10364         * src/pic16/pcode.c: commented out some calls to free() in order to
10365         fix bug #989576,
10366
10367 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10368
10369         * src/SDCCicode.h,
10370         * src/SDCCicode.c (isiCodeInFunctionCall),
10371         * src/avr/ralloc.c (selectSpil),
10372         * src/pic/ralloc.c (selectSpil),
10373         * src/pic16/ralloc.c (selectSpil),
10374         * src/ds390/ralloc.c (selectSpil),
10375         * src/hc08/ralloc.c (selectSpil),
10376         * src/xa51/ralloc.c (selectSpil),
10377         * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
10378         stack in the middle of a function call sequence (fixes bug #1020268)
10379         * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
10380         costs associated with the minimum switch case.
10381
10382 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10383
10384         * src/SDCC.lex: fixed bug #1030549
10385
10386 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10387
10388         * src/SDCCcse.h (struct cseDef),
10389         * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
10390         over a function call if the CSE is derived from a symbol whose
10391         address has been taken (fixes bug #1029883)
10392         * support/regression/tests/bug-1029883: a new regression test for
10393         this bug
10394
10395 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10396
10397         * src/hc08/gen.c (emitinline): fixed bug #1029778
10398         * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
10399         to a cast object is no longer a syntax error ("fixes" bug #1030006,
10400         and starts toward RFE #905167)
10401
10402 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
10403
10404         * src/pic16/gen.c (mov2f): New function to move an operand to
10405         another without considering if it is a literal or a register,
10406         * (pic16_sameRegs): don't check if they are both AOP_REG,
10407         * (AccRsh): removed andmask=0 lines,
10408         * (genLeftShift): duplicated to be improved in future versions,
10409         * src/pic16/main.c (_process_pragma): emit stack default size in hex,
10410         * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
10411         in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
10412         * (pic16initMnemonics): added initialization for POC_INFSNZW,
10413         * (insertBankSwitch): fixed inserting banksel directives algorithm
10414         for instructions that follow a skip instruction, this fixes a report
10415         for broken subtraction code generation,
10416         * src/pic16/ralloc.c (deassignLRs): do not free register if current
10417         iCode is a left op, just in case result and right share the same
10418         registers
10419
10420 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10421
10422         * src/hc08/main.c,
10423         * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
10424         preservation of HX
10425         * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
10426         * src/mcs51/ralloc.c (packRegisters): removed the patch applied
10427         on 2004-09-12; it was buggy
10428
10429 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
10430
10431         * src/SDCCsymt.h: removed RESULT_CHECK
10432         * src/SDCCast.c,
10433         * src/SDCCglue.c,
10434         * src/SDCCval.c,
10435         * src/pic/glue.c,
10436         * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
10437
10438 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
10439
10440         * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
10441         * src/pic16/device.c (pic16_assignConfigWordValues): wrong
10442         configuration values no more rejected by compiler, they are assigned
10443         to configuration registers with a warning message instead,
10444         * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
10445         the for-loop so last conf register is emitted too,
10446         * (_pic16_initPaths): link library libsdcc.lib by default,
10447         * (_hasNativeMulFor): modified test for multiplication according to
10448         Raphael Neider's remarks. Integer multiplication is also done with
10449         support functions,
10450         * device/include/pic16/pic18fregs.h: corrected type error in while
10451         testing and including 18f6720 header file
10452
10453 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
10454
10455         * src/pic16/device.h (pic16_options): removed field use_crt,
10456         * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
10457         until an optimization to handle single bits is added,
10458         * (pic16_loadFSR0): moved before genUnpackBits,
10459         * (genAnd): some white lines removed,
10460         * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
10461         leave_reset flags in pic16_options when using crt modules,
10462
10463 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
10464
10465         * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
10466           for bugs 898889 & 979599. Also used some safer print instructions.
10467
10468 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
10469
10470         * src/pic16/device.h (pic16_options_t): added field use_crt,
10471         crt_name, no_crt,
10472         * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
10473         catch a probable future bug,
10474         * src/pic16/gen.c: aopIdx function commented out,
10475         * (genAssign): commented out old code which used aopIdx,
10476         * src/pic16/glue.c (pic16glue): removed some legacy fragments of
10477         code, added if conditionals to take into account the --use-crt
10478         command line options,
10479         * src/pic16/main.c (pic16_optionsTable): added new command line
10480         options, --use-crt= and --no-crt,
10481         * (_pic16_linkEdit): now the proper crt object is added in the
10482         linker command line except than when --no-crt is specified,
10483         * src/pic16/pcode.c,
10484         * src/pic16/pcode.h: added some structures and functions for a new
10485         optimization scheme to compansate for instruction overhead between
10486         same iCodes, this scheme is currently under development and is not
10487         working in any way,
10488         * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
10489         to && operator,
10490         * device/lib/pic16/startup/crt0i.c,
10491         * device/lib/pic16/startup/crt0iz.c: added global char variable
10492         __uflags to force the generation of an idata section
10493
10494 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
10495
10496         * doc/Makefile,
10497         * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
10498         * doc/sdccman.lyx: updated sdcc version to 2.4.4
10499
10500 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10501
10502         * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
10503         Frieder) and clarified the default code optimization mode
10504
10505 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10506
10507         * src/SDCC.lex (doPragma, process_pragma),
10508         * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
10509         "opt_code_size", and "opt_code_balanced"
10510         * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
10511         regrouped options by category, added support for category headers
10512         * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
10513         and "--opt-code-size"
10514         * doc/sdccman.lyx: documented these new options and pragmas
10515         * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
10516         preference into account
10517
10518 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
10519
10520         * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
10521           geniCodePreDec): Fixed bug 904237 by generating a warning
10522         * src/SDCCerr.h,
10523         * src/SDCCerr.c: added warning W_SIZEOF_VOID
10524
10525 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
10526
10527         * src/pic/device.c : When no max ram set validate full memory range.
10528         * src/pic/pcode.c,
10529         * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
10530
10531 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
10532
10533         * device/lib/_gptrget.c,
10534         * device/lib/_gptrput.c: updated comment
10535         * device/lib/calloc.c,
10536         * device/lib/free.c,
10537         * device/lib/malloc.c,
10538         * device/lib/realloc.c: added LGPL, made them reentrant-safe
10539         * src/SDCCcse.c (cseBBlock),
10540         * src/SDCCicode.c (printOperand, geniCodeArray),
10541         * src/SDCCicode.h (struct operand): fixed bug 868103
10542         * support/regression/tests/bug-868103.c: added
10543         * src/SDCCast.c (searchLitOp),
10544         * src/SDCCcse.h (struct cseDef),
10545         * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
10546         * src/SDCCicode.h (struct operand),
10547         * src/SDCCsymt.h (struct sym_link),
10548         * src/avr/gen.c (hasInc),
10549         * src/ds390/gen.c (hasInc),
10550         * src/hc08/gen.c (genPlusIncr, hasInc),
10551         * src/mcs51/gen.c (hasInc),
10552         * src/pic16/glue.c (pic16_printIvalChar),
10553         * src/pic16/ralloc.c (regWithIdx),
10554         * src/xa51/gen.c (hasInc) : removed warnings
10555         * src/SDCCast.c (createBlock): added comment ???
10556         * src/hc08/ralloc.c: updated comments
10557
10558 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10559
10560         * doc/sdccman.lyx: updated section on switch statements, added
10561         section about semaphore locking
10562         * doc/Makefile: added option -info for latex2html
10563         * device/lib/_gptrget.c,
10564         * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
10565
10566 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
10567
10568         * src/pic/device.h,
10569         * src/pic/device.c,
10570         * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
10571          maxram is less than 0x100.
10572
10573 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
10574
10575         * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
10576
10577 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10578
10579         * src/port.h,
10580         * src/mcs51/main.c,
10581         * src/ds390/main.c,
10582         * src/z80/main.c,
10583         * src/hc08/main.c,
10584         * src/pic/main.c,
10585         * src/pic16/main.c,
10586         * src/avr/main.c,
10587         * src/xa51/main.c
10588         * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
10589         a jump table is the best form for a switch statement, including
10590         automatic insertion of missing cases to make the case range
10591         continuous. Developed in collaboration with Frieder Ferlemann.
10592
10593 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10594
10595         * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
10596         accumulator result if it needs sign extension
10597
10598 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
10599
10600         * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
10601
10602 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
10603
10604         * device/lib/gbz80/printf.c,
10605         * device/lib/z80/printf.c: removed define for NULL
10606
10607 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
10608
10609         * as/xa51/xa_link.c,
10610         * device/examples/ds390/ow390/ad26.c,
10611         * device/examples/ds390/ow390/cnt1d.c,
10612         * device/examples/ds390/ow390/counter.c,
10613         * device/examples/ds390/ow390/ds2480.h,
10614         * device/examples/ds390/ow390/ds2480ut.c,
10615         * device/examples/ds390/ow390/findtype.c,
10616         * device/examples/ds390/ow390/gethumd.c,
10617         * device/examples/ds390/ow390/owllu.c,
10618         * device/examples/ds390/ow390/ownetu.c,
10619         * device/examples/ds390/ow390/swt12.c,
10620         * device/examples/ds390/ow390/swtloop.c,
10621         * device/examples/ds390/ow390/temp.c,
10622         * device/examples/ds390/ow390/temp10.c,
10623         * device/examples/ds390/ow390/thermo21.c,
10624         * device/examples/ds390/ow390/tinilnk.c,
10625         * device/examples/ds390/ow390/tstfind.c,
10626         * device/examples/serialcomm/windows/serial.cpp,
10627         * device/examples/serialcomm/windows/test_serialcomm.cpp,
10628         * device/include/reg51.h: fixed line endings for cvs
10629
10630 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10631
10632         * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
10633         packRegsForAccUse, packRegisters): new accumulator register
10634         packing algorithm
10635         * support/regression/ports/hc08/support.c (_putchar): suppress
10636         warning of unused variable
10637         * src/SDCCicode.c: added SWAP entry to codeTable
10638
10639 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
10640
10641         * device/lib/sprintf.c: forgot to add this file before previous commit
10642
10643 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
10644
10645         * src/pic16/gen.c (genPackBits): added operand right in function
10646         parameters, load result directly if p_type is POINTER (that is
10647         called by genNearPointerSet)
10648         * (genUnPackBits): added operand left in function parameters,
10649         * (genNearPointerGet, genNearPointerSet): prevent the loading of
10650         FSR0 if accessing bitfields,
10651
10652 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
10653
10654         * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
10655           _print_format; updated printf, sprintf, vsprintf
10656         * device/include/asm/default/features.h: corrected comment/define
10657         * device/lib/Makefile.in: added sprintf.c
10658         * device/lib/libsdcc.lib: added sprintf module
10659         * device/lib/printf_large.c,
10660         * device/lib/vprintf.c,
10661         * device/lib/sprintf.c: totally refactored printf_large and vprintf
10662           into these 3 files
10663         * support/regression/Makefile: changed ALL_PORTS into a usefull default
10664         * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
10665         * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
10666           hc08 test
10667         * support/regression/tests/zeropad.c: define idata as data for hc08
10668
10669 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10670
10671         * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
10672         * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
10673         labels are referenced at least once (even if a reference is not found)
10674         * src/hc08/gen.c (emitcode): set isComment flag for comments
10675         * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
10676         loads), rules 6a..6b (optimize jumps to return)
10677
10678 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10679
10680         * device/lib/acosf.c (acosf),
10681         * device/lib/asinf.c (asinf),
10682         * device/lib/atanf.c (atanf),
10683         * device/lib/ceilf.c (ceilf),
10684         * device/lib/cosf.c (cosf),
10685         * device/lib/coshf.c (coshf),
10686         * device/lib/cotf.c (cotf),
10687         * device/lib/fabsf.c (fabsf),
10688         * device/lib/floorf.c (floorf),
10689         * device/lib/log10f.c (log10f),
10690         * device/lib/logf.c (logf),
10691         * device/lib/sinf.c (sinf),
10692         * device/lib/sinhf.c (sinhf),
10693         * device/lib/sqrtf.c (sqrtf),
10694         * device/lib/tanf.c (tanf),
10695         * device/lib/tanhf.c (tanhf),
10696         * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
10697         replaced all instances of "reentrant" in the library functions
10698         defined in math.h with this macro.
10699         * support/regression/tests/float_trans.c: reenabled test for hc08
10700
10701 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
10702
10703         * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
10704         erroneously deleted
10705
10706 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10707
10708         * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
10709         * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
10710         multi-byte volatile operands are used
10711         * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
10712         * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
10713         initialization to area GSINIT0 so that it would always precede
10714         any static initializers in GSINIT
10715         * support/regression/tests/zeropad.c: fixed idata define for hc08
10716         * support/regression/tests/bug-927659.c,
10717         * support/regression/tests/float_trans.c: disabled tests for hc08
10718         pending missing library routines
10719         * .version: increased version number to 2.4.4 - hc08 port now passes
10720         regression tests
10721
10722
10723 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
10724
10725         * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
10726         * Makefile.common.in,
10727         * as/Makefile,
10728         * as/hc08/Makefile.in,
10729         * as/mcs51/Makefile.in,
10730         * as/z80/Makefile.in,
10731         * debugger/mcs51/Makefile.in,
10732         * device/include/Makefile.in,
10733         * device/lib/Makefile.in,
10734         * doc/Makefile,
10735         * link/Makefile,
10736         * link/z80/Makefile.in,
10737         * packihx/Makefile.in,
10738         * sim/ucsim/main_in.mk,
10739         * sim/ucsim/avr.src/Makefile.in,
10740         * sim/ucsim/doc/Makefile.in,
10741         * sim/ucsim/gui.src/serio.src/Makefile.in,
10742         * sim/ucsim/hc08.src/Makefile.in,
10743         * sim/ucsim/s51.src/Makefile.in,
10744         * sim/ucsim/xa.src/Makefile.in,
10745         * sim/ucsim/z80.src/Makefile.in,
10746         * src/Makefile.in,
10747         * support/cpp2/Makefile.in,
10748         * support/librarian/Makefile,
10749         * support/makebin/Makefile: added DESTDIR to the install path proposed
10750         by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
10751         * doc/sdccman.lyx: added DESTDIR documentation
10752
10753 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
10754
10755         * src/pic16/gen.c (genFunction, genEndFunction): fixed return
10756         instruction for interrupt handlers, use fast returns when returning
10757         from high priority interrupts
10758
10759 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10760
10761         * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
10762         code generation
10763         * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
10764         * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
10765         bugs, ported much of Bernhard's code from mcs51
10766         * src/mcs51/gen.c (genSend),
10767         * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
10768         than one when calling a reentrant function
10769         * device/lib/_mullong.c: defined an alternate struct layout for big
10770         endian ports (hc08)
10771
10772 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10773
10774         * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
10775         test
10776
10777 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10778
10779         * src/SDCCsymt.c (processFuncArgs): make sure parameter types
10780         are sane and complete before asking the port its prefered parameter
10781         passing method (fixes bug #1017633)
10782         * device/lib/hc08/_ret.c: added "data" storage class to _ret2
10783         and _ret3
10784
10785 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10786
10787         * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
10788         problem in bitfields >= 8 bits.
10789
10790 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
10791
10792         * src/SDCCsymt.c: undid changes that were not meant to be committed
10793
10794 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
10795
10796         * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
10797
10798 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
10799
10800         * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
10801           copied and wrong bit got inverted
10802
10803 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10804
10805         * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
10806         genFarPointerSet into genPointerSet; eliminated genFarPointerSet
10807         * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
10808         genFarPointerGet into genPointerGet; eliminated genFarPointerGet
10809         * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
10810         assignments to bitfields at known addresses
10811         * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
10812         reads from bitfields at known addresses
10813         * src/hc08/ralloc.c (packRegisters),
10814         * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
10815         genhc08Code): optimize pointer get values used as conditionals
10816         * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
10817         and branch
10818
10819 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10820
10821         * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
10822         genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
10823         * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
10824         as conditionals
10825
10826 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10827
10828         * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
10829
10830 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10831
10832         * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
10833         related problems
10834
10835 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
10836
10837         * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
10838
10839 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10840
10841         * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
10842         mcs51 port
10843
10844 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
10845
10846         * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
10847
10848 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10849
10850         * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
10851         cases use more compact code.
10852
10853 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
10854
10855         * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
10856
10857 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10858
10859         * src/SDCClrange.c (findPrevUse): fixed bug #1007371
10860
10861 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10862
10863         * src/SDCCsymt.h,
10864         * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
10865         parameter of changePointer() from symbol* to sym_link*
10866         * src/SDCCast.c (decorateType): call changePointer() for CAST op
10867         * src/SDCCsymt.c (compareType): void* type is castable to other
10868         pointers, but not necesarily an exact match.
10869         * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
10870         is no longer blindly treated as an exact match.
10871         * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
10872
10873 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
10874
10875         * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
10876
10877 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
10878
10879         * src/pic/gen.c,
10880         * src/pic/pcode.c,
10881         * src/pic/ralloc.h,
10882         * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
10883
10884 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
10885
10886         * src/pic/device.c,
10887         * src/pic/device.h,
10888         * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
10889
10890 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10891
10892         * src/mcs51/gen.c (emitcode): fixed bug #992819
10893
10894 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
10895
10896         * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
10897           there's no need to make it worse
10898
10899 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10900
10901         * src/mcs51/ralloc.c (deassignLR),
10902         * src/ds390/ralloc.c (deassignLR),
10903         * src/hc08/ralloc.c (deassignLR),
10904         * src/z80/ralloc.c (deassignLR),
10905         * src/pic/ralloc.c (deassignLR),
10906         * src/pic16/ralloc.c (deassignLR),
10907         * src/avr/ralloc.c (deassignLR),
10908         * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
10909         rlivePoint): fixed another part of bug #971834
10910
10911 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10912
10913         * src/z80/main.c: enabled "critical" keyword
10914         * src/z80/mappings.i,
10915         * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
10916         functions (fixes bug #979646)
10917         * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
10918
10919 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10920
10921         * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
10922           such as c:\mydir.
10923
10924 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
10925
10926         * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
10927           doesn't disable too much optimizations
10928
10929 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
10930
10931         * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
10932
10933 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
10934
10935         * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
10936
10937 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
10938
10939         * src/pic/gen.c tidied up tabs
10940         * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
10941         * src/pic/main.c tidied up tabs
10942         * src/pic/pcode.c tidied up tabs and disabled verbose code generation
10943         * src/pic/pcoderegs.c tidied up tabs
10944         * src/pic/ralloc.c tidied up tabs
10945
10946 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
10947
10948         * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
10949         to S_FIXED for pic16 port and when symbol is not in level 0,
10950         allocate for S_REGISTER storage class and pic16 port, too,
10951         * src/pic16/device.h: prototype for checkSym,
10952         * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
10953         * (pic16_assignConfigWordValue): test the value and the mask to
10954         validate that the value is suitable for the configuration word,
10955         * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
10956         collect extern declared symbols, don't emit symbol twice, check
10957         first if symbol is in publics set first,
10958         * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
10959         * added command line '--fstack' which enables an experimental
10960         feature for stack access, too buggy to be used yet...
10961         * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
10962         * (pic16_allocDirReg): when register has storage class S_REGISTER
10963         allocate in pic16_dynAccessRegs,
10964         * device/include/pic16/pic18f????.h: modified configuration word
10965         naming convention, words started as CONFIG0H but should be CONFIG1H
10966
10967 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
10968
10969         * device/include/mcs51reg.h: fixed bug 970993
10970
10971 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
10972
10973         * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
10974         * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
10975         * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
10976         * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
10977         * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
10978         * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
10979           error/warning numbers,
10980           added function setWarningDisabled()
10981         * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
10982         * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
10983           _memcmp.c _memmove.c calloc.c realloc.c free.c
10984         * support/regression/tests/malloc.c: added tests for new functionality
10985         * support/regression/tests/zeropad.c: added tests for truncated initializers
10986           and initialized char arrays starting with '\x0'
10987         * src/mcs51/peeph.def: fixed regression, added peephole 177.f
10988
10989 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
10990
10991         * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
10992
10993 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10994
10995         * doc/sdccman.lyx: updated example in section "Absolute Addressing"
10996         * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
10997         peephole 177.e. Thanks to anonymous
10998
10999 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
11000
11001         * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
11002         function isn't used in the source but referenced as a
11003         variable initializer then declare it as extern in .asm file
11004
11005 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
11006
11007         * .version: increased version number to 2.4.3
11008
11009         Adding version extension according to ChangeLog CVS revision
11010         * src/Makefile.in (target all): added dependency 'version.h'
11011         * (rule version.h): added rule to create version.h from ChangeLog,
11012         * (rule dep): added dependency version.h,
11013         * src/version.awk: AWK script to create version.h
11014         * src/SDCCdwarf2.c (dwWriteModule),
11015         * src/SDCCglue.c (initialComments),
11016         * src/SDCCmain.c (printVersionInfo): modified to write after
11017         version string the version extension number,
11018         * src/SDCCutil.c: included "version.h"
11019         * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
11020         number,
11021         * src/SDCCutil.h: added prototype for getBuildNumber
11022
11023         * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
11024         includeDirsSet, too,
11025         * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
11026         const char [] is found in function prototype...
11027
11028         * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
11029         moving to WREG with source is already in WREG,
11030         * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
11031         * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
11032         * (aopForSym): stack'ed symbols are partially supported, added
11033         if-clause to support symbols in FARSPACE,
11034         * (sameRegs): added test for AOP_ACC to see if registers are same,
11035         * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
11036         * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
11037         * (pic16_popRegFromString): will not allocate a new register if it
11038         doesn't find one by name, bug may have introduced...
11039         * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
11040         * (genIpush): revived to use pic16 port's stack,
11041         * (genAddrOf): added incomplete case for stack'ed operand,
11042         * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
11043         * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
11044         can handle multibyte operands,
11045         * src/pic16/glue.c (pic16_printIval*): some debug info added,
11046         * (pic16initialComments): added message for MPLAB compatibility
11047         mode enabled,
11048         * src/pic16/main.h: prototype for pic16_mplab_comp,
11049         * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
11050         which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
11051         * (_pic16_linkEdit): NEW, handles link stage, transferred here
11052         because of increased complexity of procedure,
11053         * (_process_pragma): stack pragma changed to format 'stack pos len',
11054         emit symbol '_stack_end' to conform with gplink,
11055         * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
11056         to search for register,
11057         * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
11058         PO_GPR_REGISTER,
11059         * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
11060         #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
11061         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
11062         case for PO_GPR_REGISTER,
11063         * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
11064         dies, the new era is ahead !...
11065         * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
11066         pic16_dynInternalRegs,
11067         * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
11068         * (pic16_allocDirReg): minor optimizations and bug fixes,
11069         * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
11070
11071         * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
11072         load stack and frame pointer with address of 'stack_end' symbol
11073
11074 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
11075
11076         * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
11077         without source code but only variable initializers
11078
11079 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
11080
11081         * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
11082         external are not declared as extern to reduce overhead while linking
11083
11084 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
11085
11086         * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
11087
11088 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
11089
11090         * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
11091           Yee Keat for the patch
11092         * src/SDCCast.c (decorateType): fixed bug #979599
11093         * src/ds390/gen.h: removed local fReturnSizeDS390
11094         * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
11095         * src/ds390/gen.c (genAnd, genOr, genXor),
11096         * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
11097
11098 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
11099
11100         * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
11101         add relFilesSet to $3, manipulate $2 to handle linking of object
11102         files without source files in command line,
11103         * device/include/pic16 (all headers): added ID location macros,
11104         * src/pic16/device.c (struct PIC16_device Pics16[]): added field
11105         entries for ID location bytes,
11106         * (pic16_assignIdByteValue): NEW,
11107         * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
11108         added field dumpcalltree to pic16_options_t,
11109         * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
11110         is used instead of pic16_Gstack_base_addr, check if (ifx) before
11111         emitting rFalseIfx label after check_carry label,
11112         * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
11113         pic16_emitDIRegs), NEW
11114         * (pic16glue): dump .calltree file when option --calltree found,
11115         * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
11116         * (_pic16_genAssemblerPreamble): emit ID locations after
11117         configuration registers,
11118         * (pic16_linkCmd): modifications of the link command,
11119         * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
11120         * (pic16_pCodeInitRegisters): don't init stack registers,
11121         * (pic16_findPrevInstruction): fixed bug,
11122         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
11123         bug with immediate registers,
11124         * (buildCallTree): traces stack push and pop,
11125         * (pct2): dump also stack usage for each function,
11126         * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
11127         * (pic16_allocDirReg): various modifications,
11128         * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
11129         fixed to 1,
11130
11131 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
11132
11133         * src/pic16/pcode.c: removed buggy double colon
11134
11135 2004-07-01 Borut Razem <borut.razem AT siol.net>
11136
11137         * support/scripts/sdcc.nsi: added include/pic16 to setup
11138
11139 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
11140
11141         * device/lib/Makefile.in: fixed bug in target objects-pic16,
11142         * device/lib/pic16/Makefile: prefixed with dash (-) command under
11143         target 'clean',
11144         * doc/sdccman.lyx: changed version to 2.4.2 and added some port
11145         specific command line arguments. Also added sample lkr script
11146         for placing a variable at a specific memory bank.
11147         * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
11148         at a specific memory bank,
11149         * (pic16_dump_isection): fixed bug which caused string literals to
11150         be omitted when dumping idata section,
11151         * (pic16_groupRegistersInSection): added code to handle registers
11152         in specific memory banks,
11153         * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
11154         public, all references are renamed too,
11155         * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
11156         AOP_DPTR2,
11157         * (pic16_storeForReturn): added case to handle when dest is WREG,
11158         * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
11159         * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
11160         pic16_rel_udata, check to see if that register is marked as being
11161         a member of a specific memory bank,
11162         * (pic16_printIvalCharPtr): added code to add string literals either
11163         to code or the idata sections,
11164         * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
11165         also accept the 'udata' pragma,
11166         * src/pic16/main.h: new structure types sectName and sectSym
11167         * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
11168         * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
11169         * (pic16_findPrevInstruction): fixed, it returned nothing,
11170         * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
11171         instruction combinations,
11172         * (pic16_FixRegisterBanking): heavily reorganised,
11173         * (pic16_AnalyzeBanking): if generating banksel directives is
11174         disabled, then don't call FixRegisterBanking at all,
11175         * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
11176         completely removed,
11177         * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
11178
11179 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
11180
11181         * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
11182         Phuah Yee Keat <yk.phuah AT nestac.com>
11183
11184 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
11185
11186         * src/pic16/glue.c (pic16createInterruptVect): function now emits
11187         correctly the IVT even if it is relocated to some other location
11188
11189 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
11190
11191         * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
11192         * device/include/pic16/pic18f2220.h: NEW,
11193         * device/lib/pic16/libdev/pic18f2220.c: NEW,
11194         * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
11195         * src/pic16/device.c (struct Pics16): added info for 18f2220,
11196         * src/pic16/device.h (struct pic16_options): added ivt_loc and
11197         nodefaultlibs, ivt_loc is the location of the interrupt vector
11198         table, and nodefaultlibs signs that default libraries should not be
11199         linked in link stage,
11200         * src/pic16/gen.c (genFunction): relocate interrupt vector functions
11201         according to --ivt-loc argument,
11202         * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
11203         when pragma stack is found,
11204
11205 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11206
11207         * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
11208         256 (range check), 257 (do while), 258.a-f (bit banging
11209         f.e. on 3-wire SPI bus)
11210
11211 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11212
11213         * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
11214         variables used exclusively within a loop
11215
11216 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
11217
11218         * src/mcs51/gen.c (genCpl): quick fix for bug #974835
11219
11220 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11221
11222         * src/SDCClrange.c (computeClash): fixed bug #971834
11223
11224 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11225
11226         * src/mcs51/gen.c (genCmp): fixed bug #975903
11227         * src/hc08/gen.c (operandsEqu),
11228         * src/ds390/gen.c (operandsEqu),
11229         * src/z80/gen.c (operandsEqu),
11230         * src/pic/gen.c (operandsEqu),
11231         * src/pic16/gen.c (operandsEqu),
11232         * src/mcs51/gen.c (operandsEqu): fixed bug #976283
11233         * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
11234
11235 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11236
11237         * src/SDCCcse.c (cseBBlock): fixed bug #966963
11238
11239 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
11240
11241         * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
11242         default case in switch statement,
11243         * glue.c (pic16_initPointer): expr is initialised via decoarteType
11244         to eliminate problem with initialisation of pointers, but problem
11245         still exists,
11246         * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
11247         * (emitStaticSegment): removed various lines emitting debug info,
11248         * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
11249         added processor registers for utilizing EEPROM,
11250         * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
11251         configurable and set 8
11252
11253 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
11254
11255         * .version: increased version number to 2.4.2,
11256
11257         Cumulative patch for pic16 port
11258         * src/pic16/device.c: changed scheme to dump initial values for
11259         variables in idata segment, all print_idata* functions were removed,
11260         now the pic16_printIval* will be called,
11261         * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
11262         * _pic16_printPointerType, pic16_printPointerType,
11263         * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
11264         * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
11265         NEW, similar to the respective functions in SDCCglue.c,
11266         * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
11267         way, emitting hex bytes,
11268         * (pic16_emitDS): NEW, emits a string for pointer initialisation,
11269
11270 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11271
11272         * src/avr/ralloc.c (serialRegAssign),
11273         * src/xa51/ralloc.c (serialRegAssign),
11274         * src/pic/ralloc.c (serialRegAssign),
11275         * src/pic16/ralloc.c (serialRegAssign),
11276         * src/hc08/ralloc.c (serialRegAssign),
11277         * src/z80/ralloc.c (serialRegAssign),
11278         * src/ds390/ralloc.c (serialRegAssign),
11279         * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
11280
11281 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11282
11283         * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
11284         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
11285
11286 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
11287
11288         Cumulative patch for pic16 port:
11289         * src/pic16/device.h (typedef PIC16_device) modified fields for
11290         defining microcontrollers,
11291         * src/pic16/device.c: added new info for all devices in Pics16 array,
11292         * src/pic16/gen.c (genPcall): fixed bug that caused the return label
11293         to be optimised out by the pCode optimiser,
11294         * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
11295         specially, bug reported by G.M. Gallant,
11296         * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
11297         as force'd so that cannot be optimised out by pCode optimiser,
11298         * src/pic16/pcode.c,
11299         * src/pic16/pcodepeeph.c,
11300         * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
11301         they are disabled by default, but can be enabled explicit with
11302         command argument --denable-peeps, for testing,
11303         * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
11304         --pomit-ivt in COMPILE_FLAGS
11305
11306 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
11307
11308         * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
11309           compilation on MSVC
11310
11311 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
11312
11313         * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
11314
11315 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11316
11317         device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
11318         0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
11319
11320 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
11321
11322         * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
11323         would only assign 0x300001 register.
11324
11325 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
11326
11327         * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
11328         in COMPILE_FLAGS. Thanks to G. Gallant for report.
11329
11330 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11331
11332         * doc/sdccman.lyx: minor changes, mentioned beta vendor support
11333         for ds80c400
11334         * src/mcs51/peeph.def: ran unexpand -a over peeph.def
11335         * src/mcs51/peeph.def: removed obsolete peephole 100.a,
11336         added peephole 254 (left shift), 255 (jump table)
11337
11338 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
11339
11340         * device/lib/Makefile.in: removed comment line with model-pic16,
11341         * (target port-specific-objects-pic16): the libraries and objects
11342         are copied to the build directory form the device/lib/pic16/bin
11343         directory
11344
11345         Cumulative patch concerning pic16 port:
11346         * library directory has been re-organized,
11347         * added support for PIC18F1220,
11348         * added headers and library sources for chips 18f1220,18f6520,
11349         18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
11350
11351         * configuration registers setting has changed, now each supported
11352         device has a complete description of the registers it uses,
11353         * all initialisations are moved to idata sections, these section
11354         can be absolute or relocatable,
11355         * fixed initialisation of codespace variables,
11356         * fixed warning about PCLATU and gpsim,
11357         * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
11358         * (genAssign): use table reads when assigning from variables in codespace,
11359         * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
11360         char/int variables placed in codespace,
11361         * (pic16_emitConfigRegs): NEW, emits a list with configuration
11362         registers set in .asm file, no need for --pomit-config-words anymore,
11363         * (pic16glue): some 8051 legacy segments are commented out
11364         (to be removed completely),
11365         * added support for alternative assembler and linker with --asm=
11366         and --link= command line arguments,
11367         * peepholes are disabled automatically in the port, no need to
11368         specify on command line,
11369         * port supports natively char/int/long multiplication, but converts
11370         all divisions to support functions,
11371         * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
11372         to the file set in variable $2,
11373         * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
11374         strings in ASCII format and not in hex,
11375         * ralloc.c (serialRegAssign): added a triplet of conditional calls
11376         to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
11377         allocate proper register if iCodes aren't temporary,
11378
11379 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
11380
11381         * support/regression/tests/zeropad.c: added TEST_G macro for alpha
11382
11383 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
11384
11385         * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
11386         is commented out
11387
11388 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11389
11390         * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
11391         computed address is reused
11392         * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
11393         multi-byte bitfields
11394
11395 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
11396
11397         * src/z80/gen.c: (genArrayInit): must check for pointers too
11398
11399 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
11400
11401         * support/regression/tests/zeropad.c: never meant to commit the
11402           nestedstruct test: removed, added check for GCC version
11403
11404 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
11405
11406         * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
11407         * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
11408         * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
11409           printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
11410           bugs 928906 and 954082 half-empty initializers
11411         * src/SDCCsymt.h,
11412         * src/SDCCsymt.c (getAllocSize): added for above fix
11413         * src/z80/gen.c (genArrayInit): fixed bug 741044
11414         * support/regression/tests/zeropad.c: added tests
11415
11416 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
11417
11418         * src/pic16/device.c (pic16_dump_section): corrected bug which
11419         caused some symbols of the libraries to be misplaced
11420
11421 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
11422
11423         * src/pic16/glue.c,
11424         * src/pic16/ralloc.h,
11425         * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
11426         to fix conflict with pic port
11427
11428 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
11429
11430         * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
11431         externs configuration variables,
11432         * src/pic16/ralloc.h,
11433         * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
11434         prototype in header, commented out some debug messages
11435
11436 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
11437
11438         * src/pic16/glue.c,
11439         * src/pic16/main.c,
11440         * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
11441         for gpasm COFF object generation. Thanks to D. Hawkins for
11442         his patch info
11443
11444 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11445
11446         * src/ds390/main.c,
11447         * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
11448         Brock for spotting this)
11449         * src/ds390/gen.c (genEndFunction),
11450         * src/mcs51/gen.c (genEndFunction): always save psw if function is an
11451         interrupt handler and critical. Disable push/pop optimizations when
11452         peephole optimizations disabled.
11453
11454 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
11455
11456         Updated pic16 library sources and headers.
11457         * device/lib/pic16/pic18f*/ ,
11458         * device/include/pic16/*.h: modified to handle structured SFR
11459         definitions
11460
11461 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
11462
11463         * src/port.h (PORT structure): added hook initPaths, now each
11464         port can declare its own default search paths,
11465         which can been seen with the --print-search-dirs option,
11466         see pic16 port for example,
11467         * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
11468         setDataPaths): test to options.printSearchDirs is ifdef'ed out,
11469         * (doPrintSearchDirs): NEW, replaces in a central manner the
11470         printing of search dirs which was split in set*Paths functions,
11471         * (main): added call to port->initPaths and doPrintSearchDirs,
11472         * src/avr/main.c,
11473         * src/ds390/main.c,
11474         * src/hc08/main.c,
11475         * src/izt/i186.c,
11476         * src/izt/tlcs900h.c,
11477         * src/mcs51/main.c,
11478         * src/pic/main.c,
11479         * src/pic16/main.c: modified port structures to reflect addition of
11480         initPaths hook,
11481
11482         * src/pic16/device.c (regCompare): registers are finally sorted by name,
11483         * (pic16_dump_section): for registers in same address reserve memory once,
11484         * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
11485         to no_banksel,
11486         * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
11487         result is greater in size than right or left,
11488         * (pic16_genUMult8X8_8): there are some cases where the result can
11489         be 16 bits size, so handle these,
11490         * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
11491         * (pic16_outBitC): modified to emit pcodes,
11492         * (pic16_storeForReturn): using is_LitOp to see if operand is literal
11493         or not,
11494         * (genDivOneByte): implemented algorithm to divide 8-bits,
11495         * (genCmp): uncommented goto, but issues still exist,
11496         * (genAnd): fixed a bug with variables >8bits,
11497         * (genPackBits): optimization added that uses BCF/BSF to change a
11498         single bit,
11499         * (genAssign): fixed bug when assigning floating point literals,
11500         * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
11501         __sdcc_gsinit_startup label,
11502         * src/pic16/main.c (_pic16_init): removed search directory
11503         initialisations,
11504         * (_pic16_initPaths): NEW, used to initialise search directories,
11505         * (_hasNativeMulFor): support functions for all except char/int
11506         multiplication, and char division,
11507         * (PIC16_port struct): modified entry for native mul support,
11508         * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
11509         no_banksel option,
11510         * (buildCallTree): call to register_usage is ifdef'ed out,
11511
11512 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11513
11514         * device/include/string.h: applied Stas Sergeev's patch to make this
11515         header file compatible with the preprocessor -Wundef option
11516         * src/SDCCmain.c (main): abort compilation if preprocessor reports
11517         failure (fixes bug #941458)
11518
11519 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11520
11521         * src/SDCCopt.c (killDeadCode): fixed bug #907733
11522         * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
11523         that the variable, not the function, should be static
11524         * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
11525         to be consistent with non-literal case
11526
11527 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11528
11529         * src/SDCCast.c (isConformingBody): fixed bug #949967
11530         * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
11531         convilong): fixed bug #952086
11532
11533 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11534
11535         * src/SDCCmem.c (allocVariables): fixed bug #955321
11536
11537 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11538
11539         * src/hc08/main.c (_hc08_genAssemblerEnd),
11540         * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
11541         dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
11542         completely eliminated the use of a temporary file
11543         * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
11544         when more than one file linked
11545         * src/SDCCloop.c (pointerAssigned): fixed bug #954163
11546
11547 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11548
11549         * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
11550         which fixes bug #543481
11551         * support/regression/tests/bug-751703.c: fixed comments left from a
11552         cut and paste error
11553         * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
11554         * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
11555         * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
11556         scopes
11557         * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
11558         * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
11559         are now changed to underscores in moduleName
11560
11561 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11562
11563         * as/mcs51/lkmem.c: better fix for bug #954173
11564
11565 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
11566         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11567
11568         * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
11569         * device/include/c8051f000.h,
11570         * device/include/c8051f120.h,
11571         * device/include/c8051f300.h,
11572         * device/include/c8051f310.h,
11573         * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
11574         PWM16) and detab'ed
11575
11576 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11577
11578         * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
11579         and mailing lists, doc'ed --no-peep-comments, removed reference
11580         to knoppix (newest version has no LyX/LaTeX), other minor changes
11581         * src/SDCCglue.c (glue): save 2 bytes stack space with
11582         option --main-return. The ljmp could probably be avoided too
11583
11584 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11585
11586         * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
11587
11588 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11589
11590         * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
11591         * src/SDCCopt.c (isLocalWithoutDef),
11592         * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
11593         which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
11594         (credit to Maarten Brock for patch #949363, on which this is based)
11595         * support/regression/tests/bug-751703.c: some test cases of extern used
11596         within inner scopes.
11597
11598 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11599
11600         * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
11601         SPEC_STRUCT
11602         * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
11603         struct definitions
11604         * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
11605         dwWriteLabel): fix to create valid debugger symbols even when
11606         the module name has non-alphanumeric symbols in it
11607         * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
11608         when a variable's allocation has been optimized away
11609
11610
11611 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11612
11613         * src/hc08/gen.c (hc08_emitDebuggerSymbol),
11614         * src/hc08/main.c,
11615         * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
11616         * src/mcs51/main.c,
11617         * src/ds390/gen.c (ds390_emitDebuggerSymbol),
11618         * src/ds390/main.c,
11619         * src/z80/gen.c (z80_emitDebuggerSymbol),
11620         * src/z80/main.c,
11621         * src/pic/gen.c (pic14_emitDebuggerSymbol),
11622         * src/pic/main.c,
11623         * src/pic16/gen.c (pic14_emitDebuggerSymbol),
11624         * src/pic16/main.c,
11625         * src/avr/gen.c (avr_emitDebuggerSymbol),
11626         * src/avr/main.c,
11627         * src/xa51/gen.c (xa51_emitDebuggerSymbol),
11628         * src/xa51/main.c,
11629         * src/SDCCdebug.c (emitDebuggerSymbol),
11630         * src/SDCCdebug.h,
11631         * src/port.h: added a debugger struct to the port struct. Added a
11632         callback for defining debugger symbols
11633
11634         * src/SDCCast.c (createLabel),
11635         * src/SDCC.y (labeled_statement): mark all compiler generated labels
11636         with isitmp = 1
11637         * src/SDCCicode.h,
11638         * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
11639         iCode back to the ast for the function
11640
11641         * src/hc08/ralloc.c (hc08_assignRegisters),
11642         * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
11643         unneeded fields from the regs struct.
11644         * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
11645         pushReg() & pullReg() functions instead of emitcode()
11646
11647         * src/hc08/gen.c (genLabel, genhc08Code),
11648         * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
11649
11650         * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
11651         debugger hooks
11652
11653         * src/hc08/gen.c (genEndFunction, genhc08Code),
11654         * src/hc08/gen.h,
11655         * src/mcs51/gen.c (genEndFunction, gen51Code),
11656         * src/mcs51/gen.h,
11657         * src/ds390/gen.c (genEndFunction, gen390Code),
11658         * src/ds390/gen.h,
11659         * src/z80/gen.c (genEndFunction, genZ80Code),
11660         * src/z80/gen.h,
11661         * src/z80/z80.h,
11662         * src/pic/gen.c (genEndFunction, genpic14Code),
11663         * src/pic/gen.h,
11664         * src/pic16/gen.c (genEndFunction, genpic16Code),
11665         * src/pic16/gen.h,
11666         * src/avr/gen.c (genEndFunction, genAVRCode),
11667         * src/avr/gen.h,
11668         * src/xa51/gen.c (genEndFunction, genXA51Code),
11669         * src/xa51/gen.h,
11670         * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
11671         specific code to cdbFile.c and out of the backend code generators
11672
11673         * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
11674         * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
11675         starting address is now 0
11676
11677         * as/hc08/asm.h,
11678         * as/hc08/m08pst.c,
11679         * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
11680         assembler directive for DWARF support
11681         * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
11682
11683         * src/src.dsp,
11684         * src/Makefile.in,
11685         * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
11686
11687 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11688
11689         * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
11690         and inappropriate peephole optimization in jump tables
11691
11692 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11693
11694         * as/hc08/m08pst.c,
11695         * src/SDCCglue.c: sdccopt works for the hc08 port now
11696
11697 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
11698
11699         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
11700
11701 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11702
11703         * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
11704
11705 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11706
11707         * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
11708         rules
11709         * src/SDCCmain.c,
11710         * src/SDCCglobl.h,
11711         * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
11712         comments from the peephole optimizer replacement rules
11713         * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
11714         symbols
11715         * src/SDCCcse.c (updateSpillLocation),
11716         * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
11717         equivalents
11718         * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
11719         * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
11720         objects far pointers
11721
11722 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11723
11724         * src/SDCCsymt.h: a missing part of my last change
11725         * src/pic/ralloc.c (regTypeNum),
11726         * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
11727
11728 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11729
11730         * src/SDCCicode.h,
11731         * src/SDCCicode.c (aggrToPtrDclType),
11732         * src/SDCCptropt.h,
11733         * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
11734         ptrPseudoSymConvert),
11735         * src/pic/ralloc.c (regTypeNum),
11736         * src/pic16/ralloc.c (regTypeNum),
11737         * src/hc08/ralloc.c (regTypeNum),
11738         * src/ds390/ralloc.c (regTypeNum),
11739         * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
11740         creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
11741
11742 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11743
11744         * link/z80/lkmain.c (afile),
11745         * as/hc08/lkmain.c (afile),
11746         * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
11747         prevent a pointer problem when a filename has no directory and
11748         no extension specified.
11749
11750 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11751
11752         * link/z80/lkmain.c (afile): allow periods in directory names
11753         * link/z80/lkmain.c (afile),
11754         * as/mcs51/lkmain.c (afile),
11755         * as/hc08/lkmain.c (afile): allow linker script file to have an
11756         extension other than ".lnk"
11757         * link/z80/lklex.c (getfid),
11758         * link/z80/lkmain.c (parse),
11759         * as/mcs51/lklex.c (getfid),
11760         * as/mcs51/lkmain.c (parse),
11761         * as/hc08/lklex.c (getfid),
11762         * as/hc08/lkmain.c (parse): Support comments in the linker script
11763         file on lines by themselves and after filenames
11764
11765 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11766
11767         * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
11768
11769 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11770
11771         * src/z80/peeph-z80.def: removed some peephole rules that don't
11772         work with multibyte arithmetic (fixed bug #937126)
11773         * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
11774         to registers and not global variables
11775         * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
11776         geniCodePreInc, geniCodePostDec, geniCodePreDec,
11777         geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
11778         checking for assignments not internally generated (fixed bug #931895)
11779         * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
11780         structure member (fixed bug #930072)
11781
11782 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11783
11784         * src/SDCCmain.c (linkEdit),
11785         * src/hc08/main.c (_hc08_parseOptions),
11786         * as/hc08/Makefile.in,
11787         * as/hc08/aslink.h,
11788         * as/hc08/asm.h,
11789         * as/hc08/m08pst.c,
11790         * as/hc08/lkrloc.c (relr, rele),
11791         * as/hc08/lkarea.c (lnkarea)
11792         * as/hc08/lkmain.c (afile, parse),
11793         * as/hc08/lkelf.c: support for ELF output
11794         * as/hc08/lks19.c (s19),
11795         * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
11796
11797 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11798
11799         * as/mcs51/lkihx.c: Fixed bug #899105.
11800
11801 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11802
11803         * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
11804         .dsp files from Unix to DOS.
11805
11806 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11807
11808         * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
11809         function pointers; we have been compliant for several months now.
11810         * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
11811         change that was accidently commented out
11812         * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
11813         genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
11814         bug #922319
11815
11816 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11817
11818         * src/hc08/gen.c: output of all of the internal debugging information
11819         is now controlled by the D() macro; it is disabled by default
11820
11821 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11822
11823         * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
11824         harder to keep the same registers during a CAST iCode
11825         * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
11826         long via int can be done in a single cast, if the signedness is
11827         correct.
11828         * support/regression/tests/bug-927659.c: fixed to avoid conflict with
11829         putchar() in tinibios.c in ds390's library
11830
11831 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
11832
11833         * src/SDCCast.c (decorateType): fixed bug #898889,
11834         cast result of a literal complement too
11835         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
11836         fixed check for bitfields
11837
11838 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
11839
11840         * src/SDCCicode.c (geniCodeLogic): made it static,
11841         (geniCodeLogicAndOr): added in order to fix bug #905492,
11842         (ast2iCode): fixed bug #905492
11843         * support/regression/tests/bug-905492.c: added
11844         * src/SDCCast.c (decorateType): don't decorate/process parms twice,
11845         (processParms): fixed bug #927659: don't copy parms, this will clear
11846         decorated flag
11847         * support/regression/tests/bug-927659.c: added
11848
11849 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
11850
11851         * src/SDCCast.c (addCast): don't cast float to char
11852         * device/lib/libsdcc.lib: added _memmove
11853
11854 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
11855
11856         * device/lib/large/Makefile: fixed parallel execution by
11857         replacing `make` by `$(MAKE)`
11858
11859 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11860
11861         * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
11862         offsets (fixes bug #923936)
11863
11864 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
11865
11866         * device/lib/small/Makefile: fixed parallel execution by
11867         replacing `make` by `$(MAKE)`
11868
11869 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
11870
11871         * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
11872
11873 2004-03-23  Scott Dattalo  <scott AT dattalo.com>
11874
11875         * src/pic/gen.c (genCpl): multi-byte complements were not working.
11876         * src/regression/Makefile: Regression test was not running.
11877
11878 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
11879
11880         * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
11881         complement if possible
11882         * src/SDCCval.c (valComplement),
11883         * src/SDCCicode.c (operandOperation): fixed complement of literal
11884         * support/regression/tests/onebyte.c (testComplement): added
11885
11886 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
11887
11888         * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
11889         return an optimized tree; actually replace actParm with the new tree
11890         * src/SDCCast.h: added some parantheses to remove side effects
11891         * support/regression/tests/bug-920866.c
11892
11893 2004-03-21  Scott Dattalo  <scott AT dattalo.com>
11894         * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
11895         Bit operands were not being handled properly in the pic14 port.
11896         (now src/regression/add.c passes again).
11897
11898 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11899
11900         * src/SDCC.y (labeled_statement): case and default no longer require
11901         a following statement (RFE #893037)
11902
11903 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11904
11905         * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
11906         use MOVA macro to avoid "mov a,acc" when peephole optimizer is
11907         disabled (fixes bug #916294)
11908         * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
11909         "mov a,acc"; patch provided by Lenny Story
11910         * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
11911
11912 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11913
11914         * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
11915         functions
11916         * src/ds390/gen.c (genFunction, genEndFunction),
11917         * src/ds390/ralloc.c (ds390_assignRegisters),
11918         * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
11919         * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
11920         pushed if there are parameters passed on the stack. Also, a cleaner
11921         way to decide if r0/r1 should be pushed/popped. (Together they fix
11922         bug #918693)
11923
11924 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11925
11926         * doc/sdccman.lyx,
11927         * device/lib/mcs51/crtpagesfr.asm,
11928         * device/lib/mcs51/crtxinit.asm,
11929         * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
11930         to avoid confusion with Si Lab's SFRPAGE register.
11931
11932 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11933
11934         * src/SDCCglue.c (emitMaps): allow public sfr variables
11935         * src/SDCCglue.c (initialComments): include compiler build date
11936         with compiler version and put the timestamp of the generated
11937         assembly file on a serperate line to be less confusing.
11938         * src/port.h: added genInitStartup hook
11939         * src/avr/main.c,
11940         * src/ds390/main.c,
11941         * src/hc08/main.c,
11942         * src/pic/main.c,
11943         * src/pic16/main.c,
11944         * src/xa51/main.c,
11945         * src/z80/main.c: genInitStartup initialize as NULL (default to
11946         historical behaviour)
11947         * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
11948         * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
11949         _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
11950         library instead of hard coding it into the compiler.
11951         * support/regression/ports/mcs51-stack-auto/spec.mk,
11952         * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
11953         * device/lib/mcs51/Makefile,
11954         * device/lib/small/Makefile,
11955         * device/lib/large/Makefile,
11956         * device/lib/mcs51/crtpagesfr.asm,
11957         * device/lib/mcs51/crtstart.asm,
11958         * device/lib/mcs51/crtxclear.asm,
11959         * device/lib/mcs51/crtxinit.asm,
11960         * device/lib/mcs51/crtclear.asm,
11961         * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
11962         startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
11963         and into user configurable files.
11964         * device/lib/clean.mk: clean mcs51 directory too
11965         * support/regression/tests/longlit.c: added static to T1 declaration
11966         * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
11967         accesses in the initialization code
11968
11969 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11970
11971         * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
11972         OSCTRIMVAL as noted in bug #916008
11973
11974 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11975
11976         * src/SDCCloop.c (basicInduction): fixed bug with loop induction
11977         in loops with multiple exits (reported as incorrect registers
11978         used by Martin Helmling in Sdcc-user list)
11979
11980 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11981
11982         * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
11983         made ds390 register extensions look less like error messages
11984
11985 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11986
11987         * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
11988         reported by Adam Wozniak in Sdcc-user list
11989
11990 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
11991
11992         * src/SDCCast.c (decorateType): fixed with bug and promotion in
11993         arithmetic optimizations, added debug output
11994
11995 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
11996
11997         * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
11998         * sdcc.spec: updated and split sdcc into 3 rpms
11999         * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
12000         needed for literals of LEFT_OP and '+'
12001         * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
12002         introduced RESULT_TYPE_NOPROM
12003         (geniCodeMultiply): fixed logic for decision if mul is optimized to
12004         left shift
12005         * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
12006         limited promotion to int only for '*'
12007         * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
12008
12009 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
12010
12011         * src/pic16/gen.c (genSkip),
12012         (genc16bit2lit), (gencjneshort): commented out
12013         (is_LitOp): new helper function, checks operand type
12014         (genCmpEq): rewritten
12015
12016 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
12017
12018         * support/regression/tests/bug-908454.c: added
12019
12020 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
12021
12022         * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
12023         * src/SDCCicode.c (usualBinaryConversions): op needs int type
12024         (geniCodeCast): cosmetic, don't preserve bit storage class
12025         (geniCodeLeftShift): added promotion
12026         (geniCodeLogic): fixed regression
12027         * src/SDCCsymt.c (computeTypeOr): accept bits too
12028         (compareType): 2nd part of fix for bug #908454, needed for bitfields
12029
12030 2004-03-07  Borut Razem <borut.razem AT siol.net>
12031
12032         * support/Util/findme.c: alloca() replaced with malloc()/free() pair
12033
12034 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
12035
12036         * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
12037         version of pic16_genPackRegisters which does not check if ic is a
12038         CAST operator,
12039         * src/pic16/gen.c (ifxForOp): disabled new and untested code in
12040         function cause string1.c regression test fails
12041
12042 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
12043
12044         * sim/ucsim/configure.in,
12045         * sim/ucsim/configure,
12046         * sim/ucsim/doc/Makefile.in: use docdir
12047         * src/SDCC.y: fixed sbit atrributes
12048         * src/SDCCast.c (getResultTypeFromType): added support for bitfields
12049         * src/SDCCast.c (decorateType): |^& need special promotion handling
12050         * src/SDCCast.h,
12051         * src/SDCCsymt.h: moved definition of RESULT_TYPE
12052         * src/SDCCsymt.h (computeType),
12053         * src/SDCCicode.c: computeType() needs op
12054         * src/SDCCsymt.c (checkTypeSanity),
12055         * doc/sddman.lyx: "plain" bitfields are unsigned
12056         * src/SDCCsymt.c (computeTypeOr): added
12057         * src/SDCCsymt.c (computeType): added support for bitfields, fixed
12058         |^& ops
12059         * src/SDCCval.c (val*): computeType() needs op
12060         * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
12061         * support/regression/tests/onebyte.c: added tests for |^&
12062
12063 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
12064
12065         * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
12066         for writing icode into asm output.
12067
12068 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
12069
12070         * src/pic16/device.c: added some debug lines enabled
12071         with macro DEBUG_CHECK,
12072         * src/pic16/genarith.c: more debug in genPlus,
12073         * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
12074         * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
12075         * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
12076         * (aopForSym): onStack symbols are re-placed in data memspace,
12077         and onStack flag is cleared,
12078         * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
12079         copy temporary pcodeop,
12080         * (genPcall): added warning for not updating PCLATU,
12081         * (genFunction): removed test with IFFUNC_CALLEESAVES, its
12082         always true for pic16 port,
12083         * (genMultOneWord): NEW, supports integer multiplication,
12084         * (genMult): modified to call genMultOneWord,
12085         * (ifxForOp): added warning when return NULL,
12086         * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
12087         flag is set before call to operandFromSymbol for implicit
12088         added structures,
12089         * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
12090         options.intlong_rent are set by default,
12091         * (_hasNativeMulFor): modified to allow port generation of integer
12092         multiplication,
12093         * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
12094         set regtype to REG_SFR for all registers, restricting seting the
12095         accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
12096
12097 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12098
12099         * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
12100         more than 500 times in the regression tests
12101
12102 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12103
12104         * support/Util/SDCCerr.h,
12105         * support/Util/SDCCerr.c,
12106         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
12107         enumerator_list),
12108         * src/SDCCsymt.c (addSymChain): show location of oriignal definition
12109         for symbol conflicts.
12110         * support/valdiags/tests/enum.c,
12111         * support/valdiags/tests/tentdecl.c,
12112         * support/valdiags/tests/struct.c: expect possible error messages
12113         referring to original symbol definitions.
12114         * src/SDCC.y (struct_or_union_specifier, struct_declarator),
12115         * src/SDCCsymt.h,
12116         * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
12117
12118 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
12119
12120         * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
12121
12122 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
12123
12124         * src/pic16/ralloc.c (newReg): fixed bug #908929
12125
12126 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12127
12128         * src/ds390/gen.c: added missing #include "main.h"
12129
12130 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
12131
12132         * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
12133         checking if symbol is already in set,
12134         * src/pic16/device.h: prototype for checkAddSym,
12135         * src/pic16/gen.c: (_G): added entry interruptvector,
12136         * (assignResultValue): removed some commented out lines,
12137         * (genFunction): check for ISR via sym->type, absolute section for
12138         interrupt code is created via a new pBlock, the goto instruction is
12139         placed now correctly at the interrupt vector position, changed all
12140         references from ivec to _G.interruptvector,
12141         * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
12142         is the interrupt is a high priority one, same for return from ISR,
12143         * src/pic16/glue.c: changed all calls of addSetHead for publics and
12144         externs to calls of checkAddSym,
12145         * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
12146         pic16_pcode_verbose flag is set,
12147         * src/pic16/pcode.h: extern to pic16_pcode_verbose,
12148         * src/pic16/pcoderegs.c: message about how many registers are saved
12149         will only be emitted if pic16_pcode_verbose flag is set,
12150
12151 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12152
12153         * src/ds390/ralloc.h,
12154         * src/ds390/ralloc.c (ds390_regWithIdx),
12155         * src/ds390/gen.c (emitcode),
12156         * src/ds390/main.h,
12157         * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
12158         ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
12159         ds390operandCompare, getRegsRead, getRegsWritten,
12160         initializeAsmLineNode): customized instruction size calculation for
12161         ds390, started basis for some register optimizations
12162         * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
12163         corresponding assembly output
12164         * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
12165         missing push/pop of r0/r1. Optimized push/pops
12166
12167 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12168
12169         * src/mcs51/main.c (instructionSize): fixed ACALL size
12170         * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
12171
12172 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
12173
12174         * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
12175         the sorting of rlist with NULL elements
12176         * (print_idataType, print_idata): NEW to create idata sections
12177         * src/pic16/device.h: idataSymSet new variable
12178         * src/pic16/gen.c (genFunction): fixed some bugs in string
12179         comparing, improved the absolute section creation for ISRs,
12180         added FSR0L/FSR0H in registers that are saved in an ISR,
12181         * (genInline): fixed the processing of inline snippets,
12182         now they undergo no process by the peephole optimizer
12183         * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
12184         are placed in idataSymSet,
12185         * (pic16emitStaticSeg): extern symbols are added in externs,
12186         * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
12187         switching when aboslute variables are placed in access bank memory
12188         * (pic16_writeUsedRegs): added call to pic16_dump_idata,
12189         * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
12190         commented out with #if,
12191         * (pic16_packRegisters): reintroduce the check for CAST because some
12192         symbols are not correctly handled,
12193         * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
12194         pCodeInstruction instead of pCode,
12195         * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
12196         pCodeAsmDir definition,
12197         * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
12198         directive, then the argument directive is emitted without the leading
12199         tab, hack for inline labels which must be in the first column,
12200         * (compareLabel,pic16_findNextInstruction),
12201         * (pic16_findPrevInstruction): added case for PO_ASMDIR,
12202         * (insertBankSwitch): modified for the new pCodeAsmDir,
12203
12204 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
12205         patch applied by Vangelis Rokas <vrokas AT otenet.gr>
12206
12207         * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
12208         instance,
12209         * (pushSide): commented out with #if,
12210         * (assignResultValue): fixed some typos in saving
12211         registers,
12212         * (genPcall): FIXED and sync'ed with genCall,
12213         * (genDataPointerGet,genDataPointerSet): using offset not leoffset
12214         * (genNearPointerGet): fixed to handle some more cases,
12215         implementation scheme via table reads,
12216         * (genConstPointerGet): modified to access code memory correct,
12217         * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
12218         and improved to handle some cases
12219         * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
12220         instead of "RETLW" for init data
12221         * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
12222         not IN_DIRSPACE, work around to reduce bank switching when aboslute
12223         variables are placed in access bank memory (<0x80 and >=0xf80),
12224         * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
12225         TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
12226         TBLWT_POSTDEC,TBLWT_PREINC
12227         * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
12228         * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
12229         directives
12230         * (pic16_pCodeConstString): use "DB" instead of "RETLW"
12231         * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
12232         pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
12233         * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
12234
12235 2004-02-29  Borut Razem <borut.razem AT siol.net>
12236
12237         * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
12238         support/Util/findme.h, support/Util/system.h: enhance binary relative
12239         search for lib and include by using findProgramPath()
12240
12241 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12242
12243         * src/SDCCpeeph.h,
12244         * src/SDCCpeeph.c (pcDistance),
12245         * src/port.h,
12246         * src/mcs51/ralloc.h,
12247         * src/mcs51/ralloc.c (mcs51_regWithIdx),
12248         * src/mcs51/main.h,
12249         * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
12250         mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
12251         mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
12252         size calculation port specific, started basis for some register
12253         optimizations
12254         * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
12255         missing push/pop of r0/r1. Optimized push/pops
12256         * src/mcs51/ralloc.c (packregisters): fixed bug #727095
12257         * device/lib/_modsint.c (_modsint),
12258         * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
12259         and stack version so regression tests pass
12260
12261 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
12262
12263         * src/Makefile.in (dep): include SLIBOBJS in dependency check
12264         * src/SDCCast.c (decorateType): catch another small optimization
12265         with '?' operator
12266         * src/SDCCsymt.c (computeType): added comments and cosmetic changes
12267         * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
12268         modified to finally use computeType() all over SDCC,
12269         see Feature Request #877103
12270         * src/SDCCval.h: cosmetic
12271         * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
12272         valCompare(); regression tested in muldiv.c
12273         * support/regression/tests/muldiv.c (testMod): mod sign follows
12274         dividend only
12275
12276 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
12277
12278         * src/SDCCast.c (decorateType): fixed bug #902362
12279         * doc/INSTALL.txt: fixed install instructions for win32
12280
12281 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
12282
12283         * device/include/Makefile.in (install): fixed by replacing spaces
12284         by tabs
12285         * doc/README.txt,
12286         * doc/INSTALL.txt: updated for release
12287         * doc/sdccman.lyx: added warning for --xstack being buggy
12288
12289 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
12290
12291         * src/pic16/ralloc.c (packRegsForAccUse):  disabled functions with #if
12292         to eliminate build warnings.
12293         * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
12294
12295 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
12296            Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
12297
12298         * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
12299         removed -penable-stack, added comment for stack pragma, added
12300         warning for not initializing the stack/frame registers, removed
12301         comment at interrupts section
12302
12303         Stack is made permanent, there is no ability to disable stack usage.
12304         * src/pic16/device.h,
12305         * src/pic16/device.c: removed all references to USE_STACK macro,
12306         * src/pic16/device.c (pic16_dump_section): when no elements in
12307         rlist, free rlist before return,
12308         * (pic16_dump_int_registers): NEW, internal registers are a new set
12309         of general purpose registers reused by each function,
12310         * (checkAddReg): returns 1 if registers is added to set,
12311         * (pic16_groupRegistersInSection): when a registers is of type
12312         PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
12313         * src/pic16/device.h: memRange and Assigned Memory are deleted,
12314         SRCASECMP macro is moved here from device.c
12315         * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
12316         PO_PCLATU, PO_PRODL, PO_PRODH,
12317         * (pic16_pCodeOpType, genMinus,
12318         changed compares to "a" register, with AOP_ACC,
12319         * (pic16_genPlus): fixed some bugs and indented properly,
12320         * (pic16_addSign): changed size to size+offset in the MOVWF
12321         instruction,
12322         * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
12323         multiply 8-bit operand by literal, result is 8-bit,
12324         * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
12325         multiply 2 8-bit operand, result is 8-bit,
12326         * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
12327         genUMult8X*_16,
12328         * src/pic16/gen.c: changed accUse to contain WREG only,
12329         * (pic16_emitcomment): renamed to pic16_emitpcomment,
12330         * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
12331         true, do not use immediate addressing any more unless sym is a
12332         pointer in codespace,
12333         * (aopForRemat): do not use immediate addressing when symbol not in
12334         codespace and when symbol's address is requested,
12335         * (aopOp): for-loop in if(sym->accUse) is modified for the new
12336         accUse size (= 1),
12337         * (aopGet): added case for AOP_ACC and don't return "accumulator
12338         bug" but WREG instead,
12339         * (popGetTempReg): pushes contents of temporary register in stack,
12340         * (popReleaseTempReg): pops contents of temporary register from
12341         stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
12342         * (pic16_popGet): separated case AOP_ACC to return register WREG
12343         from processor registers, AOP_PCODE not checks if pcop is PO_DIR
12344         or PO_IMMEDIATE and initializes their instance/offset appropriately,
12345         * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
12346         the use of immediate pointers to certain cases only.
12347
12348         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
12349         * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
12350         * (assignResultValue, genCall, genRet): modified to use the new
12351         function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
12352         genPcall is still broken,
12353         * (genFunction): added code to create 'A' type pBlocks when
12354         interrupt functions are generated, code not extensively tested yet,
12355         ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
12356         * (genEndFunction): modified so ISRs pop stored registers from stack,
12357         * (genMultOneByte): cleanup,
12358         * (AccRsh): added flag andmask, to and result with appropriate mask,
12359         * (genUnpackBits,genPackBits): fixed and can handle bit fields,
12360         * (genDataPointerGet): fixed and reenabled its use,
12361         * (genNearDataPointerGet): bugs fixed,
12362         * (genDataPointerSet): bugs fixed,
12363         * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
12364         pic16_DumpSymbol, pic16_DumpOp,
12365         * src/pic16/genutils.h: function prototypes for the above functions,
12366         * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
12367         pointers,
12368         * (pic16emitRegularMap): many many many improvements, but needs a
12369         major cleanup,
12370         * src/pic16/main.c: enable_stack in pic16_options is removed,
12371         * (_pic16_parseOptions): removed command line options -penable-stack,
12372         * (_process_pragma): emit stack symbol only when stack pragma is
12373         processed,
12374         * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
12375         redirected to FSR0L/FSR0H pair,
12376         * (pic16_get_op, pic16_get_op2): modifications and improvements,
12377         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
12378         cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
12379         for immediates,
12380         * (insertBankSwitch): modified to handle cases like: (alfa + 1)
12381         * (dumpPicOptype): NEW,
12382         * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
12383         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
12384         with movff instruction,
12385         * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
12386         added pic16_int_regs, some packRegsFor* functions are commented out,
12387         because produce errors,
12388         * src/pic16/NOTES: minor modifications
12389
12390 2004-02-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12391
12392         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
12393         as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
12394         --pack-iram.
12395         * doc/sdccman.lyx: described options --stack-size and --pack-iram.
12396         * as/mcs51/lkaomf51.c: fixed bug #895763
12397
12398 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
12399
12400         * device/include/c8051f320.h: added. Contributed by Maarten Brock.
12401
12402 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12403
12404         * doc/sdccman.lyx: added details about the HC08 storage classes and
12405         interrupts, fixed the register usage info for z80 & gbz80
12406
12407 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
12408
12409         * doc/sdccman.lyx: added more pic16 port documentation
12410         * device/include/pic16/: added header pic18fregs.h
12411
12412 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
12413
12414         * doc/sdccman.lyx: added Vangelis' contribution
12415
12416 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12417
12418         * src/SDCClrange.c (rlivePoint): live range of SEND operand should
12419         extend to the next CALL or PCALL, not just to the next CALL.
12420
12421 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
12422
12423         * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
12424
12425 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12426
12427         * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
12428         bug #895752 and a better fix for bug #716790
12429
12430 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12431
12432         * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
12433
12434 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12435
12436         * doc/sdccman.lyx: minor changes, minor changed
12437
12438 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
12439
12440         * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
12441         which can't handle SDCC_NEWONEBYTEOPS,
12442         (geniCodeMultiply): removed conversion from mult to shift for pic14
12443         and pic16
12444
12445 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12446
12447         * src/hc08/gen.h,
12448         * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
12449         rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
12450         thus fixing bug #895406
12451
12452 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
12453
12454         * device/lib/_modsint.c,
12455         * device/lib/_modslong.c: sign follows divisor only
12456         * src/hc08/gen.c (genMultOneByte): if result size is 1,
12457         signs or signedness can be ignored
12458         * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
12459         * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
12460         added optimization for IFX,
12461         (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
12462         arguments;
12463         reenabled optimization for IFX, which was removed on 2004-01-11
12464         * src/SDCCast.h: added return type IFX
12465         * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
12466         arguments with 8 or 16 bit results; pic14 and pic16 ports use old
12467         promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
12468         SDCC_OLDONEBYTEOPS selects the old behaviour
12469         * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
12470         changed again and commented promotion rule
12471         * src/SDCCval.c (valDiv): promotion no longer necessary
12472         * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
12473         * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
12474         rewritten
12475         * support/regression/tests/onebyte.c: added
12476
12477 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
12478
12479         * gen.c (genInline): reverted to old code for assemnling inline
12480         code because of bug reported James Chadd
12481
12482 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
12483
12484         * ralloc.h: missing declarations from previous patch,
12485         seems that patch for ralloc.h was never applied, fixed
12486
12487 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
12488            patch committed by Vangelis Rokas <vrokas AT otenet.gr>
12489
12490         * pcode.c,
12491         * pcode.h,
12492         * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
12493         indirect addressing. Marked FSR0 as deprecated
12494         * gen.c (pointerCode): commented out, not needed now
12495         (pic16_popGet2p): new MOVFF helper function
12496         (genGenPointerGet),
12497         (genGenPointerSet): reimplemented with MOVFF and POSTINC0
12498         (shiftRLong): removed duplicate debugging info
12499
12500 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12501
12502         * src/ds390/gen.c (genNearPointerGet),
12503         * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
12504         optimization with bits, but not bitfields.
12505         * src/ds390/ralloc.c (packRegisters),
12506         * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
12507
12508 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
12509
12510         * src/SDCCcse.c (algebraicOpts): copy operands before modification
12511
12512 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12513
12514         * src/SDCCsymt.h,
12515         * src/SDCCicode.c (operandFromSymbol),
12516         * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
12517         * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
12518         * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
12519         * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
12520         * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
12521         * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
12522         bug #892038
12523         * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
12524         * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
12525         printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
12526         * src/SDCCsymt.c (newSymbol),
12527         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
12528         enumerator_list),
12529         * src/SDCCval.h,
12530         * src/SDCCval.c (newiList): fixed bug #885705
12531
12532 2004-02-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12533
12534         * doc/sdccman.lyx: added section 3.1.4: sdcclib.
12535         * as/mcs51/lkmem.c: report the size of the stack in .mem file.
12536
12537 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12538
12539         * device/include/c8051f120.h,
12540         * device/include/c8051f300.h,
12541         * device/include/c8051f310.h: added/updated header files for Silicon
12542         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
12543         * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
12544         in new section Submitting patches
12545
12546 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12547
12548         * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
12549         genFarPointerGet, genCodePointerGet, genGenPointerGet,
12550         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
12551         genGenPointerSet),
12552         * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
12553         genFarPointerGet, genCodePointerGet, genGenPointerGet,
12554         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
12555         genGenPointerSet),
12556         * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
12557         genFarPointerGet, genCodePointerGet, genGenPointerGet,
12558         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
12559         genGenPointerSet),
12560         * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
12561         genFarPointerGet, genCodePointerGet, genGenPointerGet,
12562         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
12563         genGenPointerSet): fixed bug #892400
12564         * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
12565         to eliminate build warnings.
12566         * src/SDCCast.c (processParms),
12567         * src/SDCC.y (function_declarator2, declarator2_function_attributes):
12568         fixed bug 751859
12569         * support/valdiag/valdiag.py: added GCC to the list of defines active
12570         when compiling with gcc
12571
12572 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12573
12574         * support/Util/SDCCerr.h,
12575         * support/Util/SDCCerr.c,
12576         * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
12577         with an incomplete type (fixed bug #883734)
12578         * src/SDCCicode.c (geniCodeCast): fixed bug #890510
12579
12580 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12581
12582         * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
12583
12584 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12585
12586         * src/SDCCast.c (decorateType),
12587         * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
12588         function pointer implementation
12589         * support/regression/tests/funptrs.c: added tests to verify both forms
12590         of function pointers work correctly. Added tests to verify parameters
12591         are passed in the correct order.
12592
12593 2004-02-06  Vangelis Rokas <vrokas AT otenet.gr>
12594
12595         * device.c (regCompare): registers are sorted by ascending
12596         address and increasing size,
12597         * main.c (_pic16_finaliseOptions): removed the declaration
12598         of compiler macro MCU. Now a macro of the format pic18fxxxx
12599         will be defined from the command line
12600
12601 2004-02-06  Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
12602             patch committed by Vangelis Rokas <vrokas AT otenet.gr>
12603
12604         * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
12605         PCOP_RLCF was overwritten!
12606         * gen.c (genSkip): commented out calls to pic16_emitcode,
12607         * (genCmpEQ): fixed "long" compares, only high word did get compared,
12608         * (genlshTwo),
12609         * (genRRC): added debugging info,
12610         * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
12611         overwritten while shifting,
12612         * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
12613         overwritten while shifting,
12614         * (AccLsh),
12615         * (AccRsh),
12616         * (shiftLLeftOrResult),
12617         * (shiftRLeftOrResult),
12618         * (shiftRLong),
12619         * (shiftLLong): Implemented with pic16_emitpcode
12620         * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
12621         * (genLeftShift): Fixed bug, operand for shift by variable always
12622         was "and"ed with 0x0f,
12623         * (genLeftShiftLiteral),
12624         * (genrshTwo),
12625         * (genRightShiftLiteral): added debugging info,
12626         * (genrshFour): added comment,
12627         * (genRightShift): determined signedness from operand "left"
12628         instead of "result"
12629
12630 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12631
12632         * src/SDCCicode.c (geniCodeParms),
12633         * src/SDCCast.c (decorateType, processParms): support for ANSI-style
12634         function pointers, fixed function pointer bugs #861242 and #861896
12635
12636 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12637
12638         * device/include/c8051f000.h,
12639         * device/include/c8051f120.h,
12640         * device/include/c8051f300.h: added header files for Silicon
12641         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
12642
12643 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
12644
12645         * src/SDCCast.c (processParams): added new type flow and restructured
12646         (gatherAutoInit): added new type flow
12647         (addCast): cosmetic changes
12648         (getLeftResultType): added new type flow for array indices, patch
12649         provided by Stas, see FR #877103
12650         (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
12651         array index patch by Stas
12652         * src/SDCCast.h: added prototype getResultTypeFromType()
12653         * src/SDCCval.h,
12654         * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
12655         * src/pic/glue.c (pic14emitStaticSeg),
12656         * src/pic16/glue.c (pic16emitStaticSeg),
12657         * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
12658         for initialization of symbols
12659         * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
12660         * support/Util/SDCCerr.h:
12661         * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
12662         * .version: bumped version number to 2.3.8
12663         * device/include/Makefile.in (install),
12664         * doc/Makefile (install): changed to 'rm `find ...`' construct to
12665         avoid warnings
12666
12667 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
12668
12669         * support/regression/tests/libmullong.c: fixed for 64 bit hosts
12670         Slade Rich fixed an optimization bug
12671         * src/pic/pcodepeep.c,
12672         * src/pic/pcoderegs.c
12673         * doc/Makefile (install): added test for directory
12674
12675 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12676
12677         * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
12678         * src/ds390/ralloc.c (getRegPtr, getRegGpr),
12679         * src/pic/ralloc.c (getRegPtr, getRegGpr),
12680         * src/pic16/ralloc.c (getRegPtr, getRegGpr),
12681         * src/z80/ralloc.c (getRegGpr): fixed bug #883361
12682         * as/mcs51/asexpr.c (term),
12683         * as/hc08/asexpr.c (term): fixed bug #887146
12684
12685 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12686
12687         * src/z80/gen.c (genMult): handle single byte result product
12688         * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
12689         DUMMY_READ_VOLATILE (fixed bug #886367)
12690
12691 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
12692
12693         * support/regression/tests/libmullong.c: fixed logic, on little endian
12694         hosts we ended without a mullong_wrapper()
12695
12696 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12697
12698         * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
12699         virus/worm forged address usage.
12700
12701 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
12702
12703         Fixed promotion, it should be done on AST level:
12704         * src/SDCCast.c (addCast): added promotion to int
12705         (decorateType): updated call to upCast()
12706         * src/SDCCicode.c (geniCodeLeftShift): removed call to
12707         usualUnaryConversions()
12708
12709 2004-01-26  Michael Hope  <michaelh AT juju.net.nz>
12710
12711         * support/regression/tests/literalop.c (mulWrapper): Added a
12712         wrapper to remove integer overflow warnings.
12713
12714         * support/regression/tests/float_trans.c: Made work on host.
12715
12716         * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
12717         location of sz80.
12718
12719         * support/regression/generate-cases.py (main): Changed from inline
12720         to a main method.
12721
12722         * doc/Makefile (install): Changed to depth first to get rid of
12723         missing directory install warning.
12724
12725         * as/Makefile (install-doc): Made work on Mac.
12726
12727 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
12728
12729         * src/SDCCast.c: added an additional type flow in decorateType() of
12730         opposite direction, see feature request #860006; it's enabled at runtime
12731         by setting the environment variable SDCC_NEWTYPEFLOW
12732         * src/SDCCast.h: changed prototype of decorateType()
12733         * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
12734         * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
12735         'char' to 'int' can be omitted, if both operands are 'unsigned char';
12736         see feature request #877103
12737         * src/SDCCval.c: updated call of decorateType()
12738         (valBitwise): fixed bug #882876
12739         (valMinus): added promotion
12740         (valLogicAndOr): result is unsigned
12741         (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
12742         * src/SDCCsymt.c (computeType),
12743         * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
12744         must not cause an unsigned operation
12745         * src/pic/glue (pic14emitRegularMap),
12746         * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
12747
12748 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
12749
12750         * src/pic/pcode.c (PCodeID): commented out left over debug code
12751
12752 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
12753
12754         * support/valdiag/tests/overflow.c: added shift tests
12755         * src/pic/device.c,
12756         * src/pic/gen.c,
12757         * src/pic/gen.h,
12758         * src/pic/glue.c,
12759         * src/pic/main.c,
12760         * src/pic/pcode.c,
12761         * src/pic/pcode.h,
12762         * src/pic/pcodepeep.c,
12763         * src/pic/pcoderegs.c,
12764         * src/pic/ralloc.c,
12765         * src/pic/ralloc.h: applied patch from Slade Rich;
12766         added support for multiple code pages and multiple RAM banks on the
12767         PIC 14 port. The ASM files now no longer simply assume all the
12768         code / RAM are in the same page / bank. This means the linker can
12769         safely allocate code/RAM of separate ASM files to different pages/banks.
12770         * doc/sdccman.lyx: added Slade's tips
12771         * src/mcs51/peeph.def: fixed bug #880768
12772
12773 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12774
12775         * src/hc08/ralloc.c (rematStr): fixed bug #879282
12776         * src/SDCCast.c (decorateType): fixed bug #880197
12777
12778 2004-01-20  Michael Hope  <michaelh AT juju.net.nz>
12779
12780         * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
12781         getopt.h.
12782
12783         * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
12784         strtof is not part of C89 and isn't included with Mac OS X.
12785
12786 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12787
12788         * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
12789         shiftL2Left2Result): fixed bug #879326
12790         (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
12791         (genMultOneByte): fixed bug in signed vs unsigned multiplication
12792         * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
12793         address fetch for clr instruction
12794         * device/lib/hc08/_mulint.c: created optimized assembly version
12795         * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
12796
12797 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
12798
12799         * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
12800         proposed in FR #877103
12801
12802 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
12803
12804         * src/SDCCval.c (cheapestVal): added missing checks
12805         * src/SDCCicode.c (usualBinaryConversions): fixed condition
12806         * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
12807
12808 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
12809
12810         * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
12811         equal operands
12812
12813 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
12814
12815         * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
12816         loaded with the linker search paths (-L arguments) and the libraries
12817         to be linked with the current source (-l arguments). Changes
12818         currently will affect only the pic16 port.
12819         * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
12820         include path the port specific paths and port specific libraries,
12821         * gplink command now contains the $3 argument,
12822         * src/pic16/device.h,
12823         * src/pic16/device.c,: structure PIC_device is made public and
12824         renamed to PIC16_device, the same for variable Pics which is renamed
12825         to Pics16. Updated all references to them.
12826         * src/pic16/glue.c (pic16glue): corrected bug with code
12827         initialization which bypassed the variable initializations block.
12828
12829         * device/lib/pic16/Makefile.rules: removed --penable-stack from
12830         COMPILE_FLAGS and added the --nostdinc option
12831
12832 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12833
12834         * device/include/mc68hc908jb8.h: Register defs for another member
12835         of the hc08 family. Contributed by Bjorn Bringert - thanks!
12836
12837 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
12838
12839         Documenting changes from previous commits.
12840         * configure.in (version 1.56),
12841         * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
12842         when generating output files to configure the pic16 library,
12843         but now I've commented it out, since gputils aren't installed in the
12844         SF compile farm, so library won't compile
12845
12846         * device/lib/Makefile.in (version 1.56): initially I've added in
12847         target 'all' the prerequestive 'model-pic16' so it compiled the
12848         pic16 library, but now I've commented it out for the same reasons
12849         above,
12850         * added targets 'model-pic16' and 'objects-pic16' to compile the
12851         library
12852         * added target 'port-specific-objects-pic16' to handle the
12853         generated libraries and copy them into the build/ directory
12854         * added target 'clean-intermediate-pic16' to clean intermediate
12855         files into pic16 directory
12856         * in target 'installdirs' added line to create directory pic16 in
12857         the installation path
12858
12859         * device/include/Makefile.in (version 1.11): in target 'install'
12860         added lines to copy all header files to installation path,
12861         * in target 'installdirs' added line create directory for pic16
12862         headers in the installation path
12863
12864 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
12865
12866         * src/ds390/gen.c (genCall): fixed a double use of acc and b after
12867          a function call
12868
12869 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
12870
12871         * configure,
12872         * device/lib/configure.in,
12873         * device/lib/configure: fixed for autoconf 2.57
12874
12875 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12876
12877         * src/z80/main.c (_parseOptions): fixed the portmode= command line
12878         option so that it actually works. Made it specific to the z80, since
12879         the gbz80 doesn't have these kinds of I/O ports.
12880
12881 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12882
12883         * device/include/z180.h,
12884         * device/lib/_memcpy.c,
12885         * device/lib/_memmove.c,
12886         * device/lib/_mulint.c,
12887         * device/lib/ser_ir.c,
12888         * device/lib/ser_ir_cts_rts.c,
12889         * device/lib/_strcmp.c,
12890         * device/lib/_strtok.c: fixed pragmas to non-deprecated form
12891         * src/z80/main.c (_process_pragma): add support for pragmas bank and
12892         portmode; added deprecation warning for bank= and protmode= forms.
12893         Also, guard against buffer overflow.
12894         * src/z80/gen.c (aopGet): generate better code for sfr banked read
12895
12896 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12897
12898         * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
12899         changed interrupt vector table generation to only emit declared vectors.
12900         * device/include/Makefile.in: added missing backslash
12901         * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
12902
12903 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
12904
12905         Mainly changes to support compilation of the device libraries
12906         * src/pic16/device.c: stack is allocated via symbol and not
12907         via literal number. The symbol is placed in the corresponding
12908         position of the data ram
12909         * (pic16_dump_section): relocatable and absolute uninitialized
12910         data are now emitted in sorted order to reduce section naming,
12911         * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
12912         weren't marked as being in the access bank,
12913
12914 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
12915
12916         Added portion of GNU PIC Library under the directory
12917         device/include/pic16 and device/lib/pic16. These files
12918         contain the declarations of SFRs for the PIC18Fxx2 devices.
12919         The directory is initialized via configure from toplevel.
12920
12921 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
12922
12923         * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
12924         the spilllocations to be compared correctly
12925
12926 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
12927
12928         * src/SDCCast.c (decorateType): fixed bug introduced today
12929
12930 2004-01-12  Borut Razem <borut.razem AT siol.net>
12931
12932         * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
12933         doc/sdccman.lyx: upper case pragmas are deprecated
12934
12935 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
12936
12937         * src/SDCCast.c (decorateType): replacing 'ul > 0' by  '!ul' results
12938         in simpler and even better code
12939
12940 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
12941
12942         * src/SDCCicode.c (operandOperation): fixed bug #874819
12943         * src/SDCCast.c (decorateType): fixed
12944         char foo (unsigned long ul) { return ul > 0; }
12945
12946 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12947
12948         * doc/sdccman.lyx: Moved and added some sections, small changes
12949         all over. Telling LaTeX to be less strict with word spacing
12950         to better keep the right margin. Changed some notes about
12951         maintainance of the ports in section 3.2.1 - is it OK like this?
12952
12953 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
12954
12955         SDCC source changes:
12956         * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
12957         convilong): modified to inform the pic16 port that builtin functions
12958         are external
12959
12960         PIC16 PORT specific changes:
12961         * src/pic16/device.c pic16_dump_equates() added,
12962         processor registers declared internally by the port are emitted in
12963         the translation as equates,
12964         * src/pic16/gen.c: inline code is passed unprocessed to the
12965         translation,
12966         * (pic16_popGetLit2): fnuction modified to take second operand as
12967         pCodeOp pointer and not as literal,
12968         * (popRegFromIdx): prefixed with pic16_,
12969         * (pic16_popCombine2): modified to receive already allocated pCode
12970         operands,
12971         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
12972         * (genFunction): initializes local stack frame and pushes on stack
12973         all the registers used by this function,
12974         * (genEndFunction): restores all registers from stack and restores
12975         stack frame,
12976         * src/pic16/glue.c (pic16emitRegularMap): various changes and
12977         improvements,
12978         * (pic16glue): changed the program startup sequence,
12979         * added new dbName code 'A' for functions placed in absolute section
12980         * src/pic16/main.c: added function attribute _naked,
12981         * added pragma 'code' to place a fnuction at an absolute address,
12982         * added command line arguments --debug-ralloc and --pcode-verbose,
12983         * (_pic16_finiliseOptions): options.all_callee_saves is set by default
12984         * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
12985         * (pic16_newpCodeOpLit2): modified to take the second operand as
12986         pCodeOp pointer,
12987         * (pic16_printpBlock): modified to emit each function in a separate
12988         section,
12989         * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
12990         UPPER for immediate operands,
12991         * src/pic16/pcodepeeph.c: added peephole support for the LFSR
12992         instruction,
12993         * src/pic16/peeph.def: all peepholes with movff are commented out,
12994         because there is a problem in the pcode peep optimizer,
12995         * src/pic16/ralloc.c: the register allocator can now reuse local
12996         function symbols for another function. This saves register usage.
12997         * src/pic16/ralloc.h: added flag isLocal in structure regs,
12998
12999         Added file src/pic16/NOTES with information about program writing on
13000         the current port version.
13001
13002 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13003
13004         * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
13005         and peephole 252 (array access)
13006
13007 2004-01-09  Borut Razem <borut.razem AT siol.net>
13008
13009         * src/SDCCmain.c : fixed #872250: -l command line defined library
13010           files are scanned before standard library files
13011
13012 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13013
13014         * src/SDCCast.c (decorateType): fixed bug #874046
13015
13016 2004-01-09  Borut Razem <borut.razem AT siol.net>
13017
13018         * support/scripts/sdcc.nsi: remove previous installation
13019
13020 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13021
13022         * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
13023         bytes for last interrupt vector (mcs51)
13024         * sdcc.spec: fixed typo
13025
13026 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13027
13028         * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
13029         gen51Code): more efficient parameter receive for --model-large
13030         ("bug" #845294)
13031
13032 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13033
13034         * src/ds390/main.c,
13035         * src/z80/main.c: added missed needLinkerScript flags (more than
13036         one port structure defined in these file)
13037         * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
13038         bug #795325
13039
13040 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
13041
13042         * src/SDCCmain.c: removed various references to DEFAULT_PORT
13043         * src/port.h: added flag needLinkerScript in port->linker
13044         structure to inform whether to create a .lnk file or not,
13045         * src/avr/main.c,
13046         * src/ds390/main.c,
13047         * src/hc08/main.c,
13048         * src/mcs51/main.c,
13049         * src/pic/main.c,
13050         * src/pic16/main.c,
13051         * src/xa51/main.c,
13052         * src/z80/main.c: changed appropriately to configure
13053         needLinkerScript flag
13054         * src/pic/gen.c,
13055         * src/pic16/gen.c (genAddrOf): fixed bug #863624
13056         * src/pic/glue.c: added variable udata_section_name to
13057         override default uninitialized data segment definition for
13058         devices only with SHAREBANK memory (reported from Erik Epetrich)
13059         * (pic14emitOverlay): modified to emit a commented overlay segment
13060         directive when no overlay data exist
13061         * (picglue): modified to emit uninitialized data segment
13062         according to udata_section_name
13063         * src/pic/main.c (_pic14_parseOptions): added command line
13064         options --udata-section-name=[name] to override default
13065         udata definition name
13066         * modified _linkCmd and _asmCmd to include compiler passed
13067         arguments via -W option
13068         * src/pic16/main.c: added $l in _asmCmd, changed extension for
13069         object file from '.rel' to '.o' in port->linker structure,
13070         changed size of fptr from 2 to 3 in port structure
13071
13072 2004-01-07  Borut Razem <borut.razem AT siol.net>
13073
13074         * support/scripts/sdcc.nsi: update PATH
13075         * support/scripts/sdcc.ico: craeted
13076
13077 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
13078
13079         * device/include/Makefile.in: fix install
13080         * doc/Makefile: fix install
13081
13082 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13083
13084         * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
13085         in bug #860505
13086         * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
13087         how the function variable allocation summary is displayed; also
13088         include information about variables allocated to the overlay
13089         segment
13090
13091 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13092
13093         * as/mcs51/lkmain.c: Help about -Y option
13094         * as/mcs51/lkarea.c: Fixed gcc warnings
13095
13096 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
13097
13098         * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
13099         fixed warning
13100         * support/valdiag/tests/overflow.c: added
13101         * src/SDCCast.c (decorateType),
13102         * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
13103         LEFT_OP (left shift)
13104
13105 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13106
13107         * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
13108         (default behaviour).
13109
13110 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13111
13112         A python script to validate compiler diagnostic messages. It can be
13113         used to verify that sdcc complains about bad c source code and
13114         gives a good location of the error.
13115         * support/valdiag/Makefile,
13116         * support/valdiag/valdiag.py,
13117         * support/valdiag/tests/*
13118
13119 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13120
13121         * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
13122         * src/SDCCsymt.c (newEnumType),
13123         * src/SDCCsymt.h
13124         * support/Util/SDCCerr.c,
13125         * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
13126         enum related bugs.
13127         * support/regression/tests/enum.c: added test for enum values that
13128         require at least 2 bytes of storage.
13129
13130 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
13131
13132         * src/common.h: added ifndef/define/endif macros
13133         around the header file.
13134         Bug reported from Jesus Calvino-Fraga
13135
13136 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
13137
13138         * sdcc.spec: updated
13139         * device/include/Makefile.in: don't install CVS directories
13140         * device/lib/Makefile.in: added removal of CVS directories after install
13141         * doc/Makefile: fixed install, added local_icons
13142         * sim/ucsim/gui.src/Makefile.in: fixed an old typo
13143         * src/mcs51/gen.c (genRightShift): fixed bug #870788
13144         * src/ds390/gen.c (genRightShift): fixed bug #870788
13145         * src/SDCCast.c (decorateType): fixed bug #870781
13146
13147 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
13148
13149         PIC16 port related changes:
13150         * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
13151         added variable stackPos,
13152
13153         * gen.c: genCall, assignResultValue: added support for
13154         pushing/retrieving function parameters to/from stack,
13155         genFunction,genEndFunction: setup stack frame for the
13156         generated function,
13157         genAddrOf: will be changed according to bug 863624
13158
13159         * added files genutils.c and genutils.h which contain gen*
13160         debugged and optimised functions extracted from gen.c
13161
13162         * glue.c: added variable 'externs' which holds extern symbols,
13163         pic16emitRegularMap: is modified to properly handle relocatable
13164          symbols under the new scheme,
13165         pic16createInterruptVect: is modified
13166         pic16printPublics: is modified to emit 'global' assembler directives,
13167         added pic16_printExterns to print extern symbols,
13168         pic16glue: initializes stack/frame pointer in the beginning of
13169         the assembly output. Temporary hack, will be corrected later,
13170         because gplink yet does not support stack and SDCC does not
13171         yet support a type of crt0.o object to create the final binary.
13172
13173         * Removed many lines that contain 8051 legacy code.
13174         * The code is finally placed under a 'code' directive.
13175         * Added port specific options.
13176
13177         * _process_pragma: simplified since now we do not need *special*
13178         include file to define SFR registers. But a separate header
13179         will be needed. This will be developed later.
13180         * _pic16_parseOptions: added, parses port specific options:
13181         --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
13182         --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
13183         --preplace-udata-with=
13184
13185         * _pic16_setDefaultOptions: modified to initialize section names,
13186         but hack is temporarly out of order since it needs improvement.
13187         * _pic16_genAssemblerPreamble: configuration words are emitted by
13188         their address instead of their name. This part is incomplete and
13189         supports only the 18Fxx2 devices. Other devices will emit an error
13190         during assembly since they do not contain the same set of config
13191         registers
13192         * _pic16_genIVT: is modified,
13193
13194         * pcode.c: added definitions for some hardware registers that are needed
13195         for stack support
13196         * added flag is2LitOp and variable pci_magic in pCodeInstruction.
13197         All PCI entries are updated. Now LFSR is supported.
13198         * Removed pic16_pciTRIS is mentioned by mdubuc in source
13199         * added pic16_newpCodeOpLit2 to support instructions with
13200         two literal arguments
13201         * pic16_pCode2str: corrected code that emits assembler instructions
13202         with two literal operands and those that have an access bit modifier
13203         * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
13204         this fixes a bug which caused some labels to be lost, when an
13205         assembler directive was added, i.e. banksel,
13206         * pic16_FixRegisterBanking: improved logic that causes the insertion
13207         of bank switching,
13208         * InlineFunction: functions that are called once, are not any more
13209         inlined. This can be a port option in the future,
13210
13211         * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
13212
13213         * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
13214         hold the corresponding uninitialized symbols,
13215         * pic16_allocProcessorRegister: registers have explicit marked the
13216         accessBank field,
13217         * pic16_allocInternalRegister: registers are explicit marked as
13218         not used,
13219         * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
13220         processing list, so bit registers were lost,
13221         *
13222
13223         * ralloc.h: added field 'accessBank' and original symbol operand
13224         in register definition,
13225         * removed the field isMapped from register definition,
13226
13227         ** Several functions have been removed from various sources:
13228         BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
13229         pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
13230         isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
13231         pic16_assignRelocatableRegisters
13232
13233         ** others have been introduced:
13234         pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
13235         pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
13236
13237 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
13238
13239         * support/scripts/inc2h.pl: changed definition of BIT_AT
13240         to emit 'sbit at' instead of 'bit at'. This was a request.
13241
13242         PIC16 port related preliminary changes:
13243         * gen.c: prefixed function popRegFromString with
13244         pic16_ and all references to it corrected
13245         * pcode.c: all pic16_pc_* hardware registers prefixed
13246         with underscore (_),
13247         pic16_popCopyGPR2Bit(): function sets register wasUsed=1
13248         * ralloc.c: newReg(): when register is REG_SFR then
13249         set address to rIdx,
13250         pic16_allocProcessorRegister(): marks register wasUsed=0
13251         pic16_writeUsedRegs(): added a call to assign processor
13252         registers via pic16_assignFixedRegisters
13253
13254 2004-01-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13255
13256         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
13257         as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
13258         variables in unused register banks.  Also the SSEG is placed
13259         wherever there is enough space for it, and IDATA can be anywhere
13260         in internal RAM.  For now compile using -Wl-Y[stack_size].
13261         The mem file is different for this option as well, since it
13262         makes no sense of talking about DSEG lenght.
13263
13264 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
13265
13266         * src/SDCClrange.c: fixed bug 869095 that caused segfault
13267         in certain cases, e.g. when ROM assignment, patch provided
13268         from Albert den Haan.
13269
13270 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
13271
13272         Many signedness and type propagation fixes:
13273         * src/SDCCicode.c: made geniCodeCast() static
13274         replaced SPEC_ by IS_ (cosmetic)
13275         (operandOperation): fixed div and mod operation
13276         (usualBinaryConversions): added support for promotion of char
13277         (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
13278         (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
13279         (geniCodeAdd): an array index will stay unsigned, even if promoted
13280         from char to int
13281         (geniCodeArray): ditto
13282         * src/SDCCicode.h: made geniCodeCast() static: removed prototype
13283         * src/SDCCsymt.c (computeType): added more support for char;
13284         promotion of char is selectable by promoteCharToInt, fixed signedness
13285         for all cases
13286         (powof2): replaced (unsigned long) by (TYPE_UDWORD)
13287         * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
13288         * src/SDCCval (val*): replaced signedness calculation by
13289         computeType()
13290         rearranged if-branches (cosmetic)
13291         (valShift): added warning W_SHIFT_CHANGED
13292         (valCompare): fixed problem with different types
13293         * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
13294         * support/regression/tests/literalop.c: added many cases
13295         * support/regression/tests/ast_constant_folding.c: changed finally to
13296         'unsigned int'
13297         * .version: new year, new version: 2.3.7
13298         * src/SDCCmain.c (main): applied patch #866468
13299         * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
13300         provided by Scott Bronson
13301         * doc/sdccman.lyx: updated documentation for sdcdb
13302         updated and added chapter tips
13303
13304 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13305
13306         * src/SDCCsymt.h: missing from yesterday's commits
13307
13308 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13309
13310         * src/SDCC.y (struct_or_union_specifier),
13311         * support/Util/SDCCerr.c,
13312         * support/Util/SDCCerr.h: verify that struct & union tags are used
13313         as declared.
13314
13315 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13316
13317         * src/SDCCglobl.h: missing from yesterday's commits
13318
13319 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13320
13321         * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
13322         sft_attributes, struct_declaration, parameter_declaration,
13323         type_name, start_block, declaration_list),
13324         * src/SDCC.lex (check_type): support redefinition of typedef names
13325
13326 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13327
13328         * src/mcs51/gen.c (genPlus): added special handling for 256 byte
13329         aligned xdata arrays. Erik helped me with the if clause.
13330
13331 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13332
13333         * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
13334         warning
13335
13336 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13337
13338         * src/SDCCast.h,
13339         * src/SDCCast.c (newAst_),
13340         * src/SDCCicode.h,
13341         * src/SDCCicode.c (ast2iCode, newiCode),
13342         * src/SDCCglobl.h,
13343         * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
13344         expr, statement, expression_statement, selection_statement,
13345         iteration_statement, expr_opt, jump_statement): foundation for tracking
13346         sequence points
13347         * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
13348         point code too)
13349
13350 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13351
13352         * support/Util/SDCCerr.c,
13353         * src/SDCCast.h,
13354         * src/SDCCast.c (createCase, createDefault, decorateType),
13355         * src/SDCClabel.c (labelUnreach),
13356         * src/SDCC.y (labeled_statement, jump_statement): More improvements
13357         to error messages.
13358         * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
13359         (with thanks to Stas Sergeev)
13360         * device/include/time.h,
13361         * device/lib/time.c (CheckTime): suppress unreachable code warning
13362
13363 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13364
13365         * src/SDCCast.c (createIvalCharPtr),
13366         * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
13367         bug #753752)
13368         * support/regression/tests/nullstring.c: tests for these two bugs
13369
13370 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13371
13372         * support/Util/SDCCerr.h,
13373         * support/Util/SDCCerr.c (E_NOT_ALLOWED),
13374         * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
13375         about storage class and 'at' used inside struct or union
13376         * src/SDCCBBlock.c (iCodeFromeBBlock),
13377         * src/SDCCcse.c (ifxOptimize),
13378         * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
13379         printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
13380         printIval, emitStaticSeg, emitOverlay),
13381         * src/SDCClabel.c (deleteIfx),
13382         * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
13383         * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
13384         gatherAutoInit, processParms),
13385         * support/Util/SDCCerr.h,
13386         * support/Util/SDCCerr.c (werrorfl): Support for better error location
13387         reporting for post-parse errors.
13388
13389 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13390
13391         * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
13392         implicit casts via union; they don't work on big endian systems
13393         (possible fix for bug #861138)
13394
13395 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13396
13397         (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
13398         * src/mcs51/main.c: fixed the fix for bug #737001
13399
13400 2003-12-15  Borut Razem <borut.razem AT siol.net>
13401
13402         * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
13403
13404 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13405
13406         * support/makebin/makebin.c: put output in binary mode
13407
13408 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13409
13410         * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
13411         xdata and data memory on startup. Set the environment variable
13412         SDCC_NOGENRAMCLEAR to disable this.
13413         * src/mcs51/peephole.def,
13414         * src/ds390/peephole.def: using the atomic test and clear instruction jbc
13415         (allows non-interrupt and interrupt code to safely compete for a resource
13416         without the non-interrupt code having to disable interrupts)
13417
13418 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13419
13420         * src/SDCCicode.c (geniCodeAdd),
13421         * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
13422         with valFromType if type might be a pointer and host is big endian).
13423         * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
13424         types, not just integer types.
13425         * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
13426         multiply defined with mismatching "at" address.
13427
13428 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13429
13430         * src/ds390/main.c (PORT tininative_port): fixed bug #858416
13431         * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
13432         * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
13433         with embedded nulls (fixed bug #753752)
13434
13435 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13436
13437         * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
13438         Apparently this did not see much testing (endless loop)
13439
13440 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13441
13442         * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
13443
13444 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13445
13446         * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
13447         gracefully handle NULL memmap pointers
13448
13449 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13450
13451         * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
13452         instead of deleting the iCode when an operand is volatile
13453         * src/z80/gen.c (genDummyRead),
13454         * src/mcs51/gen.c (genDummyRead),
13455         * src/ds390/gen.c (genDummyRead),
13456         * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
13457         not just IC_RIGHT
13458         * src/SDCCicode.c (geniCodeCall): fixed bug #851607
13459         * src/SDCC.y: fixed bug #850420
13460
13461 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13462
13463         Applied z80 i/o port patch from Peter Townson and fixed some operators
13464         to better handle operands in A register.
13465         * device/include/z180.h
13466         * src/SDCC.y
13467         * src/SDCCglue.c
13468         * src/z80/gen.c
13469         * src/z80/gen.h
13470         * src/z80/main.c
13471         * src/z80/peeph-z80.def
13472         * src/z80/peeph.def
13473         * src/z80/z80.h
13474
13475 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13476
13477         * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
13478
13479 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13480
13481         * device/lib/hc08/_mullong.c: Removed extra #endif
13482
13483 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13484
13485         * sim/ucsim/hc08.src/inst.cc,
13486         * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
13487         carries from x to h
13488         * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
13489         * src/hc08/gen.c (XAccRsh): fixed problem with right shift
13490         * device/include/stdarg.h: fixed varargs for hc08
13491         * device/lib/Makefile.in,
13492         * device/lib/hc08/Makefile,
13493         * device/lib/hc08/_mulint.c,
13494         * device/lib/hc08/_mullong.c: fixed some endian problems
13495
13496 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13497
13498         * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
13499         * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
13500         * device/lib/_gptrget.c,
13501         * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
13502
13503 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13504
13505         * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
13506         * src/SDCCast.c (astErrors): fixed bug #846007
13507         * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
13508
13509 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13510
13511         * src/SDCCast.c (decorateType): disabled a transformation I added in
13512         revision 1.188 (access to fields of a structure at an absolute address);
13513         it breaks with bitfields, extern declarations, and gcse analysis.
13514         * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
13515         could be assigned through a pointer, so don't complain.
13516         * src/SDCCast.c (astErrors),
13517         * src/SDCCast.h,
13518         * src/SDCCglue.c (emitRegularMap): fixed bug #847813
13519
13520 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
13521
13522         * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
13523         * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
13524         output of __config directives, since gpasm now supports them
13525         * src/pic16/main.c (_pic16_finaliseOptions): define MCU
13526         pre-processor macro, i.e. -DMCU=p18f452
13527         * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
13528         and modified to handle 'cast' icode similarly to '=' icode
13529         * src/pic16/device.h (typedef struct PIC_device): added field
13530         'extMIface' to indicate that chip has external memory interface
13531         * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
13532         18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
13533         18F8720
13534
13535 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13536
13537         * src/SDCC.y (pointer): fixed bug #846006
13538         * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
13539         * src/SDCCast.c (decorateType): fixed bug #846009
13540         * src/ds390/peeph.def,
13541         * src/ds390/gen.c (genAnd, genOr),
13542         * src/mcs51/peeph.def,
13543         * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
13544
13545 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13546
13547         Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
13548         * src/SDCCdflow.c
13549         * src/SDCCcse.c
13550         * src/SDCCcse.h
13551         * src/SDCCBBlock.h
13552         * src/SDCCBBlock.c
13553
13554 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
13555
13556         fixed bug #845089
13557         * src/SDCCbitv.h,
13558         * src/SDCCbitv.c: added function to free a bitvector
13559         * src/SDCClrange.h,
13560         * src/SDCClrange.c: added function to recompute the liveranges
13561         * src/avr/ralloc.c,
13562         * src/ds390/ralloc.c,
13563         * src/hc08/ralloc.c,
13564         * src/mcs51/ralloc.c,
13565         * src/pic/ralloc.c,
13566         * src/pic16/ralloc.c,
13567         * src/xa51/ralloc.c,
13568         * src/z80/ralloc.c: recompute the liveranges after register packing
13569
13570 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
13571
13572         * src/SDCCloop.c (newInduction): fixed bug #845630
13573
13574 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13575
13576         * src/SDCCsymt.c (compareTypesExact): disabled debugging output
13577         inadvertantly left behind from my 2003-11-12 change
13578
13579 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13580
13581         Updated headers I neglected to commit yesterday.
13582         * src/SDCClrange.h,
13583         * src/SDCCicode.h
13584
13585 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13586
13587         * src/SDCCcse.c (algebraicOpts): fixed bug #773153
13588         * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
13589         * src/SDCCopt.c (eBBlockFromiCode),
13590         * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
13591         the creation of the key hash table from the sequencing so it can be used
13592         earlier (for some GCSE bug fixes still pending)
13593
13594 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13595
13596         * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
13597         * support/regression/tests/addsub.c: testing genPlus shortcut
13598
13599 2003-11-15  Borut Razem <borut.razem AT siol.net>
13600
13601         * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
13602
13603 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13604
13605         * src/SDCCcse.c (cseBBlock): fixed bug #527779
13606         * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
13607         ordering is immaterial.
13608         * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
13609
13610 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13611
13612         * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
13613         * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
13614         (SIGSEV) of bug #840381
13615         * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
13616         unlink new file before rename if new and old filenames are the same)
13617
13618 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13619
13620         * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
13621         uninitialized variables) for the mcs51. Set environment variable
13622         SDCC_GENRAMCLEAR to test.
13623         xdata initialization slightly shorter
13624
13625 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13626
13627         * src/SDCCsymt.h,
13628         * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
13629         #838241 & 780691 (basicly the same bug)
13630         * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
13631         * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
13632
13633 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
13634
13635         * src/SDCCmain.c (linkEdit): "fix" #834252
13636
13637 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13638
13639         * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
13640         * src/SDCCast.h,
13641         * src/SDCC.y: fixed bug #819403
13642
13643 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13644
13645         * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
13646         the reentrant attribute.
13647         * src/hc08/gen.c (genPackBits): added missing stack readjustment
13648         * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
13649         simulation
13650         * src/SDCCast.c (decorateType): fixed bug with storage class not being
13651         updated during pointer dereference; f.e. ~(((char *)1)*) was being
13652         erroneously reduced to a literal.
13653         * src/hc08/ralloc.c (packRegisters, rematStr),
13654         * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
13655         some cases
13656
13657 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13658
13659         * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
13660         * doc/sdccman.lyx: changed from 'article' to 'book'
13661         * doc/Makefile: readded test_suite_spec and cdbfileformat
13662
13663 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
13664
13665         * device/include/stdlib.h: include malloc.h to comply with ANSI
13666         * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
13667
13668 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13669
13670         * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
13671         * doc/clean.mk: also remove *.out files
13672         * doc/sdccman.lyx: some additions, larger top/bottom margins
13673
13674 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13675
13676         * src/SDCC.y: fixed bug #837365
13677         * support/regression/tests/bitopcse.c
13678         * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
13679         a symbol (might be valop instead)
13680         * device/lib/Makefile.in: added errno.c to HC08SOURCES
13681         * device/lib/clean.mk: added hc08 to the cleaning list
13682
13683 2003-11-04  Borut Razem <borut.razem AT siol.net>
13684
13685         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
13686           made 2003-11-04
13687         * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
13688           as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
13689           malloc is declared in standard stdlib.h
13690
13691 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13692
13693         * device/lib/hc08/Makefile: need to clean .rel not .o files
13694         * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
13695
13696 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13697
13698         * src/port.h,
13699         * src/hc08/main.c,
13700         * src/mcs51/main.c,
13701         * src/ds390/main.c,
13702         * src/z80/main.c,
13703         * src/avr/main.c,
13704         * src/pic/main.c,
13705         * src/pic16/main.c,
13706         * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
13707         * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
13708         tests (which uses the port's oclsExpense function)
13709         * src/SDCC.y,
13710         * src/SDCCast.c,
13711         * src/SDCCicode.c,
13712         * src/hc08/gen.c,
13713         * src/ds390/gen.c,
13714         * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
13715
13716 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13717
13718         * src/SDCCcse.c (ifxOptimize),
13719         * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
13720         an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
13721         deleting the IFX iCode.
13722         * src/hc08/ralloc.c: reduced unneeded slocs
13723         * src/hc08/gen.c: fixed bug in asmopToBoolean
13724
13725 2003-11-04  Borut Razem <borut.razem AT siol.net>
13726
13727         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
13728           support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
13729           as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
13730           transferred to configure
13731
13732 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
13733
13734         Use headers defined in the C[++] standards:
13735         * sim/ucsim/gui.src/serio.src/fileio.cc
13736         * sim/ucsim/gui.src/serio.src/frontend.cc
13737         * sim/ucsim/gui.src/serio.src/main.cc
13738         * sim/ucsim/gui.src/serio.src/posix_signal.cc
13739         * support/Util/NewAlloc.c
13740         * as/hc08/lklibr.c
13741         * as/mcs51/lklibr.c
13742         * as/z80/aslist.c
13743         * as/z80/assym.c
13744
13745 2003-11-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13746
13747         * Added MSVC projects for hc08 assembler and linker:
13748         all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
13749         /as/hc08/link_hc08.dsp
13750
13751 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
13752
13753         * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
13754
13755 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
13756
13757         * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
13758
13759 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13760
13761         * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
13762
13763 2003-10-31  Borut Razem <borut.razem AT siol.net>
13764
13765         * support/cpp2/cpplib.h,
13766           support/cpp2/cpplib.c,
13767           support/cpp2/cpplex.c,
13768           support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
13769           to switch _asm block preprocessing on / off. Default is
13770           #pragma preproc_asm +
13771
13772 2003-10-31  Borut Razem <borut.razem AT siol.net>
13773
13774         * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
13775           when outputting comment blocks (when executed with -C option) and
13776           _asm (SDCPP specific) blocks
13777
13778 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13779
13780         * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
13781
13782 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
13783
13784         * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
13785
13786 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
13787
13788         * src/SDCCmain.c (linkEdit): "fixed" bug #833605
13789         * src/SDCCast.c (decorateType): fixed bug #832664
13790
13791 2003-10-31  Borut Razem <borut.razem AT siol.net>
13792
13793         * support/cpp2/cpplex.c: fixed for SDCPP:
13794           comments(when executed with -C option) and _asm blocks
13795           were included even if they where in skipped #if block.
13796           Applied solution from GCC cpp 3.3.2
13797
13798 2003-10-31  Borut Razem <borut.razem AT siol.net>
13799
13800         * src/SDCC.lex: sdcc now understands both formats:
13801           '# <line_number> <file_name>' and
13802           '#line <line_number> <file_name>'
13803         * support/cpp2/cppmain.c: sdcpp now generates the standard
13804           '# <line_number> <file_name>' instead of former
13805           '#line <line_number> <file_name>'
13806
13807 2003-10-30  Borut Razem <borut.razem AT siol.net>
13808
13809         * support/cpp2/cpphash.h,
13810         * support/cpp2/cpplib.h
13811         * support/cpp2/cpplex.c,
13812         * support/cpp2/cppmain.c,
13813         * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
13814
13815 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13816
13817         Fixed a number of problems revealed by bug #827883.
13818         * src/SDCCloop.c (loopInvariants): Spill location of the
13819         result operand should be recomputed if extracted from
13820         a loop. Also, don't extract assignments of an iTemp
13821         from a literal.
13822         * src/SDCCast.c (isConformingBody): loop reversal should
13823         not occur if the control variable is involved with a
13824         relational operator.
13825
13826 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
13827
13828         * .version: bumped to 2.3.6 to reflect the big improvements
13829         made by Erik and Klaus. Thanks!
13830
13831 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
13832
13833         Replaced the livrange code.
13834         * src/SDCClrange.c: added new LR code
13835         * src/SDCCloop.c,
13836         * src/SDCCBBlock.h: removed remainig parts from old LR code
13837         * src/ds390/ralloc.c,
13838         * src/ds390/gen.c: minor fixes to make it work with new code
13839
13840 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13841
13842         * as/hc08/asm.h,
13843         * as/hc08/lkrloc.c,
13844         * src/hc08/gen.c,
13845         * src/hc08/ralloc.c: Fix various warnings related to the hc08
13846         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
13847         (tweaked fix for bug #818696)
13848
13849 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13850
13851         * src/z80/ralloc.c (joinPushes): Fixed bug #828742
13852
13853 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13854
13855         * src/SDCCmain.c,
13856         * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
13857         * src/mcs51/gen.c (gencjneshort),
13858         * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
13859         more efficient (per Scott Bronson's suggestion)
13860
13861 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13862
13863         Extended the semantics of the critical keyword to include
13864         individual statements. See RFE #827755 and #799831
13865         * src/SDCC.y
13866         * src/SDCCicode.c
13867         * src/SDCCopt.c
13868         * src/SDCCast.c
13869         * support/Util/SDCCerr.c
13870         * support/Util/SDCCerr.h
13871         * src/mcs51/gen.c
13872         * src/ds390/gen.c
13873         * src/hc08/gen.c
13874
13875 2003-10-19  Borut Razem <borut.razem AT siol.net>
13876
13877         * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
13878
13879 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13880
13881         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
13882         Fixed bug #818696
13883         * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
13884         and predecrement operand is displayed
13885
13886 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
13887
13888         * src/SDCCval.c (valMinus): fixed bug #826041
13889
13890 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13891
13892         Some hc08 related updates that I missed earlier
13893         * sim/ucsim/stypes.h
13894         * support/regression/ports/hc08/spec.mk
13895
13896 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13897
13898         New target "hc08" for the Motorola 68hc08 family of micros
13899
13900         * configure
13901         * configure.in
13902         * Makefile
13903         * src/hc08/*
13904         * src/SDCCmain.c
13905         * src/port.h
13906         * sim/ucsim/hc08.src/*
13907         * sim/ucsim/configure.in
13908         * src/ucsim/configure
13909         * sim/ucsim/packages_in.mk
13910         * as/hc08/*
13911         * as/Makefile
13912         * device/include/mc68hc908qy.h
13913         * device/lib/hc08/*
13914         * device/lib/Makefile.in
13915         * support/regression/ports/hc08/*
13916         * support/regression/Makefile
13917
13918 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13919
13920         * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
13921         regression test
13922         * src/ds390/gen.c (genCast): fixed bug #821957
13923
13924 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
13925
13926         * device/lib/logf.c: "fixed" overlay bug
13927         * support/regression/ports/host/spec.mk: added m library
13928         * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
13929         * support/regression/tests/float_trans: added (for Eric)
13930
13931 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
13932
13933         * src/mcs51/gen.c (genCpl): fixed bug
13934         http://sf.net/mailarchive/message.php?msg_id=6263915
13935
13936 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
13937
13938         * src/SDCCast.c (decorateType): added extended constant folding
13939         * src/SDCCsymt.c (computeType): cleanup
13940         * src/SDCCval.c (valShift): minor optimization
13941         * support/regression/tests/ast_constant_folding.c: added
13942
13943 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13944
13945         * src/SDCCmain.c: removed some unintended changes
13946
13947 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13948
13949         * src/SDCCmain.c (setParseWithComma): fixed bug #816685
13950         * src/z80/gen.c: fixed part of bug #817589
13951         * src/SDCCsymt.c (checkFunction): fixed bug #817895
13952
13953 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
13954
13955         Replaced cast (void **) with (void *) to avoid gcc 3 warning:
13956         * src/SDCCcflow.c
13957         * src/SDCCcse.c
13958         * src/SDCCdflow.c
13959         * src/SDCClabel.c
13960         * src/SDCClrange.c
13961         * src/SDCCmem.c
13962         * src/SDCCopt.c
13963         * src/SDCCpeeph.c
13964         * src/SDCCset.c
13965         * src/avr/ralloc.c
13966         * src/ds390/ralloc.c
13967         * src/izt/ralloc.c
13968         * src/mcs51/ralloc.c
13969         * src/pic/ralloc.c
13970         * src/pic16/ralloc.c
13971         * src/xa51/ralloc.c
13972         * src/z80/ralloc.c
13973         * src/z80/gen.c: removed unused label "release:"
13974
13975 2003-10-06  Borut Razem <borut.razem AT siol.net>
13976
13977         * src/SDCC.lex: removed definition of unused variables
13978           save_optimize and save_options
13979
13980 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
13981
13982         * clean.mk: removed '=' in "-maxdepth=1"
13983         * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
13984         * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
13985
13986 2003-10-06  Borut Razem <borut.razem AT siol.net>
13987
13988         * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
13989           my_unput() replaced by unput()
13990
13991 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
13992
13993         * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
13994         setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
13995         type-punned pointer will break strict-aliasing rules"
13996         Old LR behaviour is again default; Klaus' LR can be choosen by
13997         defining the environment variable LRKLAUS
13998         * src/SDCCBBlock.h
13999         * src/SDCCloop.c
14000         * src/SDCClrange.c
14001         * src/ds390/ralloc.c (spillThis): applied Klaus' patch
14002         * clean.mk: fixed removal of files in bin/CVS/
14003         * device/lib/clean.mk: fixed removal of directories small and large
14004         * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
14005         * src/SDCCicode.c,
14006         * src/SDCCval.c: removed superflous test for pedantic
14007
14008 2003-10-05  Borut Razem <borut.razem AT siol.net>
14009
14010         * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
14011           Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
14012           message "unmatched #pragma SAVE and #pragma RESTORE"
14013
14014 2003-10-04  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14015
14016         * doc/sdccman.lyx: various additions and updates (interrupts, inline
14017           assembly, critical functions, atomic, nojtbound)
14018
14019 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
14020
14021         Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
14022         * src/SDCCBBlock.h
14023         * src/SDCCloop.c
14024         * src/SDCCloop.h
14025         * src/SDCClrange.c
14026
14027 2003-10-03  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14028
14029         * src/z80/gen.h,
14030         * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
14031         * src/mcs51/gen.h
14032         * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
14033         * src/ds390/gen.h
14034         * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
14035         * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
14036         * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
14037
14038 2003-10-02  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14039
14040         * src/z80/gen.c (genRet): fixed bug #524753
14041         * src/z80/gen.c (genCast): fixed internal error on cast from
14042         pointer to long
14043         * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
14044         fix for bug #477835 to the z80
14045         * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
14046         for tracking iCodes in the peephole optimizer for z80
14047
14048 2003-10-01  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14049
14050         * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
14051         the other part of bug #814548
14052         * src/SDCCpeeph.c (labelInRange): fixed bug #814558
14053
14054 2003-09-30  Bernhard Held <bernhard AT bernhardheld.de>
14055
14056         * src/SDCCcse.c: fixed part of bug #814548
14057
14058 2003-09-28  Borut Razem <borut.razem AT siol.net>
14059
14060         * src/asm.c: rewrite of printILine() to use temporary file instead
14061           a pipe
14062         * src/xa51/main.c: commented out declaration of int rewinds
14063
14064 2003-09-27  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14065
14066         * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
14067
14068 2003-09-26  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14069
14070         * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
14071         * src/asm.c (printILine): Fixed bug #811015
14072
14073 2003-09-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14074
14075         *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
14076         freeing.
14077
14078 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14079
14080         * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
14081         * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
14082         to correctly handle general case of AOP_PAIRPTR
14083         * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
14084
14085 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14086
14087         * src/mcs51/ralloc.c (fillGaps),
14088         * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
14089         register positioning bug)
14090
14091 2003-09-21  Bernhard Held <bernhard AT bernhardheld.de>
14092
14093         * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
14094
14095 2003-09-19  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14096
14097         * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
14098         genCodePointerGet, genGenPointerGet, genFarPointerSet,
14099         genGenPointerSet): handle AOP_DPTR correctly when loading dptr
14100         (ralloc doesn't intentionally do this now, but perhaps later)
14101         * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
14102         * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
14103         register positioning bugs (Fixed bug #762602 and #795325)
14104         * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
14105         (Fixed bug #808779)
14106         * src/z80/gen.c: increased _vemit2's buffer[] to handle long
14107         lines that --i-code-in-asm generates
14108
14109 2003-09-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14110
14111         *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
14112         trying to fclose a FILE* that was already closed.
14113
14114 2003-09-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14115
14116         * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
14117         of const struct should be treated as if const themselves)
14118
14119 2003-09-18  Bernhard Held <bernhard AT bernhardheld.de>
14120
14121         * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
14122
14123 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14124
14125         * support/librarian/sdcclib.c: Generate correct offsets for libraries with
14126         Unix (/n) and DOS (/r/n) line terminations.
14127
14128 2003-09-17  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14129
14130         * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
14131         bug #613775
14132
14133 2003-09-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14134
14135         * src/mcs51/gen.c (genFunction, genEndFunction),
14136         * src/ds390/gen.c (genFunction, genEndFunction): Moved save
14137         and restore of EA so that stack offsets to parameters are
14138         correct when using both critical and reentrant/stack-auto.
14139         * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
14140         size (can be triggered in error if sloc is shared between
14141         different sized objects)
14142         * device/include/float.h: fixed macros to explicitly use
14143         unsigned long where needed
14144
14145 2003-09-15  Bernhard Held <bernhard AT bernhardheld.de>
14146
14147         Feature req. 799831: added code to allow nesting of critical functions
14148         * src/mcs51/gen.c (genFunction, genEndFunction)
14149         * src/ds390/gen.c (genFunction, genEndFunction)
14150
14151 2003-09-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14152
14153         * src/SDCCsymt.c (sclsFromPtr),
14154         * src/SDCCsymt.h,
14155         * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
14156         support for standard C idiom of memory mapped variables; for
14157         example, *((xdata int*)0x1234) = 1 is now internally equivalent
14158         to xdata int at 0x1234 tempvar = 1.
14159         * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
14160         provided by Akiya ISHIDA
14161
14162 2003-09-13  Bernhard Held <bernhard AT bernhardheld.de>
14163
14164         * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
14165         * src/SDCCval.c (constVal): added reduction from int to char
14166         * src/SDCCval.c (valMult, valDiv): fixed sign handling
14167         * src/SDCCval.c (valShift): fixed after change of cheapestVal()
14168         * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
14169         to ignore the sign
14170         * support/regression/tests/shifts.c: fixed
14171
14172 2003-09-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14173
14174         * src/z80/gen.c (genXor): Fixed bug #805445
14175
14176 2003-09-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14177
14178         Fixed bug #621531 (const & volatile confusion in the type chain).
14179         DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
14180         refer to the const or volatile state of the pointer itself.
14181
14182         * src/SDCCast.c
14183         * src/SDCCglue.c
14184         * src/SDCCicode.c
14185         * src/SDCCsymt.c
14186         * src/SDCCval.c
14187         * src/SDCC.y
14188         * src/SDCCsymt.h
14189         * src/pic/gen.c
14190         * src/pic/ralloc.c
14191         * src/pic16/gen.c
14192         * src/pic16/ralloc.c
14193         * support/regression/tests/const.c
14194
14195 2003-09-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14196
14197         When checking for duplicated modules, use absolute paths
14198         instead of relative paths.  Files changed:
14199
14200         * as/mcs51/lklib.c
14201         * link/z80/lklib.c
14202
14203 2003-09-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14204
14205         * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
14206
14207 2003-09-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14208
14209         * device/include/string.h: added size_t typedef, changed
14210         prototypes to use size_t, eliminated separate reentrant and
14211         non-reentrant declarations, added _memmove declaration
14212         * device/lib/_memcpy.c: changed to use size_t instead of int,
14213         changed /4 to >>2 to avoid division library call
14214         * device/lib/_memcmp.c,
14215         * device/lib/_memset.c,
14216         * device/lib/_strncat.c,
14217         * device/lib/_strncpy.c,
14218         * device/lib/_strncmp.c: changed to use size_t instead of int
14219         * device/lib/_memmove.c: new file (fixed bug #772294)
14220         * device/lib/Makefile.in: added _memmove.c
14221         * device/lib/z80/asm_strings.s: fixed bug #772290
14222         * support/regression/tests/bitfields.c: attempt to fix host assertion
14223         failure on amd64-unknown-linux2.2
14224
14225 2003-09-06  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14226
14227         * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
14228         * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
14229         * as/z80/asmain.c (main): fixed bug #801766
14230
14231 2003-09-06  Bernhard Held <bernhard AT bernhardheld.de>
14232
14233         * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
14234         compilers
14235
14236 2003-09-05  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14237
14238         * src/SDCCast.c (isConformingBody): fixed loop reversal bug
14239         reported in bug #800609
14240
14241 2003-09-04  Vangelis Rokas <vrokas AT otenet.gr>
14242
14243         * Top header beautifications in src/pic16 directory:
14244           device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
14245           pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
14246           pcoderegs.h, ralloc.c, ralloc.h
14247         * main.c: added top header and GPL license notice
14248         * pcode.c: fixed the if-conditional warning
14249
14250 2003-09-04  Bernhard Held <bernhard AT bernhardheld.de>
14251
14252         * device/lib/_mullong.c: replaced int by short for gcc
14253
14254 2003-08-31  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14255
14256         * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
14257         and JUMPTABLE iCodes properly now (worked by accident before)
14258         * src/mcs51/gen.c (leftRightUseAcc),
14259         * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
14260         iCode properly now. Use getSize instead of nRegs since a & b
14261         aren't part of the nRegs tally.
14262
14263 2003-08-31  Vangelis Rokas <vrokas AT otenet.gr>
14264
14265         * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
14266         * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
14267           before instructions that use the _STATUS register
14268
14269 2003-08-31  Bernhard Held <bernhard AT bernhardheld.de>
14270
14271         * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
14272         * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
14273         fetching of the pointer
14274         * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
14275         copied from genNearPointerSet()
14276         * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
14277         * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
14278         If they pop r0/r1 they must be called in the opposite order than aopOp().
14279         * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
14280         (resp. --stack-auto), prepared for --xstack
14281
14282 2003-08-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14283
14284         * doc/sdccman.lyx: reverted tables to those in cvs 1.64
14285
14286 2003-08-28  Bernhard Held <bernhard AT bernhardheld.de>
14287
14288         * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
14289         these ports have their own __sdcc_external_start()
14290
14291 2003-08-26  Bernhard Held <bernhard AT bernhardheld.de>
14292
14293         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
14294         * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
14295         type for bits was changed. It resulted in bit variables becoming
14296         global, which is not permitted in PIC 14 assembly output.
14297
14298 2003-08-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14299
14300         * doc/sdccman.lyx: various additions and updates. Rearranged sections
14301
14302 2003-08-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14303
14304         Z80 and MCS51 linkers complaint if a public symbol is defined
14305         in more than one library module:
14306
14307         * as/mcs51/lklib.c
14308         * link/z80/lklib.c
14309         * as/mcs51/Makefile.in
14310
14311 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14312
14313         A few small changes that speed up the peephole optimizer.
14314
14315         * src/SDCCpeeph.c
14316
14317 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14318
14319         Try to make the peephole optimizer smarter by maintaining
14320         an association between the assembly source code and the
14321         iCodes that originated them. Put this information to use
14322         with a new peephole rule condition "notVolatile" so that
14323         the rules can be aggressive yet still safe.
14324
14325         * src/SDCCpeeph.c
14326         * src/SDCCpeeph.h
14327         * src/mcs51/gen.c
14328         * src/mcs51/peeph.def
14329
14330 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14331
14332         Fixed bug #741761
14333
14334         * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
14335         * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
14336         if the left or right operand symbols have the accuse flag set.
14337
14338 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14339
14340         Changed the type of the result of the ! (NOT) operator to char;
14341         previously it returned the same type as the source. This allows
14342         us to eliminate all the genFloatNot functions (all of its target
14343         implementations were very buggy) since !float can use the same
14344         code as !long now.
14345
14346         * src/SDCCicode.c (ast2iCode): ! returns char
14347         * src/mcs51/gen.c (genNot, genNotFloat),
14348         * src/ds390/gen.c (genNot, genNotFloat),
14349         * src/z80/gen.c (genNot, genNotFloat),
14350         * src/pic/gen.c (genNot, genNotFloat),
14351         * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
14352
14353 2003-08-19  Bernhard Held <bernhard AT bernhardheld.de>
14354
14355         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
14356         1. Interrupt would not compile properly. Ensure PCLATH register is saved
14357            during interrupts. Ensure WSAVE is located at a shared bank address.
14358         2. Fixed page selection in some places
14359         3. Fixed BTFSS/C to where necessary use registers directly and not simply
14360            the registers name strings.
14361         4. Fixed "signed / unsigned compare" compiler warnings.
14362         5. The PIC port manages its own allocation of the general purpose
14363            registers, but makes no attempt to reuse them. As a result when
14364            compiling it soon runs out of general purpose registers. Some
14365            additional code was added to the files pcode.c and device.c to walk
14366            through the function call tree and rename the registers so that they
14367            get reused.
14368
14369         * src/pic/device.c
14370         * src/pic/gen.c
14371         * src/pic/glue.c
14372         * src/pic/pcode.c
14373         * src/pic/pcode.h
14374         * src/pic/ralloc.c
14375         * src/pic/ralloc.h
14376         * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
14377         genPlus() & genMinus() when the result is the same as left or right
14378
14379 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14380
14381         * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
14382
14383 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14384
14385         Made bitfield a distinct type from bit so that bitfields
14386         convert as per ANSI C and bits retain their traditional
14387         boolean style behaviour. Implemented bitfield support in
14388         the z80 port.
14389
14390         * src/SDCCsymt.h,
14391         * src/SDCCsymt.c,
14392         * src/SDCCast.c,
14393         * src/cdbFile.c,
14394         * src/mcs51/gen.c,
14395         * src/ds390/gen.c: bit v bitfield split
14396         * src/z80/gen.c: New support for bitfields
14397         * support/regression/tests/bitfields.c: reenabled z80,
14398         added more tests
14399
14400 2003-08-17  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14401
14402         Rules 246.x, 247.x relate to bitfields, the others speed up
14403         access to xdata mapped I/O devices.
14404
14405         * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
14406
14407 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14408
14409         Cleaned up genPackBits and genUnpackBits and added two helper
14410         functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
14411         for literal assignments in genPackBits (thanks to Frieder for
14412         reminding me).
14413
14414         * src/mcs51/gen.c
14415         * src/ds390/gen.c
14416
14417 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14418
14419         Fixed bug #748310 (pointer to function type mishandled when the
14420         function name is omitted). Also fixed a SIGSEGV when a function
14421         attribute (reentrant, etc) is used on a non-function or on a
14422         function but misplaced before the parameter list.
14423
14424         * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
14425         bug #748310
14426         * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
14427         * support/Util/SDCCerr.h,
14428         * support/Util/SDCCerr.c: Added func attr misuse error msg
14429
14430 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
14431
14432         Fixed bug #787649 by anonymous
14433         * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
14434         * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
14435
14436 2003-08-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14437
14438         Fixed numerous bitfield problems.
14439
14440         * src/SDCC.y: More bitfield related error checking
14441         * src/SDCCsymt.h,
14442         * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
14443         * support/Util/SDCCerr.h,
14444         * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
14445         * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
14446         * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
14447         * support/regression/tests/bitfields.c: tests added
14448
14449 2003-08-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14450
14451         Made the constant following the "interrupt" keyword optional. If
14452         omitted, the function will not automatically be given an entry
14453         in the interrupt vector table (similar to #pragma NOIV, but
14454         less syntacticly kludgy). The interrupt number is also now
14455         range checked. Also fixed a bug in the high order bit example
14456         in the manual.
14457
14458         * src/SDCC.y
14459         * src/SDCCmem.c
14460         * src/SDCCglue.c
14461         * src/SDCCsymt.h
14462         * support/Util/SDCCerr.c
14463         * support/Util/SDCCerr.h
14464         * doc/sdccman.lyx
14465
14466 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
14467
14468         * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
14469         * src/SDCCicode.c (operandOperation): rewritten some ops
14470         (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
14471         * src/SDCCsymt.c (computeType): literals are handled the same way as any
14472         other type
14473         * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
14474         be re-activated by defining REDUCE_LITERALS)
14475         * src/SDCCval.c (constVal): fixed; hex and octal constants can be
14476         unsigned, but are signed by default
14477         * src/SDCCval.c (constVal): rearranged
14478         * src/SDCCval.c (valMod): preliminary fix
14479         * src/SDCCval.c (valCastLiteral): use TYPE_* types
14480         * support/regression/literalop.c: added, work in progress
14481
14482 2003-08-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14483
14484         Generate warnings for useless declarations like "char data;"
14485         that don't do what new users expect.
14486
14487         * src/SDCC.y
14488         * support/Util/SDCCerr.h
14489         * support/Util/SDCCerr.c
14490
14491 2003-08-09  Bernhard Held <bernhard AT bernhardheld.de>
14492
14493         * src/SDCCval.c (valMult): fix overflow detection of negative int
14494
14495 2003-08-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14496
14497         * src/z80/ralloc.c (joinPushes): made compatible with new signedness
14498
14499         Changes to support big endian targets:
14500
14501         * src/ports.h
14502         * src/SDCCglue.c
14503         * src/avr/main.c
14504         * src/ds390/main.c
14505         * src/izt/i186.c
14506         * src/mcs51/main.c
14507         * src/pic/main.c
14508         * src/pic16/main.c
14509         * src/xa51/main.c
14510         * src/z80/main.c
14511
14512 2003-08-06  Bernhard Held <bernhard AT bernhardheld.de>
14513
14514         * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
14515         * device/lib/time.c: fixed warning "integer overflow in expression"
14516
14517 2003-08-05  Bernhard Held <bernhard AT bernhardheld.de>
14518
14519         * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
14520         * src/SDCCval.c (constVal): changed default to signed; hex and octal
14521         constants are unsigned; added recognition of "u" flag for unsigned
14522         * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
14523         * src/SDCCval.c (valDiv, valMod): fixed signdness
14524         * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
14525         signedness of modulo, left and right shift
14526         * support/Util/SDCCerr.c: added warning "integer overflow in expression"
14527         * support/Util/SDCCerr.h: added warning W_INT_OVL
14528         * src/SDCCast.c (decorateType): fixed gcc3.3 warning
14529         * src/SDCCast.c (ast_print): improved output of constants
14530
14531 2003-08-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14532
14533         Fixed some warnings when building with MSVC:
14534
14535         * as/mcs51/asdata.c
14536         * as/z80/asdata.c
14537         * as/mcs51/asm.h
14538         * as/z80/asm.h
14539         * link/z80/aslink.h
14540         * link/z80/lkdata.c
14541         * link/z80/lkeval.c
14542         * link/z80/lkgb.c
14543         * link/z80/lkihx.c
14544         * link/z80/lks19.c
14545         * link/z80/lksym.c
14546         * support/cpp2/cpplib.c
14547         * src/ds390/gen.c
14548         * src/mcs51/gen.c
14549
14550 2003-08-03  Bernhard Held <bernhard AT bernhardheld.de>
14551
14552         * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
14553
14554 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14555
14556         * support/librarian/clean.mk: Do not remove Makefile.
14557         * support/librarian/Makefile: added.
14558
14559 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14560
14561         Added librarian to MSVC build:
14562         * all.dsp
14563         * sdcc.dsw
14564         * support/librarian/librarian.dsp
14565
14566         'configure' not needed for librarian, removed:
14567         * support/librarian/configure
14568         * support/librarian/configure.in
14569         * support/librarian/config_in.h
14570         * support/librarian/Makefile.in
14571
14572         Hopefully these ones built the librarian and the rest of sdcc properly:
14573         * Makefile
14574         * Makefile.common.in
14575
14576         Messed up 'configure', so revert to previous version:
14577         * configure
14578         * configure.in
14579
14580 2003-07-31  Bernhard Held <bernhard AT bernhardheld.de>
14581
14582         * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
14583         there, while the mantissa of a double is "only" 53 bits wide.
14584
14585 2003-07-31  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14586
14587         Adding sdcclib to the build.  MSVC project coming soon.
14588         Files added/changed:
14589
14590         * support/librarian/clean.mk
14591         * support/librarian/configure
14592         * support/librarian/configure.in
14593         * support/librarian/config_in.h
14594         * support/librarian/Makefile.bcc
14595         * support/librarian/Makefile.in
14596         * support/librarian/sdcclib.c
14597         * Makefile.bcc
14598         * Makefile
14599         * Makefile.common.in
14600         * configure
14601         * configure.in
14602
14603 2003-07-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14604
14605         Linker now complaints if linked modules have conflicting options, for
14606         example, one compiled using --model-large and another one compiled with
14607         --model-small.  The following files were modified:
14608
14609         * as/mcs51/asdata.c
14610         * as/mcs51/aslink.h
14611         * as/mcs51/asm.h
14612         * as/mcs51/asmain.c
14613         * as/mcs51/asout.c
14614         * as/mcs51/i51pst.c
14615         * as/mcs51/lkdata.c
14616         * as/mcs51/lklibr.c
14617         * as/mcs51/lkmain.c
14618         * as/z80/asdata.c
14619         * as/z80/asm.h
14620         * as/z80/asmain.c
14621         * as/z80/asout.c
14622         * as/z80/z80pst.c
14623         * link/z80/aslink.h
14624         * link/z80/lkdata.c
14625         * link/z80/lklibr.c
14626         * link/z80/lkmain.c
14627         * src/SDCCglue.c
14628
14629 2003-07-28  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14630
14631         *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
14632         as/mcs51/lklibr.c: Generate a warning when a library is not found.
14633
14634 2003-07-28  Bernhard Held <bernhard AT bernhardheld.de>
14635
14636         * src/z80/mappings.i: fix _mul[us][int,long] entries
14637
14638 2003-07-26  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14639
14640         *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
14641
14642 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
14643
14644         * src/SDCCicode.c (operandOperation): really fixed problem with bitops
14645         * support/regression/tests/bitopcse.c: added
14646         fixed warning:
14647         * src/avr/gen.c:
14648         * src/pic/gen.c:
14649         * src/pic16/gen.c:
14650         * src/z80/gen.c:
14651         * src/xa51/gen.c:
14652
14653 2003-07-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14654
14655         added support for new library format to z80, gbz80 linkers:
14656         *link/z80/aslink.h
14657         *link/z80/lklex.c
14658         *link/z80/lklib.c
14659         *link/z80/lklist.c
14660
14661 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
14662
14663         * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
14664         after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
14665
14666 2003-07-23  Bernhard Held <bernhard AT bernhardheld.de>
14667
14668         added DUMMY_READ_VOLATILE:
14669         * src/SDCC.y:
14670         * src/avr/gen.c:
14671         * src/xa51/gen.c:
14672         * src/z80/gen.c:
14673         * src/pic/gen.c:
14674         * src/pic16/gen.c:
14675         * src/mcs51/gen.c:
14676         * src/ds390/gen.c:
14677         * src/SDCCcse.c (algebraicOpts): many improvements
14678         * src/SDCCcse.h: removed algebraicOpts()
14679         * src/SDCCicode.c (picDummyRead): added
14680
14681 2003-07-23  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14682
14683         * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
14684         "Insufficient space in data memory".
14685
14686 2003-07-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14687
14688         * src/mcs51/gen.c: fixed bug #771358
14689         * src/z80/gen.c: fixed bug #759087
14690
14691 2003-07-20  Bernhard Held <bernhard AT bernhardheld.de>
14692
14693         * src/pic16/glue.c: minor cleanup by Vangelis
14694
14695 2003-07-19  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14696
14697         * device/include/regc515c.h: fixed #758477
14698         * device/lib/_gptrget.c: saving some cycles in generic pointer get
14699         * device/lib/_gptrput.c: saved a few bytes
14700         * my tab spacing is 8, yours too?)
14701         * device/lib/_ser.c: process RX bytes earlier than TX bytes
14702         * device/lib/serial.c: process RX bytes earlier than TX bytes
14703         * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
14704
14705 2003-07-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14706
14707         * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
14708
14709 2003-07-17  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14710
14711     * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
14712
14713 2003-07-17  Bernhard Held <bernhard AT bernhardheld.de>
14714
14715         * device/lib/Makefile.in: bad fix, reverted to 1.43
14716
14717 2003-07-16  Bernhard Held <bernhard AT bernhardheld.de>
14718
14719         * device/lib/Makefile.in: added missing z80 object files
14720
14721 2003-07-14  Bernhard Held <bernhard AT bernhardheld.de>
14722
14723         * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
14724         pic16 progress by Vangelis:
14725         * src/SDCCglobl.h:
14726         * src/SDCCmain.c:
14727         * src/pic/Makefile:
14728         * src/pic:
14729         * pic/Makefile:
14730         * pic16/device.c:
14731         * pic16/device.h:
14732         * pic16/gen.c:
14733         * pic16/gen.h:
14734         * pic16/genarith.c:
14735         * pic16/glue.c:
14736         * pic16/main.c:
14737         * pic16/pcode.c:
14738         * pic16/pcode.h:
14739         * pic16/pcodepeep.c:
14740         * pic16/peeph.def:
14741
14742 2003-07-13  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14743
14744     * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
14745
14746 2003-07-12  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14747
14748     * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
14749     added gbz80 build to MSVC project.
14750     * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
14751     link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
14752     from 8051 stuff and setup so it links using a .lnk file.
14753
14754 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14755
14756     * support/librarian/sdcclib.c: sdcc librarian.
14757     * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
14758     with sdcclib.
14759
14760 2003-07-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14761
14762     * as/mcs51/lkmain.c: properly handle extensions in function afile.
14763
14764 2003-07-02  Borut Razem <borut.razem AT siol.net>
14765
14766         * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
14767         src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
14768         src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
14769         src/xa51/main.c, src/z80/main.c:
14770         virtualization of glue() function: each port has it's own glue function,
14771         which is accessed by do_glue function pointer in PORT.general structure
14772
14773 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
14774
14775         * DS800C400 fun, improved ROM interface and tinibios.
14776
14777 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
14778
14779         * More support for DS80C400. Now includes beginning of interface to ROM.
14780
14781 2003-06-25  Bernhard Held <bernhard AT bernhardheld.de>
14782
14783         * src/mcs51/gen.c (gencjneshort): fixed bug #760345
14784
14785 2003-06-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14786
14787         * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
14788
14789 2003-06-19  Borut Razem <borut.razem AT siol.net>
14790
14791         * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
14792
14793 2003-06-19  Borut Razem <borut.razem AT siol.net>
14794
14795         * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
14796         fixed Z80 port - crt0.o: cannot open.
14797
14798 2003-06-19  Bernhard Held <bernhard AT bernhardheld.de>
14799
14800         * support/Util/MySystem.c (merge_command): revert bad fix
14801
14802 2003-06-18  Borut Razem <borut.razem AT siol.net>
14803
14804         * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
14805
14806 2003-06-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14807
14808         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
14809         option --use-stdout sends errors to stdout instead of stderr.
14810
14811 2003-06-18  Bernhard Held <bernhard AT bernhardheld.de>
14812
14813         * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
14814
14815 2003-06-15  Borut Razem <borut.razem AT siol.net>
14816
14817         * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
14818         * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
14819         * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
14820         fixed width array of pointers replaced with sets;
14821         multiple include and lib paths ared transferred to preprocessor and linker
14822         * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
14823         * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
14824         fixed width array of pointers
14825         * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
14826         removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
14827         fixupPath(), getPathDifference()
14828         * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function  inExcludeList() by using sets instead
14829         fixed width array of pointers
14830
14831 2003-06-11  Bernhard Held <bernhard AT bernhardheld.de>
14832
14833         * src/pic16/ralloc.c: fix warnings
14834         * src/pic16/pcode.c: fix warning
14835
14836 2003-06-10  Scott Dattalo  <scott AT dattalo.com>
14837
14838          Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
14839         know all the details, but essentially this set of changes enable
14840         the pic16 port to generate movff instructions and generate assembler
14841         directives,
14842         * src/SDCCmain.c:
14843         * src/pic16/gen.c:
14844         * src/pic16/glue.c:
14845         * src/pic16/pcode.c:
14846         * src/pic16/device.c:
14847         * src/pic16/main.c:
14848         * src/pic16/pcode.h:
14849         * src/pic16/pcoderegs.c:
14850         * src/pic16/ralloc.c:
14851         * src/pic16/ralloc.h:
14852
14853 2003-06-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14854
14855         * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
14856         added option --vc, so sdcc errors and warnings are compatible with
14857         Microsoft Visual Studio.
14858
14859 2003-06-07  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14860
14861         * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
14862           device/lib/libfloat.lib: added atof function.
14863
14864 2003-06-04  Bernhard Held <bernhard AT bernhardheld.de>
14865
14866         * doc/sdccman.lyx: updated to Lyx 1.3
14867         * doc/cdbfileformat.lyx: updated to Lyx 1.3
14868         * doc/test_suite_spec.lyx: updated to Lyx 1.3
14869         * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
14870
14871 2003-06-03  Bernhard Held <bernhard AT bernhardheld.de>
14872
14873         * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
14874
14875 2003-06-02  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14876
14877         * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
14878           additions to the "related tools/documentation" section
14879
14880 2003-06-02  Bernhard Held <bernhard AT bernhardheld.de>
14881
14882         * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
14883
14884 2003-05-29  Bernhard Held <bernhard AT bernhardheld.de>
14885
14886         * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
14887         * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
14888
14889 2003-05-28  Bernhard Held <bernhard AT bernhardheld.de>
14890
14891         * doc/sdccman.lyx: fix double dash and other minor things
14892         * doc/Makefile: fix double dash
14893
14894 2003-05-28  Karl Bongers(patches from Martin Helmling)
14895         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
14896           condition and ignore commands.
14897
14898 2003-05-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14899
14900         * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
14901           is in parts still quite out of date, I did changes as far as I felt makes sense
14902           for a non-native english speaker.
14903           Please feel free to add to the manual or to correct my changes.
14904         * doc/Makefile: undid touching the date of intermediate tex files.
14905
14906 2003-05-26  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14907
14908         * doc/sdccman.lyx: Manual has an index now
14909
14910 2003-05-25  Bernhard Held <bernhard AT bernhardheld.de>
14911
14912         Finalize muluint/mulsint and mululong/mulslong merging:
14913         * device/lib/_mulint.c
14914         * device/lib/_mullong.c
14915         * device/lib/gbz80/mul.s
14916         * device/lib/gbz80/stubs.s
14917         * device/lib/z80/mul.s
14918         * device/lib/z80/stubs.s
14919         * src/SDCCsymt.c (initCSupport)
14920
14921 2003-05-25  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14922
14923         * as/mcs51/lkaomf51.c: Address space 'z' was missing.
14924         * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
14925           src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
14926           src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
14927           instead of /Zm500.
14928
14929 2003-05-25  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14930
14931         * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
14932           the regression tests I'm not brave enough to enable 245.b, 245.c
14933         * doc/sdccman.lyx: added latex preamble for hyperref package.
14934           Using pdflatex this will give you a hyperlinked pdf file with
14935           bookmarks. (prepend '%' before /usepackage if this breaks something)
14936
14937 2003-05-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14938
14939          * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
14940
14941 2003-05-22  Bernhard Held <bernhard AT bernhardheld.de>
14942
14943         * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
14944
14945 2003-05-21    <johan AT balder>
14946
14947         * src/SDCCglue.c (printIval): fixed bug #739934
14948
14949 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
14950
14951         Applied patch from bug 737905 (renamed yylineo to mylineno):
14952         * src/altlex.c
14953         * src/SDCCast.c
14954         * src/SDCglobl.h
14955         * src/SDCC.lex
14956         * src/SDCCsymt.c
14957         * src/SDCCval.c
14958         * src/pic16/pcode.c: Cleaned warnings
14959         * src/pic16/pcodeflow.c: Cleaned warnings
14960         * src/pic16/pcoderegs.c: Cleaned warnings
14961
14962 2003-05-19  Scott Dattalo  <scott AT dattalo.com>
14963
14964         * src/pic16/pcode.c: Cleaned warnings
14965         * src/pic16/pcodepeep.c: Cleaned warnings
14966         * src/pic16/ralloc.c: Cleaned warnings
14967
14968 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
14969
14970         * doc/sdccman.lyx: fixed bug 739745
14971         * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
14972
14973 2003-05-18  Bernhard Held <bernhard AT bernhardheld.de>
14974
14975         * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
14976         it can be defined with CFLAGS when running configure
14977         * src/SDCCmain.c: fixed compiling + linking with object files
14978
14979 2003-05-18  Vangelis Rokas (vrokas AT otenet.gr)
14980
14981         * configure.in: configure for pic16 port,
14982             added --disable-pic16-port
14983         * sdccconf_in.h: added macro OPT_DISABLE_PIC16
14984         * src/SDCCmain.c: linkOptions is changed to set *,
14985             added if/endif conditional macros to remove options help
14986             messages from optionsTable when a port is not configured, added
14987             support for the PIc16 port in the ports table, when executing
14988             the compiler with no port specified on command line, a default
14989             port is selected with the new macro DEFAULT_PORT which is
14990             defined in port.h, in setDefaultOptions() linkOptions is removed
14991             from initialization assignment, since now it is a set,
14992             parseCmdLine uses setParseWithComma for linkOptions, in
14993             linkEdit() linkOptions are accessed with new function indexSet()
14994             which returns the i'th item of a set variable. See SDCCset.c, in
14995             linkEdit() when calling buildCmdLine(), added linkOptions as
14996             last argument. Now users can pass arguments to gplink via the
14997             -Wl option, main() uses pic16glue() to glue up pic16 programs
14998         * src/SDCCpeeph.c: various changes to support pic16
14999         * src/SDCCset.c: added function  void *indexSet(set *, int)  to
15000             return the i'th item of the set
15001         * src/SDCCset.h: added function prototype for indexSet()
15002         * src/SDCCsymt.c: in checkSClass(), added support for PIC16
15003         * src/clean.mk: added pic16 in CLEANALLPORTS variable
15004         * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
15005             added macro DEFAULT_PORT
15006         * src/pic/main.c: corrected arguments of gplnk in _linkCmd
15007         * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
15008             generated
15009         * src/pic16/glue.c: commented out some error producing lines
15010         * src/pic16/main.c: __config directives are commented out to stop
15011             gpasm complaining and test the linkage with gplink, _linkCmd and
15012             _asmCmd changed to be more gplink and gpasm friendly
15013         * src/pic16/peeph.def: peep rule 3 is commented out, since it
15014             produced an error when parsed, peep rule 12 is added to utilize
15015             movff, but it is commented out since the pCode does not support
15016             yet a command with 2 address arguments
15017
15018 2003-05-18    <johan AT balder>
15019
15020         * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
15021         * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
15022 2003-05-17  Karl Bongers(apply patches from Martin Helmling)
15023
15024         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
15025   Added feature to script commands from file.
15026
15027 2003-05-14  Bernhard Held <bernhard AT bernhardheld.de>
15028
15029         * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
15030         * src/SDCCutil.c: include ctype.h for win32
15031
15032 2003-05-13  Bernhard Held <bernhard AT bernhardheld.de>
15033
15034         * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
15035
15036 2003-05-12  Karl Bongers(apply development patches from Martin Helmling)
15037
15038         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
15039   Fixed so you can set breakpoints prior to run, run does not stop
15040   on entry now.  Add tbreak.  Other enhancements and fixes for use
15041   with ddd.
15042
15043 2003-05-12  Borut Razem <borut.razem AT siol.net>
15044
15045         * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
15046
15047 2003-05-11  Borut Razem <borut.razem AT siol.net>
15048
15049         * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
15050         the path of bin directory, so that PATH is the only env. variable, which has to be set
15051         in case of standard installation.
15052         * src/ds390/ds390.dsp: increased value of /Zm option to 1000
15053         * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
15054         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
15055
15056 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
15057
15058         * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
15059         * support/regression/Makefile: inter-port-clean is no longer nesessary, the
15060         temp files are in the port dir; clean the gen/test directory when
15061         generating new test.c
15062         * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
15063         * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
15064         * support/regression/tests/zeropad.c: added
15065
15066 2003-05-09    <johan AT balder>
15067
15068         * src/SDCCglue.c: fixed bug #597940
15069
15070 2003-05-05  Karl Bongers(apply patches from Martin Helmling)
15071
15072         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
15073   cache sfr, optimize next,step, fix off by one sourceline,
15074   support ddd list function.
15075         * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
15076
15077 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
15078
15079         * support/regression/HTMLgen.py: added compare_s2f()
15080         * support/regression/Makefile: redo 1.27
15081         * support/regression/generate-cases.py: redo 1.5
15082
15083 2003-04-30  Bernhard Held <bernhard AT bernhardheld.de>
15084
15085         * support/regression/tests/float.c: workaround 33 bit hex constant
15086         * support/regression/tests/simplefloat.c: fix division for host
15087
15088 2003-04-29  Scott Dattalo  <scott AT dattalo.com>
15089
15090         * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
15091         that tame's the PIC's over-aggressive optimizer.
15092
15093 2003-04-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15094
15095          * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
15096          support for MSVC.
15097
15098 2003-04-29  Kevin Vigor <kevin AT vigor.nu>
15099
15100         Initial support for DS80C400. "Hello world" runs on TINIm400
15101         (with polled I/O).
15102
15103 2003-04-28  Karl Bongers(apply patches for Martin Helmling)
15104
15105          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
15106          * Some notes on ddd usage added in debugger/README
15107          Martin Helmling adding more features and fixes for ddd GUI debugger.
15108          Code added for nexti, stepi, up, down, and other adjustments.
15109
15110 2003-04-28  Scott Dattalo  <scott AT DATTALO.COM>
15111
15112         * src/pic/pCodepeep.c non-wildcard asmops are now handled
15113         * src/pic/peeph.def Added two rules to optimize carry manipulation
15114         * src/pic/* removed debug printfs
15115
15116 2003-04-28  Bernhard Held <bernhard AT bernhardheld.de>
15117
15118         * debugger/mcs51/cmd.c: added header newalloc.h
15119
15120 2003-04-26  Bernhard Held <bernhard AT bernhardheld.de>
15121
15122         * as/Makefile: new EXEEXT
15123         * as/z80/Makefile: remove trailing slash of BUILDIR
15124         * as/z80/clean.mk: new EXEEXT
15125         * Makefile.common.in: add to CFLAGS (and others), don't replace it
15126         * support/cpp2/Makefile.in: new EXEEXT
15127         * src/pic/glue.c (pic14emitRegularMap): fixed warning
15128
15129 2003-04-24  Bernhard Held <bernhard AT bernhardheld.de>
15130
15131         Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
15132         EXEEXT was introduced to fix all related problems with targets
15133         "clean", "install" and "uninstall"; a couple of further flaws
15134         especially with "clean" have been fixed too
15135         * as/mcs51/Makefile.in
15136         * as/mcs51/clean.mk
15137         * as/z80/Makefile
15138         * Makefile
15139         * clean.mk
15140         * debugger/mcs51/Makefile.in
15141         * debugger/mcs51/clean.mk
15142         * link/z80/Makefile
15143         * link/z80/Makefile.in
15144         * link/z80/clean.mk
15145         * link/Makefile
15146         * packihx/Makefile.in
15147         * packihx/clean.mk
15148         * sim/ucsim/Makefile
15149         * sim/ucsim/clean.mk
15150         * sim/ucsim/avr.src/Makefile.in
15151         * sim/ucsim/avr.src/clean.mk
15152         * sim/ucsim/s51.src/Makefile.in
15153         * sim/ucsim/s51.src/clean.mk
15154         * sim/ucsim/xa.src/Makefile.in
15155         * sim/ucsim/xa.src/clean.mk
15156         * sim/ucsim/z80.src/Makefile.in
15157         * sim/ucsim/z80.src/clean.mk
15158         * sim/ucsim/main_in.mk
15159         * sim/ucsim/packages_in.mk
15160         * sim/ucsim/gui.src/Makefile.in
15161         * sim/ucsim/gui.src/serio.src/Makefile.in
15162         * sim/ucsim/gui.src/serio.src/clean.mk
15163         * src/Makefile.in
15164         * src/clean.mk
15165         * support/cpp2/Makefile.in
15166         * support/cpp2/clean.mk
15167         * support/makebin/Makefile
15168         * support/makebin/clean.mk
15169         * support/scripts/sdcc_mingw32: --program-suffix no longer needed
15170         * doc/sdccman.lyx: --program-suffix no longer needed
15171
15172 2003-04-23  Karl Bongers(apply patches for Martin Helmling)
15173
15174          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
15175          Martin Helmling added support for ddd GUI debugger.
15176          Code added to display assembly, set variables, and other commands
15177          to interface to ddd.
15178
15179 2003-04-23  Bernhard Held <bernhard AT bernhardheld.de>
15180
15181         * as/Makefile: fix target clean
15182         * as/clean.mk: fix target clean
15183         * as/z80/clean.mk: fix target clean
15184
15185 2003-04-22  Bernhard Held <bernhard AT bernhardheld.de>
15186
15187         * Makefile.common.in: added  AT EXEEXT AT
15188         * configure.in: removed all mingw32 stuff
15189         * configure: rebuilt from configure.in
15190         * doc/sdccman.lyx: updated section "installation"
15191         * support/scripts/sdcc_mingw32: adapted to configure
15192         * support/scripts/sdcc_cygwin_mingw32: added
15193
15194 2003-04-22  Scott Dattalo  <scott AT dattalo.com>
15195
15196         * src/pic Added object file support for the PIC port
15197         * src/pic Applied patch from Craig Franklin (this started the object file support)
15198         * src/regression Updated the PIC regression tests for object files
15199
15200 2003-04-20  Borut Razem <borut.razem AT siol.net>
15201
15202         * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
15203           lklex.c: In function `getfid':
15204           lklex.c:203: warning: array subscript has type `char'
15205         * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
15206           with MSVC with global optimization enabled (probably an cl compiler bug ;-)
15207         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
15208           stack handling macros
15209
15210 2003-04-19  Borut Razem <borut.razem AT siol.net>
15211
15212         * "handling space characters in file path" task:
15213         * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
15214         * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
15215         * support/Util/MySystem.h: make it self-sufficient
15216         * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
15217           src/z80/main.c, sdcc/as/mcs51/lklex.c:
15218           handling space characters in file path
15219         * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
15220           (it will be used by assemblers, which have their own includes, e.g. gpasm)
15221         * support/Util/MySystem.c: handling space characters in executable's path
15222
15223 2003-04-19  Bernhard Held <bernhard AT bernhardheld.de>
15224
15225         * as/z80/Makefile: fix permanent rebuild of z80
15226         * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
15227         * support/regression/tests/bitfields.c: added Johan's bitfields.c
15228
15229 2003-04-18      Kevin Vigor <kevin AT vigor.nu>
15230
15231         * src/SDCCopt.c: add special case optimization to replace modulo by
15232           a power of two with a bitwise AND.
15233
15234 2003-04-18    <johan AT balder>
15235
15236         * src/mcs51/gen.c (getFreePtr): fixed bug #635354
15237
15238 2003-04-17    <johan AT balder>
15239
15240         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
15241         * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
15242
15243 2003-04-13  Borut Razem <borut.razem AT siol.net>
15244
15245         * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
15246         * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
15247           fixed mingw problem in adl_NORMALIZE_PATH
15248
15249 2003-04-12  Borut Razem <borut.razem AT siol.net>
15250
15251         * fixed "#pragma SAVE/RESTORE can not be nested":
15252         * src/SDCC.lex: reworked pragma handling functions
15253         * sdcc/src/SDCCglobl.h: reworked stack handling macros
15254         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
15255
15256 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
15257
15258         * src/SDCCutil.c (pathEquivalent): defined but not used
15259         * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
15260         * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
15261         * configure: rebuilt from configure.in
15262         * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
15263         * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
15264         * device/include/Makefile.in: replace sdcc_datadir
15265         * device/lib/Makefile.in: replace sdcc_datadir
15266         * Makefile.common.in: add LDFLAGS from configure
15267         * packihx/Makefile.in: use LDFLAGS
15268         * src/Makefile.in: use LDFLAGS
15269         * support/cpp2/Makefile.in: add LDFLAGS from configure
15270         * support/makebin/Makefile: use LDFLAGS
15271         * .version: bumped version number to 2.3.5
15272
15273 2003-04-12  Borut Razem <borut.razem AT siol.net>
15274
15275         * completed "different paths" task:
15276         * src/SDCCmacro.c: fixed bug in handling quotes
15277         * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
15278         * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
15279
15280 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
15281
15282         * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
15283
15284 2003-04-11 kevin Vigor <kevin AT vigor.nu>
15285
15286         * ds390/gen.c ds390/peeph.def: fix bug 706781
15287
15288 2003-04-11  Borut Razem <borut.razem AT siol.net>
15289
15290         * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
15291
15292 2003-04-10  Scott Dattalo  <scott AT dattalo.com>
15293
15294         * src/pic/* Applied the pointer-to-function patch from Steve Tell.
15295         * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
15296          set - this bit used to not be set...).
15297         * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
15298           bad code in PIC Port
15299         * src/regression/and2.c added to test bug 609268
15300         * src/regression/Makefile added and2.c to regression test
15301
15302
15303 2003-04-08    <johan AT CP255758-A>
15304
15305         * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
15306         * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
15307         * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
15308
15309 2003-04-07  Bernhard Held <bernhard AT bernhardheld.de>
15310
15311         * configure.in: fully support prefix, exec_prefix, datadir, docdir;
15312         fix bug #487815
15313         * support/cpp2/Makefile.in: fix bug #487815
15314         * configure: rebuilt from configure.in
15315         * Makefile.common.in: docdir changed, new path suffixes
15316         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
15317         * sdcc_vc_in.h: reflect changes from sdccconf.h
15318         * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
15319         * src/SDCCutil.h: remove BINDIR hack
15320         * doc/sdccman.lyx: update new path hierarchy
15321
15322 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
15323
15324         * src/SDCCpeeph.c: added okToRemoveSLOC test
15325
15326 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
15327
15328         * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
15329
15330 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
15331
15332         * src/SDCCpeeph.c: added labelIsReturnOnly test
15333         * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
15334
15335 2003-04-05    <johan AT balder>
15336
15337         * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
15338         * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
15339         * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
15340         * src/SDCCast.c: fixed a warning
15341         * src/SDCCast.h: fixed a warning
15342         * src/SDCCicode.c (operandFromAst): fixed a warning
15343
15344 2003-04-04    <johan AT balder>
15345
15346         * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
15347         * src/SDCCast.c (decorateType): fixed bug #715076
15348         * src/SDCC.y: fixed bug #702907
15349
15350 2003-04-03    <johan AT balder>
15351
15352         * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
15353         * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
15354         * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
15355         * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
15356         * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
15357
15358 2003-04-03  Bernhard Held <bernhard AT bernhardheld.de>
15359
15360         * _decdptr.c: fix return values
15361         * _gptrget.c: fix return values
15362         * _gptrgetc.c: fix return values
15363         * _gptrput.c: fix return values
15364         * _mulint.c: fix return values
15365         * as/z80/Makefile: fix 'make -j' problem
15366
15367 2003-04-02  Bernhard Held <bernhard AT bernhardheld.de>
15368
15369         * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
15370         * configure.in: big cleanup, updated to autoconf 2.5x
15371         * configure: rebuilt from configure.in
15372         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
15373         * sdcc_vc_in.h: reflect changes from sdccconf.h
15374         * doc/Makefile: fixed a flaw in "make install"
15375
15376 2003-04-02    <johan AT balder>
15377
15378         * src/ds390/gen.c (genCmp): no comments
15379         * src/mcs51/gen.c (genCmp): no comments
15380         * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
15381         * src/SDCCast.c (ast_print): fixed the function type in --dumptree
15382
15383 2003-04-01  Bernhard Held <bernhard AT bernhardheld.de>
15384
15385         * support/regression/generate-cases.py: place generated file in given sub directory
15386         * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
15387         * support/regression/Makefile: improvements for 'make -j';
15388         side effect: it's simpler and faster now
15389
15390 2003-03-31  Borut Razem <borut.razem AT siol.net>
15391
15392         * src/z80/main.c: link-{port} and as-{port} defined without path
15393         * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
15394
15395 2003-03-31  Bernhard Held <bernhard AT bernhardheld.de>
15396
15397         * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
15398
15399 2003-03-30  Borut Razem <borut.razem AT siol.net>
15400
15401         * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
15402           changed type of list parameter to set
15403         * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
15404         * src/port.h: changed type of do_assemble() parameter to set
15405         * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
15406           sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
15407           definition of "cppoutfilename" macro with NULL value in preProcess()
15408         * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
15409         * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
15410         * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
15411           replaced with set *binPathSet
15412         * shash_add() deallocates the item, if allready exsists, before adding the new one
15413         * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
15414
15415 2003-03-30  Scott Dattalo  <scott AT dattalo.com>
15416
15417         * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
15418           a nested for loop bug in the PIC port
15419         * src/regression/nestfor.c: new regression test file Steve wrote to test nested
15420           for loops
15421
15422 2003-03-29  Bernhard Held <bernhard AT bernhardheld.de>
15423
15424         * support/Util/dbuf.h: remove C++ stuff to make it portable
15425
15426 2003-03-28  Borut Razem <borut.razem AT siol.net>
15427
15428         * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
15429           literal strings in stringLiteral()
15430         * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
15431         * src/Makefile.bcc, src/Makefile.in, src/src.dsp: added support/Util/dbuf.c
15432           to the project
15433
15434 2003-03-27  Paul Stoffregen <paul AT pjrc.com>
15435
15436         * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
15437
15438 2003-03-26    <johan AT balder>
15439
15440         * src/mcs51/gen.c (saveRegisters): catched symbol abuse
15441         * src/ds390/gen.c (saveRegisters): catched symbol abuse
15442         * src/SDCCast.c (decorateType): fixed " -v < 3"
15443
15444 2003-03-23  Bernhard Held <bernhard AT bernhardheld.de>
15445
15446         * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
15447         Added Lenny Story's debug infrastructure changes:
15448         * src/Makefile.in:  added new files cdbFile.c and SDCCdebug.c
15449         * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
15450         * src/cdbFile.c: added
15451         * src/SDCCdebug.c: added
15452         * src/SDCCdebug.h: added
15453         * src/SDCCast.c (createFunction)
15454         * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
15455         * src/SDCCmain.c (parseCmdLine, main)
15456         * src/SDCCmem.c (redoStackOffsets)
15457         * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
15458         * src/SDCCsymt.h
15459         * src/common.h
15460         * src/avr/gen.c (genAVRCode)
15461         * src/ds390/gen.c (gen390Code)
15462         * src/mcs51/gen.c (gen51Code)
15463         * src/pic/gen.c (genpic14Code)
15464         * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
15465         * src/xa51/gen.c (genXA51Code)
15466         * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
15467
15468 2003-03-22  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15469
15470         * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
15471         * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
15472
15473 2003-03-22    <johan AT balder>
15474
15475         * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
15476
15477 2003-03-21  Bernhard Held <bernhard AT bernhardheld.de>
15478
15479         * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
15480         * doc/cdbfileformat.lyx: added, written by Lenny Story
15481         * doc/Makefile: added cdbfileformat.lyx
15482         * doc/clean.mk: added cdbfileformat.lyx
15483
15484 2003-03-20  Bernhard Held <bernhard AT bernhardheld.de>
15485
15486         * src/mcs51/peeph.def: fix bug #705773
15487
15488 2003-03-20    <johan AT balder>
15489
15490         An sfr/sbit can have an "at #" AND an initializer
15491         * src/SDCCsymt.c (checkSClass):
15492         * src/SDCCmem.c (allocGlobal):
15493         * src/SDCCmem.c (allocLocal):
15494         * src/SDCCast.c (createBlock):
15495
15496 2003-03-17  Bernhard Held <bernhard AT bernhardheld.de>
15497
15498         * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
15499
15500 2003-03-16    <johan AT balder>
15501
15502         Undid the hackup of const and volatile, the problem is much bigger
15503         * src/SDCC.y:1.65
15504         * src/SDCCast.c:1.171
15505         * src/SDCCglue.c:1.138
15506         * src/SDCCicode.c:1.146
15507         * src/SDCCsymt.c:1.150
15508         * src/SDCCval.c:1.65
15509
15510 2003-03-15  Bernhard Held <bernhard AT bernhardheld.de>
15511
15512         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
15513         * src/ds390/gen.c (genAddrOf): fixed bug #704087
15514
15515 2003-03-13    <johan AT balder>
15516
15517         Hackup const and volatile modifiers in type chains a bit:
15518         * src/SDCC.y:1.63
15519         * src/SDCCast.c:1.169
15520         * src/SDCCglue.c:1.136
15521         * src/SDCCicode.c:1.143
15522         * src/SDCCsymt.c1.146
15523         * src/SDCCsymt.h1.59
15524         * src/SDCCval.c:1.63
15525
15526 2003-03-12    <johan AT balder>
15527
15528         * src/SDCCBBlock.h: more LRH debugging junk
15529         * src/SDCCcflow.h: more LRH debugging junk
15530         * src/SDCCloop.c: more LRH debugging junk
15531         * src/SDCC.y (struct_declaration): fixed bug #697590
15532         * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
15533         * src/ds390/gen.c (aopForRemat): fixed bug #700031
15534         * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
15535
15536 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
15537         * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
15538         test function names must now match exactly).
15539         * src/SDCCcse.c: added special case in findCheaperOp to allow
15540         extending a short integer. Makes less awful code for bug 700121 test case.
15541
15542 2003-03-11  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15543
15544         * as/mcs51/lkmain.c: Added ASlink-Warning to messages
15545         * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
15546
15547 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
15548
15549         * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
15550         actually called (operandsNotEqual() was called for all
15551         operandsNotEqualX tests).
15552
15553 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
15554
15555         * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
15556         with shorter literals. Fixes bug 700121.
15557
15558 2003-03-11    <johan AT balder>
15559
15560         * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
15561
15562 2003-03-11  Bernhard Held <bernhard AT bernhardheld.de>
15563
15564         * src/SDCCloop.c (mergeRegions): an evil beast is dead
15565         * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
15566
15567 2003-03-10  Borut Razem <borut.razem AT siol.net>
15568
15569         * src/SDCCmain.c: pipe preprocessor's output
15570         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
15571         * sdcc_vc_in.h: define pclose as _pclose for WIN32
15572         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
15573         which closes all pipes in pipeSet set
15574         * src/SDCCset.c: free deleted item in function deleteSetItem()
15575         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
15576         moved from z80 to src subproject
15577         * .version: increased version number to 2.3.4
15578
15579 2003-03-10  Bernhard Held <bernhard AT bernhardheld.de>
15580
15581         * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
15582         * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
15583         * support/regression/ports/xa51/spec.mk: fix typo
15584
15585 2003-03-09  Bernhard Held <bernhard AT bernhardheld.de>
15586
15587         * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
15588
15589 2003-03-09  Borut Razem <borut.razem AT siol.net>
15590
15591         * src/SDCCmain.c: pipe preprocessor's output
15592         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
15593         * sdcc_vc_in.h: define pclose as _pclose for WIN32
15594         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
15595         which closes all pipes in pipeSet set
15596         * src/SDCCset.c: free deleted item in function deleteSetItem()
15597         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
15598         moved from z80 to src subproject
15599
15600 2003-03-09  Borut Razem <borut.razem AT siol.net>
15601
15602         * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
15603         * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
15604         * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
15605         * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
15606         * src/SDCCglobl.h: unification of WIN32 native definitions
15607
15608 2003-03-09  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15609
15610         * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
15611
15612 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
15613
15614         * src/configure.in:   check for endianess (even while cross-compiling)
15615         * src/configure:      check for endianess (even while cross-compiling)
15616         * src/configure_in.h: check for endianess (even while cross-compiling)
15617         * src/avr/gen.c:        remove old endianess stuff
15618         * src/mcs51/gen.c:      remove old endianess stuff
15619         * src/ds390/gen.c:      remove old endianess stuff
15620         * src/pic/gen.c:        remove old endianess stuff
15621         * src/pic/genarith.c:   remove old endianess stuff
15622         * src/pic/glue.c:       fix endianess check
15623         * src/pic16/gen.c:      remove old endianess stuff
15624         * src/pic16/genarith.c: remove old endianess stuff
15625         * src/pic16/glue.c:     fix endianess check
15626         * src/xa51/gen.c:       remove old endianess stuff
15627         * src/z80/gen.c:        fix endianess check
15628         * src/SDCCglue.c:       fix endianess check
15629         * src/ds390/peeph.def: fix bug 700036
15630
15631 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
15632
15633         * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
15634         * src/configure: find appropriate data-types on host for SDCC's int and long
15635         * src/configure.in: find appropriate data-types on host for SDCC's int and long
15636         * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
15637         * src/xa51/gen.c: use %d, not %ld for 4 byte variables
15638
15639 2003-03-07    <johan AT balder>
15640
15641         Just a big NOOP:
15642                 some minor cleanups before the big shot
15643                 OP_DEFS and OP_USES now use Kevin's protection
15644                 new option --nolabelopt
15645
15646         * src/SDCCBBlock.c:
15647         * src/SDCCast.c,:
15648         * src/SDCCcflow.c:
15649         * src/SDCCcse.c:
15650         * src/SDCCicode.c:
15651         * src/SDCCicode.h:
15652         * src/SDCClabel.c:
15653         * src/SDCCloop.c:
15654         * src/SDCCmain.c:
15655         * src/ds390/ralloc.c:
15656         * src/mcs51/ralloc.c:
15657         * src/pic/ralloc.c:
15658         * src/xa51/ralloc.c:
15659         * src/z80/ralloc.c:
15660
15661 2003-03-06  Bernhard Held <bernhard AT bernhardheld.de>
15662
15663         * src/pic/pcode.c (get_op): fix 64 bit warnings
15664         * src/pic/pcode.c (pCode2str): fix 64 bit warnings
15665         * src/SDCChasht.c (newHashTable): fix 64 bit warnings
15666         * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
15667         * support/regression/tests/malloc.c: fix 64 bit warnings
15668
15669 2003-03-04  Bernhard Held <bernhard AT bernhardheld.de>
15670
15671         * src/mcs51/gen.c (genMinus): fixed bug 696436
15672
15673 2003-03-02  Borut Razem <borut.razem AT siol.net>
15674
15675         * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
15676
15677 2003-02-26  Bernhard Held <bernhard AT bernhardheld.de>
15678
15679         * configure.in: test for mkstemp
15680         * sdccconf_in.h: add HAVE_MKSTEMP
15681
15682 2003-02-24  Bernhard Held <bernhard AT bernhardheld.de>
15683
15684         * device/include/ctype.h: removed warning while using --stack-auto
15685         * device/include/malloc.h: removed warning while using --stack-auto
15686         * device/include/string.h: removed warning while using --stack-auto
15687
15688 2003-02-23  Borut Razem <borut.razem AT siol.net>
15689
15690         * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
15691         because NDEBUG is defined (see man assert)
15692         * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
15693
15694 2003-02-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15695
15696         * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
15697         * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
15698
15699 2003-02-18  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15700
15701         * src/SDCCpeeph.c: added peephole conditions testing for same arguments
15702         * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
15703
15704 2003-02-18    <johan AT balder>
15705
15706         * as/mcs51/asmain.c (asmbl): module can start with a digit
15707         * as/z80/asmain.c (asmbl): module can start with a digit
15708
15709 2003-02-16  Bernhard Held <bernhard AT bernhardheld.de>
15710
15711         * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
15712         * src/asm.c: fix pipe() for Mingw32
15713
15714 2003-02-15  Bernhard Held <bernhard AT bernhardheld.de>
15715
15716         * src/SDCCglue.h: make tmpfileNameSet available for preOutName
15717         * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
15718         make -V work again; --c1mode reads now from stdin
15719         * doc/sdccman.lyx: added --c1mode
15720         * support/Util/SDCCerr.c: new messages for c1 mode
15721         * support/Util/SDCCerr.h: new messages for c1 mode
15722         * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
15723
15724 2003-02-15    <johan AT balder>
15725
15726         * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
15727
15728 2003-02-14  Bernhard Held <bernhard AT bernhardheld.de>
15729
15730         * doc/sdccman.lyx: Environment variables, -o and other minor things
15731
15732 2003-02-14    <johan AT balder>
15733
15734         * src/xa51/main.c: before anyone really tries to use it :)
15735
15736         * Install doc's in share/sdcc/doc
15737         * removed some obsolete files
15738         * Do a proper make distclean and uninstall
15739         M Makefile.common.in
15740         R sdccbuild.sh
15741         M as/Makefile
15742         M device/include/Makefile.in
15743         M device/lib/Makefile.in
15744         M doc/sdccman.lyx
15745         M link/Makefile
15746         M sim/ucsim/doc/Makefile.in
15747         M src/clean.mk
15748         R src/avr/peeph.rul
15749         R src/xa51/peeph.rul
15750         M support/cpp2/Makefile.in
15751         M support/makebin/Makefile
15752
15753
15754 2003-02-13  Bernhard Held <bernhard AT bernhardheld.de>
15755
15756         * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
15757
15758 2003-02-10  Borut Razem <borut.razem AT siol.net>
15759
15760         * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
15761         support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
15762         * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
15763         device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
15764         support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
15765         src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
15766         src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
15767         src/z80/Makefile.bcc: Borland Makefile cleanup
15768         * as/z80/Makefile.bcc: Added Borland Makefile
15769         * support/cpp2/borland.h: Removed
15770
15771 2003-02-10  Bernhard Held <bernhard AT bernhardheld.de>
15772
15773         * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
15774         * src/SDCC.lex: new pragma NOIV
15775         * src/SDCCglobl.h: new pragma NOIV
15776         * src/SDCCmem.c: new pragma NOIV
15777
15778 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
15779
15780         * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
15781
15782 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
15783
15784         * src/SDCCmain.c: signal handling is switched off by --debug
15785         * doc/Makefile: small fix for install; use clean.mk again
15786         * doc/clean.mk: clean *.pdf and *.html too
15787
15788 2003-02-08  Bernhard Held <bernhard AT bernhardheld.de>
15789
15790         * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
15791         * device/lib/printfl.c: fix a ds390 bug by making it portable
15792         * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
15793         * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
15794         * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
15795         * debugger/mcs51/cmd.c: converted multi-line string literals
15796         * sim/ucsim/globals.cc: converted multi-line string literals
15797         * src/SDCCmain.c: introduced signal handler to remove temp files
15798         * doc/Makefile: small tweaks, implement clean
15799         * doc: removed generated files
15800
15801 2003-02-05  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15802
15803         * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
15804         patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
15805         Address Record is not correctly generated for DS390."
15806
15807 2003-02-02  Borut Razem <borut.razem AT siol.net>
15808
15809         * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
15810         * as/mcs51/asm.h: fixed compilation with Borland C
15811         * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
15812         * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
15813         * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
15814         * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
15815         src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
15816         src/z80/Makefile.bcc: delete $(LIB) only if exist
15817         * src/Makefile.bcc, src/pic/Makefile.bcc:  fixed compilation with Borland C
15818
15819 2003-02-02  Bernhard Held <bernhard AT bernhardheld.de>
15820
15821         * device/include/malloc.h: introduced NULL
15822         * device/include/string.h: introduced NULL
15823         * device/include/stdlib.h: introduced NULL
15824         * device/lib/_memcpy.c: removed NULL
15825         * device/lib/_strcat.c: removed NULL
15826         * device/lib/_strchr.c: removed NULL
15827         * device/lib/_strcmp.c: removed NULL
15828         * device/lib/_strcpy.c: removed NULL
15829         * device/lib/_strcspn.c: removed NULL
15830         * device/lib/_strlen.c: removed NULL
15831         * device/lib/_strncat.c: removed NULL
15832         * device/lib/_strncmp.c: removed NULL
15833         * device/lib/_strncpy.c: removed NULL
15834         * device/lib/_strpbrk.c: removed NULL
15835         * device/lib/_strrchr.c: removed NULL
15836         * device/lib/_strspn.c: removed NULL
15837         * device/lib/_strstr.c: removed NULL
15838         * device/lib/_strtok.c: removed NULL
15839         * device/lib/malloc.c: removed NULL, include own header
15840
15841 2003-02-02    <johan AT balder>
15842
15843         * 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
15844         * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
15845         * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
15846         * src/z80/gen.c (genZ80Code): added c-lines in asm comments
15847         * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
15848         * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
15849
15850 2003-02-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15851
15852         * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
15853         area 'DATA'"
15854
15855 2003-02-01    <johan AT balder>
15856
15857         * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
15858
15859 2003-01-31    <johan AT CP255758-A>
15860
15861         * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
15862
15863 2003-01-30    <johan AT balder>
15864
15865         * src/SDCCBBlock.c: automatic bug detection
15866         * src/SDCCicode.c: automatic bug detection
15867
15868 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15869
15870         * src/SDCCglobl.h:   now --xram-size 0 works
15871         * src/SDCCmain.c:    now --xram-size 0 works
15872
15873 2003-01-29    <johan AT balder>
15874
15875         * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
15876
15877 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15878
15879         * as/mcs51/aslink.h: Added options --xram-size and --code-size
15880         * as/mcs51/lkdata.c: Added options --xram-size and --code-size
15881         * as/mcs51/lkmain.c: Added options --xram-size and --code-size
15882         * as/mcs51/lkmem.c:  Added options --xram-size and --code-size
15883         * src/SDCCglobl.h:   Added options --xram-size and --code-size
15884         * src/SDCCmain.c:    Added options --xram-size and --code-size
15885
15886 2003-01-28  Bernhard Held <bernhard AT bernhardheld.de>
15887
15888         * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
15889         * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
15890
15891 2003-01-27    <johan AT balder>
15892
15893         * src/SDCC.y: fixed bug #613764
15894
15895 2003-01-26    <johan AT balder>
15896
15897         * src/SDCClrange.c:  fixed Bernhard's "char * code ptr = &c"
15898         * src/SDCCsymt.h: fixed bug #673374
15899         * src/SDCCglue.c: fixed bug #661910
15900         * src/SDCCast.c: fixed bug #458099 and 673374
15901
15902 2003-01-26  Bernhard Held <bernhard AT bernhardheld.de>
15903
15904         * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
15905         * as/mcs51/strcmpi.h: added
15906         * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
15907         * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
15908         * as/mcs51/asmain.c: strcmpi -> as_strcmpi
15909         * as/mcs51/assym.c: strcmpi -> as_strcmpi
15910         * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
15911         * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
15912         * as/mcs51/lksym.c: strcmpi -> as_strcmpi
15913         * as/mcs51/Makefile.aslink: new module strcmpi
15914         * as/mcs51/Makefile.asx8051: new module strcmpi
15915         * as/mcs51/Makefil.bcc: new module strcmpi
15916         * as/mcs51/Makefile.in: new module strcmpi
15917         * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
15918
15919 2003-01-26    <johan AT balder>
15920
15921         * src/SDCCglue.c: reverted back to 1.124
15922         * src/SDCCast.c: reverted back to 1.156
15923         * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
15924
15925 2003-01-25    <johan AT balder>
15926
15927         * src/SDCCglue.c: A better fix for bug #661910
15928         * src/SDCCast.c: A better fix for bug #661910
15929         * src/SDCCglue.c (emitRegularMap): That was a little too efficient
15930
15931 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
15932
15933         * src/Makefile.in: remove spawn.o
15934         * src/SDCCmain.c: remove spawn.h
15935         * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
15936         * src/spawn.c: removed
15937         * src/spawn.h: removed
15938         * support/regression/ports/ds390/spec.mk: link with -r
15939
15940 2003-01-24    <johan AT CP255758-A>
15941
15942         * src/ds390/gen.c (aopOp): fixed bug #667458
15943         * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
15944         * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
15945         (createIvalCharPtr): an ival doesn't always have a storage class anymore
15946
15947 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
15948
15949         * src/mcs51/peeph.def: better assembler identation by Frieder
15950         * src/mcs51/gen.c: better assembler identation by Frieder
15951
15952 2003-01-22  Bernhard Held <bernhard AT bernhardheld.de>
15953
15954         * as/z80/string.h: removed for gcc 3.2
15955         * support/makebin/makebin.c: #include <string.h> for gcc 3.2
15956         * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
15957
15958 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
15959
15960         * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
15961         * src/SDCCpeeph.c (replaceRule): fix bug #663503
15962         * support/regression/Makefile: separate temp files for ports
15963         * support/regression/generate-cases.py: separate temp files for ports
15964         * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
15965         * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
15966
15967 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
15968
15969         * moved tinitalk to device/examples/ds390
15970
15971 2003-01-14  Bernhard Held <bernhard AT bernhardheld.de>
15972
15973         * as/mcs51/lkmem.c: rflag is for DS390
15974         * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
15975         * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
15976                          (linkEdit): move mem- and map-files the same way as ihx-files
15977         * src/z80/main.c (_setDefaultOptions): removed --generic
15978         * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
15979         * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
15980         * src/pic/glue.c (picglue): --c1mode works again
15981         * src/pic16/glue.c (pic16glue): --c1mode works again
15982         * src/asm.c (printCLine): fix #660034
15983
15984 2003-01-13  Bernhard Held <bernhard AT bernhardheld.de>
15985
15986         * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
15987         * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
15988         * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
15989         * as/mcs51/lkmem (summary): better fix for sp problem
15990         * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
15991         * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
15992         * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
15993                                               remove --stack-after-data
15994
15995 2003-01-12  Bernhard Held <bernhard AT bernhardheld.de>
15996
15997         * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
15998         * src/SDCCutil.c (join): ugly bug: missing '\0'
15999         * as/mcs51/lkmem.c (summary): sp on address 7 is safe
16000
16001 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
16002
16003         * src/SDCCmain.c (assemble, linkEdit): preparations for -o
16004         * src/port.h: typo
16005         * src/pic/main.c (_asmCmd): gpasm supports -o
16006         * src/z80/main.c: more general macros
16007         * device/lib/Makefile.in: remove intermediate files
16008
16009 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
16010
16011         * .version: Bumped version number to 2.3.3
16012         * src/SDCCBBlock.c: new option -o
16013         * src/SDCCglobl.h: new option -o
16014         * src/SDCCglue.c: new option -o
16015         * src/SDCCmain.c: new option -o
16016         * src/asm.c: new option -o
16017         * src/ds390/main.c: new option -o
16018         * src/pic/glue.c: new option -o
16019         * src/pic/pcode.c: new option -o
16020         * src/pic/ralloc.c: new option -o
16021         * src/pic16/glue.c: new option -o
16022         * src/pic16/pcode.c: new option -o
16023         * src/pic16/ralloc.c: new option -o
16024         * src/z80/main.c: new option -o
16025         * device/lib/Makefile.in: use -o
16026         * support/regression/ports/ds390/spec.mk: use -o
16027         * support/regression/ports/gbz80/spec.mk: use -o
16028         * support/regression/ports/mcs51/spec.mk: use -o
16029         * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
16030         * support/regression/ports/z80/spec.mk: use -o
16031         * support/regression/ports/ucz80/spec.mk: use -o
16032         * support/regression/ports/xa51/spec.mk: use -o
16033         * support/regression/fwk/lib/timeout.c: fix usage string
16034
16035 2003-01-09  Bernhard Held <bernhard AT bernhardheld.de>
16036         * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
16037
16038 2003-01-07    <johan AT balder>
16039
16040         * src/SDCCast.c (decorateType): fixed bug #600035
16041
16042 2003-01-07  Bernhard Held <bernhard AT bernhardheld.de>
16043         * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
16044         * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
16045         * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
16046         * src/pic/pcode.c: outcommented unused variable to remove warnings
16047         * src/pic/ralloc.c: outcommented unused variable to remove warnings
16048
16049 2003-01-06    <karl AT turbobit.com>
16050         * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
16051    regression tests.
16052
16053 2003-01-06    <johan AT balder>
16054
16055         * src/SDCCicode.c: fixed array add
16056
16057 2002-01-05  Bernhard Held <bernhard AT bernhardheld.de>
16058         * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
16059         * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
16060
16061 2003-01-04    <johan AT balder>
16062
16063         * src/SDCCval.c (getNelements): fixed the initialized array of structures
16064
16065 2002-12-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16066         * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
16067
16068 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
16069         * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
16070         * support/regression/tests/bug-524697.c: fit mem usage into 8032
16071
16072 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
16073         * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
16074
16075 2002-12-27  Bernhard Held <bernhard AT bernhardheld.de>
16076         * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
16077
16078 2002-12-26  Bernhard Held <bernhard AT bernhardheld.de>
16079         * src/mcs51/main.c: removed {bindir}{sep} from aslink
16080
16081 2002-12-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16082
16083     * in /sdcc/as/mcs51/ changed these files in order to create an
16084     aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
16085     lkmain.c.  Also added: lkmem.c and lkaomf51.c.  Changed the
16086     following files to include the previous two files: aslink.dsp,
16087     Makefile.aslink, Makefile.bcc, and Makefile.in.
16088
16089     * Changed /sdcc/src/SDCCmain.c so it creates files with extension
16090     .adb instead of .cdb
16091
16092 2002-11-09  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16093
16094         * /sdcc/as/mcs51/lklist.c: Now reports memory usage using the
16095         value from option --iram-size.
16096
16097 2002-09-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16098
16099         * /sdcc/as/mcs51/lklist.c: added boundary check before using
16100         dram[] array.
16101
16102 2002-09-18    <wiml AT hhhh.org>
16103
16104         * SDCClrange.h: exposed setFromRange() and setToRange()
16105         * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
16106           packRegsForAccUse() (bug 542397)
16107         * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
16108           multiple times and emitting the fetch operations more than once
16109           added aopGetUsesAcc() function to allow binary operators to
16110           fetch their operands in the correct order; made genMinus() emit
16111           compact code for X = LITERAL - Y
16112
16113 2002-09-00  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16114         * /sdcc/as/mcs51/lklist.c: Fixed incorrect number of parameters to
16115         sprintf() in line 1267.
16116
16117 2002-09-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16118         * /sdcc/src/SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
16119         like ports.
16120
16121 2002-09-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16122         Changes to aslink (All the changes are marked with 'JCF'):
16123
16124         * /sdcc/as/mcs51/aslink.h: External definition of sflag and
16125         summary().
16126
16127         * /sdcc/as/mcs51/lkarea.c: Computes the size of area BSEG_BYTES from
16128         area BSEG.  Also moves, if possible, the DATA area down into the internal
16129         ram so more space is available.
16130
16131         * /sdcc/as/mcs51/lkdata.c: Definition of memory summary output flag
16132         sflag.
16133
16134         * /sdcc/as/mcs51/lklist.c: For the BSEG area report the size in bits,
16135         not bytes.  Function summary() which creates a memory usage summary
16136         file with extension .mem.  Reports of overlaping stack and small stack
16137         size.  If the space for the stack is less than 16 bytes aslink trows a
16138         warning.
16139
16140         * /sdcc/as/mcs51/lkmain.c: Creation of some of the default areas for
16141         the 8051.  Option 'y' for memory summary output file.
16142
16143         Changes to sdcc (All the changes are marked with 'JCF'):
16144
16145         * /sdcc/src/SDCCglobl.h: External definition of RegBankUsed[4].
16146
16147         * /sdcc/src/SDCCglue.c:  If a register bank is used, creates an
16148         overlaying area for it (uses RegBankUsed[4]).
16149
16150         * /sdcc/src/SDCCmain.c: Definition RegBankUsed[4]; marks register
16151         bank zero as used by default.  By default aslink locates the stack
16152         (equivalent to --stack-after-data).  Pass option 'y' to aslink for
16153         the creation of the .mem file.  Delegates the allocation of data area
16154         to aslink (it is not longer 0x30 by default).  If --stack-loc passes
16155         the begining of the stack area to aslink.
16156
16157         * /sdcc/src/SDCCmem.c:  If a register bank is used, marks it so
16158         glue() in SDCCglue.c creates an area for it.
16159
16160 2002-09-03  Borut Razem <borut.razem AT siol.net>
16161         * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
16162         sdcc/src/pic/glue.c:
16163         introduced atexit() handler for teporay files removal in case of
16164         errors, assertions, ...
16165
16166 2002-08-29  Borut Razem <borut.razem AT siol.net>
16167         * sdcc/support/cpp2/auto-host_vc_in.h:
16168         re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
16169         with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
16170         Maybe there is a similar problem with BORLANDC? It should be checked!
16171
16172         * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
16173         corrected improper use of assert: the assignment to clr variable was done inside the assert.
16174         In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
16175         was not executed, and the compiler (cl) launched a warning:
16176         ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
16177
16178 2002-08-28  Bernhard Held <bernhard AT bernhardheld.de>
16179         * src/SDCCglue.c (printIvalArray): iterative calculation of array length
16180
16181 2002-08-28  Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
16182         * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
16183
16184         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
16185           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
16186           sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
16187           sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
16188           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
16189           sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
16190           sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
16191         - added Release configuration in VS projects
16192         - review of compiler an linker options
16193         - VC .exe files are generated in bin_vc directory, not to interfere
16194           with binaries generated from other projects (cygwin, mingw, bcc ...)
16195
16196         * sdcc/src/yacc.dsp: added
16197
16198         * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
16199         added - genarate sdcc_vc.h using sdcc_vc_in.h as template
16200         and insert the version number definitions from .version
16201
16202         * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
16203
16204         * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
16205         added - genarate auto-host.h using auto-host_vc_in.h as template
16206
16207         * sdcc/sdcc_vc.h,
16208         removed from CVS, generated automatically
16209
16210 2002-08-25  Bernhard Held <bernhard AT bernhardheld.de>
16211         * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
16212
16213 2002-08-11  Borut Razem <borut.razem AT siol.net>
16214         * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
16215
16216 2002-08-10  Borut Razem <borut.razem AT siol.net>
16217         * src/SDCCmain.c (main):
16218         file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
16219         platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
16220         The consequence was that some temporary files were not removed.
16221
16222         * src/SDCCglue.c:
16223         unification of code in functions tempfilename() and tempfile():
16224         function tempnam() is defined in Visual Studio 6.0 and .NET
16225
16226         * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
16227
16228         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
16229           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
16230         - removed compiler command line option /WX: Treats all warnings as errors
16231         - update a list of source files, included into the project
16232
16233         * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
16234           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
16235         changed project type to Generic Project so that can be correcly converted to VS.NET project
16236
16237         * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
16238
16239         * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
16240
16241         * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
16242
16243         * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
16244         added return 0 statements after assert() to make compiler happy
16245
16246         * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
16247         added newline in the def file to keep MSC compiler satisfied
16248
16249         * sdcc/src/z80/gen.c:
16250         - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
16251           so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
16252         - solved MSC error in function aopDump()
16253
16254         * sdcc_vc.h: define PREFIX as "\\sdcc"
16255
16256 2002-07-18  Bernhard Held <bernhard AT bernhardheld.de>
16257         * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
16258
16259 2002-06-22  Scott Dattalo <scott AT dattalo.com>
16260         * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
16261         - Rewrote the register banking algorithm.
16262         - Added pCode live-range analysis to registers (for now, only non-used and
16263         singly-used registers optimized away)
16264
16265         * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
16266
16267         * 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.
16268
16269 2002-05-10  Scott Dattalo <scott AT dattalo.com>
16270         * src/pic/*: Added support for multiplication. Fixed many,many bugs.
16271
16272 2002-04-22  Michael Hope  <michaelh AT vroom>
16273
16274         * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
16275
16276         * configure.in (DD_COPT): Added include support required for gbdk.
16277
16278         * .version: Bumped version number just to increase it.
16279
16280         * src/SDCCmain.c: Added -nostdinc to the default options.
16281
16282 2002-04-15  Michael Hope  <michaelh AT vroom>
16283
16284         * device/lib/z80/printf.c (sprintf): Added.
16285
16286         * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
16287
16288         * src/z80/peeph.def: Added transpose redundent load rule.
16289
16290         * src/z80/main.c: Added force callee saves for jaune.
16291
16292         * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
16293
16294         * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
16295
16296 2002-03-28  Johan Knol  <johan AT balder>
16297
16298         * src/SDCCval.c: fixed bug #532436
16299
16300 2002-03-14  Scott Dattalo <scott AT dattalo.com>
16301         * /src/port.h:
16302         Added "char *Processor" field to the port structure.
16303
16304         * /src/SDCCmain.c:
16305         Added -p option. Allows port dependent processor to be specified.
16306
16307         * all ports:
16308         Initialized the new field char *Processor field to NULL in all ports
16309
16310         * /src/pic/*:
16311         Compiler generated registers for interrupt context saving
16312         were not getting allocated.
16313
16314 2002-03-16  Sandeep Dutta  <sandeep AT ddi.com>
16315
16316         * /src/SDCCast.c:
16317         Fixed left shift. Will promote the left side of a left shift
16318         if a) left shifting more than size of operand or b) when assigned
16319         to something size > size of left side
16320
16321 2002-03-14  Scott Dattalo <scott AT dattalo.com>
16322         * src/pic/*
16323         tons of changes. Register allocation has been
16324         rewritten. Added customization for the various PICs. Flow
16325         analysis is restructured. ...
16326
16327         * src/pic/device.h:
16328         Added
16329
16330         * src/pic/device.c:
16331         Added. device.c is a PIC port hack to accomodate variations
16332         in PIC devices.
16333
16334 2002-03-13  Michael Hope  <michaelh AT vroom>
16335
16336         * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled.  Yeah.
16337
16338 2002-03-04  johanknol  <johanknol AT manik>
16339
16340         * /src/SDCCval.c: fixed
16341
16342         const unsigned char arr[][2] = { { 0, 1 } };
16343         t18.c:1: error: Initializer element is not constant
16344
16345 2002-03-04  bela  <bela AT manik>
16346
16347         * /device/include/mcs51reg.h:
16348         ds89c420 register definition update
16349
16350 2002-03-03    <johan AT FRIJA>
16351
16352         * support/Util/SDCCerr.c: did something, but don't no why anymore
16353
16354         * support/regression/tests/bug-524691.c: made it a little less shy
16355
16356         * src/SDCCast.c (decorateType): fixed bug #524697
16357
16358         * src/SDCCast.c: made some lineno improvements
16359
16360         * src/SDCCval.c (getNelements): changed warning to error
16361
16362         * src/SDCCglue.c (printIvalArray): changed warning to error
16363
16364         * src/SDCCicode.c: fixed a warning for mingw
16365
16366         * src/SDCCast.c (decorateType): fixed the << promotion for ops
16367
16368         * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
16369
16370 2002-03-02  Sandeep Dutta  <sandeep AT ddi.com>
16371
16372         * src/ds390/peeph.def:
16373         Added some more peephole rules
16374
16375         * src/ds390/gen.c: Various fixes & enhancements
16376
16377         * src/SDCClrange.c, src/SDCClrange.h:
16378         functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
16379
16380         * src/ds390/ralloc.c:
16381         various fixes & enhancements (ds390) specific
16382
16383         * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
16384         Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
16385         from rallocs.
16386
16387         * sdcc/src/SDCCcse.c: Better fix for bug # 514308
16388
16389 2002-03-02    <johan AT FRIJA>
16390
16391         * src/SDCCast.c (decorateType): fixed bug #524708
16392
16393         * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
16394
16395         * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
16396
16397 2002-03-01  Michael Hope  <michaelh AT vroom>
16398
16399         * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
16400
16401         * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
16402
16403 2002-03-01    <johan AT FRIJA>
16404
16405         * src/SDCCglue.c (printIvalPtr): fixed bug #524211
16406
16407         * src/SDCCast.c (decorateType): fixed bug #524209
16408
16409         * src/SDCCval.c (valNot): fixed bug #524195
16410
16411 2002-02-26    <johan AT balder>
16412
16413         * src/xa51/gen.c: fixed a warning
16414
16415         * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
16416
16417         * src/SDCCast.c (decorateType): fixed bug #522534
16418
16419 2002-02-23    <johan AT balder>
16420
16421         * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
16422
16423 2002-02-22    <johan AT balder>
16424
16425         * src/SDCCast.c: fixed bug #514865
16426
16427         * src/SDCCy.c ("SDCC.y"): fixed bug #516625
16428
16429 2002-02-21  Sandeep Dutta  <sandeep AT ddi.com>
16430
16431         * sdcc/src/SDCCloop.c:
16432         Previous fix was not good. basic blocks that have "break" or "return" are
16433         not really partof a loop , but live ranges used in these blocks should
16434         be live thru the entire loop, so set partOfLoop but don't add them to
16435         loop region
16436
16437 2002-02-21    <johan AT FRIJA>
16438
16439         * src/SDCCcse.c: fixed bug #514308
16440
16441 2002-02-20  Sandeep Dutta  <sandeep AT ddi.com>
16442
16443         * src/SDCCloop.c:
16444         Fixed BUG #519583. If a conditional block ended in a return/break
16445         statement inside a loop, it was not being considered part of the loop.
16446
16447         * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
16448
16449 2002-02-10  Karl Bongers <karl AT turbobit.com>
16450
16451         * debugger/*:
16452         Fixed up SDCDB debugger somewhat.  Updated debugger/README
16453         with lots of comments and notes.
16454
16455         * device/examples/test2.c:
16456         Fix bug, "red" variable not being initialized(compiler complained).
16457
16458         * device/examples/Makefile, examples/test3.c:
16459         Add Makefile in device/examples folder, compiles test3.c
16460         for use as a multiple module SDCDB test case.
16461
16462         * sim/ucsim/cmd.src/cmdset.cc:
16463         Took out debug printfs in ucsim "next" command.
16464
16465         * sim/ucsim/xa.src:
16466         Karl and Johan start ucsim XA support.  Most dissassembly working,
16467         about 75% emulation done(plenty of work remaining).
16468
16469         * sim/ucsim/z80.src:
16470         Add Z80 support to ucsim, add test-ucz80 regression test,
16471         notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
16472         Notice z80 compiler fails on examples/test3.c/crc code.
16473
16474 2002-01-30  Sandeep Dutta  <sandeep AT ddi.com>
16475
16476         * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
16477         Added support for --parms-in-bank1
16478
16479         * src/ds390/peeph.def:
16480         added a few more peephole optimzations
16481
16482         * src/ds390/main.c:
16483         1) added __builtin_inp & __builtin_outp used to read in data of given length
16484            from a memory mapped port
16485         2) added __builtin_memcmp
16486         3) added __builtin_swapw swap bytes of a short
16487
16488         * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
16489         1) handle multiple send & receives from register bank1
16490         2) ralloc can now allocate DPTR1 to some liveRanges
16491
16492         * src/SDCCsymt.c, src/SDCCsymt.h:
16493         changes to handle multiple sends & receives
16494
16495         * src/SDCCptropt.h:
16496         added some pointer arithmetic optimization
16497
16498         * src/SDCCptropt.c:
16499         added some pointer arithmetic optimizations but not stable yet so not
16500         called from anywhere (will get this working shortly)
16501
16502         * src/SDCCopt.c: fixed for multiple sends & receives
16503
16504         * src/SDCCmain.c:
16505         1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
16506         2) preprocessing done AFTER port->finalizeoptions . This allows ports to
16507            set preprocessor defines (depending on options)
16508
16509         * src/SDCCicode.c, src/SDCCicode.h:
16510         changes made to handle multiple sends & receives
16511
16512         * src/SDCCglobl.h:
16513         Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
16514
16515         * src/SDCCcse.c, src/SDCCcse.h:
16516         added function findbackward def (to be used in upcoming optimization)
16517
16518         * src/SDCCcflow.c, src/SDCCcflow.h:
16519         added function returnAtEnd - to determine if a basic block terminates with
16520         a RETURN iCode
16521
16522         * src/SDCCast.c, src/SDCCast.h:
16523         added option parms-in-bank1
16524
16525         * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
16526         * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
16527         * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
16528         adjusted for --parms-in-bank1 option
16529
16530         * device/include/string.h:
16531         donot redefine "reentrant" keyword
16532
16533         * device/include/ds80c390.h: Added some more SFRs
16534
16535 2002-01-28  Bernhard Held  <bernhard AT bernhardheld.de>
16536
16537         * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
16538
16539 2002-01-26  Bernhard Held  <bernhard AT bernhardheld.de>
16540
16541         * src/SDCCast.c (funcOfType): fix usage of double --float-reent
16542
16543 2002-01-22  Bernhard Held  <bernhard AT bernhardheld.de>
16544
16545         * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
16546
16547 2002-01-18  Paul Stoffregen  <paul AT pjrc.com>
16548
16549         * Added --xram-movc option
16550
16551 2002-01-13  Bernhard Held  <bernhard AT bernhardheld.de>
16552
16553         * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
16554
16555 2002-01-11  Johan Knol
16556
16557         * Added math lib of Jesus Calvino-Fraga
16558
16559 2002-01-08  Bernhard Held  <bernhard AT bernhardheld.de>
16560
16561         * src/SDCCmain.c (processFile): fix processing of ../../src.c
16562         * support/regression/Makefile: new target test-mcs51-stack-auto
16563         * support/regression/ports/mcs51-stack-auto/spec.mk: added
16564
16565 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
16566
16567         * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
16568
16569 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
16570
16571         * support/regression/ports/mcs51/support.c: correct setup of timer / UART
16572
16573 2002-01-03  Bernhard Held  <bernhard AT bernhardheld.de>
16574
16575         * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
16576
16577         * src/SDCCglue.h: add definition for printIvalChar()
16578
16579 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
16580
16581         * src/SDCCast.c: fix #498138 by Johan
16582
16583         * src/SDCCglue.c: fix #498138 by Johan
16584
16585 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
16586
16587         * support/regression/Makefile: fix clean
16588
16589         * support/regression/ports/ds390/support.c: fix transmission of last character
16590
16591 2001-12-29  Sandeep Dutta  <sandeep AT ddi.com>
16592
16593         * /sdcc/src/ds390/gen.c:
16594         a) improved computing address of stack variable
16595         b) took out some #if 0 code
16596         c) improved parmBytes adjustment
16597         d) improved genPlusIncr & genMinusIncr
16598         e) genCmp could generate bad code (when left assigned to DPTR)
16599         f) Fixed bug in hasInc
16600
16601         * /sdcc/src/ds390/ralloc.c:
16602         a) packRegsForSupport could mess up live information (Fixed)
16603         b) packRegsDPTRuse could be incorrect for left & right shift
16604
16605         * /sdcc/src/mcs51/ralloc.c:
16606         packRegsForSupport could mess up the live information (Fixed)
16607
16608         * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
16609
16610         * /sdcc/src/SDCCast.c:
16611         can reverse a loop even if function call is present as long
16612         as the loop control variable is local & is not passed as parameter
16613
16614 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
16615
16616         * /sdcc/ChangeLog: *** empty log message ***
16617
16618         * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
16619         More builtin function additions for TININative
16620
16621         * /sdcc/src/ds390/ralloc.c:
16622         Had broken the regression testsuite
16623
16624         * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
16625
16626         * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
16627         Added funcattr hasStackParms will be set for reentrant functions when there
16628         are paramteres on the stack, this helps in minimizing frame pointer generation
16629         typeFromStr can handle function pointers now
16630
16631         * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
16632         *** empty log message ***
16633
16634 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
16635
16636         * /src/ds390/gen.c, /src/ds390/main.c:
16637         More builtin function additions for TININative
16638
16639         * /src/ds390/ralloc.c:
16640         Had broken the regression testsuite
16641
16642         * /src/SDCCast.c: Fixed a bug in dumptree
16643
16644         * /src/SDCCsymt.c, /src/SDCCsymt.h:
16645         Added funcattr hasStackParms will be set for reentrant functions when there
16646         are paramteres on the stack, this helps in minimizing frame pointer generation
16647         typeFromStr can handle function pointers now
16648
16649         * /doc/builtins.txt, /doc/TININative.txt:
16650         *** empty log message ***
16651
16652
16653 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
16654
16655         * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
16656         ALPHA version for -mTININative
16657
16658         * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
16659         updated to reflect changes in the port structure
16660
16661         * /src/port.h:
16662         added function do_assemble (similar to do_link) if non-null this function
16663         will be called to do assembly (-mTININative) requires a multi command
16664         assembly
16665         added function genAssemblerEnd will be called to generate assembler Epilogue
16666
16667         * /src/SDCCsymt.c:
16668         added _JavaNative to debug info printing
16669
16670         * /src/SDCCmain.c: added option --tini-libid
16671         added port->do_assemble function (-mTININative) has a multi command assemble
16672
16673         * /src/SDCCglue.c: Disabled "constExpr" check
16674         added port->genAssemblerEnd function
16675
16676         * /src/SDCCglobl.h: Added option --tini-libid value
16677
16678         * /src/SDCCast.h:
16679         tookout optimizeCompare from the header (has no external references)
16680
16681         * /src/SDCCast.c: made one more function "static"
16682
16683 2001-12-23  Michael Hope  <michaelh AT juju.net.nz>
16684
16685         * src/z80/mappings.i: Added z80asm support.
16686
16687         * src/z80/main.c: Added z80asm support on --asm=z80asm
16688
16689         * src/z80/gen.c: Fixed asm portability issues.
16690
16691         * src/asm.c (tvsprintf): Removed old code, added 'N' for function name.  For extern support.
16692
16693         * src/SDCCglue.c (printExterns): Added global/extern split.
16694
16695 2001-12-17  Bernhard Held  <bernhard AT bernhardheld.de>
16696
16697         * support/regression/Makefile: added test for mcs51 model large
16698
16699         * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
16700
16701         * support/regression/ports/gbz80/spec.mk: added -mgbz80
16702
16703 2001-12-05  Michael Hope  <michaelh AT juju.net.nz>
16704
16705         * src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.
16706
16707 1904-01-06  Michael Hope  <michaelh AT juju.net.nz>
16708
16709         * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
16710
16711         * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
16712
16713 2001-12-02  Bernhard Held  <bernhard AT bernhardheld.de>
16714
16715         * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
16716
16717         * support/regression/tests/simplefloat.c: Port to mcs51.
16718
16719 2001-11-25  Michael Hope  <michaelh AT juju.net.nz>
16720         * support/regression/tests/bug-485362.c: Added.
16721
16722         * support/regression/tests/simplefloat.c (testDivNearOne): Added.
16723
16724         * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
16725
16726         * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
16727
16728         * src/z80/gen.c (aopDump): Added a dump function.
16729
16730 2001-11-25  Bernhard Held  <bernhard AT bernhardheld.de>
16731         * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
16732
16733         * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
16734
16735         * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
16736
16737         * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
16738
16739         * sim/ucsim/s51.src/uc390cl.h: Work in progress.
16740
16741         * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
16742
16743         * support/regression/fwk/lib/testfwk.c: Run with tinibios.
16744
16745         * support/regression/ports/mcs51/spec.mk: Fine tuninig.
16746
16747         * support/regression/ports/ds390/support.c: Use tinibios.
16748
16749         * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
16750
16751 2001-11-23  Michael Hope  <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
16752
16753         * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
16754         (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
16755
16756         * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
16757
16758         * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
16759
16760 2001-11-18  Michael Hope  <michaelh AT juju.net.nz>
16761
16762         * src/z80/gen.c (genCmp): Fixed compare on unsigned.
16763
16764         * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
16765         (packRegsForIYUse): Created and optimised.
16766
16767 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
16768
16769         * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
16770 2001-11-18  Bernhard Held  <bernhard AT bernhardheld.de>
16771
16772         * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
16773
16774         * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
16775
16776         * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
16777
16778 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
16779
16780         * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
16781
16782         * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
16783
16784 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
16785
16786         * sdcc/sim/ucsim/globals.cc: New: IXRAM.
16787
16788         * sdcc/sim/ucsim/stypes.h: New: IXRAM.
16789
16790         * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
16791
16792 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
16793
16794         * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
16795         (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
16796         (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
16797
16798         * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
16799
16800         * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
16801         (genNotFloat): Added.
16802         (genUminusFloat): Added.
16803
16804         * device/lib/z80/Makefile: Added floating pt stubs.
16805
16806         * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
16807
16808         * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
16809
16810         * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
16811
16812 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
16813
16814         * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
16815
16816         * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
16817
16818         * sdcc/support/regression/Makefile: Add port ds390.
16819
16820         * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
16821
16822         * sdcc/support/regression/ports/z80/spec.mk: Minor change.
16823
16824         * sdcc/support/regression/ports/ds390/spec.mk: Added.
16825
16826         * sdcc/support/regression/ports/ds390/support.c: Added.
16827
16828         * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
16829
16830         * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
16831
16832         * sdcc/support/regression/fwk/lib/timeout.c: Paste.
16833
16834 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
16835
16836         * device/include/malloc.h: Added z80 and gbz80 support.
16837
16838         * device/lib/gbz80/heap.s: Added.
16839
16840         * device/lib/z80/heap.s: Added.
16841
16842         * device/lib/malloc.c: Added z80 and gbz80 support.
16843
16844         * support/regression/tests/malloc.c (testMalloc): Added.
16845
16846         * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
16847
16848         * support/regression/tests/bug-478094.c: Added.
16849
16850         * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
16851
16852 2001-11-04  Bernhard Held  <bernhard AT bernhardheld.de>
16853
16854         * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
16855
16856         * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
16857
16858         * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
16859
16860         * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
16861
16862         * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
16863
16864 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
16865
16866         * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
16867
16868 2001-11-03  Michael Hope  <michaelh AT juju.net.nz>
16869
16870         * support/regression/tests/bug-477927.c: Added.
16871
16872         * src/z80/peeph.def: Added minor rules.
16873
16874         * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
16875
16876         * src/z80/peeph.def: Added jump optimisation modification.
16877
16878 2001-11-01  Michael Hope  <michaelh AT juju.net.nz>
16879
16880         * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
16881
16882 2001-10-30  Michael Hope  <michaelh AT juju.net.nz>
16883
16884         * support/regression/tests/funptrs.c: Added.
16885
16886 2001-10-29  Michael Hope  <michaelh AT juju.net.nz>
16887
16888         * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
16889
16890 2001-10-28  Michael Hope  <michaelh AT juju.net.nz>
16891
16892         * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
16893
16894         * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
16895
16896         * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
16897         (movLeft2ResultLong): Created.
16898
16899         * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
16900         (joinPushes): Added.  Joins two char pushes into a word push.
16901
16902 2001-10-27  Michael Hope  <michaelh AT juju.net.nz>
16903
16904         * support/cpp2/Makefile.in (install): Added creation of dest dir.
16905
16906         * support/makebin/Makefile (install): Added creation of dest dir.
16907
16908 2001-10-24 Karl Bongers <karl AT turbobit.com>
16909
16910         * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
16911
16912 2001-10-21  Michael Hope  <michaelh AT juju.net.nz>
16913
16914         * src/z80/ralloc.c: Turned off faulty pack for one use.
16915
16916         * src/z80/peeph-gbz80.def: Removed redundent restart options.
16917
16918         * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
16919
16920 2001-10-21  Bernhard Held  <bernhard AT bernhardheld.de>
16921
16922         * support/regression/Makefile: Improved clean
16923
16924         * support/regression/ports/gbz80/spec.mk: Added clean
16925
16926         * support/regression/ports/host/spec.mk: Added clean
16927
16928         * support/regression/ports/z80/spec.mk: Added clean
16929
16930         * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
16931
16932         * support/regression/ports/mcs51/timeout.c: little improvements
16933
16934 2001-10-17  Michael Hope  <michaelh AT juju.net.nz>
16935
16936         * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
16937
16938         * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
16939
16940         * support/regression/generate-cases.py: Fixed up to use function pts correctly.
16941
16942 2001-10-16  Bernhard Held  <bernhard AT bernhardheld.de>
16943
16944         * support/regression/port/mcs51/spec.mk: add timeout for uCsim
16945
16946         * support/regression/port/mcs51/timeout.c: add timeout for uCsim
16947
16948 2001-10-13  Michael Hope  <michaelh AT juju.net.nz>
16949         * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
16950
16951         * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
16952
16953         * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
16954
16955         * src/mcs51/main.c (_linkCmd): Added bin path to command.
16956
16957         * src/SDCCmain.c (initValues): Added support for when it it called just to link.
16958
16959         * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
16960
16961         * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
16962
16963         * support/regression/tests/longor.c: Added.
16964
16965 2001-10-11  Bernhard Held  <bernhard AT bernhardheld.de>
16966
16967         * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
16968
16969         * as/mcs51/aslink.h: define PATH_MAX
16970
16971         * as/mcs51/asm.h: define PATH_MAX
16972
16973         * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
16974
16975         * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
16976
16977         * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
16978
16979         * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
16980
16981         * src/SDCCglobl.h: define PATH_MAX
16982
16983         * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
16984
16985         * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
16986
16987 2001-10-11  Michael Hope  <michaelh AT juju.net.nz>
16988
16989         * src/z80/gen.c (gencjneshort): Fixed
16990
16991         * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
16992
16993 2001-10-09  Michael Hope  <michaelh AT juju.net.nz>
16994
16995         * support/regression/tests/bug-469671.c: Added.
16996
16997         * src/z80/gen.c (shiftIntoPair): Fixed up warning.
16998
16999 2001-10-08  Michael Hope  <michaelh AT juju.net.nz>
17000
17001         * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
17002
17003         * src/z80/gen.c (genPlus): Fixed to work with extended stack.  Also fixed genMinus, genCmp.  genUMinus is still left.
17004
17005 2001-10-08  Bernhar Held  <bernhard AT bernhardheld.de>
17006
17007         * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
17008
17009         * src/device/lib/_mulint.c  : removed hint: nooverlay bug
17010
17011         * src/device/lib/_mullong.c : removed hint: nooverlay bug
17012
17013         * src/device/lib/_divuint.c : removed hint: nooverlay bug
17014
17015         * src/device/lib/_divulong.c: removed hint: nooverlay bug
17016
17017         * src/device/lib/_moduint.c : removed hint: nooverlay bug
17018
17019         * src/device/lib/_modulong.c: removed hint: nooverlay bug
17020
17021 2001-10-07  Michael Hope  <michaelh AT juju.net.nz>
17022
17023         * 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.
17024
17025         * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.
17026
17027         * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
17028
17029 2001-10-07    <johan AT FRIJA>
17030
17031         * device/lib/gets.c (gets): fixed the return value.
17032
17033 2001-10-06  Michael Hope  <michaelh AT juju.net.nz>
17034         * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
17035
17036         * 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.
17037
17038         * 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.
17039
17040         * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
17041
17042         * src/pic/gen.c: Removed Safe_strdup.
17043
17044         * configure.in: Added option to enable libgc support.
17045
17046         * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
17047         (bitVectUnion): Optimised.
17048         (bitVectIntersect): Optimised.
17049         (bitVectBitsInCommon): Optimised.
17050         (bitVectCplAnd): Optimised.
17051
17052         * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.
17053
17054 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
17055
17056         * src/SDCCmain.c: distinguish between assembler debug and plain options
17057
17058         * src/avr/main.c:   remove standard assembler options
17059
17060         * src/ds390/main.c: remove standard assembler options
17061
17062         * src/mcs51/main.c: remove standard assembler options
17063
17064         * src/port.h: removed "PENDING" comment
17065
17066 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
17067
17068         * src/device/lib/_mulint.c  : new, with assember functions
17069
17070         * src/device/lib/_mullong.c : new, with assember functions
17071
17072         * src/device/lib/_divuint.c : with assember functions
17073
17074         * src/device/lib/_divsint.c : with assember functions
17075
17076         * src/device/lib/_divulong.c: with assember functions
17077
17078         * src/device/lib/_divslong.c: with assember functions
17079
17080         * src/device/lib/_moduint.c : with assember functions
17081
17082         * src/device/lib/_modsint.c : with assember functions
17083
17084         * src/device/lib/_modulong.c: with assember functions
17085
17086         * src/device/lib/_modslong.c: with assember functions
17087
17088         * src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c
17089
17090         * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
17091
17092         * src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
17093                                       replaced _mululong.c and _mulslong.c by _mullong.c
17094
17095 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
17096
17097         * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
17098
17099 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
17100
17101         * src/SDCCglue.c: test, if win32api is available for MINGW
17102
17103 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
17104
17105         * src/SDCCsymt.c: no more _modifier in printTypeChain()
17106         * support/regression/tests/driverstruct.c: REENTRANT for mcs51
17107         * support/regression/ports/gbz80/spec.mk: removed GENERIC
17108         * support/regression/ports/host/spec.mk: removed GENERIC
17109         * support/regression/ports/mcs51/spec.mk: removed GENERIC
17110         * support/regression/ports/z80/spec.mk: removed GENERIC
17111
17112 2001-10-01  Michael Hope  <michaelh AT juju.net.nz>
17113
17114         * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
17115
17116         * support/regression/tests/bug-467035.c: Created.
17117
17118 2001-10-01    <johan AT FRIJA>
17119
17120         * src/SDCC.y: fixed bug #466586 part 1
17121
17122 2001-10-01  Johan Knol <johan.knol AT iduna.nl>
17123
17124         * SDCCicode.c: z80 has no generic pointers
17125         * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
17126
17127 2001-09-30  Michael Hope  <michaelh AT juju.net.nz>
17128
17129         * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
17130
17131 2001-09-29  Michael Hope  <michaelh AT juju.net.nz>
17132
17133         * Makefile (sdcc-libs): Added makebin to the list of standard targets.
17134
17135         * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
17136
17137 2001-09-25  Michael Hope  <michaelh AT juju.net.nz>
17138
17139         * configure.in: Fixed up so that ucsim is only configured once.
17140
17141         * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
17142
17143         * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
17144         (getPathDifference): As above.
17145
17146         * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.
17147
17148         * src/SDCCglue.c (tempfilename): Added function for pre-processor.
17149
17150 2001-09-23  Michael Hope  <michaelh AT juju.net.nz>
17151         * .version: Updated to 2.3.1
17152
17153         * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
17154         Added copyright header.
17155
17156         * src/SDCCmain.c: Shifted various functions into SDCCutil.c
17157         (assemble): Added support for macro based assembler commands.
17158         (linkEdit): Added support for macro based linker commands.
17159         (preProcess): Changed the pre-processor to use macros.
17160         (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
17161         (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
17162
17163         * device/lib/z80/crt0.s: Added module name for debugging.
17164
17165 2001-09-20  Michael Hope  <michaelh AT juju.net.nz>
17166
17167         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
17168
17169         * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
17170
17171         * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
17172
17173         * src/Makefile.in: Added SDCCmacro and SDCCutil
17174
17175 2001-09-19  Michael Hope  <michaelh AT juju.net.nz>
17176
17177         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
17178
17179 2001-09-16    <johan AT FRIJA>
17180
17181         * 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.
17182
17183 2001-09-15    <johan AT FRIJA>
17184
17185         * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
17186         * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
17187
17188 2001-09-11    <johan AT FRIJA>
17189
17190         * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
17191
17192 2001-09-10  Michael Hope  <michaelh AT juju.net.nz>
17193
17194         * support/regression/tests/bug-460444.c: Added test case.
17195
17196         * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
17197         (genCast): Added justification for all of the asserts.
17198
17199 2001-09-10  Bernhard Held <bernhard AT bernhardheld.de>
17200
17201         * support/regression/support.c: _xdata replaced by xdata
17202
17203         * support/regression/spec.mk: removed _generic
17204
17205 2001-09-09  Michael Hope  <michaelh AT juju.net.nz>
17206
17207         * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
17208
17209         * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
17210         (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
17211
17212         * src/z80/peeph.def: Added a rule to optimise shift then compare.
17213
17214         * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
17215
17216         * support/regression/tests/bug-460010.c: Added test case.
17217
17218         * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
17219
17220 2001-09-09  Bernhard Held <bernhard AT bernhardheld.de>
17221
17222         * support/regression/Makefile: inter-port-clean adjusted for mcs51
17223
17224         * support/regression/testfwk.c: removed workaround for bug #436344
17225
17226         * support/regression/tests/bp.c: use less memory with mcs51
17227
17228         * support/regression/tests/bug-441448.c: use less memory
17229
17230         * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
17231
17232         * support/regression/collate-results.py: typo
17233
17234 2001-09-08  Michael Hope  <michaelh AT juju.net.nz>
17235
17236         * support/regression/tests/fetchoverlap.c: Added new test case.
17237
17238         * support/regression/tests/bp.c: Added new test case.
17239
17240         * support/regression/tests/bug-448984.c: Added new test case.
17241
17242         * support/regression/tests/pow2shifts.c: Added new test case.
17243
17244         * src/z80/gen.c: Turned off the noise it normally generates for the release.
17245         (genlshTwo): Fixed right shift for count > 8.
17246
17247         * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
17248
17249 2001-09-08    <johan AT FRIJA>
17250
17251         * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
17252
17253 2001-09-07    <johan AT FRIJA>
17254
17255         * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
17256
17257         * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
17258
17259 2001-09-06    <johan AT FRIJA>
17260
17261         * src/SDCC.y: this could be a fix for bug #458744 (1.37)
17262         * bernhard noted me at this: "() equals to (void)" (1.38)
17263
17264 2001-09-05    <johan AT FRIJA>
17265
17266         * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
17267
17268 2001-09-04    <johan AT FRIJA>
17269
17270         * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
17271
17272
17273 2001-09-04  Paul Stoffregen  <paul AT pjrc.com>
17274
17275         * pragma noinduction broke memcpy on mcs51 large model.  Moved it inside z80 optimization
17276
17277 2001-09-03  Michael Hope  <michaelh AT juju.net.nz>
17278
17279         * link/z80/aslink.h: Fixed path for PATH_MAX
17280
17281 2001-09-02  Michael Hope  <michaelh AT juju.net.nz>
17282
17283         * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
17284
17285         * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
17286
17287         * support/regression/tests/uminus.c: Added a test for the unary minus operator.
17288
17289         * 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.
17290
17291 2001-09-01  Michael Hope  <michaelh AT juju.net.nz>
17292
17293         * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
17294         (genCmp): Fixed up genCmp for the GB with longs.
17295
17296         * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
17297
17298         * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
17299
17300         * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
17301
17302         * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
17303
17304 2001-08-30  Paul Stoffregen  <paul AT pjrc.com>
17305
17306         * added peepholes 223 to 231 to mcs51 port.  These improve code when using large model.
17307
17308 2001-08-30  Michael Hope  <michaelh AT juju.net.nz>
17309
17310         * 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.
17311
17312         * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
17313
17314 2001-08-29  Michael Hope  <michaelh AT juju.net.nz>
17315
17316         * link/z80/aslink.h: Fixed long file name support.  Is now based off PATH_MAX instead of a constant.
17317
17318         * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
17319
17320 2001-08-30 Bernhard Held   <bernhard AT bernhardheld.de>
17321
17322   * sim/ucsim/configure:    little improvement of Cygwin-detection
17323   * sim/ucsim/configure.in: little improvement of Cygwin-detection
17324   * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
17325   * support/regression/tests/bug-221100.c: small changes for mcs51
17326   * support/regression/tests/bug-221168.c: small changes for mcs51
17327   * support/regression/tests/bug-227710.c: small changes for mcs51
17328   * support/regression/tests/staticinit.c: small changes for mcs51
17329   * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
17330   * as/mcs51/lklex.c:  accept everything as symbol name in rel-files, bug fix ID 452601
17331   * as/mcs51/lksym.c:  accept everything as symbol name in rel-files, bug fix ID 452601
17332
17333 $Revision$