* doc/sdccman.lyx, doc/random-notes.txt, doc/avr/avr_design.txt,
[fw/sdcc] / ChangeLog
1 2008-12-19 Borut Razem <borut.razem AT siol.net>
2
3         * doc/sdccman.lyx, doc/random-notes.txt, doc/avr/avr_design.txt,
4           doc/TININative.txt, doc/macro-sys-design.txt, doc/libdoc.txt,
5           doc/README.txt, doc/test_suite_spec.lyx:
6           applaid patch 2446381: Dcoumentation spelling correcitons
7           thanks to Steven Borley
8
9 2008-12-16 Raphael Neider <rneider AT web.de>
10
11         * device/include/pic/pic12f629.h,
12           device/include/pic/pic12f675.h,
13           device/lib/pic/libdev/pic12f629.c,
14           device/lib/pic/libdev/pic12f675.c: consolidated, added TRISIO bits
15
16 2008-12-14 Borut Razem <borut.razem AT siol.net>
17
18         * doc/sdccman.lyx, cdbfileformat.lyx, test_suite_spec.lyx:
19           converted to LyX 1.5.7 (\lyxformat 276) format
20
21 2008-12-07 Borut Razem <borut.razem AT siol.net>
22
23         * support/regression/tests/bitfields.c:
24           added test case for bug #2366757
25
26 2008-12-07 Raphael Neider <rneider AT web.de>
27
28         * src/pic16/glue.c (pic16_printIvalBitFields): prevent
29           NULL pointer dereference, closes #2366757
30
31 2008-11-25 Raphael Neider <rneider AT web.de>
32
33         * device/include/pic16/pic16devices.txt,
34           sdcc/src/pic16/device.c,
35           sdcc/src/pic16/device.h: implicitly disable XINST
36           whenever CONFIG4L is set via an additional optional
37           argument to the configword directive in pic16devices.txt
38
39 2008-11-24 Raphael Neider <rneider AT web.de>
40
41         * device/lib/pic16/configure.ac,
42           device/lib/pic16/Makefile.common: fixed quoting issues
43
44         * device/lib/pic16/configure,
45           device/lib/pic16/debug/Makefile.in,
46           device/lib/pic16/libc/Makefile.in,
47           device/lib/pic16/libdev/Makefile.in,
48           device/lib/pic16/libio/Makefile.in,
49           device/lib/pic16/libm/Makefile.in,
50           device/lib/pic16/libsdcc/Makefile.in,
51           device/lib/pic16/Makefile.in,
52           device/lib/pic16/startup/Makefile.in: regenerated
53
54         * src/pic16/main.c (_pic16_finaliseOptions): revert to
55           variant of r5216
56
57 2008-11-24 Raphael Neider <rneider AT web.de>
58
59         * src/pic16/main.c (_pic16_finaliseOptions): do not quote the
60           argument of --asm= or --link= to allow for
61           --asm="sh script --options", the user can double quote the
62           argument if needed: --asm="'c:/program files/gpasm' -q",
63           also fix some potential buffer overflows
64
65 2008-11-19 Borut Razem <borut.razem AT siol.net>
66
67         * doc/sdccman.lyx:
68           fixed 2314467: sdccman.lyx: fix "--" in command line parameters
69           thanks Mauro Giachero
70
71 2008-11-16 Borut Razem <borut.razem AT siol.net>
72
73         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.5
74         * doc/sdccman.lyx: documented fixed unnamed bit-field initialization
75
76 2008-11-15 Borut Razem <borut.razem AT siol.net>
77
78         * src/pic16/glue.c, src/SDCC.y, src/SDCCast.c, src/SDCCglue.c,
79           src/SDCCsymt.c, src/SDCCsymt.h:
80           fixed RFE #2291335 : Unnamed bit-field initialization
81         * support/regression/tests/bitfields.c:
82           added test case for RFE #2291335
83         * support/regression/tests/bug-1981238.c:
84           don't initialize unnamed bit-fields
85
86 2008-11-11 Raphael Neider <rneider AT web.de>
87
88         * device/include/pic16/pic18f25j10.h,
89           device/include/pic16/pic18f45j10.h: remove useless boilerplate
90
91         * device/include/pic16/adc.h,
92           device/lib/pic16/libio/adc/adcbusy.c,
93           device/lib/pic16/libio/adc/adcclose.c,
94           device/lib/pic16/libio/adc/adcconv.c,
95           device/lib/pic16/libio/adc/adcopen.c,
96           device/lib/pic16/libio/adc/adcread.c,
97           device/lib/pic16/libio/adc/adcsetch.c: generalized, documented,
98           and fixed ADC routines to work for more target devices,
99           incorporates patch #2036130 by Nick Materer
100
101 2008-11-10 Steven Borley <steven.borley AT partnerelectronics.com>
102
103         * device/include/ctype.h,
104         * device/include/ds400rom.h,
105         * device/include/ds80c390.h,
106         * device/include/float.h,
107         * device/include/math.h,
108         * device/include/serial.h,
109         * device/include/stdbool.h,
110         * device/include/tinibios.h: replaced non-C89 '//' with '/* */',
111           patch 2195343
112         * device/include/mcs51/C8051F336.h,
113         * device/include/mcs51/C8051T600.h,
114         * device/include/mcs51/C8051T610.h,
115         * device/include/mcs51/C8051T630.h: new, added, patch 2183334
116           (svn commit by Maarten Brock <sourceforge.brock AT dse.nl>)
117
118 2008-11-10 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
119
120         * device/include/mcs51/P89LPC922.h: fixed #2255989, thanks kubi57
121
122 2008-11-10 Raphael Neider <rneider AT web.de>
123
124         * device/lib/pic16/libdev/mkmk.sh: obey pics.all
125         * device/lib/pic16/libio/mkmk.sh: properly match whole lines in
126           .ignore files, fixes IO libs for 18f242, 18f252, 18f442, and 18f452
127           (patch by Nick Materer, #2253980)
128
129         * device/lib/pic16/libio/adc.ignore,
130           device/lib/pic16/libio/i2c.ignore,
131           device/lib/pic16/libio/usart.ignore,
132           device/lib/pic16/pics.all: updated to build more device libs
133
134         * device/lib/pic16/libdev/Makefile.am,
135           device/lib/pic16/libdev/Makefile.in,
136           device/lib/pic16/libio/Makefile.am,
137           device/lib/pic16/libio/Makefile.in: regenerated
138
139         * src/pic16/device.c (pic16_dump_usection): fixed output of multiple
140           names per memory location, applied SDCC style to more functions
141
142 2008-11-09 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
143
144         * device/include/mcs51/p89lpc933_4.h: new NXP header file
145         * device/include/mcs51/p89lpc935_6.h: new NXP header file
146         * device/include/mcs51/p89v66x.h: minor changes
147           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
148
149 2008-11-09 Raphael Neider <rneider AT web.de>
150
151         * device/include/pic/pic14devices.txt: fixed memory description for
152           12f629 and 12f675, closes #2236240
153
154 2008-11-06 Borut Razem <borut.razem AT siol.net>
155
156         * src/SDCCmain.c: #fixed bug 2224960: sdcc -MM no working correctly
157           pass system include paths with -isystem to sdcpp
158         * src/SDCCglue.c, src/pic/glue.c, src/pic16/glue.c: removed unneeded
159           functions (closePipes), (closeTmpFiles) and (rmTmpFiles)
160
161 2008-11-02 Raphael Neider <rneider AT web.de>
162
163         * doc/sdccman.lyx: updated the sections on the library build process
164           and on how to add support for new devices, and documented known
165           problems with the extended instruction set including a workaround
166
167 2008-11-01 Raphael Neider <rneider AT web.de>
168
169         * device/include/pic16/adc.h,
170           device/include/pic16/pic16devices.txt,
171           device/include/pic16/pic18f2410.h,
172           device/include/pic16/pic18f2510.h,
173           device/include/pic16/pic18f2515.h,
174           device/include/pic16/pic18f2610.h,
175           device/include/pic16/pic18f4410.h,
176           device/include/pic16/pic18f4510.h,
177           device/include/pic16/pic18f4515.h,
178           device/include/pic16/pic18f4610.h,
179           device/include/pic16/pic18fregs.h,
180           device/lib/pic16/libdev/Makefile.am,
181           device/lib/pic16/libdev/Makefile.in,
182           device/lib/pic16/libdev/pic18f2410.c,
183           device/lib/pic16/libdev/pic18f2510.c,
184           device/lib/pic16/libdev/pic18f2515.c,
185           device/lib/pic16/libdev/pic18f2610.c,
186           device/lib/pic16/libdev/pic18f4410.c,
187           device/lib/pic16/libdev/pic18f4510.c,
188           device/lib/pic16/libdev/pic18f4515.c,
189           device/lib/pic16/libdev/pic18f4610.c,
190           device/lib/pic16/libio/Makefile.am,
191           device/lib/pic16/libio/Makefile.in,
192           device/lib/pic16/pics.all: added support for 18f[24][456]10
193           and 18f[24]515 devices
194         * doc/sdccman.lyx: updated list of supported PIC16 devices
195
196         * src/pic/glue.c, src/pic/pcode.c, src/pic/pcodeflow.c,
197           src/pic16/glue.c, src/pic16/pcode.c, src/pic16/pcodeflow.c,
198           src/xa51/gen.c: avoid compiler warnings
199         * support/scripts/inc2h-pic16.pl: removed trailing whitespace
200
201 2008-10-22 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
202
203         * device/include/mcs51/p89v66x.h: NXP header file
204         * device/include/mcs51/p89c66x.h: fixed an SBIT definition
205           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
206
207 2008-10-14 Raphael Neider <rneider AT web.de>
208
209         * device/lib/pic16/libdev/Makefile.am,
210           device/lib/pic16/libio/Makefile.am: enable building libraries for
211           18f2321, 18f4321, 18f2523, 18f4620, 18f66j60, 18f66j65, 18f67j60,
212           18f86j60, 18f86j65, 18f87j60, 18f96j60, 18f96j65, and 18f97j60
213         * device/lib/pic16/libdev/Makefile.in,
214           device/lib/pic16/libio/Makefile.in: regenerated
215
216 2008-10-14 Raphael Neider <rneider AT web.de>
217
218         * device/include/pic16/pic18f2450.h,
219           device/include/pic16/pic18f4450.h,
220           device/lib/pic16/libdev/pic18f2450.c,
221           device/lib/pic16/libdev/pic18f4450.c,
222           device/include/pic16/adc.h,
223           device/include/pic16/pic16devices.txt,
224           device/include/pic16/pic18fregs.h,
225           device/lib/pic16/libdev/Makefile.am,
226           device/lib/pic16/libdev/Makefile.in,
227           device/lib/pic16/libio/Makefile.am,
228           device/lib/pic16/libio/Makefile.in,
229           device/lib/pic16/pics.all: added 18f2450 and 18f4450, closes #1844525
230
231         * device/lib/pic16/libsdcc/stack/stack.S: there is no need to pin the
232           stack to a fixed location, relax it to automatically work with all
233           but the smallest devices (256 byte RAM devices need #pragma stack)
234
235 2008-10-09 Maarten Brock <sourceforge.brock AT dse.nl>
236
237         * debugger/mcs51/break.c: bugfix from patch 1989966, thanks Risto Huotari
238         * debugger/mcs51/simi.c: bugfix from patch 1989972, thanks Risto Huotari
239         * device/lib/_strcspn.c: fixed bug 2140931
240
241 2008-10-06 Raphael Neider <rneider AT web.de>
242
243         * device/include/pic16/stdio.h,
244           device/lib/pic16/libc/stdio/putchar.c: putchar should not be
245           declared __naked for convenience, named all arguments
246         * device/lib/pic16/libc/stdio/strmgpsim.c,
247           device/lib/pic16/libc/stdio/strmmssp.c,
248           device/lib/pic16/libc/stdio/strmusart.c: cosmetic changes
249
250         * src/pic16/pcode.c (createReachingDefinitions): avoid segfault on
251           empty __naked functions,
252         * (pCodeLabelDestruct, pic16_unlinkpCode, pic16_pCodeUnlink): fix
253           corner cases (unlink first/last pCode in list), reuse more code
254
255 2008-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
256
257         * src/ds390/main.c (_ds390_genInitStartup): added
258         * src/SDCCpeeph.c (getPatternVar): new, added,
259           (labelInRange): fixed bug 2115959
260         * src/mcs51/peeph.def (rules 193.x to 198.x): check for labelInRange
261         * src/SDCCicode.h: added newiTempOperand
262         * src/SDCCcse.c (algebraicOpts): fixed bug for x*-1,
263           added optimizations for 0/x and x/-1, see also patch 2142900
264         * support/regression/tests/onebyte.c (testMul): added test cases
265
266 2008-09-20 Borut Razem <borut.razem AT siol.net>
267
268         * src/pic16/glue.c:
269           definition of absolute address symbols without initial value,
270           fixed SDCC crash "do not know how to intialize symbol"
271
272 2008-09-16 Maarten Brock <sourceforge.brock AT dse.nl>
273
274         * device/lib/z80/mul.s (__mulsuchar_rrx_s, __muluschar_rrx_s),
275         * device/lib/z80/div.s (__divsuchar_rrx_s, __modsuchar_rrx_s,
276           __divuschar_rrx_s, __moduschar_rrx_s): added mixed signedness versions
277         * device/lib/z80/stubs.s: added stubs for above functions
278         * src/SDCCopt.c (convilong),
279         * src/SDCCsymt.c (initCSupport): fixed bug 1900961
280         * src/SDCCsymt.h (__muldiv): enlarged for mixed signedness
281         * src/z80/main.c (_hasNativeMulFor): fixed bug, I think
282         * support/regression/tests/onebyte.c: enabled all tests for z80
283
284 2008-09-15 Borut Razem <borut.razem AT siol.net>
285
286         * device/include/pic16/stdio.h, device/lib/pic16/libc/stdio/streams.c,
287           device/lib/pic16/libc/stdio/printf.c,
288           device/lib/pic16/libc/stdio/strmusart.c,
289           device/lib/pic16/libc/stdio/printf_tiny.c,
290           device/lib/pic16/libc/stdio/sprintf.c,
291           device/lib/pic16/libc/stdio/strmgpsim.c,
292           device/lib/pic16/libc/stdio/putchar.c,
293           device/lib/pic16/libc/stdio/fprintf.c,
294           device/lib/pic16/libc/stdio/strmmssp.c,
295           device/device/lib/pic16/libc/stdio/vprintf.c,
296           device/lib/pic16/libc/stdio/printf_small.c,
297           device/lib/pic16/libc/stdio/vsprintf.c,
298           device/lib/pic16/libc/stdio/strmputchar.c,
299           device/lib/pic16/libc/Makefile.am,
300           device/lib/pic16/libc/Makefile.in:
301           *printf now returns int, puchar.c moved from stdlib to stdio,
302           *printf format parameter type changed from char * to const char *,
303           added GNU link excetion text to library source files,
304           applyed GNU coding style, removed useless svn ids,
305           added BINARY_SPECIFIER macro re-enables the use of the removed 'b'
306           binary specifier: "%b", "%hb" and "%lb"
307         * device/lib/pic16/libc/stdio/vfprintf.c:
308           applied patch #2044424: PIC16: vfprintf
309           thanks Mauro Giachero
310         * support/regression/tests/bug1057979.c:
311           removed old pic16 sprintf specifics
312         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.4
313         * doc/sdccman.lyx: documented 'b' binary format specifier removal
314
315 2008-09-15 Raphael Neider <rneider AT web.de>
316
317         * src/pic16/device.c (pic16_dump_usection): force udata sections
318           into the addressable range (0..0xFFF), workaround for a gpsim
319           bug preventing simulation of regtest bug1750318
320         * src/pic16/ralloc.c (deassignLRs): cosmetic changes,
321           (serialRegAssign): fixed regtest bug-971834,
322           (pic16_packRegisters): avoid null-pointer dereference
323
324 2008-09-14 Raphael Neider <rneider AT web.de>
325
326         * src/pic16/gen.c, src/pic16/ralloc.c: use
327           SYM_SPIL_LOC/SPIL_LOC macros, no functional changes
328         * src/pic16/ralloc.c (rematStr): reimplemented, fixes #1818857
329
330 2008-09-12 Borut Razem <borut.razem AT siol.net>
331
332         * support/regression/fwk/testfwk.h:
333           define pdata as data for pic16 target
334           thanks Mauro Giachero
335
336 2008-09-11 Borut Razem <borut.razem AT siol.net>
337
338         * support/regression/tests/bug-221100.c, support/regression/shifts.c,
339           support/regression/absolute.c:
340           applied patch #2105615: Some PIC16 testcase fixlets
341           thanks Mauro Giachero
342
343 2008-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
344
345         * src/z80/gen.c (genCmpGt, genCmpLt): fixed bug 2094505
346         * support/regression/tests/bug2094505.c: new, added
347
348 2008-09-07 Borut Razem <borut.razem AT siol.net>
349
350         * src/SDCCglue.c, src/SDCCast.c:
351           fixed throw of "excess elements" warning for char arrays
352         * support/regression/tests/nullstring.c:
353           disable warning about excess elements in array of chars initializer
354
355 2008-09-07 Maarten Brock <sourceforge.brock AT dse.nl>
356
357         * as/z80/aslist.c (lstsym): changed old K&R to ANSI
358         * src/SDCCicode.c (geniCodeCritical): fixed bug for hc08
359         * src/z80/gen.c (genCritical, genEndCritical): fixed bug 2077267
360         * support/regression/tests/bug2077267.c: new, added
361
362 2008-09-05 Raphael Neider <rneider AT web.de>
363
364         * configure.in, Makefile.common.in: add support for ccache,
365           remove spurious $VERSION output, detect doc-tools even without
366           --enable-doc to facilitate later manual doc-builds, minor cleanup
367         * configure: regenerated
368
369         * doc/Makefile.in: quieten pdflatex, makeindex, and latex2html,
370           avoid races in parallel VPATH builds
371         * doc/clean.mk: remove .lyx files in the builddir for VPATH builds
372         * doc/sdccman.lyx: mention --without-ccache configure option
373
374 2008-09-01 Raphael Neider <rneider AT web.de>
375
376         * src/pic16/gen.c (pic16_derefPtr): handle CPOINTERs as well
377         * (genConstPointerGet): fix reading bitfields from __code space
378         * src/pic16/glue.c (pic16_printIvalBitFields): correctly mask
379           bitfield initializers (fix regression test bug1856409.c)
380         * (pic16_printIvalCharPtr,pic16_printIvalPtr): generalized to support
381           arbitrary sizes
382
383 2008-08-31 Raphael Neider <rneider AT web.de>
384
385         * src/pic16/gen.c (genAssign): removed useless compiler output
386         * (genPointerGet,genPointerSet,genCast),
387           src/pic16/glue.c (pic16_printGPointerType):
388           also handle PPOINTERs just to avoid spurious asserts
389         * (pic16_printIvalType,pic16_printIvalBitFields):
390           generalized to arbitrary type/bitfield sizes, allows compilation of
391           regression test bug-1981238.c
392         * (pic16_printIvalChar): fix regression test structflexarray.c
393         * (pic16_printIvalArray): avoid SIGSEGV on uninitialized strings
394           in initialized structs and fix #1843745
395         * (pic16_printIvalStruct): always output initializers for all fields,
396           even those not explicitly given, fixes zeropad.c regression test
397         * (pic16_printIvalUnion): fix union initializers (bug1426356.c,
398           #2073635, #1567098, and #1485812)
399         * src/pic16/main.c (_pic16_keywords): remove unsupported 'pdata'
400
401 2008-08-31 Borut Razem <borut.razem AT siol.net>
402
403         * support/regression/tests/bug-895992.c,
404           support/regression/tests/onebyte.c:
405           enabled pic16 regression testing since the bugs
406           1511794: pic16: regression test bug-895992.c fails
407           1444425: onebyte.c regression tes fails on pic16
408           are fixed, probably by fixing
409           2048464: PIC16: fix genUminus - addresses not.c regression test
410         * src/SDCCsymt.c, src/SDCCglue.c,
411           support/regression/tests/bug-1981238.c:
412           applied patch 2076664: fix #1981238 + SIGSEGV in SDCCGlue.c
413           thanks to RvS
414
415 2008-08-30 Borut Razem <borut.razem AT siol.net>
416
417         * support/cpp/libcpp/files.c: SDCPP synchronized with GCC CPP
418           release version 4.3.2
419
420 2008-08-24 Raphael Neider <rneider AT web.de>
421
422         * device/lib/pic16/configure, device/lib/pic16/configure.ac:
423           always use the sdcc from the current build tree (ignore $CC from
424           the environment, fixes compile farm builds)
425         * device/lib/Makefile.in: rename .a into .lib for compatibility,
426           remove more build products from install directory
427         * sdcc/src/pic16/main.c (_pic16_linkEdit,_pic16_finaliseOptions)
428         * sdcc/support/scripts/sdcc.nsi: revert to .lib extension for libs
429
430 2008-08-24 Borut Razem <borut.razem AT siol.net>
431
432         * src/SDCC.y: applied patch
433           2050245: Fix # 1963382
434           for bug
435           1963382: Listing File - C file comment is incorrect
436           thanks to RvS
437
438 2008-08-23 Borut Razem <borut.razem AT siol.net>
439
440         * src/pic16/gen.c: applied patch
441           2048464: PIC16: fix genUminus - addresses not.c regression test
442           thanks Mauro Giachero
443
444 2008-08-22 Borut Razem <borut.razem AT siol.net>
445
446         * device/lib/pic16/configure, device/lib/pic16/configure.ac,
447           src/pic16/main.c: allow spaces in gpasm and gplink paths
448
449 2008-08-15 Philipp Klaus Krause <pkk AT spth.de>
450
451         * src/z80/peep.c,
452         * src/z80/peeph-z80.def: minor peephole improvement
453
454 2008-08-15 Raphael Neider <rneider AT web.de>
455
456         * src/z80/gen.c (_vemit2): suppress compiler warning
457
458         * src/pic/*.[ch]: make proper use of header files and avoid
459           ad-hoc extern declarations, mark module-local helpers 'static',
460           removed dead/replaced code, no functional changes
461         * src/pic16/pcode.c: disentangled from pic14 backend
462
463 2008-08-14 Philipp Klaus Krause <pkk AT spth.de>
464
465         * src/z80/gen.c: fixed #2051348
466         * support/regression/tests/bug-2051348.c: regression test for #2051348
467
468 2008-08-10 Raphael Neider <rneider AT web.de>
469
470         * configure.in,
471         * Makefile.common.in: export PACKAGE for $docdir,
472           fixes #1957036, avoid some "underquoted definition" warnings
473         * configure: regenerated
474
475 2008-08-10 Raphael Neider <rneider AT web.de>
476
477         * device/lib/pic16/**: build pic16 library using autotools for
478           improved dependency tracking
479
480         * device/lib/Makefile.in,
481         * src/pic16/main.c,
482         * support/scripts/sdcc.nsi: adapt to changes in filenames (s/.lib/.a/)
483
484 2008-08-10 Raphael Neider <rneider AT web.de>
485
486         * src/pic/pcode.c (ReuseReg): do not overlay the registers used for
487           local variables if --nooverlay is given, workaround for #2023121
488
489 2008-08-08 Raphael Neider <rneider AT web.de>
490
491         * src/pic16/genarith.c (genAddLit): fix structure access (#1888004)
492
493 2008-08-08 Raphael Neider <rneider AT web.de>
494
495         * src/pic/pcoderegs.c,
496         * src/pic/pcode.c,
497         * src/pic16/pcode.c: replace own SAFE_snprintf with common SNPRINTF
498
499 2008-08-07 Borut Razem <borut.razem AT siol.net>
500
501         * src/SDCCval.c, src/SDCCmain.c, src/SDCC.lex,
502           device/lib/pic/Makefile.rules, device/lib/ds390/Makefile.in,
503           device/lib/ds400/Makefile.in, device/lib/hc08/Makefile.in,
504           support/cpp/libcpp/lex.c,  doc/sdccman.lyx:
505           applied modified patch 2038174: Add support for binary constants v2
506           thanks Mauro Giachero
507         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.3
508
509 2008-08-04 Raphael Neider <rneider AT web.de>
510
511         * doc/sdccman.lyx,
512         * src/pic16/device.h,
513         * src/pic16/glue.c,
514         * src/pic16/main.c: enable --optimize-goto by default
515
516         * device/lib/pic16/Makefile.common.in: suppress removed option
517
518         * src/pic16/gen.c,
519         * src/pic16/genutils.c: avoid too long relative branches (#2031890)
520
521 2008-07-30 Borut Razem <borut.razem AT siol.net>
522
523         * src/pic16/device.c, src/pic16/glue.c, src/pic16/pcode.c:
524           applied patch 22032433: PIC16: fix constant strings,
525           thanks Mauro Giachero
526
527 2008-07-29 Borut Razem <borut.razem AT siol.net>
528
529         * src/pic16/gen.c: applied patches:
530           2030306: [1/3] PIC16: fix failing rotate.c tests on 16-bit variables,
531           2030307: [2/3] PIC16: fix failing rotate.c tests for 32-bit var (1),
532           2030310: [3/3] PIC16: fix failing rotate.c tests for 32-bit var (2),
533           thanks Mauro Giachero
534
535 2008-07-13 Philipp Klaus Krause <pkk AT spth.de>
536
537         * src/port.h: Fixed typo in comment
538
539 2008-07-12 Philipp Klaus Krause <pkk AT spth.de>
540
541         * src/z80/mappings.i: Implemented RFE #1919415
542         * src/z80/peeph-z80.def: Implemented RFE #1919415, #1861376,
543           #1880202, #1914434, prepared for RFE #1703943
544
545 2008-07-12 Philipp Klaus Krause <pkk AT spth.de>
546
547         * src/z80/peeph.def,
548         * src/z80/peeph-z80.def,
549         * src/z80/peeph-gbz80.def: separate Z80 from GBZ80 peepholes in
550           preparation for Z80 peephole improvements
551
552 2008-06-21 Raphael Neider <rneider AT web.de>
553
554         * device/include/pic16/pic18f66j60.h,
555         * device/include/pic16/pic18f66j65.h,
556         * device/include/pic16/pic18f67j60.h,
557         * device/include/pic16/pic18f86j60.h,
558         * device/include/pic16/pic18f86j65.h,
559         * device/include/pic16/pic18f87j60.h,
560         * device/include/pic16/pic18f96j60.h,
561         * device/include/pic16/pic18f96j65.h,
562         * device/include/pic16/pic18f97j60.h,
563         * device/lib/pic16/libdev/pic18f66j60.c,
564         * device/lib/pic16/libdev/pic18f66j65.c,
565         * device/lib/pic16/libdev/pic18f67j60.c,
566         * device/lib/pic16/libdev/pic18f86j60.c,
567         * device/lib/pic16/libdev/pic18f86j65.c,
568         * device/lib/pic16/libdev/pic18f87j60.c,
569         * device/lib/pic16/libdev/pic18f96j60.c,
570         * device/lib/pic16/libdev/pic18f96j65.c,
571         * device/lib/pic16/libdev/pic18f97j60.c,
572         * device/include/pic16/pic16devices.txt,
573         * device/include/pic16/pic18fregs.h,
574         * device/lib/pic16/pics.all: added new devices
575
576         * device/include/pic16/adc.h,
577         * device/lib/pic16/libio/adc/adcbusy.c,
578         * device/lib/pic16/libio/adc/adcopen.c,
579         * device/lib/pic16/libio/adc/adcsetch.c,
580         * device/lib/pic16/libio/i2c/i2copen.c,
581         * device/lib/pic16/libio/usart/uopen.c: adapted to new devices,
582           all changes from a patch by Anton Strobl
583
584 2008-06-12 Borut Razem <borut.razem AT siol.net>
585
586         * sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/bp.cc,
587           sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
588           sim/ucsim/z80.src/z80cl.h, sim/ucsim/z80.src/z80.cc,
589           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
590           sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
591           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/uc390.cc,
592           sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/uc390cl.h,
593           sim/ucsim/avr.src/avrcl.h, sim/ucsim/avr.src/avr.cc:
594           fixed bug 1990586: s51 simulator, uc::disass() unimplemented
595           by applying the modified patch from Risto Huotari
596
597 2008-06-04 Maarten Brock <sourceforge.brock AT dse.nl>
598
599         * .version,
600         * doc/sdccman.lyx: bumped sdcc version to 2.8.2
601         * src/ds390/gen.c (aopPutUsesAcc, genAddrOf): fixed bug 1015185
602         * src/mcs51/gen.c (genNearPointerGet, genNearPointerSet): fixed bug 1938300
603         * support/regression/tests/bug1938300.c: new, added
604
605 2008-06-03 Maarten Brock <sourceforge.brock AT dse.nl>
606
607         * device/include/asm/ds390/features.h,
608         * device/include/asm/mcs51/features.h,
609         * device/include/mcs51/regc515c.h: inserted LGPL notice
610
611 2008-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
612
613         * device/lib/gbz80/div.s,
614         * device/lib/z80/div.s: fixed bug 1904314 by applying a modified part of
615           patch 1597883, Thanks Robert Ramey
616
617 2008-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
618
619         * src/SDCCast.c (createIvalType, createIvalStruct, createIvalArray,
620           createIvalCharPtr, createIvalPtr, createIval),
621         * src/SDCCval.h
622         * src/SDCCval.c (convertIListToConstList, list2expr): handle incomplete
623           initializers for local auto variables
624         * support/regression/tests/zeropad.c: added testcase for auto initializers
625
626 2008-05-26 Raphael Neider <rneider AT web.de>
627
628         * device/lib/pic16/startup/crt0.c,
629         * device/lib/pic16/startup/crt0i.c,
630         * device/lib/pic16/startup/crt0iz.c: clean up, make use of access bank
631           explicit, fixed curr_entry loop for >= 256 initializer records,
632           removed debug code (write to 0xf7e)
633
634 2008-05-25 Raphael Neider <rneider AT web.de>
635
636         * device/include/pic/pic16f627a.h,
637         * device/include/pic/pic16f628a.h,
638         * device/include/pic/pic16f648a.h: added missing ports
639
640 2008-05-20 Maarten Brock <sourceforge.brock AT dse.nl>
641
642         * device/include/float.h: added __INFINITY
643         * device/lib/_fsadd.c: handle overflows
644         * device/lib/_fsmul.c,
645         * device/lib/_fsdiv.c: use __INFINITY
646         * device/lib/_fseq.c,
647         * device/lib/_fsneq.c: handle -0.0
648         * sim/ucsim/s51.src/uc89c51r.cc,
649         * sim/ucsim/s51.src/uc89c51rcl.h: fixed bug 1385430
650         * sim/ucsim/sim.src/hwcl.h: */* confuses VC
651         * src/mcs51/gen.c (genSend): fixed bug with --xstack
652         * support/regression/ports/mcs51-xstack-auto/spec.mk: print floats
653         * support/regression/tests/snprintf.c: test bug with --xstack
654
655 2008-05-19  Philipp Klaus Krause <pkk AT spth.de>
656
657         * src/SDCCpeeph.c (callFuncByName):
658           Support nested parenthesis in peephole function arguments (#1967300)
659
660 2008-05-19 Raphael Neider <rneider AT web.de>
661
662         * src/pic16/gen.c (pic16_emitpLabel,pic16_emitpLabelFORCE):
663           fixed duplicate labels (#1911325)
664
665 2008-05-19 Raphael Neider <rneider AT web.de>
666
667         * src/regression/empty.c: suppress warning
668         * src/regression/pointer1.c: enabled index_by_pointer()
669         * src/regression/inline.c: now works for pic16 as well
670
671         * src/pic16/device.c: include dbuf declarations
672         * src/pic16/device.h: removed obsolete prototypes
673
674         * src/pic16/gen.c, src/pic16/gen.h: moved generic pointer tags
675         * src/pic16/glue.c: made purely local functions static,
676           (pic16_printGPointerType, pic16_printIvalCharPtr,
677           pic16_printIvalFuncPtr, pic16_printIvalPtr): fixed initialized
678           generic pointers' tags (#1961866)
679
680         * src/pic16/pcode.c (assignValnums): optimize literal assignments
681
682 2008-05-19 Borut Razem <borut.razem AT siol.net>
683
684         * support/scripts/sdcc.nsi: remove uninstall.exe after uninstallation,
685           fixed typo, uninstall include/pic16/pic16devices.txt
686
687 2008-05-18 Borut Razem <borut.razem AT siol.net>
688
689         * support/Utils/dbuf_string.[ch]: added dbuf_chomp(),
690           the buffer is null terminated
691         * src/device/pic16.c:
692           applied modified patch 1965676: Patch for Win32 16 bit PIC
693         * sdcc_vc_in.h: defined YY_NO_UNISTD_H
694
695 2008-05-16 Maarten Brock <sourceforge.brock AT dse.nl>
696
697         * src/SDCC.lex (check_type),
698         * src/SDCC.y (type_specifier2 TYPE_NAME): fixed bug 1925942
699         * as/hc08/clean.mk,
700         * as/mcs51/clean.mk,
701         * as/z80/clean.mk: also clean *.dep
702         * device/lib/pic16/libsdcc/stack/Makefile,
703         * sim/ucsim/libtool: removed as they are rebuild by configure
704         * src/clean.mk: removed izt, so Makefile is not deleted for distclean
705
706 2008-05-13 Maarten Brock <sourceforge.brock AT dse.nl>
707
708         * src/SDCCast.c (fixupInline, createFunction): save currBlockno in
709           fixupInline instead of createFunction to fix bug 1864577
710           (inlineFindMaxBlockno): removed, use global blockNo
711         * src/SDCCglobl.h: added blockNo
712         * src/z80/peep.c,
713         * src/z80/peep.h: modified properties
714         * support/regression/tests/bug1864577.c: new, added
715
716 2008-05-07 Maarten Brock <sourceforge.brock AT dse.nl>
717
718         * as/mcs51/asdata.c,
719         * as/mcs51/asm.h: added org_cnt
720         * as/mcs51/asmain.c (main, asmbl): fixed bug 1957716, changed old K&R to ANSI
721         * as/mcs51/asout.c: changed old K&R to ANSI
722         * as/mcs51/Makefile.in: use common identifiers
723         * as/hc08/asdata.c,
724         * as/hc08/asexpr.c,
725         * as/hc08/asm.h,
726         * as/hc08/asmain.c,
727         * as/hc08/asout.c,
728         * as/hc08/Makefile.bcc,
729         * as/hc08/Makefile.in: synchronized with as/mcs51/*
730         * sdcc_vc_in.h: added define __func__
731         * src/SDCCast.c (expandInlineFuncs): applied patch 1957148 to fix bug 1717305,
732           Thanks Ruud van Silfhout
733         * support/regression/tests/bug1717305.c: new, added
734
735 2008-05-05 Borut Razem <borut.razem AT siol.net>
736
737         * support/regression/Makefile.in,
738           support/regression/ports/ds390/spec.mk,
739           support/regression/ports/hc08/spec.mk,
740           support/regression/ports/mcs51-common/spec.mk,
741           support/regression/ports/pic14/spec.mk,
742           support/regression/ports/pic16/spec.mk,
743           support/regression/ports/ucz80/spec.mk,
744           support/regression/ports/z80/spec.mk:
745           added INC_DIR and LIBDIR paths
746         * src/ds390/gen.c: removed duplicated selicolon
747
748 2008-05-04 Borut Razem <borut.razem AT siol.net>
749
750         * support/regression/Makefile.in,
751           support/regression/fwk/lib/testfwk.c,
752           support/regression/ports/ds390/spec.mk,
753           support/regression/ports/hc08/spec.mk,
754           support/regression/ports/mcs51-common/spec.mk,
755           support/regression/ports/mcs51-large/spec.mk,
756           support/regression/ports/mcs51-medium/spec.mk,
757           support/regression/ports/mcs51-small/spec.mk,
758           support/regression/ports/mcs51-stack-auto/spec.mk,
759           support/regression/ports/mcs51-xstack-auto/spec.mk,
760           support/regression/ports/pic14/spec.mk,
761           support/regression/ports/pic16/spec.mk,
762           support/regression/ports/ucz80/spec.mk:
763           added possibility to define the sdcc binary directory SDCC_BIN_PATH
764           used to run regeression tests
765
766 2008-05-01 Raphael Neider <rneider AT web.de>
767
768         * doc/sdccman.lyx, support/scripts/inc2h-pic16.pl: updated list of
769           supported devices and instructions to add new ones
770
771 2008-05-01 Raphael Neider <rneider AT web.de>
772
773         * device/include/pic16/adc.h,
774           device/lib/pic16/libio/adc/adcbusy.c,
775           device/lib/pic16/libio/adc/adcopen.c,
776           device/lib/pic16/libio/adc/adcsetch.c: support old 18f242 and new
777           18f2455 style ADC devices, based on patch #1776197
778         * device/lib/pic16/libio/adc/adcclose.c,
779           device/lib/pic16/libio/adc/adcconv.c,
780           device/lib/pic16/libio/adc/adcread.c: cosmetic changes
781         * device/include/pic16/{pic18f2331.h,pic18f2431.h},
782           device/lib/pic16/libdev/{pic18f2331.c,pic18f2431.c}: reuse 18f4331
783         * device/include/pic16/pic18f4431.h,
784           device/lib/pic16/libdev/pic18f4431.c: remove outdated comments
785         * device/lib/pic16/libio/adc.ignore: forbid unhandled devices
786
787 2008-05-01 Raphael Neider <rneider AT web.de>
788
789         * src/pic16/device.h: removed unused field PIC16_device.sfrRange,
790           moved xinst flag into pic16_options_t
791         * src/pic16/device.c (default_device, pic16_list_devices,
792           pic16_find_device): removed references to sfrrange
793         * src/pic16/gen.c (genFunction),
794           src/pic16/glue.c (pic16initialComments),
795           src/pic16/main.c (pic16_optionsTable),
796           src/pic16/ralloc.c (newReg, pic16_writeUsedRegs): updated references
797           to xinst
798         * device/include/pic16/pic16devices.txt: removed sfrrange lines
799
800 2008-04-29 Raphael Neider <rneider AT web.de>
801
802         * src/pic16/devices.inc,
803           device/include/pic16/pic16devices.txt: replaced compiled-in list
804           of devices with a variant parsed at runtime
805         * src/pic16/device.c: added support for parsing pic16devices.txt,
806           clean up
807         * src/pic16/device.h: removed (now) unused fields from PIC_device
808         * src/pic16/main.c: removed #pragma maxram,
809           (_pic16_initPaths): removed bogus generation of search paths,
810           setup the port proper only after the search paths (for
811           pic16devices.txt) are set up,
812           (_pic16_finaliseOptions): moved processor dependant code here
813           from _pic16_initPaths(), clean up
814         * src/pic16/ralloc.c (pic16_init_stack),
815         * src/pic16/ralloc.h,
816         * src/pic16/pcode.c: clean up
817         * device/include/Makefile.in,
818           support/scripts/sdcc.nsi: also install/package pic16devices.txt
819         * support/scripts/inc2h-pic16.pl: updated instructions
820
821 2008-04-29 Raphael Neider <rneider AT web.de>
822
823         * device/include/pic16/{pic18f2480.h, pic18f2580.h, pic18f4423.h,
824           pic18f4480.h, pic18f4523.h, pic18f4580.h, pic18f6585.h, pic18f8585.h},
825           device/lib/pic16/libdev/{pic18f2480.c, pic18f2580.c, pic18f4423.c,
826           pic18f4480.c, pic18f4523.c, pic18f4580.c, pic18f6585.c, pic18f8585.c}:
827           added missing family members and 18f2480/2580/4480/4580 family
828         * device/include/pic16/{pic18f2423.h, pic18f2523.h}: use 18f4523.h
829         * device/include/pic16/pic18f2525.h: use 18f4620.h
830         * device/include/pic16/pic18f6680.h: use 18f8680.h
831         * device/include/pic16/pic18fregs.h,
832           device/lib/pic16/pics.all,
833           src/pic16/devices.inc: add new devices
834         * device/lib/pic16/libdev/{pic18f2423.c, pic18f2523.c}: use 18f4523.c
835         * device/lib/pic16/libdev/pic18f2525.c: use 18f4620.c
836         * device/lib/pic16/libdev/pic18f6680.c: uso 18f8680.c
837         * device/lib/pic16/libio/{adc.ignore, i2c.ignore, usart.ignore}:
838           prevent attempting to build the libio for some new devices
839
840 2008-04-29 Raphael Neider <rneider AT web.de>
841
842         * debugger/mcs51/Makefile.in: fixed paths to sources
843
844 2008-04-25 Borut Razem <borut.razem AT siol.net>
845
846         * as/link/lklibr.c: moved from as/link/z80/lklibr.c
847         * as/link/hc08/lklibr.c, as/link/mcs51/lklibr.c: deleted
848         * as/link/hc08/Makefile.bcc, as/link/hc08/Makefile.in,
849         * as/link/hc08/link_hc08.dsp, as/link/mcs51/Makefile.bcc,
850           as/link/mcs51/Makefile.in, as/link/mcs51/aslink.dsp,
851           as/link/z80/Makefile.in, as/link/z80/linkgbz80.dsp,
852           as/link/z80/linkz80.dsp: lklibr.c moved
853         * doc/INSTALL.txt: binary archives in bz2 format
854         * support/cpp/auto-host_vc_in.h: CPP2 replaced with CPP
855
856 2008-04-23 Maarten Brock <sourceforge.brock AT dse.nl>
857
858         * src/SDCCglue.c (printIvalType, printIvalBitFields): fixed bug 1856409
859         * support/regression/tests/bug1856409.c: new, added
860
861 2008-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
862
863         * src/z80/peep.c,
864         * src/mcs51/peep.c: Use werror for error messages.
865         * src/SDCCicode.c (geniCodeConditional),
866         * src/SDCCsymt.c (structElemType): fixed bug 1839321
867         * src/z80/Makefile.bcc,
868         * src/z80/z80.dsp: added src/z80/peep.c/h
869         * support/regression/tests/bug1839321.c: new, added
870
871 2008-04-20 Raphael Neider <rneider AT web.de>
872
873         * device/include/pic16/pic18f2455.h: added bitfields for port C
874
875 2008-04-20 Philipp Klaus Krause <pkk AT spth.de>
876
877         * src/z80/peep.c: Use werror for error messages.
878
879 2008-04-19 Philipp Klaus Krause <pkk AT spth.de>
880
881         * src/z80/peep.h (declaration of notUsed()),
882         * src/z80/main.c (enabled notUsed() for z80 port, documented z80_port
883           struct),
884         * src/z80/z80.h (added dependency on peep.h),
885         * src/z80/peep.c (definition of notUsed()): Implemented RFE #1880202
886           for Z80.
887
888 2008-04-19 Philipp Klaus Krause <pkk AT spth.de>
889
890         * src/SDCCpeeph.c (added support for notUsed()),
891         * src/mcs51/main.c (added dependency on peep.h, documented mcs51_port
892           struct),
893         * src/port.h (removed dependency on mcs51/peep.h, added declaration
894           for notUsed()): Implemented generic (that is not port-specific) part
895           of RFE #1880202.
896
897 2008-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
898
899         * as/link/mcs51/lkmem.c (summary2): fixed bug 1796077
900         * device/lib/libsdcc.lib,
901         * device/lib/Makefile.in,
902         * support/regression/ports/mcs51-xstack-auto/spec.mk,
903         * device/lib/calloc.c: renamed to _calloc.c
904         * device/lib/free.c: renamed to _free.c
905         * device/lib/malloc.c: renamed to _malloc.c
906         * device/lib/realloc.c: renamed to _realloc.c
907         * src/ds390/gen.c (aopGet, aopPut, genPlusBits, genDataPointerSet,
908           genNearPointerSet, genPagedPointerSet): synchronized with mcs51/gen.c
909         * src/ds390/gen.c (popForBranch, genIfxJump, genCmp, genCmpEq, ifxForOp,
910           genAnd, genOr, genXor, genIfx, gen390Code): fixed bug 1509084
911         * src/mcs51/gen.c (popForBranch, genIfxJump, genCmp, genCmpEq,
912           ifxForOp, genAnd, genOr, genXor, genNearPointerGet,
913           genPagedPointerGet, genFarPointerGet, genCodePointerGet,
914           genGenPointerGet, genIfx, gen51Code): fixed bug 1509084
915         * src/ds390/gen.c,
916         * src/mcs51/gen.c: throughout cosmetic changes for syncing both
917         * src/SDCCsymt.h: updated IS_OP_RUONLY, IS_OP_ACCUSE
918         * support/regression/tests/bug1509084.c: new, added
919
920 2008-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
921
922         * device/include/mcs51/cc2510fx.h: added _XPAGE
923         * device/include/mcs51/compiler.h: cosmetic changes
924
925 2008-03-31 Maarten Brock <sourceforge.brock AT dse.nl>
926
927         * sdcc.dsw: adapted for moved cpp2, added dependency for as_z80 on
928           config
929
930 2008-03-31 Borut Razem <borut.razem AT siol.net>
931
932         * support/cpp2 renamed to support/cpp
933         * support/cpp2/libiberty/filenames.h, support/cpp2/libiberty/hex.c,
934           support/cpp2/libiberty/splay-tree.c,
935           support/cpp2/libiberty/splay-tree.h, support/cpp2/libcpp/macro.c,
936           support/cpp2/libcpp/directives.c,
937           support/cpp2/libcpp/include/cpplib.h,
938           support/cpp2/libcpp/include/symtab.h,
939           support/cpp2/libcpp/include/line-map.h,
940           support/cpp2/libcpp/line-map.c, support/cpp2/libcpp/files.c,
941           support/cpp2/libcpp/init.c, support/cpp2/libcpp/traditional.c,
942           support/cpp2/libcpp/expr.c, support/cpp2/libcpp/internal.h,
943           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/system.h,
944           support/cpp2/libcpp/charset.c: SDCPP synchronized with GCC CPP
945           release version 4.3.0
946         * configure.in, configure, Makefile.in, Makefile.bcc:
947           adapted for moved cpp2
948
949 2008-03-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
950
951         * device/include/hc08/mc68hc908jkjl.h: committed fix for bug #1929739,
952           thanks Alejandro Pustowka <alejo_pustowka AT yahoo.com.mx>
953
954 2008-03-30 Maarten Brock <sourceforge.brock AT dse.nl>
955
956         * src/SDCCloop.c (loopInvariants): applied fix for bug 1717943, thanks
957           Robert Larice
958         * support/regression/tests/bug1717943.c: new, added
959
960 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
961
962         * src/z80/gen.c (assignResultValue): Reverted reversal of order of
963           bytewise return value assignments introduced in last commit.
964
965 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
966
967         * src/z80/gen.c (emitDebug, assignResultValue, genPlus, genMinus,
968           genMult, genJumpTab):
969           Use 16-bit instructions for addition in some additional cases,
970           implemented RFEs #1914251, #1914245, #1922090, #1921382, #1918323.
971
972 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
973
974         * src/z80/ralloc.c (serialRegAssign, allocReg, tryAllocatingRegPair):
975           Implemented RFE #1921450, changed some debug messages.
976
977 2008-03-30 Borut Razem <borut.razem AT siol.net>
978
979         * Small Device C Compiler 2.8.0 released
980         * .version, doc/sdccman.lyx: changed sdcc version to 2.8.1
981         * support/scripts/sdcc.nsi: added finish page; this version
982           was used for 2.8.0 release
983         * doc/knownbugs.html: removed; magically generated by the build
984           process using gen_known_bugs.pl from now on
985
986 2008-03-23 Borut Razem <borut.razem AT siol.net>
987
988         * src/pic/gen.h: Q&D solution for the bug, found by Jim Paris
989           and reverted it, since it was already fixed by Raphael ;-)
990         * doc/knownbugs.html: updated for RC2
991
992 2008-03-22 Raphael Neider <rneider AT web.de>
993
994         * src/SDCCicode.c (getPtrType): avoid unnecessary extra assignments
995           for PIC16 targets
996
997 2008-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
998
999         * src/mcs51/gen.c (adjustArithmeticResult): fixed bug 1839299
1000         * support/regression/tests/bug1839277.c: added related testBug1839299
1001
1002 2008-03-21 Maarten Brock <sourceforge.brock AT dse.nl>
1003
1004         * src/ds390/gen.c (opIsGptr, adjustArithmeticResult, genAddrOf, genAssign),
1005         * src/mcs51/gen.c (opIsGptr, adjustArithmeticResult, genAddrOf, genAssign):
1006           fixed bug 1839277
1007         * src/mcs51/gen.c: throughout only output hex constants
1008         * src/SDCCicode.c (getPtrType, geniCodeCast): fixed code size regression
1009         * support/regression/tests/bug1839277.c: new, added
1010
1011 2008-03-21 Philipp Klaus Krause <pkk AT spth.de>
1012
1013         * src/z80/ralloc.c (callFuncByName): Used // instead of /**/ to fix
1014           compilation warning about nested comments.
1015
1016 2008-03-20 Maarten Brock <sourceforge.brock AT dse.nl>
1017
1018         * src/SDCCsymt.c (comparePtrType): fixed bug 1921073
1019         * support/regression/tests/bug1921073.c: new, added
1020
1021 2008-03-17 Philipp Klaus Krause <pkk AT spth.de>
1022
1023         * src/z80/SDCCpeeph.c.c (callFuncByName):
1024           Commented function parameters.
1025
1026 2008-03-17 Philipp Klaus Krause <pkk AT spth.de>
1027
1028         * src/z80/ralloc.c (packRegsForAccUse2):
1029           disabled a broken accumulator packing optimization (fixed #1292721).
1030         * support/regression/tests/bug-1292721: Regression test for #1292721.
1031
1032 2008-03-16 Raphael Neider <rneider AT web.de>
1033
1034         * src/pic/gen.c (SetIrp,genNearPointerGet,genNearPointerSet):
1035           fixed code bloat regression using a variant of patch #1915618
1036
1037 2008-03-16 Borut Razem <borut.razem AT siol.net>
1038
1039         * support/scripts/sdcc.nsi: added section debugging macros, added SDCC
1040           icon, changed startup menu for release distribution, code cleaning,
1041           create url files instead links in startup menu
1042
1043 2008-03-16 Maarten Brock <sourceforge.brock AT dse.nl>
1044
1045         * src/SDCCcse.c (algebraicOpts): fixed bug 1579949
1046         * support/regression/tests/bug1579949.c: new, added
1047
1048 2008-03-14 Paul Stoffregen <paul AT pjrc.com>
1049
1050         * device/lib/printf_fast.c: fixed bug 1255403
1051
1052 2008-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
1053
1054         * doc/sdccman.lyx: enhanced paragraph about bankswitching for mcs51
1055         * src/cdbFile.c (cdbWriteBasicSymbol): fixed bug 1909409 for locals
1056
1057 2008-03-14 Borut Razem <borut.razem AT siol.net>
1058
1059         * as/doc/asmlnk.doc, as/doc/asxhtm.html: updated link-xx and aslink
1060           command line options
1061         * as/link/hc08/lkmain.c: converted tabs to spaces so that the usage
1062           is correctly displayed
1063         * as/link/z80/lkmain.c: usage line commented out
1064
1065 2008-03-13 Borut Razem <borut.razem AT siol.net>
1066
1067         * doc/sdccman.lyx: corrected to be able to convert to PDF,
1068           updated the list pf supported pic14 devices
1069
1070 2008-03-12 Maarten Brock <sourceforge.brock AT dse.nl>
1071
1072         * doc/sdccman.lyx: added paragraph about bankswitching for mcs51
1073
1074 2008-03-12 Borut Razem <borut.razem AT siol.net>
1075
1076         * as/doc/asmlnk.doc, as/doc/asxhtm.html: updated command line options,
1077           fixed documentation request #1718191
1078         * as/hc80/asmain.c, as/mcs51/asmain.c: added option -c to usage
1079         * doc/sdccman.lyx: added description of --no-std-crt0 gbz80
1080           command line option
1081
1082 2008-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
1083
1084         * src/SDCCast.c (isConformingBody): fixed bug 1505811, thanks Robert Larice
1085         * support/regression/tests/bug1505811.c: new, added
1086
1087 2008-03-09 Raphael Neider <rneider AT web.de>
1088
1089         * device/include/pic16/pic18f2620.h,
1090         * device/include/pic16/pic18f4620.h,
1091         * device/lib/pic16/libdev/pic18f2620.c,
1092         * device/lib/pic16/libdev/pic18f4525.c,
1093         * device/lib/pic16/libdev/pic18f4620.c: merged 18f2525/2620/4525/4620
1094           family to consistently use pic18f4620.[ch], fixes #1832562
1095
1096 2008-03-09 Borut Razem <borut.razem AT siol.net>
1097
1098         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
1099           changed sdcc version to 2.8.0
1100         * knownbugs.html: regenerated
1101         * support/scripts/gen_known_bugs.pl: added number of open bugs
1102
1103 2008-03-09 Raphael Neider <rneider AT web.de>
1104
1105         * src/pic16/gen.c (pic16_mov2w_volatile): NEW, read volatile operands,
1106           (genOr): read volatile operand even if the result is known,
1107           closes #1511838
1108           (genOr,genXor): removed unused legacy code,
1109           (genDummyRead): use pic16_mov2w_volatile()
1110
1111 2008-03-08 Borut Razem <borut.razem AT siol.net>
1112
1113         * src/SDCCglue.c: fixed bug #1864582: multiple definition of char
1114           cons w. --model-large
1115         * support/regression/staticinit.c: added regression test for bug
1116           #1864582
1117
1118 2008-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
1119
1120         * src/ds390/gen.c (pushSide, genPcall),
1121         * src/hc08/gen.c (pushSide, genPcall): synchronized with mcs51
1122         * src/mcs51/gen.c: cosmetic changes
1123         * support/regression/fwk/include/testfwk.h: added macro reentrant
1124         * support/regression/tests/bug1908493.c: new, added
1125
1126 2008-03-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1127
1128         * src/SDCCdebug.c:, as/link/lkaomf51.c: Fixed bug 1909409: Pdata in OMF file
1129
1130 2008-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
1131
1132         * src/mcs51/gen.c (pushSide, genPcall): fixed bug 1908493
1133         * src/SDCCmain.c (preProcess): removed -DSDCC_PARMS_IN_BANK1 because it is
1134           already set in ds390/main.c and mcs51/main.c
1135
1136 2008-03-07 Raphael Neider <rneider AT web.de>
1137
1138         * src/regression/init0.c: new test for initialized arrays of function
1139           pointers
1140         * src/regression/Makefile: made a bit more flexible, added init0.c
1141         * src/pic/glue.c (emitIvals): hacky fix for initializing from function
1142           pointers, closes #1427663
1143
1144 2008-03-05 Borut Razem <borut.razem AT siol.net>
1145
1146         * dos/sdccman.lyx: docummented predefined macros SDCC_REVISION,
1147           SDCC_PARMS_IN_BANK1, SDCC_FLOAT_REENT and SDCC_INT_LONG_REENT
1148
1149 2008-03-05 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1150
1151         * support/librarian/sdcclib.c:Added feature request 1908061:
1152           Synchronise sdcclib commands with ar.
1153
1154 2008-03-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1155
1156         * src/SDCCmain.c: added predefined macros SDCC_REVISION (RFE #1907229),
1157           and (depending on corresponding compiler option) SDCC_PARMS_IN_BANK1,
1158           SDCC_FLOAT_REENT, SDCC_INT_LONG_REENT
1159         * device/include/mcs51/compiler.h: removed umlauts, added double
1160           underscore
1161
1162 2008-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
1163
1164         * src/SDCCptropt.c (ptrPseudoSymConvert): fixed bug 1536762
1165         * support/regression/tests/bug1536762.c: new, added
1166         * src/SDCCutil.c,
1167         * src/SDCCutil.h: added getBuildDate()
1168         * src/SDCCmain.c (printVersionInfo),
1169         * src/SDCCglue.c (initialComments): use getBuildDate() instead of
1170           __DATE__
1171         * src/*/ralloc.c: removed IS_OP_RUONLY macro
1172         * src/ds390/ralloc.c (packRegisters),
1173         * src/mcs51/ralloc.c (packRegisters),
1174         * src/z80/ralloc.c (packRegisters): applied fix for bug 1618050, thanks
1175           Robert Larice
1176         * support/regression/tests/bug1618050.c: new, added
1177         * src/SDCCsymt.h: fixed typo in DECLSPEC2TXT
1178         * support/regression/fwk/include/testfwk.h,
1179         * support/regression/tests/bug1838000.c: moved _AUTOMEM and _STATMEM to
1180           testfwk.h
1181
1182 2008-03-04 Raphael Neider <rneider AT web.de>
1183
1184         * src/pic/gen.c: removed unused prototypes, prevent internal errors
1185           on accessing OP_SYM_TYPE(op)
1186         * src/pic/gen.h: removed unused prototype of genMinusDec()
1187         * src/pic/genarith.c (genMinus): cosmetic changes, rewritten to
1188           fix #1876953 (invalid subtraction code), removed unused code
1189
1190 2008-03-03 Raphael Neider <rneider AT web.de>
1191
1192         * src/pic/gen.c,
1193         * src/pic/gen.h,
1194         * src/pic/genarith.c,
1195         * src/pic/ralloc.c,
1196         * src/pic/ralloc.h: removed AOP_R0, AOP_R1, AOP_DPTR, AOP_DPTR2,
1197           AOP_ACC, and *_IDX and adjusted code, removed unused legacy code
1198
1199 2008-03-03 Raphael Neider <rneider AT web.de>
1200
1201         * src/pic/device.c (find_device): search user-specified paths first
1202           for pic14devices.txt, fixes #1900827
1203
1204 2008-03-02 Borut Razem <borut.razem AT siol.net>
1205
1206         * support/scripts/sdcc.nsi: fixed bug in IsNT, LogicLib-isation of
1207           AddToPath and RemoveFromPath
1208
1209 2008-03-01 Borut Razem <borut.razem AT siol.net>
1210
1211         * support/scripts/sdcc.nsi: reverted MULTIUSER page since it didn't
1212           work correctly, added debugging support if -DSDCC.DEBUG command line
1213           option is defined
1214
1215 2008-02-28 Borut Razem <borut.razem AT siol.net>
1216
1217         * doc/sdccman.lyx: cosmetic changes
1218
1219 2008-02-28 Maarten Brock <sourceforge.brock AT dse.nl>
1220
1221         * src/mcs51/ralloc.c (fillGaps): fixed bug 1839671
1222         * doc/sdccman.lyx: fixed unmeant removal of spaces
1223
1224 2008-02-27 Borut Razem <borut.razem AT siol.net>
1225
1226         * support/scripts/sdcc.nsi: corrected installation directory for
1227           current user installation mode
1228         * doc/README.txt: added Philipp Klaus Krause to the developers list
1229
1230 2008-02-27 Maarten Brock <sourceforge.brock AT dse.nl>
1231
1232         * src/mcs51/gen.c (genUnpackBits): don't generate ifxJump, instead
1233           return ifx condition
1234           (genNearPointerGet, genPagedPointerGet, genFarPointerGet,
1235           genCodePointerGet, genGenPointerGet): cleanup aop before generating
1236             ifxJump to fix bug 1838000
1237         * src/SDCCsymt.c (aggregateToPointer): fix problem for xstack
1238         * support/regression/tests/bug1838000.c: new, added
1239         * device/include/mcs51/cc1110.h: new, added, thanks to Pravin Angolkar
1240
1241 2008-02-26 Borut Razem <borut.razem AT siol.net>
1242
1243         * src/SDCCast.c, doc/sdccman.lyx: fixed RFE #1901171: inerger promotion
1244           of casted varargs
1245         * support/scripts/sdcc.nsi: added MULTIUSER page,
1246           NSIS upgraded to version 2.35
1247
1248 2008-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
1249
1250         * src/mcs51/ralloc.c (isSpiltOnStack): fixed bug 1565152
1251         * support/regression/tests/bug1565152.c: new, added
1252
1253 2008-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
1254
1255         * src/mcs51/gen.c (genPagedPointerSet): fixed bug 1670148
1256         * support/regression/ports/mcs51-xstack-auto/spec.mk: added expf.c
1257         * support/regression/tests/bug1670148.c: new, added
1258
1259 2008-02-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1260
1261         * device/include/mcs51/at89c51ed2.h: fixed bug 1901469.
1262
1263 2008-02-24 Borut Razem <borut.razem AT siol.net>
1264
1265         * src/SDCCast.c, src/SDCCast.h: fixed bug #1874922: explicit typecast
1266           is ineffective for unsigned char parameter
1267
1268 2008-02-24 Maarten Brock <sourceforge.brock AT dse.nl>
1269
1270         * src/SDCCast.c (expandInlineFuncs): fixed bug 1875869
1271         * src/SDCCglue.c (printIvalBitFields): fixed bug 1806631
1272         * support/regression/tests/bitopcse.c: removed hc08 exception, see testfwk.h
1273         * support/Util/MySystem.c (my_system): output errorcode when verbose
1274
1275 2008-02-22 Philipp Klaus Krause <pkk AT spth.de>
1276
1277         * src/z80/gen.c (genMult): Rewrote 8-bit multiplication by constant,
1278           implements #1898231
1279
1280 2008-02-22 Philipp Klaus Krause <pkk AT spth.de>
1281
1282         * device/lib/z80/mul.s: Rewrote __muluchar_rrx_s, to improve 8-bit mult.,
1283           implements #1896290
1284
1285 2008-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
1286
1287         * src/SDCCast.c (createIvalStruct): fixed bug 1466761
1288
1289 2008-02-21 Borut Razem <borut.razem AT siol.net>
1290
1291         * support/regression/Makefile.in,
1292           support/regression/ports/ds390/spec.mk,
1293           support/regression/ports/hc08/spec.mk,
1294           support/regression/ports/mcs51-common/spec.mk,
1295           support/regression/ports/pic14/spec.mk,
1296           support/regression/ports/pic16/spec.mk,
1297           support/regression/ports/ucz80/spec.mk,
1298           support/regression/ports/xa51/spec.mk:
1299           added CFLAGS when compiling timeout
1300
1301 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
1302
1303         * support/regression/tests/bugs-1596270-1736867.c: Regression test for
1304           #1596270, #1736867
1305
1306 2008-02-20 Maarten Brock <sourceforge.brock AT dse.nl>
1307
1308         * src/SDCClrange.c (findPrevUse): fixed bug 1888147
1309         * support/regression/tests/bug1888147.c: new, added
1310
1311 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
1312
1313         * src/z80/gen.c: fixed bugs #1596270, #1736867
1314
1315 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
1316
1317         * src/z80/gen.c: fixed bug in register pair loading when swapping register
1318           contents, mostly fixes #1596270
1319
1320 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
1321
1322         * src/z80/peeph.def,
1323         * src/z80/peeph-z80.def: moved peephole that breaks gbz80 to z80-specific
1324           peepholes, fixes #1806565
1325
1326 2008-02-20 Maarten Brock <sourceforge.brock AT dse.nl>
1327
1328         * src/SDCCpeeph.c (operandBaseName): added check for @Ri
1329         * src/mcs51/peeph.def (rule 177.c): added operandsNotRelated(%1 %3)
1330           fixes bug 1739475, thanks Robert Larice
1331           (rule 271): new, added
1332
1333 2008-02-18 Borut Razem <borut.razem AT siol.net>
1334
1335         * sim/ucsim/s51.src/Makefile.in: fixed error made in previous commit
1336
1337 2008-02-17 Maarten Brock <sourceforge.brock AT dse.nl>
1338
1339         * src/SDCCmain.c (linkEdit): emit -z when using --debug for z80
1340
1341 2008-02-17 Raphael Neider <rneider AT web.de>
1342
1343         * src/pic16/genarith.c,
1344         * src/pic16/gen.c,
1345         * src/pic16/gen.h,
1346         * src/pic16/genutils.c: removed unused legacy code,
1347           removed unused fields from struct asmop and struct _G
1348
1349 2008-02-17 Raphael Neider <rneider AT web.de>
1350
1351         * src/pic16/gen.c (AccRsh): cosmetic changes,
1352           (shiftR1Left2ResultSigned,shiftR1Left2Result,shiftL1Left2Result,
1353           genRightShiftLiteral): fixed to work with SFRs as result by
1354           assigning only once to result,
1355           removed a lot of unused/excluded code fragments
1356
1357 2008-02-17 Raphael Neider <rneider AT web.de>
1358
1359         * device/include/pic/pic16f88.h,
1360         * device/include/pic/pic16f886.h,
1361         * device/include/pic/pic16f887.h: added TRISA6 and TRISA7
1362
1363 2008-02-17 Borut Razem <borut.razem AT siol.net>
1364
1365         * src/z80/peeph.def: applied patch
1366           #1893626: Optimize tail calls on Z80, thanks to Philipp Krause
1367         * src/z80/gen.c, src/z80/peeph.def: applied patch
1368           #1893510: Improve logical left shift on Z80, thanks to Philipp Krause
1369         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
1370           sim/ucsim/s51.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
1371           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
1372           sim/ucsim/main_in.mk: renamed libutil.a to libucsimutil.a in order to
1373           enable compilation on Mac OS X 10.5 (Leopard) and XCode v3.0
1374
1375 2008-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
1376
1377         * as/link/mcs51/aslink.dsp: removed SDK define
1378         * as/link/z80/clean.mk: brought in sync with other ports
1379         * as/link/z80/lklibr.c (SdccLib, fndsym): handle the dflag here too
1380         * as/hc08/Makefile.bcc,
1381         * as/mcs51/Makefile.bcc,
1382         * as/z80/Makefile.bcc: noice.c was moved to as/asxxsrc/
1383         * src/z80/main.c (_setValues): use the now capitalized -Z,
1384           (z80_port, gbz80_port): generate debug information when asked
1385
1386 2008-02-16 Borut Razem <borut.razem AT siol.net>
1387
1388         * as/z80/asmain.c, as/z80/asm.h, as/z80/asdata.c,
1389           as/link/z80/lkmain.c, as/z80/as_gbz80.dsp, as/z80/as_z80.dsp,
1390           as/z80/Makefile.in. as/z80/Makefile.bcc:
1391           applied patch #1893393: patch for as-z80 and link-z80 to generate
1392           cdb, thanks to Armin Diehl
1393         * as/*/asnoice.c, as/hc08/as_hc08.dsp, as/hc08/Makefile.in,
1394           as/mcs51/asx8051.dsp, as/mcs51/Makefile.in:
1395           asnoice.c moved to as/asxxsrc/asnoice.c
1396         * src/z80/peeph-gbz80.def: applied patch
1397           #1880235: Z80 return peephole, thanks to Philipp Krause
1398
1399 2008-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
1400
1401         * .version,
1402         * doc/sdccman.lyx: bumped version to 2.7.5
1403         * src/SDCCsymt.c (compareType, comparePtrType): fixed bug 1281583
1404
1405 2008-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
1406
1407         * device/include/pic16/stdlib.h,
1408         * device/lib/pic16/libc/stdlib/ltoa.c,
1409         * device/lib/pic16/libc/stdio/vfprintf.c: ascii strings are char*
1410
1411 2008-02-13 Borut Razem <borut.razem AT siol.net>
1412
1413         * src/SDCCmain.c, src/SDCCglue.c: fixed --c1mode
1414         * src/pic16/glue.c, src/SDCCast.c, src/SDCCast.h, src/SDCCBBlock.c,
1415           src/SDCCcse.c, src/SDCCglue.c, src/SDCCicode.c, src/SDCCloop.c,
1416           src/SDCCopt.c,  src/SDCCval.c:
1417           fixed bug #1890273: SDCC Warning 154 shows wrong filename
1418
1419 2008-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
1420
1421         * src/SDCCsymt.c (compareType): fixed bug 1309013
1422
1423 2008-02-09 Borut Razem <borut.razem AT siol.net>
1424
1425         * src/SDCCval.c, src/SDCCval.h:
1426           code cleaning, added function constChrVal()
1427         * src/SDCCglue.c, src/pic/glue.c, src/pic16/glue.c, src/SDCCast.c, src/SDCC.y:
1428           call constChrVal() instead constVal()
1429
1430 2008-02-01 Maarten Brock <sourceforge.brock AT dse.nl>
1431
1432         * src/SDCCast.c (resolveSymbols): added reentrancy check for parameters
1433           of function pointer
1434         * src/SDCCerr.h,
1435         * src/SDCCerr.c: changed warning W_NONRENT_ARGS to error E_NONRENT_ARGS
1436         * support/regression/tests/absolute.c: added TestStruct TestVar (see also
1437           bug 1859853)
1438
1439 2008-02-01 Raphael Neider <rneider AT web.de>
1440
1441         * device/include/pic/pic16f886.h,
1442         * device/include/pic/pic16f887.h: added RA6 and RA7
1443
1444 2008-01-24 Raphael Neider <rneider AT web.de>
1445
1446         * device/include/pic/pic16f88.h: added RA6 and RA7
1447         * device/lib/pic/libdev/disabled_pic16f886.c,
1448         * device/lib/pic/libdev/disabled_pic16f887.c: renamed and enabled
1449
1450         * src/pic16/devices.inc,
1451         * device/include/pic16/pic18f2423.h,
1452         * device/include/pic16/pic18f2523.h,
1453         * device/include/pic16/pic18fregs.h,
1454         * device/lib/pic16/pics.all
1455         * device/lib/pic16/libdev/pic18f2423.c,
1456         * device/lib/pic16/libdev/pic18f2523.c: added 18f2423 and 18f2523
1457         * device/lib/pic16/libio/i2c.ignore,
1458         * device/lib/pic16/libio/usart.ignore,
1459         * device/lib/pic16/libio/adc.ignore: ignore new devices
1460
1461 2008-01-23 Maarten Brock <sourceforge.brock AT dse.nl>
1462
1463         * src/SDCCast.c (createRMW): fixed bug 1582651
1464
1465 2008-01-20 Borut Razem <borut.razem AT siol.net>
1466
1467         * src/SDCCcse.c: partially fixed enhancement request
1468           #1793872 - multiply by -1 not collapsed
1469         * support/regression/tests/arithcsi.c: added regression test
1470
1471 2008-01-19 Maarten Brock <sourceforge.brock AT dse.nl>
1472
1473         * as/mcs51/asx8051.dsp: removed define SDK
1474         * as/mcs51/i51mch.c (machine): fixed bug 1865114
1475         * device/include/asm/ds390/features.h: fixed bug with ds390 & stack-auto
1476         * as/link/lklex.c,
1477         * as/link/mcs51/lkmain.c: used LKDIRSEP, LKDIRSEPSTR and LKOBJEXT,
1478           cosmetic changes, brought more in sync, changed old K&R to ANSI
1479
1480 2008-01-13 Borut Razem <borut.razem AT siol.net>
1481
1482         * support/scripts/sdcc.nsi: added Uninstall/reinstall page, ...
1483         * src/SDCCicode.c: fixed bug #1870216 - Error 122: dividing by zero
1484
1485 2007-12-30 Borut Razem <borut.razem AT siol.net>
1486
1487         * src/pic16/gen.c: fixed implementation of bitwise operations for
1488           pic16 target
1489         * support/regression/tests/bitwise.c: added test cases
1490
1491 2007-12-29 Borut Razem <borut.razem AT siol.net>
1492
1493         * src/SDCCasm.[ch]: renamed from asm[ch], use dbuf_getline(), ...
1494         * src/src.dsp, src/Makefile.bcc, src/Makefile.in, src/common.h,
1495           src/SDCCglue.c, src/xa51/main.c: asm.[ch] renamed to SDCCasm.[ch]
1496         * support/Util/dbuf_string.[ch]: added function dbuf_getline()
1497         * src/ds390/gen.c, src/hc08/gen.c, src/mcs51/gen.c, src/pic16/gen.c,
1498           src/pic/gen.c, src/z80/gen.c, src/xa51/gen.c, src/pic16/ralloc.c,
1499           src/pic16/pcode.[ch]: added const qualifier
1500         * as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
1501           as/mcs51/Makefile.bcc, as/mcs51/Makefile.in, as/mcs51/asx8051.dsp,
1502           as/z80/Makefile.bcc, as/z80/Makefile.in, as/z80/as_gbz80.dsp,
1503           as/z80/as_z80.dsp: added dbuf.[ch] and dbuf_string[ch] to project
1504         * as/asxxsrc/aslex.c: use dbuf_getline()
1505         * as/hc08/asdata.c, as/hc08/asexpr.c, as/hc08/asm.h, as/hc08/m08adr.c,
1506           as/mcs51/asdata.c, as/mcs51/asexpr.c, as/mcs51/asm.h,
1507           as/mcs51/i51adr.c, as/z80/asdata.c, as/z80/asexpr.c, as/z80/aslist.c,
1508           as/z80/asm.h, as/z80/z80adr.c:
1509           changed type of ib and ip to const char *
1510
1511 2007-12-28 Borut Razem <borut.razem AT siol.net>
1512
1513         * as/asxxsrc/aslex.c: moved from as/mcs51/aslex.c;
1514           introduced (readlin) - long lines are turuncated
1515         * as/hc08/as_hc08.dsp, as/mcs51/asx8051.dsp, as/z80/as_gbz80.dsp,
1516           as/z80/as_z80.dsp, as/hc08/Makefile.in, as/mcs51/Makefile.in,
1517           as/z80/Makefile.in: moved aslex.c to asxxsrc
1518         * as/hc08/aslex.c, as/z80/aslex.c: deleted
1519         * as/hc08/asmain.c, as/mcs51/asmain.c:
1520           added missing initialization of a_addr field
1521         * support/regression/tests/long_asm_line.c: added regtest for long
1522           assembler line
1523
1524 2007-12-22 Borut Razem <borut.razem AT siol.net>
1525
1526         * src/SDCC.lex: fixed bug #1852894: # character hangs the compiler
1527
1528 2007-12-20 Maarten Brock <sourceforge.brock AT dse.nl>
1529
1530         * src/SDCCsymt.c (computeType): fixed bug, thanks Fan Weiguang
1531
1532 2007-12-16 Borut Razem <borut.razem AT siol.net>
1533
1534         * device/include/pic16/stdbool.h: removed, since already exists in
1535          device/include/; this also fixes bitopcse.c regression test for pic16
1536          target
1537         * support/regression/fwk/inclusw/testfwk.h: added macro ASSERT_FAILED
1538         * src/pic16/glue.c: fixed bug #1851855: generic static pointer
1539           dereference doesn't work; covered by regression test bug1399290
1540
1541 2007-12-05 Borut Razem <borut.razem AT siol.net>
1542
1543         * doc/sdccman.lyx: fixed bug #1844509 - Correction to Manual 4.6.9
1544           Adding new PIC16
1545
1546 2007-12-01 Borut Razem <borut.razem AT siol.net>
1547
1548         * sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/mem.cc:
1549           corrected handling of the highest_valid_address
1550
1551 2007-11-17 Raphael Neider <rneider AT web.de>
1552
1553         * src/pic/main.c (_asmCmd): include debug arguments (-g as $3)
1554         * src/pic/glue.c (picglue): emit .file if --debug is given
1555
1556 2007-11-17 Raphael Neider <rneider AT web.de>
1557
1558         * src/pic16/genarith.c (pic16_genPlus, pic16_genMinus): take special
1559         care when left or right operand resides in result, fixes #1830220
1560
1561 2007-11-17 Borut Razem <borut.razem AT siol.net>
1562
1563         * src/SDCCglue.c, src/pic16/glue.c: reverted fix for bug
1564           #983491 - "Merge duplicate strings function is ineffective"
1565         * support/regression/tests/bug-983491.c: regtest disabled
1566         * as/asxxsrc: created
1567           as/asxxsrc/assym.c, as/asxxsrc/strcmpi.c: moved
1568           as/hc08/assym.c, as/mcs51/assym.c, as/strcmpi.c,
1569           as/z80/assym.c, as/hc08/asstore.c, as/mcs51/asstore.c: deleted
1570           as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
1571           as/hc08/asm.h, as/link/hc08/Makefile.bcc, as/link/hc08/Makefile.in,
1572           as/link/hc08/link_hc08.dsp, as/link/mcs51/Makefile.bcc,
1573           as/link/mcs51/Makefile.in, as/link/mcs51/aslink.dsp,
1574           as/link/z80/Makefile.in, as/link/z80/linkgbz80.dsp,
1575           as/link/z80/linkz80.dsp, as/mcs51/Makefile.bcc, as/mcs51/Makefile.in,
1576           as/mcs51/asm.h, as/mcs51/asx8051.dsp, as/z80/Makefile.bcc,
1577           as/z80/Makefile.in, as/z80/as_gbz80.dsp, as/z80/as_z80.dsp,
1578           as/z80/Makefile.as_hc08, as/mcs51/Makefile.asx8051: modified
1579           created as/asxxsrc directory, assym.c and strcpi.c moved into it
1580
1581 2007-11-15 Maarten Brock <sourceforge.brock AT dse.nl>
1582
1583         * device/include/stdarg.h: added and removed some casts
1584         * src/SDCCsymt.c (compareType): Fully check types between generic and
1585           non-generic pointers, also accept ptr-ptr to void-ptr assignments
1586
1587 2007-11-13 Borut Razem <borut.razem AT siol.net>
1588
1589         * support/regression/tests/bug-1817005.c:
1590           added regtest for bug #1817005 - as-z80 chokes on long labels
1591
1592 2007-11-12 Borut Razem <borut.razem AT siol.net>
1593
1594         * as/z80/asmain.c, as/z80/asm.h, as/z80/assym.c, as/z80/asdata.c,
1595           as/z80/asout.c, as/z80/aslist.c:
1596           fixed bug #1817005 - as-z80 chokes on long labels
1597
1598 2007-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
1599
1600         * as/hc08/asmain.c,
1601         * as/z80/asmain.c: cosmetic changes
1602         * as/hc08/alloc.h,
1603         * as/mcs51/alloc.h,
1604         * as/z80/alloc.h: removed
1605         * as/hc08/assym.c,
1606         * as/mcs51/assym.c: replaced alloc.h with stdlib.h
1607         * as/link/aslink.h: added LKDIRSEP and, LKDIRSEPSTR
1608         * as/link/hc08/Makefile.in,
1609         * as/link/mcs51/Makefile.in,
1610         * as/link/z80/Makefile.in: added -DUNIX to CFLAGS
1611         * as/link/lklex.c,
1612         * as/link/mcs51/lkarea.c,
1613         * as/link/mcs51/lkmain.c: cosmetic changes
1614         * as/link/hc08/lklibr.c,
1615         * as/link/z80/lklibr.c,
1616         * as/link/mcs51/lklibr.c: used LKDIRSEP, LKDIRSEPSTR and LKOBJEXT,
1617           used cygwin_conv_to_full_posix_path,
1618           added warnings, cosmetic changes, brought more in sync
1619           changed old K&R into ANSI function declarations
1620         * as/link/z80/lklibr.c (loadAdb): added
1621         * as/link/z80/lkmain.c: removed -- option from usage text
1622
1623 2007-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
1624
1625         * src/mcs51/gen.c (outBitC): optimized for no result
1626
1627 2007-10-31 Borut Razem <borut.razem AT siol.net>
1628
1629         * src/SDCCsymt.c: fixed (hopeful properly) bug
1630           #1805702 - order of extern matters
1631         * support/regression/tests/bug-1805702.c: enabled regtest for bug
1632           #1805702
1633
1634 2007-10-29 Borut Razem <borut.razem AT siol.net>
1635
1636         * src/SDCCsymt.c: reverted bad fixed of bug #1805702
1637           - order of extern matters
1638         * support/regression/tests/bug-1805702.c: disabled regtest for bug
1639           #1805702
1640
1641 2007-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
1642
1643         * src/ds390/peeph.def: replaced 24bitModeAndPortDS390 by
1644           24bitMode, portIsDS390
1645         * src/mcs51/gen.c (genOr): optimized for RFE 1750727
1646         * src/SDCCpeeph.c (flat24bitModeAndPortDS390): removed
1647           (notVolatileVariable): also check sloc names,
1648           (callFuncByName): moved ftab[] out of function and sorted it by use
1649
1650 2007-10-28 Maarten Brock <sourceforge.brock AT dse.nl>
1651
1652         * device/include/stdarg.h: fixed bug in va_start macro for --xstack
1653         * src/hc08/gen.c (aopForRemat): aop->aopu.aop_immd.from_cast_remat not set,
1654           aop->aopu.aop_immd.aop_immd2 not filled with (generic) pointer type
1655         * src/SDCCicode.c (geniCodeCast): fixed bug 880197
1656         * support/regression/tests/bug-880197.c: new, added
1657
1658 2007-10-28 Borut Razem <borut.razem AT siol.net>
1659
1660         * support/regression/Makefile.in,
1661           support/regression/ports/mcs51-large/spec.mk,
1662           support/regression/ports/mcs51-xstack-auto/spec.mk,
1663           support/regression/ports/mcs51-stack-auto/spec.mk,
1664           support/regression/ports/mcs51-medium/spec.mk,
1665           support/regression/ports/mcs51-common/spec.mk,
1666           support/regression/ports/mcs51-common/*,
1667           support/regression/ports/mcs51-small/*:
1668           mcs51 renamed to mcs51-common, created mcs51-small
1669         * src/SDCCsymt.c: fixed bug #1805702 - order of extern matters
1670         * support/regression/tests/bug-1805702.c: added regtest for bug
1671           #1805702
1672
1673 2007-10-26 Maarten Brock <sourceforge.brock AT dse.nl>
1674
1675         * src/mcs51/peeph.def: moved rules 257.x to 253.x and re-enabled 253.b,
1676           added new rules 265 - 270
1677         * support/regression/tests/bug1721024.c:new, added
1678         * support/regression/Makefile.in: renamed test-mcs51 to test-mcs51-small,
1679           introduced new test-mcs51 to run all mcs51 tests
1680
1681 2007-10-25 Maarten Brock <sourceforge.brock AT dse.nl>
1682
1683         * support/regression/tests/bug1816470.c: new, added
1684
1685 2007-10-21 Maarten Brock <sourceforge.brock AT dse.nl>
1686
1687         * src/SDCCast.c (resultTypePropagate): do propagate for LEFT_OP, do not
1688           propagate for *,+,- with float, fixed bug 1816470
1689           (decorateType): cast to resultTypeProp instead of resultType
1690
1691 2007-10-19 Borut Razem <borut.razem AT siol.net>
1692
1693         * src/pic16/glue.c: fixed bug #983491 - "Merge duplicate strings
1694           function is ineffective" for pic16 tareget
1695         * support/scripts/listerr.c: corrected include path
1696         * device/lib/_itoa.c: fixed bug #1806402 - _itoa and _uitoa leak to
1697           adjacent memory
1698
1699 2007-10-18 Maarten Brock <sourceforge.brock AT dse.nl>
1700
1701         * support/regression/tests/using.c: new, added
1702         * support/regression/tests/vaargs.c: fixed and enabled test
1703
1704 2007-10-18 Borut Razem <borut.razem AT siol.net>
1705
1706         * src/SDCCglue.c: fixed bug #983491 - Merge duplicate strings function
1707           is ineffective
1708         * support/regression/tests/bug-983491.c: added regtest for bug #983491
1709
1710 2007-10-18 Maarten Brock <sourceforge.brock AT dse.nl>
1711
1712         * doc/sdccman.lyx: documented option --Werror
1713         * src/SDCCsymt.c (checkFunction): fixed bug 1815418 by setting
1714           RegBankUsed[] earlier
1715
1716 2007-10-14 Maarten Brock <sourceforge.brock AT dse.nl>
1717
1718         * device/include/mcs51/p89lpc938.h: new, added, thanks Kyle Guinn
1719         * src/pic/glue.c,
1720         * src/SDCCval.c,
1721         * src/SDCCast.c,
1722         * src/SDCCast.h: replaced AST_LIT_VALUE with AST_FLOAT_VALUE and
1723           AST_ULONG_VALUE
1724         * src/SDCCast.c (decorateType): improved optimization of tri-op
1725         * src/SDCCerr.c (vwerror, setWError),
1726         * src/SDCCerr.h,
1727         * src/SDCCmain.c (parseCmdLine): added option --Werror to treat all
1728           warnings as errors, thanks Stas Sergeev for PATCH 1813211
1729
1730 2007-10-13 Maarten Brock <sourceforge.brock AT dse.nl>
1731
1732         * src/mcs51/gen.c (leftRightUseAcc): use macro IS_OP_ACCUSE
1733         * src/SDCCast.c (decorateType): optimize bit=cond?1:0, RFE 1738430
1734         * support/regression/tests/bug-223113.c,
1735         * support/regression/tests/bug-426632.c,
1736         * support/regression/tests/bug-468811.c,
1737         * support/regression/tests/bug-477835.c,
1738         * support/regression/tests/bug-478094.c,
1739         * support/regression/tests/bug-499644.c,
1740         * support/regression/tests/bug-524209.c,
1741         * support/regression/tests/bug-524211.c,
1742         * support/regression/tests/packcast.c,
1743         * support/regression/tests/structidx.c: added empty tests
1744         * support/regression/tests/bug-607243.c: enabled test
1745
1746 2007-10-06 Borut Razem <borut.razem AT siol.net>
1747
1748         * .version, doc/sdccman.lyx: bumped version to 2.7.4 to indicate the full
1749            support of universal binaries on Mac OS X
1750
1751 2007-10-02 Borut Razem <borut.razem AT siol.net>
1752
1753         * src/SDCCval.h: unified double2ul macro for all platforms
1754         * src/SDCCval.c: fixed bug #1777758 - applied Maarten's patch
1755         * support/regression/tests/bitwise.c: added regtest for bug #1777758
1756
1757 2007-09-30 Borut Razem <borut.razem AT siol.net>
1758
1759         * src/SDCCval.h: fixed bug #1739860 - sdcc does not work correctly on some
1760           platforms
1761         * sdcc_vc_in.h: enabled warnings
1762         * src/hc08/gen.c: fixed MSVC warning C4146: unary minus operator applied to
1763           unsigned type, result still unsigned
1764         * src/mcs51/peep.c: fixed gcc warning: suggest parentheses around && within ||
1765
1766 2007-09-28 Raphael Neider <rneider AT web.de>
1767
1768         * src/pic/device.c (find_device): prevent buffer underflow error
1769         * src/pic/pcoderegs.c (OptimizeRegUsage): avoid dereferencing
1770           the just destroyed list entry
1771
1772 2007-09-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1773
1774         * doc/sdccman.lyx: there's a dedicated wiki page for cmake and sdcc, thanks
1775           Alexander Neundorf
1776
1777 2007-09-18 Borut Razem <borut.razem AT siol.net>
1778
1779         * src/SDCCval.c: fixed MSVC warning C4146: unary minus operator
1780          applied to unsigned type, result still unsigned
1781
1782 2007-09-17 Borut Razem <borut.razem AT siol.net>
1783
1784         * src/SDCC.y, src/SDCCast.c, src/SDCCcse.c, src/SDCCglue.c,
1785           src/SDCCicode.c, src/SDCCopt.c, src/SDCCsymt.c, src/SDCCval.c,
1786           src/SDCCval.h, src/hc08/gen.c, src/avr/gen.c, src/ds390/gen.c,
1787           src/mcs51/gen.c, src/pic/gen.c, src/pic/genarith.c, src/pic/glue.c,
1788           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/genarith.c,
1789           src/pic16/genutils.c, src/pic16/glue.c, src/pic16/main.c,
1790           src/z80/gen.c, src/z80/ralloc.c:
1791           fixed bug #1739860 - sdcc does not work correctly on some platforms
1792           (not finished)
1793           introduced and used ulFromVal(), double2ul(), used strtod() instead sscanf()
1794
1795 2007-09-17 Raphael Neider <rneider AT web.de>
1796
1797         * src/pic16/device.c: reverted to previous version
1798         * device/lib/pic16/Makefile.common.in: quieten gpasm via -Wa,-q
1799
1800 2007-09-16 Raphael Neider <rneider AT web.de>
1801
1802         * src/pic16/device.c (pic16_dump_usection): do not reserve 0 bytes,
1803           as this raises a ton of gpasm warnings, just emit a second label
1804         * src/pic16/devices.inc,
1805         * device/lib/pic16/pics.all,
1806         * device/lib/pic16/libdev/pic18f2585.c,
1807         * device/lib/pic16/libdev/pic18f2680.c,
1808         * device/lib/pic16/libdev/pic18f2682.c,
1809         * device/lib/pic16/libdev/pic18f2685.c,
1810         * device/lib/pic16/libdev/pic18f4585.c,
1811         * device/lib/pic16/libdev/pic18f4680.c,
1812         * device/lib/pic16/libdev/pic18f4682.c,
1813         * device/lib/pic16/libdev/pic18f4685.c,
1814         * device/include/pic16/pic18f2585.h,
1815         * device/include/pic16/pic18f2680.h,
1816         * device/include/pic16/pic18f2682.h,
1817         * device/include/pic16/pic18f2685.h,
1818         * device/include/pic16/pic18f4585.h,
1819         * device/include/pic16/pic18f4680.h,
1820         * device/include/pic16/pic18f4682.h,
1821         * device/include/pic16/pic18f4685.h,
1822         * device/include/pic16/pic18fregs.h: added 18f2585, 18f2680,
1823           18f2682, 18f2685, 18f4585, 18f4680, 18f4682, 18f4685,
1824           patch contributed by Anton Strobl, applied with changes
1825
1826 2007-09-16 Raphael Neider <rneider AT web.de>
1827
1828         * device/include/pic16/pic18f2431.h,
1829         * device/include/pic16/pic18f25j10.h,
1830         * device/include/pic16/pic18f4431.h,
1831         * device/include/pic16/pic18f45j10.h: adopted common include style
1832         * device/include/pic16/pic18f1320.h,
1833         * device/include/pic16/pic18f2320.h,
1834         * device/include/pic16/pic18f2525.h,
1835         * device/include/pic16/pic18f4320.h,
1836         * device/include/pic16/pic18f4525.h: NEW, just include proper .h file
1837         * device/include/pic16/pic18fregs.h: prepared for automatic include
1838           file selection by having DEVICE.h for every DEVICE
1839         * device/lib/pic16/libdev/pic18f2320.c,
1840         * device/lib/pic16/libdev/pic18f4320.c: just include proper .c file
1841
1842         * device/lib/pic16/configure.in,
1843         * device/lib/pic16/configure: use rm -rf instead of rmdir
1844         * device/lib/pic16/Makefile.in: use RMDIR to remove build directories
1845         * device/lib/pic16/libc/stdlib/free.c: avoid warning on pointer cast
1846
1847 2007-09-09 Borut Razem <borut.razem AT siol.net>
1848
1849         * src/SDCCmain.c, src/SDCCutil.c: print newline after printVersionInfo(),
1850           distingush between i386 and ppc Mac OS X versions
1851
1852 2007-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
1853
1854         * src/mcs51/gen.c (genReceive): fixed bug 1788177
1855         * support/regression/tests/bug1788177.c: new, added
1856
1857 2007-09-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1858
1859         * doc/sdccman.lyx: mentioned d52 and cmake, customizing startup code
1860         * device/include/mcs51/lint.h added keyword __naked
1861
1862 2007-09-04 Maarten Brock <sourceforge.brock AT dse.nl>
1863
1864         * src/pic16/glue.c,
1865         * src/pic/glue.c,
1866         * src/SDCCmem.h: removed maxRegBank
1867         * src/SDCCmem.c (allocVariables): removed maxRegBank and moved setting
1868           RegBankUsed[] to checkFunction() in SDCCsymt.c to fix bug 1759839
1869         * src/SDCCsymt.c (checkFunction): set RegBankUsed[] here
1870         * src/mcs51/peep.c (isCallerSaveFunc, termScanAtFunc): changed function
1871           name and behaviour to handle banked functions
1872           (scan4op): and use it to fix bug 1786213
1873
1874 2007-09-03 Raphael Neider <rneider AT web.de>
1875
1876         * device/include/pic16/pic18f248.h,
1877         * device/include/pic16/pic18f258.h,
1878         * device/include/pic16/pic18f448.h,
1879         * device/lib/pic16/libdev/pic18f248.c,
1880         * device/lib/pic16/libdev/pic18f258.c,
1881         * device/lib/pic16/libdev/pic18f448.c: fixed TRISEbits,
1882           added T0CONbits, fixes #1786891
1883
1884 2007-08-29 Maarten Brock <sourceforge.brock AT dse.nl>
1885
1886         * src/ds390/gen.c (genFarPointerSet),
1887         * src/hc08/ralloc.c (packRegisters),
1888         * src/mcs51/ralloc.c (packRegisters),
1889         * src/SDCCcse.c (cseBBlock): check if result is a symbol first to fix
1890           bug 1750318
1891         * src/SDCCicode.h: POINTER_SET can be true for literals too
1892         * support/regression/tests/bug1750318.c: new, added
1893
1894 2007-08-23 Borut Razem <borut.razem AT siol.net>
1895
1896         * debugger/mcs51/sdcdb.c: fixed compilation with older readline
1897           library versions without the completition functionality
1898
1899 2007-08-22 Raphael Neider <rneider AT web.de>
1900
1901         * device/include/pic16/pic18f1220.h,
1902         * device/lib/pic16/libdev/pic18f1220.c: applied patch #1776191
1903
1904 2007-08-12 Borut Razem <borut.razem AT siol.net>
1905
1906         * debugger/mcs51/Makefile.in: support/Util/SDCCerr.[ch] moved to src
1907
1908 2007-08-11 Borut Razem <borut.razem AT siol.net>
1909
1910         * support/Util/SDCCerr.c, support/Util/SDCCerr.h, src/src.dsp,
1911           src/Makefile.in, src/Makefile.bcc, support/scripts/listerr.c:
1912           support/Util/SDCCerr.[ch] moved to src
1913         * as/hc08/as_hc08.dsp, as/link/hc08/link_hc08.dsp,
1914           as/link/z80/linkgbz80.dsp, as/link/z80/linkz80.dsp,
1915           device/examples/ds390/tinitalk/tinitalk.dsp,
1916           device/examples/serialcomm/windows/serialcomm.dsp,
1917           support/librarian/librarian.dsp:
1918           removed linking of unused odbc32.lib and odbccp32.lib
1919         * support/scripts/winres.h:
1920           added for compilation with Visual C++ 2005 Express Edition
1921
1922 2007-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1923
1924         * device/include/mcs51/at89c51ed.h: Fixed typo in declarations of CKCON0
1925           and CKCON1.
1926
1927 2007-08-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1928
1929         * sdccconf_in.h: update the endian test so that SPARC Solaris
1930           does not throw syntax errors
1931
1932 2007-08-06 Borut Razem <borut.razem AT siol.net>
1933
1934         * doc/sdccman.lyx: removed two index entries which prevented the
1935           generation of sdcc doc archive
1936
1937 2007-08-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1938
1939         * doc/sdccman.lyx: Same changes made 2007-07-28 but using lyx 1.4.4
1940           instead of lyx 1.5.0.
1941
1942 2007-07-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1943
1944         * device/include/hc08/mc68hc908apxx.h: new header contributed by
1945           Lucas Loizaga, with minor modifications. Thanks!
1946
1947 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1948
1949         * doc/sdccman.lyx: Documented --acall-ajmp and described new features
1950           in sdcclib.
1951
1952 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1953
1954         * src/SDCCglobl.h, src/SDCCpeeph.c, src/SDCCglue.c, src/mcs51/main.c,
1955           src/mcs51/peeph.def: Added option --acall-ajmp: replaces lcall/ljmp
1956           with acall/ajmp.
1957
1958 2007-07-22 Borut Razem <borut.razem AT siol.net>
1959
1960         * configure.in, configure: re-introduced .version
1961         * sdcc.spec, doc/INSTALL.txt: they are used only for releases;
1962           the version reverted to 2.7.0
1963
1964 2007-07-18 Maarten Brock <sourceforge.brock AT dse.nl>
1965
1966         * configure.in,
1967         * doc/sdccman.lyx: bumped version to 2.7.3
1968         * device/include/mcs51/compiler.h: fixed elif->else
1969         * src/mcs51/gen.c (genAnd, genOr): handle accuse for pure bit operands
1970         * src/mcs51/ralloc.c (createStackSpil): fixed SCLS bug with sloc for sbit,
1971           (operandUsesAcc, packRegsForAccUse): added parameter allowBitspace to
1972            enable accuse for bit operands
1973         * src/SDCCmain.c (printVersionInfo),
1974         * src/SDCCutil.c (getBuildEnvironment): factored out creation of build
1975           environment descriptor
1976         * src/SDCCutil.h: added getBuildEnvironment
1977         * src/SDCCglue.c (initialComments): use getBuildEnvironment
1978         * support/regression/tests/bug1464657.c: enabled test test_Peephole251
1979         * support/regression/tests/bug-408972.c: enabled test leftShiftLong
1980         * support/regression/tests/bug1348008.c,
1981         * support/regression/tests/bug1496419.c,
1982         * support/regression/tests/bug1503067.c,
1983         * support/regression/tests/preproc.c: added empty tests
1984
1985 2007-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
1986
1987         * support/regression/tests/bug1678803.c: new, added
1988
1989 2007-07-14 Maarten Brock <sourceforge.brock AT dse.nl>
1990
1991         * as/link/aslink.h,
1992         * as/link/hc08/lkihx.c,
1993         * as/link/hc08/lkrloc.c,
1994         * as/link/mcs51/lkihx.c,
1995         * as/link/mcs51/lkrloc.c: renamed ihxEntendedLinearAddress to
1996           ihxExtendedLinearAddress
1997         * as/link/mcs51/lkrloc.c (relr),
1998         * as/mcs51/asout.c (outr11, outr19): handle absolute destination for
1999           acall/ajmp, see bug 830513
2000
2001 2007-07-13 Maarten Brock <sourceforge.brock AT dse.nl>
2002
2003         * src/SDCCcse.c (replaceAllSymBySym): renamed siaddr to isaddr,
2004           (cseBBlock): remember aggr2ptr has been used
2005         * src/SDCCicode.c (operandSize): added function to handle aggr2ptr,
2006           (geniCodeAssign): fixed bug 868103
2007         * src/SDCCicode.h: made operand.aggr2ptr 2 bits wide,
2008           added operandSize prototype
2009         * src/mcs51/gen.c (aopOp): use operandSize to fix bug 868103,
2010           (genDataPointerSet): use max of size of right and result,
2011           (gencjne): added parameter useCarry for optimization,
2012           (genCmpEq): use carry if appropriate,
2013           (genXor): check if operand already in carry
2014         * support/regression/tests/bug-868103.c: enabled test
2015
2016 2007-07-12 Raphael Neider <rneider AT web.de>
2017
2018         * src/pic16/gen.c (genNearPointerSet): fixed handling of literals
2019
2020 2007-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
2021
2022         * src/SDCCsymt.c (compareType): fixed bugs 1738367 and 1745717 with patch
2023           from Robert Larice, thanks
2024         * support/regression/tests/bitopcse.c,
2025         * support/regression/tests/bitvars.c,
2026         * support/regression/tests/bug-908454.c: use <stdbool.h> for the bit types
2027         * support/regression/tests/bug-927659.c: enabled test for z80
2028         * support/regression/tests/bug1738367.c: added extra tests by Frieder
2029         * support/regression/tests/bug1745717.c: new, added
2030         * support/regression/tests/literalop.c,
2031         * support/regression/tests/nullstring.c: removed storage definitions that
2032           are now in testfwk.h
2033
2034 2007-07-10 Maarten Brock <sourceforge.brock AT dse.nl>
2035
2036         * device/include/stdbool.h: do not define __bool_true_false_are_defined
2037           and bool for targets that do not fully support it.
2038         * support/regression/tests/bug1546986.c,
2039         * support/regression/tests/bug1723128.c,
2040         * support/regression/tests/bug1734654.c,
2041         * support/regression/tests/bug1738367.c,
2042         * support/regression/tests/constantRange.c: only use bool if allowed
2043
2044 2007-07-09 Maarten Brock <sourceforge.brock AT dse.nl>
2045
2046         * src/mcs51/peep.c (isCallerSaveFunc): fixed bug 1749275, thanks Robert
2047           Larice, also handle function pointers
2048         * support/regression/tests/bug1749275.c: new, added
2049
2050 2007-07-03 Borut Razem <borut.razem AT siol.net>
2051
2052         * src/mcs51/gen.c, src/avr/gen.c, src/pic/gen.c, src/z80/gen.c,
2053           src/pic16/gen.c, src/hc08/gen.c, src/ds390/gen.c: fixed RFE
2054           #1746528: SDCC should ignore ':' in inline assembler comments
2055         * device/include/typeof.h: fixed bug #1747142: typeof.h needs fixing
2056
2057 2007-07-02 Maarten Brock <sourceforge.brock AT dse.nl>
2058
2059         * device/include/mcs51/C8051F360.h: fixed bug #1746410, thanks Chris Jones
2060         * device/lib/mcs51/crtxclear.asm: do not set __XPAGE unconditionally
2061
2062 2007-06-29 Borut Razem <borut.razem AT siol.net>
2063
2064         * src/SDCCmain.c: fixed bug
2065           #1744746: SDCC #4867: broken option --xram-size
2066
2067 2007-06-28 Borut Razem <borut.razem AT siol.net>
2068
2069         * sim/ucsim/configure.in, sim/ucsim/configure, sim/ucsim/ddconfig_in.h:
2070           find out the endianess of host machine for ucsim
2071
2072 2007-06-27 Borut Razem <borut.razem AT siol.net>
2073
2074         * support/regression/generate-cases.py: corrected the file name
2075           in warning
2076         * configure.in, configure, sdccconf_in.h: find out the endianess of
2077           host machine
2078         * src/SDCC.y: fixed bug #1744146: Crash when compiling array of
2079           negative size
2080
2081 2007-06-27 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
2082
2083         * device/include/mcs51/p89c66x.h: NXP header file, OK to change licence
2084
2085 2007-06-26 Borut Razem <borut.razem AT siol.net>
2086
2087         * support/regression/generate-cases.py: display warning if function
2088           list is empty; implemented more flexible rule for detection of
2089           testing functions, allowing return type 'void' in the same line as
2090           the function name in the function definition
2091         * support/regression/tests/bug-1654060.c: corrected test
2092         * support/librarian/sdcclib.c: fixed warning:
2093           format '%s' expects type 'char *', but argument 2 has type 'int'
2094
2095 2007-06-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2096
2097         * support/librarian/sdcclib.c: Added feature Requests [1510635]
2098           Multiple infiles for sdcclib.
2099
2100 2007-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2101
2102         * src/SDCCast.c (inlineFindMaxBlockno, createFunction): fixed
2103           bug 1731741
2104
2105 2007-06-18 Borut Razem <borut.razem AT siol.net>
2106
2107         * src/SDCCmain.c: removed option -C since SDCC compiler doesn't know
2108           how to handle comments, so they have to be removed by the
2109           preprocessor; fixed bug #1738926:SDCC #4852: broken option -V
2110         * src/SDCCmain.c, src/SDCCargs.h, src/ds390/main.c, src/mcs15/main.c,
2111           src/pic16/main.c, src/pic/main.c, src/z80/main.c,
2112           support/Util/SDCCerr.c, support/Util/SDCCerr.h:
2113           table driven option hadling
2114
2115 2007-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
2116
2117         * src/SDCCast.c (decorateType),
2118         * src/SDCCicode.c (geniCodeConditional): moved optimization for '?' from
2119           iCode to ast level to fix bug 1738367
2120         * support/regression/tests/bug1738367.c: new, added
2121
2122 2007-06-15 Raphael Neider <rneider AT web.de>
2123
2124         * src/pic16/devices.inc,
2125         * device/lib/pic16/pics.all,
2126         * device/include/pic16/pic18fregs.h,
2127         * device/include/pic16/pic18f[24][45]20.h,
2128         * device/lib/pic16/libdev/pic18f[24][45]20.c: added support for
2129           18f2420, 18f2520, and 18f4420 devices, updated 18f4520 definitions
2130         * device/lib/pic16/Makefile.in: faster cleanup
2131
2132 2007-06-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2133
2134         * src/mcs51/peeph.def: added 177.i (mov from a is slightly cheaper)
2135
2136 2007-06-13 Raphael Neider <rneider AT web.de>
2137
2138         * src/SDCCmain.c: prevent NULL pointer dereference, avoid warning
2139
2140 2007-06-12 Raphael Neider <rneider AT web.de>
2141
2142         * support/scripts/inc2h.pl: conditionally emit defines for SFR bits,
2143           suppress bit defines if NO_BIT_DEFINES is #define'd
2144         * device/include/pic/pic*.h: recreated all headers to include
2145           conditional bit defines
2146         * device/include/pic/pic16f886.h,
2147         * device/include/pic/pic16f887.h: fixed based on newer .inc file
2148         * device/include/pic/recreate.sh: script to recreate the complete
2149           device library files based on the currently supported devices
2150
2151 2007-06-12 Borut Razem <borut.razem AT siol.net>
2152
2153         * src/pic16/main.c, src/SDCCargs.h, SDCCmain.c,
2154           support/regression/Makefile.in, support/scripts/build.mak,
2155           support/scripts/Makefile.snapshot:
2156           use new svn URL scheme
2157         * doc/sdccman.lyx: SDCC Wiki moved to
2158           http://sdcc.wiki.sourceforge.net/
2159
2160 2007-06-10 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2161
2162         * src/mcs51/peeph.def: disabled rule 132.d to fix #1734654
2163         * support/regression/tests/bug1734654.c: added
2164
2165 2007-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
2166
2167         * src/SDCCast.c (decorateType): optimized '?' for equal operands
2168         * src/SDCCicode.c (geniCodeConditional): optimization for bit result
2169           with literal operands
2170
2171 2007-06-10 Borut Razem <borut.razem AT siol.net>
2172
2173         * as/link/z80/lklibr.c: fixed mingw build warning
2174           lklibr.c:575: warning: implicit declaration of function 'tolower'
2175         * src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c,
2176           src/z80/main.c: move target specific options from src/SDCCmain.c
2177           to src/<target>/main.c
2178
2179 2007-06-09 Borut Razem <borut.razem AT siol.net>
2180
2181         * src/z80/gen.c: fixed bug #1294691: nested ifs make compiler crash;
2182           removed unused swap_sense; removed outBitCLong, replaced with outBitC
2183         * support/regression/tests/bug-1294691.c: added
2184
2185 2007-06-09 Maarten Brock <sourceforge.brock AT dse.nl>
2186
2187         * src/SDCCmem.c (allocDefault): removed check sym->level==0 for SPEC_ABSA,
2188           can also be static, fixes bug 1733438
2189         * src/SDCCsymt.c (checkSClass): static local vars in reentrant funcs can
2190           have absolute address too
2191           (computeType): added optimization for 'cond ? true : false'
2192         * support/regression/tests/absolute.c: added test for static absolute var
2193
2194 2007-06-08 Raphael Neider <rneider AT web.de>
2195
2196         * src/regression/Makefile: suppress parallel builds, allow easy
2197           switching between pic14/pic16 ports
2198         * src/regression/picregs.h: added pic14/16 header file switch
2199         * src/regression/{compare7.c,compare8.c,compare9.c,compare10.c,
2200           inline.c,nestfor.c,string1.c}: include "picregs.h"
2201
2202 2007-06-07 Borut Razem <borut.razem AT siol.net>
2203
2204         * sim/ucsim/*.[ch], sim/ucsim/configure, sim/ucsim/configure.in:
2205           permanent solution to suppress GCC 4.2.0 c++ warning:
2206           deprecated conversion from string constant to `char *'
2207           use 'const char *' where ever required
2208         * support/regression/generate-cases.py: implemented more flexible rule
2209           for detection of testing functions, allowing white-spaces surrounding
2210           the function name and the 'void' parameter.
2211         * support/regression/tests/constantRange.c,
2212           support/regression/tests/scott-compare3.c: fixed failing regression
2213           tests, uncovered by implementation of more flexible rule for detection
2214           of testing functions
2215
2216 2007-06-04 Maarten Brock <sourceforge.brock AT dse.nl>
2217
2218         * src/SDCCast.c(decorateType): better optimize '!!' and comparisons
2219
2220 2007-06-04 Borut Razem <borut.razem AT siol.net>
2221
2222         * configure.in, configure, config_vc.awk: sdcc version number is now
2223           stored in configure.in; removed .version
2224         * configure.in, configure, sdcc.spec, doc/sdccman.lyx, doc/sdccman.lyx,
2225           doc/INSTALL.txt: version bumped to 2.7.2
2226         * sim/ucsim/configure.in, sim/ucsim/configure:
2227           use "read" to read from .version
2228
2229 2007-06-03 Borut Razem <borut.razem AT siol.net>
2230
2231         * */Makefile.in: removed annoying warning:
2232           Makefile:xx: Makefile.dep: No such file or directory
2233
2234 2007-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
2235
2236         * src/mcs51/gen.c (outBitC, genRet): used IS_OP_RUONLY,
2237           (genNot, genXor): used toCarry, also fixes a bug for c = bit ^ val
2238         * src/mcs51/ralloc.c: removed IS_OP_RUONLY + some cosmetic changes
2239         * src/SDCCast.c (resultTypePropagate): propagate for '!',
2240           (decorateType): also optimize comparisons with RESULT_TYPE_BIT,
2241           bugfix: only use newBoolLink for bit result type
2242         * src/SDCCicode.c (geniCodeLogic): added param tree,
2243           bugfix: use newBoolLink if tree is bit type, bug appears when ruonly,
2244           (geniCodeLogicAndOr): use IS_BIT,
2245           (geniCodeJumpTable, geniCodeSwitch): added NULL param to geniCodeLogic,
2246           (ast2iCode): added tree param to geniCodeLogic for comparisons
2247         * src/SDCCsymt.h: added IS_OP_RUONLY and IS_OP_ACCUSE
2248         * support/regression/tests/bug1723128.c: added test NotZero
2249
2250 2007-06-01 Borut Razem <borut.razem AT siol.net>
2251
2252         * SDCPP synchronized with GCC CPP release version 4.2.0,
2253           currently the latest release:
2254         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
2255           support/cpp2/c-ppoutput.c, support/cpp2/cppdefault.c,
2256           support/cpp2/cppdefault.h, support/cpp2/except.h,
2257           support/cpp2/libcpp/directives.c, support/cpp2/libcpp/expr.c,
2258           support/cpp2/libcpp/files.c, support/cpp2/libcpp/include/cpplib.h,
2259           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
2260           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/macro.c,
2261           support/cpp2/libcpp/mkdeps.c, support/cpp2/libiberty/getpwd.c,
2262           support/cpp2/libiberty/hashtab.c, support/cpp2/optc-gen.awk,
2263           support/cpp2/opth-gen.awk, support/cpp2/opts.c,
2264           support/cpp2/opts.h, support/cpp2/output.h,
2265           support/cpp2/prefix.c, support/cpp2/sdcpp-opts.c,
2266           support/cpp2/sdcpp.dsp, support/cpp2/sdcpp.opt,
2267           support/cpp2/system.h, support/cpp2/version.c,
2268           support/cpp2/Makefile.in: modified
2269         * support/cpp2/opts-common.c: added
2270         * device/lib/pic16/libdev/pic18f[24][45]j10.c: fixed svn atrributes
2271         * device/lib/pic16/libdev/pic18f[24]5j10.c:
2272           search for included source file in local directory
2273         * sim/ucsim/configure, sim/ucsim/configure.in:
2274           temporary solution to suppress GCC 4.2.0 c++ warning:
2275           deprecated conversion from string constant to `char *'
2276
2277 2007-06-01 Raphael Neider <rneider AT web.de>
2278
2279         * device/lib/pic/libdev/pic12f683.c,
2280         * device/include/pic/pic12f683.h: added GPIO bits
2281
2282 2007-06-01 Raphael Neider <rneider AT web.de>
2283
2284         * doc/sdccman.lyx: added --disable-pic16-port, fixed some `--' and
2285           quotation marks, clarified role of PIC14 vs. PIC16 ports
2286         * src/pic16/devices.inc,
2287         * device/include/pic16/pic18fregs.h,
2288         * device/include/pic16/pic18f[24][45]j10.h,
2289         * device/lib/pic16/pics.all,
2290         * device/lib/pic16/libdev/pic18f[24][45]j10.c: added support for
2291           18f24j10, 18f25j10, 18f44j10, and 18f45j10
2292         * device/lib/pic16/libio/{i2c,adc,usart}.ignore: do not build IO libs
2293           for new devices as they are not yet supported by gputils
2294
2295 2007-05-31 Borut Razem <borut.razem AT siol.net>
2296
2297         * Small Device C Compiler 2.7.0 released
2298         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
2299           changed sdcc version to 2.7.1
2300         * support/scripts/sdcc.nsi: added How to create WIN32 release
2301           setup.exe package
2302
2303 2007-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
2304
2305         * doc/sdccman.lyx: documented initialization and allocation of absolute
2306           variables, bit parameter passing, the need for function pointers to be
2307           reentrant and alpha quality support of inline and retrict
2308
2309 2007-05-26 Borut Razem <borut.razem AT siol.net>
2310
2311         * support/regression/tests/bug1057979.c, support/regression/tests/malloc.c,
2312           support/regression/fwk/include/testfwk.h: fixed compilation on Mac OS x
2313         * docs/knownbugs.html: updated
2314
2315 2007-05-25 Maarten Brock <sourceforge.brock AT dse.nl>
2316
2317         * doc/sdccman.lyx: inserted footnotes about inline assembler labels,
2318           thanks Jan Waclawek
2319         * src/mcs51/gen.c (aopPut): fixed part of bug 1723128 when result is
2320           AOP_CRY and ruonly
2321           (gencjneshort): optimized when left is AOP_DIR
2322         * src/SDCCglue.c (printIvalStruct): fixed other part of bug 1723128 for
2323           initializing unions in a struct/array
2324         * support/regression/fwk/include/testfwk.h: added defines for data, near
2325           and far for host and z80
2326         * support/regression/tests/bug1723128.c: new, added
2327
2328 2007-05-22 Borut Razem <borut.razem AT siol.net>
2329
2330         * doc/knownbugs.html: updated
2331
2332 2007-05-21 Raphael Neider <rneider AT web.de>
2333
2334         * src/pic16/glue.c (pic16_initPointer): avoid assertion, emit better
2335           error message instead
2336         * src/pic/pcoderegs.c (pCodeOptime2pCodes): keep register state intact
2337
2338 2007-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
2339
2340         * src/mcs51/peeph.def (257.b): disabled to fix bug 1721024
2341
2342 2007-05-21 Raphael Neider <rneider AT web.de>
2343
2344         * src/pic/pcoderegs.c (pCodeOptime2pCodes): fixed bogus optimization,
2345           closes #1722392
2346         * src/regression/gpsim_assert.h,
2347         * src/regression/Makefile,
2348         * src/regression/pcodeopt.c: regression test for the above fix
2349
2350 2007-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
2351
2352         * src/SDCCpeeph.c (labelIsUncondJump): ignore identical labels for
2353           jumps to self, fixed bug 1717281
2354
2355 2007-05-10 Borut Razem <borut.razem AT siol.net>
2356
2357         * support/scripts/gen_known_bugs.pl: cosmetic fix
2358         * doc/knownbugs.html: generated by gen_known_bugs.pl
2359
2360 2007-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2361
2362         * src/SDCCast.c (createFunction): also generate non-inlined version of
2363           function for functions declared as "static inline"
2364         * src/SDCCast.c (fixupInline, inlineAddDecl): reset symbol state so
2365           function can be inlined after non-inlined version generated.
2366
2367 2007-05-10 Borut Razem <borut.razem AT siol.net>
2368
2369         * support/scripts/gen_known_bugs.pl: added script
2370           which generates knownbugs.html
2371
2372 2007-05-09 Maarten Brock <sourceforge.brock AT dse.nl>
2373
2374         * doc/knownbugs.html: updated for release 2.7.0
2375
2376 2007-05-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2377
2378         * device/include/mcs51/uPSD33xx.h: Added patch by Jan Waclawek.
2379
2380 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
2381
2382         * src/ds390/gen.c (emitcode): don't change properties of previous lines,
2383           (throughout): updated generating comments
2384         * src/mcs51/gen.c (emitcode): don't change properties of previous lines,
2385           (throughout): updated generating comments
2386         * src/SDCCpeeph.c (peepHole): continue searching at the first replaced
2387           rule instead of at the second, or it might skip lines when removing the
2388           complete match
2389         * support/regression/tests/bug1714204.c: changed test to foo
2390
2391 2007-05-08 Borut Razem <borut.razem AT siol.net>
2392
2393         * doc/sdccman.lyx: changed sdcc version to 2.7.0,
2394           thanks to SDCC Distributed Compile Farm members,
2395           added Z80 and GBZ80 command line options
2396         * .version, doc/INSTALL.txt, sdcc.spec: changed sdcc version to 2.7.0
2397
2398 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
2399
2400         * device/lib/mcs51/crtxinit.asm: added disabled version for dual dptr
2401         * device/include/mcs51/uPSD33xx.h: added sfr DPS as alias for DPTC
2402         * support/regression/tests/longlit.c: modified to be tested at all and
2403           to pass the actual test
2404
2405 2007-05-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2406
2407         * device/include/mcs51/uPSD33xx.h: Added.
2408
2409 2007-05-07 Maarten Brock <sourceforge.brock AT dse.nl>
2410
2411         * device/lib/_gptrput.c,
2412         * device/lib/_gptrget.c: removed old code,
2413          (_gptrgetWord),
2414         * src/ds390/gen.c (genGenPointerGet): fixed bug 1714204
2415         * support/regression/tests/bug1714204.c: new, added
2416
2417 2007-05-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2418
2419         * support/regression/tests/regtrack.c: test was never executed
2420           because of the regression test being picky about white spaces.
2421         * device/lib/mcs51/crtclear.asm: added comment
2422
2423 2007-05-06 Raphael Neider <rneider AT web.de>
2424
2425         * device/lib/pic/Makefile.rules,
2426         * device/lib/pic16/Makefile.rules: make sure *.ignore file exists,
2427           made "&> /dev/null" redirection sh-safe ("> /dev/null 2>&1")
2428
2429 2007-05-06 Raphael Neider <rneider AT web.de>
2430
2431         * src/pic16/device.h,
2432         * src/pic16/main.h,
2433         * src/pic16/main.c (pic16_optionsTable,_pic16_parseOptions,
2434           _pic16_setDefaultOptions): removed/reordered command-line args
2435         * doc/sdccman.lyx: updated PIC14 and PIC16 documentation (supported
2436           devices, regrouped command line args, environment variables),
2437           clarified sone points, added sections on how to add devices to the
2438           PIC14/PIC16 ports
2439
2440 2007-05-06 Maarten Brock <sourceforge.brock AT dse.nl>
2441
2442         * src/z80/peeph.def: fixed bug in rule 2
2443
2444 2007-05-05 Maarten Brock <sourceforge.brock AT dse.nl>
2445
2446         * src/port.h: added TARGET_MCS51_LIKE
2447         * src/SDCCpeeph.c (labelIsUncondJump): new, added, other targets could
2448           take advantage of it too
2449         * src/z80/gen.c (genIpush): push b, d or h directly instead of using a,
2450           (shiftR2Left2Result): Optimized: don't check shifting by 0
2451         * src/z80/peeph-z80.def,
2452         * src/z80/peeph.def: whole set of new rules by Philipp Krause with some
2453           modifications, see patch 1700823
2454         * src/mcs51/peep.c (): fixed bug 1712928
2455         * support/regression/tests/bug1712928.c: new, added
2456
2457 2007-05-05 Borut Razem <borut.razem AT siol.net>
2458
2459         * device/lib/pic16/Makefile.common.in,
2460           device/lib/pic/Makefile.common.in, sim/ucsim/cmd.src/Makefile.in:
2461           removed bash dependencies
2462
2463 2007-05-01 Borut Razem <borut.razem AT siol.net>
2464
2465         * src/SDCCicode.c:
2466           fixed bug #1710507: --i-code-in-asm makes compile fail
2467           all iCode comments are now one liners
2468         * src/mcs51/gen.c: fixed memory leak
2469
2470 2007-05-01 Raphael Neider <rneider AT web.de>
2471
2472         * device/lib/pic/libdev/*.c
2473         * device/include/pic/*.h: regenerated all device libs from updated
2474           .inc files
2475         * support/scripts/inc2h.pl: documented usage, now uses strict to
2476           catch more bugs
2477
2478 2007-04-30 Borut Razem <borut.razem AT siol.net>
2479
2480         * doc/sdccman.lyx:
2481           fixed bug #1669175: Problem with space in output paths
2482           documented how to use paths with spaces for Windows users
2483
2484 2007-04-29 Borut Razem <borut.razem AT siol.net>
2485
2486         * Fixed svn:eol-style and svn:keywords properties
2487         * src/SDCCval.c: fixed bug
2488           #1592871: Segfault with "large" const arrays of characters
2489           replaced recursion with iteration
2490         * Removed svn:executable property from non-executable files
2491
2492 2007-04-29 Maarten Brock <sourceforge.brock AT dse.nl>
2493
2494         * src/mcs51/gen.c (genRet): fixed bug 1707003
2495
2496 2007-04-27 Raphael Neider <rneider AT web.de>
2497
2498         * src/pic16/pcode.c (pBlockRemoveUnusedLabels,pic16_pBlockAddInval,
2499           createReachingDefinitions,assignValnums,pic16_destructDF,
2500           pic16_createDF,pic16_vcg_dumpedges,pic16_vcg_dump_default):
2501           prevent NULL pointer dereferences
2502         * device/lib/pic/libdev/pic16f886.c,
2503         * device/lib/pic/libdev/pic16f887.c: svn mv'ed to disabled_* to
2504           prevent building them, gputils do not really support them yet
2505
2506 2007-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2507
2508         * device/lib/_ltoa.c: 36 bytes less __data mem. This really
2509           helps printf_small. 32 bytes more __idata mem.
2510
2511 2007-04-27 Raphael Neider <rneider AT web.de>
2512
2513         * src/pic/pcode.c (addpCode2pBlock,LinkFlow,pBlockRemoveUnusedLabels):
2514           return early when pb or pb->pcHead is NULL (patch #1708427)
2515         * src/regression/empty.c,
2516         * src/regression/Makefile: added test with empty functions
2517         * support/Util/SDCCerr.c: fixed typo in E_INIT_STRUCT message
2518
2519 2007-04-27 Borut Razem <borut.razem AT siol.net>
2520
2521         * src/SDCCast.c: fixed feature request
2522           #1547512: Redundant strings linked when using sizeof("abc")
2523
2524 2007-04-23 Borut Razem <borut.razem AT siol.net>
2525
2526         * doc/sdccman.lyx, src/SDCCmain.c:
2527           peep-hole comments are generated only if --fverbose-asm option is
2528           specified and --no-peep-comments is not, as proposed by Frieder.
2529         * support/regression/Makefile.in: compile regression tests with
2530           --fverbose-asm option so one can "grep" whether a new (or an old)
2531           peephole is (still) applied; requested by Frieder.
2532
2533 2007-04-23 Kevin Buettner <kevin AT buettner.to>
2534
2535         * device/include/pic/pic16f886.h,
2536         * device/include/pic/pic16f887.h,
2537         * device/lib/pic/libdev/pic16f886.c,
2538         * device/lib/pic/libdev/pic16f887.c,
2539         * device/include/pic/pic14devices.txt,
2540         * device/lib/pic/libdev/devices.txt: Add 16f886 and 16f887.
2541
2542 2007-04-23 Kevin Buettner <kevin AT buettner.to>
2543
2544         * device/lib/pic/libsdcc/idata.c: PAGESEL _main before going there,
2545           fixes #1704666
2546
2547 2007-04-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2548
2549         * device/lib/_memset.c: assembler version for mcs51
2550
2551 2007-04-22 Borut Razem <borut.razem AT siol.net>
2552
2553         * support/scripts/listerr.c: program to create the list of errors and
2554           warnings list from - added
2555         * doc/sdccman.lyx: removed the note
2556           "For list of warnings and corresponding codes, see err_warn.txt"
2557         * src/SDCCsymt.c: fixed bug #1699804:
2558           Bug with some uses of sizeof(static local array) (MCS51)
2559         * support/regression/tests/bug-1699804.c: added
2560
2561 2007-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
2562
2563         * as/mcs51/asmain.c (search_path_append, search_path_fopen): new, added,
2564           (main): added option -i,
2565           (asmbl, case S_INCL): use search_path_fopen,
2566           mostly from patch 1579668 by Peter Miller, thanks
2567         * src/z80/main.c: fixed typo --callee-saves-bc
2568         * device/include/mcs51/compiler.h: added sfrword for Tasking
2569
2570 2007-04-20 Borut Razem <borut.razem AT siol.net>
2571
2572         * src/z80/main.c: replaced reserved keyword asm with asmblr
2573
2574 2007-04-19 Borut Razem <borut.razem AT siol.net>
2575
2576         * src/port.h: use const pointers to strings
2577         * src/SDCCargs.h: declared getStringArg() and getIntArg()
2578         * src/pic16/main.c: include SDCCargs.h
2579         * src/SDCCglobl.h: code_seg and const_seg are not pointers to
2580           const char, since the strings are dynamically allocated
2581         * src/SDCCmain.c: options.code_seg and options.const_seg are
2582           dynamically allocated; check port specific command line options
2583           before the general ones
2584         * src/z80/main.c: fixed bug #1631895: codeseg/constseg #pragma fail
2585
2586 2007-04-18 Maarten Brock <sourceforge.brock AT dse.nl>
2587
2588         * device/include/ds400rom.h,
2589         * device/lib/ds390/lcd390.c,
2590         * device/lib/ds390/memcpyx.c,
2591         * device/lib/ds390/rtc390.c,
2592         * device/lib/ds400/ds400rom.c,
2593         * device/lib/ds400/memcpyx.c,
2594         * device/lib/hc08/_ret.c: more replacements of keywords with their
2595           double underscore equivalents
2596         * device/lib/ds390/Makefile.in,
2597         * device/lib/ds400/Makefile.in,
2598         * device/lib/gbz80/Makefile.in,
2599         * device/lib/hc08/Makefile.in,
2600         * device/lib/mcs51/Makefile.in,
2601         * device/lib/z80/Makefile.in: added --std-c89 to CFLAGS
2602
2603 2007-04-17 Borut Razem <borut.razem AT siol.net>
2604
2605         * doc/sdccman.lyx, src/SDCCmain.c, src/SDCCglobal.h, src/ds390/gen.c,
2606           src/hc08/gen.c, src/mcs51/gen.c, src/mcs51/rtrack.c:
2607           fixed #1493816: option --no-gen-comments: --no-gen-comments renamed
2608           to --fverbose-asm, to be gcc'ish
2609
2610 2007-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
2611
2612         * src/mcs51/gen.c (aopOp): set size to 1 for ruonly, fixes bug 1699455
2613
2614 2007-04-17 Borut Razem <borut.razem AT siol.net>
2615
2616         * doc/sdccman.lyx: fixed #1701874: Mac OSX references in SDCC manual
2617         * device/lib/ds400/tinibios.c, device/lib/hc08/_divuint.c,
2618           device/lib/hc08/_divulong.c: replaced _asm and _endasm keywords
2619           with their double underscore equivalent
2620
2621 2007-04-14 Borut Razem <borut.razem AT siol.net>
2622
2623         * doc/sdccman.lyx: some additional "freeware" replaced with "free open
2624           source"
2625
2626 2007-04-13 Borut Razem <borut.razem AT siol.net>
2627
2628         * doc/sdccman.lyx: -pedantic-parse-number is not in conformance with
2629           C99 standard
2630         * device/examples/serialcomm/windows/serial.[ch],
2631           device/examples/serialcomm/windows/test_serialcomm.cpp:
2632           updated by Bela Torok
2633         * device/examples/serialcomm/windows/serialcomm.dsw,
2634           device/examples/serialcomm/windows/serialcomm.dsp: added
2635
2636 2007-04-13 Jan Waclawek <wek AT efton.sk>
2637
2638         * doc/sdccman.lyx: additions and changes at various places
2639           (submitted as #1697136).
2640           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
2641
2642 2007-04-10 Borut Razem <borut.razem AT siol.net>
2643
2644         * doc/cdbfileformat.lyx, doc/sdccman.lyx, doc/test_suite_spec.lyx:
2645           LyX file format changed to 245
2646         * doc/sdccman.lyx, doc/README.txt, sdc/SDCC.lex, src/SDCCglue.c:
2647           "FreeWare" replaced with "free open source"
2648
2649 2007-04-10 Maarten Brock <sourceforge.brock AT dse.nl>
2650
2651         * device/include/mcs51/C8051F120.h: added some defines for bits in RSTSRC
2652
2653 2007-04-08 Maarten Brock <sourceforge.brock AT dse.nl>
2654
2655         * device/include/pic16/pic18fregs.h,
2656         * device/lib/_bp.c,
2657         * device/lib/_decdptr.c,
2658         * device/lib/_divsint.c,
2659         * device/lib/_divslong.c,
2660         * device/lib/_divuint.c,
2661         * device/lib/_divulong.c,
2662         * device/lib/_fs2schar.c,
2663         * device/lib/_fs2sint.c,
2664         * device/lib/_fs2slong.c,
2665         * device/lib/_fs2uchar.c,
2666         * device/lib/_fs2uint.c,
2667         * device/lib/_fs2ulong.c,
2668         * device/lib/_fsadd.c,
2669         * device/lib/_fscmp.c,
2670         * device/lib/_fsdiv.c,
2671         * device/lib/_fseq.c,
2672         * device/lib/_fsget1arg.c,
2673         * device/lib/_fsget2args.c,
2674         * device/lib/_fsgt.c,
2675         * device/lib/_fslt.c,
2676         * device/lib/_fsmul.c,
2677         * device/lib/_fsneq.c,
2678         * device/lib/_fsnormalize.c,
2679         * device/lib/_fsreturnval.c,
2680         * device/lib/_fsrshift.c,
2681         * device/lib/_fssub.c,
2682         * device/lib/_fsswapargs.c,
2683         * device/lib/_gptrget.c,
2684         * device/lib/_gptrgetc.c,
2685         * device/lib/_gptrput.c,
2686         * device/lib/_logexpf.c,
2687         * device/lib/_modsint.c,
2688         * device/lib/_modslong.c,
2689         * device/lib/_moduint.c,
2690         * device/lib/_modulong.c,
2691         * device/lib/_mulint.c,
2692         * device/lib/_mullong.c,
2693         * device/lib/_schar2fs.c,
2694         * device/lib/_ser.c,
2695         * device/lib/_setjmp.c,
2696         * device/lib/_sint2fs.c,
2697         * device/lib/_slong2fs.c,
2698         * device/lib/_spx.c,
2699         * device/lib/_uchar2fs.c,
2700         * device/lib/_uint2fs.c,
2701         * device/lib/_ulong2fs.c,
2702         * device/lib/asincosf.c,
2703         * device/lib/atanf.c,
2704         * device/lib/calloc.c,
2705         * device/lib/ds390/tinibios.c,
2706         * device/lib/ds400/tinibios.c,
2707         * device/lib/expf.c,
2708         * device/lib/free.c,
2709         * device/lib/hc08/_mulint.c,
2710         * device/lib/logf.c,
2711         * device/lib/malloc.c,
2712         * device/lib/printf_fast.c,
2713         * device/lib/printf_tiny.c,
2714         * device/lib/printfl.c,
2715         * device/lib/realloc.c,
2716         * device/lib/ser_ir.c,
2717         * device/lib/serial.c,
2718         * support/regression/tests/libmullong.c: replaced all special keywords
2719           with their double underscore equivalent
2720         * support/regression/ports/mcs51-xstack-auto/spec.mk,
2721         * device/lib/Makefile.in: compile libs with --std-c99 instead of
2722           --std-sdcc99
2723         * src/mcs51/gen.c (outBitC): don't store if result is return-use-only,
2724           (genRet): if the bit-symbol is ruonly it already is in the carry
2725         * src/mcs51/ralloc.c (regTypeNum): make regType REG_CND for ruonly bit
2726         * src/SDCCast.c (createFunction): applied patch 887171 by Stas Sergeev
2727         * src/SDCCicode.c (ast2iCode): '!', GETHBIT, GETABIT: only set operand
2728           type UCHAR if dest is not bit
2729
2730 2007-04-03 Maarten Brock <sourceforge.brock AT dse.nl>
2731
2732         * device/include/math.h,
2733         * device/lib/cotf.c,
2734         * device/lib/expf.c,
2735         * device/lib/sincoshf.c: changed XMAX to C99 HUGE_VALF
2736
2737 2007-04-01 Borut Razem <borut.razem AT siol.net>
2738
2739         * src/SDCC.lex, src/SDCCmain.c, support/cpp2/sdcpp.c:
2740           fixed bug #1692042: input buffer overflow...scanner uses REJECT
2741         * support/cpp2/sdcpp.c: fixed recursion bug - internal_error() called
2742           gcc_unreachable() called internal_error()...
2743
2744 2007-03-30 Raphael Neider <rneider AT web.de>
2745
2746         * src/pic/ralloc.c (isData): suppress garbage debug output
2747
2748 2007-03-28 Borut Razem <borut.razem AT siol.net>
2749
2750         * doc/sdccman.lyx:
2751           "Nightly Snapshots" replaced with "Snapshot Builds", since the SDCC
2752           is developed, built and used worldwide, and the word "night" doesn't
2753           make any sense.
2754
2755 2007-03-28 Maarten Brock <sourceforge.brock AT dse.nl>
2756
2757         * device/include/mcs51/C8051F360.h: new, added
2758         * device/include/mcs51/C8051F520.h: fixed buggy sbit addresses SPI0CN
2759
2760 2007-03-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2761
2762         * src/SDCC.y (declaration_specifiers, function_specifier),
2763         * support/Util/SDCCerr.c,
2764         * support/Util/SDCCerr.h,
2765         * src/SDCCsymt.h,
2766         * src/SDCCsymt.c (mergeSpec, checkFunction): Parse and validate the
2767           inline keyword
2768         * src/SDCCmem.c (deallocParms),
2769         * src/SDCCast.c: support for function inlining, not quite complete
2770         * src/SDCCsymt.c (printTypeChain, printTypeChainRaw): display
2771           'restrict' qualifier
2772
2773 2007-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
2774
2775         * src/mcs51/gen.c (saveRegisters, unsaveRegisters): free some bitVects,
2776           (saveRBank, unsaveRBank): don't save bits,
2777           (genFunction, genEndFunction): save bits exactly once, fix bug 1535242
2778         * support/regression/tests/bug1535242.c: new, added
2779         * device/include/assert.h: applied patch 1686533 to fix bug 1686528,
2780           thanks Alexey Shamrin <shamrin AT gmail.com>,
2781           made assert.h header ANSI compliant (added a check for NDEBUG macro,
2782           removed header guard)
2783         * .version,
2784         * sdcc.spec: bumped version to 2.6.5
2785         * src/SDCCmain.c(parseCmdLine): fixed bug 1677144
2786
2787 2007-03-22 Borut Razem <borut.razem AT siol.net>
2788
2789         * debugger/mcs51/cmd.c, debugger/mcs51/sdcdb.c:
2790           fixed bug #1653671: sdcdb integration into ddd is broken
2791
2792 2007-03-22 Raphael Neider <rneider AT web.de>
2793
2794         * src/pic/gen.c (popGetExternal): augmented to also create references
2795           to external variables (not only labels),
2796           (genCall): comment on plan to reduce PAGESEL overhead,
2797           (genFunction, genEndFunction): also save/restore FSR around interrupt
2798           handling code, removed lots of unused code
2799           (genDivOneByte): release acquired temp register
2800         * src/pic/glue.c (pic14createInterruptVect): adapt to new signature
2801           of popGetExternal
2802         * device/lib/pic/libsdcc/shadowregs.c: NEW, provide storage location
2803           for registers that need to be saved during interrupts (FSR, STATUS,
2804           PCLATH; W needs special handling), currently only FSR is used
2805
2806 2007-03-22 Raphael Neider <rneider AT web.de>
2807
2808         * device/include/pic/pic14devices.txt: 16f688 has only one config word
2809
2810 2007-03-19 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2811
2812         * /as/link/mcs51/aslink.dsp: Object extension for mcs51 is 'rel' not 'o'.
2813
2814 2007-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
2815
2816         * src/mcs51/peeph.def (263.x): fixed bug for volatile variables
2817
2818 2007-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
2819
2820         * as/link/aslink.h: added LKOBJEXT
2821         * as/link/hc08/link_hc08.dsp,
2822         * as/link/hc08/Makefile.bcc,
2823         * as/link/hc08/Makefile.in,
2824         * as/link/mcs51/aslink.dsp,
2825         * as/link/mcs51/Makefile.bcc,
2826         * as/link/mcs51/Makefile.in: moved lkamof51.c and lkdata.c
2827         * as/link/hc08/lkaomf51.c,      as/link/mcs51/lkaomf51.c,
2828         * as/link/lkaomf51.c: merged and moved
2829         * as/link/hc08/lkdata.c,        as/link/mcs51/lkdata.c,
2830         * as/link/z80/lkdata.c,
2831         * as/link/lkdata.c: merged and moved
2832         * as/link/hc08/lkmain.c,
2833         * as/link/mcs51/lkmain.c: cosmetic changes
2834         * as/link/z80/lkeval.c,         as/link/lkeval.c: merged
2835         * as/link/lklex.c: use LKOBJEXT
2836         * as/link/z80/lklist.c,         as/link/lklist.c: merged,
2837           ANSI-fied functions, removed bubble-sorts
2838         * as/link/z80/lksym.c           as/link/lksym.c: merged,
2839           ANSI-fied functions
2840         * as/link/z80/linkgbz80.dsp,
2841         * as/link/z80/linkz80.dsp,
2842         * as/link/z80/Makefile.in: added lkaomf51.c and lknoice.c,
2843           moved lkdata.c, lkeval.c, lkhead.c, lklex.x, lklist.c, lksym.c
2844         * as/link/z80/lkhead.c,
2845         * as/link/z80/lklex.c: deleted
2846         * as/link/z80/lklibr.c: moved LKOBJEXT to aslink.h
2847         * as/link/z80/lkmain.c: added copyfile()
2848
2849 2007-03-13 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2850
2851         * device/include/mcs51/P89LPC925.h: Added missing P1_6 and P1_7.
2852
2853 2007-03-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2854
2855         * device/lib/_strlen.c: assembler version for mcs51
2856
2857 2007-03-13 Raphael Neider <rneider AT web.de>
2858
2859         * device/include/pic16/pic18f2221.h,
2860         * device/include/pic16/pic18f2321.h,
2861         * device/include/pic16/pic18f2331.h,
2862         * device/include/pic16/pic18f4221.h,
2863         * device/include/pic16/pic18f4321.h,
2864         * device/include/pic16/pic18f4331.h: fixed config byte location names
2865         * support/scripts/inc2h-pic16.pl: removed debug output, emit
2866           consistently named config byte locations
2867
2868 2007-03-13 Borut Razem <borut.razem AT siol.net>
2869
2870         * src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
2871           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/s51.src/Makefile.in,
2872           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
2873           as/link/z80/Makefile.in, as/z80/Makefile.in:
2874           introduced LDFLAGS
2875
2876 2007-03-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2877
2878         * device/lib/printfl.c: 13 bytes less __data mem (12 more __idata)
2879         * device/lib/printf_large.c: pointer was converted to generic
2880         pointer for mcs51 models other than model-small (Maarten noticed)
2881
2882 2007-03-10 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2883
2884         * device/include/mcs51/ADuC84x.h: Added.
2885
2886 2007-03-10 Borut Razem <borut.razem AT siol.net>
2887
2888         * src/SDCC.lex, src/SDCCutil.[ch], src/SDCCval:
2889           fixed RFE #1624219: double backslashes in filenames;
2890           functions hexEscape(), octalEscape() and copyStr() moved from
2891           SDCCval.c to SDCCutil.c and made them glovbally available
2892
2893 2007-03-09 Borut Razem <borut.razem AT siol.net>
2894
2895         * src/SDCC.lex, src/SDCCast.c. src/SDCCglobl.c, src/SDCCsymt.c,
2896           src/SDCCval.c: fixed bugs #1676768: Wrong line number reported and
2897           1673361: Missaligned comments in output files
2898
2899 2007-03-09 Raphael Neider <rneider AT web.de>
2900
2901         * device/include/pic/pic14devices.txt: fixed confsiz of 16f91[3467]
2902
2903 2007-03-09 Raphael Neider <rneider AT web.de>
2904
2905         * src/pic/gen.c,
2906         * src/pic/glue.c,
2907         * src/pic/ralloc.c: suppress undesired debug output
2908         * src/SDCCmain.c (linkEdit): initialize c to quieten compiler
2909
2910 2007-03-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2911
2912         * device/lib/printf_large.c: 6 bytes less __data mem (6 more __idata)
2913
2914 2007-03-07 Borut Razem <borut.razem AT siol.net>
2915
2916         * device/lib/pic16/libdev/pic18f[24][34]31.c:
2917           search include files in the current directory
2918
2919 2007-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
2920
2921         * src/SDCCglue.c (emitMaps, glue),
2922         * src/SDCCmem.c (initMem, allocDefault): added x_abs for initialized
2923           absolute xdata
2924         * support/regression/tests/absolute.c: added xdata test
2925
2926 2007-03-03 Maarten Brock <sourceforge.brock AT dse.nl>
2927
2928         * src/SDCCmain.c (parseCmdLine): only set options.xstack_loc for mcs51,
2929           added condition to macro, fixes bug 1666080
2930
2931 2007-03-02 Raphael Neider <rneider AT web.de>
2932
2933         * src/pic/gen.c (genGenPointerSet): removed bogus assertion
2934
2935 2007-02-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2936
2937         * device/lib/mcs51/crtxclear.asm: pdata segment of 256 byte would not
2938         be cleared. Unconditionally set __XPAGE
2939         * src/hc08/gen.c: --no-gen-comments (RFE #1493816) for hc08
2940
2941 2007-02-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2942
2943         * src/SDCCglobl.h,
2944         * src/SDCCmain.c,
2945         * src/mcs51/gen.c,
2946         * src/mcs51/rtrack.c,
2947         * src/ds390/gen.c,
2948         * doc/sdccman.lyx: added --no-gen-comments
2949         * src/mcs51/peeph.def: added 192.b, disabled 185
2950
2951 2007-02-25 Raphael Neider <rneider AT web.de>
2952
2953         * src/pic16/gen.c (genCast): fixed typo
2954         * device/lib/pic16/Makefile.subdir: only install existing files
2955         * device/lib/pic16/libdev/Makefile.in: build serially, avoid races
2956
2957 2007-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
2958
2959         * device/lib/mcs51/crtcall.asm: new, added for indirect calls
2960         * device/lib/mcs51/crtclear.asm,
2961         * device/lib/mcs51/crtxclear.asm: renumbered labels
2962         * device/lib/mcs51/Makefile.in: added crtcall.asm
2963         * doc/sdccman.lyx: documented mcs51 crt* library startup code
2964         * src/mcs51/gen.c (movc): removed,
2965           (aopGet, genPlusBits): clear a after loading the carry (possibly from
2966             acc.x or psw.x),
2967           (toCarry, genSend, genRet): added function toCarry,
2968           (genPcall): use "lcall @a+dptr" for functions w/o parameters,
2969           (assignBit, genAssign, genCast): added function assignBit
2970         * src/mcs51/Makefile.bcc: added rtrack.c
2971         * src/mcs51/ralloc.h: made valueKnown a bitfield
2972         * src/mcs51/rtrack.c (getReg, rtrackUpdate): added getReg,
2973           fixed "jbc acc" and "cpl acc" bug, enhanced "cjne", "jnz" and "djnz",
2974           disabled InvalidateAllRx for lcall __gptrput, added "xch a,rn"
2975         * src/pic/pcode.c (FixRegisterBanking): fixed warning used uninitialized
2976         * src/z80/gen.c: added AOP_IS_PAIRPTR,
2977           (_pop): only pop valid pairs, see gencjneshort,
2978           (gencjneshort): return pair that still needs to be popped, restructured,
2979           (gencjne, genCmpEq): call _pop
2980
2981 2007-02-23 Raphael Neider <rneider AT web.de>
2982
2983         * device/include/pic/pic14devices.txt: 16f684 has only one config word
2984
2985 2007-02-22 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2986
2987         * device/include/mcs51/P89LPC925.h: Added.
2988
2989 2007-02-18 Raphael Neider <rneider AT web.de>
2990
2991         * src/pic/glue.c (emitInitVal): fixed #1659894 (SIGSEGV on arrays)
2992
2993 2007-02-17 Borut Razem <borut.razem AT siol.net>
2994
2995         * support/cpp2/directives.c, support/cpp2/version.c:
2996           synchronized with GCC CPP 4.1.2
2997
2998 2007-02-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2999
3000         * src/mcs51/rtrack.h,
3001         * src/mcs51/rtrack.c: added register tracking for the mcs51 port,
3002           by checking the strings passed by emitcode() to the assembler.
3003           Feel free to change. This in part addresses RFE #482179.
3004           Set environment variable SDCC_RTRACK to enable.
3005         * src/mcs51/gen.c: inserted hooks
3006         * src/mcs51/ralloc.h: added two members to struct regs
3007         * support/regression/tests/regtrack.c: added
3008
3009 2007-02-14 Borut Razem <borut.razem AT siol.net>
3010
3011         * src/SDCC.y: fixed bug #1291133: duplicate members across enum(s)
3012         * Makefile.in: applied patch from Makefile related part of
3013           #1469393: Compiler does not initialize static data
3014
3015 2007-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
3016
3017         * src/SDCCicode.c (geniCodeAssign): return (itemp) right instead of left
3018           for better fix of bug 1273984, compiles pic16 rand.c
3019
3020 2007-02-12 Borut Razem <borut.razem AT siol.net>
3021
3022         * src/pic16/main.c: fixed pic16 standard library directory bug
3023
3024 2007-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
3025
3026         * src/hc08/gen.c (genSwap): fix swap regression test
3027
3028 2007-02-10 Borut Razem <borut.razem AT siol.net>
3029
3030         * src/SDCCsymt.c: fixed bug #1159134: invalid duplicate declarations
3031           with same scope
3032         * support/regression/tests/bug-1654060.c: added regression test for
3033           #1654060
3034
3035 2007-02-09 Bernhard Held <bernhard AT bernhardheld.de>
3036
3037         * src/mcs51/gen.c (genRet): fixed RFE 1652561: added code for bit to
3038         bit moves in return statement
3039
3040 2007-02-09 Borut Razem <borut.razem AT siol.net>
3041
3042         * src/SDCC.y: fixed bug #1654060 typedef within function causes
3043           syntax error
3044
3045 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
3046
3047         * src/mcs51/gen.c (aopPut): use direct name for pushing registers
3048         * src/SDCCmain.c (parseCmdLine): dbuf_s path must be initialised
3049
3050 2007-02-07 Raphael Neider <rneider AT web.de>
3051
3052         * src/pic16/devices.inc,
3053         * device/include/pic16/pic18fregs.h,
3054         * device/include/pic16/pic18f[24][34]31.h,
3055         * device/lib/pic16/libdev/pic18f[24][34]31.c,
3056         * device/lib/pic16/pics.all: added 18f[24][34]31 family
3057         * device/lib/pic16/libio/i2c.ignore: do not build i2c
3058
3059 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
3060
3061         * device/lib/printf_large.c (_print_format): fixed compare/assign bug, how
3062           can this have lived here for so many years?
3063         * src/SDCCicode.c (ast2iCode): return left instead of right for assignment,
3064           fixes bug 1273984, see also patch 1645121, thanks Gnther Jehle
3065         * support/regression/tests/bug1273984.c: new, added, thanks Gnther Jehle
3066
3067 2007-02-06 Bernhard Held <bernhard AT bernhardheld.de>
3068
3069         * src/SDCCBlock.c (addiCodeToeBBlock): fixed bug 1652207: GOTO icodes
3070         appended by loop induction must be at the very end of the eBBlock
3071
3072 2007-02-05 Kevin Vigor
3073
3074         * src/ds390/gen.c, src/ds390/main.c: Address bug 1469393.
3075
3076 2007-02-05 Borut Razem <borut.razem AT siol.net>
3077
3078         * support/regression/fwk/lib/timeout.c: native WIN32 port,
3079           implemented #1651830 Reg. tests: rewrite timeout.c to use WIN32 API
3080
3081 2007-02-03 Borut Razem <borut.razem AT siol.net>
3082
3083         * src/SDCC.y, src/SDCCmain.c, src/SDCCglobl.h, doc/sdccman.lyx:
3084           applied patch #1646602 option to set default signedness of char to
3085           unsigned, added -funsigned-char command line option,
3086           thanks to Gunther Jehle
3087         * device/lib/Makefile.in: added the -f option to rm so it doesn't
3088           prompt for file deletion a few hundred times (especially the
3089           subversion files, which have ro permissions so it asks for
3090           confirmation), thanks to Simon McAuliffe;
3091           added {} + option to find in order to remove multiple files from a
3092           single rm commad
3093
3094 2007-02-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3095
3096         * device/include/mcs51/SST89x5xRDx.h: Added.
3097
3098 2007-02-02 Raphael Neider <rneider AT web.de>
3099
3100         * src/pic/glue.c (emitSymbolSet): check sym->etype before use
3101         * src/regression/Makefile: use --no-pcode-opt, ignore failing tests
3102
3103 2007-02-01 Raphael Neider <rneider AT web.de>
3104
3105         * src/pic/glue.c (picglue,emitSymbolSet,showAllMemmaps): emit the
3106           config words again
3107
3108 2007-01-31 Borut Razem <borut.razem AT siol.net>
3109
3110         * support/Util/dbuf_string.h: added ATTRIBUTE_PRINTF to dbuf_printf()
3111           if compiled with GCC. Thanks to Raphael Neider
3112
3113 2007-01-31 Raphael Neider <rneider AT web.de>
3114
3115         * src/pic/pcode.c (isValidIdChar,bankCompare): fuzzy matching of
3116             operand names, handles name and (name + n) for all n,
3117           (sameBank): restructured, also check bank allocation policy,
3118         * src/pic/glue.c (emitPseudoStack): fixed printf arguments,
3119           (pic14_operandsAllocatedInSameBank): check whether to operands
3120             will be allocated into the same bank (i.e., section) to reduce
3121             BANKSEL overhead, queried from pcode.c:sameBank,
3122           (pic14printLocals): reintroduced clustering registers into a single
3123             section: all compiler generated symbols will now reside in one
3124             bank (per file), reducing BANKSEL overhead and code size,
3125           (showAllMemmaps): use local dbuf where possible
3126
3127 2007-01-29 Raphael Neider <rneider AT web.de>
3128
3129         * src/pic/gen.c (popGetExternal): simplified, mark symbol as used,
3130           (call_libraryfunc): retrieve/create symbol and mark as used,
3131           (genFunction): mark defined functions as non-extern and add again
3132            to code memmap for later output
3133         * src/pic/glue.c (emitPseudoStack): put into own subroutine,
3134           (pic14printLocals): reworked for new symbol emission,
3135           (emitIfNew,pic14_constructAbsMap,emitIvalLabel,emitIvals,emitInitVal,
3136           showAllMemmaps): reworked symbol output using dbufs, added handling
3137             of string literals (still incomplete),
3138           (picglue): removed symbol emission, moved into showAllMemmaps,
3139           (emitSymbolSet): new workhorse for symbol output,
3140           (pic14emitMaps,pic14printPublics,pic14printExterns): commented out
3141
3142 2007-01-29 Borut Razem <borut.razem AT siol.net>
3143
3144         * src/SDCCmain.c, src/SDCCutil.c: dbuf_splitFile: file extension
3145           component contains the extension separator.
3146
3147 2007-01-28 Borut Razem <borut.razem AT siol.net>
3148
3149         * sim/ucsim/cmd.src/cmdutil.cc: NUL device is detected as CG_FILE type
3150           on WIN32
3151         * src/SDCCdwarf2.c, src/SDCCglobl.h, src/SDCCmain.c, src/SDCCutil.c,
3152           src/SDCCutil.h, src/avr/gen.c, src/ds390/gen.c, src/hc08/gen.c,
3153           src/mcs51/gen.c, src/pic/device.c, src/pic/gen.c, src/pic/pcode.c,
3154           src/pic/pcodepeep.c, src/pic/ralloc.c, src/pic16/device.h,
3155           src/pic16/gen.c, src/pic16/main.c, src/pic16/pcode.c,
3156           src/pic16/pcodepeep.c, src/pic16/ralloc.c, src/xa51/gen.c,
3157           src/z80/gen.c, support/Util/MySystem.c:
3158           accept slash and backslash as directory separator on WIN32 and
3159           Cygwin ports
3160
3161 2007-01-28 Raphael Neider <rneider AT web.de>
3162
3163         * src/pic16/devices.inc,
3164         * device/include/pic16/pic18f[24][23]21.h,
3165         * device/include/pic16/pic18fregs.h,
3166         * device/lib/pic16/libdev/pic18f[24][23]21.c,
3167         * device/lib/pic16/pics.all: added support for the 18f[24][23]21 family
3168         * device/lib/pic16/libio/adc.ignore,
3169         * device/lib/pic16/libio/i2c.ignore,
3170         * device/lib/pic16/libio/usart.ignore: do not build I/O lib for new
3171           family, as gputils do not yet support the devices
3172         * device/lib/pic16/Makefile.subdir: ignore errors on install
3173         * support/scripts/inc2h-pic16.pl: script to generate pic16 device
3174           headers and libraries from gputils .inc files
3175
3176 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
3177
3178         * doc/sdccman.lyx: add printf_fast_f precision limitation note
3179
3180 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
3181
3182         * doc/sdccman.lyx: add printf benchmarks
3183
3184 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
3185
3186         * device/lib/printf_fast.c: fix %c, char promoted to int
3187         * device/lib/printf_tiny.c: fix %c, char promoted to int
3188
3189 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
3190
3191         * device/lib/printf_fast.c: fix float overflow check, bug #1525093
3192
3193 2007-01-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3194
3195         * support/regression/tests/swap.c: 64 bit hosts failed
3196         * doc/sdccman.lyx: added preliminary mcs51 printf feature matrix
3197
3198 2007-01-25 Raphael Neider <rneider AT web.de>
3199
3200         * src/pic/pcode.c (sameBank,FixRegisterBanking): optimize banksels
3201           based on absolute register address, patch by Alex Blond
3202
3203 2007-01-22 Raphael Neider <rneider AT web.de>
3204
3205         * src/pic/glue.c (pic14emitRegularMap): mark initialized symbols as
3206           emitted, do not emit them again...
3207
3208 2007-01-22 Raphael Neider <rneider AT web.de>
3209
3210         * src/regression/bank1.c, src/regression/compare6.c,
3211           src/regression/add.c: cosmetic changes
3212         * src/pic/pcode.h: moved GPTRTAG_* here from gen.c
3213         * src/pic/gen.c: fixed global zero and one,
3214           (aopForSym): removed unued code,
3215           (aopGet): assert aop is defined, check and use `index' of
3216             pCodeImmd operands (fixes #1630908),
3217         * src/pic/pcode.c (get_op): added output of generic pointer tag,
3218           (register_reassign): prevent accidental register unification,
3219           (ReuseReg): cosmetic changes (also above)
3220         * src/pic/glue.c (pic14_constructAbsMap,pic14emitRegularMap,
3221           pic14emitStaticSeg): do not emit initialized data,
3222           (printIval*): replaced with working versions,
3223           (pic14createInterruptVect,picglue): use idata for initialized data,
3224             now init data should work in all modules (not only main()),
3225         * device/lib/pic/libsdcc/idata.c: NEW, handle initialized data
3226
3227 2007-01-21 Borut Razem <borut.razem AT siol.net>
3228
3229         * sim/ucsim/configure.in: introduced macro DD_COPT_NO_IGNORE,
3230           use -fPIC or -fpic if they are supported and not ignored
3231         * src/SDCCval.c: fixed bug introduced by me in rev. #4577
3232         * support/cpp2/libcpp/lex.c: fixed gcc 4.1.1 warnings
3233
3234 2007-01-20 Borut Razem <borut.razem AT siol.net>
3235
3236         * src/SDCC.lex, src/SDCCmain.c, sdc/SDCCglobl.h, doc/sdccman.lyx:
3237           implemented RFE #1470316: allow "$" in variable names
3238
3239 2007-01-20 Raphael Neider <rneider AT web.de>
3240
3241         * device/include/pic/pic14regs.h: reverted accidental wipe of the file
3242
3243 2007-01-20 Raphael Neider <rneider AT web.de>
3244
3245         * device/lib/pic/libdev/devices.txt: device list for mkall.sh
3246         * device/lib/pic/libdev/mkall.sh: script to rebuild all device libs
3247         * device/lib/pic/libdev/pic14ports.txt: device PORT specifications
3248         * support/scripts/inc2h.pl: fixed major .inc parsing bugs,
3249           applied patch from Robert Tate (#1629249) to add PORTs and TRISs
3250         * device/lib/pic/libdev/pic*.c,
3251         * device/include/pic/pic*.h: regenerated with enhanced inc2h.pl
3252         * device/lib/pic/libdev/Makefile.in: show progress
3253
3254 2007-01-19 Bernhard Held <bernhard AT bernhardheld.de>
3255
3256         * doc/sdccman.lyx: updated "configure options" for autoconf 2.6
3257         * support/scripts/sdcc_cygwin_mingw32,
3258         * support/scripts/sdcc_mingw32,
3259         * support/scripts/build.mak: replaced --datadir by --datarootdir for
3260         conformance with autoconf 2.6
3261
3262 2007-01-19 Raphael Neider <rneider AT web.de>
3263
3264         * src/pic/device.c (register_map): fixed list construction
3265         * src/pic/gen.c (genDivOneByte,genModOneByte): accept result > 1 byte,
3266           (genMod): removed case for genModbits,
3267           (genModbits): removed as now unused/unimplemented
3268         * src/pic/glue.c (picglue): prevent name clash with sources 'init.c'
3269
3270 2007-01-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3271
3272         * support/regression/tests/swap.c: added in response to #1638622
3273         * doc/sdccman.lyx: synced version, minor changes
3274
3275 2007-01-18 Borut Razem <borut.razem AT siol.net>
3276
3277         * SDCClabel.c: fixed bug #1638651: wrong linenumber presented in warning,
3278           thanks to Gunther Jehle
3279         * src/asm.c: don't die if the file drfined in #line couldn't be opened
3280         * src/SDCC.lex, src/SDCCglobal.h, src/SDCCicode.c, src/SDCCsymt.c,
3281           src/SDCCval.c: removed redundant definitions of currFname and mylineno;
3282           use filename in lineno instead.
3283         * SDCCast.c: removed MSVC warning C4018: '==' : signed/unsigned mismatch,
3284           print the file name in ast_print()
3285
3286 2007-01-18 Borut Razem <borut.razem AT siol.net>
3287
3288         * support/Util/dbuf_string.c: removed (PTR) cast since it is not
3289           defined in MSVC
3290         * src/SDCC.lex: stringLiteral() returns const char pointer,
3291           EOF detection in stringLiteral(), fixed asmbuf memory leak,
3292           fixed column counting
3293         * src/SDCCval.[ch]: constVal(), value *strVal() and charVal()
3294           accept const char pointer as parameter
3295         * src/SDCCdwarf2.c: corrected buffer size
3296
3297 2007-01-17 Borut Razem <borut.razem AT siol.net>
3298
3299         * support/Util/dbuf_string.c: fixed for amd64
3300
3301 2007-01-15 Borut Razem <borut.razem AT siol.net>
3302
3303         * src/pic16/ralloc.c, src/pic/ralloc.c, src/SDCC.y:
3304           removed terminal symbol ELIPSIS, since it was never generated by the
3305           lexer and it was wrongly used in parameter_identifier_list rule
3306
3307 2007-01-15 Raphael Neider <rneider AT web.de>
3308
3309         * doc/sdccman.lyx: updated PIC14/16 command line args, updated PIC14
3310             code page and data banking description
3311         * src/pic/genarith.c,
3312         * src/pic/gen.h: removed bit arithmetic functions,
3313             updated exit(1) to exit(EXIT_FAILURE)
3314         * device/lib/pic16/libsdcc/stack/stack.S: default to 256 byte stack
3315         * device/include/pic16/pic18f2455.h,
3316         * device/lib/pic16/libdev/pic18f2455.c: added PORTD, LATD, LATE,
3317             TRISD and TRISE, fixed/added some bit names
3318         * device/lib/pic16/libdev/pic18f{2550,4550,4455}.c,
3319         * device/include/pic16/pic18f{2550,4550,4455}.h: simply include
3320             updated pic18f2455.{c,h} instead of duplicating them
3321
3322 2007-01-14 Borut Razem <borut.razem AT siol.net>
3323
3324         * as/mcs51/asnoice.c, as/hc08/asnoice.c: fixed bug #1447412:
3325           Cannot debug files that contain spaces in the path name
3326           by converting spaces in asm file name to underscores
3327
3328 2007-01-13 Borut Razem <borut.razem AT siol.net>
3329
3330         * doc/sdccman.lyx: fixed format errors
3331
3332 2007-01-10 Borut Razem <borut.razem AT siol.net>
3333
3334         * src/SDCC.lex, src/SDCCmain.c: fixed bug #1631895:
3335           codeseg/constseg #pragma fail
3336         * suppoprt/cpp2/Makefile.bcc: reenable Borland C compilation
3337         * suppoprt/cpp2/configure.in, suppoprt/cpp2/libcpp/lex.c,
3338           suppoprt/cpp2/Makefile.in, suppoprt/cpp2/sdcpp-opts,
3339           suppoprt/cpp2/sdcpp.[ch]: house cleaning
3340
3341 2007-01-09 Borut Razem <borut.razem AT siol.net>
3342
3343         * get rid of diagnistic.[ch], pretty-print.[ch],
3344           c-pretty-print.[ch], ... used just for error, warning, ...
3345           message formatting
3346         * suppoprt/cpp2/pretty-print.[ch], suppoprt/cpp2/diagnostic.[ch],
3347           suppoprt/cpp2/diagnostic.def, suppoprt/cpp2/input.h,
3348           suppoprt/cpp2/pretty-print.[ch]:
3349           removed
3350         * suppoprt/cpp2/Makefile.in, suppoprt/cpp2/opts.c,
3351           suppoprt/cpp2/sdcpp-opts.c, suppoprt/cpp2/sdcpp.[ch],
3352           suppoprt/cpp2/sdcpp.dsp:
3353           changed
3354
3355 2007-01-08 Maarten Brock <sourceforge.brock AT dse.nl>
3356
3357         * device/lib/printf_large.c (output_float): removed recursion,
3358           use smaller buffer on stack for mcs51,
3359           fixed bug printing 1.96
3360         * support/regression/tests/snprintf.c: added test
3361
3362 2007-01-07 Borut Razem <borut.razem AT siol.net>
3363
3364         * use dynamic memory buffers instead temporary files
3365         * support/Util/dbuf_string.c, support/Util/dbuf_string.h:
3366           added
3367         * src/Makefile.in, src/SDCC.lex, src/SDCCast.c, src/SDCCast.h,
3368           src/SDCCcse.c, src/SDCCglobl.h, src/SDCCglue.c, src/SDCCglue.h,
3369           src/SDCCicode.c, src/SDCCicode.h, src/SDCCmain.c, src/SDCCmem.c,
3370           src/SDCCmem.h, src/SDCCpeeph.c, src/SDCCpeeph.h, src/SDCCsymt.c,
3371           src/SDCCsymt.h, src/SDCCutil.c, src/asm.c, src/asm.h, src/avr/gen.c,
3372           src/avr/main.c, src/ds390/gen.c, src/ds390/main.c, src/hc08/gen.c,
3373           src/hc08/main.c, src/izt/gen.c, src/mcs51/gen.c, src/mcs51/main.c,
3374           src/pic/device.c, src/pic/gen.c, src/pic/glue.c, src/pic/main.c,
3375           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/glue.c,
3376           src/pic16/main.c, src/pic16/ralloc.c, src/port.h, src/src.dsp,
3377           src/xa51/gen.c, src/xa51/main.c, src/z80/gen.c, src/z80/main.c,
3378           support/Util/dbuf.c, support/Util/dbuf.h:
3379           modified
3380         * .version, sdcc.spec: bumped version to 2.6.4
3381
3382 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
3383
3384         * src/port.h: added TARGET_Z80_LIKE macro
3385         * src/SDCCmain.c (linkEdit): use TARGET_Z80_LIKE,
3386           output PSEG location if --xram-loc or --xstack-loc was used
3387         * as/link/mcs51/lkarea.c (lnksect2): set segment address afterwards
3388
3389 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
3390
3391         * as/as_gbz80.dsp, as/z80/as_gbz80.dsp,
3392         * as/as_z80.dsp,   as/z80/as_z80.dsp,
3393         * as/asx8051.dsp,  as/mcs51/asx8051.dsp,
3394         * sdcc.dsw: moved project files into subdir
3395         * as/hc08/as_hc08.dsp,
3396         * as/hc08/Makefile.bcc,
3397         * as/hc08/Makefile.in,
3398         * as/mcs51/Makefile.bcc,
3399         * as/mcs51/Makefile.in,
3400         * as/z80/Makefile.bcc,
3401         * as/z80/Makefile.in,
3402         * as/link/mcs51/Makefile.bcc: use as/strcmpi.c
3403         * as/hc08/asm.h,
3404         * as/mcs51/asm.h,
3405         * as/z80/asm.h: added as_strcmpi() and as_strncmpi() prototypes
3406         * as/hc08/asmain.c,
3407         * as/hc08/assym.c,
3408         * as/mcs51/asmain.c,
3409         * as/mcs51/assym.c,
3410         * as/z80/assym.c: removed include "strcmpi.h"
3411         * as/hc08/strcmpi.c,
3412         * as/hc08/strcmpi.h,
3413         * as/mcs51/strcmpi.c,
3414         * as/mcs51/strcmpi.h,
3415         * support/Util/strcmpi.c,
3416         * support/Util/strcmpi.h: removed files
3417         * as/strcmpi.c: added as_strncmpi()
3418
3419 2007-01-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3420
3421         * sdcc.dsw: Added some dependencies on project config.dsp
3422
3423 2007-01-05 Maarten Brock <sourceforge.brock AT dse.nl>
3424
3425         * as/link/mcs51/lkarea.c (lnkarea2, lnksect2): replaced [di]seg_ap->a_addr
3426           with [di]ram_start to fix a regresion
3427
3428 2007-01-03 Bernhard Held <bernhard AT bernhardheld.de>
3429
3430         * configure.in: added missing mcs51 in status output
3431         * Makefile.in: add support/regression to SDCC_EXTRA to distclean this
3432         directory
3433         * debugger/mcs51/clean.mk (distclean): remove config.h
3434         * src/clean.mk (clean): remove SDCCy.c, SDCCy.h, SDCClex.c
3435         * support/cpp2/Makefile.in (clean): remove s-options, optionlist,
3436         options.h, s-options-h and options.c
3437         * support/cpp2/clean.mk: unused, removed
3438         * Makefile.common.in,
3439         * main_in.mk,
3440         * as/Makefile.in,
3441         * as/hc08/Makefile.in,
3442         * as/hc08/clean.mk,
3443         * as/mcs51/Makefile.in,
3444         * as/mcs51/clean.mk,
3445         * as/z80/clean.mk,
3446         * as/z80/conf.mk,
3447         * as/z80/Makefile.in,
3448         * as/z80/clean.mk,
3449         * as/link/Makefile.in,
3450         * as/link/hc08/Makefile.in,
3451         * as/link/hc08/clean.mk,
3452         * as/link/mcs51/Makefile.in,
3453         * as/link/mcs51/clean.mk,
3454         * as/link/z80/Makefile.in,
3455         * as/link/z80/clean.mk,
3456         * as/link/z80/conf.mk,
3457         * debugger/mcs51/Makefile.in,
3458         * debugger/mcs51/clean.mk,
3459         * device/include/Makefile.in,
3460         * device/lib/Makefile.in,
3461         * device/lib/mcs51/Makefile.in,
3462         * device/lib/pic/Makefile.in,
3463         * device/lib/pic/Makefile.common.in,
3464         * device/lib/pic/Makefile.subdir,
3465         * device/lib/pic/Makefile.rules,
3466         * device/lib/pic16/libio/Makefile.in,
3467         * device/lib/pic16/Makefile.subdir,
3468         * device/lib/pic16/libdev/Makefile.in,
3469         * device/lib/pic16/Makefile.rules,
3470         * device/lib/pic16/Makefile.common.in,
3471         * sim/ucsim/avr.src/Makefile.in,
3472         * sim/ucsim/main_in.mk,
3473         * sim/ucsim/cmd.src/Makefile.in,
3474         * sim/ucsim/doc/Makefile.in,
3475         * sim/ucsim/gui.src/Makefile.in,
3476         * sim/ucsim/gui.src/obsolete/portmon.src/Makefile.in,
3477         * sim/ucsim/gui.src/serio.src/Makefile.in,
3478         * sim/ucsim/hc08.src/Makefile.in,
3479         * sim/ucsim/libltdl/Makefile.in,
3480         * sim/ucsim/s51.src/Makefile.in,
3481         * sim/ucsim/sim.src/Makefile.in,
3482         * sim/ucsim/sim.src/conf.mk,
3483         * sim/ucsim/xa.src/Makefile.in,
3484         * sim/ucsim/z80.src/Makefile.in,
3485         * src/Makefile.in,
3486         * src/clean.mk,
3487         * src/port.mk,
3488         * support/cpp2/Makefile.in,
3489         * support/librarian/Makefile.in,
3490         * support/librarian/clean.mk,
3491         * support/makebin/Makefile.in,
3492         * support/makebin/clean.mk,
3493         * support/packihx/Makefile.in,
3494         * support/regression/Makefile.in,
3495         * support/regression/ports/ds390/spec.mk,
3496         * support/regression/ports/gbz80/spec.mk,
3497         * support/regression/ports/hc08/spec.mk,
3498         * support/regression/ports/mcs51/spec.mk,
3499         * support/regression/ports/mcs51-large/spec.mk,
3500         * support/regression/ports/mcs51-medium/spec.mk,
3501         * support/regression/ports/mcs51-xstack-auto/spec.mk,
3502         * support/regression/ports/pic14/spec.mk,
3503         * support/regression/ports/pic16/spec.mk,
3504         * support/regression/ports/mcs51-stack-auto/spec.mk,
3505         * support/regression/ports/ucz80/spec.mk,
3506         * support/regression/ports/xa51/spec.mk,
3507         * support/regression/ports/z80/spec.mk: fixed for autoconf 2.6x by
3508         adding a slash after $(top_builddir) and/or adding @datarootdir@
3509         * configure.in,
3510         * debugger/mcs51/configure.in,
3511         * device/lib/pic/configure.in,
3512         * device/lib/pic16/configure.in,
3513         * sim/ucsim/configure.in,
3514         * support/cpp2/configure.in,
3515         * support/packihx/configure.in: changed AC_PREREQ to 2.60
3516         * configure,
3517         * debugger/mcs51/configure,
3518         * device/lib/pic/configure,
3519         * device/lib/pic16/configure,
3520         * sim/ucsim/configure,
3521         * support/cpp2/configure,
3522         * support/packihx/configure: generated with autoconf 2.60
3523
3524 2007-01-02 Maarten Brock <sourceforge.brock AT dse.nl>
3525
3526         * as/link/hc08/lkihx.c (newArea),
3527         * as/link/hc08/lkrloc.c: renamed newArea() to ihxNewArea()
3528
3529 2007-01-02 Borut Razem <borut.razem AT siol.net>
3530
3531         * doc/sdccman.lyx: documented #pragma sdcc_hash
3532         * support/cpp2/sdcpp.c: allow_naked_hash (value of #pragma sdcc_hash)
3533           initialized to 0
3534         * support/cpp2/c-ppoutput.c: fixed warning: no newline at end of file
3535
3536 2007-01-01 Bernhard Held <bernhard AT bernhardheld.de>
3537
3538         * src/SDCCast.c (createDo): backPatchLabels() needs falseLabel in
3539         empty 'while'-loop to work correctly, see regression test 'while.c'
3540         * support/regression/tests/while.c: added
3541
3542 2007-01-01 Borut Razem <borut.razem AT siol.net>
3543
3544         * support/cpp2/libcpp/directives.c, support/cpp2/libcpp/identifiers.c,
3545           support/cpp2/libcpp/init.c, support/cpp2/libcpp/sdcpp-opts.c,
3546           support/cpp2/libcpp/sdcpp.c:
3547           sdcpp specific pragma/directive/option handling moved to sdcpp.c
3548         * doc/sdccman.lyx: reference to the GCC 4.1.1 CPP Manual
3549         * support/cpp2/libcpp/mkdeps.c: synchronized with GCC CPP 4.1.1
3550
3551 2006-12-31 Borut Razem <borut.razem AT siol.net>
3552
3553         * SDCPP synchronized with GCC CPP release version 4.1.1,
3554           currently the latest release:
3555         * support/cpp2/libcpp, support/cpp2/libcpp/include,
3556           support/cpp2/libcpp/include/cpp-id-data.h
3557           support/cpp2/libiberty/fopen_unlocked.c
3558           support/cpp2/libiberty/md5.c
3559           support/cpp2/md5.h
3560           support/cpp2/opt-functions.awk
3561           support/cpp2/opt-gather.awk
3562           support/cpp2/optc-gen.awk
3563           support/cpp2/opth-gen.awk:
3564           added
3565         * support/cpp2/Makefile.in, support/cpp2/auto-host_vc_in.h,
3566           support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
3567           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
3568           support/cpp2/c-pretty-print.h, support/cpp2/cppdefault.c,
3569           support/cpp2/cppdefault.h, support/cpp2/diagnostic.c,
3570           support/cpp2/diagnostic.h, support/cpp2/except.h,
3571           support/cpp2/hwint.h, support/cpp2/input.h,
3572           support/cpp2/intl.h, support/cpp2/move-if-change,
3573           support/cpp2/opts.c, support/cpp2/opts.h,
3574           support/cpp2/output.h, support/cpp2/prefix.c,
3575           support/cpp2/prefix.h, support/cpp2/pretty-print.c,
3576           support/cpp2/pretty-print.h, support/cpp2/sdcpp-opts.c,
3577           support/cpp2/sdcpp.c, support/cpp2/sdcpp.dsp,
3578           support/cpp2/sdcpp.h, support/cpp2/sdcpp.opt,
3579           support/cpp2/sdcppa.dsp, support/cpp2/symcat.h,
3580           support/cpp2/version.c:
3581           modified
3582         * support/cpp2/libcpp/charset.c, support/cpp2/libcpp/directives.c,
3583           support/cpp2/libcpp/errors.c, support/cpp2/libcpp/expr.c,
3584           support/cpp2/libcpp/files.c, support/cpp2/libcpp/identifiers.c,
3585           support/cpp2/libcpp/include/cpplib.h, support/cpp2/libcpp/include/line-map.h,
3586           support/cpp2/libcpp/include/mkdeps.h, support/cpp2/libcpp/include/symtab.h,
3587           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
3588           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/line-map.c,
3589           support/cpp2/libcpp/macro.c, support/cpp2/libcpp/mkdeps.c,
3590           support/cpp2/libcpp/symtab.c, support/cpp2/libcpp/system.h,
3591           support/cpp2/libcpp/traditional.c, support/cpp2/libcpp/ucnid.h,
3592           support/cpp2/libiberty/hashtab.c, support/cpp2/libiberty/hashtab.h:
3593           moved
3594         * support/cpp2/cppcharset.c, support/cpp2/cpperror.c,
3595           support/cpp2/cppexp.c, support/cpp2/cppfiles.c,
3596           support/cpp2/cpphash.c, support/cpp2/cpphash.h,
3597           support/cpp2/cppinit.c, support/cpp2/cpplex.c,
3598           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
3599           support/cpp2/cppmacro.c, support/cpp2/cpptrad.c,
3600           support/cpp2/cppucnid.h, support/cpp2/hashtab.c,
3601           support/cpp2/hashtab.h, support/cpp2/hashtable.c,
3602           support/cpp2/hashtable.h, support/cpp2/line-map.c,
3603           support/cpp2/line-map.h, support/cpp2/mkdeps.c,
3604           support/cpp2/mkdeps.h, support/cpp2/options_vc_in.c,
3605           support/cpp2/options_vc_in.h, support/cpp2/opts.sh,
3606           support/cpp2/system.h:
3607           deleted / moved
3608
3609 2006-12-31 Borut Razem <borut.razem AT siol.net>
3610
3611         * configure.in, configure: fixed bug #1538756: configure dies if bison
3612           and flex are not installed, 2nd try
3613
3614 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
3615
3616         * src/mcs51/peeph.def: renamed rule 400 to 500, moved rule 253.x to
3617         400.x for better code in RFE 899102
3618
3619 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
3620
3621         * src/SDCCpeeph.c (deadMove),
3622         * src/port.h,
3623         * src/mcs51/peep.h: renamed 'op' by 'reg'
3624         * src/mcs51/peep.c (isFunc, isCallerSaveFunc): added,
3625         (scan4op): small change for removeDeadMove(), added support for
3626         'callee saves' and/or PACLL function calls,
3627         (removeDeadMove): added, removes superflous 'mov r%1,%2',
3628         (removeDeadPopPush): renamed from mcs51DeadMove(), common parts
3629         left in new dispatcher mcs51DeadMove()
3630         (mcs51DeadMove): dispatcher for removeDeadPopPush() and new
3631         removeDeadMove()
3632         * src/mcs51/peeph.def: added rule 301 removing superflous 'mov r%1,%2'
3633
3634 2006-12-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3635
3636         * support/cpp2/options_vc_in.h, support/cpp2/options_vc_in.c,
3637           support/cpp2/sdcppa.dsp: create 'options.h' and 'options.c' under MSVC.
3638
3639 2006-12-30 Borut Razem <borut.razem AT siol.net>
3640
3641         * support/cpp2/spacs.h: deleted from svn
3642         * configure.in, configure: fixed bug #1538756: configure dies if bison
3643           and flex are not installed
3644
3645 2006-12-29 Maarten Brock <sourceforge.brock AT dse.nl>
3646
3647         * src/z80/gen.c (assignResultValue): fixed bug when registers overlap,
3648           with this z80 passes printf float test when enabled
3649         * support/regression/tests/bug1057979.c: typo disabled ds390 float test
3650
3651 2006-12-28 Borut Razem <borut.razem AT siol.net>
3652
3653         * support/cpp2/config.in, support/cpp2/configure.in,
3654           support/cpp2/configure, support/cpp2/Makefile.in:
3655           fix for the solaris build
3656
3657 2006-12-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3658
3659         * src/SDCC.y (type_specifier2, pointer),
3660         * src/SDCCsymt.h,
3661         * src/SDCCsymt.c (mergeSpec, checkSClass),
3662         * support/Util/SDCCerr.c,
3663         * support/Util/SDCCerr.h: Parse and validate the restrict keyword
3664         * support/valdiag/valdiag.py: Allow test cases to specify
3665           required language standard
3666         * support/valdiag/tests/restrict.c: New file to test restrict keyword
3667         * support/valdiag/tests/tentdecl.c: Supress empty source file error
3668
3669 2006-12-27 Borut Razem <borut.razem AT siol.net>
3670
3671         * support/cpp2/cppmain.c, support/cpp2/mbchar.[ch]: removed
3672         * support/cpp2/libiberty/Makefile.in, support/cpp2/libiberty/sdcpp.dsp:
3673           mbchar removed
3674         * support/cpp2/libiberty/getpwd.c, support/cpp2/sdcpp.h:
3675           fixed for borland C
3676         * support/cpp2/libiberty/Makefile.bcc: updated
3677         * src/pic16/main.c: fixed #pragma udata handling
3678         * src/mcs51/mcs51.dsp: added peep.[ch] to the project
3679
3680 2006-12-26 Bernhard Held <bernhard AT bernhardheld.de>
3681
3682         * src/SDCCpeeph.c: made labelHashEntry global,
3683         made pcDistance, FBYNAME static,
3684         (pcDistance): made static, use isComment and isLabel,
3685         (deadMove): added,
3686         (getLabelRef): added, extracted from labelRefCount(),
3687         (labelRefCount): use new getLabelRef(),
3688         (callFuncByName): made static, added deadMove,
3689         use isComment and isLabel,
3690         (newPeepRule): made static, set isLabel,
3691         (isLabelDefinition): added parameter isPeepRule to allow '%' in
3692         labels from peephole rules,
3693         (buildLabelRefCountHash): speed up by running isLabelDefinition() only
3694         when isComment or isLabel is set
3695         * src/SDCCpeeph.h: added "isLabel" and "visited" to struct lineNode,
3696         added labelHashEntry, isLabelDefinition, labelHash and getLabelRef
3697         to make them global
3698         * src/mcs51/peep.h: added
3699         * src/mcs51/peep.c: added, implements mcs51DeadMove()
3700         * src/port.h: added peep->deadMove to port structure
3701         * src/mcs51/main.c: initialize peep->deadMove with mcs51DeadMove
3702         * src/mcs51/peeph.def: renumbered rule 300 to 400, added new rule 300
3703         deadMove, finally removed no. 1 and 2
3704         * src/mcs51/gen.c,
3705         * src/pic/gen.c,
3706         * src/z80/gen.c,
3707         * src/z80/ralloc.c,
3708         * src/pic16/gen.c,
3709         * src/ds390/gen.c,
3710         * src/hc08/gen.c: mark lines with isComment or isLabel
3711         * sim/ucsim/s51.src/uc390hw.cc: don't waist 65535 ticks before CKRDY
3712         * .version,
3713         * sdcc.spec: bumped version to 2.6.3
3714
3715 2006-12-26 Borut Razem <borut.razem AT siol.net>
3716
3717         * support/cpp2/Makefile.in: added dependency on options.h
3718         * configure: regenerated
3719         * support/cpp2/sdcpp.opt, support/cpp2/move-if-change: svn:eol-style native
3720         * support/cpp2/Makefile.in: added vasprintf.c
3721
3722 2006-12-25 Borut Razem <borut.razem AT siol.net>
3723
3724         * SDCPP synchronized with GCC CPP release version 3.4.6,
3725           the latest release before 4.x:
3726         * support/cpp2/Makefile.in, support/cpp2/config.h,
3727           support/cpp2/configure, support/cpp2/configure.in,
3728           support/cpp2/cppdefault.c, support/cpp2/cppdefault.h,
3729           support/cpp2/cpperror.c, support/cpp2/cppexp.c,
3730           support/cpp2/cppfiles.c, support/cpp2/cpphash.c,
3731           support/cpp2/cpphash.h, support/cpp2/cppinit.c,
3732           support/cpp2/cpplex.c, support/cpp2/cpplib.c,
3733           support/cpp2/cpplib.h, support/cpp2/cppmacro.c,
3734           support/cpp2/cpptrad.c, support/cpp2/except.h,
3735           support/cpp2/hashtable.c, support/cpp2/hashtable.h,
3736           support/cpp2/hwint.h, support/cpp2/intl.h,
3737           support/cpp2/line-map.c, support/cpp2/line-map.h,
3738           support/cpp2/mkdeps.c, support/cpp2/mkdeps.h,
3739           support/cpp2/output.h, support/cpp2/prefix.c,
3740           support/cpp2/prefix.h, support/cpp2/sdcpp.dsp,
3741           support/cpp2/system.h, support/cpp2/version.c:
3742           modified
3743         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
3744           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
3745           support/cpp2/c-pretty-print.h, support/cpp2/cppcharset.c,
3746           support/cpp2/cppucnid.h, support/cpp2/diagnostic.c,
3747           support/cpp2/diagnostic.def, support/cpp2/diagnostic.h,
3748           support/cpp2/hashtab.c, support/cpp2/hashtab.h,
3749           support/cpp2/input.h, support/cpp2/libiberty/getpwd.c,
3750           support/cpp2/libiberty/vasprintf.c, support/cpp2/libiberty/xmemdup.c,
3751           support/cpp2/move-if-change, support/cpp2/opts.c,
3752           support/cpp2/opts.h, support/cpp2/opts.sh,
3753           support/cpp2/pretty-print.c, support/cpp2/pretty-print.h,
3754           support/cpp2/sdcpp.opt, support/cpp2/sdcpp-opts.c,
3755           support/cpp2/win32, support/cpp2/win32/dirent.c,
3756           support/cpp2/win32/dirent.h:
3757           added
3758         * support/cpp2/sdcpp.c: renamed from sdcppmain.c
3759         * support/cpp2/sdcpp.h: renamed from sdcc.h
3760         * sdcppinit.c: deleted
3761
3762 2006-12-23 Borut Razem <borut.razem AT siol.net>
3763
3764         * support/cpp2/cpphash.h, support/cpp2/cpplex.c,
3765           support/cpp2/cpplib.[ch], support/cpp2/sdcppinit.c, doc/sdccman.lyx,
3766           preproc.c: an other try to fix bug #982435: introduced
3767           -pedantic-parse-number command line option and pedantic_parse_number
3768           pragma
3769
3770 2006-12-21 Maarten Brock <sourceforge.brock AT dse.nl>
3771
3772         * as/link/mcs51/lkarea.c (lnkarea2): handle absolute areas, restructured
3773            BSEG handling,
3774           (lnksect2): use --data-loc and --idata-loc as lower bound for ramstart,
3775            corrected overlayed areax addresses, warn about memory overlaps
3776         * as/mcs51/asmain.c (asmbl): create a new area for every .org directive
3777         * src/avr/main.c,
3778         * src/ds390/main.c,
3779         * src/hc08/main.c,
3780         * src/mcs51/main.c,
3781         * src/pic16/main.c,
3782         * src/pic/main.c,
3783         * src/xa51/main.c,
3784         * src/z80/main.c,
3785         * src/port.h: added xabs_name and iabs_name
3786         * src/SDCCglue.c (emitRegularMap): allocate for absolutes with initializer
3787           (glue, emitMaps): create and emit maps d_abs and i_abs
3788         * src/SDCCglue.h: cosmetic changes
3789         * src/SDCCmain.c (setDefaultOptions): idata can start below 0x80
3790         * src/SDCCmem.h,
3791         * src/SDCCmem.c (initMem): added x_abs, i_abs and d_abs
3792           (allocDefault): put absolute, initialized globals in them
3793         * support/regression/tests/absolute.c: added absolute bdata test
3794         * device/lib/printf_large.c (output_float): moved fpBuffer to stack/xdata
3795
3796 2006-12-20 Borut Razem <borut.razem AT siol.net>
3797
3798         * support/cpp2/cpphash.h, support/cpp2/cpplex.c: fixed bug #982435
3799         * support/regression/tests/preproc.c: renamed from bug-1351710.c,
3800           added regression test for bug #982435
3801
3802 2006-12-18 Borut Razem <borut.razem AT siol.net>
3803
3804         * src/SDCCutil.c: fixed a bug in (get_pragma_token)
3805         * src/pic16/main.c, src/SDCC.lex, src/z80/main.c:
3806           small cosmetic changes
3807         * src/SDCC.lex: (stringLiteral) fixed bug #1351710
3808         * support/regression/tests/bug-1351710.c: added regression test
3809
3810 2006-12-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3811
3812         * doc/sdccman.lyx: added the long missed iCode table
3813           "<where is figure II?>", added links to wiki
3814
3815 2006-12-17 Borut Razem <borut.razem AT siol.net>
3816
3817         * doc/sdccman.lyx, src/pic16/main.c, src/pic/main.c, src/port.h,
3818           src/SDCC.lex, src/SDCCutil.[ch], src/z80/main.c,
3819           support/Util/SDCCerr.[ch]: removed deprecated pragmas,
3820           unified table driven pragma handling, pragma argument type checking
3821         * support/Util/dbuf.c: (dbuf_set_size) allow to set size equal to the
3822           current one - version 1.1.3
3823         * src/SDCCmain.c: (setParseWithComma) substituted brain damaged strtok
3824
3825 2006-12-13 Raphael Neider <rneider AT web.de>
3826
3827         * src/pic/device.h: removed AssignedMemory structure and macros
3828         * src/pic/device.c: removed global finalMapping (linker assigns
3829             memory locations),
3830           (register_map): add SFRs to remembered memRanges
3831           (addMemRange,isSFR,dump_map,dump_sfr,mapRegister,assignRegister,
3832           assignFixedRegisters,assignRelocatableRegisters): removed,
3833           (setMaxRAM,validAddress): adapted accordingly,
3834           (pic14_hasSharebank,pic14_getSharedStack): only report and use
3835             reasonably sized sharebanks,
3836         * src/pic/ralloc.c (writeUsedRegs): stripped down (remove?),
3837           (allDefsOutOfRange): removed unused code,
3838         * src/pic/main.c (_process_pragma): removed memmap/maxram pragma
3839             handling
3840         * src/pic/pcode.c (register_reassign): removed recursion warning,
3841             fired far too often,
3842         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap): modified
3843             to use existing pic14_stringInSet() to avoid duplicate symbols,
3844             tidied up the code a bit,
3845           (pic14printLocals): added in symmetry to printExterns, replaces
3846             writeUsedRegs more or less,
3847           (picglue): call new pic14_printLocals(),
3848         * device/include/pic/pic*.h: removed #pragma memmap directives,
3849             information gathered from include/pic/pic14devices.txt
3850         * support/scripts/inc2h.pl: do not emit #pragma memmap lines
3851
3852 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
3853
3854         * device/include/mcs51/C8051F520.h: fixed buggy CPT0MX
3855
3856 2006-12-11 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3857
3858         * device/include/mcs51/cc2430.h: fixed missing ';'
3859
3860 2006-12-10 Raphael Neider <rneider AT web.de>
3861
3862         * device/lib/pic16/libc/stdio/vfprintf.c,
3863         * device/lib/pic16/libc/stdio/printf_small.c,
3864         * device/lib/pic16/libc/stdio/printf_timy.c: pop int from stack for
3865           char arguments, as char varargs are cast to int by the caller,
3866           hopefully fixes #1604915 (other device libraries are still affected)
3867
3868 2006-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3869
3870         * src/mcs51/ralloc.c (packRegsForAssign),
3871         * src/hc08/ralloc.c (packRegsForAssign): fixed bug #1605880
3872
3873 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
3874
3875         * device/include/malloc.h: removed init_dynamic_memory
3876         * device/lib/malloc.c: made init_dynamic_memory static and automatically
3877           call it once from malloc. Also use _sdcc_heap[] from _heap.c
3878         * device/lib/_heap.c: new, added, contains _sdcc_heap[]
3879         * device/lib/libsdcc.lib,
3880         * device/lib/Makefile.in,
3881         * support/regression/ports/mcs51-xstack-auto/spec.mk: added _heap.c
3882         * doc/sdccman.lyx: documented use of new _heap.c
3883         * support/regression/tests/malloc.c: removed init_dynamic_memory
3884         * src/cdbFile.c(spacesToUnderscores): new function,
3885           (cdbWriteEndFunction, cdbWriteCLine): use spacesToUnderscores, fixes bug
3886           1068030
3887         * device/include/tinibios.h: removed defines for putchar and getchar
3888         * device/lib/ds390/Makefile.in: added putchar.c
3889         * device/lib/ds390/putchar.c: new, added, fixes bug 1465671
3890
3891 2006-12-09 Borut Razem <borut.razem AT siol.net>
3892
3893         * support/cpp2/sdcc.h: prevent multiple inclusion
3894         * support/cpp2/options.h: deleted
3895
3896 2006-12-08 Borut Razem <borut.razem AT siol.net>
3897
3898         * support/cpp2/sdcc.h: removed x*alloc() macros
3899         * support/cpp2/libiberty.h: uncommented out x*alloc() declarations
3900         * support/cpp2/Makefile.bcc, support/cpp2/Makefile.in,
3901           support/cpp2/sdcpp.sdc: x*alloc files added to the project
3902         * support/cpp2/system.h: moved #include "sdcc.h"
3903         * support/cpp2/libiberty/xexit.c, support/cpp2/libiberty/xmalloc.c,
3904           support/cpp2/libiberty/xstrdup.c, support/cpp2/libiberty/xstrerror.c:
3905           added
3906         * support/cpp2/sdcppinit.c: added -isysroot, -fsigned-char,
3907           -funsigned-char options
3908         * support/cpp2/sdcppmain.c: fixed bug 1611411
3909
3910 2006-12-07 Borut Razem <borut.razem AT siol.net>
3911
3912         * support/cpp2/cpplib.c: reverted sdcpp special handling of _Pragma()
3913           directive
3914
3915 2006-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
3916
3917         * src/SDCCsymt.c (addDecl): fixed bug 1609244
3918         * src/SDCCmain.c (linkEdit): fixed bug 1609279
3919         * doc/sdccman.lyx,
3920         * .version: bumped to 2.6.2 because a) it's been a while
3921           b) the linker sources have moved c) the preprocessor is upgraded
3922
3923 2006-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3924
3925         * support/regression/tests/snprintf.c: some checks
3926         * lib/src/printf_large.c: %bc: read char instead of int from stack
3927
3928 2006-12-03 Maarten Brock <sourceforge.brock AT dse.nl>
3929
3930         * device/include/mcs51/cc2430.h: inserted _XPAGE
3931
3932 2006-12-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3933
3934         * device/include/mcs51/cc2430.h: added
3935
3936 2006-12-02 Maarten Brock <sourceforge.brock AT dse.nl>
3937
3938         * device/include/asm/default/features.h,
3939         * device/include/asm/ds390/features.h,
3940         * device/include/mcs51/at89s53.h,
3941         * device/include/ser.h,
3942         * device/include/ser_ir.h,
3943         * device/include/serial.h: changed keywords to double underscore variants,
3944           fixes bug 1590261 some more, thanks Steven Borley
3945
3946 2006-12-01 Raphael Neider <rneider AT web.de>
3947
3948         * src/pic/pcode.c (register_reassign): do not crash on recursive code
3949           but emit warning (recursion is not supported for pic14)
3950
3951 2006-11-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3952
3953         * src/mcs51/peeph.def: added 101.a,b (moves to int/long xdata)
3954         * doc/sdccman.lyx: various small changes, acknowledged Sourceforge
3955
3956 2006-11-30 Raphael Neider <rneider AT web.de>
3957
3958         * src/pic/device.c (dump_sfr): always emit symbols
3959         * src/pic/glue.c (pic14printPublics): fixed typo
3960
3961 2006-11-30 Raphael Neider <rneider AT web.de>
3962
3963         * src/pic/device.c (create_pic,ram_map): add memRange entries to PIC
3964           (pic14_getSharebankSize, pic14_getSharebankAddress): replaced with
3965           (pic14_hasSharebank,pic14_isShared,pic14_allRAMShared,
3966            pic14_getSharedStack): NEW, evaluate the memRange entries to locate
3967            a sharebank, use a non-shared bank for the stack if none available
3968         * src/pic/device.h (struct memRange): added linked list next field,
3969           added prototypes for above functions
3970         * src/pic/ralloc.c (initStack): handle shared and banked stacks,
3971           (typeRegWithIdx): accept fixed and unfixed stack registers
3972         * src/pic/pcode.c (pCodeInitRegisters): use new functions to create
3973           the stack, handle shared and banked stack (except for WSAVE),
3974           (insertBankSel): removed useless optimization (will never fire),
3975           (FixRegisterBanking): added optimization for devices with only one
3976           possibly aliased bank of memory, like 16f84
3977         * src/pic/glue.c (pic14_constructAbsMap): back to udata_ovr, as some
3978           devices have no SHAREBANK in the linker script
3979         * device/include/pic/pic14devices.txt: documented memmap
3980         * device/lib/pic/libdev/Makefile.in: removed --stack-loc again
3981
3982 2006-11-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3983
3984         * src/hc08/gen.c (transferRegReg, loadRegFromAop, forceStackedAop,
3985           storeRegToAop, freeAsmop, genPlusIncr, genPlus, genPointerGetSetOfs,
3986           genAnd, genOr, genXor, genLeftShiftLiteral, genRightShiftLiteral,
3987           genhc08Code): switched most of the D (debug) macros to DD (detailed
3988           debug) macros to better control clutter in the generated .asm file.
3989         * src/hc08/gen.c: (forceStackedAop, genUminus, genLeftShift,
3990           genRightShift): fixed bug with non-constant bit shift stored to
3991           a volatile result (SF Open Discussion forum thread #1616749).
3992           Single byte case is not yet optimized.
3993
3994 2006-11-28 Maarten Brock <sourceforge.brock AT dse.nl>
3995
3996         * device/include/asm/mcs51/features.h,
3997         * device/include/malloc.h,
3998         * device/include/stdio.h: changed keywords to double underscore variants,
3999           fixes bug 1590261
4000
4001 2006-11-27 Borut Razem <borut.razem AT siol.net>
4002
4003         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
4004           support/cpp2/Makefile.in, support/cpp2/cppfiles.c,
4005           support/cpp2/output.h, support/cpp2/cppinit.c,
4006           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
4007           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
4008           support/cpp2/cppdefault.c, support/cpp2/system.h,
4009           support/cpp2/cpphash.h, support/cpp2/cpplex.c,
4010           support/cpp2/cppdefault.h, support/cpp2/mbchar.c,
4011           support/cpp2/prefix.c, support/cpp2/except.h,
4012           support/cpp2/hwint.h, support/cpp2/cppmacro.c,
4013           support/cpp2/line-map.h, support/cpp2/sdcpp.dsp,
4014           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
4015           support/cpp2/version.c, support/cpp2/cppmain.c,
4016           support/cpp2/version.h, support/cpp2/hashtable.c,
4017           support/cpp2/cpperror.c:
4018           synchronized with GCC CPP release version 3.3.6,
4019           the latest where cppmain.c still exists.
4020         * support/cpp2/cpptrad.c, support/cpp2/sdcppmain.c,
4021           support/cpp2/sdcppinit.c: added
4022
4023 2006-11-27 Borut Razem <borut.razem AT siol.net>
4024
4025         * support/cpp2/cpplex.c:
4026           fixed _asm ... _endasm handling bug, introduce with GCC CPP
4027           synchronization
4028         * support/cpp2/cpplib.c: removed definitions of unused variables
4029
4030 2006-11-26 Borut Razem <borut.razem AT siol.net>
4031
4032         * support/cpp2/libiberty.h: commented out x*alloc() declarations
4033           since they are redefined by macros in support/cpp2/sdcc.h
4034         * support/cpp2/sdcc.h: x*alloc macro redefinition
4035
4036 2006-11-25 Borut Razem <borut.razem AT siol.net>
4037
4038         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
4039           support/cpp2/configure, support/cpp2/Makefile.in,
4040           support/cpp2/cppfiles.c, support/cpp2/output.h,
4041           support/cpp2/cppinit.c, support/cpp2/cpplib.c,
4042           support/cpp2/config.h, support/cpp2/cpplib.h,
4043           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
4044           support/cpp2/cppdefault.c, support/cpp2/config.in,
4045           support/cpp2/system.h, support/cpp2/cpplex.c,
4046           support/cpp2/cpphash.h, support/cpp2/mbchar.c,
4047           support/cpp2/cppdefault.h, support/cpp2/prefix.c
4048           support/cpp2/hwint.h, support/cpp2/mbchar.h,
4049           support/cpp2/prefix.h, support/cpp2/cppmacro.c,
4050           support/cpp2/configure.in, support/cpp2/intl.h,
4051           support/cpp2/sdcpp.dsp, support/cpp2/acconfig.h,
4052           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
4053           support/cpp2/version.c, support/cpp2/cppmain.c,
4054           support/cpp2/ansidecl.h, support/cpp2/libiberty.h,
4055           support/cpp2/hashtable.c, support/cpp2/aclocal.m4,
4056           support/cpp2/cpperror.c,
4057           support/cpp2/libiberty/safe-ctype.c,
4058           support/cpp2/libiberty/safe-ctype.h,
4059           support/cpp2/libiberty/splay-tree.c,
4060           support/cpp2/libiberty/obstack.c,
4061           support/cpp2/libiberty/lbasename.c,
4062           support/cpp2/libiberty/splay-tree.h,
4063           support/cpp2/libiberty/obstack.h:
4064           synchronized with GCC CPP release version 3.2.3,
4065           the latest before integration of cpp into gcc
4066         * support/cpp2/except.h, support/cpp2/line-map.c,
4067           support/cpp2/line-map.h,
4068           support/cpp2/libiberty/hex.c,
4069           support/cpp2/libiberty/concat.c,
4070           support/cpp2/libiberty/filenames.h: added
4071         * support/cpp2/intl.c: deleted
4072
4073 2006-11-24 Borut Razem <borut.razem AT siol.net>
4074
4075         * src/SDCC.y: enabled compilation of empty source file
4076         * support/Util/SDCCerr.[ch]: added sdcc warning 190 -
4077           "ISO C forbids an empty source file"
4078         * device/lib/_startup.c, device/lib/printf_tiny.c: disable warning 190
4079           if all the code is ifdefed out.
4080
4081 2006-11-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4082
4083         * src/hc08/gen.c (genPcall): fix for bug #1601032
4084
4085 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
4086
4087         * device/include/mcs51/c8051f000.h, device/include/mcs51/C8051F000.h,
4088         * device/include/mcs51/c8051f018.h, device/include/mcs51/C8051F018.h,
4089         * device/include/mcs51/c8051f020.h, device/include/mcs51/C8051F020.h,
4090         * device/include/mcs51/c8051f040.h, device/include/mcs51/C8051F040.h,
4091         * device/include/mcs51/c8051f060.h, device/include/mcs51/C8051F060.h,
4092         * device/include/mcs51/c8051f120.h, device/include/mcs51/C8051F120.h,
4093         * device/include/mcs51/c8051f200.h, device/include/mcs51/C8051F200.h,
4094         * device/include/mcs51/c8051f300.h, device/include/mcs51/C8051F300.h,
4095         * device/include/mcs51/c8051f310.h, device/include/mcs51/C8051F310.h,
4096         * device/include/mcs51/c8051f320.h, device/include/mcs51/C8051F320.h,
4097         * device/include/mcs51/c8051f326.h, device/include/mcs51/C8051F326.h,
4098         * device/include/mcs51/c8051f330.h, device/include/mcs51/C8051F330.h,
4099         * device/include/mcs51/c8051f340.h, device/include/mcs51/C8051F340.h,
4100         * device/include/mcs51/c8051f350.h, device/include/mcs51/C8051F350.h,
4101         * device/include/mcs51/c8051f410.h, device/include/mcs51/C8051F410.h:
4102           Renamed to all upper case as per the standard set by SiLabs
4103
4104 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
4105
4106         * device/include/mcs51/C8051F520.h: new, added
4107         * device/include/mcs51/compiler.h: added link about predefined macros
4108
4109 2006-11-23 Raphael Neider <rneider AT web.de>
4110
4111         * src/regression/Makefile: add -L path to fresh library
4112         * src/regression/simulate: emphasize FAILED output
4113         * src/regression/create_stc: output _failures from gpsim
4114         * src/regression/compare4.c,
4115         * src/regression/rotate6.c: fixed char literals,
4116           all compile, all run =8-D
4117
4118         * src/pic/pcode.h: added isPCASMDIR macro
4119         * src/pic/gen.c (genAnd): fixed bit offset
4120         * src/pic/ralloc.c (allocNewDirReg,allocDirReg,allocRegByName,
4121           packBits): unified register numbering schemes,
4122           (newReg): do not insert stack registers into hash table,
4123           (initStack): unpinned pseudo stack, simplified,
4124           (typeRegWithIdx): fixed retrieval of stack registers,
4125         * src/pic/pcode.c (addpCodeComment,sameBank): added,
4126           (pCodeReplace): removed invalid assertion,
4127           (insertPCodeInstruction): fixed newly added labels,
4128           (insertBankSwitch,BankSelect,IsBankChange,DoBankSelect,
4129           FixRegisterBankingInFlow,compareBankFlow,FixBankFlow,
4130           DumpFlow): removed unsed (broken?) code,
4131           (insertBankSel): prevent STATUS from being BANKSELed,
4132           (FixRegisterBanking): rewritten from scratch, implemented generic
4133             optimizations (suppress BANKSELs to same register and to registers
4134             present in all banks),
4135           (AnalyzeBanking): update flow after BANKSELection
4136
4137         * src/pic/glue.c (pic14_constructAbsMap): emit pseudo stack in
4138             sharebank, let linker place it, mark STKxx symbols as emitted
4139
4140 2006-11-21 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4141
4142         * src/regression/arrays.c,
4143         * src/regression/bank1.c,
4144         * src/regression/bool2.c,
4145         * src/regression/compare7.c,
4146         * src/regression/compare8.c,
4147         * src/regression/compare9.c,
4148         * src/regression/compare10.c,
4149         * src/regression/configword.c,
4150         * src/regression/for.c,
4151         * src/regression/mult1.c,
4152         * src/regression/pointer1.c,
4153         * src/regression/rotate6.c,
4154         * src/regression/string1.c,
4155         * src/regression/struct1.c,
4156         * src/regression/Makefile: make PIC14 regression tests run again
4157           (3 fail, 6 won't compile)
4158
4159 2006-11-21 Raphael Neider <rneider AT web.de>
4160
4161         * device/include/pic16/pic18f4550.h,
4162         * device/include/pic16/pic18f4455.h,
4163         * device/lib/pic16/libdev/pic18f4550.c,
4164         * device/lib/pic16/libdev/pic18f4455.c: fixed #1578591 and #1595144
4165         * configure.in: removed superfluous closing bracket
4166
4167 2006-11-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4168
4169         * device/lib/expf.c: Fixed bug 1599523: result of expf(x) is
4170           always positive.
4171
4172 2006-11-21 Raphael Neider <rneider AT web.de>
4173
4174         * src/pic/device.{c,h}: added pic14_getPIC()
4175         * src/pic/gen.c (continueIfTrue,jumpIfTrue): added PIC code,
4176           (genAnd): added PIC code for one case, fixes #1597044
4177         * src/pic/pcode.c (BankSelect): Ohoh, added generic optimization for
4178           SFRs that are present in all banks (e.g., STATUS)
4179
4180 2006-11-20 Raphael Neider <rneider AT web.de>
4181
4182         * src/pic/pcode.c: changed inverted ops for DECFSZ/DECFSZW and
4183           INCFSZ/INCFSZW and declared them as changing Z bit,
4184           (insertPCodeInstruction): correctly invert the above instructions,
4185           fixes #1599333,
4186           (DoBankSelect): don't panic on po_immediates
4187
4188 2006-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
4189
4190         * as/link/aslink.h,
4191         * as/link/mcs51/lkihx.c (newArea),
4192         * as/link/mcs51/lkrloc.c: renamed newArea() to ihxNewArea()
4193         * as/link/mcs51/lkihx.c (ihx): output reset vector as start address
4194
4195 2006-11-11 Raphael Neider <rneider AT web.de>
4196
4197         * src/pic/pcode.c (newpCodeOpBit): search SymbolTab for referenced
4198           bitfield symbols, fixes #1579535 (once more...).
4199
4200 2006-11-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4201
4202         * support/regression/generate-cases.py,
4203         * support/regression/fwk/include/testfwk.h,
4204         * support/regression/fwk/lib/testfwk.c: used code pointers,
4205           (about 50kByte less code generated for mcs51)
4206
4207 2006-11-06 Borut Razem <borut.razem AT siol.net>
4208
4209         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
4210           debugger/mcs51/configure: fixed failed check because the function
4211           rl_function_of_keyseq isn't in Readline 5.2. Thanks to Ilya Goldberg
4212           who submitted the patch for gpsim.
4213         * debugger/mcs51/configure.in: removed the result message
4214         * debugger/mcs51/Makefile.in: fixed the config.status warning
4215           "... seems to ignore the --datarootdir setting"
4216
4217 2006-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
4218
4219         * device/include/mcs51/c8051f020.h,
4220         * device/include/mcs51/c8051f040.h,
4221         * device/include/mcs51/c8051f060.h,
4222         * device/include/mcs51/c8051f120.h: added PS0, fixed bug 1589279
4223         * src/z80/gen.c (gencjneshort),
4224         * src/z80/peeph.def: applied patch 1571373, thanks Philipp Krause
4225
4226 2006-10-31 Borut Razem <borut.razem AT siol.net>
4227
4228         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
4229           debugger/mcs51/configure: get readline version
4230
4231 2006-10-30 Borut Razem <borut.razem AT siol.net>
4232
4233         * debugger/mcs51/sdcdb.c: replaced hardcoded "/" with DIR_SEPARATOR_STRING
4234         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
4235           debugger/mcs51/configure: locate readline even when cross compiling
4236         * support/scripts/sdcc.nsi: include readline5.dll into the setup package
4237
4238 2006-10-29 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4239
4240         * device/include/mcs51/serial_IO.h: putchar() and getchar() using
4241           serial port.
4242
4243 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
4244
4245         * device/include/malloc.h,
4246         * device/lib/calloc.c,
4247         * device/lib/free.c,
4248         * device/lib/malloc.c,
4249         * device/lib/realloc.c: moved definition of struct into sources
4250         * support/regression/tests/malloc.c: use void* for init_dynamic_memory()
4251
4252 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
4253
4254         * as/asx8051.dsp: corrected output directories
4255         * as/link/hc08: new directory for hc08 linker
4256         * as/hc08/aslink.h,             as/link/aslink.h,
4257         * as/hc08/aslink.mak,           as/link/hc08/aslink.mak,
4258         * as/hc08/clean.mk,             as/link/hc08/clean.mk,
4259         * as/hc08/link_hc08.dsp,        as/link/hc08/link_hc08.dsp,
4260         * as/hc08/lkaomf51.c,           as/link/hc08/lkaomf51.c,
4261         * as/hc08/lkarea.c,             as/link/hc08/lkarea.c,
4262         * as/hc08/lkdata.c,             as/link/hc08/lkdata.c,
4263         * as/hc08/lkelf.c,              as/link/hc08/lkelf.c,
4264         * as/hc08/lkihx.c,              as/link/hc08/lkihx.c,
4265         * as/hc08/lklibr.c,             as/link/hc08/lklibr.c,
4266         * as/hc08/lkmain.c,             as/link/hc08/lkmain.c,
4267         * as/hc08/lkmem.c,              as/link/hc08/lkmem.c,
4268         * as/hc08/lkrloc.c,             as/link/hc08/lkrloc.c,
4269         * as/hc08/lks19.c,              as/link/hc08/lks19.c,
4270         * as/hc08/Makefile.aslink,      as/link/hc08/Makefile.aslink,
4271         * as/hc08/Makefile.bcc,         as/link/hc08/Makefile.bcc,
4272         * as/hc08/Makefile.in,          as/link/hc08/Makefile.in,
4273         * as/link/hc08/conf.mk,
4274         * configure,
4275         * configure.in,
4276         * Makefile.in,
4277         * sdcc.dsw: moved hc08 linker to as/link/hc08
4278         * as/hc08/lkeval.c,     as/link/mcs51/lkeval.c,     as/link/lkeval.c,
4279         * as/hc08/lkhead.c,     as/link/mcs51/lkhead.c,     as/link/lkhead.c,
4280         * as/hc08/lklex.c,      as/link/mcs51/lklex.c,      as/link/lklex.c,
4281         * as/hc08/lklist.c,     as/link/mcs51/lklist.c,     as/link/lklist.c,
4282         * as/hc08/lknoice.c,    as/link/mcs51/lknoice.c,    as/link/lknoice.c,
4283         * as/hc08/lksym.c,      as/link/mcs51/lksym.c,      as/link/lksym.c,
4284         * as/link/mcs51/aslink.dsp,
4285         * as/link/mcs51/Makefile.in: factored out the common files
4286         * as/hc08/lkstore.c: deleted, use the one already in as/link/
4287         * as/clean.mk: extra cleaning common files
4288         * as/link/mcs51/strcmpi.c,      as/strcmpi.c: moved
4289         * as/link/mcs51/strcmpi.h: deleted, moved protoype to aslink.h
4290         * as/mcs51/asm.h: include sdccconf.h or sdcc_vc.h
4291
4292 2006-10-29 Raphael Neider <rneider AT web.de>
4293
4294         * src/pic/ralloc.c (newReg): create aliases for registers with
4295           multiple names to fix #1579535 and #1584001,
4296           (regWithIdx,dirregWithName): resolve aliases on lookup
4297         * src/pic/pcode.c (DoBankSelect): die with error message on failing
4298           bankselect
4299         * device/lib/pic/libdev/Makefile.in: move pseudo stack down to 0x4f
4300           to prevent build errors on small devices
4301
4302 2006-10-28 Raphael Neider <rneider AT web.de>
4303
4304         * src/pic/gen.c (genFunction,genCall): drop "same code page"
4305           assumption within interrupt handlers, fixes #1584940
4306         * src/pic/glue.c (pic14_constructAbsMap): mark absolute symbols as
4307           "emitted" to avoid emitting them again in udata
4308
4309 2006-10-27 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4310
4311         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
4312         Removed.
4313
4314 2006-10-26 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4315
4316         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
4317         Initialize uart only if SM0 and SM1 are zero.  Also, use flag to turn
4318         on/off CR to CRLF conversion.
4319
4320 2006-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4321
4322         * doc/sdccman.lyx: updated IRQ section
4323
4324 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4325
4326         * device/lib/serial_io.c: removed
4327         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c
4328         replacements for serial_io.c
4329
4330 2006-10-24 Maarten Brock <sourceforge.brock AT dse.nl>
4331
4332         * src/z80/main.c (_process_pragma, _parseOptions): fixed bug 1583318
4333
4334 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4335
4336         * device/lib/serial_io.c: Default putchar() and getchar() for
4337           mcs51 uses serial port.
4338
4339 2006-10-23 Maarten Brock <sourceforge.brock AT dse.nl>
4340
4341         * src/mcs51/gen.c (movc): improved check for 0 and 1, see RFE 1582704
4342
4343 2006-10-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4344
4345         * support/regression/ports/mcs51/support.c: smaller
4346         _sdcc_external_startup()
4347         * device/lib/mcs51/crtxclear.asm: don't check high byte of l_PSEG
4348
4349 2006-10-20 Maarten Brock <sourceforge.brock AT dse.nl>
4350
4351         * device/lib/gbz80/crt0.s,
4352         * device/lib/gbz80/crt0_rle.s,
4353         * device/lib/gbz80/div.s,
4354         * device/lib/gbz80/fstubs.s,
4355         * device/lib/gbz80/heap.s,
4356         * device/lib/gbz80/mul.s,
4357         * device/lib/gbz80/putchar.s,
4358         * device/lib/gbz80/stubs.s,
4359         * device/lib/z80/crt0.s,
4360         * device/lib/z80/crt0_rle.s,
4361         * device/lib/z80/div.s,
4362         * device/lib/z80/fstubs.s,
4363         * device/lib/z80/heap.s,
4364         * device/lib/z80/mul.s,
4365         * device/lib/z80/putchar.s,
4366         * device/lib/z80/stubs.s: reverted, I was mistaken
4367
4368 2006-10-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4369
4370         * src/mcs51/peeph.def: peephole 238.x added check for notvolatile
4371         * support/regression/ports/mcs51/support.c: removed race
4372         condition on TI in _putchar allowing to use serial port mode 0
4373
4374 2006-10-20 Borut Razem <borut.razem AT siol.net>
4375
4376         * debugger/mcs51/sdcdb.c: replaced isblank() with isspace()
4377
4378 2006-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
4379
4380         * device/lib/gbz80/crt0.s,
4381         * device/lib/gbz80/crt0_rle.s,
4382         * device/lib/gbz80/div.s,
4383         * device/lib/gbz80/fstubs.s,
4384         * device/lib/gbz80/heap.s,
4385         * device/lib/gbz80/mul.s,
4386         * device/lib/gbz80/putchar.s,
4387         * device/lib/gbz80/stubs.s,
4388         * device/lib/z80/crt0.s,
4389         * device/lib/z80/crt0_rle.s,
4390         * device/lib/z80/div.s,
4391         * device/lib/z80/fstubs.s,
4392         * device/lib/z80/heap.s,
4393         * device/lib/z80/mul.s,
4394         * device/lib/z80/putchar.s,
4395         * device/lib/z80/stubs.s: removed all leading underscores from area names
4396
4397 2006-10-17 Maarten Brock <sourceforge.brock AT dse.nl>
4398
4399         * support/regression/ports/mcs51/support.c: use highest baudrate so the
4400           regression tests are not waiting in the simulator for simulated
4401           transmission of debug output
4402
4403 2006-10-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4404
4405         * device/lib/printf_large.c: slightly smaller
4406         * doc/sdccman.lyx: do not use spaces within html links
4407
4408 2006-10-16 Borut Razem <borut.razem AT siol.net>
4409
4410         * configure.in, configure, sdccconf_in.h, src/SDCCglobal,
4411           debugger/mcs51/Makefile.in, debugger/mcs51/sdcdb.[ch],
4412           debugger/mcs51/aclocal.m4, debugger/mcs51/acinclide.m4,
4413           debugger/mcs51/config.h.in, debugger/mcs51/configure.in,
4414           debugger/mcs51/configure:
4415           [ 1185668 ] add gnu readline support to sdcdb - enabled
4416
4417 2006-10-16 Raphael Neider <rneider AT web.de>
4418
4419         * src/pic/pcode.c (BankSelect): another fix on (partial) BANKSELs,
4420           fixes #1577882, removes close to all banking optimizations
4421
4422 2006-10-15 Maarten Brock <sourceforge.brock AT dse.nl>
4423
4424         * src/SDCCsymt.c (checkSClass): no error for uninitialised absolute
4425           variables in code memory
4426         * support/regression/tests/absolute.c: added test for this
4427
4428 2006-10-15 Raphael Neider <rneider AT web.de>
4429
4430         * src/pic/pcode.c (InsertBankSel): suppress BANKSELs for one bank
4431           devices,
4432           (BankSelect): emit BANKSEL before touching linker-placed regs,
4433           fixes #1570934
4434
4435 2006-10-10 Raphael Neider <rneider AT web.de>
4436
4437         * src/SDCCmain.c (optionsTable): accept --stack-size for PICs,
4438         * src/pic/device.c (pic14_getSharebankSize,pic14_getSharebankAddress),
4439         * src/pic/main.c (_pic14_parseOptions),
4440         * src/pic/main.h: mostly reverted to previous state, now use results
4441             from SDCCmain.c's argument parsing
4442
4443 2006-10-10 Borut Razem <borut.razem AT siol.net>
4444
4445         * debugger/mcs51/break.[ch], debugger/mcs51/cmd.c,
4446           debugger/mcs51/sdcdb.[ch], debugger/mcs51/simi.c:
4447           [ 1185668 ] add gnu readline support to sdcdb -
4448           prepared for READLINE, not enabled yet,
4449           thanks to <tal.bav AT gmail.com>
4450
4451 2006-10-10 Raphael Neider <rneider AT web.de>
4452
4453         * src/pic16/pcode.c (pic16_pCode2str): use isACCESS_BANK macro
4454         * src/pic16/devices.inc,
4455         * device/include/pic16 (pic18f[24]620.h),
4456         * device/include/pic18fregs.h,
4457         * device/lib/pic16/pics.all,
4458         * device/lib/pic16/libdev/pic18f[24]{620,525}.c): added support for
4459             18f2620, 18f4620, 18f2525, and 18f4525 devices, thanks to
4460             Gary Plumbridge and Anton Strobl
4461
4462 2006-10-10 Raphael Neider <rneider AT web.de>
4463
4464         * src/pic/main.c (_pic14_parseOptions): added --stack-loc=NUM and
4465           --stack-siz=NUM options to configure the argument passing stack
4466         * src/pic/main.h: added stackLocation and stackSize to pic14_options_t
4467         * src/pic/device.c (mapRegister): catch out-of-memory SIGSEGVs,
4468           (pic14_getSharebankSize): obey --stack-siz=NUM,
4469           (pic14_getSharebankAddress): obey --stack-loc=NUM
4470
4471 2006-10-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4472
4473         * doc/sdccman.lyx: added to the manual
4474         * doc/figures/ddd_example.png: added (neither pdflatex nor
4475         most browsers seem to like the .eps file)
4476
4477 2006-10-06 Bernhard Held <bernhard AT bernhardheld.de>
4478
4479         * src/SDCCglue.c (tempfileandname): changed un*x tmp search paths
4480         to /tmp and /var/tmp acc. LSB
4481         * src/SDCCast.c (addCast): Fixed bug 1571231: promote in case of
4482         RESULT_TYPE_IFX
4483         * support/regression/tests/onebyte.c: added test
4484
4485 2006-10-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4486
4487         * src/mcs51/gen.c: emitcode for "add a,0x%02x" requires only 8 bits.
4488
4489 2006-10-05 Borut Razem <borut.razem AT siol.net>
4490
4491         * partially fixed [ 1570701 ] peephole - not replacing code from multiline macros,
4492           thanks to dfulab:
4493           - sdcc.dsw: changed property eol-style to CRLF
4494           - support/scripts/resource.rc: replaced references to "afxres.h" with "winres.h"
4495
4496 2006-10-04 Raphael Neider <rneider AT web.de>
4497
4498         * device/include/pic/{pic16f84.h,pic16f84a.h},
4499         * device/lib/pic/libdev/{pic16f84.c,pic16f84a.c}: added PORT[AB]_bits
4500           from patch #1522504, thanks to Robas Teodor
4501
4502 2006-10-02 Maarten Brock <sourceforge.brock AT dse.nl>
4503
4504         * as/link/z80/lkarea.c: essentially reverted lnksect() to #4380 which
4505           fixes bug 1566015
4506
4507 2006-10-01 Maarten Brock <sourceforge.brock AT dse.nl>
4508
4509         * src/pic16/glue.c (pic16emitMaps),
4510         * src/pic/glue.c (pic14emitMaps): hopefully fixed bug 1568779
4511         * device/lib/gets.c: fixed bug 1568829,thanks Philipp Krause
4512         * device/lib/pic16/libc/string/memcpypgm2ram.c,
4513         * device/lib/pic16/libc/string/memcpyram2ram.c: fixed bug 1568836, thanks
4514           Philipp Krause
4515         * as/mcs51/asmain.c (asmbl, newdot): fixed problems with absolute areas
4516         * as/link/mcs51/lkmem.c (summary2): reverted, do do count abs segments
4517
4518 2006-09-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4519
4520         * support/librarian/sdcclib.c: Added option -l.
4521         * as/link/mcs51/lkmem.c: don't use absolute segments to compute memory
4522           usage totals.
4523         * device/lib/make51lib.bat: added.  Allows building mcs51 libraries easily
4524           using Windows command prompt.
4525
4526 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
4527
4528         * device/lib/libsdcc.lib: added module rand
4529         * src/ds390/ralloc.c (rematStr),
4530         * src/hc08/ralloc.c (rematStr),
4531         * src/mcs51/ralloc.c (rematStr),
4532         * src/z80/ralloc.c (rematStr): made output more consistent
4533         * src/mcs51/gen.c: cosmetic changes
4534
4535 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
4536
4537         * src/port.h: added mem.cabs_name to PORT
4538         * src/ds390/main.c,
4539         * src/hc08/main.c,
4540         * src/mcs51/main.c,
4541         * src/pic16/main.c,
4542         * src/pic/main.c,
4543         * src/xa51/main.c,
4544         * src/z80/main.c: added cabs_name initializers
4545         * src/SDCCglue.c (emitStaticSeg): allocate and initialize absolute
4546           constants
4547           (emitMaps): emit absolutes in code memory into cabs_name
4548         * src/SDCCmem.c,
4549         * src/SDCCmem.h: added memory map c_abs and defined CABS_NAME
4550         * src/ds390/gen.c (genCodePointerGet): fixed bug if left is a literal
4551         * support/regression/fwk/include/testfwk.h: added define for at
4552         * support/regression/tests/absolute.c: added, new
4553
4554 2006-09-29 Maarten Brock <sourceforge.brock AT dse.nl>
4555
4556         * src/mcs51/gen.c (genPlusIncr, genMinusDec, genAddrOf): small
4557           optimizations, see also patch 887161 by Stas Sergeev
4558         * src/mcs51/peeph.def(104, 207, 209, 212): disabled as they do not seem
4559           to be necessary anymore,
4560           (102, 103, 104, 127): renamed all occurances of bp to _bp
4561
4562 2006-09-27 Maarten Brock <sourceforge.brock AT dse.nl>
4563
4564         * device/include/mcs51/at89c51snd1c.h: fixed MSK_SREQ definition
4565           thanks Weston T. Schmidt for patch 1555221
4566         * src/mcs51/peeph.def: renamed rule 257 to 257.a, added 257.b
4567         * src/SDCCicode.c(geniCodeMultiply): small optimization
4568
4569 2006-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
4570
4571         * device/include/stdlib.h: added rand prototypes
4572         * device/lib/rand.c: new, added
4573         * device/lib/Makefile.in: added rand.c
4574         * src/z80/peeph.def,
4575         * src/z80/peeph-gbz80.def,
4576         * src/z80/peeph-z80.def: updated conditonals, fixed bug 1565908
4577
4578 2006-09-20 Raphael Neider <rneider AT web.de>
4579
4580         * device/lib/pic16/libio/i2c/i2cnack.c (i2c_nack): fixed ACKDT bit
4581
4582 2006-09-19 Maarten Brock <sourceforge.brock AT dse.nl>
4583
4584         * as/link/aslink.h: cosmetic changes
4585         * as/link/mcs51/Makefile.in,
4586         * as/link/z80/Makefile.in: fixed build on CF where VPATH is used
4587
4588 2006-09-17 Maarten Brock <sourceforge.brock AT dse.nl>
4589
4590         * as/link/aslink.h,
4591         * as/link/mcs51/aslink.h,
4592         * as/link/z80/aslink.h: merged and moved to as/link/
4593         * as/link/lkstore.c,
4594         * as/link/mcs51/lkstore.c: moved to as/link/
4595         * as/link/clean.mk: remove *.o
4596         * as/link/mcs51/alloc.h: deleted
4597         * as/link/mcs51/lkarea.c: added lnksect prototype
4598         * as/link/mcs51/lkdata.c,
4599         * as/link/mcs51/lklex.c,
4600         * as/link/mcs51/lkmain.c: renamed as_getline to lk_getline
4601         * as/link/mcs51/lkmem.c,
4602         * as/link/mcs51/lknoice.c: removed include strcmpi.h
4603         * as/link/mcs51/lksym.c: include stdlib.h instead of malloc.h or alloc.h
4604         * as/link/mcs51/aslink.dsp,
4605         * as/link/mcs51/Makefile.aslink,
4606         * as/link/mcs51/Makefile.bcc,
4607         * as/link/mcs51/Makefile.in: updated for moved files
4608         * as/link/z80/lkarea.c,
4609         * as/link/z80/lkhead.c,
4610         * as/link/z80/lklex.c,
4611         * as/link/z80/lklibr.c,
4612         * as/link/z80/lklist.c,
4613         * as/link/z80/lkmain.c,
4614         * as/link/z80/lkrloc.c,
4615         * as/link/z80/lksym.c: synced with mcs51
4616         * as/link/z80/lkdata.c,
4617         * as/link/z80/lkeval.c,
4618         * as/link/z80/lkihx.c,
4619         * as/link/z80/lks19.c: cosmetic changes
4620         * as/link/z80/Makefile.in,
4621         * as/link/z80/linkgbz80.dsp,
4622         * as/link/z80/linkz80.dsp: updated for moved files
4623
4624 2006-09-16 Borut Razem <borut.razem AT siol.net>
4625
4626         * debugger/mcs51/sdcdb.c: partially fixed
4627           [ 1203664 ] sdcdb fails to open files w. two "." periods
4628         * debugger/mcs51/simi.c, debugger/mcs51/symtab.c,
4629           debugger/mcs51/symtab.h: fixed indenting
4630         * configure.in, configure: up to date with latest Maarten's changes
4631
4632 2006-09-15 Maarten Brock <sourceforge.brock AT dse.nl>
4633
4634         as/link/mcs51
4635         as/aslink.dsp,                  as/link/mcs51/aslink.dsp,
4636         as/link/mcs51/aslink.h,         as/mcs51/aslink.h,
4637         as/link/mcs51/aslink.mak,       as/mcs51/aslink.mak,
4638         as/link/mcs51/lkaomf51.c,       as/mcs51/lkaomf51.c,
4639         as/link/mcs51/lkarea.c,         as/mcs51/lkarea.c,
4640         as/link/mcs51/lkdata.c,         as/mcs51/lkdata.c,
4641         as/link/mcs51/lkeval.c,         as/mcs51/lkeval.c,
4642         as/link/mcs51/lkhead.c,         as/mcs51/lkhead.c,
4643         as/link/mcs51/lkihx.c,          as/mcs51/lkihx.c,
4644         as/link/mcs51/lklex.c,          as/mcs51/lklex.c,
4645         as/link/mcs51/lklibr.c,         as/mcs51/lklibr.c,
4646         as/link/mcs51/lklist.c,         as/mcs51/lklist.c,
4647         as/link/mcs51/lkmain.c,         as/mcs51/lkmain.c,
4648         as/link/mcs51/lkmem.c,          as/mcs51/lkmem.c,
4649         as/link/mcs51/lknoice.c,        as/mcs51/lknoice.c,
4650         as/link/mcs51/lkrloc.c,         as/mcs51/lkrloc.c,
4651         as/link/mcs51/lks19.c,          as/mcs51/lks19.c,
4652         as/link/mcs51/lkstore.c,        as/mcs51/lkstore.c,
4653         as/link/mcs51/lksym.c,          as/mcs51/lksym.c,
4654         as/link/mcs51/Makefile.aslink,  as/mcs51/Makefile.aslink,
4655         as/link/mcs51/alloc.h,
4656         as/link/mcs51/clean.mk,
4657         as/link/mcs51/conf.mk,
4658         as/link/mcs51/Makefile.bcc,
4659         as/link/mcs51/Makefile.in,
4660         as/link/mcs51/readme.390,
4661         as/link/mcs51/strcmpi.c,
4662         as/link/mcs51/strcmpi.h,
4663         as/mcs51/clean.mk,
4664         as/mcs51/Makefile.bcc,
4665         as/mcs51/Makefile.in,
4666         configure,
4667         Makefile.in,
4668         sdcc.dsw: moved mcs51 linker to as/link/mcs51
4669
4670 2006-09-14 Maarten Brock <sourceforge.brock AT dse.nl>
4671
4672         * as/link,
4673         * as/link/Makefile.in,
4674         * as/link/z80/linkgbz80.dsp,
4675         * as/link/z80/linkz80.dsp,
4676         * configure,
4677         * link,
4678         * link/clean.mk,
4679         * link/Makefile.in,
4680         * link/README,
4681         * link/z80,
4682         * link/z80/aslink.h,
4683         * link/z80/clean.mk,
4684         * link/z80/conf.mk,
4685         * link/z80/linkgbz80.dsp,
4686         * link/z80/linkz80.dsp,
4687         * link/z80/lkarea.c,
4688         * link/z80/lkdata.c,
4689         * link/z80/lkeval.c,
4690         * link/z80/lkgb.c,
4691         * link/z80/lkgg.c,
4692         * link/z80/lkhead.c,
4693         * link/z80/lkihx.c,
4694         * link/z80/lklex.c,
4695         * link/z80/lklibr.c,
4696         * link/z80/lklist.c,
4697         * link/z80/lkmain.c,
4698         * link/z80/lkrloc.c,
4699         * link/z80/lks19.c,
4700         * link/z80/lksym.c,
4701         * link/z80/Makefile.in,
4702         * Makefile.in,
4703         * sdcc.dsw: moved link/ to as/link/
4704
4705 2006-09-11 Maarten Brock <sourceforge.brock AT dse.nl>
4706
4707         * as/mcs51/i51mch.c (machine): fixed warning
4708
4709 2006-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
4710
4711         * as/mcs51/i51mch.c (machine): S_DJNZ fixed bug 1554318
4712
4713 2006-09-09 Borut Razem <borut.razem AT siol.net>
4714
4715         * debugger/mcs51/sdcdb.c, debugger/mcs51/simi.c:
4716           sdcdb WIN32 native port
4717         * src/clean.mk: fixed
4718
4719 2006-09-08 Borut Razem <borut.razem AT siol.net>
4720
4721         * doc/sdccman.lyx: SDCDB and ucSim are available on Win32 platforms.
4722
4723 2006-09-08 Raphael Neider <rneider AT web.de>
4724
4725         * src/pic16/main.c (_pic16_linkEdit,pic16_linkCmd),
4726         * src/pic/main.c(_pic14_do_link, linkCmd): pass "-w" and "-r"
4727             to gplink to disable processor mismatch warning and to allow
4728             the use of devices with only aliased (shared) memory banks,
4729           (_pic16_genAssemblerPreamble): include pXXX.inc on --mplab-comp
4730
4731 2006-09-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4732
4733         * doc/sdccman.lyx: Some re-formating plus example on using
4734           #pragma preproc_asm +/-
4735
4736 2006-09-07 Borut Razem <borut.razem AT siol.net>
4737
4738         * support/scripts/sdcc.nsi: added SDCDB executables in a separate
4739           section
4740
4741 2006-09-06 Borut Razem <borut.razem AT siol.net>
4742
4743         * support/scripts/sdcc.nsi: fixed Error: unterminated string parsing
4744           line at sdcc.nsi:153
4745         * sdcc/debugger/mcs51/simi.c: argsToCmdLine() fixes
4746
4747 2006-09-05 Borut Razem <borut.razem AT siol.net>
4748
4749         * configure.in, configure: support for winsock2
4750         * debugger/mcs51/break.h, debugger/mcs51/cmd.c,
4751           debugger/mcs51/cmd.h, debugger/mcs51/sdcdb.c,
4752           debugger/mcs51/sdcdb.h, debugger/mcs51/simi.c,
4753           debugger/mcs51/simi.h, debugger/mcs51/symtab.c,
4754           debugger/mcs51/symtab.h: sdcdb WIN32 native port
4755
4756 2006-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
4757
4758         * src/SDCCopt.c (cnvToFcall): fixed bug 1551947 by updating OP_USES
4759           and OP_DEFS
4760         * support/regression/tests/bug1551947.c: new, added
4761         * src/SDCCsymt.h: strings are char* not byte*
4762
4763 2006-09-05 Raphael Neider <rneider AT web.de>
4764
4765         * device/lib/pic16/libdev/pic18f4550.c,
4766           device/include/pic16/pic18f4550.h: added PORTD/TRISD
4767             declarations/definitions from patch #1520949
4768
4769 2006-09-05 Raphael Neider <rneider AT web.de>
4770
4771         * src/pic16/gen.c (genPackBits): fix assignment to 8-bit,
4772           byte-aligned bitfields, fixes #1539278
4773
4774 2006-09-05 Raphael Neider <rneider AT web.de>
4775
4776         * src/pic/gen.c (genReceive): skip unreferenced arguments,
4777           fixes #1544120
4778
4779 2006-09-04 Borut Razem <borut.razem AT siol.net>
4780
4781         * support/scripts/sdcc.nsi: move ucSim executables to a separate section
4782         * support/scripts/sdcc_cygwin_mingw32: don't disable ucsim,
4783           -mno-cygwin is a part of the compiler name
4784         * support/scripts/sdcc_mingw32: don't disable ucsim
4785
4786 2006-09-03 Borut Razem <borut.razem AT siol.net>
4787
4788         * sdcc.spec: corrected for 2.6.0. Thanks to Christer Weinigel.
4789         * device/lib/Makefile.in device/lib/clean.mk: small but essential corrections
4790
4791 2006-09-03 Raphael Neider <rneider AT web.de>
4792
4793         * src/pic/ralloc.c,
4794         * src/pic/pcode.c (InitReuseRegs): allocate registers with pseudo
4795           indices >= 0x1000 to disambiguate them from fixed regs __at(addr),
4796           fixes #1550049
4797
4798 2006-09-01 Borut Razem <borut.razem AT siol.net>
4799
4800         * sim/ucsim/cmd.src/cmdutil.cc: #include <sys/time.h> and <unistd.h>
4801           to make ppc-osx happy
4802
4803 2006-08-31 Borut Razem <borut.razem AT siol.net>
4804
4805         * sim/ucsim/cmd.src/newcmdposix.cc: #include <assert.h>
4806         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
4807         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
4808         * support/regression/ports/ds390/spec.mk,
4809           support/regression/ports/mcs51/spec.mk,
4810           support/regression/ports/xa51/spec.mk: introduced DEV_NULL variable.
4811           To run regression tests in mingw environment:
4812           make DEV_NULL=NUL CC=gcc
4813
4814 2006-08-30 Borut Razem <borut.razem AT siol.net>
4815
4816         * sim/ucsim/cmd.src/newcmdposix.cc, sim/ucsim/cmd.src/newcmdposixcl.h,
4817           sim/ucsim/cmd.src/newcmdwin32.cc, sim/ucsim/cmd.src/newcmdwin32cl.h,
4818           sim/ucsim/app.cc, sim/ucsim/appcl.h, sim/ucsim/configure,
4819           sim/ucsim/configure.in, sim/ucsim/ddconfig_in.h, sim/ucsim/error.cc,
4820           sim/ucsim/errorcl.h, sim/ucsim/option.cc, sim/ucsim/optioncl.h,
4821           sim/ucsim/utils.cc, sim/ucsim/utils.h, sim/ucsim/cmd.src/Makefile.in,
4822           sim/ucsim/avr.src/avr.cc, sim/ucsim/avr.src/avrcl.h,
4823           sim/ucsim/cmd.src/bp.cc, sim/ucsim/cmd.src/bpcl.h,
4824           sim/ucsim/cmd.src/cmdconf.cc, sim/ucsim/cmd.src/cmdgui.cc,
4825           sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/cmdset.cc,
4826           sim/ucsim/cmd.src/cmdsetcl.h, sim/ucsim/cmd.src/cmdstat.cc,
4827           sim/ucsim/cmd.src/cmduc.cc, sim/ucsim/cmd.src/cmduccl.h,
4828           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
4829           sim/ucsim/cmd.src/command.cc, sim/ucsim/cmd.src/commandcl.h,
4830           sim/ucsim/cmd.src/get.cc, sim/ucsim/cmd.src/getcl.h,
4831           sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/newcmd.cc,
4832           sim/ucsim/cmd.src/newcmdcl.h, sim/ucsim/cmd.src/set.cc,
4833           sim/ucsim/cmd.src/show.cc, sim/ucsim/cmd.src/timer.cc,
4834           sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
4835           sim/ucsim/s51.src/Makefile.in, sim/ucsim/s51.src/interrupt.cc,
4836           sim/ucsim/s51.src/interruptcl.h, sim/ucsim/s51.src/pca.cc,
4837           sim/ucsim/s51.src/pcacl.h, sim/ucsim/s51.src/port.cc,
4838           sim/ucsim/s51.src/portcl.h, sim/ucsim/s51.src/serial.cc,
4839           sim/ucsim/s51.src/serialcl.h, sim/ucsim/s51.src/timer0.cc,
4840           sim/ucsim/s51.src/timer0cl.h, sim/ucsim/s51.src/timer1.cc,
4841           sim/ucsim/s51.src/timer1cl.h, sim/ucsim/s51.src/timer2.cc,
4842           sim/ucsim/s51.src/timer2cl.h, sim/ucsim/s51.src/uc390.cc,
4843           sim/ucsim/s51.src/uc390cl.h, sim/ucsim/s51.src/uc390hw.cc,
4844           sim/ucsim/s51.src/uc390hwcl.h, sim/ucsim/s51.src/uc51.cc,
4845           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/wdt.cc,
4846           sim/ucsim/s51.src/wdtcl.h, sim/ucsim/sim.src/hw.cc,
4847           sim/ucsim/sim.src/hwcl.h, sim/ucsim/sim.src/mem.cc,
4848           sim/ucsim/sim.src/memcl.h, sim/ucsim/sim.src/obsolete.cc,
4849           sim/ucsim/sim.src/obsolete.h, sim/ucsim/sim.src/sim.cc,
4850           sim/ucsim/sim.src/simcl.h, sim/ucsim/sim.src/stack.cc,
4851           sim/ucsim/sim.src/stackcl.h, sim/ucsim/sim.src/test_mem_speed.cc,
4852           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
4853           sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
4854           sim/ucsim/z80.src/z80.cc, sim/ucsim/z80.src/z80cl.h:
4855           ucsim WIN32 native port
4856
4857 2006-08-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4858
4859         * doc/sdccman.lyx: added note on dynamic memory heap initialization
4860
4861 2006-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
4862
4863         * src/mcs51/gen.c (genAnd, genOr, genXor): fixed bug 1546986
4864         * src/ds390/gen.c (aopGetUsesAcc): handle AOP_DPTR2 and AOP_DPTRn too
4865
4866 2006-08-26 Maarten Brock <sourceforge.brock AT dse.nl>
4867
4868         * src/ds390/gen.c (genAnd, genOr, genXor): fixed bug 1546986
4869         * support/regression/tests/bug1546986.c: new, added
4870         * as/mcs51/.cvsignore,
4871         * debugger/mcs51/.cvsignore,
4872         * src/.cvsignore: deleted
4873
4874 2006-08-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4875
4876         * device/include/mcs51/P89c51RD2.h: fixed bug 1546936 (error in sbit
4877           definitions)
4878
4879 2006-08-20 Borut Razem <borut.razem AT siol.net>
4880
4881         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h:
4882           removed cl_listen_console::match(), cl_console::match(),
4883           restructured cl_commander::proc_input()
4884
4885 2006-08-16 Borut Razem <borut.razem AT siol.net>
4886
4887         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h,
4888           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
4889           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/uc.cc: code cleaning
4890
4891 2006-08-14 Borut Razem <borut.razem AT siol.net>
4892
4893         * support/regression/Makefile.in,
4894           support/regression/ports/pic14/gpsim.cmd,
4895           support/regression/ports/pic14/spec.mk,
4896           support/regression/ports/pic14/support.c:
4897           added pic14 regression test
4898
4899 2006-08-14 Maarten Brock <sourceforge.brock AT dse.nl>
4900
4901         * as/doc/asxhtm.html: documented changed ABS behaviour
4902         * as/doc/README: fixed some typos
4903
4904 2006-08-13 Maarten Brock <sourceforge.brock AT dse.nl>
4905
4906         * support/regression/tests/float_trans.c: disabled test if __STDC_IEC_559__
4907           not defined on host
4908
4909 2006-08-12 Borut Razem <borut.razem AT siol.net>
4910
4911         * support/regression/fwk/include/testfwk.h,
4912           support/regression/fwk/lib/testfwk.c,
4913           support/regression/generate-cases.py,
4914           support/regression/Makefile.in:
4915           regression test framework does not depend on function pointers and
4916           variable arguments
4917
4918 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
4919
4920         * device/include/stddef.h: c temporary hack to fix bug 1518273
4921
4922 2006-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4923
4924         * device/include/mcs51/cc2510fx.h: added
4925         * src/z80/z80.dsp, src/gbz80/gbz80.dsp: added support/Util/strcmpi.ch
4926           to projects.
4927
4928 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
4929
4930         * as/z80/assym.c (mlookup): ignore case when looking up mnemonics
4931         * as/z80/Makefile.in: added strcmpi.c
4932         * as/z80/z80adr.c: added upper case registers and lower case conditionals
4933         * support/Util/strcmpi.ch: added with intention to remove from mcs51/hc08
4934
4935 2006-08-08 Maarten Brock <sourceforge.brock AT dse.nl>
4936
4937         * device/lib/gbz80/asm_strings.s,
4938         * device/lib/gbz80/crt0_rle.s,
4939         * device/lib/gbz80/div.s,
4940         * device/lib/gbz80/mul.s,
4941         * device/lib/gbz80/shift.s,
4942         * device/lib/z80/asm_strings.s,
4943         * device/lib/z80/crt0_rle.s,
4944         * device/lib/z80/div.s,
4945         * device/lib/z80/mul.s,
4946         * device/lib/z80/shift.s: changed to all lower case menmonics except the
4947           flags which are all upper case
4948
4949 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
4950
4951         * as/z80/asm.h: made CASE_SENSITIVE 1
4952         * link/z80/aslink.h: made CASE_SENSITIVE 1
4953         * src/z80/gen.c (throughout): made all conditionals upper case
4954         * support/regression/tests/bug1503067.c: new
4955
4956 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
4957
4958         * src/z80/gen.c (aopPut): fixed bug !*ixy should be !*iyx,
4959           (shiftIntoPair): added case 2 for PAIR_IY,
4960           (setupToPreserveCarry): replaced parameters with iCode and check if
4961            PAIR_DE is in use to fix bug 1399290,
4962           (genPlus, genMinus): updated call to setupToPreserveCarry
4963         * support/regression/tests/bug1399290.c: new
4964
4965 2006-08-06 Maarten Brock <sourceforge.brock AT dse.nl>
4966
4967         * device/lib/Makefile.in (Z80SOURCES): enabled float support
4968         * sim/ucsim/z80.src/inst.cc (inst_rst): generate breakpoint on RST8,ACC==0
4969         * src/ds390/gen.c (shiftRLong),
4970         * src/hc08/gen.c (shiftLLong, shiftRLong): fixed bug 1533966
4971         * src/mcs51/gen.c (sameReg): changed to sameByte,
4972           (xch_a_aopGet): new,
4973           (shiftL2Left2Result, shiftR2Left2Result, shiftRLeftOrResult, shiftLLong,
4974            shiftRLong): fixed bug 1533966
4975         * src/z80/gen.c (shiftR2Left2Result, shiftL2Left2Result, genlshTwo,
4976           genLeftShiftLiteral, genrshTwo, genRightShiftLiteral): fixed bug 1533966
4977         * support/regression/Makefile.in: disabled z80, enabled ucz80
4978         * support/regression/tests/float_trans.c: enabled test for z80 and host
4979         * support/regression/tests/shifts2.c: new, for testing bug 1533966
4980
4981 2006-08-01 Borut Razem <borut.razem AT siol.net>
4982
4983         * src/mcs51/gen.c, src/dc390/gen.c: fixed warning:
4984           comparison is always false due to limited range of data type
4985           on PPC64 machine (openpower-linux1) where "char = unsigned char"
4986
4987 2006-08-01 Maarten Brock <sourceforge.brock AT dse.nl>
4988
4989         * sim/ucsim/hc08.src/hc08mac.h: removed faulty and unused add_u16_disp
4990         * sim/ucsim/hc08.src/hc08.cc: removed faulty and unused int8
4991         * sim/ucsim/z80.src/z80mac.h (add_u16_disp): use explicit signed char cast
4992         * sim/ucsim/z80.src/z80.cc: removed faulty and unused int8
4993
4994 2006-07-31 Borut Razem <borut.razem AT siol.net>
4995
4996         * sim/ucsim/configure, sim/ucsim/cmd.src/newcmdcl.h,
4997           sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/cmdutil.cc,
4998           sim/ucsim/z80.src/Makefile.in, sim/ucsim/configure.in,
4999           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/hc08.src/hc08.cc,
5000           sim/ucsim/ddconfig_in.h, sim/ucsim/s51.src/Makefile.in,
5001           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/serialcl.h,
5002           sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/serial.cc,
5003           sim/ucsim/app.cc, sim/ucsim/avr.src/Makefile.in:
5004           enable ucsim mingw compilation. Serial port is disabled,
5005           since it uses termios.h API, which is not available on native
5006           WIN32
5007
5008 2006-07-31 Borut Razem <borut.razem AT siol.net>
5009
5010         * Small Device C Compiler 2.6.0 released
5011         * support/scripts/sdcc.nsi: added FULL_DOC option
5012         * .version, doc/sdccman.lyx: changed sdcc version to 2.6.1
5013
5014 2006-07-28 Borut Razem <borut.razem AT siol.net>
5015
5016         * support/scripts/sdcc.nsi: remove $INSTDIR/include/asm/pic16/*.h
5017         * doc/INSTALL.txt: updated
5018
5019 2006-07-27 Borut Razem <borut.razem AT siol.net>
5020
5021         * device/lib/pic/Makefile.in, device/lib/pic/Makefile.subdir,
5022           device/lib/pic/libdev/Makefile.in: fixed bug
5023           [ 1438354 ] pic libsdcc: distclean doesn't work
5024         * device/lib/pic16/Makefile.in, device/lib/pic16/Makefile.subdir,
5025           device/lib/pic16/libio/Makefile.in: fixed bug
5026           [ 1438344 ] pic16 lib: clean doesn't work properly
5027         * doc/knownbugs.html removed [ 1438354 ] and [ 1438344 ] from the list
5028
5029 2006-07-26 Maarten Brock <sourceforge.brock AT dse.nl>
5030
5031         * device/lib/pic/libsdcc/fsdiv.c,
5032         * device/lib/pic/libsdcc/fsmul.c,
5033         * device/lib/pic16/libsdcc/float/fsdiv.c,
5034         * device/lib/pic16/libsdcc/float/fsmul.c,
5035         * device/lib/_fsdiv.c,
5036         * device/lib/_fsmul.c: bugfix, handle too large and too small numbers
5037         * support/regression/tests/bug1520966.c: added
5038         * doc/knownbugs.html: removed [ 1520966 ] from the list
5039
5040 2006-07-25 Borut Razem <borut.razem AT siol.net>
5041
5042         * configure.in, configure, sdccconf_in.h: fixed bug
5043           [ 1519095 ] regression test onebyte.c fails on ppc64 host
5044         * doc/knownbugs.html: removed [ 1519095 ] from the list
5045
5046 2006-07-25 Maarten Brock <sourceforge.brock AT dse.nl>
5047
5048         * doc/knownbugs.html: added, contains list of known bugs at release
5049         * device/include/mcs51/compiler.h: fixed SFR32 for SDCC
5050
5051 2006-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
5052
5053         * device/include/mcs51/compiler.h: added SFRX for xdata based special
5054           function registers and corrected defaults with additional warning
5055         * device/lib/malloc.c: cosmetic changes
5056         * device/lib/realloc.c: bugfix for bug #1496907, Thanks Efim Monyak
5057         * src/ds390/ralloc.c (getRegBitNoSpil): reenabled,
5058           (fillGaps): and used it
5059
5060 2006-07-20 Raphael Neider <rneider AT web.de>
5061
5062         * src/pic/device.c (addMemRange,assignRegister): suppress verbose
5063           output unless SDCCPICDEBUG is set
5064         * device/lib/pic16/Makefile.rules (%.lib target): suppress verbose
5065           output if SILENT is set
5066
5067 2006-07-11 Borut Razem <borut.razem AT siol.net>
5068
5069         * doc/README.txt: updated
5070
5071 2006-07-10 Borut Razem <borut.razem AT siol.net>
5072
5073         * support/scripts/sdcc.nsi: added device/include/asm/pic/features.h and
5074           device/lib/src/pic/libm/*.c and device/lib/src/pic16/libsdcc/stack/*.S
5075           in WIN32 installation
5076         * .version, sdcc.spec, doc/sdccman.lyx: changed sdcc version to 2.6.0 -
5077           release candidate 1
5078
5079 2006-07-08 Maarten Brock <sourceforge.brock AT dse.nl>
5080
5081         * device/include/mcs51/XC866.h: added sbit definitions for Px_x, P1_x, P2_x
5082         * src/pic16/glue.c (initPointer): fixed bug 1496419 for pic16
5083
5084 2006-07-06 Maarten Brock <sourceforge.brock AT dse.nl>
5085
5086         * src/hc08/gen.c (genAddrOf): fixed bug when offset on stack is >127
5087
5088 2006-07-06 Borut Razem <borut.razem AT siol.net>
5089
5090         * support/regression/tests/bitfields.c:
5091           fixed bug [ 1518322 ] regression test bitfields fails on ppc hosts
5092         * support/regression/tests/constantRange.c:
5093           fixed bug [ 1518317 ] regression test constantRange fails on alpha host
5094
5095 2006-07-04 Borut Razem <borut.razem AT siol.net>
5096
5097         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in,
5098           src/port.mk,
5099           src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
5100           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
5101           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
5102           reverted changes from 2006-07-03
5103         * Makefile.common.in: added @CPPFLAGS@ to CPPFLAGS
5104         * support/regression/Makefile.in, support/regression/ports/host/spec.mk:
5105           added CPPFLAGS, used by the host port
5106
5107 2006-07-03 Bernhard Held <bernhard AT bernhardheld.de>
5108
5109         * support/regression/valdiag/tests/switch.c,
5110         * support/regression/valdiag/tests/constantRange.c: adapted to gcc 4
5111         * support/regression/tests/libmullong.c: fixed for host
5112         * support/regression/ports/host/spec.mk: disable all warnings for host,
5113         SDCC runs with --less-pedantic too
5114
5115 2006-07-03 Borut Razem <borut.razem AT siol.net>
5116
5117         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in:
5118           defined CPPFLAGS
5119         * src/port.mk: defined CPPFLAGS, renamed to src/port.mk.in
5120         * src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
5121           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
5122           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
5123           include ../port.mk
5124         * sim/ucsim/main_in.mk, sim/ucsim/avr.src/Makefile.in,
5125           sim/ucsim/gui.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
5126           sim/ucsim/s52.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
5127           sim/ucsim/xa.src/Makefile.in: ignore header files for dependencies
5128
5129 2006-07-02 Raphael Neider <rneider AT web.de>
5130
5131         * src/pic16/devices.inc,
5132         * device/include/pic16/pic18fregs.h,
5133         * device/include/pic16/pic18f4550.h,
5134         * device/lib/pic16/pics.all,
5135         * device/lib/pic16/libdev/pic18f4550.c: added support for 18f4550
5136
5137 2006-07-01 Bernhard Held <bernhard AT bernhardheld.de>
5138
5139         * as/hc08/lkaomf51.c (OutputName),
5140         * as/mcs51/lkaomf51.c (OutputName),
5141         * as/z80/asmain.c (asmbl),
5142         * src/ds390/main.c (asmLineNodeFromLineNode),
5143         * src/hc08/ralloc.c (hc08_assignRegisters),
5144         * src/mcs51/main.c (asmLineNodeFromLineNode),
5145         * src/xa51/ralloc.c (checkRegMask),
5146         * src/xa51/gen.c (emitcode),
5147         * src/z80/gen.c (_emit2),
5148         * src/SDCCast.c (searchLitOp),
5149         * src/SDCCglobl.h,
5150         * support/packihx/packihx.c,
5151         * support/Util/MySystem.c (split_command): fix gcc 4 warnings
5152         * src/ds390/gen.c (aopPutUsesAcc),
5153         * src/ds390/ralloc.c (getRegBitNoSpil): unused, therefore disabled
5154         * support/regression/tests/libmullong.c (mullong_wrapper),
5155         * src/SDCCsymt.c (powof2),
5156         * src/SDCCast.c,
5157         * src/SDCCicode.c: renamed TYPE_WORD by TYPE_TARGET_INT and so on
5158         * src/SDCCsymt.h: added TYPE_TARGET_*
5159         * src/SDCCutil.c (doubleFromFixed16x16, fixed16x16FromDouble),
5160         * src/SDCCutil.h (doubleFromFixed16x16, fixed16x16FromDouble): moved to
5161         SDCCast because 1) header problems 2) this is the right place
5162         * src/SDCCast.c (doubleFromFixed16x16, fixed16x16FromDouble): added
5163         * src/SDCCval.h (doubleFromFixed16x16, fixed16x16FromDouble): added
5164         prototype
5165
5166 2006-06-29 Bernhard Held <bernhard AT bernhardheld.de>
5167
5168         * src/SDCCicode.h: removed buggy semicolon in unused macro
5169         * src/SDCClrange.c (findPrevUseSym, rlivePoint): fixed bug #1486853,
5170         search for previous definiton of auto symbols too,
5171         (findPrevUse): fixed logic of emitWarnings
5172
5173 2006-06-26 Raphael Neider <rneider AT web.de>
5174
5175         * src/pic16/gen.c (genFunction, genEndFunction): also preserve
5176           PCLATH and PCLATU on interrupts, potentially fixes #1505141
5177
5178 2006-06-25 Raphael Neider <rneider AT web.de>
5179
5180         * device/lib/pic/libm: NEW, added math library functions
5181         * device/lib/pic/libsdcc: NEW; added float support functions
5182         * device/lib/pic/{Makefile.in,configure.in,configure}: added libm/
5183         * device/include/pic/{limits.h,errno.h,sdcc-lib.h,float.h,math.h}:
5184           NEW, added math related headers
5185         * device/include/asm/pic/features.h: NEW
5186         * src/pic/gen.c (emitpcode_real): emit warning on NULL pCodeOp,
5187           (popGet): allow larger offsets for AOP_PCODE,
5188           (genDataPointerSet): handle literals explicitly, more debug output,
5189           (genAssign): fixed for float using aopLiteral ;-)
5190         * src/pic/glue.c (pic14createInterruptVect): inserted pagesel before
5191           GOTO initialisation routine
5192         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): set wasUsed
5193           flag on registers, fixes #1469043 (local variables do not work)
5194         * src/pic/main.c (_pic14_do_link),
5195         * src/pic16/main.c (_pic16_linkEdit): use fullDstFileName if
5196           available
5197
5198 2006-06-25 Borut Razem <borut.razem AT siol.net>
5199
5200         * device/lib/pic16/libc/stdio/sprintf.c: return the number of
5201           characters printed (not including the trailing '\0' used to end
5202           output to strings). Problem detected in regression test bug-927659.c.
5203           NOTE: printf() family functions should return int instead
5204           unsigned int!
5205         * device/lib/pic16/libc/stdio/vfprintf.c: "%%" prints "%", unknown
5206           specifier are printed as themselves
5207         * sdcc/support/regression/tests/bug1057979.c: pic16 printf doesn't
5208           support flags, width and precision specifiers
5209
5210 2006-06-24 Borut Razem <borut.razem AT siol.net>
5211
5212         * sdcc/support/regression/tests/bitvars.c: added gbz80, pic16 and pic16
5213           to the list of sdcc tagrets not supporting bit type
5214         * sdcc/support/regression/tests/bug-905992.c.c: excluded regression
5215           testfor pic16 due to bug:
5216           [ 1511794 ] pic16: regression test bug-895992.c fails
5217
5218 2006-06-24 Maarten Brock <sourceforge.brock AT dse.nl>
5219
5220         * src/mcs51/gen.c (genCmp): optimization for RFE 1162453
5221         * src/SDCCglue.c (initPointer), fixed bug 1496419
5222         * support/regression/tests/bug1496419.c: new, added
5223
5224 2006-06-22 Borut Razem <borut.razem AT siol.net>
5225
5226         * support/regression/ports/pic16/support.c: use gpsim usart module from
5227           libgpsim_modules library
5228
5229 2006-06-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5230
5231         * device/include/mcs51/at89c51ed2.h: Fixed bug 1510144 changed
5232         IP0H to IPH0.
5233
5234 2006-06-19 Raphael Neider <rneider AT web.de>
5235
5236         * src/pic/glue.h,src/pic16/glue.h: added prototypes
5237         * src/pic/glue.c,src/pic16/glue.c (pic1x_stringInSet,
5238           pic1x_emitSymbolIfNew): NEW, check for a string in a set,
5239           (pic14printExterns,pic14printPublics,pic16printPublics,
5240           pic16_printExterns): use new functions to emit symbols
5241           (picglue,pic16glue): emit publics before emitting externs
5242         * src/pic/gen.c,src/pic16/gen.c (genFunction): remember the names of
5243           locally defined functions to avoid bug #1443651
5244         * support/regression/tests/bug-716242.c: removed pic16 workaround
5245         * support/regression/ports/pic16/spec.mk: ignore errors during build
5246
5247 2006-06-19 Raphael Neider <rneider AT web.de>
5248
5249         * src/pic/glue.h: added pic14aopLiteral prototype
5250         * src/pic/glue.c (pic14aopLiteral): return unsigned int
5251         * src/pic/gen.c: removed stdint.h dependency
5252           (aopGet): use Safe_strdup()
5253           (bitpatternFromVal): removed, replaced use with pic14aopLiteral
5254           (genDataPointerSet): use pic14aopLiteral()
5255         * src/pic16/glue.h, src/pic16/glue.c, src/pic16/gen.c: similar changes
5256           for pic16; thanks to Bernhard and Maarten
5257
5258 2006-06-18 Borut Razem <borut.razem AT siol.net>
5259
5260         * support/regression/tests/structflexarray.c: flexible array members
5261           not supported by gcc < 3
5262         * sim/ucsim/configure, sim/ucsim/configure.in: do not compile serio
5263           GUI tool by default
5264         * src/pic/gen.c: don't include [p]strdin.h on solaris
5265         * support/Util/pstdint.h: addad svn attributes
5266         * support/regression/tests/constantRange.c,
5267           support/regression/tests/rotate.c: include inttypes.h instead
5268           stdint.h on solaris, addad svn attributes
5269
5270 2006-06-18 Raphael Neider <rneider AT web.de>
5271
5272         * src/SDCCsymt.c (initCSupport): change return type of divschar to
5273           int for PIC16
5274         * src/pic16/genarith.c (genAddLit): sign-extend via standard routine
5275           (pic16_genMinusBits): simplified sign-extension
5276           (pic16_genUMult8XLit_8,pic16_genUMult8X8_8): renamed to
5277             pic16_genMult8XLit_n resp. pic16_genMult8X8_n, fixed and
5278             adjusted to correctly handle mixed-signed operands, disabled
5279             now unused multiplciation routines
5280         * src/pic16/gen.c (pic16_pushpCodeOp): fixed to handle literals
5281           (assignResultValue): added argument denoting the size of the result
5282             as returned by the function (fixes upcasts in assigning from
5283             function calls: char foo(); int i = foo();)
5284           (genCall,genPcall,genGenPointerGet,genReceive): pass size of
5285             function result to assignResultValue
5286           (genMult): disabled inlined multiplication code
5287           (genDiv): augmented to also handle the modulus operator, fixed to
5288             handle mixed-signed operands correctly
5289           (genMod): simply call genDiv, disabled unused code
5290           (genAssign): fixed missing (sign-)extension on result
5291         * src/pic16/main.c (_hasNativeMulFor): accept literals [-128..256) as
5292             valid char operands, allow signed operands for native code, added
5293             division and modulo operator handling
5294         * device/lib/pic16/libsdcc/char/divschar.c: divschar returns an int
5295
5296         As a consequence, onebyte.c (if split into two files) and muldiv.c
5297         pass regression tests.
5298
5299 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5300
5301         * doc/Makefile.in: two runs of makeindex seem needed to get
5302         correct page references in the index of sdccman.pdf
5303         * doc/sdccman.lyx: mentioned cmon51, added links, small changes
5304
5305 2006-06-17 Borut Razem <borut.razem AT siol.net>
5306
5307         * sdcc/device/lib/Makefile.in: corrected PORTINCDIR path
5308
5309 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5310
5311         * doc/sdccman.lyx: updated, added (porting source code, debugging),
5312         mentioned ec2drv and paulmon
5313
5314 2006-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
5315
5316         * as/mcs51/lkarea.c (lnkarea2): clear new xdatamap, bugfix for two
5317           consecutive abs areas
5318           (find_empty_space, allocate_space): added map to handle codemap or
5319            xdatamap,
5320           (lnksect2): renamed rloc to locIndex, fixed bug 960060 by handling
5321            absolute idata and xdata
5322         * as/mcs51/lkmem.c (summary2): updated legend
5323
5324 2006-06-16 Raphael Neider <rneider AT web.de>
5325
5326         * src/pic16/gen.c (shiftR2Left2Result): fixed bug #1507127
5327
5328 2006-06-13 Maarten Brock <sourceforge.brock AT dse.nl>
5329
5330         * debugger/mcs51/cmd.c (cmdListFunctions): fixed bugs 1181163 and
5331           1208515
5332         * src/SDCClrange.c (findPrevUse): fixed bug 1294475
5333
5334 2006-06-13 Vangelis Rokas <vrokas AT users.sourceforge.net>
5335
5336         * src/port.h (struct PORT): added field gp_tags, to hold the tag
5337         value of generic pointers,
5338         * src/avr/main.c,
5339           src/ds390/main.c,
5340           src/hc08/main.c,
5341           src/izt/i186.c,
5342           src/izt/tlcs900h.c,
5343           src/mcs51/main.c,
5344           src/pic/main.c,
5345           src/pic16/main.c,
5346           src/xa51/main.c,
5347           src/z80/main.c: PORT structure, added elements for gp_tags field,
5348         * src/SDCCsymt.h: replaced hardwired values of GPTYPE_* macros with
5349         fields in the PORT structure of each port,
5350         * src/SDCCast.c (decorateType): allow processing of generic pointers
5351         for PIC16 port (FPTRSIZE equals GPTRSIZE), also set GPTYPE_NEAR for
5352         S_FIXED symbols
5353
5354 2006-06-12 Maarten Brock <sourceforge.brock AT dse.nl>
5355
5356         * link/z80/lkgb.c,
5357         * link/z80/lkgg.c,
5358         * src/pic16/gen.c,
5359         * src/pic16/main.c,
5360         * src/pic16/pcode.c,
5361         * src/pic/main.c,
5362         * src/pic/pcoderegs.c,
5363         * src/SDCCicode.c,
5364         * src/SDCCmain.c,
5365         * src/SDCCsymt.c: replaced all exit(-1) by exit(EXIT_FAILURE) to fix
5366           bug 1504689 on minGW
5367
5368 2006-06-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5369
5370         * device/lib/printf_tiny.c: fixed bug #1465675 (%x format specifier)
5371
5372 2006-06-12 Bernhard Held <bernhard AT bernhardheld.de>
5373
5374         * src/SDCCast.c (backPatchLabels): fixed bug #1504636
5375
5376 2006-06-11 Maarten Brock <sourceforge.brock AT dse.nl>
5377
5378         * device/lib/printf_large.c (OUTPUT_CHAR, _output_char): added and used
5379           for optimization
5380
5381 2006-06-11 Vangelis Rokas <vrokas AT users.sourceforge.net>
5382
5383         * src/pic16/gen.c (genCast): fixed bug with assignment of a pointer
5384         to a char variable. Fixed bug #1504211
5385         * device/include/pic16/adc.h,
5386         device/include/lib/pic16/libio/adc/adcopen.c: applied patch #1364387
5387         and fixed bug #1364390
5388
5389 2006-06-10 Borut Razem <borut.razem AT siol.net>
5390
5391         * CVSROOT: removed the CVS left-over
5392
5393 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
5394
5395         * as/hc08/asmain.c (asexit),
5396         * as/hc08/lkmain.c (lkexit),
5397         * as/mcs51/asmain.c (asexit),
5398         * as/mcs51/lkmain.c (lkexit),
5399         * src/SDCCglue.c (DEFSETFUNC),
5400         * src/SDCCmain.c (linkEdit, assemble),
5401         * support/librarian/sdcclib.c (AddRel),
5402           replaced unlink() by standard C remove()
5403         * src/SDCC.y: replaced removePostIncDecOps() by createRMW()
5404         * src/SDCCast.c (replaceAstWithTemporary, createRMW,
5405           gatherImplicitVariables): new, added to fix bug 608752,
5406           (createFunction): added gatherImplicitVariables()
5407         * src/SDCCast.h: added createRMW prototype
5408         * src/SDCCsymt.h (struct symbol): added infertype
5409         * support/regression/tests/bug608752.c: new, added
5410
5411 2006-06-10 Raphael Neider <rneider AT web.de>
5412
5413         * src/pic16/gen.c (pic16_aopOp): use WREG as destination even for
5414           multibyte dummy reads (fixes #1503234)
5415
5416 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
5417
5418         * device/include/mcs51/compiler.h: new, added header file to enable
5419           creating common sfr definition header files for different compilers
5420
5421 2006-06-05 Raphael Neider <rneider AT web.de>
5422
5423         * src/pic16/{pcode.h,genarith.c}:
5424           introduced pCodeOp combining any two pCodeOps (previously only
5425           two register operands could be combined), removed pcop2 from
5426           pCodepReg, replaced pCodeOpReg2 with pCodeOp2, fixes #1492366
5427         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): added case for PO_TWO_OPS
5428         * src/pic16/gen.c (pic16_popGet2,pic16_popGet2p,pic16_popCombine2):
5429           rewritten to use new PO_TWO_OPS
5430         * src/pic16/main.c (_hasNativeMulFor): cover more cases natively,
5431         * src/pic16/pcode.c (pic16_newpCodeOpImmd): initialize rIdx field,
5432           (pic16_newpCodeOp): catch invalid attempts on PO_TWO_OPS,
5433           (pic16_newpCodeOp2): NEW, create combined pCodeOp,
5434           (pic16_get_op): embraced return arg to allow #define return(x),
5435             added new case for combined opcodes
5436           (pic16_get_op2): reduced to use pic16_get_op() on second pCodeOp,
5437           (pic16_pCode2str,pic16_getRegFrompCodeOp,
5438            pic16_getRegFromInstruction2): fixed/added handling of new pCodeOp
5439
5440 2006-06-04 Bernhard Held <bernhard AT bernhardheld.de>
5441
5442         * src/SDCCval.c (checkConstantRange): added
5443         * src/SDCCval.h: added checkConstantRange
5444         * support/Util/SDCCerr.c,
5445         * support/Util/SDCCerr.h: replaced unused W_IF_NEVER_TRUE and
5446         W_IF_ALWAYS_TRUE by W_COMP_RANGE and W_LIT_OVERFLOW
5447         * src/SDCC.y: moved early 'condition transformations' to SDCCast.c
5448         * src/SDCCast.c (decorateType): added checkConstantRange,
5449         added 'condition transformations' from SDCC.y so that now W_COMP_RANGE
5450         can be emitted with the correct always true/false warning,
5451         added optimization for double '!';
5452         result of decorateType() must be assigned back to the tree, because
5453         decorateType() can change the tree
5454         * src/SDCCicode.c (geniCodeLogic),
5455         (geniCodeAssign): replaced new checkConstantRange, added warnings,
5456         (checkConstantRange): removed, it was only a fragment which never
5457         emitted a warning
5458         * src/SDCCsymt.c (computeType): fixed promotion for
5459         "-1 < (unsigned bit) b"
5460         * src/pic/ralloc.c (packRegsForAssign),
5461         * src/pic16/ralloc.c (packRegsForAssign),
5462         * src/hc08/ralloc.c (packRegsForAssign),
5463         * src/z80/ralloc.c (packRegsForAssign): ported fix for bug #930931
5464         from mcs51
5465         * src/mcs51/ralloc.c (packRegsForAssign): removed outcommented source
5466         * support/regression/tests/constantRange.c: added
5467         * support/valdiag/tests/constantRange.c: added
5468         * support/valdiag/valdiag.py: added -DPORT_HOST=1
5469
5470 2006-06-02 Borut Razem <borut.razem AT siol.net>
5471
5472         * support/regression/ports/pic16/support.c: increase stack size
5473           to 255 bytes
5474         * support/regression/Makefile.in: sort tests by name so that the
5475           resutlts can be compared on different machines / platforms
5476
5477 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
5478
5479         * device/lib/printf_large.c (output_digit): optimized further, Tnx Frieder
5480         * src/ds390/gen.c (emitLabel): new, added,
5481           (genDjnz): fixed stack overflow bug,
5482           (throughout): cosmetic changes to sync with mcs51/gen.c,
5483           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl)
5484         * src/mcs51/gen.c (genEndFunction): small optimization,
5485           (throughout): cosmetic changes to sync with ds390/gen.c
5486
5487 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
5488
5489         * device/lib/printf_large.c (output_digit, calculate_digit): optimized,
5490           (_print_format): fixed printing pointers
5491         * src/mcs51/gen.c (emitLabel, movb): new, added,
5492           (genAssign): small optimization,
5493           (genDjnz): fixed stack overflow bug,
5494           (throughout): replaced sprintf with SNPRINTF,
5495           replaced mcs51_regWithIdx with REG_WITH_INDEX,
5496           replaced emitcode("mov", "b,...") with MOVB(...),
5497           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl),
5498           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
5499         * src/mcs51/peeph.def: added rules 140 and 264
5500         * src/SDCCmem.c (allocLocal): store register declared locals in DSEG/OSEG
5501           so they may get optimized into registers
5502
5503 2006-05-30 Maarten Brock <sourceforge.brock AT dse.nl>
5504
5505         * src/SDCCmain.c (optionsTable, parseCmdLine): handle --use-stdout
5506           immediately when encountered,
5507           (printUsage): always use stderr even on windows
5508
5509 2006-05-30 Bernhard Held <bernhard AT bernhardheld.de>
5510
5511         * src/SDCCast.c (isLoopCountable): fixed bug #1478316
5512         (processParms): fixed bug #1247551
5513         * src/SDCCmain.c (printVersionInfo, printOptions, printUsage,
5514         parseCmdLine, main): print '--version' to stdout,
5515         print 'help' to stdout if --help is given,
5516         print 'help' to stderr and exit with EXIT_FAILURE if no or bad
5517         arguments are given; fixed --help
5518
5519 2006-05-27 Bernhard Held <bernhard AT bernhardheld.de>
5520
5521         * src/SDCCcse.c (findPointerSet): fixed bug #1493710
5522         * support/regression/tests/bug-1493710.c: added
5523
5524 2006-05-27 Borut Razem <borut.razem AT siol.net>
5525
5526         * support/regression/fwk/lib/testfwk.c: define array in _printn() as
5527           static instead auto
5528         * support/regression/ports/pic16/support.c: increase stack size
5529           from default 64 bytes to 128 bytes
5530         * support/regression/tests/staticinit.c,
5531           support/regression/tests/float.c: regression tests fully enabled
5532           for pic16 port by putting the initialized data arrays into the code
5533           section
5534         * support/regression/ports/pic16/spec.mk: don't link default libraries.
5535           This was changed by mistake in the previous version.
5536
5537 2006-05-28 Vangelis Rokas <vrokas AT users.sourceforge.net>
5538
5539         * src/pic16/gen.c (genFunction, genEndFunction): some
5540         beautifications, fixed bug with falsely restoring FSR2 in large
5541         stack model, thanks to Beau E. Cox for reporting the bug
5542
5543 2006-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
5544
5545         * debugger/mcs51/break.c,
5546         * debugger/mcs51/cmd.c (throughout): removed unused variables and labels,
5547           use %p to print pointers, made address variables unsigned
5548         * debugger/mcs51/cmd.c (infoSymbols): added missing parameter to printf
5549         * debugger/mcs51/symtab.c (parseSymbol): must return something
5550         * src/mcs51/gen.c (aopForSym): small optimization,
5551            moved declarations mcs51_ptrRegReq and mcs51_nRegs to ralloc.h,
5552           (freeAsmop): added missing break,
5553           (aopPut): removed parameter bvolatile, determine it inside the function,
5554           (saveRegisters, unsaveRegisters): small optimization,
5555           (genIpush): removed pointless check,
5556           (throughout): replaced Safe_calloc, strcpy with Safe_strdup,
5557           replaced sprintf with SNPRINTF,
5558           replaced strcpy with strncpyz,
5559           updated aopPut calls,
5560           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
5561         * src/mcs51/ralloc.h:  added declarations mcs51_ptrRegReq and mcs51_nRegs
5562
5563 2006-05-24 Borut Razem <borut.razem AT siol.net>
5564
5565         * support/regression/tests/bug-221100.c: fixed xdata problem caused by
5566           modification of test for the pic16 port, put the array to the code
5567           memory for pic16port; thanks to Maarten Brock and Frieder Ferlemann
5568
5569 2006-05-23 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5570
5571         * src/pic/gen.c: MSC 6 does not have <stdint.h>.  Use pstdint.h instead.
5572         * support/Util/pstdint.h: added
5573
5574 2006-05-22 Borut Razem <borut.razem AT siol.net>
5575
5576         * src/regression/Makefile: removed bool2.c test, added -q linker option
5577         * src/regression/add2.c, src/regression/add3.c, src/regression/bool1.c,
5578           src/regression/bool3.c, src/regression/nestfor.c, src/regression/ptrfunc.c,
5579           src/regression/compare.c, src/regression/or1.c, src/regression/compare2.c,
5580           src/regression/while.c, src/regression/compare3.c, src/regression/compare4.c,
5581           src/regression/compare5.c, src/regression/sub2.c, src/regression/rotate1.c,
5582           src/regression/rotate2.c, src/regression/rotate3.c, src/regression/rotate4.c,
5583           src/regression/switch1.c, src/regression/rotate5.c, src/regression/for.c,
5584           src/regression/add.c, src/regression/sub.c, src/regression/call1.c:
5585           define SUPPORT_BIT_TYPES 0, removed unused bit variables
5586
5587 2006-05-22 Raphael Neider <rneider AT web.de>
5588
5589         * src/pic16/gen.c (pic16_storeForReturn): fragile fix for
5590           bug #1492360 (problematic due to generic pointers, see code)
5591
5592 2006-05-22 Borut Razem <borut.razem AT siol.net>
5593
5594         * support/regression/ports/pic16/specs.mk: removed stack size linker
5595           directive
5596         * support/regression/tests/array.c,
5597           support/regression/tests/bitopcse.c,
5598           support/regression/tests/bug-908454.c,
5599           support/regression/tests/malloc.c: modified for pic16 regression test
5600         * support/regression/tests/bitfields.c:
5601           pic16 - excluded bitfileds of size > 8
5602         * support/regression/tests/bp.c: pic16 - reduced data size
5603         * support/regression/tests/bug-221100.c: pic16 - reduced data size
5604         * support/regression/tests/bug-460010.c:
5605           pic16 - used the absolute address the fits in memory
5606         * support/regression/tests/bug-716242.c:
5607           bug [ 1443651 ] pic 16: redefining symbol that cannot be redefined.
5608         * support/regression/tests/float.c:
5609           pic16 - excluded - data size too big
5610         * support/regression/tests/onebyte.c:
5611           pic16 - bug [ 1444425 ] onebyte.c regression tes fails on pic16
5612         * support/regression/tests/shifts.c:
5613           pic16 - function names probably have to differ in first X characters
5614           (gpasm limitation?)
5615         * support/regression/tests/staticinit.c:
5616           pic16 - excluded some tests due error: no target memory available for
5617           section ".idata"
5618
5619 2006-05-22 Borut Razem <borut.razem AT siol.net>
5620
5621         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
5622           second try. Thanks Stas Sergeev once more.
5623
5624 2006-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
5625
5626         * src/hc08/gen.c (transferAopAop): aop forced to stack was not restored,
5627           (genLeftShift, genRightShift): fixed bug 1491627
5628         * src/hc08/peeph.def (rules 7, 8.x): added
5629         * support/regression/tests/shifts.c (ShiftLeftByParam,
5630           ShiftRightByParam, testShiftByParam): added to test variable shifting
5631
5632 2006-05-20 Raphael Neider <rneider AT web.de>
5633
5634         * src/pic/gen.c (bitpatternFromVal): fixed for 64-bit machines
5635         * src/pic16/ralloc.c (newReg): use correct name in hashtable,
5636           (allocReg): add only new registers to dynAllocRegs,
5637           (pic16_assignRegisters): do not reset dynrIdx, fixes bugs
5638             #1489055, #1445850, and probably #1483693
5639
5640 2006-05-19 Vangelis Rokas <vrokas AT users.sourceforge.net>
5641
5642         * src/pic16/glue.c (pic16_emitConfigRegs, pic16_emitIDRegs): fixed
5643         bug in for-loop that didn't emit the last of CONFIG and ID registers
5644
5645 2006-05-18 Maarten Brock <sourceforge.brock AT dse.nl>
5646
5647         * src/mcs51/gen.c (genCodePointerGet): inc dptr instead of loading acc
5648           with offset
5649         * src/mcs51/peeph.def (186.x): updated and reenabled to fix bugs
5650           1489016, 1434401 and 1490124
5651         * src/ds390/peeph.def (186.x, 227.x): updated and reenabled to fix bugs
5652           1489016, 1434401 and 1490124
5653
5654 2006-05-17 Borut Razem <borut.razem AT siol.net>
5655
5656         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
5657           thanks Stas Sergeev
5658
5659 2006-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
5660
5661         * device/include/mcs51/P89c51RD2.h,
5662         * device/include/mcs51/P89LPC901.h,
5663         * device/include/mcs51/P89LPC922.h,
5664         * device/include/mcs51/P89LPC932.h: added, thanks Omar Espinosa
5665
5666 2006-05-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
5667
5668         * device/lib/pic16/libsdcc/stack/{stack.S, Makefile.in}: add workaround
5669         to fix missing stack pragma in compiled binary object file,
5670
5671 2006-05-14 Bernhard Held <bernhard AT bernhardheld.de>
5672
5673         * support/packihx/configure.in,
5674         * support/packihx/configure: removed warning, autoconf >= 2.5x can
5675         determine sizeof basic types even while cross compiling
5676
5677 2006-05-13 Bernhard Held <bernhard AT bernhardheld.de>
5678
5679         * src/avr/gen.c (aopop),
5680         * src/ds390/gen.c (aopOp),
5681         * src/hc08/gen.c (aopOp),
5682         * src/mcs51/gen.c (aopop),
5683         * src/pic16/gen.c (pic16_aopOp),
5684         * src/pic/gen.c (aopOp),
5685         * src/z80/gen.c (aopop): fix for bug #1479882; use new, exclusive asmop
5686         if size of operand is smaller than spill location
5687
5688 2006-05-12 Borut Razem <borut.razem AT siol.net>
5689
5690         * *.dsw, *.dsp: changed property svn:eol-style to CRLF since they
5691           have to have CR/LF line endings even if they are checked out on *nix
5692           or on WIN32 in cygwin binmode
5693
5694 2006-05-12 Maarten Brock <sourceforge.brock AT dse.nl>
5695
5696         * doc/sdccman.lyx: documented numeric ranges, WEBDOC #1442369
5697         * device/include/ds80c390.h: added sfr16 definitions
5698         * src/ds390/gen.c,
5699         * src/ds390/gen.h,
5700         * src/ds390/main.c,
5701         * src/ds390/ralloc.c,
5702         * src/ds390/ralloc.h: changes all over the place to sync with mcs51
5703           fixing several bugs and adding sfr16/sfr32, reentrant bit params,
5704           bit returning functions
5705         * support/regression/tests/sfr16.c: enabled test on ds390
5706
5707 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5708
5709         * src/hc08/gen.c (asmopToBool, genIfx): fix for bug #1429722
5710         * src/hc08/gen.c (storeRegToAop): fix for bug #1439894
5711
5712 2006-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
5713
5714         * sim/ucsim/sim.src/memcl.h: added get_decoder() to cl_address_space
5715         * sim/ucsim/sim.src/mem.cc: implemented cl_address_space::get_decoder,
5716           (cl_address_space constructor): removed expensive initialization,
5717           (cl_address_space::get_cell): extended for late initialization,
5718           (cl_address_space::*): use late initialization,
5719           (cl_address_decoder::activate): removed expensive initialization,
5720           This reduced regression test running time by 25%
5721
5722 2006-05-11 Bernhard Held <bernhard AT bernhardheld.de>
5723
5724         * packihx/,
5725         * configure.in,
5726         * configure,
5727         * sdcc.dsw,
5728         * Makefile.bcc,
5729         * Makefile.in,
5730         * support/packihx/Makefile.in,
5731         * support/packihx/clean.mk,
5732         * support/packihx/Makefile.bcc,
5733         * support/packihx/PackIhx.dsp: moved packihx to support/packihx
5734
5735 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5736
5737         * src/SDCCval.c (valNot): fix for regression test failure
5738           of not.c on big endian hosts
5739
5740 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
5741
5742         * device/inlcude/mcs51/msc1210.h: new, added, thanks Philippe Latu
5743
5744 2006-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5745
5746         * device/lib/mcs51/Makefile.in: changed string comparison operator
5747           to = for POSIX compliance; == is bash extension
5748
5749 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
5750
5751         * device/lib/hc08/_mulint.c: applied patch 1485428, thanks
5752           kosmonaut_pirx
5753
5754 2006-05-09 Vangelis Rokas <vrokas AT users.sourceforge.net>
5755
5756         * src/pic16/gen.c (pic16_freeAsmop): release any temp registers
5757         allocated by aopForSym thus fixing bug #1478657 about failed testfwk.c
5758         * src/pic16/main.c (_pic16_keywords): added 'sfr16' keyword,
5759         * src/pic16/ralloc.c (pic16_allocWithIdx): also a fix for bug exposed by
5760         bug report #1478657,
5761
5762 2006-05-05 Borut Razem <borut.razem AT siol.net>
5763
5764         * doc/Makefile.in: remove of WARNINGS and labels.pl immediately after
5765           making the html
5766
5767 2006-05-02 Borut Razem <borut.razem AT siol.net>
5768
5769         * doc/Makefile.in: removed *.ind dependency since there is no rule to
5770           create *.ind, which made make to fail if invoked with -j 2
5771
5772 2006-05-01 Maarten Brock <sourceforge.brock AT dse.nl>
5773
5774         * src/SDCCglue.c (emitRegularMap): partial fix for bug 1477149, thanks
5775           Hubert Sack for patch 1479782
5776
5777 2006-05-01 Vangelis Rokas <vrokas AT users.sourceforge.net>
5778
5779         * src/pic16/glue.c (pic16_printIvalStruct): fixed bug #1445929
5780
5781 2006-05-01 Raphael Neider <rneider AT web.de>
5782
5783         * src/pic/device.c (sanitise_processor_name): only remove p(ic) prefix,
5784           (create_pic): store only prefix-free device name,
5785           (init_pic): check for device names with "16" prefix,
5786           (list_valid_pics),
5787         * src/pic/device.h (struct PIC_device),
5788         * src/pic/main.c (_pic14_genAssemblerPreamble): adapted to single
5789             stored device name,
5790         * device/include/pic/pic12f{635,675,629,683}.h,
5791         * device/lib/pic/libdev/pic12f{635,675,629,683}.c: NEW device libraries
5792         * device/lib/pic/libdev/Makefile.in: allow pic12* devices,
5793         * device/include/pic/pic16f505.h,
5794         * device/lib/pic/libdev/pic16f505.c: removed
5795         * device/include/pic/pic14devices.txt: added support for pic12f
5796             devices, removed unsupported non 16-bit devices
5797             [above changes provided by patch from Zik Saleeba]
5798         * src/pic/*, src/pic16/*, device/include/pic16/*,
5799           device/lib/pic/**, device/lib/pic16/**: obfuscated email address
5800
5801 2006-05-01 Borut Razem <borut.razem AT siol.net>
5802
5803         * configure.in, configure, doc/Makefile.in:
5804           sync with nightly build makefile - latex, dvipdf and dvips
5805           not needed any more
5806
5807 2006-04-30 Bernhard Held <bernhard AT bernhardheld.de>
5808
5809         * support/scripts/sdcc.nsi: removed all Readmes and Makefiles
5810         in the library source
5811
5812 2006-04-30 Maarten Brock <sourceforge.brock AT dse.nl>
5813
5814         * support/regression/ports/hc08/spec.mk: fixed bug 1478892
5815
5816 2006-04-28 Raphael Neider <rneider AT web.de>
5817
5818         * src/pic16/pcode.c (pic16_newpCodeOpLit12),
5819         * src/pic16/gen.c (pic16_popGetLit12): NEW, create 12 bit literal,
5820           (pic16_loadFSR0): handle 12 bit literals correctly, fixes #1440527
5821         * src/pic16/pcode.h: added prototype for pic16_newpCodeOpLit12()
5822
5823 2006-04-28 Bernhard Held <bernhard AT bernhardheld.de>
5824
5825         * device/lib/pic/libdev/Makefile.in,
5826         * device/lib/hc08/Makefile.in,
5827         * device/lib/gbz80/Makefile.in,
5828         * device/lib/z80/Makefile.in,
5829         * device/lib/ds390/Makefile.in,
5830         * device/lib/ds400/Makefile.in: added srcdir to include search path,
5831         thanks to Borut for the bug report
5832         * configure.in,
5833         * configure: always create doc/Makefile independent from --enable-doc
5834         * Makefile.in: always install from directory doc independent from
5835         --enable-doc
5836         * device/lib/pic/Makefile.in: added libdev again, it was erroneously
5837         removed
5838         * device/lib/pic/libdev/Makefile.in: fixed VPATH build
5839         * doc/Makefile.in: install *.txt if present
5840         * device/include/Makefile.in (install): added installation of pic/*.inc
5841         and pic/*.txt files again, they were erroneously removed
5842
5843 2006-04-28 Raphael Neider <rneider AT web.de>
5844
5845         * src/pic/{gen.c,main.h,pcode.c},
5846         * src/pic16/{gen.c,pcode.c}: quietened compiler warnings
5847             concerning signedness with casts
5848
5849 2006-04-28 Raphael Neider <rneider AT web.de>
5850
5851         * src/pic/gen.c (genFunction): set global pic14_hasInterrupt on
5852             definition of an interrupt handler,
5853         * src/pic/glue.c (pic14_emitInterruptHandler): moved output of
5854             interrupt handler stuff from picglue() to separate routine,
5855           (picglue): enabled definition of intr handlers in files w/o main()
5856
5857 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
5858
5859         * support/librarian/sdcclib.c: moved include <limits.h> up to enable
5860           compilation with MSVC 2005 Express Edition (VC8)
5861
5862 2006-04-26 Bernhard Held <bernhard AT bernhardheld.de>
5863
5864         * device/lib/Makefile: fixed build of gbz80 lib
5865
5866 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
5867
5868         * support/regression/tests/bug-460010.c,
5869         * support/regression/tests/bug-524691.c,
5870         * support/regression/tests/bug-716242.c: removed conditional defines
5871           that are already in testfwk.h
5872
5873 2006-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
5874
5875         * src/ds390/gen.c (AccAXRrl1, AccAXLrl1): changed to real rotate by 1,
5876           (AccAXRsh1): added, shift right by 1,
5877           (AccAXLsh, AccAXRsh, AccAXRshS): updated for AccAXRrl1, AccAXRsh1 and
5878            AccAXLrl1
5879         * support/regression/tests/rotate.c: use <stdint.h> and enabled ds390
5880
5881 2006-04-25 Bernhard Held <bernhard AT bernhardheld.de>
5882
5883         * src/SDCCast.c (decorateType): partial fix for RFE 1475769,
5884         remove cast to same type
5885         * src/SDCCast.c (decorateType): fix for RFE 1475742,
5886         optimize 'ifx (op == 0)' resp. 'ifx (op != 0)'
5887         * as/z80/Makefile,
5888         * link/z80/Makefile: removed, they have moved to
5889         Makefile.in files
5890         * configure,
5891         * configure.in: replaced duplicate message about ucsim by missing sdcpp
5892         * install-sh: fix bug #1204398 by setting umask 0022
5893         * device/lib/Makefile: separate build of z80 and gbz80 lib
5894
5895 2006-04-24 Bernhard Held <bernhard AT bernhardheld.de>
5896
5897         Enabled VPATH feature: changed nearly all Makefiles (149 files).
5898         See sdccman.lyx '2.4.10 VPATH feature' about how to use it.
5899
5900         One basic decision: e.g. src/clean.mk includes further files. In order
5901         to make this work there are two solutions:
5902         - rename another dozen clean.mk to clean_in.mk, add srcdir to them and
5903           run configure on them. This way they can use
5904           'include $(srcdir)/port-clean.mk'
5905         - always include clean.mk by the Makefile at the same level. To avoid
5906           that `make clean` tries to include and build Makefile.dep the
5907           MAKECMDGOALS are examined (see e.g. src/Makefile.in). This has been
5908           implemented, because now even `make uninstall` doesn't create
5909           Makefile.in. clean.mk could be eliminated by pasting it in
5910           Makefile.in.
5911
5912         * debugger/mcs51/Makefile.in: build own objects from library sources
5913         (SLIB, SDCC) in current directory
5914
5915         * configure, configure.in: renamed --disable-device-lib-build in
5916         --disable-device-lib; added --enable-doc, the required tools are
5917         searched by configure; added result message; the toolchain for the
5918         belonging ports are now only built, if the port is enabled.
5919
5920         * support/regression/*: all output is written in directory gen, because
5921         the fwk and ports directories don't livet in the build tree using vpath
5922
5923         * doc/sdccman.lyx: renamed --disable-device-lib-build to
5924         --disable-device-lib, added --enable-doc, added section VPATH
5925
5926         * sim/ucsim/configure.in,
5927         * sim/ucsim/configure.in: hc08 couldn't be disabled, now hc08 and
5928         z80 are enabled by default
5929
5930 2006-04-24 Raphael Neider <rneider AT web.de>
5931
5932         * src/pic/device.c (pic14_assignConfigWordValue): remember assignments
5933             to config word, "pic14_"-prefixed some extern functions
5934           (pic14_emitConfigWord): emit __config directive(s) if assignment to
5935             config word has been found
5936         * src/pic/device.h: added prototypes
5937         * src/pic/pcode.c: added "pic14_"-prefix where needed
5938         * src/pic/ralloc.c (IS_CONFIG_ADDRESS,pic14_assignRegisters): cosmetic
5939             fixup
5940         * src/pic/glue.c (pic14_constructAbsMap): handle assignments to config
5941             words,
5942           (pic14emitRegularMap): ignore config words,
5943           (pic14createInterruptVect): moved generating __config directives away
5944           (picglue): have __config directives emitted
5945
5946 2006-04-24 Borut Razem <borut.razem AT siol.net>
5947
5948         * doc/Makefile: sync with nightly build makefile
5949
5950 2006-04-24 Raphael Neider <rneider AT web.de>
5951
5952         * src/pic/pcoderegs.c (OptimizeRegUsage): do not optimize
5953             registers that have not been assigned proper liveranges,
5954             fixes #1469504 and #1474602,
5955           (pCodeRegOptimizeRegUsage): fixed typo in comment
5956
5957 2006-04-24 Borut Razem <borut.razem AT siol.net>
5958
5959         * device/examples/main8051.c: deleted - it was removed from CVS
5960           24.mar.2000 and after that modified 18.feb.2001, so it reappered
5961           after the transition to Subversion
5962         * src/SDCCalloc.h: deleted - it was removed  from CVS
5963           3.feb.2001 and after that modified 18.feb.2001, so it reappered
5964           after the transition to Subversion
5965         * sim/ucsim/cpu.gif, sim/ucsim/interrupt.gif, sim/ucsim/new.gif,
5966           sim/ucsim/serial1.gif, sim/ucsim/serial2.gif,
5967           sim/ucsim/term_cpuopt.gif, sim/ucsim/timers.gif, sim/ucsim/wins.gif,
5968           sim/ucsim/post.jpg, sim/ucsim/UCsim.jpg: corrected
5969
5970 2006-04-22 Maarten Brock <sourceforge.brock AT dse.nl>
5971
5972         * as/asx8051.dsp: added mcs51/strcmpi.h
5973         * as/hc08/as_hc08.dsp: added asm.h, m6808.h, strcmpi.h
5974         * as/hc08/aslink.h: updated lnksect prototype
5975         * as/hc08/asm.h,
5976         * as/mcs51/asm.h: added a_addr to struct area and s_org to struct sym
5977         * as/hc08/asmain.c,
5978         * as/mcs51/asmain.c (asmbl): init dot.s_org for S_ORG,
5979           (newdot): handle A_ABS
5980         * as/hc08/asout.c,
5981         * as/mcs51/asout.c (outarea): output address
5982         * as/hc08/lkaomf51.c,
5983         * as/mcs51/lkaomf51.c: disabled unused array UsageType
5984         * as/hc08/m08pst.c,
5985         * as/mcs51/i51pst.c,
5986         * as/z80/z80pst.c: "ABS" is not A_OVR
5987         * as/hc08/lkarea.c (newarea): read a_addr,
5988           (lnkarea): added codemap array, sort absolute areas to the front,
5989            combine all GSINITx/GSFINAL,
5990           (find_empty_space, allocate_space): new functions,
5991           (lnksect): return next address, handle absolute sections
5992         * as/mcs51/lkarea.c (newarea): read a_addr,
5993           lnksect2 prototype changed,
5994           (lnkarea2): define codemap unsigned, combine all GSINITx/GSFINAL,
5995           (find_empty_space, allocate_space): new, factored out of lnksect2,
5996           (lnksect2): return next address, handle absolute sections
5997         * as/hc08/lkhead.c,
5998         * as/mcs51/lkhead.c (newhead): head is absolute but not overlay
5999         * as/hc08/lklibr.c (addfile, fndsym),
6000         * as/mcs51/lklibr.c (addfile, buildlibraryindex, fndsym): prevent
6001           index out of range and detect both '\' and '/'
6002         * device/include/mcs51/c8051f200.h: added _XPAGE, removed bad comment
6003         * device/include/stdbool.h: removed SDCC_ds390 from check to pass
6004           regression tests (ds390 cannot return bool yet)
6005         * doc/sdccman.lyx: changed version number, document changed --no-peep,
6006           document critical interrupts on z80, document changed SDCC define
6007         * src/asm.c (_asxxxx_mapping): fixed .org directive,
6008           (_a390_mapping): added .org directive
6009         * src/hc08/gen.c (transferAopAop): made bytemask log to fix warning,
6010           (genMultOneByte): fixed warnings
6011         * src/hc08/hc08.dsp: lowered warning level to 2 to suppress pedantic
6012           ones
6013         * src/pic16/device.c: removed newReg prototype, removed BYTE_IN_LONG
6014         * src/pic16/gen.c (pic16_popGetLabel): made parameter key signed,
6015           (pic16_genLeftShiftLiteral, genRightShiftLiteral): fixed warnings
6016         * src/pic16/gen.h: changed prototype for pic16_popGetLabel
6017         * src/pic16/main.c: removed newReg prototype
6018         * src/pic16/pcode.c,
6019         * src/pic16/pcode.h (pic16_emitDB): changed parameter c to int to fix
6020           warnings
6021         * src/pic16/pic16.dsp: lowered warning level to 2 to suppress pedantic
6022           ones
6023         * src/pic16/ralloc.c
6024         * src/pic16/ralloc.h (newReg): changed type to int and size to unsigned
6025           to fix warnings
6026         * src/pic/pcode.c (allocInternalRegister): changed parameter optype
6027           from short to PIC_OPTYPE
6028         * src/pic/pic.dsp: lowered warning level to 2 to suppress pedantic ones
6029         * src/pic/ralloc.c (newReg, allocInternalRegister): changed parameter
6030           optype from short to PIC_OPTYPE
6031         * src/port.h: made int_size unsigned to fix warnings
6032         * src/SDCC.y: fixed warning on MSVC
6033         * src/SDCCicode.c (getArraySizePtr): return unsigned int
6034         * src/SDCCopt.c (convertToFcall): fixed warnings
6035         * src/SDCCsymt.h: removed double prototype for genSymName
6036         * src/xa51/ralloc.c (allocReg): made size unsigned int, type int and
6037           offset int to fix warnings
6038
6039 2006-04-22 Borut Razem <borut.razem AT siol.net>
6040
6041         * doc/sdccman.lyx, */Makefile, */Makefile.in:
6042           references to CVS replaced with Subversion
6043
6044 2006-04-21 Borut Razem <borut.razem AT siol.net>
6045
6046         * doc/sdccman.lyx, */Makefile, */Makefile.in:
6047           references to CVS replaced with Subversion
6048
6049 2006-04-19 Borut Razem <borut.razem AT siol.net>
6050
6051         * src/version.awk: adapted for svn
6052         * /asxxxx/asxhtml/*.gif: set property svn:mime-type to image/gif
6053           sim/ucsim/doc/*.gif: set property svn:mime-type to image/gif
6054           sim/ucsim/doc/*.jpg: set property svn:mime-type to image/jpeg
6055           /binutils-avr/etc/*.vi, *.jin: removed all properties
6056           support/scripts/sdcc.ico: set property svn:mime-type to image/x-icon
6057
6058 2006-04-19 Borut Razem <borut.razem AT siol.net>
6059
6060         * CVS to Subversion migration completed
6061
6062 2006-04-18 Borut Razem <borut.razem AT siol.net>
6063
6064         * support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}/lib/pic/*.o,
6065           ${DEV_ROOT}/lib/src/pic/libdev/*.S, ${DEV_ROOT}/lib/src/pic/libdev/*.inc
6066
6067 2006-04-17 Borut Razem <borut.razem AT siol.net>
6068
6069         * device/include/Makefile.in: added pic/*.inc to the installation
6070
6071 2006-04-15 Bernhard Held <bernhard AT bernhardheld.de>
6072
6073         * support/regression/collate-results.py: fixed output in case of
6074         a valdiag error
6075         * support/regression/generate-cases.py: fixed splitting of pathnames
6076         with dots
6077         * as/hc08/lklibr.c (addfile),
6078         * as/mcs51/lklibr.c (addfile): fixed off-by-one bug
6079
6080 2006-04-11 Raphael Neider <rneider AT web.de>
6081
6082         * src/pic16/gen.c (getFreePtr, pic16_popRegFromString),
6083         * src/pic16/ralloc.c (pic16_allocregWithName): removed debug output
6084         * src/pic16/pcode.c (assignValnums): fixed #1460578
6085
6086 2006-04-11 Raphael Neider <rneider AT web.de>
6087
6088         * device/lib/pic/libdev/*.c,
6089         * device/include/pic/*.h: replaced sfr and data with __sfr and __data,
6090           fixes #1468739, enables compilation in --std-c99 mode
6091         * support/scripts/inc2h.pl: emit __sfr/__data instead of sfr/data
6092
6093 2006-04-11 Raphael Neider <rneider AT web.de>
6094
6095         * src/pic/device.c (find_device): removed debug output
6096           (list_valid_pics): enabled verbose listing of supported devices
6097         * device/include/stdbool.h: define bool as char for pic14/16 as well
6098
6099 2006-04-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6100
6101         * src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)"
6102
6103 2006-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
6104
6105         * .version: bumped version to 2.5.6
6106         * src/pic/ralloc.c (newReg): MSVC doesn't support __builtin_return_address
6107
6108 2006-04-06 Raphael Neider <rneider AT web.de>
6109
6110         * .version: bumped version to 2.5.6 (pic14 ABI changed)
6111         * src/SDCCmain.c: add -DSDCC_PROCESSOR=<id> for pic14 port
6112         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap,
6113           pic14emitRegularMap,pic14emitMaps): moved output for absolute symbols to
6114             pic14_constructAbsMap
6115           (pic14printPublics): declare absolute global symbols as global
6116           (pic14createInterruptVect),
6117         * src/pic/ralloc.c (IS_CONFIG_ADDRESS): support second config word,
6118           (newReg): assume new registers unused, use correct name in
6119             hashtable (reg->name instead of name), more debugLog output
6120         * src/pic/device.h (PIC_device): added fields for verbose output
6121         * src/pic/device.c: moved device definition to pic14devices.txt,
6122             added routines for runtime parsing of pic14devices.txt,
6123             added support for second config word
6124         * src/pic/main.c (_process_pragma): removed #pragma maxram,
6125           (_pic14_keywords): no longer accept "bit" and "sbit" keywords
6126           (_pic14_initPaths): add search paths with "pic" suffix (not "pic14")
6127           (_pic14_parseOptions): moved pCodeInitRegisters here
6128           (_pic14_do_link): add "pic$(ARCH).lib" to linker arguments
6129         * src/pic/pcode.c (AnalyzeBanking): bail out on unset processor,
6130           (pCodeInitRegisters): rewrapped comments, perpared new approach to
6131             handling the pseudo stack
6132         * device/lib/Makefile.in: ignore failures in objects-pic16,
6133         * device/lib/pic/{configure,configure.in,Makefile}: added libdev/
6134         * device/lib/pic/NEWS: document new dependency on picXXX.lib
6135         * device/lib/pic/Makefile.subdir,
6136         * device/lib/pic16/Makefile.subdir: improved clean rules
6137         * device/lib/pic/libdev/: NEW, pic14 device libraries
6138         * device/lib/pic/libsdcc/_gptr{get,put}{1,2,3,4}.S: use _X not X
6139         * device/lib/pic/libsdcc/macros.inc: use _X not X, declare default SFRs
6140         * device/include/Makefile.in: create subdir and install pic14 headers
6141         * device/include/pic/p16f_common.inc: removed unused declarations
6142         * device/include/pic/pic16*.h: added header files for 100+ 14 bit
6143             PICs from inc2h.pl v1.6,
6144             replaced BIT_AT macros with struct declarations
6145         * device/include/pic/pic14devices.txt: definition of supported devices,
6146             all above improvements contributed by Zik Saleeba, thanks
6147         * support/scripts/inc2h.pl: removed BIT_AT, replaced with structs
6148         * support/scripts/sdcc.nsi: also install pic14 device libraries and
6149             headers
6150
6151 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
6152
6153         * device/include/mcs51/c8051f410.h: added interrupt numbers,
6154         * device/include/mcs51/c8051f200.h: old SiLabs mcu completes the list,
6155           thanks to Charles Olds
6156
6157 2006-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6158
6159         * debugger/mcs51/cmd.c (infoRegisters): show return address on stack
6160
6161 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
6162
6163         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug 1464657
6164         * src/mcs51/gen.c (genJumpTab): fixed bug in medium model
6165         * support/regression/bug1464657.c: added, new test
6166
6167 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
6168
6169         * src/SDCCmain.c (preProcess): implemented RFE 1449908, define SDCC as the
6170           version number
6171
6172 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
6173
6174         * src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
6175           --no-peep and --peep-file <file> are used don't use default rules but
6176           do use the <file>
6177
6178 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
6179
6180         * src/mcs51/gen.c (genCall): fixed bug 1457608
6181
6182 2006-03-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6183
6184         * doc/sdccman.lyx: reverted to version 1.129 of december as my latest
6185         changes seem to cause (trigger?) problems with the build system.
6186
6187 2006-03-29 Maarten Brock <sourceforge.brock AT dse.nl>
6188
6189         * src/SDCCpeeph.c (operandsLiteral): new, added,
6190           (callFuncByName): inserted operandsLiteral
6191         * src/mcs51/peeph.def: reenabled 132.e, added extra check to 132.x
6192
6193 2006-03-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6194
6195         * doc/sdccman.lyx: added paragraph "Use of SDCC in Education"
6196         * src/mcs51/peeph.def: disabled rule 132.e fixing bug #1453093
6197
6198 2006-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
6199
6200         * src/z80/gen.c (genFunction, genEndFunction): fixed bug 1160666,
6201           implemented patch 1120823 Thanks to Willy De la Court (normal
6202           interrupts need an interrupt number now if they are made critical),
6203           and enabled nesting of critical functions though not for gbz80
6204           (genCritical, genEndCritical): added functions
6205           (genZ80Code): added cases for CRITICAL and ENDCRITICAL
6206         * src/z80/mappings.i: added "ei" to all mappings
6207
6208 2006-03-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6209
6210         * sim/ucsim/cmd.src/newcmdcl.h: applied patch fixing GCC 4.1 build
6211         submitted by the Debian SDCC maintainer Aurelien Jarno:
6212         "Credits goes to Martin Michlmayr, who rebuilt the whole Debian
6213         archive with gcc 4.1 on mips and wrote the patch"
6214
6215 2006-03-16 Raphael Neider <rneider AT web.de>
6216
6217         * src/pic16/genarith.c (genAddLit): simplified and fixed case where
6218           the left operand is shorter than the result (c* = lit-c* + int),
6219           fixes bug #1450796
6220         * src/pic16/gen.c (genRightShift): check IS_SYMOP before accessing
6221           OP_SYMBOL
6222
6223 2006-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
6224
6225         * src/.version: increased version number to 2.5.5
6226         * src/SDCCmain.c (linkEdit): do not test for PIC16 target since, PIC16
6227         linking is done manually in pic16 port's _linkEdit,
6228         * src/SDCCsymt.c (compStructSize): for target PIC16 and shell variable
6229         PIC16_PACKED_BITFIELDS, compact bitfield structures as much as possible,
6230         * src/pic16/gen.c (aopForSym): when direct register name is WREG then
6231         allocate asmop as AOP_ACC,
6232         (aopForRemat): added parameter 'bool result' in function declaration,
6233         (pic16_aopGet): return AOP_ACC when accessing WREG,
6234         (pic16_popGetTempReg): minor modification,
6235         (pic16_popRegFromIdx): first try with 'pic16_regWithIdx' then with
6236         'pic16_allocWithIdx',
6237         (genPcall): removed ftype, usage of OP_SYM_TYPE asserted error when
6238         calling function in absolute addresses,
6239         (genAssign): take into account AOP_ACC asmop,
6240         * src/pic16/pcode.c (pic16_newpCodeOpReg): minor modifications,
6241         * src/pic16/pcoderegs.c: some debug functions and lines added,
6242         * src/pic16/ralloc.c (decodeRegType): added but commented out,
6243         * (pic16_typeRegWithIdx): search 'pic16_dynInternalRegs' for given
6244         register too,
6245         * (pic16_findFreeReg, pic16_findFreeRegNext): allocate new register via
6246         call to allocReg, not by manually allocating a new one,
6247         (pic16_assignRegisters): now before going through the register
6248         allocating functions mark all registers as free. This eliminates some
6249         side effects resulting from peephole parser done earlier in the backbone
6250
6251 2006-03-13 Maarten Brock <sourceforge.brock AT dse.nl>
6252
6253         * src/SDCCicode.c (geniCodeLogic),
6254         * src/SDCCast.c (decorateType): applied patch by Bernhard for rfe 1422617
6255
6256 2006-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
6257
6258         * src/mcs51/gen.c (sameReg): new, checks if two aop regs are the same,
6259           (genSend): bugfix, do not allocate and free twice,
6260           (shiftRLong): handle partially overlapping aops
6261         * support/regression/tests/bitopcse.c: fixed warning redefined idata
6262
6263 2006-03-08 Borut Razem <borut.razem AT siol.net>
6264
6265         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata
6266           for pic16
6267
6268 2006-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
6269
6270         * support/regression/tests/bug1409955.c: new, added
6271         * src/mcs51/gen.h: changed asmop.freed:1 to asmop.allocated for tracking
6272         * src/mcs51/gen.c (newAsmop): set asmop.allocated to 1,
6273           (aopForSym, aopOp): increment asmop.allocated if reused,
6274           (freeAsmop): decrement asmop.allocated and check for zero instead of
6275           using asmop.freed,
6276           (freeForBranchAsmop): use asmop.allocated instead of asmop.freed,
6277           (genNot, genCpl, genUminus, genMinus, genMult, genDiv, genMod, genCmpGt,
6278            genCmpLt, genAndOp, genOrOp, genAnd, genOr, genXor, genRRC, genRLC,
6279            genGetHbit, genGetAbit, genGetByte, genGetWord, genSwap,
6280            genLeftShiftLiteral, genLeftShift, genRightShiftLiteral,
6281            genSignedRightShift, genRightShift, genDataPointerGet,
6282            genPagedPointerGet, genFarPointerGet, genCodePointerGet,
6283            genGenPointerGet, genDataPointerSet, genAssign, genCast): free asmop's
6284             in reverse order from allocation,
6285           (genPlus, genCmpEq): free asmop's in reverse order from allocation and
6286             added swappedLR to keep track
6287         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata,
6288           pdata & code for GCC, z80, gbz80 & hc08
6289         * support/regression/tests/zeropad.c: moved defines to testfwk.h
6290
6291 2006-03-08 Raphael Neider <rneider AT web.de>
6292
6293         * src/pic16/main.c (_hasNativeMulFor): fixed bug #1444425
6294
6295 2006-03-07 Maarten Brock <sourceforge.brock AT dse.nl>
6296
6297         * device/include/mcs51/c8051f410.h: new SiLabs mcu
6298         * src/ds390/peeph.def: disabled 186.d and 227.a as fix for #1434401
6299         * support/regression/tests/array.c: added parenthesis, made arrays unsigned
6300
6301 2006-03-06 Borut Razem <borut.razem AT siol.net>
6302
6303         * support/regression/ports/pic16/spec.mk: link with libm18f.lib,
6304           made the linker quiet
6305
6306 2006-03-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
6307
6308         * src/pic16/gen.c (genPcall): fixed bug #1443644
6309         * src/pic16/device.h (struct pic16_options_t): added 'int CATregs' flag
6310         which dumps before the function entry point a data byte which represents
6311         the number of the local variables used by the specified function, added
6312         'xinst' for initial support for Extended Instruction Support,
6313         * src/pic16/gen.c (aopForSym, pic16_aopGet): beautifications,
6314         (pic16_testStackOverflow): do not prefix GSTACK_TEST_NAME with
6315         port->fun_prefix anymore (may change later),
6316         (genFunction, genEndFunction): do not store/restore local registers for
6317         _main (this should take care the --main-return command line option in
6318         the future),
6319         (genOr): removed some legacy pic-port instructions,
6320         * src/pic16/genarith.c (genAddLit): re-enabled old code because
6321         performing operations with SFR's causes data to be written more than
6322         once to each SFR. Perhaps SFRs should be handled in special cases...
6323         * src/pic16/glue.c: macros BIG_ENDIAN and BYTE_IN_LONG are moved to
6324         pcode.h
6325         * src/pic16/main.c (_process_pragma): stack bound checking did not take
6326         into account for stack starting position,
6327         (struct OPTIONS pic16_optionsTable): added command line argument
6328         --extended or -y for Extended Instruction Support,
6329         * src/pic16/ralloc.c (pic16_decodeOp): added case for FUNCTION,
6330         (deassignLRs): *** perhaps the most important change, old 'for' code
6331         (commented out for reference), didn't account for some registers which
6332         were left marked 'not free' after a pointer operation. The change
6333         reduces register usage a lot in some cases
6334
6335 2006-03-04 Borut Razem <borut.razem AT siol.net>
6336
6337         * support/regression/ports/hc08/spec.mk: remove *.asm in traget
6338           _clean
6339         * support/regression/tests/bug-524697.c: decreased array size for
6340           mcs51 to fit into the internal RAM
6341         * support/regression/Makefile.in: a little bit more verbose
6342
6343 2006-03-03 Borut Razem <borut.razem AT siol.net>
6344
6345         * support/regression/fwk/lib/testfwk.c,
6346           support/regression/fwk/include/testfwk.h: introduced function
6347           _prints(), nonrecursive _printn(), call _initEmu() from main()
6348         * support/regression/ports/gbz80/support.asm,
6349           support/regression/ports/ucz80/support.asm,
6350           support/regression/ports/z80/support.asm,
6351           support/regression/ports/ds390/support.c,
6352           support/regression/ports/hc08/support.c,
6353           support/regression/ports/host/support.c,
6354           support/regression/ports/mcs51/support.c,
6355           support/regression/ports/xa51/support.c: added empty _initEmu()
6356           function
6357         * support/regression/ports/pic16/gpsim.cmd,
6358           support/regression/ports/pic16/spec.mk,
6359           support/regression/ports/pic16/support.c,
6360           support/regression/Makefile.in: added pic16 regression test
6361
6362 2006-03-01 Raphael Neider <rneider AT web.de>
6363
6364         * src/pic16/gen.c (genPcall,pic16_derefPtr,genGenPointerGet,
6365           genConstPointerGet): use safe way of generating MOVFF to cover
6366             literals as well as registers, fixes bug #1440527
6367         * src/pic16/glue.c (pic16_printIvalBitFields): prevent NULL pointer
6368             dereference
6369           (pic16_printIvalUnion,pic16_isUnion): NEW, handle initialized unions
6370             more correctly, fixes bug #1232186
6371           (pic16_printIval): use pic16_printIvalUnion() for initialized unions
6372         * src/pic16/main.c (_pic16_linkEdit): reorder linker arguments to make
6373             gplink guess the correct processor in more cases, applied patch
6374             from Till Riedel attached to and fixing bug #1436552
6375
6376 2006-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6377
6378         * support/regression/tests/array.c: added, contains check for #1434401
6379         * src/mcs51/peeph.def: disabled 186.d as temporary fix for #1434401
6380
6381 2006-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
6382
6383         * device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
6384         * device/include/mcs51/at89S8252.h: fixed, thanks to Krzysztof Polomka
6385         * device/include/mcs51/c8051f326.h,
6386         * device/include/mcs51/c8051f340.h: new SiLabs mcu's
6387         * device/include/mcs51/c8051f000.h,
6388         * device/include/mcs51/c8051f018.h,
6389         * device/include/mcs51/c8051f020.h: used () with __at, renamed IDLE,STOP to
6390           PCON_IDLE,PCON_STOP and added sfr16 definitions
6391
6392 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
6393
6394         * src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
6395           genGetWord): fixed bug 1409955
6396
6397 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
6398
6399         * device/include/hc08/mc68hc908gp32.h,
6400         * device/include/hc08/mc68hc908jb8.h: removed AWUL, added PTA6 & PTA7
6401
6402 2006-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
6403
6404         * src/SDCCast.c (constExprValue): return NULL if not a value
6405         * src/SDCCglue.c (printIvalArray): fixed bug 1225568
6406         * src/hc08/gen.c(genUnpackBits, genUnpackBitsImmed): fixed bug 1019480
6407         * support/regression/tests/bitfields.c: enabled signed bitfield for all
6408
6409 2006-02-13 Borut Razem <borut.razem AT siol.net>
6410
6411         * src/regression/ptrarg.c: added, fails due to bug #1430967
6412         * src/regression/Makefile: ptrarg.c added, ...
6413
6414 2006-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
6415
6416         * src/z80/gen.c (genUnpackBits): fixed bug 1019480
6417         * support/regression/tests/bitfields.c: enabled signed bitfield for z80
6418
6419 2006-02-11 Borut Razem <borut.razem AT siol.net>
6420
6421         * src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
6422           print "Processor: xxx" message to stdout only if --verbose
6423
6424 2006-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
6425
6426         * src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
6427         * support/regression/tests/bug1426356.c: added
6428         * support/regression/tests/bitfields.c: removed 2 tests
6429
6430 2006-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
6431
6432         * device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
6433         * device/include/mcs51/c8051f330.h,
6434         * device/include/mcs51/c8051f350.h: used () with __at, renamed IDLE,STOP to
6435           PCON_IDLE,PCON_STOP and added sfr16 definitions
6436         * device/lib/_divsint.c,
6437         * device/lib/_divuint.c,
6438         * device/lib/_divulong.c,
6439         * device/lib/_divulong.c: renamed a,b to x,y to avoid confusion, fixed
6440           register bank bug for small stackauto
6441
6442 2006-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
6443
6444         * support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()
6445
6446 2006-02-08 Maarten Brock <sourceforge.brock AT dse.nl>
6447
6448         * support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
6449         * all.dsp: corrected several bin paths
6450         * device/include/mcs51/c8051f120.h,
6451         * device/include/mcs51/c8051f300.h,
6452         * device/include/mcs51/c8051f310.h: used () with __at and renamed IDLE,STOP
6453           to PCON_IDLE,PCON_STOP
6454         * device/include/mcs51/c8051f320.h: see above, also added sfr16 definitions
6455         * device/lib/printf_large.c (output_float): fixed bug 1388703
6456         * support/regression/tests/bug1057979.c: added test for bug 1388703
6457
6458 2006-02-08 Raphael Neider <rneider AT web.de>
6459
6460         * src/pic/pcode.c (pciTRIS): fixed typo,
6461           (BuildFlow,LinkFlow_pCode): added (disabled) debug output,
6462           (LinkFlow): fixed handling of flows that end in a call,
6463           (ReuseReg): perform safety check earlier
6464         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed
6465             to work with flows at the beginning of a pBlock,
6466             fixes #1426557 (Symbol not previously defined),
6467           (pic14_ReMapLiveRanges): NEW, destroy and rebuild register
6468             usage information
6469           (RemoveUnusedRegisters): update register usage info
6470         * src/pic/ralloc.c (newReg): prevent duplicate registers from being
6471             created, reuse existing ones instead
6472         * src/pic/gen.c (genPcall): fixed #1424719
6473
6474 2006-02-07 Bernhard Held <bernhard AT bernhardheld.de>
6475
6476         * link/z80/lkmain.c,
6477         * link/z80/lklex.c,
6478         * link/z80/lkdata.c,
6479         * link/z80/aslink.h: fixed build on current cygwin:
6480         replaced getline() by lk_getline()
6481
6482 2006-02-01 Borut Razem <borut.razem AT siol.net>
6483
6484         * src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
6485           src/regression/add4.c, src/regression/and1.c, src/regression/and2.c,
6486           src/regression/arrays.c, src/regression/b.c, src/regression/bank1.c,
6487           src/regression/bool1.c, src/regression/bool2.c,
6488           src/regression/bool3.c, src/regression/call1.c,
6489           src/regression/compare.c, src/regression/compare10.c,
6490           src/regression/compare2.c, src/regression/compare3.c,
6491           src/regression/compare4.c, src/regression/compare5.c,
6492           src/regression/compare6.c, src/regression/compare7.c,
6493           src/regression/compare8.c, src/regression/compare9.c,
6494           src/regression/configword.c, src/regression/for.c,
6495           src/regression/inline.c, src/regression/mult1.c,
6496           src/regression/nestfor.c, src/regression/or1.c,
6497           src/regression/pointer1.c, src/regression/ptrfunc.c,
6498           src/regression/rotate1.c, src/regression/rotate2.c,
6499           src/regression/rotate3.c, src/regression/rotate4.c,
6500           src/regression/rotate5.c, src/regression/rotate6.c,
6501           src/regression/rotate7.c, src/regression/string1.c,
6502           src/regression/struct1.c, src/regression/sub.c,
6503           src/regression/sub2.c, src/regression/switch1.c,
6504           src/regression/while.c, src/regression/xor.c,
6505           src/regression/create_stc, src/regression/simulate,
6506           src/regression/rt.sh, src/regression/Makefile: reenabled Scott's PIC14
6507           regression tests
6508         * src/regression/gpsim_assert.h: added
6509
6510 2006-01-28 Bernhard Held <bernhard AT bernhardheld.de>
6511
6512         * src/ds390/gen.c (unsaveRegisters): fixed literal function pointer
6513         ((void (code *) (void)) 0) ();
6514         * as/hc08/aslex.c,
6515         * as/hc08/aslink.h,
6516         * as/hc08/asm.h,
6517         * as/hc08/asmain.c,
6518         * as/hc08/lkdata.c,
6519         * as/hc08/lklex.c,
6520         * as/hc08/lkmain.c,
6521         * as/mcs51/aslex.c,
6522         * as/mcs51/aslink.h,
6523         * as/mcs51/asm.h,
6524         * as/mcs51/asmain.c,
6525         * as/mcs51/lkdata.c,
6526         * as/mcs51/lklex.c,
6527         * as/mcs51/lkmain.c,
6528         * as/z80/aslex.c,
6529         * as/z80/asm.h,
6530         * as/z80/asmain.c: fixed build on current cygwin:
6531         replaced getline() by as_getline()
6532
6533 2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
6534
6535         * src/SDCC.y: fixed bug #716242, exchanged pointer and function
6536         declarator in the symbol chain
6537         * src/SDCCsymt.h,
6538         * src/SDCCsymt.c (processFuncPtrArgs): added, removes "(void)"
6539         parameter list for function pointers
6540         * src/SDCCast.c (decorateType): added call of processFuncPtrArgs()
6541         * support/regression/tests/bug-716242.c: added
6542
6543 2006-01-20 Bernhard Held <bernhard AT bernhardheld.de>
6544
6545         * src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array
6546         offset if possible
6547         * src/SDCCast.c (getLeftResultType): 255 fits in char, not 256
6548
6549 2006-01-18 Bernhard Held <bernhard AT bernhardheld.de>
6550
6551         * src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it
6552         inifinitely recurseable, added static
6553         * support/regression/tests/bug-1408066.c: added
6554
6555 2006-01-17 Bernhard Held <bernhard AT bernhardheld.de>
6556
6557         * src/SDCCicode.h,
6558         * src/SDCCicode.c (newiTempPreheaderLabel, newiTempLoopHeaderLabel):
6559         renamed, added possibility to create "postLoopLbl"-labels
6560         * src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to
6561         newiTempLoopHeaderLabel
6562         * src/SDCCloop.c (newInduction, newRegion, backEdges, insertIntoLoop,
6563         isNotInBlocks, addToExitsMarkDepth, createLoop, dominatedBy,
6564         addDefInExprs, assignmentsToSym, isOperandInvariant, pointerAssigned,
6565         hasNonPtrUse, loopInvariants, addressTaken, findInduction,
6566         findDefInRegion, mergeRegions, ifMerged, mergeInnerLoops): made static,
6567         (pinduction, pregion, hasIncomingDefs, findLoopEndSeq): disabled,
6568         (basicInduction): fixed bug #136564, made static,
6569         (loopInduction): changed parameter of basicInduction, made static,
6570         (addPostLoopBlock): added
6571         * src/SDCCloop.h: removed backEdges, pregion, pinduction,
6572         loopOptimizations, addressTaken, findDefInRegion, hasIncomingDefs,
6573         findLoopEndSeq
6574         * support/regression/tests/bug-136564.c: added
6575         * support/regression/ports/mcs51-xstack-auto/spec.mk: added
6576         --std-sdcc99 to LIBSDCCFLAGS
6577
6578 2006-01-16 Bernhard Held <bernhard AT bernhardheld.de>
6579
6580         * src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false
6581         while loop
6582         * support/regression/tests/bug-1406131.c: added
6583
6584 2005-12-31 Bernhard Held <bernhard AT bernhardheld.de>
6585
6586         * src/SDCCast.c (decorateType): fix promotion of unary minus
6587         * src/SDCCsymt.c (computeType): beautified
6588         * src/SDCCval.c (cheapestVal): beautified, old non-Ansi version removed,
6589         (valUnaryPM, valComplement): fix sign and promotion,
6590         (valNot): ANSI: result type is int (SDCC: unsigned char)
6591         * support/regression/tests/uminus.c: speedup by removing superflous
6592         test case 'int'
6593         * support/regression/tests/onebyte.c: added promotion and signedness
6594         tests for unary minus
6595         * support/regressions/tests/bug-477927.c: disable warning about
6596         uninitialized variables
6597         * support/regression/tests/not.c: added
6598
6599 2005-12-28 Bernhard Held <bernhard AT bernhardheld.de>
6600
6601         * device/lib/Makefile.in: added --std-sdcc99 to CFLAGS
6602         * src/mcs51/gen.c (gen51Code): show final register usage after
6603         fillGaps in asm with --i-code-in-asm
6604         * src/SDCClrange.c (sequenceiCode, setLiveFrom, setLiveTo,
6605         markLiveRanges, markAlive, findNextUseSym, findNextUse, unvisitBlocks,
6606         incUsed, rliveClear, adjustIChain): made static,
6607         (setFromRange): excluded because it's unused,
6608         (findPrevUseSym, markWholeLoop): added,
6609         (findPrevUse): rewritten; fixes bug 895992; now a complete search
6610         through all branches of predecessors enables sdcc to emit the warning
6611         W_LOCAL_NOINIT, marking of outermost loop was incomplete,
6612         (rlivePoint): made static, added parameter emitWarnings which is only
6613         true during the first run out of two,
6614         (findRecursiveSucc, findRecursivePred): removed,
6615         (computeLiveRanges): made static, added parameter emitWarnings,
6616         (dumpIcRlive): added for debugging only
6617         * src/SDCClrange.h: added boolean parameter to computeLiveRanges(),
6618         removed prototype of setFromRange()
6619         * src/SDCCopt.c (eBBlockFromiCode): added new parameter emitWarnings
6620         in call of computeLiveRanges()
6621         * support/regression/tests/bug-895992.c: added
6622         * support/regression/tests/bug-971834.c: added
6623         * support/valdiag/tests/bug-895992.c: added
6624         * support/valdiag/tests/bug-971834.c: added
6625
6626 2005-12-18 Raphael Neider <rneider AT web.de>
6627
6628         * src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
6629           (genUnpackBits): improved code for direct operands,
6630           (genPackBits): improved code for literal assignment to bitfields
6631             and for direct destination operands (no FSR indirection),
6632             prevented redundant AND, fixes #1362800,
6633           (AccLsh): added parameter to disable masking of the result
6634         * src/pic16/pcode.c (pic16_safepCodeUnlink): fixed to work with
6635           skip instructions with side-effects (like incfsz),
6636           (pic16_pCodeIsAlive): suppress verbose output unless pcode_verbose,
6637         * src/pic16/pcoderegs.c (RemoveRegsFromSet): removed annoying warning
6638         * device/lib/pic16/Makefile.common.in: added --asm=@GPASM@ to CC,
6639           fixes #1375263
6640
6641 2005-12-11 Bernhard Held <bernhard AT bernhardheld.de>
6642
6643         * src/SDCCicode.c (geniCodeAssign): fixed bug 11369874, don't use
6644         volatile variables as spill location
6645
6646 2005-12-10 Bernhard Held <bernhard AT bernhardheld.de>
6647
6648         * src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to
6649         replacing literals
6650         * support/regression/tests/bug-1376320.c: added
6651
6652 2005-12-08 Raphael Neider <rneider AT web.de>
6653
6654         * src/pic/device.c: renamed is_shared to pic14_is_shared
6655         * src/pic/gen.c (genIfx): re-enabled handling of sbits
6656         * src/pic/glue.c (emitSymbolToFile): added workaround for sbits,
6657           (is_valid_identifier): added for above workaround
6658
6659 2005-12-07 Maarten Brock <sourceforge.brock AT dse.nl>
6660
6661         * device/lib/Makefile.in: fixed to enable port-specific-objects
6662         * device/lib/ds390/i2c390.c (BitOutI2C): optimized by making bout unsigned
6663           char, thanks Hubert Sack
6664         * doc/sdccman.lyx: documented --xstack-loc,
6665           elaborated a bit more on interrupts and pitfalls,
6666           removed "setjmp/longjmp unsupported",
6667           documented some unsupported C99 features
6668         * src/SDCCmain.c (linkEdit): adapted default lib path for --stack-auto
6669         * src/SDCCpeeph.c (readRules): inserted patch 1367130 for finding missing
6670           if, thanks Hubert Sack
6671         * src/mcs51/gen.c (genEndFunction): enabled "pop psw" for regbank 0 isr
6672         * support/regression/Makefile.in: test-mcs51-stack-auto no longer needs to
6673           make make_library
6674         * support/regression/get_ticks.py: new, get cpu cycles and code size, so
6675           regression tests can report resource usage (rfe 700441)
6676         * support/regression/collate-results.py: report resource usage
6677         * support/regression/ports/ds390/spec.mk,
6678         * support/regression/ports/hc08/spec.mk,
6679         * support/regression/ports/mcs51/spec.mk,
6680         * support/regression/ports/ucz80/spec.mk: run sim output through get_ticks
6681         * support/regression/ports/ds390/uCsim.cmd,
6682         * support/regression/ports/hc08/uCsim.cmd,
6683         * support/regression/ports/mcs51/uCsim.cmd,
6684         * support/regression/ports/ucz80/uCsim.cmd: inserted "state" to report time
6685         * support/regression/ports/mcs51-stack-auto/spec.mk: no need to build the
6686           library, use the default one
6687         * support/regression/ports/mcs51-xstack-auto/spec.mk: inserted rules for
6688           building the library
6689
6690 2005-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
6691
6692         * config.dsp: added dependency on .version and configure_vc.awk
6693         * device/include/setjmp.h: updated for --stack-auto and --xstack
6694         * device/include/mcs51/at89c51snd1c.h: corrected line endings
6695         * device/include/mcs51/XC866.h: added, thanks Llewellyn van Zyl
6696         * device/lib/_setjmp.c: updated for --stack-auto and --xstack
6697         * device/lib/libsdcc.lib: added _setjmp
6698         * src/SDCCast.c (createIvalCharPtr): fixed warnings,
6699           (decorateType): fixed bug 1372851,
6700           (optimizeGetHbit): fixed warning
6701         * src/SDCCglue.c (printIvalChar, printIvalArray): adapted for flexible
6702           array initialisation
6703         * support/regression/tests/bug1057979.c: added test for bug 1358192
6704         * support/regression/tests/setjmp.c: added, test for setjmp/longjmp
6705
6706 2005-12-03 Borut Razem <borut.razem AT siol.net>
6707
6708         * support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
6709           command since the NSIS was upgraded to version 2.11 on CF x86-linux2
6710
6711 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
6712
6713         * src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr,
6714         createIval): implement symbol independant "flexible array member",
6715         (createIvalCharPtr): implemented flexible array initialisation with a
6716         string
6717         * src/SDCCsymt.c (copyStruct): removed,
6718         (getSize): fixed misleading comment,
6719         (getAllocSize): removed, the additional allocation size is now in
6720         sym->flexArrayLength,
6721         (checkStructFlexArray): new, syntax checks for flexible array members,
6722         (compStructSize): added syntax checks for "flexible array members"
6723         (copyStruct): removed,
6724         (copyLinkChain): removed inefficient fix for bug 770487
6725         * src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
6726         * src/SDCCsymt.h: added structdef.b_flexArrayMember and
6727         symbol->flexArrayLength
6728         * src/SDCCerr.c,
6729         * src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY,
6730         E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
6731         * support/regression/tests/structflexarray.c: added
6732         * support/valdiag/tests/structflexiblearray.c: added
6733
6734 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
6735
6736         * src/SDCCast.c (decorateType): fixed bug 1368489
6737         * support/Util/SDCCerr.c,
6738         * support/Util/SDCCerr.h: added warning W_CMP_SU_CHAR
6739
6740 2005-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6741
6742         * device/include/mcs51/at89c51snd1c.h: added file submitted by
6743           Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001
6744
6745 2005-11-27 Borut Razem <borut.razem AT siol.net>
6746
6747         * support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
6748           support/cpp2/mkdeps.h: added command line option
6749           -obj-ext=<extension> to SDCPP to define object file externion, used
6750           for generation of make dependencies (-M)
6751         * src/SDCCmain.c: pass -obj-ext=<extension> to SDCPP
6752
6753 2005-11-26 Borut Razem <borut.razem AT siol.net>
6754
6755         * support/scripts/sdcc.nsi: added small-stack-auto libraries,
6756           added missing device/lib/mcs51/crt*.asm, pic and pic16 sources,
6757           added pic and pic16 libraries
6758
6759 2005-11-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6760
6761         * device/include/float.h: Corrected typo in prototype of __fsgt
6762
6763 2005-11-25 Borut Razem <borut.razem AT siol.net>
6764
6765         * sdcc/device/lib/Makefile.in, sdcc/device/lib/incl.mk:
6766           added creation of model-mcs51-stack-auto libraries
6767
6768 2005-11-24 Bernhard Held <bernhard AT bernhardheld.de>
6769
6770         * src/SDCCsymt.c (copyLinkChain): fixed bug 770487, copy structdef
6771         and fields-list too
6772         * src/SDCCast.c (createIvalArray): removed obsolete comment
6773
6774 2005-11-24 Borut Razem <borut.razem AT siol.net>
6775
6776         * sdcc/device/lib/Makefile.in: remove all unnecessary files, 2nd try...,
6777           added missing device/lib/mcs51/crt*.asm sources
6778
6779 2005-11-23 Bernhard Held <bernhard AT bernhardheld.de>
6780
6781         * src/SDCCast.c (createIvalCharPtr): fixed bug 1348271
6782
6783 2005-11-22 Maarten Brock <sourceforge.brock AT dse.nl>
6784
6785         * device/lib/_fs2schar.c,
6786         * device/lib/_fs2sint.c,
6787         * device/lib/_fs2slong.c: optimized inline asm
6788
6789 2005-11-21 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6790
6791         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
6792           Better handling of floats between -1.0 and 0.0.
6793
6794 2005-11-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6795
6796         * src/mcs51/peeph.def: added missing "if"s as noted by Hubert Sack.
6797           (the missing "if"s prohibited removal of redundant labels)
6798
6799 2005-11-19 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6800
6801         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
6802           Properly convert floats between -1.0 and 0.0 to long, int, and char
6803           types (max integer value of negative floats tends to zero).
6804         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
6805           Removed changes made so to work properly with floats between
6806           -1.0 and 0.0, as the problem is fixed in _fs2slong.c, _fs2sint.c,
6807           and _fs2char.c
6808
6809 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
6810
6811         * src/SDCCcse.c (ReplaceOpWithCheaperOp): minor fix for debugging only
6812         * src/mcs51/gen.c (genUnpackBits): better code and a fix,
6813         (genCast) cosmetic change
6814         * src/ds390/gen.c (genUnpackBits, ): ported from mcs51
6815         * src/ds390/ralloc.c (packRegsForAssign): ported fix for bitfields
6816         from mcs51
6817         * support/regression/tests/bitfields (testSignedBitfields): added
6818
6819 2005-11-18 Borut Razem <borut.razem AT siol.net>
6820
6821         * sdcc/device/lib/Makefile.in: remove all unnecessary files
6822         * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
6823           introduced SILENT option to make building of pic16 libraries less
6824
6825 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6826
6827         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
6828           Now they work properly with floats between -1.0 and 0.0
6829         * device/lib/printf_large.c: Removed temporary patch for bug 1358192
6830
6831 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
6832
6833         * src/SDCCicode.c (printOperand): added missing else
6834
6835 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
6836
6837         * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
6838         reformatted for better readability
6839         * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
6840         signed bitfields
6841
6842 2005-11-17 Borut Razem <borut.razem AT siol.net>
6843
6844         * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
6845           introduced SILENT option to make building of pic16 libraries less
6846           verbose - used for nightly snapshot build
6847         * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
6848           available on Win32 platforms.
6849         * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
6850           medium, large, pic and pic16
6851
6852 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6853
6854         * device/lib/printf_large.c: Temporary patch for bug 1358192:
6855           printf("%f"...) sets fraction to zero.
6856
6857 2005-11-16 Raphael Neider <rneider AT web.de>
6858
6859         * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
6860           fixes #1357221
6861         * src/pic/gen.c (genIfx): implemented for CARRY bit
6862         * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
6863           to generic pointers, fixes #1357332,
6864           (pic16_movLit2f): NEW,
6865           (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
6866
6867 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
6868
6869         * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
6870
6871 2005-11-11 Raphael Neider <rneider AT web.de>
6872
6873         * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
6874         * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
6875           compute pointer's type from operand,
6876           (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
6877           improved single bit reads, fixes bug #1353379
6878
6879 2005-11-09 Borut Razem <borut.razem AT siol.net>
6880
6881         * support/scripts/sdcc.nsi: added lib/pic to the package
6882
6883 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
6884
6885         * src/SDCCval.c (valUnaryPM): fixed bug 1350699
6886
6887 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
6888
6889         * support/regression/tests/bug1348008.c: added
6890         * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
6891         * support/regression/tests/bug1337835.c: updated comment
6892
6893 2005-11-06 Borut Razem <borut.razem AT siol.net>
6894
6895         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
6896           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
6897           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
6898           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
6899           sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
6900           dynamic construction of cl_error_class and derivates - 2.nd try
6901
6902 2005-11-05 Borut Razem <borut.razem AT siol.net>
6903
6904         * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
6905           bug, which caused Bus Errors on sparc solaris
6906
6907 2005-11-04 Borut Razem <borut.razem AT siol.net>
6908
6909         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
6910           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
6911           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
6912           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
6913           sim/ucsim/cmd.src/cmdconf.cc: dynamic construction of cl_error_class
6914           and derivates to resolve the initialization problem on OSX
6915
6916 2005-11-02 Borut Razem <borut.razem AT siol.net>
6917
6918         * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
6919           corrected typo - #include <winsock2.h>
6920
6921 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
6922
6923         * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
6924           (_asxxxx_mapping): added org directive for future enhancements
6925
6926 2005-11-01 Borut Razem <borut.razem AT siol.net>
6927
6928         * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
6929           enabled sockets on WIN32
6930         * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
6931
6932 2005-10-31 Borut Razem <borut.razem AT siol.net>
6933
6934         * support/regression/generate-cases.py: escape backslashes in {testcase}:
6935           WIN32 backslash path delimiters should be escaped when used in C strings
6936         * support/regression/tests/bitfields.c: exclude failing assertions for
6937           __CYGWIN32__ and __MINGW32__ hosts
6938
6939 2005-10-30 Borut Razem <borut.razem AT siol.net>
6940
6941         * src/SDCCutil.c: corrected double comparison typo
6942
6943 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
6944
6945         * device/lib/medium/Makefile: added for new memory model medium
6946         * device/include/asm/mcs51/features.h: updated for medium/pdata
6947         * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
6948           added Multiply & Accumulate sbit's and MAC0_PAGE define
6949         * device/include/mcs51/c8051f300.h: added sfr16 definitions
6950         * device/include/mcs51/c8051f310.h: added sfr16 definitions
6951         * device/lib/_mullong.c: update for medium model
6952         * device/lib/incl.mk: added medium model
6953         * doc/sdccman.lyx: documented medium model
6954         * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
6955         * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
6956         * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
6957         * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
6958           (allocParms): set SCLS and OCLS to pdata for medium model
6959         * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
6960           for pdata,
6961           (powof2): return <0 if not power of 2
6962         * src/avr/gen.c (genBitWise): use updated powof2
6963         * src/mcs51/gen.c (genMinusDec): use acc if necessary,
6964           (shiftR2Left2Result): small optimization in setup, save acc when storing,
6965           (shiftLLeftOrResult): use B if necessary
6966         * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
6967         * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
6968         * src/pic/main.c (_pic14_do_link): made void parameter list explicit
6969         * support/regression/Makefile.in: added test-mcs51-medium
6970         * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
6971
6972 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
6973
6974         * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
6975         specifier unsigned
6976         * device/lib/time.c (mktime): fixed bug 1334315
6977
6978 2005-10-28 Raphael Neider <rneider AT web.de>
6979
6980         * device/include/pic/p16f_common.inc: added common declarations
6981         * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
6982
6983 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
6984
6985         * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
6986           (aopPutUsesAcc): added to predict accumulator use,
6987           (assignResultValue): save acc if necessary,
6988           (genMinusDec): store result if indirectly addressed,
6989           (genDivOneByte):  save acc if necessary,
6990           (movLeft2Result): bugfix if left already in acc,
6991           (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
6992             attention to accumulator use (esp. pdata),
6993           (genReceive): receive pdata correctly
6994         * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
6995         * src/SDCCicode.h: added isOperandInPagedSpace prototype
6996
6997 2005-10-27 Raphael Neider <rneider AT web.de>
6998
6999         * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
7000
7001 2005-10-27 Raphael Neider <rneider AT web.de>
7002
7003         * .version: changed version to 2.5.4
7004         * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
7005         * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
7006           (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
7007             arithmetics support routines
7008         * device/lib/pic/Makefile.rules: have assembler sources preprocessed
7009         * device/lib/Makefile.in: also create installdir for pic
7010
7011         * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
7012           pic14 port as well
7013         * src/pic/device.c (dump_sfr): rewritten to delegate register
7014           placement to the linker (use `extern sym' rather than sym EQU addr),
7015           (validAddress): fixed to check last specified address
7016         * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
7017           (popGetLit): truncate literal value to 8 bit,
7018           (popGet): moved assert to more appropriate place
7019           (popGetExternal): create pCode operand from and mark the according
7020             symbol as being `extern'
7021           (popGetAddr): added sanity check on immediate's offset, provide
7022             GPOINTER tag on demand
7023           (aopPut): fixed for immediates,
7024           (mov2w_op): move operand's address or contents to WREG (depending on
7025             operand type), safer variant of mov2w,
7026           (movwf,call_libraryfunc): NEW, handy abbreviations,
7027           (get_argument_pcop,get_return_val_pcop,pass_argument,
7028           get_returnvalue): interface for accessing function parameters and
7029             return values,
7030           (assignResultValuei,genRet): use new parameter/return value interface
7031           (pic14_getDataSize): back to old version handling generic pointers,
7032           (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
7033             provided implementation and/or fixed old one,
7034           (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
7035             calls, removed legacy 8051 reference code
7036           (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
7037           (loadSignToC): NEW, move the operands sign bit to CARRY,
7038           (genGenericShift): NEW, replaces genLeftShift, genRightShift and
7039             genRightShiftSigned, accepts negative shift counts,
7040           (setup_fsr): load FSR and adjust IRP (indirect memory access),
7041           (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
7042             generic pointers, __data pointers and __code pointers,
7043           (genUnpackBits,genPackBits): rewritten to work with generic pointers
7044             and signed bitfields, limit bitfields to 8 bit,
7045           (genDataPointerGet): fixed number of bytes read,
7046           (genGenPointerGet,genConstPointerGet): fixed bitfield access,
7047           (genPointerGet,genPointerSet): fixed handling of __code pointers,
7048             pointers to constant data are no longer assumed to point to __code
7049             space, removed invalid pointer types,
7050           (bitpatternFromVal): retrieve the PICs representation of an integer
7051             or float literal,
7052           (genDataPointerSet): fixed assigning to po_immediate operands,
7053           (genGenPointerSet): implemented as library call,
7054           (genIfx): fixed incorrect condition,
7055           (genAddrOf): limit generic pointers' addresses to 2 bytes,
7056             provide GPOINTER tag according to destination's storage class,
7057           (genCast): added code to handle casting to generic pointers, added
7058             sign-/zero extension of the result
7059           (aop_isLitLike,op_isLitLike): fixed handling of immediates
7060         * src/pic/gen.h: added macros to access IRP bit in STATUS register
7061         * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
7062           extend the result
7063         * src/pic/glue.c (is_shared_address,is_shared): check whether a given
7064           address/register resides in the shared banks
7065           (emitSymbolToFile): improved to handle global and `pinned' symbols,
7066             put all variables into separate sections (have the linker arrange
7067             them)
7068           (picglue): put init code and interrupt handlers in separate sections
7069         * src/pic/main.c: added port specific options table, modified to PORT
7070           structure to make GPOINTERs 3 byte, added pic14_options
7071           (_pic14_do_link): private linking routine (update paths to libraries,
7072             add libsdcc.lib by default)
7073         * src/pic/main.h: declare pic14_options
7074         * src/pic/pcode.c: fixed instructions i/o relations,
7075           (RegCond): reverted to correct version,
7076           (newpCodeOpLit): truncate literals to 8 bit,
7077           (genericPrint): added debug output,
7078           (getRegFromInstruction): fixed for various operand types, simplified
7079           (BuildFlow): fixed broken handling of isntructions with labels
7080           (LinkFlow): start at last instruction in flow (skip trailing comments),
7081             pass the flow on to the next instruction after CALL
7082           (pCodeReplace): NEW, replace a pCode and move meta data to the new one
7083           (insertPCodeInstruction): fixed inserting after a skip instruction,
7084           (DoBankSelect): fixed for labeled instructions
7085           (OptimizepBlock): honor --nopeep switch
7086           (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
7087         * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
7088         * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
7089           (pCodeOptime2pCodes): allow disabling this optimization via
7090             --no-pcode-opt due seldomly occuring bugs, fixed some conditions
7091             but is still buggy), started implementation of a dataflow based
7092             pCode optimization (CSE + dead code elimination)
7093           (pCodeRegMapLiveRangesInFlow): removed bogus inCond
7094         * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
7095           names are independant of the stack location and therefore portable across
7096           devices
7097
7098 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
7099
7100         * src/mcs51/ralloc.c (bitType): added to detect bit variables,
7101           (selectSpil): fixed bug 1337835 by not spilling bit variables
7102         * support/regression/tests/bug1337835.c: added test for this bug
7103         * src/mcs51/peeph.def: restart after rule 3.c,
7104           addded rules 263.x to optimize loading constants
7105
7106 2005-10-26 Raphael Neider <rneider AT web.de>
7107
7108         * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
7109         * src/pic16/gen.c (genUnpackBits): support signed bitfields,
7110           (genAssign): emit warning when casting literals to generic pointer
7111             type, also applies when taking the address of a fixed variable,
7112           (genCast): improved casting to generic pointers
7113         * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
7114           extern variables, added verbose error message
7115         * device/include/pic16/{string.h,errno.h}: added #pragma library c
7116
7117 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
7118
7119         * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
7120         carry must be complemented too
7121         * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
7122         could be emitted by genMinus
7123         * src/SDCCval.c (constVal): fixed bug 1305065
7124
7125 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
7126
7127         * src/SDCCast.c (addCast): added promotion for bit variables
7128         (decorateType): emit W_COMPLEMENT before the problem vanishes behind
7129         promotion casts + optimisation
7130         (optimizeGetWord): fix warning 'i' might be used uninitialized
7131         * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
7132         * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
7133
7134 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
7135
7136         * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
7137         all chars are promoted to int; promotion should be handled in SDCCast.c
7138
7139 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7140
7141         * device/lib/_strcmp.c: Fixed bug 1326457
7142
7143 2005-10-11 Raphael Neider <rneider AT web.de>
7144
7145         * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
7146         * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
7147
7148 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
7149
7150         * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
7151         * support/regression/tests/sfr16.c: added test for the sfr32 bug
7152
7153 2005-10-04 Raphael Neider <rneider AT web.de>
7154
7155         * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
7156           device/lib/pic16/pics.all: added pic18f1320
7157         * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
7158
7159 2005-09-30 Raphael Neider <rneider AT web.de>
7160
7161         * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
7162         * src/pic16/devices.inc: NEW, provides device descriptions
7163         * src/pic16/gen.c (genInline): fixed handling of ';'-comments
7164
7165 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
7166
7167         * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
7168           GETHBIT
7169
7170 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
7171
7172         * doc/sdccman.lyx: updated Highest Order Bit documentation,
7173           documented Any Order Bit, Higher Order Byte and Higher Order Word
7174         * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
7175         * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
7176           (optimizeGetAbit): new, to get any bit, not only the high bit,
7177           (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
7178           (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
7179           (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
7180           (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
7181             RIGHT_OP: also try GETBYTE, GETWORD optimization,
7182             GETABIT, GETBYTE, GETWORD: decorate them,
7183           (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
7184           (ast_print): added GETABIT, GETBYTE, GETWORD
7185         * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
7186         * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
7187           (geniCodeBinary): new generic binary icode,
7188           (ast2iCode): added GETABIT, GETBYTE, GETWORD
7189         * src/port.h: updated comment for PORT.hasExtBitOp
7190         * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
7191           (genGetByte): new, to get a single byte,
7192           (genGetWord): new, to get a word from a long,
7193           (gen51Code): added GETABIT, GETBYTE, GETWORD
7194         * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
7195
7196 2005-09-23 Raphael Neider <rneider AT web.de>
7197
7198         * configure.in, configure: have device/lib/pic configured
7199         * device/lib/Makefile.in: added model-pic14
7200         * device/lib/clean.mk: added pic/ to clean rule
7201         * device/lib/pic: added rudimentary pic14 library providing support
7202           functions for multiplication/division/generic pointer access
7203         * src/SDCCopt.c (convilong): mark support functions as extern
7204           for pic14 port as well
7205         * src/pic/gen.c (genMult): added assertions,
7206           (genpic14Code): emit warning on unhandled iCodes
7207         * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
7208         * src/pic/pcode.c (pCodeOpCopy),
7209         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
7210           pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
7211           SFR_REGISTER}), made safe for future extensions
7212         * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
7213           instructions even if preceeded by SKIP instructions (also remove
7214           them); removed unused code
7215         * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
7216           prevents leaving parts of the structure uninitialized after copying
7217
7218 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
7219
7220         * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
7221           ago by me
7222         * support/regression/tests/addsub.c: added test for the bug
7223
7224 2005-09-21 Raphael Neider <rneider AT web.de>
7225
7226         * device/include/pic16/pic18f1220.h,
7227           device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
7228         * device/lib/pic16/Makefile.rules: added missing opening paren
7229         * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
7230           are provided in genutils.c,
7231           (genUminusFloat,genUminus,genCmpEq): added asserts on different
7232           operand/result sizes,
7233           (genCmp): assert on NULL pointers first, then check deref'ed values
7234         * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
7235           result size
7236
7237 2005-09-18 Raphael Neider <rneider AT web.de>
7238
7239         * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
7240           as these are now unused,
7241           (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
7242         * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
7243           local, avoids uninitialized pointer dereference on r->name
7244         * src/pic16/ralloc.c (newReg): fixed indentation
7245
7246 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
7247
7248         * src/SDCCval.c (constVal): fixed bug 730366
7249         * support/Util/SDCCerr.c,
7250         * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
7251
7252 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
7253
7254         * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
7255
7256 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
7257
7258         * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
7259
7260 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
7261
7262         * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
7263           (hex2dec): made hex_digit unsigned char, removed ascii dependance
7264         * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
7265           (hex2dec): made hex_digit unsigned char, removed ascii dependance
7266         * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
7267         * packihx/packihx.c (hexDigit): made c unsigned char
7268         * as/mcs51/lklibr.c (fndsym),
7269         * link/z80/lkgb.c (gb),
7270         * link/z80/lklibr.c (fndsym),
7271         * link/z80/lkrloc.c (relr),
7272         * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
7273         * src/SDCC.lex (checkCurrFile, process_pragma),
7274         * src/SDCCglue.c (spacesToUnderscores),
7275         * src/SDCCmain.c (setParseWithComma, processFile),
7276         * src/asm.c (tvsprintf, printCLine),
7277         * src/avr/gen.c (emitcode, aopPut),
7278         * src/ds390/gen.c (emitcode),
7279         * src/hc08/gen.c (emitcode, emitinline),
7280         * src/mcs51/gen.c (emitcode, genInline),
7281         * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
7282           tokenizeLineNode),
7283         * src/pic/ralloc.c (debugLog),
7284         * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
7285           tokenizeLineNode),
7286         * src/pic16/ralloc.c (debugLog),
7287         * src/z80/main.c (_process_pragma):
7288            made all ctype.h function calls safe
7289         * src/SDCCopt.c: include math.h for fabs
7290         * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
7291           and used them throughout the code to make ctype.h function calls safe
7292         * src/ds390/main.c (asmLineNodeFromLineNode),
7293         * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
7294         * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
7295            unsigned char*
7296         * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
7297           (newpCodeAsmDir): made ctype.h function calls safe
7298         * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
7299           pic16_emitcode):  made lbp unsigned char*
7300         * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
7301           (pic16_newpCodeAsmDir): made ctype.h function calls safe
7302         * src/xa51/gen.c (emitcode),
7303         * src/z80/gen.c (_emit2): made lbp unsigned char*
7304         * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
7305            char*
7306
7307 2005-09-05 Raphael Neider <rneider AT web.de>
7308
7309         * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
7310           access bank splitpoint
7311
7312 2005-09-05 Raphael Neider <rneider AT web.de>
7313
7314         * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
7315
7316 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
7317
7318         * .version: changed to version 2.5.3
7319         * doc/sdccman.lyx: changed version to 2.5.3,
7320           documented --codeseg and --constseg and pragma codeseg and constseg,
7321           documented bit parameters (reentrant) and bit returning
7322         * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
7323            currFunc->recvSize, but is this ok for all ports?
7324           (ast2iCode): result of ~ on unsigned char must be cast to int for
7325            bool to work
7326         * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
7327           function pointers in bit space
7328         * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
7329           (processFuncArgs): call port.reg_parm() with reentrancy info
7330         * src/port.h,
7331         * src/avr/main.c,
7332         * src/ds390/main.c,
7333         * src/hc08/main.c,
7334         * src/pic/main.c,
7335         * src/pic16/main.c,
7336         * src/xa51/main.c,
7337         * src/z80/main.c: port.reg_parm prototype extended with
7338           "bool reentrant" parameter
7339         * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
7340           options.stackAuto for allocating bit register parameters
7341         * src/mcs51/gen.c (genNot): optimized complementing direct bit,
7342           (genSend): set BitBankUsed if it is,
7343           (selectRegBank): factored out of genCall for use in genPcall,
7344           (genCall): removed redundant dtype assignmen, use selectRegBank,
7345           (genPcall): handle returning in Carry properly, save in F0 if needed,
7346           (genReceive): handle bit register parameters
7347         * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
7348           (mcs51_assignRegisters): enable bit registers for all reentrant
7349            functions and don't set BitBankUsed unconditionally
7350         * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
7351         * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
7352         * support/regression/tests/funptrs.c: added tests for BOOL and for return
7353
7354 2005-08-27 Borut Razem <borut.razem AT siol.net>
7355
7356         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
7357         ppc-osx (Darwin) does not support -u option. It seems that it is
7358         supported only on Linux - GNU cp
7359
7360 2005-08-25 Borut Razem <borut.razem AT siol.net>
7361
7362         * sim/ucsim/gui.src/serio.src/Makefile.in,
7363           sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
7364           sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
7365           sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
7366           install and strip, since the strip at /usr/ccs/bin should be used
7367           on solaris
7368
7369 2005-08-24 Borut Razem <borut.razem AT siol.net>
7370
7371         * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
7372
7373 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
7374
7375         * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
7376         ffffffffu
7377
7378 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
7379
7380         * as/mcs51/aslink.h: completed lkrloc.c prototypes
7381         * as/mcs51/lkmain.c (link_main): fixed warning
7382         * device/include/stdbool.h: ds390 has no advanced bit support yet
7383         * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
7384         * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
7385         * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
7386           and updated their macros
7387         * src/SDCCval.c (constVal): updated comment for renamed b_long
7388
7389 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
7390
7391         * as/mcs51/asdata.c: changed ctype['['] to BINOP
7392         * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
7393           (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
7394           (oprio): set priority for '['
7395         * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
7396            and adb_24_bit
7397         * as/mcs51/asm.h: added defines R_BIT and S_BIT
7398         * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
7399         * as/mcs51/lkdata.c: changed ctype['['] to BINOP
7400         * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
7401           added overlayable BIT_BANK area
7402         * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
7403           (summary2): explain 'T' in legenda
7404         * as/mcs51/lkrloc.c: replaced old K&R style,
7405           (relr): added R_BIT processing,
7406           (errmsg): added "Bit-addressable relocation error",
7407           (adb_bit): added for converting from byte- to bit-addressable space,
7408           (adb_24_bit): added for converting from byte- to bit-addressable space
7409         * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
7410            used in reentrant functions now even as return value
7411         * device/lib/_gptrput.c (_gptrput): removed obsolete code
7412         * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
7413           (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
7414         * src/SDCCglobl.h: added indicator BitBankUsed
7415         * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
7416            the bit registers b0-b7
7417         * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
7418           (geniCodeCast): fixed bug 1263853,
7419           (geniCodeLogicAndOr): put result in bool or char,
7420           (geniCodeReceive): added parameter func for accessing the return type,
7421           (geniCodeFunctionBody): pass func to geniCodeReceive
7422         * src/SDCCmain.c: added indicator BitBankUsed
7423         * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
7424         * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
7425           (checkSClass): don't put automatic bool/bit on stack,
7426           (checkFunction): removed check on function cannot return bit
7427         * src/SDCCsymt.h: added newBoolLink prototype
7428         * src/mcs51/gen.c (rb1regs): added bit registers,
7429           (movc): created for assigning to carry,
7430           (pushReg, popReg): created for pushing registers,
7431           (sameRegs): check both AOP_REG and AOP_CRY types,
7432           (aopOp): handle bit registers,
7433           (aopPut): optimization no self-assign,
7434           (saveRegisters): push reg->base (bits) only once for bit registers,
7435            and use pushReg,
7436           (unsaveRegisters): pop reg->base only once and use popReg,
7437           (assignResultValue): added parameter func and return in carry for bits,
7438           (genIpush): optimization no reload in A if not changed,
7439           (genSend): bit parameters in reentrant functions are passed in bit
7440            registers by first assigning to bits in B, then save registers and
7441            copy B to bits,
7442           (genCall): handle returning in Carry properly, save it in F0 if needed,
7443           (genPcall): updated assignResultValue call, this is not safe yet for bit
7444            returning function !!!
7445           (genFunction): don't generate equ's for bit registers and use pushReg,
7446           (genEndFunction): take care of bit returning functions and use popReg,
7447           (genRet): return bit in Carry,
7448           (genIfx): optimize bit registers and other directly addressable bits,
7449           (genReceive): updated assignResultValue call
7450         * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
7451           (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
7452            registers when using stack-auto
7453         * src/mcs51/ralloc.c (_G): added allBitregs,
7454           (regs8051): added the bit registers,
7455           (createStackSpil): use macro IS_BIT,
7456           (getRegBit): added to allocate a bit register, else spill,
7457           (getRegBitNoSpil): added to allocate a bit register, else a gpr,
7458           (updateRegUsage): factored out to ease stepping while debugging,
7459           (serialRegAssign): use updateRegUsage, only spill bits if necessary,
7460            also allocate bit registers,
7461           (fillGaps): handle bit registers,
7462           (findAllBitregs): added to create bit vector with all bit registers,
7463           (mcs51_allBitregs): returns this bit vector,
7464           (mcs51_assignRegisters): when using stack-auto use bit registers for
7465            passing parameters and creating local variables
7466         * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
7467
7468 2005-08-22 Borut Razem <borut.razem AT siol.net>
7469
7470         * device/lib/Makefile.in: replaced find option -or with -o
7471           to make it run on solaris
7472
7473 2005-08-22 Raphael Neider <rneider AT web.de>
7474
7475         * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
7476           fixes #1265442 (crash on Solaris)
7477
7478 2005-08-20 Borut Razem <borut.razem AT siol.net>
7479
7480         * configure, configure.in: added tests for libsocket and libnsl libraries,
7481           requred by sdcdb on sparc-solaris; generate support/regression/Makefile
7482           from support/regression/Makefile.in
7483         * support/regression/Makefile.in: added
7484         * device/lib/pic16/Makefile.common.in: force make to use bash shell
7485         * sim/ucsim/libtool: regenerated on sparc-solaris
7486         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
7487           sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
7488           sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
7489           -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
7490           sparc-solaris, which doesn't use GNU ld linker
7491         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
7492         * as/Makefile: find on sparc-solaris does not support -maxdepth option
7493
7494 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
7495
7496         * src/mcs51/peeph.def: updated comments
7497
7498 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7499
7500         * device/lib/_gptrget.c,
7501         * device/lib/_gptrput.c: slightly shorter
7502         * doc/sdccman.lyx: incremented version
7503         * src/mcs51/peeph.def: moved peephole comments to the line of first
7504           change to better keep line correlation, reanimated 186.e
7505         * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
7506
7507 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
7508
7509         * src/pic/pcode.c : Pasted ".line" assembly directives patch from
7510           David Saxton with quotes around file name.
7511
7512 2005-08-15 Borut Razem <borut.razem AT siol.net>
7513
7514         * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
7515           support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
7516           support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
7517           make tests run on x86_64 platform
7518
7519 2005-08-13 Raphael Neider <rneider AT web.de>
7520
7521         * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
7522           as it might be executed DURING a build (parallel make is wonderful)
7523
7524 2005-08-13 Raphael Neider <rneider AT web.de>
7525
7526         * device/lib/Makefile.in (port-specific-objects-pic16):
7527           revert to cp $(PORT)/bin/*.* $(PORTDIR)
7528         * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
7529           dependency
7530         * device/lib/pic16/Makefile.rules: build subdirs before creating
7531           the library, removed builddir rule, create $(builddir) early in
7532           recurse rule, use empty recurse rule for leaf directories
7533         * device/lib/pic16/Makefile.subdir: added phony targets, ignore
7534           mkdir errors (race condition), removed duplicate suffix "hex"
7535           from clean rules
7536         * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
7537         * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
7538           prevents mkdir -p from aborting on Alpha
7539
7540 2005-08-12 Raphael Neider <rneider AT web.de>
7541
7542         * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
7543           db-statements in order to allow for arrays of pointers in code
7544           sections to be placed without interspersed 0-padding, fixes
7545           bug #1256215
7546         * (emitStatistics): fixed division by zero for pic18f1220
7547         * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
7548           unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
7549         * (pic16_emitDS): respect DB_ITEMS_PER_LINE
7550         * (pic16_pCodeConstString): keep track of already emitted string
7551           literals to prevent "duplicate definitions of symbol _str_NR"
7552         * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
7553           debug message
7554         * device/lib/Makefile.in: ignore failing PIC16 library builds
7555         * device/lib/pic16/Makefile: do not build if gputils are missing
7556         * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
7557
7558 2005-08-10 Raphael Neider <rneider AT web.de>
7559
7560         * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
7561           my last commit)
7562
7563 2005-08-10 Raphael Neider <rneider AT web.de>
7564
7565         * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
7566           Rokas' patch to add the new fixed point type "__fixed16x16"
7567         * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
7568           functions for __fixed16x16 arithmetics
7569         * device/lib/pic16: reimplemented the build system to support
7570           a separate build directory, better handling of libio (create
7571           the library in a separate subdir for each architecture) and
7572           easier configuration (centralized in Makefile.common)
7573
7574 2005-08-07 Raphael Neider <rneider AT web.de>
7575
7576         * src/pic16/gen.c (genrshTwo): fixed sign extension
7577         * src/pic16/device.c: added pic18f2320, 4220 and 4320
7578         * device/include/pic16/pic18f2220.h: changed some bit definitions,
7579           added T0CONbits
7580         * device/include/pic16/pic18f4220.h: NEW, header for
7581           pic18f4220 and pic18f4320
7582         * device/include/pic16/pic18fregs.h: added new devices,
7583           embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
7584         * device/include/pic16/signal.h: resolved name clashes
7585           on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
7586           to also allow testing for interrupt enable bits, added
7587           comments on how to use the macros
7588         * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
7589         * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
7590           register definitions for the devices
7591         * device/lib/pic16/pics.all: added new devices
7592         * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
7593           allocated memory
7594         * device/lib/pic16/libc/stdlib/memfree: do not count
7595           the block header as free memory
7596         * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
7597           simplified and added missing end-of-blocklist-marker
7598           (reported by Peter Onion, fixes #1252814)
7599         * (_mergeHeapBlock): fixed loop condition
7600         * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
7601           len==0, restructured code
7602         * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
7603           up a bit, reduced bitfield accesses, prevent endless loops
7604           in case of heap corruption
7605         * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
7606           "unreferenced arguments/must return a value" warnings
7607         * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
7608           replaced BAUDREG with SPBRG
7609         * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
7610           device/lib/pic16/debug/gstack/gstack.c: replaced
7611           _naked, _asm, _endasm with __naked, __asm, __endasm
7612
7613 2005-08-05 Raphael Neider <rneider AT web.de>
7614
7615         * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
7616           AOP_PCODE operands, fixes multibyte union-bitfield-accesses
7617
7618 2005-08-05 Borut Razem <borut.razem AT siol.net>
7619
7620         * device/lib/Makefile.in: added missing ';'
7621         * configure: removed ^M characters
7622
7623 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7624
7625         * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
7626           device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
7627           License
7628
7629 2005-08-04 Borut Razem <borut.razem AT siol.net>
7630
7631         * configure.in: pic16 libraries build 2nd try - enable running
7632           configure in device/lib/pic16
7633         * configure: regenerated from configure.in
7634         * device/lib/Makefile.in: create $(PORT)/bin directory
7635
7636 2005-08-03 Raphael Neider <rneider AT web.de>
7637
7638         * src/pic16/gen.c (pic16_derefPtr): NEW, single place
7639           to get/set values via pointers
7640         * (genUnpackBits,genPackBits): changed detection of
7641           ptr->bitfield vs. sym.bitfield, fixed access via generic
7642           pointers, removed dead (wrong) code for multibyte bitfields
7643         * (genNearPointerGet, genGenPointerGet): removed useless code,
7644           fixed bitfield detection, fixes #1250594
7645         * (genNearPointerSet): removed useless code
7646         * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
7647           and introduced macro pic16_emitpcode that conditionally emits
7648           the origin of the following pCode (useful for debugging SDCC)
7649         * src/pic16/pcode.c: changed (and disabled) some debug outputs
7650         * (createDefmap): fixed handling of LFSR for --optimize-df
7651
7652 2005-08-02 Borut Razem <borut.razem AT siol.net>
7653
7654         * device/lib/Makefile.in: pic16 libraries build enabled since
7655           gputils-0.13.2 are now localy installed at sourceforge's compile farm
7656
7657 2005-08-02 Raphael Neider <rneider AT web.de>
7658
7659         * src/pic16/gen.c (genPackBits): removed deprecated warning
7660         * (genGenPointerSet): fixed bitfield detection
7661
7662 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7663
7664         * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
7665
7666 2005-07-31 Raphael Neider <rneider AT web.de>
7667
7668         * device/lib/pic16/libdev/pic18f458.c,
7669           device/include/pic16/pic18f458.h: added missing T0CONbits
7670
7671 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
7672
7673         * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
7674
7675 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
7676
7677         * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
7678
7679 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7680
7681         * device/include/mcs51/at89c51ed2.h: added.
7682
7683 2005-07-23 Raphael Neider <rneider AT web.de>
7684
7685         * src/pic/gen.h: added emitpcode macro for debugging
7686         * src/pic/gen.c (emitpcode): renamed to emitpcode_real
7687           and replace by macro adding debug information on demand
7688         * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
7689         * (gencjne): tried to fix; replaced with correct (slower) code
7690         * (gen{Unp,P}ackBits): fixed single bit access
7691         * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
7692         * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
7693           previous instruction
7694         * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
7695           register has to be handled with care (forbidding movement
7696           of assignments/uses, removing assignments completely, ...)
7697         * (pCodeOptime2pCodes): make use of regIsSpecial
7698         * added lots of debugging output (commented out)
7699         * src/pic/rallloc.c (deassignLRs): prevent operand registers
7700           from being reused as result UNLESS it is known to work
7701
7702 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
7703
7704         * support/Util/dbuf.h: include <stddef.h> for size_t
7705         * .version: changed to version 2.5.2
7706
7707 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7708
7709         * src/SDCCloop.c (loopInvariants): fixed bug #1234048
7710
7711 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7712
7713         * src/hc08/gen.c (genMinus): fixed bug #1241835,
7714           (genModOneByte): removed needless psha/pula
7715
7716 2005-07-22 Raphael Neider <rneider AT web.de>
7717
7718         * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
7719           have PIC14 handled like PIC16, fixes broken pic14 linker calls
7720         * src/pic/gen.c (resolveIfx): do not "invent" labels
7721         * (genSkipc): changed to positive logic
7722         * (genSkipCond): removed as no longer needed
7723         * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
7724           backport from PIC16
7725         * (genLeftShift): check operands are in different registers
7726         * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
7727           INCF does not update CARRY...
7728         * src/pic/main.c: fixed _linkCmd
7729         * src/pic/pcode.c (unlinkpCode): added inactive code
7730         * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
7731           alive (do not assign result and operand overlapping registers)
7732
7733 2005-07-22 Raphael Neider <rneider AT web.de>
7734
7735         * src/pic/device.c (dump_sfr): replaced register declaration with
7736           call to emitSymbolToFile() to avoid duplicate symbols
7737         * (assignRelocatableRegisters): do not declare external symbols
7738         * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
7739           right (take size of type, not etype)
7740         * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
7741         * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
7742         * (packRegsForAccUse): disabled assignment of WREG as
7743           the result reg to prevent occurence of just fixed #1235003,
7744           fixes #1242954
7745         * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
7746           symbols (avoids duplicate symbols in .asm file)
7747         * (pic14emitRegularMap): use emitSymbolToFile()
7748         * src/pic/gen.c (aopOp): fixed spillLocation handling
7749         * (gen{Unp,P}ackBits): fixed acquiring bit-operands
7750         * (genDataPointerSet): removed unneccessary variables/output
7751
7752 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
7753
7754         * as/mcs51/lkarea.c: enlarged codemap for banked memory
7755         * device/lib/mcs51/crtbank.asm: added # to 0x0F
7756
7757 2005-07-21 Raphael Neider <rneider AT web.de>
7758
7759         * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
7760           architecture cannot handle them efficiently, fixes bug #1235003
7761         * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
7762           check for empty sets before using them (fixes bug #1232190)
7763
7764 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
7765
7766         * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
7767           (lnksect2): generate warnings for memory overlap
7768         * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
7769           constseg to set the name of these segments so you can instruct the linker
7770           to place them in banks
7771         * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
7772         * src/SDCCglobl.h: added MODEL_HUGE to enum,
7773           added code_seg and const_seg to options
7774         * src/SDCCglue.c (emitMaps): use options.const_seg,
7775           (createInterruptVect): put interrupt vectors in segment HOME,
7776           (glue): put HOME before static segment and put the main glue in HOME,
7777           (glue): use options.code_seg
7778         * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
7779         * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
7780           these segments so you can instruct the linker to place them in banks
7781           (linkEdit): use code_loc for HOME segment which should be the first
7782           segment in code memory now
7783         * src/SDCCmem.c: fixed more stuff like bug 1238386
7784         * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
7785           (changePointer): don't change function pointers to code pointers for
7786           banked functions,
7787           (compareType): added exceptional check for banked function pointers
7788         * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
7789         * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
7790           after static in code memory
7791         * src/mcs51/gen.c: added aopLiteralLong prototype,
7792           (aopForSym): use getSize for functions,
7793           (genCall): generate banked calls over one trampoline __sdcc_banked_call
7794           in HOME with lsb of address in r0, msb in r1 and bank in r2, use
7795           -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
7796           the segment,
7797           (genPcall): use call for literal function pointers and generate banked
7798           calls over the one trampoline so there's only one place for the user to
7799           modify according to his/hers hardware,
7800           (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
7801           (genPlusIncr): moved check icount>4 beyond inc dptr optimization
7802         * src/mcs51/main.c: added keyword banked,
7803           (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
7804         * support/Util/SDCCerr.c,
7805         * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
7806           needed for passing the bank and address to the trampoline
7807         * device/lib/mcs51/crtbank.asm: added for bankswitching
7808         * device/lib/mcs51/Makefile: added crtbank
7809
7810 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7811
7812         * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
7813           for fields at offset 0 of a struct or union as reported
7814           on 2005-07-07 in the developer mailing list.
7815
7816 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
7817
7818         * src/SDCCmem.c: fixed bug 1238386
7819
7820 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7821
7822         * src/mcs51/peeph.def: added labelrefcounting for peepholes
7823           (patch #1144962), added peephole 300, enabled 259.x
7824         * doc/sdccman.lyx: removed screenshot and provided link instead
7825
7826 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7827
7828         * doc/sdccman.lyx: added section about debugging with ddd
7829         * doc/figures/ddd_example.eps: screenshot of debugging session
7830
7831 2005-07-04 Raphael Neider <rneider AT web.de>
7832
7833         * src/pic/gen.c (genPointerGet): handle pointers to CONST values
7834           like CODE pointers, fixes #1115683
7835         * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
7836           call, fixes bugs #1232211, #1228110,
7837           fixed wrong casts to pCodeFlow from pCodeInstructions
7838
7839 2005-07-04 Raphael Neider <rneider AT web.de>
7840
7841         * src/pic/gen.c (popGet): changed assert to allow for
7842           bit operands
7843         * (popGetAddr): changed signature to provide
7844           an additional index, patched all call sites
7845         * (genCmpEq): handle literal-like operands correctly
7846         * (genAddrOf): added sanity checks on __code/__data pointers
7847         * (genAssign): added handling of symbols from __code section
7848         * (gencjne): do not generate code for comparisons whose result
7849           is neither stored nor used, fixes bug #1171114
7850         * (AccLsh, AccRsh): operate on operand instead of WREG
7851         * (shift{Left,Right}_Left2ResultLit): NEW, size independant
7852           replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
7853           by known count
7854         * rewrote complete shift-by-literal logic, commented unused
7855           functions out
7856         * (genConstPointerGet): get multiple bytes (if result size > 1),
7857           fixed handling of non-immediate addresses
7858         * (genPointerGet): handle CODE pointers like CONST pointers
7859         * (genpic14Code): insert C-SRC lines as Cource-pCodes
7860         * ({aop,op}_isLitLike): NEW, single place to decide whether an
7861           operand is to be treated as a literal or not
7862         * (mov2w,genPcall,genCmpEq),
7863           src/pic/genarith.c: use aop_isLitLike() to decide between
7864           literal/register contents
7865         * (addSign): added missing offset
7866         * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
7867           only emit comment in debug-mode,
7868           use {aop,op}_isLitLike throughout the file
7869         * src/pic/glue.c: fix initializers for pointers (work in progress)
7870         * src/pic/pcode.c (get_op): honor index on _const symbols
7871         * ({reset,dump}pCodeStatistics): NEW, estimate code size
7872         * (dumppBlock): added pCode size estimation
7873         * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
7874           check for IS_SYMOP before OP_SYMBOL'ing
7875         * fixed indentation, compacted switch-statements
7876         * (allocReg): find free register and allocate it instead of
7877           allocating new registers all the time
7878         * (deassignLRs): prevent POINTER_GET's from being assigned the same
7879           registers as its operands (necessary only for multibyte GETs)
7880
7881 2005-07-01 Raphael Neider <rneider AT web.de>
7882
7883         * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
7884           debugging .asm-output macros FENTRY + FEXIT
7885         * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
7886           way... I wonder...
7887         * (emitpComment): NEW, printf to pCode
7888         * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
7889           offset handling
7890         * (popGetAddr): NEW, variant of popGet to access an immediates
7891           high(er) bytes instead of the n'th byte of memory they reference,
7892           replaced popGet with popGetAddr where neccessary
7893         * (genDataPointerGet): reactivated and fixed implementation
7894         * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
7895           accesses
7896         * (genDataPointerSet): fixed multibyte assignments
7897         * (genpic14Code): fixed --i-code-in-asm handling
7898         * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
7899         * (genPlus): fixed index-out-of-bounds error
7900         * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
7901         * src/pic/ralloc.c: added debugging output macro FENTRY2
7902         * (spillThis): fixed indentation, enbraced for-body for clarity
7903         * (rematStr): commented out as now unused
7904         * (regTypeNum): commented out special spill case (overwrites
7905           arbitrary values)
7906         * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
7907
7908 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
7909
7910         * doc/sdccman.lyx: documented sfr16/sfr32,
7911           added example for using storage class with function pointers
7912         * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
7913
7914 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
7915
7916         * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
7917         * device/lib/_itoa.c,
7918         * device/lib/_ltoa.c: optimized codesize
7919         * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
7920           but don't know how to suppress the double warning.
7921         * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
7922         * support/Util/SDCCerr.c,
7923         * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
7924
7925 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
7926
7927         * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
7928           fixed old K&R prototypes
7929         * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
7930         * device/lib/_gptrget.c,
7931         * device/lib/_gptrgetc.c,
7932         * device/lib/_gptrput.c: changed versions for new memory indicator values,
7933           also new versions for small generic pointers and banked generic pointers
7934         * src/port.h: added const_name
7935         * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
7936         * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
7937         * src/SDCCcse.c (findPrevIc): check all associative operators
7938         * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
7939         * src/SDCCicode.h: added macro IS_ASSOCIATIVE
7940         * src/SDCCmem.c: updated comments,
7941           set far-space to 0 for pdata, results in optimized code
7942         * src/SDCCmem.h: added macro CONST_NAME
7943         * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
7944           moving the info into the highest bits, see also gptrget/gptrput
7945         * src/src.dsp: added sdcc.ico to project files
7946         * src/avr/gen.c (genCast): fixed bug 0x%d
7947         * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
7948         * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
7949           relation between ptr_type and DCL_TYPE,
7950           (genCast): fixed bug 0x%d
7951         * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
7952           (CODE)" for const_name
7953         * src/hc08/gen.c (genCast): fixed bug 0x%d
7954         * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
7955           (hc08_port): added "CONST (CODE)" for const_name
7956         * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
7957           (aopForRemat, adjustArithmeticResult): disconnected direct relation
7958           between ptr_type and DCL_TYPE,
7959           (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
7960           operand* and took AOP() inside function so sfr-ness can be checked,
7961           (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
7962           new prototype,
7963           (genFunction, genEndFunction): optimized stack setup,
7964           (genMinus): optimized for literals with ending zeroes (in bytes),
7965           (genCast): fixed bug 0x%d
7966         * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
7967           (mcs51_port): added "CONST (CODE)" for const_name
7968         * src/mcs51/peeph.def: made rule 226 more generic
7969         * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
7970         * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
7971         * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
7972         * src/z80/main.c (z80_port): added NULL for const_name,
7973           (gbz80_port): added NULL for const_name
7974         * support/regression/tests/bug663539.c,
7975         * support/regression/tests/sfr16.c: new tests
7976
7977 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7978
7979         * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
7980
7981 2005-06-24 Raphael Neider <rneider AT web.de>
7982
7983         * device/lib/pic16/libdev/pic18f[68][567]20.c:
7984           corrected typos...
7985         * device/include/pic16/signal.h: added USBIF
7986           and SIG_USB
7987
7988 2005-06-24 Raphael Neider <rneider AT web.de>
7989
7990         * device/lib/pic16/libdev/pic18f2455.c,
7991           device/include/pic16/pic18f2455.h: NEW
7992         * device/include/pic16/pic18fregs.h,
7993           device/lib/pic16/pics.all,
7994           src/pic16/device.c: added 18f2455
7995         * device/lib/pic16/libdev/pic18f[68][567]20.c,
7996           device/include/pic16/{pic18f[68][567].h,usart.h}:
7997           replaced MULTIPLE_USARTS define with more relaible
7998           compatibility sfrs (for USART access)
7999
8000 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
8001
8002         * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
8003           and the output asm file line is printed on two lines.
8004
8005 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8006
8007         * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
8008           BGT, BLE, BHI, and BLS instructions
8009         * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
8010           genCmpEq): removed
8011         * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
8012           negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
8013           fixes bug #1216342
8014         * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
8015
8016 2005-06-15 Raphael Neider <rneider AT web.de>
8017
8018         * src/pic16/NOTES: moved Vangelis from active developers to people to contact
8019         * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
8020         * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
8021           fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
8022           OP_SYM_TYPE() instead of OP_SYM_ETYPE()
8023
8024 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8025
8026         * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
8027           Marcel Telka in bug #1215704
8028
8029 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
8030
8031         * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
8032           located in shared memory bank.
8033
8034 2005-05-31 Raphael Neider <rneider AT web.de>
8035
8036         * src/pic16/{gen.c,genarith.c}: replaced sign-extension
8037           "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
8038           "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
8039
8040 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
8041
8042         * device/lib/_strncpy.c: fixed the fix
8043
8044 2005-05-26 Raphael Neider <rneider AT web.de>
8045
8046         * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
8047           initializers with \0, bug #1208187
8048         * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
8049           intializers with \0, bug #1208187
8050
8051 2005-05-26 Raphael Neider <rneider AT web.de>
8052
8053         * src/pic16/glue.c (pic16_printIvalChar): fixed string
8054           initializers with \0, bug #1208187
8055         * src/pic16/main.c (_process_pragma): added sanity checks
8056           for stack position and size, emit warnings when appropriate
8057
8058 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
8059
8060         * device/lib/_strncpy.c: fixed not filling with \0
8061
8062 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8063
8064         * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
8065           createFunction),
8066         * src/SDCC.y (external_definition, enumerator, parameter_declaration,
8067           compound_statement),
8068         * src/SDCCsymt.h,
8069         * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
8070
8071 2005-05-24 Raphael Neider <rneider AT web.de>
8072
8073         * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
8074
8075 2005-05-24 Raphael Neider <rneider AT web.de>
8076
8077         * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
8078           TRISE definitions, closes bug #1162453
8079
8080 2005-05-22 Raphael Neider <rneider AT web.de>
8081
8082         * src/pic16/main.c (_process_pragma): check for missing
8083           arguments to pragmas code and udata
8084         * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
8085           consistency fixes to match other headers (thanks to Jim Paris)
8086         * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
8087
8088 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
8089
8090         * src/SDCCicode.c (isOperandEqual): fixed missing ;
8091
8092 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
8093
8094         * support/regression/tests/bug1198642.c: new test
8095         * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
8096         * src/SDCCcse.c (findPrevIc): added comment, please have a look
8097         * support/scripts/resource.h,
8098         * support/scripts/resource.rc,
8099         * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
8100         * support/scripts/sdcc.ico: added 32x32 icon
8101
8102 2005-05-18 Raphael Neider <rneider AT web.de>
8103
8104         * device/lib/pic16/libdev/pic18f*.c,
8105         * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
8106           keywords to "__sfr" and "__at (X)"
8107         * device/include/pic16/pic18fregs.h: added pic18f4520
8108         * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
8109           #1203088 (MPLAB compatibility)
8110
8111 2005-05-17 Raphael Neider <rneider AT web.de>
8112
8113         * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
8114         * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
8115         * device/lib/pic16/pics.all: added new devices
8116         * src/pic16/device.c: added support for pic18f4520
8117
8118 2005-05-16 Raphael Neider <rneider AT web.de>
8119         * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
8120         * src/pic16/genarith.c (genAddLit): fixed bug 1202480
8121         * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
8122           convenience function for bit access
8123
8124 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
8125
8126         * device/lib/printf_large.c: fixed bug 1193299
8127         * support/regression/tests/bug1057979.c: added test %3.3s
8128
8129 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8130
8131         * device/include/mcs51/8051.h,
8132         * device/include/mcs51/8052.h: made parseable with lint
8133         * device/include/mcs51/lint.h: added include file for (sp)lint
8134         * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
8135         * doc/cdbfileformat.lyx,
8136         * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
8137
8138 2005-05-14 Raphael Neider <rneider AT web.de>
8139
8140         * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
8141         * device/lib/pic16/libc/stdlib/itoa.c (new)
8142         * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
8143         * device/lib/pic16/libio/Makefile: exclude subdir according to
8144           ${subdir}.ignore for certain PICs (lacking e.g. i2c)
8145         * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
8146         * src/pic16/gen.c (genFunction): prevent annoying warning
8147         * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
8148           nameclashes on BeOS
8149         * support/cpp2/cppmain.c (cpp_output_string): new
8150         * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
8151           fixes bug 1116802
8152
8153 2005-05-13 Borut Razem <borut.razem AT siol.net>
8154
8155         * src/SDCCmain.c (linkEdit): fixed bug 1195202
8156
8157 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8158
8159         * .version: changed to version 2.5.1; back to bleeding edge development
8160
8161 2005-05-11 Borut Razem <borut.razem AT siol.net>
8162
8163         * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
8164           generate PDF version 1.3 documents
8165
8166 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8167
8168         * .version: changed to version 2.5.0
8169
8170 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8171
8172         * doc/sdccman.lyx: updated weblinks, index and smaller updates
8173
8174 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8175
8176         * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
8177         --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
8178         well as many smaller updates.
8179         * .version: changed to version 2.5.0-pre1
8180
8181 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8182
8183         * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
8184
8185 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
8186
8187         * support/regression/tests/bug1185672.c: added
8188         * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
8189           bug 1185672
8190         * src/mcs51/gen.c (genCall): added comments, made it look safer
8191         * src/mcs51/gen.c (genEndFunction): simplified
8192
8193 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
8194
8195         * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
8196
8197 2005-04-14 Borut Razem <borut.razem AT siol.net>
8198
8199         * fixed bug 1045046 - SIGSEGV with really simple code?:
8200           src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
8201           src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
8202
8203 2005-04-14 Borut Razem <borut.razem AT siol.net>
8204
8205         * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
8206           src/pic16/device.h: temporarily disabled experimental #inline pragma
8207           for 2.5.0 release
8208
8209 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
8210
8211         * device/include/z80/stdio.h,
8212         * device/include/z80/string.h: removed these highly incomplete files so
8213           SDCC can use the default ones in device/include/
8214
8215 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8216
8217         * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
8218         gcc warning.
8219         * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
8220         fix sdcpp warnings.
8221
8222 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
8223
8224         * device/include/malloc.h: removed redundant __reentrant prototypes
8225         * device/lib/_mullong.c: added working xstack variant in asm (C version
8226           doesn't pass regression tests)
8227         * device/lib/bpx.c: used __data and made bpx char for mcs51
8228         * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
8229           (createFunction): fixed bug with xstackPtr
8230         * src/SDCCcse.c: corrected comments
8231         * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
8232           (killDeadCode, eBBlockFromiCode): removed unused code
8233         * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
8234           corrected comments
8235         * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
8236           assignResultValue, genCall, genFunction, genEndFunction, genAnd,
8237           genOr, genXor, genAddrOf): fixed several bugs concerning xstack
8238           (genModOneByte): fixed warning in MSVC
8239         * src/mcs51/main.c (): added comments
8240         * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
8241
8242 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
8243
8244         * src/SDCCmain.c (linkEdit): oops, changed one line too many
8245
8246 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
8247
8248         * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
8249
8250 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
8251
8252         * src/pic16/glue.c (printIvalChar): fixed bug when emitting
8253         characters arrays of larger size than the declared one.
8254
8255 2005-04-10 Borut Razem <borut.razem AT siol.net>
8256
8257         * src/pic/gen.c (genInline),
8258           src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
8259           (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
8260           (findNextInstruction), (findPrevInstruction),
8261           (findInstructionUsingLabel),
8262           src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
8263         * src/pic/pcode.c (findLabel): added missing '\n'
8264         * src/src.dsp: added SDCCdwarf2.c to the project
8265
8266 2005-04-09 Borut Razem <borut.razem AT siol.net>
8267
8268         * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
8269
8270 2005-04-08 Raphael Neider <rneider AT web.de>
8271
8272         * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
8273           into the chain after a given one) and mergeDefmapSymbols (combine
8274           defmap entries for each symbol per pcode)
8275         * (createDefmap): have defmap entries merged in the end
8276         * (defmapReplaceSymRef): split defmap entries covering two accesses to
8277           a symbol before replacing one access type's symbol, merge symbols in
8278           the end (replacement symbol might already have an entry)
8279         * (assignValnums): keep reference to written WREG intact
8280
8281 2005-04-08 Raphael Neider <rneider AT web.de>
8282
8283         * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
8284           Alpha)
8285
8286 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
8287
8288         * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
8289         bytes
8290
8291 2005-04-07 Raphael Neider <rneider AT web.de>
8292
8293         * device/include/pic16/usart.h: added compatibility defines for
8294           devices with more than one USART
8295         * device/include/pic16/pic18f[68][567]20.h: activated above defines
8296
8297 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
8298
8299         * device/lib/Makefile.in: updated for port specific include
8300
8301 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
8302
8303         * support/regression/ports/mcs51/spec.mk: added mcs51 include
8304
8305 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
8306
8307         * device/include/8051.h,
8308         * device/include/8052.h,
8309         * device/include/at89S8252.h,
8310         * device/include/at89c55.h,
8311         * device/include/at89x051.h,
8312         * device/include/at89x51.h,
8313         * device/include/at89x52.h,
8314         * device/include/mcs51reg.h,
8315         * device/include/reg51.h,
8316         * device/include/reg764.h,
8317         * device/include/regc515c.h,
8318         * device/include/sab80515.h: (re)moved these 12 files
8319         * device/include/mcs51/8051.h,
8320         * device/include/mcs51/8052.h,
8321         * device/include/mcs51/at89S8252.h,
8322         * device/include/mcs51/at89c55.h,
8323         * device/include/mcs51/at89x051.h,
8324         * device/include/mcs51/at89x51.h,
8325         * device/include/mcs51/at89x52.h,
8326         * device/include/mcs51/mcs51reg.h,
8327         * device/include/mcs51/reg51.h,
8328         * device/include/mcs51/reg764.h,
8329         * device/include/mcs51/regc515c.h,
8330         * device/include/mcs51/sab80515.h: and added them here
8331
8332 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
8333
8334         * device/include/stdarg.h: changed SDCC specific keywords to double
8335           underlined form.
8336         * device/include/stdint.h: changed intptr_t and uintptr_t for others than
8337           mcs51 and ds390.
8338         * device/include/hc08/mc68hc908gp32.h,
8339         * device/include/hc08/mc68hc908jb8.h,
8340         * device/include/hc08/mc68hc908jkjl.h,
8341         * device/include/hc08/mc68hc908qy.h: fixed comments
8342         * device/include/mcs51/README: updated
8343         * device/include/mcs51/c8051f120.h: added PINRSF
8344         * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
8345         * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
8346           amidst code. Also inline is not supported.
8347
8348 2005-04-06 Raphael Neider <rneider AT web.de>
8349
8350         * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
8351         * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
8352           callers stack/frame pointers
8353
8354 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
8355
8356         * device/include/pic16/usart.h: added, missing in previous commit,
8357         * device/include/pic16/adc.h: fixed typo,
8358         * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
8359         commit,
8360         * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
8361         <p18fxxx.inc>
8362         * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
8363         uninitialized because a bug appears with gplink
8364         * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
8365         COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
8366         complains for unrecognised option
8367
8368 2005-04-05 Raphael Neider <rneider AT web.de>
8369
8370         * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
8371           structs as well (using memcpy)
8372         * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
8373           on ISRs (GOTO has no label)
8374         * src/pic16/device.h: added OF_OPTIMIZE_DF
8375         * src/pic16/main.c: added compiler switch --optimize-df to enable the
8376           new data flow analysis/optimization
8377         * src/pic16/pcode.c: added (prototypes for and implementation of)
8378           dataflow analysis functions, fixed pCodeInstructions' inCond and
8379           outCond values, made RCALL a branch instruction
8380         * (pic16_unlinkpCode): keep C line if possible
8381         * (pic16_pCodeUnlink): removed cast on left side of assignment, have
8382           C line moved if possible
8383         * (pic16_getRegFrompCodeOp): NEW, improved version of...
8384         * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
8385           to use new pic16_getRegFrompCodeOp (works for more SFRs)
8386         * (pic16_BuildFlow): fixed skip instructions with label (did not start
8387           new flow)
8388         * (pic16_getJumptabpCode): NEW, needed in...
8389         * (LinkFlow): fixed handling of jumptables, calls and conditional
8390           branches
8391         * (pic16_InsertCommentAfter): NEW
8392         * (pic16_pCodeReplace): made verbose and flow preserving
8393         * (AnalyzeFlow): added call to data flow analysis
8394         * src/pic16/pcode.h: added defmaps to pCodeFlow struct
8395         * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
8396         * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
8397
8398 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8399
8400         * src/SDCCast.c (decorateType): fixed bug #1105626
8401
8402 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
8403
8404         * device/include/asm/pic16/features.h,
8405         * pic18f*.h headers,
8406         * device/include/pic16/adc.h,
8407         * device/include/pic16/delay.h,
8408         * device/include/pic16/i2c.h,
8409         * device/include/pic16/malloc.h,
8410         * device/include/pic16/stdio.h,
8411         * device/include/pic16/stdlib.h,
8412         * device/include/pic16/string.h,
8413         * device/lib/pic16/libc/stdio/printf_tiny.c,
8414         * device/lib/pic16/libc/stdio/printf_small.c,
8415         * device/lib/pic16/libc/stdio/strmgpsim.c,
8416         * device/lib/pic16/libc/stdio/strmmssp.c,
8417         * device/lib/pic16/libc/stdio/strmusart.c,
8418         * device/lib/pic16/libc/stdio/vfprintf.c,
8419         * device/lib/pic16/libc/stdlib/ltoa.c,
8420         * device/lib/pic16/libc/stdlib/putchar.c,
8421         * device/lib/pic16/libc/stdlib/x_ftoa.c,
8422         * device/lib/pic16/libc/stdlib/memchrpgm.c,
8423         * device/lib/pic16/libc/stdlib/memchrram.c,
8424         * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
8425         * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
8426         * device/lib/pic16/libio/adc/adcbusy.c,
8427         * device/lib/pic16/libio/adc/adcread.c,
8428         * device/lib/pic16/libio/adc/adcsetch.c,
8429         * device/lib/pic16/libio/usart/ubaud.c,
8430         * device/lib/pic16/libio/usart/ubusy.c,
8431         * device/lib/pic16/libio/usart/udrdy.c,
8432         * device/lib/pic16/libio/usart/uopen.c,
8433         * device/lib/pic16/libio/usart/uputc.c,
8434         * device/lib/pic16/libsdcc/gptr/gptrget1.c,
8435         * device/lib/pic16/libsdcc/gptr/gptrget2.c,
8436         * device/lib/pic16/libsdcc/gptr/gptrget3.c,
8437         * device/lib/pic16/libsdcc/gptr/gptrget4.c,
8438         * device/lib/pic16/libsdcc/gptr/gptrput1.c,
8439         * device/lib/pic16/libsdcc/gptr/gptrput2.c,
8440         * device/lib/pic16/libsdcc/gptr/gptrput3.c,
8441         * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
8442         specific keywords to double underlined form,
8443         * device/lib/pic16/libc/Makefile.rules,
8444         * device/lib/pic16/libsdcc/Makefile.rules,
8445         * device/lib/pic16/libm/Makefile,
8446         * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
8447         to compile with C standard set in Makefile.common
8448         * device/lib/pic16/libc/stdlib/Makefile: added new C sources
8449         rand.c and crc.c in compilation process,
8450         * device/lib/pic16/libsdcc/int/divuint.c,
8451         * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
8452         `c' from signed to unsigned,
8453         * device/lib/pic16/startup/crt0.c,
8454         * device/lib/pic16/startup/crt0i.c,
8455         * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
8456         keywords to double underlined form, bug fixes in _do_cinit function
8457         which prevented the correct initialization of the .idata segment,
8458         * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
8459         core to enter a infinite loop
8460         * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
8461
8462 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8463
8464         * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
8465
8466 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8467
8468         * device/include/Makefile.in: add support for hc08 subdirectory
8469         * device/include/hc08/: new subdirectory
8470         * device/include/hc08/mc68hc908jkjl.h: new header contributed by
8471         Lucas Loizaga, thanks!
8472         * device/include/hc08/mc68hc908qy.h,
8473         * device/include/hc08/mc68hc908gp32.h,
8474         * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
8475         their own directory. Changed internal macro names to use the compiler
8476         reserved namespace. Changed SDCC specific keywords to double
8477         underlined form.
8478         * device/include/math.h,
8479         * device/include/malloc.h,
8480         * device/include/stdarg.h,
8481         * device/include/stdbool.h
8482         * device/include/string.h,
8483         * device/include/tinibios.h,
8484         * device/include/ds400rom.h,
8485         * device/include/8051.h,
8486         * device/include/8052.h,
8487         * device/include/80c51xa.h,
8488         * device/include/at89c55.h,
8489         * device/include/at89S8252.h,
8490         * device/include/at89x51.h,
8491         * device/include/at89x52.h,
8492         * device/include/ds80c390.h,
8493         * device/include/reg764.h,
8494         * device/include/regc515c.h,
8495         * device/include/sab80515.h,
8496         * device/include/mcs51/c8051f000.h,
8497         * device/include/mcs51/c8051f018.h,
8498         * device/include/mcs51/c8051f020.h,
8499         * device/include/mcs51/c8051f040.h,
8500         * device/include/mcs51/c8051f060.h,
8501         * device/include/mcs51/c8051f120.h,
8502         * device/include/mcs51/c8051f300.h,
8503         * device/include/mcs51/c8051f310.h,
8504         * device/include/mcs51/c8051f320.h,
8505         * device/include/mcs51/c8051f330.h,
8506         * device/include/mcs51/c8051f350.h,
8507         * device/include/z180.h: Changed SDCC specific keywords to double
8508         underlined form.
8509
8510 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
8511
8512         * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
8513         18F4455,
8514         * (pic16_assignConfigWordValue): disable testing of configuration
8515         register value with config mask,
8516         * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
8517         function with port->fun_prefix,
8518         * (genFunction): when generating a naked interrupt function never
8519         create an absolute segment placed in interrupt vector address, place
8520         the actual interrupt function at IVA instead, when an interrupt
8521         function is generated with unspecified interrupt then do not create
8522         the absolute section,
8523         * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
8524         code for generating a call to generic pointer get/put function with
8525         a call to function pic16_callGenericPointer(),
8526         * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
8527         the call to the generic pointer get/put functions with prefixing the
8528         function name with port->fun_prefix,
8529         * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
8530         * src/pic16/main.c (_process_pragma): prefix function with
8531         port->fun_prefix,
8532         * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
8533         calling assembler, old 18Fxxxx macro is deprecated,
8534         * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
8535         PC_ASMDIR in while condition,
8536         * (findInstruction): add PC_ASMDIR in while condition,
8537         * (buildCallTree): prefix main with port->fun_prefix,
8538         * (pic16_pCode2str): fixed bug that didn't emit the memory access
8539         identifier for variable with banked access in instructions BTFSS,
8540         BTFSC, BCF, BSF, BTG
8541         * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
8542         * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
8543         * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
8544         perform optimization when enviroment variable NO_REG_OPT is set,
8545         * (insideLRBlock): NEW, return 1 if register is inside an
8546         INF_LOCALREGS block,
8547         * (RemoveRegFromLRBlock): remove a register that is completely
8548         eliminated by register optimization, but it is still left in local
8549         register store/restore in/from stack block,
8550         * (Remove2pcodes): after removing register, check to see if it
8551         should be removed from local register store/restore in/from stack
8552         block,
8553         * src/pic16/ralloc.c (pic16_decodeOp): added decode for
8554         DUMMY_READ_VOLATILE,
8555
8556         * device/include/pic16/adc.h: minor prototype modifications and
8557         update,
8558         * device/include/pic16/malloc.h: added GPL notice various
8559         modifications,
8560         * device/include/pic16/stdint.h: NEW, standard header for ints
8561         * device/include/pic16/delay.h: NEW, header for delay functions,
8562         delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
8563         delay1mtcy,
8564         * device/include/pic16/signal.h: NEW, header providing helper macros
8565         for implementing signal handlers,
8566         * device/include/pic16/stdio.h: added prototypes for functions,
8567         printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
8568         prototypes for stdin and stdout, added macro PUTCHAR to
8569         automatically implement putchar function prototype,
8570         * device/include/pic16/usart.h: modified and updated USART library,
8571         * device/lib/pic16/libio/adc/,
8572         * device/lib/pic16/libio/i2c: some modifications to improve library
8573         performance,
8574         * device/lib/pic16/libc/stdio/: modifications for the new printf*
8575         family of functions,
8576         * device/lib/pic16/libc/stdlib/: various modifications in the malloc
8577         family of functions and other sources,
8578         * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
8579         of the PIC18Fxx[28] devices,
8580         * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
8581         * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
8582         * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
8583         _do_cinit function, because the previous failed when local variables
8584         where not placed in the same memory bank,
8585         * device/lib/pic16/libsdcc/char/: various modifications to improve
8586         library performance,
8587         * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
8588         information on the new functions of the c library and more...
8589
8590 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8591
8592         * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
8593
8594 2005-03-26 Raphael Neider <rneider AT web.de>
8595
8596         * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
8597           if condition == CARRY)
8598         * (genCmp): adapted to new genSkipc semantics
8599         * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
8600           on rIfx (genCmp was broken)
8601
8602 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8603
8604         * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
8605         * src/z80/main.c (_keywords[]),
8606         * src/SDCCglobal.h (struct options),
8607         * src/SDCC.y,
8608         * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
8609         to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
8610         std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
8611         --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
8612         always available in leading double underscore form. The C99 support is
8613         mostly missing, but it's a start.
8614         * support/regression/tests/bug-227710.c: fixed nonconforming use of
8615         reserved identifier "__data".
8616
8617 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
8618
8619         * src/mcs51/peeph.def: fixed bug 1170013
8620
8621 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
8622
8623         * device/include/mcs51reg.h: fixed bug 842007
8624
8625 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8626
8627         * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
8628         last time.
8629
8630 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8631
8632         * src/port.h (struct PORT),
8633         * src/avr/ralloc.c (avr_assignRegisters),
8634         * src/avr/main.c,
8635         * src/ds390/ralloc.c (ds390_assignRegisters),
8636         * src/ds390/main.c,
8637         * src/hc08/ralloc.c (hc08_assignRegisters),
8638         * src/hc08/main.c,
8639         * src/mcs51/ralloc.c (mcs51_assignRegisters),
8640         * src/mcs51/main.c,
8641         * src/pic/ralloc.c (pic14_assignRegisters),
8642         * src/pic/main.c,
8643         * src/pic16/ralloc.c (pic16_assignRegisters),
8644         * src/pic16/main.c,
8645         * src/xa51/ralloc.c (xa51_assignRegisters),
8646         * src/xa51/main.c,
8647         * src/z80/ralloc.c (z80_assignRegisters),
8648         * src/z80/ralloc.h,
8649         * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
8650         * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
8651         * src/SDCCcse.h,
8652         * src/SDCCdflow.c (computeDataFlow),
8653         * src/SDCCdflow.h,
8654         * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
8655         * src/SDCCloop.h,
8656         * src/SDCCcflow.c (*),
8657         * src/SDCCcflow.h,
8658         * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
8659         * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
8660         of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
8661         immedDom() returning wrong block; probably fixes bug #1160833)
8662
8663 2005-03-20 Borut Razem <borut.razem AT siol.net>
8664
8665         * support/scripts/inc2h.pl: WIN32 port
8666
8667 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
8668
8669         * device/lib/makefile.in: added abs.c and labs.c
8670
8671 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
8672
8673         * device/include/stdint.h: added
8674         * device/lib/abs.c: added
8675         * device/lib/labs.c: added
8676         * device/include/stdlib.h: added abs() and labs() prototypes
8677         * device/lib/libsdcc.lib: added abs and labs
8678         * device/include/float.h,
8679         * device/lib/_fsmul.c,
8680         * device/lib/printf_fast.c,
8681         * device/lib/printf_tiny.c: updated comments
8682
8683 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8684
8685         * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
8686         bug #1164313
8687
8688 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8689
8690         * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
8691         * src/SDCCast.c (isLoopCountable): fixed bug #1161985
8692
8693 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
8694
8695         * device/lib/printf_large.c: removed inline assembly for portability and
8696           readability. Use printf_fast if speed or size are more important.
8697         * src/pic16/gen.c: removed conditions around use of DEBUGpc
8698         * src/pic16/genutils.h: added define for DEBUGpc for MSVC
8699
8700 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
8701
8702         * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
8703         prevent compiler warning
8704
8705 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
8706
8707         * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
8708         moved to level 0 and declared as static. Also they are explicit
8709         placed in access bank. This was necessery because some times they
8710         might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
8711         * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
8712         optimizations. Currently only compare to unsigned char is implemented,
8713         * src/pic16/gen.c: added fReturnIdx array,
8714         * (struct resolvedIfx) is moved to gen.h and made public,
8715         * (struct _G): added sregsAlloc and sregsAllocSet fields,
8716         * (aopForSym): added an optimization to directly store in stack of
8717         the operand of a SEND iCode,
8718         * (pic16_aopOp): don't return return registers as strings (AOP_STR)
8719         but as registers instead (AOP_REG) using the fReturnIdx array,
8720         * (pic16_freeAsmop): remove the freed register from the
8721         _G.sregsAlloc field,
8722         * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
8723         a compare of 'WREG',
8724         * (pic16_popGetTempRegCond): changed function prototype, now
8725         function takes also a bitVector argument v which holds the current
8726         set of registers that are allocated for stack access by aopForSym,
8727         registers allocated in aopForSym for accessing stack symbols are not
8728         any more part of the functions usedRegs field,
8729         * (genCall): some times aopOp is called for a stack variable to be
8730         send, aopForSym might perform the push, if this is true make sure
8731         that genCall doesn't push the variable twice by testing _G.resDirect,
8732         * (genFunction): changed testing for unspecified interrupt number
8733         from 256 to INTNO_UNSPEC,
8734         * modified selection scheme of frame pointer generation. Previously
8735         if function did use local registers a frame pointer was generated,
8736         now a frame pointer is generated only if function has arguments
8737         (that need PLUSW2 register access), or has stack arguments, or the
8738         compiler is not instructed to omit the frame pointer,
8739         * (genEndFunction): before restoring local registers that were saved
8740         in the function preamble, also restore the registers that *might*
8741         have been allocated for stack access,
8742         * (genRet): removed some old comments,
8743         * (genCmp, the active (RN's) version): added a call to the
8744         pic16_genCmp_special function to perform the compare with a more
8745         robust and optimized way,
8746         * (genInline): a feature has been added in inline code generation,
8747         which allows a wildcard variable substitution when writing inline
8748         assembly. Code is incomplete and experimental therefore undocumented,
8749         * (genCast): changed order of aopOp for result and right to allow
8750         aopForSym to directly load the result if possible,
8751         * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
8752         perform an optimized compare on some selected special occasions,
8753         * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
8754         * src/pic16/glue.c (pic16createInterrupVect): make sure we never
8755         generate an IVT any more,
8756         * src/pic16/main.c (pic16_optionsTable): added command line option
8757         --optimize-cmp,
8758         * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
8759         macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
8760         macros,
8761         * src/pic16/NOTES: Raphael Neider added in list of active developers
8762         * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
8763         jumptable_end to prevent bug #,
8764         * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
8765         inCond and outCond fields,
8766         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
8767         * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
8768         turn off register spilling,
8769         * (packRegsForOneUse): synced with other ports' versions although it
8770         is not used currently,
8771         * (pic16_packRegisters): added an optimization while reading
8772         structure bitfields, some registers may be saved (malloc code is
8773         decreased by 80 bytes)
8774
8775 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
8776
8777         * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
8778         left is a bitfield, if yes, then don't optimize assignment. Perhaps
8779         this can be optimized more?
8780
8781 2005-03-10 Raphael Neider <rneider AT web.de>
8782
8783         * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
8784           genNearPointerGet): (hopefully) fixed access to bitfields via
8785           pointers (p->bitN = x; and x = p->bitN; failed)
8786
8787 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
8788
8789         * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
8790
8791 2005-03-09 Raphael Neider <rneider AT web.de>
8792
8793         * src/SDCCopt.c (killDeadCode): fixed bug #1156016
8794
8795 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
8796
8797         * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
8798         * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
8799           (regTypeNum): set REG_BIT type if necessary
8800         * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
8801         * support/regression/tests/critical.c: check bug 1144613
8802
8803 2005-03-02 Raphael Neider <rneider AT web.de>
8804
8805         * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
8806
8807 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8808
8809         * src/avr/ralloc.c (serialRegAssign),
8810         * src/ds390/ralloc.c (serialRegAssign),
8811         * src/hc08/ralloc.c (serialRegAssign),
8812         * src/mcs51/ralloc.c (serialRegAssign),
8813         * src/pic/ralloc.c (serialRegAssign),
8814         * src/pic16/ralloc.c (serialRegAssign),
8815         * src/xa51/ralloc.c (serialRegAssign),
8816         * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
8817
8818 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
8819
8820         * src/SDCCast.c (decorateType): fixed bug 1124787
8821
8822 2005-02-20 Hubert Sack <sack AT digiplan.de>
8823         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8824
8825         * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
8826         patch #1121755
8827
8828 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8829
8830         * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
8831         to keep the correct label reference count when adding/removing references
8832         to labels. A peephole file using this is appended to patch #1144962.
8833
8834 2005-02-14 Raphael Neider <rneider AT web.de>
8835
8836         * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
8837         * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
8838         * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
8839           retrievals of result operand's value on assignment
8840
8841 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
8842
8843         * device/include/pic16/string.h: modified prototype for memccpy()
8844         to memccpy(void *, void *, char, size_t)
8845         * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
8846         check whether to omit frame pointer or not,
8847         * (genInline): convert all occurences of "\n" to LF in inline
8848         assembler blocks, this helps formatting the inline text,
8849         * (pic16_loadFSR0): modified prototype,
8850         * (genNearPointerGet, genNearPointerSet): reorganization of code,
8851         removed some 8051 legacy code,
8852         * (genPackBits): enabled handling bitfields exceeding one byte in size,
8853         * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
8854         before allocating temporary registers in functions,
8855
8856 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
8857
8858         * support/regression/tests/bitvars.c: corrected the "fix"
8859
8860 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
8861
8862         * support/regression/tests/bitvars.c,
8863         * support/regression/tests/bitwise.c,
8864         * support/regression/tests/rotate.c: "fixed" problems on Alpha
8865
8866 2005-02-10 Raphael Neider <rneider AT web.de>
8867
8868         * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
8869           different size for Alpha
8870         * src/pic16/gen.c (genCmpEq) : improved compare with 0
8871
8872 2005-02-09 Raphael Neider <rneider AT web.de>
8873
8874         * src/SDCC.lex(doPragma) : save and restore warning options as well
8875           (also added new stack plus clone- and copyAndFreeSDCCERRG())
8876         * have #pragma less_pedantic set the errorlevel to WARNING
8877           (fixes #1117001)
8878         * (cloneOptimize) : fixed wrong malloc's size
8879         * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
8880           facilitate correct handling of #pragma (save|restore)
8881
8882 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
8883
8884         * src/mcs51/gen.c: removed non-standard C nameless struct/union
8885
8886 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
8887
8888         * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
8889
8890 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
8891
8892         * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
8893
8894 2005-02-02 Raphael Neider <rneider AT web.de>
8895
8896         * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
8897         * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
8898         * (pic16_storeForReturn): fixed to allow returning function pointers
8899         * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
8900         * device/include/pic16/{stddef.h,stdbool.h}: added
8901
8902 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
8903
8904         * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
8905
8906 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
8907
8908         * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
8909         * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
8910          appeared to be required
8911
8912 2005-01-31 Borut Razem <borut.razem AT siol.net>
8913
8914         * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
8915           include/mcs51 and include/z80 directories to the package
8916
8917 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8918
8919         * src/hc08/gen.c (genFunction): fixed bug #1112752
8920
8921 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8922
8923         * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
8924
8925 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8926
8927         * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
8928
8929 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
8930
8931         * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
8932
8933 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
8934
8935         * device/include/c8051fxxx.h: removed these 6 files
8936         * device/include/mcs51/c8051fxxx.h: added these 11 new files
8937
8938 2005-01-26 Raphael Neider <rneider AT web.de>
8939
8940         * src/pic16/gen.c (genAssign): fixed assignment from longs
8941           in codespace (were cut to three bytes)
8942         * (genDummyRead): implemented (except for CODESPACE...),
8943           fixed bug #1108575
8944         * src/pic16/glue.c (emitStatistics): beautified
8945         * device/lib/pic16/libm/Makefile: added include path
8946
8947 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8948
8949         * src/z80/gen.c (aopPut): fixed bug #1103902
8950
8951 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8952
8953         * device/lib/expf.c: fixed bug #1095792
8954
8955 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
8956
8957         * device/lib/pic16/libm: added Math library sources
8958
8959 2005-01-24 Raphael Neider <rneider AT web.de>
8960
8961         * src/pic16/pcode.h: added second memory operand to pCodeOpReg
8962           to enable upcast to pCodeOpReg2 (there is no type tag to
8963           differenciate the two and pic16_popGet2p cast into PCOR2)
8964         * src/pic16/main.c (_process_pragma): fixed another malloc bug
8965           (sizeof(sectNames) changed to sizeof(sectName))
8966           Both patches fix segfaults under MinGW.
8967
8968 2005-01-23 Raphael Neider <rneider AT web.de>
8969
8970         * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
8971           Safe_[mc]?alloc()'ed variables
8972         * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
8973           of (byte sized) temporaries (assign them to WREG for now)
8974         * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
8975           (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
8976           this might fix SIGSEGVs on MinGW...
8977         * src/SDCCopt.c (killDeadCode): restored original behaviour
8978           (volatile operands might get thrown away though)
8979
8980 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
8981
8982         * src/pic16/gen.c: fixed bug #1106975,
8983         * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
8984         pointer update, INTCON is saved, global interrupts are disabled and
8985         restored after updateing TOS.
8986         * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
8987         * added function attribute 'shadowregs' to take advantage of shadow
8988         registers,
8989         * added function attribute 'wparam' as an alternative to the wparam
8990         pragma,
8991         * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
8992         user declares a non-ISR function as 'shadowregs',
8993         * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
8994
8995 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
8996
8997         * .version: bumped version number to 2.4.8
8998         * device/lib/pic16/pics.all: list of PIC18F devices supported by
8999         pic16 port,
9000         * device/lib/pic16/libio/i2c/: I2C module support library,
9001         * device/include/pic16/i2c.h: I2C support library header,
9002         * device/lib/pic16/libc/stdio/: standard IO support sources,
9003         * (printf_small.c): printf_small() source, supports float print,
9004         * (printf_tiny.c): printf_tiny() source, does not support floats,
9005         * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
9006         enable global optimizations for entire library source, other
9007         Makefiles in the source tree are also modified to reflect this,
9008         * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
9009         function,
9010         * doc/sdccman.lyx: updated to reflect new changes,
9011         * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
9012         sym->onStack if-case,
9013         * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
9014         sbit, idata, _idata, xdata, _xdata,
9015         * added pragma library, to link an external library, (see doc),
9016         * removed command line options, --pomit-config-words, --pomit-ivt,
9017         --pleave-reset-vector,
9018         * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
9019         when calling assembler to reflect memory model used, also define
9020         macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
9021         reflect stack model used,
9022         * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
9023         on stack return NULL,
9024
9025 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
9026
9027         * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
9028           of the operands is volatile. Fixes #1020220
9029
9030 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
9031
9032         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
9033         * (OptimizeRegUsage): make sure that there is really no other flow where
9034           the first pCode is used
9035
9036 2005-01-22 Raphael Neider <rneider AT web.de>
9037
9038         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
9039           to fix #1106967 (pCode->seq are not set up correctly)
9040
9041 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9042
9043         * src/SDCCglue.c (glue): make sure code area is declared before the
9044         static initialization area.
9045
9046 2005-01-21 Raphael Neider <rneider AT web.de>
9047
9048         * device/lib/Makefile.in: fixed test for pic16 install dir
9049         * device/lib/pic16/*/Makefile*: modified compile flags to enable
9050           optimizations
9051         * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
9052           added --optimize-goto compiler switch and pragma wparam documentation
9053         * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
9054         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
9055           and PRODH closing bug #1071770 (peephole optimizer)
9056
9057 2005-01-19 Raphael Neider <rneider AT web.de>
9058
9059         * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
9060           cmdLine buffers (used when calling sdcpp...) are large enough
9061           (MAX_PATH=256 truncates arguments leading to system halts when
9062           used in MinGW...)
9063         * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
9064         * (genUminus): rewritten to for efficiency
9065         * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
9066           used uninitialized in some cases)
9067         * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
9068           copy the third byte from the int -- now assumes 0x80 (data memory)
9069         * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
9070           operands (genAddLit expects the iCode's operands to swapped as
9071           well), fixed leftover bytes (crashed for short left operands)
9072         * (pic16_genMinusDec): performance improvements, removed false
9073           PIC14 emitSKPNCs
9074         * (pic16_genMinus): fixed to cope with differently sized operands
9075         * src/pic16/glue.c (pic16_glue): added new banksel optimization
9076           for --obanksel > 1
9077         * src/pic16/pcode.c: implemented (first phase of) banksel optimization
9078         * src/pic16/graph.[ch]: implementation of directed graphs, used by
9079           new banksel optimization
9080         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
9081           analysis for temporary registers (segfaults...)
9082         * src/pic16/peeph.def: added rule
9083
9084 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
9085
9086         * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
9087         which converts a float number to its ASCII representation
9088         * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
9089         functions to convert the fractional and integer part of a float to ASCII,
9090         * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
9091         realloc.c): added _MALLOC_SPEC to explicit place variables in data
9092         ram
9093         * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
9094         _STATMEM macros,
9095         * device/include/pic16/adc.h: added GPL info,
9096         * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
9097         a pCodeOp as tested operand,
9098         * (genNearPointerGet): optimized bit testing, does not use
9099         intermediate register for bit value, test directly instead with
9100         BTFSS, BTFSC, works only for single bits,
9101         * (genpic16Code): dump the name of the iCode in the asm,
9102         * src/pic16/ralloc.c (decodeOp): removed static declaration and
9103         renamed to pic16_decodeOp,
9104         * (serialRegAssign): do not allocate a temporary register for iCode
9105         sequences that test a single bit for 1/0
9106
9107 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
9108
9109         * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
9110         pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
9111         access stack and frame pointers. They are initially assigned to
9112         point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
9113         accessing SFRs. Updated all occurences of modification of stack or
9114         frame pointer in gen.c and pcode.c,
9115         * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
9116         assigning of a literal value to pointers,
9117         * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
9118         flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
9119         selected
9120
9121 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
9122
9123         * doc/sdccman.lyx: update documentation about stack pragma, added
9124         some info for stack memory models
9125
9126 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9127
9128         * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
9129
9130 2005-01-08 Raphael Neider <rneider AT web.de>
9131
9132         * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
9133           udata sections to fix bug #1097823
9134
9135 2005-01-05 Raphael Neider <rneider AT web.de>
9136
9137         * src/pic16/gen.c (genGenericShift): added handling of differently
9138           sized left operand and result
9139
9140 2005-01-04 Raphael Neider <rneider AT web.de>
9141
9142         * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
9143         * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
9144           to hold the condition bit)
9145         * added new version of genCmp (old code available via #define)
9146         * added new version of genShiftLeft/genShiftRight in a generic
9147           way, now supports shifting by negative values
9148         * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
9149           shiftCount (expected by genGenericShift)
9150         * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
9151         * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
9152           dump
9153         * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
9154           is an invalid literal too...)
9155
9156 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
9157
9158         * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
9159         from Raphael Neider,
9160         * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
9161         for 8-bit literals. This fixes some literal operands which are sign
9162         extended to 16-bits ints when instruction needs only 8-bits.
9163
9164 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
9165
9166         * device/lib/logf.c: added mcs51 assembly version
9167         * device/lib/expf.c: added mcs51 assembly version
9168         * device/lib/_logexpf.c: new shared asm code for expf and logf
9169         * device/include/math.h: add defines for assembly math library
9170         * device/lib/Makefile.in: build new _logexpf.c
9171         * device/lib/libfloat.lib: use new _logexpf.c
9172
9173 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
9174
9175         * src/pic/device.c
9176         * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
9177           device types which have less than 0x7f registers.
9178
9179 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
9180
9181         * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
9182
9183 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
9184
9185         * device/lib/printf_fast.c: only build on supported arch.
9186         * device/lib/printf_tiny.c: only build on supported arch.
9187         * device/lib/printf_fast_f.c: only build if asm float lib
9188         * device/lib/_fsget1arg.c: only build if asm float lib
9189         * device/lib/_fsget2args.c: only build if asm float lib
9190         * device/lib/_fsnormalize.c: only build if asm float lib
9191         * device/lib/_fsreturnval.c: only build if asm float lib
9192         * device/lib/_fsrshift.c: only build if asm float lib
9193         * device/lib/_fsswapargs.c: only build if asm float lib
9194         * device/include/stdio.h: don't provide print_fast,
9195           print_fast_f, print_tiny prototypes if --xstack used
9196
9197 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
9198
9199         * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
9200         * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
9201           to the SOURCES
9202
9203 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
9204
9205         * device/lib/printf_fast_f.c: same as printf_fast, but
9206           with floating point enabled
9207         * device/lib/printf_fast.c: minor tweaks
9208         * device/include/stdio.h: add printf_fast_f
9209
9210 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
9211
9212         * src/SDCCmain.c: make --float-reent default for mcs51
9213         * device/lib/_fsadd.c: added mcs51 assembly version
9214         * device/lib/_fssub.c: added mcs51 assembly version
9215         * device/lib/_fsmul.c: added mcs51 assembly version
9216         * device/lib/_fsdiv.c: added mcs51 assembly version
9217         * device/lib/_fseq.c: added mcs51 assembly version
9218         * device/lib/_fsneq.c: added mcs51 assembly version
9219         * device/lib/_fsgt.c: added mcs51 assembly version
9220         * device/lib/_fslt.c: added mcs51 assembly version
9221         * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
9222         * device/lib/Makefile.in: add _fscmp to build
9223         * device/lib/libfloat.lib: add _fscmp to build
9224
9225 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
9226
9227         * device/lib/_fs2slong.c: added mcs51 assembly version
9228         * device/lib/_fs2sint.c: added mcs51 assembly version
9229         * device/lib/_fs2schar.c: added mcs51 assembly version
9230         * device/lib/_fs2ulong.c: added mcs51 assembly version
9231         * device/lib/_fs2uint.c: added mcs51 assembly version
9232         * device/lib/_fs2uchar.c: added mcs51 assembly version
9233         * device/lib/_slong2fs.c: added mcs51 assembly version
9234         * device/lib/_sint2fs.c: added mcs51 assembly version
9235         * device/lib/_schar2fs.c: added mcs51 assembly version
9236         * device/lib/_ulong2fs.c: added mcs51 assembly version
9237         * device/lib/_uint2fs.c: added mcs51 assembly version
9238         * device/lib/_uchar2fs.c: added mcs51 assembly version
9239         * device/include/float.h: added #define to select asm vs c
9240
9241 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
9242
9243         * device/lib/printf_fast.c: improvements to float output
9244         * device/include/float.h: add defines for assembly float library
9245         * device/lib/_fsget1arg.c: receive 1 float arg
9246         * device/lib/_fsget2args.c: receive 2 float args (reentrant)
9247         * device/lib/_fsnormalize.c: normalize a float
9248         * device/lib/_fsreturnval.c: return float, various helper routines
9249         * device/lib/_fsrshift.c: right shift a float's mantissa
9250         * device/lib/_fsswapargs.c: swap 2 floats
9251         * device/lib/Makefile.in: build these 6 new files for mcs51
9252         * device/lib/libfloat.lib: add these 6 files to the library
9253
9254 2004-12-26 Borut Razem <borut.razem AT siol.net>
9255
9256         * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
9257           built by gcc 3.4.2
9258
9259 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
9260
9261         * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
9262           and fully reentrant and register bank neutral.
9263         * device/lib/printf_fast.c: added float (not enabled by default),
9264           added compact/slower integer (also not enabled by default),
9265           improved size/speed of fast integer code, other minor changes
9266         * device/include/stdio.h, device/lib/Makefile.in,
9267           device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
9268
9269 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
9270
9271         * src/pic16/pcode.c: declaring variables other than at the start of a
9272           block is not supported in C by VC6.
9273
9274 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
9275
9276         * applied a previous patch from Raphael Neider that wasn't included
9277         in the previous commits, which fixes infinite loops within jumptable
9278         improvements,
9279         * made some fixes that previous patches introduced
9280
9281 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
9282
9283         * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
9284         that fixes an issue with AOP_PCODE asmop's offset,
9285         * (pic16_popCopyReg): update instance field too,
9286         * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
9287         function of pic port,
9288         * (genCmp, genAnd, genAssign),
9289         * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
9290
9291 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
9292
9293         * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
9294         variables initial values to idata section,
9295         * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
9296         variables in some functions. This utilizes parmBytes field of iCode
9297         structure to hold the offset of the variable in stack. (might be
9298         able to use the stack field too?)
9299         * applied patch from Raphael Neider # ### , # ###
9300         * src/pic16/glue.c (pic16emitRegularMap): fix to print static
9301         variable initial values in idata section,
9302         * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
9303         for static variables with initial value
9304         * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
9305         applied fix in while loop from Raphael Neider.
9306
9307 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
9308
9309         * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
9310         * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
9311         * src/ds390/ralloc.c (serialRegAssign): spill bits
9312         * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
9313         * support/Util/SDCCerr.c,
9314         * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
9315         * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
9316         * support/regression/tests/bitwise.c: added test for bitwise complement(~)
9317
9318 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
9319
9320         * device/include/sdcc-lib.h: inserted LGPL, added includes
9321           asm/ds390/features.h and asm/mcs51/features.h
9322         * device/include/asm/default/features.h,
9323         * device/include/asm/gbz80/features.h,
9324         * device/include/asm/z80/features.h: added empty _AUTOMEM
9325           and _STATMEM
9326         * device/include/asm/ds390/features.h,
9327         * device/include/asm/mcs51/features.h: added files with defines for
9328           _AUTOMEM and _STATMEM indicating automatic and static storage class
9329         * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
9330         * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
9331         * src/SDCCicode.c (geniCodeCast),
9332         * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
9333         * src/SDCCloop.c (loopInduction): removed unused variable lr
9334         * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
9335           to convertToFcall to include char modulo (RFE 1065037), added check
9336           if left operand is unsigned and use abs of literal value
9337         * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
9338           as it doesn't work after conversion from peephole.def to peephole.rul
9339         * src/mcs51/gen.c (toBoolean): added check for size,
9340           (genModOneByte): optimized code for signed char modulo a literal
9341           power of 2 (thanks to Hubert Sack),
9342           (genRRC): removed unnecessary "clr c",
9343           (genRLC): replaced "add a,acc" with cheaper "rlc a"
9344         * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
9345           jump optimization,
9346           swapped rules 256.c and 256.d,
9347           extended 256.d by using new multiple checks (thanks Erik),
9348           added rules 256.e and 256.f,
9349           updated rule 261.a and 261.b to new generated code
9350         * support/regression/tests/muldiv.c: added test div/mod by a power of 2
9351
9352 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9353
9354         * src/SDCCloop.c (basicInduction, loopInduction): fixed several
9355           induction related bugs, including first part of bug #1074377
9356
9357 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
9358
9359         * applied patch from bug-report #1076292,
9360         * applied patches for genAnd and Goto-optimizations for Raphael
9361         Neider,
9362         * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
9363         dump a less iCode information,
9364         * src/pic16/device.h (pic16_options_t): added field debgen,
9365         * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
9366         DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
9367         * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
9368         puclic,
9369         * (various functions): added macros FENTRY and FENTRY2 to functions,
9370         to emit function prologue,
9371         * (various functions): fixed indentation,
9372         * (genNearPointerGet): fixed loading of FSR0,
9373         * (genPackBits): applied patch from Raphael Neider to fix updating
9374         of FSR0 and touching only the modified bits,
9375         * src/pic16/genarith.c (various functions): added macros FENTRY to
9376         emit function prologue in comments,
9377         * src/pic16/pcode.h: added functions debugf2, debugf3,
9378         * src/pic16/ralloc.c: partial fix for packForPush caused
9379         segmentation fault,
9380
9381 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9382
9383         * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
9384           <stsp AT users.sourceforge.net> with reversed byte order
9385         * support/regression/tests/rotate.c: added (ds390 skips some tests)
9386
9387 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9388
9389         * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
9390           bug #1074377
9391         * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
9392         * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
9393
9394 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
9395
9396         * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
9397
9398 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9399
9400         * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
9401           conditions,
9402           (setFromConditionArgs): friendly operand parser for peephole rules,
9403           (operandBaseName, operandsNotRelated): new peephole condition
9404           "operandsNotRelated" -- similar to "operandsNotSame", but takes
9405           architecture specific register naming into account, handles n-way
9406           comparisons, and supports quoted literals
9407         * src/mcs51/peeph.def: restored rule 177.d with an extra condition
9408
9409 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9410
9411         * src/mcs51/peeph.def: fixed bug #1076940
9412
9413 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
9414
9415         * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
9416
9417 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9418
9419         Adding support for replacing ljmps with sjmps in jumptables
9420         generated for switch statements. For now you need to set the
9421         environment variable SDCC_SJMP_JUMPTABLE to enable this.
9422         Now 4 algorithms for mcs51 jumptable generation are used:
9423         ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
9424         addresses loaded pc-relative for up to 112 cases and stack-pushing
9425         target addresses loaded with offset from dptr for up to 256 cases.
9426
9427         * src/SDCCpeeph.c: added peephole conditional labelJTInRange
9428         * src/mcs51/main.c: adapted constants for switch table generation
9429         * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
9430
9431 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
9432
9433         * device/lib/printf_large.c (_print_format): fixed bug 1073386
9434         * support/regression/tests/bug1057979.c: added test for bug 1073386
9435
9436 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
9437
9438         * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
9439         compilers
9440
9441 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
9442
9443         * src/pic16/device.h,
9444         * src/pic16/genarith.c,
9445         * src/pic16/glue.c,
9446         * src/pic16/main.c,
9447         * src/pic16/pcode.c: applied patches #1068154 and #1070213
9448
9449 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
9450
9451         Large cummulative patch for pic16 port.
9452         * device/lib/pic16/gstack.h: NEW, user can specify its own handler
9453         to call when a stack overflow occurs,
9454         * (malloc.h): added CVS Id tag,
9455         * (pic18f{242,252,442,452}.h): added T0CONbits structure and
9456         variable,
9457         * added libc directory. The current version of LibC contains string
9458         functions, ctype functions and macros and some functions of the
9459         stdlib set (like malloc/free/atof/atoi etc...). All functions are to
9460         be extensively tested in the future. Standard disclaimer here.
9461         Library is not automatically build yet. But one can build it by
9462         invoking 'make' inside the libc directory.
9463         * added ADC library under libio. Preliminary version yet.
9464
9465         * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
9466         * src/pic16/gen.c (aopForRemat): asmop size is filled by
9467         aopForRemat() now and not by pic16_aopOp(),
9468         * (pic16_popGetTempReg): removed warning messgae when allocating
9469         temporary registers, its a buggy feature and will be removed,
9470         * (pic16_popGet): set register instance field in AOP_CRY,
9471         * (pic16_outBitC): fixed for results in size greater than 1,
9472         * (genUminusFloat): fixed for pic16, ported code from mcs51,
9473         * (pic16_storeForReturn): optimized return of 0,
9474         * (genCmp): experimental code for new genCmp which uses PIC18's
9475         special compare&skip instructions. Initial tests fail some times
9476         with variables grater than 1 byte in size, so new code is disabled,
9477         * (genUnpackBits, genPackBits): more optimizations in reading/writing,
9478         a single bit,
9479         * (genCast): began a fix to optimize the casting of a bit to another
9480         bit, now assigning a bitfield to another bitfield will fail, sorry,
9481         * src/pic16/main.c: disabled the use of lr-support feature,
9482         * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
9483         * added some function prototypes, added function _debugf prototype,
9484         * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
9485         bits with offset (case PO_GPR_BIT),
9486         * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
9487         command line,
9488         * (isBankInstruction): modified to return 0 for no banking instruction,
9489         and 1 for banking instruction,
9490         * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
9491         caused stop processing pCodes after a inline assembly block,
9492         * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
9493         * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
9494         registers when it shouldn't,
9495         * src/pic16/ralloc.c (allocReg): add preliminary support for
9496         supporting a limited set of temporary registers,
9497
9498 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9499
9500         * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
9501           genDataPointerSet): ensure assignments always copy in MSB to LSB
9502           order,
9503           (loadRegFromAop): recognize CLRH optimization,
9504           (genFunction): optimize RECEIVE iCodes in reentrant functions
9505
9506 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9507
9508         * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
9509           --out-fmt-s19 turning into --out-fmt-elf if s19 was already
9510           selected.
9511         * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
9512         * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
9513           contiguous with data
9514
9515 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9516
9517         * device/lib/_gptrget.c (_gptrget),
9518         * device/lib/_gptrgetc.c (_gptrgetc),
9519         * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
9520           instead of sjmp to ret
9521         * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
9522           by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
9523
9524 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
9525
9526         * .version: bumped version to 2.4.7
9527         * device/lib/_gptrget.c (_gptrget): is now _naked
9528         * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
9529         * device/lib/_gptrput.c (_gptrput): is now _naked
9530         * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
9531           (createFunction): fixed xstack
9532         * src/SDCCglue.c (emitMaps): set allocation required for bit area
9533         * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
9534           or bit either,
9535           (geniCodeCritical): store original interrupt state in an iTemp bit
9536           var unless stack-auto
9537         * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
9538         * src/SDCCmain.c (setIncludePath): added include/target to search path
9539         * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
9540         * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
9541           prototype,
9542           (processFuncArgs): put bit vars in bit area
9543         * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
9544           unsaveRBank): fixed xstack,
9545           (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
9546           (genFunction, genEndFunction): fixed xstack,
9547           (genAssign): optimization don't walk backwards through mem
9548         * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
9549         * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
9550         * support/regression/Makefile: also make library (for stack-auto) when
9551           making "all" and added "test-mcs51-xstack-auto"
9552         * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
9553         * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
9554         * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
9555         * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
9556         * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
9557           make-library by MAKE_LIBRARY
9558         * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
9559           regression tests for xstack
9560         * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
9561         * support/regression/tests/critical.c: test for critical on mcs51
9562
9563 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9564
9565         * support/regression/ports/ucz80/spec.mk: use include and lib files from
9566           built version of sdcc instead of installed version
9567
9568 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
9569
9570         * src/mcs51/gen.c (toBoolean): fixed bug 1065458
9571         * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
9572           vprintf.c now
9573         * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
9574         * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
9575           WARNING: remove device/lib/build/z80/printf.o by hand when
9576           updating from previous build!
9577         * device/lib/z80/printf.c: updated comment
9578         * support/regression/tests/bug1057979.c: test all ports now
9579         * support/regression/tests/bug1065458.c: file added
9580
9581 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9582
9583         * src/z80/gen.c (genFunction, genEndFunction): avoided generating
9584           *_start and *_end symbols for static functions
9585
9586 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
9587
9588         * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
9589           and search crt0.o in all library paths,
9590           (setIncludePath): proper handling of --nostdinc,
9591           (setLibPath): proper handling of --nostdlib
9592         * support/regression/Makefile,
9593         * support/regression/ports/ds390/spec.mk,
9594         * support/regression/ports/gbz80/spec.mk,
9595         * support/regression/ports/hc08/spec.mk,
9596         * support/regression/ports/mcs51/spec.mk,
9597         * support/regression/ports/mcs51-large/spec.mk,
9598         * support/regression/ports/mcs51-stack-auto/spec.mk,
9599         * support/regression/ports/z80/spec.mk: use include and lib files from
9600           built version of sdcc instead of installed version
9601         * doc/sdccman.lyx: fixed typo in --nostdinc
9602
9603 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
9604
9605         * src/pic/pcode.c,
9606         * src/pic/device.c,
9607         * src/pic/ralloc.c,
9608         * src/pic/gen.c : added support to generate code for struct bit fields.
9609
9610 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
9611
9612         * as/xa51/xa_version.h,
9613         * device/include/errno.h,
9614         * device/include/regc515c.h,
9615         * device/lib/_itoa.c,
9616         * device/lib/_ltoa.c,
9617         * device/lib/ser_ir_cts_rts.c,
9618         * sim/ucsim/xa.src/glob.cc,
9619         * sim/ucsim/xa.src/inst_gen.cc,
9620         * sim/ucsim/xa.src/xa_bit.cc,
9621         * sim/ucsim/xa.src/xa_sfr.cc,
9622         * sim/ucsim/z80.src/inst_dd.cc,
9623         * sim/ucsim/z80.src/inst_fdcb.cc,
9624         * support/scripts/keil2sdcc.pl,
9625         * src/pic16/pic16.dsp,
9626         * src/pic16/pic16a.dsp: corrected cvs line endings
9627         * device/lib/printf_large.c: fixed bug 1057979
9628         * src/pic16/gen.c: fixed non-C standard code
9629         * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
9630         * src/SDCCglobl.h: changed pack_iram to no_pack_iram
9631         * support/regression/ports/mcs51/support.c: reload T1 asap
9632         * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
9633           pdata use and clear idata startup behaviour
9634         * support/regression/tests/bug1057979.c: added
9635
9636 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
9637
9638         * device/examples/ds390/ow390/ad26.h,
9639         * device/examples/ds390/ow390/cnt1d.h,
9640         * device/examples/ds390/ow390/crcutil.c,
9641         * device/examples/ds390/ow390/ownet.h,
9642         * device/examples/ds390/ow390/owsesu.c,
9643         * device/examples/ds390/ow390/swt12.h,
9644         * device/examples/ds390/ow390/swtoper.c,
9645         * device/examples/ds390/ow390/temp10.h,
9646         * device/examples/ds390/ow390/thermodl.c,
9647         * device/examples/ds390/tinitalk/tinitalk.dsp,
9648         * device/examples/ds390/tinitalk/tinitalk.dsw,
9649         * device/examples/mcs51/clock/hw.h,
9650         * device/examples/mcs51/simple2/go.bat,
9651         * device/examples/serialcomm/windows/serial.h,
9652         * device/examples/xa51/dummy.c,
9653         * device/examples/xa51/hello.c,
9654         * device/include/80c51xa.h,
9655         * device/include/at89x051.h: corrected cvs line endings
9656
9657 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
9658
9659         * src/pic16/main.c (options): added command line --gstack, to trace
9660         stack over/under flows,
9661         * added pragma 'wparam' to allow passing first byte of function
9662         parameters via WREG, syntax is #pragma wparam my_function[, func2...]
9663         * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
9664         call to __gstack_test function and sets up the symbol as extern,
9665         * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
9666         * popaop): added call to pic16_testStackOverflow,
9667         * (wParamCmp, inWparamList): NEW, test existence of a symbol in
9668         wparamList list,
9669         * (genCall, genPcall): now all parameters are passed via stack
9670         except in functions that are pass to wparam pragma in which WREG is
9671         used too,
9672         * (genPcall): REENTRANT flag is checked to see if variable prototype
9673         contains reentrant keyword, don't call a non-reentrant function, via
9674         a reentrant function pointer or vice versa, functions are never
9675         passed via WREG,
9676         * (genJumpTab): applied patch from bug #1057478 by R.Neider and
9677         D.Winkler,
9678         * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
9679         SIGSEGV when accessing a NULL register stucture,
9680         * (pic16_printGPointerType): modified to handle UPPER modifier for
9681         function initializers, changed prototype of function to simpler one,
9682         * (pic16_printIvalFuncPtr): check to see if function is already
9683         added in externs list,
9684         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
9685         optimized a move from W to SFR with a move to the same register
9686         later after a CALL,
9687         * device/lib/pic16/debug: NEW directory, contains debug features
9688         which are enabled when linking with libdebug.lib, currently command
9689         line option --gstack enables stack pointer tracing for over/under
9690         flow, corresponding sources are in debug/gstack
9691
9692 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
9693
9694         * doc/sdccman.lyx: updated SDCC version,
9695         * (PIC16 port): update list of command line options,
9696         * src/pic16/device.h (structure pic16_options_t): added field gstack
9697         to enable stack overflow tracing on push/pops,
9698         * src/pic16/device.c (statistics structure): added statistics
9699         structure,
9700         * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
9701         pic16_dump_int_registers): increase statistics counters for each
9702         * variable which is encountered
9703         * (pic16_dump_usection): emit each .udata variable to its own udata
9704         section,
9705         * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
9706         when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
9707         parameters via stack, otherwise use old scheme,
9708         * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
9709         assembler output file,
9710         * src/pic16/main.c: added command line options --gstack to enable
9711         push/pop tracing for stack overflow,
9712         * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
9713         instructions): added size of each instruction,
9714         * (pic16_countInstruction): estimate size of instructions in
9715         the_pFile list, inline assembly blocks are not counted,
9716         * (pic16_FixRegisterBanking): trace previous register usage, when
9717         banksel optimizations is greater than 0, don't emit a redudant
9718         banksel directive,
9719
9720 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
9721
9722         * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
9723         * src/pic16/ralloc.c : applied same fix for pic16.
9724         * src/pic/gen.c : tidied it up a little.
9725
9726 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9727
9728         * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
9729         thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
9730
9731 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9732
9733         * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
9734
9735 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9736
9737         * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
9738         non-reentrant function __modsint in the interrupt function (thus
9739         corrupting math operations during serial I/O)
9740         * device/lib/ser_ir.c: as above, changed buffersize
9741         * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
9742         256.c,d for zeroing
9743         * doc/Makefile: added option -t for rsync
9744
9745 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9746
9747         * src/SDCCast.h (struct ast),
9748         * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
9749
9750 2004-10-20 Borut Razem <borut.razem AT siol.net>
9751
9752         * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
9753         package
9754
9755 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
9756
9757         * device/lib/pic16/libsdcc/Makefile: added lregs directory in
9758         makefile targets,
9759         * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
9760         support functions to replace long sequences of MOVFF's from access
9761         bank registers to stack and vice versa,
9762         * src/pic16/device.h: added new field opt_flags, where optimization
9763         flags can be set to enable certain features,
9764         * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
9765         * pBlock, (genFunction, genEndFunction): surroung loop for
9766         saving/loading used registers in stack with PC_INFO pCodes,
9767         INF_LREGS. Code in between can then be optimized by pCode optimizer
9768         to support function calls,
9769         * (genDataPointerSet): fixed bug which loaded float fields in
9770         structures with corrupt data,
9771         * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
9772         in a standard way debug info on stderr. Feature used for developing
9773         and debugging only,
9774         * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
9775         obsolete chunks of code,
9776         * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
9777         * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
9778         * pic16/src/pcode.c (pic16_newpCodeInfo,
9779         * (pic16_newpCodeOpLocalRegs),
9780         * (pic16_convertLocalRegs2Support): NEW, to support new optimization
9781         feature,
9782         * (pic16_pCodeConstString): printing of the initial value of a
9783         symbol as a comment is inhibited since parsing was already done by
9784         copyStr and output is corrupt,
9785         * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
9786
9787 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9788
9789         * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
9790
9791 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
9792
9793         * as/mcs51/lkarea.c: removed old K&R style,
9794           (lnksect): changed check on boundary error,
9795           (lnksect2): changed check on boundary error,
9796           (lnksect2): extend XSTK to end of page if size = 1
9797         * as/mcs51/lkmain.c: removed old K&R style,
9798           (Areas51): create l_IRAM symbol
9799         * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
9800         * device/lib/Makefile.in: renamed model-mcs51-reentrant to
9801           model-mcs51-stack-auto, added model-mcs51-xstack-auto
9802         * device/lib/_mullong.c: added version to be compiled with xstack
9803         * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
9804         * device/lib/mcs51/crtxclear.asm: clear pdata as well
9805         * device/lib/mcs51/crtxstack.asm: fixed comment
9806         * src/SDCCglue.c: maxInterrupts defaults to 0,
9807           (emitMaps): added pdata,
9808           (createInterruptVect): (re)moved default,
9809           (glue): added pdata,
9810           (glue): moved __start__xstack to XSTK with default size 1
9811         * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
9812           and options.float_rent when options.stackAuto is set,
9813           (linkEdit): only write XDATA_NAME if provided on command line
9814         * src/SDCCmem.h,
9815         * src/SDCCmem.c: added pdata
9816         * src/port.h: added pdata_name to PORT
9817         * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
9818           (saveRegisters, unsaveRegisters): removed usage of B,
9819           (genMinus): fixed accumulator clash,
9820           (genJumpTab): added comment, this needs another look
9821         * src/mcs51/gen.c: added check for "B in use" paranoia,
9822           added pushB() and popB()
9823         * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
9824           chance
9825         * src/avr/main.c,
9826         * src/ds390/main.c,
9827         * src/hc08/main.c,
9828         * src/mcs51/main.c,
9829         * src/pic/main.c,
9830         * src/pic16/main.c,
9831         * src/xa51/main.c,
9832         * src/z80/main.c: (reset_regparms) made void parameter explicit and
9833           added PSEG (PAG,XDATA) or NULL to port specifier
9834         * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
9835         * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
9836           (_mcs51_genInitStartup): removed __start__xstack equ,
9837           (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
9838         * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
9839         * src/z80/gen.c (_rleAppend): fixed warnings
9840         * support/regression/tests/zeropad.c: added pdata test
9841         * .version: bumped to 2.4.6
9842
9843 2004-10-17 Borut Razem <borut.razem AT siol.net>
9844
9845         * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
9846         as a part of nightly build
9847
9848 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
9849
9850         * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
9851         WREG holds the first byte function parameters,
9852         * (aopForSym): take special case for symbols which are in FARSPACE
9853         but in CODESPACE too,
9854         * (assignResultValue): modified to take into account _G.useWreg,
9855         * (genCall): don't use wreg for parameter passing when function is
9856         declared as reentrant, too, added optimization INCF to stack
9857         pointer when stack parameter count is 1,
9858         * (genFunction, genEndFunction): refurnished and fixed to not using
9859         wreg for passing parameters when function has varargs or is
9860         reentrant, fixed bug with symbol name compare for generating
9861         functions in absolute address,
9862         * (pic16_storeForReturn): refurnished,
9863         * (genCmp): began writing a new version of the function, not ready
9864         yet, therefore it is disabled,
9865         * (genAssign): do not read code memory when assigning a function to
9866         a pointer function,
9867         * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
9868         array of characters, not pointer,
9869         * (pic16initialComments): in debug mode emit an .ident directive for
9870         the assembler,
9871         * (_process_pragma): emit a new warning type (internal to pic16)
9872         when setting stack to default length, emit a similar warning when
9873         placing a function at absolute address and address is not word aligned
9874         * (_pic16_parseOptions): added 'return TRUE' statement,
9875         * (_pic16_linkEdit): if compiling a source, then add the source's
9876         file object, first in the list of objects to link,
9877
9878 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
9879
9880         * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
9881         * src/pic/main.c : removed VC warning.
9882         * src/pic/gen.c : changed comment.
9883
9884 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
9885
9886         * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
9887         reference to a deprecated symbol _GPTRREG was causing failure to
9888         link. Thanks G. M. Gallant for the info.
9889
9890 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
9891
9892         * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
9893         comments for Bugs item #954788.
9894
9895 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
9896
9897         * src/pic16/device.c (pic16_dump_gsection,
9898         * pic16_groupRegistersInSection): handle symbols declared to be in
9899         access bank differently,
9900         * src/pic16/gen.c (struct _G): added field resDirect,
9901         * (aopForSym): if symbol on stack and iCode is '=' and result exists,
9902         send values read from stack directly to result and don't allocate
9903         temporary values,
9904         * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
9905         same registers,
9906         * (pic16_sameRegsOfs): NEW,
9907         * (freeAsmop): if _G.resDirect is set then do not mark registers as
9908         free because they were not allocated from temporary pool,
9909         * pic16_popRegFromString): workaround to fix a problem with
9910         allocating variables twice or never,
9911         * (genGenPointerGet): using PRODL instead of FSR0H,
9912         * (genGenPointerSet): using POSTDEC1 (that is a stack location)
9913         instead of FSR0H,
9914         * (genAssign): take advantage of the _G.resDirect flag,
9915         * (genCast): around line 11844, use mov2f instead of directly
9916         MOVFF'ing between operands to account for literal values,
9917         * src/pic16/genutils.c: some new debug functions for gpsim have been
9918         added,
9919         * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
9920         float with integer part only,
9921         * src/pic16/main.c (_process_pragma): handle pragma udata access to
9922         place variables in access bank
9923         * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
9924         updated sources to reflect recent changes in gen.c
9925
9926 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
9927
9928         * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
9929         sources that searched for headers in installation path, now the
9930         device/include/pic16 is used,
9931         * src/pic16/glue.c (pic16glue),
9932         * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
9933         .line directives if not in debug mode, this suppresses assembler's
9934         warnings for ignored directives
9935
9936 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
9937
9938         * src/port.h: made reset_regparms prototype void parameter explicit.
9939         * src/SDCCsymt.c (processFuncArgs): removed argument "func".
9940         * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
9941         * doc/sdccman.lyx: documented warning disabling and how to use
9942           printf_large to make it print floats.
9943         * device/include/stdbool.h: NEW
9944         * device/lib/_atof.c,
9945         * device/lib/_divuint.c,
9946         * device/lib/_divulong.c,
9947         * device/lib/expf.c,
9948         * device/lib/printf_large.c,
9949         * device/lib/sincosf.c,
9950         * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
9951         * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
9952           a completely reentrant lib.
9953
9954 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
9955
9956         * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
9957         * device/include/pic16/stdio.h: fixed bug with colon
9958
9959 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
9960
9961         * device/include/pic16/stdio.h,
9962         * device/include/pic16/stdlib.h,
9963         * device/include/pic16/math.h: NEW
9964         * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
9965         declared as _naked to reduce overhead
9966         * device/lib/Makefile.in (target port-specific-objects-pic16):
9967         changed * to *.* so to ignore the CVS directory,
9968         * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
9969         stacked variables back in stack,
9970         * (genEndFunction): fixed bug reported by G.M. Gallant with stack
9971         corruption
9972
9973 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
9974
9975         * .version: bumped version number to 2.4.5
9976         * support/Util/SDCCerr.h: added warning W_POSSBUG2.
9977         * support/Util/SDCCerr.c (messages structure): added entry for
9978         W_POSSBUG2
9979
9980         Large cumulative patch for pic16 port and libraries.
9981         * device/include/pic16/sdcc-lib.h,
9982         * device/include/pic16/stdarg.h,
9983         * device/include/asm/pic16/features.h,
9984         * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
9985         * device/include/pic16/float.h: changes reentrant keyword with
9986         _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
9987         * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
9988         updated target build-libraries to include objects from gptr,
9989         * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
9990         _IL_REENTRANT to all function headings, included sdcc-lib.h header,
9991         * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
9992         all function headings,
9993         * src/SDCCmain.c: added global parameter userIncDirsSet,
9994         * (parseCmdLine): when option -I is encountered add directory to
9995         userIncDirsSet too,
9996         * src/version.awk: added space between control and long,
9997         * src/pic16/NOTES: added some notes for the port,
9998         * src/pic16/gen.c: added prototype for mov2fp function,
9999         * (fReturnpic16[]): properly named return value registers,
10000         * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
10001         * (aopForSym): added code to handle symbols with onStack flag set,
10002         symbols onStack are allocated PTRSIZE bytes,
10003         * (aopFreeAsmop): handles special case where asmops are stack objects,
10004         * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
10005         * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
10006         added argument lock to trace flaws in allocating temporary registers
10007         when developing port,
10008         * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
10009         * (pic16_popRegFromString): reenabled allocating a direct register
10010         from string,
10011         * (assignResultValue): various beautifications,
10012         * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
10013         referenced function argument,
10014         * (genIpush): reenabled to allow stacked arguments, handles only
10015         ic->parmPush iCodes,
10016         * (genCall, genPcall): major changes to allow for variable argument
10017         functions, fixed a bug with falsely restoring stack pointer after
10018         returning from call,
10019         * (genFunction): pending code for critical function,
10020         * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
10021         * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
10022         * (genNearPointerGet): fixed bug with indirect reading, was always
10023         reading from INDF0
10024         * (genGenPointerGet, genGenPointerSet): rewrote to support generic
10025         pointers,
10026         * (genAddrOf): rewrote code to take address of a stacked function parameter
10027         * (genCast): fixed casting to generic pointer type,
10028         * src/pic16/gen.h: added AOP_STA,
10029         * (struct asmop): added field stk,
10030         * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
10031         * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
10032         * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
10033         * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
10034         * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
10035         * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
10036         generic pointers,
10037         * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
10038         and library paths,
10039         * (pic16_port structure): generic pointer size is set to 3,
10040         * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
10041         * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
10042         compiler warning,
10043         * src/pic16/ralloc.c (allocReg): prevent allocating register when
10044         operand is an iTemp,
10045
10046 2004-09-24 Martin Helmling <mh AT octo-soft.de>
10047
10048         * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
10049         * debugger/mcs51/simi.c: addapt new syntax of s51
10050
10051 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
10052
10053         * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
10054         * src/pic16/pcode.c: commented out some calls to free() in order to
10055         fix bug #989576,
10056
10057 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10058
10059         * src/SDCCicode.h,
10060         * src/SDCCicode.c (isiCodeInFunctionCall),
10061         * src/avr/ralloc.c (selectSpil),
10062         * src/pic/ralloc.c (selectSpil),
10063         * src/pic16/ralloc.c (selectSpil),
10064         * src/ds390/ralloc.c (selectSpil),
10065         * src/hc08/ralloc.c (selectSpil),
10066         * src/xa51/ralloc.c (selectSpil),
10067         * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
10068         stack in the middle of a function call sequence (fixes bug #1020268)
10069         * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
10070         costs associated with the minimum switch case.
10071
10072 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10073
10074         * src/SDCC.lex: fixed bug #1030549
10075
10076 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10077
10078         * src/SDCCcse.h (struct cseDef),
10079         * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
10080         over a function call if the CSE is derived from a symbol whose
10081         address has been taken (fixes bug #1029883)
10082         * support/regression/tests/bug-1029883: a new regression test for
10083         this bug
10084
10085 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10086
10087         * src/hc08/gen.c (emitinline): fixed bug #1029778
10088         * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
10089         to a cast object is no longer a syntax error ("fixes" bug #1030006,
10090         and starts toward RFE #905167)
10091
10092 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
10093
10094         * src/pic16/gen.c (mov2f): New function to move an operand to
10095         another without considering if it is a literal or a register,
10096         * (pic16_sameRegs): don't check if they are both AOP_REG,
10097         * (AccRsh): removed andmask=0 lines,
10098         * (genLeftShift): duplicated to be improved in future versions,
10099         * src/pic16/main.c (_process_pragma): emit stack default size in hex,
10100         * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
10101         in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
10102         * (pic16initMnemonics): added initialization for POC_INFSNZW,
10103         * (insertBankSwitch): fixed inserting banksel directives algorithm
10104         for instructions that follow a skip instruction, this fixes a report
10105         for broken subtraction code generation,
10106         * src/pic16/ralloc.c (deassignLRs): do not free register if current
10107         iCode is a left op, just in case result and right share the same
10108         registers
10109
10110 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10111
10112         * src/hc08/main.c,
10113         * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
10114         preservation of HX
10115         * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
10116         * src/mcs51/ralloc.c (packRegisters): removed the patch applied
10117         on 2004-09-12; it was buggy
10118
10119 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
10120
10121         * src/SDCCsymt.h: removed RESULT_CHECK
10122         * src/SDCCast.c,
10123         * src/SDCCglue.c,
10124         * src/SDCCval.c,
10125         * src/pic/glue.c,
10126         * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
10127
10128 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
10129
10130         * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
10131         * src/pic16/device.c (pic16_assignConfigWordValues): wrong
10132         configuration values no more rejected by compiler, they are assigned
10133         to configuration registers with a warning message instead,
10134         * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
10135         the for-loop so last conf register is emitted too,
10136         * (_pic16_initPaths): link library libsdcc.lib by default,
10137         * (_hasNativeMulFor): modified test for multiplication according to
10138         Raphael Neider's remarks. Integer multiplication is also done with
10139         support functions,
10140         * device/include/pic16/pic18fregs.h: corrected type error in while
10141         testing and including 18f6720 header file
10142
10143 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
10144
10145         * src/pic16/device.h (pic16_options): removed field use_crt,
10146         * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
10147         until an optimization to handle single bits is added,
10148         * (pic16_loadFSR0): moved before genUnpackBits,
10149         * (genAnd): some white lines removed,
10150         * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
10151         leave_reset flags in pic16_options when using crt modules,
10152
10153 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
10154
10155         * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
10156           for bugs 898889 & 979599. Also used some safer print instructions.
10157
10158 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
10159
10160         * src/pic16/device.h (pic16_options_t): added field use_crt,
10161         crt_name, no_crt,
10162         * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
10163         catch a probable future bug,
10164         * src/pic16/gen.c: aopIdx function commented out,
10165         * (genAssign): commented out old code which used aopIdx,
10166         * src/pic16/glue.c (pic16glue): removed some legacy fragments of
10167         code, added if conditionals to take into account the --use-crt
10168         command line options,
10169         * src/pic16/main.c (pic16_optionsTable): added new command line
10170         options, --use-crt= and --no-crt,
10171         * (_pic16_linkEdit): now the proper crt object is added in the
10172         linker command line except than when --no-crt is specified,
10173         * src/pic16/pcode.c,
10174         * src/pic16/pcode.h: added some structures and functions for a new
10175         optimization scheme to compansate for instruction overhead between
10176         same iCodes, this scheme is currently under development and is not
10177         working in any way,
10178         * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
10179         to && operator,
10180         * device/lib/pic16/startup/crt0i.c,
10181         * device/lib/pic16/startup/crt0iz.c: added global char variable
10182         __uflags to force the generation of an idata section
10183
10184 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
10185
10186         * doc/Makefile,
10187         * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
10188         * doc/sdccman.lyx: updated sdcc version to 2.4.4
10189
10190 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10191
10192         * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
10193         Frieder) and clarified the default code optimization mode
10194
10195 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10196
10197         * src/SDCC.lex (doPragma, process_pragma),
10198         * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
10199         "opt_code_size", and "opt_code_balanced"
10200         * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
10201         regrouped options by category, added support for category headers
10202         * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
10203         and "--opt-code-size"
10204         * doc/sdccman.lyx: documented these new options and pragmas
10205         * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
10206         preference into account
10207
10208 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
10209
10210         * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
10211           geniCodePreDec): Fixed bug 904237 by generating a warning
10212         * src/SDCCerr.h,
10213         * src/SDCCerr.c: added warning W_SIZEOF_VOID
10214
10215 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
10216
10217         * src/pic/device.c : When no max ram set validate full memory range.
10218         * src/pic/pcode.c,
10219         * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
10220
10221 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
10222
10223         * device/lib/_gptrget.c,
10224         * device/lib/_gptrput.c: updated comment
10225         * device/lib/calloc.c,
10226         * device/lib/free.c,
10227         * device/lib/malloc.c,
10228         * device/lib/realloc.c: added LGPL, made them reentrant-safe
10229         * src/SDCCcse.c (cseBBlock),
10230         * src/SDCCicode.c (printOperand, geniCodeArray),
10231         * src/SDCCicode.h (struct operand): fixed bug 868103
10232         * support/regression/tests/bug-868103.c: added
10233         * src/SDCCast.c (searchLitOp),
10234         * src/SDCCcse.h (struct cseDef),
10235         * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
10236         * src/SDCCicode.h (struct operand),
10237         * src/SDCCsymt.h (struct sym_link),
10238         * src/avr/gen.c (hasInc),
10239         * src/ds390/gen.c (hasInc),
10240         * src/hc08/gen.c (genPlusIncr, hasInc),
10241         * src/mcs51/gen.c (hasInc),
10242         * src/pic16/glue.c (pic16_printIvalChar),
10243         * src/pic16/ralloc.c (regWithIdx),
10244         * src/xa51/gen.c (hasInc) : removed warnings
10245         * src/SDCCast.c (createBlock): added comment ???
10246         * src/hc08/ralloc.c: updated comments
10247
10248 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10249
10250         * doc/sdccman.lyx: updated section on switch statements, added
10251         section about semaphore locking
10252         * doc/Makefile: added option -info for latex2html
10253         * device/lib/_gptrget.c,
10254         * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
10255
10256 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
10257
10258         * src/pic/device.h,
10259         * src/pic/device.c,
10260         * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
10261          maxram is less than 0x100.
10262
10263 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
10264
10265         * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
10266
10267 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10268
10269         * src/port.h,
10270         * src/mcs51/main.c,
10271         * src/ds390/main.c,
10272         * src/z80/main.c,
10273         * src/hc08/main.c,
10274         * src/pic/main.c,
10275         * src/pic16/main.c,
10276         * src/avr/main.c,
10277         * src/xa51/main.c
10278         * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
10279         a jump table is the best form for a switch statement, including
10280         automatic insertion of missing cases to make the case range
10281         continuous. Developed in collaboration with Frieder Ferlemann.
10282
10283 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10284
10285         * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
10286         accumulator result if it needs sign extension
10287
10288 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
10289
10290         * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
10291
10292 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
10293
10294         * device/lib/gbz80/printf.c,
10295         * device/lib/z80/printf.c: removed define for NULL
10296
10297 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
10298
10299         * as/xa51/xa_link.c,
10300         * device/examples/ds390/ow390/ad26.c,
10301         * device/examples/ds390/ow390/cnt1d.c,
10302         * device/examples/ds390/ow390/counter.c,
10303         * device/examples/ds390/ow390/ds2480.h,
10304         * device/examples/ds390/ow390/ds2480ut.c,
10305         * device/examples/ds390/ow390/findtype.c,
10306         * device/examples/ds390/ow390/gethumd.c,
10307         * device/examples/ds390/ow390/owllu.c,
10308         * device/examples/ds390/ow390/ownetu.c,
10309         * device/examples/ds390/ow390/swt12.c,
10310         * device/examples/ds390/ow390/swtloop.c,
10311         * device/examples/ds390/ow390/temp.c,
10312         * device/examples/ds390/ow390/temp10.c,
10313         * device/examples/ds390/ow390/thermo21.c,
10314         * device/examples/ds390/ow390/tinilnk.c,
10315         * device/examples/ds390/ow390/tstfind.c,
10316         * device/examples/serialcomm/windows/serial.cpp,
10317         * device/examples/serialcomm/windows/test_serialcomm.cpp,
10318         * device/include/reg51.h: fixed line endings for cvs
10319
10320 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10321
10322         * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
10323         packRegsForAccUse, packRegisters): new accumulator register
10324         packing algorithm
10325         * support/regression/ports/hc08/support.c (_putchar): suppress
10326         warning of unused variable
10327         * src/SDCCicode.c: added SWAP entry to codeTable
10328
10329 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
10330
10331         * device/lib/sprintf.c: forgot to add this file before previous commit
10332
10333 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
10334
10335         * src/pic16/gen.c (genPackBits): added operand right in function
10336         parameters, load result directly if p_type is POINTER (that is
10337         called by genNearPointerSet)
10338         * (genUnPackBits): added operand left in function parameters,
10339         * (genNearPointerGet, genNearPointerSet): prevent the loading of
10340         FSR0 if accessing bitfields,
10341
10342 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
10343
10344         * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
10345           _print_format; updated printf, sprintf, vsprintf
10346         * device/include/asm/default/features.h: corrected comment/define
10347         * device/lib/Makefile.in: added sprintf.c
10348         * device/lib/libsdcc.lib: added sprintf module
10349         * device/lib/printf_large.c,
10350         * device/lib/vprintf.c,
10351         * device/lib/sprintf.c: totally refactored printf_large and vprintf
10352           into these 3 files
10353         * support/regression/Makefile: changed ALL_PORTS into a usefull default
10354         * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
10355         * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
10356           hc08 test
10357         * support/regression/tests/zeropad.c: define idata as data for hc08
10358
10359 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10360
10361         * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
10362         * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
10363         labels are referenced at least once (even if a reference is not found)
10364         * src/hc08/gen.c (emitcode): set isComment flag for comments
10365         * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
10366         loads), rules 6a..6b (optimize jumps to return)
10367
10368 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10369
10370         * device/lib/acosf.c (acosf),
10371         * device/lib/asinf.c (asinf),
10372         * device/lib/atanf.c (atanf),
10373         * device/lib/ceilf.c (ceilf),
10374         * device/lib/cosf.c (cosf),
10375         * device/lib/coshf.c (coshf),
10376         * device/lib/cotf.c (cotf),
10377         * device/lib/fabsf.c (fabsf),
10378         * device/lib/floorf.c (floorf),
10379         * device/lib/log10f.c (log10f),
10380         * device/lib/logf.c (logf),
10381         * device/lib/sinf.c (sinf),
10382         * device/lib/sinhf.c (sinhf),
10383         * device/lib/sqrtf.c (sqrtf),
10384         * device/lib/tanf.c (tanf),
10385         * device/lib/tanhf.c (tanhf),
10386         * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
10387         replaced all instances of "reentrant" in the library functions
10388         defined in math.h with this macro.
10389         * support/regression/tests/float_trans.c: reenabled test for hc08
10390
10391 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
10392
10393         * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
10394         erroneously deleted
10395
10396 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10397
10398         * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
10399         * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
10400         multi-byte volatile operands are used
10401         * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
10402         * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
10403         initialization to area GSINIT0 so that it would always precede
10404         any static initializers in GSINIT
10405         * support/regression/tests/zeropad.c: fixed idata define for hc08
10406         * support/regression/tests/bug-927659.c,
10407         * support/regression/tests/float_trans.c: disabled tests for hc08
10408         pending missing library routines
10409         * .version: increased version number to 2.4.4 - hc08 port now passes
10410         regression tests
10411
10412
10413 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
10414
10415         * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
10416         * Makefile.common.in,
10417         * as/Makefile,
10418         * as/hc08/Makefile.in,
10419         * as/mcs51/Makefile.in,
10420         * as/z80/Makefile.in,
10421         * debugger/mcs51/Makefile.in,
10422         * device/include/Makefile.in,
10423         * device/lib/Makefile.in,
10424         * doc/Makefile,
10425         * link/Makefile,
10426         * link/z80/Makefile.in,
10427         * packihx/Makefile.in,
10428         * sim/ucsim/main_in.mk,
10429         * sim/ucsim/avr.src/Makefile.in,
10430         * sim/ucsim/doc/Makefile.in,
10431         * sim/ucsim/gui.src/serio.src/Makefile.in,
10432         * sim/ucsim/hc08.src/Makefile.in,
10433         * sim/ucsim/s51.src/Makefile.in,
10434         * sim/ucsim/xa.src/Makefile.in,
10435         * sim/ucsim/z80.src/Makefile.in,
10436         * src/Makefile.in,
10437         * support/cpp2/Makefile.in,
10438         * support/librarian/Makefile,
10439         * support/makebin/Makefile: added DESTDIR to the install path proposed
10440         by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
10441         * doc/sdccman.lyx: added DESTDIR documentation
10442
10443 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
10444
10445         * src/pic16/gen.c (genFunction, genEndFunction): fixed return
10446         instruction for interrupt handlers, use fast returns when returning
10447         from high priority interrupts
10448
10449 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10450
10451         * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
10452         code generation
10453         * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
10454         * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
10455         bugs, ported much of Bernhard's code from mcs51
10456         * src/mcs51/gen.c (genSend),
10457         * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
10458         than one when calling a reentrant function
10459         * device/lib/_mullong.c: defined an alternate struct layout for big
10460         endian ports (hc08)
10461
10462 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10463
10464         * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
10465         test
10466
10467 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10468
10469         * src/SDCCsymt.c (processFuncArgs): make sure parameter types
10470         are sane and complete before asking the port its prefered parameter
10471         passing method (fixes bug #1017633)
10472         * device/lib/hc08/_ret.c: added "data" storage class to _ret2
10473         and _ret3
10474
10475 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10476
10477         * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
10478         problem in bitfields >= 8 bits.
10479
10480 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
10481
10482         * src/SDCCsymt.c: undid changes that were not meant to be committed
10483
10484 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
10485
10486         * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
10487
10488 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
10489
10490         * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
10491           copied and wrong bit got inverted
10492
10493 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10494
10495         * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
10496         genFarPointerSet into genPointerSet; eliminated genFarPointerSet
10497         * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
10498         genFarPointerGet into genPointerGet; eliminated genFarPointerGet
10499         * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
10500         assignments to bitfields at known addresses
10501         * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
10502         reads from bitfields at known addresses
10503         * src/hc08/ralloc.c (packRegisters),
10504         * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
10505         genhc08Code): optimize pointer get values used as conditionals
10506         * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
10507         and branch
10508
10509 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10510
10511         * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
10512         genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
10513         * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
10514         as conditionals
10515
10516 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10517
10518         * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
10519
10520 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10521
10522         * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
10523         related problems
10524
10525 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
10526
10527         * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
10528
10529 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10530
10531         * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
10532         mcs51 port
10533
10534 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
10535
10536         * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
10537
10538 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10539
10540         * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
10541         cases use more compact code.
10542
10543 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
10544
10545         * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
10546
10547 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10548
10549         * src/SDCClrange.c (findPrevUse): fixed bug #1007371
10550
10551 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10552
10553         * src/SDCCsymt.h,
10554         * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
10555         parameter of changePointer() from symbol* to sym_link*
10556         * src/SDCCast.c (decorateType): call changePointer() for CAST op
10557         * src/SDCCsymt.c (compareType): void* type is castable to other
10558         pointers, but not necesarily an exact match.
10559         * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
10560         is no longer blindly treated as an exact match.
10561         * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
10562
10563 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
10564
10565         * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
10566
10567 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
10568
10569         * src/pic/gen.c,
10570         * src/pic/pcode.c,
10571         * src/pic/ralloc.h,
10572         * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
10573
10574 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
10575
10576         * src/pic/device.c,
10577         * src/pic/device.h,
10578         * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
10579
10580 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10581
10582         * src/mcs51/gen.c (emitcode): fixed bug #992819
10583
10584 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
10585
10586         * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
10587           there's no need to make it worse
10588
10589 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10590
10591         * src/mcs51/ralloc.c (deassignLR),
10592         * src/ds390/ralloc.c (deassignLR),
10593         * src/hc08/ralloc.c (deassignLR),
10594         * src/z80/ralloc.c (deassignLR),
10595         * src/pic/ralloc.c (deassignLR),
10596         * src/pic16/ralloc.c (deassignLR),
10597         * src/avr/ralloc.c (deassignLR),
10598         * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
10599         rlivePoint): fixed another part of bug #971834
10600
10601 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10602
10603         * src/z80/main.c: enabled "critical" keyword
10604         * src/z80/mappings.i,
10605         * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
10606         functions (fixes bug #979646)
10607         * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
10608
10609 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10610
10611         * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
10612           such as c:\mydir.
10613
10614 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
10615
10616         * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
10617           doesn't disable too much optimizations
10618
10619 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
10620
10621         * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
10622
10623 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
10624
10625         * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
10626
10627 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
10628
10629         * src/pic/gen.c tidied up tabs
10630         * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
10631         * src/pic/main.c tidied up tabs
10632         * src/pic/pcode.c tidied up tabs and disabled verbose code generation
10633         * src/pic/pcoderegs.c tidied up tabs
10634         * src/pic/ralloc.c tidied up tabs
10635
10636 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
10637
10638         * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
10639         to S_FIXED for pic16 port and when symbol is not in level 0,
10640         allocate for S_REGISTER storage class and pic16 port, too,
10641         * src/pic16/device.h: prototype for checkSym,
10642         * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
10643         * (pic16_assignConfigWordValue): test the value and the mask to
10644         validate that the value is suitable for the configuration word,
10645         * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
10646         collect extern declared symbols, don't emit symbol twice, check
10647         first if symbol is in publics set first,
10648         * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
10649         * added command line '--fstack' which enables an experimental
10650         feature for stack access, too buggy to be used yet...
10651         * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
10652         * (pic16_allocDirReg): when register has storage class S_REGISTER
10653         allocate in pic16_dynAccessRegs,
10654         * device/include/pic16/pic18f????.h: modified configuration word
10655         naming convention, words started as CONFIG0H but should be CONFIG1H
10656
10657 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
10658
10659         * device/include/mcs51reg.h: fixed bug 970993
10660
10661 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
10662
10663         * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
10664         * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
10665         * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
10666         * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
10667         * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
10668         * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
10669           error/warning numbers,
10670           added function setWarningDisabled()
10671         * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
10672         * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
10673           _memcmp.c _memmove.c calloc.c realloc.c free.c
10674         * support/regression/tests/malloc.c: added tests for new functionality
10675         * support/regression/tests/zeropad.c: added tests for truncated initializers
10676           and initialized char arrays starting with '\x0'
10677         * src/mcs51/peeph.def: fixed regression, added peephole 177.f
10678
10679 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
10680
10681         * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
10682
10683 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10684
10685         * doc/sdccman.lyx: updated example in section "Absolute Addressing"
10686         * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
10687         peephole 177.e. Thanks to anonymous
10688
10689 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
10690
10691         * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
10692         function isn't used in the source but referenced as a
10693         variable initializer then declare it as extern in .asm file
10694
10695 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
10696
10697         * .version: increased version number to 2.4.3
10698
10699         Adding version extension according to ChangeLog CVS revision
10700         * src/Makefile.in (target all): added dependency 'version.h'
10701         * (rule version.h): added rule to create version.h from ChangeLog,
10702         * (rule dep): added dependency version.h,
10703         * src/version.awk: AWK script to create version.h
10704         * src/SDCCdwarf2.c (dwWriteModule),
10705         * src/SDCCglue.c (initialComments),
10706         * src/SDCCmain.c (printVersionInfo): modified to write after
10707         version string the version extension number,
10708         * src/SDCCutil.c: included "version.h"
10709         * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
10710         number,
10711         * src/SDCCutil.h: added prototype for getBuildNumber
10712
10713         * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
10714         includeDirsSet, too,
10715         * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
10716         const char [] is found in function prototype...
10717
10718         * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
10719         moving to WREG with source is already in WREG,
10720         * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
10721         * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
10722         * (aopForSym): stack'ed symbols are partially supported, added
10723         if-clause to support symbols in FARSPACE,
10724         * (sameRegs): added test for AOP_ACC to see if registers are same,
10725         * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
10726         * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
10727         * (pic16_popRegFromString): will not allocate a new register if it
10728         doesn't find one by name, bug may have introduced...
10729         * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
10730         * (genIpush): revived to use pic16 port's stack,
10731         * (genAddrOf): added incomplete case for stack'ed operand,
10732         * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
10733         * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
10734         can handle multibyte operands,
10735         * src/pic16/glue.c (pic16_printIval*): some debug info added,
10736         * (pic16initialComments): added message for MPLAB compatibility
10737         mode enabled,
10738         * src/pic16/main.h: prototype for pic16_mplab_comp,
10739         * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
10740         which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
10741         * (_pic16_linkEdit): NEW, handles link stage, transferred here
10742         because of increased complexity of procedure,
10743         * (_process_pragma): stack pragma changed to format 'stack pos len',
10744         emit symbol '_stack_end' to conform with gplink,
10745         * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
10746         to search for register,
10747         * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
10748         PO_GPR_REGISTER,
10749         * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
10750         #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
10751         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
10752         case for PO_GPR_REGISTER,
10753         * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
10754         dies, the new era is ahead !...
10755         * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
10756         pic16_dynInternalRegs,
10757         * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
10758         * (pic16_allocDirReg): minor optimizations and bug fixes,
10759         * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
10760
10761         * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
10762         load stack and frame pointer with address of 'stack_end' symbol
10763
10764 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
10765
10766         * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
10767         without source code but only variable initializers
10768
10769 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
10770
10771         * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
10772         external are not declared as extern to reduce overhead while linking
10773
10774 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
10775
10776         * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
10777
10778 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
10779
10780         * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
10781           Yee Keat for the patch
10782         * src/SDCCast.c (decorateType): fixed bug #979599
10783         * src/ds390/gen.h: removed local fReturnSizeDS390
10784         * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
10785         * src/ds390/gen.c (genAnd, genOr, genXor),
10786         * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
10787
10788 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
10789
10790         * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
10791         add relFilesSet to $3, manipulate $2 to handle linking of object
10792         files without source files in command line,
10793         * device/include/pic16 (all headers): added ID location macros,
10794         * src/pic16/device.c (struct PIC16_device Pics16[]): added field
10795         entries for ID location bytes,
10796         * (pic16_assignIdByteValue): NEW,
10797         * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
10798         added field dumpcalltree to pic16_options_t,
10799         * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
10800         is used instead of pic16_Gstack_base_addr, check if (ifx) before
10801         emitting rFalseIfx label after check_carry label,
10802         * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
10803         pic16_emitDIRegs), NEW
10804         * (pic16glue): dump .calltree file when option --calltree found,
10805         * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
10806         * (_pic16_genAssemblerPreamble): emit ID locations after
10807         configuration registers,
10808         * (pic16_linkCmd): modifications of the link command,
10809         * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
10810         * (pic16_pCodeInitRegisters): don't init stack registers,
10811         * (pic16_findPrevInstruction): fixed bug,
10812         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
10813         bug with immediate registers,
10814         * (buildCallTree): traces stack push and pop,
10815         * (pct2): dump also stack usage for each function,
10816         * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
10817         * (pic16_allocDirReg): various modifications,
10818         * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
10819         fixed to 1,
10820
10821 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
10822
10823         * src/pic16/pcode.c: removed buggy double colon
10824
10825 2004-07-01 Borut Razem <borut.razem AT siol.net>
10826
10827         * support/scripts/sdcc.nsi: added include/pic16 to setup
10828
10829 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
10830
10831         * device/lib/Makefile.in: fixed bug in target objects-pic16,
10832         * device/lib/pic16/Makefile: prefixed with dash (-) command under
10833         target 'clean',
10834         * doc/sdccman.lyx: changed version to 2.4.2 and added some port
10835         specific command line arguments. Also added sample lkr script
10836         for placing a variable at a specific memory bank.
10837         * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
10838         at a specific memory bank,
10839         * (pic16_dump_isection): fixed bug which caused string literals to
10840         be omitted when dumping idata section,
10841         * (pic16_groupRegistersInSection): added code to handle registers
10842         in specific memory banks,
10843         * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
10844         public, all references are renamed too,
10845         * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
10846         AOP_DPTR2,
10847         * (pic16_storeForReturn): added case to handle when dest is WREG,
10848         * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
10849         * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
10850         pic16_rel_udata, check to see if that register is marked as being
10851         a member of a specific memory bank,
10852         * (pic16_printIvalCharPtr): added code to add string literals either
10853         to code or the idata sections,
10854         * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
10855         also accept the 'udata' pragma,
10856         * src/pic16/main.h: new structure types sectName and sectSym
10857         * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
10858         * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
10859         * (pic16_findPrevInstruction): fixed, it returned nothing,
10860         * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
10861         instruction combinations,
10862         * (pic16_FixRegisterBanking): heavily reorganised,
10863         * (pic16_AnalyzeBanking): if generating banksel directives is
10864         disabled, then don't call FixRegisterBanking at all,
10865         * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
10866         completely removed,
10867         * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
10868
10869 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
10870
10871         * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
10872         Phuah Yee Keat <yk.phuah AT nestac.com>
10873
10874 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
10875
10876         * src/pic16/glue.c (pic16createInterruptVect): function now emits
10877         correctly the IVT even if it is relocated to some other location
10878
10879 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
10880
10881         * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
10882         * device/include/pic16/pic18f2220.h: NEW,
10883         * device/lib/pic16/libdev/pic18f2220.c: NEW,
10884         * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
10885         * src/pic16/device.c (struct Pics16): added info for 18f2220,
10886         * src/pic16/device.h (struct pic16_options): added ivt_loc and
10887         nodefaultlibs, ivt_loc is the location of the interrupt vector
10888         table, and nodefaultlibs signs that default libraries should not be
10889         linked in link stage,
10890         * src/pic16/gen.c (genFunction): relocate interrupt vector functions
10891         according to --ivt-loc argument,
10892         * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
10893         when pragma stack is found,
10894
10895 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10896
10897         * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
10898         256 (range check), 257 (do while), 258.a-f (bit banging
10899         f.e. on 3-wire SPI bus)
10900
10901 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10902
10903         * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
10904         variables used exclusively within a loop
10905
10906 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
10907
10908         * src/mcs51/gen.c (genCpl): quick fix for bug #974835
10909
10910 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10911
10912         * src/SDCClrange.c (computeClash): fixed bug #971834
10913
10914 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10915
10916         * src/mcs51/gen.c (genCmp): fixed bug #975903
10917         * src/hc08/gen.c (operandsEqu),
10918         * src/ds390/gen.c (operandsEqu),
10919         * src/z80/gen.c (operandsEqu),
10920         * src/pic/gen.c (operandsEqu),
10921         * src/pic16/gen.c (operandsEqu),
10922         * src/mcs51/gen.c (operandsEqu): fixed bug #976283
10923         * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
10924
10925 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10926
10927         * src/SDCCcse.c (cseBBlock): fixed bug #966963
10928
10929 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
10930
10931         * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
10932         default case in switch statement,
10933         * glue.c (pic16_initPointer): expr is initialised via decoarteType
10934         to eliminate problem with initialisation of pointers, but problem
10935         still exists,
10936         * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
10937         * (emitStaticSegment): removed various lines emitting debug info,
10938         * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
10939         added processor registers for utilizing EEPROM,
10940         * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
10941         configurable and set 8
10942
10943 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
10944
10945         * .version: increased version number to 2.4.2,
10946
10947         Cumulative patch for pic16 port
10948         * src/pic16/device.c: changed scheme to dump initial values for
10949         variables in idata segment, all print_idata* functions were removed,
10950         now the pic16_printIval* will be called,
10951         * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
10952         * _pic16_printPointerType, pic16_printPointerType,
10953         * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
10954         * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
10955         NEW, similar to the respective functions in SDCCglue.c,
10956         * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
10957         way, emitting hex bytes,
10958         * (pic16_emitDS): NEW, emits a string for pointer initialisation,
10959
10960 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10961
10962         * src/avr/ralloc.c (serialRegAssign),
10963         * src/xa51/ralloc.c (serialRegAssign),
10964         * src/pic/ralloc.c (serialRegAssign),
10965         * src/pic16/ralloc.c (serialRegAssign),
10966         * src/hc08/ralloc.c (serialRegAssign),
10967         * src/z80/ralloc.c (serialRegAssign),
10968         * src/ds390/ralloc.c (serialRegAssign),
10969         * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
10970
10971 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10972
10973         * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
10974         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
10975
10976 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
10977
10978         Cumulative patch for pic16 port:
10979         * src/pic16/device.h (typedef PIC16_device) modified fields for
10980         defining microcontrollers,
10981         * src/pic16/device.c: added new info for all devices in Pics16 array,
10982         * src/pic16/gen.c (genPcall): fixed bug that caused the return label
10983         to be optimised out by the pCode optimiser,
10984         * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
10985         specially, bug reported by G.M. Gallant,
10986         * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
10987         as force'd so that cannot be optimised out by pCode optimiser,
10988         * src/pic16/pcode.c,
10989         * src/pic16/pcodepeeph.c,
10990         * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
10991         they are disabled by default, but can be enabled explicit with
10992         command argument --denable-peeps, for testing,
10993         * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
10994         --pomit-ivt in COMPILE_FLAGS
10995
10996 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
10997
10998         * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
10999           compilation on MSVC
11000
11001 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
11002
11003         * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
11004
11005 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11006
11007         device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
11008         0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
11009
11010 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
11011
11012         * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
11013         would only assign 0x300001 register.
11014
11015 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
11016
11017         * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
11018         in COMPILE_FLAGS. Thanks to G. Gallant for report.
11019
11020 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11021
11022         * doc/sdccman.lyx: minor changes, mentioned beta vendor support
11023         for ds80c400
11024         * src/mcs51/peeph.def: ran unexpand -a over peeph.def
11025         * src/mcs51/peeph.def: removed obsolete peephole 100.a,
11026         added peephole 254 (left shift), 255 (jump table)
11027
11028 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
11029
11030         * device/lib/Makefile.in: removed comment line with model-pic16,
11031         * (target port-specific-objects-pic16): the libraries and objects
11032         are copied to the build directory form the device/lib/pic16/bin
11033         directory
11034
11035         Cumulative patch concerning pic16 port:
11036         * library directory has been re-organized,
11037         * added support for PIC18F1220,
11038         * added headers and library sources for chips 18f1220,18f6520,
11039         18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
11040
11041         * configuration registers setting has changed, now each supported
11042         device has a complete description of the registers it uses,
11043         * all initialisations are moved to idata sections, these section
11044         can be absolute or relocatable,
11045         * fixed initialisation of codespace variables,
11046         * fixed warning about PCLATU and gpsim,
11047         * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
11048         * (genAssign): use table reads when assigning from variables in codespace,
11049         * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
11050         char/int variables placed in codespace,
11051         * (pic16_emitConfigRegs): NEW, emits a list with configuration
11052         registers set in .asm file, no need for --pomit-config-words anymore,
11053         * (pic16glue): some 8051 legacy segments are commented out
11054         (to be removed completely),
11055         * added support for alternative assembler and linker with --asm=
11056         and --link= command line arguments,
11057         * peepholes are disabled automatically in the port, no need to
11058         specify on command line,
11059         * port supports natively char/int/long multiplication, but converts
11060         all divisions to support functions,
11061         * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
11062         to the file set in variable $2,
11063         * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
11064         strings in ASCII format and not in hex,
11065         * ralloc.c (serialRegAssign): added a triplet of conditional calls
11066         to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
11067         allocate proper register if iCodes aren't temporary,
11068
11069 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
11070
11071         * support/regression/tests/zeropad.c: added TEST_G macro for alpha
11072
11073 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
11074
11075         * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
11076         is commented out
11077
11078 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11079
11080         * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
11081         computed address is reused
11082         * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
11083         multi-byte bitfields
11084
11085 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
11086
11087         * src/z80/gen.c: (genArrayInit): must check for pointers too
11088
11089 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
11090
11091         * support/regression/tests/zeropad.c: never meant to commit the
11092           nestedstruct test: removed, added check for GCC version
11093
11094 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
11095
11096         * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
11097         * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
11098         * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
11099           printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
11100           bugs 928906 and 954082 half-empty initializers
11101         * src/SDCCsymt.h,
11102         * src/SDCCsymt.c (getAllocSize): added for above fix
11103         * src/z80/gen.c (genArrayInit): fixed bug 741044
11104         * support/regression/tests/zeropad.c: added tests
11105
11106 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
11107
11108         * src/pic16/device.c (pic16_dump_section): corrected bug which
11109         caused some symbols of the libraries to be misplaced
11110
11111 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
11112
11113         * src/pic16/glue.c,
11114         * src/pic16/ralloc.h,
11115         * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
11116         to fix conflict with pic port
11117
11118 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
11119
11120         * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
11121         externs configuration variables,
11122         * src/pic16/ralloc.h,
11123         * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
11124         prototype in header, commented out some debug messages
11125
11126 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
11127
11128         * src/pic16/glue.c,
11129         * src/pic16/main.c,
11130         * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
11131         for gpasm COFF object generation. Thanks to D. Hawkins for
11132         his patch info
11133
11134 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11135
11136         * src/ds390/main.c,
11137         * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
11138         Brock for spotting this)
11139         * src/ds390/gen.c (genEndFunction),
11140         * src/mcs51/gen.c (genEndFunction): always save psw if function is an
11141         interrupt handler and critical. Disable push/pop optimizations when
11142         peephole optimizations disabled.
11143
11144 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
11145
11146         Updated pic16 library sources and headers.
11147         * device/lib/pic16/pic18f*/ ,
11148         * device/include/pic16/*.h: modified to handle structured SFR
11149         definitions
11150
11151 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
11152
11153         * src/port.h (PORT structure): added hook initPaths, now each
11154         port can declare its own default search paths,
11155         which can been seen with the --print-search-dirs option,
11156         see pic16 port for example,
11157         * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
11158         setDataPaths): test to options.printSearchDirs is ifdef'ed out,
11159         * (doPrintSearchDirs): NEW, replaces in a central manner the
11160         printing of search dirs which was split in set*Paths functions,
11161         * (main): added call to port->initPaths and doPrintSearchDirs,
11162         * src/avr/main.c,
11163         * src/ds390/main.c,
11164         * src/hc08/main.c,
11165         * src/izt/i186.c,
11166         * src/izt/tlcs900h.c,
11167         * src/mcs51/main.c,
11168         * src/pic/main.c,
11169         * src/pic16/main.c: modified port structures to reflect addition of
11170         initPaths hook,
11171
11172         * src/pic16/device.c (regCompare): registers are finally sorted by name,
11173         * (pic16_dump_section): for registers in same address reserve memory once,
11174         * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
11175         to no_banksel,
11176         * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
11177         result is greater in size than right or left,
11178         * (pic16_genUMult8X8_8): there are some cases where the result can
11179         be 16 bits size, so handle these,
11180         * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
11181         * (pic16_outBitC): modified to emit pcodes,
11182         * (pic16_storeForReturn): using is_LitOp to see if operand is literal
11183         or not,
11184         * (genDivOneByte): implemented algorithm to divide 8-bits,
11185         * (genCmp): uncommented goto, but issues still exist,
11186         * (genAnd): fixed a bug with variables >8bits,
11187         * (genPackBits): optimization added that uses BCF/BSF to change a
11188         single bit,
11189         * (genAssign): fixed bug when assigning floating point literals,
11190         * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
11191         __sdcc_gsinit_startup label,
11192         * src/pic16/main.c (_pic16_init): removed search directory
11193         initialisations,
11194         * (_pic16_initPaths): NEW, used to initialise search directories,
11195         * (_hasNativeMulFor): support functions for all except char/int
11196         multiplication, and char division,
11197         * (PIC16_port struct): modified entry for native mul support,
11198         * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
11199         no_banksel option,
11200         * (buildCallTree): call to register_usage is ifdef'ed out,
11201
11202 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11203
11204         * device/include/string.h: applied Stas Sergeev's patch to make this
11205         header file compatible with the preprocessor -Wundef option
11206         * src/SDCCmain.c (main): abort compilation if preprocessor reports
11207         failure (fixes bug #941458)
11208
11209 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11210
11211         * src/SDCCopt.c (killDeadCode): fixed bug #907733
11212         * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
11213         that the variable, not the function, should be static
11214         * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
11215         to be consistent with non-literal case
11216
11217 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11218
11219         * src/SDCCast.c (isConformingBody): fixed bug #949967
11220         * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
11221         convilong): fixed bug #952086
11222
11223 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11224
11225         * src/SDCCmem.c (allocVariables): fixed bug #955321
11226
11227 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11228
11229         * src/hc08/main.c (_hc08_genAssemblerEnd),
11230         * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
11231         dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
11232         completely eliminated the use of a temporary file
11233         * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
11234         when more than one file linked
11235         * src/SDCCloop.c (pointerAssigned): fixed bug #954163
11236
11237 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11238
11239         * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
11240         which fixes bug #543481
11241         * support/regression/tests/bug-751703.c: fixed comments left from a
11242         cut and paste error
11243         * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
11244         * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
11245         * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
11246         scopes
11247         * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
11248         * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
11249         are now changed to underscores in moduleName
11250
11251 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11252
11253         * as/mcs51/lkmem.c: better fix for bug #954173
11254
11255 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
11256         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11257
11258         * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
11259         * device/include/c8051f000.h,
11260         * device/include/c8051f120.h,
11261         * device/include/c8051f300.h,
11262         * device/include/c8051f310.h,
11263         * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
11264         PWM16) and detab'ed
11265
11266 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11267
11268         * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
11269         and mailing lists, doc'ed --no-peep-comments, removed reference
11270         to knoppix (newest version has no LyX/LaTeX), other minor changes
11271         * src/SDCCglue.c (glue): save 2 bytes stack space with
11272         option --main-return. The ljmp could probably be avoided too
11273
11274 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11275
11276         * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
11277
11278 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11279
11280         * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
11281         * src/SDCCopt.c (isLocalWithoutDef),
11282         * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
11283         which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
11284         (credit to Maarten Brock for patch #949363, on which this is based)
11285         * support/regression/tests/bug-751703.c: some test cases of extern used
11286         within inner scopes.
11287
11288 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11289
11290         * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
11291         SPEC_STRUCT
11292         * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
11293         struct definitions
11294         * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
11295         dwWriteLabel): fix to create valid debugger symbols even when
11296         the module name has non-alphanumeric symbols in it
11297         * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
11298         when a variable's allocation has been optimized away
11299
11300
11301 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11302
11303         * src/hc08/gen.c (hc08_emitDebuggerSymbol),
11304         * src/hc08/main.c,
11305         * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
11306         * src/mcs51/main.c,
11307         * src/ds390/gen.c (ds390_emitDebuggerSymbol),
11308         * src/ds390/main.c,
11309         * src/z80/gen.c (z80_emitDebuggerSymbol),
11310         * src/z80/main.c,
11311         * src/pic/gen.c (pic14_emitDebuggerSymbol),
11312         * src/pic/main.c,
11313         * src/pic16/gen.c (pic14_emitDebuggerSymbol),
11314         * src/pic16/main.c,
11315         * src/avr/gen.c (avr_emitDebuggerSymbol),
11316         * src/avr/main.c,
11317         * src/xa51/gen.c (xa51_emitDebuggerSymbol),
11318         * src/xa51/main.c,
11319         * src/SDCCdebug.c (emitDebuggerSymbol),
11320         * src/SDCCdebug.h,
11321         * src/port.h: added a debugger struct to the port struct. Added a
11322         callback for defining debugger symbols
11323
11324         * src/SDCCast.c (createLabel),
11325         * src/SDCC.y (labeled_statement): mark all compiler generated labels
11326         with isitmp = 1
11327         * src/SDCCicode.h,
11328         * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
11329         iCode back to the ast for the function
11330
11331         * src/hc08/ralloc.c (hc08_assignRegisters),
11332         * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
11333         unneeded fields from the regs struct.
11334         * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
11335         pushReg() & pullReg() functions instead of emitcode()
11336
11337         * src/hc08/gen.c (genLabel, genhc08Code),
11338         * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
11339
11340         * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
11341         debugger hooks
11342
11343         * src/hc08/gen.c (genEndFunction, genhc08Code),
11344         * src/hc08/gen.h,
11345         * src/mcs51/gen.c (genEndFunction, gen51Code),
11346         * src/mcs51/gen.h,
11347         * src/ds390/gen.c (genEndFunction, gen390Code),
11348         * src/ds390/gen.h,
11349         * src/z80/gen.c (genEndFunction, genZ80Code),
11350         * src/z80/gen.h,
11351         * src/z80/z80.h,
11352         * src/pic/gen.c (genEndFunction, genpic14Code),
11353         * src/pic/gen.h,
11354         * src/pic16/gen.c (genEndFunction, genpic16Code),
11355         * src/pic16/gen.h,
11356         * src/avr/gen.c (genEndFunction, genAVRCode),
11357         * src/avr/gen.h,
11358         * src/xa51/gen.c (genEndFunction, genXA51Code),
11359         * src/xa51/gen.h,
11360         * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
11361         specific code to cdbFile.c and out of the backend code generators
11362
11363         * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
11364         * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
11365         starting address is now 0
11366
11367         * as/hc08/asm.h,
11368         * as/hc08/m08pst.c,
11369         * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
11370         assembler directive for DWARF support
11371         * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
11372
11373         * src/src.dsp,
11374         * src/Makefile.in,
11375         * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
11376
11377 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11378
11379         * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
11380         and inappropriate peephole optimization in jump tables
11381
11382 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11383
11384         * as/hc08/m08pst.c,
11385         * src/SDCCglue.c: sdccopt works for the hc08 port now
11386
11387 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
11388
11389         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
11390
11391 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11392
11393         * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
11394
11395 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11396
11397         * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
11398         rules
11399         * src/SDCCmain.c,
11400         * src/SDCCglobl.h,
11401         * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
11402         comments from the peephole optimizer replacement rules
11403         * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
11404         symbols
11405         * src/SDCCcse.c (updateSpillLocation),
11406         * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
11407         equivalents
11408         * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
11409         * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
11410         objects far pointers
11411
11412 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11413
11414         * src/SDCCsymt.h: a missing part of my last change
11415         * src/pic/ralloc.c (regTypeNum),
11416         * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
11417
11418 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11419
11420         * src/SDCCicode.h,
11421         * src/SDCCicode.c (aggrToPtrDclType),
11422         * src/SDCCptropt.h,
11423         * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
11424         ptrPseudoSymConvert),
11425         * src/pic/ralloc.c (regTypeNum),
11426         * src/pic16/ralloc.c (regTypeNum),
11427         * src/hc08/ralloc.c (regTypeNum),
11428         * src/ds390/ralloc.c (regTypeNum),
11429         * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
11430         creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
11431
11432 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11433
11434         * link/z80/lkmain.c (afile),
11435         * as/hc08/lkmain.c (afile),
11436         * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
11437         prevent a pointer problem when a filename has no directory and
11438         no extension specified.
11439
11440 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11441
11442         * link/z80/lkmain.c (afile): allow periods in directory names
11443         * link/z80/lkmain.c (afile),
11444         * as/mcs51/lkmain.c (afile),
11445         * as/hc08/lkmain.c (afile): allow linker script file to have an
11446         extension other than ".lnk"
11447         * link/z80/lklex.c (getfid),
11448         * link/z80/lkmain.c (parse),
11449         * as/mcs51/lklex.c (getfid),
11450         * as/mcs51/lkmain.c (parse),
11451         * as/hc08/lklex.c (getfid),
11452         * as/hc08/lkmain.c (parse): Support comments in the linker script
11453         file on lines by themselves and after filenames
11454
11455 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11456
11457         * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
11458
11459 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11460
11461         * src/z80/peeph-z80.def: removed some peephole rules that don't
11462         work with multibyte arithmetic (fixed bug #937126)
11463         * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
11464         to registers and not global variables
11465         * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
11466         geniCodePreInc, geniCodePostDec, geniCodePreDec,
11467         geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
11468         checking for assignments not internally generated (fixed bug #931895)
11469         * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
11470         structure member (fixed bug #930072)
11471
11472 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11473
11474         * src/SDCCmain.c (linkEdit),
11475         * src/hc08/main.c (_hc08_parseOptions),
11476         * as/hc08/Makefile.in,
11477         * as/hc08/aslink.h,
11478         * as/hc08/asm.h,
11479         * as/hc08/m08pst.c,
11480         * as/hc08/lkrloc.c (relr, rele),
11481         * as/hc08/lkarea.c (lnkarea)
11482         * as/hc08/lkmain.c (afile, parse),
11483         * as/hc08/lkelf.c: support for ELF output
11484         * as/hc08/lks19.c (s19),
11485         * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
11486
11487 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11488
11489         * as/mcs51/lkihx.c: Fixed bug #899105.
11490
11491 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11492
11493         * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
11494         .dsp files from Unix to DOS.
11495
11496 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11497
11498         * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
11499         function pointers; we have been compliant for several months now.
11500         * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
11501         change that was accidently commented out
11502         * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
11503         genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
11504         bug #922319
11505
11506 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11507
11508         * src/hc08/gen.c: output of all of the internal debugging information
11509         is now controlled by the D() macro; it is disabled by default
11510
11511 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11512
11513         * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
11514         harder to keep the same registers during a CAST iCode
11515         * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
11516         long via int can be done in a single cast, if the signedness is
11517         correct.
11518         * support/regression/tests/bug-927659.c: fixed to avoid conflict with
11519         putchar() in tinibios.c in ds390's library
11520
11521 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
11522
11523         * src/SDCCast.c (decorateType): fixed bug #898889,
11524         cast result of a literal complement too
11525         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
11526         fixed check for bitfields
11527
11528 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
11529
11530         * src/SDCCicode.c (geniCodeLogic): made it static,
11531         (geniCodeLogicAndOr): added in order to fix bug #905492,
11532         (ast2iCode): fixed bug #905492
11533         * support/regression/tests/bug-905492.c: added
11534         * src/SDCCast.c (decorateType): don't decorate/process parms twice,
11535         (processParms): fixed bug #927659: don't copy parms, this will clear
11536         decorated flag
11537         * support/regression/tests/bug-927659.c: added
11538
11539 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
11540
11541         * src/SDCCast.c (addCast): don't cast float to char
11542         * device/lib/libsdcc.lib: added _memmove
11543
11544 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
11545
11546         * device/lib/large/Makefile: fixed parallel execution by
11547         replacing `make` by `$(MAKE)`
11548
11549 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11550
11551         * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
11552         offsets (fixes bug #923936)
11553
11554 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
11555
11556         * device/lib/small/Makefile: fixed parallel execution by
11557         replacing `make` by `$(MAKE)`
11558
11559 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
11560
11561         * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
11562
11563 2004-03-23  Scott Dattalo  <scott AT dattalo.com>
11564
11565         * src/pic/gen.c (genCpl): multi-byte complements were not working.
11566         * src/regression/Makefile: Regression test was not running.
11567
11568 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
11569
11570         * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
11571         complement if possible
11572         * src/SDCCval.c (valComplement),
11573         * src/SDCCicode.c (operandOperation): fixed complement of literal
11574         * support/regression/tests/onebyte.c (testComplement): added
11575
11576 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
11577
11578         * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
11579         return an optimized tree; actually replace actParm with the new tree
11580         * src/SDCCast.h: added some parantheses to remove side effects
11581         * support/regression/tests/bug-920866.c
11582
11583 2004-03-21  Scott Dattalo  <scott AT dattalo.com>
11584         * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
11585         Bit operands were not being handled properly in the pic14 port.
11586         (now src/regression/add.c passes again).
11587
11588 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11589
11590         * src/SDCC.y (labeled_statement): case and default no longer require
11591         a following statement (RFE #893037)
11592
11593 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11594
11595         * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
11596         use MOVA macro to avoid "mov a,acc" when peephole optimizer is
11597         disabled (fixes bug #916294)
11598         * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
11599         "mov a,acc"; patch provided by Lenny Story
11600         * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
11601
11602 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11603
11604         * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
11605         functions
11606         * src/ds390/gen.c (genFunction, genEndFunction),
11607         * src/ds390/ralloc.c (ds390_assignRegisters),
11608         * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
11609         * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
11610         pushed if there are parameters passed on the stack. Also, a cleaner
11611         way to decide if r0/r1 should be pushed/popped. (Together they fix
11612         bug #918693)
11613
11614 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11615
11616         * doc/sdccman.lyx,
11617         * device/lib/mcs51/crtpagesfr.asm,
11618         * device/lib/mcs51/crtxinit.asm,
11619         * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
11620         to avoid confusion with Si Lab's SFRPAGE register.
11621
11622 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11623
11624         * src/SDCCglue.c (emitMaps): allow public sfr variables
11625         * src/SDCCglue.c (initialComments): include compiler build date
11626         with compiler version and put the timestamp of the generated
11627         assembly file on a serperate line to be less confusing.
11628         * src/port.h: added genInitStartup hook
11629         * src/avr/main.c,
11630         * src/ds390/main.c,
11631         * src/hc08/main.c,
11632         * src/pic/main.c,
11633         * src/pic16/main.c,
11634         * src/xa51/main.c,
11635         * src/z80/main.c: genInitStartup initialize as NULL (default to
11636         historical behaviour)
11637         * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
11638         * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
11639         _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
11640         library instead of hard coding it into the compiler.
11641         * support/regression/ports/mcs51-stack-auto/spec.mk,
11642         * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
11643         * device/lib/mcs51/Makefile,
11644         * device/lib/small/Makefile,
11645         * device/lib/large/Makefile,
11646         * device/lib/mcs51/crtpagesfr.asm,
11647         * device/lib/mcs51/crtstart.asm,
11648         * device/lib/mcs51/crtxclear.asm,
11649         * device/lib/mcs51/crtxinit.asm,
11650         * device/lib/mcs51/crtclear.asm,
11651         * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
11652         startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
11653         and into user configurable files.
11654         * device/lib/clean.mk: clean mcs51 directory too
11655         * support/regression/tests/longlit.c: added static to T1 declaration
11656         * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
11657         accesses in the initialization code
11658
11659 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11660
11661         * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
11662         OSCTRIMVAL as noted in bug #916008
11663
11664 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11665
11666         * src/SDCCloop.c (basicInduction): fixed bug with loop induction
11667         in loops with multiple exits (reported as incorrect registers
11668         used by Martin Helmling in Sdcc-user list)
11669
11670 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11671
11672         * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
11673         made ds390 register extensions look less like error messages
11674
11675 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11676
11677         * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
11678         reported by Adam Wozniak in Sdcc-user list
11679
11680 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
11681
11682         * src/SDCCast.c (decorateType): fixed with bug and promotion in
11683         arithmetic optimizations, added debug output
11684
11685 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
11686
11687         * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
11688         * sdcc.spec: updated and split sdcc into 3 rpms
11689         * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
11690         needed for literals of LEFT_OP and '+'
11691         * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
11692         introduced RESULT_TYPE_NOPROM
11693         (geniCodeMultiply): fixed logic for decision if mul is optimized to
11694         left shift
11695         * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
11696         limited promotion to int only for '*'
11697         * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
11698
11699 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
11700
11701         * src/pic16/gen.c (genSkip),
11702         (genc16bit2lit), (gencjneshort): commented out
11703         (is_LitOp): new helper function, checks operand type
11704         (genCmpEq): rewritten
11705
11706 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
11707
11708         * support/regression/tests/bug-908454.c: added
11709
11710 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
11711
11712         * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
11713         * src/SDCCicode.c (usualBinaryConversions): op needs int type
11714         (geniCodeCast): cosmetic, don't preserve bit storage class
11715         (geniCodeLeftShift): added promotion
11716         (geniCodeLogic): fixed regression
11717         * src/SDCCsymt.c (computeTypeOr): accept bits too
11718         (compareType): 2nd part of fix for bug #908454, needed for bitfields
11719
11720 2004-03-07  Borut Razem <borut.razem AT siol.net>
11721
11722         * support/Util/findme.c: alloca() replaced with malloc()/free() pair
11723
11724 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
11725
11726         * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
11727         version of pic16_genPackRegisters which does not check if ic is a
11728         CAST operator,
11729         * src/pic16/gen.c (ifxForOp): disabled new and untested code in
11730         function cause string1.c regression test fails
11731
11732 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
11733
11734         * sim/ucsim/configure.in,
11735         * sim/ucsim/configure,
11736         * sim/ucsim/doc/Makefile.in: use docdir
11737         * src/SDCC.y: fixed sbit atrributes
11738         * src/SDCCast.c (getResultTypeFromType): added support for bitfields
11739         * src/SDCCast.c (decorateType): |^& need special promotion handling
11740         * src/SDCCast.h,
11741         * src/SDCCsymt.h: moved definition of RESULT_TYPE
11742         * src/SDCCsymt.h (computeType),
11743         * src/SDCCicode.c: computeType() needs op
11744         * src/SDCCsymt.c (checkTypeSanity),
11745         * doc/sddman.lyx: "plain" bitfields are unsigned
11746         * src/SDCCsymt.c (computeTypeOr): added
11747         * src/SDCCsymt.c (computeType): added support for bitfields, fixed
11748         |^& ops
11749         * src/SDCCval.c (val*): computeType() needs op
11750         * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
11751         * support/regression/tests/onebyte.c: added tests for |^&
11752
11753 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
11754
11755         * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
11756         for writing icode into asm output.
11757
11758 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
11759
11760         * src/pic16/device.c: added some debug lines enabled
11761         with macro DEBUG_CHECK,
11762         * src/pic16/genarith.c: more debug in genPlus,
11763         * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
11764         * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
11765         * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
11766         * (aopForSym): onStack symbols are re-placed in data memspace,
11767         and onStack flag is cleared,
11768         * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
11769         copy temporary pcodeop,
11770         * (genPcall): added warning for not updating PCLATU,
11771         * (genFunction): removed test with IFFUNC_CALLEESAVES, its
11772         always true for pic16 port,
11773         * (genMultOneWord): NEW, supports integer multiplication,
11774         * (genMult): modified to call genMultOneWord,
11775         * (ifxForOp): added warning when return NULL,
11776         * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
11777         flag is set before call to operandFromSymbol for implicit
11778         added structures,
11779         * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
11780         options.intlong_rent are set by default,
11781         * (_hasNativeMulFor): modified to allow port generation of integer
11782         multiplication,
11783         * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
11784         set regtype to REG_SFR for all registers, restricting seting the
11785         accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
11786
11787 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11788
11789         * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
11790         more than 500 times in the regression tests
11791
11792 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11793
11794         * support/Util/SDCCerr.h,
11795         * support/Util/SDCCerr.c,
11796         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
11797         enumerator_list),
11798         * src/SDCCsymt.c (addSymChain): show location of oriignal definition
11799         for symbol conflicts.
11800         * support/valdiags/tests/enum.c,
11801         * support/valdiags/tests/tentdecl.c,
11802         * support/valdiags/tests/struct.c: expect possible error messages
11803         referring to original symbol definitions.
11804         * src/SDCC.y (struct_or_union_specifier, struct_declarator),
11805         * src/SDCCsymt.h,
11806         * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
11807
11808 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
11809
11810         * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
11811
11812 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
11813
11814         * src/pic16/ralloc.c (newReg): fixed bug #908929
11815
11816 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11817
11818         * src/ds390/gen.c: added missing #include "main.h"
11819
11820 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
11821
11822         * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
11823         checking if symbol is already in set,
11824         * src/pic16/device.h: prototype for checkAddSym,
11825         * src/pic16/gen.c: (_G): added entry interruptvector,
11826         * (assignResultValue): removed some commented out lines,
11827         * (genFunction): check for ISR via sym->type, absolute section for
11828         interrupt code is created via a new pBlock, the goto instruction is
11829         placed now correctly at the interrupt vector position, changed all
11830         references from ivec to _G.interruptvector,
11831         * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
11832         is the interrupt is a high priority one, same for return from ISR,
11833         * src/pic16/glue.c: changed all calls of addSetHead for publics and
11834         externs to calls of checkAddSym,
11835         * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
11836         pic16_pcode_verbose flag is set,
11837         * src/pic16/pcode.h: extern to pic16_pcode_verbose,
11838         * src/pic16/pcoderegs.c: message about how many registers are saved
11839         will only be emitted if pic16_pcode_verbose flag is set,
11840
11841 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11842
11843         * src/ds390/ralloc.h,
11844         * src/ds390/ralloc.c (ds390_regWithIdx),
11845         * src/ds390/gen.c (emitcode),
11846         * src/ds390/main.h,
11847         * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
11848         ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
11849         ds390operandCompare, getRegsRead, getRegsWritten,
11850         initializeAsmLineNode): customized instruction size calculation for
11851         ds390, started basis for some register optimizations
11852         * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
11853         corresponding assembly output
11854         * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
11855         missing push/pop of r0/r1. Optimized push/pops
11856
11857 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11858
11859         * src/mcs51/main.c (instructionSize): fixed ACALL size
11860         * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
11861
11862 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
11863
11864         * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
11865         the sorting of rlist with NULL elements
11866         * (print_idataType, print_idata): NEW to create idata sections
11867         * src/pic16/device.h: idataSymSet new variable
11868         * src/pic16/gen.c (genFunction): fixed some bugs in string
11869         comparing, improved the absolute section creation for ISRs,
11870         added FSR0L/FSR0H in registers that are saved in an ISR,
11871         * (genInline): fixed the processing of inline snippets,
11872         now they undergo no process by the peephole optimizer
11873         * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
11874         are placed in idataSymSet,
11875         * (pic16emitStaticSeg): extern symbols are added in externs,
11876         * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
11877         switching when aboslute variables are placed in access bank memory
11878         * (pic16_writeUsedRegs): added call to pic16_dump_idata,
11879         * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
11880         commented out with #if,
11881         * (pic16_packRegisters): reintroduce the check for CAST because some
11882         symbols are not correctly handled,
11883         * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
11884         pCodeInstruction instead of pCode,
11885         * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
11886         pCodeAsmDir definition,
11887         * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
11888         directive, then the argument directive is emitted without the leading
11889         tab, hack for inline labels which must be in the first column,
11890         * (compareLabel,pic16_findNextInstruction),
11891         * (pic16_findPrevInstruction): added case for PO_ASMDIR,
11892         * (insertBankSwitch): modified for the new pCodeAsmDir,
11893
11894 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
11895         patch applied by Vangelis Rokas <vrokas AT otenet.gr>
11896
11897         * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
11898         instance,
11899         * (pushSide): commented out with #if,
11900         * (assignResultValue): fixed some typos in saving
11901         registers,
11902         * (genPcall): FIXED and sync'ed with genCall,
11903         * (genDataPointerGet,genDataPointerSet): using offset not leoffset
11904         * (genNearPointerGet): fixed to handle some more cases,
11905         implementation scheme via table reads,
11906         * (genConstPointerGet): modified to access code memory correct,
11907         * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
11908         and improved to handle some cases
11909         * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
11910         instead of "RETLW" for init data
11911         * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
11912         not IN_DIRSPACE, work around to reduce bank switching when aboslute
11913         variables are placed in access bank memory (<0x80 and >=0xf80),
11914         * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
11915         TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
11916         TBLWT_POSTDEC,TBLWT_PREINC
11917         * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
11918         * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
11919         directives
11920         * (pic16_pCodeConstString): use "DB" instead of "RETLW"
11921         * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
11922         pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
11923         * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
11924
11925 2004-02-29  Borut Razem <borut.razem AT siol.net>
11926
11927         * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
11928         support/Util/findme.h, support/Util/system.h: enhance binary relative
11929         search for lib and include by using findProgramPath()
11930
11931 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11932
11933         * src/SDCCpeeph.h,
11934         * src/SDCCpeeph.c (pcDistance),
11935         * src/port.h,
11936         * src/mcs51/ralloc.h,
11937         * src/mcs51/ralloc.c (mcs51_regWithIdx),
11938         * src/mcs51/main.h,
11939         * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
11940         mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
11941         mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
11942         size calculation port specific, started basis for some register
11943         optimizations
11944         * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
11945         missing push/pop of r0/r1. Optimized push/pops
11946         * src/mcs51/ralloc.c (packregisters): fixed bug #727095
11947         * device/lib/_modsint.c (_modsint),
11948         * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
11949         and stack version so regression tests pass
11950
11951 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
11952
11953         * src/Makefile.in (dep): include SLIBOBJS in dependency check
11954         * src/SDCCast.c (decorateType): catch another small optimization
11955         with '?' operator
11956         * src/SDCCsymt.c (computeType): added comments and cosmetic changes
11957         * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
11958         modified to finally use computeType() all over SDCC,
11959         see Feature Request #877103
11960         * src/SDCCval.h: cosmetic
11961         * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
11962         valCompare(); regression tested in muldiv.c
11963         * support/regression/tests/muldiv.c (testMod): mod sign follows
11964         dividend only
11965
11966 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
11967
11968         * src/SDCCast.c (decorateType): fixed bug #902362
11969         * doc/INSTALL.txt: fixed install instructions for win32
11970
11971 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
11972
11973         * device/include/Makefile.in (install): fixed by replacing spaces
11974         by tabs
11975         * doc/README.txt,
11976         * doc/INSTALL.txt: updated for release
11977         * doc/sdccman.lyx: added warning for --xstack being buggy
11978
11979 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
11980
11981         * src/pic16/ralloc.c (packRegsForAccUse):  disabled functions with #if
11982         to eliminate build warnings.
11983         * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
11984
11985 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
11986            Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
11987
11988         * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
11989         removed -penable-stack, added comment for stack pragma, added
11990         warning for not initializing the stack/frame registers, removed
11991         comment at interrupts section
11992
11993         Stack is made permanent, there is no ability to disable stack usage.
11994         * src/pic16/device.h,
11995         * src/pic16/device.c: removed all references to USE_STACK macro,
11996         * src/pic16/device.c (pic16_dump_section): when no elements in
11997         rlist, free rlist before return,
11998         * (pic16_dump_int_registers): NEW, internal registers are a new set
11999         of general purpose registers reused by each function,
12000         * (checkAddReg): returns 1 if registers is added to set,
12001         * (pic16_groupRegistersInSection): when a registers is of type
12002         PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
12003         * src/pic16/device.h: memRange and Assigned Memory are deleted,
12004         SRCASECMP macro is moved here from device.c
12005         * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
12006         PO_PCLATU, PO_PRODL, PO_PRODH,
12007         * (pic16_pCodeOpType, genMinus,
12008         changed compares to "a" register, with AOP_ACC,
12009         * (pic16_genPlus): fixed some bugs and indented properly,
12010         * (pic16_addSign): changed size to size+offset in the MOVWF
12011         instruction,
12012         * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
12013         multiply 8-bit operand by literal, result is 8-bit,
12014         * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
12015         multiply 2 8-bit operand, result is 8-bit,
12016         * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
12017         genUMult8X*_16,
12018         * src/pic16/gen.c: changed accUse to contain WREG only,
12019         * (pic16_emitcomment): renamed to pic16_emitpcomment,
12020         * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
12021         true, do not use immediate addressing any more unless sym is a
12022         pointer in codespace,
12023         * (aopForRemat): do not use immediate addressing when symbol not in
12024         codespace and when symbol's address is requested,
12025         * (aopOp): for-loop in if(sym->accUse) is modified for the new
12026         accUse size (= 1),
12027         * (aopGet): added case for AOP_ACC and don't return "accumulator
12028         bug" but WREG instead,
12029         * (popGetTempReg): pushes contents of temporary register in stack,
12030         * (popReleaseTempReg): pops contents of temporary register from
12031         stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
12032         * (pic16_popGet): separated case AOP_ACC to return register WREG
12033         from processor registers, AOP_PCODE not checks if pcop is PO_DIR
12034         or PO_IMMEDIATE and initializes their instance/offset appropriately,
12035         * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
12036         the use of immediate pointers to certain cases only.
12037
12038         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
12039         * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
12040         * (assignResultValue, genCall, genRet): modified to use the new
12041         function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
12042         genPcall is still broken,
12043         * (genFunction): added code to create 'A' type pBlocks when
12044         interrupt functions are generated, code not extensively tested yet,
12045         ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
12046         * (genEndFunction): modified so ISRs pop stored registers from stack,
12047         * (genMultOneByte): cleanup,
12048         * (AccRsh): added flag andmask, to and result with appropriate mask,
12049         * (genUnpackBits,genPackBits): fixed and can handle bit fields,
12050         * (genDataPointerGet): fixed and reenabled its use,
12051         * (genNearDataPointerGet): bugs fixed,
12052         * (genDataPointerSet): bugs fixed,
12053         * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
12054         pic16_DumpSymbol, pic16_DumpOp,
12055         * src/pic16/genutils.h: function prototypes for the above functions,
12056         * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
12057         pointers,
12058         * (pic16emitRegularMap): many many many improvements, but needs a
12059         major cleanup,
12060         * src/pic16/main.c: enable_stack in pic16_options is removed,
12061         * (_pic16_parseOptions): removed command line options -penable-stack,
12062         * (_process_pragma): emit stack symbol only when stack pragma is
12063         processed,
12064         * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
12065         redirected to FSR0L/FSR0H pair,
12066         * (pic16_get_op, pic16_get_op2): modifications and improvements,
12067         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
12068         cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
12069         for immediates,
12070         * (insertBankSwitch): modified to handle cases like: (alfa + 1)
12071         * (dumpPicOptype): NEW,
12072         * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
12073         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
12074         with movff instruction,
12075         * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
12076         added pic16_int_regs, some packRegsFor* functions are commented out,
12077         because produce errors,
12078         * src/pic16/NOTES: minor modifications
12079
12080 2004-02-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12081
12082         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
12083         as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
12084         --pack-iram.
12085         * doc/sdccman.lyx: described options --stack-size and --pack-iram.
12086         * as/mcs51/lkaomf51.c: fixed bug #895763
12087
12088 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
12089
12090         * device/include/c8051f320.h: added. Contributed by Maarten Brock.
12091
12092 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12093
12094         * doc/sdccman.lyx: added details about the HC08 storage classes and
12095         interrupts, fixed the register usage info for z80 & gbz80
12096
12097 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
12098
12099         * doc/sdccman.lyx: added more pic16 port documentation
12100         * device/include/pic16/: added header pic18fregs.h
12101
12102 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
12103
12104         * doc/sdccman.lyx: added Vangelis' contribution
12105
12106 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12107
12108         * src/SDCClrange.c (rlivePoint): live range of SEND operand should
12109         extend to the next CALL or PCALL, not just to the next CALL.
12110
12111 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
12112
12113         * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
12114
12115 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12116
12117         * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
12118         bug #895752 and a better fix for bug #716790
12119
12120 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12121
12122         * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
12123
12124 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12125
12126         * doc/sdccman.lyx: minor changes, minor changed
12127
12128 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
12129
12130         * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
12131         which can't handle SDCC_NEWONEBYTEOPS,
12132         (geniCodeMultiply): removed conversion from mult to shift for pic14
12133         and pic16
12134
12135 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12136
12137         * src/hc08/gen.h,
12138         * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
12139         rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
12140         thus fixing bug #895406
12141
12142 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
12143
12144         * device/lib/_modsint.c,
12145         * device/lib/_modslong.c: sign follows divisor only
12146         * src/hc08/gen.c (genMultOneByte): if result size is 1,
12147         signs or signedness can be ignored
12148         * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
12149         * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
12150         added optimization for IFX,
12151         (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
12152         arguments;
12153         reenabled optimization for IFX, which was removed on 2004-01-11
12154         * src/SDCCast.h: added return type IFX
12155         * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
12156         arguments with 8 or 16 bit results; pic14 and pic16 ports use old
12157         promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
12158         SDCC_OLDONEBYTEOPS selects the old behaviour
12159         * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
12160         changed again and commented promotion rule
12161         * src/SDCCval.c (valDiv): promotion no longer necessary
12162         * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
12163         * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
12164         rewritten
12165         * support/regression/tests/onebyte.c: added
12166
12167 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
12168
12169         * gen.c (genInline): reverted to old code for assemnling inline
12170         code because of bug reported James Chadd
12171
12172 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
12173
12174         * ralloc.h: missing declarations from previous patch,
12175         seems that patch for ralloc.h was never applied, fixed
12176
12177 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
12178            patch committed by Vangelis Rokas <vrokas AT otenet.gr>
12179
12180         * pcode.c,
12181         * pcode.h,
12182         * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
12183         indirect addressing. Marked FSR0 as deprecated
12184         * gen.c (pointerCode): commented out, not needed now
12185         (pic16_popGet2p): new MOVFF helper function
12186         (genGenPointerGet),
12187         (genGenPointerSet): reimplemented with MOVFF and POSTINC0
12188         (shiftRLong): removed duplicate debugging info
12189
12190 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12191
12192         * src/ds390/gen.c (genNearPointerGet),
12193         * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
12194         optimization with bits, but not bitfields.
12195         * src/ds390/ralloc.c (packRegisters),
12196         * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
12197
12198 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
12199
12200         * src/SDCCcse.c (algebraicOpts): copy operands before modification
12201
12202 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12203
12204         * src/SDCCsymt.h,
12205         * src/SDCCicode.c (operandFromSymbol),
12206         * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
12207         * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
12208         * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
12209         * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
12210         * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
12211         * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
12212         bug #892038
12213         * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
12214         * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
12215         printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
12216         * src/SDCCsymt.c (newSymbol),
12217         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
12218         enumerator_list),
12219         * src/SDCCval.h,
12220         * src/SDCCval.c (newiList): fixed bug #885705
12221
12222 2004-02-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12223
12224         * doc/sdccman.lyx: added section 3.1.4: sdcclib.
12225         * as/mcs51/lkmem.c: report the size of the stack in .mem file.
12226
12227 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12228
12229         * device/include/c8051f120.h,
12230         * device/include/c8051f300.h,
12231         * device/include/c8051f310.h: added/updated header files for Silicon
12232         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
12233         * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
12234         in new section Submitting patches
12235
12236 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12237
12238         * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
12239         genFarPointerGet, genCodePointerGet, genGenPointerGet,
12240         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
12241         genGenPointerSet),
12242         * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
12243         genFarPointerGet, genCodePointerGet, genGenPointerGet,
12244         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
12245         genGenPointerSet),
12246         * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
12247         genFarPointerGet, genCodePointerGet, genGenPointerGet,
12248         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
12249         genGenPointerSet),
12250         * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
12251         genFarPointerGet, genCodePointerGet, genGenPointerGet,
12252         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
12253         genGenPointerSet): fixed bug #892400
12254         * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
12255         to eliminate build warnings.
12256         * src/SDCCast.c (processParms),
12257         * src/SDCC.y (function_declarator2, declarator2_function_attributes):
12258         fixed bug 751859
12259         * support/valdiag/valdiag.py: added GCC to the list of defines active
12260         when compiling with gcc
12261
12262 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12263
12264         * support/Util/SDCCerr.h,
12265         * support/Util/SDCCerr.c,
12266         * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
12267         with an incomplete type (fixed bug #883734)
12268         * src/SDCCicode.c (geniCodeCast): fixed bug #890510
12269
12270 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12271
12272         * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
12273
12274 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12275
12276         * src/SDCCast.c (decorateType),
12277         * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
12278         function pointer implementation
12279         * support/regression/tests/funptrs.c: added tests to verify both forms
12280         of function pointers work correctly. Added tests to verify parameters
12281         are passed in the correct order.
12282
12283 2004-02-06  Vangelis Rokas <vrokas AT otenet.gr>
12284
12285         * device.c (regCompare): registers are sorted by ascending
12286         address and increasing size,
12287         * main.c (_pic16_finaliseOptions): removed the declaration
12288         of compiler macro MCU. Now a macro of the format pic18fxxxx
12289         will be defined from the command line
12290
12291 2004-02-06  Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
12292             patch committed by Vangelis Rokas <vrokas AT otenet.gr>
12293
12294         * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
12295         PCOP_RLCF was overwritten!
12296         * gen.c (genSkip): commented out calls to pic16_emitcode,
12297         * (genCmpEQ): fixed "long" compares, only high word did get compared,
12298         * (genlshTwo),
12299         * (genRRC): added debugging info,
12300         * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
12301         overwritten while shifting,
12302         * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
12303         overwritten while shifting,
12304         * (AccLsh),
12305         * (AccRsh),
12306         * (shiftLLeftOrResult),
12307         * (shiftRLeftOrResult),
12308         * (shiftRLong),
12309         * (shiftLLong): Implemented with pic16_emitpcode
12310         * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
12311         * (genLeftShift): Fixed bug, operand for shift by variable always
12312         was "and"ed with 0x0f,
12313         * (genLeftShiftLiteral),
12314         * (genrshTwo),
12315         * (genRightShiftLiteral): added debugging info,
12316         * (genrshFour): added comment,
12317         * (genRightShift): determined signedness from operand "left"
12318         instead of "result"
12319
12320 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12321
12322         * src/SDCCicode.c (geniCodeParms),
12323         * src/SDCCast.c (decorateType, processParms): support for ANSI-style
12324         function pointers, fixed function pointer bugs #861242 and #861896
12325
12326 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12327
12328         * device/include/c8051f000.h,
12329         * device/include/c8051f120.h,
12330         * device/include/c8051f300.h: added header files for Silicon
12331         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
12332
12333 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
12334
12335         * src/SDCCast.c (processParams): added new type flow and restructured
12336         (gatherAutoInit): added new type flow
12337         (addCast): cosmetic changes
12338         (getLeftResultType): added new type flow for array indices, patch
12339         provided by Stas, see FR #877103
12340         (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
12341         array index patch by Stas
12342         * src/SDCCast.h: added prototype getResultTypeFromType()
12343         * src/SDCCval.h,
12344         * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
12345         * src/pic/glue.c (pic14emitStaticSeg),
12346         * src/pic16/glue.c (pic16emitStaticSeg),
12347         * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
12348         for initialization of symbols
12349         * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
12350         * support/Util/SDCCerr.h:
12351         * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
12352         * .version: bumped version number to 2.3.8
12353         * device/include/Makefile.in (install),
12354         * doc/Makefile (install): changed to 'rm `find ...`' construct to
12355         avoid warnings
12356
12357 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
12358
12359         * support/regression/tests/libmullong.c: fixed for 64 bit hosts
12360         Slade Rich fixed an optimization bug
12361         * src/pic/pcodepeep.c,
12362         * src/pic/pcoderegs.c
12363         * doc/Makefile (install): added test for directory
12364
12365 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12366
12367         * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
12368         * src/ds390/ralloc.c (getRegPtr, getRegGpr),
12369         * src/pic/ralloc.c (getRegPtr, getRegGpr),
12370         * src/pic16/ralloc.c (getRegPtr, getRegGpr),
12371         * src/z80/ralloc.c (getRegGpr): fixed bug #883361
12372         * as/mcs51/asexpr.c (term),
12373         * as/hc08/asexpr.c (term): fixed bug #887146
12374
12375 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12376
12377         * src/z80/gen.c (genMult): handle single byte result product
12378         * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
12379         DUMMY_READ_VOLATILE (fixed bug #886367)
12380
12381 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
12382
12383         * support/regression/tests/libmullong.c: fixed logic, on little endian
12384         hosts we ended without a mullong_wrapper()
12385
12386 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12387
12388         * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
12389         virus/worm forged address usage.
12390
12391 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
12392
12393         Fixed promotion, it should be done on AST level:
12394         * src/SDCCast.c (addCast): added promotion to int
12395         (decorateType): updated call to upCast()
12396         * src/SDCCicode.c (geniCodeLeftShift): removed call to
12397         usualUnaryConversions()
12398
12399 2004-01-26  Michael Hope  <michaelh AT juju.net.nz>
12400
12401         * support/regression/tests/literalop.c (mulWrapper): Added a
12402         wrapper to remove integer overflow warnings.
12403
12404         * support/regression/tests/float_trans.c: Made work on host.
12405
12406         * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
12407         location of sz80.
12408
12409         * support/regression/generate-cases.py (main): Changed from inline
12410         to a main method.
12411
12412         * doc/Makefile (install): Changed to depth first to get rid of
12413         missing directory install warning.
12414
12415         * as/Makefile (install-doc): Made work on Mac.
12416
12417 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
12418
12419         * src/SDCCast.c: added an additional type flow in decorateType() of
12420         opposite direction, see feature request #860006; it's enabled at runtime
12421         by setting the environment variable SDCC_NEWTYPEFLOW
12422         * src/SDCCast.h: changed prototype of decorateType()
12423         * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
12424         * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
12425         'char' to 'int' can be omitted, if both operands are 'unsigned char';
12426         see feature request #877103
12427         * src/SDCCval.c: updated call of decorateType()
12428         (valBitwise): fixed bug #882876
12429         (valMinus): added promotion
12430         (valLogicAndOr): result is unsigned
12431         (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
12432         * src/SDCCsymt.c (computeType),
12433         * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
12434         must not cause an unsigned operation
12435         * src/pic/glue (pic14emitRegularMap),
12436         * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
12437
12438 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
12439
12440         * src/pic/pcode.c (PCodeID): commented out left over debug code
12441
12442 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
12443
12444         * support/valdiag/tests/overflow.c: added shift tests
12445         * src/pic/device.c,
12446         * src/pic/gen.c,
12447         * src/pic/gen.h,
12448         * src/pic/glue.c,
12449         * src/pic/main.c,
12450         * src/pic/pcode.c,
12451         * src/pic/pcode.h,
12452         * src/pic/pcodepeep.c,
12453         * src/pic/pcoderegs.c,
12454         * src/pic/ralloc.c,
12455         * src/pic/ralloc.h: applied patch from Slade Rich;
12456         added support for multiple code pages and multiple RAM banks on the
12457         PIC 14 port. The ASM files now no longer simply assume all the
12458         code / RAM are in the same page / bank. This means the linker can
12459         safely allocate code/RAM of separate ASM files to different pages/banks.
12460         * doc/sdccman.lyx: added Slade's tips
12461         * src/mcs51/peeph.def: fixed bug #880768
12462
12463 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12464
12465         * src/hc08/ralloc.c (rematStr): fixed bug #879282
12466         * src/SDCCast.c (decorateType): fixed bug #880197
12467
12468 2004-01-20  Michael Hope  <michaelh AT juju.net.nz>
12469
12470         * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
12471         getopt.h.
12472
12473         * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
12474         strtof is not part of C89 and isn't included with Mac OS X.
12475
12476 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12477
12478         * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
12479         shiftL2Left2Result): fixed bug #879326
12480         (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
12481         (genMultOneByte): fixed bug in signed vs unsigned multiplication
12482         * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
12483         address fetch for clr instruction
12484         * device/lib/hc08/_mulint.c: created optimized assembly version
12485         * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
12486
12487 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
12488
12489         * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
12490         proposed in FR #877103
12491
12492 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
12493
12494         * src/SDCCval.c (cheapestVal): added missing checks
12495         * src/SDCCicode.c (usualBinaryConversions): fixed condition
12496         * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
12497
12498 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
12499
12500         * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
12501         equal operands
12502
12503 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
12504
12505         * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
12506         loaded with the linker search paths (-L arguments) and the libraries
12507         to be linked with the current source (-l arguments). Changes
12508         currently will affect only the pic16 port.
12509         * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
12510         include path the port specific paths and port specific libraries,
12511         * gplink command now contains the $3 argument,
12512         * src/pic16/device.h,
12513         * src/pic16/device.c,: structure PIC_device is made public and
12514         renamed to PIC16_device, the same for variable Pics which is renamed
12515         to Pics16. Updated all references to them.
12516         * src/pic16/glue.c (pic16glue): corrected bug with code
12517         initialization which bypassed the variable initializations block.
12518
12519         * device/lib/pic16/Makefile.rules: removed --penable-stack from
12520         COMPILE_FLAGS and added the --nostdinc option
12521
12522 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12523
12524         * device/include/mc68hc908jb8.h: Register defs for another member
12525         of the hc08 family. Contributed by Bjorn Bringert - thanks!
12526
12527 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
12528
12529         Documenting changes from previous commits.
12530         * configure.in (version 1.56),
12531         * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
12532         when generating output files to configure the pic16 library,
12533         but now I've commented it out, since gputils aren't installed in the
12534         SF compile farm, so library won't compile
12535
12536         * device/lib/Makefile.in (version 1.56): initially I've added in
12537         target 'all' the prerequestive 'model-pic16' so it compiled the
12538         pic16 library, but now I've commented it out for the same reasons
12539         above,
12540         * added targets 'model-pic16' and 'objects-pic16' to compile the
12541         library
12542         * added target 'port-specific-objects-pic16' to handle the
12543         generated libraries and copy them into the build/ directory
12544         * added target 'clean-intermediate-pic16' to clean intermediate
12545         files into pic16 directory
12546         * in target 'installdirs' added line to create directory pic16 in
12547         the installation path
12548
12549         * device/include/Makefile.in (version 1.11): in target 'install'
12550         added lines to copy all header files to installation path,
12551         * in target 'installdirs' added line create directory for pic16
12552         headers in the installation path
12553
12554 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
12555
12556         * src/ds390/gen.c (genCall): fixed a double use of acc and b after
12557          a function call
12558
12559 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
12560
12561         * configure,
12562         * device/lib/configure.in,
12563         * device/lib/configure: fixed for autoconf 2.57
12564
12565 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12566
12567         * src/z80/main.c (_parseOptions): fixed the portmode= command line
12568         option so that it actually works. Made it specific to the z80, since
12569         the gbz80 doesn't have these kinds of I/O ports.
12570
12571 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12572
12573         * device/include/z180.h,
12574         * device/lib/_memcpy.c,
12575         * device/lib/_memmove.c,
12576         * device/lib/_mulint.c,
12577         * device/lib/ser_ir.c,
12578         * device/lib/ser_ir_cts_rts.c,
12579         * device/lib/_strcmp.c,
12580         * device/lib/_strtok.c: fixed pragmas to non-deprecated form
12581         * src/z80/main.c (_process_pragma): add support for pragmas bank and
12582         portmode; added deprecation warning for bank= and protmode= forms.
12583         Also, guard against buffer overflow.
12584         * src/z80/gen.c (aopGet): generate better code for sfr banked read
12585
12586 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12587
12588         * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
12589         changed interrupt vector table generation to only emit declared vectors.
12590         * device/include/Makefile.in: added missing backslash
12591         * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
12592
12593 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
12594
12595         Mainly changes to support compilation of the device libraries
12596         * src/pic16/device.c: stack is allocated via symbol and not
12597         via literal number. The symbol is placed in the corresponding
12598         position of the data ram
12599         * (pic16_dump_section): relocatable and absolute uninitialized
12600         data are now emitted in sorted order to reduce section naming,
12601         * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
12602         weren't marked as being in the access bank,
12603
12604 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
12605
12606         Added portion of GNU PIC Library under the directory
12607         device/include/pic16 and device/lib/pic16. These files
12608         contain the declarations of SFRs for the PIC18Fxx2 devices.
12609         The directory is initialized via configure from toplevel.
12610
12611 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
12612
12613         * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
12614         the spilllocations to be compared correctly
12615
12616 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
12617
12618         * src/SDCCast.c (decorateType): fixed bug introduced today
12619
12620 2004-01-12  Borut Razem <borut.razem AT siol.net>
12621
12622         * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
12623         doc/sdccman.lyx: upper case pragmas are deprecated
12624
12625 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
12626
12627         * src/SDCCast.c (decorateType): replacing 'ul > 0' by  '!ul' results
12628         in simpler and even better code
12629
12630 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
12631
12632         * src/SDCCicode.c (operandOperation): fixed bug #874819
12633         * src/SDCCast.c (decorateType): fixed
12634         char foo (unsigned long ul) { return ul > 0; }
12635
12636 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12637
12638         * doc/sdccman.lyx: Moved and added some sections, small changes
12639         all over. Telling LaTeX to be less strict with word spacing
12640         to better keep the right margin. Changed some notes about
12641         maintainance of the ports in section 3.2.1 - is it OK like this?
12642
12643 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
12644
12645         SDCC source changes:
12646         * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
12647         convilong): modified to inform the pic16 port that builtin functions
12648         are external
12649
12650         PIC16 PORT specific changes:
12651         * src/pic16/device.c pic16_dump_equates() added,
12652         processor registers declared internally by the port are emitted in
12653         the translation as equates,
12654         * src/pic16/gen.c: inline code is passed unprocessed to the
12655         translation,
12656         * (pic16_popGetLit2): fnuction modified to take second operand as
12657         pCodeOp pointer and not as literal,
12658         * (popRegFromIdx): prefixed with pic16_,
12659         * (pic16_popCombine2): modified to receive already allocated pCode
12660         operands,
12661         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
12662         * (genFunction): initializes local stack frame and pushes on stack
12663         all the registers used by this function,
12664         * (genEndFunction): restores all registers from stack and restores
12665         stack frame,
12666         * src/pic16/glue.c (pic16emitRegularMap): various changes and
12667         improvements,
12668         * (pic16glue): changed the program startup sequence,
12669         * added new dbName code 'A' for functions placed in absolute section
12670         * src/pic16/main.c: added function attribute _naked,
12671         * added pragma 'code' to place a fnuction at an absolute address,
12672         * added command line arguments --debug-ralloc and --pcode-verbose,
12673         * (_pic16_finiliseOptions): options.all_callee_saves is set by default
12674         * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
12675         * (pic16_newpCodeOpLit2): modified to take the second operand as
12676         pCodeOp pointer,
12677         * (pic16_printpBlock): modified to emit each function in a separate
12678         section,
12679         * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
12680         UPPER for immediate operands,
12681         * src/pic16/pcodepeeph.c: added peephole support for the LFSR
12682         instruction,
12683         * src/pic16/peeph.def: all peepholes with movff are commented out,
12684         because there is a problem in the pcode peep optimizer,
12685         * src/pic16/ralloc.c: the register allocator can now reuse local
12686         function symbols for another function. This saves register usage.
12687         * src/pic16/ralloc.h: added flag isLocal in structure regs,
12688
12689         Added file src/pic16/NOTES with information about program writing on
12690         the current port version.
12691
12692 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12693
12694         * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
12695         and peephole 252 (array access)
12696
12697 2004-01-09  Borut Razem <borut.razem AT siol.net>
12698
12699         * src/SDCCmain.c : fixed #872250: -l command line defined library
12700           files are scanned before standard library files
12701
12702 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12703
12704         * src/SDCCast.c (decorateType): fixed bug #874046
12705
12706 2004-01-09  Borut Razem <borut.razem AT siol.net>
12707
12708         * support/scripts/sdcc.nsi: remove previous installation
12709
12710 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12711
12712         * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
12713         bytes for last interrupt vector (mcs51)
12714         * sdcc.spec: fixed typo
12715
12716 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12717
12718         * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
12719         gen51Code): more efficient parameter receive for --model-large
12720         ("bug" #845294)
12721
12722 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12723
12724         * src/ds390/main.c,
12725         * src/z80/main.c: added missed needLinkerScript flags (more than
12726         one port structure defined in these file)
12727         * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
12728         bug #795325
12729
12730 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
12731
12732         * src/SDCCmain.c: removed various references to DEFAULT_PORT
12733         * src/port.h: added flag needLinkerScript in port->linker
12734         structure to inform whether to create a .lnk file or not,
12735         * src/avr/main.c,
12736         * src/ds390/main.c,
12737         * src/hc08/main.c,
12738         * src/mcs51/main.c,
12739         * src/pic/main.c,
12740         * src/pic16/main.c,
12741         * src/xa51/main.c,
12742         * src/z80/main.c: changed appropriately to configure
12743         needLinkerScript flag
12744         * src/pic/gen.c,
12745         * src/pic16/gen.c (genAddrOf): fixed bug #863624
12746         * src/pic/glue.c: added variable udata_section_name to
12747         override default uninitialized data segment definition for
12748         devices only with SHAREBANK memory (reported from Erik Epetrich)
12749         * (pic14emitOverlay): modified to emit a commented overlay segment
12750         directive when no overlay data exist
12751         * (picglue): modified to emit uninitialized data segment
12752         according to udata_section_name
12753         * src/pic/main.c (_pic14_parseOptions): added command line
12754         options --udata-section-name=[name] to override default
12755         udata definition name
12756         * modified _linkCmd and _asmCmd to include compiler passed
12757         arguments via -W option
12758         * src/pic16/main.c: added $l in _asmCmd, changed extension for
12759         object file from '.rel' to '.o' in port->linker structure,
12760         changed size of fptr from 2 to 3 in port structure
12761
12762 2004-01-07  Borut Razem <borut.razem AT siol.net>
12763
12764         * support/scripts/sdcc.nsi: update PATH
12765         * support/scripts/sdcc.ico: craeted
12766
12767 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
12768
12769         * device/include/Makefile.in: fix install
12770         * doc/Makefile: fix install
12771
12772 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12773
12774         * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
12775         in bug #860505
12776         * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
12777         how the function variable allocation summary is displayed; also
12778         include information about variables allocated to the overlay
12779         segment
12780
12781 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12782
12783         * as/mcs51/lkmain.c: Help about -Y option
12784         * as/mcs51/lkarea.c: Fixed gcc warnings
12785
12786 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
12787
12788         * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
12789         fixed warning
12790         * support/valdiag/tests/overflow.c: added
12791         * src/SDCCast.c (decorateType),
12792         * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
12793         LEFT_OP (left shift)
12794
12795 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12796
12797         * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
12798         (default behaviour).
12799
12800 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12801
12802         A python script to validate compiler diagnostic messages. It can be
12803         used to verify that sdcc complains about bad c source code and
12804         gives a good location of the error.
12805         * support/valdiag/Makefile,
12806         * support/valdiag/valdiag.py,
12807         * support/valdiag/tests/*
12808
12809 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12810
12811         * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
12812         * src/SDCCsymt.c (newEnumType),
12813         * src/SDCCsymt.h
12814         * support/Util/SDCCerr.c,
12815         * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
12816         enum related bugs.
12817         * support/regression/tests/enum.c: added test for enum values that
12818         require at least 2 bytes of storage.
12819
12820 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
12821
12822         * src/common.h: added ifndef/define/endif macros
12823         around the header file.
12824         Bug reported from Jesus Calvino-Fraga
12825
12826 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
12827
12828         * sdcc.spec: updated
12829         * device/include/Makefile.in: don't install CVS directories
12830         * device/lib/Makefile.in: added removal of CVS directories after install
12831         * doc/Makefile: fixed install, added local_icons
12832         * sim/ucsim/gui.src/Makefile.in: fixed an old typo
12833         * src/mcs51/gen.c (genRightShift): fixed bug #870788
12834         * src/ds390/gen.c (genRightShift): fixed bug #870788
12835         * src/SDCCast.c (decorateType): fixed bug #870781
12836
12837 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
12838
12839         PIC16 port related changes:
12840         * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
12841         added variable stackPos,
12842
12843         * gen.c: genCall, assignResultValue: added support for
12844         pushing/retrieving function parameters to/from stack,
12845         genFunction,genEndFunction: setup stack frame for the
12846         generated function,
12847         genAddrOf: will be changed according to bug 863624
12848
12849         * added files genutils.c and genutils.h which contain gen*
12850         debugged and optimised functions extracted from gen.c
12851
12852         * glue.c: added variable 'externs' which holds extern symbols,
12853         pic16emitRegularMap: is modified to properly handle relocatable
12854          symbols under the new scheme,
12855         pic16createInterruptVect: is modified
12856         pic16printPublics: is modified to emit 'global' assembler directives,
12857         added pic16_printExterns to print extern symbols,
12858         pic16glue: initializes stack/frame pointer in the beginning of
12859         the assembly output. Temporary hack, will be corrected later,
12860         because gplink yet does not support stack and SDCC does not
12861         yet support a type of crt0.o object to create the final binary.
12862
12863         * Removed many lines that contain 8051 legacy code.
12864         * The code is finally placed under a 'code' directive.
12865         * Added port specific options.
12866
12867         * _process_pragma: simplified since now we do not need *special*
12868         include file to define SFR registers. But a separate header
12869         will be needed. This will be developed later.
12870         * _pic16_parseOptions: added, parses port specific options:
12871         --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
12872         --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
12873         --preplace-udata-with=
12874
12875         * _pic16_setDefaultOptions: modified to initialize section names,
12876         but hack is temporarly out of order since it needs improvement.
12877         * _pic16_genAssemblerPreamble: configuration words are emitted by
12878         their address instead of their name. This part is incomplete and
12879         supports only the 18Fxx2 devices. Other devices will emit an error
12880         during assembly since they do not contain the same set of config
12881         registers
12882         * _pic16_genIVT: is modified,
12883
12884         * pcode.c: added definitions for some hardware registers that are needed
12885         for stack support
12886         * added flag is2LitOp and variable pci_magic in pCodeInstruction.
12887         All PCI entries are updated. Now LFSR is supported.
12888         * Removed pic16_pciTRIS is mentioned by mdubuc in source
12889         * added pic16_newpCodeOpLit2 to support instructions with
12890         two literal arguments
12891         * pic16_pCode2str: corrected code that emits assembler instructions
12892         with two literal operands and those that have an access bit modifier
12893         * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
12894         this fixes a bug which caused some labels to be lost, when an
12895         assembler directive was added, i.e. banksel,
12896         * pic16_FixRegisterBanking: improved logic that causes the insertion
12897         of bank switching,
12898         * InlineFunction: functions that are called once, are not any more
12899         inlined. This can be a port option in the future,
12900
12901         * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
12902
12903         * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
12904         hold the corresponding uninitialized symbols,
12905         * pic16_allocProcessorRegister: registers have explicit marked the
12906         accessBank field,
12907         * pic16_allocInternalRegister: registers are explicit marked as
12908         not used,
12909         * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
12910         processing list, so bit registers were lost,
12911         *
12912
12913         * ralloc.h: added field 'accessBank' and original symbol operand
12914         in register definition,
12915         * removed the field isMapped from register definition,
12916
12917         ** Several functions have been removed from various sources:
12918         BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
12919         pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
12920         isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
12921         pic16_assignRelocatableRegisters
12922
12923         ** others have been introduced:
12924         pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
12925         pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
12926
12927 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
12928
12929         * support/scripts/inc2h.pl: changed definition of BIT_AT
12930         to emit 'sbit at' instead of 'bit at'. This was a request.
12931
12932         PIC16 port related preliminary changes:
12933         * gen.c: prefixed function popRegFromString with
12934         pic16_ and all references to it corrected
12935         * pcode.c: all pic16_pc_* hardware registers prefixed
12936         with underscore (_),
12937         pic16_popCopyGPR2Bit(): function sets register wasUsed=1
12938         * ralloc.c: newReg(): when register is REG_SFR then
12939         set address to rIdx,
12940         pic16_allocProcessorRegister(): marks register wasUsed=0
12941         pic16_writeUsedRegs(): added a call to assign processor
12942         registers via pic16_assignFixedRegisters
12943
12944 2004-01-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12945
12946         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
12947         as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
12948         variables in unused register banks.  Also the SSEG is placed
12949         wherever there is enough space for it, and IDATA can be anywhere
12950         in internal RAM.  For now compile using -Wl-Y[stack_size].
12951         The mem file is different for this option as well, since it
12952         makes no sense of talking about DSEG lenght.
12953
12954 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
12955
12956         * src/SDCClrange.c: fixed bug 869095 that caused segfault
12957         in certain cases, e.g. when ROM assignment, patch provided
12958         from Albert den Haan.
12959
12960 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
12961
12962         Many signedness and type propagation fixes:
12963         * src/SDCCicode.c: made geniCodeCast() static
12964         replaced SPEC_ by IS_ (cosmetic)
12965         (operandOperation): fixed div and mod operation
12966         (usualBinaryConversions): added support for promotion of char
12967         (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
12968         (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
12969         (geniCodeAdd): an array index will stay unsigned, even if promoted
12970         from char to int
12971         (geniCodeArray): ditto
12972         * src/SDCCicode.h: made geniCodeCast() static: removed prototype
12973         * src/SDCCsymt.c (computeType): added more support for char;
12974         promotion of char is selectable by promoteCharToInt, fixed signedness
12975         for all cases
12976         (powof2): replaced (unsigned long) by (TYPE_UDWORD)
12977         * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
12978         * src/SDCCval (val*): replaced signedness calculation by
12979         computeType()
12980         rearranged if-branches (cosmetic)
12981         (valShift): added warning W_SHIFT_CHANGED
12982         (valCompare): fixed problem with different types
12983         * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
12984         * support/regression/tests/literalop.c: added many cases
12985         * support/regression/tests/ast_constant_folding.c: changed finally to
12986         'unsigned int'
12987         * .version: new year, new version: 2.3.7
12988         * src/SDCCmain.c (main): applied patch #866468
12989         * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
12990         provided by Scott Bronson
12991         * doc/sdccman.lyx: updated documentation for sdcdb
12992         updated and added chapter tips
12993
12994 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12995
12996         * src/SDCCsymt.h: missing from yesterday's commits
12997
12998 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12999
13000         * src/SDCC.y (struct_or_union_specifier),
13001         * support/Util/SDCCerr.c,
13002         * support/Util/SDCCerr.h: verify that struct & union tags are used
13003         as declared.
13004
13005 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13006
13007         * src/SDCCglobl.h: missing from yesterday's commits
13008
13009 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13010
13011         * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
13012         sft_attributes, struct_declaration, parameter_declaration,
13013         type_name, start_block, declaration_list),
13014         * src/SDCC.lex (check_type): support redefinition of typedef names
13015
13016 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13017
13018         * src/mcs51/gen.c (genPlus): added special handling for 256 byte
13019         aligned xdata arrays. Erik helped me with the if clause.
13020
13021 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13022
13023         * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
13024         warning
13025
13026 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13027
13028         * src/SDCCast.h,
13029         * src/SDCCast.c (newAst_),
13030         * src/SDCCicode.h,
13031         * src/SDCCicode.c (ast2iCode, newiCode),
13032         * src/SDCCglobl.h,
13033         * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
13034         expr, statement, expression_statement, selection_statement,
13035         iteration_statement, expr_opt, jump_statement): foundation for tracking
13036         sequence points
13037         * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
13038         point code too)
13039
13040 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13041
13042         * support/Util/SDCCerr.c,
13043         * src/SDCCast.h,
13044         * src/SDCCast.c (createCase, createDefault, decorateType),
13045         * src/SDCClabel.c (labelUnreach),
13046         * src/SDCC.y (labeled_statement, jump_statement): More improvements
13047         to error messages.
13048         * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
13049         (with thanks to Stas Sergeev)
13050         * device/include/time.h,
13051         * device/lib/time.c (CheckTime): suppress unreachable code warning
13052
13053 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13054
13055         * src/SDCCast.c (createIvalCharPtr),
13056         * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
13057         bug #753752)
13058         * support/regression/tests/nullstring.c: tests for these two bugs
13059
13060 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13061
13062         * support/Util/SDCCerr.h,
13063         * support/Util/SDCCerr.c (E_NOT_ALLOWED),
13064         * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
13065         about storage class and 'at' used inside struct or union
13066         * src/SDCCBBlock.c (iCodeFromeBBlock),
13067         * src/SDCCcse.c (ifxOptimize),
13068         * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
13069         printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
13070         printIval, emitStaticSeg, emitOverlay),
13071         * src/SDCClabel.c (deleteIfx),
13072         * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
13073         * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
13074         gatherAutoInit, processParms),
13075         * support/Util/SDCCerr.h,
13076         * support/Util/SDCCerr.c (werrorfl): Support for better error location
13077         reporting for post-parse errors.
13078
13079 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13080
13081         * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
13082         implicit casts via union; they don't work on big endian systems
13083         (possible fix for bug #861138)
13084
13085 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13086
13087         (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
13088         * src/mcs51/main.c: fixed the fix for bug #737001
13089
13090 2003-12-15  Borut Razem <borut.razem AT siol.net>
13091
13092         * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
13093
13094 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13095
13096         * support/makebin/makebin.c: put output in binary mode
13097
13098 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13099
13100         * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
13101         xdata and data memory on startup. Set the environment variable
13102         SDCC_NOGENRAMCLEAR to disable this.
13103         * src/mcs51/peephole.def,
13104         * src/ds390/peephole.def: using the atomic test and clear instruction jbc
13105         (allows non-interrupt and interrupt code to safely compete for a resource
13106         without the non-interrupt code having to disable interrupts)
13107
13108 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13109
13110         * src/SDCCicode.c (geniCodeAdd),
13111         * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
13112         with valFromType if type might be a pointer and host is big endian).
13113         * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
13114         types, not just integer types.
13115         * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
13116         multiply defined with mismatching "at" address.
13117
13118 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13119
13120         * src/ds390/main.c (PORT tininative_port): fixed bug #858416
13121         * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
13122         * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
13123         with embedded nulls (fixed bug #753752)
13124
13125 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13126
13127         * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
13128         Apparently this did not see much testing (endless loop)
13129
13130 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13131
13132         * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
13133
13134 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13135
13136         * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
13137         gracefully handle NULL memmap pointers
13138
13139 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13140
13141         * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
13142         instead of deleting the iCode when an operand is volatile
13143         * src/z80/gen.c (genDummyRead),
13144         * src/mcs51/gen.c (genDummyRead),
13145         * src/ds390/gen.c (genDummyRead),
13146         * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
13147         not just IC_RIGHT
13148         * src/SDCCicode.c (geniCodeCall): fixed bug #851607
13149         * src/SDCC.y: fixed bug #850420
13150
13151 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13152
13153         Applied z80 i/o port patch from Peter Townson and fixed some operators
13154         to better handle operands in A register.
13155         * device/include/z180.h
13156         * src/SDCC.y
13157         * src/SDCCglue.c
13158         * src/z80/gen.c
13159         * src/z80/gen.h
13160         * src/z80/main.c
13161         * src/z80/peeph-z80.def
13162         * src/z80/peeph.def
13163         * src/z80/z80.h
13164
13165 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13166
13167         * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
13168
13169 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13170
13171         * device/lib/hc08/_mullong.c: Removed extra #endif
13172
13173 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13174
13175         * sim/ucsim/hc08.src/inst.cc,
13176         * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
13177         carries from x to h
13178         * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
13179         * src/hc08/gen.c (XAccRsh): fixed problem with right shift
13180         * device/include/stdarg.h: fixed varargs for hc08
13181         * device/lib/Makefile.in,
13182         * device/lib/hc08/Makefile,
13183         * device/lib/hc08/_mulint.c,
13184         * device/lib/hc08/_mullong.c: fixed some endian problems
13185
13186 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13187
13188         * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
13189         * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
13190         * device/lib/_gptrget.c,
13191         * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
13192
13193 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13194
13195         * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
13196         * src/SDCCast.c (astErrors): fixed bug #846007
13197         * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
13198
13199 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13200
13201         * src/SDCCast.c (decorateType): disabled a transformation I added in
13202         revision 1.188 (access to fields of a structure at an absolute address);
13203         it breaks with bitfields, extern declarations, and gcse analysis.
13204         * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
13205         could be assigned through a pointer, so don't complain.
13206         * src/SDCCast.c (astErrors),
13207         * src/SDCCast.h,
13208         * src/SDCCglue.c (emitRegularMap): fixed bug #847813
13209
13210 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
13211
13212         * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
13213         * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
13214         output of __config directives, since gpasm now supports them
13215         * src/pic16/main.c (_pic16_finaliseOptions): define MCU
13216         pre-processor macro, i.e. -DMCU=p18f452
13217         * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
13218         and modified to handle 'cast' icode similarly to '=' icode
13219         * src/pic16/device.h (typedef struct PIC_device): added field
13220         'extMIface' to indicate that chip has external memory interface
13221         * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
13222         18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
13223         18F8720
13224
13225 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13226
13227         * src/SDCC.y (pointer): fixed bug #846006
13228         * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
13229         * src/SDCCast.c (decorateType): fixed bug #846009
13230         * src/ds390/peeph.def,
13231         * src/ds390/gen.c (genAnd, genOr),
13232         * src/mcs51/peeph.def,
13233         * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
13234
13235 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13236
13237         Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
13238         * src/SDCCdflow.c
13239         * src/SDCCcse.c
13240         * src/SDCCcse.h
13241         * src/SDCCBBlock.h
13242         * src/SDCCBBlock.c
13243
13244 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
13245
13246         fixed bug #845089
13247         * src/SDCCbitv.h,
13248         * src/SDCCbitv.c: added function to free a bitvector
13249         * src/SDCClrange.h,
13250         * src/SDCClrange.c: added function to recompute the liveranges
13251         * src/avr/ralloc.c,
13252         * src/ds390/ralloc.c,
13253         * src/hc08/ralloc.c,
13254         * src/mcs51/ralloc.c,
13255         * src/pic/ralloc.c,
13256         * src/pic16/ralloc.c,
13257         * src/xa51/ralloc.c,
13258         * src/z80/ralloc.c: recompute the liveranges after register packing
13259
13260 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
13261
13262         * src/SDCCloop.c (newInduction): fixed bug #845630
13263
13264 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13265
13266         * src/SDCCsymt.c (compareTypesExact): disabled debugging output
13267         inadvertantly left behind from my 2003-11-12 change
13268
13269 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13270
13271         Updated headers I neglected to commit yesterday.
13272         * src/SDCClrange.h,
13273         * src/SDCCicode.h
13274
13275 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13276
13277         * src/SDCCcse.c (algebraicOpts): fixed bug #773153
13278         * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
13279         * src/SDCCopt.c (eBBlockFromiCode),
13280         * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
13281         the creation of the key hash table from the sequencing so it can be used
13282         earlier (for some GCSE bug fixes still pending)
13283
13284 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13285
13286         * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
13287         * support/regression/tests/addsub.c: testing genPlus shortcut
13288
13289 2003-11-15  Borut Razem <borut.razem AT siol.net>
13290
13291         * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
13292
13293 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13294
13295         * src/SDCCcse.c (cseBBlock): fixed bug #527779
13296         * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
13297         ordering is immaterial.
13298         * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
13299
13300 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13301
13302         * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
13303         * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
13304         (SIGSEV) of bug #840381
13305         * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
13306         unlink new file before rename if new and old filenames are the same)
13307
13308 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13309
13310         * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
13311         uninitialized variables) for the mcs51. Set environment variable
13312         SDCC_GENRAMCLEAR to test.
13313         xdata initialization slightly shorter
13314
13315 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13316
13317         * src/SDCCsymt.h,
13318         * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
13319         #838241 & 780691 (basicly the same bug)
13320         * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
13321         * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
13322
13323 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
13324
13325         * src/SDCCmain.c (linkEdit): "fix" #834252
13326
13327 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13328
13329         * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
13330         * src/SDCCast.h,
13331         * src/SDCC.y: fixed bug #819403
13332
13333 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13334
13335         * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
13336         the reentrant attribute.
13337         * src/hc08/gen.c (genPackBits): added missing stack readjustment
13338         * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
13339         simulation
13340         * src/SDCCast.c (decorateType): fixed bug with storage class not being
13341         updated during pointer dereference; f.e. ~(((char *)1)*) was being
13342         erroneously reduced to a literal.
13343         * src/hc08/ralloc.c (packRegisters, rematStr),
13344         * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
13345         some cases
13346
13347 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13348
13349         * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
13350         * doc/sdccman.lyx: changed from 'article' to 'book'
13351         * doc/Makefile: readded test_suite_spec and cdbfileformat
13352
13353 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
13354
13355         * device/include/stdlib.h: include malloc.h to comply with ANSI
13356         * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
13357
13358 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13359
13360         * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
13361         * doc/clean.mk: also remove *.out files
13362         * doc/sdccman.lyx: some additions, larger top/bottom margins
13363
13364 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13365
13366         * src/SDCC.y: fixed bug #837365
13367         * support/regression/tests/bitopcse.c
13368         * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
13369         a symbol (might be valop instead)
13370         * device/lib/Makefile.in: added errno.c to HC08SOURCES
13371         * device/lib/clean.mk: added hc08 to the cleaning list
13372
13373 2003-11-04  Borut Razem <borut.razem AT siol.net>
13374
13375         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
13376           made 2003-11-04
13377         * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
13378           as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
13379           malloc is declared in standard stdlib.h
13380
13381 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13382
13383         * device/lib/hc08/Makefile: need to clean .rel not .o files
13384         * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
13385
13386 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13387
13388         * src/port.h,
13389         * src/hc08/main.c,
13390         * src/mcs51/main.c,
13391         * src/ds390/main.c,
13392         * src/z80/main.c,
13393         * src/avr/main.c,
13394         * src/pic/main.c,
13395         * src/pic16/main.c,
13396         * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
13397         * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
13398         tests (which uses the port's oclsExpense function)
13399         * src/SDCC.y,
13400         * src/SDCCast.c,
13401         * src/SDCCicode.c,
13402         * src/hc08/gen.c,
13403         * src/ds390/gen.c,
13404         * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
13405
13406 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13407
13408         * src/SDCCcse.c (ifxOptimize),
13409         * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
13410         an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
13411         deleting the IFX iCode.
13412         * src/hc08/ralloc.c: reduced unneeded slocs
13413         * src/hc08/gen.c: fixed bug in asmopToBoolean
13414
13415 2003-11-04  Borut Razem <borut.razem AT siol.net>
13416
13417         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
13418           support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
13419           as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
13420           transferred to configure
13421
13422 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
13423
13424         Use headers defined in the C[++] standards:
13425         * sim/ucsim/gui.src/serio.src/fileio.cc
13426         * sim/ucsim/gui.src/serio.src/frontend.cc
13427         * sim/ucsim/gui.src/serio.src/main.cc
13428         * sim/ucsim/gui.src/serio.src/posix_signal.cc
13429         * support/Util/NewAlloc.c
13430         * as/hc08/lklibr.c
13431         * as/mcs51/lklibr.c
13432         * as/z80/aslist.c
13433         * as/z80/assym.c
13434
13435 2003-11-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13436
13437         * Added MSVC projects for hc08 assembler and linker:
13438         all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
13439         /as/hc08/link_hc08.dsp
13440
13441 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
13442
13443         * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
13444
13445 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
13446
13447         * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
13448
13449 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13450
13451         * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
13452
13453 2003-10-31  Borut Razem <borut.razem AT siol.net>
13454
13455         * support/cpp2/cpplib.h,
13456           support/cpp2/cpplib.c,
13457           support/cpp2/cpplex.c,
13458           support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
13459           to switch _asm block preprocessing on / off. Default is
13460           #pragma preproc_asm +
13461
13462 2003-10-31  Borut Razem <borut.razem AT siol.net>
13463
13464         * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
13465           when outputting comment blocks (when executed with -C option) and
13466           _asm (SDCPP specific) blocks
13467
13468 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13469
13470         * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
13471
13472 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
13473
13474         * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
13475
13476 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
13477
13478         * src/SDCCmain.c (linkEdit): "fixed" bug #833605
13479         * src/SDCCast.c (decorateType): fixed bug #832664
13480
13481 2003-10-31  Borut Razem <borut.razem AT siol.net>
13482
13483         * support/cpp2/cpplex.c: fixed for SDCPP:
13484           comments(when executed with -C option) and _asm blocks
13485           were included even if they where in skipped #if block.
13486           Applied solution from GCC cpp 3.3.2
13487
13488 2003-10-31  Borut Razem <borut.razem AT siol.net>
13489
13490         * src/SDCC.lex: sdcc now understands both formats:
13491           '# <line_number> <file_name>' and
13492           '#line <line_number> <file_name>'
13493         * support/cpp2/cppmain.c: sdcpp now generates the standard
13494           '# <line_number> <file_name>' instead of former
13495           '#line <line_number> <file_name>'
13496
13497 2003-10-30  Borut Razem <borut.razem AT siol.net>
13498
13499         * support/cpp2/cpphash.h,
13500         * support/cpp2/cpplib.h
13501         * support/cpp2/cpplex.c,
13502         * support/cpp2/cppmain.c,
13503         * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
13504
13505 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13506
13507         Fixed a number of problems revealed by bug #827883.
13508         * src/SDCCloop.c (loopInvariants): Spill location of the
13509         result operand should be recomputed if extracted from
13510         a loop. Also, don't extract assignments of an iTemp
13511         from a literal.
13512         * src/SDCCast.c (isConformingBody): loop reversal should
13513         not occur if the control variable is involved with a
13514         relational operator.
13515
13516 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
13517
13518         * .version: bumped to 2.3.6 to reflect the big improvements
13519         made by Erik and Klaus. Thanks!
13520
13521 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
13522
13523         Replaced the livrange code.
13524         * src/SDCClrange.c: added new LR code
13525         * src/SDCCloop.c,
13526         * src/SDCCBBlock.h: removed remainig parts from old LR code
13527         * src/ds390/ralloc.c,
13528         * src/ds390/gen.c: minor fixes to make it work with new code
13529
13530 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13531
13532         * as/hc08/asm.h,
13533         * as/hc08/lkrloc.c,
13534         * src/hc08/gen.c,
13535         * src/hc08/ralloc.c: Fix various warnings related to the hc08
13536         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
13537         (tweaked fix for bug #818696)
13538
13539 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13540
13541         * src/z80/ralloc.c (joinPushes): Fixed bug #828742
13542
13543 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13544
13545         * src/SDCCmain.c,
13546         * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
13547         * src/mcs51/gen.c (gencjneshort),
13548         * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
13549         more efficient (per Scott Bronson's suggestion)
13550
13551 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13552
13553         Extended the semantics of the critical keyword to include
13554         individual statements. See RFE #827755 and #799831
13555         * src/SDCC.y
13556         * src/SDCCicode.c
13557         * src/SDCCopt.c
13558         * src/SDCCast.c
13559         * support/Util/SDCCerr.c
13560         * support/Util/SDCCerr.h
13561         * src/mcs51/gen.c
13562         * src/ds390/gen.c
13563         * src/hc08/gen.c
13564
13565 2003-10-19  Borut Razem <borut.razem AT siol.net>
13566
13567         * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
13568
13569 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13570
13571         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
13572         Fixed bug #818696
13573         * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
13574         and predecrement operand is displayed
13575
13576 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
13577
13578         * src/SDCCval.c (valMinus): fixed bug #826041
13579
13580 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13581
13582         Some hc08 related updates that I missed earlier
13583         * sim/ucsim/stypes.h
13584         * support/regression/ports/hc08/spec.mk
13585
13586 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13587
13588         New target "hc08" for the Motorola 68hc08 family of micros
13589
13590         * configure
13591         * configure.in
13592         * Makefile
13593         * src/hc08/*
13594         * src/SDCCmain.c
13595         * src/port.h
13596         * sim/ucsim/hc08.src/*
13597         * sim/ucsim/configure.in
13598         * src/ucsim/configure
13599         * sim/ucsim/packages_in.mk
13600         * as/hc08/*
13601         * as/Makefile
13602         * device/include/mc68hc908qy.h
13603         * device/lib/hc08/*
13604         * device/lib/Makefile.in
13605         * support/regression/ports/hc08/*
13606         * support/regression/Makefile
13607
13608 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13609
13610         * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
13611         regression test
13612         * src/ds390/gen.c (genCast): fixed bug #821957
13613
13614 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
13615
13616         * device/lib/logf.c: "fixed" overlay bug
13617         * support/regression/ports/host/spec.mk: added m library
13618         * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
13619         * support/regression/tests/float_trans: added (for Eric)
13620
13621 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
13622
13623         * src/mcs51/gen.c (genCpl): fixed bug
13624         http://sf.net/mailarchive/message.php?msg_id=6263915
13625
13626 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
13627
13628         * src/SDCCast.c (decorateType): added extended constant folding
13629         * src/SDCCsymt.c (computeType): cleanup
13630         * src/SDCCval.c (valShift): minor optimization
13631         * support/regression/tests/ast_constant_folding.c: added
13632
13633 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13634
13635         * src/SDCCmain.c: removed some unintended changes
13636
13637 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13638
13639         * src/SDCCmain.c (setParseWithComma): fixed bug #816685
13640         * src/z80/gen.c: fixed part of bug #817589
13641         * src/SDCCsymt.c (checkFunction): fixed bug #817895
13642
13643 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
13644
13645         Replaced cast (void **) with (void *) to avoid gcc 3 warning:
13646         * src/SDCCcflow.c
13647         * src/SDCCcse.c
13648         * src/SDCCdflow.c
13649         * src/SDCClabel.c
13650         * src/SDCClrange.c
13651         * src/SDCCmem.c
13652         * src/SDCCopt.c
13653         * src/SDCCpeeph.c
13654         * src/SDCCset.c
13655         * src/avr/ralloc.c
13656         * src/ds390/ralloc.c
13657         * src/izt/ralloc.c
13658         * src/mcs51/ralloc.c
13659         * src/pic/ralloc.c
13660         * src/pic16/ralloc.c
13661         * src/xa51/ralloc.c
13662         * src/z80/ralloc.c
13663         * src/z80/gen.c: removed unused label "release:"
13664
13665 2003-10-06  Borut Razem <borut.razem AT siol.net>
13666
13667         * src/SDCC.lex: removed definition of unused variables
13668           save_optimize and save_options
13669
13670 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
13671
13672         * clean.mk: removed '=' in "-maxdepth=1"
13673         * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
13674         * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
13675
13676 2003-10-06  Borut Razem <borut.razem AT siol.net>
13677
13678         * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
13679           my_unput() replaced by unput()
13680
13681 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
13682
13683         * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
13684         setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
13685         type-punned pointer will break strict-aliasing rules"
13686         Old LR behaviour is again default; Klaus' LR can be choosen by
13687         defining the environment variable LRKLAUS
13688         * src/SDCCBBlock.h
13689         * src/SDCCloop.c
13690         * src/SDCClrange.c
13691         * src/ds390/ralloc.c (spillThis): applied Klaus' patch
13692         * clean.mk: fixed removal of files in bin/CVS/
13693         * device/lib/clean.mk: fixed removal of directories small and large
13694         * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
13695         * src/SDCCicode.c,
13696         * src/SDCCval.c: removed superflous test for pedantic
13697
13698 2003-10-05  Borut Razem <borut.razem AT siol.net>
13699
13700         * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
13701           Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
13702           message "unmatched #pragma SAVE and #pragma RESTORE"
13703
13704 2003-10-04  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13705
13706         * doc/sdccman.lyx: various additions and updates (interrupts, inline
13707           assembly, critical functions, atomic, nojtbound)
13708
13709 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
13710
13711         Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
13712         * src/SDCCBBlock.h
13713         * src/SDCCloop.c
13714         * src/SDCCloop.h
13715         * src/SDCClrange.c
13716
13717 2003-10-03  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13718
13719         * src/z80/gen.h,
13720         * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
13721         * src/mcs51/gen.h
13722         * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
13723         * src/ds390/gen.h
13724         * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
13725         * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
13726         * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
13727
13728 2003-10-02  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13729
13730         * src/z80/gen.c (genRet): fixed bug #524753
13731         * src/z80/gen.c (genCast): fixed internal error on cast from
13732         pointer to long
13733         * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
13734         fix for bug #477835 to the z80
13735         * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
13736         for tracking iCodes in the peephole optimizer for z80
13737
13738 2003-10-01  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13739
13740         * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
13741         the other part of bug #814548
13742         * src/SDCCpeeph.c (labelInRange): fixed bug #814558
13743
13744 2003-09-30  Bernhard Held <bernhard AT bernhardheld.de>
13745
13746         * src/SDCCcse.c: fixed part of bug #814548
13747
13748 2003-09-28  Borut Razem <borut.razem AT siol.net>
13749
13750         * src/asm.c: rewrite of printILine() to use temporary file instead
13751           a pipe
13752         * src/xa51/main.c: commented out declaration of int rewinds
13753
13754 2003-09-27  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13755
13756         * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
13757
13758 2003-09-26  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13759
13760         * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
13761         * src/asm.c (printILine): Fixed bug #811015
13762
13763 2003-09-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13764
13765         *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
13766         freeing.
13767
13768 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13769
13770         * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
13771         * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
13772         to correctly handle general case of AOP_PAIRPTR
13773         * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
13774
13775 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13776
13777         * src/mcs51/ralloc.c (fillGaps),
13778         * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
13779         register positioning bug)
13780
13781 2003-09-21  Bernhard Held <bernhard AT bernhardheld.de>
13782
13783         * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
13784
13785 2003-09-19  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13786
13787         * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
13788         genCodePointerGet, genGenPointerGet, genFarPointerSet,
13789         genGenPointerSet): handle AOP_DPTR correctly when loading dptr
13790         (ralloc doesn't intentionally do this now, but perhaps later)
13791         * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
13792         * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
13793         register positioning bugs (Fixed bug #762602 and #795325)
13794         * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
13795         (Fixed bug #808779)
13796         * src/z80/gen.c: increased _vemit2's buffer[] to handle long
13797         lines that --i-code-in-asm generates
13798
13799 2003-09-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13800
13801         *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
13802         trying to fclose a FILE* that was already closed.
13803
13804 2003-09-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13805
13806         * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
13807         of const struct should be treated as if const themselves)
13808
13809 2003-09-18  Bernhard Held <bernhard AT bernhardheld.de>
13810
13811         * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
13812
13813 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13814
13815         * support/librarian/sdcclib.c: Generate correct offsets for libraries with
13816         Unix (/n) and DOS (/r/n) line terminations.
13817
13818 2003-09-17  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13819
13820         * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
13821         bug #613775
13822
13823 2003-09-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13824
13825         * src/mcs51/gen.c (genFunction, genEndFunction),
13826         * src/ds390/gen.c (genFunction, genEndFunction): Moved save
13827         and restore of EA so that stack offsets to parameters are
13828         correct when using both critical and reentrant/stack-auto.
13829         * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
13830         size (can be triggered in error if sloc is shared between
13831         different sized objects)
13832         * device/include/float.h: fixed macros to explicitly use
13833         unsigned long where needed
13834
13835 2003-09-15  Bernhard Held <bernhard AT bernhardheld.de>
13836
13837         Feature req. 799831: added code to allow nesting of critical functions
13838         * src/mcs51/gen.c (genFunction, genEndFunction)
13839         * src/ds390/gen.c (genFunction, genEndFunction)
13840
13841 2003-09-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13842
13843         * src/SDCCsymt.c (sclsFromPtr),
13844         * src/SDCCsymt.h,
13845         * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
13846         support for standard C idiom of memory mapped variables; for
13847         example, *((xdata int*)0x1234) = 1 is now internally equivalent
13848         to xdata int at 0x1234 tempvar = 1.
13849         * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
13850         provided by Akiya ISHIDA
13851
13852 2003-09-13  Bernhard Held <bernhard AT bernhardheld.de>
13853
13854         * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
13855         * src/SDCCval.c (constVal): added reduction from int to char
13856         * src/SDCCval.c (valMult, valDiv): fixed sign handling
13857         * src/SDCCval.c (valShift): fixed after change of cheapestVal()
13858         * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
13859         to ignore the sign
13860         * support/regression/tests/shifts.c: fixed
13861
13862 2003-09-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13863
13864         * src/z80/gen.c (genXor): Fixed bug #805445
13865
13866 2003-09-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13867
13868         Fixed bug #621531 (const & volatile confusion in the type chain).
13869         DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
13870         refer to the const or volatile state of the pointer itself.
13871
13872         * src/SDCCast.c
13873         * src/SDCCglue.c
13874         * src/SDCCicode.c
13875         * src/SDCCsymt.c
13876         * src/SDCCval.c
13877         * src/SDCC.y
13878         * src/SDCCsymt.h
13879         * src/pic/gen.c
13880         * src/pic/ralloc.c
13881         * src/pic16/gen.c
13882         * src/pic16/ralloc.c
13883         * support/regression/tests/const.c
13884
13885 2003-09-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13886
13887         When checking for duplicated modules, use absolute paths
13888         instead of relative paths.  Files changed:
13889
13890         * as/mcs51/lklib.c
13891         * link/z80/lklib.c
13892
13893 2003-09-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13894
13895         * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
13896
13897 2003-09-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13898
13899         * device/include/string.h: added size_t typedef, changed
13900         prototypes to use size_t, eliminated separate reentrant and
13901         non-reentrant declarations, added _memmove declaration
13902         * device/lib/_memcpy.c: changed to use size_t instead of int,
13903         changed /4 to >>2 to avoid division library call
13904         * device/lib/_memcmp.c,
13905         * device/lib/_memset.c,
13906         * device/lib/_strncat.c,
13907         * device/lib/_strncpy.c,
13908         * device/lib/_strncmp.c: changed to use size_t instead of int
13909         * device/lib/_memmove.c: new file (fixed bug #772294)
13910         * device/lib/Makefile.in: added _memmove.c
13911         * device/lib/z80/asm_strings.s: fixed bug #772290
13912         * support/regression/tests/bitfields.c: attempt to fix host assertion
13913         failure on amd64-unknown-linux2.2
13914
13915 2003-09-06  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13916
13917         * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
13918         * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
13919         * as/z80/asmain.c (main): fixed bug #801766
13920
13921 2003-09-06  Bernhard Held <bernhard AT bernhardheld.de>
13922
13923         * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
13924         compilers
13925
13926 2003-09-05  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13927
13928         * src/SDCCast.c (isConformingBody): fixed loop reversal bug
13929         reported in bug #800609
13930
13931 2003-09-04  Vangelis Rokas <vrokas AT otenet.gr>
13932
13933         * Top header beautifications in src/pic16 directory:
13934           device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
13935           pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
13936           pcoderegs.h, ralloc.c, ralloc.h
13937         * main.c: added top header and GPL license notice
13938         * pcode.c: fixed the if-conditional warning
13939
13940 2003-09-04  Bernhard Held <bernhard AT bernhardheld.de>
13941
13942         * device/lib/_mullong.c: replaced int by short for gcc
13943
13944 2003-08-31  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13945
13946         * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
13947         and JUMPTABLE iCodes properly now (worked by accident before)
13948         * src/mcs51/gen.c (leftRightUseAcc),
13949         * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
13950         iCode properly now. Use getSize instead of nRegs since a & b
13951         aren't part of the nRegs tally.
13952
13953 2003-08-31  Vangelis Rokas <vrokas AT otenet.gr>
13954
13955         * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
13956         * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
13957           before instructions that use the _STATUS register
13958
13959 2003-08-31  Bernhard Held <bernhard AT bernhardheld.de>
13960
13961         * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
13962         * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
13963         fetching of the pointer
13964         * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
13965         copied from genNearPointerSet()
13966         * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
13967         * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
13968         If they pop r0/r1 they must be called in the opposite order than aopOp().
13969         * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
13970         (resp. --stack-auto), prepared for --xstack
13971
13972 2003-08-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13973
13974         * doc/sdccman.lyx: reverted tables to those in cvs 1.64
13975
13976 2003-08-28  Bernhard Held <bernhard AT bernhardheld.de>
13977
13978         * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
13979         these ports have their own __sdcc_external_start()
13980
13981 2003-08-26  Bernhard Held <bernhard AT bernhardheld.de>
13982
13983         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
13984         * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
13985         type for bits was changed. It resulted in bit variables becoming
13986         global, which is not permitted in PIC 14 assembly output.
13987
13988 2003-08-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13989
13990         * doc/sdccman.lyx: various additions and updates. Rearranged sections
13991
13992 2003-08-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13993
13994         Z80 and MCS51 linkers complaint if a public symbol is defined
13995         in more than one library module:
13996
13997         * as/mcs51/lklib.c
13998         * link/z80/lklib.c
13999         * as/mcs51/Makefile.in
14000
14001 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14002
14003         A few small changes that speed up the peephole optimizer.
14004
14005         * src/SDCCpeeph.c
14006
14007 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14008
14009         Try to make the peephole optimizer smarter by maintaining
14010         an association between the assembly source code and the
14011         iCodes that originated them. Put this information to use
14012         with a new peephole rule condition "notVolatile" so that
14013         the rules can be aggressive yet still safe.
14014
14015         * src/SDCCpeeph.c
14016         * src/SDCCpeeph.h
14017         * src/mcs51/gen.c
14018         * src/mcs51/peeph.def
14019
14020 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14021
14022         Fixed bug #741761
14023
14024         * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
14025         * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
14026         if the left or right operand symbols have the accuse flag set.
14027
14028 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14029
14030         Changed the type of the result of the ! (NOT) operator to char;
14031         previously it returned the same type as the source. This allows
14032         us to eliminate all the genFloatNot functions (all of its target
14033         implementations were very buggy) since !float can use the same
14034         code as !long now.
14035
14036         * src/SDCCicode.c (ast2iCode): ! returns char
14037         * src/mcs51/gen.c (genNot, genNotFloat),
14038         * src/ds390/gen.c (genNot, genNotFloat),
14039         * src/z80/gen.c (genNot, genNotFloat),
14040         * src/pic/gen.c (genNot, genNotFloat),
14041         * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
14042
14043 2003-08-19  Bernhard Held <bernhard AT bernhardheld.de>
14044
14045         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
14046         1. Interrupt would not compile properly. Ensure PCLATH register is saved
14047            during interrupts. Ensure WSAVE is located at a shared bank address.
14048         2. Fixed page selection in some places
14049         3. Fixed BTFSS/C to where necessary use registers directly and not simply
14050            the registers name strings.
14051         4. Fixed "signed / unsigned compare" compiler warnings.
14052         5. The PIC port manages its own allocation of the general purpose
14053            registers, but makes no attempt to reuse them. As a result when
14054            compiling it soon runs out of general purpose registers. Some
14055            additional code was added to the files pcode.c and device.c to walk
14056            through the function call tree and rename the registers so that they
14057            get reused.
14058
14059         * src/pic/device.c
14060         * src/pic/gen.c
14061         * src/pic/glue.c
14062         * src/pic/pcode.c
14063         * src/pic/pcode.h
14064         * src/pic/ralloc.c
14065         * src/pic/ralloc.h
14066         * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
14067         genPlus() & genMinus() when the result is the same as left or right
14068
14069 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14070
14071         * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
14072
14073 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14074
14075         Made bitfield a distinct type from bit so that bitfields
14076         convert as per ANSI C and bits retain their traditional
14077         boolean style behaviour. Implemented bitfield support in
14078         the z80 port.
14079
14080         * src/SDCCsymt.h,
14081         * src/SDCCsymt.c,
14082         * src/SDCCast.c,
14083         * src/cdbFile.c,
14084         * src/mcs51/gen.c,
14085         * src/ds390/gen.c: bit v bitfield split
14086         * src/z80/gen.c: New support for bitfields
14087         * support/regression/tests/bitfields.c: reenabled z80,
14088         added more tests
14089
14090 2003-08-17  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14091
14092         Rules 246.x, 247.x relate to bitfields, the others speed up
14093         access to xdata mapped I/O devices.
14094
14095         * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
14096
14097 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14098
14099         Cleaned up genPackBits and genUnpackBits and added two helper
14100         functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
14101         for literal assignments in genPackBits (thanks to Frieder for
14102         reminding me).
14103
14104         * src/mcs51/gen.c
14105         * src/ds390/gen.c
14106
14107 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14108
14109         Fixed bug #748310 (pointer to function type mishandled when the
14110         function name is omitted). Also fixed a SIGSEGV when a function
14111         attribute (reentrant, etc) is used on a non-function or on a
14112         function but misplaced before the parameter list.
14113
14114         * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
14115         bug #748310
14116         * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
14117         * support/Util/SDCCerr.h,
14118         * support/Util/SDCCerr.c: Added func attr misuse error msg
14119
14120 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
14121
14122         Fixed bug #787649 by anonymous
14123         * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
14124         * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
14125
14126 2003-08-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14127
14128         Fixed numerous bitfield problems.
14129
14130         * src/SDCC.y: More bitfield related error checking
14131         * src/SDCCsymt.h,
14132         * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
14133         * support/Util/SDCCerr.h,
14134         * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
14135         * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
14136         * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
14137         * support/regression/tests/bitfields.c: tests added
14138
14139 2003-08-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14140
14141         Made the constant following the "interrupt" keyword optional. If
14142         omitted, the function will not automatically be given an entry
14143         in the interrupt vector table (similar to #pragma NOIV, but
14144         less syntacticly kludgy). The interrupt number is also now
14145         range checked. Also fixed a bug in the high order bit example
14146         in the manual.
14147
14148         * src/SDCC.y
14149         * src/SDCCmem.c
14150         * src/SDCCglue.c
14151         * src/SDCCsymt.h
14152         * support/Util/SDCCerr.c
14153         * support/Util/SDCCerr.h
14154         * doc/sdccman.lyx
14155
14156 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
14157
14158         * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
14159         * src/SDCCicode.c (operandOperation): rewritten some ops
14160         (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
14161         * src/SDCCsymt.c (computeType): literals are handled the same way as any
14162         other type
14163         * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
14164         be re-activated by defining REDUCE_LITERALS)
14165         * src/SDCCval.c (constVal): fixed; hex and octal constants can be
14166         unsigned, but are signed by default
14167         * src/SDCCval.c (constVal): rearranged
14168         * src/SDCCval.c (valMod): preliminary fix
14169         * src/SDCCval.c (valCastLiteral): use TYPE_* types
14170         * support/regression/literalop.c: added, work in progress
14171
14172 2003-08-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14173
14174         Generate warnings for useless declarations like "char data;"
14175         that don't do what new users expect.
14176
14177         * src/SDCC.y
14178         * support/Util/SDCCerr.h
14179         * support/Util/SDCCerr.c
14180
14181 2003-08-09  Bernhard Held <bernhard AT bernhardheld.de>
14182
14183         * src/SDCCval.c (valMult): fix overflow detection of negative int
14184
14185 2003-08-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14186
14187         * src/z80/ralloc.c (joinPushes): made compatible with new signedness
14188
14189         Changes to support big endian targets:
14190
14191         * src/ports.h
14192         * src/SDCCglue.c
14193         * src/avr/main.c
14194         * src/ds390/main.c
14195         * src/izt/i186.c
14196         * src/mcs51/main.c
14197         * src/pic/main.c
14198         * src/pic16/main.c
14199         * src/xa51/main.c
14200         * src/z80/main.c
14201
14202 2003-08-06  Bernhard Held <bernhard AT bernhardheld.de>
14203
14204         * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
14205         * device/lib/time.c: fixed warning "integer overflow in expression"
14206
14207 2003-08-05  Bernhard Held <bernhard AT bernhardheld.de>
14208
14209         * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
14210         * src/SDCCval.c (constVal): changed default to signed; hex and octal
14211         constants are unsigned; added recognition of "u" flag for unsigned
14212         * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
14213         * src/SDCCval.c (valDiv, valMod): fixed signdness
14214         * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
14215         signedness of modulo, left and right shift
14216         * support/Util/SDCCerr.c: added warning "integer overflow in expression"
14217         * support/Util/SDCCerr.h: added warning W_INT_OVL
14218         * src/SDCCast.c (decorateType): fixed gcc3.3 warning
14219         * src/SDCCast.c (ast_print): improved output of constants
14220
14221 2003-08-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14222
14223         Fixed some warnings when building with MSVC:
14224
14225         * as/mcs51/asdata.c
14226         * as/z80/asdata.c
14227         * as/mcs51/asm.h
14228         * as/z80/asm.h
14229         * link/z80/aslink.h
14230         * link/z80/lkdata.c
14231         * link/z80/lkeval.c
14232         * link/z80/lkgb.c
14233         * link/z80/lkihx.c
14234         * link/z80/lks19.c
14235         * link/z80/lksym.c
14236         * support/cpp2/cpplib.c
14237         * src/ds390/gen.c
14238         * src/mcs51/gen.c
14239
14240 2003-08-03  Bernhard Held <bernhard AT bernhardheld.de>
14241
14242         * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
14243
14244 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14245
14246         * support/librarian/clean.mk: Do not remove Makefile.
14247         * support/librarian/Makefile: added.
14248
14249 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14250
14251         Added librarian to MSVC build:
14252         * all.dsp
14253         * sdcc.dsw
14254         * support/librarian/librarian.dsp
14255
14256         'configure' not needed for librarian, removed:
14257         * support/librarian/configure
14258         * support/librarian/configure.in
14259         * support/librarian/config_in.h
14260         * support/librarian/Makefile.in
14261
14262         Hopefully these ones built the librarian and the rest of sdcc properly:
14263         * Makefile
14264         * Makefile.common.in
14265
14266         Messed up 'configure', so revert to previous version:
14267         * configure
14268         * configure.in
14269
14270 2003-07-31  Bernhard Held <bernhard AT bernhardheld.de>
14271
14272         * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
14273         there, while the mantissa of a double is "only" 53 bits wide.
14274
14275 2003-07-31  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14276
14277         Adding sdcclib to the build.  MSVC project coming soon.
14278         Files added/changed:
14279
14280         * support/librarian/clean.mk
14281         * support/librarian/configure
14282         * support/librarian/configure.in
14283         * support/librarian/config_in.h
14284         * support/librarian/Makefile.bcc
14285         * support/librarian/Makefile.in
14286         * support/librarian/sdcclib.c
14287         * Makefile.bcc
14288         * Makefile
14289         * Makefile.common.in
14290         * configure
14291         * configure.in
14292
14293 2003-07-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14294
14295         Linker now complaints if linked modules have conflicting options, for
14296         example, one compiled using --model-large and another one compiled with
14297         --model-small.  The following files were modified:
14298
14299         * as/mcs51/asdata.c
14300         * as/mcs51/aslink.h
14301         * as/mcs51/asm.h
14302         * as/mcs51/asmain.c
14303         * as/mcs51/asout.c
14304         * as/mcs51/i51pst.c
14305         * as/mcs51/lkdata.c
14306         * as/mcs51/lklibr.c
14307         * as/mcs51/lkmain.c
14308         * as/z80/asdata.c
14309         * as/z80/asm.h
14310         * as/z80/asmain.c
14311         * as/z80/asout.c
14312         * as/z80/z80pst.c
14313         * link/z80/aslink.h
14314         * link/z80/lkdata.c
14315         * link/z80/lklibr.c
14316         * link/z80/lkmain.c
14317         * src/SDCCglue.c
14318
14319 2003-07-28  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14320
14321         *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
14322         as/mcs51/lklibr.c: Generate a warning when a library is not found.
14323
14324 2003-07-28  Bernhard Held <bernhard AT bernhardheld.de>
14325
14326         * src/z80/mappings.i: fix _mul[us][int,long] entries
14327
14328 2003-07-26  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14329
14330         *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
14331
14332 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
14333
14334         * src/SDCCicode.c (operandOperation): really fixed problem with bitops
14335         * support/regression/tests/bitopcse.c: added
14336         fixed warning:
14337         * src/avr/gen.c:
14338         * src/pic/gen.c:
14339         * src/pic16/gen.c:
14340         * src/z80/gen.c:
14341         * src/xa51/gen.c:
14342
14343 2003-07-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14344
14345         added support for new library format to z80, gbz80 linkers:
14346         *link/z80/aslink.h
14347         *link/z80/lklex.c
14348         *link/z80/lklib.c
14349         *link/z80/lklist.c
14350
14351 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
14352
14353         * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
14354         after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
14355
14356 2003-07-23  Bernhard Held <bernhard AT bernhardheld.de>
14357
14358         added DUMMY_READ_VOLATILE:
14359         * src/SDCC.y:
14360         * src/avr/gen.c:
14361         * src/xa51/gen.c:
14362         * src/z80/gen.c:
14363         * src/pic/gen.c:
14364         * src/pic16/gen.c:
14365         * src/mcs51/gen.c:
14366         * src/ds390/gen.c:
14367         * src/SDCCcse.c (algebraicOpts): many improvements
14368         * src/SDCCcse.h: removed algebraicOpts()
14369         * src/SDCCicode.c (picDummyRead): added
14370
14371 2003-07-23  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14372
14373         * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
14374         "Insufficient space in data memory".
14375
14376 2003-07-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14377
14378         * src/mcs51/gen.c: fixed bug #771358
14379         * src/z80/gen.c: fixed bug #759087
14380
14381 2003-07-20  Bernhard Held <bernhard AT bernhardheld.de>
14382
14383         * src/pic16/glue.c: minor cleanup by Vangelis
14384
14385 2003-07-19  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14386
14387         * device/include/regc515c.h: fixed #758477
14388         * device/lib/_gptrget.c: saving some cycles in generic pointer get
14389         * device/lib/_gptrput.c: saved a few bytes
14390         * my tab spacing is 8, yours too?)
14391         * device/lib/_ser.c: process RX bytes earlier than TX bytes
14392         * device/lib/serial.c: process RX bytes earlier than TX bytes
14393         * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
14394
14395 2003-07-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14396
14397         * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
14398
14399 2003-07-17  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14400
14401     * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
14402
14403 2003-07-17  Bernhard Held <bernhard AT bernhardheld.de>
14404
14405         * device/lib/Makefile.in: bad fix, reverted to 1.43
14406
14407 2003-07-16  Bernhard Held <bernhard AT bernhardheld.de>
14408
14409         * device/lib/Makefile.in: added missing z80 object files
14410
14411 2003-07-14  Bernhard Held <bernhard AT bernhardheld.de>
14412
14413         * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
14414         pic16 progress by Vangelis:
14415         * src/SDCCglobl.h:
14416         * src/SDCCmain.c:
14417         * src/pic/Makefile:
14418         * src/pic:
14419         * pic/Makefile:
14420         * pic16/device.c:
14421         * pic16/device.h:
14422         * pic16/gen.c:
14423         * pic16/gen.h:
14424         * pic16/genarith.c:
14425         * pic16/glue.c:
14426         * pic16/main.c:
14427         * pic16/pcode.c:
14428         * pic16/pcode.h:
14429         * pic16/pcodepeep.c:
14430         * pic16/peeph.def:
14431
14432 2003-07-13  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14433
14434     * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
14435
14436 2003-07-12  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14437
14438     * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
14439     added gbz80 build to MSVC project.
14440     * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
14441     link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
14442     from 8051 stuff and setup so it links using a .lnk file.
14443
14444 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14445
14446     * support/librarian/sdcclib.c: sdcc librarian.
14447     * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
14448     with sdcclib.
14449
14450 2003-07-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14451
14452     * as/mcs51/lkmain.c: properly handle extensions in function afile.
14453
14454 2003-07-02  Borut Razem <borut.razem AT siol.net>
14455
14456         * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
14457         src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
14458         src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
14459         src/xa51/main.c, src/z80/main.c:
14460         virtualization of glue() function: each port has it's own glue function,
14461         which is accessed by do_glue function pointer in PORT.general structure
14462
14463 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
14464
14465         * DS800C400 fun, improved ROM interface and tinibios.
14466
14467 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
14468
14469         * More support for DS80C400. Now includes beginning of interface to ROM.
14470
14471 2003-06-25  Bernhard Held <bernhard AT bernhardheld.de>
14472
14473         * src/mcs51/gen.c (gencjneshort): fixed bug #760345
14474
14475 2003-06-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14476
14477         * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
14478
14479 2003-06-19  Borut Razem <borut.razem AT siol.net>
14480
14481         * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
14482
14483 2003-06-19  Borut Razem <borut.razem AT siol.net>
14484
14485         * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
14486         fixed Z80 port - crt0.o: cannot open.
14487
14488 2003-06-19  Bernhard Held <bernhard AT bernhardheld.de>
14489
14490         * support/Util/MySystem.c (merge_command): revert bad fix
14491
14492 2003-06-18  Borut Razem <borut.razem AT siol.net>
14493
14494         * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
14495
14496 2003-06-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14497
14498         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
14499         option --use-stdout sends errors to stdout instead of stderr.
14500
14501 2003-06-18  Bernhard Held <bernhard AT bernhardheld.de>
14502
14503         * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
14504
14505 2003-06-15  Borut Razem <borut.razem AT siol.net>
14506
14507         * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
14508         * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
14509         * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
14510         fixed width array of pointers replaced with sets;
14511         multiple include and lib paths ared transferred to preprocessor and linker
14512         * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
14513         * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
14514         fixed width array of pointers
14515         * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
14516         removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
14517         fixupPath(), getPathDifference()
14518         * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function  inExcludeList() by using sets instead
14519         fixed width array of pointers
14520
14521 2003-06-11  Bernhard Held <bernhard AT bernhardheld.de>
14522
14523         * src/pic16/ralloc.c: fix warnings
14524         * src/pic16/pcode.c: fix warning
14525
14526 2003-06-10  Scott Dattalo  <scott AT dattalo.com>
14527
14528          Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
14529         know all the details, but essentially this set of changes enable
14530         the pic16 port to generate movff instructions and generate assembler
14531         directives,
14532         * src/SDCCmain.c:
14533         * src/pic16/gen.c:
14534         * src/pic16/glue.c:
14535         * src/pic16/pcode.c:
14536         * src/pic16/device.c:
14537         * src/pic16/main.c:
14538         * src/pic16/pcode.h:
14539         * src/pic16/pcoderegs.c:
14540         * src/pic16/ralloc.c:
14541         * src/pic16/ralloc.h:
14542
14543 2003-06-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14544
14545         * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
14546         added option --vc, so sdcc errors and warnings are compatible with
14547         Microsoft Visual Studio.
14548
14549 2003-06-07  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14550
14551         * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
14552           device/lib/libfloat.lib: added atof function.
14553
14554 2003-06-04  Bernhard Held <bernhard AT bernhardheld.de>
14555
14556         * doc/sdccman.lyx: updated to Lyx 1.3
14557         * doc/cdbfileformat.lyx: updated to Lyx 1.3
14558         * doc/test_suite_spec.lyx: updated to Lyx 1.3
14559         * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
14560
14561 2003-06-03  Bernhard Held <bernhard AT bernhardheld.de>
14562
14563         * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
14564
14565 2003-06-02  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14566
14567         * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
14568           additions to the "related tools/documentation" section
14569
14570 2003-06-02  Bernhard Held <bernhard AT bernhardheld.de>
14571
14572         * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
14573
14574 2003-05-29  Bernhard Held <bernhard AT bernhardheld.de>
14575
14576         * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
14577         * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
14578
14579 2003-05-28  Bernhard Held <bernhard AT bernhardheld.de>
14580
14581         * doc/sdccman.lyx: fix double dash and other minor things
14582         * doc/Makefile: fix double dash
14583
14584 2003-05-28  Karl Bongers(patches from Martin Helmling)
14585         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
14586           condition and ignore commands.
14587
14588 2003-05-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14589
14590         * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
14591           is in parts still quite out of date, I did changes as far as I felt makes sense
14592           for a non-native english speaker.
14593           Please feel free to add to the manual or to correct my changes.
14594         * doc/Makefile: undid touching the date of intermediate tex files.
14595
14596 2003-05-26  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14597
14598         * doc/sdccman.lyx: Manual has an index now
14599
14600 2003-05-25  Bernhard Held <bernhard AT bernhardheld.de>
14601
14602         Finalize muluint/mulsint and mululong/mulslong merging:
14603         * device/lib/_mulint.c
14604         * device/lib/_mullong.c
14605         * device/lib/gbz80/mul.s
14606         * device/lib/gbz80/stubs.s
14607         * device/lib/z80/mul.s
14608         * device/lib/z80/stubs.s
14609         * src/SDCCsymt.c (initCSupport)
14610
14611 2003-05-25  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14612
14613         * as/mcs51/lkaomf51.c: Address space 'z' was missing.
14614         * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
14615           src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
14616           src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
14617           instead of /Zm500.
14618
14619 2003-05-25  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14620
14621         * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
14622           the regression tests I'm not brave enough to enable 245.b, 245.c
14623         * doc/sdccman.lyx: added latex preamble for hyperref package.
14624           Using pdflatex this will give you a hyperlinked pdf file with
14625           bookmarks. (prepend '%' before /usepackage if this breaks something)
14626
14627 2003-05-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14628
14629          * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
14630
14631 2003-05-22  Bernhard Held <bernhard AT bernhardheld.de>
14632
14633         * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
14634
14635 2003-05-21    <johan AT balder>
14636
14637         * src/SDCCglue.c (printIval): fixed bug #739934
14638
14639 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
14640
14641         Applied patch from bug 737905 (renamed yylineo to mylineno):
14642         * src/altlex.c
14643         * src/SDCCast.c
14644         * src/SDCglobl.h
14645         * src/SDCC.lex
14646         * src/SDCCsymt.c
14647         * src/SDCCval.c
14648         * src/pic16/pcode.c: Cleaned warnings
14649         * src/pic16/pcodeflow.c: Cleaned warnings
14650         * src/pic16/pcoderegs.c: Cleaned warnings
14651
14652 2003-05-19  Scott Dattalo  <scott AT dattalo.com>
14653
14654         * src/pic16/pcode.c: Cleaned warnings
14655         * src/pic16/pcodepeep.c: Cleaned warnings
14656         * src/pic16/ralloc.c: Cleaned warnings
14657
14658 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
14659
14660         * doc/sdccman.lyx: fixed bug 739745
14661         * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
14662
14663 2003-05-18  Bernhard Held <bernhard AT bernhardheld.de>
14664
14665         * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
14666         it can be defined with CFLAGS when running configure
14667         * src/SDCCmain.c: fixed compiling + linking with object files
14668
14669 2003-05-18  Vangelis Rokas (vrokas AT otenet.gr)
14670
14671         * configure.in: configure for pic16 port,
14672             added --disable-pic16-port
14673         * sdccconf_in.h: added macro OPT_DISABLE_PIC16
14674         * src/SDCCmain.c: linkOptions is changed to set *,
14675             added if/endif conditional macros to remove options help
14676             messages from optionsTable when a port is not configured, added
14677             support for the PIc16 port in the ports table, when executing
14678             the compiler with no port specified on command line, a default
14679             port is selected with the new macro DEFAULT_PORT which is
14680             defined in port.h, in setDefaultOptions() linkOptions is removed
14681             from initialization assignment, since now it is a set,
14682             parseCmdLine uses setParseWithComma for linkOptions, in
14683             linkEdit() linkOptions are accessed with new function indexSet()
14684             which returns the i'th item of a set variable. See SDCCset.c, in
14685             linkEdit() when calling buildCmdLine(), added linkOptions as
14686             last argument. Now users can pass arguments to gplink via the
14687             -Wl option, main() uses pic16glue() to glue up pic16 programs
14688         * src/SDCCpeeph.c: various changes to support pic16
14689         * src/SDCCset.c: added function  void *indexSet(set *, int)  to
14690             return the i'th item of the set
14691         * src/SDCCset.h: added function prototype for indexSet()
14692         * src/SDCCsymt.c: in checkSClass(), added support for PIC16
14693         * src/clean.mk: added pic16 in CLEANALLPORTS variable
14694         * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
14695             added macro DEFAULT_PORT
14696         * src/pic/main.c: corrected arguments of gplnk in _linkCmd
14697         * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
14698             generated
14699         * src/pic16/glue.c: commented out some error producing lines
14700         * src/pic16/main.c: __config directives are commented out to stop
14701             gpasm complaining and test the linkage with gplink, _linkCmd and
14702             _asmCmd changed to be more gplink and gpasm friendly
14703         * src/pic16/peeph.def: peep rule 3 is commented out, since it
14704             produced an error when parsed, peep rule 12 is added to utilize
14705             movff, but it is commented out since the pCode does not support
14706             yet a command with 2 address arguments
14707
14708 2003-05-18    <johan AT balder>
14709
14710         * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
14711         * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
14712 2003-05-17  Karl Bongers(apply patches from Martin Helmling)
14713
14714         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
14715   Added feature to script commands from file.
14716
14717 2003-05-14  Bernhard Held <bernhard AT bernhardheld.de>
14718
14719         * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
14720         * src/SDCCutil.c: include ctype.h for win32
14721
14722 2003-05-13  Bernhard Held <bernhard AT bernhardheld.de>
14723
14724         * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
14725
14726 2003-05-12  Karl Bongers(apply development patches from Martin Helmling)
14727
14728         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
14729   Fixed so you can set breakpoints prior to run, run does not stop
14730   on entry now.  Add tbreak.  Other enhancements and fixes for use
14731   with ddd.
14732
14733 2003-05-12  Borut Razem <borut.razem AT siol.net>
14734
14735         * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
14736
14737 2003-05-11  Borut Razem <borut.razem AT siol.net>
14738
14739         * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
14740         the path of bin directory, so that PATH is the only env. variable, which has to be set
14741         in case of standard installation.
14742         * src/ds390/ds390.dsp: increased value of /Zm option to 1000
14743         * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
14744         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
14745
14746 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
14747
14748         * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
14749         * support/regression/Makefile: inter-port-clean is no longer nesessary, the
14750         temp files are in the port dir; clean the gen/test directory when
14751         generating new test.c
14752         * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
14753         * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
14754         * support/regression/tests/zeropad.c: added
14755
14756 2003-05-09    <johan AT balder>
14757
14758         * src/SDCCglue.c: fixed bug #597940
14759
14760 2003-05-05  Karl Bongers(apply patches from Martin Helmling)
14761
14762         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
14763   cache sfr, optimize next,step, fix off by one sourceline,
14764   support ddd list function.
14765         * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
14766
14767 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
14768
14769         * support/regression/HTMLgen.py: added compare_s2f()
14770         * support/regression/Makefile: redo 1.27
14771         * support/regression/generate-cases.py: redo 1.5
14772
14773 2003-04-30  Bernhard Held <bernhard AT bernhardheld.de>
14774
14775         * support/regression/tests/float.c: workaround 33 bit hex constant
14776         * support/regression/tests/simplefloat.c: fix division for host
14777
14778 2003-04-29  Scott Dattalo  <scott AT dattalo.com>
14779
14780         * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
14781         that tame's the PIC's over-aggressive optimizer.
14782
14783 2003-04-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14784
14785          * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
14786          support for MSVC.
14787
14788 2003-04-29  Kevin Vigor <kevin AT vigor.nu>
14789
14790         Initial support for DS80C400. "Hello world" runs on TINIm400
14791         (with polled I/O).
14792
14793 2003-04-28  Karl Bongers(apply patches for Martin Helmling)
14794
14795          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
14796          * Some notes on ddd usage added in debugger/README
14797          Martin Helmling adding more features and fixes for ddd GUI debugger.
14798          Code added for nexti, stepi, up, down, and other adjustments.
14799
14800 2003-04-28  Scott Dattalo  <scott AT DATTALO.COM>
14801
14802         * src/pic/pCodepeep.c non-wildcard asmops are now handled
14803         * src/pic/peeph.def Added two rules to optimize carry manipulation
14804         * src/pic/* removed debug printfs
14805
14806 2003-04-28  Bernhard Held <bernhard AT bernhardheld.de>
14807
14808         * debugger/mcs51/cmd.c: added header newalloc.h
14809
14810 2003-04-26  Bernhard Held <bernhard AT bernhardheld.de>
14811
14812         * as/Makefile: new EXEEXT
14813         * as/z80/Makefile: remove trailing slash of BUILDIR
14814         * as/z80/clean.mk: new EXEEXT
14815         * Makefile.common.in: add to CFLAGS (and others), don't replace it
14816         * support/cpp2/Makefile.in: new EXEEXT
14817         * src/pic/glue.c (pic14emitRegularMap): fixed warning
14818
14819 2003-04-24  Bernhard Held <bernhard AT bernhardheld.de>
14820
14821         Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
14822         EXEEXT was introduced to fix all related problems with targets
14823         "clean", "install" and "uninstall"; a couple of further flaws
14824         especially with "clean" have been fixed too
14825         * as/mcs51/Makefile.in
14826         * as/mcs51/clean.mk
14827         * as/z80/Makefile
14828         * Makefile
14829         * clean.mk
14830         * debugger/mcs51/Makefile.in
14831         * debugger/mcs51/clean.mk
14832         * link/z80/Makefile
14833         * link/z80/Makefile.in
14834         * link/z80/clean.mk
14835         * link/Makefile
14836         * packihx/Makefile.in
14837         * packihx/clean.mk
14838         * sim/ucsim/Makefile
14839         * sim/ucsim/clean.mk
14840         * sim/ucsim/avr.src/Makefile.in
14841         * sim/ucsim/avr.src/clean.mk
14842         * sim/ucsim/s51.src/Makefile.in
14843         * sim/ucsim/s51.src/clean.mk
14844         * sim/ucsim/xa.src/Makefile.in
14845         * sim/ucsim/xa.src/clean.mk
14846         * sim/ucsim/z80.src/Makefile.in
14847         * sim/ucsim/z80.src/clean.mk
14848         * sim/ucsim/main_in.mk
14849         * sim/ucsim/packages_in.mk
14850         * sim/ucsim/gui.src/Makefile.in
14851         * sim/ucsim/gui.src/serio.src/Makefile.in
14852         * sim/ucsim/gui.src/serio.src/clean.mk
14853         * src/Makefile.in
14854         * src/clean.mk
14855         * support/cpp2/Makefile.in
14856         * support/cpp2/clean.mk
14857         * support/makebin/Makefile
14858         * support/makebin/clean.mk
14859         * support/scripts/sdcc_mingw32: --program-suffix no longer needed
14860         * doc/sdccman.lyx: --program-suffix no longer needed
14861
14862 2003-04-23  Karl Bongers(apply patches for Martin Helmling)
14863
14864          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
14865          Martin Helmling added support for ddd GUI debugger.
14866          Code added to display assembly, set variables, and other commands
14867          to interface to ddd.
14868
14869 2003-04-23  Bernhard Held <bernhard AT bernhardheld.de>
14870
14871         * as/Makefile: fix target clean
14872         * as/clean.mk: fix target clean
14873         * as/z80/clean.mk: fix target clean
14874
14875 2003-04-22  Bernhard Held <bernhard AT bernhardheld.de>
14876
14877         * Makefile.common.in: added  AT EXEEXT AT
14878         * configure.in: removed all mingw32 stuff
14879         * configure: rebuilt from configure.in
14880         * doc/sdccman.lyx: updated section "installation"
14881         * support/scripts/sdcc_mingw32: adapted to configure
14882         * support/scripts/sdcc_cygwin_mingw32: added
14883
14884 2003-04-22  Scott Dattalo  <scott AT dattalo.com>
14885
14886         * src/pic Added object file support for the PIC port
14887         * src/pic Applied patch from Craig Franklin (this started the object file support)
14888         * src/regression Updated the PIC regression tests for object files
14889
14890 2003-04-20  Borut Razem <borut.razem AT siol.net>
14891
14892         * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
14893           lklex.c: In function `getfid':
14894           lklex.c:203: warning: array subscript has type `char'
14895         * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
14896           with MSVC with global optimization enabled (probably an cl compiler bug ;-)
14897         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
14898           stack handling macros
14899
14900 2003-04-19  Borut Razem <borut.razem AT siol.net>
14901
14902         * "handling space characters in file path" task:
14903         * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
14904         * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
14905         * support/Util/MySystem.h: make it self-sufficient
14906         * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
14907           src/z80/main.c, sdcc/as/mcs51/lklex.c:
14908           handling space characters in file path
14909         * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
14910           (it will be used by assemblers, which have their own includes, e.g. gpasm)
14911         * support/Util/MySystem.c: handling space characters in executable's path
14912
14913 2003-04-19  Bernhard Held <bernhard AT bernhardheld.de>
14914
14915         * as/z80/Makefile: fix permanent rebuild of z80
14916         * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
14917         * support/regression/tests/bitfields.c: added Johan's bitfields.c
14918
14919 2003-04-18      Kevin Vigor <kevin AT vigor.nu>
14920
14921         * src/SDCCopt.c: add special case optimization to replace modulo by
14922           a power of two with a bitwise AND.
14923
14924 2003-04-18    <johan AT balder>
14925
14926         * src/mcs51/gen.c (getFreePtr): fixed bug #635354
14927
14928 2003-04-17    <johan AT balder>
14929
14930         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
14931         * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
14932
14933 2003-04-13  Borut Razem <borut.razem AT siol.net>
14934
14935         * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
14936         * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
14937           fixed mingw problem in adl_NORMALIZE_PATH
14938
14939 2003-04-12  Borut Razem <borut.razem AT siol.net>
14940
14941         * fixed "#pragma SAVE/RESTORE can not be nested":
14942         * src/SDCC.lex: reworked pragma handling functions
14943         * sdcc/src/SDCCglobl.h: reworked stack handling macros
14944         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
14945
14946 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
14947
14948         * src/SDCCutil.c (pathEquivalent): defined but not used
14949         * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
14950         * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
14951         * configure: rebuilt from configure.in
14952         * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
14953         * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
14954         * device/include/Makefile.in: replace sdcc_datadir
14955         * device/lib/Makefile.in: replace sdcc_datadir
14956         * Makefile.common.in: add LDFLAGS from configure
14957         * packihx/Makefile.in: use LDFLAGS
14958         * src/Makefile.in: use LDFLAGS
14959         * support/cpp2/Makefile.in: add LDFLAGS from configure
14960         * support/makebin/Makefile: use LDFLAGS
14961         * .version: bumped version number to 2.3.5
14962
14963 2003-04-12  Borut Razem <borut.razem AT siol.net>
14964
14965         * completed "different paths" task:
14966         * src/SDCCmacro.c: fixed bug in handling quotes
14967         * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
14968         * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
14969
14970 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
14971
14972         * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
14973
14974 2003-04-11 kevin Vigor <kevin AT vigor.nu>
14975
14976         * ds390/gen.c ds390/peeph.def: fix bug 706781
14977
14978 2003-04-11  Borut Razem <borut.razem AT siol.net>
14979
14980         * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
14981
14982 2003-04-10  Scott Dattalo  <scott AT dattalo.com>
14983
14984         * src/pic/* Applied the pointer-to-function patch from Steve Tell.
14985         * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
14986          set - this bit used to not be set...).
14987         * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
14988           bad code in PIC Port
14989         * src/regression/and2.c added to test bug 609268
14990         * src/regression/Makefile added and2.c to regression test
14991
14992
14993 2003-04-08    <johan AT CP255758-A>
14994
14995         * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
14996         * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
14997         * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
14998
14999 2003-04-07  Bernhard Held <bernhard AT bernhardheld.de>
15000
15001         * configure.in: fully support prefix, exec_prefix, datadir, docdir;
15002         fix bug #487815
15003         * support/cpp2/Makefile.in: fix bug #487815
15004         * configure: rebuilt from configure.in
15005         * Makefile.common.in: docdir changed, new path suffixes
15006         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
15007         * sdcc_vc_in.h: reflect changes from sdccconf.h
15008         * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
15009         * src/SDCCutil.h: remove BINDIR hack
15010         * doc/sdccman.lyx: update new path hierarchy
15011
15012 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
15013
15014         * src/SDCCpeeph.c: added okToRemoveSLOC test
15015
15016 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
15017
15018         * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
15019
15020 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
15021
15022         * src/SDCCpeeph.c: added labelIsReturnOnly test
15023         * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
15024
15025 2003-04-05    <johan AT balder>
15026
15027         * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
15028         * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
15029         * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
15030         * src/SDCCast.c: fixed a warning
15031         * src/SDCCast.h: fixed a warning
15032         * src/SDCCicode.c (operandFromAst): fixed a warning
15033
15034 2003-04-04    <johan AT balder>
15035
15036         * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
15037         * src/SDCCast.c (decorateType): fixed bug #715076
15038         * src/SDCC.y: fixed bug #702907
15039
15040 2003-04-03    <johan AT balder>
15041
15042         * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
15043         * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
15044         * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
15045         * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
15046         * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
15047
15048 2003-04-03  Bernhard Held <bernhard AT bernhardheld.de>
15049
15050         * _decdptr.c: fix return values
15051         * _gptrget.c: fix return values
15052         * _gptrgetc.c: fix return values
15053         * _gptrput.c: fix return values
15054         * _mulint.c: fix return values
15055         * as/z80/Makefile: fix 'make -j' problem
15056
15057 2003-04-02  Bernhard Held <bernhard AT bernhardheld.de>
15058
15059         * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
15060         * configure.in: big cleanup, updated to autoconf 2.5x
15061         * configure: rebuilt from configure.in
15062         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
15063         * sdcc_vc_in.h: reflect changes from sdccconf.h
15064         * doc/Makefile: fixed a flaw in "make install"
15065
15066 2003-04-02    <johan AT balder>
15067
15068         * src/ds390/gen.c (genCmp): no comments
15069         * src/mcs51/gen.c (genCmp): no comments
15070         * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
15071         * src/SDCCast.c (ast_print): fixed the function type in --dumptree
15072
15073 2003-04-01  Bernhard Held <bernhard AT bernhardheld.de>
15074
15075         * support/regression/generate-cases.py: place generated file in given sub directory
15076         * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
15077         * support/regression/Makefile: improvements for 'make -j';
15078         side effect: it's simpler and faster now
15079
15080 2003-03-31  Borut Razem <borut.razem AT siol.net>
15081
15082         * src/z80/main.c: link-{port} and as-{port} defined without path
15083         * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
15084
15085 2003-03-31  Bernhard Held <bernhard AT bernhardheld.de>
15086
15087         * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
15088
15089 2003-03-30  Borut Razem <borut.razem AT siol.net>
15090
15091         * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
15092           changed type of list parameter to set
15093         * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
15094         * src/port.h: changed type of do_assemble() parameter to set
15095         * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
15096           sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
15097           definition of "cppoutfilename" macro with NULL value in preProcess()
15098         * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
15099         * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
15100         * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
15101           replaced with set *binPathSet
15102         * shash_add() deallocates the item, if allready exsists, before adding the new one
15103         * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
15104
15105 2003-03-30  Scott Dattalo  <scott AT dattalo.com>
15106
15107         * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
15108           a nested for loop bug in the PIC port
15109         * src/regression/nestfor.c: new regression test file Steve wrote to test nested
15110           for loops
15111
15112 2003-03-29  Bernhard Held <bernhard AT bernhardheld.de>
15113
15114         * support/Util/dbuf.h: remove C++ stuff to make it portable
15115
15116 2003-03-28  Borut Razem <borut.razem AT siol.net>
15117
15118         * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
15119           literal strings in stringLiteral()
15120         * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
15121         * src/Makefile.bcc, src/Makefile.in, src/src.dsp: added support/Util/dbuf.c
15122           to the project
15123
15124 2003-03-27  Paul Stoffregen <paul AT pjrc.com>
15125
15126         * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
15127
15128 2003-03-26    <johan AT balder>
15129
15130         * src/mcs51/gen.c (saveRegisters): catched symbol abuse
15131         * src/ds390/gen.c (saveRegisters): catched symbol abuse
15132         * src/SDCCast.c (decorateType): fixed " -v < 3"
15133
15134 2003-03-23  Bernhard Held <bernhard AT bernhardheld.de>
15135
15136         * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
15137         Added Lenny Story's debug infrastructure changes:
15138         * src/Makefile.in:  added new files cdbFile.c and SDCCdebug.c
15139         * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
15140         * src/cdbFile.c: added
15141         * src/SDCCdebug.c: added
15142         * src/SDCCdebug.h: added
15143         * src/SDCCast.c (createFunction)
15144         * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
15145         * src/SDCCmain.c (parseCmdLine, main)
15146         * src/SDCCmem.c (redoStackOffsets)
15147         * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
15148         * src/SDCCsymt.h
15149         * src/common.h
15150         * src/avr/gen.c (genAVRCode)
15151         * src/ds390/gen.c (gen390Code)
15152         * src/mcs51/gen.c (gen51Code)
15153         * src/pic/gen.c (genpic14Code)
15154         * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
15155         * src/xa51/gen.c (genXA51Code)
15156         * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
15157
15158 2003-03-22  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15159
15160         * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
15161         * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
15162
15163 2003-03-22    <johan AT balder>
15164
15165         * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
15166
15167 2003-03-21  Bernhard Held <bernhard AT bernhardheld.de>
15168
15169         * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
15170         * doc/cdbfileformat.lyx: added, written by Lenny Story
15171         * doc/Makefile: added cdbfileformat.lyx
15172         * doc/clean.mk: added cdbfileformat.lyx
15173
15174 2003-03-20  Bernhard Held <bernhard AT bernhardheld.de>
15175
15176         * src/mcs51/peeph.def: fix bug #705773
15177
15178 2003-03-20    <johan AT balder>
15179
15180         An sfr/sbit can have an "at #" AND an initializer
15181         * src/SDCCsymt.c (checkSClass):
15182         * src/SDCCmem.c (allocGlobal):
15183         * src/SDCCmem.c (allocLocal):
15184         * src/SDCCast.c (createBlock):
15185
15186 2003-03-17  Bernhard Held <bernhard AT bernhardheld.de>
15187
15188         * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
15189
15190 2003-03-16    <johan AT balder>
15191
15192         Undid the hackup of const and volatile, the problem is much bigger
15193         * src/SDCC.y:1.65
15194         * src/SDCCast.c:1.171
15195         * src/SDCCglue.c:1.138
15196         * src/SDCCicode.c:1.146
15197         * src/SDCCsymt.c:1.150
15198         * src/SDCCval.c:1.65
15199
15200 2003-03-15  Bernhard Held <bernhard AT bernhardheld.de>
15201
15202         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
15203         * src/ds390/gen.c (genAddrOf): fixed bug #704087
15204
15205 2003-03-13    <johan AT balder>
15206
15207         Hackup const and volatile modifiers in type chains a bit:
15208         * src/SDCC.y:1.63
15209         * src/SDCCast.c:1.169
15210         * src/SDCCglue.c:1.136
15211         * src/SDCCicode.c:1.143
15212         * src/SDCCsymt.c1.146
15213         * src/SDCCsymt.h1.59
15214         * src/SDCCval.c:1.63
15215
15216 2003-03-12    <johan AT balder>
15217
15218         * src/SDCCBBlock.h: more LRH debugging junk
15219         * src/SDCCcflow.h: more LRH debugging junk
15220         * src/SDCCloop.c: more LRH debugging junk
15221         * src/SDCC.y (struct_declaration): fixed bug #697590
15222         * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
15223         * src/ds390/gen.c (aopForRemat): fixed bug #700031
15224         * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
15225
15226 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
15227         * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
15228         test function names must now match exactly).
15229         * src/SDCCcse.c: added special case in findCheaperOp to allow
15230         extending a short integer. Makes less awful code for bug 700121 test case.
15231
15232 2003-03-11  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15233
15234         * as/mcs51/lkmain.c: Added ASlink-Warning to messages
15235         * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
15236
15237 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
15238
15239         * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
15240         actually called (operandsNotEqual() was called for all
15241         operandsNotEqualX tests).
15242
15243 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
15244
15245         * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
15246         with shorter literals. Fixes bug 700121.
15247
15248 2003-03-11    <johan AT balder>
15249
15250         * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
15251
15252 2003-03-11  Bernhard Held <bernhard AT bernhardheld.de>
15253
15254         * src/SDCCloop.c (mergeRegions): an evil beast is dead
15255         * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
15256
15257 2003-03-10  Borut Razem <borut.razem AT siol.net>
15258
15259         * src/SDCCmain.c: pipe preprocessor's output
15260         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
15261         * sdcc_vc_in.h: define pclose as _pclose for WIN32
15262         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
15263         which closes all pipes in pipeSet set
15264         * src/SDCCset.c: free deleted item in function deleteSetItem()
15265         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
15266         moved from z80 to src subproject
15267         * .version: increased version number to 2.3.4
15268
15269 2003-03-10  Bernhard Held <bernhard AT bernhardheld.de>
15270
15271         * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
15272         * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
15273         * support/regression/ports/xa51/spec.mk: fix typo
15274
15275 2003-03-09  Bernhard Held <bernhard AT bernhardheld.de>
15276
15277         * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
15278
15279 2003-03-09  Borut Razem <borut.razem AT siol.net>
15280
15281         * src/SDCCmain.c: pipe preprocessor's output
15282         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
15283         * sdcc_vc_in.h: define pclose as _pclose for WIN32
15284         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
15285         which closes all pipes in pipeSet set
15286         * src/SDCCset.c: free deleted item in function deleteSetItem()
15287         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
15288         moved from z80 to src subproject
15289
15290 2003-03-09  Borut Razem <borut.razem AT siol.net>
15291
15292         * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
15293         * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
15294         * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
15295         * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
15296         * src/SDCCglobl.h: unification of WIN32 native definitions
15297
15298 2003-03-09  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15299
15300         * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
15301
15302 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
15303
15304         * src/configure.in:   check for endianess (even while cross-compiling)
15305         * src/configure:      check for endianess (even while cross-compiling)
15306         * src/configure_in.h: check for endianess (even while cross-compiling)
15307         * src/avr/gen.c:        remove old endianess stuff
15308         * src/mcs51/gen.c:      remove old endianess stuff
15309         * src/ds390/gen.c:      remove old endianess stuff
15310         * src/pic/gen.c:        remove old endianess stuff
15311         * src/pic/genarith.c:   remove old endianess stuff
15312         * src/pic/glue.c:       fix endianess check
15313         * src/pic16/gen.c:      remove old endianess stuff
15314         * src/pic16/genarith.c: remove old endianess stuff
15315         * src/pic16/glue.c:     fix endianess check
15316         * src/xa51/gen.c:       remove old endianess stuff
15317         * src/z80/gen.c:        fix endianess check
15318         * src/SDCCglue.c:       fix endianess check
15319         * src/ds390/peeph.def: fix bug 700036
15320
15321 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
15322
15323         * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
15324         * src/configure: find appropriate data-types on host for SDCC's int and long
15325         * src/configure.in: find appropriate data-types on host for SDCC's int and long
15326         * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
15327         * src/xa51/gen.c: use %d, not %ld for 4 byte variables
15328
15329 2003-03-07    <johan AT balder>
15330
15331         Just a big NOOP:
15332                 some minor cleanups before the big shot
15333                 OP_DEFS and OP_USES now use Kevin's protection
15334                 new option --nolabelopt
15335
15336         * src/SDCCBBlock.c:
15337         * src/SDCCast.c,:
15338         * src/SDCCcflow.c:
15339         * src/SDCCcse.c:
15340         * src/SDCCicode.c:
15341         * src/SDCCicode.h:
15342         * src/SDCClabel.c:
15343         * src/SDCCloop.c:
15344         * src/SDCCmain.c:
15345         * src/ds390/ralloc.c:
15346         * src/mcs51/ralloc.c:
15347         * src/pic/ralloc.c:
15348         * src/xa51/ralloc.c:
15349         * src/z80/ralloc.c:
15350
15351 2003-03-06  Bernhard Held <bernhard AT bernhardheld.de>
15352
15353         * src/pic/pcode.c (get_op): fix 64 bit warnings
15354         * src/pic/pcode.c (pCode2str): fix 64 bit warnings
15355         * src/SDCChasht.c (newHashTable): fix 64 bit warnings
15356         * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
15357         * support/regression/tests/malloc.c: fix 64 bit warnings
15358
15359 2003-03-04  Bernhard Held <bernhard AT bernhardheld.de>
15360
15361         * src/mcs51/gen.c (genMinus): fixed bug 696436
15362
15363 2003-03-02  Borut Razem <borut.razem AT siol.net>
15364
15365         * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
15366
15367 2003-02-26  Bernhard Held <bernhard AT bernhardheld.de>
15368
15369         * configure.in: test for mkstemp
15370         * sdccconf_in.h: add HAVE_MKSTEMP
15371
15372 2003-02-24  Bernhard Held <bernhard AT bernhardheld.de>
15373
15374         * device/include/ctype.h: removed warning while using --stack-auto
15375         * device/include/malloc.h: removed warning while using --stack-auto
15376         * device/include/string.h: removed warning while using --stack-auto
15377
15378 2003-02-23  Borut Razem <borut.razem AT siol.net>
15379
15380         * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
15381         because NDEBUG is defined (see man assert)
15382         * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
15383
15384 2003-02-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15385
15386         * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
15387         * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
15388
15389 2003-02-18  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15390
15391         * src/SDCCpeeph.c: added peephole conditions testing for same arguments
15392         * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
15393
15394 2003-02-18    <johan AT balder>
15395
15396         * as/mcs51/asmain.c (asmbl): module can start with a digit
15397         * as/z80/asmain.c (asmbl): module can start with a digit
15398
15399 2003-02-16  Bernhard Held <bernhard AT bernhardheld.de>
15400
15401         * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
15402         * src/asm.c: fix pipe() for Mingw32
15403
15404 2003-02-15  Bernhard Held <bernhard AT bernhardheld.de>
15405
15406         * src/SDCCglue.h: make tmpfileNameSet available for preOutName
15407         * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
15408         make -V work again; --c1mode reads now from stdin
15409         * doc/sdccman.lyx: added --c1mode
15410         * support/Util/SDCCerr.c: new messages for c1 mode
15411         * support/Util/SDCCerr.h: new messages for c1 mode
15412         * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
15413
15414 2003-02-15    <johan AT balder>
15415
15416         * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
15417
15418 2003-02-14  Bernhard Held <bernhard AT bernhardheld.de>
15419
15420         * doc/sdccman.lyx: Environment variables, -o and other minor things
15421
15422 2003-02-14    <johan AT balder>
15423
15424         * src/xa51/main.c: before anyone really tries to use it :)
15425
15426         * Install doc's in share/sdcc/doc
15427         * removed some obsolete files
15428         * Do a proper make distclean and uninstall
15429         M Makefile.common.in
15430         R sdccbuild.sh
15431         M as/Makefile
15432         M device/include/Makefile.in
15433         M device/lib/Makefile.in
15434         M doc/sdccman.lyx
15435         M link/Makefile
15436         M sim/ucsim/doc/Makefile.in
15437         M src/clean.mk
15438         R src/avr/peeph.rul
15439         R src/xa51/peeph.rul
15440         M support/cpp2/Makefile.in
15441         M support/makebin/Makefile
15442
15443
15444 2003-02-13  Bernhard Held <bernhard AT bernhardheld.de>
15445
15446         * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
15447
15448 2003-02-10  Borut Razem <borut.razem AT siol.net>
15449
15450         * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
15451         support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
15452         * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
15453         device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
15454         support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
15455         src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
15456         src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
15457         src/z80/Makefile.bcc: Borland Makefile cleanup
15458         * as/z80/Makefile.bcc: Added Borland Makefile
15459         * support/cpp2/borland.h: Removed
15460
15461 2003-02-10  Bernhard Held <bernhard AT bernhardheld.de>
15462
15463         * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
15464         * src/SDCC.lex: new pragma NOIV
15465         * src/SDCCglobl.h: new pragma NOIV
15466         * src/SDCCmem.c: new pragma NOIV
15467
15468 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
15469
15470         * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
15471
15472 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
15473
15474         * src/SDCCmain.c: signal handling is switched off by --debug
15475         * doc/Makefile: small fix for install; use clean.mk again
15476         * doc/clean.mk: clean *.pdf and *.html too
15477
15478 2003-02-08  Bernhard Held <bernhard AT bernhardheld.de>
15479
15480         * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
15481         * device/lib/printfl.c: fix a ds390 bug by making it portable
15482         * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
15483         * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
15484         * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
15485         * debugger/mcs51/cmd.c: converted multi-line string literals
15486         * sim/ucsim/globals.cc: converted multi-line string literals
15487         * src/SDCCmain.c: introduced signal handler to remove temp files
15488         * doc/Makefile: small tweaks, implement clean
15489         * doc: removed generated files
15490
15491 2003-02-05  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15492
15493         * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
15494         patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
15495         Address Record is not correctly generated for DS390."
15496
15497 2003-02-02  Borut Razem <borut.razem AT siol.net>
15498
15499         * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
15500         * as/mcs51/asm.h: fixed compilation with Borland C
15501         * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
15502         * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
15503         * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
15504         * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
15505         src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
15506         src/z80/Makefile.bcc: delete $(LIB) only if exist
15507         * src/Makefile.bcc, src/pic/Makefile.bcc:  fixed compilation with Borland C
15508
15509 2003-02-02  Bernhard Held <bernhard AT bernhardheld.de>
15510
15511         * device/include/malloc.h: introduced NULL
15512         * device/include/string.h: introduced NULL
15513         * device/include/stdlib.h: introduced NULL
15514         * device/lib/_memcpy.c: removed NULL
15515         * device/lib/_strcat.c: removed NULL
15516         * device/lib/_strchr.c: removed NULL
15517         * device/lib/_strcmp.c: removed NULL
15518         * device/lib/_strcpy.c: removed NULL
15519         * device/lib/_strcspn.c: removed NULL
15520         * device/lib/_strlen.c: removed NULL
15521         * device/lib/_strncat.c: removed NULL
15522         * device/lib/_strncmp.c: removed NULL
15523         * device/lib/_strncpy.c: removed NULL
15524         * device/lib/_strpbrk.c: removed NULL
15525         * device/lib/_strrchr.c: removed NULL
15526         * device/lib/_strspn.c: removed NULL
15527         * device/lib/_strstr.c: removed NULL
15528         * device/lib/_strtok.c: removed NULL
15529         * device/lib/malloc.c: removed NULL, include own header
15530
15531 2003-02-02    <johan AT balder>
15532
15533         * 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
15534         * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
15535         * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
15536         * src/z80/gen.c (genZ80Code): added c-lines in asm comments
15537         * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
15538         * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
15539
15540 2003-02-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15541
15542         * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
15543         area 'DATA'"
15544
15545 2003-02-01    <johan AT balder>
15546
15547         * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
15548
15549 2003-01-31    <johan AT CP255758-A>
15550
15551         * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
15552
15553 2003-01-30    <johan AT balder>
15554
15555         * src/SDCCBBlock.c: automatic bug detection
15556         * src/SDCCicode.c: automatic bug detection
15557
15558 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15559
15560         * src/SDCCglobl.h:   now --xram-size 0 works
15561         * src/SDCCmain.c:    now --xram-size 0 works
15562
15563 2003-01-29    <johan AT balder>
15564
15565         * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
15566
15567 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15568
15569         * as/mcs51/aslink.h: Added options --xram-size and --code-size
15570         * as/mcs51/lkdata.c: Added options --xram-size and --code-size
15571         * as/mcs51/lkmain.c: Added options --xram-size and --code-size
15572         * as/mcs51/lkmem.c:  Added options --xram-size and --code-size
15573         * src/SDCCglobl.h:   Added options --xram-size and --code-size
15574         * src/SDCCmain.c:    Added options --xram-size and --code-size
15575
15576 2003-01-28  Bernhard Held <bernhard AT bernhardheld.de>
15577
15578         * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
15579         * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
15580
15581 2003-01-27    <johan AT balder>
15582
15583         * src/SDCC.y: fixed bug #613764
15584
15585 2003-01-26    <johan AT balder>
15586
15587         * src/SDCClrange.c:  fixed Bernhard's "char * code ptr = &c"
15588         * src/SDCCsymt.h: fixed bug #673374
15589         * src/SDCCglue.c: fixed bug #661910
15590         * src/SDCCast.c: fixed bug #458099 and 673374
15591
15592 2003-01-26  Bernhard Held <bernhard AT bernhardheld.de>
15593
15594         * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
15595         * as/mcs51/strcmpi.h: added
15596         * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
15597         * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
15598         * as/mcs51/asmain.c: strcmpi -> as_strcmpi
15599         * as/mcs51/assym.c: strcmpi -> as_strcmpi
15600         * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
15601         * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
15602         * as/mcs51/lksym.c: strcmpi -> as_strcmpi
15603         * as/mcs51/Makefile.aslink: new module strcmpi
15604         * as/mcs51/Makefile.asx8051: new module strcmpi
15605         * as/mcs51/Makefil.bcc: new module strcmpi
15606         * as/mcs51/Makefile.in: new module strcmpi
15607         * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
15608
15609 2003-01-26    <johan AT balder>
15610
15611         * src/SDCCglue.c: reverted back to 1.124
15612         * src/SDCCast.c: reverted back to 1.156
15613         * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
15614
15615 2003-01-25    <johan AT balder>
15616
15617         * src/SDCCglue.c: A better fix for bug #661910
15618         * src/SDCCast.c: A better fix for bug #661910
15619         * src/SDCCglue.c (emitRegularMap): That was a little too efficient
15620
15621 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
15622
15623         * src/Makefile.in: remove spawn.o
15624         * src/SDCCmain.c: remove spawn.h
15625         * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
15626         * src/spawn.c: removed
15627         * src/spawn.h: removed
15628         * support/regression/ports/ds390/spec.mk: link with -r
15629
15630 2003-01-24    <johan AT CP255758-A>
15631
15632         * src/ds390/gen.c (aopOp): fixed bug #667458
15633         * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
15634         * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
15635         (createIvalCharPtr): an ival doesn't always have a storage class anymore
15636
15637 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
15638
15639         * src/mcs51/peeph.def: better assembler identation by Frieder
15640         * src/mcs51/gen.c: better assembler identation by Frieder
15641
15642 2003-01-22  Bernhard Held <bernhard AT bernhardheld.de>
15643
15644         * as/z80/string.h: removed for gcc 3.2
15645         * support/makebin/makebin.c: #include <string.h> for gcc 3.2
15646         * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
15647
15648 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
15649
15650         * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
15651         * src/SDCCpeeph.c (replaceRule): fix bug #663503
15652         * support/regression/Makefile: separate temp files for ports
15653         * support/regression/generate-cases.py: separate temp files for ports
15654         * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
15655         * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
15656
15657 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
15658
15659         * moved tinitalk to device/examples/ds390
15660
15661 2003-01-14  Bernhard Held <bernhard AT bernhardheld.de>
15662
15663         * as/mcs51/lkmem.c: rflag is for DS390
15664         * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
15665         * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
15666                          (linkEdit): move mem- and map-files the same way as ihx-files
15667         * src/z80/main.c (_setDefaultOptions): removed --generic
15668         * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
15669         * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
15670         * src/pic/glue.c (picglue): --c1mode works again
15671         * src/pic16/glue.c (pic16glue): --c1mode works again
15672         * src/asm.c (printCLine): fix #660034
15673
15674 2003-01-13  Bernhard Held <bernhard AT bernhardheld.de>
15675
15676         * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
15677         * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
15678         * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
15679         * as/mcs51/lkmem (summary): better fix for sp problem
15680         * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
15681         * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
15682         * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
15683                                               remove --stack-after-data
15684
15685 2003-01-12  Bernhard Held <bernhard AT bernhardheld.de>
15686
15687         * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
15688         * src/SDCCutil.c (join): ugly bug: missing '\0'
15689         * as/mcs51/lkmem.c (summary): sp on address 7 is safe
15690
15691 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
15692
15693         * src/SDCCmain.c (assemble, linkEdit): preparations for -o
15694         * src/port.h: typo
15695         * src/pic/main.c (_asmCmd): gpasm supports -o
15696         * src/z80/main.c: more general macros
15697         * device/lib/Makefile.in: remove intermediate files
15698
15699 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
15700
15701         * .version: Bumped version number to 2.3.3
15702         * src/SDCCBBlock.c: new option -o
15703         * src/SDCCglobl.h: new option -o
15704         * src/SDCCglue.c: new option -o
15705         * src/SDCCmain.c: new option -o
15706         * src/asm.c: new option -o
15707         * src/ds390/main.c: new option -o
15708         * src/pic/glue.c: new option -o
15709         * src/pic/pcode.c: new option -o
15710         * src/pic/ralloc.c: new option -o
15711         * src/pic16/glue.c: new option -o
15712         * src/pic16/pcode.c: new option -o
15713         * src/pic16/ralloc.c: new option -o
15714         * src/z80/main.c: new option -o
15715         * device/lib/Makefile.in: use -o
15716         * support/regression/ports/ds390/spec.mk: use -o
15717         * support/regression/ports/gbz80/spec.mk: use -o
15718         * support/regression/ports/mcs51/spec.mk: use -o
15719         * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
15720         * support/regression/ports/z80/spec.mk: use -o
15721         * support/regression/ports/ucz80/spec.mk: use -o
15722         * support/regression/ports/xa51/spec.mk: use -o
15723         * support/regression/fwk/lib/timeout.c: fix usage string
15724
15725 2003-01-09  Bernhard Held <bernhard AT bernhardheld.de>
15726         * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
15727
15728 2003-01-07    <johan AT balder>
15729
15730         * src/SDCCast.c (decorateType): fixed bug #600035
15731
15732 2003-01-07  Bernhard Held <bernhard AT bernhardheld.de>
15733         * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
15734         * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
15735         * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
15736         * src/pic/pcode.c: outcommented unused variable to remove warnings
15737         * src/pic/ralloc.c: outcommented unused variable to remove warnings
15738
15739 2003-01-06    <karl AT turbobit.com>
15740         * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
15741    regression tests.
15742
15743 2003-01-06    <johan AT balder>
15744
15745         * src/SDCCicode.c: fixed array add
15746
15747 2002-01-05  Bernhard Held <bernhard AT bernhardheld.de>
15748         * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
15749         * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
15750
15751 2003-01-04    <johan AT balder>
15752
15753         * src/SDCCval.c (getNelements): fixed the initialized array of structures
15754
15755 2002-12-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15756         * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
15757
15758 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
15759         * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
15760         * support/regression/tests/bug-524697.c: fit mem usage into 8032
15761
15762 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
15763         * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
15764
15765 2002-12-27  Bernhard Held <bernhard AT bernhardheld.de>
15766         * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
15767
15768 2002-12-26  Bernhard Held <bernhard AT bernhardheld.de>
15769         * src/mcs51/main.c: removed {bindir}{sep} from aslink
15770
15771 2002-12-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15772
15773     * in /sdcc/as/mcs51/ changed these files in order to create an
15774     aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
15775     lkmain.c.  Also added: lkmem.c and lkaomf51.c.  Changed the
15776     following files to include the previous two files: aslink.dsp,
15777     Makefile.aslink, Makefile.bcc, and Makefile.in.
15778
15779     * Changed /sdcc/src/SDCCmain.c so it creates files with extension
15780     .adb instead of .cdb
15781
15782 2002-11-09  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15783
15784         * /sdcc/as/mcs51/lklist.c: Now reports memory usage using the
15785         value from option --iram-size.
15786
15787 2002-09-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15788
15789         * /sdcc/as/mcs51/lklist.c: added boundary check before using
15790         dram[] array.
15791
15792 2002-09-18    <wiml AT hhhh.org>
15793
15794         * SDCClrange.h: exposed setFromRange() and setToRange()
15795         * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
15796           packRegsForAccUse() (bug 542397)
15797         * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
15798           multiple times and emitting the fetch operations more than once
15799           added aopGetUsesAcc() function to allow binary operators to
15800           fetch their operands in the correct order; made genMinus() emit
15801           compact code for X = LITERAL - Y
15802
15803 2002-09-00  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15804         * /sdcc/as/mcs51/lklist.c: Fixed incorrect number of parameters to
15805         sprintf() in line 1267.
15806
15807 2002-09-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15808         * /sdcc/src/SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
15809         like ports.
15810
15811 2002-09-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15812         Changes to aslink (All the changes are marked with 'JCF'):
15813
15814         * /sdcc/as/mcs51/aslink.h: External definition of sflag and
15815         summary().
15816
15817         * /sdcc/as/mcs51/lkarea.c: Computes the size of area BSEG_BYTES from
15818         area BSEG.  Also moves, if possible, the DATA area down into the internal
15819         ram so more space is available.
15820
15821         * /sdcc/as/mcs51/lkdata.c: Definition of memory summary output flag
15822         sflag.
15823
15824         * /sdcc/as/mcs51/lklist.c: For the BSEG area report the size in bits,
15825         not bytes.  Function summary() which creates a memory usage summary
15826         file with extension .mem.  Reports of overlaping stack and small stack
15827         size.  If the space for the stack is less than 16 bytes aslink trows a
15828         warning.
15829
15830         * /sdcc/as/mcs51/lkmain.c: Creation of some of the default areas for
15831         the 8051.  Option 'y' for memory summary output file.
15832
15833         Changes to sdcc (All the changes are marked with 'JCF'):
15834
15835         * /sdcc/src/SDCCglobl.h: External definition of RegBankUsed[4].
15836
15837         * /sdcc/src/SDCCglue.c:  If a register bank is used, creates an
15838         overlaying area for it (uses RegBankUsed[4]).
15839
15840         * /sdcc/src/SDCCmain.c: Definition RegBankUsed[4]; marks register
15841         bank zero as used by default.  By default aslink locates the stack
15842         (equivalent to --stack-after-data).  Pass option 'y' to aslink for
15843         the creation of the .mem file.  Delegates the allocation of data area
15844         to aslink (it is not longer 0x30 by default).  If --stack-loc passes
15845         the begining of the stack area to aslink.
15846
15847         * /sdcc/src/SDCCmem.c:  If a register bank is used, marks it so
15848         glue() in SDCCglue.c creates an area for it.
15849
15850 2002-09-03  Borut Razem <borut.razem AT siol.net>
15851         * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
15852         sdcc/src/pic/glue.c:
15853         introduced atexit() handler for teporay files removal in case of
15854         errors, assertions, ...
15855
15856 2002-08-29  Borut Razem <borut.razem AT siol.net>
15857         * sdcc/support/cpp2/auto-host_vc_in.h:
15858         re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
15859         with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
15860         Maybe there is a similar problem with BORLANDC? It should be checked!
15861
15862         * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
15863         corrected improper use of assert: the assignment to clr variable was done inside the assert.
15864         In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
15865         was not executed, and the compiler (cl) launched a warning:
15866         ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
15867
15868 2002-08-28  Bernhard Held <bernhard AT bernhardheld.de>
15869         * src/SDCCglue.c (printIvalArray): iterative calculation of array length
15870
15871 2002-08-28  Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
15872         * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
15873
15874         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
15875           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
15876           sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
15877           sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
15878           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
15879           sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
15880           sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
15881         - added Release configuration in VS projects
15882         - review of compiler an linker options
15883         - VC .exe files are generated in bin_vc directory, not to interfere
15884           with binaries generated from other projects (cygwin, mingw, bcc ...)
15885
15886         * sdcc/src/yacc.dsp: added
15887
15888         * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
15889         added - genarate sdcc_vc.h using sdcc_vc_in.h as template
15890         and insert the version number definitions from .version
15891
15892         * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
15893
15894         * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
15895         added - genarate auto-host.h using auto-host_vc_in.h as template
15896
15897         * sdcc/sdcc_vc.h,
15898         removed from CVS, generated automatically
15899
15900 2002-08-25  Bernhard Held <bernhard AT bernhardheld.de>
15901         * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
15902
15903 2002-08-11  Borut Razem <borut.razem AT siol.net>
15904         * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
15905
15906 2002-08-10  Borut Razem <borut.razem AT siol.net>
15907         * src/SDCCmain.c (main):
15908         file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
15909         platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
15910         The consequence was that some temporary files were not removed.
15911
15912         * src/SDCCglue.c:
15913         unification of code in functions tempfilename() and tempfile():
15914         function tempnam() is defined in Visual Studio 6.0 and .NET
15915
15916         * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
15917
15918         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
15919           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
15920         - removed compiler command line option /WX: Treats all warnings as errors
15921         - update a list of source files, included into the project
15922
15923         * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
15924           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
15925         changed project type to Generic Project so that can be correcly converted to VS.NET project
15926
15927         * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
15928
15929         * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
15930
15931         * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
15932
15933         * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
15934         added return 0 statements after assert() to make compiler happy
15935
15936         * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
15937         added newline in the def file to keep MSC compiler satisfied
15938
15939         * sdcc/src/z80/gen.c:
15940         - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
15941           so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
15942         - solved MSC error in function aopDump()
15943
15944         * sdcc_vc.h: define PREFIX as "\\sdcc"
15945
15946 2002-07-18  Bernhard Held <bernhard AT bernhardheld.de>
15947         * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
15948
15949 2002-06-22  Scott Dattalo <scott AT dattalo.com>
15950         * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
15951         - Rewrote the register banking algorithm.
15952         - Added pCode live-range analysis to registers (for now, only non-used and
15953         singly-used registers optimized away)
15954
15955         * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
15956
15957         * 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.
15958
15959 2002-05-10  Scott Dattalo <scott AT dattalo.com>
15960         * src/pic/*: Added support for multiplication. Fixed many,many bugs.
15961
15962 2002-04-22  Michael Hope  <michaelh AT vroom>
15963
15964         * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
15965
15966         * configure.in (DD_COPT): Added include support required for gbdk.
15967
15968         * .version: Bumped version number just to increase it.
15969
15970         * src/SDCCmain.c: Added -nostdinc to the default options.
15971
15972 2002-04-15  Michael Hope  <michaelh AT vroom>
15973
15974         * device/lib/z80/printf.c (sprintf): Added.
15975
15976         * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
15977
15978         * src/z80/peeph.def: Added transpose redundent load rule.
15979
15980         * src/z80/main.c: Added force callee saves for jaune.
15981
15982         * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
15983
15984         * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
15985
15986 2002-03-28  Johan Knol  <johan AT balder>
15987
15988         * src/SDCCval.c: fixed bug #532436
15989
15990 2002-03-14  Scott Dattalo <scott AT dattalo.com>
15991         * /src/port.h:
15992         Added "char *Processor" field to the port structure.
15993
15994         * /src/SDCCmain.c:
15995         Added -p option. Allows port dependent processor to be specified.
15996
15997         * all ports:
15998         Initialized the new field char *Processor field to NULL in all ports
15999
16000         * /src/pic/*:
16001         Compiler generated registers for interrupt context saving
16002         were not getting allocated.
16003
16004 2002-03-16  Sandeep Dutta  <sandeep AT ddi.com>
16005
16006         * /src/SDCCast.c:
16007         Fixed left shift. Will promote the left side of a left shift
16008         if a) left shifting more than size of operand or b) when assigned
16009         to something size > size of left side
16010
16011 2002-03-14  Scott Dattalo <scott AT dattalo.com>
16012         * src/pic/*
16013         tons of changes. Register allocation has been
16014         rewritten. Added customization for the various PICs. Flow
16015         analysis is restructured. ...
16016
16017         * src/pic/device.h:
16018         Added
16019
16020         * src/pic/device.c:
16021         Added. device.c is a PIC port hack to accomodate variations
16022         in PIC devices.
16023
16024 2002-03-13  Michael Hope  <michaelh AT vroom>
16025
16026         * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled.  Yeah.
16027
16028 2002-03-04  johanknol  <johanknol AT manik>
16029
16030         * /src/SDCCval.c: fixed
16031
16032         const unsigned char arr[][2] = { { 0, 1 } };
16033         t18.c:1: error: Initializer element is not constant
16034
16035 2002-03-04  bela  <bela AT manik>
16036
16037         * /device/include/mcs51reg.h:
16038         ds89c420 register definition update
16039
16040 2002-03-03    <johan AT FRIJA>
16041
16042         * support/Util/SDCCerr.c: did something, but don't no why anymore
16043
16044         * support/regression/tests/bug-524691.c: made it a little less shy
16045
16046         * src/SDCCast.c (decorateType): fixed bug #524697
16047
16048         * src/SDCCast.c: made some lineno improvements
16049
16050         * src/SDCCval.c (getNelements): changed warning to error
16051
16052         * src/SDCCglue.c (printIvalArray): changed warning to error
16053
16054         * src/SDCCicode.c: fixed a warning for mingw
16055
16056         * src/SDCCast.c (decorateType): fixed the << promotion for ops
16057
16058         * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
16059
16060 2002-03-02  Sandeep Dutta  <sandeep AT ddi.com>
16061
16062         * src/ds390/peeph.def:
16063         Added some more peephole rules
16064
16065         * src/ds390/gen.c: Various fixes & enhancements
16066
16067         * src/SDCClrange.c, src/SDCClrange.h:
16068         functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
16069
16070         * src/ds390/ralloc.c:
16071         various fixes & enhancements (ds390) specific
16072
16073         * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
16074         Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
16075         from rallocs.
16076
16077         * sdcc/src/SDCCcse.c: Better fix for bug # 514308
16078
16079 2002-03-02    <johan AT FRIJA>
16080
16081         * src/SDCCast.c (decorateType): fixed bug #524708
16082
16083         * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
16084
16085         * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
16086
16087 2002-03-01  Michael Hope  <michaelh AT vroom>
16088
16089         * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
16090
16091         * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
16092
16093 2002-03-01    <johan AT FRIJA>
16094
16095         * src/SDCCglue.c (printIvalPtr): fixed bug #524211
16096
16097         * src/SDCCast.c (decorateType): fixed bug #524209
16098
16099         * src/SDCCval.c (valNot): fixed bug #524195
16100
16101 2002-02-26    <johan AT balder>
16102
16103         * src/xa51/gen.c: fixed a warning
16104
16105         * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
16106
16107         * src/SDCCast.c (decorateType): fixed bug #522534
16108
16109 2002-02-23    <johan AT balder>
16110
16111         * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
16112
16113 2002-02-22    <johan AT balder>
16114
16115         * src/SDCCast.c: fixed bug #514865
16116
16117         * src/SDCCy.c ("SDCC.y"): fixed bug #516625
16118
16119 2002-02-21  Sandeep Dutta  <sandeep AT ddi.com>
16120
16121         * sdcc/src/SDCCloop.c:
16122         Previous fix was not good. basic blocks that have "break" or "return" are
16123         not really partof a loop , but live ranges used in these blocks should
16124         be live thru the entire loop, so set partOfLoop but don't add them to
16125         loop region
16126
16127 2002-02-21    <johan AT FRIJA>
16128
16129         * src/SDCCcse.c: fixed bug #514308
16130
16131 2002-02-20  Sandeep Dutta  <sandeep AT ddi.com>
16132
16133         * src/SDCCloop.c:
16134         Fixed BUG #519583. If a conditional block ended in a return/break
16135         statement inside a loop, it was not being considered part of the loop.
16136
16137         * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
16138
16139 2002-02-10  Karl Bongers <karl AT turbobit.com>
16140
16141         * debugger/*:
16142         Fixed up SDCDB debugger somewhat.  Updated debugger/README
16143         with lots of comments and notes.
16144
16145         * device/examples/test2.c:
16146         Fix bug, "red" variable not being initialized(compiler complained).
16147
16148         * device/examples/Makefile, examples/test3.c:
16149         Add Makefile in device/examples folder, compiles test3.c
16150         for use as a multiple module SDCDB test case.
16151
16152         * sim/ucsim/cmd.src/cmdset.cc:
16153         Took out debug printfs in ucsim "next" command.
16154
16155         * sim/ucsim/xa.src:
16156         Karl and Johan start ucsim XA support.  Most dissassembly working,
16157         about 75% emulation done(plenty of work remaining).
16158
16159         * sim/ucsim/z80.src:
16160         Add Z80 support to ucsim, add test-ucz80 regression test,
16161         notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
16162         Notice z80 compiler fails on examples/test3.c/crc code.
16163
16164 2002-01-30  Sandeep Dutta  <sandeep AT ddi.com>
16165
16166         * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
16167         Added support for --parms-in-bank1
16168
16169         * src/ds390/peeph.def:
16170         added a few more peephole optimzations
16171
16172         * src/ds390/main.c:
16173         1) added __builtin_inp & __builtin_outp used to read in data of given length
16174            from a memory mapped port
16175         2) added __builtin_memcmp
16176         3) added __builtin_swapw swap bytes of a short
16177
16178         * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
16179         1) handle multiple send & receives from register bank1
16180         2) ralloc can now allocate DPTR1 to some liveRanges
16181
16182         * src/SDCCsymt.c, src/SDCCsymt.h:
16183         changes to handle multiple sends & receives
16184
16185         * src/SDCCptropt.h:
16186         added some pointer arithmetic optimization
16187
16188         * src/SDCCptropt.c:
16189         added some pointer arithmetic optimizations but not stable yet so not
16190         called from anywhere (will get this working shortly)
16191
16192         * src/SDCCopt.c: fixed for multiple sends & receives
16193
16194         * src/SDCCmain.c:
16195         1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
16196         2) preprocessing done AFTER port->finalizeoptions . This allows ports to
16197            set preprocessor defines (depending on options)
16198
16199         * src/SDCCicode.c, src/SDCCicode.h:
16200         changes made to handle multiple sends & receives
16201
16202         * src/SDCCglobl.h:
16203         Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
16204
16205         * src/SDCCcse.c, src/SDCCcse.h:
16206         added function findbackward def (to be used in upcoming optimization)
16207
16208         * src/SDCCcflow.c, src/SDCCcflow.h:
16209         added function returnAtEnd - to determine if a basic block terminates with
16210         a RETURN iCode
16211
16212         * src/SDCCast.c, src/SDCCast.h:
16213         added option parms-in-bank1
16214
16215         * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
16216         * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
16217         * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
16218         adjusted for --parms-in-bank1 option
16219
16220         * device/include/string.h:
16221         donot redefine "reentrant" keyword
16222
16223         * device/include/ds80c390.h: Added some more SFRs
16224
16225 2002-01-28  Bernhard Held  <bernhard AT bernhardheld.de>
16226
16227         * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
16228
16229 2002-01-26  Bernhard Held  <bernhard AT bernhardheld.de>
16230
16231         * src/SDCCast.c (funcOfType): fix usage of double --float-reent
16232
16233 2002-01-22  Bernhard Held  <bernhard AT bernhardheld.de>
16234
16235         * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
16236
16237 2002-01-18  Paul Stoffregen  <paul AT pjrc.com>
16238
16239         * Added --xram-movc option
16240
16241 2002-01-13  Bernhard Held  <bernhard AT bernhardheld.de>
16242
16243         * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
16244
16245 2002-01-11  Johan Knol
16246
16247         * Added math lib of Jesus Calvino-Fraga
16248
16249 2002-01-08  Bernhard Held  <bernhard AT bernhardheld.de>
16250
16251         * src/SDCCmain.c (processFile): fix processing of ../../src.c
16252         * support/regression/Makefile: new target test-mcs51-stack-auto
16253         * support/regression/ports/mcs51-stack-auto/spec.mk: added
16254
16255 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
16256
16257         * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
16258
16259 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
16260
16261         * support/regression/ports/mcs51/support.c: correct setup of timer / UART
16262
16263 2002-01-03  Bernhard Held  <bernhard AT bernhardheld.de>
16264
16265         * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
16266
16267         * src/SDCCglue.h: add definition for printIvalChar()
16268
16269 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
16270
16271         * src/SDCCast.c: fix #498138 by Johan
16272
16273         * src/SDCCglue.c: fix #498138 by Johan
16274
16275 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
16276
16277         * support/regression/Makefile: fix clean
16278
16279         * support/regression/ports/ds390/support.c: fix transmission of last character
16280
16281 2001-12-29  Sandeep Dutta  <sandeep AT ddi.com>
16282
16283         * /sdcc/src/ds390/gen.c:
16284         a) improved computing address of stack variable
16285         b) took out some #if 0 code
16286         c) improved parmBytes adjustment
16287         d) improved genPlusIncr & genMinusIncr
16288         e) genCmp could generate bad code (when left assigned to DPTR)
16289         f) Fixed bug in hasInc
16290
16291         * /sdcc/src/ds390/ralloc.c:
16292         a) packRegsForSupport could mess up live information (Fixed)
16293         b) packRegsDPTRuse could be incorrect for left & right shift
16294
16295         * /sdcc/src/mcs51/ralloc.c:
16296         packRegsForSupport could mess up the live information (Fixed)
16297
16298         * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
16299
16300         * /sdcc/src/SDCCast.c:
16301         can reverse a loop even if function call is present as long
16302         as the loop control variable is local & is not passed as parameter
16303
16304 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
16305
16306         * /sdcc/ChangeLog: *** empty log message ***
16307
16308         * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
16309         More builtin function additions for TININative
16310
16311         * /sdcc/src/ds390/ralloc.c:
16312         Had broken the regression testsuite
16313
16314         * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
16315
16316         * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
16317         Added funcattr hasStackParms will be set for reentrant functions when there
16318         are paramteres on the stack, this helps in minimizing frame pointer generation
16319         typeFromStr can handle function pointers now
16320
16321         * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
16322         *** empty log message ***
16323
16324 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
16325
16326         * /src/ds390/gen.c, /src/ds390/main.c:
16327         More builtin function additions for TININative
16328
16329         * /src/ds390/ralloc.c:
16330         Had broken the regression testsuite
16331
16332         * /src/SDCCast.c: Fixed a bug in dumptree
16333
16334         * /src/SDCCsymt.c, /src/SDCCsymt.h:
16335         Added funcattr hasStackParms will be set for reentrant functions when there
16336         are paramteres on the stack, this helps in minimizing frame pointer generation
16337         typeFromStr can handle function pointers now
16338
16339         * /doc/builtins.txt, /doc/TININative.txt:
16340         *** empty log message ***
16341
16342
16343 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
16344
16345         * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
16346         ALPHA version for -mTININative
16347
16348         * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
16349         updated to reflect changes in the port structure
16350
16351         * /src/port.h:
16352         added function do_assemble (similar to do_link) if non-null this function
16353         will be called to do assembly (-mTININative) requires a multi command
16354         assembly
16355         added function genAssemblerEnd will be called to generate assembler Epilogue
16356
16357         * /src/SDCCsymt.c:
16358         added _JavaNative to debug info printing
16359
16360         * /src/SDCCmain.c: added option --tini-libid
16361         added port->do_assemble function (-mTININative) has a multi command assemble
16362
16363         * /src/SDCCglue.c: Disabled "constExpr" check
16364         added port->genAssemblerEnd function
16365
16366         * /src/SDCCglobl.h: Added option --tini-libid value
16367
16368         * /src/SDCCast.h:
16369         tookout optimizeCompare from the header (has no external references)
16370
16371         * /src/SDCCast.c: made one more function "static"
16372
16373 2001-12-23  Michael Hope  <michaelh AT juju.net.nz>
16374
16375         * src/z80/mappings.i: Added z80asm support.
16376
16377         * src/z80/main.c: Added z80asm support on --asm=z80asm
16378
16379         * src/z80/gen.c: Fixed asm portability issues.
16380
16381         * src/asm.c (tvsprintf): Removed old code, added 'N' for function name.  For extern support.
16382
16383         * src/SDCCglue.c (printExterns): Added global/extern split.
16384
16385 2001-12-17  Bernhard Held  <bernhard AT bernhardheld.de>
16386
16387         * support/regression/Makefile: added test for mcs51 model large
16388
16389         * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
16390
16391         * support/regression/ports/gbz80/spec.mk: added -mgbz80
16392
16393 2001-12-05  Michael Hope  <michaelh AT juju.net.nz>
16394
16395         * src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.
16396
16397 1904-01-06  Michael Hope  <michaelh AT juju.net.nz>
16398
16399         * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
16400
16401         * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
16402
16403 2001-12-02  Bernhard Held  <bernhard AT bernhardheld.de>
16404
16405         * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
16406
16407         * support/regression/tests/simplefloat.c: Port to mcs51.
16408
16409 2001-11-25  Michael Hope  <michaelh AT juju.net.nz>
16410         * support/regression/tests/bug-485362.c: Added.
16411
16412         * support/regression/tests/simplefloat.c (testDivNearOne): Added.
16413
16414         * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
16415
16416         * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
16417
16418         * src/z80/gen.c (aopDump): Added a dump function.
16419
16420 2001-11-25  Bernhard Held  <bernhard AT bernhardheld.de>
16421         * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
16422
16423         * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
16424
16425         * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
16426
16427         * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
16428
16429         * sim/ucsim/s51.src/uc390cl.h: Work in progress.
16430
16431         * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
16432
16433         * support/regression/fwk/lib/testfwk.c: Run with tinibios.
16434
16435         * support/regression/ports/mcs51/spec.mk: Fine tuninig.
16436
16437         * support/regression/ports/ds390/support.c: Use tinibios.
16438
16439         * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
16440
16441 2001-11-23  Michael Hope  <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
16442
16443         * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
16444         (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
16445
16446         * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
16447
16448         * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
16449
16450 2001-11-18  Michael Hope  <michaelh AT juju.net.nz>
16451
16452         * src/z80/gen.c (genCmp): Fixed compare on unsigned.
16453
16454         * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
16455         (packRegsForIYUse): Created and optimised.
16456
16457 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
16458
16459         * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
16460 2001-11-18  Bernhard Held  <bernhard AT bernhardheld.de>
16461
16462         * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
16463
16464         * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
16465
16466         * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
16467
16468 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
16469
16470         * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
16471
16472         * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
16473
16474 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
16475
16476         * sdcc/sim/ucsim/globals.cc: New: IXRAM.
16477
16478         * sdcc/sim/ucsim/stypes.h: New: IXRAM.
16479
16480         * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
16481
16482 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
16483
16484         * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
16485         (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
16486         (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
16487
16488         * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
16489
16490         * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
16491         (genNotFloat): Added.
16492         (genUminusFloat): Added.
16493
16494         * device/lib/z80/Makefile: Added floating pt stubs.
16495
16496         * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
16497
16498         * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
16499
16500         * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
16501
16502 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
16503
16504         * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
16505
16506         * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
16507
16508         * sdcc/support/regression/Makefile: Add port ds390.
16509
16510         * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
16511
16512         * sdcc/support/regression/ports/z80/spec.mk: Minor change.
16513
16514         * sdcc/support/regression/ports/ds390/spec.mk: Added.
16515
16516         * sdcc/support/regression/ports/ds390/support.c: Added.
16517
16518         * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
16519
16520         * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
16521
16522         * sdcc/support/regression/fwk/lib/timeout.c: Paste.
16523
16524 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
16525
16526         * device/include/malloc.h: Added z80 and gbz80 support.
16527
16528         * device/lib/gbz80/heap.s: Added.
16529
16530         * device/lib/z80/heap.s: Added.
16531
16532         * device/lib/malloc.c: Added z80 and gbz80 support.
16533
16534         * support/regression/tests/malloc.c (testMalloc): Added.
16535
16536         * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
16537
16538         * support/regression/tests/bug-478094.c: Added.
16539
16540         * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
16541
16542 2001-11-04  Bernhard Held  <bernhard AT bernhardheld.de>
16543
16544         * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
16545
16546         * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
16547
16548         * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
16549
16550         * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
16551
16552         * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
16553
16554 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
16555
16556         * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
16557
16558 2001-11-03  Michael Hope  <michaelh AT juju.net.nz>
16559
16560         * support/regression/tests/bug-477927.c: Added.
16561
16562         * src/z80/peeph.def: Added minor rules.
16563
16564         * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
16565
16566         * src/z80/peeph.def: Added jump optimisation modification.
16567
16568 2001-11-01  Michael Hope  <michaelh AT juju.net.nz>
16569
16570         * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
16571
16572 2001-10-30  Michael Hope  <michaelh AT juju.net.nz>
16573
16574         * support/regression/tests/funptrs.c: Added.
16575
16576 2001-10-29  Michael Hope  <michaelh AT juju.net.nz>
16577
16578         * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
16579
16580 2001-10-28  Michael Hope  <michaelh AT juju.net.nz>
16581
16582         * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
16583
16584         * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
16585
16586         * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
16587         (movLeft2ResultLong): Created.
16588
16589         * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
16590         (joinPushes): Added.  Joins two char pushes into a word push.
16591
16592 2001-10-27  Michael Hope  <michaelh AT juju.net.nz>
16593
16594         * support/cpp2/Makefile.in (install): Added creation of dest dir.
16595
16596         * support/makebin/Makefile (install): Added creation of dest dir.
16597
16598 2001-10-24 Karl Bongers <karl AT turbobit.com>
16599
16600         * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
16601
16602 2001-10-21  Michael Hope  <michaelh AT juju.net.nz>
16603
16604         * src/z80/ralloc.c: Turned off faulty pack for one use.
16605
16606         * src/z80/peeph-gbz80.def: Removed redundent restart options.
16607
16608         * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
16609
16610 2001-10-21  Bernhard Held  <bernhard AT bernhardheld.de>
16611
16612         * support/regression/Makefile: Improved clean
16613
16614         * support/regression/ports/gbz80/spec.mk: Added clean
16615
16616         * support/regression/ports/host/spec.mk: Added clean
16617
16618         * support/regression/ports/z80/spec.mk: Added clean
16619
16620         * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
16621
16622         * support/regression/ports/mcs51/timeout.c: little improvements
16623
16624 2001-10-17  Michael Hope  <michaelh AT juju.net.nz>
16625
16626         * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
16627
16628         * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
16629
16630         * support/regression/generate-cases.py: Fixed up to use function pts correctly.
16631
16632 2001-10-16  Bernhard Held  <bernhard AT bernhardheld.de>
16633
16634         * support/regression/port/mcs51/spec.mk: add timeout for uCsim
16635
16636         * support/regression/port/mcs51/timeout.c: add timeout for uCsim
16637
16638 2001-10-13  Michael Hope  <michaelh AT juju.net.nz>
16639         * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
16640
16641         * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
16642
16643         * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
16644
16645         * src/mcs51/main.c (_linkCmd): Added bin path to command.
16646
16647         * src/SDCCmain.c (initValues): Added support for when it it called just to link.
16648
16649         * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
16650
16651         * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
16652
16653         * support/regression/tests/longor.c: Added.
16654
16655 2001-10-11  Bernhard Held  <bernhard AT bernhardheld.de>
16656
16657         * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
16658
16659         * as/mcs51/aslink.h: define PATH_MAX
16660
16661         * as/mcs51/asm.h: define PATH_MAX
16662
16663         * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
16664
16665         * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
16666
16667         * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
16668
16669         * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
16670
16671         * src/SDCCglobl.h: define PATH_MAX
16672
16673         * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
16674
16675         * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
16676
16677 2001-10-11  Michael Hope  <michaelh AT juju.net.nz>
16678
16679         * src/z80/gen.c (gencjneshort): Fixed
16680
16681         * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
16682
16683 2001-10-09  Michael Hope  <michaelh AT juju.net.nz>
16684
16685         * support/regression/tests/bug-469671.c: Added.
16686
16687         * src/z80/gen.c (shiftIntoPair): Fixed up warning.
16688
16689 2001-10-08  Michael Hope  <michaelh AT juju.net.nz>
16690
16691         * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
16692
16693         * src/z80/gen.c (genPlus): Fixed to work with extended stack.  Also fixed genMinus, genCmp.  genUMinus is still left.
16694
16695 2001-10-08  Bernhar Held  <bernhard AT bernhardheld.de>
16696
16697         * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
16698
16699         * src/device/lib/_mulint.c  : removed hint: nooverlay bug
16700
16701         * src/device/lib/_mullong.c : removed hint: nooverlay bug
16702
16703         * src/device/lib/_divuint.c : removed hint: nooverlay bug
16704
16705         * src/device/lib/_divulong.c: removed hint: nooverlay bug
16706
16707         * src/device/lib/_moduint.c : removed hint: nooverlay bug
16708
16709         * src/device/lib/_modulong.c: removed hint: nooverlay bug
16710
16711 2001-10-07  Michael Hope  <michaelh AT juju.net.nz>
16712
16713         * 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.
16714
16715         * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.
16716
16717         * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
16718
16719 2001-10-07    <johan AT FRIJA>
16720
16721         * device/lib/gets.c (gets): fixed the return value.
16722
16723 2001-10-06  Michael Hope  <michaelh AT juju.net.nz>
16724         * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
16725
16726         * 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.
16727
16728         * 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.
16729
16730         * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
16731
16732         * src/pic/gen.c: Removed Safe_strdup.
16733
16734         * configure.in: Added option to enable libgc support.
16735
16736         * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
16737         (bitVectUnion): Optimised.
16738         (bitVectIntersect): Optimised.
16739         (bitVectBitsInCommon): Optimised.
16740         (bitVectCplAnd): Optimised.
16741
16742         * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.
16743
16744 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
16745
16746         * src/SDCCmain.c: distinguish between assembler debug and plain options
16747
16748         * src/avr/main.c:   remove standard assembler options
16749
16750         * src/ds390/main.c: remove standard assembler options
16751
16752         * src/mcs51/main.c: remove standard assembler options
16753
16754         * src/port.h: removed "PENDING" comment
16755
16756 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
16757
16758         * src/device/lib/_mulint.c  : new, with assember functions
16759
16760         * src/device/lib/_mullong.c : new, with assember functions
16761
16762         * src/device/lib/_divuint.c : with assember functions
16763
16764         * src/device/lib/_divsint.c : with assember functions
16765
16766         * src/device/lib/_divulong.c: with assember functions
16767
16768         * src/device/lib/_divslong.c: with assember functions
16769
16770         * src/device/lib/_moduint.c : with assember functions
16771
16772         * src/device/lib/_modsint.c : with assember functions
16773
16774         * src/device/lib/_modulong.c: with assember functions
16775
16776         * src/device/lib/_modslong.c: with assember functions
16777
16778         * src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c
16779
16780         * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
16781
16782         * src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
16783                                       replaced _mululong.c and _mulslong.c by _mullong.c
16784
16785 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
16786
16787         * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
16788
16789 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
16790
16791         * src/SDCCglue.c: test, if win32api is available for MINGW
16792
16793 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
16794
16795         * src/SDCCsymt.c: no more _modifier in printTypeChain()
16796         * support/regression/tests/driverstruct.c: REENTRANT for mcs51
16797         * support/regression/ports/gbz80/spec.mk: removed GENERIC
16798         * support/regression/ports/host/spec.mk: removed GENERIC
16799         * support/regression/ports/mcs51/spec.mk: removed GENERIC
16800         * support/regression/ports/z80/spec.mk: removed GENERIC
16801
16802 2001-10-01  Michael Hope  <michaelh AT juju.net.nz>
16803
16804         * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
16805
16806         * support/regression/tests/bug-467035.c: Created.
16807
16808 2001-10-01    <johan AT FRIJA>
16809
16810         * src/SDCC.y: fixed bug #466586 part 1
16811
16812 2001-10-01  Johan Knol <johan.knol AT iduna.nl>
16813
16814         * SDCCicode.c: z80 has no generic pointers
16815         * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
16816
16817 2001-09-30  Michael Hope  <michaelh AT juju.net.nz>
16818
16819         * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
16820
16821 2001-09-29  Michael Hope  <michaelh AT juju.net.nz>
16822
16823         * Makefile (sdcc-libs): Added makebin to the list of standard targets.
16824
16825         * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
16826
16827 2001-09-25  Michael Hope  <michaelh AT juju.net.nz>
16828
16829         * configure.in: Fixed up so that ucsim is only configured once.
16830
16831         * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
16832
16833         * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
16834         (getPathDifference): As above.
16835
16836         * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.
16837
16838         * src/SDCCglue.c (tempfilename): Added function for pre-processor.
16839
16840 2001-09-23  Michael Hope  <michaelh AT juju.net.nz>
16841         * .version: Updated to 2.3.1
16842
16843         * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
16844         Added copyright header.
16845
16846         * src/SDCCmain.c: Shifted various functions into SDCCutil.c
16847         (assemble): Added support for macro based assembler commands.
16848         (linkEdit): Added support for macro based linker commands.
16849         (preProcess): Changed the pre-processor to use macros.
16850         (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
16851         (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
16852
16853         * device/lib/z80/crt0.s: Added module name for debugging.
16854
16855 2001-09-20  Michael Hope  <michaelh AT juju.net.nz>
16856
16857         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
16858
16859         * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
16860
16861         * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
16862
16863         * src/Makefile.in: Added SDCCmacro and SDCCutil
16864
16865 2001-09-19  Michael Hope  <michaelh AT juju.net.nz>
16866
16867         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
16868
16869 2001-09-16    <johan AT FRIJA>
16870
16871         * 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.
16872
16873 2001-09-15    <johan AT FRIJA>
16874
16875         * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
16876         * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
16877
16878 2001-09-11    <johan AT FRIJA>
16879
16880         * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
16881
16882 2001-09-10  Michael Hope  <michaelh AT juju.net.nz>
16883
16884         * support/regression/tests/bug-460444.c: Added test case.
16885
16886         * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
16887         (genCast): Added justification for all of the asserts.
16888
16889 2001-09-10  Bernhard Held <bernhard AT bernhardheld.de>
16890
16891         * support/regression/support.c: _xdata replaced by xdata
16892
16893         * support/regression/spec.mk: removed _generic
16894
16895 2001-09-09  Michael Hope  <michaelh AT juju.net.nz>
16896
16897         * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
16898
16899         * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
16900         (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
16901
16902         * src/z80/peeph.def: Added a rule to optimise shift then compare.
16903
16904         * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
16905
16906         * support/regression/tests/bug-460010.c: Added test case.
16907
16908         * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
16909
16910 2001-09-09  Bernhard Held <bernhard AT bernhardheld.de>
16911
16912         * support/regression/Makefile: inter-port-clean adjusted for mcs51
16913
16914         * support/regression/testfwk.c: removed workaround for bug #436344
16915
16916         * support/regression/tests/bp.c: use less memory with mcs51
16917
16918         * support/regression/tests/bug-441448.c: use less memory
16919
16920         * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
16921
16922         * support/regression/collate-results.py: typo
16923
16924 2001-09-08  Michael Hope  <michaelh AT juju.net.nz>
16925
16926         * support/regression/tests/fetchoverlap.c: Added new test case.
16927
16928         * support/regression/tests/bp.c: Added new test case.
16929
16930         * support/regression/tests/bug-448984.c: Added new test case.
16931
16932         * support/regression/tests/pow2shifts.c: Added new test case.
16933
16934         * src/z80/gen.c: Turned off the noise it normally generates for the release.
16935         (genlshTwo): Fixed right shift for count > 8.
16936
16937         * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
16938
16939 2001-09-08    <johan AT FRIJA>
16940
16941         * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
16942
16943 2001-09-07    <johan AT FRIJA>
16944
16945         * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
16946
16947         * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
16948
16949 2001-09-06    <johan AT FRIJA>
16950
16951         * src/SDCC.y: this could be a fix for bug #458744 (1.37)
16952         * bernhard noted me at this: "() equals to (void)" (1.38)
16953
16954 2001-09-05    <johan AT FRIJA>
16955
16956         * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
16957
16958 2001-09-04    <johan AT FRIJA>
16959
16960         * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
16961
16962
16963 2001-09-04  Paul Stoffregen  <paul AT pjrc.com>
16964
16965         * pragma noinduction broke memcpy on mcs51 large model.  Moved it inside z80 optimization
16966
16967 2001-09-03  Michael Hope  <michaelh AT juju.net.nz>
16968
16969         * link/z80/aslink.h: Fixed path for PATH_MAX
16970
16971 2001-09-02  Michael Hope  <michaelh AT juju.net.nz>
16972
16973         * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
16974
16975         * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
16976
16977         * support/regression/tests/uminus.c: Added a test for the unary minus operator.
16978
16979         * 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.
16980
16981 2001-09-01  Michael Hope  <michaelh AT juju.net.nz>
16982
16983         * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
16984         (genCmp): Fixed up genCmp for the GB with longs.
16985
16986         * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
16987
16988         * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
16989
16990         * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
16991
16992         * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
16993
16994 2001-08-30  Paul Stoffregen  <paul AT pjrc.com>
16995
16996         * added peepholes 223 to 231 to mcs51 port.  These improve code when using large model.
16997
16998 2001-08-30  Michael Hope  <michaelh AT juju.net.nz>
16999
17000         * 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.
17001
17002         * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
17003
17004 2001-08-29  Michael Hope  <michaelh AT juju.net.nz>
17005
17006         * link/z80/aslink.h: Fixed long file name support.  Is now based off PATH_MAX instead of a constant.
17007
17008         * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
17009
17010 2001-08-30 Bernhard Held   <bernhard AT bernhardheld.de>
17011
17012   * sim/ucsim/configure:    little improvement of Cygwin-detection
17013   * sim/ucsim/configure.in: little improvement of Cygwin-detection
17014   * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
17015   * support/regression/tests/bug-221100.c: small changes for mcs51
17016   * support/regression/tests/bug-221168.c: small changes for mcs51
17017   * support/regression/tests/bug-227710.c: small changes for mcs51
17018   * support/regression/tests/staticinit.c: small changes for mcs51
17019   * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
17020   * as/mcs51/lklex.c:  accept everything as symbol name in rel-files, bug fix ID 452601
17021   * as/mcs51/lksym.c:  accept everything as symbol name in rel-files, bug fix ID 452601
17022
17023 $Revision$